From d01802c314fa084fd672d70b3bf8186e7cac655a Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 26 Oct 2017 16:20:39 -0400 Subject: [PATCH] Don't mangle the i18n plugin and localization -- require w/ these plugins is a fickle beast. --- client/.babelrc | 6 +++++- static/maps/i18n.js.map | 2 +- static/maps/utils/localization.js.map | 2 +- static/scripts/bundled/libs.bundled.js | 2 +- static/scripts/bundled/libs.bundled.js.map | 2 +- static/scripts/i18n.js | 2 +- static/scripts/utils/localization.js | 2 +- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/client/.babelrc b/client/.babelrc index a16652bef80..8f389b6a366 100644 --- a/client/.babelrc +++ b/client/.babelrc @@ -1,4 +1,8 @@ { "presets": ["env"], - "moduleIds": true + "moduleIds": true, + "ignore": [ + "i18n.js", + "utils/localization.js" + ] } diff --git a/static/maps/i18n.js.map b/static/maps/i18n.js.map index 2ec1e73bdbd..94a22ccc8c3 100644 --- a/static/maps/i18n.js.map +++ b/static/maps/i18n.js.map @@ -1 +1 @@ -{"version":3,"sources":["i18n.js"],"names":["addPart","locale","master","needed","toLoad","prefix","suffix","push","addIfExists","req","fullName","require","toUrl","mixin","target","source","force","prop","hasOwnProperty","_typeof","nlsRegExp","masterConfig","module","config","version","load","i","part","name","match","parts","split","value","current","masterName","navigator","languages","userLanguage","toLowerCase","isBuild","length","onLoad","partBundle"],"mappings":"0PAmCA,WAKI,SAAAA,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACAJ,EAAAD,KACAE,EAAAI,KAAAN,IACA,IAAAC,EAAAD,IAAA,IAAAC,EAAAD,IAUYG,EAAOG,KAAKF,EAASJ,EAAS,IAAMK,IALhD,SAAAE,EAAAC,EAAAR,EAAAG,EAAAC,EAAAC,GACA,IAAAI,EAASV,EAATC,EAAiCE,IAAjCG,EACIK,QAAIT,YAAgBO,EAAAG,MAAAF,EAAA,SAChBP,EAAAA,KAAOI,GAWV,SAAAM,EAAAC,EAAAC,EAAAC,GACJ,IAAAC,EAWG,IAAKA,KAAQF,GAELA,EAAOG,eAAeD,IACpBH,EAAOI,eAAeD,KAASD,EAGF,WAAxBG,EAAOJ,EAAOE,OAChBH,EAAOG,IAASF,EAAOE,KAT/BJ,EAAMC,OAEXD,EAAAC,EAAaC,GAAQA,EAAAE,GAAAD,IAKbF,EAAOG,GAAQF,EAAOE,GA5CtC,IAACG,EAAW,0CA+CQN,QAAAA,UAAAA,SAAOG,GACV,IAAAI,EAAAC,EAAAC,OAAAD,EAAAC,YAEJ,OACJC,QAAA,QAIDC,KAAIJ,SAAAA,EAAeC,EAAOC,EAAPA,IAQXA,EAASA,OALJtB,SACToB,EAAApB,OAAAsB,EAAAtB,QAGAwB,IAAAA,EAOIC,EAAAC,EANAJ,EAAAA,EAASA,KAATK,GAQIvB,EAASwB,EAAM,GANnB5B,EAAIsB,EAAOtB,GACPoB,EAAAA,EAAAA,GACHS,EAAA7B,EAAA8B,MAAA,KAQG3B,KANJ4B,KAAAC,EAGIhC,GAoCA,GAvCJ4B,EAAA,GAkBIK,GAlBJ7B,EAUI4B,EAAU,IAQY3B,GAJ1B4B,EAAAN,EACAtB,EAAIuB,EAAU,IACV5B,EAAAoB,EAAApB,UAEAiC,EAAAA,EAAsB5B,OACnB,oBAAA6B,UACH,QACAD,UAAAE,WACSP,UAATO,UAAA,IACSf,UAAapB,UACTkC,UAAAE,cACAhB,QASZiB,eAEJR,EAAA7B,EAAA8B,MAAA,MAGGR,EAAAgB,QAAA,CAKIZ,IAFJnB,EAAAA,KAAAA,GACAA,EAAKkB,EAAOA,OAAII,EAAhBzB,EAAmCC,GAC/BqB,EAAAA,EAAAA,EAAOG,EAAAU,OAAPd,IACAO,EAAAA,EAAAA,GAEHzB,EAAAC,EADGD,IAAAA,EAAiByB,IAAjB,IAA0B7B,EAC7BA,EAAAC,EAAAC,GAGGmC,EAAAA,EAAAA,WACHA,WAIGhC,GAAAyB,GAAA,SAAAhC,GACA,IACIyB,EADJxB,KAMIwB,IADJ3B,EAAA,OAAY0B,EAAII,EAAhB1B,EAAmCC,EAAAC,GAC/BqB,EAAAA,EAAAA,EAAOG,EAAAU,OAAPd,IACAO,EAAAA,EAAAA,GASHjC,EARGA,IACIiC,EACA/B,IAFJ,IAGIC,EAORD,EACIE,EACAA,EACAC,EAKIsB,GAOAd,EAAAA,EAAAA,WACH,IAAAa,EAAAgB,EAAAf,EAbD,IAeAD,EAAAvB,EAAAqC,OAAA,EACAC,GAAAA,GAAOT,EAAPN,GAlBJA,KAvFhB,KA6GKgB,EAAAxC,EADIyB,EAAAxB,EAAAuB,MA5GT,IAAAgB,IAHJA,EAAAjC,EAtDJJ,EAAAsB,EAAA,IAAArB,IA8JgCO,EAAMmB,EAAOU,GAIjBD,EAAOT,WAlKnC","file":"../scripts/i18n.js","sourcesContent":["/**\n * @license i18n 2.0.6 Copyright jQuery Foundation and other contributors.\n * Released under MIT license, http://github.com/requirejs/i18n/LICENSE\n */\n/*jslint regexp: true */\n/*global require: false, navigator: false, define: false */\n\n/**\n * This plugin handles i18n! prefixed modules. It does the following:\n *\n * 1) A regular module can have a dependency on an i18n bundle, but the regular\n * module does not want to specify what locale to load. So it just specifies\n * the top-level bundle, like 'i18n!nls/colors'.\n *\n * This plugin will load the i18n bundle at nls/colors, see that it is a root/master\n * bundle since it does not have a locale in its name. It will then try to find\n * the best match locale available in that master bundle, then request all the\n * locale pieces for that best match locale. For instance, if the locale is 'en-us',\n * then the plugin will ask for the 'en-us', 'en' and 'root' bundles to be loaded\n * (but only if they are specified on the master bundle).\n *\n * Once all the bundles for the locale pieces load, then it mixes in all those\n * locale pieces into each other, then finally sets the context.defined value\n * for the nls/colors bundle to be that mixed in locale.\n *\n * 2) A regular module specifies a specific locale to load. For instance,\n * i18n!nls/fr-fr/colors. In this case, the plugin needs to load the master bundle\n * first, at nls/colors, then figure out what the best match locale is for fr-fr,\n * since maybe only fr or just root is defined for that locale. Once that best\n * fit is found, all of its locale pieces need to have their bundles loaded.\n *\n * Once all the bundles for the locale pieces load, then it mixes in all those\n * locale pieces into each other, then finally sets the context.defined value\n * for the nls/fr-fr/colors bundle to be that mixed in locale.\n */\n(function() {\n \"use strict\";\n\n //regexp for reconstructing the master bundle name from parts of the regexp match\n //nlsRegExp.exec('foo/bar/baz/nls/en-ca/foo') gives:\n //['foo/bar/baz/nls/en-ca/foo', 'foo/bar/baz/nls/', '/', '/', 'en-ca', 'foo']\n //nlsRegExp.exec('foo/bar/baz/nls/foo') gives:\n //['foo/bar/baz/nls/foo', 'foo/bar/baz/nls/', '/', '/', 'foo', '']\n //so, if match[5] is blank, it means this is the top bundle definition.\n var nlsRegExp = /(^.*(^|\\/)nls(\\/|$))([^\\/]*)\\/?([^\\/]*)/;\n\n //Helper function to avoid repeating code. Lots of arguments in the\n //desire to stay functional and support RequireJS contexts without having\n //to know about the RequireJS contexts.\n function addPart(locale, master, needed, toLoad, prefix, suffix) {\n if (master[locale]) {\n needed.push(locale);\n if (master[locale] === true || master[locale] === 1) {\n toLoad.push(prefix + locale + \"/\" + suffix);\n }\n }\n }\n\n function addIfExists(req, locale, toLoad, prefix, suffix) {\n var fullName = prefix + locale + \"/\" + suffix;\n if (require._fileExists(req.toUrl(fullName + \".js\"))) {\n toLoad.push(fullName);\n }\n }\n\n /**\n * Simple function to mix in properties from source into target,\n * but only if target does not already have a property of the same name.\n * This is not robust in IE for transferring methods that match\n * Object.prototype names, but the uses of mixin here seem unlikely to\n * trigger a problem related to that.\n */\n function mixin(target, source, force) {\n var prop;\n for (prop in source) {\n if (\n source.hasOwnProperty(prop) &&\n (!target.hasOwnProperty(prop) || force)\n ) {\n target[prop] = source[prop];\n } else if (typeof source[prop] === \"object\") {\n if (!target[prop] && source[prop]) {\n target[prop] = {};\n }\n mixin(target[prop], source[prop], force);\n }\n }\n }\n\n define([\"module\"], function(module) {\n var masterConfig = module.config ? module.config() : {};\n\n return {\n version: \"2.0.6\",\n /**\n * Called when a dependency needs to be loaded.\n */\n load: function(name, req, onLoad, config) {\n config = config || {};\n\n if (config.locale) {\n masterConfig.locale = config.locale;\n }\n\n var masterName,\n match = nlsRegExp.exec(name),\n prefix = match[1],\n locale = match[4],\n suffix = match[5],\n parts = locale.split(\"-\"),\n toLoad = [],\n value = {},\n i,\n part,\n current = \"\";\n\n //If match[5] is blank, it means this is the top bundle definition,\n //so it does not have to be handled. Locale-specific requests\n //will have a match[4] value but no match[5]\n if (match[5]) {\n //locale-specific bundle\n prefix = match[1];\n masterName = prefix + suffix;\n } else {\n //Top-level bundle.\n masterName = name;\n suffix = match[4];\n locale = masterConfig.locale;\n if (!locale) {\n locale = masterConfig.locale =\n typeof navigator === \"undefined\"\n ? \"root\"\n : ((navigator.languages &&\n navigator.languages[0]) ||\n navigator.language ||\n navigator.userLanguage ||\n \"root\"\n ).toLowerCase();\n }\n parts = locale.split(\"-\");\n }\n\n if (config.isBuild) {\n //Check for existence of all locale possible files and\n //require them if exist.\n toLoad.push(masterName);\n addIfExists(req, \"root\", toLoad, prefix, suffix);\n for (i = 0; i < parts.length; i++) {\n part = parts[i];\n current += (current ? \"-\" : \"\") + part;\n addIfExists(req, current, toLoad, prefix, suffix);\n }\n\n req(toLoad, function() {\n onLoad();\n });\n } else {\n //First, fetch the master bundle, it knows what locales are available.\n req([masterName], function(master) {\n //Figure out the best fit\n var needed = [],\n part;\n\n //Always allow for root, then do the rest of the locale parts.\n addPart(\"root\", master, needed, toLoad, prefix, suffix);\n for (i = 0; i < parts.length; i++) {\n part = parts[i];\n current += (current ? \"-\" : \"\") + part;\n addPart(\n current,\n master,\n needed,\n toLoad,\n prefix,\n suffix\n );\n }\n\n //Load all the parts missing.\n req(toLoad, function() {\n var i, partBundle, part;\n for (\n i = needed.length - 1;\n i > -1 && needed[i];\n i--\n ) {\n part = needed[i];\n partBundle = master[part];\n if (partBundle === true || partBundle === 1) {\n partBundle = req(\n prefix + part + \"/\" + suffix\n );\n }\n mixin(value, partBundle);\n }\n\n //All done, notify the loader.\n onLoad(value);\n });\n });\n }\n }\n };\n });\n})();\n"]} \ No newline at end of file +{"version":3,"sources":["i18n.js"],"names":["addPart","locale","master","needed","toLoad","prefix","suffix","push","addIfExists","req","fullName","require","_fileExists","toUrl","mixin","target","source","force","prop","hasOwnProperty","nlsRegExp","define","module","masterConfig","config","version","load","name","onLoad","masterName","i","part","match","exec","parts","split","value","current","navigator","languages","language","userLanguage","toLowerCase","isBuild","length","partBundle"],"mappings":"CAmCA,WACI,aAaA,SAASA,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,GACjDJ,EAAOD,KACPE,EAAOI,KAAKN,IACW,IAAnBC,EAAOD,IAAuC,IAAnBC,EAAOD,IAClCG,EAAOG,KAAKF,EAASJ,EAAS,IAAMK,IAKhD,SAASE,EAAYC,EAAKR,EAAQG,EAAQC,EAAQC,GAC9C,IAAII,EAAWL,EAASJ,EAAS,IAAMK,EACnCK,QAAQC,YAAYH,EAAII,MAAMH,EAAW,SACzCN,EAAOG,KAAKG,GAWpB,SAASI,EAAMC,EAAQC,EAAQC,GAC3B,IAAIC,EACJ,IAAKA,KAAQF,GAELA,EAAOG,eAAeD,IACpBH,EAAOI,eAAeD,KAASD,EAGF,iBAAjBD,EAAOE,MAChBH,EAAOG,IAASF,EAAOE,KACxBH,EAAOG,OAEXJ,EAAMC,EAAOG,GAAOF,EAAOE,GAAOD,IALlCF,EAAOG,GAAQF,EAAOE,GAnClC,IAAIE,EAAY,0CA6ChBC,QAAQ,UAAW,SAASC,GACxB,IAAIC,EAAeD,EAAOE,OAASF,EAAOE,YAE1C,OACIC,QAAS,QAITC,KAAM,SAASC,EAAMlB,EAAKmB,EAAQJ,IAC9BA,EAASA,OAEEvB,SACPsB,EAAatB,OAASuB,EAAOvB,QAGjC,IAAI4B,EAQAC,EACAC,EARAC,EAAQZ,EAAUa,KAAKN,GACvBtB,EAAS2B,EAAM,GACf/B,EAAS+B,EAAM,GACf1B,EAAS0B,EAAM,GACfE,EAAQjC,EAAOkC,MAAM,KACrB/B,KACAgC,KAGAC,EAAU,GA4Bd,GAvBIL,EAAM,GAGNH,GADAxB,EAAS2B,EAAM,IACO1B,GAGtBuB,EAAaF,EACbrB,EAAS0B,EAAM,IACf/B,EAASsB,EAAatB,UAElBA,EAASsB,EAAatB,OACG,oBAAdqC,UACD,QACEA,UAAUC,WACRD,UAAUC,UAAU,IACpBD,UAAUE,UACVF,UAAUG,cACV,QACFC,eAEhBR,EAAQjC,EAAOkC,MAAM,MAGrBX,EAAOmB,QAAS,CAKhB,IAFAvC,EAAOG,KAAKsB,GACZrB,EAAYC,EAAK,OAAQL,EAAQC,EAAQC,GACpCwB,EAAI,EAAGA,EAAII,EAAMU,OAAQd,IAC1BC,EAAOG,EAAMJ,GAEbtB,EAAYC,EADZ4B,IAAYA,EAAU,IAAM,IAAMN,EACR3B,EAAQC,EAAQC,GAG9CG,EAAIL,EAAQ,WACRwB,WAIJnB,GAAKoB,GAAa,SAAS3B,GAEvB,IACI6B,EADA5B,KAKJ,IADAH,EAAQ,OAAQE,EAAQC,EAAQC,EAAQC,EAAQC,GAC3CwB,EAAI,EAAGA,EAAII,EAAMU,OAAQd,IAC1BC,EAAOG,EAAMJ,GAEb9B,EADAqC,IAAYA,EAAU,IAAM,IAAMN,EAG9B7B,EACAC,EACAC,EACAC,EACAC,GAKRG,EAAIL,EAAQ,WACR,IAAI0B,EAAGe,EAAYd,EACnB,IACID,EAAI3B,EAAOyC,OAAS,EACpBd,GAAK,GAAK3B,EAAO2B,GACjBA,KAImB,KADnBe,EAAa3C,EADb6B,EAAO5B,EAAO2B,MAE4B,IAAfe,IACvBA,EAAapC,EACTJ,EAAS0B,EAAO,IAAMzB,IAG9BQ,EAAMsB,EAAOS,GAIjBjB,EAAOQ,WAlKnC","file":"../scripts/i18n.js","sourcesContent":["/**\n * @license i18n 2.0.6 Copyright jQuery Foundation and other contributors.\n * Released under MIT license, http://github.com/requirejs/i18n/LICENSE\n */\n/*jslint regexp: true */\n/*global require: false, navigator: false, define: false */\n\n/**\n * This plugin handles i18n! prefixed modules. It does the following:\n *\n * 1) A regular module can have a dependency on an i18n bundle, but the regular\n * module does not want to specify what locale to load. So it just specifies\n * the top-level bundle, like 'i18n!nls/colors'.\n *\n * This plugin will load the i18n bundle at nls/colors, see that it is a root/master\n * bundle since it does not have a locale in its name. It will then try to find\n * the best match locale available in that master bundle, then request all the\n * locale pieces for that best match locale. For instance, if the locale is 'en-us',\n * then the plugin will ask for the 'en-us', 'en' and 'root' bundles to be loaded\n * (but only if they are specified on the master bundle).\n *\n * Once all the bundles for the locale pieces load, then it mixes in all those\n * locale pieces into each other, then finally sets the context.defined value\n * for the nls/colors bundle to be that mixed in locale.\n *\n * 2) A regular module specifies a specific locale to load. For instance,\n * i18n!nls/fr-fr/colors. In this case, the plugin needs to load the master bundle\n * first, at nls/colors, then figure out what the best match locale is for fr-fr,\n * since maybe only fr or just root is defined for that locale. Once that best\n * fit is found, all of its locale pieces need to have their bundles loaded.\n *\n * Once all the bundles for the locale pieces load, then it mixes in all those\n * locale pieces into each other, then finally sets the context.defined value\n * for the nls/fr-fr/colors bundle to be that mixed in locale.\n */\n(function() {\n \"use strict\";\n\n //regexp for reconstructing the master bundle name from parts of the regexp match\n //nlsRegExp.exec('foo/bar/baz/nls/en-ca/foo') gives:\n //['foo/bar/baz/nls/en-ca/foo', 'foo/bar/baz/nls/', '/', '/', 'en-ca', 'foo']\n //nlsRegExp.exec('foo/bar/baz/nls/foo') gives:\n //['foo/bar/baz/nls/foo', 'foo/bar/baz/nls/', '/', '/', 'foo', '']\n //so, if match[5] is blank, it means this is the top bundle definition.\n var nlsRegExp = /(^.*(^|\\/)nls(\\/|$))([^\\/]*)\\/?([^\\/]*)/;\n\n //Helper function to avoid repeating code. Lots of arguments in the\n //desire to stay functional and support RequireJS contexts without having\n //to know about the RequireJS contexts.\n function addPart(locale, master, needed, toLoad, prefix, suffix) {\n if (master[locale]) {\n needed.push(locale);\n if (master[locale] === true || master[locale] === 1) {\n toLoad.push(prefix + locale + \"/\" + suffix);\n }\n }\n }\n\n function addIfExists(req, locale, toLoad, prefix, suffix) {\n var fullName = prefix + locale + \"/\" + suffix;\n if (require._fileExists(req.toUrl(fullName + \".js\"))) {\n toLoad.push(fullName);\n }\n }\n\n /**\n * Simple function to mix in properties from source into target,\n * but only if target does not already have a property of the same name.\n * This is not robust in IE for transferring methods that match\n * Object.prototype names, but the uses of mixin here seem unlikely to\n * trigger a problem related to that.\n */\n function mixin(target, source, force) {\n var prop;\n for (prop in source) {\n if (\n source.hasOwnProperty(prop) &&\n (!target.hasOwnProperty(prop) || force)\n ) {\n target[prop] = source[prop];\n } else if (typeof source[prop] === \"object\") {\n if (!target[prop] && source[prop]) {\n target[prop] = {};\n }\n mixin(target[prop], source[prop], force);\n }\n }\n }\n\n define([\"module\"], function(module) {\n var masterConfig = module.config ? module.config() : {};\n\n return {\n version: \"2.0.6\",\n /**\n * Called when a dependency needs to be loaded.\n */\n load: function(name, req, onLoad, config) {\n config = config || {};\n\n if (config.locale) {\n masterConfig.locale = config.locale;\n }\n\n var masterName,\n match = nlsRegExp.exec(name),\n prefix = match[1],\n locale = match[4],\n suffix = match[5],\n parts = locale.split(\"-\"),\n toLoad = [],\n value = {},\n i,\n part,\n current = \"\";\n\n //If match[5] is blank, it means this is the top bundle definition,\n //so it does not have to be handled. Locale-specific requests\n //will have a match[4] value but no match[5]\n if (match[5]) {\n //locale-specific bundle\n prefix = match[1];\n masterName = prefix + suffix;\n } else {\n //Top-level bundle.\n masterName = name;\n suffix = match[4];\n locale = masterConfig.locale;\n if (!locale) {\n locale = masterConfig.locale =\n typeof navigator === \"undefined\"\n ? \"root\"\n : ((navigator.languages &&\n navigator.languages[0]) ||\n navigator.language ||\n navigator.userLanguage ||\n \"root\"\n ).toLowerCase();\n }\n parts = locale.split(\"-\");\n }\n\n if (config.isBuild) {\n //Check for existence of all locale possible files and\n //require them if exist.\n toLoad.push(masterName);\n addIfExists(req, \"root\", toLoad, prefix, suffix);\n for (i = 0; i < parts.length; i++) {\n part = parts[i];\n current += (current ? \"-\" : \"\") + part;\n addIfExists(req, current, toLoad, prefix, suffix);\n }\n\n req(toLoad, function() {\n onLoad();\n });\n } else {\n //First, fetch the master bundle, it knows what locales are available.\n req([masterName], function(master) {\n //Figure out the best fit\n var needed = [],\n part;\n\n //Always allow for root, then do the rest of the locale parts.\n addPart(\"root\", master, needed, toLoad, prefix, suffix);\n for (i = 0; i < parts.length; i++) {\n part = parts[i];\n current += (current ? \"-\" : \"\") + part;\n addPart(\n current,\n master,\n needed,\n toLoad,\n prefix,\n suffix\n );\n }\n\n //Load all the parts missing.\n req(toLoad, function() {\n var i, partBundle, part;\n for (\n i = needed.length - 1;\n i > -1 && needed[i];\n i--\n ) {\n part = needed[i];\n partBundle = master[part];\n if (partBundle === true || partBundle === 1) {\n partBundle = req(\n prefix + part + \"/\" + suffix\n );\n }\n mixin(value, partBundle);\n }\n\n //All done, notify the loader.\n onLoad(value);\n });\n });\n }\n }\n };\n });\n})();\n"]} \ No newline at end of file diff --git a/static/maps/utils/localization.js.map b/static/maps/utils/localization.js.map index 7ab68b621b0..38e1bd04f4f 100644 --- a/static/maps/utils/localization.js.map +++ b/static/maps/utils/localization.js.map @@ -1 +1 @@ -{"version":3,"sources":["utils/localization.js"],"names":["define","localeStrings","hasOwnProperty","locale","language","toLowerCase","split","__root","localize","strToLocalize","cacheNonLocalized"],"mappings":"uDAAAA,QAAQ,mBAAoB,SAASC,GAMjC,GAAIA,EAAcC,eAAe,UAAW,CAD5C,IAAAC,EACkBD,oBAAdD,UACA,UACIE,UACAC,UAMJH,UACIA,cAHU,UAOdI,cACAJ,EACHA,EAAA,KAAAE,IACDF,EAAA,KAAAE,EAAAG,MAAA,KAAA,KALQL,EAAcM,OAmBlB,IAAAC,EAAA,SAAAC,GArCR,OAAAR,EAAAQ,IAAAA,GAkDI,OAHAD,EAASE,mBAAoB,EAGtBF","file":"../../scripts/utils/localization.js","sourcesContent":["define([\"i18n!nls/locale\"], function(localeStrings) {\n // =============================================================================\n /** Simple string replacement localization. Language data from galaxy/scripts/nls */\n\n // support both requirejs and webpack from the same file\n // if loaded via webpack, it will be a different format than via requirejs - convert\n if (localeStrings.hasOwnProperty(\"__root\")) {\n //console.debug( 'amdi18n+webpack localization for ' + locale + ' loaded' );\n var locale =\n typeof navigator === \"undefined\"\n ? \"__root\"\n : (navigator.language ||\n navigator.userLanguage ||\n \"__root\"\n ).toLowerCase();\n localeStrings =\n localeStrings[\"__\" + locale] ||\n localeStrings[\"__\" + locale.split(\"-\")[0]] ||\n localeStrings.__root;\n\n // } else {\n // console.debug( 'i18n+requirejs localization for ' + locale + ' loaded' );\n }\n // TODO: when this is no longer necessary remove this, i18n.js, and the resolveModule in config\n\n // -----------------------------------------------------------------------------\n /** Attempt to get a localized string for strToLocalize. If not found, return\n * the original strToLocalize.\n * @param {String} strToLocalize the string to localize\n * @returns either the localized string if found or strToLocalize if not found\n */\n var localize = function(strToLocalize) {\n // console.debug( 'amdi18n.localize:', strToLocalize, '->', localeStrings[ strToLocalize ] || strToLocalize );\n\n // //TODO: conditional compile on DEBUG flag\n // // cache strings that need to be localized but haven't been?\n // if( localize.cacheNonLocalized && !localeStrings.hasOwnProperty( strToLocalize ) ){\n // // console.debug( 'localization NOT found:', strToLocalize );\n // // add nonCached as hash directly to this function\n // localize.nonLocalized = localize.nonLocalized || {};\n // localize.nonLocalized[ locale ] = localize.nonLocalized[ locale ] || {};\n // localize.nonLocalized[ locale ][ strToLocalize ] = false;\n // }\n\n // return the localized version from the closure if it's there, the strToLocalize if not\n return localeStrings[strToLocalize] || strToLocalize;\n };\n localize.cacheNonLocalized = false;\n\n // =============================================================================\n return localize;\n});\n"]} \ No newline at end of file +{"version":3,"sources":["utils/localization.js"],"names":["define","localeStrings","hasOwnProperty","locale","navigator","language","userLanguage","toLowerCase","split","__root","localize","strToLocalize","cacheNonLocalized"],"mappings":"AAAAA,QAAQ,mBAAoB,SAASC,GAMjC,GAAIA,EAAcC,eAAe,UAAW,CAExC,IAAIC,EACqB,oBAAdC,UACD,UACCA,UAAUC,UACPD,UAAUE,cACV,UACFC,cACZN,EACIA,EAAc,KAAOE,IACrBF,EAAc,KAAOE,EAAOK,MAAM,KAAK,KACvCP,EAAcQ,OAatB,IAAIC,EAAW,SAASC,GAcpB,OAAOV,EAAcU,IAAkBA,GAK3C,OAHAD,EAASE,mBAAoB,EAGtBF","file":"../../scripts/utils/localization.js","sourcesContent":["define([\"i18n!nls/locale\"], function(localeStrings) {\n // =============================================================================\n /** Simple string replacement localization. Language data from galaxy/scripts/nls */\n\n // support both requirejs and webpack from the same file\n // if loaded via webpack, it will be a different format than via requirejs - convert\n if (localeStrings.hasOwnProperty(\"__root\")) {\n //console.debug( 'amdi18n+webpack localization for ' + locale + ' loaded' );\n var locale =\n typeof navigator === \"undefined\"\n ? \"__root\"\n : (navigator.language ||\n navigator.userLanguage ||\n \"__root\"\n ).toLowerCase();\n localeStrings =\n localeStrings[\"__\" + locale] ||\n localeStrings[\"__\" + locale.split(\"-\")[0]] ||\n localeStrings.__root;\n\n // } else {\n // console.debug( 'i18n+requirejs localization for ' + locale + ' loaded' );\n }\n // TODO: when this is no longer necessary remove this, i18n.js, and the resolveModule in config\n\n // -----------------------------------------------------------------------------\n /** Attempt to get a localized string for strToLocalize. If not found, return\n * the original strToLocalize.\n * @param {String} strToLocalize the string to localize\n * @returns either the localized string if found or strToLocalize if not found\n */\n var localize = function(strToLocalize) {\n // console.debug( 'amdi18n.localize:', strToLocalize, '->', localeStrings[ strToLocalize ] || strToLocalize );\n\n // //TODO: conditional compile on DEBUG flag\n // // cache strings that need to be localized but haven't been?\n // if( localize.cacheNonLocalized && !localeStrings.hasOwnProperty( strToLocalize ) ){\n // // console.debug( 'localization NOT found:', strToLocalize );\n // // add nonCached as hash directly to this function\n // localize.nonLocalized = localize.nonLocalized || {};\n // localize.nonLocalized[ locale ] = localize.nonLocalized[ locale ] || {};\n // localize.nonLocalized[ locale ][ strToLocalize ] = false;\n // }\n\n // return the localized version from the closure if it's there, the strToLocalize if not\n return localeStrings[strToLocalize] || strToLocalize;\n };\n localize.cacheNonLocalized = false;\n\n // =============================================================================\n return localize;\n});\n"]} \ No newline at end of file diff --git a/static/scripts/bundled/libs.bundled.js b/static/scripts/bundled/libs.bundled.js index b4d54b807be..791733f60ef 100644 --- a/static/scripts/bundled/libs.bundled.js +++ b/static/scripts/bundled/libs.bundled.js @@ -21,7 +21,7 @@ * * Date: 2015-10-17 */ -function(t){function e(t,e,i,n){var a,s,o,r,h,u,d,f,p=e&&e.ownerDocument,g=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return i;if(!n&&((e?e.ownerDocument||e:L)!==O&&M(e),e=e||O,$)){if(11!==g&&(u=gt.exec(t)))if(a=u[1]){if(9===g){if(!(o=e.getElementById(a)))return i;if(o.id===a)return i.push(o),i}else if(p&&(o=p.getElementById(a))&&I(e,o)&&o.id===a)return i.push(o),i}else{if(u[2])return K.apply(i,e.getElementsByTagName(t)),i;if((a=u[3])&&b.getElementsByClassName&&e.getElementsByClassName)return K.apply(i,e.getElementsByClassName(a)),i}if(b.qsa&&!V[t+" "]&&(!D||!D.test(t))){if(1!==g)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((r=e.getAttribute("id"))?r=r.replace(vt,"\\$&"):e.setAttribute("id",r=N),d=k(t),s=d.length,h=ct.test(r)?"#"+r:"[id='"+r+"']";s--;)d[s]=h+" "+c(d[s]);f=d.join(","),p=mt.test(t)&&l(e.parentNode)||e}if(f)try{return K.apply(i,p.querySelectorAll(f)),i}catch(t){}finally{r===N&&e.removeAttribute("id")}}}return S(t.replace(st,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>y.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[N]=!0,t}function a(t){var e=O.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var i=t.split("|"),n=i.length;n--;)y.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function r(t){return n(function(e){return e=+e,n(function(i,n){for(var a,s=t([],i.length,e),o=s.length;o--;)i[a=s[o]]&&(i[a]=!(n[a]=i[a]))})})}function l(t){return t&&void 0!==t.getElementsByTagName&&t}function h(){}function c(t){for(var e=0,i=t.length,n="";e1?function(e,i,n){for(var a=t.length;a--;)if(!t[a](e,i,n))return!1;return!0}:t[0]}function f(t,i,n){for(var a=0,s=i.length;a-1&&(n[h]=!(o[h]=u))}}else b=p(b===o?b.splice(m,b.length):b),s?s(null,o,b,l):K.apply(o,b)})}function m(t){for(var e,i,n,a=t.length,s=y.relative[t[0].type],o=s||y.relative[" "],r=s?1:0,l=u(function(t){return t===e},o,!0),h=u(function(t){return Q(e,t)>-1},o,!0),f=[function(t,i,n){var a=!s&&(n||i!==T)||((e=i).nodeType?l(t,i,n):h(t,i,n));return e=null,a}];r1&&d(f),r>1&&c(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(st,"$1"),i,r0,s=t.length>0,o=function(n,o,r,l,h){var c,u,d,f=0,g="0",m=n&&[],v=[],_=T,b=n||s&&y.find.TAG("*",h),w=z+=null==_?1:Math.random()||.1,x=b.length;for(h&&(T=o===O||o||h);g!==x&&null!=(c=b[g]);g++){if(s&&c){for(u=0,o||c.ownerDocument===O||(M(c),r=!$);d=t[u++];)if(d(c,o||O,r)){l.push(c);break}h&&(z=w)}a&&((c=!d&&c)&&f--,n&&m.push(c))}if(f+=g,a&&g!==f){for(u=0;d=i[u++];)d(m,v,o,r);if(n){if(f>0)for(;g--;)m[g]||v[g]||(v[g]=Y.call(l));v=p(v)}K.apply(l,v),h&&!n&&v.length>0&&f+i.length>1&&e.uniqueSort(l)}return h&&(z=w,T=_),m};return a?n(o):o}var _,b,y,w,x,k,C,S,T,E,A,M,O,R,$,D,P,j,I,N="sizzle"+1*new Date,L=t.document,z=0,H=0,q=i(),F=i(),V=i(),B=function(t,e){return t===e&&(A=!0),0},G=1<<31,W={}.hasOwnProperty,U=[],Y=U.pop,X=U.push,K=U.push,J=U.slice,Q=function(t,e){for(var i=0,n=t.length;i+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ht=new RegExp(nt),ct=new RegExp("^"+et+"$"),ut={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+nt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,pt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=/'|\\/g,_t=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),bt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},yt=function(){M()};try{K.apply(U=J.call(L.childNodes),L.childNodes),U[L.childNodes.length].nodeType}catch(t){K={apply:U.length?function(t,e){X.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}b=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},M=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:L;return n!==O&&9===n.nodeType&&n.documentElement?(O=n,R=O.documentElement,$=!x(O),(i=O.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",yt,!1):i.attachEvent&&i.attachEvent("onunload",yt)),b.attributes=a(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=a(function(t){return t.appendChild(O.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=pt.test(O.getElementsByClassName),b.getById=a(function(t){return R.appendChild(t).id=N,!O.getElementsByName||!O.getElementsByName(N).length}),b.getById?(y.find.ID=function(t,e){if(void 0!==e.getElementById&&$){var i=e.getElementById(t);return i?[i]:[]}},y.filter.ID=function(t){var e=t.replace(_t,bt);return function(t){return t.getAttribute("id")===e}}):(delete y.find.ID,y.filter.ID=function(t){var e=t.replace(_t,bt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),y.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],a=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[a++];)1===i.nodeType&&n.push(i);return n}return s},y.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&$)return e.getElementsByClassName(t)},P=[],D=[],(b.qsa=pt.test(O.querySelectorAll))&&(a(function(t){R.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||D.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+N+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+N+"+*").length||D.push(".#.+[+~]")}),a(function(t){var e=O.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+tt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(b.matchesSelector=pt.test(j=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&a(function(t){b.disconnectedMatch=j.call(t,"div"),j.call(t,"[s!='']:x"),P.push("!=",nt)}),D=D.length&&new RegExp(D.join("|")),P=P.length&&new RegExp(P.join("|")),e=pt.test(R.compareDocumentPosition),I=e||pt.test(R.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return A=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!b.sortDetached&&e.compareDocumentPosition(t)===i?t===O||t.ownerDocument===L&&I(L,t)?-1:e===O||e.ownerDocument===L&&I(L,e)?1:E?Q(E,t)-Q(E,e):0:4&i?-1:1)}:function(t,e){if(t===e)return A=!0,0;var i,n=0,a=t.parentNode,s=e.parentNode,r=[t],l=[e];if(!a||!s)return t===O?-1:e===O?1:a?-1:s?1:E?Q(E,t)-Q(E,e):0;if(a===s)return o(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;r[n]===l[n];)n++;return n?o(r[n],l[n]):r[n]===L?-1:l[n]===L?1:0},O):O},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==O&&M(t),i=i.replace(lt,"='$1']"),b.matchesSelector&&$&&!V[i+" "]&&(!P||!P.test(i))&&(!D||!D.test(i)))try{var n=j.call(t,i);if(n||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&M(t),I(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&M(t);var i=y.attrHandle[e.toLowerCase()],n=i&&W.call(y.attrHandle,e.toLowerCase())?i(t,e,!$):void 0;return void 0!==n?n:b.attributes||!$?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,a=0;if(A=!b.detectDuplicates,E=!b.sortStable&&t.slice(0),t.sort(B),A){for(;e=t[a++];)e===t[a]&&(n=i.push(a));for(;n--;)t.splice(i[n],1)}return E=null,t},w=e.getText=function(t){var e,i="",n=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=w(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[n++];)i+=w(e);return i},y=e.selectors={cacheLength:50,createPseudo:n,match:ut,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(_t,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,bt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ut.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=k(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_t,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(a){var s=e.attr(a,t);return null==s?"!="===i:!i||(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"$="===i?n&&s.slice(-n.length)===n:"~="===i?(" "+s.replace(at," ")+" ").indexOf(n)>-1:"|="===i&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,a){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),r="of-type"===e;return 1===n&&0===a?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,d,f,p,g=s!==o?"nextSibling":"previousSibling",m=e.parentNode,v=r&&e.nodeName.toLowerCase(),_=!l&&!r,b=!1;if(m){if(s){for(;g;){for(d=e;d=d[g];)if(r?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&_){for(d=m,u=d[N]||(d[N]={}),c=u[d.uniqueID]||(u[d.uniqueID]={}),h=c[t]||[],f=h[0]===z&&h[1],b=f&&h[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(b=f=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){c[t]=[z,f,b];break}}else if(_&&(d=e,u=d[N]||(d[N]={}),c=u[d.uniqueID]||(u[d.uniqueID]={}),h=c[t]||[],f=h[0]===z&&h[1],b=f),!1===b)for(;(d=++f&&d&&d[g]||(b=f=0)||p.pop())&&((r?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(_&&(u=d[N]||(d[N]={}),c=u[d.uniqueID]||(u[d.uniqueID]={}),c[t]=[z,b]),d!==e)););return(b-=a)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,i){var a,s=y.pseudos[t]||y.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[N]?s(i):s.length>1?(a=[t,t,"",i],y.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,a=s(t,i),o=a.length;o--;)n=Q(t,a[o]),t[n]=!(e[n]=a[o])}):function(t){return s(t,0,a)}):s}},pseudos:{not:n(function(t){var e=[],i=[],a=C(t.replace(st,"$1"));return a[N]?n(function(t,e,i,n){for(var s,o=a(t,null,n,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,n,s){return e[0]=t,a(e,null,s,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(_t,bt),function(e){return(e.textContent||e.innerText||w(e)).indexOf(t)>-1}}),lang:n(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(_t,bt).toLowerCase(),function(e){var i;do{if(i=$?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===R},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},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!y.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return dt.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:r(function(){return[0]}),last:r(function(t,e){return[e-1]}),eq:r(function(t,e,i){return[i<0?i+e:i]}),even:r(function(t,e){for(var i=0;i=0;)t.push(n);return t}),gt:r(function(t,e,i){for(var n=i<0?i+e:i;++n2&&"ID"===(o=s[0]).type&&b.getById&&9===e.nodeType&&$&&y.relative[s[1].type]){if(!(e=(y.find.ID(o.matches[0].replace(_t,bt),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(a=ut.needsContext.test(t)?0:s.length;a--&&(o=s[a],!y.relative[r=o.type]);)if((h=y.find[r])&&(n=h(o.matches[0].replace(_t,bt),mt.test(s[0].type)&&l(e.parentNode)||e))){if(s.splice(a,1),!(t=n.length&&c(s)))return K.apply(i,n),i;break}}return(u||C(t,d))(n,e,!$,i,!e||mt.test(t)&&l(e.parentNode)||e),i},b.sortStable=N.split("").sort(B).join("")===N,b.detectDuplicates=!!A,M(),b.sortDetached=a(function(t){return 1&t.compareDocumentPosition(O.createElement("div"))}),a(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&a(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),a(function(t){return null==t.getAttribute("disabled")})||s(Z,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(i);lt.find=ft,lt.expr=ft.selectors,lt.expr[":"]=lt.expr.pseudos,lt.uniqueSort=lt.unique=ft.uniqueSort,lt.text=ft.getText,lt.isXMLDoc=ft.isXML,lt.contains=ft.contains;var pt=function(t,e,i){for(var n=[],a=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(a&<(t).is(i))break;n.push(t)}return n},gt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},mt=lt.expr.match.needsContext,vt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_t=/^.[^:#\[\.,]*$/;lt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?lt.find.matchesSelector(n,t)?[n]:[]:lt.find.matches(t,lt.grep(e,function(t){return 1===t.nodeType}))},lt.fn.extend({find:function(t){var e,i=this.length,n=[],a=this;if("string"!=typeof t)return this.pushStack(lt(t).filter(function(){for(e=0;e1?lt.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&mt.test(t)?lt(t):t||[],!1).length}});var bt,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(lt.fn.init=function(t,e,i){var n,a;if(!t)return this;if(i=i||bt,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:yt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof lt?e[0]:e,lt.merge(this,lt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:Z,!0)),vt.test(n[1])&<.isPlainObject(e))for(n in e)lt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return a=Z.getElementById(n[2]),a&&a.parentNode&&(this.length=1,this[0]=a),this.context=Z,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):lt.isFunction(t)?void 0!==i.ready?i.ready(t):t(lt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),lt.makeArray(t,this))}).prototype=lt.fn,bt=lt(Z);var wt=/^(?:parents|prev(?:Until|All))/,xt={children:!0,contents:!0,next:!0,prev:!0};lt.fn.extend({has:function(t){var e=lt(t,this),i=e.length;return this.filter(function(){for(var t=0;t-1:1===i.nodeType&<.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?lt.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?nt.call(lt(t),this[0]):nt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(lt.uniqueSort(lt.merge(this.get(),lt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),lt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return pt(t,"parentNode")},parentsUntil:function(t,e,i){return pt(t,"parentNode",i)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return pt(t,"nextSibling")},prevAll:function(t){return pt(t,"previousSibling")},nextUntil:function(t,e,i){return pt(t,"nextSibling",i)},prevUntil:function(t,e,i){return pt(t,"previousSibling",i)},siblings:function(t){return gt((t.parentNode||{}).firstChild,t)},children:function(t){return gt(t.firstChild)},contents:function(t){return t.contentDocument||lt.merge([],t.childNodes)}},function(t,e){lt.fn[t]=function(i,n){var a=lt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=lt.filter(n,a)),this.length>1&&(xt[t]||lt.uniqueSort(a),wt.test(t)&&a.reverse()),this.pushStack(a)}});var kt=/\S+/g;lt.Callbacks=function(t){t="string"==typeof t?h(t):lt.extend({},t);var e,i,n,a,s=[],o=[],r=-1,l=function(){for(a=t.once,n=e=!0;o.length;r=-1)for(i=o.shift();++r-1;)s.splice(i,1),i<=r&&r--}),this},has:function(t){return t?lt.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return a=o=[],s=i="",this},disabled:function(){return!s},lock:function(){return a=o=[],i||(s=i=""),this},locked:function(){return!!a},fireWith:function(t,i){return a||(i=i||[],i=[t,i.slice?i.slice():i],o.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},lt.extend({Deferred:function(t){var e=[["resolve","done",lt.Callbacks("once memory"),"resolved"],["reject","fail",lt.Callbacks("once memory"),"rejected"],["notify","progress",lt.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var t=arguments;return lt.Deferred(function(i){lt.each(e,function(e,s){var o=lt.isFunction(t[e])&&t[e];a[s[1]](function(){var t=o&&o.apply(this,arguments);t&<.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[s[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?lt.extend(t,n):n}},a={};return n.pipe=n.then,lt.each(e,function(t,s){var o=s[2],r=s[3];n[s[1]]=o.add,r&&o.add(function(){i=r},e[1^t][2].disable,e[2][2].lock),a[s[0]]=function(){return a[s[0]+"With"](this===a?n:this,arguments),this},a[s[0]+"With"]=o.fireWith}),n.promise(a),t&&t.call(a,a),a},when:function(t){var e,i,n,a=0,s=tt.call(arguments),o=s.length,r=1!==o||t&<.isFunction(t.promise)?o:0,l=1===r?t:lt.Deferred(),h=function(t,i,n){return function(a){i[t]=this,n[t]=arguments.length>1?tt.call(arguments):a,n===e?l.notifyWith(i,n):--r||l.resolveWith(i,n)}};if(o>1)for(e=new Array(o),i=new Array(o),n=new Array(o);a0||(Ct.resolveWith(Z,[lt]),lt.fn.triggerHandler&&(lt(Z).triggerHandler("ready"),lt(Z).off("ready"))))}}),lt.ready.promise=function(t){return Ct||(Ct=lt.Deferred(),"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?i.setTimeout(lt.ready):(Z.addEventListener("DOMContentLoaded",c),i.addEventListener("load",c))),Ct.promise(t)},lt.ready.promise();var St=function(t,e,i,n,a,s,o){var r=0,l=t.length,h=null==i;if("object"===lt.type(i)){a=!0;for(r in i)St(t,e,r,i[r],!0,s,o)}else if(void 0!==n&&(a=!0,lt.isFunction(n)||(o=!0),h&&(o?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(lt(t),i)})),e))for(;r-1&&void 0!==i&&At.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){At.remove(this,t)})}}),lt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Et.get(t,e),i&&(!n||lt.isArray(i)?n=Et.access(t,e,lt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=lt.queue(t,e),n=i.length,a=i.shift(),s=lt._queueHooks(t,e),o=function(){lt.dequeue(t,e)};"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===e&&i.unshift("inprogress"),delete s.stop,a.call(t,o,s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Et.get(t,i)||Et.access(t,i,{empty:lt.Callbacks("once memory").add(function(){Et.remove(t,[e+"queue",i])})})}}),lt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Lt.optgroup=Lt.option,Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead,Lt.th=Lt.td;var zt=/<|&#?\w+;/;!function(){var t=Z.createDocumentFragment(),e=t.appendChild(Z.createElement("div")),i=Z.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),rt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",rt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ht=/^key/,qt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ft=/^([^.]*)(?:\.(.+)|)/;lt.event={global:{},add:function(t,e,i,n,a){var s,o,r,l,h,c,u,d,f,p,g,m=Et.get(t);if(m)for(i.handler&&(s=i,i=s.handler,a=s.selector),i.guid||(i.guid=lt.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return void 0!==lt&<.event.triggered!==e.type?lt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(kt)||[""],h=e.length;h--;)r=Ft.exec(e[h])||[],f=g=r[1],p=(r[2]||"").split(".").sort(),f&&(u=lt.event.special[f]||{},f=(a?u.delegateType:u.bindType)||f,u=lt.event.special[f]||{},c=lt.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&<.expr.match.needsContext.test(a),namespace:p.join(".")},s),(d=l[f])||(d=l[f]=[],d.delegateCount=0,u.setup&&!1!==u.setup.call(t,n,p,o)||t.addEventListener&&t.addEventListener(f,o)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),a?d.splice(d.delegateCount++,0,c):d.push(c),lt.event.global[f]=!0)},remove:function(t,e,i,n,a){var s,o,r,l,h,c,u,d,f,p,g,m=Et.hasData(t)&&Et.get(t);if(m&&(l=m.events)){for(e=(e||"").match(kt)||[""],h=e.length;h--;)if(r=Ft.exec(e[h])||[],f=g=r[1],p=(r[2]||"").split(".").sort(),f){for(u=lt.event.special[f]||{},f=(n?u.delegateType:u.bindType)||f,d=l[f]||[],r=r[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)c=d[s],!a&&g!==c.origType||i&&i.guid!==c.guid||r&&!r.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(s,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));o&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,p,m.handle)||lt.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)lt.event.remove(t,f+e[h],i,n,!0);lt.isEmptyObject(l)&&Et.remove(t,"handle events")}},dispatch:function(t){t=lt.event.fix(t);var e,i,n,a,s,o=[],r=tt.call(arguments),l=(Et.get(this,"events")||{})[t.type]||[],h=lt.event.special[t.type]||{};if(r[0]=t,t.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,t)){for(o=lt.event.handlers.call(this,t,l),e=0;(a=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=a.elem,i=0;(s=a.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(s.namespace)||(t.handleObj=s,t.data=s.data,void 0!==(n=((lt.event.special[s.origType]||{}).handle||s.handler).apply(a.elem,r))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,a,s,o=[],r=e.delegateCount,l=t.target;if(r&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i-1:lt.find(a,this,null,[l]).length),n[a]&&n.push(s);n.length&&o.push({elem:l,handlers:n})}return r]*)\/>/gi,Bt=/\s*$/g;lt.extend({htmlPrefilter:function(t){return t.replace(Vt,"<$1>")},clone:function(t,e,i){var n,a,s,o,r=t.cloneNode(!0),l=lt.contains(t.ownerDocument,t);if(!(rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||lt.isXMLDoc(t)))for(o=p(r),s=p(t),n=0,a=s.length;n0&&g(o,!l&&p(t,"script")),r},cleanData:function(t){for(var e,i,n,a=lt.event.special,s=0;void 0!==(i=t[s]);s++)if(Tt(i)){if(e=i[Et.expando]){if(e.events)for(n in e.events)a[n]?lt.event.remove(i,n):lt.removeEvent(i,n,e.handle);i[Et.expando]=void 0}i[At.expando]&&(i[At.expando]=void 0)}}}),lt.fn.extend({domManip:T,detach:function(t){return E(this,t,!0)},remove:function(t){return E(this,t)},text:function(t){return St(this,function(t){return void 0===t?lt.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 T(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){w(this,t).appendChild(t)}})},prepend:function(){return T(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=w(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return T(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return T(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&&(lt.cleanData(p(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return lt.clone(this,t,e)})},html:function(t){return St(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Bt.test(t)&&!Lt[(It.exec(t)||["",""])[1].toLowerCase()]){t=lt.htmlPrefilter(t);try{for(;i1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Pt(this)?lt(this).show():lt(this).hide()})}}),lt.Tween=N,N.prototype={constructor:N,init:function(t,e,i,n,a,s){this.elem=t,this.prop=i,this.easing=a||lt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(lt.cssNumber[i]?"":"px")},cur:function(){var t=N.propHooks[this.prop];return t&&t.get?t.get(this):N.propHooks._default.get(this)},run:function(t){var e,i=N.propHooks[this.prop];return this.options.duration?this.pos=e=lt.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),i&&i.set?i.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.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=lt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){lt.fx.step[t.prop]?lt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[lt.cssProps[t.prop]]&&!lt.cssHooks[t.prop]?t.elem[t.prop]=t.now:lt.style(t.elem,t.prop,t.now+t.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},lt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},lt.fx=N.prototype.init,lt.fx.step={};var oe,re,le=/^(?:toggle|show|hide)$/,he=/queueHooks$/;lt.Animation=lt.extend(V,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return f(i.elem,t,$t.exec(e),i),i}]},tweener:function(t,e){lt.isFunction(t)?(e=t,t=["*"]):t=t.match(kt);for(var i,n=0,a=t.length;n1)},removeAttr:function(t){return this.each(function(){lt.removeAttr(this,t)})}}),lt.extend({attr:function(t,e,i){var n,a,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?lt.prop(t,e,i):(1===s&<.isXMLDoc(t)||(e=e.toLowerCase(),a=lt.attrHooks[e]||(lt.expr.match.bool.test(e)?ce:void 0)),void 0!==i?null===i?void lt.removeAttr(t,e):a&&"set"in a&&void 0!==(n=a.set(t,i,e))?n:(t.setAttribute(e,i+""),i):a&&"get"in a&&null!==(n=a.get(t,e))?n:(n=lt.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&<.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,a=0,s=e&&e.match(kt);if(s&&1===t.nodeType)for(;i=s[a++];)n=lt.propFix[i]||i,lt.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)}}),ce={set:function(t,e,i){return!1===e?lt.removeAttr(t,i):t.setAttribute(i,i),i}},lt.each(lt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ue[e]||lt.find.attr;ue[e]=function(t,e,n){var a,s;return n||(s=ue[e],ue[e]=a,a=null!=i(t,e,n)?e.toLowerCase():null,ue[e]=s),a}});var de=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;lt.fn.extend({prop:function(t,e){return St(this,lt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[lt.propFix[t]||t]})}}),lt.extend({prop:function(t,e,i){var n,a,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&<.isXMLDoc(t)||(e=lt.propFix[e]||e,a=lt.propHooks[e]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(t,i,e))?n:t[e]=i:a&&"get"in a&&null!==(n=a.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=lt.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),rt.optSelected||(lt.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)}}),lt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){lt.propFix[this.toLowerCase()]=this});var pe=/[\t\r\n\f]/g;lt.fn.extend({addClass:function(t){var e,i,n,a,s,o,r,l=0;if(lt.isFunction(t))return this.each(function(e){lt(this).addClass(t.call(this,e,B(this)))});if("string"==typeof t&&t)for(e=t.match(kt)||[];i=this[l++];)if(a=B(i),n=1===i.nodeType&&(" "+a+" ").replace(pe," ")){for(o=0;s=e[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r=lt.trim(n),a!==r&&i.setAttribute("class",r)}return this},removeClass:function(t){var e,i,n,a,s,o,r,l=0;if(lt.isFunction(t))return this.each(function(e){lt(this).removeClass(t.call(this,e,B(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(kt)||[];i=this[l++];)if(a=B(i),n=1===i.nodeType&&(" "+a+" ").replace(pe," ")){for(o=0;s=e[o++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");r=lt.trim(n),a!==r&&i.setAttribute("class",r)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):lt.isFunction(t)?this.each(function(i){lt(this).toggleClass(t.call(this,i,B(this),e),e)}):this.each(function(){var e,n,a,s;if("string"===i)for(n=0,a=lt(this),s=t.match(kt)||[];e=s[n++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else void 0!==t&&"boolean"!==i||(e=B(this),e&&Et.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Et.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+B(i)+" ").replace(pe," ").indexOf(e)>-1)return!0;return!1}});var ge=/\r/g,me=/[\x20\t\r\n\f]+/g;lt.fn.extend({val:function(t){var e,i,n,a=this[0];{if(arguments.length)return n=lt.isFunction(t),this.each(function(i){var a;1===this.nodeType&&(a=n?t.call(this,i,lt(this).val()):t,null==a?a="":"number"==typeof a?a+="":lt.isArray(a)&&(a=lt.map(a,function(t){return null==t?"":t+""})),(e=lt.valHooks[this.type]||lt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,a,"value")||(this.value=a))});if(a)return(e=lt.valHooks[a.type]||lt.valHooks[a.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(a,"value"))?i:(i=a.value,"string"==typeof i?i.replace(ge,""):null==i?"":i)}}}),lt.extend({valHooks:{option:{get:function(t){var e=lt.find.attr(t,"value");return null!=e?e:lt.trim(lt.text(t)).replace(me," ")}},select:{get:function(t){for(var e,i,n=t.options,a=t.selectedIndex,s="select-one"===t.type||a<0,o=s?null:[],r=s?a+1:n.length,l=a<0?r:s?a:0;l-1)&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),lt.each(["radio","checkbox"],function(){lt.valHooks[this]={set:function(t,e){if(lt.isArray(e))return t.checked=lt.inArray(lt(t).val(),e)>-1}},rt.checkOn||(lt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ve=/^(?:focusinfocus|focusoutblur)$/;lt.extend(lt.event,{trigger:function(t,e,n,a){var s,o,r,l,h,c,u,d=[n||Z],f=ot.call(t,"type")?t.type:t,p=ot.call(t,"namespace")?t.namespace.split("."):[];if(o=r=n=n||Z,3!==n.nodeType&&8!==n.nodeType&&!ve.test(f+lt.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),h=f.indexOf(":")<0&&"on"+f,t=t[lt.expando]?t:new lt.Event(f,"object"==typeof t&&t),t.isTrigger=a?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:lt.makeArray(e,[t]),u=lt.event.special[f]||{},a||!u.trigger||!1!==u.trigger.apply(n,e))){if(!a&&!u.noBubble&&!lt.isWindow(n)){for(l=u.delegateType||f,ve.test(l+f)||(o=o.parentNode);o;o=o.parentNode)d.push(o),r=o;r===(n.ownerDocument||Z)&&d.push(r.defaultView||r.parentWindow||i)}for(s=0;(o=d[s++])&&!t.isPropagationStopped();)t.type=s>1?l:u.bindType||f,c=(Et.get(o,"events")||{})[t.type]&&Et.get(o,"handle"),c&&c.apply(o,e),(c=h&&o[h])&&c.apply&&Tt(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=f,a||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!Tt(n)||h&<.isFunction(n[f])&&!lt.isWindow(n)&&(r=n[h],r&&(n[h]=null),lt.event.triggered=f,n[f](),lt.event.triggered=void 0,r&&(n[h]=r)),t.result}},simulate:function(t,e,i){var n=lt.extend(new lt.Event,i,{type:t,isSimulated:!0});lt.event.trigger(n,null,e)}}),lt.fn.extend({trigger:function(t,e){return this.each(function(){lt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return lt.event.trigger(t,e,i,!0)}}),lt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){lt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),lt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),rt.focusin="onfocusin"in i,rt.focusin||lt.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){lt.event.simulate(e,t.target,lt.event.fix(t))};lt.event.special[e]={setup:function(){var n=this.ownerDocument||this,a=Et.access(n,e);a||n.addEventListener(t,i,!0),Et.access(n,e,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this,a=Et.access(n,e)-1;a?Et.access(n,e,a):(n.removeEventListener(t,i,!0),Et.remove(n,e))}}});var _e=i.location,be=lt.now(),ye=/\?/;lt.parseJSON=function(t){return JSON.parse(t+"")},lt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||lt.error("Invalid XML: "+t),e};var we=/#.*$/,xe=/([?&])_=[^&]*/,ke=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ce=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Se=/^(?:GET|HEAD)$/,Te=/^\/\//,Ee={},Ae={},Me="*/".concat("*"),Oe=Z.createElement("a");Oe.href=_e.href,lt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:Ce.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Me,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":lt.parseJSON,"text xml":lt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?U(U(t,lt.ajaxSettings),e):U(lt.ajaxSettings,t)},ajaxPrefilter:G(Ee),ajaxTransport:G(Ae),ajax:function(t,e){function n(t,e,n,r){var h,u,_,b,w,k=e;2!==y&&(y=2,l&&i.clearTimeout(l),a=void 0,o=r||"",x.readyState=t>0?4:0,h=t>=200&&t<300||304===t,n&&(b=Y(d,x,n)),b=X(d,b,x,h),h?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(lt.lastModified[s]=w),(w=x.getResponseHeader("etag"))&&(lt.etag[s]=w)),204===t||"HEAD"===d.type?k="nocontent":304===t?k="notmodified":(k=b.state,u=b.data,_=b.error,h=!_)):(_=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(e||k)+"",h?g.resolveWith(f,[u,k,x]):g.rejectWith(f,[x,k,_]),x.statusCode(v),v=void 0,c&&p.trigger(h?"ajaxSuccess":"ajaxError",[x,d,h?u:_]),m.fireWith(f,[x,k]),c&&(p.trigger("ajaxComplete",[x,d]),--lt.active||lt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var a,s,o,r,l,h,c,u,d=lt.ajaxSetup({},e),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?lt(f):lt.event,g=lt.Deferred(),m=lt.Callbacks("once memory"),v=d.statusCode||{},_={},b={},y=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!r)for(r={};e=ke.exec(o);)r[e[1].toLowerCase()]=e[2];e=r[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return y||(t=b[i]=b[i]||t,_[t]=e),this},overrideMimeType:function(t){return y||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(y<2)for(e in t)v[e]=[v[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return a&&a.abort(e),n(0,e),this}};if(g.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,d.url=((t||d.url||_e.href)+"").replace(we,"").replace(Te,_e.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=lt.trim(d.dataType||"*").toLowerCase().match(kt)||[""],null==d.crossDomain){h=Z.createElement("a");try{h.href=d.url,h.href=h.href,d.crossDomain=Oe.protocol+"//"+Oe.host!=h.protocol+"//"+h.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=lt.param(d.data,d.traditional)),W(Ee,d,e,x),2===y)return x;c=lt.event&&d.global,c&&0==lt.active++&<.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Se.test(d.type),s=d.url,d.hasContent||(d.data&&(s=d.url+=(ye.test(s)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=xe.test(s)?s.replace(xe,"$1_="+be++):s+(ye.test(s)?"&":"?")+"_="+be++)),d.ifModified&&(lt.lastModified[s]&&x.setRequestHeader("If-Modified-Since",lt.lastModified[s]),lt.etag[s]&&x.setRequestHeader("If-None-Match",lt.etag[s])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Me+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)x.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(!1===d.beforeSend.call(f,x,d)||2===y))return x.abort();w="abort";for(u in{success:1,error:1,complete:1})x[u](d[u]);if(a=W(Ae,d,e,x)){if(x.readyState=1,c&&p.trigger("ajaxSend",[x,d]),2===y)return x;d.async&&d.timeout>0&&(l=i.setTimeout(function(){x.abort("timeout")},d.timeout));try{y=1,a.send(_,n)}catch(t){if(!(y<2))throw t;n(-1,t)}}else n(-1,"No Transport");return x},getJSON:function(t,e,i){return lt.get(t,e,i,"json")},getScript:function(t,e){return lt.get(t,void 0,e,"script")}}),lt.each(["get","post"],function(t,e){lt[e]=function(t,i,n,a){return lt.isFunction(i)&&(a=a||n,n=i,i=void 0),lt.ajax(lt.extend({url:t,type:e,dataType:a,data:i,success:n},lt.isPlainObject(t)&&t))}}),lt._evalUrl=function(t){return lt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},lt.fn.extend({wrapAll:function(t){var e;return lt.isFunction(t)?this.each(function(e){lt(this).wrapAll(t.call(this,e))}):(this[0]&&(e=lt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return lt.isFunction(t)?this.each(function(e){lt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=lt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=lt.isFunction(t);return this.each(function(i){lt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){lt.nodeName(this,"body")||lt(this).replaceWith(this.childNodes)}).end()}}),lt.expr.filters.hidden=function(t){return!lt.expr.filters.visible(t)},lt.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Re=/%20/g,$e=/\[\]$/,De=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;lt.param=function(t,e){var i,n=[],a=function(t,e){e=lt.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=lt.ajaxSettings&<.ajaxSettings.traditional),lt.isArray(t)||t.jquery&&!lt.isPlainObject(t))lt.each(t,function(){a(this.name,this.value)});else for(i in t)K(i,t[i],e,a);return n.join("&").replace(Re,"+")},lt.fn.extend({serialize:function(){return lt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=lt.prop(this,"elements");return t?lt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!lt(this).is(":disabled")&&je.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!jt.test(t))}).map(function(t,e){var i=lt(this).val();return null==i?null:lt.isArray(i)?lt.map(i,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:i.replace(De,"\r\n")}}).get()}}),lt.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ie={0:200,1223:204},Ne=lt.ajaxSettings.xhr();rt.cors=!!Ne&&"withCredentials"in Ne,rt.ajax=Ne=!!Ne,lt.ajaxTransport(function(t){var e,n;if(rt.cors||Ne&&!t.crossDomain)return{send:function(a,s){var o,r=t.xhr();if(r.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)r[o]=t.xhrFields[o];t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest");for(o in a)r.setRequestHeader(o,a[o]);e=function(t){return function(){e&&(e=n=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===t?r.abort():"error"===t?"number"!=typeof r.status?s(0,"error"):s(r.status,r.statusText):s(Ie[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=e(),n=r.onerror=e("error"),void 0!==r.onabort?r.onabort=n:r.onreadystatechange=function(){4===r.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{r.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),lt.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 lt.globalEval(t),t}}}),lt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),lt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,a){e=lt("