From ade2ec525f67b1f871ddab512a24fd4a76d51bb4 Mon Sep 17 00:00:00 2001 From: mbforr Date: Mon, 10 Sep 2018 18:47:13 -0400 Subject: [PATCH] clean up --- package.json | 2 +- public/dist/bundle.js | 24 ++++++++++++------------ public/dist/bundle.js.map | 2 +- src/actions/mapsettings.js | 24 ------------------------ src/components/RightBar.js | 2 +- src/components/widgets/Histogram.js | 8 ++++++-- yarn.lock | 6 +++--- 7 files changed, 24 insertions(+), 44 deletions(-) delete mode 100644 src/actions/mapsettings.js diff --git a/package.json b/package.json index 4bb9507..5d832b9 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@carto/airship": "^1.0.0-alpha.14", "@carto/airship-icons": "^1.0.0-alpha-27.0", "@carto/airship-style": "1.0.0-alpha.37", - "@carto/carto.js": "^4.0.8", + "@carto/carto.js": "^4.1.6", "axios": "^0.18.0", "babel-cli": "6.24.1", "babel-core": "6.25.0", diff --git a/public/dist/bundle.js b/public/dist/bundle.js index c4ba8dd..61917b0 100644 --- a/public/dist/bundle.js +++ b/public/dist/bundle.js @@ -1,9 +1,9 @@ !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=44)}([function(e,t,n){"use strict";e.exports=n(45)},function(e,t,n){"use strict";var r=n(90);n.d(t,"a",function(){return r.a});var i=n(96);n.d(t,"b",function(){return i.a});var o=n(97);n.d(t,"c",function(){return o.a});var a=n(36);n.d(t,"d",function(){return a.a});var s=n(19);n.d(t,"e",function(){return s.a});var u=n(100);n.d(t,"f",function(){return u.a});var l=n(101);n.d(t,"g",function(){return l.a});var c=n(20);n.d(t,"h",function(){return c.a});var f=n(102);n.d(t,"i",function(){return f.a})},function(e,t,n){e.exports=n(91)()},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53),i=n(26),o=n(59);n.d(t,"Provider",function(){return r.b}),n.d(t,"createProvider",function(){return r.a}),n.d(t,"connectAdvanced",function(){return i.a}),n.d(t,"connect",function(){return o.a})},function(e,t,n){/*! * CARTO.js https://carto.com/ - * Version: 4.1.3 + * Version: 4.1.6 * */ -!function(t,n){e.exports=n()}(window,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=44)}([function(e,t,n){var r,i;(function(){function n(e){function t(t,n,r,i,o,a){for(;o>=0&&o0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=e),t(n,r,i,a,u,s)}}function o(e){return function(t,n,r){n=k(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(d.call(r,a,s),x.isNaN),o>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o=0&&t<=M};x.each=x.forEach=function(e,t,n){t=C(t,n);var r,i;if(L(e))for(r=0,i=e.length;r=0},x.invoke=function(e,t){var n=d.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t&&null!=e){e=L(e)?e:x.values(e);for(var s=0,u=e.length;so&&(o=r)}else t=k(t,n),x.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},x.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t&&null!=e){e=L(e)?e:x.values(e);for(var s=0,u=e.length;sr||void 0===n)return 1;if(nt?(a&&(clearTimeout(a),a=null),s=l,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,c)),o}},x.debounce=function(e,t,n){var r,i,o,a,s,u=function(){var l=x.now()-a;l=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=x.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(o,i),o=i=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},x.once=x.partial(x.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(v)return v(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return R&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return R&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},B=x.invert(j),F=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};x.escape=F(j),x.unescape=F(B),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var z=0;x.uniqueId=function(e){var t=++z+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var U=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(e){return"\\"+q[e]};x.template=function(e,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||U).source,(t.interpolate||U).source,(t.evaluate||U).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(t,n,r,a,s){return o+=e.slice(i,s).replace(H,W),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t}),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(t.variable||"obj","_",o)}catch(e){throw e.source=o,e}var s=function(e){return a.call(this,e,x)};return s.source="function("+(t.variable||"obj")+"){\n"+o+"}",s},x.chain=function(e){var t=x(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return p.apply(e,arguments),Z(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Z(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return x}.apply(t,r))&&(e.exports=i)}).call(this)},function(e,t,n){(function(r){var i,o;!function(a){var s="object"==typeof self&&self.self==self&&self||"object"==typeof r&&r.global==r&&r;i=[n(0),n(9),t],void 0!==(o=function(e,t,n){s.Backbone=a(s,n,e,t)}.apply(t,i))&&(e.exports=o)}(function(e,t,n,r){var i=e.Backbone,o=Array.prototype.slice;t.VERSION="1.2.3",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var a=function(e,t,r){switch(e){case 1:return function(){return n[t](this[r])};case 2:return function(e){return n[t](this[r],e)};case 3:return function(e,i){return n[t](this[r],u(e,this),i)};case 4:return function(e,i,o){return n[t](this[r],u(e,this),i,o)};default:return function(){var e=o.call(arguments);return e.unshift(this[r]),n[t].apply(n,e)}}},s=function(e,t,r){n.each(t,function(t,i){n[i]&&(e.prototype[i]=a(t,i,r))})},u=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?l(e):n.isString(e)?function(t){return t.get(e)}:e},l=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},c=t.Events={},f=/\s+/,h=function(e,t,r,i,o){var a,s=0;if(r&&"object"==typeof r){void 0!==i&&"context"in o&&void 0===o.context&&(o.context=i);for(a=n.keys(r);s7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(N,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var o=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),D.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!D.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;if(e=this.decodeFragment(e.replace(I,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new D;var j=function(e,t){var r,i=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,t);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,e&&n.extend(r.prototype,e),r.__super__=i.prototype,r};_.extend=b.extend=M.extend=k.extend=D.extend=j;var B=function(){throw new Error('A "url" property or function must be specified')},F=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t})}).call(this,n(17))},function(e,t,n){"use strict";var r=n(9),i=n(0),o=n(1),a=o.Model.extend({initialize:function(e){return i.bindAll(this,"fetch","save","retrigger"),o.Model.prototype.initialize.call(this,e)},fetch:function(e){var t=this;this.trigger("loadModelStarted"),r.when(o.Model.prototype.fetch.call(this,e)).done(function(e){t.trigger("loadModelCompleted",e,t)}).fail(function(e){t.trigger("loadModelFailed",e,t)})},setIdAttribute:function(e){this.idAttribute=e},retrigger:function(e,t,n){n||(n=e);var r=this;t.bind&&t.bind(e,function(){r.trigger(n)},r)},save:function(e,t){var n=this;t&&t.silent||this.trigger("saving");var i=o.Model.prototype.save.apply(this,arguments);return r.when(i).done(function(){t&&t.silent||n.trigger("saved")}).fail(function(){t&&t.silent||n.trigger("errorSaving")}),i}});e.exports=a},function(e,t,n){"use strict";function r(e,t){t=t||{};var n=Object.create(Error.prototype);n.message=e&&e.message||f,n.origin=e&&e.origin||h,n.type=e&&e.type||"",i(e)&&(n=a(e,t.layers,t.analysis)),o(e)&&(n=s(e));var r=l.getExtraFields(n);return n.message=r.friendlyMessage,n.errorCode=r.errorCode,n.name="CartoError",n.stack=(new Error).stack,n.originalError=e,c.track(n),n}function i(e){return e&&"windshaft"===e.origin}function o(e){return e&&e.responseText}function a(e,t,n){var r=Object.create(Error.prototype);return r.message=e.message,r.origin=e.origin,r.type=e.type,"layer"===e.type&&t&&(r.layer=t.findById(e.layerId)),"analysis"===e.type&&(n&&(r.source=n,r.sourceId=n.getId&&n.getId()),e.analysisId&&(r.sourceId=e.analysisId)),r}function s(e){var t=Object.create(Error.prototype);return t.message=u(e),t.origin="ajax",t.type=e.statusText,t}function u(e){var t="";try{t=JSON.parse(e.responseText).errors[0]}catch(e){}return t||f}var l=n(51),c=n(56),f="unexpected error",h="generic";e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return new i({origin:"validation",type:e,message:t},n)}var i=n(3);e.exports=r},function(e,t,n){"use strict";function r(e){return o.contains(a,e)}function i(e){return o.contains(u,e)}var o=n(0),a={COUNT:"count",SUM:"sum",AVG:"avg",MAX:"max",MIN:"min"},s={NOT_LOADED:"notLoaded",LOADING:"loading",LOADED:"loaded",ERROR:"error"},u={AUTO:"auto",MILLENNIUM:"millennium",CENTURY:"century",DECADE:"decade",YEAR:"year",QUARTER:"quarter",MONTH:"month",WEEK:"week",DAY:"day",HOUR:"hour",MINUTE:"minute"};e.exports={operation:a,status:s,timeAggregation:u,isValidOperation:r,isValidTimeAggregation:i,ATTRIBUTION:'© OpenStreetMap contributors, © CARTO'}},function(e,t,n){"use strict";var r=n(0),i={};i.isCORSSupported=function(){return"withCredentials"in new XMLHttpRequest},i.array2hex=function(e){for(var t=[],n=0;n>18&63,o=u>>12&63,a=u>>6&63,s=63&u,p[f++]=l.charAt(i)+l.charAt(o)+l.charAt(a)+l.charAt(s)}while(c>>8^t[255&(n^e.charCodeAt(r))];return(-1^n)>>>0},i._makeCRCTable=function(){for(var e,t=[],n=0;n<256;++n){e=n;for(var r=0;r<8;++r)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t},i._inferBrowser=function(e){var t={};return e=e||"undefined"!=typeof window&&window.navigator.userAgent||"",!function(){var t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}()?e.indexOf("Edge/")>-1?t.edge=e:e.indexOf("Chrome")>-1?t.chrome=e:e.indexOf("Firefox")>-1?t.firefox=e:e.indexOf("Opera")>-1?t.opera=e:e.indexOf("Safari")>-1&&(t.safari=e):t.ie={version:function(){return document.compatMode?window.XMLHttpRequest?document.querySelector?document.addEventListener?window.atob?document.all?10:11:9:8:7:6:5}()},t},i.browser=i._inferBrowser(),i.isMobileDevice=function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},i.supportsTouch=function(){return"ontouchstart"in window||navigator.msMaxTouchPoints};var o=null;i.isWebGLSupported=function(){if(null===o){var e=document.createElement("canvas");o=!(!window.WebGLRenderingContext||!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}return o},i.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},i.checkRequiredOpts=function(e,t,n){r.each(t,function(t){if(r.isUndefined(e[t]))throw new Error(t+" is required"+(n?" to initialize "+n:""))})},i.isLeafletLoaded=function(){if(!window.L)throw new Error("Leaflet is required");if(window.L.version<"1.0.0")throw new Error("Leaflet +1.0 is required")},i.isGoogleMapsLoaded=function(){if(!window.google)throw new Error("Google Maps is required");if(!window.google.maps)throw new Error("Google Maps is required");if(window.google.maps.version<"3.31.0")throw new Error("Google Maps version should be >= 3.31")},e.exports=i},function(e,t,n){"use strict";function r(){}var i=n(0),o=n(1),a=n(4);i.extend(r.prototype,o.Events),r.prototype._getValidationError=function(e){return new a("filter",e)},e.exports=r},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(2),a=n(6),s=["camshaftReference","engine"],u={PENDING:"pending",WAITING:"waiting",RUNNING:"running",FAILED:"failed",READY:"ready"},l=o.extend({initialize:function(e,t){t=t||{},a.checkRequiredOpts(t,s,"AnalysisModel"),this._camshaftReference=t.camshaftReference,this._engine=t.engine,this._initBinds(),this._referencedBy={}},url:function(){var e=this.get("url");if(e){if(this.get("apiKey"))e+="?api_key="+this.get("apiKey");else if(this.get("authToken")){var t=this.get("authToken");if(t instanceof Array){var n=r.map(t,function(e){return"auth_token[]="+e});e+="?"+n.join("&")}else e+="?auth_token="+t}return e}},setOk:function(){this.unset("error")},setError:function(e){this.set({error:e,status:u.FAILED})},_initBinds:function(){this.bind("change:type",function(){this.unbind(null,null,this),this._initBinds(),this._reload()},this),r.each(this.getParamNames(),function(e){this.bind("change:"+e,this._reload,this)},this),this.bind("change:status",function(){this._hadStatus()&&this.isReady()&&this.isSourceOfAnyModel()&&this._reload()},this)},_hadStatus:function(){return this.previous("status")},_reload:function(){this._engine.reload({error:this._onMapReloadError.bind(this)})},_onMapReloadError:function(){this.set("status",u.FAILED)},remove:function(){this.trigger("destroy",this),this.stopListening()},findAnalysisById:function(e){return this.get("id")===e?this:r.chain(this._getSourceNames()).map(function(t){var n=this.get(t);if(n)return n.findAnalysisById(e)},this).compact().value()[0]},_getSourceNames:function(){return this._camshaftReference.getSourceNamesForAnalysisType(this.get("type"))},isDone:function(){return this._hasStatus([u.READY,u.FAILED])},isLoading:function(){return this._hasStatus([u.PENDING,u.WAITING,u.RUNNING])},isReady:function(){return this._hasStatus(u.READY)},isFailed:function(){return this._hasStatus(u.FAILED)},_hasStatus:function(e){return r.isArray(e)||(e=[e]),r.contains(e,this._getStatus())},_getStatus:function(){return this.get("status")},toJSON:function(){var e=r.pick(this.attributes,"id","type");e.params=r.pick(this.attributes,this.getParamNames());var t=this._getSourceNames();return r.each(t,function(t){var n={},i=this.get(t);i&&(n[t]=i.toJSON(),r.extend(e.params,n))},this),e},getParamNames:function(){return this._camshaftReference.getParamNamesForAnalysisType(this.get("type"))},getNodes:function(){var e=[this];return"source"!==this.get("type")&&r.forEach(this._getSourceNames(),function(t){var n=this.get(t);n&&(e=e.concat(n.getNodes()))},this),e},getNodesCollection:function(){return new i.Collection(this.getNodes())},equals:function(e){return e instanceof l&&this.get("id")===e.get("id")},markAsSourceOf:function(e){this._referencedBy[e.cid]=!0},isSourceOfAnyModel:function(){return Object.keys(this._referencedBy).length>0},isSourceOf:function(e){return!!this._referencedBy[e.cid]},unmarkAsSourceOf:function(e){delete this._referencedBy[e.cid]}},{STATUS:u});e.exports=l},function(e,t,n){var r,i;/*! +!function(t,n){e.exports=n()}(window,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=44)}([function(e,t,n){var r,i;(function(){function n(e){function t(t,n,r,i,o,a){for(;o>=0&&o0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=e),t(n,r,i,a,u,s)}}function o(e){return function(t,n,r){n=k(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(d.call(r,a,s),x.isNaN),o>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o=0&&t<=M};x.each=x.forEach=function(e,t,n){t=C(t,n);var r,i;if(O(e))for(r=0,i=e.length;r=0},x.invoke=function(e,t){var n=d.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t&&null!=e){e=O(e)?e:x.values(e);for(var s=0,u=e.length;so&&(o=r)}else t=k(t,n),x.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},x.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t&&null!=e){e=O(e)?e:x.values(e);for(var s=0,u=e.length;sr||void 0===n)return 1;if(nt?(a&&(clearTimeout(a),a=null),s=l,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,c)),o}},x.debounce=function(e,t,n){var r,i,o,a,s,u=function(){var l=x.now()-a;l=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=x.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(o,i),o=i=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},x.once=x.partial(x.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(v)return v(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return R&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return R&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},B=x.invert(j),F=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};x.escape=F(j),x.unescape=F(B),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var z=0;x.uniqueId=function(e){var t=++z+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var U=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(e){return"\\"+q[e]};x.template=function(e,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||U).source,(t.interpolate||U).source,(t.evaluate||U).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(t,n,r,a,s){return o+=e.slice(i,s).replace(H,W),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t}),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(t.variable||"obj","_",o)}catch(e){throw e.source=o,e}var s=function(e){return a.call(this,e,x)};return s.source="function("+(t.variable||"obj")+"){\n"+o+"}",s},x.chain=function(e){var t=x(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return p.apply(e,arguments),Z(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Z(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return x}.apply(t,r))&&(e.exports=i)}).call(this)},function(e,t,n){(function(r){var i,o;!function(a){var s="object"==typeof self&&self.self==self&&self||"object"==typeof r&&r.global==r&&r;i=[n(0),n(9),t],void 0!==(o=function(e,t,n){s.Backbone=a(s,n,e,t)}.apply(t,i))&&(e.exports=o)}(function(e,t,n,r){var i=e.Backbone,o=Array.prototype.slice;t.VERSION="1.2.3",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var a=function(e,t,r){switch(e){case 1:return function(){return n[t](this[r])};case 2:return function(e){return n[t](this[r],e)};case 3:return function(e,i){return n[t](this[r],u(e,this),i)};case 4:return function(e,i,o){return n[t](this[r],u(e,this),i,o)};default:return function(){var e=o.call(arguments);return e.unshift(this[r]),n[t].apply(n,e)}}},s=function(e,t,r){n.each(t,function(t,i){n[i]&&(e.prototype[i]=a(t,i,r))})},u=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?l(e):n.isString(e)?function(t){return t.get(e)}:e},l=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},c=t.Events={},f=/\s+/,h=function(e,t,r,i,o){var a,s=0;if(r&&"object"==typeof r){void 0!==i&&"context"in o&&void 0===o.context&&(o.context=i);for(a=n.keys(r);s7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(N,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var o=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),D.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!D.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;if(e=this.decodeFragment(e.replace(I,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new D;var j=function(e,t){var r,i=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,t);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,e&&n.extend(r.prototype,e),r.__super__=i.prototype,r};_.extend=b.extend=M.extend=k.extend=D.extend=j;var B=function(){throw new Error('A "url" property or function must be specified')},F=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t})}).call(this,n(17))},function(e,t,n){"use strict";var r=n(9),i=n(0),o=n(1),a=o.Model.extend({initialize:function(e){return i.bindAll(this,"fetch","save","retrigger"),o.Model.prototype.initialize.call(this,e)},fetch:function(e){var t=this;this.trigger("loadModelStarted"),r.when(o.Model.prototype.fetch.call(this,e)).done(function(e){t.trigger("loadModelCompleted",e,t)}).fail(function(e){t.trigger("loadModelFailed",e,t)})},setIdAttribute:function(e){this.idAttribute=e},retrigger:function(e,t,n){n||(n=e);var r=this;t.bind&&t.bind(e,function(){r.trigger(n)},r)},save:function(e,t){var n=this;t&&t.silent||this.trigger("saving");var i=o.Model.prototype.save.apply(this,arguments);return r.when(i).done(function(){t&&t.silent||n.trigger("saved")}).fail(function(){t&&t.silent||n.trigger("errorSaving")}),i}});e.exports=a},function(e,t,n){"use strict";function r(e,t){t=t||{};var n=Object.create(Error.prototype);n.message=e&&e.message||f,n.origin=e&&e.origin||h,n.type=e&&e.type||"",i(e)&&(n=a(e,t.layers,t.analysis)),o(e)&&(n=s(e));var r=l.getExtraFields(n);return n.message=r.friendlyMessage,n.errorCode=r.errorCode,n.name="CartoError",n.stack=(new Error).stack,n.originalError=e,c.track(n),n}function i(e){return e&&"windshaft"===e.origin}function o(e){return e&&e.responseText}function a(e,t,n){var r=Object.create(Error.prototype);return r.message=e.message,r.origin=e.origin,r.type=e.type,"layer"===e.type&&t&&(r.layer=t.findById(e.layerId)),"analysis"===e.type&&(n&&(r.source=n,r.sourceId=n.getId&&n.getId()),e.analysisId&&(r.sourceId=e.analysisId)),r}function s(e){var t=Object.create(Error.prototype);return t.message=u(e),t.origin="ajax",t.type=e.statusText,t}function u(e){var t="";try{t=JSON.parse(e.responseText).errors[0]}catch(e){}return t||f}var l=n(51),c=n(56),f="unexpected error",h="generic";e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return new i({origin:"validation",type:e,message:t},n)}var i=n(3);e.exports=r},function(e,t,n){"use strict";function r(e){return o.contains(a,e)}function i(e){return o.contains(u,e)}var o=n(0),a={COUNT:"count",SUM:"sum",AVG:"avg",MAX:"max",MIN:"min"},s={NOT_LOADED:"notLoaded",LOADING:"loading",LOADED:"loaded",ERROR:"error"},u={AUTO:"auto",MILLENNIUM:"millennium",CENTURY:"century",DECADE:"decade",YEAR:"year",QUARTER:"quarter",MONTH:"month",WEEK:"week",DAY:"day",HOUR:"hour",MINUTE:"minute"};e.exports={operation:a,status:s,timeAggregation:u,isValidOperation:r,isValidTimeAggregation:i,ATTRIBUTION:'© OpenStreetMap contributors, © CARTO'}},function(e,t,n){"use strict";var r=n(0),i={};i.isCORSSupported=function(){return"withCredentials"in new XMLHttpRequest},i.array2hex=function(e){for(var t=[],n=0;n>18&63,o=u>>12&63,a=u>>6&63,s=63&u,p[f++]=l.charAt(i)+l.charAt(o)+l.charAt(a)+l.charAt(s)}while(c>>8^t[255&(n^e.charCodeAt(r))];return(-1^n)>>>0},i._makeCRCTable=function(){for(var e,t=[],n=0;n<256;++n){e=n;for(var r=0;r<8;++r)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t},i._inferBrowser=function(e){var t={};return e=e||"undefined"!=typeof window&&window.navigator.userAgent||"",!function(){var t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}()?e.indexOf("Edge/")>-1?t.edge=e:e.indexOf("Chrome")>-1?t.chrome=e:e.indexOf("Firefox")>-1?t.firefox=e:e.indexOf("Opera")>-1?t.opera=e:e.indexOf("Safari")>-1&&(t.safari=e):t.ie={version:function(){return document.compatMode?window.XMLHttpRequest?document.querySelector?document.addEventListener?window.atob?document.all?10:11:9:8:7:6:5}()},t},i.browser=i._inferBrowser(),i.isMobileDevice=function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},i.supportsTouch=function(){return"ontouchstart"in window||navigator.msMaxTouchPoints};var o=null;i.isWebGLSupported=function(){if(null===o){var e=document.createElement("canvas");o=!(!window.WebGLRenderingContext||!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}return o},i.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},i.checkRequiredOpts=function(e,t,n){r.each(t,function(t){if(r.isUndefined(e[t]))throw new Error(t+" is required"+(n?" to initialize "+n:""))})},i.isLeafletLoaded=function(){if(!window.L)throw new Error("Leaflet is required");if(window.L.version<"1.0.0")throw new Error("Leaflet +1.0 is required")},i.isGoogleMapsLoaded=function(){if(!window.google)throw new Error("Google Maps is required");if(!window.google.maps)throw new Error("Google Maps is required");if(window.google.maps.version<"3.31.0")throw new Error("Google Maps version should be >= 3.31")},e.exports=i},function(e,t,n){"use strict";function r(){}var i=n(0),o=n(1),a=n(4);i.extend(r.prototype,o.Events),r.prototype._getValidationError=function(e){return new a("filter",e)},e.exports=r},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(2),a=n(6),s=["camshaftReference","engine"],u={PENDING:"pending",WAITING:"waiting",RUNNING:"running",FAILED:"failed",READY:"ready"},l=o.extend({initialize:function(e,t){t=t||{},a.checkRequiredOpts(t,s,"AnalysisModel"),this._camshaftReference=t.camshaftReference,this._engine=t.engine,this._initBinds(),this._referencedBy={}},url:function(){var e=this.get("url");if(e){if(this.get("apiKey"))e+="?api_key="+this.get("apiKey");else if(this.get("authToken")){var t=this.get("authToken");if(t instanceof Array){var n=r.map(t,function(e){return"auth_token[]="+e});e+="?"+n.join("&")}else e+="?auth_token="+t}return e}},setOk:function(){this.unset("error")},setError:function(e){this.set({error:e,status:u.FAILED})},_initBinds:function(){this.bind("change:type",function(){this.unbind(null,null,this),this._initBinds(),this._reload()},this),r.each(this.getParamNames(),function(e){this.bind("change:"+e,this._reload,this)},this),this.bind("change:status",function(){this._hadStatus()&&this.isReady()&&this.isSourceOfAnyModel()&&this._reload()},this)},_hadStatus:function(){return this.previous("status")},_reload:function(){this._engine.reload({error:this._onMapReloadError.bind(this)})},_onMapReloadError:function(){this.set("status",u.FAILED)},remove:function(){this.trigger("destroy",this),this.stopListening()},findAnalysisById:function(e){return this.get("id")===e?this:r.chain(this._getSourceNames()).map(function(t){var n=this.get(t);if(n)return n.findAnalysisById(e)},this).compact().value()[0]},_getSourceNames:function(){return this._camshaftReference.getSourceNamesForAnalysisType(this.get("type"))},isDone:function(){return this._hasStatus([u.READY,u.FAILED])},isLoading:function(){return this._hasStatus([u.PENDING,u.WAITING,u.RUNNING])},isReady:function(){return this._hasStatus(u.READY)},isFailed:function(){return this._hasStatus(u.FAILED)},_hasStatus:function(e){return r.isArray(e)||(e=[e]),r.contains(e,this._getStatus())},_getStatus:function(){return this.get("status")},toJSON:function(){var e=r.pick(this.attributes,"id","type");e.params=r.pick(this.attributes,this.getParamNames());var t=this._getSourceNames();return r.each(t,function(t){var n={},i=this.get(t);i&&(n[t]=i.toJSON(),r.extend(e.params,n))},this),e},getParamNames:function(){return this._camshaftReference.getParamNamesForAnalysisType(this.get("type"))},getNodes:function(){var e=[this];return"source"!==this.get("type")&&r.forEach(this._getSourceNames(),function(t){var n=this.get(t);n&&(e=e.concat(n.getNodes()))},this),e},getNodesCollection:function(){return new i.Collection(this.getNodes())},equals:function(e){return e instanceof l&&this.get("id")===e.get("id")},markAsSourceOf:function(e){this._referencedBy[e.cid]=!0},isSourceOfAnyModel:function(){return Object.keys(this._referencedBy).length>0},isSourceOf:function(e){return!!this._referencedBy[e.cid]},unmarkAsSourceOf:function(e){delete this._referencedBy[e.cid]}},{STATUS:u});e.exports=l},function(e,t,n){var r,i;/*! * jQuery JavaScript Library v2.1.4 * http://jquery.com/ * @@ -16,7 +16,7 @@ * * Date: 2015-04-28T16:01Z */ -!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){function a(e){var t="length"in e&&e.length,n=ne.type(e);return"function"!==n&&!ne.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function s(e,t,n){if(ne.isFunction(t))return ne.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ne.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ce.test(t))return ne.filter(t,e,n);t=ne.filter(t,e)}return ne.grep(e,function(e){return Y.call(t,e)>=0!==n})}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t=ge[e]={};return ne.each(e.match(me)||[],function(e,n){t[n]=!0}),t}function c(){te.removeEventListener("DOMContentLoaded",c,!1),n.removeEventListener("load",c,!1),ne.ready()}function f(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ne.expando+f.uid++}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(xe,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:we.test(n)?ne.parseJSON(n):n)}catch(e){}be.set(e,t,n)}else n=void 0;return n}function p(){return!0}function d(){return!1}function m(){try{return te.activeElement}catch(e){}}function g(e,t){return ne.nodeName(e,"table")&&ne.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function v(e){var t=je.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _(e,t){for(var n=0,r=e.length;n")).appendTo(t.documentElement),t=ze[0].contentDocument,t.write(),t.close(),n=C(e,t),ze.detach()),Ue[e]=n),n}function T(e,t,n){var r,i,o,a,s=e.style;return n=n||We(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||ne.contains(e.ownerDocument,e)||(a=ne.style(e,t)),He.test(a)&&qe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function E(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function P(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Ye.length;i--;)if((t=Ye[i]+n)in e)return t;return r}function M(e,t,n){var r=$e.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function S(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ne.css(e,n+ke[o],!0,i)),r?("content"===n&&(a-=ne.css(e,"padding"+ke[o],!0,i)),"margin"!==n&&(a-=ne.css(e,"border"+ke[o]+"Width",!0,i))):(a+=ne.css(e,"padding"+ke[o],!0,i),"padding"!==n&&(a+=ne.css(e,"border"+ke[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=We(e),a="border-box"===ne.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(i=T(e,t,o),(i<0||null==i)&&(i=e.style[t]),He.test(i))return i;r=a&&(ee.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+S(e,t,n||(a?"border":"content"),r,o)+"px"}function O(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isPlainObject:function(e){return"object"===ne.type(e)&&!e.nodeType&&!ne.isWindow(e)&&!(e.constructor&&!J.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Q[X.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=ne.trim(e))&&(1===e.indexOf("use strict")?(t=te.createElement("script"),t.text=e,te.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(ie,"ms-").replace(oe,ae)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=a(e);if(n){if(o)for(;r0&&t-1 in e))}function s(e,t,n){if(ne.isFunction(t))return ne.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ne.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ce.test(t))return ne.filter(t,e,n);t=ne.filter(t,e)}return ne.grep(e,function(e){return Y.call(t,e)>=0!==n})}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t=ge[e]={};return ne.each(e.match(me)||[],function(e,n){t[n]=!0}),t}function c(){te.removeEventListener("DOMContentLoaded",c,!1),n.removeEventListener("load",c,!1),ne.ready()}function f(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ne.expando+f.uid++}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(xe,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:we.test(n)?ne.parseJSON(n):n)}catch(e){}be.set(e,t,n)}else n=void 0;return n}function p(){return!0}function d(){return!1}function m(){try{return te.activeElement}catch(e){}}function g(e,t){return ne.nodeName(e,"table")&&ne.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function v(e){var t=je.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _(e,t){for(var n=0,r=e.length;n")).appendTo(t.documentElement),t=ze[0].contentDocument,t.write(),t.close(),n=C(e,t),ze.detach()),Ue[e]=n),n}function T(e,t,n){var r,i,o,a,s=e.style;return n=n||We(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||ne.contains(e.ownerDocument,e)||(a=ne.style(e,t)),He.test(a)&&qe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function E(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function P(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Ye.length;i--;)if((t=Ye[i]+n)in e)return t;return r}function M(e,t,n){var r=$e.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function S(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ne.css(e,n+ke[o],!0,i)),r?("content"===n&&(a-=ne.css(e,"padding"+ke[o],!0,i)),"margin"!==n&&(a-=ne.css(e,"border"+ke[o]+"Width",!0,i))):(a+=ne.css(e,"padding"+ke[o],!0,i),"padding"!==n&&(a+=ne.css(e,"border"+ke[o]+"Width",!0,i)));return a}function O(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=We(e),a="border-box"===ne.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(i=T(e,t,o),(i<0||null==i)&&(i=e.style[t]),He.test(i))return i;r=a&&(ee.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+S(e,t,n||(a?"border":"content"),r,o)+"px"}function L(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isPlainObject:function(e){return"object"===ne.type(e)&&!e.nodeType&&!ne.isWindow(e)&&!(e.constructor&&!J.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Q[X.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=ne.trim(e))&&(1===e.indexOf("use strict")?(t=te.createElement("script"),t.text=e,te.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(ie,"ms-").replace(oe,ae)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=a(e);if(n){if(o)for(;rb.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[j]=!0,e}function i(e){var t=L.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)b.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Z)-(~e.sourceIndex||Z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function c(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function p(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else _=d(_===a?_.splice(g,_.length):_),o?o(null,a,_,u):Y.apply(a,_)})}function g(e){for(var t,n,r,i=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=f(function(e){return e===t},a,!0),l=f(function(e){return X(t,e)>-1},a,!0),p=[function(e,n,r){var i=!o&&(r||n!==E)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(p),s>1&&c(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,h,p=0,m="0",g=r&&[],y=[],v=E,_=r||o&&b.find.TAG("*",l),w=F+=null==v?1:Math.random()||.1,x=_.length;for(l&&(E=a!==L&&a);m!==x&&null!=(c=_[m]);m++){if(o&&c){for(f=0;h=e[f++];)if(h(c,a,s)){u.push(c);break}l&&(F=w)}i&&((c=!h&&c)&&p--,r&&g.push(c))}if(p+=m,i&&m!==p){for(f=0;h=n[f++];)h(g,y,a,s);if(r){if(p>0)for(;m--;)g[m]||y[m]||(y[m]=G.call(u));y=d(y)}Y.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(F=w,E=v),g};return i?r(a):a}var v,_,b,w,x,C,k,T,E,P,M,S,L,O,A,D,R,N,I,j="sizzle"+1*new Date,B=e.document,F=0,z=0,U=n(),q=n(),H=n(),W=function(e,t){return e===t&&(M=!0),0},Z=1<<31,$={}.hasOwnProperty,V=[],G=V.pop,K=V.push,Y=V.push,Q=V.slice,X=function(e,t){for(var n=0,r=e.length;n+~]|"+ee+")"+ee+"*"),le=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(ie),fe=new RegExp("^"+ne+"$"),he={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,ve=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=function(){S()};try{Y.apply(V=Q.call(B.childNodes),B.childNodes),V[B.childNodes.length].nodeType}catch(e){Y={apply:V.length?function(e,t){K.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}_=t.support={},x=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==L&&9===r.nodeType&&r.documentElement?(L=r,O=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),A=!x(r),_.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=me.test(r.getElementsByClassName),_.getById=i(function(e){return O.appendChild(e).id=j,!r.getElementsByName||!r.getElementsByName(j).length}),_.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&A){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},b.filter.ID=function(e){var t=e.replace(_e,be);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(_e,be);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),b.find.TAG=_.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):_.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=_.getElementsByClassName&&function(e,t){if(A)return t.getElementsByClassName(e)},R=[],D=[],(_.qsa=me.test(r.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||D.push("\\["+ee+"*(?:value|"+J+")"),e.querySelectorAll("[id~="+j+"-]").length||D.push("~="),e.querySelectorAll(":checked").length||D.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||D.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&D.push("name"+ee+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),D.push(",.*:")})),(_.matchesSelector=me.test(N=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){_.disconnectedMatch=N.call(e,"div"),N.call(e,"[s!='']:x"),R.push("!=",ie)}),D=D.length&&new RegExp(D.join("|")),R=R.length&&new RegExp(R.join("|")),t=me.test(O.compareDocumentPosition),I=t||me.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return M=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===B&&I(B,e)?-1:t===r||t.ownerDocument===B&&I(B,t)?1:P?X(P,e)-X(P,t):0:4&n?-1:1)}:function(e,t){if(e===t)return M=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,u=[e],l=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:P?X(P,e)-X(P,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?a(u[i],l[i]):u[i]===B?-1:l[i]===B?1:0},r):L},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==L&&S(e),n=n.replace(le,"='$1']"),_.matchesSelector&&A&&(!R||!R.test(n))&&(!D||!D.test(n)))try{var r=N.call(e,n);if(r||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&S(e),I(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&S(e);var n=b.attrHandle[t.toLowerCase()],r=n&&$.call(b.attrHandle,t.toLowerCase())?n(e,t,!A):void 0;return void 0!==r?r:_.attributes||!A?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(M=!_.detectDuplicates,P=!_.sortStable&&e.slice(0),e.sort(W),M){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return P=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},b=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,be),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,h,p,d,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;d=m="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&v){for(c=g[j]||(g[j]={}),l=c[e]||[],p=l[0]===F&&l[1],h=l[0]===F&&l[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(h=p=0)||d.pop();)if(1===f.nodeType&&++h&&f===t){c[e]=[F,p,h];break}}else if(v&&(l=(t[j]||(t[j]={}))[e])&&l[0]===F)h=l[1];else for(;(f=++p&&f&&f[m]||(h=p=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++h||(v&&((f[j]||(f[j]={}))[e]=[F,h]),f!==t)););return(h-=i)===r||h%r==0&&h/r>=0}}},PSEUDO:function(e,n){var i,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[j]?o(n):o.length>1?(i=[e,e,"",n],b.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=X(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(ae,"$1"));return i[j]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(_e,be),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(_e,be).toLowerCase(),function(t){var n;do{if(n=A?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=o[0]).type&&_.getById&&9===t.nodeType&&A&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(_e,be),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!b.relative[s=a.type]);)if((l=b.find[s])&&(r=l(a.matches[0].replace(_e,be),ye.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return Y.apply(n,r),n;break}}return(f||k(e,h))(r,t,!A,n,ye.test(e)&&u(t.parentNode)||t),n},_.sortStable=j.split("").sort(W).join("")===j,_.detectDuplicates=!!M,S(),_.sortDetached=i(function(e){return 1&e.compareDocumentPosition(L.createElement("div"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),_.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(J,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);ne.find=se,ne.expr=se.selectors,ne.expr[":"]=ne.expr.pseudos,ne.unique=se.uniqueSort,ne.text=se.getText,ne.isXMLDoc=se.isXML,ne.contains=se.contains;var ue=ne.expr.match.needsContext,le=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ce=/^.[^:#\[\.,]*$/;ne.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ne.find.matchesSelector(r,e)?[r]:[]:ne.find.matches(e,ne.grep(t,function(e){return 1===e.nodeType}))},ne.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(ne(e).filter(function(){for(t=0;t1?ne.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&ue.test(e)?ne(e):e||[],!1).length}});var fe,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ne.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:he.exec(e))||!n[1]&&t)return!t||t.jquery?(t||fe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ne?t[0]:t,ne.merge(this,ne.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:te,!0)),le.test(n[1])&&ne.isPlainObject(t))for(n in t)ne.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=te.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=te,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ne.isFunction(e)?void 0!==fe.ready?fe.ready(e):e(ne):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ne.makeArray(e,this))}).prototype=ne.fn,fe=ne(te);var pe=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};ne.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ne(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ne.fn.extend({has:function(e){var t=ne(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&ne.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ne.unique(o):o)},index:function(e){return e?"string"==typeof e?Y.call(ne(e),this[0]):Y.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ne.unique(ne.merge(this.get(),ne(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ne.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ne.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ne.dir(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return ne.dir(e,"nextSibling")},prevAll:function(e){return ne.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ne.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ne.dir(e,"previousSibling",n)},siblings:function(e){return ne.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ne.sibling(e.firstChild)},contents:function(e){return e.contentDocument||ne.merge([],e.childNodes)}},function(e,t){ne.fn[e]=function(n,r){var i=ne.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ne.filter(r,i)),this.length>1&&(de[e]||ne.unique(i),pe.test(e)&&i.reverse()),this.pushStack(i)}});var me=/\S+/g,ge={};ne.Callbacks=function(e){e="string"==typeof e?ge[e]||l(e):ne.extend({},e);var t,n,r,i,o,a,s=[],u=!e.once&&[],c=function(l){for(t=e.memory&&l,n=!0,a=i||0,i=0,o=s.length,r=!0;s&&a-1;)s.splice(n,1),r&&(n<=o&&o--,n<=a&&a--)}),this},has:function(e){return e?ne.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=u=t=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,t||f.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!s||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):c(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},ne.extend({Deferred:function(e){var t=[["resolve","done",ne.Callbacks("once memory"),"resolved"],["reject","fail",ne.Callbacks("once memory"),"rejected"],["notify","progress",ne.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ne.Deferred(function(n){ne.each(t,function(t,o){var a=ne.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ne.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ne.extend(e,r):r}},i={};return r.pipe=r.then,ne.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=V.call(arguments),a=o.length,s=1!==a||e&&ne.isFunction(e.promise)?a:0,u=1===s?e:ne.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?V.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i0||(ye.resolveWith(te,[ne]),ne.fn.triggerHandler&&(ne(te).triggerHandler("ready"),ne(te).off("ready"))))}}),ne.ready.promise=function(e){return ye||(ye=ne.Deferred(),"complete"===te.readyState?setTimeout(ne.ready):(te.addEventListener("DOMContentLoaded",c,!1),n.addEventListener("load",c,!1))),ye.promise(e)},ne.ready.promise();var ve=ne.access=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===ne.type(n)){i=!0;for(s in n)ne.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ne.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ne(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){be.remove(this,e)})}}),ne.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_e.get(e,t),n&&(!r||ne.isArray(n)?r=_e.access(e,t,ne.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ne.queue(e,t),r=n.length,i=n.shift(),o=ne._queueHooks(e,t),a=function(){ne.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _e.get(e,n)||_e.access(e,n,{empty:ne.Callbacks("once memory").add(function(){_e.remove(e,[t+"queue",n])})})}}),ne.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.lengthx",ee.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();ee.focusinBubbles="onfocusin"in n;var Pe=/^key/,Me=/^(?:mouse|pointer|contextmenu)|click/,Se=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)$/;ne.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,m,g=_e.get(e);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=ne.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==ne&&ne.event.triggered!==t.type?ne.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(me)||[""],l=t.length;l--;)s=Le.exec(t[l])||[],p=m=s[1],d=(s[2]||"").split(".").sort(),p&&(f=ne.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=ne.event.special[p]||{},c=ne.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ne.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||(h=u[p]=[],h.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,d,a)||e.addEventListener&&e.addEventListener(p,a,!1)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),ne.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,m,g=_e.hasData(e)&&_e.get(e);if(g&&(u=g.events)){for(t=(t||"").match(me)||[""],l=t.length;l--;)if(s=Le.exec(t[l])||[],p=m=s[1],d=(s[2]||"").split(".").sort(),p){for(f=ne.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,d,g.handle)||ne.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)ne.event.remove(e,p+t[l],n,r,!0);ne.isEmptyObject(u)&&(delete g.handle,_e.remove(e,"events"))}},trigger:function(e,t,r,i){var o,a,s,u,l,c,f,h=[r||te],p=J.call(e,"type")?e.type:e,d=J.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||te,3!==r.nodeType&&8!==r.nodeType&&!Se.test(p+ne.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[ne.expando]?e:new ne.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:ne.makeArray(t,[e]),f=ne.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,t))){if(!i&&!f.noBubble&&!ne.isWindow(r)){for(u=f.delegateType||p,Se.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||te)&&h.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||p,c=(_e.get(a,"events")||{})[e.type]&&_e.get(a,"handle"),c&&c.apply(a,t),(c=l&&a[l])&&c.apply&&ne.acceptData(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!ne.acceptData(r)||l&&ne.isFunction(r[p])&&!ne.isWindow(r)&&(s=r[l],s&&(r[l]=null),ne.event.triggered=p,r[p](),ne.event.triggered=void 0,s&&(r[l]=s)),e.result}},dispatch:function(e){e=ne.event.fix(e);var t,n,r,i,o,a=[],s=V.call(arguments),u=(_e.get(this,"events")||{})[e.type]||[],l=ne.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(a=ne.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((ne.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==e.type){for(r=[],n=0;n=0:ne.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]*)\/>/gi,Ae=/<([\w:]+)/,De=/<|&#?\w+;/,Re=/<(?:script|style|link)/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^$|\/(?:java|ecma)script/i,je=/^true\/(.*)/,Be=/^\s*\s*$/g,Fe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Fe.optgroup=Fe.option,Fe.tbody=Fe.tfoot=Fe.colgroup=Fe.caption=Fe.thead,Fe.th=Fe.td,ne.extend({clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ne.contains(e.ownerDocument,e);if(!(ee.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ne.isXMLDoc(e)))for(a=w(s),o=w(e),r=0,i=o.length;r0&&_(a,!u&&w(e,"script")),s},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,l,c=t.createDocumentFragment(),f=[],h=0,p=e.length;h")+s[2],l=s[0];l--;)o=o.lastChild;ne.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(t.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===ne.inArray(i,r))&&(u=ne.contains(i.ownerDocument,i),o=w(c.appendChild(i),"script"),u&&_(o),n))for(l=0;i=o[l++];)Ie.test(i.type||"")&&n.push(i);return c},cleanData:function(e){for(var t,n,r,i,o=ne.event.special,a=0;void 0!==(n=e[a]);a++){if(ne.acceptData(n)&&(i=n[_e.expando])&&(t=_e.cache[i])){if(t.events)for(r in t.events)o[r]?ne.event.remove(n,r):ne.removeEvent(n,r,t.handle);_e.cache[i]&&delete _e.cache[i]}delete be.cache[n[be.expando]]}}}),ne.fn.extend({text:function(e){return ve(this,function(e){return void 0===e?ne.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){g(this,e).appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=g(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ne.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ne.cleanData(w(n)),n.parentNode&&(t&&ne.contains(n.ownerDocument,n)&&_(w(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ne.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ne.clone(this,e,t)})},html:function(e){return ve(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!Fe[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Oe,"<$1>");try{for(;n1&&"string"==typeof h&&!ee.checkClone&&Ne.test(h))return this.each(function(n){var r=c.eq(n);p&&(e[0]=h.call(this,n,r.html())),r.domManip(e,t)});if(l&&(n=ne.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=ne.map(w(n,"script"),y),o=i.length;u1)},show:function(){return O(this,!0)},hide:function(){return O(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Te(this)?ne(this).show():ne(this).hide()})}}),ne.Tween=A,A.prototype={constructor:A,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ne.cssNumber[n]?"":"px")},cur:function(){var e=A.propHooks[this.prop];return e&&e.get?e.get(this):A.propHooks._default.get(this)},run:function(e){var t,n=A.propHooks[this.prop];return this.options.duration?this.pos=t=ne.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ne.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ne.fx.step[e.prop]?ne.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ne.cssProps[e.prop]]||ne.cssHooks[e.prop])?ne.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ne.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ne.fx=A.prototype.init,ne.fx.step={};var Qe,Xe,Je=/^(?:toggle|show|hide)$/,et=new RegExp("^(?:([+-])=|)("+Ce+")([a-z%]*)$","i"),tt=/queueHooks$/,nt=[I],rt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=et.exec(t),o=i&&i[3]||(ne.cssNumber[e]?"":"px"),a=(ne.cssNumber[e]||"px"!==o&&+r)&&et.exec(ne.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{s=s||".5",a/=s,ne.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ne.Animation=ne.extend(B,{tweener:function(e,t){ne.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r1)},removeAttr:function(e){return this.each(function(){ne.removeAttr(this,e)})}}),ne.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?ne.prop(e,t,n):(1===o&&ne.isXMLDoc(e)||(t=t.toLowerCase(),r=ne.attrHooks[t]||(ne.expr.match.bool.test(t)?it:void 0)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=ne.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void ne.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(me);if(o&&1===e.nodeType)for(;n=o[i++];)r=ne.propFix[n]||n,ne.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!ee.radioValue&&"radio"===t&&ne.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),it={set:function(e,t,n){return!1===t?ne.removeAttr(e,n):e.setAttribute(n,n),n}},ne.each(ne.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ot[t]||ne.find.attr;ot[t]=function(e,t,r){var i,o;return r||(o=ot[t],ot[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,ot[t]=o),i}});var at=/^(?:input|select|textarea|button)$/i;ne.fn.extend({prop:function(e,t){return ve(this,ne.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ne.propFix[e]||e]})}}),ne.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!ne.isXMLDoc(e),o&&(t=ne.propFix[t]||t,i=ne.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||at.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),ee.optSelected||(ne.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),ne.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ne.propFix[this.toLowerCase()]=this});var st=/[\t\r\n\f]/g;ne.fn.extend({addClass:function(e){var t,n,r,i,o,a,s="string"==typeof e&&e,u=0,l=this.length;if(ne.isFunction(e))return this.each(function(t){ne(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(me)||[];u=0;)r=r.replace(" "+i+" "," ");a=e?ne.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ne.isFunction(e)?this.each(function(n){ne(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ne(this),o=e.match(me)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else"undefined"!==n&&"boolean"!==n||(this.className&&_e.set(this,"__className__",this.className),this.className=this.className||!1===e?"":_e.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n=0)return!0;return!1}});var ut=/\r/g;ne.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ne.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ne(this).val()):e,null==i?i="":"number"==typeof i?i+="":ne.isArray(i)&&(i=ne.map(i,function(e){return null==e?"":e+""})),(t=ne.valHooks[this.type]||ne.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=ne.valHooks[i.type]||ne.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ut,""):null==n?"":n)}}}),ne.extend({valHooks:{option:{get:function(e){var t=ne.find.attr(e,"value");return null!=t?t:ne.trim(ne.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ne.each(["radio","checkbox"],function(){ne.valHooks[this]={set:function(e,t){if(ne.isArray(t))return e.checked=ne.inArray(ne(e).val(),t)>=0}},ee.checkOn||(ne.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ne.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(e,t){ne.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ne.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var lt=ne.now(),ct=/\?/;ne.parseJSON=function(e){return JSON.parse(e+"")},ne.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ne.error("Invalid XML: "+e),t};var ft=/#.*$/,ht=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,dt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,mt=/^(?:GET|HEAD)$/,gt=/^\/\//,yt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,vt={},_t={},bt="*/".concat("*"),wt=n.location.href,xt=yt.exec(wt.toLowerCase())||[];ne.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt,type:"GET",isLocal:dt.test(xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bt,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":ne.parseJSON,"text xml":ne.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?U(U(e,ne.ajaxSettings),t):U(ne.ajaxSettings,e)},ajaxPrefilter:F(vt),ajaxTransport:F(_t),ajax:function(e,t){function n(e,t,n,a){var u,c,y,v,b,x=t;2!==_&&(_=2,s&&clearTimeout(s),r=void 0,o=a||"",w.readyState=e>0?4:0,u=e>=200&&e<300||304===e,n&&(v=q(f,w,n)),v=H(f,v,w,u),u?(f.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(ne.lastModified[i]=b),(b=w.getResponseHeader("etag"))&&(ne.etag[i]=b)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=v.state,c=v.data,y=v.error,u=!y)):(y=x,!e&&x||(x="error",e<0&&(e=0))),w.status=e,w.statusText=(t||x)+"",u?d.resolveWith(h,[c,x,w]):d.rejectWith(h,[w,x,y]),w.statusCode(g),g=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[w,f,u?c:y]),m.fireWith(h,[w,x]),l&&(p.trigger("ajaxComplete",[w,f]),--ne.active||ne.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,u,l,c,f=ne.ajaxSetup({},t),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?ne(h):ne.event,d=ne.Deferred(),m=ne.Callbacks("once memory"),g=f.statusCode||{},y={},v={},_=0,b="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!a)for(a={};t=pt.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return _||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return _||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(_<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||b;return r&&r.abort(t),n(0,t),this}};if(d.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||wt)+"").replace(ft,"").replace(gt,xt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=ne.trim(f.dataType||"*").toLowerCase().match(me)||[""],null==f.crossDomain&&(u=yt.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===xt[1]&&u[2]===xt[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(xt[3]||("http:"===xt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ne.param(f.data,f.traditional)),z(vt,f,t,w),2===_)return w;l=ne.event&&f.global,l&&0==ne.active++&&ne.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!mt.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(ct.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=ht.test(i)?i.replace(ht,"$1_="+lt++):i+(ct.test(i)?"&":"?")+"_="+lt++)),f.ifModified&&(ne.lastModified[i]&&w.setRequestHeader("If-Modified-Since",ne.lastModified[i]),ne.etag[i]&&w.setRequestHeader("If-None-Match",ne.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+bt+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)w.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(h,w,f)||2===_))return w.abort();b="abort";for(c in{success:1,error:1,complete:1})w[c](f[c]);if(r=z(_t,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{_=1,r.send(y,n)}catch(e){if(!(_<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return ne.get(e,t,n,"json")},getScript:function(e,t){return ne.get(e,void 0,t,"script")}}),ne.each(["get","post"],function(e,t){ne[t]=function(e,n,r,i){return ne.isFunction(n)&&(i=i||r,r=n,n=void 0),ne.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),ne._evalUrl=function(e){return ne.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ne.fn.extend({wrapAll:function(e){var t;return ne.isFunction(e)?this.each(function(t){ne(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ne(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return ne.isFunction(e)?this.each(function(t){ne(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ne(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ne.isFunction(e);return this.each(function(n){ne(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ne.nodeName(this,"body")||ne(this).replaceWith(this.childNodes)}).end()}}),ne.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},ne.expr.filters.visible=function(e){return!ne.expr.filters.hidden(e)};var Ct=/%20/g,kt=/\[\]$/,Tt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;ne.param=function(e,t){var n,r=[],i=function(e,t){t=ne.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ne.ajaxSettings&&ne.ajaxSettings.traditional),ne.isArray(e)||e.jquery&&!ne.isPlainObject(e))ne.each(e,function(){i(this.name,this.value)});else for(n in e)W(n,e[n],t,i);return r.join("&").replace(Ct,"+")},ne.fn.extend({serialize:function(){return ne.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ne.prop(this,"elements");return e?ne.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ne(this).is(":disabled")&&Pt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!Ee.test(e))}).map(function(e,t){var n=ne(this).val();return null==n?null:ne.isArray(n)?ne.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}}),ne.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Mt=0,St={},Lt={0:200,1223:204},Ot=ne.ajaxSettings.xhr();n.attachEvent&&n.attachEvent("onunload",function(){for(var e in St)St[e]()}),ee.cors=!!Ot&&"withCredentials"in Ot,ee.ajax=Ot=!!Ot,ne.ajaxTransport(function(e){var t;if(ee.cors||Ot&&!e.crossDomain)return{send:function(n,r){var i,o=e.xhr(),a=++Mt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete St[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(Lt[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=St[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ne.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ne.globalEval(e),e}}}),ne.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ne.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ne("