!function(t){var p={};function e(b){if(p[b])return p[b].exports;var o=p[b]={i:b,l:!1,exports:{}};return t[b].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=p,e.d=function(t,p,b){e.o(t,p)||Object.defineProperty(t,p,{enumerable:!0,get:b})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,p){if(1&p&&(t=e(t)),8&p)return t;if(4&p&&"object"==typeof t&&t&&t.__esModule)return t;var b=Object.create(null);if(e.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:t}),2&p&&"string"!=typeof t)for(var o in t)e.d(b,o,function(p){return t[p]}.bind(null,o));return b},e.n=function(t){var p=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(p,"a",p),p},e.o=function(t,p){return Object.prototype.hasOwnProperty.call(t,p)},e.p="/",e(e.s=0)}({0:function(t,p,e){e("bUC5"),e("pyCd"),t.exports=e("WYdp")},"1Tjy":function(t,p,e){t.exports=function(t){function p(b){if(e[b])return e[b].exports;var o=e[b]={i:b,l:!1,exports:{}};return t[b].call(o.exports,o,o.exports,p),o.l=!0,o.exports}var e={};return p.m=t,p.c=e,p.i=function(t){return t},p.d=function(t,e,b){p.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:b})},p.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return p.d(e,"a",e),e},p.o=function(t,p){return Object.prototype.hasOwnProperty.call(t,p)},p.p="",p(p.s=24)}([function(t,p){var e=t.exports={version:"2.5.6"};"number"==typeof __e&&(__e=e)},function(t,p){t.exports=function(t,p,e,b,o,M){var n,z=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(n=t,z=t.default);var O,c="function"==typeof z?z.options:z;if(p&&(c.render=p.render,c.staticRenderFns=p.staticRenderFns,c._compiled=!0),e&&(c.functional=!0),o&&(c._scopeId=o),M?(O=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),b&&b.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(M)},c._ssrRegister=O):b&&(O=b),O){var i=c.functional,a=i?c.render:c.beforeCreate;i?(c._injectStyles=O,c.render=function(t,p){return O.call(p),a(t,p)}):c.beforeCreate=a?[].concat(a,O):[O]}return{esModule:n,exports:z,options:c}}},function(t,p){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,p,e){t.exports=!e(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,p){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,p){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,p,e){"use strict";p.a={props:{visible:{required:!0,type:Boolean},data:{required:!0},notLastKey:Boolean},computed:{dataVisiable:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}}},methods:{toggleBrackets:function(){this.dataVisiable=!this.dataVisiable},bracketsFormatter:function(t){return this.notLastKey?t+",":t}}}},function(t,p,e){"use strict";var b=e(12),o=e.n(b),M=e(57),n=e(56),z=e(54),r=e(55);p.a={name:"vue-json-pretty",components:{SimpleText:M.a,Checkbox:n.a,BracketsLeft:z.a,BracketsRight:r.a},props:{data:{},deep:{type:Number,default:1/0},showLength:{type:Boolean,default:!1},path:{type:String,default:"root"},selectableType:{type:String,default:""},pathChecked:{type:Array,default:function(){return[]}},pathSelectable:{type:Function,default:function(){return!0}},parentData:{},currentDeep:{type:Number,default:1},currentKey:[Number,String]},data:function(){return{visible:this.currentDeep<=this.deep,treeContentBackground:"transparent",checkboxVal:this.pathChecked.includes(this.path)}},computed:{lastKey:function(){if(Array.isArray(this.parentData))return this.parentData.length-1;if(this.isObject(this.parentData)){var t=o()(this.parentData);return t[t.length-1]}},notLastKey:function(){return this.currentKey!==this.lastKey},selectable:function(){return this.pathSelectable(this.path,this.data)},existCheckbox:function(){return"both"===this.selectableType||"checkbox"===this.selectableType},existMouseover:function(){return"both"===this.selectableType||"tree"===this.selectableType}},methods:{handleClick:function(t){var p=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(p||this.existMouseover)&&this.selectable&&(p||(this.checkboxVal=!this.checkboxVal),this.$emit("click",this.path,this.data,this.checkboxVal))},handleItemClick:function(t,p,e){this.$emit("click",t,p,e)},handleMouseover:function(){this.existMouseover&&this.selectable&&(this.treeContentBackground="#eee")},handleMouseout:function(){this.existMouseover&&this.selectable&&(this.treeContentBackground="transparent")},isObject:function(t){return"object"===this.getDataType(t)},getDataType:function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}},watch:{deep:function(t){this.visible=this.currentDeep<=t}}}},function(t,p,e){"use strict";var b=e(12),o=e.n(b),M=e(6);p.a={mixins:[M.a],props:{showLength:Boolean},methods:{doubleBracketsGenerator:function(t){var p=Array.isArray(t),e=p?"[...]":"{...}";return this.showLength&&(e+=" // "+(p?t.length+" items":o()(t).length+" keys")),this.bracketsFormatter(e)}}}},function(t,p,e){"use strict";var b=e(6);p.a={mixins:[b.a]}},function(t,p,e){"use strict";p.a={props:{name:String,value:{type:Boolean,default:!1}},data:function(){return{focus:!1,checked:!1}},computed:{model:{get:function(){return void 0!==this.value?this.value:this.checked},set:function(t){this.checked=t,this.$emit("input",t)}}}}},function(t,p,e){"use strict";p.a={props:{parentDataType:String,dataType:String,text:String,notLastKey:Boolean,currentKey:[Number,String]},methods:{textFormatter:function(t){var p=t;return"string"===this.dataType&&(p='"'+p+'"'),this.notLastKey&&(p+=","),p}}}},function(t,p,e){t.exports={default:e(26),__esModule:!0}},function(t,p){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,p,e){var b=e(4),o=e(0),M=e(31),n=e(34),z=e(15),r=function(t,p,e){var O,c,i,a=t&r.F,A=t&r.G,s=t&r.S,d=t&r.P,q=t&r.B,l=t&r.W,u=A?o:o[p]||(o[p]={}),f=u.prototype,W=A?b:s?b[p]:(b[p]||{}).prototype;for(O in A&&(e=p),e)(c=!a&&W&&void 0!==W[O])&&z(u,O)||(i=c?W[O]:e[O],u[O]=A&&"function"!=typeof W[O]?e[O]:q&&c?M(i,b):l&&W[O]==i?function(t){var p=function(p,e,b){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(p);case 2:return new t(p,e)}return new t(p,e,b)}return t.apply(this,arguments)};return p.prototype=t.prototype,p}(i):d&&"function"==typeof i?M(Function.call,i):i,d&&((u.virtual||(u.virtual={}))[O]=i,t&r.R&&f&&!f[O]&&n(f,O,i)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},function(t,p){var e={}.hasOwnProperty;t.exports=function(t,p){return e.call(t,p)}},function(t,p,e){var b=e(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==b(t)?t.split(""):Object(t)}},function(t,p,e){var b=e(40),o=e(33);t.exports=Object.keys||function(t){return b(t,o)}},function(t,p){var e=Math.ceil,b=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?b:e)(t)}},function(t,p,e){var b=e(16),o=e(13);t.exports=function(t){return b(o(t))}},function(t,p,e){var b=e(13);t.exports=function(t){return Object(b(t))}},function(t,p,e){t.exports={default:e(25),__esModule:!0}},function(t,p,e){"use strict";var b=e(7),o=e(59),M=e(1),n=M(b.a,o.a,!1,null,null,null);p.a=n.exports},function(t,p,e){var b=e(52);"string"==typeof b&&(b=[[t.i,b,""]]),b.locals&&(t.exports=b.locals),e(63)("bfa6fc9c",b,!0,{})},function(t,p,e){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var b=e(21),o=e.n(b),M=e(22),n=e(23);e.n(n),p.default=o()({},M.a,{version:"1.4.0"})},function(t,p,e){e(50),t.exports=e(0).Object.assign},function(t,p,e){e(51),t.exports=e(0).Object.keys},function(t,p){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,p,e){var b=e(5);t.exports=function(t){if(!b(t))throw TypeError(t+" is not an object!");return t}},function(t,p,e){var b=e(19),o=e(47),M=e(46);t.exports=function(t){return function(p,e,n){var z,r=b(p),O=o(r.length),c=M(n,O);if(t&&e!=e){for(;O>c;)if((z=r[c++])!=z)return!0}else for(;O>c;c++)if((t||c in r)&&r[c]===e)return t||c||0;return!t&&-1}}},function(t,p){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,p,e){var b=e(27);t.exports=function(t,p,e){if(b(t),void 0===p)return t;switch(e){case 1:return function(e){return t.call(p,e)};case 2:return function(e,b){return t.call(p,e,b)};case 3:return function(e,b,o){return t.call(p,e,b,o)}}return function(){return t.apply(p,arguments)}}},function(t,p,e){var b=e(5),o=e(4).document,M=b(o)&&b(o.createElement);t.exports=function(t){return M?o.createElement(t):{}}},function(t,p){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,p,e){var b=e(38),o=e(43);t.exports=e(3)?function(t,p,e){return b.f(t,p,o(1,e))}:function(t,p,e){return t[p]=e,t}},function(t,p,e){t.exports=!e(3)&&!e(2)(function(){return 7!=Object.defineProperty(e(32)("div"),"a",{get:function(){return 7}}).a})},function(t,p){t.exports=!0},function(t,p,e){"use strict";var b=e(17),o=e(39),M=e(41),n=e(20),z=e(16),r=Object.assign;t.exports=!r||e(2)(function(){var t={},p={},e=Symbol(),b="abcdefghijklmnopqrst";return t[e]=7,b.split("").forEach(function(t){p[t]=t}),7!=r({},t)[e]||Object.keys(r({},p)).join("")!=b})?function(t,p){for(var e=n(t),r=arguments.length,O=1,c=o.f,i=M.f;r>O;)for(var a,A=z(arguments[O++]),s=c?b(A).concat(c(A)):b(A),d=s.length,q=0;d>q;)i.call(A,a=s[q++])&&(e[a]=A[a]);return e}:r},function(t,p,e){var b=e(28),o=e(35),M=e(48),n=Object.defineProperty;p.f=e(3)?Object.defineProperty:function(t,p,e){if(b(t),p=M(p,!0),b(e),o)try{return n(t,p,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[p]=e.value),t}},function(t,p){p.f=Object.getOwnPropertySymbols},function(t,p,e){var b=e(15),o=e(19),M=e(29)(!1),n=e(44)("IE_PROTO");t.exports=function(t,p){var e,z=o(t),r=0,O=[];for(e in z)e!=n&&b(z,e)&&O.push(e);for(;p.length>r;)b(z,e=p[r++])&&(~M(O,e)||O.push(e));return O}},function(t,p){p.f={}.propertyIsEnumerable},function(t,p,e){var b=e(14),o=e(0),M=e(2);t.exports=function(t,p){var e=(o.Object||{})[t]||Object[t],n={};n[t]=p(e),b(b.S+b.F*M(function(){e(1)}),"Object",n)}},function(t,p){t.exports=function(t,p){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:p}}},function(t,p,e){var b=e(45)("keys"),o=e(49);t.exports=function(t){return b[t]||(b[t]=o(t))}},function(t,p,e){var b=e(0),o=e(4),M=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,p){return M[t]||(M[t]=void 0!==p?p:{})})("versions",[]).push({version:b.version,mode:e(36)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,p,e){var b=e(18),o=Math.max,M=Math.min;t.exports=function(t,p){return(t=b(t))<0?o(t+p,0):M(t,p)}},function(t,p,e){var b=e(18),o=Math.min;t.exports=function(t){return t>0?o(b(t),9007199254740991):0}},function(t,p,e){var b=e(5);t.exports=function(t,p){if(!b(t))return t;var e,o;if(p&&"function"==typeof(e=t.toString)&&!b(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!b(o=e.call(t)))return o;if(!p&&"function"==typeof(e=t.toString)&&!b(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,p){var e=0,b=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+b).toString(36))}},function(t,p,e){var b=e(14);b(b.S+b.F,"Object",{assign:e(37)})},function(t,p,e){var b=e(20),o=e(17);e(42)("keys",function(){return function(t){return o(b(t))}})},function(t,p,e){(t.exports=e(53)(!1)).push([t.i,'.vjs-checkbox{color:#1f2d3d;user-select:none}.vjs-checkbox .vjs-checkbox__input{outline:0;line-height:1;vertical-align:middle;cursor:pointer;display:inline-block;position:relative;white-space:nowrap}.vjs-checkbox .vjs-checkbox__input.is-checked .vjs-checkbox__inner{background-color:#20a0ff;border-color:#0190fe}.vjs-checkbox .vjs-checkbox__input.is-checked .vjs-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.vjs-checkbox .vjs-checkbox__inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:4px;box-sizing:border-box;width:18px;height:18px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-checkbox .vjs-checkbox__inner:after{box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:5px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:4px;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transform-origin:center}.vjs-checkbox .vjs-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;left:-999px}.vjs__tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono;font-size:14px}.vjs__tree .vjs__tree__content{padding-left:1em;border-left:1px dotted #ccc}.vjs__tree .vjs__tree__node{cursor:pointer}.vjs__tree .vjs__tree__node:hover{color:#20a0ff}.vjs__tree .vjs-checkbox{position:absolute;left:-30px}.vjs__tree .vjs__value__null{color:#ff4949}.vjs__tree .vjs__value__boolean,.vjs__tree .vjs__value__number{color:#1d8ce0}.vjs__tree .vjs__value__string{color:#13ce66}',""])},function(t,p){function e(t,p){var e=t[1]||"",b=t[3];if(!b)return e;if(p&&"function"==typeof btoa){var o=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(b);return[e].concat(b.sources.map(function(t){return"/*# sourceURL="+b.sourceRoot+t+" */"})).concat([o]).join("\n")}return[e].join("\n")}t.exports=function(t){var p=[];return p.toString=function(){return this.map(function(p){var b=e(p,t);return p[2]?"@media "+p[2]+"{"+b+"}":b}).join("")},p.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var b={},o=0;o-1:t.model},on:{change:function(p){t.$emit("change",t.model)},focus:function(p){t.focus=!0},blur:function(p){t.focus=!1},__c:function(p){var e=t.model,b=p.target,o=!!b.checked;if(Array.isArray(e)){var M=t._i(e,null);o?M<0&&(t.model=e.concat(null)):M>-1&&(t.model=e.slice(0,M).concat(e.slice(M+1)))}else t.model=o}}})])])},staticRenderFns:[]};p.a=b},function(t,p,e){"use strict";var b={render:function(){var t=this,p=t.$createElement,e=t._self._c||p;return e("div",{staticClass:"vjs__tree",style:{"background-color":t.treeContentBackground,position:t.currentDeep>1?"":"relative","margin-left":1===t.currentDeep&&t.existCheckbox?"30px":""},on:{click:function(p){p.stopPropagation(),t.handleClick(p)},mouseover:function(p){p.stopPropagation(),t.handleMouseover(p)},mouseout:function(p){p.stopPropagation(),t.handleMouseout(p)}}},[t.selectable&&t.existCheckbox?[e("checkbox",{on:{change:function(p){t.handleClick(p,!0)}},model:{value:t.checkboxVal,callback:function(p){t.checkboxVal=p},expression:"checkboxVal"}})]:t._e(),t._v(" "),Array.isArray(t.data)||t.isObject(t.data)?[e("brackets-left",{attrs:{visible:t.visible,data:t.data,"show-length":t.showLength,"not-last-key":t.notLastKey},on:{"update:visible":function(p){t.visible=p}}},[t.currentDeep>1&&!Array.isArray(t.parentData)?e("span",[t._v(t._s(t.currentKey)+":")]):t._e()]),t._v(" "),t._l(t.data,function(p,b){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],key:b,staticClass:"vjs__tree__content"},[e("vue-json-pretty",{attrs:{"parent-data":t.data,data:p,deep:t.deep,"show-length":t.showLength,path:t.path+(Array.isArray(t.data)?"["+b+"]":"."+b),"path-checked":t.pathChecked,"path-selectable":t.pathSelectable,"selectable-type":t.selectableType,"current-key":b,"current-deep":t.currentDeep+1},on:{click:t.handleItemClick}})],1)}),t._v(" "),e("brackets-right",{attrs:{visible:t.visible,data:t.data,"not-last-key":t.notLastKey},on:{"update:visible":function(p){t.visible=p}}})]:e("simple-text",{attrs:{parentDataType:t.getDataType(t.parentData),dataType:t.getDataType(t.data),text:t.data+"",notLastKey:t.notLastKey,currentKey:t.currentKey}})],2)},staticRenderFns:[]};p.a=b},function(t,p,e){"use strict";var b={render:function(){var t=this,p=t.$createElement,e=t._self._c||p;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.dataVisiable,expression:"dataVisiable"}]},[e("span",{staticClass:"vjs__tree__node",on:{click:function(p){p.stopPropagation(),t.toggleBrackets(p)}}},[t._v("\n "+t._s(t.bracketsFormatter(Array.isArray(t.data)?"]":"}"))+"\n ")])])},staticRenderFns:[]};p.a=b},function(t,p,e){"use strict";var b={render:function(){var t=this,p=t.$createElement,e=t._self._c||p;return e("div",["object"===t.parentDataType?e("span",[t._v(t._s(t.currentKey)+":")]):t._e(),t._v(" "),e("span",{class:"vjs__value__"+t.dataType},[t._v("\n "+t._s(t.textFormatter(t.text))+"\n ")])])},staticRenderFns:[]};p.a=b},function(t,p,e){"use strict";var b={render:function(){var t=this,p=t.$createElement,e=t._self._c||p;return e("div",[t._t("default"),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.dataVisiable,expression:"dataVisiable"}],staticClass:"vjs__tree__node",on:{click:function(p){p.stopPropagation(),t.toggleBrackets(p)}}},[t._v("\n "+t._s(Array.isArray(t.data)?"[":"{")+"\n ")]),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.dataVisiable,expression:"!dataVisiable"}],staticClass:"vjs__tree__node",on:{click:function(p){p.stopPropagation(),t.toggleBrackets(p)}}},[t._v("\n "+t._s(t.doubleBracketsGenerator(t.data))+"\n ")])],2)},staticRenderFns:[]};p.a=b},function(t,p,e){function b(t){for(var p=0;pe.parts.length&&(b.parts.length=e.parts.length)}else{for(var n=[],o=0;o2047?3:2;return b=t.substring(e,e+n),e+=n+2,b},r=function(){var p=t.charAt(e);return e+=2,p},O=function(){var t=r();switch(t){case"i":return n();case"s":return z();default:throw{name:"Parse Error",message:"Unknown key type '"+t+"' at position "+(e-2)}}},c=function(t,p){var e,b,o;return"\0"!==t.charAt(0)?t:(o=t.indexOf("\0",1))>0?(e=t.substring(1,o),b=t.substr(o+1),"*"===e?b:p===e?b:e+"::"+b):void 0};return(p=function(){var i,a,A,s,d=r();switch(d){case"i":return s=n(),b[o++]=s,s;case"d":return function(){var p=t.indexOf(";",e),M=t.substring(e,p);return e=p+1,M=parseFloat(M),b[o++]=M,M}();case"b":return function(){var p=t.indexOf(";",e),M=t.substring(e,p);return e=p+1,M="1"===M,b[o++]=M,M}();case"s":return function(){var t=z();return b[o++]=t,t}();case"a":return function(){var t,n,z,r,c,i=M(),a=[],A={},s=a,d=o++;for(b[d]=s,z=0;zt?1:-1,M=1,n=r.borderSkipped||"left"):(t=r.x-r.width/2,p=r.x+r.width/2,e=r.y,o=1,M=(b=r.base)>e?1:-1,n=r.borderSkipped||"bottom"),O){var c=Math.min(Math.abs(t-p),Math.abs(e-b)),i=(O=O>c?c:O)/2,a=t+("left"!==n?i*o:0),A=p+("right"!==n?-i*o:0),s=e+("top"!==n?i*M:0),d=b+("bottom"!==n?-i*M:0);a!==A&&(e=s,b=d),s!==d&&(t=a,p=A)}z.beginPath(),z.fillStyle=r.backgroundColor,z.strokeStyle=r.borderColor,z.lineWidth=O;var q=[[t,b],[t,e],[p,e],[p,b]],l=["bottom","left","top","right"].indexOf(n,0);function u(t){return q[(l+t)%4]}-1===l&&(l=0);var f=u(0);z.moveTo(f[0],f[1]);for(var W=1;W<4;W++)f=u(W),z.lineTo(f[0],f[1]);z.fill(),O&&z.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,p){var e=!1;if(this._view){var b=n(this);e=t>=b.left&&t<=b.right&&p>=b.top&&p<=b.bottom}return e},inLabelRange:function(t,p){if(!this._view)return!1;var e=n(this);return M(this)?t>=e.left&&t<=e.right:p>=e.top&&p<=e.bottom},inXRange:function(t){var p=n(this);return t>=p.left&&t<=p.right},inYRange:function(t){var p=n(this);return t>=p.top&&t<=p.bottom},getCenterPoint:function(){var t,p,e=this._view;return M(this)?(t=e.x,p=(e.y+e.base)/2):(t=(e.x+e.base)/2,p=e.y),{x:t,y:p}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},"35yf":function(t,p,e){"use strict";e("CDJp")._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),t.exports=function(t){t.controllers.scatter=t.controllers.line}},"3Irt":function(t,p,e){"use strict";e.r(p);var b=e("LvDl"),o=e.n(b),M=e("wd/R"),n=e.n(M),z={components:{},data:function(){return{stats:{},workers:[],workload:[],ready:!1}},mounted:function(){document.title="Horizon - Dashboard",this.refreshStatsPeriodically()},destroyed:function(){clearTimeout(this.timeout)},computed:{recentJobsPeriod:function(){return this.ready?"Jobs past ".concat(this.determinePeriod(this.stats.periods.recentJobs)):"Jobs past hour"},recentlyFailedPeriod:function(){return this.ready?"Failed jobs past ".concat(this.determinePeriod(this.stats.periods.recentlyFailed)):"Failed jobs past 7 days"}},methods:{loadStats:function(){var t=this;return this.$http.get("/"+Horizon.path+"/api/stats").then(function(p){t.stats=p.data,o.a.values(p.data.wait)[0]&&(t.stats.max_wait_time=o.a.values(p.data.wait)[0],t.stats.max_wait_queue=o.a.keys(p.data.wait)[0].split(":")[1])})},loadWorkers:function(){var t=this;return this.$http.get("/"+Horizon.path+"/api/masters").then(function(p){t.workers=p.data})},loadWorkload:function(){var t=this;return this.$http.get("/"+Horizon.path+"/api/workload").then(function(p){t.workload=p.data})},refreshStatsPeriodically:function(){var t=this;Promise.all([this.loadStats(),this.loadWorkers(),this.loadWorkload()]).then(function(){t.ready=!0,t.timeout=setTimeout(function(){t.refreshStatsPeriodically(!1)},5e3)})},countProcesses:function(t){return o.a.chain(t).values().sum().value().toLocaleString()},superVisorDisplayName:function(t,p){return o.a.replace(t,p+":","")},humanTime:function(t){return n.a.duration(t,"seconds").humanize().replace(/^(.)|\s+(.)/g,function(t){return t.toUpperCase()})},determinePeriod:function(t){return n.a.duration(n()().diff(n()().subtract(t,"minutes"))).humanize().replace(/^An?/i,"")}}},r=e("KHd+"),O=Object(r.a)(z,function(){var t=this,p=t.$createElement,e=t._self._c||p;return e("div",[e("div",{staticClass:"card"},[t._m(0),t._v(" "),e("div",{staticClass:"card-bg-secondary"},[e("div",{staticClass:"d-flex"},[e("div",{staticClass:"w-25 border-right border-bottom"},[e("div",{staticClass:"p-4"},[e("small",{staticClass:"text-uppercase"},[t._v("Jobs Per Minute")]),t._v(" "),e("h4",{staticClass:"mt-4 mb-0"},[t._v("\n "+t._s(t.stats.jobsPerMinute?t.stats.jobsPerMinute.toLocaleString():0)+"\n ")])])]),t._v(" "),e("div",{staticClass:"w-25 border-right border-bottom"},[e("div",{staticClass:"p-4"},[e("small",{staticClass:"text-uppercase",domProps:{textContent:t._s(t.recentJobsPeriod)}}),t._v(" "),e("h4",{staticClass:"mt-4 mb-0"},[t._v("\n "+t._s(t.stats.recentJobs?t.stats.recentJobs.toLocaleString():0)+"\n ")])])]),t._v(" "),e("div",{staticClass:"w-25 border-right border-bottom"},[e("div",{staticClass:"p-4"},[e("small",{staticClass:"text-uppercase",domProps:{textContent:t._s(t.recentlyFailedPeriod)}}),t._v(" "),e("h4",{staticClass:"mt-4 mb-0"},[t._v("\n "+t._s(t.stats.recentlyFailed?t.stats.recentlyFailed.toLocaleString():0)+"\n ")])])]),t._v(" "),e("div",{staticClass:"w-25 border-bottom"},[e("div",{staticClass:"p-4"},[e("small",{staticClass:"text-uppercase"},[t._v("Status")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center mt-4"},["running"==t.stats.status?e("svg",{staticClass:"fill-success",staticStyle:{width:"1.5rem",height:"1.5rem"},attrs:{viewBox:"0 0 20 20"}},[e("path",{attrs:{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM6.7 9.29L9 11.6l4.3-4.3 1.4 1.42L9 14.4l-3.7-3.7 1.4-1.42z"}})]):t._e(),t._v(" "),"paused"==t.stats.status?e("svg",{staticClass:"fill-warning",staticStyle:{width:"1.5rem",height:"1.5rem"},attrs:{viewBox:"0 0 20 20"}},[e("path",{attrs:{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM7 6h2v8H7V6zm4 0h2v8h-2V6z"}})]):t._e(),t._v(" "),"inactive"==t.stats.status?e("svg",{staticClass:"fill-danger",staticStyle:{width:"1.5rem",height:"1.5rem"},attrs:{viewBox:"0 0 20 20"}},[e("path",{attrs:{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm1.41-1.41A8 8 0 1 0 15.66 4.34 8 8 0 0 0 4.34 15.66zm9.9-8.49L11.41 10l2.83 2.83-1.41 1.41L10 11.41l-2.83 2.83-1.41-1.41L8.59 10 5.76 7.17l1.41-1.41L10 8.59l2.83-2.83 1.41 1.41z"}})]):t._e(),t._v(" "),e("h4",{staticClass:"mb-0 ml-2"},[t._v(t._s({running:"Active",paused:"Paused",inactive:"Inactive"}[t.stats.status]))])])])])]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"w-25 border-right"},[e("div",{staticClass:"p-4 mb-0"},[e("small",{staticClass:"text-uppercase"},[t._v("TOTAL PROCESSES")]),t._v(" "),e("h4",{staticClass:"mt-4"},[t._v("\n "+t._s(t.stats.processes?t.stats.processes.toLocaleString():0)+"\n ")])])]),t._v(" "),e("div",{staticClass:"w-25 border-right"},[e("div",{staticClass:"p-4 mb-0"},[e("small",{staticClass:"text-uppercase"},[t._v("MAX WAIT TIME")]),t._v(" "),t.stats.max_wait_queue?e("small",[t._v("("+t._s(t.stats.max_wait_queue)+")")]):t._e(),t._v(" "),e("h4",{staticClass:"mt-4"},[t._v("\n "+t._s(t.stats.max_wait_time?t.humanTime(t.stats.max_wait_time):"-")+"\n ")])])]),t._v(" "),e("div",{staticClass:"w-25 border-right"},[e("div",{staticClass:"p-4 mb-0"},[e("small",{staticClass:"text-uppercase"},[t._v("MAX RUNTIME")]),t._v(" "),e("h4",{staticClass:"mt-4"},[t._v("\n "+t._s(t.stats.queueWithMaxRuntime?t.stats.queueWithMaxRuntime:"-")+"\n ")])])]),t._v(" "),e("div",{staticClass:"w-25"},[e("div",{staticClass:"p-4 mb-0"},[e("small",{staticClass:"text-uppercase"},[t._v("MAX THROUGHPUT")]),t._v(" "),e("h4",{staticClass:"mt-4"},[t._v("\n "+t._s(t.stats.queueWithMaxThroughput?t.stats.queueWithMaxThroughput:"-")+"\n ")])])])])])]),t._v(" "),t.workload.length?e("div",{staticClass:"card mt-4"},[t._m(1),t._v(" "),e("table",{staticClass:"table table-hover table-sm mb-0"},[t._m(2),t._v(" "),e("tbody",t._l(t.workload,function(p){return e("tr",[e("td",[e("span",[t._v(t._s(p.name.replace(/,/g,", ")))])]),t._v(" "),e("td",[t._v(t._s(p.processes?p.processes.toLocaleString():0))]),t._v(" "),e("td",[t._v(t._s(p.length?p.length.toLocaleString():0))]),t._v(" "),e("td",{staticClass:"text-right"},[t._v(t._s(t.humanTime(p.wait)))])])}),0)])]):t._e(),t._v(" "),t._l(t.workers,function(p){return e("div",{key:p.name,staticClass:"card mt-4"},[e("div",{staticClass:"card-header d-flex align-items-center justify-content-between"},[e("h5",[t._v(t._s(p.name))])]),t._v(" "),e("table",{staticClass:"table table-hover table-sm mb-0"},[t._m(3,!0),t._v(" "),e("tbody",t._l(p.supervisors,function(b){return e("tr",[e("td",[t._v(t._s(t.superVisorDisplayName(b.name,p.name)))]),t._v(" "),e("td",[t._v(t._s(t.countProcesses(b.processes)))]),t._v(" "),e("td",[t._v(t._s(b.options.queue.replace(/,/g,", ")))]),t._v(" "),e("td",{staticClass:"text-right"},[t._v("\n ("+t._s(b.options.balance.charAt(0).toUpperCase()+b.options.balance.slice(1))+")\n ")])])}),0)])])})],2)},[function(){var t=this.$createElement,p=this._self._c||t;return p("div",{staticClass:"card-header d-flex align-items-center justify-content-between"},[p("h5",[this._v("Overview")])])},function(){var t=this.$createElement,p=this._self._c||t;return p("div",{staticClass:"card-header d-flex align-items-center justify-content-between"},[p("h5",[this._v("Current Workload")])])},function(){var t=this.$createElement,p=this._self._c||t;return p("thead",[p("tr",[p("th",[this._v("Queue")]),this._v(" "),p("th",[this._v("Processes")]),this._v(" "),p("th",[this._v("Jobs")]),this._v(" "),p("th",{staticClass:"text-right"},[this._v("Wait")])])])},function(){var t=this.$createElement,p=this._self._c||t;return p("thead",[p("tr",[p("th",[this._v("Supervisor")]),this._v(" "),p("th",[this._v("Processes")]),this._v(" "),p("th",[this._v("Queues")]),this._v(" "),p("th",{staticClass:"text-right"},[this._v("Balancing")])])])}],!1,null,null,null);p.default=O.exports},"5ZZ7":function(t,p,e){"use strict";var b=e("CDJp"),o=e("vvH+"),M=e("RDha");b._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var p=[];p.push('
    ');var e=t.data,b=e.datasets,o=e.labels;if(b.length)for(var M=0;M'),o[M]&&p.push(o[M]),p.push("");return p.push("
"),p.join("")},legend:{labels:{generateLabels:function(t){var p=t.data;return p.labels.length&&p.datasets.length?p.labels.map(function(e,b){var o=t.getDatasetMeta(0),n=p.datasets[0],z=o.data[b].custom||{},r=M.valueAtIndexOrDefault,O=t.options.elements.arc;return{text:e,fillStyle:z.backgroundColor?z.backgroundColor:r(n.backgroundColor,b,O.backgroundColor),strokeStyle:z.borderColor?z.borderColor:r(n.borderColor,b,O.borderColor),lineWidth:z.borderWidth?z.borderWidth:r(n.borderWidth,b,O.borderWidth),hidden:isNaN(n.data[b])||o.data[b].hidden,index:b}}):[]}},onClick:function(t,p){var e,b,o,M=p.index,n=this.chart;for(e=0,b=(n.data.datasets||[]).length;e=0;--e)p.isDatasetVisible(e)&&p.drawDataset(e,t);c.notify(p,"afterDatasetsDraw",[t])}},drawDataset:function(t,p){var e=this.getDatasetMeta(t),b={meta:e,index:t,easingValue:p};!1!==c.notify(this,"beforeDatasetDraw",[b])&&(e.controller.draw(p),c.notify(this,"afterDatasetDraw",[b]))},_drawTooltip:function(t){var p=this.tooltip,e={tooltip:p,easingValue:t};!1!==c.notify(this,"beforeTooltipDraw",[e])&&(p.draw(),c.notify(this,"afterTooltipDraw",[e]))},getElementAtEvent:function(t){return z.modes.single(this,t)},getElementsAtEvent:function(t){return z.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return z.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,p,e){var b=z.modes[p];return"function"==typeof b?b(this,t,e):[]},getDatasetAtEvent:function(t){return z.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var p=this.data.datasets[t];p._meta||(p._meta={});var e=p._meta[this.id];return e||(e=p._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),e},getVisibleDatasetCount:function(){for(var t=0,p=0,e=this.data.datasets.length;pe?(p+.05)/(e+.05):(e+.05)/(p+.05)},level:function(t){var p=this.contrast(t);return p>=7.1?"AAA":p>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],p=0;p<3;p++)t[p]=255-this.values.rgb[p];return this.setValues("rgb",t),this},lighten:function(t){var p=this.values.hsl;return p[2]+=p[2]*t,this.setValues("hsl",p),this},darken:function(t){var p=this.values.hsl;return p[2]-=p[2]*t,this.setValues("hsl",p),this},saturate:function(t){var p=this.values.hsl;return p[1]+=p[1]*t,this.setValues("hsl",p),this},desaturate:function(t){var p=this.values.hsl;return p[1]-=p[1]*t,this.setValues("hsl",p),this},whiten:function(t){var p=this.values.hwb;return p[1]+=p[1]*t,this.setValues("hwb",p),this},blacken:function(t){var p=this.values.hwb;return p[2]+=p[2]*t,this.setValues("hwb",p),this},greyscale:function(){var t=this.values.rgb,p=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[p,p,p]),this},clearer:function(t){var p=this.values.alpha;return this.setValues("alpha",p-p*t),this},opaquer:function(t){var p=this.values.alpha;return this.setValues("alpha",p+p*t),this},rotate:function(t){var p=this.values.hsl,e=(p[0]+t)%360;return p[0]=e<0?360+e:e,this.setValues("hsl",p),this},mix:function(t,p){var e=t,b=void 0===p?.5:p,o=2*b-1,M=this.alpha()-e.alpha(),n=((o*M==-1?o:(o+M)/(1+o*M))+1)/2,z=1-n;return this.rgb(n*this.red()+z*e.red(),n*this.green()+z*e.green(),n*this.blue()+z*e.blue()).alpha(this.alpha()*b+e.alpha()*(1-b))},toJSON:function(){return this.rgb()},clone:function(){var t,p,e=new M,b=this.values,o=e.values;for(var n in b)b.hasOwnProperty(n)&&(t=b[n],"[object Array]"===(p={}.toString.call(t))?o[n]=t.slice(0):"[object Number]"===p?o[n]=t:console.error("unexpected color value:",t));return e}},M.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},M.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},M.prototype.getValues=function(t){for(var p=this.values,e={},b=0;bo?{start:p-e-5,end:p}:{start:p,end:p+e+5}}function c(t){return 0===t||180===t?"center":t<180?"left":"right"}function i(t,p,e,b){if(o.isArray(p))for(var M=e.y,n=1.5*b,z=0;z270||t<90)&&(e.y-=p.h)}function A(t){return o.isNumber(t)?t:0}var s=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,b=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var M=o.min([t.height,t.width]),n=o.valueOrDefault(b.fontSize,p.defaultFontSize);t.drawingArea=e.display?M/2-(n/2+b.backdropPaddingY):M/2},determineDataLimits:function(){var t=this,p=t.chart,e=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY;o.each(p.data.datasets,function(M,n){if(p.isDatasetVisible(n)){var z=p.getDatasetMeta(n);o.each(M.data,function(p,o){var M=+t.getRightValue(p);isNaN(M)||z.data[o].hidden||(e=Math.min(M,e),b=Math.max(M,b))})}}),t.min=e===Number.POSITIVE_INFINITY?0:e,t.max=b===Number.NEGATIVE_INFINITY?0:b,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=o.valueOrDefault(t.fontSize,p.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var p=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(p),p.pointLabels=p.chart.data.labels.map(p.options.pointLabels.callback,p)},getLabelForIndex:function(t,p){return+this.getRightValue(this.chart.data.datasets[p].data[t])},fit:function(){var t,p;this.options.pointLabels.display?function(t){var p,e,b,M=r(t),n=Math.min(t.height/2,t.width/2),c={r:t.width,l:0,t:t.height,b:0},i={};t.ctx.font=M.font,t._pointLabelSizes=[];var a,A,s,d=z(t);for(p=0;pc.r&&(c.r=u.end,i.r=q),f.startc.b&&(c.b=f.end,i.b=q)}t.setReductions(n,c,i)}(this):(t=this,p=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(p),t.setCenterPoint(0,0,0,0))},setReductions:function(t,p,e){var b=p.l/Math.sin(e.l),o=Math.max(p.r-this.width,0)/Math.sin(e.r),M=-p.t/Math.cos(e.t),n=-Math.max(p.b-this.height,0)/Math.cos(e.b);b=A(b),o=A(o),M=A(M),n=A(n),this.drawingArea=Math.min(Math.round(t-(b+o)/2),Math.round(t-(M+n)/2)),this.setCenterPoint(b,o,M,n)},setCenterPoint:function(t,p,e,b){var o=this,M=o.width-p-o.drawingArea,n=t+o.drawingArea,z=e+o.drawingArea,r=o.height-b-o.drawingArea;o.xCenter=Math.round((n+M)/2+o.left),o.yCenter=Math.round((z+r)/2+o.top)},getIndexAngle:function(t){return t*(2*Math.PI/z(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var p=this;if(null===t)return 0;var e=p.drawingArea/(p.max-p.min);return p.options.ticks.reverse?(p.max-t)*e:(t-p.min)*e},getPointPosition:function(t,p){var e=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(e)*p)+this.xCenter,y:Math.round(Math.sin(e)*p)+this.yCenter}},getPointPositionForValue:function(t,p){return this.getPointPosition(t,this.getDistanceFromCenterForValue(p))},getBasePosition:function(){var t=this.min,p=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&p<0?p:t>0&&p>0?t:0)},draw:function(){var t=this,e=t.options,b=e.gridLines,M=e.ticks,n=o.valueOrDefault;if(e.display){var O=t.ctx,A=this.getIndexAngle(0),s=n(M.fontSize,p.defaultFontSize),d=n(M.fontStyle,p.defaultFontStyle),q=n(M.fontFamily,p.defaultFontFamily),l=o.fontString(s,d,q);o.each(t.ticks,function(e,r){if(r>0||M.reverse){var c=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]);if(b.display&&0!==r&&function(t,p,e,b){var M=t.ctx;if(M.strokeStyle=o.valueAtIndexOrDefault(p.color,b-1),M.lineWidth=o.valueAtIndexOrDefault(p.lineWidth,b-1),t.options.gridLines.circular)M.beginPath(),M.arc(t.xCenter,t.yCenter,e,0,2*Math.PI),M.closePath(),M.stroke();else{var n=z(t);if(0===n)return;M.beginPath();var r=t.getPointPosition(0,e);M.moveTo(r.x,r.y);for(var O=1;O=0;s--){if(M.display){var d=t.getPointPosition(s,O);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(d.x,d.y),e.stroke(),e.closePath()}if(n.display){var q=t.getPointPosition(s,O+5),l=o.valueAtIndexOrDefault(n.fontColor,s,p.defaultFontColor);e.font=A.font,e.fillStyle=l;var u=t.getIndexAngle(s),f=o.toDegrees(u);e.textAlign=c(f),a(f,t._pointLabelSizes[s],q),i(e,t.pointLabels[s]||"",q,A.size)}}}(t)}}});M.registerScaleType("radialLinear",s,e)}},"8L3F":function(t,p,e){"use strict";e.r(p),function(t){for(var e="undefined"!=typeof window&&"undefined"!=typeof document,b=["Edge","Trident","Firefox"],o=0,M=0;M=0){o=1;break}var n=e&&window.Promise?function(t){var p=!1;return function(){p||(p=!0,window.Promise.resolve().then(function(){p=!1,t()}))}}:function(t){var p=!1;return function(){p||(p=!0,setTimeout(function(){p=!1,t()},o))}};function z(t){return t&&"[object Function]"==={}.toString.call(t)}function r(t,p){if(1!==t.nodeType)return[];var e=t.ownerDocument.defaultView.getComputedStyle(t,null);return p?e[p]:e}function O(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var p=r(t),e=p.overflow,b=p.overflowX,o=p.overflowY;return/(auto|scroll|overlay)/.test(e+o+b)?t:c(O(t))}var i=e&&!(!window.MSInputMethodContext||!document.documentMode),a=e&&/MSIE 10/.test(navigator.userAgent);function A(t){return 11===t?i:10===t?a:i||a}function s(t){if(!t)return document.documentElement;for(var p=A(10)?document.body:null,e=t.offsetParent||null;e===p&&t.nextElementSibling;)e=(t=t.nextElementSibling).offsetParent;var b=e&&e.nodeName;return b&&"BODY"!==b&&"HTML"!==b?-1!==["TH","TD","TABLE"].indexOf(e.nodeName)&&"static"===r(e,"position")?s(e):e:t?t.ownerDocument.documentElement:document.documentElement}function d(t){return null!==t.parentNode?d(t.parentNode):t}function q(t,p){if(!(t&&t.nodeType&&p&&p.nodeType))return document.documentElement;var e=t.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING,b=e?t:p,o=e?p:t,M=document.createRange();M.setStart(b,0),M.setEnd(o,0);var n,z,r=M.commonAncestorContainer;if(t!==r&&p!==r||b.contains(o))return"BODY"===(z=(n=r).nodeName)||"HTML"!==z&&s(n.firstElementChild)!==n?s(r):r;var O=d(t);return O.host?q(O.host,p):q(t,d(p).host)}function l(t){var p="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",e=t.nodeName;if("BODY"===e||"HTML"===e){var b=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||b)[p]}return t[p]}function u(t,p){var e="x"===p?"Left":"Top",b="Left"===e?"Right":"Bottom";return parseFloat(t["border"+e+"Width"],10)+parseFloat(t["border"+b+"Width"],10)}function f(t,p,e,b){return Math.max(p["offset"+t],p["scroll"+t],e["client"+t],e["offset"+t],e["scroll"+t],A(10)?parseInt(e["offset"+t])+parseInt(b["margin"+("Height"===t?"Top":"Left")])+parseInt(b["margin"+("Height"===t?"Bottom":"Right")]):0)}function W(t){var p=t.body,e=t.documentElement,b=A(10)&&getComputedStyle(e);return{height:f("Height",p,e,b),width:f("Width",p,e,b)}}var h=function(t,p){if(!(t instanceof p))throw new TypeError("Cannot call a class as a function")},R=function(){function t(t,p){for(var e=0;e2&&void 0!==arguments[2]&&arguments[2],b=A(10),o="HTML"===p.nodeName,M=B(t),n=B(p),z=c(t),O=r(p),i=parseFloat(O.borderTopWidth,10),a=parseFloat(O.borderLeftWidth,10);e&&o&&(n.top=Math.max(n.top,0),n.left=Math.max(n.left,0));var s=g({top:M.top-n.top-i,left:M.left-n.left-a,width:M.width,height:M.height});if(s.marginTop=0,s.marginLeft=0,!b&&o){var d=parseFloat(O.marginTop,10),q=parseFloat(O.marginLeft,10);s.top-=i-d,s.bottom-=i-d,s.left-=a-q,s.right-=a-q,s.marginTop=d,s.marginLeft=q}return(b&&!e?p.contains(z):p===z&&"BODY"!==z.nodeName)&&(s=function(t,p){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],b=l(p,"top"),o=l(p,"left"),M=e?-1:1;return t.top+=b*M,t.bottom+=b*M,t.left+=o*M,t.right+=o*M,t}(s,p)),s}function X(t){if(!t||!t.parentElement||A())return document.documentElement;for(var p=t.parentElement;p&&"none"===r(p,"transform");)p=p.parentElement;return p||document.documentElement}function y(t,p,e,b){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],M={top:0,left:0},n=o?X(t):q(t,p);if("viewport"===b)M=function(t){var p=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.ownerDocument.documentElement,b=L(t,e),o=Math.max(e.clientWidth,window.innerWidth||0),M=Math.max(e.clientHeight,window.innerHeight||0),n=p?0:l(e),z=p?0:l(e,"left");return g({top:n-b.top+b.marginTop,left:z-b.left+b.marginLeft,width:o,height:M})}(n,o);else{var z=void 0;"scrollParent"===b?"BODY"===(z=c(O(p))).nodeName&&(z=t.ownerDocument.documentElement):z="window"===b?t.ownerDocument.documentElement:b;var i=L(z,n,o);if("HTML"!==z.nodeName||function t(p){var e=p.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===r(p,"position"))return!0;var b=O(p);return!!b&&t(b)}(n))M=i;else{var a=W(t.ownerDocument),A=a.height,s=a.width;M.top+=i.top-i.marginTop,M.bottom=A+i.top,M.left+=i.left-i.marginLeft,M.right=s+i.left}}var d="number"==typeof(e=e||0);return M.left+=d?e:e.left||0,M.top+=d?e:e.top||0,M.right-=d?e:e.right||0,M.bottom-=d?e:e.bottom||0,M}function N(t,p,e,b,o){var M=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var n=y(e,b,M,o),z={top:{width:n.width,height:p.top-n.top},right:{width:n.right-p.right,height:n.height},bottom:{width:n.width,height:n.bottom-p.bottom},left:{width:p.left-n.left,height:n.height}},r=Object.keys(z).map(function(t){return m({key:t},z[t],{area:(p=z[t],p.width*p.height)});var p}).sort(function(t,p){return p.area-t.area}),O=r.filter(function(t){var p=t.width,b=t.height;return p>=e.clientWidth&&b>=e.clientHeight}),c=O.length>0?O[0].key:r[0].key,i=t.split("-")[1];return c+(i?"-"+i:"")}function _(t,p,e){var b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return L(e,b?X(p):q(p,e),b)}function T(t){var p=t.ownerDocument.defaultView.getComputedStyle(t),e=parseFloat(p.marginTop||0)+parseFloat(p.marginBottom||0),b=parseFloat(p.marginLeft||0)+parseFloat(p.marginRight||0);return{width:t.offsetWidth+b,height:t.offsetHeight+e}}function x(t){var p={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return p[t]})}function w(t,p,e){e=e.split("-")[0];var b=T(t),o={width:b.width,height:b.height},M=-1!==["right","left"].indexOf(e),n=M?"top":"left",z=M?"left":"top",r=M?"height":"width",O=M?"width":"height";return o[n]=p[n]+p[r]/2-b[r]/2,o[z]=e===z?p[z]-b[O]:p[x(z)],o}function C(t,p){return Array.prototype.find?t.find(p):t.filter(p)[0]}function S(t,p,e){return(void 0===e?t:t.slice(0,function(t,p,e){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[p]===e});var b=C(t,function(t){return t[p]===e});return t.indexOf(b)}(t,"name",e))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&z(e)&&(p.offsets.popper=g(p.offsets.popper),p.offsets.reference=g(p.offsets.reference),p=e(p,t))}),p}function H(t,p){return t.some(function(t){var e=t.name;return t.enabled&&e===p})}function E(t){for(var p=[!1,"ms","Webkit","Moz","O"],e=t.charAt(0).toUpperCase()+t.slice(1),b=0;b1&&void 0!==arguments[1]&&arguments[1],e=$.indexOf(t),b=$.slice(e+1).concat($.slice(0,e));return p?b.reverse():b}var Y={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function G(t,p,e,b){var o=[0,0],M=-1!==["right","left"].indexOf(b),n=t.split(/(\+|\-)/).map(function(t){return t.trim()}),z=n.indexOf(C(n,function(t){return-1!==t.search(/,|\s/)}));n[z]&&-1===n[z].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var r=/\s*,\s*|\s+/,O=-1!==z?[n.slice(0,z).concat([n[z].split(r)[0]]),[n[z].split(r)[1]].concat(n.slice(z+1))]:[n];return(O=O.map(function(t,b){var o=(1===b?!M:M)?"height":"width",n=!1;return t.reduce(function(t,p){return""===t[t.length-1]&&-1!==["+","-"].indexOf(p)?(t[t.length-1]=p,n=!0,t):n?(t[t.length-1]+=p,n=!1,t):t.concat(p)},[]).map(function(t){return function(t,p,e,b){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),M=+o[1],n=o[2];if(!M)return t;if(0===n.indexOf("%")){var z=void 0;switch(n){case"%p":z=e;break;case"%":case"%r":default:z=b}return g(z)[p]/100*M}if("vh"===n||"vw"===n)return("vh"===n?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*M;return M}(t,o,p,e)})})).forEach(function(t,p){t.forEach(function(e,b){I(e)&&(o[p]+=e*("-"===t[b-1]?-1:1))})}),o}var Q={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var p=t.placement,e=p.split("-")[0],b=p.split("-")[1];if(b){var o=t.offsets,M=o.reference,n=o.popper,z=-1!==["bottom","top"].indexOf(e),r=z?"left":"top",O=z?"width":"height",c={start:v({},r,M[r]),end:v({},r,M[r]+M[O]-n[O])};t.offsets.popper=m({},n,c[b])}return t}},offset:{order:200,enabled:!0,fn:function(t,p){var e=p.offset,b=t.placement,o=t.offsets,M=o.popper,n=o.reference,z=b.split("-")[0],r=void 0;return r=I(+e)?[+e,0]:G(e,M,n,z),"left"===z?(M.top+=r[0],M.left-=r[1]):"right"===z?(M.top+=r[0],M.left+=r[1]):"top"===z?(M.left+=r[0],M.top-=r[1]):"bottom"===z&&(M.left+=r[0],M.top+=r[1]),t.popper=M,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,p){var e=p.boundariesElement||s(t.instance.popper);t.instance.reference===e&&(e=s(e));var b=E("transform"),o=t.instance.popper.style,M=o.top,n=o.left,z=o[b];o.top="",o.left="",o[b]="";var r=y(t.instance.popper,t.instance.reference,p.padding,e,t.positionFixed);o.top=M,o.left=n,o[b]=z,p.boundaries=r;var O=p.priority,c=t.offsets.popper,i={primary:function(t){var e=c[t];return c[t]r[t]&&!p.escapeWithReference&&(b=Math.min(c[e],r[t]-("right"===t?c.width:c.height))),v({},e,b)}};return O.forEach(function(t){var p=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=m({},c,i[p](t))}),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var p=t.offsets,e=p.popper,b=p.reference,o=t.placement.split("-")[0],M=Math.floor,n=-1!==["top","bottom"].indexOf(o),z=n?"right":"bottom",r=n?"left":"top",O=n?"width":"height";return e[z]M(b[z])&&(t.offsets.popper[r]=M(b[z])),t}},arrow:{order:500,enabled:!0,fn:function(t,p){var e;if(!V(t.instance.modifiers,"arrow","keepTogether"))return t;var b=p.element;if("string"==typeof b){if(!(b=t.instance.popper.querySelector(b)))return t}else if(!t.instance.popper.contains(b))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],M=t.offsets,n=M.popper,z=M.reference,O=-1!==["left","right"].indexOf(o),c=O?"height":"width",i=O?"Top":"Left",a=i.toLowerCase(),A=O?"left":"top",s=O?"bottom":"right",d=T(b)[c];z[s]-dn[s]&&(t.offsets.popper[a]+=z[a]+d-n[s]),t.offsets.popper=g(t.offsets.popper);var q=z[a]+z[c]/2-d/2,l=r(t.instance.popper),u=parseFloat(l["margin"+i],10),f=parseFloat(l["border"+i+"Width"],10),W=q-t.offsets.popper[a]-u-f;return W=Math.max(Math.min(n[c]-d,W),0),t.arrowElement=b,t.offsets.arrow=(v(e={},a,Math.round(W)),v(e,A,""),e),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,p){if(H(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var e=y(t.instance.popper,t.instance.reference,p.padding,p.boundariesElement,t.positionFixed),b=t.placement.split("-")[0],o=x(b),M=t.placement.split("-")[1]||"",n=[];switch(p.behavior){case Y.FLIP:n=[b,o];break;case Y.CLOCKWISE:n=K(b);break;case Y.COUNTERCLOCKWISE:n=K(b,!0);break;default:n=p.behavior}return n.forEach(function(z,r){if(b!==z||n.length===r+1)return t;b=t.placement.split("-")[0],o=x(b);var O=t.offsets.popper,c=t.offsets.reference,i=Math.floor,a="left"===b&&i(O.right)>i(c.left)||"right"===b&&i(O.left)i(c.top)||"bottom"===b&&i(O.top)i(e.right),d=i(O.top)i(e.bottom),l="left"===b&&A||"right"===b&&s||"top"===b&&d||"bottom"===b&&q,u=-1!==["top","bottom"].indexOf(b),f=!!p.flipVariations&&(u&&"start"===M&&A||u&&"end"===M&&s||!u&&"start"===M&&d||!u&&"end"===M&&q);(a||l||f)&&(t.flipped=!0,(a||l)&&(b=n[r+1]),f&&(M=function(t){return"end"===t?"start":"start"===t?"end":t}(M)),t.placement=b+(M?"-"+M:""),t.offsets.popper=m({},t.offsets.popper,w(t.instance.popper,t.offsets.reference,t.placement)),t=S(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var p=t.placement,e=p.split("-")[0],b=t.offsets,o=b.popper,M=b.reference,n=-1!==["left","right"].indexOf(e),z=-1===["top","left"].indexOf(e);return o[n?"left":"top"]=M[e]-(z?o[n?"width":"height"]:0),t.placement=x(p),t.offsets.popper=g(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!V(t.instance.modifiers,"hide","preventOverflow"))return t;var p=t.offsets.reference,e=C(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(p.bottome.right||p.top>e.bottom||p.right2&&void 0!==arguments[2]?arguments[2]:{};h(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(b.update)},this.update=n(this.update.bind(this)),this.options=m({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=p&&p.jquery?p[0]:p,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(m({},t.Defaults.modifiers,o.modifiers)).forEach(function(p){b.options.modifiers[p]=m({},t.Defaults.modifiers[p]||{},o.modifiers?o.modifiers[p]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return m({name:t},b.options.modifiers[t])}).sort(function(t,p){return t.order-p.order}),this.modifiers.forEach(function(t){t.enabled&&z(t.onLoad)&&t.onLoad(b.reference,b.popper,b.options,t,b.state)}),this.update();var M=this.options.eventsEnabled;M&&this.enableEventListeners(),this.state.eventsEnabled=M}return R(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=N(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=w(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=S(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[E("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=k(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return D.call(this)}}]),t}();J.Utils=("undefined"!=typeof window?window:t).PopperUtils,J.placements=U,J.Defaults=Q,p.default=J}.call(this,e("yLpj"))},"8TtQ":function(t,p,e){"use strict";var b=e("cdu6"),o=e("tjFV");t.exports=function(){var t=b.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,p=this,e=p.getLabels();p.minIndex=0,p.maxIndex=e.length-1,void 0!==p.options.ticks.min&&(t=e.indexOf(p.options.ticks.min),p.minIndex=-1!==t?t:p.minIndex),void 0!==p.options.ticks.max&&(t=e.indexOf(p.options.ticks.max),p.maxIndex=-1!==t?t:p.maxIndex),p.min=e[p.minIndex],p.max=e[p.maxIndex]},buildTicks:function(){var t=this,p=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===p.length-1?p:p.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,p){var e=this,b=e.chart.data,o=e.isHorizontal();return b.yLabels&&!o?e.getRightValue(b.datasets[p].data[t]):e.ticks[t-e.minIndex]},getPixelForValue:function(t,p){var e,b=this,o=b.options.offset,M=Math.max(b.maxIndex+1-b.minIndex-(o?0:1),1);if(null!=t&&(e=b.isHorizontal()?t.x:t.y),void 0!==e||void 0!==t&&isNaN(p)){t=e||t;var n=b.getLabels().indexOf(t);p=-1!==n?n:p}if(b.isHorizontal()){var z=b.width/M,r=z*(p-b.minIndex);return o&&(r+=z/2),b.left+Math.round(r)}var O=b.height/M,c=O*(p-b.minIndex);return o&&(c+=O/2),b.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var p=this,e=p.options.offset,b=Math.max(p._ticks.length-(e?0:1),1),o=p.isHorizontal(),M=(o?p.width:p.height)/b;return t-=o?p.left:p.top,e&&(t-=M/2),(t<=0?0:Math.round(t/M))+p.minIndex},getBasePixel:function(){return this.bottom}});o.registerScaleType("category",t,{position:"bottom"})}},"8oxB":function(t,p){var e,b,o=t.exports={};function M(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function z(t){if(e===setTimeout)return setTimeout(t,0);if((e===M||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(p){try{return e.call(null,t,0)}catch(p){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:M}catch(t){e=M}try{b="function"==typeof clearTimeout?clearTimeout:n}catch(t){b=n}}();var r,O=[],c=!1,i=-1;function a(){c&&r&&(c=!1,r.length?O=r.concat(O):i=-1,O.length&&A())}function A(){if(!c){var t=z(a);c=!0;for(var p=O.length;p;){for(r=O,O=[];++i1)for(var e=1;e');for(var e=0;e'),t.data.datasets[e].label&&p.push(t.data.datasets[e].label),p.push("");return p.push(""),p.join("")}});var O=o.extend({initialize:function(t){M.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:z,update:function(t,p,e){var b=this;return b.beforeUpdate(),b.maxWidth=t,b.maxHeight=p,b.margins=e,b.beforeSetDimensions(),b.setDimensions(),b.afterSetDimensions(),b.beforeBuildLabels(),b.buildLabels(),b.afterBuildLabels(),b.beforeFit(),b.fit(),b.afterFit(),b.afterUpdate(),b.minSize},afterUpdate:z,beforeSetDimensions:z,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:z,beforeBuildLabels:z,buildLabels:function(){var t=this,p=t.options.labels||{},e=M.callback(p.generateLabels,[t.chart],t)||[];p.filter&&(e=e.filter(function(e){return p.filter(e,t.chart.data)})),t.options.reverse&&e.reverse(),t.legendItems=e},afterBuildLabels:z,beforeFit:z,fit:function(){var t=this,p=t.options,e=p.labels,o=p.display,n=t.ctx,z=b.global,O=M.valueOrDefault,c=O(e.fontSize,z.defaultFontSize),i=O(e.fontStyle,z.defaultFontStyle),a=O(e.fontFamily,z.defaultFontFamily),A=M.fontString(c,i,a),s=t.legendHitBoxes=[],d=t.minSize,q=t.isHorizontal();if(q?(d.width=t.maxWidth,d.height=o?10:0):(d.width=o?10:0,d.height=t.maxHeight),o)if(n.font=A,q){var l=t.lineWidths=[0],u=t.legendItems.length?c+e.padding:0;n.textAlign="left",n.textBaseline="top",M.each(t.legendItems,function(p,b){var o=r(e,c)+c/2+n.measureText(p.text).width;l[l.length-1]+o+e.padding>=t.width&&(u+=c+e.padding,l[l.length]=t.left),s[b]={left:0,top:0,width:o,height:c},l[l.length-1]+=o+e.padding}),d.height+=u}else{var f=e.padding,W=t.columnWidths=[],h=e.padding,R=0,v=0,m=c+f;M.each(t.legendItems,function(t,p){var b=r(e,c)+c/2+n.measureText(t.text).width;v+m>d.height&&(h+=R+e.padding,W.push(R),R=0,v=0),R=Math.max(R,b),v+=m,s[p]={left:0,top:0,width:b,height:c}}),h+=R,W.push(R),d.width+=h}t.width=d.width,t.height=d.height},afterFit:z,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,p=t.options,e=p.labels,o=b.global,n=o.elements.line,z=t.width,O=t.lineWidths;if(p.display){var c,i=t.ctx,a=M.valueOrDefault,A=a(e.fontColor,o.defaultFontColor),s=a(e.fontSize,o.defaultFontSize),d=a(e.fontStyle,o.defaultFontStyle),q=a(e.fontFamily,o.defaultFontFamily),l=M.fontString(s,d,q);i.textAlign="left",i.textBaseline="middle",i.lineWidth=.5,i.strokeStyle=A,i.fillStyle=A,i.font=l;var u=r(e,s),f=t.legendHitBoxes,W=t.isHorizontal();c=W?{x:t.left+(z-O[0])/2,y:t.top+e.padding,line:0}:{x:t.left+e.padding,y:t.top+e.padding,line:0};var h=s+e.padding;M.each(t.legendItems,function(b,r){var A=i.measureText(b.text).width,d=u+s/2+A,q=c.x,l=c.y;W?q+d>=z&&(l=c.y+=h,c.line++,q=c.x=t.left+(z-O[c.line])/2):l+h>t.bottom&&(q=c.x=q+t.columnWidths[c.line]+e.padding,l=c.y=t.top+e.padding,c.line++),function(t,e,b){if(!(isNaN(u)||u<=0)){i.save(),i.fillStyle=a(b.fillStyle,o.defaultColor),i.lineCap=a(b.lineCap,n.borderCapStyle),i.lineDashOffset=a(b.lineDashOffset,n.borderDashOffset),i.lineJoin=a(b.lineJoin,n.borderJoinStyle),i.lineWidth=a(b.lineWidth,n.borderWidth),i.strokeStyle=a(b.strokeStyle,o.defaultColor);var z=0===a(b.lineWidth,n.borderWidth);if(i.setLineDash&&i.setLineDash(a(b.lineDash,n.borderDash)),p.labels&&p.labels.usePointStyle){var r=s*Math.SQRT2/2,O=r/Math.SQRT2,c=t+O,A=e+O;M.canvas.drawPoint(i,b.pointStyle,r,c,A)}else z||i.strokeRect(t,e,u,s),i.fillRect(t,e,u,s);i.restore()}}(q,l,b),f[r].left=q,f[r].top=l,function(t,p,e,b){var o=s/2,M=u+o+t,n=p+o;i.fillText(e.text,M,n),e.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(M,n),i.lineTo(M+b,n),i.stroke())}(q,l,b,A),W?c.x+=d+e.padding:c.y+=h})}},handleEvent:function(t){var p=this,e=p.options,b="mouseup"===t.type?"click":t.type,o=!1;if("mousemove"===b){if(!e.onHover)return}else{if("click"!==b)return;if(!e.onClick)return}var M=t.x,n=t.y;if(M>=p.left&&M<=p.right&&n>=p.top&&n<=p.bottom)for(var z=p.legendHitBoxes,r=0;r=O.left&&M<=O.left+O.width&&n>=O.top&&n<=O.top+O.height){if("click"===b){e.onClick.call(p,t.native,p.legendItems[r]),o=!0;break}if("mousemove"===b){e.onHover.call(p,t.native,p.legendItems[r]),o=!0;break}}}return o}});function c(t,p){var e=new O({ctx:t.ctx,options:p,chart:t});n.configure(t,e,p),n.addBox(t,e),t.legend=e}t.exports={id:"legend",_element:O,beforeInit:function(t){var p=t.options.legend;p&&c(t,p)},beforeUpdate:function(t){var p=t.options.legend,e=t.legend;p?(M.mergeIf(p,b.global.legend),e?(n.configure(t,e,p),e.options=p):c(t,p)):e&&(n.removeBox(t,e),delete t.legend)},afterEvent:function(t,p){var e=t.legend;e&&e.handleEvent(p)}}},As3K:function(t,p,e){"use strict";var b=e("TC34");t.exports={toLineHeight:function(t,p){var e=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!e||"normal"===e[1])return 1.2*p;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100}return p*t},toPadding:function(t){var p,e,o,M;return b.isObject(t)?(p=+t.top||0,e=+t.right||0,o=+t.bottom||0,M=+t.left||0):p=e=o=M=+t||0,{top:p,right:e,bottom:o,left:M,height:p+o,width:M+e}},resolve:function(t,p,e){var o,M,n;for(o=0,M=t.length;o96?t-87:t>64?t-29:t-48}function c(t){var p=0,e=t.split("."),b=e[0],o=e[1]||"",M=1,n=0,z=1;for(45===t.charCodeAt(0)&&(p=1,z=-1);p3){var p=o[R(t)];if(p)return p;L("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}var e,b,M,n=function(){var t,p,e,b=(new Date).getFullYear()-2,o=new d(new Date(b,0,1)),M=[o];for(e=1;e<48;e++)(p=new d(new Date(b,e,1))).offset!==o.offset&&(t=l(o,p),M.push(t),M.push(new d(new Date(t.at+6e4)))),o=p;for(e=0;e<4;e++)M.push(new d(new Date(b+e,0,1))),M.push(new d(new Date(b+e,6,1)));return M}(),z=n.length,r=W(n),O=[];for(b=0;b0?O[0].zone.name:void 0}function R(t){return(t||"").toLowerCase().replace(/\//g,"_")}function v(t){var p,b,M,n;for("string"==typeof t&&(t=[t]),p=0;p= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),s.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var p,e=+t,b=this.untils;for(p=0;pb&&X.moveInvalidForward&&(p=b),M= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=p?m(p):null,t};var T=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(T)?(T.push("_z"),T.push("_a")):T&&(T._z=null),t})},EVdn:function(t,p,e){var b;!function(p,e){"use strict";"object"==typeof t.exports?t.exports=p.document?e(p,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(p)}("undefined"!=typeof window?window:this,function(e,o){"use strict";var M=[],n=e.document,z=Object.getPrototypeOf,r=M.slice,O=M.concat,c=M.push,i=M.indexOf,a={},A=a.toString,s=a.hasOwnProperty,d=s.toString,q=d.call(Object),l={},u=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},f=function(t){return null!=t&&t===t.window},W={type:!0,src:!0,noModule:!0};function h(t,p,e){var b,o=(p=p||n).createElement("script");if(o.text=t,e)for(b in W)e[b]&&(o[b]=e[b]);p.head.appendChild(o).parentNode.removeChild(o)}function R(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[A.call(t)]||"object":typeof t}var v=function(t,p){return new v.fn.init(t,p)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function g(t){var p=!!t&&"length"in t&&t.length,e=R(t);return!u(t)&&!f(t)&&("array"===e||0===p||"number"==typeof p&&p>0&&p-1 in t)}v.fn=v.prototype={jquery:"3.3.1",constructor:v,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var p=v.merge(this.constructor(),t);return p.prevObject=this,p},each:function(t){return v.each(this,t)},map:function(t){return this.pushStack(v.map(this,function(p,e){return t.call(p,e,p)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var p=this.length,e=+t+(t<0?p:0);return this.pushStack(e>=0&&e+~]|"+S+")"+S+"*"),j=new RegExp("="+S+"*([^\\]'\"]*?)"+S+"*\\]","g"),V=new RegExp(F),U=new RegExp("^"+H+"$"),$={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+E),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+S+"*(even|odd|(([+-]|)(\\d*)n|)"+S+"*(?:([+-]|)"+S+"*(\\d+)|))"+S+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+S+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+S+"*((?:-\\d)?\\d*)"+S+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+S+"?|("+S+")|.)","ig"),tt=function(t,p,e){var b="0x"+p-65536;return b!=b||e?p:b<0?String.fromCharCode(b+65536):String.fromCharCode(b>>10|55296,1023&b|56320)},pt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,et=function(t,p){return p?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},bt=function(){a()},ot=ut(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{T.apply(y=x.call(h.childNodes),h.childNodes),y[h.childNodes.length].nodeType}catch(t){T={apply:y.length?function(t,p){_.apply(t,x.call(p))}:function(t,p){for(var e=t.length,b=0;t[e++]=p[b++];);t.length=e-1}}}function Mt(t,p,b,o){var M,z,O,c,i,s,l,u=p&&p.ownerDocument,R=p?p.nodeType:9;if(b=b||[],"string"!=typeof t||!t||1!==R&&9!==R&&11!==R)return b;if(!o&&((p?p.ownerDocument||p:h)!==A&&a(p),p=p||A,d)){if(11!==R&&(i=Q.exec(t)))if(M=i[1]){if(9===R){if(!(O=p.getElementById(M)))return b;if(O.id===M)return b.push(O),b}else if(u&&(O=u.getElementById(M))&&f(p,O)&&O.id===M)return b.push(O),b}else{if(i[2])return T.apply(b,p.getElementsByTagName(t)),b;if((M=i[3])&&e.getElementsByClassName&&p.getElementsByClassName)return T.apply(b,p.getElementsByClassName(M)),b}if(e.qsa&&!B[t+" "]&&(!q||!q.test(t))){if(1!==R)u=p,l=t;else if("object"!==p.nodeName.toLowerCase()){for((c=p.getAttribute("id"))?c=c.replace(pt,et):p.setAttribute("id",c=W),z=(s=n(t)).length;z--;)s[z]="#"+c+" "+lt(s[z]);l=s.join(","),u=J.test(t)&&dt(p.parentNode)||p}if(l)try{return T.apply(b,u.querySelectorAll(l)),b}catch(t){}finally{c===W&&p.removeAttribute("id")}}}return r(t.replace(D,"$1"),p,b,o)}function nt(){var t=[];return function p(e,o){return t.push(e+" ")>b.cacheLength&&delete p[t.shift()],p[e+" "]=o}}function zt(t){return t[W]=!0,t}function rt(t){var p=A.createElement("fieldset");try{return!!t(p)}catch(t){return!1}finally{p.parentNode&&p.parentNode.removeChild(p),p=null}}function Ot(t,p){for(var e=t.split("|"),o=e.length;o--;)b.attrHandle[e[o]]=p}function ct(t,p){var e=p&&t,b=e&&1===t.nodeType&&1===p.nodeType&&t.sourceIndex-p.sourceIndex;if(b)return b;if(e)for(;e=e.nextSibling;)if(e===p)return-1;return t?1:-1}function it(t){return function(p){return"input"===p.nodeName.toLowerCase()&&p.type===t}}function at(t){return function(p){var e=p.nodeName.toLowerCase();return("input"===e||"button"===e)&&p.type===t}}function At(t){return function(p){return"form"in p?p.parentNode&&!1===p.disabled?"label"in p?"label"in p.parentNode?p.parentNode.disabled===t:p.disabled===t:p.isDisabled===t||p.isDisabled!==!t&&ot(p)===t:p.disabled===t:"label"in p&&p.disabled===t}}function st(t){return zt(function(p){return p=+p,zt(function(e,b){for(var o,M=t([],e.length,p),n=M.length;n--;)e[o=M[n]]&&(e[o]=!(b[o]=e[o]))})})}function dt(t){return t&&void 0!==t.getElementsByTagName&&t}for(p in e=Mt.support={},M=Mt.isXML=function(t){var p=t&&(t.ownerDocument||t).documentElement;return!!p&&"HTML"!==p.nodeName},a=Mt.setDocument=function(t){var p,o,n=t?t.ownerDocument||t:h;return n!==A&&9===n.nodeType&&n.documentElement?(s=(A=n).documentElement,d=!M(A),h!==A&&(o=A.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",bt,!1):o.attachEvent&&o.attachEvent("onunload",bt)),e.attributes=rt(function(t){return t.className="i",!t.getAttribute("className")}),e.getElementsByTagName=rt(function(t){return t.appendChild(A.createComment("")),!t.getElementsByTagName("*").length}),e.getElementsByClassName=G.test(A.getElementsByClassName),e.getById=rt(function(t){return s.appendChild(t).id=W,!A.getElementsByName||!A.getElementsByName(W).length}),e.getById?(b.filter.ID=function(t){var p=t.replace(Z,tt);return function(t){return t.getAttribute("id")===p}},b.find.ID=function(t,p){if(void 0!==p.getElementById&&d){var e=p.getElementById(t);return e?[e]:[]}}):(b.filter.ID=function(t){var p=t.replace(Z,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===p}},b.find.ID=function(t,p){if(void 0!==p.getElementById&&d){var e,b,o,M=p.getElementById(t);if(M){if((e=M.getAttributeNode("id"))&&e.value===t)return[M];for(o=p.getElementsByName(t),b=0;M=o[b++];)if((e=M.getAttributeNode("id"))&&e.value===t)return[M]}return[]}}),b.find.TAG=e.getElementsByTagName?function(t,p){return void 0!==p.getElementsByTagName?p.getElementsByTagName(t):e.qsa?p.querySelectorAll(t):void 0}:function(t,p){var e,b=[],o=0,M=p.getElementsByTagName(t);if("*"===t){for(;e=M[o++];)1===e.nodeType&&b.push(e);return b}return M},b.find.CLASS=e.getElementsByClassName&&function(t,p){if(void 0!==p.getElementsByClassName&&d)return p.getElementsByClassName(t)},l=[],q=[],(e.qsa=G.test(A.querySelectorAll))&&(rt(function(t){s.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+S+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||q.push("\\["+S+"*(?:value|"+C+")"),t.querySelectorAll("[id~="+W+"-]").length||q.push("~="),t.querySelectorAll(":checked").length||q.push(":checked"),t.querySelectorAll("a#"+W+"+*").length||q.push(".#.+[+~]")}),rt(function(t){t.innerHTML="";var p=A.createElement("input");p.setAttribute("type","hidden"),t.appendChild(p).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&q.push("name"+S+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),q.push(",.*:")})),(e.matchesSelector=G.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&rt(function(t){e.disconnectedMatch=u.call(t,"*"),u.call(t,"[s!='']:x"),l.push("!=",F)}),q=q.length&&new RegExp(q.join("|")),l=l.length&&new RegExp(l.join("|")),p=G.test(s.compareDocumentPosition),f=p||G.test(s.contains)?function(t,p){var e=9===t.nodeType?t.documentElement:t,b=p&&p.parentNode;return t===b||!(!b||1!==b.nodeType||!(e.contains?e.contains(b):t.compareDocumentPosition&&16&t.compareDocumentPosition(b)))}:function(t,p){if(p)for(;p=p.parentNode;)if(p===t)return!0;return!1},L=p?function(t,p){if(t===p)return i=!0,0;var b=!t.compareDocumentPosition-!p.compareDocumentPosition;return b||(1&(b=(t.ownerDocument||t)===(p.ownerDocument||p)?t.compareDocumentPosition(p):1)||!e.sortDetached&&p.compareDocumentPosition(t)===b?t===A||t.ownerDocument===h&&f(h,t)?-1:p===A||p.ownerDocument===h&&f(h,p)?1:c?w(c,t)-w(c,p):0:4&b?-1:1)}:function(t,p){if(t===p)return i=!0,0;var e,b=0,o=t.parentNode,M=p.parentNode,n=[t],z=[p];if(!o||!M)return t===A?-1:p===A?1:o?-1:M?1:c?w(c,t)-w(c,p):0;if(o===M)return ct(t,p);for(e=t;e=e.parentNode;)n.unshift(e);for(e=p;e=e.parentNode;)z.unshift(e);for(;n[b]===z[b];)b++;return b?ct(n[b],z[b]):n[b]===h?-1:z[b]===h?1:0},A):A},Mt.matches=function(t,p){return Mt(t,null,null,p)},Mt.matchesSelector=function(t,p){if((t.ownerDocument||t)!==A&&a(t),p=p.replace(j,"='$1']"),e.matchesSelector&&d&&!B[p+" "]&&(!l||!l.test(p))&&(!q||!q.test(p)))try{var b=u.call(t,p);if(b||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return b}catch(t){}return Mt(p,A,null,[t]).length>0},Mt.contains=function(t,p){return(t.ownerDocument||t)!==A&&a(t),f(t,p)},Mt.attr=function(t,p){(t.ownerDocument||t)!==A&&a(t);var o=b.attrHandle[p.toLowerCase()],M=o&&X.call(b.attrHandle,p.toLowerCase())?o(t,p,!d):void 0;return void 0!==M?M:e.attributes||!d?t.getAttribute(p):(M=t.getAttributeNode(p))&&M.specified?M.value:null},Mt.escape=function(t){return(t+"").replace(pt,et)},Mt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Mt.uniqueSort=function(t){var p,b=[],o=0,M=0;if(i=!e.detectDuplicates,c=!e.sortStable&&t.slice(0),t.sort(L),i){for(;p=t[M++];)p===t[M]&&(o=b.push(M));for(;o--;)t.splice(b[o],1)}return c=null,t},o=Mt.getText=function(t){var p,e="",b=0,M=t.nodeType;if(M){if(1===M||9===M||11===M){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=o(t)}else if(3===M||4===M)return t.nodeValue}else for(;p=t[b++];)e+=o(p);return e},(b=Mt.selectors={cacheLength:50,createPseudo:zt,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Z,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Z,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Mt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Mt.error(t[0]),t},PSEUDO:function(t){var p,e=!t[6]&&t[2];return $.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&V.test(e)&&(p=n(e,!0))&&(p=e.indexOf(")",e.length-p)-e.length)&&(t[0]=t[0].slice(0,p),t[2]=e.slice(0,p)),t.slice(0,3))}},filter:{TAG:function(t){var p=t.replace(Z,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===p}},CLASS:function(t){var p=m[t+" "];return p||(p=new RegExp("(^|"+S+")"+t+"("+S+"|$)"))&&m(t,function(t){return p.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,p,e){return function(b){var o=Mt.attr(b,t);return null==o?"!="===p:!p||(o+="","="===p?o===e:"!="===p?o!==e:"^="===p?e&&0===o.indexOf(e):"*="===p?e&&o.indexOf(e)>-1:"$="===p?e&&o.slice(-e.length)===e:"~="===p?(" "+o.replace(k," ")+" ").indexOf(e)>-1:"|="===p&&(o===e||o.slice(0,e.length+1)===e+"-"))}},CHILD:function(t,p,e,b,o){var M="nth"!==t.slice(0,3),n="last"!==t.slice(-4),z="of-type"===p;return 1===b&&0===o?function(t){return!!t.parentNode}:function(p,e,r){var O,c,i,a,A,s,d=M!==n?"nextSibling":"previousSibling",q=p.parentNode,l=z&&p.nodeName.toLowerCase(),u=!r&&!z,f=!1;if(q){if(M){for(;d;){for(a=p;a=a[d];)if(z?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;s=d="only"===t&&!s&&"nextSibling"}return!0}if(s=[n?q.firstChild:q.lastChild],n&&u){for(f=(A=(O=(c=(i=(a=q)[W]||(a[W]={}))[a.uniqueID]||(i[a.uniqueID]={}))[t]||[])[0]===R&&O[1])&&O[2],a=A&&q.childNodes[A];a=++A&&a&&a[d]||(f=A=0)||s.pop();)if(1===a.nodeType&&++f&&a===p){c[t]=[R,A,f];break}}else if(u&&(f=A=(O=(c=(i=(a=p)[W]||(a[W]={}))[a.uniqueID]||(i[a.uniqueID]={}))[t]||[])[0]===R&&O[1]),!1===f)for(;(a=++A&&a&&a[d]||(f=A=0)||s.pop())&&((z?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++f||(u&&((c=(i=a[W]||(a[W]={}))[a.uniqueID]||(i[a.uniqueID]={}))[t]=[R,f]),a!==p)););return(f-=o)===b||f%b==0&&f/b>=0}}},PSEUDO:function(t,p){var e,o=b.pseudos[t]||b.setFilters[t.toLowerCase()]||Mt.error("unsupported pseudo: "+t);return o[W]?o(p):o.length>1?(e=[t,t,"",p],b.setFilters.hasOwnProperty(t.toLowerCase())?zt(function(t,e){for(var b,M=o(t,p),n=M.length;n--;)t[b=w(t,M[n])]=!(e[b]=M[n])}):function(t){return o(t,0,e)}):o}},pseudos:{not:zt(function(t){var p=[],e=[],b=z(t.replace(D,"$1"));return b[W]?zt(function(t,p,e,o){for(var M,n=b(t,null,o,[]),z=t.length;z--;)(M=n[z])&&(t[z]=!(p[z]=M))}):function(t,o,M){return p[0]=t,b(p,null,M,e),p[0]=null,!e.pop()}}),has:zt(function(t){return function(p){return Mt(t,p).length>0}}),contains:zt(function(t){return t=t.replace(Z,tt),function(p){return(p.textContent||p.innerText||o(p)).indexOf(t)>-1}}),lang:zt(function(t){return U.test(t||"")||Mt.error("unsupported lang: "+t),t=t.replace(Z,tt).toLowerCase(),function(p){var e;do{if(e=d?p.lang:p.getAttribute("xml:lang")||p.getAttribute("lang"))return(e=e.toLowerCase())===t||0===e.indexOf(t+"-")}while((p=p.parentNode)&&1===p.nodeType);return!1}}),target:function(p){var e=t.location&&t.location.hash;return e&&e.slice(1)===p.id},root:function(t){return t===s},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:At(!1),disabled:At(!0),checked:function(t){var p=t.nodeName.toLowerCase();return"input"===p&&!!t.checked||"option"===p&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var p=t.nodeName.toLowerCase();return"input"===p&&"button"===t.type||"button"===p},text:function(t){var p;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(p=t.getAttribute("type"))||"text"===p.toLowerCase())},first:st(function(){return[0]}),last:st(function(t,p){return[p-1]}),eq:st(function(t,p,e){return[e<0?e+p:e]}),even:st(function(t,p){for(var e=0;e=0;)t.push(b);return t}),gt:st(function(t,p,e){for(var b=e<0?e+p:e;++b1?function(p,e,b){for(var o=t.length;o--;)if(!t[o](p,e,b))return!1;return!0}:t[0]}function Wt(t,p,e,b,o){for(var M,n=[],z=0,r=t.length,O=null!=p;z-1&&(M[O]=!(n[O]=i))}}else l=Wt(l===n?l.splice(s,l.length):l),o?o(null,n,l,r):T.apply(n,l)})}function Rt(t){for(var p,e,o,M=t.length,n=b.relative[t[0].type],z=n||b.relative[" "],r=n?1:0,c=ut(function(t){return t===p},z,!0),i=ut(function(t){return w(p,t)>-1},z,!0),a=[function(t,e,b){var o=!n&&(b||e!==O)||((p=e).nodeType?c(t,e,b):i(t,e,b));return p=null,o}];r1&&ft(a),r>1&<(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(D,"$1"),e,r0,o=t.length>0,M=function(M,n,z,r,c){var i,s,q,l=0,u="0",f=M&&[],W=[],h=O,v=M||o&&b.find.TAG("*",c),m=R+=null==h?1:Math.random()||.1,g=v.length;for(c&&(O=n===A||n||c);u!==g&&null!=(i=v[u]);u++){if(o&&i){for(s=0,n||i.ownerDocument===A||(a(i),z=!d);q=t[s++];)if(q(i,n||A,z)){r.push(i);break}c&&(R=m)}e&&((i=!q&&i)&&l--,M&&f.push(i))}if(l+=u,e&&u!==l){for(s=0;q=p[s++];)q(f,W,n,z);if(M){if(l>0)for(;u--;)f[u]||W[u]||(W[u]=N.call(r));W=Wt(W)}T.apply(r,W),c&&!M&&W.length>0&&l+p.length>1&&Mt.uniqueSort(r)}return c&&(R=m,O=h),f};return e?zt(M):M}(M,o))).selector=t}return z},r=Mt.select=function(t,p,e,o){var M,r,O,c,i,a="function"==typeof t&&t,A=!o&&n(t=a.selector||t);if(e=e||[],1===A.length){if((r=A[0]=A[0].slice(0)).length>2&&"ID"===(O=r[0]).type&&9===p.nodeType&&d&&b.relative[r[1].type]){if(!(p=(b.find.ID(O.matches[0].replace(Z,tt),p)||[])[0]))return e;a&&(p=p.parentNode),t=t.slice(r.shift().value.length)}for(M=$.needsContext.test(t)?0:r.length;M--&&(O=r[M],!b.relative[c=O.type]);)if((i=b.find[c])&&(o=i(O.matches[0].replace(Z,tt),J.test(r[0].type)&&dt(p.parentNode)||p))){if(r.splice(M,1),!(t=o.length&<(r)))return T.apply(e,o),e;break}}return(a||z(t,A))(o,p,!d,e,!p||J.test(t)&&dt(p.parentNode)||p),e},e.sortStable=W.split("").sort(L).join("")===W,e.detectDuplicates=!!i,a(),e.sortDetached=rt(function(t){return 1&t.compareDocumentPosition(A.createElement("fieldset"))}),rt(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||Ot("type|href|height|width",function(t,p,e){if(!e)return t.getAttribute(p,"type"===p.toLowerCase()?1:2)}),e.attributes&&rt(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||Ot("value",function(t,p,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),rt(function(t){return null==t.getAttribute("disabled")})||Ot(C,function(t,p,e){var b;if(!e)return!0===t[p]?p.toLowerCase():(b=t.getAttributeNode(p))&&b.specified?b.value:null}),Mt}(e);v.find=B,v.expr=B.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=B.uniqueSort,v.text=B.getText,v.isXMLDoc=B.isXML,v.contains=B.contains,v.escapeSelector=B.escape;var L=function(t,p,e){for(var b=[],o=void 0!==e;(t=t[p])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&v(t).is(e))break;b.push(t)}return b},X=function(t,p){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==p&&e.push(t);return e},y=v.expr.match.needsContext;function N(t,p){return t.nodeName&&t.nodeName.toLowerCase()===p.toLowerCase()}var _=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(t,p,e){return u(p)?v.grep(t,function(t,b){return!!p.call(t,b,t)!==e}):p.nodeType?v.grep(t,function(t){return t===p!==e}):"string"!=typeof p?v.grep(t,function(t){return i.call(p,t)>-1!==e}):v.filter(p,t,e)}v.filter=function(t,p,e){var b=p[0];return e&&(t=":not("+t+")"),1===p.length&&1===b.nodeType?v.find.matchesSelector(b,t)?[b]:[]:v.find.matches(t,v.grep(p,function(t){return 1===t.nodeType}))},v.fn.extend({find:function(t){var p,e,b=this.length,o=this;if("string"!=typeof t)return this.pushStack(v(t).filter(function(){for(p=0;p1?v.uniqueSort(e):e},filter:function(t){return this.pushStack(T(this,t||[],!1))},not:function(t){return this.pushStack(T(this,t||[],!0))},is:function(t){return!!T(this,"string"==typeof t&&y.test(t)?v(t):t||[],!1).length}});var x,w=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(t,p,e){var b,o;if(!t)return this;if(e=e||x,"string"==typeof t){if(!(b="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:w.exec(t))||!b[1]&&p)return!p||p.jquery?(p||e).find(t):this.constructor(p).find(t);if(b[1]){if(p=p instanceof v?p[0]:p,v.merge(this,v.parseHTML(b[1],p&&p.nodeType?p.ownerDocument||p:n,!0)),_.test(b[1])&&v.isPlainObject(p))for(b in p)u(this[b])?this[b](p[b]):this.attr(b,p[b]);return this}return(o=n.getElementById(b[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):u(t)?void 0!==e.ready?e.ready(t):t(v):v.makeArray(t,this)}).prototype=v.fn,x=v(n);var C=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function H(t,p){for(;(t=t[p])&&1!==t.nodeType;);return t}v.fn.extend({has:function(t){var p=v(t,this),e=p.length;return this.filter(function(){for(var t=0;t-1:1===e.nodeType&&v.find.matchesSelector(e,t))){M.push(e);break}return this.pushStack(M.length>1?v.uniqueSort(M):M)},index:function(t){return t?"string"==typeof t?i.call(v(t),this[0]):i.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,p){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(t,p))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),v.each({parent:function(t){var p=t.parentNode;return p&&11!==p.nodeType?p:null},parents:function(t){return L(t,"parentNode")},parentsUntil:function(t,p,e){return L(t,"parentNode",e)},next:function(t){return H(t,"nextSibling")},prev:function(t){return H(t,"previousSibling")},nextAll:function(t){return L(t,"nextSibling")},prevAll:function(t){return L(t,"previousSibling")},nextUntil:function(t,p,e){return L(t,"nextSibling",e)},prevUntil:function(t,p,e){return L(t,"previousSibling",e)},siblings:function(t){return X((t.parentNode||{}).firstChild,t)},children:function(t){return X(t.firstChild)},contents:function(t){return N(t,"iframe")?t.contentDocument:(N(t,"template")&&(t=t.content||t),v.merge([],t.childNodes))}},function(t,p){v.fn[t]=function(e,b){var o=v.map(this,p,e);return"Until"!==t.slice(-5)&&(b=e),b&&"string"==typeof b&&(o=v.filter(b,o)),this.length>1&&(S[t]||v.uniqueSort(o),C.test(t)&&o.reverse()),this.pushStack(o)}});var E=/[^\x20\t\r\n\f]+/g;function F(t){return t}function k(t){throw t}function D(t,p,e,b){var o;try{t&&u(o=t.promise)?o.call(t).done(p).fail(e):t&&u(o=t.then)?o.call(t,p,e):p.apply(void 0,[t].slice(b))}catch(t){e.apply(void 0,[t])}}v.Callbacks=function(t){t="string"==typeof t?function(t){var p={};return v.each(t.match(E)||[],function(t,e){p[e]=!0}),p}(t):v.extend({},t);var p,e,b,o,M=[],n=[],z=-1,r=function(){for(o=o||t.once,b=p=!0;n.length;z=-1)for(e=n.shift();++z-1;)M.splice(e,1),e<=z&&z--}),this},has:function(t){return t?v.inArray(t,M)>-1:M.length>0},empty:function(){return M&&(M=[]),this},disable:function(){return o=n=[],M=e="",this},disabled:function(){return!M},lock:function(){return o=n=[],e||p||(M=e=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],n.push(e),p||r()),this},fire:function(){return O.fireWith(this,arguments),this},fired:function(){return!!b}};return O},v.extend({Deferred:function(t){var p=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],b="pending",o={state:function(){return b},always:function(){return M.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return v.Deferred(function(e){v.each(p,function(p,b){var o=u(t[b[4]])&&t[b[4]];M[b[1]](function(){var t=o&&o.apply(this,arguments);t&&u(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[b[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,b,o){var M=0;function n(t,p,b,o){return function(){var z=this,r=arguments,O=function(){var e,O;if(!(t=M&&(b!==k&&(z=void 0,r=[e]),p.rejectWith(z,r))}};t?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),e.setTimeout(c))}}return v.Deferred(function(e){p[0][3].add(n(0,e,u(o)?o:F,e.notifyWith)),p[1][3].add(n(0,e,u(t)?t:F)),p[2][3].add(n(0,e,u(b)?b:k))}).promise()},promise:function(t){return null!=t?v.extend(t,o):o}},M={};return v.each(p,function(t,e){var n=e[2],z=e[5];o[e[1]]=n.add,z&&n.add(function(){b=z},p[3-t][2].disable,p[3-t][3].disable,p[0][2].lock,p[0][3].lock),n.add(e[3].fire),M[e[0]]=function(){return M[e[0]+"With"](this===M?void 0:this,arguments),this},M[e[0]+"With"]=n.fireWith}),o.promise(M),t&&t.call(M,M),M},when:function(t){var p=arguments.length,e=p,b=Array(e),o=r.call(arguments),M=v.Deferred(),n=function(t){return function(e){b[t]=this,o[t]=arguments.length>1?r.call(arguments):e,--p||M.resolveWith(b,o)}};if(p<=1&&(D(t,M.done(n(e)).resolve,M.reject,!p),"pending"===M.state()||u(o[e]&&o[e].then)))return M.then();for(;e--;)D(o[e],n(e),M.reject);return M.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,p){e.console&&e.console.warn&&t&&I.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,p)},v.readyException=function(t){e.setTimeout(function(){throw t})};var P=v.Deferred();function j(){n.removeEventListener("DOMContentLoaded",j),e.removeEventListener("load",j),v.ready()}v.fn.ready=function(t){return P.then(t).catch(function(t){v.readyException(t)}),this},v.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==t&&--v.readyWait>0||P.resolveWith(n,[v]))}}),v.ready.then=P.then,"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e.setTimeout(v.ready):(n.addEventListener("DOMContentLoaded",j),e.addEventListener("load",j));var V=function(t,p,e,b,o,M,n){var z=0,r=t.length,O=null==e;if("object"===R(e))for(z in o=!0,e)V(t,p,z,e[z],!0,M,n);else if(void 0!==b&&(o=!0,u(b)||(n=!0),O&&(n?(p.call(t,b),p=null):(O=p,p=function(t,p,e){return O.call(v(t),e)})),p))for(;z1,null,!0)},removeData:function(t){return this.each(function(){Z.remove(this,t)})}}),v.extend({queue:function(t,p,e){var b;if(t)return p=(p||"fx")+"queue",b=J.get(t,p),e&&(!b||Array.isArray(e)?b=J.access(t,p,v.makeArray(e)):b.push(e)),b||[]},dequeue:function(t,p){p=p||"fx";var e=v.queue(t,p),b=e.length,o=e.shift(),M=v._queueHooks(t,p);"inprogress"===o&&(o=e.shift(),b--),o&&("fx"===p&&e.unshift("inprogress"),delete M.stop,o.call(t,function(){v.dequeue(t,p)},M)),!b&&M&&M.empty.fire()},_queueHooks:function(t,p){var e=p+"queueHooks";return J.get(t,e)||J.access(t,e,{empty:v.Callbacks("once memory").add(function(){J.remove(t,[p+"queue",e])})})}}),v.fn.extend({queue:function(t,p){var e=2;return"string"!=typeof t&&(p=t,t="fx",e--),arguments.length\x20\t\r\n\f]+)/i,st=/^$|^module$|\/(?:java|ecma)script/i,dt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function qt(t,p){var e;return e=void 0!==t.getElementsByTagName?t.getElementsByTagName(p||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(p||"*"):[],void 0===p||p&&N(t,p)?v.merge([t],e):e}function lt(t,p){for(var e=0,b=t.length;e-1)o&&o.push(M);else if(O=v.contains(M.ownerDocument,M),n=qt(i.appendChild(M),"script"),O&<(n),e)for(c=0;M=n[c++];)st.test(M.type||"")&&e.push(M);return i}ut=n.createDocumentFragment().appendChild(n.createElement("div")),(ft=n.createElement("input")).setAttribute("type","radio"),ft.setAttribute("checked","checked"),ft.setAttribute("name","t"),ut.appendChild(ft),l.checkClone=ut.cloneNode(!0).cloneNode(!0).lastChild.checked,ut.innerHTML="",l.noCloneChecked=!!ut.cloneNode(!0).lastChild.defaultValue;var Rt=n.documentElement,vt=/^key/,mt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=/^([^.]*)(?:\.(.+)|)/;function Bt(){return!0}function Lt(){return!1}function Xt(){try{return n.activeElement}catch(t){}}function yt(t,p,e,b,o,M){var n,z;if("object"==typeof p){for(z in"string"!=typeof e&&(b=b||e,e=void 0),p)yt(t,z,e,b,p[z],M);return t}if(null==b&&null==o?(o=e,b=e=void 0):null==o&&("string"==typeof e?(o=b,b=void 0):(o=b,b=e,e=void 0)),!1===o)o=Lt;else if(!o)return t;return 1===M&&(n=o,(o=function(t){return v().off(t),n.apply(this,arguments)}).guid=n.guid||(n.guid=v.guid++)),t.each(function(){v.event.add(this,p,o,b,e)})}v.event={global:{},add:function(t,p,e,b,o){var M,n,z,r,O,c,i,a,A,s,d,q=J.get(t);if(q)for(e.handler&&(e=(M=e).handler,o=M.selector),o&&v.find.matchesSelector(Rt,o),e.guid||(e.guid=v.guid++),(r=q.events)||(r=q.events={}),(n=q.handle)||(n=q.handle=function(p){return void 0!==v&&v.event.triggered!==p.type?v.event.dispatch.apply(t,arguments):void 0}),O=(p=(p||"").match(E)||[""]).length;O--;)A=d=(z=gt.exec(p[O])||[])[1],s=(z[2]||"").split(".").sort(),A&&(i=v.event.special[A]||{},A=(o?i.delegateType:i.bindType)||A,i=v.event.special[A]||{},c=v.extend({type:A,origType:d,data:b,handler:e,guid:e.guid,selector:o,needsContext:o&&v.expr.match.needsContext.test(o),namespace:s.join(".")},M),(a=r[A])||((a=r[A]=[]).delegateCount=0,i.setup&&!1!==i.setup.call(t,b,s,n)||t.addEventListener&&t.addEventListener(A,n)),i.add&&(i.add.call(t,c),c.handler.guid||(c.handler.guid=e.guid)),o?a.splice(a.delegateCount++,0,c):a.push(c),v.event.global[A]=!0)},remove:function(t,p,e,b,o){var M,n,z,r,O,c,i,a,A,s,d,q=J.hasData(t)&&J.get(t);if(q&&(r=q.events)){for(O=(p=(p||"").match(E)||[""]).length;O--;)if(A=d=(z=gt.exec(p[O])||[])[1],s=(z[2]||"").split(".").sort(),A){for(i=v.event.special[A]||{},a=r[A=(b?i.delegateType:i.bindType)||A]||[],z=z[2]&&new RegExp("(^|\\.)"+s.join("\\.(?:.*\\.|)")+"(\\.|$)"),n=M=a.length;M--;)c=a[M],!o&&d!==c.origType||e&&e.guid!==c.guid||z&&!z.test(c.namespace)||b&&b!==c.selector&&("**"!==b||!c.selector)||(a.splice(M,1),c.selector&&a.delegateCount--,i.remove&&i.remove.call(t,c));n&&!a.length&&(i.teardown&&!1!==i.teardown.call(t,s,q.handle)||v.removeEvent(t,A,q.handle),delete r[A])}else for(A in r)v.event.remove(t,A+p[O],e,b,!0);v.isEmptyObject(r)&&J.remove(t,"handle events")}},dispatch:function(t){var p,e,b,o,M,n,z=v.event.fix(t),r=new Array(arguments.length),O=(J.get(this,"events")||{})[z.type]||[],c=v.event.special[z.type]||{};for(r[0]=z,p=1;p=1))for(;O!==this;O=O.parentNode||this)if(1===O.nodeType&&("click"!==t.type||!0!==O.disabled)){for(M=[],n={},e=0;e-1:v.find(o,this,null,[O]).length),n[o]&&M.push(b);M.length&&z.push({elem:O,handlers:M})}return O=this,r\x20\t\r\n\f]*)[^>]*)\/>/gi,_t=/\s*$/g;function wt(t,p){return N(t,"table")&&N(11!==p.nodeType?p:p.firstChild,"tr")&&v(t).children("tbody")[0]||t}function Ct(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function St(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ht(t,p){var e,b,o,M,n,z,r,O;if(1===p.nodeType){if(J.hasData(t)&&(M=J.access(t),n=J.set(p,M),O=M.events))for(o in delete n.handle,n.events={},O)for(e=0,b=O[o].length;e1&&"string"==typeof s&&!l.checkClone&&Tt.test(s))return t.each(function(o){var M=t.eq(o);d&&(p[0]=s.call(this,o,M.html())),Et(M,p,e,b)});if(a&&(M=(o=ht(p,t[0].ownerDocument,!1,t,b)).firstChild,1===o.childNodes.length&&(o=M),M||b)){for(z=(n=v.map(qt(o,"script"),Ct)).length;i")},clone:function(t,p,e){var b,o,M,n,z,r,O,c=t.cloneNode(!0),i=v.contains(t.ownerDocument,t);if(!(l.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||v.isXMLDoc(t)))for(n=qt(c),b=0,o=(M=qt(t)).length;b0&<(n,!i&&qt(t,"script")),c},cleanData:function(t){for(var p,e,b,o=v.event.special,M=0;void 0!==(e=t[M]);M++)if(G(e)){if(p=e[J.expando]){if(p.events)for(b in p.events)o[b]?v.event.remove(e,b):v.removeEvent(e,b,p.handle);e[J.expando]=void 0}e[Z.expando]&&(e[Z.expando]=void 0)}}}),v.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return V(this,function(t){return void 0===t?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Et(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wt(this,t).appendChild(t)})},prepend:function(){return Et(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var p=wt(this,t);p.insertBefore(t,p.firstChild)}})},before:function(){return Et(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Et(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,p=0;null!=(t=this[p]);p++)1===t.nodeType&&(v.cleanData(qt(t,!1)),t.textContent="");return this},clone:function(t,p){return t=null!=t&&t,p=null==p?t:p,this.map(function(){return v.clone(this,t,p)})},html:function(t){return V(this,function(t){var p=this[0]||{},e=0,b=this.length;if(void 0===t&&1===p.nodeType)return p.innerHTML;if("string"==typeof t&&!_t.test(t)&&!dt[(At.exec(t)||["",""])[1].toLowerCase()]){t=v.htmlPrefilter(t);try{for(;e=0&&(r+=Math.max(0,Math.ceil(t["offset"+p[0].toUpperCase()+p.slice(1)]-M-r-z-.5))),r}function tp(t,p,e){var b=Dt(t),o=Pt(t,p,b),M="border-box"===v.css(t,"boxSizing",!1,b),n=M;if(kt.test(o)){if(!e)return o;o="auto"}return n=n&&(l.boxSizingReliable()||o===t.style[p]),("auto"===o||!parseFloat(o)&&"inline"===v.css(t,"display",!1,b))&&(o=t["offset"+p[0].toUpperCase()+p.slice(1)],n=!0),(o=parseFloat(o)||0)+Zt(t,p,e||(M?"border":"content"),n,b,o)+"px"}function pp(t,p,e,b,o){return new pp.prototype.init(t,p,e,b,o)}v.extend({cssHooks:{opacity:{get:function(t,p){if(p){var e=Pt(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,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:{},style:function(t,p,e,b){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,M,n,z=Y(p),r=Ut.test(p),O=t.style;if(r||(p=Qt(z)),n=v.cssHooks[p]||v.cssHooks[z],void 0===e)return n&&"get"in n&&void 0!==(o=n.get(t,!1,b))?o:O[p];"string"===(M=typeof e)&&(o=ot.exec(e))&&o[1]&&(e=rt(t,p,o),M="number"),null!=e&&e==e&&("number"===M&&(e+=o&&o[3]||(v.cssNumber[z]?"":"px")),l.clearCloneStyle||""!==e||0!==p.indexOf("background")||(O[p]="inherit"),n&&"set"in n&&void 0===(e=n.set(t,e,b))||(r?O.setProperty(p,e):O[p]=e))}},css:function(t,p,e,b){var o,M,n,z=Y(p);return Ut.test(p)||(p=Qt(z)),(n=v.cssHooks[p]||v.cssHooks[z])&&"get"in n&&(o=n.get(t,!0,e)),void 0===o&&(o=Pt(t,p,b)),"normal"===o&&p in Kt&&(o=Kt[p]),""===e||e?(M=parseFloat(o),!0===e||isFinite(M)?M||0:o):o}}),v.each(["height","width"],function(t,p){v.cssHooks[p]={get:function(t,e,b){if(e)return!Vt.test(v.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?tp(t,p,b):zt(t,$t,function(){return tp(t,p,b)})},set:function(t,e,b){var o,M=Dt(t),n="border-box"===v.css(t,"boxSizing",!1,M),z=b&&Zt(t,p,b,n,M);return n&&l.scrollboxSize()===M.position&&(z-=Math.ceil(t["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(M[p])-Zt(t,p,"border",!1,M)-.5)),z&&(o=ot.exec(e))&&"px"!==(o[3]||"px")&&(t.style[p]=e,e=v.css(t,p)),Jt(0,e,z)}}}),v.cssHooks.marginLeft=jt(l.reliableMarginLeft,function(t,p){if(p)return(parseFloat(Pt(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(t,p){v.cssHooks[t+p]={expand:function(e){for(var b=0,o={},M="string"==typeof e?e.split(" "):[e];b<4;b++)o[t+Mt[b]+p]=M[b]||M[b-2]||M[0];return o}},"margin"!==t&&(v.cssHooks[t+p].set=Jt)}),v.fn.extend({css:function(t,p){return V(this,function(t,p,e){var b,o,M={},n=0;if(Array.isArray(p)){for(b=Dt(t),o=p.length;n1)}}),v.Tween=pp,pp.prototype={constructor:pp,init:function(t,p,e,b,o,M){this.elem=t,this.prop=e,this.easing=o||v.easing._default,this.options=p,this.start=this.now=this.cur(),this.end=b,this.unit=M||(v.cssNumber[e]?"":"px")},cur:function(){var t=pp.propHooks[this.prop];return t&&t.get?t.get(this):pp.propHooks._default.get(this)},run:function(t){var p,e=pp.propHooks[this.prop];return this.options.duration?this.pos=p=v.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=p=t,this.now=(this.end-this.start)*p+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):pp.propHooks._default.set(this),this}},pp.prototype.init.prototype=pp.prototype,pp.propHooks={_default:{get:function(t){var p;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(p=v.css(t.elem,t.prop,""))&&"auto"!==p?p:0},set:function(t){v.fx.step[t.prop]?v.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[v.cssProps[t.prop]]&&!v.cssHooks[t.prop]?t.elem[t.prop]=t.now:v.style(t.elem,t.prop,t.now+t.unit)}}},pp.propHooks.scrollTop=pp.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},v.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},v.fx=pp.prototype.init,v.fx.step={};var ep,bp,op=/^(?:toggle|show|hide)$/,Mp=/queueHooks$/;function np(){bp&&(!1===n.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(np):e.setTimeout(np,v.fx.interval),v.fx.tick())}function zp(){return e.setTimeout(function(){ep=void 0}),ep=Date.now()}function rp(t,p){var e,b=0,o={height:t};for(p=p?1:0;b<4;b+=2-p)o["margin"+(e=Mt[b])]=o["padding"+e]=t;return p&&(o.opacity=o.width=t),o}function Op(t,p,e){for(var b,o=(cp.tweeners[p]||[]).concat(cp.tweeners["*"]),M=0,n=o.length;M1)},removeAttr:function(t){return this.each(function(){v.removeAttr(this,t)})}}),v.extend({attr:function(t,p,e){var b,o,M=t.nodeType;if(3!==M&&8!==M&&2!==M)return void 0===t.getAttribute?v.prop(t,p,e):(1===M&&v.isXMLDoc(t)||(o=v.attrHooks[p.toLowerCase()]||(v.expr.match.bool.test(p)?ip:void 0)),void 0!==e?null===e?void v.removeAttr(t,p):o&&"set"in o&&void 0!==(b=o.set(t,e,p))?b:(t.setAttribute(p,e+""),e):o&&"get"in o&&null!==(b=o.get(t,p))?b:null==(b=v.find.attr(t,p))?void 0:b)},attrHooks:{type:{set:function(t,p){if(!l.radioValue&&"radio"===p&&N(t,"input")){var e=t.value;return t.setAttribute("type",p),e&&(t.value=e),p}}}},removeAttr:function(t,p){var e,b=0,o=p&&p.match(E);if(o&&1===t.nodeType)for(;e=o[b++];)t.removeAttribute(e)}}),ip={set:function(t,p,e){return!1===p?v.removeAttr(t,e):t.setAttribute(e,e),e}},v.each(v.expr.match.bool.source.match(/\w+/g),function(t,p){var e=ap[p]||v.find.attr;ap[p]=function(t,p,b){var o,M,n=p.toLowerCase();return b||(M=ap[n],ap[n]=o,o=null!=e(t,p,b)?n:null,ap[n]=M),o}});var Ap=/^(?:input|select|textarea|button)$/i,sp=/^(?:a|area)$/i;function dp(t){return(t.match(E)||[]).join(" ")}function qp(t){return t.getAttribute&&t.getAttribute("class")||""}function lp(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(E)||[]}v.fn.extend({prop:function(t,p){return V(this,v.prop,t,p,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[v.propFix[t]||t]})}}),v.extend({prop:function(t,p,e){var b,o,M=t.nodeType;if(3!==M&&8!==M&&2!==M)return 1===M&&v.isXMLDoc(t)||(p=v.propFix[p]||p,o=v.propHooks[p]),void 0!==e?o&&"set"in o&&void 0!==(b=o.set(t,e,p))?b:t[p]=e:o&&"get"in o&&null!==(b=o.get(t,p))?b:t[p]},propHooks:{tabIndex:{get:function(t){var p=v.find.attr(t,"tabindex");return p?parseInt(p,10):Ap.test(t.nodeName)||sp.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),l.optSelected||(v.propHooks.selected={get:function(t){var p=t.parentNode;return p&&p.parentNode&&p.parentNode.selectedIndex,null},set:function(t){var p=t.parentNode;p&&(p.selectedIndex,p.parentNode&&p.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(t){var p,e,b,o,M,n,z,r=0;if(u(t))return this.each(function(p){v(this).addClass(t.call(this,p,qp(this)))});if((p=lp(t)).length)for(;e=this[r++];)if(o=qp(e),b=1===e.nodeType&&" "+dp(o)+" "){for(n=0;M=p[n++];)b.indexOf(" "+M+" ")<0&&(b+=M+" ");o!==(z=dp(b))&&e.setAttribute("class",z)}return this},removeClass:function(t){var p,e,b,o,M,n,z,r=0;if(u(t))return this.each(function(p){v(this).removeClass(t.call(this,p,qp(this)))});if(!arguments.length)return this.attr("class","");if((p=lp(t)).length)for(;e=this[r++];)if(o=qp(e),b=1===e.nodeType&&" "+dp(o)+" "){for(n=0;M=p[n++];)for(;b.indexOf(" "+M+" ")>-1;)b=b.replace(" "+M+" "," ");o!==(z=dp(b))&&e.setAttribute("class",z)}return this},toggleClass:function(t,p){var e=typeof t,b="string"===e||Array.isArray(t);return"boolean"==typeof p&&b?p?this.addClass(t):this.removeClass(t):u(t)?this.each(function(e){v(this).toggleClass(t.call(this,e,qp(this),p),p)}):this.each(function(){var p,o,M,n;if(b)for(o=0,M=v(this),n=lp(t);p=n[o++];)M.hasClass(p)?M.removeClass(p):M.addClass(p);else void 0!==t&&"boolean"!==e||((p=qp(this))&&J.set(this,"__className__",p),this.setAttribute&&this.setAttribute("class",p||!1===t?"":J.get(this,"__className__")||""))})},hasClass:function(t){var p,e,b=0;for(p=" "+t+" ";e=this[b++];)if(1===e.nodeType&&(" "+dp(qp(e))+" ").indexOf(p)>-1)return!0;return!1}});var up=/\r/g;v.fn.extend({val:function(t){var p,e,b,o=this[0];return arguments.length?(b=u(t),this.each(function(e){var o;1===this.nodeType&&(null==(o=b?t.call(this,e,v(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=v.map(o,function(t){return null==t?"":t+""})),(p=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in p&&void 0!==p.set(this,o,"value")||(this.value=o))})):o?(p=v.valHooks[o.type]||v.valHooks[o.nodeName.toLowerCase()])&&"get"in p&&void 0!==(e=p.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(up,""):null==e?"":e:void 0}}),v.extend({valHooks:{option:{get:function(t){var p=v.find.attr(t,"value");return null!=p?p:dp(v.text(t))}},select:{get:function(t){var p,e,b,o=t.options,M=t.selectedIndex,n="select-one"===t.type,z=n?null:[],r=n?M+1:o.length;for(b=M<0?r:n?M:0;b-1)&&(e=!0);return e||(t.selectedIndex=-1),M}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(t,p){if(Array.isArray(p))return t.checked=v.inArray(v(t).val(),p)>-1}},l.checkOn||(v.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),l.focusin="onfocusin"in e;var fp=/^(?:focusinfocus|focusoutblur)$/,Wp=function(t){t.stopPropagation()};v.extend(v.event,{trigger:function(t,p,b,o){var M,z,r,O,c,i,a,A,d=[b||n],q=s.call(t,"type")?t.type:t,l=s.call(t,"namespace")?t.namespace.split("."):[];if(z=A=r=b=b||n,3!==b.nodeType&&8!==b.nodeType&&!fp.test(q+v.event.triggered)&&(q.indexOf(".")>-1&&(l=q.split("."),q=l.shift(),l.sort()),c=q.indexOf(":")<0&&"on"+q,(t=t[v.expando]?t:new v.Event(q,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=l.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=b),p=null==p?[t]:v.makeArray(p,[t]),a=v.event.special[q]||{},o||!a.trigger||!1!==a.trigger.apply(b,p))){if(!o&&!a.noBubble&&!f(b)){for(O=a.delegateType||q,fp.test(O+q)||(z=z.parentNode);z;z=z.parentNode)d.push(z),r=z;r===(b.ownerDocument||n)&&d.push(r.defaultView||r.parentWindow||e)}for(M=0;(z=d[M++])&&!t.isPropagationStopped();)A=z,t.type=M>1?O:a.bindType||q,(i=(J.get(z,"events")||{})[t.type]&&J.get(z,"handle"))&&i.apply(z,p),(i=c&&z[c])&&i.apply&&G(z)&&(t.result=i.apply(z,p),!1===t.result&&t.preventDefault());return t.type=q,o||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(d.pop(),p)||!G(b)||c&&u(b[q])&&!f(b)&&((r=b[c])&&(b[c]=null),v.event.triggered=q,t.isPropagationStopped()&&A.addEventListener(q,Wp),b[q](),t.isPropagationStopped()&&A.removeEventListener(q,Wp),v.event.triggered=void 0,r&&(b[c]=r)),t.result}},simulate:function(t,p,e){var b=v.extend(new v.Event,e,{type:t,isSimulated:!0});v.event.trigger(b,null,p)}}),v.fn.extend({trigger:function(t,p){return this.each(function(){v.event.trigger(t,p,this)})},triggerHandler:function(t,p){var e=this[0];if(e)return v.event.trigger(t,p,e,!0)}}),l.focusin||v.each({focus:"focusin",blur:"focusout"},function(t,p){var e=function(t){v.event.simulate(p,t.target,v.event.fix(t))};v.event.special[p]={setup:function(){var b=this.ownerDocument||this,o=J.access(b,p);o||b.addEventListener(t,e,!0),J.access(b,p,(o||0)+1)},teardown:function(){var b=this.ownerDocument||this,o=J.access(b,p)-1;o?J.access(b,p,o):(b.removeEventListener(t,e,!0),J.remove(b,p))}}});var hp=e.location,Rp=Date.now(),vp=/\?/;v.parseXML=function(t){var p;if(!t||"string"!=typeof t)return null;try{p=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){p=void 0}return p&&!p.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),p};var mp=/\[\]$/,gp=/\r?\n/g,Bp=/^(?:submit|button|image|reset|file)$/i,Lp=/^(?:input|select|textarea|keygen)/i;function Xp(t,p,e,b){var o;if(Array.isArray(p))v.each(p,function(p,o){e||mp.test(t)?b(t,o):Xp(t+"["+("object"==typeof o&&null!=o?p:"")+"]",o,e,b)});else if(e||"object"!==R(p))b(t,p);else for(o in p)Xp(t+"["+o+"]",p[o],e,b)}v.param=function(t,p){var e,b=[],o=function(t,p){var e=u(p)?p():p;b[b.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(Array.isArray(t)||t.jquery&&!v.isPlainObject(t))v.each(t,function(){o(this.name,this.value)});else for(e in t)Xp(e,t[e],p,o);return b.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=v.prop(this,"elements");return t?v.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!v(this).is(":disabled")&&Lp.test(this.nodeName)&&!Bp.test(t)&&(this.checked||!at.test(t))}).map(function(t,p){var e=v(this).val();return null==e?null:Array.isArray(e)?v.map(e,function(t){return{name:p.name,value:t.replace(gp,"\r\n")}}):{name:p.name,value:e.replace(gp,"\r\n")}}).get()}});var yp=/%20/g,Np=/#.*$/,_p=/([?&])_=[^&]*/,Tp=/^(.*?):[ \t]*([^\r\n]*)$/gm,xp=/^(?:GET|HEAD)$/,wp=/^\/\//,Cp={},Sp={},Hp="*/".concat("*"),Ep=n.createElement("a");function Fp(t){return function(p,e){"string"!=typeof p&&(e=p,p="*");var b,o=0,M=p.toLowerCase().match(E)||[];if(u(e))for(;b=M[o++];)"+"===b[0]?(b=b.slice(1)||"*",(t[b]=t[b]||[]).unshift(e)):(t[b]=t[b]||[]).push(e)}}function kp(t,p,e,b){var o={},M=t===Sp;function n(z){var r;return o[z]=!0,v.each(t[z]||[],function(t,z){var O=z(p,e,b);return"string"!=typeof O||M||o[O]?M?!(r=O):void 0:(p.dataTypes.unshift(O),n(O),!1)}),r}return n(p.dataTypes[0])||!o["*"]&&n("*")}function Dp(t,p){var e,b,o=v.ajaxSettings.flatOptions||{};for(e in p)void 0!==p[e]&&((o[e]?t:b||(b={}))[e]=p[e]);return b&&v.extend(!0,t,b),t}Ep.href=hp.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:hp.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(hp.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hp,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,p){return p?Dp(Dp(t,v.ajaxSettings),p):Dp(v.ajaxSettings,t)},ajaxPrefilter:Fp(Cp),ajaxTransport:Fp(Sp),ajax:function(t,p){"object"==typeof t&&(p=t,t=void 0),p=p||{};var b,o,M,z,r,O,c,i,a,A,s=v.ajaxSetup({},p),d=s.context||s,q=s.context&&(d.nodeType||d.jquery)?v(d):v.event,l=v.Deferred(),u=v.Callbacks("once memory"),f=s.statusCode||{},W={},h={},R="canceled",m={readyState:0,getResponseHeader:function(t){var p;if(c){if(!z)for(z={};p=Tp.exec(M);)z[p[1].toLowerCase()]=p[2];p=z[t.toLowerCase()]}return null==p?null:p},getAllResponseHeaders:function(){return c?M:null},setRequestHeader:function(t,p){return null==c&&(t=h[t.toLowerCase()]=h[t.toLowerCase()]||t,W[t]=p),this},overrideMimeType:function(t){return null==c&&(s.mimeType=t),this},statusCode:function(t){var p;if(t)if(c)m.always(t[m.status]);else for(p in t)f[p]=[f[p],t[p]];return this},abort:function(t){var p=t||R;return b&&b.abort(p),g(0,p),this}};if(l.promise(m),s.url=((t||s.url||hp.href)+"").replace(wp,hp.protocol+"//"),s.type=p.method||p.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(E)||[""],null==s.crossDomain){O=n.createElement("a");try{O.href=s.url,O.href=O.href,s.crossDomain=Ep.protocol+"//"+Ep.host!=O.protocol+"//"+O.host}catch(t){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=v.param(s.data,s.traditional)),kp(Cp,s,p,m),c)return m;for(a in(i=v.event&&s.global)&&0==v.active++&&v.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!xp.test(s.type),o=s.url.replace(Np,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(yp,"+")):(A=s.url.slice(o.length),s.data&&(s.processData||"string"==typeof s.data)&&(o+=(vp.test(o)?"&":"?")+s.data,delete s.data),!1===s.cache&&(o=o.replace(_p,"$1"),A=(vp.test(o)?"&":"?")+"_="+Rp+++A),s.url=o+A),s.ifModified&&(v.lastModified[o]&&m.setRequestHeader("If-Modified-Since",v.lastModified[o]),v.etag[o]&&m.setRequestHeader("If-None-Match",v.etag[o])),(s.data&&s.hasContent&&!1!==s.contentType||p.contentType)&&m.setRequestHeader("Content-Type",s.contentType),m.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+Hp+"; q=0.01":""):s.accepts["*"]),s.headers)m.setRequestHeader(a,s.headers[a]);if(s.beforeSend&&(!1===s.beforeSend.call(d,m,s)||c))return m.abort();if(R="abort",u.add(s.complete),m.done(s.success),m.fail(s.error),b=kp(Sp,s,p,m)){if(m.readyState=1,i&&q.trigger("ajaxSend",[m,s]),c)return m;s.async&&s.timeout>0&&(r=e.setTimeout(function(){m.abort("timeout")},s.timeout));try{c=!1,b.send(W,g)}catch(t){if(c)throw t;g(-1,t)}}else g(-1,"No Transport");function g(t,p,n,z){var O,a,A,W,h,R=p;c||(c=!0,r&&e.clearTimeout(r),b=void 0,M=z||"",m.readyState=t>0?4:0,O=t>=200&&t<300||304===t,n&&(W=function(t,p,e){for(var b,o,M,n,z=t.contents,r=t.dataTypes;"*"===r[0];)r.shift(),void 0===b&&(b=t.mimeType||p.getResponseHeader("Content-Type"));if(b)for(o in z)if(z[o]&&z[o].test(b)){r.unshift(o);break}if(r[0]in e)M=r[0];else{for(o in e){if(!r[0]||t.converters[o+" "+r[0]]){M=o;break}n||(n=o)}M=M||n}if(M)return M!==r[0]&&r.unshift(M),e[M]}(s,m,n)),W=function(t,p,e,b){var o,M,n,z,r,O={},c=t.dataTypes.slice();if(c[1])for(n in t.converters)O[n.toLowerCase()]=t.converters[n];for(M=c.shift();M;)if(t.responseFields[M]&&(e[t.responseFields[M]]=p),!r&&b&&t.dataFilter&&(p=t.dataFilter(p,t.dataType)),r=M,M=c.shift())if("*"===M)M=r;else if("*"!==r&&r!==M){if(!(n=O[r+" "+M]||O["* "+M]))for(o in O)if((z=o.split(" "))[1]===M&&(n=O[r+" "+z[0]]||O["* "+z[0]])){!0===n?n=O[o]:!0!==O[o]&&(M=z[0],c.unshift(z[1]));break}if(!0!==n)if(n&&t.throws)p=n(p);else try{p=n(p)}catch(t){return{state:"parsererror",error:n?t:"No conversion from "+r+" to "+M}}}return{state:"success",data:p}}(s,W,m,O),O?(s.ifModified&&((h=m.getResponseHeader("Last-Modified"))&&(v.lastModified[o]=h),(h=m.getResponseHeader("etag"))&&(v.etag[o]=h)),204===t||"HEAD"===s.type?R="nocontent":304===t?R="notmodified":(R=W.state,a=W.data,O=!(A=W.error))):(A=R,!t&&R||(R="error",t<0&&(t=0))),m.status=t,m.statusText=(p||R)+"",O?l.resolveWith(d,[a,R,m]):l.rejectWith(d,[m,R,A]),m.statusCode(f),f=void 0,i&&q.trigger(O?"ajaxSuccess":"ajaxError",[m,s,O?a:A]),u.fireWith(d,[m,R]),i&&(q.trigger("ajaxComplete",[m,s]),--v.active||v.event.trigger("ajaxStop")))}return m},getJSON:function(t,p,e){return v.get(t,p,e,"json")},getScript:function(t,p){return v.get(t,void 0,p,"script")}}),v.each(["get","post"],function(t,p){v[p]=function(t,e,b,o){return u(e)&&(o=o||b,b=e,e=void 0),v.ajax(v.extend({url:t,type:p,dataType:o,data:e,success:b},v.isPlainObject(t)&&t))}}),v._evalUrl=function(t){return v.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(t){var p;return this[0]&&(u(t)&&(t=t.call(this[0])),p=v(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&p.insertBefore(this[0]),p.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return u(t)?this.each(function(p){v(this).wrapInner(t.call(this,p))}):this.each(function(){var p=v(this),e=p.contents();e.length?e.wrapAll(t):p.append(t)})},wrap:function(t){var p=u(t);return this.each(function(e){v(this).wrapAll(p?t.call(this,e):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(t){return!v.expr.pseudos.visible(t)},v.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Ip={0:200,1223:204},Pp=v.ajaxSettings.xhr();l.cors=!!Pp&&"withCredentials"in Pp,l.ajax=Pp=!!Pp,v.ajaxTransport(function(t){var p,b;if(l.cors||Pp&&!t.crossDomain)return{send:function(o,M){var n,z=t.xhr();if(z.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(n in t.xhrFields)z[n]=t.xhrFields[n];for(n in t.mimeType&&z.overrideMimeType&&z.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)z.setRequestHeader(n,o[n]);p=function(t){return function(){p&&(p=b=z.onload=z.onerror=z.onabort=z.ontimeout=z.onreadystatechange=null,"abort"===t?z.abort():"error"===t?"number"!=typeof z.status?M(0,"error"):M(z.status,z.statusText):M(Ip[z.status]||z.status,z.statusText,"text"!==(z.responseType||"text")||"string"!=typeof z.responseText?{binary:z.response}:{text:z.responseText},z.getAllResponseHeaders()))}},z.onload=p(),b=z.onerror=z.ontimeout=p("error"),void 0!==z.onabort?z.onabort=b:z.onreadystatechange=function(){4===z.readyState&&e.setTimeout(function(){p&&b()})},p=p("abort");try{z.send(t.hasContent&&t.data||null)}catch(t){if(p)throw t}},abort:function(){p&&p()}}}),v.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return v.globalEval(t),t}}}),v.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),v.ajaxTransport("script",function(t){var p,e;if(t.crossDomain)return{send:function(b,o){p=v("