text: !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(b){b.$=b.jQuery=a("jquery"),b._=a("lodash"),a("dataTables"),a("./vendor/jquery.qtip"),jQuery(function(){"use strict";function b(){var a=[];$(".battery-filters select").each(function(){var b=$(this);"All"!==b.val()&&a.push({Attributes:{$elemMatch:{ID:b.attr("class"),Name:b.val()}}})}),0===a.length&&a.push({}),c(a)}function c(a){i.products.find({$and:a},{limit:0,sort:{ProdID:1},fields:{ProdID:1,BrandName:1,Name:1,Price:1,Attributes:1,_id:-1}}).fetch(function(a){var b={length:a.length,products:[]};$.each(a,function(){b.products.push(['<div class="small-12 large-6 columns text-center"><a href="http://www.horizonhobby.com/'+this.ProdID+'">'+this.ProdID+'</a></div><div class="small-12 large-6 columns text-center hide-for-small"><a class="img-ico" href="'+this.ProdID+'"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABGklEQVRYhe2X223CQBBFtwSXkBIoYbRn9p8S6CSUQAehA1qgA0rAHZAO4CM2svzaWSEPkGSk+bBk+x7fvZr1hvDnS1UFOKvq1bMbTQlA7S3ehQjtxROc/9H9lQDADjg36/zpCgDsRtZ76wagqt+jYXsyQP0wgKpKjHFjuG+7yBK08yKltLJAAHXzzEC8GKD7VcBFRKochAHSBiAiFXDpWXpyAwD2E2P0q1QU2BcBqKrMzXJLKEO4u3jo6lgBjrkNJRdKEalU9dTXyQLEGDfGHW0ylCmlVT8/JoCJ4M31IJTAeuwdJoCJYZJz4h7KOfeyACLyUSpe0lkAS/CWBlhM/B/gPQC86qUABr9QXg3U7dHM/XTUaIq3869XN/O/cf3fElPRAAAAAElFTkSuQmCC"></a></div>',this.BrandName,this.Name,"$"+this.Price])}),e(b),b.length>0&&d(a)})}function d(a){f(a),$(".battery-filters select").not(l).each(function(){var a=$(this),b=a.attr("class"),c=a.val();a.html($("<option />",{text:"All",value:"All",selected:"All"===c})),$.each(j[b],function(){var b=$("<option />",{text:this,value:this,selected:c===this});a.append(b)})})}function e(a){$(".results-count").html("<h3>Results: "+a.length+"</h3>"),$(".socket").html('<table id="results" class="display"></table>'),$("#results").dataTable({data:a.products,columns:[{title:"ProdID"},{title:"BrandName"},{title:"Name"},{title:"Price","class":"text-center"}],language:{lengthMenu:"Show _MENU_"}})}function f(a){$.each(k,function(a){j[k[a]]=[]}),$.each(a,function(b){$.each(a[b].Attributes,function(){if(k.indexOf(this.ID)>-1)if("object"==typeof this.Name){var a=this;$.each(a.Name,function(){j[a.ID].indexOf(this)<0&&j[a.ID].push(this)})}else j[this.ID].indexOf(this.Name)<0&&j[this.ID].push(this.Name)})}),$.each(k,function(a){j[k[a]][0]&&(j[k[a]][0].endsWith("mAh")||j[k[a]][0].endsWith("V"))?j[k[a]]=_.uniq(j[k[a]].sort().sort(function(a,b){var c=parseFloat(a),d=parseFloat(b);return d-c}).reverse()):j[k[a]]=_.uniq(j[k[a]].sort())})}var g=a("minimongo"),h=g.MemoryDb,i=new h;i.addCollection("products");var j={},k=["facet_Battery_Type","facet_Battery_Capacity","Spec_facet_Connector_Type","Spec_facet_Battery_Voltage"],l="";$("#batteryfinder").on("db:ready",function(a){c([{}])}).on("mouseenter",".img-ico",function(a){var b=$(this),c=b.closest("td").find("a").first().text();$(this).qtip({content:{title:'<h3 class="text-center">'+c+"</h3>",text:'<img src="http://s7d5.scene7.com/is/image/horizonhobby/'+c+'_a0?hei=150">'},style:{classes:"qtip-bootstrap"},position:{my:"left center",at:"right center",target:"mouse",viewport:$(".socket"),adjust:{x:30,mouse:!1}},show:{ready:!0},hide:{event:"mouseleave"},events:{hide:function(a,b){b.destroy()}}})}).on("click",".hlp-ico",function(a){return!1}).on("mouseenter",".hlp-ico",function(a){var b=$(this),c=b.data("text"),d=b.parent().text();$(this).qtip({content:{title:'<h3 class="text-center">'+d+"</h3>",text:c},style:{classes:"qtip-bootstrap"},position:{my:"left center",at:"right center",target:"mouse",viewport:$(".socket"),adjust:{x:30,mouse:!1}},show:{ready:!0},hide:{event:"mouseleave"},events:{hide:function(a,b){b.destroy()}}})}).on("click",".filter-reset",function(a){a.preventDefault(),l="",$(".battery-filters select").each(function(){$(this).val("All").find("option").first().attr("selected",!0)}),c([{}])}).on("click","table.dataTable.display tbody tr",function(a){a.preventDefault(),location.href=$(this).find("a").first().attr("href")}),String.prototype.endsWith=function(a){return-1!==this.indexOf(a,this.length-a.length)};var m=JSON.stringify({Categories:{$elemMatch:{ID:{$regex:encodeURIComponent("[A-Z]_BATTERIES")}}},Displayable:1,Buyable:1}),n=JSON.stringify({ProdID:1}),o=JSON.stringify({_id:0,ProdID:1,BrandID:1,BrandName:1,Name:1,Desc:1,Price:1,Categories:1,Attributes:1});$.ajax({url:"http://159.203.116.76/search/"+m+"/0/"+n+"/"+o+"?callback=?",type:"GET",dataType:"json",success:function(a){var c={};c[k[0]]="Batteries for RC vehicles come in many different chemical types, each with their own strengths. Different chemical types do have different performance advantages, so make sure you select the proper battery for your electronics. Lithium Polymer (LiPo) and Nickel Metal Hydride (NiMH) tend to be the most common but there are many different options for you to choose from.",c[k[1]]="Capacity is a measure of how long a battery will last per-charge. The higher the capacity the longer a battery will last before needing to be recharged.  You can always safely increase the capacity on your battery to gain more runtime or flight time.",c[k[2]]="Depending on the type of vehicle you are installing a battery into you will have to make sure you have the correct connector on both the battery pack and the vehicle itself. Common battery connectors include EC3, Ultra Plugs, Tamiya and banana plugs or tubes.",c[k[3]]="As you increase the individual cells that make up a battery pack the voltage will increase at the same time. More voltage equals more speed and performance. Multiply the voltage of each cell by the individual cells that make up the battery pack to determine the total pack voltage. ";var d=$(".battery-filters"),e=$("<div />",{"class":"small-12 columns text-center"}),f=$("<ul />",{"class":"small-block-grid-2 large-block-grid-4"});d.html($("<h3 />",{text:"Battery Filters","class":"text-center"}).append($("<a />",{href:"#reset","class":"filter-reset paginate_button",text:"Reset"}))),$.each(k,function(a){var d=$("<li />"),e=$("<select />",{"class":k[a]}).on("change",function(c){c.preventDefault(),l="."+k[a],b()});e.append($("<option />",{text:"All",value:"All",selected:!0})),d.append($("<h6 />",{html:k[a].replace("Spec_","").replace("facet_","").replace("_","&nbsp;")+"&nbsp;"}).append($("<a />",{"class":"hlp-ico",href:"#help","data-text":c[k[a]]}).append($("<img />",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB/UlEQVRYhbVXbXXDMAwshEIYhDKo37vz75XJymBl0DBoGGwMEgYNg45BwqD7MWVTFDu20+7ey5/4QyfJOtmbTQEAHABcSDYkryTv8l1JNjL2WrJnEs65FwAXAL0yuPgB6AFcnHPbh4yTPJUYDhEh+b7G660J8bhhB6Ai6bz3u3G+935H0gGoAHQBMtfsaHjvdwGvW5KuIHJO1kyioUlHPQ8YP+YaDhA5WhLRSATCPpR4vUDCyV6/6YhNPBnPHzZuSOi9T5MJUmr9UthXVMBNO6HTMUsFgFofuIgXa8rwZvZo1VitB3SO3CaAtVoQSwWAfvT+oOs8ZPxZBMTel7J3mIQfQBUjkIsMAtXEnhEM998ETEW0Gy2dSaVagIjYR4qAyPafJixNzoW06WDTCs2fjD9CIOa1fAOAQ5LA2hQseU3yM6b5OgUAutWHsNRrtW52CFeVYYnXGrMy1ELEWKd6ImZCJN4kpfgZMOEfNCvdjJrMzZLlFlgTbkZyGdFRSN6CSglwejsaZueFhReSEgJMXUhGaE2QGo+SyCXAn9tyr/aNdtxQKu4A3pa8W4IJezj0FqJUg1nYFIqUkzUT49lKKxo/e2DIPe/svd/bh4n3fk/yLHPsum7VM00Opo1GyTdED1wuJBp1IZEBQP3w49RCOmBNsjUV08m/KtWMLL4BdNT44JoqBUYAAAAASUVORK5CYII="})))).append(e).appendTo(f)}),f.appendTo(e),e.appendTo(d),i.products.upsert(a,function(){$("#batteryfinder").trigger("db:ready")})}})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./vendor/jquery.qtip":2,dataTables:3,jquery:5,lodash:6,minimongo:7}],2:[function(a,b,c){!function(a,b,c){!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):jQuery&&!jQuery.fn.qtip&&a(jQuery)}(function(d){"use strict";function e(a,b,c,e){this.id=c,this.target=a,this.tooltip=F,this.elements={target:a},this._id=S+"-"+c,this.timers={img:{}},this.options=b,this.plugins={},this.cache={event:{},target:d(),disabled:E,attr:e,onTooltip:E,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=E}function f(a){return a===F||"object"!==d.type(a)}function g(a){return!(d.isFunction(a)||a&&a.attr||a.length||"object"===d.type(a)&&(a.jquery||a.then))}function h(a){var b,c,e,h;return f(a)?E:(f(a.metadata)&&(a.metadata={type:a.metadata}),"content"in a&&(b=a.content,f(b)||b.jquery||b.done?b=a.content={text:c=g(b)?E:b}:c=b.text,"ajax"in b&&(e=b.ajax,h=e&&e.once!==E,delete b.ajax,b.text=function(a,b){var f=c||d(this).attr(b.options.content.attr)||"Loading...",g=d.ajax(d.extend({},e,{context:b})).then(e.success,F,e.error).then(function(a){return a&&h&&b.set("content.text",a),a},function(a,c,d){b.destroyed||0===a.status||b.set("content.text",c+": "+d)});return h?f:(b.set("content.text",f),g)}),"title"in b&&(d.isPlainObject(b.title)&&(b.button=b.title.button,b.title=b.title.text),g(b.title||E)&&(b.title=E))),"position"in a&&f(a.position)&&(a.position={my:a.position,at:a.position}),"show"in a&&f(a.show)&&(a.show=a.show.jquery?{target:a.show}:a.show===D?{ready:D}:{event:a.show}),"hide"in a&&f(a.hide)&&(a.hide=a.hide.jquery?{target:a.hide}:{event:a.hide}),"style"in a&&f(a.style)&&(a.style={classes:a.style}),d.each(R,function(){this.sanitize&&this.sanitize(a)}),a)}function i(a,b){for(var c,d=0,e=a,f=b.split(".");e=e[f[d++]];)d<f.length&&(c=e);return[c||a,f.pop()]}function j(a,b){var c,d,e;for(c in this.checks)for(d in this.checks[c])(e=new RegExp(d,"i").exec(a))&&(b.push(e),("builtin"===c||this.plugins[c])&&this.checks[c][d].apply(this.plugins[c]||this,b))}function k(a){return V.concat("").join(a?"-"+a+" ":" ")}function l(a,b){return b>0?setTimeout(d.proxy(a,this),b):void a.call(this)}function m(a){this.tooltip.hasClass(aa)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=l.call(this,function(){this.toggle(D,a)},this.options.show.delay))}function n(a){if(!this.tooltip.hasClass(aa)&&!this.destroyed){var b=d(a.relatedTarget),c=b.closest(W)[0]===this.tooltip[0],e=b[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==b[0]&&"mouse"===this.options.position.target&&c||this.options.hide.fixed&&/mouse(out|leave|move)/.test(a.type)&&(c||e))try{a.preventDefault(),a.stopImmediatePropagation()}catch(f){}else this.timers.hide=l.call(this,function(){this.toggle(E,a)},this.options.hide.delay,this)}}function o(a){!this.tooltip.hasClass(aa)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=l.call(this,function(){this.hide(a)},this.options.hide.inactive))}function p(a){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(a)}function q(a,c,e){d(b.body).delegate(a,(c.split?c:c.join("."+S+" "))+"."+S,function(){var a=y.api[d.attr(this,U)];a&&!a.disabled&&e.apply(a,arguments)})}function r(a,c,f){var g,i,j,k,l,m=d(b.body),n=a[0]===b?m:a,o=a.metadata?a.metadata(f.metadata):F,p="html5"===f.metadata.type&&o?o[f.metadata.name]:F,q=a.data(f.metadata.name||"qtipopts");try{q="string"==typeof q?d.parseJSON(q):q}catch(r){}if(k=d.extend(D,{},y.defaults,f,"object"==typeof q?h(q):F,h(p||o)),i=k.position,k.id=c,"boolean"==typeof k.content.text){if(j=a.attr(k.content.attr),k.content.attr===E||!j)return E;k.content.text=j}if(i.container.length||(i.container=m),i.target===E&&(i.target=n),k.show.target===E&&(k.show.target=n),k.show.solo===D&&(k.show.solo=i.container.closest("body")),k.hide.target===E&&(k.hide.target=n),k.position.viewport===D&&(k.position.viewport=i.container),i.container=i.container.eq(0),i.at=new A(i.at,D),i.my=new A(i.my),a.data(S))if(k.overwrite)a.qtip("destroy",!0);else if(k.overwrite===E)return E;return a.attr(T,c),k.suppress&&(l=a.attr("title"))&&a.removeAttr("title").attr(ca,l).attr("title",""),g=new e(a,k,c,!!j),a.data(S,g),g}function s(a){return a.charAt(0).toUpperCase()+a.slice(1)}function t(a,b){var d,e,f=b.charAt(0).toUpperCase()+b.slice(1),g=(b+" "+ra.join(f+" ")+f).split(" "),h=0;if(qa[b])return a.css(qa[b]);for(;d=g[h++];)if((e=a.css(d))!==c)return qa[b]=d,e}function u(a,b){return Math.ceil(parseFloat(t(a,b)))}function v(a,b){this._ns="tip",this.options=b,this.offset=b.offset,this.size=[b.width,b.height],this.init(this.qtip=a)}function w(a,b){this.options=b,this._ns="-modal",this.init(this.qtip=a)}function x(a,b){this._ns="ie6",this.init(this.qtip=a)}var y,z,A,B,C,D=!0,E=!1,F=null,G="x",H="y",I="width",J="height",K="top",L="left",M="bottom",N="right",O="center",P="flipinvert",Q="shift",R={},S="qtip",T="data-hasqtip",U="data-qtip-id",V=["ui-widget","ui-tooltip"],W="."+S,X="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Y=S+"-fixed",Z=S+"-default",$=S+"-focus",_=S+"-hover",aa=S+"-disabled",ba="_replacedByqTip",ca="oldtitle",da={ie:function(){for(var a=4,c=b.createElement("div");(c.innerHTML="<!--[if gt IE "+a+"]><i></i><![endif]-->")&&c.getElementsByTagName("i")[0];a+=1);return a>4?a:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||E};z=e.prototype,z._when=function(a){return d.when.apply(d,a)},z.render=function(a){if(this.rendered||this.destroyed)return this;var b,c=this,e=this.options,f=this.cache,g=this.elements,h=e.content.text,i=e.content.title,j=e.content.button,k=e.position,l=("."+this._id+" ",[]);return d.attr(this.target[0],"aria-describedby",this._id),f.posClass=this._createPosClass((this.position={my:k.my,at:k.at}).my),this.tooltip=g.tooltip=b=d("<div/>",{id:this._id,"class":[S,Z,e.style.classes,f.posClass].join(" "),width:e.style.width||"",height:e.style.height||"",tracking:"mouse"===k.target&&k.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":E,"aria-describedby":this._id+"-content","aria-hidden":D}).toggleClass(aa,this.disabled).attr(U,this.id).data(S,this).appendTo(k.container).append(g.content=d("<div />",{"class":S+"-content",id:this._id+"-content","aria-atomic":D})),this.rendered=-1,this.positioning=D,i&&(this._createTitle(),d.isFunction(i)||l.push(this._updateTitle(i,E))),j&&this._createButton(),d.isFunction(h)||l.push(this._updateContent(h,E)),this.rendered=D,this._setWidget(),d.each(R,function(a){var b;"render"===this.initialize&&(b=this(c))&&(c.plugins[a]=b)}),this._unassignEvents(),this._assignEvents(),this._when(l).then(function(){c._trigger("render"),c.positioning=E,c.hiddenDuringWait||!e.show.ready&&!a||c.toggle(D,f.event,E),c.hiddenDuringWait=E}),y.api[this.id]=this,this},z.destroy=function(a){function b(){if(!this.destroyed){this.destroyed=D;var a,b=this.target,c=b.attr(ca);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),d.each(this.plugins,function(a){this.destroy&&this.destroy()});for(a in this.timers)clearTimeout(this.timers[a]);b.removeData(S).removeAttr(U).removeAttr(T).removeAttr("aria-describedby"),this.options.suppress&&c&&b.attr("title",c).removeAttr(ca),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=F,delete y.api[this.id]}}return this.destroyed?this.target:(a===D&&"hide"!==this.triggering||!this.rendered?b.call(this):(this.tooltip.one("tooltiphidden",d.proxy(b,this)),!this.triggering&&this.hide()),this.target)},B=z.checks={builtin:{"^id$":function(a,b,c,e){var f=c===D?y.nextid:c,g=S+"-"+f;f!==E&&f.length>0&&!d("#"+g).length?(this._id=g,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):a[b]=e},"^prerender":function(a,b,c){c&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(a,b,c){this._updateContent(c)},"^content.attr$":function(a,b,c,d){this.options.content.text===this.target.attr(d)&&this._updateContent(this.target.attr(c))},"^content.title$":function(a,b,c){return c?(c&&!this.elements.title&&this._createTitle(),void this._updateTitle(c)):this._removeTitle()},"^content.button$":function(a,b,c){this._updateButton(c)},"^content.title.(text|button)$":function(a,b,c){this.set("content."+b,c)},"^position.(my|at)$":function(a,b,c){"string"==typeof c&&(this.position[b]=a[b]=new A(c,"at"===b))},"^position.container$":function(a,b,c){this.rendered&&this.tooltip.appendTo(c)},"^show.ready$":function(a,b,c){c&&(!this.rendered&&this.render(D)||this.toggle(D))},"^style.classes$":function(a,b,c,d){this.rendered&&this.tooltip.removeClass(d).addClass(c)},"^style.(width|height)":function(a,b,c){this.rendered&&this.tooltip.css(b,c)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(a,b,c){this.rendered&&this.tooltip.toggleClass(Z,!!c)},"^events.(render|show|move|hide|focus|blur)$":function(a,b,c){this.rendered&&this.tooltip[(d.isFunction(c)?"":"un")+"bind"]("tooltip"+b,c)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var a=this.options.position;this.tooltip.attr("tracking","mouse"===a.target&&a.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},z.get=function(a){if(this.destroyed)return this;var b=i(this.options,a.toLowerCase()),c=b[0][b[1]];return c.precedance?c.string():c};var ea=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,fa=/^prerender|show\.ready/i;z.set=function(a,b){if(this.destroyed)return this;var c,e=this.rendered,f=E,g=this.options;this.checks;return"string"==typeof a?(c=a,a={},a[c]=b):a=d.extend({},a),d.each(a,function(b,c){if(e&&fa.test(b))return void delete a[b];var h,j=i(g,b.toLowerCase());h=j[0][j[1]],j[0][j[1]]=c&&c.nodeType?d(c):c,f=ea.test(b)||f,a[b]=[j[0],j[1],c,h]}),h(g),this.positioning=D,d.each(a,d.proxy(j,this)),this.positioning=E,this.rendered&&this.tooltip[0].offsetWidth>0&&f&&this.reposition("mouse"===g.position.target?F:this.cache.event),this},z._update=function(a,b,c){var e=this,f=this.cache;return this.rendered&&a?(d.isFunction(a)&&(a=a.call(this.elements.target,f.event,this)||""),d.isFunction(a.then)?(f.waiting=D,a.then(function(a){return f.waiting=E,e._update(a,b)},F,function(a){return e._update(a,b)})):a===E||!a&&""!==a?E:(a.jquery&&a.length>0?b.empty().append(a.css({display:"block",visibility:"visible"})):b.html(a),this._waitForContent(b).then(function(a){e.rendered&&e.tooltip[0].offsetWidth>0&&e.reposition(f.event,!a.length)}))):E},z._waitForContent=function(a){var b=this.cache;return b.waiting=D,(d.fn.imagesLoaded?a.imagesLoaded():d.Deferred().resolve([])).done(function(){b.waiting=E}).promise()},z._updateContent=function(a,b){this._update(a,this.elements.content,b)},z._updateTitle=function(a,b){this._update(a,this.elements.title,b)===E&&this._removeTitle(E)},z._createTitle=function(){var a=this.elements,b=this._id+"-title";a.titlebar&&this._removeTitle(),a.titlebar=d("<div />",{"class":S+"-titlebar "+(this.options.style.widget?k("header"):"")}).append(a.title=d("<div />",{id:b,"class":S+"-title","aria-atomic":D})).insertBefore(a.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(a){d(this).toggleClass("ui-state-active ui-state-focus","down"===a.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(a){d(this).toggleClass("ui-state-hover","mouseover"===a.type)}),this.options.content.button&&this._createButton()},z._removeTitle=function(a){var b=this.elements;b.title&&(b.titlebar.remove(),b.titlebar=b.title=b.button=F,a!==E&&this.reposition())},z._createPosClass=function(a){return S+"-pos-"+(a||this.options.position.my).abbrev()},z.reposition=function(c,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=D;var f,g,h,i,j=this.cache,k=this.tooltip,l=this.options.position,m=l.target,n=l.my,o=l.at,p=l.viewport,q=l.container,r=l.adjust,s=r.method.split(" "),t=k.outerWidth(E),u=k.outerHeight(E),v=0,w=0,x=k.css("position"),y={left:0,top:0},z=k[0].offsetWidth>0,A=c&&"scroll"===c.type,B=d(a),C=q[0].ownerDocument,F=this.mouse;if(d.isArray(m)&&2===m.length)o={x:L,y:K},y={left:m[0],top:m[1]};else if("mouse"===m)o={x:L,y:K},(!r.mouse||this.options.hide.distance)&&j.origin&&j.origin.pageX?c=j.origin:!c||c&&("resize"===c.type||"scroll"===c.type)?c=j.event:F&&F.pageX&&(c=F),"static"!==x&&(y=q.offset()),C.body.offsetWidth!==(a.innerWidth||C.documentElement.clientWidth)&&(g=d(b.body).offset()),y={left:c.pageX-y.left+(g&&g.left||0),top:c.pageY-y.top+(g&&g.top||0)},r.mouse&&A&&F&&(y.left-=(F.scrollX||0)-B.scrollLeft(),y.top-=(F.scrollY||0)-B.scrollTop());else{if("event"===m?c&&c.target&&"scroll"!==c.type&&"resize"!==c.type?j.target=d(c.target):c.target||(j.target=this.elements.target):"event"!==m&&(j.target=d(m.jquery?m:this.elements.target)),m=j.target,m=d(m).eq(0),0===m.length)return this;m[0]===b||m[0]===a?(v=da.iOS?a.innerWidth:m.width(),w=da.iOS?a.innerHeight:m.height(),m[0]===a&&(y={top:(p||m).scrollTop(),left:(p||m).scrollLeft()})):R.imagemap&&m.is("area")?f=R.imagemap(this,m,o,R.viewport?s:E):R.svg&&m&&m[0].ownerSVGElement?f=R.svg(this,m,o,R.viewport?s:E):(v=m.outerWidth(E),w=m.outerHeight(E),y=m.offset()),f&&(v=f.width,w=f.height,g=f.offset,y=f.position),y=this.reposition.offset(m,y,q),(da.iOS>3.1&&da.iOS<4.1||da.iOS>=4.3&&da.iOS<4.33||!da.iOS&&"fixed"===x)&&(y.left-=B.scrollLeft(),y.top-=B.scrollTop()),(!f||f&&f.adjustable!==E)&&(y.left+=o.x===N?v:o.x===O?v/2:0,y.top+=o.y===M?w:o.y===O?w/2:0)}return y.left+=r.x+(n.x===N?-t:n.x===O?-t/2:0),y.top+=r.y+(n.y===M?-u:n.y===O?-u/2:0),R.viewport?(h=y.adjusted=R.viewport(this,y,l,v,w,t,u),g&&h.left&&(y.left+=g.left),g&&h.top&&(y.top+=g.top),h.my&&(this.position.my=h.my)):y.adjusted={left:0,top:0},j.posClass!==(i=this._createPosClass(this.position.my))&&k.removeClass(j.posClass).addClass(j.posClass=i),this._trigger("move",[y,p.elem||p],c)?(delete y.adjusted,e===E||!z||isNaN(y.left)||isNaN(y.top)||"mouse"===m||!d.isFunction(l.effect)?k.css(y):d.isFunction(l.effect)&&(l.effect.call(k,this,d.extend({},y)),k.queue(function(a){d(this).css({opacity:"",height:""}),da.ie&&this.style.removeAttribute("filter"),a()})),this.positioning=E,this):this},z.reposition.offset=function(a,c,e){function f(a,b){c.left+=b*a.scrollLeft(),c.top+=b*a.scrollTop()}if(!e[0])return c;var g,h,i,j,k=d(a[0].ownerDocument),l=!!da.ie&&"CSS1Compat"!==b.compatMode,m=e[0];do"static"!==(h=d.css(m,"position"))&&("fixed"===h?(i=m.getBoundingClientRect(),f(k,-1)):(i=d(m).position(),i.left+=parseFloat(d.css(m,"borderLeftWidth"))||0,i.top+=parseFloat(d.css(m,"borderTopWidth"))||0),c.left-=i.left+(parseFloat(d.css(m,"marginLeft"))||0),c.top-=i.top+(parseFloat(d.css(m,"marginTop"))||0),g||"hidden"===(j=d.css(m,"overflow"))||"visible"===j||(g=d(m)));while(m=m.offsetParent);return g&&(g[0]!==k[0]||l)&&f(g,1),c};var ga=(A=z.reposition.Corner=function(a,b){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,O).toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!b;var c=a.charAt(0);this.precedance="t"===c||"b"===c?H:G}).prototype;ga.invert=function(a,b){this[a]=this[a]===L?N:this[a]===N?L:b||this[a]},ga.string=function(a){var b=this.x,c=this.y,d=b!==c?"center"===b||"center"!==c&&(this.precedance===H||this.forceY)?[c,b]:[b,c]:[b];return a!==!1?d.join(" "):d},ga.abbrev=function(){var a=this.string(!1);return a[0].charAt(0)+(a[1]&&a[1].charAt(0)||"")},ga.clone=function(){return new A(this.string(),this.forceY)},z.toggle=function(a,c){var e=this.cache,f=this.options,g=this.tooltip;if(c){if(/over|enter/.test(c.type)&&e.event&&/out|leave/.test(e.event.type)&&f.show.target.add(c.target).length===f.show.target.length&&g.has(c.relatedTarget).length)return this;e.event=d.event.fix(c)}if(this.waiting&&!a&&(this.hiddenDuringWait=D),!this.rendered)return a?this.render(1):this;if(this.destroyed||this.disabled)return this;var h,i,j,k=a?"show":"hide",l=this.options[k],m=(this.options[a?"hide":"show"],this.options.position),n=this.options.content,o=this.tooltip.css("width"),p=this.tooltip.is(":visible"),q=a||1===l.target.length,r=!c||l.target.length<2||e.target[0]===c.target;return(typeof a).search("boolean|number")&&(a=!p),h=!g.is(":animated")&&p===a&&r,i=h?F:!!this._trigger(k,[90]),this.destroyed?this:(i!==E&&a&&this.focus(c),!i||h?this:(d.attr(g[0],"aria-hidden",!a),a?(this.mouse&&(e.origin=d.event.fix(this.mouse)),d.isFunction(n.text)&&this._updateContent(n.text,E),d.isFunction(n.title)&&this._updateTitle(n.title,E),!C&&"mouse"===m.target&&m.adjust.mouse&&(d(b).bind("mousemove."+S,this._storeMouse),C=D),o||g.css("width",g.outerWidth(E)),this.reposition(c,arguments[2]),o||g.css("width",""),l.solo&&("string"==typeof l.solo?d(l.solo):d(W,l.solo)).not(g).not(l.target).qtip("hide",d.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete e.origin,C&&!d(W+'[tracking="true"]:visible',l.solo).not(g).length&&(d(b).unbind("mousemove."+S),C=E),this.blur(c)),j=d.proxy(function(){a?(da.ie&&g[0].style.removeAttribute("filter"),g.css("overflow",""),"string"==typeof l.autofocus&&d(this.options.show.autofocus,g).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):g.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(a?"visible":"hidden")},this),l.effect===E||q===E?(g[k](),j()):d.isFunction(l.effect)?(g.stop(1,1),l.effect.call(g,this),g.queue("fx",function(a){j(),a()})):g.fadeTo(90,a?1:0,j),a&&l.target.trigger("qtip-"+this.id+"-inactive"),this))},z.show=function(a){return this.toggle(D,a)},z.hide=function(a){return this.toggle(E,a)},z.focus=function(a){if(!this.rendered||this.destroyed)return this;var b=d(W),c=this.tooltip,e=parseInt(c[0].style.zIndex,10),f=y.zindex+b.length;return c.hasClass($)||this._trigger("focus",[f],a)&&(e!==f&&(b.each(function(){this.style.zIndex>e&&(this.style.zIndex=this.style.zIndex-1)}),b.filter("."+$).qtip("blur",a)),c.addClass($)[0].style.zIndex=f),this},z.blur=function(a){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass($),this._trigger("blur",[this.tooltip.css("zIndex")],a),this)},z.disable=function(a){return this.destroyed?this:("toggle"===a?a=!(this.rendered?this.tooltip.hasClass(aa):this.disabled):"boolean"!=typeof a&&(a=D),this.rendered&&this.tooltip.toggleClass(aa,a).attr("aria-disabled",a),this.disabled=!!a,this)},z.enable=function(){return this.disable(E)},z._createButton=function(){var a=this,b=this.elements,c=b.tooltip,e=this.options.content.button,f="string"==typeof e,g=f?e:"Close tooltip";b.button&&b.button.remove(),e.jquery?b.button=e:b.button=d("<a />",{"class":"qtip-close "+(this.options.style.widget?"":S+"-icon"),title:g,"aria-label":g}).prepend(d("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),b.button.appendTo(b.titlebar||c).attr("role","button").click(function(b){return c.hasClass(aa)||a.hide(b),E})},z._updateButton=function(a){if(!this.rendered)return E;var b=this.elements.button;a?this._createButton():b.remove()},z._setWidget=function(){var a=this.options.style.widget,b=this.elements,c=b.tooltip,d=c.hasClass(aa);c.removeClass(aa),aa=a?"ui-state-disabled":"qtip-disabled",c.toggleClass(aa,d),c.toggleClass("ui-helper-reset "+k(),a).toggleClass(Z,this.options.style.def&&!a),b.content&&b.content.toggleClass(k("content"),a),b.titlebar&&b.titlebar.toggleClass(k("header"),a),b.button&&b.button.toggleClass(S+"-icon",!a)},z._storeMouse=function(a){return(this.mouse=d.event.fix(a)).type="mousemove",this},z._bind=function(a,b,c,e,f){if(a&&c&&b.length){var g="."+this._id+(e?"-"+e:"");return d(a).bind((b.split?b:b.join(g+" "))+g,d.proxy(c,f||this)),this}},z._unbind=function(a,b){return a&&d(a).unbind("."+this._id+(b?"-"+b:"")),this},z._trigger=function(a,b,c){var e=d.Event("tooltip"+a);return e.originalEvent=c&&d.extend({},c)||this.cache.event||F,this.triggering=a,this.tooltip.trigger(e,[this].concat(b||[])),this.triggering=E,!e.isDefaultPrevented()},z._bindEvents=function(a,b,c,e,f,g){var h=c.filter(e).add(e.filter(c)),i=[];h.length&&(d.each(b,function(b,c){var e=d.inArray(c,a);e>-1&&i.push(a.splice(e,1)[0])}),i.length&&(this._bind(h,i,function(a){var b=this.rendered?this.tooltip[0].offsetWidth>0:!1;(b?g:f).call(this,a)}),c=c.not(h),e=e.not(h))),this._bind(c,a,f),this._bind(e,b,g)},z._assignInitialEvents=function(a){function b(a){return this.disabled||this.destroyed?E:(this.cache.event=a&&d.event.fix(a),this.cache.target=a&&d(a.target),clearTimeout(this.timers.show),void(this.timers.show=l.call(this,function(){this.render("object"==typeof a||c.show.ready)},c.prerender?0:c.show.delay)))}var c=this.options,e=c.show.target,f=c.hide.target,g=c.show.event?d.trim(""+c.show.event).split(" "):[],h=c.hide.event?d.trim(""+c.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(a){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(c.show.event)&&!/mouse(out|leave)/i.test(c.hide.event)&&h.push("mouseleave"),this._bind(e,"mousemove",function(a){this._storeMouse(a),this.cache.onTarget=D}),this._bindEvents(g,h,e,f,b,function(){return this.timers?void clearTimeout(this.timers.show):E}),(c.show.ready||c.prerender)&&b.call(this,a)},z._assignEvents=function(){var c=this,e=this.options,f=e.position,g=this.tooltip,h=e.show.target,i=e.hide.target,j=f.container,k=f.viewport,l=d(b),q=(d(b.body),d(a)),r=e.show.event?d.trim(""+e.show.event).split(" "):[],s=e.hide.event?d.trim(""+e.hide.event).split(" "):[];d.each(e.events,function(a,b){c._bind(g,"toggle"===a?["tooltipshow","tooltiphide"]:["tooltip"+a],b,null,g)}),/mouse(out|leave)/i.test(e.hide.event)&&"window"===e.hide.leave&&this._bind(l,["mouseout","blur"],function(a){/select|option/.test(a.target.nodeName)||a.relatedTarget||this.hide(a)}),e.hide.fixed?i=i.add(g.addClass(Y)):/mouse(over|enter)/i.test(e.show.event)&&this._bind(i,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+e.hide.event).indexOf("unfocus")>-1&&this._bind(j.closest("html"),["mousedown","touchstart"],function(a){var b=d(a.target),c=this.rendered&&!this.tooltip.hasClass(aa)&&this.tooltip[0].offsetWidth>0,e=b.parents(W).filter(this.tooltip[0]).length>0;b[0]===this.target[0]||b[0]===this.tooltip[0]||e||this.target.has(b[0]).length||!c||this.hide(a)}),"number"==typeof e.hide.inactive&&(this._bind(h,"qtip-"+this.id+"-inactive",o,"inactive"),this._bind(i.add(g),y.inactiveEvents,o)),this._bindEvents(r,s,h,i,m,n),this._bind(h.add(g),"mousemove",function(a){if("number"==typeof e.hide.distance){var b=this.cache.origin||{},c=this.options.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&this.hide(a)}this._storeMouse(a)}),"mouse"===f.target&&f.adjust.mouse&&(e.hide.event&&this._bind(h,["mouseenter","mouseleave"],function(a){return this.cache?void(this.cache.onTarget="mouseenter"===a.type):E}),this._bind(l,"mousemove",function(a){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(aa)&&this.tooltip[0].offsetWidth>0&&this.reposition(a)})),(f.adjust.resize||k.length)&&this._bind(d.event.special.resize?k:q,"resize",p),f.adjust.scroll&&this._bind(q.add(f.container),"scroll",p)},z._unassignEvents=function(){var c=this.options,e=c.show.target,f=c.hide.target,g=d.grep([this.elements.target[0],this.rendered&&this.tooltip[0],c.position.container[0],c.position.viewport[0],c.position.container.closest("html")[0],a,b],function(a){return"object"==typeof a});e&&e.toArray&&(g=g.concat(e.toArray())),f&&f.toArray&&(g=g.concat(f.toArray())),this._unbind(g)._unbind(g,"destroy")._unbind(g,"inactive")},d(function(){q(W,["mouseenter","mouseleave"],function(a){var b="mouseenter"===a.type,c=d(a.currentTarget),e=d(a.relatedTarget||a.target),f=this.options;b?(this.focus(a),c.hasClass(Y)&&!c.hasClass(aa)&&clearTimeout(this.timers.hide)):"mouse"===f.position.target&&f.position.adjust.mouse&&f.hide.event&&f.show.target&&!e.closest(f.show.target[0]).length&&this.hide(a),
  c.toggleClass(_,b)}),q("["+U+"]",X,o)}),y=d.fn.qtip=function(a,b,e){var f=(""+a).toLowerCase(),g=F,i=d.makeArray(arguments).slice(1),j=i[i.length-1],k=this[0]?d.data(this[0],S):F;return!arguments.length&&k||"api"===f?k:"string"==typeof a?(this.each(function(){var a=d.data(this,S);if(!a)return D;if(j&&j.timeStamp&&(a.cache.event=j),!b||"option"!==f&&"options"!==f)a[f]&&a[f].apply(a,i);else{if(e===c&&!d.isPlainObject(b))return g=a.get(b),E;a.set(b,e)}}),g!==F?g:this):"object"!=typeof a&&arguments.length?void 0:(k=h(d.extend(D,{},a)),this.each(function(a){var b,c;return c=d.isArray(k.id)?k.id[a]:k.id,c=!c||c===E||c.length<1||y.api[c]?y.nextid++:c,b=r(d(this),c,k),b===E?D:(y.api[c]=b,d.each(R,function(){"initialize"===this.initialize&&this(b)}),void b._assignInitialEvents(j))}))},d.qtip=e,y.api={},d.each({attr:function(a,b){if(this.length){var c=this[0],e="title",f=d.data(c,"qtip");if(a===e&&f&&"object"==typeof f&&f.options.suppress)return arguments.length<2?d.attr(c,ca):(f&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",b),this.attr(ca,b))}return d.fn["attr"+ba].apply(this,arguments)},clone:function(a){var b=(d([]),d.fn["clone"+ba].apply(this,arguments));return a||b.filter("["+ca+"]").attr("title",function(){return d.attr(this,ca)}).removeAttr(ca),b}},function(a,b){if(!b||d.fn[a+ba])return D;var c=d.fn[a+ba]=d.fn[a];d.fn[a]=function(){return b.apply(this,arguments)||c.apply(this,arguments)}}),d.ui||(d["cleanData"+ba]=d.cleanData,d.cleanData=function(a){for(var b,c=0;(b=d(a[c])).length;c++)if(b.attr(T))try{b.triggerHandler("removeqtip")}catch(e){}d["cleanData"+ba].apply(this,arguments)}),y.version="2.2.1",y.nextid=0,y.inactiveEvents=X,y.zindex=15e3,y.defaults={prerender:E,id:E,overwrite:D,suppress:D,content:{text:D,attr:"title",title:E,button:E},position:{my:"top left",at:"bottom right",target:E,container:E,viewport:E,adjust:{x:0,y:0,mouse:D,scroll:D,resize:D,method:"flipinvert flipinvert"},effect:function(a,b,c){d(this).animate(b,{duration:200,queue:E})}},show:{target:E,event:"mouseenter",effect:D,delay:90,solo:E,ready:E,autofocus:E},hide:{target:E,event:"mouseleave",effect:D,delay:0,fixed:E,inactive:E,leave:"window",distance:E},style:{classes:"",widget:E,width:E,height:E,def:D},events:{render:F,move:F,show:F,hide:F,toggle:F,visible:F,hidden:F,focus:F,blur:F}};var ha,ia="margin",ja="border",ka="color",la="background-color",ma="transparent",na=" !important",oa=!!b.createElement("canvas").getContext,pa=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,qa={},ra=["Webkit","O","Moz","ms"];if(oa)var sa=a.devicePixelRatio||1,ta=function(){var a=b.createElement("canvas").getContext("2d");return a.backingStorePixelRatio||a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||1}(),ua=sa/ta;else var va=function(a,b,c){return"<qtipvml:"+a+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(b||"")+' style="behavior: url(#default#VML); '+(c||"")+'" />'};d.extend(v.prototype,{init:function(a){var b,c;c=this.element=a.elements.tip=d("<div />",{"class":S+"-tip"}).prependTo(a.tooltip),oa?(b=d("<canvas />").appendTo(this.element)[0].getContext("2d"),b.lineJoin="miter",b.miterLimit=1e5,b.save()):(b=va("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(b+b),a._bind(d("*",c).add(c),["click","mousedown"],function(a){a.stopPropagation()},this._ns)),a._bind(a.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(a){var b=this.qtip.elements.titlebar;return b&&(a.y===K||a.y===O&&this.element.position().top+this.size[1]/2+this.options.offset<b.outerHeight(D))},_parseCorner:function(a){var b=this.qtip.options.position.my;return a===E||b===E?a=E:a===D?a=new A(b.string()):a.string||(a=new A(a),a.fixed=D),a},_parseWidth:function(a,b,c){var d=this.qtip.elements,e=ja+s(b)+"Width";return(c?u(c,e):u(d.content,e)||u(this._useTitle(a)&&d.titlebar||d.content,e)||u(d.tooltip,e))||0},_parseRadius:function(a){var b=this.qtip.elements,c=ja+s(a.y)+s(a.x)+"Radius";return da.ie<9?0:u(this._useTitle(a)&&b.titlebar||b.content,c)||u(b.tooltip,c)||0},_invalidColour:function(a,b,c){var d=a.css(b);return!d||c&&d===a.css(c)||pa.test(d)?E:d},_parseColours:function(a){var b=this.qtip.elements,c=this.element.css("cssText",""),e=ja+s(a[a.precedance])+s(ka),f=this._useTitle(a)&&b.titlebar||b.content,g=this._invalidColour,h=[];return h[0]=g(c,la)||g(f,la)||g(b.content,la)||g(b.tooltip,la)||c.css(la),h[1]=g(c,e,ka)||g(f,e,ka)||g(b.content,e,ka)||g(b.tooltip,e,ka)||b.tooltip.css(e),d("*",c).add(c).css("cssText",la+":"+ma+na+";"+ja+":0"+na+";"),h},_calculateSize:function(a){var b,c,d,e=a.precedance===H,f=this.options.width,g=this.options.height,h="c"===a.abbrev(),i=(e?f:g)*(h?.5:1),j=Math.pow,k=Math.round,l=Math.sqrt(j(i,2)+j(g,2)),m=[this.border/i*l,this.border/g*l];return m[2]=Math.sqrt(j(m[0],2)-j(this.border,2)),m[3]=Math.sqrt(j(m[1],2)-j(this.border,2)),b=l+m[2]+m[3]+(h?0:m[0]),c=b/l,d=[k(c*f),k(c*g)],e?d:d.reverse()},_calculateTip:function(a,b,c){c=c||1,b=b||this.size;var d=b[0]*c,e=b[1]*c,f=Math.ceil(d/2),g=Math.ceil(e/2),h={br:[0,0,d,e,d,0],bl:[0,0,d,0,0,e],tr:[0,e,d,0,d,e],tl:[0,0,0,e,d,e],tc:[0,e,f,0,d,e],bc:[0,0,d,0,f,e],rc:[0,0,d,g,0,e],lc:[d,0,d,e,0,g]};return h.lt=h.br,h.rt=h.bl,h.lb=h.tr,h.rb=h.tl,h[a.abbrev()]},_drawCoords:function(a,b){a.beginPath(),a.moveTo(b[0],b[1]),a.lineTo(b[2],b[3]),a.lineTo(b[4],b[5]),a.closePath()},create:function(){var a=this.corner=(oa||da.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=a.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(b,c){if(!this.enabled)return this;var e,f,g,h,i,j,k,l,m=this.qtip.elements,n=this.element,o=n.children(),p=this.options,q=this.size,r=p.mimic,s=Math.round;b||(b=this.qtip.cache.corner||this.corner),r===E?r=b:(r=new A(r),r.precedance=b.precedance,"inherit"===r.x?r.x=b.x:"inherit"===r.y?r.y=b.y:r.x===r.y&&(r[b.precedance]=b[b.precedance])),f=r.precedance,b.precedance===G?this._swapDimensions():this._resetDimensions(),e=this.color=this._parseColours(b),e[1]!==ma?(l=this.border=this._parseWidth(b,b[b.precedance]),p.border&&1>l&&!pa.test(e[1])&&(e[0]=e[1]),this.border=l=p.border!==D?p.border:l):this.border=l=0,k=this.size=this._calculateSize(b),n.css({width:k[0],height:k[1],lineHeight:k[1]+"px"}),j=b.precedance===H?[s(r.x===L?l:r.x===N?k[0]-q[0]-l:(k[0]-q[0])/2),s(r.y===K?k[1]-q[1]:0)]:[s(r.x===L?k[0]-q[0]:0),s(r.y===K?l:r.y===M?k[1]-q[1]-l:(k[1]-q[1])/2)],oa?(g=o[0].getContext("2d"),g.restore(),g.save(),g.clearRect(0,0,6e3,6e3),h=this._calculateTip(r,q,ua),i=this._calculateTip(r,this.size,ua),o.attr(I,k[0]*ua).attr(J,k[1]*ua),o.css(I,k[0]).css(J,k[1]),this._drawCoords(g,i),g.fillStyle=e[1],g.fill(),g.translate(j[0]*ua,j[1]*ua),this._drawCoords(g,h),g.fillStyle=e[0],g.fill()):(h=this._calculateTip(r),h="m"+h[0]+","+h[1]+" l"+h[2]+","+h[3]+" "+h[4]+","+h[5]+" xe",j[2]=l&&/^(r|b)/i.test(b.string())?8===da.ie?2:1:0,o.css({coordsize:k[0]+l+" "+(k[1]+l),antialias:""+(r.string().indexOf(O)>-1),left:j[0]-j[2]*Number(f===G),top:j[1]-j[2]*Number(f===H),width:k[0]+l,height:k[1]+l}).each(function(a){var b=d(this);b[b.prop?"prop":"attr"]({coordsize:k[0]+l+" "+(k[1]+l),path:h,fillcolor:e[0],filled:!!a,stroked:!a}).toggle(!(!l&&!a)),!a&&b.html(va("stroke",'weight="'+2*l+'px" color="'+e[1]+'" miterlimit="1000" joinstyle="miter"'))})),a.opera&&setTimeout(function(){m.tip.css({display:"inline-block",visibility:"visible"})},1),c!==E&&this.calculate(b,k)},calculate:function(a,b){if(!this.enabled)return E;var c,e,f=this,g=this.qtip.elements,h=this.element,i=this.options.offset,j=(g.tooltip.hasClass("ui-widget"),{});return a=a||this.corner,c=a.precedance,b=b||this._calculateSize(a),e=[a.x,a.y],c===G&&e.reverse(),d.each(e,function(d,e){var h,k,l;e===O?(h=c===H?L:K,j[h]="50%",j[ia+"-"+h]=-Math.round(b[c===H?0:1]/2)+i):(h=f._parseWidth(a,e,g.tooltip),k=f._parseWidth(a,e,g.content),l=f._parseRadius(a),j[e]=Math.max(-f.border,d?k:i+(l>h?l:-h)))}),j[a[c]]-=b[c===G?0:1],h.css({margin:"",top:"",bottom:"",left:"",right:""}).css(j),j},reposition:function(a,b,d,e){function f(a,b,c,d,e){a===Q&&k.precedance===b&&l[d]&&k[c]!==O?k.precedance=k.precedance===G?H:G:a!==Q&&l[d]&&(k[b]=k[b]===O?l[d]>0?d:e:k[b]===d?e:d)}function g(a,b,e){k[a]===O?q[ia+"-"+b]=p[a]=h[ia+"-"+b]-l[b]:(i=h[e]!==c?[l[b],-h[b]]:[-l[b],h[b]],(p[a]=Math.max(i[0],i[1]))>i[0]&&(d[b]-=l[b],p[b]=E),q[h[e]!==c?e:b]=p[a])}if(this.enabled){var h,i,j=b.cache,k=this.corner.clone(),l=d.adjusted,m=b.options.position.adjust.method.split(" "),n=m[0],o=m[1]||m[0],p={left:E,top:E,x:0,y:0},q={};this.corner.fixed!==D&&(f(n,G,H,L,N),f(o,H,G,K,M),(k.string()!==j.corner.string()||j.cornerTop!==l.top||j.cornerLeft!==l.left)&&this.update(k,E)),h=this.calculate(k),h.right!==c&&(h.left=-h.right),h.bottom!==c&&(h.top=-h.bottom),h.user=this.offset,(p.left=n===Q&&!!l.left)&&g(G,L,N),(p.top=o===Q&&!!l.top)&&g(H,K,M),this.element.css(q).toggle(!(p.x&&p.y||k.x===O&&p.y||k.y===O&&p.x)),d.left-=h.left.charAt?h.user:n!==Q||p.top||!p.left&&!p.top?h.left+this.border:0,d.top-=h.top.charAt?h.user:o!==Q||p.left||!p.left&&!p.top?h.top+this.border:0,j.cornerLeft=l.left,j.cornerTop=l.top,j.corner=k.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),ha=R.tip=function(a){return new v(a,a.options.style.tip)},ha.initialize="render",ha.sanitize=function(a){if(a.style&&"tip"in a.style){var b=a.style.tip;"object"!=typeof b&&(b=a.style.tip={corner:b}),/string|boolean/i.test(typeof b.corner)||(b.corner=D)}},B.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(a){this.size=[a.width,a.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},d.extend(D,y.defaults,{style:{tip:{corner:D,mimic:E,width:6,height:6,border:D,offset:0}}});var wa,xa,ya="qtip-modal",za="."+ya;xa=function(){function a(a){if(d.expr[":"].focusable)return d.expr[":"].focusable;var b,c,e,f=!isNaN(d.attr(a,"tabindex")),g=a.nodeName&&a.nodeName.toLowerCase();return"area"===g?(b=a.parentNode,c=b.name,a.href&&c&&"map"===b.nodeName.toLowerCase()?(e=d("img[usemap=#"+c+"]")[0],!!e&&e.is(":visible")):!1):/input|select|textarea|button|object/.test(g)?!a.disabled:"a"===g?a.href||f:f}function c(a){k.length<1&&a.length?a.not("body").blur():k.first().focus()}function e(a){if(i.is(":visible")){var b,e=d(a.target),h=f.tooltip,j=e.closest(W);b=j.length<1?E:parseInt(j[0].style.zIndex,10)>parseInt(h[0].style.zIndex,10),b||e.closest(W)[0]===h[0]||c(e),g=a.target===k[k.length-1]}}var f,g,h,i,j=this,k={};d.extend(j,{init:function(){return i=j.elem=d("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return E}}).hide(),d(b.body).bind("focusin"+za,e),d(b).bind("keydown"+za,function(a){f&&f.options.show.modal.escape&&27===a.keyCode&&f.hide(a)}),i.bind("click"+za,function(a){f&&f.options.show.modal.blur&&f.hide(a)}),j},update:function(b){f=b,k=b.options.show.modal.stealfocus!==E?b.tooltip.find("*").filter(function(){return a(this)}):[]},toggle:function(a,e,g){var k=(d(b.body),a.tooltip),l=a.options.show.modal,m=l.effect,n=e?"show":"hide",o=i.is(":visible"),p=d(za).filter(":visible:not(:animated)").not(k);return j.update(a),e&&l.stealfocus!==E&&c(d(":focus")),i.toggleClass("blurs",l.blur),e&&i.appendTo(b.body),i.is(":animated")&&o===e&&h!==E||!e&&p.length?j:(i.stop(D,E),d.isFunction(m)?m.call(i,e):m===E?i[n]():i.fadeTo(parseInt(g,10)||90,e?1:0,function(){e||i.hide()}),e||i.queue(function(a){i.css({left:"",top:""}),d(za).length||i.detach(),a()}),h=e,f.destroyed&&(f=F),j)}}),j.init()},xa=new xa,d.extend(w.prototype,{init:function(a){var b=a.tooltip;return this.options.on?(a.elements.overlay=xa.elem,b.addClass(ya).css("z-index",y.modal_zindex+d(za).length),a._bind(b,["tooltipshow","tooltiphide"],function(a,c,e){var f=a.originalEvent;if(a.target===b[0])if(f&&"tooltiphide"===a.type&&/mouse(leave|enter)/.test(f.type)&&d(f.relatedTarget).closest(xa.elem[0]).length)try{a.preventDefault()}catch(g){}else(!f||f&&"tooltipsolo"!==f.type)&&this.toggle(a,"tooltipshow"===a.type,e)},this._ns,this),a._bind(b,"tooltipfocus",function(a,c){if(!a.isDefaultPrevented()&&a.target===b[0]){var e=d(za),f=y.modal_zindex+e.length,g=parseInt(b[0].style.zIndex,10);xa.elem[0].style.zIndex=f-1,e.each(function(){this.style.zIndex>g&&(this.style.zIndex-=1)}),e.filter("."+$).qtip("blur",a.originalEvent),b.addClass($)[0].style.zIndex=f,xa.update(c);try{a.preventDefault()}catch(h){}}},this._ns,this),void a._bind(b,"tooltiphide",function(a){a.target===b[0]&&d(za).filter(":visible").not(b).last().qtip("focus",a)},this._ns,this)):this},toggle:function(a,b,c){return a&&a.isDefaultPrevented()?this:void xa.toggle(this.qtip,!!b,c)},destroy:function(){this.qtip.tooltip.removeClass(ya),this.qtip._unbind(this.qtip.tooltip,this._ns),xa.toggle(this.qtip,E),delete this.qtip.elements.overlay}}),wa=R.modal=function(a){return new w(a,a.options.show.modal)},wa.sanitize=function(a){a.show&&("object"!=typeof a.show.modal?a.show.modal={on:!!a.show.modal}:"undefined"==typeof a.show.modal.on&&(a.show.modal.on=D))},y.modal_zindex=y.zindex-200,wa.initialize="render",B.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},d.extend(D,y.defaults,{show:{modal:{on:E,effect:D,blur:D,stealfocus:D,escape:D}}}),R.viewport=function(c,d,e,f,g,h,i){function j(a,b,c,e,f,g,h,i,j){var k=d[f],s=u[a],t=v[a],w=c===Q,x=s===f?j:s===g?-j:-j/2,y=t===f?i:t===g?-i:-i/2,z=q[f]+r[f]-(n?0:m[f]),A=z-k,B=k+j-(h===I?o:p)-z,C=x-(u.precedance===a||s===u[b]?y:0)-(t===O?i/2:0);return w?(C=(s===f?1:-1)*x,d[f]+=A>0?A:B>0?-B:0,d[f]=Math.max(-m[f]+r[f],k-C,Math.min(Math.max(-m[f]+r[f]+(h===I?o:p),k+C),d[f],"center"===s?k-x:1e9))):(e*=c===P?2:0,A>0&&(s!==f||B>0)?(d[f]-=C+e,l.invert(a,f)):B>0&&(s!==g||A>0)&&(d[f]-=(s===O?-C:C)+e,l.invert(a,g)),d[f]<q&&-d[f]>B&&(d[f]=k,l=u.clone())),d[f]-k}var k,l,m,n,o,p,q,r,s=e.target,t=c.elements.tooltip,u=e.my,v=e.at,w=e.adjust,x=w.method.split(" "),y=x[0],z=x[1]||x[0],A=e.viewport,B=e.container,C=(c.cache,{left:0,top:0});return A.jquery&&s[0]!==a&&s[0]!==b.body&&"none"!==w.method?(m=B.offset()||C,n="static"===B.css("position"),k="fixed"===t.css("position"),o=A[0]===a?A.width():A.outerWidth(E),p=A[0]===a?A.height():A.outerHeight(E),q={left:k?0:A.scrollLeft(),top:k?0:A.scrollTop()},r=A.offset()||C,("shift"!==y||"shift"!==z)&&(l=u.clone()),C={left:"none"!==y?j(G,H,y,w.x,L,N,I,f,h):0,top:"none"!==z?j(H,G,z,w.y,K,M,J,g,i):0,my:l}):C},R.polys={polygon:function(a,b){var c,d,e,f={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:E},g=0,h=[],i=1,j=1,k=0,l=0;for(g=a.length;g--;)c=[parseInt(a[--g],10),parseInt(a[g+1],10)],c[0]>f.position.right&&(f.position.right=c[0]),c[0]<f.position.left&&(f.position.left=c[0]),c[1]>f.position.bottom&&(f.position.bottom=c[1]),c[1]<f.position.top&&(f.position.top=c[1]),h.push(c);if(d=f.width=Math.abs(f.position.right-f.position.left),e=f.height=Math.abs(f.position.bottom-f.position.top),"c"===b.abbrev())f.position={left:f.position.left+f.width/2,top:f.position.top+f.height/2};else{for(;d>0&&e>0&&i>0&&j>0;)for(d=Math.floor(d/2),e=Math.floor(e/2),b.x===L?i=d:b.x===N?i=f.width-d:i+=Math.floor(d/2),b.y===K?j=e:b.y===M?j=f.height-e:j+=Math.floor(e/2),g=h.length;g--&&!(h.length<2);)k=h[g][0]-f.position.left,l=h[g][1]-f.position.top,(b.x===L&&k>=i||b.x===N&&i>=k||b.x===O&&(i>k||k>f.width-i)||b.y===K&&l>=j||b.y===M&&j>=l||b.y===O&&(j>l||l>f.height-j))&&h.splice(g,1);f.position={left:h[0][0],top:h[0][1]}}return f},rect:function(a,b,c,d){return{width:Math.abs(c-a),height:Math.abs(d-b),position:{left:Math.min(a,c),top:Math.min(b,d)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(a,b,c,d,e){var f=R.polys._angles[e.abbrev()],g=0===f?0:c*Math.cos(f*Math.PI),h=d*Math.sin(f*Math.PI);return{width:2*c-Math.abs(g),height:2*d-Math.abs(h),position:{left:a+g,top:b+h},adjustable:E}},circle:function(a,b,c,d){return R.polys.ellipse(a,b,c,c,d)}},R.svg=function(a,c,e){for(var f,g,h,i,j,k,l,m,n,o=(d(b),c[0]),p=d(o.ownerSVGElement),q=o.ownerDocument,r=(parseInt(c.css("stroke-width"),10)||0)/2;!o.getBBox;)o=o.parentNode;if(!o.getBBox||!o.parentNode)return E;switch(o.nodeName){case"ellipse":case"circle":m=R.polys.ellipse(o.cx.baseVal.value,o.cy.baseVal.value,(o.rx||o.r).baseVal.value+r,(o.ry||o.r).baseVal.value+r,e);break;case"line":case"polygon":case"polyline":for(l=o.points||[{x:o.x1.baseVal.value,y:o.y1.baseVal.value},{x:o.x2.baseVal.value,y:o.y2.baseVal.value}],m=[],k=-1,i=l.numberOfItems||l.length;++k<i;)j=l.getItem?l.getItem(k):l[k],m.push.apply(m,[j.x,j.y]);m=R.polys.polygon(m,e);break;default:m=o.getBBox(),m={width:m.width,height:m.height,position:{left:m.x,top:m.y}}}return n=m.position,p=p[0],p.createSVGPoint&&(g=o.getScreenCTM(),l=p.createSVGPoint(),l.x=n.left,l.y=n.top,h=l.matrixTransform(g),n.left=h.x,n.top=h.y),q!==b&&"mouse"!==a.position.target&&(f=d((q.defaultView||q.parentWindow).frameElement).offset(),f&&(n.left+=f.left,n.top+=f.top)),q=d(q),n.left+=q.scrollLeft(),n.top+=q.scrollTop(),m},R.imagemap=function(a,b,c,e){b.jquery||(b=d(b));var f,g,h,i,j,k=(b.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),l=d('img[usemap="#'+b.parent("map").attr("name")+'"]'),m=d.trim(b.attr("coords")),n=m.replace(/,$/,"").split(",");if(!l.length)return E;if("polygon"===k)i=R.polys.polygon(n,c);else{if(!R.polys[k])return E;for(h=-1,j=n.length,g=[];++h<j;)g.push(parseInt(n[h],10));i=R.polys[k].apply(this,g.concat(c))}return f=l.offset(),f.left+=Math.ceil((l.outerWidth(E)-l.width())/2),f.top+=Math.ceil((l.outerHeight(E)-l.height())/2),i.position.left+=f.left,i.position.top+=f.top,i};var Aa,Ba='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';d.extend(x.prototype,{_scroll:function(){var b=this.qtip.elements.overlay;b&&(b[0].style.top=d(a).scrollTop()+"px")},init:function(c){var e=c.tooltip;d("select, object").length<1&&(this.bgiframe=c.elements.bgiframe=d(Ba).appendTo(e),c._bind(e,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=d("<div/>",{id:S+"-rcontainer"}).appendTo(b.body),c.elements.overlay&&c.elements.overlay.addClass("qtipmodal-ie6fix")&&(c._bind(a,["scroll","resize"],this._scroll,this._ns,this),c._bind(e,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var a,b,c=this.qtip.tooltip,d={height:c.outerHeight(E),width:c.outerWidth(E)},e=this.qtip.plugins.tip,f=this.qtip.elements.tip;b=parseInt(c.css("borderLeftWidth"),10)||0,b={left:-b,top:-b},e&&f&&(a="x"===e.corner.precedance?[I,L]:[J,K],b[a[1]]-=f[a[0]]()),this.bgiframe.css(b).css(d)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var a,b,c,d,e=this.qtip.tooltip,f=this.qtip.options.style,g=this.qtip.options.position.container;return this.qtip.drawing=1,f.height&&e.css(J,f.height),f.width?e.css(I,f.width):(e.css(I,"").appendTo(this.redrawContainer),b=e.width(),1>b%2&&(b+=1),c=e.css("maxWidth")||"",d=e.css("minWidth")||"",a=(c+d).indexOf("%")>-1?g.width()/100:0,c=(c.indexOf("%")>-1?a:1)*parseInt(c,10)||b,d=(d.indexOf("%")>-1?a:1)*parseInt(d,10)||0,b=c+d?Math.min(Math.max(b,d),c):b,e.css(I,Math.round(b)).appendTo(g)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([a,this.qtip.tooltip],this._ns)}}),Aa=R.ie6=function(a){return 6===da.ie?new x(a):E},Aa.initialize="render",B.ie6={"^content|style$":function(){this.redraw()}}})}(window,document)},{}],3:[function(a,b,c){!function(d,e,f){!function(d){"use strict";"function"==typeof define&&define.amd?define("datatables",["jquery"],d):"object"==typeof c?b.exports=d(a("jquery")):jQuery&&!jQuery.fn.dataTable&&d(jQuery)}(function(a){"use strict";function b(c){var d,e,f="a aa ai ao as b fn i m o s ",g={};a.each(c,function(a,h){d=a.match(/^([^A-Z]+?)([A-Z])/),d&&-1!==f.indexOf(d[1]+" ")&&(e=a.replace(d[0],d[2].toLowerCase()),g[e]=a,"o"===d[1]&&b(c[a]))}),c._hungarianMap=g}function c(d,e,g){d._hungarianMap||b(d);var h;a.each(e,function(b,i){h=d._hungarianMap[b],h===f||!g&&e[h]!==f||("o"===h.charAt(0)?(e[h]||(e[h]={}),a.extend(!0,e[h],e[b]),c(d[h],e[h],g)):e[h]=e[b])})}function g(a){var b=Wa.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&c&&"No data available in table"===b.sEmptyTable&&La(a,a,"sZeroRecords","sEmptyTable"),!a.sLoadingRecords&&c&&"Loading..."===b.sLoadingRecords&&La(a,a,"sZeroRecords","sLoadingRecords"),a.sInfoThousands&&(a.sThousands=a.sInfoThousands);var d=a.sDecimal;d&&Ua(d)}function h(a){sb(a,"ordering","bSort"),sb(a,"orderMulti","bSortMulti"),sb(a,"orderClasses","bSortClasses"),sb(a,"orderCellsTop","bSortCellsTop"),sb(a,"order","aaSorting"),sb(a,"orderFixed","aaSortingFixed"),sb(a,"paging","bPaginate"),sb(a,"pagingType","sPaginationType"),sb(a,"pageLength","iDisplayLength"),sb(a,"searching","bFilter");var b=a.aoSearchCols;if(b)for(var d=0,e=b.length;e>d;d++)b[d]&&c(Wa.models.oSearch,b[d])}function i(b){sb(b,"orderable","bSortable"),sb(b,"orderData","aDataSort"),sb(b,"orderSequence","asSorting"),sb(b,"orderDataType","sortDataType");var c=b.aDataSort;c&&!a.isArray(c)&&(b.aDataSort=[c])}function j(b){var c=b.oBrowser,d=a("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(a("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(a('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),e=d.find(".test");c.bScrollOversize=100===e[0].offsetWidth,c.bScrollbarLeft=1!==Math.round(e.offset().left),d.remove()}function k(a,b,c,d,e,g){var h,i=d,j=!1;for(c!==f&&(h=c,j=!0);i!==e;)a.hasOwnProperty(i)&&(h=j?b(h,a[i],i,a):a[i],j=!0,i+=g);return h}function l(b,c){var d=Wa.defaults.column,f=b.aoColumns.length,g=a.extend({},Wa.models.oColumn,d,{nTh:c?c:e.createElement("th"),sTitle:d.sTitle?d.sTitle:c?c.innerHTML:"",aDataSort:d.aDataSort?d.aDataSort:[f],mData:d.mData?d.mData:f,idx:f});b.aoColumns.push(g);var h=b.aoPreSearchCols;h[f]=a.extend({},Wa.models.oSearch,h[f]),m(b,f,a(c).data())}function m(b,d,e){var g=b.aoColumns[d],h=b.oClasses,j=a(g.nTh);if(!g.sWidthOrig){g.sWidthOrig=j.attr("width")||null;var k=(j.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);k&&(g.sWidthOrig=k[1])}e!==f&&null!==e&&(i(e),c(Wa.defaults.column,e),e.mDataProp===f||e.mData||(e.mData=e.mDataProp),e.sType&&(g._sManualType=e.sType),e.className&&!e.sClass&&(e.sClass=e.className),a.extend(g,e),La(g,e,"sWidth","sWidthOrig"),e.iDataSort!==f&&(g.aDataSort=[e.iDataSort]),La(g,e,"aDataSort"));var l=g.mData,m=B(l),n=g.mRender?B(g.mRender):null,o=function(a){return"string"==typeof a&&-1!==a.indexOf("@")};g._bAttrSrc=a.isPlainObject(l)&&(o(l.sort)||o(l.type)||o(l.filter)),g.fnGetData=function(a,b,c){var d=m(a,b,f,c);return n&&b?n(d,b,a,c):d},g.fnSetData=function(a,b,c){return C(l)(a,b,c)},"number"!=typeof l&&(b._rowReadObject=!0),b.oFeatures.bSort||(g.bSortable=!1,j.addClass(h.sSortableNone));var p=-1!==a.inArray("asc",g.asSorting),q=-1!==a.inArray("desc",g.asSorting);g.bSortable&&(p||q)?p&&!q?(g.sSortingClass=h.sSortableAsc,g.sSortingClassJUI=h.sSortJUIAscAllowed):!p&&q?(g.sSortingClass=h.sSortableDesc,g.sSortingClassJUI=h.sSortJUIDescAllowed):(g.sSortingClass=h.sSortable,g.sSortingClassJUI=h.sSortJUI):(g.sSortingClass=h.sSortableNone,g.sSortingClassJUI="")}function n(a){if(a.oFeatures.bAutoWidth!==!1){var b=a.aoColumns;sa(a);for(var c=0,d=b.length;d>c;c++)b[c].nTh.style.width=b[c].sWidth}var e=a.oScroll;(""!==e.sY||""!==e.sX)&&qa(a),Pa(a,null,"column-sizing",[a])}function o(a,b){var c=r(a,"bVisible");return"number"==typeof c[b]?c[b]:null}function p(b,c){var d=r(b,"bVisible"),e=a.inArray(c,d);return-1!==e?e:null}function q(a){return r(a,"bVisible").length}function r(b,c){var d=[];return a.map(b.aoColumns,function(a,b){a[c]&&d.push(b)}),d}function s(a){var b,c,d,e,g,h,i,j,k,l=a.aoColumns,m=a.aoData,n=Wa.ext.type.detect;for(b=0,c=l.length;c>b;b++)if(i=l[b],k=[],!i.sType&&i._sManualType)i.sType=i._sManualType;else if(!i.sType){for(d=0,e=n.length;e>d;d++){for(g=0,h=m.length;h>g&&(k[g]===f&&(k[g]=y(a,g,b,"type")),j=n[d](k[g],a),j||d===n.length-1)&&"html"!==j;g++);if(j){i.sType=j;break}}i.sType||(i.sType="string")}}function t(b,c,d,e){var g,h,i,j,k,m,n,o=b.aoColumns;if(c)for(g=c.length-1;g>=0;g--){n=c[g];var p=n.targets!==f?n.targets:n.aTargets;for(a.isArray(p)||(p=[p]),i=0,j=p.length;j>i;i++)if("number"==typeof p[i]&&p[i]>=0){for(;o.length<=p[i];)l(b);e(p[i],n)}else if("number"==typeof p[i]&&p[i]<0)e(o.length+p[i],n);else if("string"==typeof p[i])for(k=0,m=o.length;m>k;k++)("_all"==p[i]||a(o[k].nTh).hasClass(p[i]))&&e(k,n)}if(d)for(g=0,h=d.length;h>g;g++)e(g,d[g])}function u(b,c,d,e){var f=b.aoData.length,g=a.extend(!0,{},Wa.models.oRow,{src:d?"dom":"data"});g._aData=c,b.aoData.push(g);for(var h=b.aoColumns,i=0,j=h.length;j>i;i++)d&&z(b,f,i,y(b,f,i)),h[i].sType=null;return b.aiDisplayMaster.push(f),(d||!b.oFeatures.bDeferRender)&&I(b,f,d,e),f}function v(b,c){var d;return c instanceof a||(c=a(c)),c.map(function(a,c){return d=H(b,c),u(b,d.data,c,d.cells)})}function w(a,b){return b._DT_RowIndex!==f?b._DT_RowIndex:null}function x(b,c,d){return a.inArray(d,b.aoData[c].anCells)}function y(a,b,c,d){var e=a.iDraw,g=a.aoColumns[c],h=a.aoData[b]._aData,i=g.sDefaultContent,j=g.fnGetData(h,d,{settings:a,row:b,col:c});if(j===f)return a.iDrawError!=e&&null===i&&(Ka(a,0,"Requested unknown parameter "+("function"==typeof g.mData?"{function}":"'"+g.mData+"'")+" for row "+b,4),a.iDrawError=e),i;if(j!==h&&null!==j||null===i){if("function"==typeof j)return j.call(h)}else j=i;return null===j&&"display"==d?"":j}function z(a,b,c,d){var e=a.aoColumns[c],f=a.aoData[b]._aData;e.fnSetData(f,d,{settings:a,row:b,col:c})}function A(b){return a.map(b.match(/(\\.|[^\.])+/g),function(a){return a.replace(/\\./g,".")})}function B(b){if(a.isPlainObject(b)){var c={};return a.each(b,function(a,b){b&&(c[a]=B(b))}),function(a,b,d,e){var g=c[b]||c._;return g!==f?g(a,b,d,e):a}}if(null===b)return function(a){return a};if("function"==typeof b)return function(a,c,d,e){return b(a,c,d,e)};if("string"!=typeof b||-1===b.indexOf(".")&&-1===b.indexOf("[")&&-1===b.indexOf("("))return function(a,c){return a[b]};var d=function(a,b,c){var e,g,h,i;if(""!==c)for(var j=A(c),k=0,l=j.length;l>k;k++){if(e=j[k].match(tb),g=j[k].match(ub),e){j[k]=j[k].replace(tb,""),""!==j[k]&&(a=a[j[k]]),h=[],j.splice(0,k+1),i=j.join(".");for(var m=0,n=a.length;n>m;m++)h.push(d(a[m],b,i));var o=e[0].substring(1,e[0].length-1);a=""===o?h:h.join(o);break}if(g)j[k]=j[k].replace(ub,""),a=a[j[k]]();else{if(null===a||a[j[k]]===f)return f;a=a[j[k]]}}return a};return function(a,c){return d(a,c,b)}}function C(b){if(a.isPlainObject(b))return C(b._);if(null===b)return function(){};if("function"==typeof b)return function(a,c,d){b(a,"set",c,d)};if("string"!=typeof b||-1===b.indexOf(".")&&-1===b.indexOf("[")&&-1===b.indexOf("("))return function(a,c){a[b]=c};var c=function(a,b,d){for(var e,g,h,i,j,k=A(d),l=k[k.length-1],m=0,n=k.length-1;n>m;m++){if(g=k[m].match(tb),h=k[m].match(ub),g){k[m]=k[m].replace(tb,""),a[k[m]]=[],e=k.slice(),e.splice(0,m+1),j=e.join(".");for(var o=0,p=b.length;p>o;o++)i={},c(i,b[o],j),a[k[m]].push(i);return}h&&(k[m]=k[m].replace(ub,""),a=a[k[m]](b)),(null===a[k[m]]||a[k[m]]===f)&&(a[k[m]]={}),a=a[k[m]]}l.match(ub)?a=a[l.replace(ub,"")](b):a[l.replace(tb,"")]=b};return function(a,d){return c(a,d,b)}}function D(a){return mb(a.aoData,"_aData")}function E(a){a.aoData.length=0,a.aiDisplayMaster.length=0,a.aiDisplay.length=0}function F(a,b,c){for(var d=-1,e=0,g=a.length;g>e;e++)a[e]==b?d=e:a[e]>b&&a[e]--;-1!=d&&c===f&&a.splice(d,1)}function G(a,b,c,d){var e,g,h=a.aoData[b],i=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=y(a,b,d,"display")};if("dom"!==c&&(c&&"auto"!==c||"dom"!==h.src)){var j=h.anCells;if(j)if(d!==f)i(j[d],d);else for(e=0,g=j.length;g>e;e++)i(j[e],e)}else h._aData=H(a,h,d,d===f?f:h._aData).data;h._aSortData=null,h._aFilterData=null;var k=a.aoColumns;if(d!==f)k[d].sType=null;else{for(e=0,g=k.length;g>e;e++)k[e].sType=null;J(h)}}function H(b,c,d,e){var g,h,i,j=[],k=c.firstChild,l=0,m=b.aoColumns,n=b._rowReadObject;e=e||n?{}:[];var o=function(a,b){if("string"==typeof a){var c=a.indexOf("@");if(-1!==c){var d=a.substring(c+1),f=C(a);f(e,b.getAttribute(d))}}},p=function(b){if(d===f||d===l)if(h=m[l],i=a.trim(b.innerHTML),h&&h._bAttrSrc){var c=C(h.mData._);c(e,i),o(h.mData.sort,b),o(h.mData.type,b),o(h.mData.filter,b)}else n?(h._setter||(h._setter=C(h.mData)),h._setter(e,i)):e[l]=i;l++};if(k)for(;k;)g=k.nodeName.toUpperCase(),("TD"==g||"TH"==g)&&(p(k),j.push(k)),k=k.nextSibling;else{j=c.anCells;for(var q=0,r=j.length;r>q;q++)p(j[q])}return{data:e,cells:j}}function I(a,b,c,d){var f,g,h,i,j,k=a.aoData[b],l=k._aData,m=[];if(null===k.nTr){for(f=c||e.createElement("tr"),k.nTr=f,k.anCells=m,f._DT_RowIndex=b,J(k),i=0,j=a.aoColumns.length;j>i;i++)h=a.aoColumns[i],g=c?d[i]:e.createElement(h.sCellType),m.push(g),(!c||h.mRender||h.mData!==i)&&(g.innerHTML=y(a,b,i,"display")),h.sClass&&(g.className+=" "+h.sClass),h.bVisible&&!c?f.appendChild(g):!h.bVisible&&c&&g.parentNode.removeChild(g),h.fnCreatedCell&&h.fnCreatedCell.call(a.oInstance,g,y(a,b,i),l,b,i);Pa(a,"aoRowCreatedCallback",null,[f,l,b])}k.nTr.setAttribute("role","row")}function J(b){var c=b.nTr,d=b._aData;if(c){if(d.DT_RowId&&(c.id=d.DT_RowId),d.DT_RowClass){var e=d.DT_RowClass.split(" ");b.__rowc=b.__rowc?rb(b.__rowc.concat(e)):e,a(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass)}d.DT_RowAttr&&a(c).attr(d.DT_RowAttr),d.DT_RowData&&a(c).data(d.DT_RowData)}}function K(b){var c,d,e,f,g,h=b.nTHead,i=b.nTFoot,j=0===a("th, td",h).length,k=b.oClasses,l=b.aoColumns;for(j&&(f=a("<tr/>").appendTo(h)),c=0,d=l.length;d>c;c++)g=l[c],e=a(g.nTh).addClass(g.sClass),j&&e.appendTo(f),b.oFeatures.bSort&&(e.addClass(g.sSortingClass),g.bSortable!==!1&&(e.attr("tabindex",b.iTabIndex).attr("aria-controls",b.sTableId),Ea(b,g.nTh,c))),g.sTitle!=e.html()&&e.html(g.sTitle),Ra(b,"header")(b,e,g,k);if(j&&P(b.aoHeader,h),a(h).find(">tr").attr("role","row"),a(h).find(">tr>th, >tr>td").addClass(k.sHeaderTH),a(i).find(">tr>th, >tr>td").addClass(k.sFooterTH),null!==i){var m=b.aoFooter[0];for(c=0,d=m.length;d>c;c++)g=l[c],g.nTf=m[c].cell,g.sClass&&a(g.nTf).addClass(g.sClass)}}function L(b,c,d){var e,g,h,i,j,k,l,m,n,o=[],p=[],q=b.aoColumns.length;if(c){for(d===f&&(d=!1),e=0,g=c.length;g>e;e++){for(o[e]=c[e].slice(),o[e].nTr=c[e].nTr,h=q-1;h>=0;h--)b.aoColumns[h].bVisible||d||o[e].splice(h,1);p.push([])}for(e=0,g=o.length;g>e;e++){if(l=o[e].nTr)for(;k=l.firstChild;)l.removeChild(k);for(h=0,i=o[e].length;i>h;h++)if(m=1,n=1,p[e][h]===f){for(l.appendChild(o[e][h].cell),p[e][h]=1;o[e+m]!==f&&o[e][h].cell==o[e+m][h].cell;)p[e+m][h]=1,m++;for(;o[e][h+n]!==f&&o[e][h].cell==o[e][h+n].cell;){for(j=0;m>j;j++)p[e+j][h+n]=1;n++}a(o[e][h].cell).attr("rowspan",m).attr("colspan",n)}}}}function M(b){var c=Pa(b,"aoPreDrawCallback","preDraw",[b]);if(-1!==a.inArray(!1,c))return void oa(b,!1);var d=[],e=0,g=b.asStripeClasses,h=g.length,i=(b.aoOpenRows.length,b.oLanguage),j=b.iInitDisplayStart,k="ssp"==Sa(b),l=b.aiDisplay;b.bDrawing=!0,j!==f&&-1!==j&&(b._iDisplayStart=k?j:j>=b.fnRecordsDisplay()?0:j,b.iInitDisplayStart=-1);var m=b._iDisplayStart,n=b.fnDisplayEnd();if(b.bDeferLoading)b.bDeferLoading=!1,b.iDraw++,oa(b,!1);else if(k){if(!b.bDestroying&&!S(b))return}else b.iDraw++;if(0!==l.length)for(var o=k?0:m,p=k?b.aoData.length:n,r=o;p>r;r++){var s=l[r],t=b.aoData[s];null===t.nTr&&I(b,s);var u=t.nTr;if(0!==h){var v=g[e%h];t._sRowStripe!=v&&(a(u).removeClass(t._sRowStripe).addClass(v),
  t._sRowStripe=v)}Pa(b,"aoRowCallback",null,[u,t._aData,e,r]),d.push(u),e++}else{var w=i.sZeroRecords;1==b.iDraw&&"ajax"==Sa(b)?w=i.sLoadingRecords:i.sEmptyTable&&0===b.fnRecordsTotal()&&(w=i.sEmptyTable),d[0]=a("<tr/>",{"class":h?g[0]:""}).append(a("<td />",{valign:"top",colSpan:q(b),"class":b.oClasses.sRowEmpty}).html(w))[0]}Pa(b,"aoHeaderCallback","header",[a(b.nTHead).children("tr")[0],D(b),m,n,l]),Pa(b,"aoFooterCallback","footer",[a(b.nTFoot).children("tr")[0],D(b),m,n,l]);var x=a(b.nTBody);x.children().detach(),x.append(a(d)),Pa(b,"aoDrawCallback","draw",[b]),b.bSorted=!1,b.bFiltered=!1,b.bDrawing=!1}function N(a,b){var c=a.oFeatures,d=c.bSort,e=c.bFilter;d&&Ba(a),e?X(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice(),b!==!0&&(a._iDisplayStart=0),a._drawHold=b,M(a),a._drawHold=!1}function O(b){var c=b.oClasses,d=a(b.nTable),e=a("<div/>").insertBefore(d),f=b.oFeatures,g=a("<div/>",{id:b.sTableId+"_wrapper","class":c.sWrapper+(b.nTFoot?"":" "+c.sNoFooter)});b.nHolding=e[0],b.nTableWrapper=g[0],b.nTableReinsertBefore=b.nTable.nextSibling;for(var h,i,j,k,l,m,n=b.sDom.split(""),o=0;o<n.length;o++){if(h=null,i=n[o],"<"==i){if(j=a("<div/>")[0],k=n[o+1],"'"==k||'"'==k){for(l="",m=2;n[o+m]!=k;)l+=n[o+m],m++;if("H"==l?l=c.sJUIHeader:"F"==l&&(l=c.sJUIFooter),-1!=l.indexOf(".")){var p=l.split(".");j.id=p[0].substr(1,p[0].length-1),j.className=p[1]}else"#"==l.charAt(0)?j.id=l.substr(1,l.length-1):j.className=l;o+=m}g.append(j),g=a(j)}else if(">"==i)g=g.parent();else if("l"==i&&f.bPaginate&&f.bLengthChange)h=ka(b);else if("f"==i&&f.bFilter)h=W(b);else if("r"==i&&f.bProcessing)h=na(b);else if("t"==i)h=pa(b);else if("i"==i&&f.bInfo)h=ea(b);else if("p"==i&&f.bPaginate)h=la(b);else if(0!==Wa.ext.feature.length)for(var q=Wa.ext.feature,r=0,s=q.length;s>r;r++)if(i==q[r].cFeature){h=q[r].fnInit(b);break}if(h){var t=b.aanFeatures;t[i]||(t[i]=[]),t[i].push(h),g.append(h)}}e.replaceWith(g)}function P(b,c){var d,e,f,g,h,i,j,k,l,m,n,o=a(c).children("tr"),p=function(a,b,c){for(var d=a[b];d[c];)c++;return c};for(b.splice(0,b.length),f=0,i=o.length;i>f;f++)b.push([]);for(f=0,i=o.length;i>f;f++)for(d=o[f],k=0,e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase())for(l=1*e.getAttribute("colspan"),m=1*e.getAttribute("rowspan"),l=l&&0!==l&&1!==l?l:1,m=m&&0!==m&&1!==m?m:1,j=p(b,f,k),n=1===l?!0:!1,h=0;l>h;h++)for(g=0;m>g;g++)b[f+g][j+h]={cell:e,unique:n},b[f+g].nTr=d;e=e.nextSibling}}function Q(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],P(c,b)));for(var e=0,f=c.length;f>e;e++)for(var g=0,h=c[e].length;h>g;g++)!c[e][g].unique||d[g]&&a.bSortCellsTop||(d[g]=c[e][g].cell);return d}function R(b,c,d){if(Pa(b,"aoServerParams","serverParams",[c]),c&&a.isArray(c)){var e={},f=/(.*?)\[\]$/;a.each(c,function(a,b){var c=b.name.match(f);if(c){var d=c[0];e[d]||(e[d]=[]),e[d].push(b.value)}else e[b.name]=b.value}),c=e}var g,h=b.ajax,i=b.oInstance,j=function(a){Pa(b,null,"xhr",[b,a,b.jqXHR]),d(a)};if(a.isPlainObject(h)&&h.data){g=h.data;var k=a.isFunction(g)?g(c,b):g;c=a.isFunction(g)&&k?k:a.extend(!0,c,k),delete h.data}var l={data:c,success:function(a){var c=a.error||a.sError;c&&Ka(b,0,c),b.json=a,j(a)},dataType:"json",cache:!1,type:b.sServerMethod,error:function(c,d,e){var f=Pa(b,null,"xhr",[b,null,b.jqXHR]);-1===a.inArray(!0,f)&&("parsererror"==d?Ka(b,0,"Invalid JSON response",1):4===c.readyState&&Ka(b,0,"Ajax error",7)),oa(b,!1)}};b.oAjaxData=c,Pa(b,null,"preXhr",[b,c]),b.fnServerData?b.fnServerData.call(i,b.sAjaxSource,a.map(c,function(a,b){return{name:b,value:a}}),j,b):b.sAjaxSource||"string"==typeof h?b.jqXHR=a.ajax(a.extend(l,{url:h||b.sAjaxSource})):a.isFunction(h)?b.jqXHR=h.call(i,c,j,b):(b.jqXHR=a.ajax(a.extend(l,h)),h.data=g)}function S(a){return a.bAjaxDataGet?(a.iDraw++,oa(a,!0),R(a,T(a),function(b){U(a,b)}),!1):!0}function T(b){var c,d,e,f,g=b.aoColumns,h=g.length,i=b.oFeatures,j=b.oPreviousSearch,k=b.aoPreSearchCols,l=[],m=Aa(b),n=b._iDisplayStart,o=i.bPaginate!==!1?b._iDisplayLength:-1,p=function(a,b){l.push({name:a,value:b})};p("sEcho",b.iDraw),p("iColumns",h),p("sColumns",mb(g,"sName").join(",")),p("iDisplayStart",n),p("iDisplayLength",o);var q={draw:b.iDraw,columns:[],order:[],start:n,length:o,search:{value:j.sSearch,regex:j.bRegex}};for(c=0;h>c;c++)e=g[c],f=k[c],d="function"==typeof e.mData?"function":e.mData,q.columns.push({data:d,name:e.sName,searchable:e.bSearchable,orderable:e.bSortable,search:{value:f.sSearch,regex:f.bRegex}}),p("mDataProp_"+c,d),i.bFilter&&(p("sSearch_"+c,f.sSearch),p("bRegex_"+c,f.bRegex),p("bSearchable_"+c,e.bSearchable)),i.bSort&&p("bSortable_"+c,e.bSortable);i.bFilter&&(p("sSearch",j.sSearch),p("bRegex",j.bRegex)),i.bSort&&(a.each(m,function(a,b){q.order.push({column:b.col,dir:b.dir}),p("iSortCol_"+a,b.col),p("sSortDir_"+a,b.dir)}),p("iSortingCols",m.length));var r=Wa.ext.legacy.ajax;return null===r?b.sAjaxSource?l:q:r?l:q}function U(a,b){var c=function(a,c){return b[a]!==f?b[a]:b[c]},d=V(a,b),e=c("sEcho","draw"),g=c("iTotalRecords","recordsTotal"),h=c("iTotalDisplayRecords","recordsFiltered");if(e){if(1*e<a.iDraw)return;a.iDraw=1*e}E(a),a._iRecordsTotal=parseInt(g,10),a._iRecordsDisplay=parseInt(h,10);for(var i=0,j=d.length;j>i;i++)u(a,d[i]);a.aiDisplay=a.aiDisplayMaster.slice(),a.bAjaxDataGet=!1,M(a),a._bInitComplete||ia(a,b),a.bAjaxDataGet=!0,oa(a,!1)}function V(b,c){var d=a.isPlainObject(b.ajax)&&b.ajax.dataSrc!==f?b.ajax.dataSrc:b.sAjaxDataProp;return"data"===d?c.aaData||c[d]:""!==d?B(d)(c):c}function W(b){var c=b.oClasses,d=b.sTableId,f=b.oLanguage,g=b.oPreviousSearch,h=b.aanFeatures,i='<input type="search" class="'+c.sFilterInput+'"/>',j=f.sSearch;j=j.match(/_INPUT_/)?j.replace("_INPUT_",i):j+i;var k=a("<div/>",{id:h.f?null:d+"_filter","class":c.sFilter}).append(a("<label/>").append(j)),l=function(){var a=(h.f,this.value?this.value:"");a!=g.sSearch&&(X(b,{sSearch:a,bRegex:g.bRegex,bSmart:g.bSmart,bCaseInsensitive:g.bCaseInsensitive}),b._iDisplayStart=0,M(b))},m=null!==b.searchDelay?b.searchDelay:"ssp"===Sa(b)?400:0,n=a("input",k).val(g.sSearch).attr("placeholder",f.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",m?ta(l,m):l).bind("keypress.DT",function(a){return 13==a.keyCode?!1:void 0}).attr("aria-controls",d);return a(b.nTable).on("search.dt.DT",function(a,c){if(b===c)try{n[0]!==e.activeElement&&n.val(g.sSearch)}catch(d){}}),k[0]}function X(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,g=function(a){d.sSearch=a.sSearch,d.bRegex=a.bRegex,d.bSmart=a.bSmart,d.bCaseInsensitive=a.bCaseInsensitive},h=function(a){return a.bEscapeRegex!==f?!a.bEscapeRegex:a.bRegex};if(s(a),"ssp"!=Sa(a)){$(a,b.sSearch,c,h(b),b.bSmart,b.bCaseInsensitive),g(b);for(var i=0;i<e.length;i++)Z(a,e[i].sSearch,i,h(e[i]),e[i].bSmart,e[i].bCaseInsensitive);Y(a)}else g(b);a.bFiltered=!0,Pa(a,null,"search",[a])}function Y(a){for(var b,c,d=Wa.ext.search,e=a.aiDisplay,f=0,g=d.length;g>f;f++){for(var h=[],i=0,j=e.length;j>i;i++)c=e[i],b=a.aoData[c],d[f](a,b._aFilterData,c,b._aData,i)&&h.push(c);e.length=0,e.push.apply(e,h)}}function Z(a,b,c,d,e,f){if(""!==b)for(var g,h=a.aiDisplay,i=_(b,d,e,f),j=h.length-1;j>=0;j--)g=a.aoData[h[j]]._aFilterData[c],i.test(g)||h.splice(j,1)}function $(a,b,c,d,e,f){var g,h,i,j=_(b,d,e,f),k=a.oPreviousSearch.sSearch,l=a.aiDisplayMaster;if(0!==Wa.ext.search.length&&(c=!0),h=ba(a),b.length<=0)a.aiDisplay=l.slice();else for((h||c||k.length>b.length||0!==b.indexOf(k)||a.bSorted)&&(a.aiDisplay=l.slice()),g=a.aiDisplay,i=g.length-1;i>=0;i--)j.test(a.aoData[g[i]]._sFilterRow)||g.splice(i,1)}function _(b,c,d,e){if(b=c?b:aa(b),d){var f=a.map(b.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0)){var b=a.match(/^"(.*)"$/);a=b?b[1]:a}return a.replace('"',"")});b="^(?=.*?"+f.join(")(?=.*?")+").*$"}return new RegExp(b,e?"i":"")}function aa(a){return a.replace(eb,"\\$1")}function ba(a){var b,c,d,e,f,g,h,i,j=a.aoColumns,k=Wa.ext.type.search,l=!1;for(c=0,e=a.aoData.length;e>c;c++)if(i=a.aoData[c],!i._aFilterData){for(g=[],d=0,f=j.length;f>d;d++)b=j[d],b.bSearchable?(h=y(a,c,d,"filter"),k[b.sType]&&(h=k[b.sType](h)),null===h&&(h=""),"string"!=typeof h&&h.toString&&(h=h.toString())):h="",h.indexOf&&-1!==h.indexOf("&")&&(vb.innerHTML=h,h=wb?vb.textContent:vb.innerText),h.replace&&(h=h.replace(/[\r\n]/g,"")),g.push(h);i._aFilterData=g,i._sFilterRow=g.join("  "),l=!0}return l}function ca(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function da(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function ea(b){var c=b.sTableId,d=b.aanFeatures.i,e=a("<div/>",{"class":b.oClasses.sInfo,id:d?null:c+"_info"});return d||(b.aoDrawCallback.push({fn:fa,sName:"information"}),e.attr("role","status").attr("aria-live","polite"),a(b.nTable).attr("aria-describedby",c+"_info")),e[0]}function fa(b){var c=b.aanFeatures.i;if(0!==c.length){var d=b.oLanguage,e=b._iDisplayStart+1,f=b.fnDisplayEnd(),g=b.fnRecordsTotal(),h=b.fnRecordsDisplay(),i=h?d.sInfo:d.sInfoEmpty;h!==g&&(i+=" "+d.sInfoFiltered),i+=d.sInfoPostFix,i=ga(b,i);var j=d.fnInfoCallback;null!==j&&(i=j.call(b.oInstance,b,e,f,g,h,i)),a(c).html(i)}}function ga(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d,e=a.iInitDisplayStart,f=a.aoColumns,g=a.oFeatures;if(!a.bInitialised)return void setTimeout(function(){ha(a)},200);for(O(a),K(a),L(a,a.aoHeader),L(a,a.aoFooter),oa(a,!0),g.bAutoWidth&&sa(a),b=0,c=f.length;c>b;b++)d=f[b],d.sWidth&&(d.nTh.style.width=ya(d.sWidth));N(a);var h=Sa(a);"ssp"!=h&&("ajax"==h?R(a,[],function(c){var d=V(a,c);for(b=0;b<d.length;b++)u(a,d[b]);a.iInitDisplayStart=e,N(a),oa(a,!1),ia(a,c)},a):(oa(a,!1),ia(a)))}function ia(a,b){a._bInitComplete=!0,b&&n(a),Pa(a,"aoInitComplete","init",[a,b])}function ja(a,b){var c=parseInt(b,10);a._iDisplayLength=c,Qa(a),Pa(a,null,"length",[a,c])}function ka(b){for(var c=b.oClasses,d=b.sTableId,e=b.aLengthMenu,f=a.isArray(e[0]),g=f?e[0]:e,h=f?e[1]:e,i=a("<select/>",{name:d+"_length","aria-controls":d,"class":c.sLengthSelect}),j=0,k=g.length;k>j;j++)i[0][j]=new Option(h[j],g[j]);var l=a("<div><label/></div>").addClass(c.sLength);return b.aanFeatures.l||(l[0].id=d+"_length"),l.children().append(b.oLanguage.sLengthMenu.replace("_MENU_",i[0].outerHTML)),a("select",l).val(b._iDisplayLength).bind("change.DT",function(c){ja(b,a(this).val()),M(b)}),a(b.nTable).bind("length.dt.DT",function(c,d,e){b===d&&a("select",l).val(e)}),l[0]}function la(b){var c=b.sPaginationType,d=Wa.ext.pager[c],e="function"==typeof d,f=function(a){M(a)},g=a("<div/>").addClass(b.oClasses.sPaging+c)[0],h=b.aanFeatures;return e||d.fnInit(b,g,f),h.p||(g.id=b.sTableId+"_paginate",b.aoDrawCallback.push({fn:function(a){if(e){var b,c,g=a._iDisplayStart,i=a._iDisplayLength,j=a.fnRecordsDisplay(),k=-1===i,l=k?0:Math.ceil(g/i),m=k?1:Math.ceil(j/i),n=d(l,m);for(b=0,c=h.p.length;c>b;b++)Ra(a,"pageButton")(a,h.p[b],b,n,l,m)}else d.fnUpdate(a,f)},sName:"pagination"})),g}function ma(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"==typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=e>=0?d-e:0,0>d&&(d=0)):"next"==b?f>d+e&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:Ka(a,0,"Unknown paging action: "+b,5);var g=a._iDisplayStart!==d;return a._iDisplayStart=d,g&&(Pa(a,null,"page",[a]),c&&M(a)),g}function na(b){return a("<div/>",{id:b.aanFeatures.r?null:b.sTableId+"_processing","class":b.oClasses.sProcessing}).html(b.oLanguage.sProcessing).insertBefore(b.nTable)[0]}function oa(b,c){b.oFeatures.bProcessing&&a(b.aanFeatures.r).css("display",c?"block":"none"),Pa(b,null,"processing",[b,c])}function pa(b){var c=a(b.nTable);c.attr("role","grid");var d=b.oScroll;if(""===d.sX&&""===d.sY)return b.nTable;var e=d.sX,f=d.sY,g=b.oClasses,h=c.children("caption"),i=h.length?h[0]._captionSide:null,j=a(c[0].cloneNode(!1)),k=a(c[0].cloneNode(!1)),l=c.children("tfoot"),m="<div/>",n=function(a){return a?ya(a):null};d.sX&&"100%"===c.attr("width")&&c.removeAttr("width"),l.length||(l=null);var o=a(m,{"class":g.sScrollWrapper}).append(a(m,{"class":g.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?n(e):"100%"}).append(a(m,{"class":g.sScrollHeadInner}).css({"box-sizing":"content-box",width:d.sXInner||"100%"}).append(j.removeAttr("id").css("margin-left",0).append("top"===i?h:null).append(c.children("thead"))))).append(a(m,{"class":g.sScrollBody}).css({overflow:"auto",height:n(f),width:n(e)}).append(c));l&&o.append(a(m,{"class":g.sScrollFoot}).css({overflow:"hidden",border:0,width:e?n(e):"100%"}).append(a(m,{"class":g.sScrollFootInner}).append(k.removeAttr("id").css("margin-left",0).append("bottom"===i?h:null).append(c.children("tfoot")))));var p=o.children(),q=p[0],r=p[1],s=l?p[2]:null;return e&&a(r).on("scroll.DT",function(a){var b=this.scrollLeft;q.scrollLeft=b,l&&(s.scrollLeft=b)}),b.nScrollHead=q,b.nScrollBody=r,b.nScrollFoot=s,b.aoDrawCallback.push({fn:qa,sName:"scrolling"}),o[0]}function qa(b){var c,d,e,f,g,h,i,j,k,l=b.oScroll,m=l.sX,n=l.sXInner,p=l.sY,q=l.iBarWidth,r=a(b.nScrollHead),s=r[0].style,t=r.children("div"),u=t[0].style,v=t.children("table"),w=b.nScrollBody,x=a(w),y=w.style,z=a(b.nScrollFoot),A=z.children("div"),B=A.children("table"),C=a(b.nTHead),D=a(b.nTable),E=D[0],F=E.style,G=b.nTFoot?a(b.nTFoot):null,H=b.oBrowser,I=H.bScrollOversize,J=[],K=[],L=[],M=function(a){var b=a.style;b.paddingTop="0",b.paddingBottom="0",b.borderTopWidth="0",b.borderBottomWidth="0",b.height=0};if(D.children("thead, tfoot").remove(),g=C.clone().prependTo(D),c=C.find("tr"),e=g.find("tr"),g.find("th, td").removeAttr("tabindex"),G&&(h=G.clone().prependTo(D),d=G.find("tr"),f=h.find("tr")),m||(y.width="100%",r[0].style.width="100%"),a.each(Q(b,g),function(a,c){i=o(b,a),c.style.width=b.aoColumns[i].sWidth}),G&&ra(function(a){a.style.width=""},f),l.bCollapse&&""!==p&&(y.height=x[0].offsetHeight+C[0].offsetHeight+"px"),k=D.outerWidth(),""===m?(F.width="100%",I&&(D.find("tbody").height()>w.offsetHeight||"scroll"==x.css("overflow-y"))&&(F.width=ya(D.outerWidth()-q))):""!==n?F.width=ya(n):k==x.width()&&x.height()<D.height()?(F.width=ya(k-q),D.outerWidth()>k-q&&(F.width=ya(k))):F.width=ya(k),k=D.outerWidth(),ra(M,e),ra(function(b){L.push(b.innerHTML),J.push(ya(a(b).css("width")))},e),ra(function(a,b){a.style.width=J[b]},c),a(e).height(0),G&&(ra(M,f),ra(function(b){K.push(ya(a(b).css("width")))},f),ra(function(a,b){a.style.width=K[b]},d),a(f).height(0)),ra(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+L[b]+"</div>",a.style.width=J[b]},e),G&&ra(function(a,b){a.innerHTML="",a.style.width=K[b]},f),D.outerWidth()<k?(j=w.scrollHeight>w.offsetHeight||"scroll"==x.css("overflow-y")?k+q:k,I&&(w.scrollHeight>w.offsetHeight||"scroll"==x.css("overflow-y"))&&(F.width=ya(j-q)),(""===m||""!==n)&&Ka(b,1,"Possible column misalignment",6)):j="100%",y.width=ya(j),s.width=ya(j),G&&(b.nScrollFoot.style.width=ya(j)),p||I&&(y.height=ya(E.offsetHeight+q)),p&&l.bCollapse){y.height=ya(p);var N=m&&E.offsetWidth>w.offsetWidth?q:0;E.offsetHeight<w.offsetHeight&&(y.height=ya(E.offsetHeight+N))}var O=D.outerWidth();v[0].style.width=ya(O),u.width=ya(O);var P=D.height()>w.clientHeight||"scroll"==x.css("overflow-y"),R="padding"+(H.bScrollbarLeft?"Left":"Right");u[R]=P?q+"px":"0px",G&&(B[0].style.width=ya(O),A[0].style.width=ya(O),A[0].style[R]=P?q+"px":"0px"),x.scroll(),!b.bSorted&&!b.bFiltered||b._drawHold||(w.scrollTop=0)}function ra(a,b,c){for(var d,e,f=0,g=0,h=b.length;h>g;){for(d=b[g].firstChild,e=c?c[g].firstChild:null;d;)1===d.nodeType&&(c?a(d,e,f):a(d,f),f++),d=d.nextSibling,e=c?e.nextSibling:null;g++}}function sa(b){var c,e,f,g,h,i=b.nTable,j=b.aoColumns,k=b.oScroll,l=k.sY,m=k.sX,o=k.sXInner,p=j.length,s=r(b,"bVisible"),t=a("th",b.nTHead),u=i.getAttribute("width"),v=i.parentNode,w=!1,x=i.style.width;for(x&&-1!==x.indexOf("%")&&(u=x),c=0;c<s.length;c++)e=j[s[c]],null!==e.sWidth&&(e.sWidth=ua(e.sWidthOrig,v),w=!0);if(w||m||l||p!=q(b)||p!=t.length){var y=a(i).clone().css("visibility","hidden").removeAttr("id");y.find("tbody tr").remove();var z=a("<tr/>").appendTo(y.find("tbody"));for(y.find("tfoot th, tfoot td").css("width",""),t=Q(b,y.find("thead")[0]),c=0;c<s.length;c++)e=j[s[c]],t[c].style.width=null!==e.sWidthOrig&&""!==e.sWidthOrig?ya(e.sWidthOrig):"";if(b.aoData.length)for(c=0;c<s.length;c++)f=s[c],e=j[f],a(wa(b,f)).clone(!1).append(e.sContentPadding).appendTo(z);if(y.appendTo(v),m&&o?y.width(o):m?(y.css("width","auto"),y.width()<v.offsetWidth&&y.width(v.offsetWidth)):l?y.width(v.offsetWidth):u&&y.width(u),va(b,y[0]),m){var A=0;for(c=0;c<s.length;c++)e=j[s[c]],h=a(t[c]).outerWidth(),A+=null===e.sWidthOrig?h:parseInt(e.sWidth,10)+h-a(t[c]).width();y.width(ya(A)),i.style.width=ya(A)}for(c=0;c<s.length;c++)e=j[s[c]],g=a(t[c]).width(),g&&(e.sWidth=ya(g));i.style.width=ya(y.css("width")),y.remove()}else for(c=0;p>c;c++)j[c].sWidth=ya(t.eq(c).width());if(u&&(i.style.width=ya(u)),(u||m)&&!b._reszEvt){var B=function(){a(d).bind("resize.DT-"+b.sInstance,ta(function(){n(b)}))};b.oBrowser.bScrollOversize?setTimeout(B,1e3):B(),b._reszEvt=!0}}function ta(a,b){var c,d,e=b!==f?b:200;return function(){var b=this,g=+new Date,h=arguments;c&&c+e>g?(clearTimeout(d),d=setTimeout(function(){c=f,a.apply(b,h)},e)):(c=g,a.apply(b,h))}}function ua(b,c){if(!b)return 0;var d=a("<div/>").css("width",ya(b)).appendTo(c||e.body),f=d[0].offsetWidth;return d.remove(),f}function va(b,c){var d=b.oScroll;if(d.sX||d.sY){var e=d.sX?0:d.iBarWidth;c.style.width=ya(a(c).outerWidth()-e)}}function wa(b,c){var d=xa(b,c);if(0>d)return null;var e=b.aoData[d];return e.nTr?e.anCells[c]:a("<td/>").html(y(b,d,c,"display"))[0]}function xa(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;g>f;f++)c=y(a,f,b,"display")+"",c=c.replace(xb,""),c.length>d&&(d=c.length,e=f);return e}function ya(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function za(){var b=Wa.__scrollbarWidth;if(b===f){var c=a("<p/>").css({position:"absolute",top:0,left:0,width:"100%",height:150,padding:0,overflow:"scroll",visibility:"hidden"}).appendTo("body");b=c[0].offsetWidth-c[0].clientWidth,Wa.__scrollbarWidth=b,c.remove()}return b}function Aa(b){var c,d,e,g,h,i,j,k=[],l=b.aoColumns,m=b.aaSortingFixed,n=a.isPlainObject(m),o=[],p=function(b){b.length&&!a.isArray(b[0])?o.push(b):o.push.apply(o,b)};for(a.isArray(m)&&p(m),n&&m.pre&&p(m.pre),p(b.aaSorting),n&&m.post&&p(m.post),c=0;c<o.length;c++)for(j=o[c][0],g=l[j].aDataSort,d=0,e=g.length;e>d;d++)h=g[d],i=l[h].sType||"string",o[c]._idx===f&&(o[c]._idx=a.inArray(o[c][1],l[h].asSorting)),k.push({src:j,col:h,dir:o[c][1],index:o[c]._idx,type:i,formatter:Wa.ext.type.order[i+"-pre"]});return k}function Ba(a){var b,c,d,e,f,g=[],h=Wa.ext.type.order,i=a.aoData,j=(a.aoColumns,0),k=a.aiDisplayMaster;for(s(a),f=Aa(a),b=0,c=f.length;c>b;b++)e=f[b],e.formatter&&j++,Ga(a,e.col);if("ssp"!=Sa(a)&&0!==f.length){for(b=0,d=k.length;d>b;b++)g[k[b]]=b;j===f.length?k.sort(function(a,b){var c,d,e,h,j,k=f.length,l=i[a]._aSortData,m=i[b]._aSortData;for(e=0;k>e;e++)if(j=f[e],c=l[j.col],d=m[j.col],h=d>c?-1:c>d?1:0,0!==h)return"asc"===j.dir?h:-h;return c=g[a],d=g[b],d>c?-1:c>d?1:0}):k.sort(function(a,b){var c,d,e,j,k,l,m=f.length,n=i[a]._aSortData,o=i[b]._aSortData;for(e=0;m>e;e++)if(k=f[e],c=n[k.col],d=o[k.col],l=h[k.type+"-"+k.dir]||h["string-"+k.dir],j=l(c,d),0!==j)return j;return c=g[a],d=g[b],d>c?-1:c>d?1:0})}a.bSorted=!0}function Ca(a){for(var b,c,d=a.aoColumns,e=Aa(a),f=a.oLanguage.oAria,g=0,h=d.length;h>g;g++){var i=d[g],j=i.asSorting,k=i.sTitle.replace(/<.*?>/g,""),l=i.nTh;l.removeAttribute("aria-sort"),i.bSortable?(e.length>0&&e[0].col==g?(l.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b=k+("asc"===c?f.sSortAscending:f.sSortDescending)):b=k,l.setAttribute("aria-label",b)}}function Da(b,c,d,e){var g,h=b.aoColumns[c],i=b.aaSorting,j=h.asSorting,k=function(b,c){var d=b._idx;return d===f&&(d=a.inArray(b[1],j)),d+1<j.length?d+1:c?null:0};if("number"==typeof i[0]&&(i=b.aaSorting=[i]),d&&b.oFeatures.bSortMulti){var l=a.inArray(c,mb(i,"0"));-1!==l?(g=k(i[l],!0),null===g&&1===i.length&&(g=0),null===g?i.splice(l,1):(i[l][1]=j[g],i[l]._idx=g)):(i.push([c,j[0],0]),i[i.length-1]._idx=0)}else i.length&&i[0][0]==c?(g=k(i[0]),i.length=1,i[0][1]=j[g],i[0]._idx=g):(i.length=0,i.push([c,j[0]]),i[0]._idx=0);N(b),"function"==typeof e&&e(b)}function Ea(a,b,c,d){var e=a.aoColumns[c];Na(b,{},function(b){e.bSortable!==!1&&(a.oFeatures.bProcessing?(oa(a,!0),setTimeout(function(){Da(a,c,b.shiftKey,d),"ssp"!==Sa(a)&&oa(a,!1)},0)):Da(a,c,b.shiftKey,d))})}function Fa(b){var c,d,e,f=b.aLastSort,g=b.oClasses.sSortColumn,h=Aa(b),i=b.oFeatures;if(i.bSort&&i.bSortClasses){for(c=0,d=f.length;d>c;c++)e=f[c].src,a(mb(b.aoData,"anCells",e)).removeClass(g+(2>c?c+1:3));for(c=0,d=h.length;d>c;c++)e=h[c].src,a(mb(b.aoData,"anCells",e)).addClass(g+(2>c?c+1:3))}b.aLastSort=h}function Ga(a,b){var c,d=a.aoColumns[b],e=Wa.ext.order[d.sSortDataType];e&&(c=e.call(a.oInstance,a,b,p(a,b)));for(var f,g,h=Wa.ext.type.order[d.sType+"-pre"],i=0,j=a.aoData.length;j>i;i++)f=a.aoData[i],f._aSortData||(f._aSortData=[]),(!f._aSortData[b]||e)&&(g=e?c[i]:y(a,i,b,"sort"),f._aSortData[b]=h?h(g):g)}function Ha(b){if(b.oFeatures.bStateSave&&!b.bDestroying){var c={time:+new Date,start:b._iDisplayStart,length:b._iDisplayLength,order:a.extend(!0,[],b.aaSorting),search:ca(b.oPreviousSearch),columns:a.map(b.aoColumns,function(a,c){return{visible:a.bVisible,search:ca(b.aoPreSearchCols[c])}})};Pa(b,"aoStateSaveParams","stateSaveParams",[b,c]),b.oSavedState=c,b.fnStateSaveCallback.call(b.oInstance,b,c)}}function Ia(b,c){var d,e,g=b.aoColumns;if(b.oFeatures.bStateSave){var h=b.fnStateLoadCallback.call(b.oInstance,b);if(h&&h.time){var i=Pa(b,"aoStateLoadParams","stateLoadParams",[b,h]);if(-1===a.inArray(!1,i)){var j=b.iStateDuration;if(!(j>0&&h.time<+new Date-1e3*j)&&g.length===h.columns.length){for(b.oLoadedState=a.extend(!0,{},h),h.start!==f&&(b._iDisplayStart=h.start,b.iInitDisplayStart=h.start),h.length!==f&&(b._iDisplayLength=h.length),h.order!==f&&(b.aaSorting=[],a.each(h.order,function(a,c){b.aaSorting.push(c[0]>=g.length?[0,c[1]]:c)})),h.search!==f&&a.extend(b.oPreviousSearch,da(h.search)),d=0,e=h.columns.length;e>d;d++){var k=h.columns[d];k.visible!==f&&(g[d].bVisible=k.visible),k.search!==f&&a.extend(b.aoPreSearchCols[d],da(k.search))}Pa(b,"aoStateLoaded","stateLoaded",[b,h])}}}}}function Ja(b){var c=Wa.settings,d=a.inArray(b,mb(c,"nTable"));return-1!==d?c[d]:null}function Ka(a,b,c,e){if(c="DataTables warning: "+(null!==a?"table id="+a.sTableId+" - ":"")+c,e&&(c+=". For more information about this error, please see http://datatables.net/tn/"+e),b)d.console&&console.log&&console.log(c);else{var f=Wa.ext,g=f.sErrMode||f.errMode;if(Pa(a,null,"error",[a,e,c]),"alert"==g)alert(c);else{if("throw"==g)throw new Error(c);"function"==typeof g&&g(a,e,c)}}}function La(b,c,d,e){return a.isArray(d)?void a.each(d,function(d,e){a.isArray(e)?La(b,c,e[0],e[1]):La(b,c,e)}):(e===f&&(e=d),void(c[d]!==f&&(b[e]=c[d])))}function Ma(b,c,d){var e;for(var f in c)c.hasOwnProperty(f)&&(e=c[f],a.isPlainObject(e)?(a.isPlainObject(b[f])||(b[f]={}),a.extend(!0,b[f],e)):d&&"data"!==f&&"aaData"!==f&&a.isArray(e)?b[f]=e.slice():b[f]=e);return b}function Na(b,c,d){a(b).bind("click.DT",c,function(a){b.blur(),d(a)}).bind("keypress.DT",c,function(a){13===a.which&&(a.preventDefault(),d(a))}).bind("selectstart.DT",function(){return!1})}function Oa(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function Pa(b,c,d,e){var f=[];if(c&&(f=a.map(b[c].slice().reverse(),function(a,c){return a.fn.apply(b.oInstance,e)})),null!==d){var g=a.Event(d+".dt");a(b.nTable).trigger(g,e),f.push(g.result)}return f}function Qa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d),b-=b%d,(-1===d||0>b)&&(b=0),a._iDisplayStart=b}function Ra(b,c){var d=b.renderer,e=Wa.ext.renderer[c];return a.isPlainObject(d)&&d[c]?e[d[c]]||e._:"string"==typeof d?e[d]||e._:e._}function Sa(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Ta(a,b){var c=[],d=Ub.numbers_length,e=Math.floor(d/2);return d>=b?c=ob(0,b):e>=a?(c=ob(0,d-2),c.push("ellipsis"),c.push(b-1)):a>=b-1-e?(c=ob(b-(d-2),b),c.splice(0,0,"ellipsis"),c.splice(0,0,0)):(c=ob(a-e+2,a+e-1),c.push("ellipsis"),c.push(b-1),c.splice(0,0,"ellipsis"),c.splice(0,0,0)),c.DT_el="span",c}function Ua(b){a.each({num:function(a){return Vb(a,b)},"num-fmt":function(a){return Vb(a,b,fb)},"html-num":function(a){return Vb(a,b,bb)},"html-num-fmt":function(a){return Vb(a,b,bb,fb)}},function(a,c){Xa.type.order[a+b+"-pre"]=c,a.match(/^html\-/)&&(Xa.type.search[a+b]=Xa.type.search.html)})}function Va(a){return function(){var b=[Ja(this[Wa.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Wa.ext.internal[a].apply(this,b)}}var Wa,Xa,Ya,Za,$a,_a={},ab=/[\r\n]/g,bb=/<.*?>/g,cb=/^[\w\+\-]/,db=/[\w\+\-]$/,eb=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),fb=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,gb=function(a){return a&&a!==!0&&"-"!==a?!1:!0},hb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},ib=function(a,b){return _a[b]||(_a[b]=new RegExp(aa(b),"g")),"string"==typeof a&&"."!==b?a.replace(/\./g,"").replace(_a[b],"."):a},jb=function(a,b,c){var d="string"==typeof a;return gb(a)?!0:(b&&d&&(a=ib(a,b)),c&&d&&(a=a.replace(fb,"")),!isNaN(parseFloat(a))&&isFinite(a))},kb=function(a){return gb(a)||"string"==typeof a},lb=function(a,b,c){if(gb(a))return!0;var d=kb(a);return d&&jb(qb(a),b,c)?!0:null},mb=function(a,b,c){var d=[],e=0,g=a.length;if(c!==f)for(;g>e;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;g>e;e++)a[e]&&d.push(a[e][b]);return d},nb=function(a,b,c,d){var e=[],g=0,h=b.length;if(d!==f)for(;h>g;g++)a[b[g]][c]&&e.push(a[b[g]][c][d]);else for(;h>g;g++)e.push(a[b[g]][c]);return e},ob=function(a,b){var c,d=[];b===f?(b=0,c=a):(c=b,b=a);for(var e=b;c>e;e++)d.push(e);return d},pb=function(a){for(var b=[],c=0,d=a.length;d>c;c++)a[c]&&b.push(a[c]);return b},qb=function(a){return a.replace(bb,"")},rb=function(a){var b,c,d,e=[],f=a.length,g=0;a:for(c=0;f>c;c++){for(b=a[c],d=0;g>d;d++)if(e[d]===b)continue a;e.push(b),g++}return e},sb=function(a,b,c){a[b]!==f&&(a[c]=a[b])},tb=/\[.*?\]$/,ub=/\(\)$/,vb=a("<div>")[0],wb=vb.textContent!==f,xb=/<.*?>/g;Wa=function(b){this.$=function(a,b){return this.api(!0).$(a,b)},this._=function(a,b){return this.api(!0).rows(a,b).data()},this.api=function(a){return new Ya(a?Ja(this[Xa.iApiIndex]):this)},this.fnAddData=function(b,c){var d=this.api(!0),e=a.isArray(b)&&(a.isArray(b[0])||a.isPlainObject(b[0]))?d.rows.add(b):d.row.add(b);return(c===f||c)&&d.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===f||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&qa(c)},this.fnClearTable=function(a){var b=this.api(!0).clear();(a===f||a)&&b.draw()},this.fnClose=function(a){this.api(!0).row(a).child.hide()},this.fnDeleteRow=function(a,b,c){var d=this.api(!0),e=d.rows(a),g=e.settings()[0],h=g.aoData[e[0][0]];return e.remove(),b&&b.call(this,g,h),(c===f||c)&&d.draw(),h},this.fnDestroy=function(a){this.api(!0).destroy(a)},this.fnDraw=function(a){this.api(!0).draw(a)},this.fnFilter=function(a,b,c,d,e,g){var h=this.api(!0);null===b||b===f?h.search(a,c,d,g):h.column(b).search(a,c,d,g),h.draw()},this.fnGetData=function(a,b){var c=this.api(!0);if(a!==f){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==f||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()},this.fnGetNodes=function(a){var b=this.api(!0);return a!==f?b.row(a).node():b.rows().nodes().flatten().toArray()},this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();if("TR"==c)return b.row(a).index();if("TD"==c||"TH"==c){var d=b.cell(a).index();return[d.row,d.columnVisible,d.column]}return null},this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()},this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]},this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===f||b)&&c.draw(!1)},this.fnSetColumnVis=function(a,b,c){var d=this.api(!0).column(a).visible(b);(c===f||c)&&d.columns.adjust().draw()},this.fnSettings=function(){return Ja(this[Xa.iApiIndex])},this.fnSort=function(a){this.api(!0).order(a).draw()},this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)},this.fnUpdate=function(a,b,c,d,e){var g=this.api(!0);return c===f||null===c?g.row(b).data(a):g.cell(b,c).data(a),(e===f||e)&&g.columns.adjust(),(d===f||d)&&g.draw(),0},this.fnVersionCheck=Xa.fnVersionCheck;var d=this,e=b===f,k=this.length;e&&(b={}),this.oApi=this.internal=Xa.internal;for(var n in Wa.ext.internal)n&&(this[n]=Va(n));return this.each(function(){var n,o={},p=k>1?Ma(o,b,!0):b,q=0,r=this.getAttribute("id"),s=!1,w=Wa.defaults,x=a(this);if("table"!=this.nodeName.toLowerCase())return void Ka(null,0,"Non-table node initialisation ("+this.nodeName+")",2);h(w),i(w.column),c(w,w,!0),c(w.column,w.column,!0),c(w,a.extend(p,x.data()));var y=Wa.settings;for(q=0,n=y.length;n>q;q++){var z=y[q];if(z.nTable==this||z.nTHead.parentNode==this||z.nTFoot&&z.nTFoot.parentNode==this){var A=p.bRetrieve!==f?p.bRetrieve:w.bRetrieve,B=p.bDestroy!==f?p.bDestroy:w.bDestroy;if(e||A)return z.oInstance;if(B){z.oInstance.fnDestroy();break}return void Ka(z,0,"Cannot reinitialise DataTable",3)}if(z.sTableId==this.id){y.splice(q,1);break}}(null===r||""===r)&&(r="DataTables_Table_"+Wa.ext._unique++,this.id=r);var C=a.extend(!0,{},Wa.models.oSettings,{sDestroyWidth:x[0].style.width,sInstance:r,sTableId:r});C.nTable=this,C.oApi=d.internal,C.oInit=p,y.push(C),C.oInstance=1===d.length?d:x.dataTable(),h(p),p.oLanguage&&g(p.oLanguage),p.aLengthMenu&&!p.iDisplayLength&&(p.iDisplayLength=a.isArray(p.aLengthMenu[0])?p.aLengthMenu[0][0]:p.aLengthMenu[0]),p=Ma(a.extend(!0,{},w),p),La(C.oFeatures,p,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),La(C,p,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),La(C.oScroll,p,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),La(C.oLanguage,p,"fnInfoCallback"),Oa(C,"aoDrawCallback",p.fnDrawCallback,"user"),Oa(C,"aoServerParams",p.fnServerParams,"user"),Oa(C,"aoStateSaveParams",p.fnStateSaveParams,"user"),Oa(C,"aoStateLoadParams",p.fnStateLoadParams,"user"),Oa(C,"aoStateLoaded",p.fnStateLoaded,"user"),Oa(C,"aoRowCallback",p.fnRowCallback,"user"),Oa(C,"aoRowCreatedCallback",p.fnCreatedRow,"user"),Oa(C,"aoHeaderCallback",p.fnHeaderCallback,"user"),Oa(C,"aoFooterCallback",p.fnFooterCallback,"user"),Oa(C,"aoInitComplete",p.fnInitComplete,"user"),Oa(C,"aoPreDrawCallback",p.fnPreDrawCallback,"user");var D=C.oClasses;if(p.bJQueryUI?(a.extend(D,Wa.ext.oJUIClasses,p.oClasses),p.sDom===w.sDom&&"lfrtip"===w.sDom&&(C.sDom='<"H"lfr>t<"F"ip>'),C.renderer?a.isPlainObject(C.renderer)&&!C.renderer.header&&(C.renderer.header="jqueryui"):C.renderer="jqueryui"):a.extend(D,Wa.ext.classes,p.oClasses),x.addClass(D.sTable),(""!==C.oScroll.sX||""!==C.oScroll.sY)&&(C.oScroll.iBarWidth=za()),C.oScroll.sX===!0&&(C.oScroll.sX="100%"),C.iInitDisplayStart===f&&(C.iInitDisplayStart=p.iDisplayStart,C._iDisplayStart=p.iDisplayStart),null!==p.iDeferLoading){
  C.bDeferLoading=!0;var E=a.isArray(p.iDeferLoading);C._iRecordsDisplay=E?p.iDeferLoading[0]:p.iDeferLoading,C._iRecordsTotal=E?p.iDeferLoading[1]:p.iDeferLoading}var F=C.oLanguage;a.extend(!0,F,p.oLanguage),""!==F.sUrl&&(a.ajax({dataType:"json",url:F.sUrl,success:function(b){g(b),c(w.oLanguage,b),a.extend(!0,F,b),ha(C)},error:function(){ha(C)}}),s=!0),null===p.asStripeClasses&&(C.asStripeClasses=[D.sStripeOdd,D.sStripeEven]);var G=C.asStripeClasses,I=x.children("tbody").find("tr").eq(0);-1!==a.inArray(!0,a.map(G,function(a,b){return I.hasClass(a)}))&&(a("tbody tr",this).removeClass(G.join(" ")),C.asDestroyStripes=G.slice());var J,K=[],L=this.getElementsByTagName("thead");if(0!==L.length&&(P(C.aoHeader,L[0]),K=Q(C)),null===p.aoColumns)for(J=[],q=0,n=K.length;n>q;q++)J.push(null);else J=p.aoColumns;for(q=0,n=J.length;n>q;q++)l(C,K?K[q]:null);if(t(C,p.aoColumnDefs,J,function(a,b){m(C,a,b)}),I.length){var M=function(a,b){return null!==a.getAttribute("data-"+b)?b:null};a.each(H(C,I[0]).cells,function(a,b){var c=C.aoColumns[a];if(c.mData===a){var d=M(b,"sort")||M(b,"order"),e=M(b,"filter")||M(b,"search");(null!==d||null!==e)&&(c.mData={_:a+".display",sort:null!==d?a+".@data-"+d:f,type:null!==d?a+".@data-"+d:f,filter:null!==e?a+".@data-"+e:f},m(C,a))}})}var N=C.oFeatures;if(p.bStateSave&&(N.bStateSave=!0,Ia(C,p),Oa(C,"aoDrawCallback",Ha,"state_save")),p.aaSorting===f){var O=C.aaSorting;for(q=0,n=O.length;n>q;q++)O[q][1]=C.aoColumns[q].asSorting[0]}Fa(C),N.bSort&&Oa(C,"aoDrawCallback",function(){if(C.bSorted){var b=Aa(C),c={};a.each(b,function(a,b){c[b.src]=b.dir}),Pa(C,null,"order",[C,b,c]),Ca(C)}}),Oa(C,"aoDrawCallback",function(){(C.bSorted||"ssp"===Sa(C)||N.bDeferRender)&&Fa(C)},"sc"),j(C);var R=x.children("caption").each(function(){this._captionSide=x.css("caption-side")}),S=x.children("thead");0===S.length&&(S=a("<thead/>").appendTo(this)),C.nTHead=S[0];var T=x.children("tbody");0===T.length&&(T=a("<tbody/>").appendTo(this)),C.nTBody=T[0];var U=x.children("tfoot");if(0===U.length&&R.length>0&&(""!==C.oScroll.sX||""!==C.oScroll.sY)&&(U=a("<tfoot/>").appendTo(this)),0===U.length||0===U.children().length?x.addClass(D.sNoFooter):U.length>0&&(C.nTFoot=U[0],P(C.aoFooter,C.nTFoot)),p.aaData)for(q=0;q<p.aaData.length;q++)u(C,p.aaData[q]);else(C.bDeferLoading||"dom"==Sa(C))&&v(C,a(C.nTBody).children("tr"));C.aiDisplay=C.aiDisplayMaster.slice(),C.bInitialised=!0,s===!1&&ha(C)}),d=null,this};var yb=[],zb=Array.prototype,Ab=function(b){var c,d,e=Wa.settings,f=a.map(e,function(a,b){return a.nTable});return b?b.nTable&&b.oApi?[b]:b.nodeName&&"table"===b.nodeName.toLowerCase()?(c=a.inArray(b,f),-1!==c?[e[c]]:null):b&&"function"==typeof b.settings?b.settings().toArray():("string"==typeof b?d=a(b):b instanceof a&&(d=b),d?d.map(function(b){return c=a.inArray(this,f),-1!==c?e[c]:null}).toArray():void 0):[]};Ya=function(b,c){if(!(this instanceof Ya))return new Ya(b,c);var d=[],e=function(a){var b=Ab(a);b&&d.push.apply(d,b)};if(a.isArray(b))for(var f=0,g=b.length;g>f;f++)e(b[f]);else e(b);this.context=rb(d),c&&this.push.apply(this,c.toArray?c.toArray():c),this.selector={rows:null,cols:null,opts:null},Ya.extend(this,this,yb)},Wa.Api=Ya,Ya.prototype={any:function(){return 0!==this.flatten().length},concat:zb.concat,context:[],each:function(a){for(var b=0,c=this.length;c>b;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new Ya(b[a],this[a]):null},filter:function(a){var b=[];if(zb.filter)b=zb.filter.call(this,a,this);else for(var c=0,d=this.length;d>c;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new Ya(this.context,b)},flatten:function(){var a=[];return new Ya(this.context,a.concat.apply(a,this.toArray()))},join:zb.join,indexOf:zb.indexOf||function(a,b){for(var c=b||0,d=this.length;d>c;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e,g,h,i,j,k,l,m,n=[],o=this.context,p=this.selector;for("string"==typeof a&&(d=c,c=b,b=a,a=!1),g=0,h=o.length;h>g;g++){var q=new Ya(o[g]);if("table"===b)e=c.call(q,o[g],g),e!==f&&n.push(e);else if("columns"===b||"rows"===b)e=c.call(q,o[g],this[g],g),e!==f&&n.push(e);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b)for(l=this[g],"column-rows"===b&&(k=Gb(o[g],p.opts)),i=0,j=l.length;j>i;i++)m=l[i],e="cell"===b?c.call(q,o[g],m.row,m.column,g,i):c.call(q,o[g],m,g,i,k),e!==f&&n.push(e)}if(n.length||d){var r=new Ya(o,a?n.concat.apply([],n):n),s=r.selector;return s.rows=p.rows,s.cols=p.cols,s.opts=p.opts,r}return this},lastIndexOf:zb.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(zb.map)b=zb.map.call(this,a,this);else for(var c=0,d=this.length;d>c;c++)b.push(a.call(this,this[c],c));return new Ya(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:zb.pop,push:zb.push,reduce:zb.reduce||function(a,b){return k(this,a,b,0,this.length,1)},reduceRight:zb.reduceRight||function(a,b){return k(this,a,b,this.length-1,-1,-1)},reverse:zb.reverse,selector:null,shift:zb.shift,sort:zb.sort,splice:zb.splice,toArray:function(){return zb.slice.call(this)},to$:function(){return a(this)},toJQuery:function(){return a(this)},unique:function(){return new Ya(this.context,rb(this))},unshift:zb.unshift},Ya.extend=function(b,c,d){if(d.length&&c&&(c instanceof Ya||c.__dt_wrapper)){var e,f,g,h=function(a,b,c){return function(){var d=b.apply(a,arguments);return Ya.extend(d,d,c.methodExt),d}};for(e=0,f=d.length;f>e;e++)g=d[e],c[g.name]="function"==typeof g.val?h(b,g.val,g):a.isPlainObject(g.val)?{}:g.val,c[g.name].__dt_wrapper=!0,Ya.extend(b,c[g.name],g.propExt)}},Ya.register=Za=function(b,c){if(a.isArray(b))for(var d=0,e=b.length;e>d;d++)Ya.register(b[d],c);else{var f,g,h,i,j=b.split("."),k=yb,l=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c].name===b)return a[c];return null};for(f=0,g=j.length;g>f;f++){i=-1!==j[f].indexOf("()"),h=i?j[f].replace("()",""):j[f];var m=l(k,h);m||(m={name:h,val:{},methodExt:[],propExt:[]},k.push(m)),f===g-1?m.val=c:k=i?m.methodExt:m.propExt}}},Ya.registerPlural=$a=function(b,c,d){Ya.register(b,d),Ya.register(c,function(){var b=d.apply(this,arguments);return b===this?this:b instanceof Ya?b.length?a.isArray(b[0])?new Ya(b.context,b[0]):b[0]:f:b})};var Bb=function(b,c){if("number"==typeof b)return[c[b]];var d=a.map(c,function(a,b){return a.nTable});return a(d).filter(b).map(function(b){var e=a.inArray(this,d);return c[e]}).toArray()};Za("tables()",function(a){return a?new Ya(Bb(a,this.context)):this}),Za("table()",function(a){var b=this.tables(a),c=b.context;return c.length?new Ya(c[0]):b}),$a("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)}),$a("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)}),$a("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)}),$a("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)}),$a("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)}),Za("draw()",function(a){return this.iterator("table",function(b){N(b,a===!1)})}),Za("page()",function(a){return a===f?this.page.info().page:this.iterator("table",function(b){ma(b,a)})}),Za("page.info()",function(a){if(0===this.context.length)return f;var b=this.context[0],c=b._iDisplayStart,d=b._iDisplayLength,e=b.fnRecordsDisplay(),g=-1===d;return{page:g?0:Math.floor(c/d),pages:g?1:Math.ceil(e/d),start:c,end:b.fnDisplayEnd(),length:d,recordsTotal:b.fnRecordsTotal(),recordsDisplay:e}}),Za("page.len()",function(a){return a===f?0!==this.context.length?this.context[0]._iDisplayLength:f:this.iterator("table",function(b){ja(b,a)})});var Cb=function(a,b,c){if(c){var d=new Ya(a);d.one("draw",function(){c(d.ajax.json())})}"ssp"==Sa(a)?N(a,b):(oa(a,!0),R(a,[],function(c){E(a);for(var d=V(a,c),e=0,f=d.length;f>e;e++)u(a,d[e]);N(a,b),oa(a,!1)}))};Za("ajax.json()",function(){var a=this.context;return a.length>0?a[0].json:void 0}),Za("ajax.params()",function(){var a=this.context;return a.length>0?a[0].oAjaxData:void 0}),Za("ajax.reload()",function(a,b){return this.iterator("table",function(c){Cb(c,b===!1,a)})}),Za("ajax.url()",function(b){var c=this.context;return b===f?0===c.length?f:(c=c[0],c.ajax?a.isPlainObject(c.ajax)?c.ajax.url:c.ajax:c.sAjaxSource):this.iterator("table",function(c){a.isPlainObject(c.ajax)?c.ajax.url=b:c.ajax=b})}),Za("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Cb(c,b===!1,a)})});var Db=function(b,c,d,e,g){var h,i,j,k,l,m,n=[],o=typeof c;for(c&&"string"!==o&&"function"!==o&&c.length!==f||(c=[c]),j=0,k=c.length;k>j;j++)for(i=c[j]&&c[j].split?c[j].split(","):[c[j]],l=0,m=i.length;m>l;l++)h=d("string"==typeof i[l]?a.trim(i[l]):i[l]),h&&h.length&&n.push.apply(n,h);var p=Xa.selector[b];if(p.length)for(j=0,k=p.length;k>j;j++)n=p[j](e,g,n);return n},Eb=function(b){return b||(b={}),b.filter&&b.search===f&&(b.search=b.filter),a.extend({search:"none",order:"current",page:"all"},b)},Fb=function(a){for(var b=0,c=a.length;c>b;b++)if(a[b].length>0)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;return a.length=0,a},Gb=function(b,c){var d,e,f,g=[],h=b.aiDisplay,i=b.aiDisplayMaster,j=c.search,k=c.order,l=c.page;if("ssp"==Sa(b))return"removed"===j?[]:ob(0,i.length);if("current"==l)for(d=b._iDisplayStart,e=b.fnDisplayEnd();e>d;d++)g.push(h[d]);else if("current"==k||"applied"==k)g="none"==j?i.slice():"applied"==j?h.slice():a.map(i,function(b,c){return-1===a.inArray(b,h)?b:null});else if("index"==k||"original"==k)for(d=0,e=b.aoData.length;e>d;d++)"none"==j?g.push(d):(f=a.inArray(d,h),(-1===f&&"removed"==j||f>=0&&"applied"==j)&&g.push(d));return g},Hb=function(b,c,d){var e=function(c){var e=hb(c);if(null!==e&&!d)return[e];var f=Gb(b,d);if(null!==e&&-1!==a.inArray(e,f))return[e];if(!c)return f;if("function"==typeof c)return a.map(f,function(a){var d=b.aoData[a];return c(a,d._aData,d.nTr)?a:null});var g=pb(nb(b.aoData,f,"nTr"));return c.nodeName&&-1!==a.inArray(c,g)?[c._DT_RowIndex]:a(g).filter(c).map(function(){return this._DT_RowIndex}).toArray()};return Db("row",c,e,b,d)};Za("rows()",function(b,c){b===f?b="":a.isPlainObject(b)&&(c=b,b=""),c=Eb(c);var d=this.iterator("table",function(a){return Hb(a,b,c)},1);return d.selector.rows=b,d.selector.opts=c,d}),Za("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||f},1)}),Za("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return nb(a.aoData,b,"_aData")},1)}),$a("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)}),$a("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){G(b,c,a)})}),$a("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)}),$a("rows().remove()","row().remove()",function(){var b=this;return this.iterator("row",function(c,d,e){var f=c.aoData;f.splice(d,1);for(var g=0,h=f.length;h>g;g++)null!==f[g].nTr&&(f[g].nTr._DT_RowIndex=g);a.inArray(d,c.aiDisplay);F(c.aiDisplayMaster,d),F(c.aiDisplay,d),F(b[e],d,!1),Qa(c)})}),Za("rows.add()",function(a){var b=this.iterator("table",function(b){var c,d,e,f=[];for(d=0,e=a.length;e>d;d++)c=a[d],c.nodeName&&"TR"===c.nodeName.toUpperCase()?f.push(v(b,c)[0]):f.push(u(b,c));return f},1),c=this.rows(-1);return c.pop(),c.push.apply(c,b.toArray()),c}),Za("row()",function(a,b){return Fb(this.rows(a,b))}),Za("row().data()",function(a){var b=this.context;return a===f?b.length&&this.length?b[0].aoData[this[0]]._aData:f:(b[0].aoData[this[0]]._aData=a,G(b[0],this[0],"data"),this)}),Za("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null}),Za("row.add()",function(b){b instanceof a&&b.length&&(b=b[0]);var c=this.iterator("table",function(a){return b.nodeName&&"TR"===b.nodeName.toUpperCase()?v(a,b)[0]:u(a,b)});return this.row(c[0])});var Ib=function(b,c,d,e){var f=[],g=function(c,d){if(a.isArray(c)||c instanceof a)for(var e=0,h=c.length;h>e;e++)g(c[e],d);else if(c.nodeName&&"tr"===c.nodeName.toLowerCase())f.push(c);else{var i=a("<tr><td/></tr>").addClass(d);a("td",i).addClass(d).html(c)[0].colSpan=q(b),f.push(i[0])}};g(d,e),c._details&&c._details.remove(),c._details=a(f),c._detailsShow&&c._details.insertAfter(c.nTr)},Jb=function(a,b){var c=a.context;if(c.length){var d=c[0].aoData[b!==f?b:a[0]];d._details&&(d._details.remove(),d._detailsShow=f,d._details=f)}},Kb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];d._details&&(d._detailsShow=b,b?d._details.insertAfter(d.nTr):d._details.detach(),Lb(c[0]))}},Lb=function(a){var b=new Ya(a),c=".dt.DT_details",d="draw"+c,e="column-visibility"+c,f="destroy"+c,g=a.aoData;b.off(d+" "+e+" "+f),mb(g,"_details").length>0&&(b.on(d,function(c,d){a===d&&b.rows({page:"current"}).eq(0).each(function(a){var b=g[a];b._detailsShow&&b._details.insertAfter(b.nTr)})}),b.on(e,function(b,c,d,e){if(a===c)for(var f,h=q(c),i=0,j=g.length;j>i;i++)f=g[i],f._details&&f._details.children("td[colspan]").attr("colspan",h)}),b.on(f,function(c,d){if(a===d)for(var e=0,f=g.length;f>e;e++)g[e]._details&&Jb(b,e)}))},Mb="",Nb=Mb+"row().child",Ob=Nb+"()";Za(Ob,function(a,b){var c=this.context;return a===f?c.length&&this.length?c[0].aoData[this[0]]._details:f:(a===!0?this.child.show():a===!1?Jb(this):c.length&&this.length&&Ib(c[0],c[0].aoData[this[0]],a,b),this)}),Za([Nb+".show()",Ob+".show()"],function(a){return Kb(this,!0),this}),Za([Nb+".hide()",Ob+".hide()"],function(){return Kb(this,!1),this}),Za([Nb+".remove()",Ob+".remove()"],function(){return Jb(this),this}),Za(Nb+".isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var Pb=/^(.+):(name|visIdx|visible)$/,Qb=function(a,b,c,d,e){for(var f=[],g=0,h=e.length;h>g;g++)f.push(y(a,e[g],b));return f},Rb=function(b,c,d){var e=b.aoColumns,f=mb(e,"sName"),g=mb(e,"nTh"),h=function(c){var h=hb(c);if(""===c)return ob(e.length);if(null!==h)return[h>=0?h:e.length+h];if("function"==typeof c){var i=Gb(b,d);return a.map(e,function(a,d){return c(d,Qb(b,d,0,0,i),g[d])?d:null})}var j="string"==typeof c?c.match(Pb):"";if(!j)return a(g).filter(c).map(function(){return a.inArray(this,g)}).toArray();switch(j[2]){case"visIdx":case"visible":var k=parseInt(j[1],10);if(0>k){var l=a.map(e,function(a,b){return a.bVisible?b:null});return[l[l.length+k]]}return[o(b,k)];case"name":return a.map(f,function(a,b){return a===j[1]?b:null})}};return Db("column",c,h,b,d)},Sb=function(b,c,d,e){var g,h,i,j,k=b.aoColumns,l=k[c],m=b.aoData;if(d===f)return l.bVisible;if(l.bVisible!==d){if(d){var o=a.inArray(!0,mb(k,"bVisible"),c+1);for(h=0,i=m.length;i>h;h++)j=m[h].nTr,g=m[h].anCells,j&&j.insertBefore(g[c],g[o]||null)}else a(mb(b.aoData,"anCells",c)).detach();l.bVisible=d,L(b,b.aoHeader),L(b,b.aoFooter),(e===f||e)&&(n(b),(b.oScroll.sX||b.oScroll.sY)&&qa(b)),Pa(b,null,"column-visibility",[b,c,d]),Ha(b)}};Za("columns()",function(b,c){b===f?b="":a.isPlainObject(b)&&(c=b,b=""),c=Eb(c);var d=this.iterator("table",function(a){return Rb(a,b,c)},1);return d.selector.cols=b,d.selector.opts=c,d}),$a("columns().header()","column().header()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)}),$a("columns().footer()","column().footer()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)}),$a("columns().data()","column().data()",function(){return this.iterator("column-rows",Qb,1)}),$a("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)}),$a("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return nb(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)}),$a("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return nb(a.aoData,e,"anCells",b)},1)}),$a("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,d){return a===f?c.aoColumns[d].bVisible:void Sb(c,d,a,b)})}),$a("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?p(b,c):c},1)}),Za("columns.adjust()",function(){return this.iterator("table",function(a){n(a)},1)}),Za("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return o(c,b);if("fromData"===a||"toVisible"===a)return p(c,b)}}),Za("column()",function(a,b){return Fb(this.columns(a,b))});var Tb=function(b,c,d){var e,g,h,i,j,k,l,m=b.aoData,n=Gb(b,d),o=pb(nb(m,n,"anCells")),p=a([].concat.apply([],o)),q=b.aoColumns.length,r=function(c){var d="function"==typeof c;if(null===c||c===f||d){for(g=[],h=0,i=n.length;i>h;h++)for(e=n[h],j=0;q>j;j++)k={row:e,column:j},d?(l=b.aoData[e],c(k,y(b,e,j),l.anCells?l.anCells[j]:null)&&g.push(k)):g.push(k);return g}return a.isPlainObject(c)?[c]:p.filter(c).map(function(b,c){return e=c.parentNode._DT_RowIndex,{row:e,column:a.inArray(c,m[e].anCells)}}).toArray()};return Db("cell",c,r,b,d)};Za("cells()",function(b,c,d){if(a.isPlainObject(b)&&(b.row===f?(d=b,b=null):(d=c,c=null)),a.isPlainObject(c)&&(d=c,c=null),null===c||c===f)return this.iterator("table",function(a){return Tb(a,b,Eb(d))});var e,g,h,i,j,k=this.columns(c,d),l=this.rows(b,d),m=this.iterator("table",function(a,b){for(e=[],g=0,h=l[b].length;h>g;g++)for(i=0,j=k[b].length;j>i;i++)e.push({row:l[b][g],column:k[b][i]});return e},1);return a.extend(m.selector,{cols:c,rows:b,opts:d}),m}),$a("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){var d=a.aoData[b].anCells;return d?d[c]:f},1)}),Za("cells().data()",function(){return this.iterator("cell",function(a,b,c){return y(a,b,c)},1)}),$a("cells().cache()","cell().cache()",function(a){return a="search"===a?"_aFilterData":"_aSortData",this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)}),$a("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return y(b,c,d,a)},1)}),$a("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:p(a,c)}},1)}),$a("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){G(b,c,a,d)})}),Za("cell()",function(a,b,c){return Fb(this.cells(a,b,c))}),Za("cell().data()",function(a){var b=this.context,c=this[0];return a===f?b.length&&c.length?y(b[0],c[0].row,c[0].column):f:(z(b[0],c[0].row,c[0].column,a),G(b[0],c[0].row,"data",c[0].column),this)}),Za("order()",function(b,c){var d=this.context;return b===f?0!==d.length?d[0].aaSorting:f:("number"==typeof b?b=[[b,c]]:a.isArray(b[0])||(b=Array.prototype.slice.call(arguments)),this.iterator("table",function(a){a.aaSorting=b.slice()}))}),Za("order.listener()",function(a,b,c){return this.iterator("table",function(d){Ea(d,a,b,c)})}),Za(["columns().order()","column().order()"],function(b){var c=this;return this.iterator("table",function(d,e){var f=[];a.each(c[e],function(a,c){f.push([c,b])}),d.aaSorting=f})}),Za("search()",function(b,c,d,e){var g=this.context;return b===f?0!==g.length?g[0].oPreviousSearch.sSearch:f:this.iterator("table",function(f){f.oFeatures.bFilter&&X(f,a.extend({},f.oPreviousSearch,{sSearch:b+"",bRegex:null===c?!1:c,bSmart:null===d?!0:d,bCaseInsensitive:null===e?!0:e}),1)})}),$a("columns().search()","column().search()",function(b,c,d,e){return this.iterator("column",function(g,h){var i=g.aoPreSearchCols;return b===f?i[h].sSearch:void(g.oFeatures.bFilter&&(a.extend(i[h],{sSearch:b+"",bRegex:null===c?!1:c,bSmart:null===d?!0:d,bCaseInsensitive:null===e?!0:e}),X(g,g.oPreviousSearch,1)))})}),Za("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Za("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})}),Za("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Za("state.save()",function(){return this.iterator("table",function(a){Ha(a)})}),Wa.versionCheck=Wa.fnVersionCheck=function(a){for(var b,c,d=Wa.version.split("."),e=a.split("."),f=0,g=e.length;g>f;f++)if(b=parseInt(d[f],10)||0,c=parseInt(e[f],10)||0,b!==c)return b>c;return!0},Wa.isDataTable=Wa.fnIsDataTable=function(b){var c=a(b).get(0),d=!1;return a.each(Wa.settings,function(b,e){var f=e.nScrollHead?a("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?a("table",e.nScrollFoot)[0]:null;(e.nTable===c||f===c||g===c)&&(d=!0)}),d},Wa.tables=Wa.fnTables=function(b){return a.map(Wa.settings,function(c){return!b||b&&a(c.nTable).is(":visible")?c.nTable:void 0})},Wa.util={throttle:ta,escapeRegex:aa},Wa.camelToHungarian=c,Za("$()",function(b,c){var d=this.rows(c).nodes(),e=a(d);return a([].concat(e.filter(b).toArray(),e.find(b).toArray()))}),a.each(["on","one","off"],function(b,c){Za(c+"()",function(){var b=Array.prototype.slice.call(arguments);b[0].match(/\.dt\b/)||(b[0]+=".dt");var d=a(this.tables().nodes());return d[c].apply(d,b),this})}),Za("clear()",function(){return this.iterator("table",function(a){E(a)})}),Za("settings()",function(){return new Ya(this.context,this.context)}),Za("init()",function(){var a=this.context;return a.length?a[0].oInit:null}),Za("data()",function(){return this.iterator("table",function(a){return mb(a.aoData,"_aData")}).flatten()}),Za("destroy()",function(b){return b=b||!1,this.iterator("table",function(c){var e,f=c.nTableWrapper.parentNode,g=c.oClasses,h=c.nTable,i=c.nTBody,j=c.nTHead,k=c.nTFoot,l=a(h),m=a(i),n=a(c.nTableWrapper),o=a.map(c.aoData,function(a){return a.nTr});c.bDestroying=!0,Pa(c,"aoDestroyCallback","destroy",[c]),b||new Ya(c).columns().visible(!0),n.unbind(".DT").find(":not(tbody *)").unbind(".DT"),a(d).unbind(".DT-"+c.sInstance),h!=j.parentNode&&(l.children("thead").detach(),l.append(j)),k&&h!=k.parentNode&&(l.children("tfoot").detach(),l.append(k)),l.detach(),n.detach(),c.aaSorting=[],c.aaSortingFixed=[],Fa(c),a(o).removeClass(c.asStripeClasses.join(" ")),a("th, td",j).removeClass(g.sSortable+" "+g.sSortableAsc+" "+g.sSortableDesc+" "+g.sSortableNone),c.bJUI&&(a("th span."+g.sSortIcon+", td span."+g.sSortIcon,j).detach(),a("th, td",j).each(function(){var b=a("div."+g.sSortJUIWrapper,this);a(this).append(b.contents()),b.detach()})),!b&&f&&f.insertBefore(h,c.nTableReinsertBefore),m.children().detach(),m.append(o),l.css("width",c.sDestroyWidth).removeClass(g.sTable),e=c.asDestroyStripes.length,e&&m.children().each(function(b){a(this).addClass(c.asDestroyStripes[b%e])});var p=a.inArray(c,Wa.settings);-1!==p&&Wa.settings.splice(p,1)})}),a.each(["column","row","cell"],function(a,b){Za(b+"s().every()",function(a){return this.iterator(b,function(c,d,e){a.call(new Ya(c)[b](d,e))})})}),Za("i18n()",function(b,c,d){var e=this.context[0],g=B(b)(e.oLanguage);return g===f&&(g=c),d!==f&&a.isPlainObject(g)&&(g=g[d]!==f?g[d]:g._),g.replace("%d",d)}),Wa.version="1.10.7",Wa.settings=[],Wa.models={},Wa.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Wa.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null},Wa.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData: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},Wa.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},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:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:a.extend({},Wa.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null},b(Wa.defaults),Wa.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},b(Wa.defaults.column),Wa.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],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:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:f,oAjaxData:f,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Sa(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Sa(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?f===!1||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}},Wa.ext=Xa={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Wa.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Wa.version},a.extend(Xa,{afnFiltering:Xa.search,aTypes:Xa.type.detect,ofnSearch:Xa.type.search,oSort:Xa.type.order,afnSortData:Xa.order,aoFeatures:Xa.feature,oApi:Xa.internal,oStdClasses:Xa.classes,oPagination:Xa.pager}),a.extend(Wa.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",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_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),function(){var b="";b="";var c=b+"ui-state-default",d=b+"css_right ui-icon ui-icon-",e=b+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";a.extend(Wa.ext.oJUIClasses,Wa.ext.classes,{sPageButton:"fg-button ui-button "+c,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:c+" sorting_asc",sSortDesc:c+" sorting_desc",sSortable:c+" sorting",sSortableAsc:c+" sorting_asc_disabled",sSortableDesc:c+" sorting_desc_disabled",sSortableNone:c+" sorting_disabled",sSortJUIAsc:d+"triangle-1-n",sSortJUIDesc:d+"triangle-1-s",sSortJUI:d+"carat-2-n-s",sSortJUIAscAllowed:d+"carat-1-n",sSortJUIDescAllowed:d+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+c,sScrollFoot:"dataTables_scrollFoot "+c,sHeaderTH:c,sFooterTH:c,sJUIHeader:e+" ui-corner-tl ui-corner-tr",sJUIFooter:e+" ui-corner-bl ui-corner-br"})}();var Ub=Wa.ext.pager;a.extend(Ub,{simple:function(a,b){return["previous","next"]},full:function(a,b){return["first","previous","next","last"]},simple_numbers:function(a,b){return["previous",Ta(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Ta(a,b),"next","last"]},_numbers:Ta,numbers_length:7}),a.extend(!0,Wa.ext.renderer,{pageButton:{_:function(b,c,d,f,g,h){var i,j,k,l=b.oClasses,m=b.oLanguage.oPaginate,n=0,o=function(c,e){var f,k,p,q,r=function(a){ma(b,a.data.action,!0)};for(f=0,k=e.length;k>f;f++)if(q=e[f],a.isArray(q)){var s=a("<"+(q.DT_el||"div")+"/>").appendTo(c);o(s,q)}else{switch(i="",j="",q){case"ellipsis":c.append('<span class="ellipsis">&#x2026;</span>');break;case"first":i=m.sFirst,j=q+(g>0?"":" "+l.sPageButtonDisabled);break;case"previous":i=m.sPrevious,j=q+(g>0?"":" "+l.sPageButtonDisabled);break;case"next":i=m.sNext,j=q+(h-1>g?"":" "+l.sPageButtonDisabled);break;case"last":i=m.sLast,j=q+(h-1>g?"":" "+l.sPageButtonDisabled);break;default:i=q+1,j=g===q?l.sPageButtonActive:""}i&&(p=a("<a>",{"class":l.sPageButton+" "+j,"aria-controls":b.sTableId,"data-dt-idx":n,tabindex:b.iTabIndex,id:0===d&&"string"==typeof q?b.sTableId+"_"+q:null}).html(i).appendTo(c),Na(p,{action:q
  },r),n++)}};try{k=a(e.activeElement).data("dt-idx")}catch(p){}o(a(c).empty(),f),k&&a(c).find("[data-dt-idx="+k+"]").focus()}}}),a.extend(Wa.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return jb(a,c)?"num"+c:null},function(a,b){if(!(!a||a instanceof Date||cb.test(a)&&db.test(a)))return null;var c=Date.parse(a);return null!==c&&!isNaN(c)||gb(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return jb(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return lb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return lb(a,c,!0)?"html-num-fmt"+c:null},function(a,b){return gb(a)||"string"==typeof a&&-1!==a.indexOf("<")?"html":null}]),a.extend(Wa.ext.type.search,{html:function(a){return gb(a)?a:"string"==typeof a?a.replace(ab," ").replace(bb,""):""},string:function(a){return gb(a)?a:"string"==typeof a?a.replace(ab," "):a}});var Vb=function(a,b,c,d){return 0===a||a&&"-"!==a?(b&&(a=ib(a,b)),a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,""))),1*a):-(1/0)};return a.extend(Xa.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return gb(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return gb(a)?"":"string"==typeof a?a.toLowerCase():a.toString?a.toString():""},"string-asc":function(a,b){return b>a?-1:a>b?1:0},"string-desc":function(a,b){return b>a?1:a>b?-1:0}}),Ua(""),a.extend(!0,Wa.ext.renderer,{header:{_:function(b,c,d,e){a(b.nTable).on("order.dt.DT",function(a,f,g,h){if(b===f){var i=d.idx;c.removeClass(d.sSortingClass+" "+e.sSortAsc+" "+e.sSortDesc).addClass("asc"==h[i]?e.sSortAsc:"desc"==h[i]?e.sSortDesc:d.sSortingClass)}})},jqueryui:function(b,c,d,e){a("<div/>").addClass(e.sSortJUIWrapper).append(c.contents()).append(a("<span/>").addClass(e.sSortIcon+" "+d.sSortingClassJUI)).appendTo(c),a(b.nTable).on("order.dt.DT",function(a,f,g,h){if(b===f){var i=d.idx;c.removeClass(e.sSortAsc+" "+e.sSortDesc).addClass("asc"==h[i]?e.sSortAsc:"desc"==h[i]?e.sSortDesc:d.sSortingClass),c.find("span."+e.sSortIcon).removeClass(e.sSortJUIAsc+" "+e.sSortJUIDesc+" "+e.sSortJUI+" "+e.sSortJUIAscAllowed+" "+e.sSortJUIDescAllowed).addClass("asc"==h[i]?e.sSortJUIAsc:"desc"==h[i]?e.sSortJUIDesc:d.sSortingClassJUI)}})}}}),Wa.render={number:function(a,b,c,d){return{display:function(e){if("number"!=typeof e&&"string"!=typeof e)return e;var f=0>e?"-":"";e=Math.abs(parseFloat(e));var g=parseInt(e,10),h=c?b+(e-g).toFixed(c).substring(2):"";return f+(d||"")+g.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+h}}}},a.extend(Wa.ext.internal,{_fnExternApiFunc:Va,_fnBuildAjax:R,_fnAjaxUpdate:S,_fnAjaxParameters:T,_fnAjaxUpdateDraw:U,_fnAjaxDataSrc:V,_fnAddColumn:l,_fnColumnOptions:m,_fnAdjustColumnSizing:n,_fnVisibleToColumnIndex:o,_fnColumnIndexToVisible:p,_fnVisbleColumns:q,_fnGetColumns:r,_fnColumnTypes:s,_fnApplyColumnDefs:t,_fnHungarianMap:b,_fnCamelToHungarian:c,_fnLanguageCompat:g,_fnBrowserDetect:j,_fnAddData:u,_fnAddTr:v,_fnNodeToDataIndex:w,_fnNodeToColumnIndex:x,_fnGetCellData:y,_fnSetCellData:z,_fnSplitObjNotation:A,_fnGetObjectDataFn:B,_fnSetObjectDataFn:C,_fnGetDataMaster:D,_fnClearTable:E,_fnDeleteIndex:F,_fnInvalidate:G,_fnGetRowElements:H,_fnCreateTr:I,_fnBuildHead:K,_fnDrawHead:L,_fnDraw:M,_fnReDraw:N,_fnAddOptionsHtml:O,_fnDetectHeader:P,_fnGetUniqueThs:Q,_fnFeatureHtmlFilter:W,_fnFilterComplete:X,_fnFilterCustom:Y,_fnFilterColumn:Z,_fnFilter:$,_fnFilterCreateSearch:_,_fnEscapeRegex:aa,_fnFilterData:ba,_fnFeatureHtmlInfo:ea,_fnUpdateInfo:fa,_fnInfoMacros:ga,_fnInitialise:ha,_fnInitComplete:ia,_fnLengthChange:ja,_fnFeatureHtmlLength:ka,_fnFeatureHtmlPaginate:la,_fnPageChange:ma,_fnFeatureHtmlProcessing:na,_fnProcessingDisplay:oa,_fnFeatureHtmlTable:pa,_fnScrollDraw:qa,_fnApplyToChildren:ra,_fnCalculateColumnWidths:sa,_fnThrottle:ta,_fnConvertToWidth:ua,_fnScrollingWidthAdjust:va,_fnGetWidestNode:wa,_fnGetMaxLenString:xa,_fnStringToCss:ya,_fnScrollBarWidth:za,_fnSortFlatten:Aa,_fnSort:Ba,_fnSortAria:Ca,_fnSortListener:Da,_fnSortAttachListener:Ea,_fnSortingClasses:Fa,_fnSortData:Ga,_fnSaveState:Ha,_fnLoadState:Ia,_fnSettingsFromNode:Ja,_fnLog:Ka,_fnMap:La,_fnBindAction:Na,_fnCallbackReg:Oa,_fnCallbackFire:Pa,_fnLengthOverflow:Qa,_fnRenderer:Ra,_fnDataSource:Sa,_fnRowAttributes:J,_fnCalculateEnd:function(){}}),a.fn.dataTable=Wa,a.fn.dataTableSettings=Wa.settings,a.fn.dataTableExt=Wa.ext,a.fn.DataTable=function(b){return a(this).dataTable(b).api()},a.each(Wa,function(b,c){a.fn.DataTable[b]=c}),a.fn.dataTable})}(window,document)},{jquery:5}],4:[function(a,b,c){function d(){k=!1,h.length?j=h.concat(j):l=-1,j.length&&e()}function e(){if(!k){var a=setTimeout(d);k=!0;for(var b=j.length;b;){for(h=j,j=[];++l<b;)h[l].run();l=-1,b=j.length}h=null,k=!1,clearTimeout(a)}}function f(a,b){this.fun=a,this.array=b}function g(){}var h,i=b.exports={},j=[],k=!1,l=-1;i.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];j.push(new f(a,b)),1!==j.length||k||setTimeout(e,0)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.binding=function(a){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(a){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],5:[function(a,b,c){!function(a,c){"object"==typeof b&&"object"==typeof b.exports?b.exports=a.document?c(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return c(a)}:c(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Na[0].contentDocument,b.write(),b.close(),c=t(a,b),Na.detach()),Oa[a]=c),c}function v(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||_.contains(a.ownerDocument,a)||(g=_.style(a,b)),Qa.test(g)&&Pa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function w(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function x(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=Xa.length;e--;)if(b=Xa[e]+c,b in a)return b;return d}function y(a,b,c){var d=Ta.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function z(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=_.css(a,c+wa[f],!0,e)),d?("content"===c&&(g-=_.css(a,"padding"+wa[f],!0,e)),"margin"!==c&&(g-=_.css(a,"border"+wa[f]+"Width",!0,e))):(g+=_.css(a,"padding"+wa[f],!0,e),"padding"!==c&&(g+=_.css(a,"border"+wa[f]+"Width",!0,e)));return g}function A(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g="border-box"===_.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=v(a,b,f),(0>e||null==e)&&(e=a.style[b]),Qa.test(e))return e;d=g&&(Y.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+z(a,b,c||(g?"border":"content"),d,f)+"px"}function B(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=ra.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&xa(d)&&(f[g]=ra.access(d,"olddisplay",u(d.nodeName)))):(e=xa(d),"none"===c&&e||ra.set(d,"olddisplay",e?c:_.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function C(a,b,c,d,e){return new C.prototype.init(a,b,c,d,e)}function D(){return setTimeout(function(){Ya=void 0}),Ya=_.now()}function E(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=wa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function F(a,b,c){for(var d,e=(cb[b]||[]).concat(cb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function G(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&xa(a),p=ra.get(a,"fxshow");c.queue||(h=_._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,_.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=_.css(a,"display"),k="none"===j?ra.get(a,"olddisplay")||u(a.nodeName):j,"inline"===k&&"none"===_.css(a,"float")&&(n.display="inline-block")),c.overflow&&(n.overflow="hidden",l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],$a.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||_.style(a,d)}else j=void 0;if(_.isEmptyObject(m))"inline"===("none"===j?u(a.nodeName):j)&&(n.display=j);else{p?"hidden"in p&&(o=p.hidden):p=ra.access(a,"fxshow",{}),f&&(p.hidden=!o),o?_(a).show():l.done(function(){_(a).hide()}),l.done(function(){var b;ra.remove(a,"fxshow");for(b in m)_.style(a,b,m[b])});for(d in m)g=F(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function H(a,b){var c,d,e,f,g;for(c in a)if(d=_.camelCase(c),e=b[d],f=a[c],_.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=_.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function I(a,b,c){var d,e,f=0,g=bb.length,h=_.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Ya||D(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:_.extend({},b),opts:_.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Ya||D(),duration:c.duration,tweens:[],createTween:function(b,c){var d=_.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(H(k,j.opts.specialEasing);g>f;f++)if(d=bb[f].call(j,a,k,j.opts))return d;return _.map(k,F,j),_.isFunction(j.opts.start)&&j.opts.start.call(a,j),_.fx.timer(_.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function J(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(na)||[];if(_.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function K(a,b,c,d){function e(h){var i;return f[h]=!0,_.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===tb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function L(a,b){var c,d,e=_.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&_.extend(!0,a,d),a}function M(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function N(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function O(a,b,c,d){var e;if(_.isArray(b))_.each(b,function(b,e){c||yb.test(a)?d(a,e):O(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==_.type(b))d(a,b);else for(e in b)O(a+"["+e+"]",b[e],c,d)}function P(a){return _.isWindow(a)?a:9===a.nodeType&&a.defaultView}var Q=[],R=Q.slice,S=Q.concat,T=Q.push,U=Q.indexOf,V={},W=V.toString,X=V.hasOwnProperty,Y={},Z=a.document,$="2.1.4",_=function(a,b){return new _.fn.init(a,b)},aa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ba=/^-ms-/,ca=/-([\da-z])/gi,da=function(a,b){return b.toUpperCase()};_.fn=_.prototype={jquery:$,constructor:_,selector:"",length:0,toArray:function(){return R.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:R.call(this)},pushStack:function(a){var b=_.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return _.each(this,a,b)},map:function(a){return this.pushStack(_.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(R.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:T,sort:Q.sort,splice:Q.splice},_.extend=_.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||_.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(_.isPlainObject(d)||(e=_.isArray(d)))?(e?(e=!1,f=c&&_.isArray(c)?c:[]):f=c&&_.isPlainObject(c)?c:{},g[b]=_.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},_.extend({expando:"jQuery"+($+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===_.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!_.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==_.type(a)||a.nodeType||_.isWindow(a)?!1:a.constructor&&!X.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?V[W.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=_.trim(a),a&&(1===a.indexOf("use strict")?(b=Z.createElement("script"),b.text=a,Z.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(ba,"ms-").replace(ca,da)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var e,f=0,g=a.length,h=c(a);if(d){if(h)for(;g>f&&(e=b.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=b.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=b.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=b.call(a[f],f,a[f]),e===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(aa,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?_.merge(d,"string"==typeof a?[a]:a):T.call(d,a)),d},inArray:function(a,b,c){return null==b?-1:U.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=c(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return S.apply([],i)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),_.isFunction(a)?(d=R.call(arguments,2),e=function(){return a.apply(b||this,d.concat(R.call(arguments)))},e.guid=a.guid=a.guid||_.guid++,e):void 0},now:Date.now,support:Y}),_.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){V["[object "+b+"]"]=b.toLowerCase()});var ea=function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,n,o,p;if((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,c=c||[],h=b.nodeType,"string"!=typeof a||!a||1!==h&&9!==h&&11!==h)return c;if(!d&&I){if(11!==h&&(e=sa.exec(a)))if(g=e[1]){if(9===h){if(f=b.getElementById(g),!f||!f.parentNode)return c;if(f.id===g)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(g))&&M(b,f)&&f.id===g)return c.push(f),c}else{if(e[2])return $.apply(c,b.getElementsByTagName(a)),c;if((g=e[3])&&v.getElementsByClassName)return $.apply(c,b.getElementsByClassName(g)),c}if(v.qsa&&(!J||!J.test(a))){if(n=l=N,o=b,p=1!==h&&a,1===h&&"object"!==b.nodeName.toLowerCase()){for(j=z(a),(l=b.getAttribute("id"))?n=l.replace(ua,"\\$&"):b.setAttribute("id",n),n="[id='"+n+"'] ",i=j.length;i--;)j[i]=n+m(j[i]);o=ta.test(a)&&k(b.parentNode)||b,p=j.join(",")}if(p)try{return $.apply(c,o.querySelectorAll(p)),c}catch(q){}finally{l||b.removeAttribute("id")}}}return B(a.replace(ia,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>w.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=a.length;d--;)w.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||V)-(~a.sourceIndex||V);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function l(){}function m(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function n(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(i=b[N]||(b[N]={}),(h=i[d])&&h[0]===P&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function o(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function p(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,r=d||p(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:q(r,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=q(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=q(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function s(a){for(var b,c,d,e=a.length,f=w.relative[a[0].type],g=f||w.relative[" "],h=f?1:0,i=n(function(a){return a===b},g,!0),j=n(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=w.relative[a[h].type])k=[n(o(k),c)];else{if(c=w.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!w.relative[a[d].type];d++);return r(h>1&&o(k),h>1&&m(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ia,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&m(a))}k.push(c)}return o(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&w.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g!==G&&g);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0;m=a[l++];)if(m(k,g,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Y.call(i));r=q(r)}$.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+1*new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V=1<<31,W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ea=da.replace("w","w#"),fa="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ea+"))|)"+ca+"*\\]",ga=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+fa+")*)|.*)\\)|)",ha=new RegExp(ca+"+","g"),ia=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ja=new RegExp("^"+ca+"*,"+ca+"*"),ka=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),la=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),ma=new RegExp(ga),na=new RegExp("^"+ea+"$"),oa={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da.replace("w","w*")+")"),ATTR:new RegExp("^"+fa),PSEUDO:new RegExp("^"+ga),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},pa=/^(?:input|select|textarea|button)$/i,qa=/^h\d$/i,ra=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/[+~]/,ua=/'|\\/g,va=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),wa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},xa=function(){F()};try{$.apply(X=_.call(O.childNodes),O.childNodes),X[O.childNodes.length].nodeType}catch(ya){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}v=b.support={},y=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},F=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:O;return d!==G&&9===d.nodeType&&d.documentElement?(G=d,H=d.documentElement,c=d.defaultView,c&&c!==c.top&&(c.addEventListener?c.addEventListener("unload",xa,!1):c.attachEvent&&c.attachEvent("onunload",xa)),I=!y(d),v.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),v.getElementsByTagName=e(function(a){return a.appendChild(d.createComment("")),!a.getElementsByTagName("*").length}),v.getElementsByClassName=ra.test(d.getElementsByClassName),v.getById=e(function(a){return H.appendChild(a).id=N,!d.getElementsByName||!d.getElementsByName(N).length}),v.getById?(w.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&I){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),w.find.TAG=v.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):v.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},w.find.CLASS=v.getElementsByClassName&&function(a,b){return I?b.getElementsByClassName(a):void 0},K=[],J=[],(v.qsa=ra.test(d.querySelectorAll))&&(e(function(a){H.appendChild(a).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+N+"-]").length||J.push("~="),a.querySelectorAll(":checked").length||J.push(":checked"),a.querySelectorAll("a#"+N+"+*").length||J.push(".#.+[+~]")}),e(function(a){var b=d.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+ca+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(v.matchesSelector=ra.test(L=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){v.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",ga)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=ra.test(H.compareDocumentPosition),M=b||ra.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!v.sortDetached&&b.compareDocumentPosition(a)===c?a===d||a.ownerDocument===O&&M(O,a)?-1:b===d||b.ownerDocument===O&&M(O,b)?1:D?aa(D,a)-aa(D,b):0:4&c?-1:1)}:function(a,b){if(a===b)return E=!0,0;var c,e=0,f=a.parentNode,h=b.parentNode,i=[a],j=[b];if(!f||!h)return a===d?-1:b===d?1:f?-1:h?1:D?aa(D,a)-aa(D,b):0;if(f===h)return g(a,b);for(c=a;c=c.parentNode;)i.unshift(c);for(c=b;c=c.parentNode;)j.unshift(c);for(;i[e]===j[e];)e++;return e?g(i[e],j[e]):i[e]===O?-1:j[e]===O?1:0},d):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(la,"='$1']"),!(!v.matchesSelector||!I||K&&K.test(c)||J&&J.test(c)))try{var d=L.call(a,c);if(d||v.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=w.attrHandle[b.toLowerCase()],d=c&&W.call(w.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:v.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!v.detectDuplicates,D=!v.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},x=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=x(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=x(b);return c},w=b.selectors={cacheLength:50,createPseudo:d,match:oa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(va,wa),a[3]=(a[3]||a[4]||a[5]||"").replace(va,wa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return oa.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&ma.test(c)&&(b=z(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(va,wa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ha," ")+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;l=l[p];)if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(k=q[N]||(q[N]={}),j=k[a]||[],n=j[0]===P&&j[1],m=j[0]===P&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){
  k[a]=[P,n,m];break}}else if(s&&(j=(b[N]||(b[N]={}))[a])&&j[0]===P)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[N]||(l[N]={}))[a]=[P,m]),l!==b)););return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,c){var e,f=w.pseudos[a]||w.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],w.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=A(a.replace(ia,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(va,wa),function(b){return(b.textContent||b.innerText||x(b)).indexOf(a)>-1}}),lang:d(function(a){return na.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(va,wa).toLowerCase(),function(b){var c;do if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return qa.test(a.nodeName)},input:function(a){return pa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},w.pseudos.nth=w.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[u]=h(u);for(u in{submit:!0,reset:!0})w.pseudos[u]=i(u);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,z=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=w.preFilter;h;){(!d||(e=ja.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ka.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ia," ")}),h=h.slice(d.length));for(g in w.filter)!(e=oa[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)},A=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=z(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d)),f.selector=a}return f},B=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,l=!d&&z(a=j.selector||a);if(c=c||[],1===l.length){if(f=l[0]=l[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&v.getById&&9===b.nodeType&&I&&w.relative[f[1].type]){if(b=(w.find.ID(g.matches[0].replace(va,wa),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=oa.needsContext.test(a)?0:f.length;e--&&(g=f[e],!w.relative[h=g.type]);)if((i=w.find[h])&&(d=i(g.matches[0].replace(va,wa),ta.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&m(f),!a)return $.apply(c,d),c;break}}return(j||A(a,l))(d,b,!I,c,ta.test(a)&&k(b.parentNode)||b),c},v.sortStable=N.split("").sort(U).join("")===N,v.detectDuplicates=!!E,F(),v.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),v.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);_.find=ea,_.expr=ea.selectors,_.expr[":"]=_.expr.pseudos,_.unique=ea.uniqueSort,_.text=ea.getText,_.isXMLDoc=ea.isXML,_.contains=ea.contains;var fa=_.expr.match.needsContext,ga=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ha=/^.[^:#\[\.,]*$/;_.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?_.find.matchesSelector(d,a)?[d]:[]:_.find.matches(a,_.grep(b,function(a){return 1===a.nodeType}))},_.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(_(a).filter(function(){for(b=0;c>b;b++)if(_.contains(e[b],this))return!0}));for(b=0;c>b;b++)_.find(a,e[b],d);return d=this.pushStack(c>1?_.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&fa.test(a)?_(a):a||[],!1).length}});var ia,ja=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ka=_.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:ja.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||ia).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof _?b[0]:b,_.merge(this,_.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:Z,!0)),ga.test(c[1])&&_.isPlainObject(b))for(c in b)_.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=Z.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=Z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):_.isFunction(a)?"undefined"!=typeof ia.ready?ia.ready(a):a(_):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),_.makeArray(a,this))};ka.prototype=_.fn,ia=_(Z);var la=/^(?:parents|prev(?:Until|All))/,ma={children:!0,contents:!0,next:!0,prev:!0};_.extend({dir:function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&_(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),_.fn.extend({has:function(a){var b=_(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(_.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=fa.test(a)||"string"!=typeof a?_(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&_.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?_.unique(f):f)},index:function(a){return a?"string"==typeof a?U.call(_(a),this[0]):U.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(_.unique(_.merge(this.get(),_(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),_.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return _.dir(a,"parentNode")},parentsUntil:function(a,b,c){return _.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return _.dir(a,"nextSibling")},prevAll:function(a){return _.dir(a,"previousSibling")},nextUntil:function(a,b,c){return _.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return _.dir(a,"previousSibling",c)},siblings:function(a){return _.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return _.sibling(a.firstChild)},contents:function(a){return a.contentDocument||_.merge([],a.childNodes)}},function(a,b){_.fn[a]=function(c,d){var e=_.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=_.filter(d,e)),this.length>1&&(ma[a]||_.unique(e),la.test(a)&&e.reverse()),this.pushStack(e)}});var na=/\S+/g,oa={};_.Callbacks=function(a){a="string"==typeof a?oa[a]||f(a):_.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(b=a.memory&&f,c=!0,h=e||0,e=0,g=i.length,d=!0;i&&g>h;h++)if(i[h].apply(f[0],f[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,i&&(j?j.length&&k(j.shift()):b?i=[]:l.disable())},l={add:function(){if(i){var c=i.length;!function f(b){_.each(b,function(b,c){var d=_.type(c);"function"===d?a.unique&&l.has(c)||i.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),d?g=i.length:b&&(e=c,k(b))}return this},remove:function(){return i&&_.each(arguments,function(a,b){for(var c;(c=_.inArray(b,i,c))>-1;)i.splice(c,1),d&&(g>=c&&g--,h>=c&&h--)}),this},has:function(a){return a?_.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],g=0,this},disable:function(){return i=j=b=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,b||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return!i||c&&!j||(b=b||[],b=[a,b.slice?b.slice():b],d?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},_.extend({Deferred:function(a){var b=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return _.Deferred(function(c){_.each(b,function(b,f){var g=_.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&_.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?_.extend(a,d):d}},e={};return d.pipe=d.then,_.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=R.call(arguments),g=f.length,h=1!==g||a&&_.isFunction(a.promise)?g:0,i=1===h?a:_.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?R.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&_.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}});var pa;_.fn.ready=function(a){return _.ready.promise().done(a),this},_.extend({isReady:!1,readyWait:1,holdReady:function(a){a?_.readyWait++:_.ready(!0)},ready:function(a){(a===!0?--_.readyWait:_.isReady)||(_.isReady=!0,a!==!0&&--_.readyWait>0||(pa.resolveWith(Z,[_]),_.fn.triggerHandler&&(_(Z).triggerHandler("ready"),_(Z).off("ready"))))}}),_.ready.promise=function(b){return pa||(pa=_.Deferred(),"complete"===Z.readyState?setTimeout(_.ready):(Z.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1))),pa.promise(b)},_.ready.promise();var qa=_.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===_.type(c)){e=!0;for(h in c)_.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,_.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(_(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};_.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType},h.uid=1,h.accepts=_.acceptData,h.prototype={key:function(a){if(!h.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=h.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,_.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(_.isEmptyObject(f))_.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,_.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{_.isArray(b)?d=b.concat(b.map(_.camelCase)):(e=_.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(na)||[])),c=d.length;for(;c--;)delete g[d[c]]}},hasData:function(a){return!_.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var ra=new h,sa=new h,ta=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ua=/([A-Z])/g;_.extend({hasData:function(a){return sa.hasData(a)||ra.hasData(a)},data:function(a,b,c){return sa.access(a,b,c)},removeData:function(a,b){sa.remove(a,b)},_data:function(a,b,c){return ra.access(a,b,c)},_removeData:function(a,b){ra.remove(a,b)}}),_.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=sa.get(f),1===f.nodeType&&!ra.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=_.camelCase(d.slice(5)),i(f,d,e[d])));ra.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){sa.set(this,a)}):qa(this,function(b){var c,d=_.camelCase(a);if(f&&void 0===b){if(c=sa.get(f,a),void 0!==c)return c;if(c=sa.get(f,d),void 0!==c)return c;if(c=i(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=sa.get(this,d);sa.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&sa.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){sa.remove(this,a)})}}),_.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=ra.get(a,b),c&&(!d||_.isArray(c)?d=ra.access(a,b,_.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=_.queue(a,b),d=c.length,e=c.shift(),f=_._queueHooks(a,b),g=function(){_.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return ra.get(a,c)||ra.access(a,c,{empty:_.Callbacks("once memory").add(function(){ra.remove(a,[b+"queue",c])})})}}),_.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?_.queue(this[0],a):void 0===b?this:this.each(function(){var c=_.queue(this,a,b);_._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&_.dequeue(this,a)})},dequeue:function(a){return this.each(function(){_.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=_.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=ra.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var va=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wa=["Top","Right","Bottom","Left"],xa=function(a,b){return a=b||a,"none"===_.css(a,"display")||!_.contains(a.ownerDocument,a)},ya=/^(?:checkbox|radio)$/i;!function(){var a=Z.createDocumentFragment(),b=a.appendChild(Z.createElement("div")),c=Z.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),Y.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var za="undefined";Y.focusinBubbles="onfocusin"in a;var Aa=/^key/,Ba=/^(?:mouse|pointer|contextmenu)|click/,Ca=/^(?:focusinfocus|focusoutblur)$/,Da=/^([^.]*)(?:\.(.+)|)$/;_.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ra.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=_.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return typeof _!==za&&_.event.triggered!==b.type?_.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(na)||[""],j=b.length;j--;)h=Da.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=_.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=_.event.special[n]||{},k=_.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&_.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),_.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ra.hasData(a)&&ra.get(a);if(q&&(i=q.events)){for(b=(b||"").match(na)||[""],j=b.length;j--;)if(h=Da.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=_.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||_.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)_.event.remove(a,n+b[j],c,d,!0);_.isEmptyObject(i)&&(delete q.handle,ra.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||Z],n=X.call(b,"type")?b.type:b,o=X.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||Z,3!==d.nodeType&&8!==d.nodeType&&!Ca.test(n+_.event.triggered)&&(n.indexOf(".")>=0&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[_.expando]?b:new _.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:_.makeArray(c,[b]),l=_.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!_.isWindow(d)){for(i=l.delegateType||n,Ca.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||Z)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(ra.get(g,"events")||{})[b.type]&&ra.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&_.acceptData(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!_.acceptData(d)||j&&_.isFunction(d[n])&&!_.isWindow(d)&&(h=d[j],h&&(d[j]=null),_.event.triggered=n,d[n](),_.event.triggered=void 0,h&&(d[j]=h)),b.result}},dispatch:function(a){a=_.event.fix(a);var b,c,d,e,f,g=[],h=R.call(arguments),i=(ra.get(this,"events")||{})[a.type]||[],j=_.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||j.preDispatch.call(this,a)!==!1){for(g=_.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!a.isImmediatePropagationStopped();)(!a.namespace_re||a.namespace_re.test(f.namespace))&&(a.handleObj=f,a.data=f.data,d=((_.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?_(e,this).index(i)>=0:_.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},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(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||Z,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[_.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Ba.test(e)?this.mouseHooks:Aa.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new _.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=Z),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==l()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===l()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&_.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return _.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=_.extend(new _.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?_.event.trigger(e,null,b):_.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},_.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},_.Event=function(a,b){return this instanceof _.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?j:k):this.type=a,b&&_.extend(this,b),this.timeStamp=a&&a.timeStamp||_.now(),void(this[_.expando]=!0)):new _.Event(a,b)},_.Event.prototype={isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=j,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=j,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=j,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){_.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!_.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),Y.focusinBubbles||_.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){_.event.simulate(b,a.target,_.event.fix(a),!0)};_.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=ra.access(d,b);e||d.addEventListener(a,c,!0),ra.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=ra.access(d,b)-1;e?ra.access(d,b,e):(d.removeEventListener(a,c,!0),ra.remove(d,b))}}}),_.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=k;else if(!d)return this;return 1===e&&(f=d,d=function(a){return _().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=_.guid++)),this.each(function(){_.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,_(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=k),this.each(function(){_.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){_.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?_.event.trigger(a,b,c,!0):void 0}});var Ea=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fa=/<([\w:]+)/,Ga=/<|&#?\w+;/,Ha=/<(?:script|style|link)/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Ja=/^$|\/(?:java|ecma)script/i,Ka=/^true\/(.*)/,La=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ma={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ma.optgroup=Ma.option,Ma.tbody=Ma.tfoot=Ma.colgroup=Ma.caption=Ma.thead,Ma.th=Ma.td,_.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=_.contains(a.ownerDocument,a);if(!(Y.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||_.isXMLDoc(a)))for(g=r(h),f=r(a),d=0,e=f.length;e>d;d++)s(f[d],g[d]);if(b)if(c)for(f=f||r(a),g=g||r(h),d=0,e=f.length;e>d;d++)q(f[d],g[d]);else q(a,h);return g=r(h,"script"),g.length>0&&p(g,!i&&r(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===_.type(e))_.merge(l,e.nodeType?[e]:e);else if(Ga.test(e)){for(f=f||k.appendChild(b.createElement("div")),g=(Fa.exec(e)||["",""])[1].toLowerCase(),h=Ma[g]||Ma._default,f.innerHTML=h[1]+e.replace(Ea,"<$1></$2>")+h[2],j=h[0];j--;)f=f.lastChild;_.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));for(k.textContent="",m=0;e=l[m++];)if((!d||-1===_.inArray(e,d))&&(i=_.contains(e.ownerDocument,e),f=r(k.appendChild(e),"script"),i&&p(f),c))for(j=0;e=f[j++];)Ja.test(e.type||"")&&c.push(e);return k},cleanData:function(a){for(var b,c,d,e,f=_.event.special,g=0;void 0!==(c=a[g]);g++){if(_.acceptData(c)&&(e=c[ra.expando],e&&(b=ra.cache[e]))){if(b.events)for(d in b.events)f[d]?_.event.remove(c,d):_.removeEvent(c,d,b.handle);ra.cache[e]&&delete ra.cache[e]}delete sa.cache[c[sa.expando]]}}}),_.fn.extend({text:function(a){return qa(this,function(a){return void 0===a?_.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?_.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||_.cleanData(r(c)),c.parentNode&&(b&&_.contains(c.ownerDocument,c)&&p(r(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(_.cleanData(r(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return _.clone(this,a,b)})},html:function(a){return qa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Ha.test(a)&&!Ma[(Fa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ea,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(_.cleanData(r(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,_.cleanData(r(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=S.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],p=_.isFunction(m);if(p||j>1&&"string"==typeof m&&!Y.checkClone&&Ia.test(m))return this.each(function(c){var d=k.eq(c);p&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j&&(c=_.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(e=_.map(r(c,"script"),n),f=e.length;j>i;i++)g=c,i!==l&&(g=_.clone(g,!0,!0),f&&_.merge(e,r(g,"script"))),b.call(this[i],g,i);if(f)for(h=e[e.length-1].ownerDocument,_.map(e,o),i=0;f>i;i++)g=e[i],Ja.test(g.type||"")&&!ra.access(g,"globalEval")&&_.contains(h,g)&&(g.src?_._evalUrl&&_._evalUrl(g.src):_.globalEval(g.textContent.replace(La,"")))}return this}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){_.fn[a]=function(a){for(var c,d=[],e=_(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),_(e[g])[b](c),T.apply(d,c.get());return this.pushStack(d)}});var Na,Oa={},Pa=/^margin/,Qa=new RegExp("^("+va+")(?!px)[a-z%]+$","i"),Ra=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};!function(){function b(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",g.innerHTML="",e.appendChild(f);var b=a.getComputedStyle(g,null);c="1%"!==b.top,d="4px"===b.width,e.removeChild(f)}var c,d,e=Z.documentElement,f=Z.createElement("div"),g=Z.createElement("div");g.style&&(g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===g.style.backgroundClip,f.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",f.appendChild(g),a.getComputedStyle&&_.extend(Y,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return null==d&&b(),d},reliableMarginRight:function(){var b,c=g.appendChild(Z.createElement("div"));return c.style.cssText=g.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",g.style.width="1px",e.appendChild(f),b=!parseFloat(a.getComputedStyle(c,null).marginRight),e.removeChild(f),g.removeChild(c),b}}))}(),_.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Sa=/^(none|table(?!-c[ea]).+)/,Ta=new RegExp("^("+va+")(.*)$","i"),Ua=new RegExp("^([+-])=("+va+")","i"),Va={position:"absolute",visibility:"hidden",display:"block"},Wa={letterSpacing:"0",fontWeight:"400"},Xa=["Webkit","O","Moz","ms"];_.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=v(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{
  "float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=_.camelCase(b),i=a.style;return b=_.cssProps[h]||(_.cssProps[h]=x(i,h)),g=_.cssHooks[b]||_.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ua.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(_.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||_.cssNumber[h]||(c+="px"),Y.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=_.camelCase(b);return b=_.cssProps[h]||(_.cssProps[h]=x(a.style,h)),g=_.cssHooks[b]||_.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=v(a,b,d)),"normal"===e&&b in Wa&&(e=Wa[b]),""===c||c?(f=parseFloat(e),c===!0||_.isNumeric(f)?f||0:e):e}}),_.each(["height","width"],function(a,b){_.cssHooks[b]={get:function(a,c,d){return c?Sa.test(_.css(a,"display"))&&0===a.offsetWidth?_.swap(a,Va,function(){return A(a,b,d)}):A(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return y(a,c,d?z(a,b,d,"border-box"===_.css(a,"boxSizing",!1,e),e):0)}}}),_.cssHooks.marginRight=w(Y.reliableMarginRight,function(a,b){return b?_.swap(a,{display:"inline-block"},v,[a,"marginRight"]):void 0}),_.each({margin:"",padding:"",border:"Width"},function(a,b){_.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+wa[d]+b]=f[d]||f[d-2]||f[0];return e}},Pa.test(a)||(_.cssHooks[a+b].set=y)}),_.fn.extend({css:function(a,b){return qa(this,function(a,b,c){var d,e,f={},g=0;if(_.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=_.css(a,b[g],!1,d);return f}return void 0!==c?_.style(a,b,c):_.css(a,b)},a,b,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){xa(this)?_(this).show():_(this).hide()})}}),_.Tween=C,C.prototype={constructor:C,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(_.cssNumber[c]?"":"px")},cur:function(){var a=C.propHooks[this.prop];return a&&a.get?a.get(this):C.propHooks._default.get(this)},run:function(a){var b,c=C.propHooks[this.prop];return this.options.duration?this.pos=b=_.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):C.propHooks._default.set(this),this}},C.prototype.init.prototype=C.prototype,C.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=_.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){_.fx.step[a.prop]?_.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[_.cssProps[a.prop]]||_.cssHooks[a.prop])?_.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},C.propHooks.scrollTop=C.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},_.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},_.fx=C.prototype.init,_.fx.step={};var Ya,Za,$a=/^(?:toggle|show|hide)$/,_a=new RegExp("^(?:([+-])=|)("+va+")([a-z%]*)$","i"),ab=/queueHooks$/,bb=[G],cb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=_a.exec(b),f=e&&e[3]||(_.cssNumber[a]?"":"px"),g=(_.cssNumber[a]||"px"!==f&&+d)&&_a.exec(_.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,_.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};_.Animation=_.extend(I,{tweener:function(a,b){_.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],cb[c]=cb[c]||[],cb[c].unshift(b)},prefilter:function(a,b){b?bb.unshift(a):bb.push(a)}}),_.speed=function(a,b,c){var d=a&&"object"==typeof a?_.extend({},a):{complete:c||!c&&b||_.isFunction(a)&&a,duration:a,easing:c&&b||b&&!_.isFunction(b)&&b};return d.duration=_.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in _.fx.speeds?_.fx.speeds[d.duration]:_.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){_.isFunction(d.old)&&d.old.call(this),d.queue&&_.dequeue(this,d.queue)},d},_.fn.extend({fadeTo:function(a,b,c,d){return this.filter(xa).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=_.isEmptyObject(a),f=_.speed(b,c,d),g=function(){var b=I(this,_.extend({},a),f);(e||ra.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=_.timers,g=ra.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ab.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&_.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=ra.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=_.timers,g=d?d.length:0;for(c.finish=!0,_.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),_.each(["toggle","show","hide"],function(a,b){var c=_.fn[b];_.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(E(b,!0),a,d,e)}}),_.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){_.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),_.timers=[],_.fx.tick=function(){var a,b=0,c=_.timers;for(Ya=_.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||_.fx.stop(),Ya=void 0},_.fx.timer=function(a){_.timers.push(a),a()?_.fx.start():_.timers.pop()},_.fx.interval=13,_.fx.start=function(){Za||(Za=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval(Za),Za=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(a,b){return a=_.fx?_.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=Z.createElement("input"),b=Z.createElement("select"),c=b.appendChild(Z.createElement("option"));a.type="checkbox",Y.checkOn=""!==a.value,Y.optSelected=c.selected,b.disabled=!0,Y.optDisabled=!c.disabled,a=Z.createElement("input"),a.value="t",a.type="radio",Y.radioValue="t"===a.value}();var db,eb,fb=_.expr.attrHandle;_.fn.extend({attr:function(a,b){return qa(this,_.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){_.removeAttr(this,a)})}}),_.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===za?_.prop(a,b,c):(1===f&&_.isXMLDoc(a)||(b=b.toLowerCase(),d=_.attrHooks[b]||(_.expr.match.bool.test(b)?eb:db)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=_.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void _.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(na);if(f&&1===a.nodeType)for(;c=f[e++];)d=_.propFix[c]||c,_.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!Y.radioValue&&"radio"===b&&_.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),eb={set:function(a,b,c){return b===!1?_.removeAttr(a,c):a.setAttribute(c,c),c}},_.each(_.expr.match.bool.source.match(/\w+/g),function(a,b){var c=fb[b]||_.find.attr;fb[b]=function(a,b,d){var e,f;return d||(f=fb[b],fb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,fb[b]=f),e}});var gb=/^(?:input|select|textarea|button)$/i;_.fn.extend({prop:function(a,b){return qa(this,_.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[_.propFix[a]||a]})}}),_.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!_.isXMLDoc(a),f&&(b=_.propFix[b]||b,e=_.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||gb.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),Y.optSelected||(_.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});var hb=/[\t\r\n\f]/g;_.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):" ")){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=_.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):"")){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?_.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):_.isFunction(a)?this.each(function(c){_(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if("string"===c)for(var b,d=0,e=_(this),f=a.match(na)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else(c===za||"boolean"===c)&&(this.className&&ra.set(this,"__className__",this.className),this.className=this.className||a===!1?"":ra.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(hb," ").indexOf(b)>=0)return!0;return!1}});var ib=/\r/g;_.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=_.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,_(this).val()):a,null==e?e="":"number"==typeof e?e+="":_.isArray(e)&&(e=_.map(e,function(a){return null==a?"":a+""})),b=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=_.valHooks[e.type]||_.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ib,""):null==c?"":c)}}}),_.extend({valHooks:{option:{get:function(a){var b=_.find.attr(a,"value");return null!=b?b:_.trim(_.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(Y.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&_.nodeName(c.parentNode,"optgroup"))){if(b=_(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=_.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=_.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(a,b){return _.isArray(b)?a.checked=_.inArray(_(a).val(),b)>=0:void 0}},Y.checkOn||(_.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),_.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(a,b){_.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),_.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var jb=_.now(),kb=/\?/;_.parseJSON=function(a){return JSON.parse(a+"")},_.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&_.error("Invalid XML: "+a),b};var lb=/#.*$/,mb=/([?&])_=[^&]*/,nb=/^(.*?):[ \t]*([^\r\n]*)$/gm,ob=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,pb=/^(?:GET|HEAD)$/,qb=/^\/\//,rb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,sb={},tb={},ub="*/".concat("*"),vb=a.location.href,wb=rb.exec(vb.toLowerCase())||[];_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vb,type:"GET",isLocal:ob.test(wb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,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":!0,"text json":_.parseJSON,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?L(L(a,_.ajaxSettings),b):L(_.ajaxSettings,a)},ajaxPrefilter:J(sb),ajaxTransport:J(tb),ajax:function(a,b){function c(a,b,c,g){var i,k,r,s,u,w=b;2!==t&&(t=2,h&&clearTimeout(h),d=void 0,f=g||"",v.readyState=a>0?4:0,i=a>=200&&300>a||304===a,c&&(s=M(l,v,c)),s=N(l,s,v,i),i?(l.ifModified&&(u=v.getResponseHeader("Last-Modified"),u&&(_.lastModified[e]=u),u=v.getResponseHeader("etag"),u&&(_.etag[e]=u)),204===a||"HEAD"===l.type?w="nocontent":304===a?w="notmodified":(w=s.state,k=s.data,r=s.error,i=!r)):(r=w,(a||!w)&&(w="error",0>a&&(a=0))),v.status=a,v.statusText=(b||w)+"",i?o.resolveWith(m,[k,w,v]):o.rejectWith(m,[v,w,r]),v.statusCode(q),q=void 0,j&&n.trigger(i?"ajaxSuccess":"ajaxError",[v,l,i?k:r]),p.fireWith(m,[v,w]),j&&(n.trigger("ajaxComplete",[v,l]),--_.active||_.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{};var d,e,f,g,h,i,j,k,l=_.ajaxSetup({},b),m=l.context||l,n=l.context&&(m.nodeType||m.jquery)?_(m):_.event,o=_.Deferred(),p=_.Callbacks("once memory"),q=l.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!g)for(g={};b=nb.exec(f);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return d&&d.abort(b),c(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,l.url=((a||l.url||vb)+"").replace(lb,"").replace(qb,wb[1]+"//"),l.type=b.method||b.type||l.method||l.type,l.dataTypes=_.trim(l.dataType||"*").toLowerCase().match(na)||[""],null==l.crossDomain&&(i=rb.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]===wb[1]&&i[2]===wb[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(wb[3]||("http:"===wb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=_.param(l.data,l.traditional)),K(sb,l,b,v),2===t)return v;j=_.event&&l.global,j&&0===_.active++&&_.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!pb.test(l.type),e=l.url,l.hasContent||(l.data&&(e=l.url+=(kb.test(e)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=mb.test(e)?e.replace(mb,"$1_="+jb++):e+(kb.test(e)?"&":"?")+"_="+jb++)),l.ifModified&&(_.lastModified[e]&&v.setRequestHeader("If-Modified-Since",_.lastModified[e]),_.etag[e]&&v.setRequestHeader("If-None-Match",_.etag[e])),(l.data&&l.hasContent&&l.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",l.contentType),v.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+ub+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)v.setRequestHeader(k,l.headers[k]);if(l.beforeSend&&(l.beforeSend.call(m,v,l)===!1||2===t))return v.abort();u="abort";for(k in{success:1,error:1,complete:1})v[k](l[k]);if(d=K(tb,l,b,v)){v.readyState=1,j&&n.trigger("ajaxSend",[v,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){v.abort("timeout")},l.timeout));try{t=1,d.send(r,c)}catch(w){if(!(2>t))throw w;c(-1,w)}}else c(-1,"No Transport");return v},getJSON:function(a,b,c){return _.get(a,b,c,"json")},getScript:function(a,b){return _.get(a,void 0,b,"script")}}),_.each(["get","post"],function(a,b){_[b]=function(a,c,d,e){return _.isFunction(c)&&(e=e||d,d=c,c=void 0),_.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),_._evalUrl=function(a){return _.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},_.fn.extend({wrapAll:function(a){var b;return _.isFunction(a)?this.each(function(b){_(this).wrapAll(a.call(this,b))}):(this[0]&&(b=_(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return _.isFunction(a)?this.each(function(b){_(this).wrapInner(a.call(this,b))}):this.each(function(){var b=_(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=_.isFunction(a);return this.each(function(c){_(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){_.nodeName(this,"body")||_(this).replaceWith(this.childNodes)}).end()}}),_.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},_.expr.filters.visible=function(a){return!_.expr.filters.hidden(a)};var xb=/%20/g,yb=/\[\]$/,zb=/\r?\n/g,Ab=/^(?:submit|button|image|reset|file)$/i,Bb=/^(?:input|select|textarea|keygen)/i;_.param=function(a,b){var c,d=[],e=function(a,b){b=_.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=_.ajaxSettings&&_.ajaxSettings.traditional),_.isArray(a)||a.jquery&&!_.isPlainObject(a))_.each(a,function(){e(this.name,this.value)});else for(c in a)O(c,a[c],b,e);return d.join("&").replace(xb,"+")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=_.prop(this,"elements");return a?_.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!_(this).is(":disabled")&&Bb.test(this.nodeName)&&!Ab.test(a)&&(this.checked||!ya.test(a))}).map(function(a,b){var c=_(this).val();return null==c?null:_.isArray(c)?_.map(c,function(a){return{name:b.name,value:a.replace(zb,"\r\n")}}):{name:b.name,value:c.replace(zb,"\r\n")}}).get()}}),_.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cb=0,Db={},Eb={0:200,1223:204},Fb=_.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Db)Db[a]()}),Y.cors=!!Fb&&"withCredentials"in Fb,Y.ajax=Fb=!!Fb,_.ajaxTransport(function(a){var b;return Y.cors||Fb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Db[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Eb[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Db[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return _.globalEval(a),a}}}),_.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),_.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=_("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),Z.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gb=[],Hb=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gb.pop()||_.expando+"_"+jb++;return this[a]=!0,a}}),_.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=_.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hb,"$1"+e):b.jsonp!==!1&&(b.url+=(kb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||_.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gb.push(e)),g&&_.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),_.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||Z;var d=ga.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=_.buildFragment([a],b,e),e&&e.length&&_(e).remove(),_.merge([],d.childNodes))};var Ib=_.fn.load;_.fn.load=function(a,b,c){if("string"!=typeof a&&Ib)return Ib.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=_.trim(a.slice(h)),a=a.slice(0,h)),_.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&_.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?_("<div>").append(_.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){_.fn[b]=function(a){return this.on(b,a)}}),_.expr.filters.animated=function(a){return _.grep(_.timers,function(b){return a===b.elem}).length};var Jb=a.document.documentElement;_.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=_.css(a,"position"),l=_(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=_.css(a,"top"),i=_.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),_.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},_.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){_.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,_.contains(b,d)?(typeof d.getBoundingClientRect!==za&&(e=d.getBoundingClientRect()),c=P(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===_.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),_.nodeName(a[0],"html")||(d=a.offset()),d.top+=_.css(a[0],"borderTopWidth",!0),d.left+=_.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-_.css(c,"marginTop",!0),left:b.left-d.left-_.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Jb;a&&!_.nodeName(a,"html")&&"static"===_.css(a,"position");)a=a.offsetParent;return a||Jb})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;_.fn[b]=function(e){return qa(this,function(b,e,f){var g=P(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),_.each(["top","left"],function(a,b){_.cssHooks[b]=w(Y.pixelPosition,function(a,c){return c?(c=v(a,b),Qa.test(c)?_(a).position()[b]+"px":c):void 0})}),_.each({Height:"height",Width:"width"},function(a,b){_.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){_.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return qa(this,function(b,c,d){var e;return _.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?_.css(b,c,g):_.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),_.fn.size=function(){return this.length},_.fn.andSelf=_.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Kb=a.jQuery,Lb=a.$;return _.noConflict=function(b){return a.$===_&&(a.$=Lb),b&&a.jQuery===_&&(a.jQuery=Kb),_},typeof b===za&&(a.jQuery=a.$=_),_})},{}],6:[function(a,b,c){(function(a){(function(){function d(a,b){if(a!==b){var c=null===a,d=a===y,e=a===a,f=null===b,g=b===y,h=b===b;if(a>b&&!f||!e||c&&!g&&h||d&&h)return 1;if(b>a&&!c||!h||f&&!d&&e||g&&e)return-1}return 0}function e(a,b,c){for(var d=a.length,e=c?d:-1;c?e--:++e<d;)if(b(a[e],e,a))return e;return-1}function f(a,b,c){if(b!==b)return p(a,c);for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function g(a){return"function"==typeof a||!1}function h(a){return"string"==typeof a?a:null==a?"":a+""}function i(a,b){for(var c=-1,d=a.length;++c<d&&b.indexOf(a.charAt(c))>-1;);return c}function j(a,b){for(var c=a.length;c--&&b.indexOf(a.charAt(c))>-1;);return c}function k(a,b){return d(a.criteria,b.criteria)||a.index-b.index}function l(a,b,c){for(var e=-1,f=a.criteria,g=b.criteria,h=f.length,i=c.length;++e<h;){var j=d(f[e],g[e]);if(j)return e>=i?j:j*(c[e]?1:-1)}return a.index-b.index}function m(a){return Ta[a]}function n(a){return Ua[a]}function o(a){return"\\"+Xa[a]}function p(a,b,c){for(var d=a.length,e=b+(c?0:-1);c?e--:++e<d;){var f=a[e];if(f!==f)return e}return-1}function q(a){return!!a&&"object"==typeof a}function r(a){return 160>=a&&a>=9&&13>=a||32==a||160==a||5760==a||6158==a||a>=8192&&(8202>=a||8232==a||8233==a||8239==a||8287==a||12288==a||65279==a)}function s(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;)a[c]===b&&(a[c]=R,f[++e]=c);return f}function t(a,b){for(var c,d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d],i=b?b(h,d,a):h;d&&c===i||(c=i,g[++f]=h)}return g}function u(a){for(var b=-1,c=a.length;++b<c&&r(a.charCodeAt(b)););return b}function v(a){for(var b=a.length;b--&&r(a.charCodeAt(b)););return b}function w(a){return Va[a]}function x(a){function b(a){if(q(a)&&!Ah(a)&&!(a instanceof Y)){if(a instanceof r)return a;if(Wf.call(a,"__chain__")&&Wf.call(a,"__wrapped__"))return id(a)}return new r(a)}function c(){}function r(a,b,c){this.__wrapped__=a,this.__actions__=c||[],this.__chain__=!!b}function Y(a){this.__wrapped__=a,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=yg,this.__views__=null}function aa(){var a=this.__actions__,b=this.__iteratees__,c=this.__views__,d=new Y(this.__wrapped__);return d.__actions__=a?ab(a):null,d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=b?ab(b):null,d.__takeCount__=this.__takeCount__,d.__views__=c?ab(c):null,d}function ca(){if(this.__filtered__){var a=new Y(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Ta(){var a=this.__wrapped__.value();if(!Ah(a))return bc(a,this.__actions__);var b=this.__dir__,c=0>b,d=Pc(0,a.length,this.__views__),e=d.start,f=d.end,g=f-e,h=c?f:e-1,i=sg(g,this.__takeCount__),j=this.__iteratees__,k=j?j.length:0,l=0,m=[];a:for(;g--&&i>l;){h+=b;for(var n=-1,o=a[h];++n<k;){var p=j[n],q=p.iteratee,r=p.type;if(r==N){if(p.done&&(c?h>p.index:h<p.index)&&(p.count=0,p.done=!1),p.index=h,!p.done){var s=p.limit;if(!(p.done=s>-1?p.count++>=s:!q(o)))continue a}}else{var t=q(o);if(r==P)o=t;else if(!t){if(r==O)continue a;break a}}}m[l++]=o}return m}function Ua(){this.__data__={}}function Va(a){return this.has(a)&&delete this.__data__[a]}function Wa(a){return"__proto__"==a?y:this.__data__[a]}function Xa(a){return"__proto__"!=a&&Wf.call(this.__data__,a)}function Ya(a,b){return"__proto__"!=a&&(this.__data__[a]=b),this}function Za(a){var b=a?a.length:0;for(this.data={hash:ng(null),set:new hg};b--;)this.push(a[b])}function $a(a,b){var c=a.data,d="string"==typeof b||Be(b)?c.set.has(b):c.hash[b];return d?0:-1}function _a(a){var b=this.data;"string"==typeof a||Be(a)?b.set.add(a):b.hash[a]=!0}function ab(a,b){var c=-1,d=a.length;for(b||(b=Hf(d));++c<d;)b[c]=a[c];return b}function bb(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function eb(a,b){for(var c=a.length;c--&&b(a[c],c,a)!==!1;);return a}function fb(a,b){for(var c=-1,d=a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}function gb(a,b,c,d){for(var e=-1,f=a.length,g=d,h=g;++e<f;){var i=a[e],j=+b(i);c(j,g)&&(g=j,h=i)}return h}function hb(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function ib(a,b){for(var c=-1,d=a.length,e=Hf(d);++c<d;)e[c]=b(a[c],c,a);return e}function jb(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function kb(a,b,c,d){var e=a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function lb(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function mb(a){for(var b=a.length,c=0;b--;)c+=+a[b]||0;return c}function nb(a,b){return a===y?b:a}function ob(a,b,c,d){return a!==y&&Wf.call(d,c)?a:b}function pb(a,b,c){for(var d=-1,e=Mh(b),f=e.length;++d<f;){var g=e[d],h=a[g],i=c(h,b[g],g,a,b);(i===i?i===h:h!==h)&&(h!==y||g in a)||(a[g]=i)}return a}function qb(a,b){return null==b?a:sb(b,Mh(b),a)}function rb(a,b){for(var c=-1,d=null==a,e=!d&&Uc(a),f=e?a.length:0,g=b.length,h=Hf(g);++c<g;){var i=b[c];e?h[c]=Vc(i,f)?a[i]:y:h[c]=d?y:a[i]}return h}function sb(a,b,c){c||(c={});for(var d=-1,e=b.length;++d<e;){var f=b[d];c[f]=a[f]}return c}function tb(a,b,c){var d=typeof a;return"function"==d?b===y?a:ec(a,b,c):null==a?uf:"object"==d?Mb(a):b===y?Af(a):Nb(a,b)}function ub(a,b,c,d,e,f,g){var h;if(c&&(h=e?c(a,d,e):c(a)),h!==y)return h;if(!Be(a))return a;var i=Ah(a);if(i){if(h=Qc(a),!b)return ab(a,h)}else{var j=Yf.call(a),k=j==X;if(j!=$&&j!=S&&(!k||e))return Ra[j]?Sc(a,j,b):e?a:{};if(h=Rc(k?{}:a),!b)return qb(h,a)}f||(f=[]),g||(g=[]);for(var l=f.length;l--;)if(f[l]==a)return g[l];return f.push(a),g.push(h),(i?bb:Eb)(a,function(d,e){h[e]=ub(d,b,c,e,a,f,g)}),h}function vb(a,b,c){if("function"!=typeof a)throw new Qf(Q);return ig(function(){a.apply(y,c)},b)}function wb(a,b){var c=a?a.length:0,d=[];if(!c)return d;var e=-1,g=Mc(),h=g==f,i=h&&b.length>=200?Ng(b):null,j=b.length;i&&(g=$a,h=!1,b=i);a:for(;++e<c;){var k=a[e];if(h&&k===k){for(var l=j;l--;)if(b[l]===k)continue a;d.push(k)}else g(b,k,0)<0&&d.push(k)}return d}function xb(a,b){var c=!0;return Ig(a,function(a,d,e){return c=!!b(a,d,e)}),c}function yb(a,b,c,d){var e=d,f=e;return Ig(a,function(a,g,h){var i=+b(a,g,h);(c(i,e)||i===d&&i===f)&&(e=i,f=a)}),f}function zb(a,b,c,d){var e=a.length;for(c=null==c?0:+c||0,0>c&&(c=-c>e?0:e+c),d=d===y||d>e?e:+d||0,0>d&&(d+=e),e=c>d?0:d>>>0,c>>>=0;e>c;)a[c++]=b;return a}function Ab(a,b){var c=[];return Ig(a,function(a,d,e){b(a,d,e)&&c.push(a);
  }),c}function Bb(a,b,c,d){var e;return c(a,function(a,c,f){return b(a,c,f)?(e=d?c:a,!1):void 0}),e}function Cb(a,b,c){for(var d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d];if(q(h)&&Uc(h)&&(c||Ah(h)||ue(h))){b&&(h=Cb(h,b,c));for(var i=-1,j=h.length;++i<j;)g[++f]=h[i]}else c||(g[++f]=h)}return g}function Db(a,b){return Kg(a,b,Ue)}function Eb(a,b){return Kg(a,b,Mh)}function Fb(a,b){return Lg(a,b,Mh)}function Gb(a,b){for(var c=-1,d=b.length,e=-1,f=[];++c<d;){var g=b[c];Ch(a[g])&&(f[++e]=g)}return f}function Hb(a,b,c){if(null!=a){c!==y&&c in gd(a)&&(b=[c]);for(var d=0,e=b.length;null!=a&&e>d;)a=a[b[d++]];return d&&d==e?a:y}}function Ib(a,b,c,d,e,f){return a===b?!0:null==a||null==b||!Be(a)&&!q(b)?a!==a&&b!==b:Jb(a,b,Ib,c,d,e,f)}function Jb(a,b,c,d,e,f,g){var h=Ah(a),i=Ah(b),j=T,k=T;h||(j=Yf.call(a),j==S?j=$:j!=$&&(h=Je(a))),i||(k=Yf.call(b),k==S?k=$:k!=$&&(i=Je(b)));var l=j==$,m=k==$,n=j==k;if(n&&!h&&!l)return Ic(a,b,j);if(!e){var o=l&&Wf.call(a,"__wrapped__"),p=m&&Wf.call(b,"__wrapped__");if(o||p)return c(o?a.value():a,p?b.value():b,d,e,f,g)}if(!n)return!1;f||(f=[]),g||(g=[]);for(var q=f.length;q--;)if(f[q]==a)return g[q]==b;f.push(a),g.push(b);var r=(h?Hc:Jc)(a,b,c,d,e,f,g);return f.pop(),g.pop(),r}function Kb(a,b,c){var d=b.length,e=d,f=!c;if(null==a)return!e;for(a=gd(a);d--;){var g=b[d];if(f&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<e;){g=b[d];var h=g[0],i=a[h],j=g[1];if(f&&g[2]){if(i===y&&!(h in a))return!1}else{var k=c?c(i,j,h):y;if(!(k===y?Ib(j,i,c,!0):k))return!1}}return!0}function Lb(a,b){var c=-1,d=Uc(a)?Hf(a.length):[];return Ig(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function Mb(a){var b=Nc(a);if(1==b.length&&b[0][2]){var c=b[0][0],d=b[0][1];return function(a){return null==a?!1:a[c]===d&&(d!==y||c in gd(a))}}return function(a){return Kb(a,b)}}function Nb(a,b){var c=Ah(a),d=Xc(a)&&$c(b),e=a+"";return a=hd(a),function(f){if(null==f)return!1;var g=e;if(f=gd(f),!(!c&&d||g in f)){if(f=1==a.length?f:Hb(f,Vb(a,0,-1)),null==f)return!1;g=vd(a),f=gd(f)}return f[g]===b?b!==y||g in f:Ib(b,f[g],y,!0)}}function Ob(a,b,c,d,e){if(!Be(a))return a;var f=Uc(b)&&(Ah(b)||Je(b)),g=f?null:Mh(b);return bb(g||b,function(h,i){if(g&&(i=h,h=b[i]),q(h))d||(d=[]),e||(e=[]),Pb(a,b,i,Ob,c,d,e);else{var j=a[i],k=c?c(j,h,i,a,b):y,l=k===y;l&&(k=h),k===y&&(!f||i in a)||!l&&(k===k?k===j:j!==j)||(a[i]=k)}}),a}function Pb(a,b,c,d,e,f,g){for(var h=f.length,i=b[c];h--;)if(f[h]==i)return void(a[c]=g[h]);var j=a[c],k=e?e(j,i,c,a,b):y,l=k===y;l&&(k=i,Uc(i)&&(Ah(i)||Je(i))?k=Ah(j)?j:Uc(j)?ab(j):[]:Dh(i)||ue(i)?k=ue(j)?Oe(j):Dh(j)?j:{}:l=!1),f.push(i),g.push(k),l?a[c]=d(k,i,e,f,g):(k===k?k!==j:j===j)&&(a[c]=k)}function Qb(a){return function(b){return null==b?y:b[a]}}function Rb(a){var b=a+"";return a=hd(a),function(c){return Hb(c,a,b)}}function Sb(a,b){for(var c=a?b.length:0;c--;){var d=b[c];if(d!=e&&Vc(d)){var e=d;jg.call(a,d,1)}}return a}function Tb(a,b){return a+dg(wg()*(b-a+1))}function Ub(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function Vb(a,b,c){var d=-1,e=a.length;b=null==b?0:+b||0,0>b&&(b=-b>e?0:e+b),c=c===y||c>e?e:+c||0,0>c&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Hf(e);++d<e;)f[d]=a[d+b];return f}function Wb(a,b){var c;return Ig(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function Xb(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function Yb(a,b,c){var d=Kc(),e=-1;b=ib(b,function(a){return d(a)});var f=Lb(a,function(a){var c=ib(b,function(b){return b(a)});return{criteria:c,index:++e,value:a}});return Xb(f,function(a,b){return l(a,b,c)})}function Zb(a,b){var c=0;return Ig(a,function(a,d,e){c+=+b(a,d,e)||0}),c}function $b(a,b){var c=-1,d=Mc(),e=a.length,g=d==f,h=g&&e>=200,i=h?Ng():null,j=[];i?(d=$a,g=!1):(h=!1,i=b?[]:j);a:for(;++c<e;){var k=a[c],l=b?b(k,c,a):k;if(g&&k===k){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),j.push(k)}else d(i,l,0)<0&&((b||h)&&i.push(l),j.push(k))}return j}function _b(a,b){for(var c=-1,d=b.length,e=Hf(d);++c<d;)e[c]=a[b[c]];return e}function ac(a,b,c,d){for(var e=a.length,f=d?e:-1;(d?f--:++f<e)&&b(a[f],f,a););return c?Vb(a,d?0:f,d?f+1:e):Vb(a,d?f+1:0,d?e:f)}function bc(a,b){var c=a;c instanceof Y&&(c=c.value());for(var d=-1,e=b.length;++d<e;){var f=[c],g=b[d];gg.apply(f,g.args),c=g.func.apply(g.thisArg,f)}return c}function cc(a,b,c){var d=0,e=a?a.length:d;if("number"==typeof b&&b===b&&Bg>=e){for(;e>d;){var f=d+e>>>1,g=a[f];(c?b>=g:b>g)&&null!==g?d=f+1:e=f}return e}return dc(a,b,uf,c)}function dc(a,b,c,d){b=c(b);for(var e=0,f=a?a.length:0,g=b!==b,h=null===b,i=b===y;f>e;){var j=dg((e+f)/2),k=c(a[j]),l=k!==y,m=k===k;if(g)var n=m||d;else n=h?m&&l&&(d||null!=k):i?m&&(d||l):null==k?!1:d?b>=k:b>k;n?e=j+1:f=j}return sg(f,Ag)}function ec(a,b,c){if("function"!=typeof a)return uf;if(b===y)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)};case 5:return function(c,d,e,f,g){return a.call(b,c,d,e,f,g)}}return function(){return a.apply(b,arguments)}}function fc(a){return ag.call(a,0)}function gc(a,b,c){for(var d=c.length,e=-1,f=rg(a.length-d,0),g=-1,h=b.length,i=Hf(f+h);++g<h;)i[g]=b[g];for(;++e<d;)i[c[e]]=a[e];for(;f--;)i[g++]=a[e++];return i}function hc(a,b,c){for(var d=-1,e=c.length,f=-1,g=rg(a.length-e,0),h=-1,i=b.length,j=Hf(g+i);++f<g;)j[f]=a[f];for(var k=f;++h<i;)j[k+h]=b[h];for(;++d<e;)j[k+c[d]]=a[f++];return j}function ic(a,b){return function(c,d,e){var f=b?b():{};if(d=Kc(d,e,3),Ah(c))for(var g=-1,h=c.length;++g<h;){var i=c[g];a(f,i,d(i,g,c),c)}else Ig(c,function(b,c,e){a(f,b,d(b,c,e),e)});return f}}function jc(a){return me(function(b,c){var d=-1,e=null==b?0:c.length,f=e>2?c[e-2]:y,g=e>2?c[2]:y,h=e>1?c[e-1]:y;for("function"==typeof f?(f=ec(f,h,5),e-=2):(f="function"==typeof h?h:y,e-=f?1:0),g&&Wc(c[0],c[1],g)&&(f=3>e?y:f,e=1);++d<e;){var i=c[d];i&&a(b,i,f)}return b})}function kc(a,b){return function(c,d){var e=c?Pg(c):0;if(!Zc(e))return a(c,d);for(var f=b?e:-1,g=gd(c);(b?f--:++f<e)&&d(g[f],f,g)!==!1;);return c}}function lc(a){return function(b,c,d){for(var e=gd(b),f=d(b),g=f.length,h=a?g:-1;a?h--:++h<g;){var i=f[h];if(c(e[i],i,e)===!1)break}return b}}function mc(a,b){function c(){var e=this&&this!==cb&&this instanceof c?d:a;return e.apply(b,arguments)}var d=oc(a);return c}function nc(a){return function(b){for(var c=-1,d=rf(cf(b)),e=d.length,f="";++c<e;)f=a(f,d[c],c);return f}}function oc(a){return function(){var b=arguments;switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4])}var c=Hg(a.prototype),d=a.apply(c,b);return Be(d)?d:c}}function pc(a){function b(c,d,e){e&&Wc(c,d,e)&&(d=null);var f=Gc(c,a,null,null,null,null,null,d);return f.placeholder=b.placeholder,f}return b}function qc(a,b){return function(c,d,e){if(e&&Wc(c,d,e)&&(d=null),d=Kc(d,e,3),1==d.length){c=fd(c);var f=gb(c,d,a,b);if(!c.length||f!==b)return f}return yb(c,d,a,b)}}function rc(a,b){return function(c,d,f){if(d=Kc(d,f,3),Ah(c)){var g=e(c,d,b);return g>-1?c[g]:y}return Bb(c,d,a)}}function sc(a){return function(b,c,d){return b&&b.length?(c=Kc(c,d,3),e(b,c,a)):-1}}function tc(a){return function(b,c,d){return c=Kc(c,d,3),Bb(b,c,a,!0)}}function uc(a){return function(){for(var b,c=arguments.length,d=a?c:-1,e=0,f=Hf(c);a?d--:++d<c;){var g=f[e++]=arguments[d];if("function"!=typeof g)throw new Qf(Q);!b&&r.prototype.thru&&"wrapper"==Lc(g)&&(b=new r([]))}for(d=b?-1:c;++d<c;){g=f[d];var h=Lc(g),i="wrapper"==h?Og(g):null;b=i&&Yc(i[0])&&i[1]==(H|D|F|I)&&!i[4].length&&1==i[9]?b[Lc(i[0])].apply(b,i[3]):1==g.length&&Yc(g)?b[h]():b.thru(g)}return function(){var a=arguments;if(b&&1==a.length&&Ah(a[0]))return b.plant(a[0]).value();for(var d=0,e=c?f[d].apply(this,a):a[0];++d<c;)e=f[d].call(this,e);return e}}}function vc(a,b){return function(c,d,e){return"function"==typeof d&&e===y&&Ah(c)?a(c,d):b(c,ec(d,e,3))}}function wc(a){return function(b,c,d){return("function"!=typeof c||d!==y)&&(c=ec(c,d,3)),a(b,c,Ue)}}function xc(a){return function(b,c,d){return("function"!=typeof c||d!==y)&&(c=ec(c,d,3)),a(b,c)}}function yc(a){return function(b,c,d){var e={};return c=Kc(c,d,3),Eb(b,function(b,d,f){var g=c(b,d,f);d=a?g:d,b=a?b:g,e[d]=b}),e}}function zc(a){return function(b,c,d){return b=h(b),(a?b:"")+Dc(b,c,d)+(a?"":b)}}function Ac(a){var b=me(function(c,d){var e=s(d,b.placeholder);return Gc(c,a,null,d,e)});return b}function Bc(a,b){return function(c,d,e,f){var g=arguments.length<3;return"function"==typeof d&&f===y&&Ah(c)?a(c,d,e,g):Ub(c,Kc(d,f,4),e,g,b)}}function Cc(a,b,c,d,e,f,g,h,i,j){function k(){for(var t=arguments.length,u=t,v=Hf(t);u--;)v[u]=arguments[u];if(d&&(v=gc(v,d,e)),f&&(v=hc(v,f,g)),o||q){var w=k.placeholder,x=s(v,w);if(t-=x.length,j>t){var z=h?ab(h):null,C=rg(j-t,0),D=o?x:null,E=o?null:x,H=o?v:null,I=o?null:v;b|=o?F:G,b&=~(o?G:F),p||(b&=~(A|B));var J=[a,b,c,H,D,I,E,z,i,C],K=Cc.apply(y,J);return Yc(a)&&Qg(K,J),K.placeholder=w,K}}var L=m?c:this,M=n?L[a]:a;return h&&(v=cd(v,h)),l&&i<v.length&&(v.length=i),this&&this!==cb&&this instanceof k&&(M=r||oc(a)),M.apply(L,v)}var l=b&H,m=b&A,n=b&B,o=b&D,p=b&C,q=b&E,r=n?null:oc(a);return k}function Dc(a,b,c){var d=a.length;if(b=+b,d>=b||!pg(b))return"";var e=b-d;return c=null==c?" ":c+"",jf(c,bg(e/c.length)).slice(0,e)}function Ec(a,b,c,d){function e(){for(var b=-1,h=arguments.length,i=-1,j=d.length,k=Hf(h+j);++i<j;)k[i]=d[i];for(;h--;)k[i++]=arguments[++b];var l=this&&this!==cb&&this instanceof e?g:a;return l.apply(f?c:this,k)}var f=b&A,g=oc(a);return e}function Fc(a){return function(b,c,d,e){var f=Kc(d);return null==d&&f===tb?cc(b,c,a):dc(b,c,f(d,e,1),a)}}function Gc(a,b,c,d,e,f,g,h){var i=b&B;if(!i&&"function"!=typeof a)throw new Qf(Q);var j=d?d.length:0;if(j||(b&=~(F|G),d=e=null),j-=e?e.length:0,b&G){var k=d,l=e;d=e=null}var m=i?null:Og(a),n=[a,b,c,d,e,k,l,f,g,h];if(m&&(_c(n,m),b=n[1],h=n[9]),n[9]=null==h?i?0:a.length:rg(h-j,0)||0,b==A)var o=mc(n[0],n[2]);else o=b!=F&&b!=(A|F)||n[4].length?Cc.apply(y,n):Ec.apply(y,n);var p=m?Mg:Qg;return p(o,n)}function Hc(a,b,c,d,e,f,g){var h=-1,i=a.length,j=b.length;if(i!=j&&!(e&&j>i))return!1;for(;++h<i;){var k=a[h],l=b[h],m=d?d(e?l:k,e?k:l,h):y;if(m!==y){if(m)continue;return!1}if(e){if(!lb(b,function(a){return k===a||c(k,a,d,e,f,g)}))return!1}else if(k!==l&&!c(k,l,d,e,f,g))return!1}return!0}function Ic(a,b,c){switch(c){case U:case V:return+a==+b;case W:return a.name==b.name&&a.message==b.message;case Z:return a!=+a?b!=+b:a==+b;case _:case ba:return a==b+""}return!1}function Jc(a,b,c,d,e,f,g){var h=Mh(a),i=h.length,j=Mh(b),k=j.length;if(i!=k&&!e)return!1;for(var l=i;l--;){var m=h[l];if(!(e?m in b:Wf.call(b,m)))return!1}for(var n=e;++l<i;){m=h[l];var o=a[m],p=b[m],q=d?d(e?p:o,e?o:p,m):y;if(!(q===y?c(o,p,d,e,f,g):q))return!1;n||(n="constructor"==m)}if(!n){var r=a.constructor,s=b.constructor;if(r!=s&&"constructor"in a&&"constructor"in b&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function Kc(a,c,d){var e=b.callback||sf;return e=e===sf?tb:e,d?e(a,c,d):e}function Lc(a){for(var b=a.name,c=Fg[b],d=c?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}function Mc(a,c,d){var e=b.indexOf||td;return e=e===td?f:e,a?e(a,c,d):e}function Nc(a){for(var b=Ve(a),c=b.length;c--;)b[c][2]=$c(b[c][1]);return b}function Oc(a,b){var c=null==a?y:a[b];return Ee(c)?c:y}function Pc(a,b,c){for(var d=-1,e=c?c.length:0;++d<e;){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=sg(b,a+g);break;case"takeRight":a=rg(a,b-g)}}return{start:a,end:b}}function Qc(a){var b=a.length,c=new a.constructor(b);return b&&"string"==typeof a[0]&&Wf.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function Rc(a){var b=a.constructor;return"function"==typeof b&&b instanceof b||(b=Nf),new b}function Sc(a,b,c){var d=a.constructor;switch(b){case da:return fc(a);case U:case V:return new d(+a);case ea:case fa:case ga:case ha:case ia:case ja:case ka:case la:case ma:var e=a.buffer;return new d(c?fc(e):e,a.byteOffset,a.length);case Z:case ba:return new d(a);case _:var f=new d(a.source,Fa.exec(a));f.lastIndex=a.lastIndex}return f}function Tc(a,b,c){null==a||Xc(b,a)||(b=hd(b),a=1==b.length?a:Hb(a,Vb(b,0,-1)),b=vd(b));var d=null==a?a:a[b];return null==d?y:d.apply(a,c)}function Uc(a){return null!=a&&Zc(Pg(a))}function Vc(a,b){return a="number"==typeof a||Ia.test(a)?+a:-1,b=null==b?Dg:b,a>-1&&a%1==0&&b>a}function Wc(a,b,c){if(!Be(c))return!1;var d=typeof b;if("number"==d?Uc(c)&&Vc(b,c.length):"string"==d&&b in c){var e=c[b];return a===a?a===e:e!==e}return!1}function Xc(a,b){var c=typeof a;if("string"==c&&ya.test(a)||"number"==c)return!0;if(Ah(a))return!1;var d=!xa.test(a);return d||null!=b&&a in gd(b)}function Yc(a){var c=Lc(a);if(!(c in Y.prototype))return!1;var d=b[c];if(a===d)return!0;var e=Og(d);return!!e&&a===e[0]}function Zc(a){return"number"==typeof a&&a>-1&&a%1==0&&Dg>=a}function $c(a){return a===a&&!Be(a)}function _c(a,b){var c=a[1],d=b[1],e=c|d,f=H>e,g=d==H&&c==D||d==H&&c==I&&a[7].length<=b[8]||d==(H|I)&&c==D;if(!f&&!g)return a;d&A&&(a[2]=b[2],e|=c&A?0:C);var h=b[3];if(h){var i=a[3];a[3]=i?gc(i,h,b[4]):ab(h),a[4]=i?s(a[3],R):ab(b[4])}return h=b[5],h&&(i=a[5],a[5]=i?hc(i,h,b[6]):ab(h),a[6]=i?s(a[5],R):ab(b[6])),h=b[7],h&&(a[7]=ab(h)),d&H&&(a[8]=null==a[8]?b[8]:sg(a[8],b[8])),null==a[9]&&(a[9]=b[9]),a[0]=b[0],a[1]=e,a}function ad(a,b){a=gd(a);for(var c=-1,d=b.length,e={};++c<d;){var f=b[c];f in a&&(e[f]=a[f])}return e}function bd(a,b){var c={};return Db(a,function(a,d,e){b(a,d,e)&&(c[d]=a)}),c}function cd(a,b){for(var c=a.length,d=sg(b.length,c),e=ab(a);d--;){var f=b[d];a[d]=Vc(f,c)?e[f]:y}return a}function dd(a){var c;b.support;if(!q(a)||Yf.call(a)!=$||!Wf.call(a,"constructor")&&(c=a.constructor,"function"==typeof c&&!(c instanceof c)))return!1;var d;return Db(a,function(a,b){d=b}),d===y||Wf.call(a,d)}function ed(a){for(var b=Ue(a),c=b.length,d=c&&a.length,e=!!d&&Zc(d)&&(Ah(a)||ue(a)),f=-1,g=[];++f<c;){var h=b[f];(e&&Vc(h,d)||Wf.call(a,h))&&g.push(h)}return g}function fd(a){return null==a?[]:Uc(a)?Be(a)?a:Nf(a):Ze(a)}function gd(a){return Be(a)?a:Nf(a)}function hd(a){if(Ah(a))return a;var b=[];return h(a).replace(za,function(a,c,d,e){b.push(d?e.replace(Da,"$1"):c||a)}),b}function id(a){return a instanceof Y?a.clone():new r(a.__wrapped__,a.__chain__,ab(a.__actions__))}function jd(a,b,c){b=(c?Wc(a,b,c):null==b)?1:rg(+b||1,1);for(var d=0,e=a?a.length:0,f=-1,g=Hf(bg(e/b));e>d;)g[++f]=Vb(a,d,d+=b);return g}function kd(a){for(var b=-1,c=a?a.length:0,d=-1,e=[];++b<c;){var f=a[b];f&&(e[++d]=f)}return e}function ld(a,b,c){var d=a?a.length:0;return d?((c?Wc(a,b,c):null==b)&&(b=1),Vb(a,0>b?0:b)):[]}function md(a,b,c){var d=a?a.length:0;return d?((c?Wc(a,b,c):null==b)&&(b=1),b=d-(+b||0),Vb(a,0,0>b?0:b)):[]}function nd(a,b,c){return a&&a.length?ac(a,Kc(b,c,3),!0,!0):[]}function od(a,b,c){return a&&a.length?ac(a,Kc(b,c,3),!0):[]}function pd(a,b,c,d){var e=a?a.length:0;return e?(c&&"number"!=typeof c&&Wc(a,b,c)&&(c=0,d=e),zb(a,b,c,d)):[]}function qd(a){return a?a[0]:y}function rd(a,b,c){var d=a?a.length:0;return c&&Wc(a,b,c)&&(b=!1),d?Cb(a,b):[]}function sd(a){var b=a?a.length:0;return b?Cb(a,!0):[]}function td(a,b,c){var d=a?a.length:0;if(!d)return-1;if("number"==typeof c)c=0>c?rg(d+c,0):c;else if(c){var e=cc(a,b),g=a[e];return(b===b?b===g:g!==g)?e:-1}return f(a,b,c||0)}function ud(a){return md(a,1)}function vd(a){var b=a?a.length:0;return b?a[b-1]:y}function wd(a,b,c){var d=a?a.length:0;if(!d)return-1;var e=d;if("number"==typeof c)e=(0>c?rg(d+c,0):sg(c||0,d-1))+1;else if(c){e=cc(a,b,!0)-1;var f=a[e];return(b===b?b===f:f!==f)?e:-1}if(b!==b)return p(a,e,!0);for(;e--;)if(a[e]===b)return e;return-1}function xd(){var a=arguments,b=a[0];if(!b||!b.length)return b;for(var c=0,d=Mc(),e=a.length;++c<e;)for(var f=0,g=a[c];(f=d(b,g,f))>-1;)jg.call(b,f,1);return b}function yd(a,b,c){var d=[];if(!a||!a.length)return d;var e=-1,f=[],g=a.length;for(b=Kc(b,c,3);++e<g;){var h=a[e];b(h,e,a)&&(d.push(h),f.push(e))}return Sb(a,f),d}function zd(a){return ld(a,1)}function Ad(a,b,c){var d=a?a.length:0;return d?(c&&"number"!=typeof c&&Wc(a,b,c)&&(b=0,c=d),Vb(a,b,c)):[]}function Bd(a,b,c){var d=a?a.length:0;return d?((c?Wc(a,b,c):null==b)&&(b=1),Vb(a,0,0>b?0:b)):[]}function Cd(a,b,c){var d=a?a.length:0;return d?((c?Wc(a,b,c):null==b)&&(b=1),b=d-(+b||0),Vb(a,0>b?0:b)):[]}function Dd(a,b,c){return a&&a.length?ac(a,Kc(b,c,3),!1,!0):[]}function Ed(a,b,c){return a&&a.length?ac(a,Kc(b,c,3)):[]}function Fd(a,b,c,d){var e=a?a.length:0;if(!e)return[];null!=b&&"boolean"!=typeof b&&(d=c,c=Wc(a,b,d)?null:b,b=!1);var g=Kc();return(null!=c||g!==tb)&&(c=g(c,d,3)),b&&Mc()==f?t(a,c):$b(a,c)}function Gd(a){if(!a||!a.length)return[];var b=-1,c=0;a=hb(a,function(a){return Uc(a)?(c=rg(a.length,c),!0):void 0});for(var d=Hf(c);++b<c;)d[b]=ib(a,Qb(b));return d}function Hd(a,b,c){var d=a?a.length:0;if(!d)return[];var e=Gd(a);return null==b?e:(b=ec(b,c,4),ib(e,function(a){return jb(a,b,y,!0)}))}function Id(){for(var a=-1,b=arguments.length;++a<b;){var c=arguments[a];if(Uc(c))var d=d?wb(d,c).concat(wb(c,d)):c}return d?$b(d):[]}function Jd(a,b){var c=-1,d=a?a.length:0,e={};for(!d||b||Ah(a[0])||(b=[]);++c<d;){var f=a[c];b?e[f]=b[c]:f&&(e[f[0]]=f[1])}return e}function Kd(a){var c=b(a);return c.__chain__=!0,c}function Ld(a,b,c){return b.call(c,a),a}function Md(a,b,c){return b.call(c,a)}function Nd(){return Kd(this)}function Od(){return new r(this.value(),this.__chain__)}function Pd(a){for(var b,d=this;d instanceof c;){var e=id(d);b?f.__wrapped__=e:b=e;var f=e;d=d.__wrapped__}return f.__wrapped__=a,b}function Qd(){var a=this.__wrapped__;return a instanceof Y?(this.__actions__.length&&(a=new Y(this)),new r(a.reverse(),this.__chain__)):this.thru(function(a){return a.reverse()})}function Rd(){return this.value()+""}function Sd(){return bc(this.__wrapped__,this.__actions__)}function Td(a,b,c){var d=Ah(a)?fb:xb;return c&&Wc(a,b,c)&&(b=null),("function"!=typeof b||c!==y)&&(b=Kc(b,c,3)),d(a,b)}function Ud(a,b,c){var d=Ah(a)?hb:Ab;return b=Kc(b,c,3),d(a,b)}function Vd(a,b){return ch(a,Mb(b))}function Wd(a,b,c,d){var e=a?Pg(a):0;return Zc(e)||(a=Ze(a),e=a.length),e?(c="number"!=typeof c||d&&Wc(b,c,d)?0:0>c?rg(e+c,0):c||0,"string"==typeof a||!Ah(a)&&Ie(a)?e>c&&a.indexOf(b,c)>-1:Mc(a,b,c)>-1):!1}function Xd(a,b,c){var d=Ah(a)?ib:Lb;return b=Kc(b,c,3),d(a,b)}function Yd(a,b){return Xd(a,Af(b))}function Zd(a,b,c){var d=Ah(a)?hb:Ab;return b=Kc(b,c,3),d(a,function(a,c,d){return!b(a,c,d)})}function $d(a,b,c){if(c?Wc(a,b,c):null==b){a=fd(a);var d=a.length;return d>0?a[Tb(0,d-1)]:y}var e=-1,f=Ne(a),d=f.length,g=d-1;for(b=sg(0>b?0:+b||0,d);++e<b;){var h=Tb(e,g),i=f[h];f[h]=f[e],f[e]=i}return f.length=b,f}function _d(a){return $d(a,yg)}function ae(a){var b=a?Pg(a):0;return Zc(b)?b:Mh(a).length}function be(a,b,c){var d=Ah(a)?lb:Wb;return c&&Wc(a,b,c)&&(b=null),("function"!=typeof b||c!==y)&&(b=Kc(b,c,3)),d(a,b)}function ce(a,b,c){if(null==a)return[];c&&Wc(a,b,c)&&(b=null);var d=-1;b=Kc(b,c,3);var e=Lb(a,function(a,c,e){return{criteria:b(a,c,e),index:++d,value:a}});return Xb(e,k)}function de(a,b,c,d){return null==a?[]:(d&&Wc(b,c,d)&&(c=null),Ah(b)||(b=null==b?[]:[b]),Ah(c)||(c=null==c?[]:[c]),Yb(a,b,c))}function ee(a,b){return Ud(a,Mb(b))}function fe(a,b){if("function"!=typeof b){if("function"!=typeof a)throw new Qf(Q);var c=a;a=b,b=c}return a=pg(a=+a)?a:0,function(){return--a<1?b.apply(this,arguments):void 0}}function ge(a,b,c){return c&&Wc(a,b,c)&&(b=null),b=a&&null==b?a.length:rg(+b||0,0),Gc(a,H,null,null,null,null,b)}function he(a,b){var c;if("function"!=typeof b){if("function"!=typeof a)throw new Qf(Q);var d=a;a=b,b=d}return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=null),c}}function ie(a,b,c){function d(){m&&cg(m),i&&cg(i),i=m=n=y}function e(){var c=b-(nh()-k);if(0>=c||c>b){i&&cg(i);var d=n;i=m=n=y,d&&(o=nh(),j=a.apply(l,h),m||i||(h=l=null))}else m=ig(e,c)}function f(){m&&cg(m),i=m=n=y,(q||p!==b)&&(o=nh(),j=a.apply(l,h),m||i||(h=l=null))}function g(){if(h=arguments,k=nh(),l=this,n=q&&(m||!r),p===!1)var c=r&&!m;else{i||r||(o=k);var d=p-(k-o),g=0>=d||d>p;g?(i&&(i=cg(i)),o=k,j=a.apply(l,h)):i||(i=ig(f,d))}return g&&m?m=cg(m):m||b===p||(m=ig(e,b)),c&&(g=!0,j=a.apply(l,h)),!g||m||i||(h=l=null),j}var h,i,j,k,l,m,n,o=0,p=!1,q=!0;if("function"!=typeof a)throw new Qf(Q);if(b=0>b?0:+b||0,c===!0){var r=!0;q=!1}else Be(c)&&(r=c.leading,p="maxWait"in c&&rg(+c.maxWait||0,b),q="trailing"in c?c.trailing:q);return g.cancel=d,g}function je(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw new Qf(Q);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new je.Cache,c}function ke(a){if("function"!=typeof a)throw new Qf(Q);return function(){return!a.apply(this,arguments)}}function le(a){return he(2,a)}function me(a,b){if("function"!=typeof a)throw new Qf(Q);return b=rg(b===y?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=rg(c.length-b,0),f=Hf(e);++d<e;)f[d]=c[b+d];switch(b){case 0:return a.call(this,f);case 1:return a.call(this,c[0],f);case 2:return a.call(this,c[0],c[1],f)}var g=Hf(b+1);for(d=-1;++d<b;)g[d]=c[d];return g[b]=f,a.apply(this,g)}}function ne(a){if("function"!=typeof a)throw new Qf(Q);return function(b){return a.apply(this,b)}}function oe(a,b,c){var d=!0,e=!0;if("function"!=typeof a)throw new Qf(Q);return c===!1?d=!1:Be(c)&&(d="leading"in c?!!c.leading:d,e="trailing"in c?!!c.trailing:e),Sa.leading=d,Sa.maxWait=+b,Sa.trailing=e,ie(a,b,Sa)}function pe(a,b){return b=null==b?uf:b,Gc(b,F,null,[a],[])}function qe(a,b,c,d){return b&&"boolean"!=typeof b&&Wc(a,b,c)?b=!1:"function"==typeof b&&(d=c,c=b,b=!1),"function"==typeof c?ub(a,b,ec(c,d,1)):ub(a,b)}function re(a,b,c){return"function"==typeof b?ub(a,!0,ec(b,c,1)):ub(a,!0)}function se(a,b){return a>b}function te(a,b){return a>=b}function ue(a){return q(a)&&Uc(a)&&Yf.call(a)==S}function ve(a){return a===!0||a===!1||q(a)&&Yf.call(a)==U}function we(a){return q(a)&&Yf.call(a)==V}function xe(a){return!!a&&1===a.nodeType&&q(a)&&Yf.call(a).indexOf("Element")>-1}function ye(a){return null==a?!0:Uc(a)&&(Ah(a)||Ie(a)||ue(a)||q(a)&&Ch(a.splice))?!a.length:!Mh(a).length}function ze(a,b,c,d){c="function"==typeof c?ec(c,d,3):y;var e=c?c(a,b):y;return e===y?Ib(a,b,c):!!e}function Ae(a){return q(a)&&"string"==typeof a.message&&Yf.call(a)==W}function Be(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function Ce(a,b,c,d){return c="function"==typeof c?ec(c,d,3):y,Kb(a,Nc(b),c)}function De(a){return Ge(a)&&a!=+a}function Ee(a){return null==a?!1:Yf.call(a)==X?$f.test(Vf.call(a)):q(a)&&Ha.test(a)}function Fe(a){return null===a}function Ge(a){return"number"==typeof a||q(a)&&Yf.call(a)==Z}function He(a){return q(a)&&Yf.call(a)==_}function Ie(a){return"string"==typeof a||q(a)&&Yf.call(a)==ba}function Je(a){return q(a)&&Zc(a.length)&&!!Qa[Yf.call(a)]}function Ke(a){return a===y}function Le(a,b){return b>a}function Me(a,b){return b>=a}function Ne(a){var b=a?Pg(a):0;return Zc(b)?b?ab(a):[]:Ze(a)}function Oe(a){return sb(a,Ue(a))}function Pe(a,b,c){var d=Hg(a);return c&&Wc(a,b,c)&&(b=null),b?qb(d,b):d}function Qe(a){return Gb(a,Ue(a))}function Re(a,b,c){var d=null==a?y:Hb(a,hd(b),b+"");return d===y?c:d}function Se(a,b){if(null==a)return!1;var c=Wf.call(a,b);if(!c&&!Xc(b)){if(b=hd(b),a=1==b.length?a:Hb(a,Vb(b,0,-1)),null==a)return!1;b=vd(b),c=Wf.call(a,b)}return c||Zc(a.length)&&Vc(b,a.length)&&(Ah(a)||ue(a))}function Te(a,b,c){c&&Wc(a,b,c)&&(b=null);for(var d=-1,e=Mh(a),f=e.length,g={};++d<f;){var h=e[d],i=a[h];b?Wf.call(g,i)?g[i].push(h):g[i]=[h]:g[i]=h}return g}function Ue(a){if(null==a)return[];Be(a)||(a=Nf(a));var b=a.length;b=b&&Zc(b)&&(Ah(a)||ue(a))&&b||0;for(var c=a.constructor,d=-1,e="function"==typeof c&&c.prototype===a,f=Hf(b),g=b>0;++d<b;)f[d]=d+"";for(var h in a)g&&Vc(h,b)||"constructor"==h&&(e||!Wf.call(a,h))||f.push(h);return f}function Ve(a){a=gd(a);for(var b=-1,c=Mh(a),d=c.length,e=Hf(d);++b<d;){var f=c[b];e[b]=[f,a[f]]}return e}function We(a,b,c){var d=null==a?y:a[b];return d===y&&(null==a||Xc(b,a)||(b=hd(b),a=1==b.length?a:Hb(a,Vb(b,0,-1)),d=null==a?y:a[vd(b)]),d=d===y?c:d),Ch(d)?d.call(a):d}function Xe(a,b,c){if(null==a)return a;var d=b+"";b=null!=a[d]||Xc(b,a)?[d]:hd(b);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=b[e];Be(h)&&(e==g?h[i]=c:null==h[i]&&(h[i]=Vc(b[e+1])?[]:{})),h=h[i]}return a}function Ye(a,b,c,d){var e=Ah(a)||Je(a);if(b=Kc(b,d,4),null==c)if(e||Be(a)){var f=a.constructor;c=e?Ah(a)?new f:[]:Hg(Ch(f)?f.prototype:null)}else c={};return(e?bb:Eb)(a,function(a,d,e){return b(c,a,d,e)}),c}function Ze(a){return _b(a,Mh(a))}function $e(a){return _b(a,Ue(a))}function _e(a,b,c){return b=+b||0,"undefined"==typeof c?(c=b,b=0):c=+c||0,a>=sg(b,c)&&a<rg(b,c)}function af(a,b,c){c&&Wc(a,b,c)&&(b=c=null);var d=null==a,e=null==b;if(null==c&&(e&&"boolean"==typeof a?(c=a,a=1):"boolean"==typeof b&&(c=b,e=!0)),d&&e&&(b=1,e=!1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=wg();return sg(a+f*(b-a+fg("1e-"+((f+"").length-1))),b)}return Tb(a,b)}function bf(a){return a=h(a),a&&a.charAt(0).toUpperCase()+a.slice(1)}function cf(a){return a=h(a),a&&a.replace(Ja,m).replace(Ca,"")}function df(a,b,c){a=h(a),b+="";var d=a.length;return c=c===y?d:sg(0>c?0:+c||0,d),c-=b.length,c>=0&&a.indexOf(b,c)==c}function ef(a){return a=h(a),a&&ta.test(a)?a.replace(ra,n):a}function ff(a){return a=h(a),a&&Ba.test(a)?a.replace(Aa,"\\$&"):a}function gf(a,b,c){a=h(a),b=+b;var d=a.length;if(d>=b||!pg(b))return a;var e=(b-d)/2,f=dg(e),g=bg(e);return c=Dc("",g,c),c.slice(0,f)+a+c}function hf(a,b,c){return c&&Wc(a,b,c)&&(b=0),vg(a,b)}function jf(a,b){var c="";if(a=h(a),b=+b,1>b||!a||!pg(b))return c;do b%2&&(c+=a),b=dg(b/2),a+=a;while(b);return c}function kf(a,b,c){return a=h(a),c=null==c?0:sg(0>c?0:+c||0,a.length),a.lastIndexOf(b,c)==c}function lf(a,c,d){var e=b.templateSettings;d&&Wc(a,c,d)&&(c=d=null),a=h(a),c=pb(qb({},d||c),e,ob);var f,g,i=pb(qb({},c.imports),e.imports,ob),j=Mh(i),k=_b(i,j),l=0,m=c.interpolate||Ka,n="__p += '",p=Of((c.escape||Ka).source+"|"+m.source+"|"+(m===wa?Ea:Ka).source+"|"+(c.evaluate||Ka).source+"|$","g"),q="//# sourceURL="+("sourceURL"in c?c.sourceURL:"lodash.templateSources["+ ++Pa+"]")+"\n";a.replace(p,function(b,c,d,e,h,i){return d||(d=e),n+=a.slice(l,i).replace(La,o),c&&(f=!0,n+="' +\n__e("+c+") +\n'"),h&&(g=!0,n+="';\n"+h+";\n__p += '"),d&&(n+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),l=i+b.length,b}),n+="';\n";var r=c.variable;r||(n="with (obj) {\n"+n+"\n}\n"),n=(g?n.replace(na,""):n).replace(oa,"$1").replace(pa,"$1;"),n="function("+(r||"obj")+") {\n"+(r?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+n+"return __p\n}";var s=Yh(function(){return Kf(j,q+"return "+n).apply(y,k)});if(s.source=n,Ae(s))throw s;return s}function mf(a,b,c){var d=a;return(a=h(a))?(c?Wc(d,b,c):null==b)?a.slice(u(a),v(a)+1):(b+="",a.slice(i(a,b),j(a,b)+1)):a}function nf(a,b,c){var d=a;return a=h(a),a?(c?Wc(d,b,c):null==b)?a.slice(u(a)):a.slice(i(a,b+"")):a}function of(a,b,c){var d=a;return a=h(a),a?(c?Wc(d,b,c):null==b)?a.slice(0,v(a)+1):a.slice(0,j(a,b+"")+1):a}function pf(a,b,c){c&&Wc(a,b,c)&&(b=null);var d=J,e=K;if(null!=b)if(Be(b)){var f="separator"in b?b.separator:f;d="length"in b?+b.length||0:d,e="omission"in b?h(b.omission):e}else d=+b||0;if(a=h(a),d>=a.length)return a;var g=d-e.length;if(1>g)return e;var i=a.slice(0,g);if(null==f)return i+e;if(He(f)){if(a.slice(g).search(f)){var j,k,l=a.slice(0,g);for(f.global||(f=Of(f.source,(Fa.exec(f)||"")+"g")),f.lastIndex=0;j=f.exec(l);)k=j.index;i=i.slice(0,null==k?g:k)}}else if(a.indexOf(f,g)!=g){var m=i.lastIndexOf(f);m>-1&&(i=i.slice(0,m))}return i+e}function qf(a){return a=h(a),a&&sa.test(a)?a.replace(qa,w):a}function rf(a,b,c){return c&&Wc(a,b,c)&&(b=null),a=h(a),a.match(b||Ma)||[]}function sf(a,b,c){return c&&Wc(a,b,c)&&(b=null),q(a)?vf(a):tb(a,b)}function tf(a){return function(){return a}}function uf(a){return a}function vf(a){return Mb(ub(a,!0))}function wf(a,b){return Nb(a,ub(b,!0))}function xf(a,b,c){if(null==c){var d=Be(b),e=d?Mh(b):null,f=e&&e.length?Gb(b,e):null;(f?f.length:d)||(f=!1,c=b,b=a,a=this)}f||(f=Gb(b,Mh(b)));var g=!0,h=-1,i=Ch(a),j=f.length;c===!1?g=!1:Be(c)&&"chain"in c&&(g=c.chain);for(;++h<j;){var k=f[h],l=b[k];a[k]=l,i&&(a.prototype[k]=function(b){return function(){var c=this.__chain__;if(g||c){var d=a(this.__wrapped__),e=d.__actions__=ab(this.__actions__);return e.push({func:b,args:arguments,thisArg:a}),d.__chain__=c,d}var f=[this.value()];return gg.apply(f,arguments),b.apply(a,f)}}(l))}return a}function yf(){return a._=Zf,this}function zf(){}function Af(a){return Xc(a)?Qb(a):Rb(a)}function Bf(a){return function(b){return Hb(a,hd(b),b+"")}}function Cf(a,b,c){c&&Wc(a,b,c)&&(b=c=null),a=+a||0,c=null==c?1:+c||0,null==b?(b=a,a=0):b=+b||0;for(var d=-1,e=rg(bg((b-a)/(c||1)),0),f=Hf(e);++d<e;)f[d]=a,a+=c;return f}function Df(a,b,c){if(a=dg(a),1>a||!pg(a))return[];var d=-1,e=Hf(sg(a,zg));for(b=ec(b,c,1);++d<a;)zg>d?e[d]=b(d):b(d);return e}function Ef(a){var b=++Xf;return h(a)+b}function Ff(a,b){return(+a||0)+(+b||0)}function Gf(a,b,c){c&&Wc(a,b,c)&&(b=null);var d=Kc(),e=null==b;return e&&d===tb||(e=!1,b=d(b,c,3)),e?mb(Ah(a)?a:fd(a)):Zb(a,b)}a=a?db.defaults(cb.Object(),a,db.pick(cb,Oa)):cb;var Hf=a.Array,If=a.Date,Jf=a.Error,Kf=a.Function,Lf=a.Math,Mf=a.Number,Nf=a.Object,Of=a.RegExp,Pf=a.String,Qf=a.TypeError,Rf=Hf.prototype,Sf=Nf.prototype,Tf=Pf.prototype,Uf=(Uf=a.window)?Uf.document:null,Vf=Kf.prototype.toString,Wf=Sf.hasOwnProperty,Xf=0,Yf=Sf.toString,Zf=a._,$f=Of("^"+ff(Vf.call(Wf)).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_f=Oc(a,"ArrayBuffer"),ag=Oc(_f&&new _f(0),"slice"),bg=Lf.ceil,cg=a.clearTimeout,dg=Lf.floor,eg=Oc(Nf,"getPrototypeOf"),fg=a.parseFloat,gg=Rf.push,hg=Oc(a,"Set"),ig=a.setTimeout,jg=Rf.splice,kg=Oc(a,"Uint8Array"),lg=Oc(a,"WeakMap"),mg=function(){try{var b=Oc(a,"Float64Array"),c=new b(new _f(10),0,1)&&b}catch(d){}return c||null}(),ng=Oc(Nf,"create"),og=Oc(Hf,"isArray"),pg=a.isFinite,qg=Oc(Nf,"keys"),rg=Lf.max,sg=Lf.min,tg=Oc(If,"now"),ug=Oc(Mf,"isFinite"),vg=a.parseInt,wg=Lf.random,xg=Mf.NEGATIVE_INFINITY,yg=Mf.POSITIVE_INFINITY,zg=4294967295,Ag=zg-1,Bg=zg>>>1,Cg=mg?mg.BYTES_PER_ELEMENT:0,Dg=9007199254740991,Eg=lg&&new lg,Fg={},Gg=b.support={};!function(a){var b=function(){this.x=a},c=[];b.prototype={valueOf:a,y:a};for(var d in new b)c.push(d);try{Gg.dom=11===Uf.createDocumentFragment().nodeType}catch(e){Gg.dom=!1}}(1,0),b.templateSettings={escape:ua,evaluate:va,interpolate:wa,variable:"",imports:{_:b}};var Hg=function(){function a(){}return function(b){if(Be(b)){a.prototype=b;var c=new a;a.prototype=null}return c||{}}}(),Ig=kc(Eb),Jg=kc(Fb,!0),Kg=lc(),Lg=lc(!0),Mg=Eg?function(a,b){return Eg.set(a,b),a}:uf;ag||(fc=_f&&kg?function(a){var b=a.byteLength,c=mg?dg(b/Cg):0,d=c*Cg,e=new _f(b);if(c){var f=new mg(e,0,c);f.set(new mg(a,0,c))}return b!=d&&(f=new kg(e,d),f.set(new kg(a,d))),e}:tf(null));var Ng=ng&&hg?function(a){return new Za(a)}:tf(null),Og=Eg?function(a){return Eg.get(a)}:zf,Pg=Qb("length"),Qg=function(){var a=0,b=0;return function(c,d){var e=nh(),f=M-(e-b);if(b=e,f>0){if(++a>=L)return c}else a=0;return Mg(c,d)}}(),Rg=me(function(a,b){return Uc(a)?wb(a,Cb(b,!1,!0)):[]}),Sg=sc(),Tg=sc(!0),Ug=me(function(a){for(var b=a.length,c=b,d=Hf(l),e=Mc(),g=e==f,h=[];c--;){var i=a[c]=Uc(i=a[c])?i:[];d[c]=g&&i.length>=120?Ng(c&&i):null}var j=a[0],k=-1,l=j?j.length:0,m=d[0];a:for(;++k<l;)if(i=j[k],(m?$a(m,i):e(h,i,0))<0){for(var c=b;--c;){var n=d[c];if((n?$a(n,i):e(a[c],i,0))<0)continue a}m&&m.push(i),h.push(i)}return h}),Vg=me(function(a,b){b=Cb(b);var c=rb(a,b);return Sb(a,b.sort(d)),c}),Wg=Fc(),Xg=Fc(!0),Yg=me(function(a){return $b(Cb(a,!1,!0))}),Zg=me(function(a,b){return Uc(a)?wb(a,b):[]}),$g=me(Gd),_g=me(function(a){var b=a.length,c=b>2?a[b-2]:y,d=b>1?a[b-1]:y;return b>2&&"function"==typeof c?b-=2:(c=b>1&&"function"==typeof d?(--b,
  d):y,d=y),a.length=b,Hd(a,c,d)}),ah=me(function(a,b){return rb(a,Cb(b))}),bh=ic(function(a,b,c){Wf.call(a,c)?++a[c]:a[c]=1}),ch=rc(Ig),dh=rc(Jg,!0),eh=vc(bb,Ig),fh=vc(eb,Jg),gh=ic(function(a,b,c){Wf.call(a,c)?a[c].push(b):a[c]=[b]}),hh=ic(function(a,b,c){a[c]=b}),ih=me(function(a,b,c){var d=-1,e="function"==typeof b,f=Xc(b),g=Uc(a)?Hf(a.length):[];return Ig(a,function(a){var h=e?b:f&&null!=a?a[b]:null;g[++d]=h?h.apply(a,c):Tc(a,b,c)}),g}),jh=ic(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),kh=Bc(jb,Ig),lh=Bc(kb,Jg),mh=me(function(a,b){if(null==a)return[];var c=b[2];return c&&Wc(b[0],b[1],c)&&(b.length=1),Yb(a,Cb(b),[])}),nh=tg||function(){return(new If).getTime()},oh=me(function(a,b,c){var d=A;if(c.length){var e=s(c,oh.placeholder);d|=F}return Gc(a,d,b,c,e)}),ph=me(function(a,b){b=b.length?Cb(b):Qe(a);for(var c=-1,d=b.length;++c<d;){var e=b[c];a[e]=Gc(a[e],A,a)}return a}),qh=me(function(a,b,c){var d=A|B;if(c.length){var e=s(c,qh.placeholder);d|=F}return Gc(b,d,a,c,e)}),rh=pc(D),sh=pc(E),th=me(function(a,b){return vb(a,1,b)}),uh=me(function(a,b,c){return vb(a,b,c)}),vh=uc(),wh=uc(!0),xh=Ac(F),yh=Ac(G),zh=me(function(a,b){return Gc(a,I,null,null,null,Cb(b))}),Ah=og||function(a){return q(a)&&Zc(a.length)&&Yf.call(a)==T};Gg.dom||(xe=function(a){return!!a&&1===a.nodeType&&q(a)&&!Dh(a)});var Bh=ug||function(a){return"number"==typeof a&&pg(a)},Ch=g(/x/)||kg&&!g(kg)?function(a){return Yf.call(a)==X}:g,Dh=eg?function(a){if(!a||Yf.call(a)!=$)return!1;var b=Oc(a,"valueOf"),c=b&&(c=eg(b))&&eg(c);return c?a==c||eg(a)==c:dd(a)}:dd,Eh=jc(function(a,b,c){return c?pb(a,b,c):qb(a,b)}),Fh=me(function(a){var b=a[0];return null==b?b:(a.push(nb),Eh.apply(y,a))}),Gh=tc(Eb),Hh=tc(Fb),Ih=wc(Kg),Jh=wc(Lg),Kh=xc(Eb),Lh=xc(Fb),Mh=qg?function(a){var b=null==a?null:a.constructor;return"function"==typeof b&&b.prototype===a||"function"!=typeof a&&Uc(a)?ed(a):Be(a)?qg(a):[]}:ed,Nh=yc(!0),Oh=yc(),Ph=jc(Ob),Qh=me(function(a,b){if(null==a)return{};if("function"!=typeof b[0]){var b=ib(Cb(b),Pf);return ad(a,wb(Ue(a),b))}var c=ec(b[0],b[1],3);return bd(a,function(a,b,d){return!c(a,b,d)})}),Rh=me(function(a,b){return null==a?{}:"function"==typeof b[0]?bd(a,ec(b[0],b[1],3)):ad(a,Cb(b))}),Sh=nc(function(a,b,c){return b=b.toLowerCase(),a+(c?b.charAt(0).toUpperCase()+b.slice(1):b)}),Th=nc(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),Uh=zc(),Vh=zc(!0);8!=vg(Na+"08")&&(hf=function(a,b,c){return(c?Wc(a,b,c):null==b)?b=0:b&&(b=+b),a=mf(a),vg(a,b||(Ga.test(a)?16:10))});var Wh=nc(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),Xh=nc(function(a,b,c){return a+(c?" ":"")+(b.charAt(0).toUpperCase()+b.slice(1))}),Yh=me(function(a,b){try{return a.apply(y,b)}catch(c){return Ae(c)?c:new Jf(c)}}),Zh=me(function(a,b){return function(c){return Tc(c,a,b)}}),$h=me(function(a,b){return function(c){return Tc(a,c,b)}}),_h=qc(se,xg),ai=qc(Le,yg);return b.prototype=c.prototype,r.prototype=Hg(c.prototype),r.prototype.constructor=r,Y.prototype=Hg(c.prototype),Y.prototype.constructor=Y,Ua.prototype["delete"]=Va,Ua.prototype.get=Wa,Ua.prototype.has=Xa,Ua.prototype.set=Ya,Za.prototype.push=_a,je.Cache=Ua,b.after=fe,b.ary=ge,b.assign=Eh,b.at=ah,b.before=he,b.bind=oh,b.bindAll=ph,b.bindKey=qh,b.callback=sf,b.chain=Kd,b.chunk=jd,b.compact=kd,b.constant=tf,b.countBy=bh,b.create=Pe,b.curry=rh,b.curryRight=sh,b.debounce=ie,b.defaults=Fh,b.defer=th,b.delay=uh,b.difference=Rg,b.drop=ld,b.dropRight=md,b.dropRightWhile=nd,b.dropWhile=od,b.fill=pd,b.filter=Ud,b.flatten=rd,b.flattenDeep=sd,b.flow=vh,b.flowRight=wh,b.forEach=eh,b.forEachRight=fh,b.forIn=Ih,b.forInRight=Jh,b.forOwn=Kh,b.forOwnRight=Lh,b.functions=Qe,b.groupBy=gh,b.indexBy=hh,b.initial=ud,b.intersection=Ug,b.invert=Te,b.invoke=ih,b.keys=Mh,b.keysIn=Ue,b.map=Xd,b.mapKeys=Nh,b.mapValues=Oh,b.matches=vf,b.matchesProperty=wf,b.memoize=je,b.merge=Ph,b.method=Zh,b.methodOf=$h,b.mixin=xf,b.negate=ke,b.omit=Qh,b.once=le,b.pairs=Ve,b.partial=xh,b.partialRight=yh,b.partition=jh,b.pick=Rh,b.pluck=Yd,b.property=Af,b.propertyOf=Bf,b.pull=xd,b.pullAt=Vg,b.range=Cf,b.rearg=zh,b.reject=Zd,b.remove=yd,b.rest=zd,b.restParam=me,b.set=Xe,b.shuffle=_d,b.slice=Ad,b.sortBy=ce,b.sortByAll=mh,b.sortByOrder=de,b.spread=ne,b.take=Bd,b.takeRight=Cd,b.takeRightWhile=Dd,b.takeWhile=Ed,b.tap=Ld,b.throttle=oe,b.thru=Md,b.times=Df,b.toArray=Ne,b.toPlainObject=Oe,b.transform=Ye,b.union=Yg,b.uniq=Fd,b.unzip=Gd,b.unzipWith=Hd,b.values=Ze,b.valuesIn=$e,b.where=ee,b.without=Zg,b.wrap=pe,b.xor=Id,b.zip=$g,b.zipObject=Jd,b.zipWith=_g,b.backflow=wh,b.collect=Xd,b.compose=wh,b.each=eh,b.eachRight=fh,b.extend=Eh,b.iteratee=sf,b.methods=Qe,b.object=Jd,b.select=Ud,b.tail=zd,b.unique=Fd,xf(b,b),b.add=Ff,b.attempt=Yh,b.camelCase=Sh,b.capitalize=bf,b.clone=qe,b.cloneDeep=re,b.deburr=cf,b.endsWith=df,b.escape=ef,b.escapeRegExp=ff,b.every=Td,b.find=ch,b.findIndex=Sg,b.findKey=Gh,b.findLast=dh,b.findLastIndex=Tg,b.findLastKey=Hh,b.findWhere=Vd,b.first=qd,b.get=Re,b.gt=se,b.gte=te,b.has=Se,b.identity=uf,b.includes=Wd,b.indexOf=td,b.inRange=_e,b.isArguments=ue,b.isArray=Ah,b.isBoolean=ve,b.isDate=we,b.isElement=xe,b.isEmpty=ye,b.isEqual=ze,b.isError=Ae,b.isFinite=Bh,b.isFunction=Ch,b.isMatch=Ce,b.isNaN=De,b.isNative=Ee,b.isNull=Fe,b.isNumber=Ge,b.isObject=Be,b.isPlainObject=Dh,b.isRegExp=He,b.isString=Ie,b.isTypedArray=Je,b.isUndefined=Ke,b.kebabCase=Th,b.last=vd,b.lastIndexOf=wd,b.lt=Le,b.lte=Me,b.max=_h,b.min=ai,b.noConflict=yf,b.noop=zf,b.now=nh,b.pad=gf,b.padLeft=Uh,b.padRight=Vh,b.parseInt=hf,b.random=af,b.reduce=kh,b.reduceRight=lh,b.repeat=jf,b.result=We,b.runInContext=x,b.size=ae,b.snakeCase=Wh,b.some=be,b.sortedIndex=Wg,b.sortedLastIndex=Xg,b.startCase=Xh,b.startsWith=kf,b.sum=Gf,b.template=lf,b.trim=mf,b.trimLeft=nf,b.trimRight=of,b.trunc=pf,b.unescape=qf,b.uniqueId=Ef,b.words=rf,b.all=Td,b.any=be,b.contains=Wd,b.eq=ze,b.detect=ch,b.foldl=kh,b.foldr=lh,b.head=qd,b.include=Wd,b.inject=kh,xf(b,function(){var a={};return Eb(b,function(c,d){b.prototype[d]||(a[d]=c)}),a}(),!1),b.sample=$d,b.prototype.sample=function(a){return this.__chain__||null!=a?this.thru(function(b){return $d(b,a)}):$d(this.value())},b.VERSION=z,bb(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){b[a].placeholder=b}),bb(["dropWhile","filter","map","takeWhile"],function(a,b){var c=b!=P,d=b==N;Y.prototype[a]=function(a,e){var f=this.__filtered__,g=f&&d?new Y(this):this.clone(),h=g.__iteratees__||(g.__iteratees__=[]);return h.push({done:!1,count:0,index:0,iteratee:Kc(a,e,1),limit:-1,type:b}),g.__filtered__=f||c,g}}),bb(["drop","take"],function(a,b){var c=a+"While";Y.prototype[a]=function(c){var d=this.__filtered__,e=d&&!b?this.dropWhile():this.clone();if(c=null==c?1:rg(dg(c)||0,0),d)b?e.__takeCount__=sg(e.__takeCount__,c):vd(e.__iteratees__).limit=c;else{var f=e.__views__||(e.__views__=[]);f.push({size:c,type:a+(e.__dir__<0?"Right":"")})}return e},Y.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()},Y.prototype[a+"RightWhile"]=function(a,b){return this.reverse()[c](a,b).reverse()}}),bb(["first","last"],function(a,b){var c="take"+(b?"Right":"");Y.prototype[a]=function(){return this[c](1).value()[0]}}),bb(["initial","rest"],function(a,b){var c="drop"+(b?"":"Right");Y.prototype[a]=function(){return this[c](1)}}),bb(["pluck","where"],function(a,b){var c=b?"filter":"map",d=b?Mb:Af;Y.prototype[a]=function(a){return this[c](d(a))}}),Y.prototype.compact=function(){return this.filter(uf)},Y.prototype.reject=function(a,b){return a=Kc(a,b,1),this.filter(function(b){return!a(b)})},Y.prototype.slice=function(a,b){a=null==a?0:+a||0;var c=this;return 0>a?c=this.takeRight(-a):a&&(c=this.drop(a)),b!==y&&(b=+b||0,c=0>b?c.dropRight(-b):c.take(b-a)),c},Y.prototype.toArray=function(){return this.drop(0)},Eb(Y.prototype,function(a,c){var d=b[c];if(d){var e=/^(?:filter|map|reject)|While$/.test(c),f=/^(?:first|last)$/.test(c);b.prototype[c]=function(){var c=arguments,g=this.__chain__,h=this.__wrapped__,i=!!this.__actions__.length,j=h instanceof Y,k=c[0],l=j||Ah(h);l&&e&&"function"==typeof k&&1!=k.length&&(j=l=!1);var m=j&&!i;if(f&&!g)return m?a.call(h):d.call(b,this.value());var n=function(a){var e=[a];return gg.apply(e,c),d.apply(b,e)};if(l){var o=m?h:new Y(this),p=a.apply(o,c);if(!f&&(i||p.__actions__)){var q=p.__actions__||(p.__actions__=[]);q.push({func:Md,args:[n],thisArg:b})}return new r(p,g)}return this.thru(n)}}}),bb(["concat","join","pop","push","replace","shift","sort","splice","split","unshift"],function(a){var c=(/^(?:replace|split)$/.test(a)?Tf:Rf)[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",e=/^(?:join|pop|replace|shift)$/.test(a);b.prototype[a]=function(){var a=arguments;return e&&!this.__chain__?c.apply(this.value(),a):this[d](function(b){return c.apply(b,a)})}}),Eb(Y.prototype,function(a,c){var d=b[c];if(d){var e=d.name,f=Fg[e]||(Fg[e]=[]);f.push({name:c,func:d})}}),Fg[Cc(null,B).name]=[{name:"wrapper",func:null}],Y.prototype.clone=aa,Y.prototype.reverse=ca,Y.prototype.value=Ta,b.prototype.chain=Nd,b.prototype.commit=Od,b.prototype.plant=Pd,b.prototype.reverse=Qd,b.prototype.toString=Rd,b.prototype.run=b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=Sd,b.prototype.collect=b.prototype.map,b.prototype.head=b.prototype.first,b.prototype.select=b.prototype.filter,b.prototype.tail=b.prototype.rest,b}var y,z="3.9.3",A=1,B=2,C=4,D=8,E=16,F=32,G=64,H=128,I=256,J=30,K="...",L=150,M=16,N=0,O=1,P=2,Q="Expected a function",R="__lodash_placeholder__",S="[object Arguments]",T="[object Array]",U="[object Boolean]",V="[object Date]",W="[object Error]",X="[object Function]",Y="[object Map]",Z="[object Number]",$="[object Object]",_="[object RegExp]",aa="[object Set]",ba="[object String]",ca="[object WeakMap]",da="[object ArrayBuffer]",ea="[object Float32Array]",fa="[object Float64Array]",ga="[object Int8Array]",ha="[object Int16Array]",ia="[object Int32Array]",ja="[object Uint8Array]",ka="[object Uint8ClampedArray]",la="[object Uint16Array]",ma="[object Uint32Array]",na=/\b__p \+= '';/g,oa=/\b(__p \+=) '' \+/g,pa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qa=/&(?:amp|lt|gt|quot|#39|#96);/g,ra=/[&<>"'`]/g,sa=RegExp(qa.source),ta=RegExp(ra.source),ua=/<%-([\s\S]+?)%>/g,va=/<%([\s\S]+?)%>/g,wa=/<%=([\s\S]+?)%>/g,xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,ya=/^\w*$/,za=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Aa=/[.*+?^${}()|[\]\/\\]/g,Ba=RegExp(Aa.source),Ca=/[\u0300-\u036f\ufe20-\ufe23]/g,Da=/\\(\\)?/g,Ea=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fa=/\w*$/,Ga=/^0[xX]/,Ha=/^\[object .+?Constructor\]$/,Ia=/^\d+$/,Ja=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Ka=/($^)/,La=/['\n\r\u2028\u2029\\]/g,Ma=function(){var a="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(a+"+(?="+a+b+")|"+a+"?"+b+"|"+a+"+|[0-9]+","g")}(),Na=" 	\f \ufeff\n\r\u2028\u2029 ᠎             　",Oa=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","document","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","window"],Pa=-1,Qa={};Qa[ea]=Qa[fa]=Qa[ga]=Qa[ha]=Qa[ia]=Qa[ja]=Qa[ka]=Qa[la]=Qa[ma]=!0,Qa[S]=Qa[T]=Qa[da]=Qa[U]=Qa[V]=Qa[W]=Qa[X]=Qa[Y]=Qa[Z]=Qa[$]=Qa[_]=Qa[aa]=Qa[ba]=Qa[ca]=!1;var Ra={};Ra[S]=Ra[T]=Ra[da]=Ra[U]=Ra[V]=Ra[ea]=Ra[fa]=Ra[ga]=Ra[ha]=Ra[ia]=Ra[Z]=Ra[$]=Ra[_]=Ra[ba]=Ra[ja]=Ra[ka]=Ra[la]=Ra[ma]=!0,Ra[W]=Ra[X]=Ra[Y]=Ra[aa]=Ra[ca]=!1;var Sa={leading:!1,maxWait:0,trailing:!1},Ta={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ua={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Va={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Wa={"function":!0,object:!0},Xa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ya=Wa[typeof c]&&c&&!c.nodeType&&c,Za=Wa[typeof b]&&b&&!b.nodeType&&b,$a=Ya&&Za&&"object"==typeof a&&a&&a.Object&&a,_a=Wa[typeof self]&&self&&self.Object&&self,ab=Wa[typeof window]&&window&&window.Object&&window,bb=Za&&Za.exports===Ya&&Ya,cb=$a||ab!==(this&&this.window)&&ab||_a||this,db=x();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(cb._=db,define(function(){return db})):Ya&&Za?bb?(Za.exports=db)._=db:Ya._=db:cb._=db}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(a,b,c){c.MemoryDb=a("./lib/MemoryDb"),c.LocalStorageDb=a("./lib/LocalStorageDb"),c.IndexedDb=a("./lib/IndexedDb"),c.WebSQLDb=a("./lib/WebSQLDb"),c.RemoteDb=a("./lib/RemoteDb"),c.HybridDb=a("./lib/HybridDb"),c.utils=a("./lib/utils")},{"./lib/HybridDb":9,"./lib/IndexedDb":10,"./lib/LocalStorageDb":11,"./lib/MemoryDb":12,"./lib/RemoteDb":13,"./lib/WebSQLDb":14,"./lib/utils":17}],8:[function(a,b,c){var d=a("lodash");EJSON={};var e={};EJSON.addType=function(a,b){if(d.has(e,a))throw new Error("Type "+a+" already present");e[a]=b};var f=[{matchJSONValue:function(a){return d.has(a,"$date")&&1===d.size(a)},matchObject:function(a){return a instanceof Date},toJSONValue:function(a){return{$date:a.getTime()}},fromJSONValue:function(a){return new Date(a.$date)}},{matchJSONValue:function(a){return d.has(a,"$binary")&&1===d.size(a)},matchObject:function(a){return"undefined"!=typeof Uint8Array&&a instanceof Uint8Array||a&&d.has(a,"$Uint8ArrayPolyfill")},toJSONValue:function(a){return{$binary:EJSON._base64Encode(a)}},fromJSONValue:function(a){return EJSON._base64Decode(a.$binary)}},{matchJSONValue:function(a){return d.has(a,"$escape")&&1===d.size(a)},matchObject:function(a){return d.isEmpty(a)||d.size(a)>2?!1:d.any(f,function(b){return b.matchJSONValue(a)})},toJSONValue:function(a){var b={};return d.each(a,function(a,c){b[c]=EJSON.toJSONValue(a)}),{$escape:b}},fromJSONValue:function(a){var b={};return d.each(a.$escape,function(a,c){b[c]=EJSON.fromJSONValue(a)}),b}},{matchJSONValue:function(a){return d.has(a,"$type")&&d.has(a,"$value")&&2===d.size(a)},matchObject:function(a){return EJSON._isCustomType(a)},toJSONValue:function(a){return{$type:a.typeName(),$value:a.toJSONValue()}},fromJSONValue:function(a){var b=a.$type,c=e[b];return c(a.$value)}}];EJSON._isCustomType=function(a){return a&&"function"==typeof a.toJSONValue&&"function"==typeof a.typeName&&d.has(e,a.typeName())};var g=EJSON._adjustTypesToJSONValue=function(a){if(null===a)return null;var b=h(a);return void 0!==b?b:(d.each(a,function(b,c){if("object"==typeof b||void 0===b){var d=h(b);return d?void(a[c]=d):void g(b)}}),a)},h=function(a){for(var b=0;b<f.length;b++){var c=f[b];if(c.matchObject(a))return c.toJSONValue(a)}return void 0};EJSON.toJSONValue=function(a){var b=h(a);return void 0!==b?b:("object"==typeof a&&(a=EJSON.clone(a),g(a)),a)};var i=EJSON._adjustTypesFromJSONValue=function(a){if(null===a)return null;var b=j(a);return b!==a?b:(d.each(a,function(b,c){if("object"==typeof b){var d=j(b);if(b!==d)return void(a[c]=d);i(b)}}),a)},j=function(a){if("object"==typeof a&&null!==a&&d.size(a)<=2&&d.all(a,function(a,b){return"string"==typeof b&&"$"===b.substr(0,1)}))for(var b=0;b<f.length;b++){var c=f[b];if(c.matchJSONValue(a))return c.fromJSONValue(a)}return a};EJSON.fromJSONValue=function(a){var b=j(a);return b===a&&"object"==typeof a?(a=EJSON.clone(a),i(a),a):b},EJSON.stringify=function(a){return JSON.stringify(EJSON.toJSONValue(a))},EJSON.parse=function(a){return EJSON.fromJSONValue(JSON.parse(a))},EJSON.isBinary=function(a){return"undefined"!=typeof Uint8Array&&a instanceof Uint8Array||a&&a.$Uint8ArrayPolyfill},EJSON.equals=function(a,b,c){var e,f=!(!c||!c.keyOrderSensitive);if(a===b)return!0;if(!a||!b)return!1;if("object"!=typeof a||"object"!=typeof b)return!1;if(a instanceof Date&&b instanceof Date)return a.valueOf()===b.valueOf();if(EJSON.isBinary(a)&&EJSON.isBinary(b)){if(a.length!==b.length)return!1;for(e=0;e<a.length;e++)if(a[e]!==b[e])return!1;return!0}if("function"==typeof a.equals)return a.equals(b,c);if(a instanceof Array){if(!(b instanceof Array))return!1;if(a.length!==b.length)return!1;for(e=0;e<a.length;e++)if(!EJSON.equals(a[e],b[e],c))return!1;return!0}var g;if(f){var h=[];return d.each(b,function(a,b){h.push(b)}),e=0,g=d.all(a,function(a,d){return e>=h.length?!1:d!==h[e]?!1:EJSON.equals(a,b[h[e]],c)?(e++,!0):!1}),g&&e===h.length}return e=0,g=d.all(a,function(a,f){return d.has(b,f)&&EJSON.equals(a,b[f],c)?(e++,!0):!1}),g&&d.size(b)===e},EJSON.clone=function(a){var b;if("object"!=typeof a)return a;if(null===a)return null;if(a instanceof Date)return new Date(a.getTime());if(EJSON.isBinary(a)){b=EJSON.newBinary(a.length);for(var c=0;c<a.length;c++)b[c]=a[c];return b}if(d.isArray(a)||d.isArguments(a)){for(b=[],c=0;c<a.length;c++)b[c]=EJSON.clone(a[c]);return b}return"function"==typeof a.clone?a.clone():(b={},d.each(a,function(a,c){b[c]=EJSON.clone(a)}),b)},b.exports=EJSON},{lodash:21}],9:[function(a,b,c){var d,e,f,g,h;h=a("lodash"),f=a("./utils").processFind,g=a("./utils"),b.exports=e=function(){function a(a,b){this.localDb=a,this.remoteDb=b,this.collections={}}return a.prototype.addCollection=function(a,b,c,e){var f,g;return h.isFunction(b)&&(g=[{},b,c],b=g[0],c=g[1],e=g[2]),f=new d(a,this.localDb[a],this.remoteDb[a],b),this[a]=f,this.collections[a]=f,null!=c?c():void 0},a.prototype.removeCollection=function(a,b,c){return delete this[a],delete this.collections[a],null!=b?b():void 0},a.prototype.upload=function(a,b){var c,d;return c=h.values(this.collections),(d=function(a,b,c){var e;return e=h.first(a),e?e.upload(function(){return d(h.rest(a),b,c)},function(a){return c(a)}):b()})(c,a,b)},a}(),d=function(){function a(a,b,c,d){this.name=a,this.localCol=b,this.remoteCol=c,this.options=d||{},h.defaults(this.options,{cacheFind:!0,cacheFindOne:!0,interim:!0,useLocalOnRemoteError:!0,shortcut:!1})}return a.prototype.find=function(a,b){return null==b&&(b={}),{fetch:function(c){return function(d,e){return c._findFetch(a,b,d,e)}}(this)}},a.prototype.findOne=function(a,b,c,d){var e,f;return null==b&&(b={}),h.isFunction(b)&&(f=[{},b,c],b=f[0],c=f[1],d=f[2]),h.defaults(b,this.options),e=function(e){return function(f){var g;return g=h.cloneDeep(b),g.interim=!1,g.cacheFind=b.cacheFindOne,g.useLocalOnRemoteError=!0,a._id?g.limit=1:delete g.limit,e.find(a,g).fetch(function(a){return a.length>0?h.isEqual(f,a[0])?void 0:c(a[0]):c(null)},d)}}(this),b.interim||b.shortcut?this.localCol.findOne(a,b,function(a){return a&&(c(h.cloneDeep(a)),b.shortcut)?void 0:e(a)},d):e()},a.prototype._findFetch=function(a,b,c,d){var e,g;return h.defaults(b,this.options),g=function(e){return function(g){var i,j,k;return j=h.cloneDeep(b),b.cacheFind&&delete j.fields,k=function(i){var j,k;return b.cacheFind?(j=function(){var f;return f=function(a){return h.isEqual(g,a)?void 0:c(a)},e.localCol.find(a,b).fetch(f,d)},e.localCol.cache(i,a,b,j,d)):(k=i,e.localCol.pendingRemoves(function(j){var l;return j.length>0&&(l=h.object(h.map(j,function(a){return[a,a]})),k=h.filter(i,function(a){return!h.has(l,a._id)})),e.localCol.pendingUpserts(function(d){var e;return d.length>0&&(e=h.object(h.map(d,function(a){return a.doc._id}),h.map(d,function(a){return a.doc._id})),k=h.filter(k,function(a){return!h.has(e,a._id)}),k=k.concat(h.pluck(d,"doc")),k=f(k,a,b)),h.isEqual(g,k)?void 0:c(k)},d)},d))},i=function(f){if(!b.interim){if(b.useLocalOnRemoteError)return e.localCol.find(a,b).fetch(c,d);if(d)return d(f)}},e.remoteCol.find(a,j).fetch(k,i)}}(this),b.interim?(e=function(a){return c(a),g(a)},this.localCol.find(a,b).fetch(e,d)):g()},a.prototype.upsert=function(a,b,c,d){return this.localCol.upsert(a,b,function(b){return null!=c?c(a):void 0},d)},a.prototype.remove=function(a,b,c){return this.localCol.remove(a,function(){return null!=b?b():void 0},c)},a.prototype.upload=function(a,b){var c,d;return d=function(a){return function(b,c,e){var f;return f=h.first(b),f?a.remoteCol.upsert(f.doc,f.base,function(g){return a.localCol.resolveUpserts([f],function(){return a.localCol.cacheOne(g,function(){return d(h.rest(b),c,e)},e)},e)},function(g){return 410===g.status||403===g.status?a.localCol.remove(f.doc._id,function(){return a.localCol.resolveRemove(f.doc._id,function(){return 410===g.status?d(h.rest(b),c,e):e(g)},e)},e):e(g)}):c()}}(this),c=function(a){return function(b,d,e){var f;return f=h.first(b),f?a.remoteCol.remove(f,function(){return a.localCol.resolveRemove(f,function(){return c(h.rest(b),d,e)},e)},function(g){return 410===g.status||403===g.status?a.localCol.resolveRemove(f,function(){return 410===g.status?c(h.rest(b),d,e):e(g)},e):e(g)},e):d()}}(this),this.localCol.pendingUpserts(function(e){return function(f){return d(f,function(){return e.localCol.pendingRemoves(function(d){return c(d,a,b)},b)},b)}}(this),b)},a}()},{"./utils":17,lodash:21}],10:[function(a,b,c){var d,e,f,g,h,i,j,k;k=a("lodash"),g=a("async"),e=a("idb-wrapper"),j=a("./utils"),i=a("./utils").processFind,h=a("./selector").compileSort,b.exports=f=function(){function a(a,b,c){var d;this.collections={};try{this.store=new e({dbVersion:1,storeName:"minimongo_"+a.namespace,keyPath:["col","doc._id"],autoIncrement:!1,onStoreReady:function(a){return function(){return b?b(a):void 0}}(this),onError:c,indexes:[{name:"col",keyPath:"col",unique:!1,multiEntry:!1},{name:"col-state",keyPath:["col","state"],unique:!1,multiEntry:!1}]})}catch(f){return d=f,void(c&&c(d))}}return a.prototype.addCollection=function(a,b,c){var e;return e=new d(a,this.store),this[a]=e,this.collections[a]=e,b?b():void 0},a.prototype.removeCollection=function(a,b,c){return delete this[a],delete this.collections[a],this.store.query(function(a){return function(d){var e;return e=k.map(d,function(a){return[a.col,a.doc._id]}),e.length>0?a.store.removeBatch(e,function(){return null!=b?b():void 0},c):null!=b?b():void 0}}(this),{index:"col",keyRange:this.store.makeKeyRange({only:a}),onError:c})},a}(),d=function(){function a(a,b){this.name=a,this.store=b}return a.prototype.find=function(a,b){return{fetch:function(c){return function(d,e){return c._findFetch(a,b,d,e)}}(this)}},a.prototype.findOne=function(a,b,c,d){var e;return k.isFunction(b)&&(e=[{},b,c],b=e[0],c=e[1],d=e[2]),this.find(a,b).fetch(function(a){return null!=c?c(a.length>0?a[0]:null):void 0},d)},a.prototype._findFetch=function(a,b,c,d){return this.store.query(function(d){return d=k.filter(d,function(a){return"removed"!==a.state}),null!=c?c(i(k.pluck(d,"doc"),a,b)):void 0},{index:"col",keyRange:this.store.makeKeyRange({only:this.name}),onError:d})},a.prototype.upsert=function(a,b,c,d){var e,f,g;return g=j.regularizeUpsert(a,b,c,d),e=g[0],c=g[1],d=g[2],f=k.map(e,function(a){return function(b){return[a.name,b.doc._id]}}(this)),this.store.getBatch(f,function(b){return function(f){var g;return g=k.map(e,function(a,c){var d;return d=void 0!==a.base?a.base:f[c]&&f[c].doc&&"cached"===f[c].state?f[c].doc:f[c]&&f[c].doc&&"upserted"===f[c].state?f[c].base:null,{col:b.name,state:"upserted",doc:a.doc,base:d}}),b.store.putBatch(g,function(){return c?c(a):void 0},d)}}(this),d)},a.prototype.remove=function(a,b,c){return this.store.get([this.name,a],function(d){return function(e){return null==e&&(e={col:d.name,doc:{_id:a}}),e.state="removed",d.store.put(e,function(){return b?b(a):void 0},c)}}(this))},a.prototype.cache=function(a,b,c,d,e){var f,g,i;return i=function(f){return function(){var g,i;return g=k.object(k.pluck(a,"_id"),a),c.sort&&(i=h(c.sort)),f.find(b,c).fetch(function(b){var h,j;return j=[],h=k.map(b,function(a){return[f.name,a._id]}),0===h.length?void(null!=d&&d()):f.store.getBatch(h,function(h){var l,m,n,o,p;for(l=o=0,p=h.length;p>=0?p>o:o>p;l=p>=0?++o:--o)if(m=h[l],n=b[l],!g[n._id]&&m&&"cached"===m.state){if(c.sort&&c.limit&&a.length===c.limit&&i(n,k.last(a))>=0)continue;j.push([f.name,n._id])}return j.length>0?f.store.removeBatch(j,function(){return null!=d?d():void 0},e):null!=d?d():void 0},e)},e)}}(this),0===a.length?i():(f=k.map(a,function(a){return function(b){return[a.name,b._id]}}(this)),g=[],this.store.getBatch(f,function(b){return function(c){var d,f,h,j,k;for(f=j=0,k=c.length;k>=0?k>j:j>k;f=k>=0?++j:--j)h=c[f],d=a[f],(null==h||"cached"===h.state)&&(!h||!d._rev||!h.doc._rev||d._rev>=h.doc._rev)&&g.push({col:b.name,state:"cached",doc:d});return g.length>0?b.store.putBatch(g,i,e):i()}}(this),e))},a.prototype.pendingUpserts=function(a,b){return this.store.query(function(b){var c;return c=k.map(b,function(a){return{doc:a.doc,base:a.base||null}}),null!=a?a(c):void 0},{index:"col-state",keyRange:this.store.makeKeyRange({only:[this.name,"upserted"]}),onError:b})},a.prototype.pendingRemoves=function(a,b){return this.store.query(function(b){return null!=a?a(k.pluck(k.pluck(b,"doc"),"_id")):void 0},{index:"col-state",keyRange:this.store.makeKeyRange({only:[this.name,"removed"]}),onError:b})},a.prototype.resolveUpserts=function(a,b,c){var d;return d=k.map(a,function(a){return function(b){return[a.name,b.doc._id]}}(this)),this.store.getBatch(d,function(d){return function(e){var f,g,h,i,j;for(g=[],f=i=0,j=a.length;j>=0?j>i:i>j;f=j>=0?++i:--i)h=e[f],h&&"upserted"===h.state&&(k.isEqual(h.doc,a[f].doc)?(h.state="cached",g.push(h)):(h.base=a[f].doc,g.push(h)));return g.length>0?d.store.putBatch(g,function(){return b?b():void 0},c):b?b():void 0}}(this),c)},a.prototype.resolveRemove=function(a,b,c){return this.store.get([this.name,a],function(d){return function(e){return"removed"===e.state?d.store.remove([d.name,a],function(){return null!=b?b():void 0},c):void 0}}(this))},a.prototype.seed=function(a,b,c){return this.store.get([this.name,a._id],function(d){return function(e){return null==e?(e={col:d.name,state:"cached",doc:a},d.store.put(e,function(){return null!=b?b():void 0},c)):null!=b?b():void 0}}(this))},a.prototype.cacheOne=function(a,b,c){return this.store.get([this.name,a._id],function(d){return function(e){return e&&a._rev&&e.doc._rev&&a._rev<e.doc._rev?void(null!=b&&b()):(null==e&&(e={col:d.name,state:"cached",doc:a}),"cached"===e.state?(e.doc=a,d.store.put(e,function(){return null!=b?b():void 0},c)):null!=b?b():void 0)}}(this))},a}()},{"./selector":16,"./utils":17,async:18,"idb-wrapper":20,lodash:21}],11:[function(a,b,c){var d,e,f,g,h,i;i=a("lodash"),h=a("./utils"),g=a("./utils").processFind,f=a("./selector").compileSort,b.exports=e=function(){function a(a,b){this.collections={},a&&a.namespace&&window.localStorage&&(this.namespace=a.namespace),b&&b(this)}return a.prototype.addCollection=function(a,b,c){var e,f;return this.namespace&&(f=this.namespace+"."+a),e=new d(a,f),this[a]=e,this.collections[a]=e,null!=b?b():void 0},a.prototype.removeCollection=function(a,b,c){var d,e,f,g,h,i,j;if(this.namespace&&window.localStorage){for(f=[],d=g=0,j=window.localStorage.length;j>=0?j>g:g>j;d=j>=0?++g:--g)f.push(window.localStorage.key(d));for(h=0,i=f.length;i>h;h++)e=f[h],e.substring(0,this.namespace.length+1)===this.namespace+"."&&window.localStorage.removeItem(e)}return delete this[a],delete this.collections[a],null!=b?b():void 0},a}(),d=function(){function a(a,b){this.name=a,this.namespace=b,this.items={},this.upserts={},this.removes={},window.localStorage&&null!=b&&this.loadStorage()}return a.prototype.loadStorage=function(){var a,b,c,d,e,f,g,h,j,k;for(this.itemNamespace=this.namespace+"_",b=g=0,k=window.localStorage.length;k>=0?k>g:g>k;b=k>=0?++g:--g)d=window.localStorage.key(b),d.substring(0,this.itemNamespace.length)===this.itemNamespace&&(c=JSON.parse(window.localStorage[d]),this.items[c._id]=c);for(f=window.localStorage[this.namespace+"upserts"]?JSON.parse(window.localStorage[this.namespace+"upserts"]):[],h=0,j=f.length;j>h;h++)d=f[h],this.upserts[d]={doc:this.items[d]},a=window.localStorage[this.namespace+"upsertbase_"+d]?JSON.parse(window.localStorage[this.namespace+"upsertbase_"+d]):null,this.upserts[d].base=a;return e=window.localStorage[this.namespace+"removes"]?JSON.parse(window.localStorage[this.namespace+"removes"]):[],this.removes=i.object(i.pluck(e,"_id"),e)},a.prototype.find=function(a,b){return{fetch:function(c){return function(d,e){return c._findFetch(a,b,d,e)}}(this)}},a.prototype.findOne=function(a,b,c,d){var e;return i.isFunction(b)&&(e=[{},b,c],b=e[0],c=e[1],d=e[2]),this.find(a,b).fetch(function(a){return null!=c?c(a.length>0?a[0]:null):void 0},d)},a.prototype._findFetch=function(a,b,c,d){return null!=c?c(g(this.items,a,b)):void 0},a.prototype.upsert=function(a,b,c,d){var e,f,g,j,k;for(k=h.regularizeUpsert(a,b,c,d),f=k[0],c=k[1],d=k[2],g=0,j=f.length;j>g;g++)e=f[g],void 0===e.base&&(this.upserts[e.doc._id]?e.base=this.upserts[e.doc._id].base:e.base=this.items[e.doc._id]||null),e=i.cloneDeep(e),this._putItem(e.doc),this._putUpsert(e);return c?c(a):void 0},a.prototype.remove=function(a,b,c){return i.has(this.items,a)?(this._putRemove(this.items[a]),this._deleteItem(a),this._deleteUpsert(a)):this._putRemove({_id:a}),null!=b?b():void 0},a.prototype._putItem=function(a){return this.items[a._id]=a,this.namespace?window.localStorage[this.itemNamespace+a._id]=JSON.stringify(a):void 0},a.prototype._deleteItem=function(a){return delete this.items[a],this.namespace?window.localStorage.removeItem(this.itemNamespace+a):void 0},a.prototype._putUpsert=function(a){return this.upserts[a.doc._id]=a,this.namespace?(window.localStorage[this.namespace+"upserts"]=JSON.stringify(i.keys(this.upserts)),window.localStorage[this.namespace+"upsertbase_"+a.doc._id]=JSON.stringify(a.base)):void 0},a.prototype._deleteUpsert=function(a){return delete this.upserts[a],this.namespace?window.localStorage[this.namespace+"upserts"]=JSON.stringify(i.keys(this.upserts)):void 0},a.prototype._putRemove=function(a){return this.removes[a._id]=a,this.namespace?window.localStorage[this.namespace+"removes"]=JSON.stringify(i.values(this.removes)):void 0},a.prototype._deleteRemove=function(a){return delete this.removes[a],this.namespace?window.localStorage[this.namespace+"removes"]=JSON.stringify(i.values(this.removes)):void 0},a.prototype.cache=function(a,b,c,d,e){var g,h,j,k,l;for(k=0,l=a.length;l>k;k++)g=a[k],this.cacheOne(g);return h=i.object(i.pluck(a,"_id"),a),c.sort&&(j=f(c.sort)),this.find(b,c).fetch(function(b){return function(e){var f,g,k;for(g=0,k=e.length;k>g;g++)if(f=e[g],!h[f._id]&&!i.has(b.upserts,f._id)){if(c.sort&&c.limit&&a.length===c.limit&&j(f,i.last(a))>=0)continue;b._deleteItem(f._id)}return null!=d?d():void 0}}(this),e)},a.prototype.pendingUpserts=function(a){return a(i.values(this.upserts))},a.prototype.pendingRemoves=function(a){return a(i.pluck(this.removes,"_id"))},a.prototype.resolveUpserts=function(a,b){var c,d,e;for(d=0,e=a.length;e>d;d++)c=a[d],this.upserts[c.doc._id]&&(i.isEqual(c.doc,this.upserts[c.doc._id].doc)?this._deleteUpsert(c.doc._id):(this.upserts[c.doc._id].base=c.doc,this._putUpsert(this.upserts[c.doc._id])));return null!=b?b():void 0},a.prototype.resolveRemove=function(a,b){return this._deleteRemove(a),null!=b?b():void 0},a.prototype.seed=function(a,b){return i.has(this.items,a._id)||i.has(this.removes,a._id)||this._putItem(a),null!=b?b():void 0},a.prototype.cacheOne=function(a,b){var c;return i.has(this.upserts,a._id)||i.has(this.removes,a._id)||(c=this.items[a._id],(!c||!a._rev||!c._rev||a._rev>=c._rev)&&this._putItem(a)),null!=b?b():void 0},a}()},{"./selector":16,"./utils":17,lodash:21}],12:[function(a,b,c){var d,e,f,g,h,i;i=a("lodash"),h=a("./utils"),g=a("./utils").processFind,f=a("./selector").compileSort,b.exports=e=function(){function a(a,b){this.collections={},b&&b(this)}return a.prototype.addCollection=function(a,b,c){var e;return e=new d(a),this[a]=e,this.collections[a]=e,null!=b?b():void 0},a.prototype.removeCollection=function(a,b,c){return delete this[a],delete this.collections[a],null!=b?b():void 0;
  },a}(),d=function(){function a(a){this.name=a,this.items={},this.upserts={},this.removes={}}return a.prototype.find=function(a,b){return{fetch:function(c){return function(d,e){return c._findFetch(a,b,d,e)}}(this)}},a.prototype.findOne=function(a,b,c,d){var e;return i.isFunction(b)&&(e=[{},b,c],b=e[0],c=e[1],d=e[2]),this.find(a,b).fetch(function(a){return null!=c?c(a.length>0?a[0]:null):void 0},d)},a.prototype._findFetch=function(a,b,c,d){return null!=c?c(g(this.items,a,b)):void 0},a.prototype.upsert=function(a,b,c,d){var e,f,g,j,k;for(k=h.regularizeUpsert(a,b,c,d),f=k[0],c=k[1],d=k[2],g=0,j=f.length;j>g;g++)e=f[g],void 0===e.base&&(this.upserts[e.doc._id]?e.base=this.upserts[e.doc._id].base:e.base=this.items[e.doc._id]||null),e=i.cloneDeep(e),this.items[e.doc._id]=e.doc,this.upserts[e.doc._id]=e;return c?c(a):void 0},a.prototype.remove=function(a,b,c){return i.has(this.items,a)?(this.removes[a]=this.items[a],delete this.items[a],delete this.upserts[a]):this.removes[a]={_id:a},null!=b?b():void 0},a.prototype.cache=function(a,b,c,d,e){var g,h,j,k,l;for(k=0,l=a.length;l>k;k++)g=a[k],this.cacheOne(g);return h=i.object(i.pluck(a,"_id"),a),c.sort&&(j=f(c.sort)),this.find(b,c).fetch(function(b){return function(e){var f,g,k;for(g=0,k=e.length;k>g;g++)if(f=e[g],!h[f._id]&&!i.has(b.upserts,f._id)){if(c.sort&&c.limit&&a.length===c.limit&&j(f,i.last(a))>=0)continue;delete b.items[f._id]}return null!=d?d():void 0}}(this),e)},a.prototype.pendingUpserts=function(a){return a(i.values(this.upserts))},a.prototype.pendingRemoves=function(a){return a(i.pluck(this.removes,"_id"))},a.prototype.resolveUpserts=function(a,b){var c,d,e,f;for(e=0,f=a.length;f>e;e++)d=a[e],c=d.doc._id,this.upserts[c]&&(i.isEqual(d.doc,this.upserts[c].doc)?delete this.upserts[c]:this.upserts[c].base=d.doc);return null!=b?b():void 0},a.prototype.resolveRemove=function(a,b){return delete this.removes[a],null!=b?b():void 0},a.prototype.seed=function(a,b){return i.has(this.items,a._id)||i.has(this.removes,a._id)||(this.items[a._id]=a),null!=b?b():void 0},a.prototype.cacheOne=function(a,b){var c;return i.has(this.upserts,a._id)||i.has(this.removes,a._id)||(c=this.items[a._id],(!c||!a._rev||!c._rev||a._rev>=c._rev)&&(this.items[a._id]=a)),null!=b?b():void 0},a}()},{"./selector":16,"./utils":17,lodash:21}],13:[function(a,b,c){var d,e,f,g,h,i,j;j=a("lodash"),d=a("jquery"),g=a("async"),i=a("./utils"),h=a("./jQueryHttpClient"),b.exports=f=function(){function a(a,b,c){this.url=a,this.client=b,this.collections={},this.httpClient=c||h}return a.prototype.addCollection=function(a,b,c,d){var f,g,h;return null==b&&(b={}),j.isFunction(b)&&(h=[{},b,c],b=h[0],c=h[1],d=h[2]),g=b.url||this.url+a,f=new e(a,g,this.client,this.httpClient),this[a]=f,this.collections[a]=f,null!=c?c():void 0},a.prototype.removeCollection=function(a,b,c){return delete this[a],delete this.collections[a],null!=b?b():void 0},a}(),e=function(){function a(a,b,c,d){this.name=a,this.url=b,this.client=c,this.httpClient=d}return a.prototype.find=function(a,b){return null==b&&(b={}),{fetch:function(c){return function(d,e){var f;return f={},b.sort&&(f.sort=JSON.stringify(b.sort)),b.limit&&(f.limit=b.limit),b.skip&&(f.skip=b.skip),b.fields&&(f.fields=JSON.stringify(b.fields)),c.client&&(f.client=c.client),f.selector=JSON.stringify(a||{}),"undefined"!=typeof navigator&&null!==navigator&&-1!==navigator.userAgent.toLowerCase().indexOf("android 2.3")&&(f._=(new Date).getTime()),c.httpClient("GET",c.url,f,null,d,e)}}(this)}},a.prototype.findOne=function(a,b,c,d){var e,f;return null==b&&(b={}),j.isFunction(b)&&(f=[{},b,c],b=f[0],c=f[1],d=f[2]),e={},b.sort&&(e.sort=JSON.stringify(b.sort)),e.limit=1,this.client&&(e.client=this.client),e.selector=JSON.stringify(a||{}),"undefined"!=typeof navigator&&null!==navigator&&-1!==navigator.userAgent.toLowerCase().indexOf("android 2.3")&&(e._=(new Date).getTime()),this.httpClient("GET",this.url,e,null,function(a){return c(a&&a.length>0?a[0]:null)},d)},a.prototype.upsert=function(a,b,c,d){var e,f,h;if(h=i.regularizeUpsert(a,b,c,d),e=h[0],c=h[1],d=h[2],!this.client)throw new Error("Client required to upsert");return f=[],g.eachLimit(e,8,function(a){return function(b,c){var d;return b.doc._id||(b.doc._id=i.createUid()),d={client:a.client},"undefined"!=typeof navigator&&null!==navigator&&-1!==navigator.userAgent.toLowerCase().indexOf("android 2.3")&&(d._=(new Date).getTime()),b.base?a.httpClient("PATCH",a.url+"/"+b.doc._id,d,b,function(a){return f.push(a),c()},function(a){return c(a)}):a.httpClient("POST",a.url,d,b.doc,function(a){return f.push(a),c()},function(a){return c(a)})}}(this),function(b){if(b)return void(d&&d(b));if(j.isArray(a)){if(c)return c(f)}else if(c)return c(f[0])})},a.prototype.remove=function(a,b,c){var d;if(!this.client)throw new Error("Client required to remove");return d={client:this.client},this.httpClient("DELETE",this.url+"/"+a,d,null,b,function(a){return 410===a.status?b():c(a)})},a}()},{"./jQueryHttpClient":15,"./utils":17,async:18,jquery:5,lodash:21}],14:[function(a,b,c){var d,e,f,g,h,i,j,k;k=a("lodash"),f=a("async"),j=a("./utils"),i=a("./utils").processFind,g=a("./selector").compileSort,h=function(){},b.exports=e=function(){function a(a,b,c){var d,e,f,g;this.collections={};try{if(this.db=window.openDatabase("minimongo_"+a.namespace,"","Minimongo:"+a.namespace,5242880),!this.db)return c(new Error("Failed to create database"))}catch(i){return e=i,void(c&&c(e))}return f=function(a){return a.executeSql("CREATE TABLE docs (\n  col TEXT NOT NULL,\n  id TEXT NOT NULL,\n  state TEXT NOT NULL,\n  doc TEXT,\n  PRIMARY KEY (col, id));",[],h,c)},g=function(a){return a.executeSql("ALTER TABLE docs ADD COLUMN base TEXT;",[],h,c)},d=function(a){return function(){return"1.0"===a.db.version?a.db.changeVersion("1.0","2.0",g,c,function(){return b?b(a):void 0}):"2.0"!==a.db.version?c("Unknown db version "+a.db.version):b?b(a):void 0}}(this),""===this.db.version?this.db.changeVersion("","1.0",f,c,d):d(),this.db}return a.prototype.addCollection=function(a,b,c){var e;return e=new d(a,this.db),this[a]=e,this.collections[a]=e,b?b():void 0},a.prototype.removeCollection=function(a,b,c){return delete this[a],delete this.collections[a],this.db.transaction(function(d){return d.executeSql("DELETE FROM docs WHERE col = ?",[a],b,c)},c)},a}(),d=function(){function a(a,b){this.name=a,this.db=b}return a.prototype.find=function(a,b){return{fetch:function(c){return function(d,e){return c._findFetch(a,b,d,e)}}(this)}},a.prototype.findOne=function(a,b,c,d){var e;return k.isFunction(b)&&(e=[{},b,c],b=e[0],c=e[1],d=e[2]),this.find(a,b).fetch(function(a){return null!=c?c(a.length>0?a[0]:null):void 0},d)},a.prototype._findFetch=function(a,b,c,d){return d=d||function(){},this.db.readTransaction(function(e){return function(f){return f.executeSql("SELECT * FROM docs WHERE col = ?",[e.name],function(d,e){var f,g,h,j,k;for(f=[],g=j=0,k=e.rows.length;k>=0?k>j:j>k;g=k>=0?++j:--j)h=e.rows.item(g),"removed"!==h.state&&f.push(JSON.parse(h.doc));return null!=c?c(i(f,a,b)):void 0},d)}}(this),d)},a.prototype.upsert=function(a,b,c,d){var e,g;return g=j.regularizeUpsert(a,b,c,d),e=g[0],c=g[1],d=g[2],d=d||function(){},this.db.transaction(function(a){return function(c){var g;return g=k.map(e,function(a){return a.doc._id}),b={},f.eachSeries(g,function(d,e){return c.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[a.name,d],function(a,d){var f;return c=a,d.rows.length>0&&(f=d.rows.item(0),"upserted"===f.state?b[f.id]=f.base?JSON.parse(f.base):null:"cached"===f.state&&(b[f.id]=JSON.parse(f.doc))),e()})},function(){var f,g,i,j,k,l;for(l=[],j=0,k=e.length;k>j;j++)i=e[j],g=i.doc._id,f=void 0!==i.base?i.base:b[g]?b[g]:null,l.push(c.executeSql("INSERT OR REPLACE INTO docs (col, id, state, doc, base) VALUES (?, ?, ?, ?, ?)",[a.name,i.doc._id,"upserted",JSON.stringify(i.doc),JSON.stringify(f)],h,d));return l})}}(this),d,function(){return c?c(a):void 0})},a.prototype.remove=function(a,b,c){return c=c||function(){},this.db.transaction(function(d){return function(e){return e.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[d.name,a],function(e,f){return f.rows.length>0?e.executeSql('UPDATE docs SET state="removed" WHERE col = ? AND id = ?',[d.name,a],function(){return b?b(a):void 0},c):e.executeSql("INSERT INTO docs (col, id, state, doc) VALUES (?, ?, ?, ?)",[d.name,a,"removed",JSON.stringify({_id:a})],function(){return b?b(a):void 0},c)},c)}}(this),c)},a.prototype.cache=function(a,b,c,d,e){return e=e||function(){},this.db.transaction(function(h){return function(i){return f.eachSeries(a,function(a,b){return i.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[h.name,a._id],function(c,d){var f;return 0===d.rows.length||"cached"===d.rows.item(0).state?(f=d.rows.length>0?JSON.parse(d.rows.item(0).doc):null,!f||!a._rev||!f._rev||a._rev>=f._rev?c.executeSql("INSERT OR REPLACE INTO docs (col, id, state, doc) VALUES (?, ?, ?, ?)",[h.name,a._id,"cached",JSON.stringify(a)],function(){return b()},e):b()):b()},b,e)},function(i){var j,l;return i?void(e&&e(i)):(j=k.object(k.pluck(a,"_id"),a),c.sort&&(l=g(c.sort)),h.find(b,c).fetch(function(b){return h.db.transaction(function(g){return f.eachSeries(b,function(b,d){return g.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[h.name,b._id],function(f,g){return!j[b._id]&&g.rows.length>0&&"cached"===g.rows.item(0).state?c.sort&&c.limit&&a.length===c.limit&&l(b,k.last(a))>=0?d():f.executeSql("DELETE FROM docs WHERE col = ? AND id = ?",[h.name,b._id],function(){return d()},e):d()},d,e)},function(a){return null!=a?void(null!=e&&e(a)):null!=d?d():void 0})},e)},e))})}}(this),e)},a.prototype.pendingUpserts=function(a,b){return b=b||function(){},this.db.readTransaction(function(c){return function(d){return d.executeSql("SELECT * FROM docs WHERE col = ? AND state = ?",[c.name,"upserted"],function(b,c){var d,e,f,g,h;for(d=[],e=g=0,h=c.rows.length;h>=0?h>g:g>h;e=h>=0?++g:--g)f=c.rows.item(e),d.push({doc:JSON.parse(f.doc),base:f.base?JSON.parse(f.base):null});return null!=a?a(d):void 0},b)}}(this),b)},a.prototype.pendingRemoves=function(a,b){return b=b||function(){},this.db.readTransaction(function(c){return function(d){return d.executeSql("SELECT * FROM docs WHERE col = ? AND state = ?",[c.name,"removed"],function(b,c){var d,e,f,g,h;for(d=[],e=g=0,h=c.rows.length;h>=0?h>g:g>h;e=h>=0?++g:--g)f=c.rows.item(e),d.push(JSON.parse(f.doc)._id);return null!=a?a(d):void 0},b)}}(this),b)},a.prototype.resolveUpserts=function(a,b,c){return c=c||function(){},this.db.transaction(function(d){return function(e){return f.eachSeries(a,function(a,b){return e.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[d.name,a.doc._id],function(e,f){return f.rows.length>0&&"upserted"===f.rows.item(0).state?k.isEqual(JSON.parse(f.rows.item(0).doc),a.doc)?(e.executeSql('UPDATE docs SET state="cached" WHERE col = ? AND id = ?',[d.name,a.doc._id],h,c),b()):(e.executeSql("UPDATE docs SET base=? WHERE col = ? AND id = ?",[JSON.stringify(a.doc),d.name,a.doc._id],h,c),b()):b()},c)},function(a){return a?c(a):b?b():void 0})}}(this),c)},a.prototype.resolveRemove=function(a,b,c){return c=c||function(){},this.db.transaction(function(d){return function(e){return e.executeSql('DELETE FROM docs WHERE state="removed" AND col = ? AND id = ?',[d.name,a],function(){return b?b(a):void 0},c)}}(this),c)},a.prototype.seed=function(a,b,c){return c=c||function(){},this.db.transaction(function(d){return function(e){return e.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[d.name,a._id],function(e,f){return 0===f.rows.length?e.executeSql("INSERT INTO docs (col, id, state, doc) VALUES (?, ?, ?, ?)",[d.name,a._id,"cached",JSON.stringify(a)],function(){return b?b(a):void 0},c):b?b(a):void 0},c)}}(this),c)},a.prototype.cacheOne=function(a,b,c){return c=c||function(){},this.db.transaction(function(d){return function(e){return e.executeSql("SELECT * FROM docs WHERE col = ? AND id = ?",[d.name,a._id],function(e,f){var g;if(0===f.rows.length||"cached"===f.rows.item(0).state){if(g=f.rows.length>0?JSON.parse(f.rows.item(0).doc):null,!g||!a._rev||!g._rev||a._rev>=g._rev)return e.executeSql("INSERT OR REPLACE INTO docs (col, id, state, doc) VALUES (?, ?, ?, ?)",[d.name,a._id,"cached",JSON.stringify(a)],function(){return b?b(a):void 0},c);if(b)return b(a)}else if(b)return b(a)},c)}}(this),c)},a}()},{"./selector":16,"./utils":17,async:18,lodash:21}],15:[function(a,b,c){b.exports=function(a,b,c,d,e,f){var g,h;return g=b+"?"+$.param(c),"GET"===a?h=$.getJSON(g):"DELETE"===a?h=$.ajax(g,{type:"DELETE"}):("POST"===a||"PATCH"===a)&&(h=$.ajax(g,{data:JSON.stringify(d),contentType:"application/json",type:a})),h.done(function(b,c,d){return null==b&&console.error("Empty response: "+g+":"+a+" returned "+d.responseText+" as JSON "+JSON.stringify(b)),e(b||null)}),h.fail(function(a,b,c){return f?f(a):void 0})}},{}],16:[function(a,b,c){LocalCollection={},EJSON=a("./EJSON");var d=a("lodash"),e=function(a){return d.isArray(a)&&!EJSON.isBinary(a)},f=function(a,b){return e(a)?d.any(a,b):b(a)},g=function(a,b){return b(a)?!0:e(a)&&d.any(a,b)},h=function(a){var b=void 0;for(var c in a){var d="$"===c.substr(0,1);if(void 0===b)b=d;else if(b!==d)throw new Error("Inconsistent selector: "+a)}return!!b},i=function(a){if(null==a)return function(a){return f(a,function(a){return null==a})};if(!d.isObject(a))return function(b){return f(b,function(b){return b===a})};if(a instanceof RegExp)return function(b){return void 0===b?!1:f(b,function(b){return a.test(b)})};if(e(a))return function(b){return e(b)?g(b,function(b){return LocalCollection._f._equal(a,b)}):!1};if(h(a)){var b=[];return d.each(a,function(c,e){if(!d.has(k,e))throw new Error("Unrecognized operator: "+e);b.push(k[e](c,a.$options))}),function(a){return d.all(b,function(b){return b(a)})}}return function(b){return f(b,function(b){return LocalCollection._f._equal(a,b)})}},j={$and:function(a){if(!e(a)||d.isEmpty(a))throw Error("$and/$or/$nor must be nonempty array");var b=d.map(a,l);return function(a){return d.all(b,function(b){return b(a)})}},$or:function(a){if(!e(a)||d.isEmpty(a))throw Error("$and/$or/$nor must be nonempty array");var b=d.map(a,l);return function(a){return d.any(b,function(b){return b(a)})}},$nor:function(a){if(!e(a)||d.isEmpty(a))throw Error("$and/$or/$nor must be nonempty array");var b=d.map(a,l);return function(a){return d.all(b,function(b){return!b(a)})}},$where:function(a){return a instanceof Function||(a=Function("return "+a)),function(b){return a.call(b)}}},k={$in:function(a){if(!e(a))throw new Error("Argument to $in must be array");return function(b){return g(b,function(b){return d.any(a,function(a){return LocalCollection._f._equal(a,b)})})}},$all:function(a){if(!e(a))throw new Error("Argument to $all must be array");return function(b){return e(b)?d.all(a,function(a){return d.any(b,function(b){return LocalCollection._f._equal(a,b)})}):!1}},$lt:function(a){return function(b){return f(b,function(b){return LocalCollection._f._cmp(b,a)<0})}},$lte:function(a){return function(b){return f(b,function(b){return LocalCollection._f._cmp(b,a)<=0})}},$gt:function(a){return function(b){return f(b,function(b){return LocalCollection._f._cmp(b,a)>0})}},$gte:function(a){return function(b){return f(b,function(b){return LocalCollection._f._cmp(b,a)>=0})}},$ne:function(a){return function(b){return!g(b,function(b){return LocalCollection._f._equal(b,a)})}},$nin:function(a){if(!e(a))throw new Error("Argument to $nin must be array");var b=k.$in(a);return function(a){return void 0===a?!0:!b(a)}},$exists:function(a){return function(b){return a===(void 0!==b)}},$mod:function(a){var b=a[0],c=a[1];return function(a){return f(a,function(a){return a%b===c})}},$size:function(a){return function(b){return e(b)&&a===b.length}},$type:function(a){return function(b){return void 0===b?!1:f(b,function(b){return LocalCollection._f._type(b)===a})}},$regex:function(a,b){if(void 0!==b){if(/[^gim]/.test(b))throw new Error("Only the i, m, and g regexp options are supported");var c=a instanceof RegExp?a.source:a;a=new RegExp(c,b)}else a instanceof RegExp||(a=new RegExp(a));return function(b){return void 0===b?!1:f(b,function(b){return a.test(b)})}},$options:function(a){return function(a){return!0}},$elemMatch:function(a){var b=l(a);return function(a){return e(a)?d.any(a,function(a){return b(a)}):!1}},$not:function(a){var b=i(a);return function(a){return!b(a)}},$near:function(a){return function(a){return!0}},$geoIntersects:function(a){return function(a){return!0}}};LocalCollection._f={_type:function(a){return"number"==typeof a?1:"string"==typeof a?2:"boolean"==typeof a?8:e(a)?4:null===a?10:a instanceof RegExp?11:"function"==typeof a?13:a instanceof Date?9:EJSON.isBinary(a)?5:a instanceof Meteor.Collection.ObjectID?7:3},_equal:function(a,b){return EJSON.equals(a,b,{keyOrderSensitive:!0})},_typeorder:function(a){return[-1,1,2,3,4,5,-1,6,7,8,0,9,-1,100,2,100,1,8,1][a]},_cmp:function(a,b){if(void 0===a)return void 0===b?0:-1;if(void 0===b)return 1;var c=LocalCollection._f._type(a),d=LocalCollection._f._type(b),e=LocalCollection._f._typeorder(c),f=LocalCollection._f._typeorder(d);if(e!==f)return f>e?-1:1;if(c!==d)throw Error("Missing type coercion logic in _cmp");if(7===c&&(c=d=2,a=a.toHexString(),b=b.toHexString()),9===c&&(c=d=1,a=a.getTime(),b=b.getTime()),1===c)return a-b;if(2===d)return b>a?-1:a===b?0:1;if(3===c){var g=function(a){var b=[];for(var c in a)b.push(c),b.push(a[c]);return b};return LocalCollection._f._cmp(g(a),g(b))}if(4===c)for(var h=0;;h++){if(h===a.length)return h===b.length?0:-1;if(h===b.length)return 1;var i=LocalCollection._f._cmp(a[h],b[h]);if(0!==i)return i}if(5===c){if(a.length!==b.length)return a.length-b.length;for(h=0;h<a.length;h++){if(a[h]<b[h])return-1;if(a[h]>b[h])return 1}return 0}if(8===c)return a?b?0:1:b?-1:0;if(10===c)return 0;if(11===c)throw Error("Sorting not supported on regular expression");if(13===c)throw Error("Sorting not supported on Javascript code");throw Error("Unknown type to sort")}},LocalCollection._matches=function(a,b){return LocalCollection._compileSelector(a)(b)},LocalCollection._makeLookupFunction=function(a){var b,c,f,g=a.indexOf(".");if(-1===g)b=a;else{b=a.substr(0,g);var h=a.substr(g+1);c=LocalCollection._makeLookupFunction(h),f=/^\d+(\.|$)/.test(h)}return function(a){if(null==a)return[void 0];var g=a[b];return c?e(g)&&0===g.length?[void 0]:((!e(g)||f)&&(g=[g]),Array.prototype.concat.apply([],d.map(g,c))):[g]}};var l=function(a){var b=[];return d.each(a,function(a,c){if("$"===c.substr(0,1)){if(!d.has(j,c))throw new Error("Unrecognized logical operator: "+c);b.push(j[c](a))}else{var e=LocalCollection._makeLookupFunction(c),f=i(a);b.push(function(a){var b=e(a);return d.any(b,f)})}}),function(a){return d.all(b,function(b){return b(a)})}};LocalCollection._compileSelector=function(a){if(a instanceof Function)return function(b){return a.call(b)};if(LocalCollection._selectorIsId(a))return function(b){return EJSON.equals(b._id,a)};if(!a||"_id"in a&&!a._id)return function(a){return!1};if("boolean"==typeof a||e(a)||EJSON.isBinary(a))throw new Error("Invalid selector: "+a);return l(a)},LocalCollection._compileSort=function(a){var b=[];if(a instanceof Array)for(var c=0;c<a.length;c++)"string"==typeof a[c]?b.push({lookup:LocalCollection._makeLookupFunction(a[c]),ascending:!0}):b.push({lookup:LocalCollection._makeLookupFunction(a[c][0]),ascending:"desc"!==a[c][1]});else{if("object"!=typeof a)throw Error("Bad sort specification: ",JSON.stringify(a));for(var f in a)b.push({lookup:LocalCollection._makeLookupFunction(f),ascending:a[f]>=0})}if(0===b.length)return function(){return 0};var g=function(a,b){var c,f=!0;return d.each(a,function(a){e(a)||(a=[a]),e(a)&&0===a.length&&(a=[void 0]),d.each(a,function(a){if(f)c=a,f=!1;else{var d=LocalCollection._f._cmp(c,a);(b&&d>0||!b&&0>d)&&(c=a)}})}),c};return function(a,c){for(var d=0;d<b.length;++d){var e=b[d],f=g(e.lookup(a),e.ascending),h=g(e.lookup(c),e.ascending),i=LocalCollection._f._cmp(f,h);if(0!==i)return e.ascending?i:-i}return 0}},c.compileDocumentSelector=l,c.compileSort=LocalCollection._compileSort},{"./EJSON":8,lodash:21}],17:[function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;n=a("lodash"),d=a("async"),e=a("bowser"),f=a("./selector").compileDocumentSelector,g=a("./selector").compileSort,j=function(){var a;if(!window.localStorage)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch(b){return a=b,!1}},c.compileDocumentSelector=f,c.autoselectLocalDb=function(b,c,d){var f,g,h,i,k;return f=a("./IndexedDb"),i=a("./WebSQLDb"),g=a("./LocalStorageDb"),h=a("./MemoryDb"),k=e.browser,j()?window.cordova?(console.log("Selecting WebSQLDb for Cordova"),new i(b,c,d)):k.android||k.ios||k.chrome||k.safari||k.opera||k.blackberry?(console.log("Selecting WebSQLDb for browser"),new i(b,c,function(a){return function(a){return console.log("Failed to create WebSQLDb: "+(a?a.message:void 0)),new h(b,c)}}(this))):k.firefox&&k.version>=16?(console.log("Selecting IndexedDb for browser"),new f(b,c,function(a){return function(a){return console.log("Failed to create IndexedDb: "+(a?a.message:void 0)),new h(b,c)}}(this))):(console.log("Selecting LocalStorageDb for fallback"),new g(b,c,d)):new h(b,c)},c.migrateLocalDb=function(b,c,d,e){var f,g,h,i,j;f=a("./HybridDb"),h=new f(b,c),j=b.collections;for(i in j)g=j[i],c[i]&&h.addCollection(i);return h.upload(d,e)},c.processFind=function(a,b,d){var e;return e=n.filter(n.values(a),f(b)),e=m(b,e),e=l(b,e),d&&d.sort&&e.sort(g(d.sort)),d&&d.skip&&(e=n.rest(e,d.skip)),d&&d.limit&&(e=n.first(e,d.limit)),e=d&&d.fields?c.filterFields(e,d.fields):n.map(e,function(a){return n.cloneDeep(a)})},c.filterFields=function(a,b){return null==b&&(b={}),0===n.keys(b).length?a:n.map(a,function(a){var c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x;if(a=n.cloneDeep(a),e={},1===n.first(n.values(b))){for(u=n.keys(b).concat(["_id"]),j=0,o=u.length;o>j;j++){for(c=u[j],g=c.split("."),f=a,k=0,p=g.length;p>k;k++)h=g[k],f&&(f=f[h]);if(null!=f){for(d=a,i=e,v=n.initial(g),l=0,q=v.length;q>l;l++)h=v[l],i[h]=i[h]||{},i=i[h],d=d[h];i[n.last(g)]=d[n.last(g)]}}return e}for(w=n.keys(b).concat(["_id"]),m=0,r=w.length;r>m;m++){for(c=w[m],g=c.split("."),f=a,x=n.initial(g),t=0,s=x.length;s>t;t++)h=x[t],f&&(f=f[h]);null!=f&&delete f[n.last(g)]}return a})},c.createUid=function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(a){var b,c;return b=16*Math.random()|0,c="x"===a?b:3&b|8,c.toString(16)})},m=function(a,b){var c,d,e,f;for(e in a)if(f=a[e],null!=f&&f.$near){if(d=f.$near.$geometry,"Point"!==d.type)break;b=n.filter(b,function(a){return a[e]&&"Point"===a[e].type}),c=n.map(b,function(a){return{doc:a,distance:i(d.coordinates[1],d.coordinates[0],a[e].coordinates[1],a[e].coordinates[0])}}),c=n.filter(c,function(a){return a.distance>=0}),c=n.sortBy(c,"distance"),f.$near.$maxDistance&&(c=n.filter(c,function(a){return a.distance<=f.$near.$maxDistance})),c=n.first(c,100),b=n.pluck(c,"doc")}return b},k=function(a,b){if(!n.isEqual(n.first(b.coordinates[0]),n.last(b.coordinates[0])))throw new Error("First must equal last");return a.coordinates[0]<Math.min.apply(this,n.map(b.coordinates[0],function(a){return a[0]}))?!1:a.coordinates[1]<Math.min.apply(this,n.map(b.coordinates[0],function(a){return a[1]}))?!1:a.coordinates[0]>Math.max.apply(this,n.map(b.coordinates[0],function(a){return a[0]}))?!1:a.coordinates[1]>Math.max.apply(this,n.map(b.coordinates[0],function(a){return a[1]}))?!1:!0},i=function(a,b,c,d){var e,f,g,i,j,k;return e=6370986,j=h(c-a),k=h(d-b),f=Math.sin(j/2)*Math.sin(j/2)+Math.cos(h(a))*Math.cos(h(c))*Math.sin(k/2)*Math.sin(k/2),g=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f)),i=e*g},h=function(a){return a*(Math.PI/180)},l=function(a,b){var c,d,e;for(d in a)if(e=a[d],null!=e&&e.$geoIntersects){if(c=e.$geoIntersects.$geometry,"Polygon"!==c.type)break;b=n.filter(b,function(a){return a[d]&&"Point"===a[d].type?k(a[d],c):!1})}return b},c.regularizeUpsert=function(a,b,d,e){var f,g,h,i,j;for(n.isFunction(b)&&(j=[void 0,b,d],b=j[0],d=j[1],e=j[2]),n.isArray(a)?b=b||[]:(a=[a],b=[b]),g=n.map(a,function(a,c){return{doc:a,base:c<b.length?b[c]:void 0}}),h=0,i=g.length;i>h;h++){if(f=g[h],f.doc._id||(f.doc._id=c.createUid()),f.base&&!f.base._id)throw new Error("Base needs _id");if(f.base&&f.base._id!==f.doc._id)throw new Error("Base needs same _id")}return[g,d,e]}},{"./HybridDb":9,"./IndexedDb":10,"./LocalStorageDb":11,"./MemoryDb":12,"./WebSQLDb":14,"./selector":16,async:18,bowser:19,lodash:21}],18:[function(a,b,c){(function(a){!function(){function c(a){var b=!1;return function(){if(b)throw new Error("Callback was already called.");b=!0,a.apply(d,arguments)}}var d,e,f={};d=this,null!=d&&(e=d.async),f.noConflict=function(){return d.async=e,f};var g=Object.prototype.toString,h=Array.isArray||function(a){return"[object Array]"===g.call(a)},i=function(a,b){if(a.forEach)return a.forEach(b);for(var c=0;c<a.length;c+=1)b(a[c],c,a)},j=function(a,b){if(a.map)return a.map(b);var c=[];return i(a,function(a,d,e){c.push(b(a,d,e))}),c},k=function(a,b,c){return a.reduce?a.reduce(b,c):(i(a,function(a,d,e){c=b(c,a,d,e)}),c)},l=function(a){if(Object.keys)return Object.keys(a);var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};"undefined"!=typeof a&&a.nextTick?(f.nextTick=a.nextTick,"undefined"!=typeof setImmediate?f.setImmediate=function(a){setImmediate(a)}:f.setImmediate=f.nextTick):"function"==typeof setImmediate?(f.nextTick=function(a){setImmediate(a)},f.setImmediate=f.nextTick):(f.nextTick=function(a){setTimeout(a,0)},f.setImmediate=f.nextTick),f.each=function(a,b,d){function e(b){b?(d(b),d=function(){}):(f+=1,f>=a.length&&d())}if(d=d||function(){},!a.length)return d();var f=0;i(a,function(a){b(a,c(e))})},f.forEach=f.each,f.eachSeries=function(a,b,c){if(c=c||function(){},!a.length)return c();var d=0,e=function(){b(a[d],function(b){b?(c(b),c=function(){}):(d+=1,d>=a.length?c():e())})};e()},f.forEachSeries=f.eachSeries,f.eachLimit=function(a,b,c,d){var e=m(b);e.apply(null,[a,c,d])},f.forEachLimit=f.eachLimit;var m=function(a){return function(b,c,d){if(d=d||function(){},!b.length||0>=a)return d();var e=0,f=0,g=0;!function h(){if(e>=b.length)return d();for(;a>g&&f<b.length;)f+=1,g+=1,c(b[f-1],function(a){a?(d(a),d=function(){}):(e+=1,g-=1,e>=b.length?d():h())})}()}},n=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.each].concat(b))}},o=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return b.apply(null,[m(a)].concat(c))}},p=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.eachSeries].concat(b))}},q=function(a,b,c,d){if(b=j(b,function(a,b){return{index:b,value:a}}),d){var e=[];a(b,function(a,b){c(a.value,function(c,d){e[a.index]=d,b(c)})},function(a){d(a,e)})}else a(b,function(a,b){c(a.value,function(a){b(a)})})};f.map=n(q),f.mapSeries=p(q),f.mapLimit=function(a,b,c,d){return r(b)(a,c,d)};var r=function(a){return o(a,q)};f.reduce=function(a,b,c,d){f.eachSeries(a,function(a,d){c(b,a,function(a,c){b=c,d(a)})},function(a){d(a,b)})},f.inject=f.reduce,f.foldl=f.reduce,f.reduceRight=function(a,b,c,d){var e=j(a,function(a){return a}).reverse();f.reduce(e,b,c,d)},f.foldr=f.reduceRight;var s=function(a,b,c,d){var e=[];b=j(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c&&e.push(a),b()})},function(a){d(j(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.filter=n(s),f.filterSeries=p(s),f.select=f.filter,f.selectSeries=f.filterSeries;var t=function(a,b,c,d){var e=[];b=j(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c||e.push(a),b()})},function(a){d(j(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.reject=n(t),f.rejectSeries=p(t);var u=function(a,b,c,d){a(b,function(a,b){c(a,function(c){c?(d(a),d=function(){}):b()})},function(a){d()})};f.detect=n(u),f.detectSeries=p(u),f.some=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a&&(c(!0),c=function(){}),d()})},function(a){c(!1)})},f.any=f.some,f.every=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a||(c(!1),c=function(){}),d()})},function(a){c(!0)})},f.all=f.every,f.sortBy=function(a,b,c){f.map(a,function(a,c){b(a,function(b,d){b?c(b):c(null,{value:a,criteria:d})})},function(a,b){if(a)return c(a);var d=function(a,b){var c=a.criteria,d=b.criteria;return d>c?-1:c>d?1:0};c(null,j(b.sort(d),function(a){return a.value}))})},f.auto=function(a,b){b=b||function(){};var c=l(a),d=c.length;if(!d)return b();var e={},g=[],j=function(a){g.unshift(a)},m=function(a){for(var b=0;b<g.length;b+=1)if(g[b]===a)return void g.splice(b,1)},n=function(){d--,i(g.slice(0),function(a){a()})};j(function(){if(!d){var a=b;b=function(){},a(null,e)}}),i(c,function(c){var d=h(a[c])?a[c]:[a[c]],g=function(a){var d=Array.prototype.slice.call(arguments,1);if(d.length<=1&&(d=d[0]),a){var g={};i(l(e),function(a){g[a]=e[a]}),g[c]=d,b(a,g),b=function(){}}else e[c]=d,f.setImmediate(n)},o=d.slice(0,Math.abs(d.length-1))||[],p=function(){return k(o,function(a,b){return a&&e.hasOwnProperty(b)},!0)&&!e.hasOwnProperty(c)};if(p())d[d.length-1](g,e);else{var q=function(){p()&&(m(q),d[d.length-1](g,e))};j(q)}})},f.retry=function(a,b,c){var d=5,e=[];"function"==typeof a&&(c=b,b=a,a=d),a=parseInt(a,10)||d;var g=function(d,g){for(var h=function(a,b){return function(c){a(function(a,d){c(!a||b,{err:a,result:d})},g)}};a;)e.push(h(b,!(a-=1)));f.series(e,function(a,b){b=b[b.length-1],(d||c)(b.err,b.result)})};return c?g():g},f.waterfall=function(a,b){if(b=b||function(){},!h(a)){var c=new Error("First argument to waterfall must be an array of functions");return b(c)}if(!a.length)return b();var d=function(a){return function(c){if(c)b.apply(null,arguments),b=function(){};else{var e=Array.prototype.slice.call(arguments,1),g=a.next();g?e.push(d(g)):e.push(b),f.setImmediate(function(){a.apply(null,e)})}}};d(f.iterator(a))()};var v=function(a,b,c){if(c=c||function(){},h(b))a.map(b,function(a,b){a&&a(function(a){var c=Array.prototype.slice.call(arguments,1);c.length<=1&&(c=c[0]),b.call(null,a,c)})},c);else{var d={};a.each(l(b),function(a,c){b[a](function(b){var e=Array.prototype.slice.call(arguments,1);e.length<=1&&(e=e[0]),d[a]=e,c(b)})},function(a){c(a,d)})}};f.parallel=function(a,b){v({map:f.map,each:f.each},a,b)},f.parallelLimit=function(a,b,c){v({map:r(b),each:m(b)},a,c)},f.series=function(a,b){if(b=b||function(){},h(a))f.mapSeries(a,function(a,b){a&&a(function(a){var c=Array.prototype.slice.call(arguments,1);c.length<=1&&(c=c[0]),b.call(null,a,c)})},b);else{var c={};f.eachSeries(l(a),function(b,d){a[b](function(a){var e=Array.prototype.slice.call(arguments,1);e.length<=1&&(e=e[0]),c[b]=e,d(a)})},function(a){b(a,c)})}},f.iterator=function(a){var b=function(c){var d=function(){return a.length&&a[c].apply(null,arguments),d.next()};return d.next=function(){return c<a.length-1?b(c+1):null},d};return b(0)},f.apply=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b.concat(Array.prototype.slice.call(arguments)))}};var w=function(a,b,c,d){var e=[];a(b,function(a,b){c(a,function(a,c){e=e.concat(c||[]),b(a)})},function(a){d(a,e)})};f.concat=n(w),f.concatSeries=p(w),f.whilst=function(a,b,c){a()?b(function(d){return d?c(d):void f.whilst(a,b,c)}):c()},f.doWhilst=function(a,b,c){a(function(d){if(d)return c(d);var e=Array.prototype.slice.call(arguments,1);b.apply(null,e)?f.doWhilst(a,b,c):c()})},f.until=function(a,b,c){a()?c():b(function(d){return d?c(d):void f.until(a,b,c)})},f.doUntil=function(a,b,c){a(function(d){if(d)return c(d);var e=Array.prototype.slice.call(arguments,1);b.apply(null,e)?c():f.doUntil(a,b,c)})},f.queue=function(a,b){function d(a,b,c,d){return a.started||(a.started=!0),h(b)||(b=[b]),0==b.length?f.setImmediate(function(){a.drain&&a.drain()}):void i(b,function(b){var e={data:b,callback:"function"==typeof d?d:null};c?a.tasks.unshift(e):a.tasks.push(e),a.saturated&&a.tasks.length===a.concurrency&&a.saturated(),
  f.setImmediate(a.process)})}void 0===b&&(b=1);var e=0,g={tasks:[],concurrency:b,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(a,b){d(g,a,!1,b)},kill:function(){g.drain=null,g.tasks=[]},unshift:function(a,b){d(g,a,!0,b)},process:function(){if(!g.paused&&e<g.concurrency&&g.tasks.length){var b=g.tasks.shift();g.empty&&0===g.tasks.length&&g.empty(),e+=1;var d=function(){e-=1,b.callback&&b.callback.apply(b,arguments),g.drain&&g.tasks.length+e===0&&g.drain(),g.process()},f=c(d);a(b.data,f)}},length:function(){return g.tasks.length},running:function(){return e},idle:function(){return g.tasks.length+e===0},pause:function(){g.paused!==!0&&(g.paused=!0,g.process())},resume:function(){g.paused!==!1&&(g.paused=!1,g.process())}};return g},f.cargo=function(a,b){var c=!1,d=[],e={tasks:d,payload:b,saturated:null,empty:null,drain:null,drained:!0,push:function(a,c){h(a)||(a=[a]),i(a,function(a){d.push({data:a,callback:"function"==typeof c?c:null}),e.drained=!1,e.saturated&&d.length===b&&e.saturated()}),f.setImmediate(e.process)},process:function g(){if(!c){if(0===d.length)return e.drain&&!e.drained&&e.drain(),void(e.drained=!0);var f="number"==typeof b?d.splice(0,b):d.splice(0,d.length),h=j(f,function(a){return a.data});e.empty&&e.empty(),c=!0,a(h,function(){c=!1;var a=arguments;i(f,function(b){b.callback&&b.callback.apply(null,a)}),g()})}},length:function(){return d.length},running:function(){return c}};return e};var x=function(a){return function(b){var c=Array.prototype.slice.call(arguments,1);b.apply(null,c.concat([function(b){var c=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(b?console.error&&console.error(b):console[a]&&i(c,function(b){console[a](b)}))}]))}};f.log=x("log"),f.dir=x("dir"),f.memoize=function(a,b){var c={},d={};b=b||function(a){return a};var e=function(){var e=Array.prototype.slice.call(arguments),g=e.pop(),h=b.apply(null,e);h in c?f.nextTick(function(){g.apply(null,c[h])}):h in d?d[h].push(g):(d[h]=[g],a.apply(null,e.concat([function(){c[h]=arguments;var a=d[h];delete d[h];for(var b=0,e=a.length;e>b;b++)a[b].apply(null,arguments)}])))};return e.memo=c,e.unmemoized=a,e},f.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},f.times=function(a,b,c){for(var d=[],e=0;a>e;e++)d.push(e);return f.map(d,b,c)},f.timesSeries=function(a,b,c){for(var d=[],e=0;a>e;e++)d.push(e);return f.mapSeries(d,b,c)},f.seq=function(){var a=arguments;return function(){var b=this,c=Array.prototype.slice.call(arguments),d=c.pop();f.reduce(a,c,function(a,c,d){c.apply(b,a.concat([function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);d(a,b)}]))},function(a,c){d.apply(b,[a].concat(c))})}},f.compose=function(){return f.seq.apply(null,Array.prototype.reverse.call(arguments))};var y=function(a,b){var c=function(){var c=this,d=Array.prototype.slice.call(arguments),e=d.pop();return a(b,function(a,b){a.apply(c,d.concat([b]))},e)};if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return c.apply(this,d)}return c};f.applyEach=n(y),f.applyEachSeries=p(y),f.forever=function(a,b){function c(d){if(d){if(b)return b(d);throw d}a(c)}c()},"undefined"!=typeof b&&b.exports?b.exports=f:"undefined"!=typeof define&&define.amd?define([],function(){return f}):d.async=f}()}).call(this,a("_process"))},{_process:4}],19:[function(a,b,c){!function(a,c){"undefined"!=typeof b&&b.exports?b.exports.browser=c():"function"==typeof define&&define.amd?define(c):this[a]=c()}("bowser",function(){function a(a){function c(b){var c=a.match(b);return c&&c.length>1&&c[1]||""}function d(b){var c=a.match(b);return c&&c.length>1&&c[2]||""}var e,f=c(/(ipod|iphone|ipad)/i).toLowerCase(),g=/like android/i.test(a),h=!g&&/android/i.test(a),i=c(/edge\/(\d+(\.\d+)?)/i),j=c(/version\/(\d+(\.\d+)?)/i),k=/tablet/i.test(a),l=!k&&/[^-]mobi/i.test(a);/opera|opr/i.test(a)?e={name:"Opera",opera:b,version:j||c(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(a)?(e={name:"Windows Phone",windowsphone:b},i?(e.msedge=b,e.version=i):(e.msie=b,e.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?e={name:"Internet Explorer",msie:b,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(a)?e={name:"Microsoft Edge",msedge:b,version:i}:/chrome|crios|crmo/i.test(a)?e={name:"Chrome",chrome:b,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?(e={name:"iphone"==f?"iPhone":"ipad"==f?"iPad":"iPod"},j&&(e.version=j)):/sailfish/i.test(a)?e={name:"Sailfish",sailfish:b,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?e={name:"SeaMonkey",seamonkey:b,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(a)?(e={name:"Firefox",firefox:b,version:c(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(e.firefoxos=b)):/silk/i.test(a)?e={name:"Amazon Silk",silk:b,version:c(/silk\/(\d+(\.\d+)?)/i)}:h?e={name:"Android",version:j}:/phantom/i.test(a)?e={name:"PhantomJS",phantom:b,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?e={name:"BlackBerry",blackberry:b,version:j||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(a)?(e={name:"WebOS",webos:b,version:j||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(e.touchpad=b)):e=/bada/i.test(a)?{name:"Bada",bada:b,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(a)?{name:"Tizen",tizen:b,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||j}:/safari/i.test(a)?{name:"Safari",safari:b,version:j}:{name:c(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!e.msedge&&/(apple)?webkit/i.test(a)?(e.name=e.name||"Webkit",e.webkit=b,!e.version&&j&&(e.version=j)):!e.opera&&/gecko\//i.test(a)&&(e.name=e.name||"Gecko",e.gecko=b,e.version=e.version||c(/gecko\/(\d+(\.\d+)?)/i)),e.msedge||!h&&!e.silk?f&&(e[f]=b,e.ios=b):e.android=b;var m="";e.windowsphone?m=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):f?(m=c(/os (\d+([_\s]\d+)*) like mac os x/i),m=m.replace(/[_\s]/g,".")):h?m=c(/android[ \/-](\d+(\.\d+)*)/i):e.webos?m=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):e.blackberry?m=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):e.bada?m=c(/bada\/(\d+(\.\d+)*)/i):e.tizen&&(m=c(/tizen[\/\s](\d+(\.\d+)*)/i)),m&&(e.osversion=m);var n=m.split(".")[0];return k||"ipad"==f||h&&(3==n||4==n&&!l)||e.silk?e.tablet=b:(l||"iphone"==f||"ipod"==f||h||e.blackberry||e.webos||e.bada)&&(e.mobile=b),e.msedge||e.msie&&e.version>=10||e.chrome&&e.version>=20||e.firefox&&e.version>=20||e.safari&&e.version>=6||e.opera&&e.version>=10||e.ios&&e.osversion&&e.osversion.split(".")[0]>=6||e.blackberry&&e.version>=10.1?e.a=b:e.msie&&e.version<10||e.chrome&&e.version<20||e.firefox&&e.version<20||e.safari&&e.version<6||e.opera&&e.version<10||e.ios&&e.osversion&&e.osversion.split(".")[0]<6?e.c=b:e.x=b,e}var b=!0,c=a("undefined"!=typeof navigator?navigator.userAgent:"");return c.test=function(a){for(var b=0;b<a.length;++b){var d=a[b];if("string"==typeof d&&d in c)return!0}return!1},c._detect=a,c})},{}],20:[function(a,b,c){!function(a,c,d){"function"==typeof define?define(c):"undefined"!=typeof b&&b.exports?b.exports=c():d[a]=c()}("IDBStore",function(){"use strict";var a=function(a){throw a},b=function(){},c={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:a,indexes:[]},d=function(a,b){"undefined"==typeof b&&"function"==typeof a&&(b=a),"[object Object]"!=Object.prototype.toString.call(a)&&(a={});for(var d in c)this[d]="undefined"!=typeof a[d]?a[d]:c[d];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,b&&(this.onStoreReady=b);var e="object"==typeof window?window:self;this.idb=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.shimIndexedDB,this.keyRange=e.IDBKeyRange||e.webkitIDBKeyRange||e.mozIDBKeyRange,this.features={hasAutoIncrement:!e.mozIndexedDB},this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()};d.prototype={constructor:d,version:"1.5",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,features:null,onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var a=this.idb.open(this.dbName,this.dbVersion),b=!1;a.onerror=function(a){var b=!1;"error"in a.target?b="VersionError"==a.target.error.name:"errorCode"in a.target&&(b=12==a.target.errorCode),b?this.onError(new Error("The version number provided is lower than the existing one.")):this.onError(a)}.bind(this),a.onsuccess=function(a){if(!b){if(this.db)return void this.onStoreReady();if(this.db=a.target.result,"string"==typeof this.db.version)return void this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."));if(!this.db.objectStoreNames.contains(this.storeName))return void this.onError(new Error("Something is wrong with the IndexedDB implementation in this browser. Please upgrade your browser."));var c=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=c.objectStore(this.storeName);var d=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(a){var c=a.name;if(!c)return b=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(a),this.hasIndex(c)){var e=this.store.index(c),f=this.indexComplies(e,a);f||(b=!0,this.onError(new Error('Cannot modify index "'+c+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),d.splice(d.indexOf(c),1)}else b=!0,this.onError(new Error('Cannot create new index "'+c+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))},this),d.length&&(b=!0,this.onError(new Error('Cannot delete index(es) "'+d.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),b||this.onStoreReady()}}.bind(this),a.onupgradeneeded=function(a){if(this.db=a.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=a.target.transaction.objectStore(this.storeName);else{var c={autoIncrement:this.autoIncrement};null!==this.keyPath&&(c.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,c)}var d=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(a){var c=a.name;if(c||(b=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(a),this.hasIndex(c)){var e=this.store.index(c),f=this.indexComplies(e,a);f||(this.store.deleteIndex(c),this.store.createIndex(c,a.keyPath,{unique:a.unique,multiEntry:a.multiEntry})),d.splice(d.indexOf(c),1)}else this.store.createIndex(c,a.keyPath,{unique:a.unique,multiEntry:a.multiEntry})},this),d.length&&d.forEach(function(a){this.store.deleteIndex(a)},this)}.bind(this)},deleteDatabase:function(a,b){if(this.idb.deleteDatabase){this.db.close();var c=this.idb.deleteDatabase(this.dbName);c.onsuccess=a,c.onerror=b}else b(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(c,d,e,f){null!==this.keyPath&&(f=e,e=d,d=c),f||(f=a),e||(e=b);var g,h=!1,i=null,j=this.db.transaction([this.storeName],this.consts.READ_WRITE);return j.oncomplete=function(){var a=h?e:f;a(i)},j.onabort=f,j.onerror=f,null!==this.keyPath?(this._addIdPropertyIfNeeded(d),g=j.objectStore(this.storeName).put(d)):g=j.objectStore(this.storeName).put(d,c),g.onsuccess=function(a){h=!0,i=a.target.result},g.onerror=f,j},get:function(c,d,e){e||(e=a),d||(d=b);var f=!1,g=null,h=this.db.transaction([this.storeName],this.consts.READ_ONLY);h.oncomplete=function(){var a=f?d:e;a(g)},h.onabort=e,h.onerror=e;var i=h.objectStore(this.storeName).get(c);return i.onsuccess=function(a){f=!0,g=a.target.result},i.onerror=e,h},remove:function(c,d,e){e||(e=a),d||(d=b);var f=!1,g=null,h=this.db.transaction([this.storeName],this.consts.READ_WRITE);h.oncomplete=function(){var a=f?d:e;a(g)},h.onabort=e,h.onerror=e;var i=h.objectStore(this.storeName)["delete"](c);return i.onsuccess=function(a){f=!0,g=a.target.result},i.onerror=e,h},batch:function(c,d,e){e||(e=a),d||(d=b),"[object Array]"!=Object.prototype.toString.call(c)&&e(new Error("dataArray argument must be of type Array."));var f=this.db.transaction([this.storeName],this.consts.READ_WRITE);f.oncomplete=function(){var a=i?d:e;a(i)},f.onabort=e,f.onerror=e;var g=c.length,h=!1,i=!1,j=function(){g--,0!==g||h||(h=!0,i=!0)};return c.forEach(function(a){var b=a.type,c=a.key,d=a.value,g=function(a){f.abort(),h||(h=!0,e(a,b,c))};if("remove"==b){var i=f.objectStore(this.storeName)["delete"](c);i.onsuccess=j,i.onerror=g}else if("put"==b){var k;null!==this.keyPath?(this._addIdPropertyIfNeeded(d),k=f.objectStore(this.storeName).put(d)):k=f.objectStore(this.storeName).put(d,c),k.onsuccess=j,k.onerror=g}},this),f},putBatch:function(a,b,c){var d=a.map(function(a){return{type:"put",value:a}});return this.batch(d,b,c)},upsertBatch:function(c,d,e,f){"function"==typeof d&&(e=d,f=e,d={}),f||(f=a),e||(e=b),d||(d={}),"[object Array]"!=Object.prototype.toString.call(c)&&f(new Error("dataArray argument must be of type Array."));var g=this.db.transaction([this.storeName],this.consts.READ_WRITE);g.oncomplete=function(){k?e(c):f(!1)},g.onabort=f,g.onerror=f;var h=d.keyField||this.keyPath,i=c.length,j=!1,k=!1,l=0,m=function(a){var b=c[l++];b[h]=a.target.result,i--,0!==i||j||(j=!0,k=!0)};return c.forEach(function(a){var b,c=a.key,d=function(a){g.abort(),j||(j=!0,f(a))};null!==this.keyPath?(this._addIdPropertyIfNeeded(a),b=g.objectStore(this.storeName).put(a)):b=g.objectStore(this.storeName).put(a,c),b.onsuccess=m,b.onerror=d},this),g},removeBatch:function(a,b,c){var d=a.map(function(a){return{type:"remove",key:a}});return this.batch(d,b,c)},getBatch:function(c,d,e,f){e||(e=a),d||(d=b),f||(f="sparse"),"[object Array]"!=Object.prototype.toString.call(c)&&e(new Error("keyArray argument must be of type Array."));var g=this.db.transaction([this.storeName],this.consts.READ_ONLY);g.oncomplete=function(){var a=k?d:e;a(l)},g.onabort=e,g.onerror=e;var h=[],i=c.length,j=!1,k=!1,l=null,m=function(a){a.target.result||"dense"==f?h.push(a.target.result):"sparse"==f&&h.length++,i--,0===i&&(j=!0,k=!0,l=h)};return c.forEach(function(a){var b=function(a){j=!0,l=a,e(a),g.abort()},c=g.objectStore(this.storeName).get(a);c.onsuccess=m,c.onerror=b},this),g},getAll:function(c,d){d||(d=a),c||(c=b);var e=this.db.transaction([this.storeName],this.consts.READ_ONLY),f=e.objectStore(this.storeName);return f.getAll?this._getAllNative(e,f,c,d):this._getAllCursor(e,f,c,d),e},_getAllNative:function(a,b,c,d){var e=!1,f=null;a.oncomplete=function(){var a=e?c:d;a(f)},a.onabort=d,a.onerror=d;var g=b.getAll();g.onsuccess=function(a){e=!0,f=a.target.result},g.onerror=d},_getAllCursor:function(a,b,c,d){var e=[],f=!1,g=null;a.oncomplete=function(){var a=f?c:d;a(g)},a.onabort=d,a.onerror=d;var h=b.openCursor();h.onsuccess=function(a){var b=a.target.result;b?(e.push(b.value),b["continue"]()):(f=!0,g=e)},h.onError=d},clear:function(c,d){d||(d=a),c||(c=b);var e=!1,f=null,g=this.db.transaction([this.storeName],this.consts.READ_WRITE);g.oncomplete=function(){var a=e?c:d;a(f)},g.onabort=d,g.onerror=d;var h=g.objectStore(this.storeName).clear();return h.onsuccess=function(a){e=!0,f=a.target.result},h.onerror=d,g},_addIdPropertyIfNeeded:function(a){this.features.hasAutoIncrement||"undefined"!=typeof a[this.keyPath]||(a[this.keyPath]=this._insertIdCount++ +Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(a){return this.store.indexNames.contains(a)},normalizeIndexData:function(a){a.keyPath=a.keyPath||a.name,a.unique=!!a.unique,a.multiEntry=!!a.multiEntry},indexComplies:function(a,b){var c=["keyPath","unique","multiEntry"].every(function(c){if("multiEntry"==c&&void 0===a[c]&&b[c]===!1)return!0;if("keyPath"==c&&"[object Array]"==Object.prototype.toString.call(b[c])){var d=b.keyPath,e=a.keyPath;if("string"==typeof e)return d.toString()==e;if("function"!=typeof e.contains&&"function"!=typeof e.indexOf)return!1;if(e.length!==d.length)return!1;for(var f=0,g=d.length;g>f;f++)if(!(e.contains&&e.contains(d[f])||e.indexOf(-1!==d[f])))return!1;return!0}return b[c]==a[c]});return c},iterate:function(b,c){c=f({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:a,limit:1/0,offset:0},c||{});var d="desc"==c.order.toLowerCase()?"PREV":"NEXT";c.filterDuplicates&&(d+="_NO_DUPLICATE");var e=!1,g=this.db.transaction([this.storeName],this.consts[c.writeAccess?"READ_WRITE":"READ_ONLY"]),h=g.objectStore(this.storeName);c.index&&(h=h.index(c.index));var i=0;g.oncomplete=function(){return e?void(c.onEnd?c.onEnd():b(null)):void c.onError(null)},g.onabort=c.onError,g.onerror=c.onError;var j=h.openCursor(c.keyRange,this.consts[d]);return j.onerror=c.onError,j.onsuccess=function(a){var d=a.target.result;d?c.offset?(d.advance(c.offset),c.offset=0):(b(d.value,d,g),i++,c.autoContinue&&(i+c.offset<c.limit?d["continue"]():e=!0)):e=!0},g},query:function(a,b){var c=[];return b=b||{},b.autoContinue=!0,b.writeAccess=!1,b.onEnd=function(){a(c)},this.iterate(function(a){c.push(a)},b)},count:function(b,c){c=f({index:null,keyRange:null},c||{});var d=c.onError||a,e=!1,g=null,h=this.db.transaction([this.storeName],this.consts.READ_ONLY);h.oncomplete=function(){var a=e?b:d;a(g)},h.onabort=d,h.onerror=d;var i=h.objectStore(this.storeName);c.index&&(i=i.index(c.index));var j=i.count(c.keyRange);return j.onsuccess=function(a){e=!0,g=a.target.result},j.onError=d,h},makeKeyRange:function(a){var b,c="undefined"!=typeof a.lower,d="undefined"!=typeof a.upper,e="undefined"!=typeof a.only;switch(!0){case e:b=this.keyRange.only(a.only);break;case c&&d:b=this.keyRange.bound(a.lower,a.upper,a.excludeLower,a.excludeUpper);break;case c:b=this.keyRange.lowerBound(a.lower,a.excludeLower);break;case d:b=this.keyRange.upperBound(a.upper,a.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return b}};var e={},f=function(a,b){var c,d;for(c in b)d=b[c],d!==e[c]&&d!==a[c]&&(a[c]=d);return a};return d.version=d.prototype.version,d},this)},{}],21:[function(a,b,c){(function(a){(function(){function d(a,b,c){for(var d=(c||0)-1,e=a?a.length:0;++d<e;)if(a[d]===b)return d;return-1}function e(a,b){var c=typeof b;if(a=a.cache,"boolean"==c||null==b)return a[b]?0:-1;"number"!=c&&"string"!=c&&(c="object");var e="number"==c?b:u+b;return a=(a=a[c])&&a[e],"object"==c?a&&d(a,b)>-1?0:-1:a?0:-1}function f(a){var b=this.cache,c=typeof a;if("boolean"==c||null==a)b[a]=!0;else{"number"!=c&&"string"!=c&&(c="object");var d="number"==c?a:u+a,e=b[c]||(b[c]={});"object"==c?(e[d]||(e[d]=[])).push(a):e[d]=!0}}function g(a){return a.charCodeAt(0)}function h(a,b){for(var c=a.criteria,d=b.criteria,e=-1,f=c.length;++e<f;){var g=c[e],h=d[e];if(g!==h){if(g>h||"undefined"==typeof g)return 1;if(h>g||"undefined"==typeof h)return-1}}return a.index-b.index}function i(a){var b=-1,c=a.length,d=a[0],e=a[c/2|0],g=a[c-1];if(d&&"object"==typeof d&&e&&"object"==typeof e&&g&&"object"==typeof g)return!1;var h=l();h["false"]=h["null"]=h["true"]=h.undefined=!1;var i=l();for(i.array=a,i.cache=h,i.push=f;++b<c;)i.push(a[b]);return i}function j(a){return"\\"+Y[a]}function k(){return r.pop()||[]}function l(){return s.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function m(a){a.length=0,r.length<w&&r.push(a)}function n(a){var b=a.cache;b&&n(b),a.array=a.cache=a.criteria=a.object=a.number=a.string=a.value=null,s.length<w&&s.push(a)}function o(a,b,c){b||(b=0),"undefined"==typeof c&&(c=a?a.length:0);for(var d=-1,e=c-b||0,f=Array(0>e?0:e);++d<e;)f[d]=a[b+d];return f}function p(a){function b(a){return a&&"object"==typeof a&&!Zc(a)&&Hc.call(a,"__wrapped__")?a:new c(a)}function c(a,b){this.__chain__=!!b,this.__wrapped__=a}function f(a){function b(){if(d){var a=o(d);Ic.apply(a,arguments)}if(this instanceof b){var f=s(c.prototype),g=c.apply(f,a||arguments);return Ea(g)?g:f}return c.apply(e,a||arguments)}var c=a[0],d=a[2],e=a[4];return Yc(b,a),b}function r(a,b,c,d,e){if(c){var f=c(a);if("undefined"!=typeof f)return f}var g=Ea(a);if(!g)return a;var h=Ac.call(a);if(!U[h])return a;var i=Wc[h];switch(h){case N:case O:return new i(+a);case Q:case T:return new i(a);case S:return f=i(a.source,C.exec(a)),f.lastIndex=a.lastIndex,f}var j=Zc(a);if(b){var l=!d;d||(d=k()),e||(e=k());for(var n=d.length;n--;)if(d[n]==a)return e[n];f=j?i(a.length):{}}else f=j?o(a):ed({},a);return j&&(Hc.call(a,"index")&&(f.index=a.index),Hc.call(a,"input")&&(f.input=a.input)),b?(d.push(a),e.push(f),(j?Ya:hd)(a,function(a,g){f[g]=r(a,b,c,d,e)}),l&&(m(d),m(e)),f):f}function s(a,b){return Ea(a)?Nc(a):{}}function w(a,b,c){if("function"!=typeof a)return Zb;if("undefined"==typeof b||!("prototype"in a))return a;var d=a.__bindData__;if("undefined"==typeof d&&(Xc.funcNames&&(d=!a.name),d=d||!Xc.funcDecomp,!d)){var e=Fc.call(a);Xc.funcNames||(d=!D.test(e)),d||(d=H.test(e),Yc(a,d))}if(d===!1||d!==!0&&1&d[1])return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)}}return Ib(a,b)}function Y(a){function b(){var a=i?g:this;if(e){var n=o(e);Ic.apply(n,arguments)}if((f||k)&&(n||(n=o(arguments)),f&&Ic.apply(n,f),k&&n.length<h))return d|=16,Y([c,l?d:-4&d,n,null,g,h]);if(n||(n=arguments),j&&(c=a[m]),this instanceof b){a=s(c.prototype);var p=c.apply(a,n);return Ea(p)?p:a}return c.apply(a,n)}var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],i=1&d,j=2&d,k=4&d,l=8&d,m=c;return Yc(b,a),b}function $(a,b){var c=-1,f=ia(),g=a?a.length:0,h=g>=v&&f===d,j=[];if(h){var k=i(b);k?(f=e,b=k):h=!1}for(;++c<g;){var l=a[c];f(b,l)<0&&j.push(l)}return h&&n(b),j}function _(a,b,c,d){for(var e=(d||0)-1,f=a?a.length:0,g=[];++e<f;){var h=a[e];if(h&&"object"==typeof h&&"number"==typeof h.length&&(Zc(h)||ma(h))){b||(h=_(h,b,c));var i=-1,j=h.length,k=g.length;for(g.length+=j;++i<j;)g[k++]=h[i]}else c||g.push(h)}return g}function aa(a,b,c,d,e,f){if(c){var g=c(a,b);if("undefined"!=typeof g)return!!g}if(a===b)return 0!==a||1/a==1/b;var h=typeof a,i=typeof b;if(!(a!==a||a&&X[h]||b&&X[i]))return!1;if(null==a||null==b)return a===b;var j=Ac.call(a),l=Ac.call(b);if(j==L&&(j=R),l==L&&(l=R),j!=l)return!1;switch(j){case N:case O:return+a==+b;case Q:return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case S:case T:return a==vc(b)}var n=j==M;if(!n){var o=Hc.call(a,"__wrapped__"),p=Hc.call(b,"__wrapped__");if(o||p)return aa(o?a.__wrapped__:a,p?b.__wrapped__:b,c,d,e,f);if(j!=R)return!1;var q=a.constructor,r=b.constructor;if(q!=r&&!(Da(q)&&q instanceof q&&Da(r)&&r instanceof r)&&"constructor"in a&&"constructor"in b)return!1}var s=!e;e||(e=k()),f||(f=k());for(var t=e.length;t--;)if(e[t]==a)return f[t]==b;var u=0;if(g=!0,e.push(a),f.push(b),n){if(t=a.length,u=b.length,g=u==t,g||d)for(;u--;){var v=t,w=b[u];if(d)for(;v--&&!(g=aa(a[v],w,c,d,e,f)););else if(!(g=aa(a[u],w,c,d,e,f)))break}}else gd(b,function(b,h,i){return Hc.call(i,h)?(u++,g=Hc.call(a,h)&&aa(a[h],b,c,d,e,f)):void 0}),g&&!d&&gd(a,function(a,b,c){return Hc.call(c,b)?g=--u>-1:void 0});return e.pop(),f.pop(),s&&(m(e),m(f)),g}function ba(a,b,c,d,e){(Zc(b)?Ya:hd)(b,function(b,f){var g,h,i=b,j=a[f];if(b&&((h=Zc(b))||id(b))){for(var k=d.length;k--;)if(g=d[k]==b){j=e[k];break}if(!g){var l;c&&(i=c(j,b),(l="undefined"!=typeof i)&&(j=i)),l||(j=h?Zc(j)?j:[]:id(j)?j:{}),d.push(b),e.push(j),l||ba(j,b,c,d,e)}}else c&&(i=c(j,b),"undefined"==typeof i&&(i=b)),"undefined"!=typeof i&&(j=i);a[f]=j})}function da(a,b){return a+Ec(Vc()*(b-a+1))}function ea(a,b,c){var f=-1,g=ia(),h=a?a.length:0,j=[],l=!b&&h>=v&&g===d,o=c||l?k():j;if(l){var p=i(o);g=e,o=p}for(;++f<h;){var q=a[f],r=c?c(q,f,a):q;(b?!f||o[o.length-1]!==r:g(o,r)<0)&&((c||l)&&o.push(r),j.push(q))}return l?(m(o.array),n(o)):c&&m(o),j}function fa(a){return function(c,d,e){var f={};d=b.createCallback(d,e,3);var g=-1,h=c?c.length:0;if("number"==typeof h)for(;++g<h;){var i=c[g];a(f,i,d(i,g,c),c)}else hd(c,function(b,c,e){a(f,b,d(b,c,e),e)});return f}}function ga(a,b,c,d,e,g){var h=1&b,i=2&b,j=4&b,k=16&b,l=32&b;if(!i&&!Da(a))throw new wc;k&&!c.length&&(b&=-17,k=c=!1),l&&!d.length&&(b&=-33,l=d=!1);var m=a&&a.__bindData__;if(m&&m!==!0)return m=o(m),m[2]&&(m[2]=o(m[2])),m[3]&&(m[3]=o(m[3])),!h||1&m[1]||(m[4]=e),!h&&1&m[1]&&(b|=8),!j||4&m[1]||(m[5]=g),k&&Ic.apply(m[2]||(m[2]=[]),c),l&&Lc.apply(m[3]||(m[3]=[]),d),m[1]|=b,ga.apply(null,m);var n=1==b||17===b?f:Y;return n([a,b,c,d,e,g])}function ha(a){return ad[a]}function ia(){var a=(a=b.indexOf)===rb?d:a;return a}function ja(a){return"function"==typeof a&&Bc.test(a)}function ka(a){var b,c;return a&&Ac.call(a)==R&&(b=a.constructor,!Da(b)||b instanceof b)?(gd(a,function(a,b){c=b}),"undefined"==typeof c||Hc.call(a,c)):!1}function la(a){return bd[a]}function ma(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Ac.call(a)==L||!1}function na(a,b,c,d){return"boolean"!=typeof b&&null!=b&&(d=c,c=b,b=!1),r(a,b,"function"==typeof c&&w(c,d,1))}function oa(a,b,c){return r(a,!0,"function"==typeof b&&w(b,c,1))}function pa(a,b){var c=s(a);return b?ed(c,b):c}function qa(a,c,d){var e;return c=b.createCallback(c,d,3),hd(a,function(a,b,d){return c(a,b,d)?(e=b,!1):void 0}),e}function ra(a,c,d){var e;return c=b.createCallback(c,d,3),ta(a,function(a,b,d){return c(a,b,d)?(e=b,!1):void 0}),e}function sa(a,b,c){var d=[];gd(a,function(a,b){d.push(b,a)});var e=d.length;for(b=w(b,c,3);e--&&b(d[e--],d[e],a)!==!1;);return a}function ta(a,b,c){var d=_c(a),e=d.length;for(b=w(b,c,3);e--;){var f=d[e];if(b(a[f],f,a)===!1)break}return a}function ua(a){var b=[];return gd(a,function(a,c){Da(a)&&b.push(c)}),b.sort()}function va(a,b){return a?Hc.call(a,b):!1}function wa(a){for(var b=-1,c=_c(a),d=c.length,e={};++b<d;){var f=c[b];e[a[f]]=f}return e}function xa(a){return a===!0||a===!1||a&&"object"==typeof a&&Ac.call(a)==N||!1}function ya(a){return a&&"object"==typeof a&&Ac.call(a)==O||!1}function za(a){return a&&1===a.nodeType||!1}function Aa(a){var b=!0;if(!a)return b;var c=Ac.call(a),d=a.length;return c==M||c==T||c==L||c==R&&"number"==typeof d&&Da(a.splice)?!d:(hd(a,function(){return b=!1}),b)}function Ba(a,b,c,d){return aa(a,b,"function"==typeof c&&w(c,d,2))}function Ca(a){return Pc(a)&&!Qc(parseFloat(a))}function Da(a){return"function"==typeof a}function Ea(a){return!(!a||!X[typeof a])}function Fa(a){return Ha(a)&&a!=+a}function Ga(a){return null===a}function Ha(a){return"number"==typeof a||a&&"object"==typeof a&&Ac.call(a)==Q||!1}function Ia(a){return a&&"object"==typeof a&&Ac.call(a)==S||!1}function Ja(a){return"string"==typeof a||a&&"object"==typeof a&&Ac.call(a)==T||!1}function Ka(a){return"undefined"==typeof a}function La(a,c,d){var e={};return c=b.createCallback(c,d,3),hd(a,function(a,b,d){e[b]=c(a,b,d)}),e}function Ma(a){var b=arguments,c=2;if(!Ea(a))return a;if("number"!=typeof b[2]&&(c=b.length),c>3&&"function"==typeof b[c-2])var d=w(b[--c-1],b[c--],2);else c>2&&"function"==typeof b[c-1]&&(d=b[--c]);for(var e=o(arguments,1,c),f=-1,g=k(),h=k();++f<c;)ba(a,e[f],d,g,h);return m(g),m(h),a}function Na(a,c,d){var e={};if("function"!=typeof c){var f=[];gd(a,function(a,b){f.push(b)}),f=$(f,_(arguments,!0,!1,1));for(var g=-1,h=f.length;++g<h;){var i=f[g];e[i]=a[i]}}else c=b.createCallback(c,d,3),gd(a,function(a,b,d){c(a,b,d)||(e[b]=a)});return e}function Oa(a){for(var b=-1,c=_c(a),d=c.length,e=nc(d);++b<d;){var f=c[b];e[b]=[f,a[f]]}return e}function Pa(a,c,d){var e={};if("function"!=typeof c)for(var f=-1,g=_(arguments,!0,!1,1),h=Ea(a)?g.length:0;++f<h;){var i=g[f];i in a&&(e[i]=a[i])}else c=b.createCallback(c,d,3),gd(a,function(a,b,d){c(a,b,d)&&(e[b]=a)});return e}function Qa(a,c,d,e){var f=Zc(a);if(null==d)if(f)d=[];else{var g=a&&a.constructor,h=g&&g.prototype;d=s(h)}return c&&(c=b.createCallback(c,e,4),(f?Ya:hd)(a,function(a,b,e){return c(d,a,b,e)})),d}function Ra(a){for(var b=-1,c=_c(a),d=c.length,e=nc(d);++b<d;)e[b]=a[c[b]];return e}function Sa(a){for(var b=arguments,c=-1,d=_(b,!0,!1,1),e=b[2]&&b[2][b[1]]===a?1:d.length,f=nc(e);++c<e;)f[c]=a[d[c]];return f}function Ta(a,b,c){var d=-1,e=ia(),f=a?a.length:0,g=!1;return c=(0>c?Sc(0,f+c):c)||0,Zc(a)?g=e(a,b,c)>-1:"number"==typeof f?g=(Ja(a)?a.indexOf(b,c):e(a,b,c))>-1:hd(a,function(a){return++d>=c?!(g=a===b):void 0}),g}function Ua(a,c,d){var e=!0;c=b.createCallback(c,d,3);var f=-1,g=a?a.length:0;if("number"==typeof g)for(;++f<g&&(e=!!c(a[f],f,a)););else hd(a,function(a,b,d){return e=!!c(a,b,d)});return e}function Va(a,c,d){var e=[];c=b.createCallback(c,d,3);var f=-1,g=a?a.length:0;if("number"==typeof g)for(;++f<g;){var h=a[f];c(h,f,a)&&e.push(h)}else hd(a,function(a,b,d){c(a,b,d)&&e.push(a)});return e}function Wa(a,c,d){c=b.createCallback(c,d,3);var e=-1,f=a?a.length:0;if("number"!=typeof f){var g;return hd(a,function(a,b,d){return c(a,b,d)?(g=a,!1):void 0}),g}for(;++e<f;){var h=a[e];if(c(h,e,a))return h}}function Xa(a,c,d){var e;return c=b.createCallback(c,d,3),Za(a,function(a,b,d){return c(a,b,d)?(e=a,!1):void 0}),e}function Ya(a,b,c){var d=-1,e=a?a.length:0;if(b=b&&"undefined"==typeof c?b:w(b,c,3),"number"==typeof e)for(;++d<e&&b(a[d],d,a)!==!1;);else hd(a,b);return a}function Za(a,b,c){var d=a?a.length:0;if(b=b&&"undefined"==typeof c?b:w(b,c,3),"number"==typeof d)for(;d--&&b(a[d],d,a)!==!1;);else{var e=_c(a);d=e.length,hd(a,function(a,c,f){return c=e?e[--d]:--d,b(f[c],c,f)})}return a}function $a(a,b){var c=o(arguments,2),d=-1,e="function"==typeof b,f=a?a.length:0,g=nc("number"==typeof f?f:0);return Ya(a,function(a){g[++d]=(e?b:a[b]).apply(a,c)}),g}function _a(a,c,d){var e=-1,f=a?a.length:0;if(c=b.createCallback(c,d,3),"number"==typeof f)for(var g=nc(f);++e<f;)g[e]=c(a[e],e,a);else g=[],hd(a,function(a,b,d){g[++e]=c(a,b,d)});return g}function ab(a,c,d){var e=-(1/0),f=e;if("function"!=typeof c&&d&&d[c]===a&&(c=null),null==c&&Zc(a))for(var h=-1,i=a.length;++h<i;){var j=a[h];j>f&&(f=j)}else c=null==c&&Ja(a)?g:b.createCallback(c,d,3),Ya(a,function(a,b,d){var g=c(a,b,d);g>e&&(e=g,f=a)});return f}function bb(a,c,d){var e=1/0,f=e;if("function"!=typeof c&&d&&d[c]===a&&(c=null),null==c&&Zc(a))for(var h=-1,i=a.length;++h<i;){var j=a[h];f>j&&(f=j)}else c=null==c&&Ja(a)?g:b.createCallback(c,d,3),Ya(a,function(a,b,d){var g=c(a,b,d);e>g&&(e=g,f=a)});return f}function cb(a,c,d,e){if(!a)return d;var f=arguments.length<3;c=b.createCallback(c,e,4);var g=-1,h=a.length;if("number"==typeof h)for(f&&(d=a[++g]);++g<h;)d=c(d,a[g],g,a);else hd(a,function(a,b,e){d=f?(f=!1,a):c(d,a,b,e)});return d}function db(a,c,d,e){var f=arguments.length<3;return c=b.createCallback(c,e,4),Za(a,function(a,b,e){d=f?(f=!1,a):c(d,a,b,e)}),d}function eb(a,c,d){return c=b.createCallback(c,d,3),Va(a,function(a,b,d){return!c(a,b,d)})}function fb(a,b,c){if(a&&"number"!=typeof a.length&&(a=Ra(a)),null==b||c)return a?a[da(0,a.length-1)]:q;var d=gb(a);return d.length=Tc(Sc(0,b),d.length),d}function gb(a){var b=-1,c=a?a.length:0,d=nc("number"==typeof c?c:0);return Ya(a,function(a){var c=da(0,++b);d[b]=d[c],d[c]=a}),d}function hb(a){var b=a?a.length:0;return"number"==typeof b?b:_c(a).length}function ib(a,c,d){var e;c=b.createCallback(c,d,3);var f=-1,g=a?a.length:0;if("number"==typeof g)for(;++f<g&&!(e=c(a[f],f,a)););else hd(a,function(a,b,d){return!(e=c(a,b,d))});return!!e}function jb(a,c,d){var e=-1,f=Zc(c),g=a?a.length:0,i=nc("number"==typeof g?g:0);for(f||(c=b.createCallback(c,d,3)),Ya(a,function(a,b,d){var g=i[++e]=l();f?g.criteria=_a(c,function(b){return a[b]}):(g.criteria=k())[0]=c(a,b,d),g.index=e,g.value=a}),g=i.length,i.sort(h);g--;){var j=i[g];i[g]=j.value,f||m(j.criteria),n(j)}return i}function kb(a){return a&&"number"==typeof a.length?o(a):Ra(a)}function lb(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function mb(a){return $(a,_(arguments,!0,!0,1))}function nb(a,c,d){var e=-1,f=a?a.length:0;for(c=b.createCallback(c,d,3);++e<f;)if(c(a[e],e,a))return e;
  return-1}function ob(a,c,d){var e=a?a.length:0;for(c=b.createCallback(c,d,3);e--;)if(c(a[e],e,a))return e;return-1}function pb(a,c,d){var e=0,f=a?a.length:0;if("number"!=typeof c&&null!=c){var g=-1;for(c=b.createCallback(c,d,3);++g<f&&c(a[g],g,a);)e++}else if(e=c,null==e||d)return a?a[0]:q;return o(a,0,Tc(Sc(0,e),f))}function qb(a,b,c,d){return"boolean"!=typeof b&&null!=b&&(d=c,c="function"!=typeof b&&d&&d[b]===a?null:b,b=!1),null!=c&&(a=_a(a,c,d)),_(a,b)}function rb(a,b,c){if("number"==typeof c){var e=a?a.length:0;c=0>c?Sc(0,e+c):c||0}else if(c){var f=Ab(a,b);return a[f]===b?f:-1}return d(a,b,c)}function sb(a,c,d){var e=0,f=a?a.length:0;if("number"!=typeof c&&null!=c){var g=f;for(c=b.createCallback(c,d,3);g--&&c(a[g],g,a);)e++}else e=null==c||d?1:c||e;return o(a,0,Tc(Sc(0,f-e),f))}function tb(){for(var a=[],b=-1,c=arguments.length,f=k(),g=ia(),h=g===d,j=k();++b<c;){var l=arguments[b];(Zc(l)||ma(l))&&(a.push(l),f.push(h&&l.length>=v&&i(b?a[b]:j)))}var o=a[0],p=-1,q=o?o.length:0,r=[];a:for(;++p<q;){var s=f[0];if(l=o[p],(s?e(s,l):g(j,l))<0){for(b=c,(s||j).push(l);--b;)if(s=f[b],(s?e(s,l):g(a[b],l))<0)continue a;r.push(l)}}for(;c--;)s=f[c],s&&n(s);return m(f),m(j),r}function ub(a,c,d){var e=0,f=a?a.length:0;if("number"!=typeof c&&null!=c){var g=f;for(c=b.createCallback(c,d,3);g--&&c(a[g],g,a);)e++}else if(e=c,null==e||d)return a?a[f-1]:q;return o(a,Sc(0,f-e))}function vb(a,b,c){var d=a?a.length:0;for("number"==typeof c&&(d=(0>c?Sc(0,d+c):Tc(c,d-1))+1);d--;)if(a[d]===b)return d;return-1}function wb(a){for(var b=arguments,c=0,d=b.length,e=a?a.length:0;++c<d;)for(var f=-1,g=b[c];++f<e;)a[f]===g&&(Kc.call(a,f--,1),e--);return a}function xb(a,b,c){a=+a||0,c="number"==typeof c?c:+c||1,null==b&&(b=a,a=0);for(var d=-1,e=Sc(0,Cc((b-a)/(c||1))),f=nc(e);++d<e;)f[d]=a,a+=c;return f}function yb(a,c,d){var e=-1,f=a?a.length:0,g=[];for(c=b.createCallback(c,d,3);++e<f;){var h=a[e];c(h,e,a)&&(g.push(h),Kc.call(a,e--,1),f--)}return g}function zb(a,c,d){if("number"!=typeof c&&null!=c){var e=0,f=-1,g=a?a.length:0;for(c=b.createCallback(c,d,3);++f<g&&c(a[f],f,a);)e++}else e=null==c||d?1:Sc(0,c);return o(a,e)}function Ab(a,c,d,e){var f=0,g=a?a.length:f;for(d=d?b.createCallback(d,e,1):Zb,c=d(c);g>f;){var h=f+g>>>1;d(a[h])<c?f=h+1:g=h}return f}function Bb(){return ea(_(arguments,!0,!0))}function Cb(a,c,d,e){return"boolean"!=typeof c&&null!=c&&(e=d,d="function"!=typeof c&&e&&e[c]===a?null:c,c=!1),null!=d&&(d=b.createCallback(d,e,3)),ea(a,c,d)}function Db(a){return $(a,o(arguments,1))}function Eb(){for(var a=-1,b=arguments.length;++a<b;){var c=arguments[a];if(Zc(c)||ma(c))var d=d?ea($(d,c).concat($(c,d))):c}return d||[]}function Fb(){for(var a=arguments.length>1?arguments:arguments[0],b=-1,c=a?ab(md(a,"length")):0,d=nc(0>c?0:c);++b<c;)d[b]=md(a,b);return d}function Gb(a,b){var c=-1,d=a?a.length:0,e={};for(b||!d||Zc(a[0])||(b=[]);++c<d;){var f=a[c];b?e[f]=b[c]:f&&(e[f[0]]=f[1])}return e}function Hb(a,b){if(!Da(b))throw new wc;return function(){return--a<1?b.apply(this,arguments):void 0}}function Ib(a,b){return arguments.length>2?ga(a,17,o(arguments,2),null,b):ga(a,1,null,null,b)}function Jb(a){for(var b=arguments.length>1?_(arguments,!0,!1,1):ua(a),c=-1,d=b.length;++c<d;){var e=b[c];a[e]=ga(a[e],1,null,null,a)}return a}function Kb(a,b){return arguments.length>2?ga(b,19,o(arguments,2),null,a):ga(b,3,null,null,a)}function Lb(){for(var a=arguments,b=a.length;b--;)if(!Da(a[b]))throw new wc;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}}function Mb(a,b){return b="number"==typeof b?b:+b||a.length,ga(a,4,null,null,null,b)}function Nb(a,b,c){var d,e,f,g,h,i,j,k=0,l=!1,m=!0;if(!Da(a))throw new wc;if(b=Sc(0,b)||0,c===!0){var n=!0;m=!1}else Ea(c)&&(n=c.leading,l="maxWait"in c&&(Sc(b,c.maxWait)||0),m="trailing"in c?c.trailing:m);var o=function(){var c=b-(od()-g);if(0>=c){e&&Dc(e);var l=j;e=i=j=q,l&&(k=od(),f=a.apply(h,d),i||e||(d=h=null))}else i=Jc(o,c)},p=function(){i&&Dc(i),e=i=j=q,(m||l!==b)&&(k=od(),f=a.apply(h,d),i||e||(d=h=null))};return function(){if(d=arguments,g=od(),h=this,j=m&&(i||!n),l===!1)var c=n&&!i;else{e||n||(k=g);var q=l-(g-k),r=0>=q;r?(e&&(e=Dc(e)),k=g,f=a.apply(h,d)):e||(e=Jc(p,q))}return r&&i?i=Dc(i):i||b===l||(i=Jc(o,b)),c&&(r=!0,f=a.apply(h,d)),!r||i||e||(d=h=null),f}}function Ob(a){if(!Da(a))throw new wc;var b=o(arguments,1);return Jc(function(){a.apply(q,b)},1)}function Pb(a,b){if(!Da(a))throw new wc;var c=o(arguments,2);return Jc(function(){a.apply(q,c)},b)}function Qb(a,b){if(!Da(a))throw new wc;var c=function(){var d=c.cache,e=b?b.apply(this,arguments):u+arguments[0];return Hc.call(d,e)?d[e]:d[e]=a.apply(this,arguments)};return c.cache={},c}function Rb(a){var b,c;if(!Da(a))throw new wc;return function(){return b?c:(b=!0,c=a.apply(this,arguments),a=null,c)}}function Sb(a){return ga(a,16,o(arguments,1))}function Tb(a){return ga(a,32,null,o(arguments,1))}function Ub(a,b,c){var d=!0,e=!0;if(!Da(a))throw new wc;return c===!1?d=!1:Ea(c)&&(d="leading"in c?c.leading:d,e="trailing"in c?c.trailing:e),V.leading=d,V.maxWait=b,V.trailing=e,Nb(a,b,V)}function Vb(a,b){return ga(b,16,[a])}function Wb(a){return function(){return a}}function Xb(a,b,c){var d=typeof a;if(null==a||"function"==d)return w(a,b,c);if("object"!=d)return bc(a);var e=_c(a),f=e[0],g=a[f];return 1!=e.length||g!==g||Ea(g)?function(b){for(var c=e.length,d=!1;c--&&(d=aa(b[e[c]],a[e[c]],null,!0)););return d}:function(a){var b=a[f];return g===b&&(0!==g||1/g==1/b)}}function Yb(a){return null==a?"":vc(a).replace(dd,ha)}function Zb(a){return a}function $b(a,d,e){var f=!0,g=d&&ua(d);d&&(e||g.length)||(null==e&&(e=d),h=c,d=a,a=b,g=ua(d)),e===!1?f=!1:Ea(e)&&"chain"in e&&(f=e.chain);var h=a,i=Da(h);Ya(g,function(b){var c=a[b]=d[b];i&&(h.prototype[b]=function(){var b=this.__chain__,d=this.__wrapped__,e=[d];Ic.apply(e,arguments);var g=c.apply(a,e);if(f||b){if(d===g&&Ea(g))return this;g=new h(g),g.__chain__=b}return g})})}function _b(){return a._=zc,this}function ac(){}function bc(a){return function(b){return b[a]}}function cc(a,b,c){var d=null==a,e=null==b;if(null==c&&("boolean"==typeof a&&e?(c=a,a=1):e||"boolean"!=typeof b||(c=b,e=!0)),d&&e&&(b=1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=Vc();return Tc(a+f*(b-a+parseFloat("1e-"+((f+"").length-1))),b)}return da(a,b)}function dc(a,b){if(a){var c=a[b];return Da(c)?a[b]():c}}function ec(a,c,d){var e=b.templateSettings;a=vc(a||""),d=fd({},d,e);var f,g=fd({},d.imports,e.imports),h=_c(g),i=Ra(g),k=0,l=d.interpolate||G,m="__p += '",n=uc((d.escape||G).source+"|"+l.source+"|"+(l===E?B:G).source+"|"+(d.evaluate||G).source+"|$","g");a.replace(n,function(b,c,d,e,g,h){return d||(d=e),m+=a.slice(k,h).replace(I,j),c&&(m+="' +\n__e("+c+") +\n'"),g&&(f=!0,m+="';\n"+g+";\n__p += '"),d&&(m+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=h+b.length,b}),m+="';\n";var o=d.variable,p=o;p||(o="obj",m="with ("+o+") {\n"+m+"\n}\n"),m=(f?m.replace(y,""):m).replace(z,"$1").replace(A,"$1;"),m="function("+o+") {\n"+(p?"":o+" || ("+o+" = {});\n")+"var __t, __p = '', __e = _.escape"+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var r="\n/*\n//# sourceURL="+(d.sourceURL||"/lodash/template/source["+K++ +"]")+"\n*/";try{var s=qc(h,"return "+m+r).apply(q,i)}catch(t){throw t.source=m,t}return c?s(c):(s.source=m,s)}function fc(a,b,c){a=(a=+a)>-1?a:0;var d=-1,e=nc(a);for(b=w(b,c,1);++d<a;)e[d]=b(d);return e}function gc(a){return null==a?"":vc(a).replace(cd,la)}function hc(a){var b=++t;return vc(null==a?"":a)+b}function ic(a){return a=new c(a),a.__chain__=!0,a}function jc(a,b){return b(a),a}function kc(){return this.__chain__=!0,this}function lc(){return vc(this.__wrapped__)}function mc(){return this.__wrapped__}a=a?ca.defaults(Z.Object(),a,ca.pick(Z,J)):Z;var nc=a.Array,oc=a.Boolean,pc=a.Date,qc=a.Function,rc=a.Math,sc=a.Number,tc=a.Object,uc=a.RegExp,vc=a.String,wc=a.TypeError,xc=[],yc=tc.prototype,zc=a._,Ac=yc.toString,Bc=uc("^"+vc(Ac).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Cc=rc.ceil,Dc=a.clearTimeout,Ec=rc.floor,Fc=qc.prototype.toString,Gc=ja(Gc=tc.getPrototypeOf)&&Gc,Hc=yc.hasOwnProperty,Ic=xc.push,Jc=a.setTimeout,Kc=xc.splice,Lc=xc.unshift,Mc=function(){try{var a={},b=ja(b=tc.defineProperty)&&b,c=b(a,a,a)&&b}catch(d){}return c}(),Nc=ja(Nc=tc.create)&&Nc,Oc=ja(Oc=nc.isArray)&&Oc,Pc=a.isFinite,Qc=a.isNaN,Rc=ja(Rc=tc.keys)&&Rc,Sc=rc.max,Tc=rc.min,Uc=a.parseInt,Vc=rc.random,Wc={};Wc[M]=nc,Wc[N]=oc,Wc[O]=pc,Wc[P]=qc,Wc[R]=tc,Wc[Q]=sc,Wc[S]=uc,Wc[T]=vc,c.prototype=b.prototype;var Xc=b.support={};Xc.funcDecomp=!ja(a.WinRTError)&&H.test(p),Xc.funcNames="string"==typeof qc.name,b.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:E,variable:"",imports:{_:b}},Nc||(s=function(){function b(){}return function(c){if(Ea(c)){b.prototype=c;var d=new b;b.prototype=null}return d||a.Object()}}());var Yc=Mc?function(a,b){W.value=b,Mc(a,"__bindData__",W),W.value=null}:ac,Zc=Oc||function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Ac.call(a)==M||!1},$c=function(a){var b,c=a,d=[];if(!c)return d;if(!X[typeof a])return d;for(b in c)Hc.call(c,b)&&d.push(b);return d},_c=Rc?function(a){return Ea(a)?Rc(a):[]}:$c,ad={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bd=wa(ad),cd=uc("("+_c(bd).join("|")+")","g"),dd=uc("["+_c(ad).join("")+"]","g"),ed=function(a,b,c){var d,e=a,f=e;if(!e)return f;var g=arguments,h=0,i="number"==typeof c?2:g.length;if(i>3&&"function"==typeof g[i-2])var j=w(g[--i-1],g[i--],2);else i>2&&"function"==typeof g[i-1]&&(j=g[--i]);for(;++h<i;)if(e=g[h],e&&X[typeof e])for(var k=-1,l=X[typeof e]&&_c(e),m=l?l.length:0;++k<m;)d=l[k],f[d]=j?j(f[d],e[d]):e[d];return f},fd=function(a,b,c){var d,e=a,f=e;if(!e)return f;for(var g=arguments,h=0,i="number"==typeof c?2:g.length;++h<i;)if(e=g[h],e&&X[typeof e])for(var j=-1,k=X[typeof e]&&_c(e),l=k?k.length:0;++j<l;)d=k[j],"undefined"==typeof f[d]&&(f[d]=e[d]);return f},gd=function(a,b,c){var d,e=a,f=e;if(!e)return f;if(!X[typeof e])return f;b=b&&"undefined"==typeof c?b:w(b,c,3);for(d in e)if(b(e[d],d,a)===!1)return f;return f},hd=function(a,b,c){var d,e=a,f=e;if(!e)return f;if(!X[typeof e])return f;b=b&&"undefined"==typeof c?b:w(b,c,3);for(var g=-1,h=X[typeof e]&&_c(e),i=h?h.length:0;++g<i;)if(d=h[g],b(e[d],d,a)===!1)return f;return f},id=Gc?function(a){if(!a||Ac.call(a)!=R)return!1;var b=a.valueOf,c=ja(b)&&(c=Gc(b))&&Gc(c);return c?a==c||Gc(a)==c:ka(a)}:ka,jd=fa(function(a,b,c){Hc.call(a,c)?a[c]++:a[c]=1}),kd=fa(function(a,b,c){(Hc.call(a,c)?a[c]:a[c]=[]).push(b)}),ld=fa(function(a,b,c){a[c]=b}),md=_a,nd=Va,od=ja(od=pc.now)&&od||function(){return(new pc).getTime()},pd=8==Uc(x+"08")?Uc:function(a,b){return Uc(Ja(a)?a.replace(F,""):a,b||0)};return b.after=Hb,b.assign=ed,b.at=Sa,b.bind=Ib,b.bindAll=Jb,b.bindKey=Kb,b.chain=ic,b.compact=lb,b.compose=Lb,b.constant=Wb,b.countBy=jd,b.create=pa,b.createCallback=Xb,b.curry=Mb,b.debounce=Nb,b.defaults=fd,b.defer=Ob,b.delay=Pb,b.difference=mb,b.filter=Va,b.flatten=qb,b.forEach=Ya,b.forEachRight=Za,b.forIn=gd,b.forInRight=sa,b.forOwn=hd,b.forOwnRight=ta,b.functions=ua,b.groupBy=kd,b.indexBy=ld,b.initial=sb,b.intersection=tb,b.invert=wa,b.invoke=$a,b.keys=_c,b.map=_a,b.mapValues=La,b.max=ab,b.memoize=Qb,b.merge=Ma,b.min=bb,b.omit=Na,b.once=Rb,b.pairs=Oa,b.partial=Sb,b.partialRight=Tb,b.pick=Pa,b.pluck=md,b.property=bc,b.pull=wb,b.range=xb,b.reject=eb,b.remove=yb,b.rest=zb,b.shuffle=gb,b.sortBy=jb,b.tap=jc,b.throttle=Ub,b.times=fc,b.toArray=kb,b.transform=Qa,b.union=Bb,b.uniq=Cb,b.values=Ra,b.where=nd,b.without=Db,b.wrap=Vb,b.xor=Eb,b.zip=Fb,b.zipObject=Gb,b.collect=_a,b.drop=zb,b.each=Ya,b.eachRight=Za,b.extend=ed,b.methods=ua,b.object=Gb,b.select=Va,b.tail=zb,b.unique=Cb,b.unzip=Fb,$b(b),b.clone=na,b.cloneDeep=oa,b.contains=Ta,b.escape=Yb,b.every=Ua,b.find=Wa,b.findIndex=nb,b.findKey=qa,b.findLast=Xa,b.findLastIndex=ob,b.findLastKey=ra,b.has=va,b.identity=Zb,b.indexOf=rb,b.isArguments=ma,b.isArray=Zc,b.isBoolean=xa,b.isDate=ya,b.isElement=za,b.isEmpty=Aa,b.isEqual=Ba,b.isFinite=Ca,b.isFunction=Da,b.isNaN=Fa,b.isNull=Ga,b.isNumber=Ha,b.isObject=Ea,b.isPlainObject=id,b.isRegExp=Ia,b.isString=Ja,b.isUndefined=Ka,b.lastIndexOf=vb,b.mixin=$b,b.noConflict=_b,b.noop=ac,b.now=od,b.parseInt=pd,b.random=cc,b.reduce=cb,b.reduceRight=db,b.result=dc,b.runInContext=p,b.size=hb,b.some=ib,b.sortedIndex=Ab,b.template=ec,b.unescape=gc,b.uniqueId=hc,b.all=Ua,b.any=ib,b.detect=Wa,b.findWhere=Wa,b.foldl=cb,b.foldr=db,b.include=Ta,b.inject=cb,$b(function(){var a={};return hd(b,function(c,d){b.prototype[d]||(a[d]=c)}),a}(),!1),b.first=pb,b.last=ub,b.sample=fb,b.take=pb,b.head=pb,hd(b,function(a,d){var e="sample"!==d;b.prototype[d]||(b.prototype[d]=function(b,d){var f=this.__chain__,g=a(this.__wrapped__,b,d);return f||null!=b&&(!d||e&&"function"==typeof b)?new c(g,f):g})}),b.VERSION="2.4.2",b.prototype.chain=kc,b.prototype.toString=lc,b.prototype.value=mc,b.prototype.valueOf=mc,Ya(["join","pop","shift"],function(a){var d=xc[a];b.prototype[a]=function(){var a=this.__chain__,b=d.apply(this.__wrapped__,arguments);return a?new c(b,a):b}}),Ya(["push","reverse","sort","unshift"],function(a){var c=xc[a];b.prototype[a]=function(){return c.apply(this.__wrapped__,arguments),this}}),Ya(["concat","slice","splice"],function(a){var d=xc[a];b.prototype[a]=function(){return new c(d.apply(this.__wrapped__,arguments),this.__chain__)}}),b}var q,r=[],s=[],t=0,u=+new Date+"",v=75,w=40,x=" 	\f \ufeff\n\r\u2028\u2029 ᠎             　",y=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,A=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C=/\w*$/,D=/^\s*function[ \n\r\t]+\w/,E=/<%=([\s\S]+?)%>/g,F=RegExp("^["+x+"]*0+(?=.$)"),G=/($^)/,H=/\bthis\b/,I=/['\n\r\t\u2028\u2029\\]/g,J=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],K=0,L="[object Arguments]",M="[object Array]",N="[object Boolean]",O="[object Date]",P="[object Function]",Q="[object Number]",R="[object Object]",S="[object RegExp]",T="[object String]",U={};U[P]=!1,U[L]=U[M]=U[N]=U[O]=U[Q]=U[R]=U[S]=U[T]=!0;var V={leading:!1,maxWait:0,trailing:!1},W={configurable:!1,enumerable:!1,value:null,writable:!1},X={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Y={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},Z=X[typeof window]&&window||this,$=X[typeof c]&&c&&!c.nodeType&&c,_=X[typeof b]&&b&&!b.nodeType&&b,aa=_&&_.exports===$&&$,ba=X[typeof a]&&a;!ba||ba.global!==ba&&ba.window!==ba||(Z=ba);var ca=p();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Z._=ca,define(function(){return ca})):$&&_?aa?(_.exports=ca)._=ca:$._=ca:Z._=ca}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);