diff --git a/app.platform/build.gradle b/app.platform/build.gradle index a22cb0a3..53c25c60 100644 --- a/app.platform/build.gradle +++ b/app.platform/build.gradle @@ -19,8 +19,14 @@ dependencies { project(":io.sc.engine.mv.frontend"), project(":io.sc.engine.mv.sample"), - project(":erm"), - project(":erm.frontend"), + project(":io.sc.engine.rule.client"), + project(":io.sc.engine.rule.client.spring"), + project(":io.sc.engine.rule.core"), + project(":io.sc.engine.rule.server"), + project(":io.sc.engine.rule.sample"), + +// project(":erm"), +// project(":erm.frontend"), // project(":io.sc.platform.scheduler.manager"), ) diff --git a/io.sc.engine.rule.client.spring/build.gradle b/io.sc.engine.rule.client.spring/build.gradle new file mode 100644 index 00000000..0d995a81 --- /dev/null +++ b/io.sc.engine.rule.client.spring/build.gradle @@ -0,0 +1,8 @@ +dependencies { + api( + project(":io.sc.engine.rule.core"), + project(":io.sc.engine.rule.client"), + + project(":io.sc.platform.mvc"), + ) +} diff --git a/io.sc.engine.rule.client.spring/src/main/java/io/sc/engine/rule/client/spring/initializer/AutoCompileDeployedModelInitializer.java b/io.sc.engine.rule.client.spring/src/main/java/io/sc/engine/rule/client/spring/initializer/AutoCompileDeployedModelInitializer.java new file mode 100644 index 00000000..ca10a13b --- /dev/null +++ b/io.sc.engine.rule.client.spring/src/main/java/io/sc/engine/rule/client/spring/initializer/AutoCompileDeployedModelInitializer.java @@ -0,0 +1,113 @@ +package io.sc.engine.rule.client.spring.initializer; + +import io.sc.engine.rule.client.Executor; +import io.sc.engine.rule.client.spring.service.ExecutorFactoryService; +import io.sc.engine.rule.core.classes.ResourceAbstract; +import io.sc.engine.rule.core.enums.DeployStatus; +import io.sc.platform.core.initializer.ApplicationInitializer; +import io.sc.platform.core.initializer.ApplicationInitializerExecuteException; +import io.sc.platform.mvc.service.SystemParameterService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.context.ApplicationContext; +import org.springframework.stereotype.Component; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; + +@Component +public class AutoCompileDeployedModelInitializer implements ApplicationInitializer { + private static final Logger log =LoggerFactory.getLogger(AutoCompileDeployedModelInitializer.class); + private static final String AUTO_COMPILE_MODE_KEY ="parameter.re.client.autoCompile"; + + private SystemParameterService systemParameterService; + private ExecutorFactoryService executorFactoryService; + + @Override + public void init(ApplicationContext applicationContext) { + //this.systemParameterService =applicationContext.getBean(SystemParameterService.class); + //this.executorFactoryService =applicationContext.getBean(ExecutorFactoryService.class); + } + + @Override + public int getOrder() { + return 10000; + } + + @Override + public synchronized boolean isInitialized() { + return false; + } + + @Override + public void execute() throws ApplicationInitializerExecuteException { + if(1==1)return; + String autoCompile =systemParameterService.getParameter(AUTO_COMPILE_MODE_KEY,"none"); + log.info("auto Complile Mode [{}]",autoCompile); + if("none".equalsIgnoreCase(autoCompile)) {//系统启动时不自动编译资源 + return; + } + + if(executorFactoryService!=null) { + Executor executor=executorFactoryService.getExecutor(); + if(executor!=null) { + try { + List resources =executor.getLoader().getAllReleasableResourceAbstract(); + if(resources!=null && resources.size()>0) { + + if ("deployed".equalsIgnoreCase(autoCompile)) { + autoCompileDeployed(executor, resources); + } + + if ("last".equalsIgnoreCase(autoCompile)) { + autoCompileLast(executor, resources); + } + + if ("deployed-and-last".equalsIgnoreCase(autoCompile)) { + autoCompileDeployed(executor, resources); + autoCompileLast(executor, resources); + } + + } + }catch (Exception e){ + throw new ApplicationInitializerExecuteException(e); + } + } + } + } + + private void autoCompileDeployed(Executor executor, List resources) throws Exception{ + if(resources!=null && resources.size()>0) { + for(ResourceAbstract resource : resources) { + if(DeployStatus.ON_LINE.equals(resource.getStatus())) { + log.info("auto compile deployed resource {}_V{}({}) ......",resource.getCode(),resource.getVersion(),resource.getName()); + executor.compileByCode(resource.getCode(), resource.getVersion()); + } + } + } + } + + private void autoCompileLast(Executor executor,List resources) throws Exception{ + Map last =new HashMap(); + if(resources!=null && resources.size()>0) { + for(ResourceAbstract resource : resources) { + ResourceAbstract resourceAbstract =last.get(resource.getCode()); + if(resourceAbstract==null) { + last.put(resource.getCode(),resource); + }else { + if(resource.getVersion()>resourceAbstract.getVersion()) { + last.put(resource.getCode(),resource); + } + } + } + } + + for(Entry entry : last.entrySet()) { + ResourceAbstract resource =entry.getValue(); + log.info("auto compile deployed resource {}_V{}({}) ......",resource.getCode(),resource.getVersion(),resource.getName()); + executor.compileByCode(resource.getCode(), resource.getVersion()); + } + } +} diff --git a/io.sc.engine.rule.client.spring/src/main/resources/META-INF/platform/plugins/components.json b/io.sc.engine.rule.client.spring/src/main/resources/META-INF/platform/plugins/components.json new file mode 100644 index 00000000..66761d71 --- /dev/null +++ b/io.sc.engine.rule.client.spring/src/main/resources/META-INF/platform/plugins/components.json @@ -0,0 +1,15 @@ +/* + * 自动组件扫描插件配置 + * 功能: 该插件配置为框架提供自动扫描组件的包名,配置的包名将会自动被 spring 进行扫描 + * 使用说明: + * includes: 包含自动扫描的包名列表 + * excludes: 排除自动扫描的包名列表 + * 注意: 当一个包名同时存在于 includes 和 excludes 中, excludes 优先, 即该包不会被自动扫描 + */ + +{ + "includes":[ + "io.sc.engine.rule.client.spring.controller", + "io.sc.engine.rule.client.spring.service.impl" + ] +} diff --git a/io.sc.engine.rule.client/build.gradle b/io.sc.engine.rule.client/build.gradle new file mode 100644 index 00000000..63a517a7 --- /dev/null +++ b/io.sc.engine.rule.client/build.gradle @@ -0,0 +1,6 @@ +dependencies { + api( + project(":io.sc.engine.rule.core"), + project(":io.sc.platform.groovy"), + ) +} diff --git a/io.sc.engine.rule.core/build.gradle b/io.sc.engine.rule.core/build.gradle new file mode 100644 index 00000000..28625cdb --- /dev/null +++ b/io.sc.engine.rule.core/build.gradle @@ -0,0 +1,25 @@ +dependencies { + api( + "org.springframework:spring-core", + "com.fasterxml.jackson.core:jackson-annotations", + "com.fasterxml.jackson.core:jackson-core", + "com.fasterxml.jackson.core:jackson-databind", + "org.slf4j:slf4j-api", + "org.freemarker:freemarker", + + "org.codehaus.groovy:groovy", + "org.codehaus.groovy:groovy-jsr223", + "org.codehaus.groovy:groovy-datetime", + "org.codehaus.groovy:groovy-dateutil", + "org.codehaus.groovy:groovy-json", + "org.codehaus.groovy:groovy-sql", + "org.codehaus.groovy:groovy-xml", + "org.apache.commons:commons-math3:${commons_math3_version}", + + "org.nasdanika.core:mxgraph:${mxgraph_version}", + + "org.jpmml:pmml-evaluator:${jpmml_version}", + "org.jpmml:pmml-evaluator-extension:${jpmml_version}", + "com.belerweb:pinyin4j:${pinyin4j_version}", + ) +} diff --git a/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/code/CodeGenerator.java b/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/code/CodeGenerator.java new file mode 100644 index 00000000..42d61692 --- /dev/null +++ b/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/code/CodeGenerator.java @@ -0,0 +1,29 @@ +package io.sc.engine.rule.core.code; + +import io.sc.engine.rule.core.code.impl.support.ResourceWrapper; + +/** + * 代码生成器接口 + * @author wangshaoping + * + */ +public interface CodeGenerator { + /** + * 生成可执行的源代码 + * @param resourceId 资源ID + * @param wrapper 资源封装器对象 + * @return 源代码封装对象 + * @throws Exception 违例 + */ + public SourceCode generateSourceCodeById(String resourceId,ResourceWrapper wrapper) throws Exception; + + /** + * 生成可执行的源代码 + * @param resourceCode 资源代码 + * @param version 模型版本 + * @param wrapper 资源封装器对象 + * @return 源代码封装对象 + * @throws Exception 违例 + */ + public SourceCode generateSourceCodeByCode(String resourceCode,Integer version,ResourceWrapper wrapper) throws Exception; +} diff --git a/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/code/impl/support/processor/ConditionRange.java b/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/code/impl/support/processor/ConditionRange.java new file mode 100644 index 00000000..9ff437f8 --- /dev/null +++ b/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/code/impl/support/processor/ConditionRange.java @@ -0,0 +1,87 @@ +package io.sc.engine.rule.core.code.impl.support.processor; + +import java.util.ArrayList; +import java.util.List; + +import io.sc.engine.rule.core.po.model.Parameter; +import io.sc.engine.rule.core.po.model.processor.ConditionRangeParameterProcessor; +import io.sc.engine.rule.core.util.CodeReplacer; +import io.sc.engine.rule.core.util.ExpressionReplacer; +import io.sc.engine.rule.core.util.JacksonObjectMapper; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.core.type.TypeReference; + +@JsonIgnoreProperties(ignoreUnknown=true) +public class ConditionRange { + private String uuid; + private String condition; + private String value; + + public static List parse(String json) throws Exception{ + return JacksonObjectMapper.getDefaultObjectMapper().readValue(json, new TypeReference>(){}); + } + + public static String generateGroovyCode(Parameter parameter,ConditionRangeParameterProcessor processor) throws Exception{ + if(parameter==null || processor==null){ + return null; + } + try { + List conditionRanges =parse(processor.getConditionRange()); + List _conditionRanges =new ArrayList(); + + //移除没有填写条件的条件范围 + if(conditionRanges!=null && conditionRanges.size()>0) { + for(ConditionRange conditionRange : conditionRanges) { + if(conditionRange.getCondition()!=null && !"".equals(conditionRange.getCondition().trim())) { + _conditionRanges.add(conditionRange); + } + } + } + + if(_conditionRanges!=null && _conditionRanges.size()>0) { + StringBuilder sb =new StringBuilder(); + int size =_conditionRanges.size(); + for(int i=0;i0) { + boolean firstCharIsNumber =true; + for(int i=0;i='0' && c<='9') { + chars[i] ='_'; + } + firstCharIsNumber =false; + continue; + } + char c =chars[i]; + if((c>='0' && c<='9') || (c>='A' && c<='Z') || (c>='a' && c<='z') || (c=='_')) { + + }else { + chars[i] ='_'; + } + } + return new String(chars); + } + } + return null; + } + + public static String toName(String str) { + if(StringUtils.hasText(str)) { + char[] chars =str.toCharArray(); + if(chars!=null && chars.length>0) { + for(int i=0;i-1 || Arrays.binarySearch(标志符, code)>-1) { + return METHOD_NAME_PREFIX + code; + } + } + return code; + } + + /** + * 将字符串转换成合法的Java字段名 + * @param code 字符串 + * @return 合法的Java字段名 + */ + public static String fieldName(String code) { + if(code!=null) { + if(Arrays.binarySearch(关键字, code)>-1 || Arrays.binarySearch(标志符, code)>-1) { + return FIELD_NAME_PREFIX + code; + } + } + return code; + } + + /** + * 将字符串转换成合法的Java变量名 + * @param code 字符串 + * @return 合法的Java变量名 + */ + public static String varName(String code) { + if(code!=null) { + if(Arrays.binarySearch(关键字, code)>-1 || Arrays.binarySearch(标志符, code)>-1) { + return VAR_NAME_PREFIX + code; + } + } + return code; + } + + /** + * 将字符串转换成合法的Java变量名 + * @param code 字符串 + * @param version 版本 + * @return 合法的Java变量名 + */ + public static String varName(String code,Integer version) { + if(code!=null && version!=null) { + return Strings.toLowerFristChar(code) + "_V" + version; + } + return Strings.toLowerFristChar(code); + } +} diff --git a/io.sc.engine.rule.frontend/babel.config.cjs b/io.sc.engine.rule.frontend/babel.config.cjs new file mode 100644 index 00000000..0ff56db5 --- /dev/null +++ b/io.sc.engine.rule.frontend/babel.config.cjs @@ -0,0 +1,16 @@ +module.exports = { + presets: [ + "@babel/preset-env", + [ + "@babel/preset-typescript", + { + allExtensions: true, //支持所有文件扩展名 + }, + ], + ], + plugins: [ + "@babel/plugin-transform-class-properties", + "@babel/plugin-transform-object-rest-spread", + "@vue/babel-plugin-jsx", + ] +} diff --git a/io.sc.engine.rule.frontend/public/webjars/luckysheet/2.1.13/expendPlugins/chart/chartmix.css b/io.sc.engine.rule.frontend/public/webjars/luckysheet/2.1.13/expendPlugins/chart/chartmix.css new file mode 100644 index 00000000..11517bd4 --- /dev/null +++ b/io.sc.engine.rule.frontend/public/webjars/luckysheet/2.1.13/expendPlugins/chart/chartmix.css @@ -0,0 +1 @@ +.luckysheet-datavisual-quick-menu{width:120px;overflow:auto;margin-top:15px}.luckysheet-datavisual-quick-menu::-webkit-scrollbar{display:none}.luckysheet-datavisual-quick-menu>div{text-align:left;padding:4px 4px;border-right:3px solid #fff;color:#777;cursor:pointer;line-height:1.4em;word-wrap:break-word}.luckysheet-datavisual-quick-menu>div:hover{color:#000}.luckysheet-datavisual-quick-menu>div i{width:15px}.luckysheet-datavisual-quick-menu>div:hover i{color:#ff7e7e}.luckysheet-datavisual-quick-menu>div.luckysheet-datavisual-quick-menu-active{border-right:3px solid #ff7e7e;color:#000;font-weight:700}.luckysheet-datavisual-quick-menu>div.luckysheet-datavisual-quick-menu-active:hover i{color:#000}.luckysheet-datavisual-quick-range{padding:5px 0}.luckysheet-datavisual-range-container{background:#fff;border:1px solid #d9d9d9;border-top:1px solid silver;min-width:20px;width:100%;max-width:200px;display:inline-block}.luckysheet-datavisual-range-container-focus{border:1px solid #4d90fe;box-shadow:inset 0 1px 2px rgba(0,0,0,.3);outline:none}.luckysheet-datavisual-range-input,.luckysheet-datavisual-range-input:focus{background:transparent!important;border:none!important;box-sizing:border-box;box-shadow:none;height:25px;margin:0;outline:none!important;padding:1px 8px!important;width:100%}.luckysheet-datavisual-range-button-container{overflow:hidden;padding:0 0 0 8px;text-align:right;width:21px}.luckysheet-datavisual-range-button-container div{padding:2px 10px 0 10px;font-size:18px;cursor:pointer;color:#6598f3}.luckysheet-datavisual-range-button-container div:hover{color:#ff7e7e}.luckysheet-datavisual-quick-m{margin-top:5px;min-height:500px;top:50px;font-size:12px}.luckysheet-datavisual-quick-list{left:110px;right:0;bottom:0;top:80px;position:absolute;overflow:auto;border-top:1px solid #e5e5e5;padding:5px 3px 35px 3px}.luckysheet-datavisual-quick-list-title{padding:4px 6px;background:#e5e5e5;margin-top:10px}.luckysheet-datavisual-quick-list-ul{overflow:hidden}.luckysheet-datavisual-quick-list-item{display:inline-block;margin:5px 8px;border:1px solid #dadada;width:100px;height:80px}.luckysheet-datavisual-quick-list-item:hover{border:1px solid #ff7e7e;box-shadow:0 0 20px #ff7e7e}.luckysheet-datavisual-quick-list-item img{display:inline-block;width:100px;height:80px}.luckysheet-datavisual-quick-list-item-active{border:1px solid #6598f3;box-shadow:0 0 20px #6598f3}.chart-base-slider .el-slider__runway.show-input{margin-right:72px}.chart-base-slider .el-slider__input.el-input-number--mini{width:56px}.chart-base-slider .input_content{margin:6px 0 0 5px}.title{font-weight:700}.el-row{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.chartSetting{width:100%;height:100%} \ No newline at end of file diff --git a/io.sc.engine.rule.frontend/public/webjars/luckysheet/2.1.13/expendPlugins/chart/chartmix.umd.min.js b/io.sc.engine.rule.frontend/public/webjars/luckysheet/2.1.13/expendPlugins/chart/chartmix.umd.min.js new file mode 100644 index 00000000..5a693fbc --- /dev/null +++ b/io.sc.engine.rule.frontend/public/webjars/luckysheet/2.1.13/expendPlugins/chart/chartmix.umd.min.js @@ -0,0 +1,26 @@ +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("echarts"),require("Vuex"),require("Vue")):"function"===typeof define&&define.amd?define(["echarts","Vuex","Vue"],e):"object"===typeof exports?exports["chartmix"]=e(require("echarts"),require("Vuex"),require("Vue")):t["chartmix"]=e(t["echarts"],t["Vuex"],t["Vue"])})("undefined"!==typeof self?self:this,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00b4":function(t,e,n){"use strict";n("ac1f");var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("1626"),l=n("861d"),c=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),u=i.Error,f=a(/./.test);r({target:"RegExp",proto:!0,forced:!c},{test:function(t){var e=this.exec;if(!s(e))return f(this,t);var n=o(e,this,t);if(null!==n&&!l(n))throw new u("RegExp exec method returned something other than an Object or null");return!!n}})},"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"00fd":function(t,e,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=l},"0366":function(t,e,n){var r=n("e330"),i=n("59ed"),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?o(t,e):function(){return t.apply(e,arguments)}}},"03dd":function(t,e,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"057f":function(t,e,n){var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return o(t)}catch(e){return a(s)}};t.exports.f=function(t){return s&&"Window"==r(t)?l(t):o(i(t))}},"0644":function(t,e,n){var r=n("3818"),i=1,o=4;function a(t){return r(t,i|o)}t.exports=a},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),c=n("1a2d"),u=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=l(e),u)try{return f(t,e)}catch(n){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},"07c7":function(t,e){function n(){return!1}t.exports=n},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"087d":function(t,e){function n(t,e){var n=-1,r=e.length,i=t.length;while(++n]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var h=n+t.length,p=r.length,g=u;return void 0!==f&&(f=i(f),g=c),s(d,g,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,h);case"<":c=f[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(t,e,n){(function(t){var r=n("2b3e"),i=n("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;t.exports=u}).call(this,n("62e4")(t))},"0d51":function(t,e,n){var r=n("da84"),i=r.String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},"0f0f":function(t,e,n){var r=n("8eeb"),i=n("9934");function o(t,e){return t&&r(e,i(e),t)}t.exports=o},"100e":function(t,e,n){var r=n("cd9d"),i=n("2286"),o=n("c1c9");function a(t,e){return o(i(t,e,r),t+"")}t.exports=a},1041:function(t,e,n){var r=n("8eeb"),i=n("a029");function o(t,e){return r(t,i(t),e)}t.exports=o},"107c":function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp;t.exports=r((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},1148:function(t,e,n){"use strict";var r=n("da84"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r.RangeError;t.exports=function(t){var e=o(a(this)),n="",r=i(t);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},1157:function(t,e,n){var r,i; +/*! + * jQuery JavaScript Library v3.6.0 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright OpenJS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2021-03-02T17:08Z + */(function(e,n){"use strict";"object"===typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)})("undefined"!==typeof window?window:this,(function(n,o){"use strict";var a=[],s=Object.getPrototypeOf,l=a.slice,c=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},u=a.push,f=a.indexOf,d={},h=d.toString,p=d.hasOwnProperty,g=p.toString,v=g.call(Object),b={},m=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType&&"function"!==typeof t.item},y=function(t){return null!=t&&t===t.window},x=n.document,A={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){n=n||x;var r,i,o=n.createElement("script");if(o.text=t,e)for(r in A)i=e[r]||e.getAttribute&&e.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function S(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?d[h.call(t)]||"object":typeof t}var C="3.6.0",k=function(t,e){return new k.fn.init(t,e)};function O(t){var e=!!t&&"length"in t&&t.length,n=S(t);return!m(t)&&!y(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+P+")"+P+"*"),X=new RegExp(P+"|>"),H=new RegExp(V),Z=new RegExp("^"+B+"$"),J={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},U=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,_=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=xt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{G.apply(D=j.call(A.childNodes),A.childNodes),D[A.childNodes.length].nodeType}catch(It){G={apply:D.length?function(t,e){N.apply(t,j.call(e))}:function(t,e){var n=t.length,r=0;while(t[n++]=e[r++]);t.length=n-1}}}function st(t,e,r,i){var o,s,c,u,f,p,b,m=e&&e.ownerDocument,A=e?e.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==A&&9!==A&&11!==A)return r;if(!i&&(d(e),e=e||h,g)){if(11!==A&&(f=$.exec(t)))if(o=f[1]){if(9===A){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(m&&(c=m.getElementById(o))&&y(e,c)&&c.id===o)return r.push(c),r}else{if(f[2])return G.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return G.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!I[t+" "]&&(!v||!v.test(t))&&(1!==A||"object"!==e.nodeName.toLowerCase())){if(b=t,m=e,1===A&&(X.test(t)||q.test(t))){m=tt.test(t)&&bt(e.parentNode)||e,m===e&&n.scope||((u=e.getAttribute("id"))?u=u.replace(rt,it):e.setAttribute("id",u=x)),p=a(t),s=p.length;while(s--)p[s]=(u?"#"+u:":scope")+" "+yt(p[s]);b=p.join(",")}try{return G.apply(r,m.querySelectorAll(b)),r}catch(w){I(t,!0)}finally{u===x&&e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,r,i)}function lt(){var t=[];function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}return e}function ct(t){return t[x]=!0,t}function ut(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(It){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){var n=t.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return ct((function(e){return e=+e,ct((function(n,r){var i,o=t([],n.length,e),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function bt(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!U.test(e||n&&n.nodeName||"HTML")},d=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:A;return a!=h&&9===a.nodeType&&a.documentElement?(h=a,p=h.documentElement,g=!o(h),A!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ut((function(t){return p.appendChild(t).appendChild(h.createElement("div")),"undefined"!==typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ut((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=_.test(h.getElementsByClassName),n.getById=ut((function(t){return p.appendChild(t).id=x,!h.getElementsByName||!h.getElementsByName(x).length})),n.getById?(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];i=e.getElementsByName(t),r=0;while(o=i[r++])if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&g)return e.getElementsByClassName(t)},b=[],v=[],(n.qsa=_.test(h.querySelectorAll))&&(ut((function(t){var e;p.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+P+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+x+"-]").length||v.push("~="),e=h.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ut((function(t){t.innerHTML="";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+P+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=_.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ut((function(t){n.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),b.push("!=",V)})),v=v.length&&new RegExp(v.join("|")),b=b.length&&new RegExp(b.join("|")),e=_.test(p.compareDocumentPosition),y=e||_.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==h||t.ownerDocument==A&&y(A,t)?-1:e==h||e.ownerDocument==A&&y(A,e)?1:u?R(u,t)-R(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==h?-1:e==h?1:i?-1:o?1:u?R(u,t)-R(u,e):0;if(i===o)return dt(t,e);n=t;while(n=n.parentNode)a.unshift(n);n=e;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?dt(a[r],s[r]):a[r]==A?-1:s[r]==A?1:0},h):h},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),n.matchesSelector&&g&&!I[e+" "]&&(!b||!b.test(e))&&(!v||!v.test(e)))try{var r=m.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(It){I(e,!0)}return st(e,h,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=h&&d(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=h&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&E.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(T),f){while(e=t[o++])e===t[o]&&(i=r.push(o));while(i--)t.splice(r[i],1)}return u=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else while(e=t[r++])n+=i(e);return n},r=st.selectors={cacheLength:50,createPseudo:ct,match:J,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(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===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]||st.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]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return J["CHILD"].test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&H.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&C(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(Q," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,u,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,b=s&&e.nodeName.toLowerCase(),m=!l&&!s,y=!1;if(v){if(o){while(g){d=e;while(d=d[g])if(s?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&m){d=v,f=d[x]||(d[x]={}),u=f[d.uniqueID]||(f[d.uniqueID]={}),c=u[t]||[],h=c[0]===w&&c[1],y=h&&c[2],d=h&&v.childNodes[h];while(d=++h&&d&&d[g]||(y=h=0)||p.pop())if(1===d.nodeType&&++y&&d===e){u[t]=[w,h,y];break}}else if(m&&(d=e,f=d[x]||(d[x]={}),u=f[d.uniqueID]||(f[d.uniqueID]={}),c=u[t]||[],h=c[0]===w&&c[1],y=h),!1===y)while(d=++h&&d&&d[g]||(y=h=0)||p.pop())if((s?d.nodeName.toLowerCase()===b:1===d.nodeType)&&++y&&(m&&(f=d[x]||(d[x]={}),u=f[d.uniqueID]||(f[d.uniqueID]={}),u[t]=[w,y]),d===e))break;return y-=i,y===r||y%r===0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[x]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){var r,o=i(t,e),a=o.length;while(a--)r=R(t,o[a]),t[r]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ct((function(t){var e=[],n=[],r=s(t.replace(F,"$1"));return r[x]?ct((function(t,e,n,i){var o,a=r(t,null,i,[]),s=t.length;while(s--)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return Z.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!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!r.pseudos["empty"](t)},header:function(t){return K.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:vt((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){var i=t.length;while(i--)if(!t[i](e,n,r))return!1;return!0}:t[0]}function wt(t,e,n){for(var r=0,i=e.length;r-1&&(o[c]=!(a[c]=f))}}else b=St(b===a?b.splice(p,b.length):b),i?i(null,a,b,l):G.apply(a,b)}))}function kt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],l=a?1:0,u=xt((function(t){return t===e}),s,!0),f=xt((function(t){return R(e,t)>-1}),s,!0),d=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?u(t,n,r):f(t,n,r));return e=null,i}];l1&&At(d),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),n,l0,i=t.length>0,o=function(o,a,s,l,u){var f,p,v,b=0,m="0",y=o&&[],x=[],A=c,S=o||i&&r.find["TAG"]("*",u),C=w+=null==A?1:Math.random()||.1,k=S.length;for(u&&(c=a==h||a||u);m!==k&&null!=(f=S[m]);m++){if(i&&f){p=0,a||f.ownerDocument==h||(d(f),s=!g);while(v=t[p++])if(v(f,a||h,s)){l.push(f);break}u&&(w=C)}n&&((f=!v&&f)&&b--,o&&y.push(f))}if(b+=m,n&&m!==b){p=0;while(v=e[p++])v(y,x,a,s);if(o){if(b>0)while(m--)y[m]||x[m]||(x[m]=L.call(l));x=St(x)}G.apply(l,x),u&&!o&&x.length>0&&b+e.length>1&&st.uniqueSort(l)}return u&&(w=C,c=A),y};return n?ct(o):o}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=st.tokenize=function(t,e){var n,i,o,a,s,l,c,u=k[t+" "];if(u)return e?0:u.slice(0);s=t,l=[],c=r.preFilter;while(s){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=q.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(F," ")}),s=s.slice(n.length)),r.filter)!(i=J[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):k(t,l).slice(0)},s=st.compile=function(t,e){var n,r=[],i=[],o=O[t+" "];if(!o){e||(e=a(t)),n=e.length;while(n--)o=kt(e[n]),o[x]?r.push(o):i.push(o);o=O(t,Ot(i,r)),o.selector=t}return o},l=st.select=function(t,e,n,i){var o,l,c,u,f,d="function"===typeof t&&t,h=!i&&a(t=d.selector||t);if(n=n||[],1===h.length){if(l=h[0]=h[0].slice(0),l.length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&r.relative[l[1].type]){if(e=(r.find["ID"](c.matches[0].replace(et,nt),e)||[])[0],!e)return n;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}o=J["needsContext"].test(t)?0:l.length;while(o--){if(c=l[o],r.relative[u=c.type])break;if((f=r.find[u])&&(i=f(c.matches[0].replace(et,nt),tt.test(l[0].type)&&bt(e.parentNode)||e))){if(l.splice(o,1),t=i.length&&yt(l),!t)return G.apply(n,i),n;break}}}return(d||s(t,h))(i,e,!g,n,!e||tt.test(t)&&bt(e.parentNode)||e),n},n.sortStable=x.split("").sort(T).join("")===x,n.detectDuplicates=!!f,d(),n.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),ut((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ut((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||ft(M,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(n);k.find=I,k.expr=I.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=I.uniqueSort,k.text=I.getText,k.isXMLDoc=I.isXML,k.contains=I.contains,k.escapeSelector=I.escape;var T=function(t,e,n){var r=[],i=void 0!==n;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(i&&k(t).is(n))break;r.push(t)}return r},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},D=k.expr.match.needsContext;function L(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(t,e,n){return m(e)?k.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?k.grep(t,(function(t){return t===e!==n})):"string"!==typeof e?k.grep(t,(function(t){return f.call(e,t)>-1!==n})):k.filter(e,t,n)}k.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?k.find.matchesSelector(r,t)?[r]:[]:k.find.matches(t,k.grep(e,(function(t){return 1===t.nodeType})))},k.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!==typeof t)return this.pushStack(k(t).filter((function(){for(e=0;e1?k.uniqueSort(n):n},filter:function(t){return this.pushStack(G(this,t||[],!1))},not:function(t){return this.pushStack(G(this,t||[],!0))},is:function(t){return!!G(this,"string"===typeof t&&D.test(t)?k(t):t||[],!1).length}});var j,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,M=k.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||j,"string"===typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:R.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),N.test(r[1])&&k.isPlainObject(e))for(r in e)m(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=x.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this)};M.prototype=k.fn,j=k(x);var P=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function z(t,e){while((t=t[e])&&1!==t.nodeType);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&k.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"===typeof t?f.call(k(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return z(t,"nextSibling")},prev:function(t){return z(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(L(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},(function(t,e){k.fn[t]=function(n,r){var i=k.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=k.filter(r,i)),this.length>1&&(B[t]||k.uniqueSort(i),P.test(t)&&i.reverse()),this.pushStack(i)}}));var V=/[^\x20\t\r\n\f]+/g;function Q(t){var e={};return k.each(t.match(V)||[],(function(t,n){e[n]=!0})),e}function F(t){return t}function W(t){throw t}function q(t,e,n,r){var i;try{t&&m(i=t.promise)?i.call(t).done(e).fail(n):t&&m(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(t){t="string"===typeof t?Q(t):k.extend({},t);var e,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||t.once,r=e=!0;a.length;s=-1){n=a.shift();while(++s-1)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return k.Deferred((function(n){k.each(e,(function(e,r){var i=m(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&m(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(t=o&&(r!==W&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred((function(n){e[0][3].add(a(0,n,m(i)?i:F,n.notifyWith)),e[1][3].add(a(0,n,m(t)?t:F)),e[2][3].add(a(0,n,m(r)?r:W))})).promise()},promise:function(t){return null!=t?k.extend(t,i):i}},o={};return k.each(e,(function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=l.call(arguments),o=k.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?l.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(q(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();while(n--)q(i[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&X.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){n.setTimeout((function(){throw t}))};var H=k.Deferred();function Z(){x.removeEventListener("DOMContentLoaded",Z),n.removeEventListener("load",Z),k.ready()}k.fn.ready=function(t){return H.then(t).catch((function(t){k.readyException(t)})),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||H.resolveWith(x,[k]))}}),k.ready.then=H.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?n.setTimeout(k.ready):(x.addEventListener("DOMContentLoaded",Z),n.addEventListener("load",Z));var J=function(t,e,n,r,i,o,a){var s=0,l=t.length,c=null==n;if("object"===S(n))for(s in i=!0,n)J(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(k(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each((function(){nt.remove(this,t)}))}}),k.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=et.get(t,e),n&&(!r||Array.isArray(n)?r=et.access(t,e,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),r=n.length,i=n.shift(),o=k._queueHooks(t,e),a=function(){k.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return et.get(t,n)||et.access(t,n,{empty:k.Callbacks("once memory").add((function(){et.remove(t,[e+"queue",n])}))})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!==typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,xt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var t=x.createDocumentFragment(),e=t.appendChild(x.createElement("div")),n=x.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),b.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",b.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",b.option=!!e.lastChild})();var At={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function wt(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&L(t,e)?k.merge([t],n):n}function St(t,e){for(var n=0,r=t.length;n",""]);var Ct=/<|&#?\w+;/;function kt(t,e,n,r,i){for(var o,a,s,l,c,u,f=e.createDocumentFragment(),d=[],h=0,p=t.length;h-1)i&&i.push(o);else if(c=ft(o),a=wt(f.appendChild(o),"script"),c&&St(a),n){u=0;while(o=a[u++])xt.test(o.type||"")&&n.push(o)}return f}var Ot=/^([^.]*)(?:\.(.+)|)/;function It(){return!0}function Tt(){return!1}function Et(t,e){return t===Dt()===("focus"===e)}function Dt(){try{return x.activeElement}catch(t){}}function Lt(t,e,n,r,i,o){var a,s;if("object"===typeof e){for(s in"string"!==typeof n&&(r=r||n,n=void 0),e)Lt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Tt;else if(!i)return t;return 1===o&&(a=i,i=function(t){return k().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=k.guid++)),t.each((function(){k.event.add(this,e,i,r,n)}))}function Nt(t,e,n){n?(et.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=et.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=l.call(arguments),et.set(this,e,o),r=n(this,e),this[e](),i=et.get(this,e),o!==i||r?et.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(et.set(this,e,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===et.get(t,e)&&k.event.add(t,e,It)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,c,u,f,d,h,p,g,v=et.get(t);if($(t)){n.handler&&(o=n,n=o.handler,i=o.selector),i&&k.find.matchesSelector(ut,i),n.guid||(n.guid=k.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!==typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(V)||[""],c=e.length;while(c--)s=Ot.exec(e[c])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h&&(f=k.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=k.event.special[h]||{},u=k.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=l[h])||(d=l[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),k.event.global[h]=!0)}},remove:function(t,e,n,r,i){var o,a,s,l,c,u,f,d,h,p,g,v=et.hasData(t)&&et.get(t);if(v&&(l=v.events)){e=(e||"").match(V)||[""],c=e.length;while(c--)if(s=Ot.exec(e[c])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h){f=k.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;while(o--)u=d[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(t,u));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||k.removeEvent(t,h,v.handle),delete l[h])}else for(h in l)k.event.remove(t,h+e[c],n,r,!0);k.isEmptyObject(l)&&et.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),l=k.event.fix(t),c=(et.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(s[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:k.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l\s*$/g;function Mt(t,e){return L(t,"table")&&L(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,r,i,o,a,s,l;if(1===e.nodeType){if(et.hasData(t)&&(o=et.get(t),l=o.events,l))for(i in et.remove(e,"handle events"),l)for(n=0,r=l[i].length;n1&&"string"===typeof p&&!b.checkClone&&jt.test(p))return t.each((function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),Qt(o,e,n,r)}));if(d&&(i=kt(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=k.map(wt(i,"script"),Pt),s=a.length;f0&&St(a,!l&&wt(t,"script")),s},cleanData:function(t){for(var e,n,r,i=k.event.special,o=0;void 0!==(n=t[o]);o++)if($(n)){if(e=n[et.expando]){if(e.events)for(r in e.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,e.handle);n[et.expando]=void 0}n[nt.expando]&&(n[nt.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return J(this,(function(t){return void 0===t?k.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 Qt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.appendChild(t)}}))},prepend:function(){return Qt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Qt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Qt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(wt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return k.clone(this,t,e)}))},html:function(t){return J(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!Gt.test(t)&&!At[(yt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function ae(t,e,n){var r=qt(t),i=!b.boxSizingReliable()||n,o=i&&"border-box"===k.css(t,"boxSizing",!1,r),a=o,s=Zt(t,e,r),l="offset"+e[0].toUpperCase()+e.slice(1);if(Wt.test(s)){if(!n)return s;s="auto"}return(!b.boxSizingReliable()&&o||!b.reliableTrDimensions()&&L(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===k.css(t,"boxSizing",!1,r),a=l in t,a&&(s=t[l])),s=parseFloat(s)||0,s+oe(t,e,n||(o?"border":"content"),a,r,s)+"px"}function se(t,e,n,r,i){return new se.prototype.init(t,e,n,r,i)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=_(e),l=ee.test(e),c=t.style;if(l||(e=$t(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];o=typeof n,"string"===o&&(i=lt.exec(n))&&i[1]&&(n=pt(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,s=_(e),l=ee.test(e);return l||(e=$t(s)),a=k.cssHooks[e]||k.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Zt(t,e,r)),"normal"===i&&e in re&&(i=re[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],(function(t,e){k.cssHooks[e]={get:function(t,n,r){if(n)return!te.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ae(t,e,r):Xt(t,ne,(function(){return ae(t,e,r)}))},set:function(t,n,r){var i,o=qt(t),a=!b.scrollboxSize()&&"absolute"===o.position,s=a||r,l=s&&"border-box"===k.css(t,"boxSizing",!1,o),c=r?oe(t,e,r,l,o):0;return l&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-oe(t,e,"border",!1,o)-.5)),c&&(i=lt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=k.css(t,e)),ie(t,n,c)}}})),k.cssHooks.marginLeft=Jt(b.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(t,e){k.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[t+ct[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(k.cssHooks[t+e].set=ie)})),k.fn.extend({css:function(t,e){return J(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=qt(t),i=e.length;a1)}}),k.Tween=se,se.prototype={constructor:se,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return t&&t.get?t.get(this):se.propHooks._default.get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):se.propHooks._default.set(this),this}},se.prototype.init.prototype=se.prototype,se.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[$t(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},se.propHooks.scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=se.prototype.init,k.fx.step={};var le,ce,ue=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;function de(){ce&&(!1===x.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(de):n.setTimeout(de,k.fx.interval),k.fx.tick())}function he(){return n.setTimeout((function(){le=void 0})),le=Date.now()}function pe(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=ct[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ge(t,e,n){for(var r,i=(me.tweeners[e]||[]).concat(me.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each((function(){k.removeAttr(this,t)}))}}),k.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof t.getAttribute?k.prop(t,e,n):(1===o&&k.isXMLDoc(t)||(i=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ye:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=k.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&L(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(V);if(i&&1===t.nodeType)while(n=i[r++])t.removeAttribute(n)}}),ye={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||k.find.attr;xe[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=xe[a],xe[a]=i,i=null!=n(t,e,r)?a:null,xe[a]=o),i}}));var Ae=/^(?:input|select|textarea|button)$/i,we=/^(?:a|area)$/i;function Se(t){var e=t.match(V)||[];return e.join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function ke(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(V)||[]}k.fn.extend({prop:function(t,e){return J(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[k.propFix[t]||t]}))}}),k.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,i=k.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):Ae.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,l=0;if(m(t))return this.each((function(e){k(this).addClass(t.call(this,e,Ce(this)))}));if(e=ke(t),e.length)while(n=this[l++])if(i=Ce(n),r=1===n.nodeType&&" "+Se(i)+" ",r){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=Se(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,l=0;if(m(t))return this.each((function(e){k(this).removeClass(t.call(this,e,Ce(this)))}));if(!arguments.length)return this.attr("class","");if(e=ke(t),e.length)while(n=this[l++])if(i=Ce(n),r=1===n.nodeType&&" "+Se(i)+" ",r){a=0;while(o=e[a++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");s=Se(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"===typeof e&&r?e?this.addClass(t):this.removeClass(t):m(t)?this.each((function(n){k(this).toggleClass(t.call(this,n,Ce(this),e),e)})):this.each((function(){var e,i,o,a;if(r){i=0,o=k(this),a=ke(t);while(e=a[i++])o.hasClass(e)?o.removeClass(e):o.addClass(e)}else void 0!==t&&"boolean"!==n||(e=Ce(this),e&&et.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":et.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;e=" "+t+" ";while(n=this[r++])if(1===n.nodeType&&(" "+Se(Ce(n))+" ").indexOf(e)>-1)return!0;return!1}});var Oe=/\r/g;k.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=m(t),this.each((function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,k(this).val()):t,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(t){return null==t?"":t+""}))),e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Oe,""):null==n?"":n)):void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:Se(k.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},b.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),b.focusin="onfocusin"in n;var Ie=/^(?:focusinfocus|focusoutblur)$/,Te=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,r,i){var o,a,s,l,c,u,f,d,h=[r||x],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||x,3!==r.nodeType&&8!==r.nodeType&&!Ie.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,t=t[k.expando]?t:new k.Event(g,"object"===typeof t&&t),t.isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:k.makeArray(e,[t]),f=k.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!y(r)){for(l=f.delegateType||g,Ie.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||x)&&h.push(s.defaultView||s.parentWindow||n)}o=0;while((a=h[o++])&&!t.isPropagationStopped())d=a,t.type=o>1?l:f.bindType||g,u=(et.get(a,"events")||Object.create(null))[t.type]&&et.get(a,"handle"),u&&u.apply(a,e),u=c&&a[c],u&&u.apply&&$(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!$(r)||c&&m(r[g])&&!y(r)&&(s=r[c],s&&(r[c]=null),k.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Te),r[g](),t.isPropagationStopped()&&d.removeEventListener(g,Te),k.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(t,e,n){var r=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(r,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each((function(){k.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}}),b.focusin||k.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){k.event.simulate(e,t.target,k.event.fix(t))};k.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e);i||r.addEventListener(t,n,!0),et.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e)-1;i?et.access(r,e,i):(r.removeEventListener(t,n,!0),et.remove(r,e))}}}));var Ee=n.location,De={guid:Date.now()},Le=/\?/;k.parseXML=function(t){var e,r;if(!t||"string"!==typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(i){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||k.error("Invalid XML: "+(r?k.map(r.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Ne=/\[\]$/,Ge=/\r?\n/g,je=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;function Me(t,e,n,r){var i;if(Array.isArray(e))k.each(e,(function(e,i){n||Ne.test(t)?r(t,i):Me(t+"["+("object"===typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==S(e))r(t,e);else for(i in e)Me(t+"["+i+"]",e[i],n,r)}k.param=function(t,e){var n,r=[],i=function(t,e){var n=m(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,(function(){i(this.name,this.value)}));else for(n in t)Me(n,t[n],e,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Re.test(this.nodeName)&&!je.test(t)&&(this.checked||!mt.test(t))})).map((function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(t){return{name:e.name,value:t.replace(Ge,"\r\n")}})):{name:e.name,value:n.replace(Ge,"\r\n")}})).get()}});var Pe=/%20/g,Be=/#.*$/,ze=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,Qe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fe=/^(?:GET|HEAD)$/,We=/^\/\//,qe={},Xe={},He="*/".concat("*"),Ze=x.createElement("a");function Je(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(V)||[];if(m(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ue(t,e,n,r){var i={},o=t===Xe;function a(s){var l;return i[s]=!0,k.each(t[s]||[],(function(t,s){var c=s(e,n,r);return"string"!==typeof c||o||i[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ye(t,e){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&k.extend(!0,t,r),t}function Ke(t,e,n){var r,i,o,a,s=t.contents,l=t.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function _e(t,e,n,r){var i,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];o=u.shift();while(o)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift(),o)if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=c[l+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]],a)){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}Ze.href=Ee.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:Qe.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":He,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,k.ajaxSettings),e):Ye(k.ajaxSettings,t)},ajaxPrefilter:Je(qe),ajaxTransport:Je(Xe),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,l,c,u,f,d,h=k.ajaxSetup({},e),p=h.context||h,g=h.context&&(p.nodeType||p.jquery)?k(p):k.event,v=k.Deferred(),b=k.Callbacks("once memory"),m=h.statusCode||{},y={},A={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a){a={};while(e=Ve.exec(o))a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2])}e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=A[t.toLowerCase()]=A[t.toLowerCase()]||t,y[t]=e),this},overrideMimeType:function(t){return null==c&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||w;return r&&r.abort(e),C(0,e),this}};if(v.promise(S),h.url=((t||h.url||Ee.href)+"").replace(We,Ee.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(V)||[""],null==h.crossDomain){l=x.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ze.protocol+"//"+Ze.host!==l.protocol+"//"+l.host}catch(O){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=k.param(h.data,h.traditional)),Ue(qe,h,e,S),c)return S;for(f in u=k.event&&h.global,u&&0===k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Fe.test(h.type),i=h.url.replace(Be,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pe,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"===typeof h.data)&&(i+=(Le.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(ze,"$1"),d=(Le.test(i)?"&":"?")+"_="+De.guid+++d),h.url=i+d),h.ifModified&&(k.lastModified[i]&&S.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&S.setRequestHeader("If-None-Match",k.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+He+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,S,h)||c))return S.abort();if(w="abort",b.add(h.complete),S.done(h.success),S.fail(h.error),r=Ue(Xe,h,e,S),r){if(S.readyState=1,u&&g.trigger("ajaxSend",[S,h]),c)return S;h.async&&h.timeout>0&&(s=n.setTimeout((function(){S.abort("timeout")}),h.timeout));try{c=!1,r.send(y,C)}catch(O){if(c)throw O;C(-1,O)}}else C(-1,"No Transport");function C(t,e,a,l){var f,d,y,x,A,w=e;c||(c=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(x=Ke(h,S,a)),!f&&k.inArray("script",h.dataTypes)>-1&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=_e(h,x,S,f),f?(h.ifModified&&(A=S.getResponseHeader("Last-Modified"),A&&(k.lastModified[i]=A),A=S.getResponseHeader("etag"),A&&(k.etag[i]=A)),204===t||"HEAD"===h.type?w="nocontent":304===t?w="notmodified":(w=x.state,d=x.data,y=x.error,f=!y)):(y=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",f?v.resolveWith(p,[d,w,S]):v.rejectWith(p,[S,w,y]),S.statusCode(m),m=void 0,u&&g.trigger(f?"ajaxSuccess":"ajaxError",[S,h,f?d:y]),b.fireWith(p,[S,w]),u&&(g.trigger("ajaxComplete",[S,h]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],(function(t,e){k[e]=function(t,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:t,type:e,dataType:i,data:n,success:r},k.isPlainObject(t)&&t))}})),k.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),k._evalUrl=function(t,e,n){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,n)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){var t=this;while(t.firstElementChild)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return m(t)?this.each((function(e){k(this).wrapInner(t.call(this,e))})):this.each((function(){var e=k(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(n){k(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var $e={0:200,1223:204},tn=k.ajaxSettings.xhr();b.cors=!!tn&&"withCredentials"in tn,b.ajax=tn=!!tn,k.ajaxTransport((function(t){var e,r;if(b.cors||tn&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o($e[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}})),k.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),k.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 k.globalEval(t),t}}}),k.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),k.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=k("