Make WordPress Core

Ticket #50564: 50564.diff

File 50564.diff, 741.1 KB (added by azaozz, 4 years ago)
  • Gruntfile.js

     
    185185                                                [ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ],
    186186                                                [ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/dist/twemoji.js' ],
    187187                                                [ WORKING_DIR + 'wp-includes/js/underscore.js' ]: [ './node_modules/underscore/underscore.js' ],
    188                                         },
    189                                         {
    190                                                 expand: true,
    191                                                 cwd: './node_modules/jquery-ui/ui/',
    192                                                 src: '*.js',
    193                                                 dest: SOURCE_DIR + 'wp-includes/js/jquery/ui/'
    194188                                        }
    195189                                ]
    196190                        },
     
    727721                                ext: '.min.js',
    728722                                src: ['wp-includes/js/wp-embed.js']
    729723                        },
    730                         jqueryui: {
     724                        'jquery-ui': {
    731725                                options: {
    732726                                        // Preserve comments that start with a bang.
    733727                                        output: {
     
    735729                                        }
    736730                                },
    737731                                expand: true,
    738                                 cwd: 'node_modules/jquery-ui/ui/',
     732                                cwd: WORKING_DIR + 'wp-includes/js/jquery/ui/',
    739733                                dest: WORKING_DIR + 'wp-includes/js/jquery/ui/',
    740734                                ext: '.min.js',
    741735                                src: ['*.js']
     
    13851379        grunt.registerTask( 'uglify:all', [
    13861380                'uglify:core',
    13871381                'uglify:embed',
    1388                 'uglify:jqueryui',
     1382                'uglify:jquery-ui',
    13891383                'uglify:imgareaselect',
    13901384                'uglify:jqueryform',
    13911385                'uglify:moment'
  • package-lock.json

     
    1590815908                        }
    1590915909                },
    1591015910                "jquery-migrate": {
    15911                         "version": "1.4.1",
    15912                         "resolved": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz",
    15913                         "integrity": "sha1-hRUvPsmalWJfT30Lz2LpuGOPWnY=",
     15911                        "version": "3.3.1",
     15912                        "resolved": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.3.1.tgz",
     15913                        "integrity": "sha512-QAXfshB6xqaANDX8OPExKnnooLtX0cSDCKfRnqhdv+3CVEVD9L1v3zNAhZum/4AukKlWUWUoxM6ywJJcLMXLSA==",
    1591415914                        "dev": true
    1591515915                },
    15916                 "jquery-ui": {
    15917                         "version": "https://github.com/jquery/jquery-ui/archive/1.11.4.tar.gz",
    15918                         "integrity": "sha512-yMLXNruSte8iAAOsShJvUdcwgrHbWrxBCoKfPGqDmgFkfNLbnXoHcyxgOvI2IbgfupFF2paOm0AvOq6iERedKQ=="
    15919                 },
    1592015916                "js-base64": {
    1592115917                        "version": "2.5.2",
    1592215918                        "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.2.tgz",
  • package.json

     
    6161                "grunt-webpack": "^3.1.3",
    6262                "ink-docstrap": "1.3.2",
    6363                "install-changed": "1.1.0",
    64                 "jquery-migrate": "1.4.1",
     64                "jquery-migrate": "3.3.1",
    6565                "matchdep": "~2.0.0",
    6666                "node-sass": "~4.14.1",
    6767                "prettier": "npm:wp-prettier@2.0.5",
     
    137137                "jquery-color": "https://github.com/jquery/jquery-color/archive/2.1.2.tar.gz",
    138138                "jquery-form": "4.2.1",
    139139                "jquery-hoverintent": "1.8.3",
    140                 "jquery-ui": "https://github.com/jquery/jquery-ui/archive/1.11.4.tar.gz",
    141140                "lodash": "4.17.19",
    142141                "masonry-layout": "4.2.2",
    143142                "moment": "2.27.0",
  • src/js/_enqueues/vendor/jquery/jquery.js

     
    1 /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license | WordPress 2019-05-16 */
    2 !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?a<0?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],"__proto__"!==d&&g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;d<c;d++)if(!1===b.call(a[d],d,a[d]))break}else for(d in a)if(!1===b.call(a[d],d,a[d]))break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?c<0?Math.max(0,d+c):c:0;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(d<c)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)(d=!b(a[f],f))!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;g<d;g++)null!=(e=b(a[g],g,c))&&h.push(e);else for(g in a)null!=(e=b(a[g],g,c))&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;if("string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a))return c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"!==c&&!n.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=fa(),z=fa(),A=fa(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(xa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ea(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+pa(r[h]);s=r.join(","),w=_.test(a)&&na(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function fa(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ga(a){return a[u]=!0,a}function ha(a){var b=n.createElement("div");try{return!!a(b)}catch(xa){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ia(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ja(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ka(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function la(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ma(a){return ga(function(b){return b=+b,ga(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function na(a){return a&&void 0!==a.getElementsByTagName&&a}c=ea.support={},f=ea.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ea.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ha(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ha(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ha(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(void 0!==b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c=void 0!==a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return void 0!==b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if(void 0!==b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ha(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ha(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ha(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d||(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ja(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ja(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ea.matches=function(a,b){return ea(a,null,null,b)},ea.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(xa){}return ea(b,n,null,[a]).length>0},ea.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ea.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ea.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ea.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ea.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ea.selectors={cacheLength:50,createPseudo:ga,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ea.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ea.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||void 0!==a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ea.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),!1===t)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return(t-=e)===d||t%d==0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ea.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ga(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ga(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ga(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ga(function(a){return function(b){return ea(a,b).length>0}}),contains:ga(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ga(function(a){return V.test(a||"")||ea.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return(c=c.toLowerCase())===a||0===c.indexOf(a+"-")}while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ma(function(){return[0]}),last:ma(function(a,b){return[b-1]}),eq:ma(function(a,b,c){return[c<0?c+b:c]}),even:ma(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:ma(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:ma(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:ma(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ka(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=la(b);function oa(){}oa.prototype=d.filters=d.pseudos,d.setFilters=new oa,g=ea.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ea.error(a):z(a,i).slice(0)};function pa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function qa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function ra(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sa(a,b,c){for(var d=0,e=b.length;d<e;d++)ea(a,b[d],c);return c}function ta(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function ua(a,b,c,d,e,f){return d&&!d[u]&&(d=ua(d)),e&&!e[u]&&(e=ua(e,f)),ga(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||sa(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ta(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ta(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ta(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function va(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=qa(function(a){return a===b},h,!0),l=qa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[qa(ra(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return ua(i>1&&ra(m),i>1&&pa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,i<e&&va(a.slice(i,e)),e<f&&va(a=a.slice(e)),e<f&&pa(a))}m.push(c)}return ra(m)}function wa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ta(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ea.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ga(f):f}return h=ea.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=va(b[c]),f[u]?d.push(f):e.push(f);f=A(a,wa(e,d)),f.selector=a}return f},i=ea.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(!(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0]))return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&na(b.parentNode)||b))){if(j.splice(i,1),!(a=f.length&&pa(j)))return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&na(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ha(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ha(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ia("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ha(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ia("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ha(function(a){return null==a.getAttribute("disabled")})||ia(K,function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ea}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;b<e;b++)if(n.contains(d[b],this))return!0}));for(b=0;b<e;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(!(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a))||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if((f=d.getElementById(e[2]))&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))}).prototype=n.fn,A=n(d);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;b<d;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.uniqueSort(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g;function G(a){var b={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)!1===f[h].apply(c[0],c[1])&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function b(c){n.each(c,function(c,d){n.isFunction(d)?a.unique&&j.has(d)||f.push(d):d&&d.length&&"string"!==n.type(d)&&b(d)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);b<d;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(!0===a?--n.readyWait:n.isReady)||(n.isReady=!0,!0!==a&&--n.readyWait>0||(H.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function I(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J)):(d.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(I(),n.ready())}n.ready.promise=function(b){if(!H)if(H=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J);else{d.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&function b(){if(!n.isReady){try{c.doScroll("left")}catch(e){return a.setTimeout(b,50)}I(),n.ready()}}()}return H.promise(b)},n.ready.promise();var K;for(K in n(l))break;l.ownFirst="0"===K,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;(c=d.getElementsByTagName("body")[0])&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),void 0!==b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var L=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return(1===c||9===c)&&(!b||!0!==b&&a.getAttribute("classid")===b)},M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if("string"==typeof(c=a.getAttribute(d))){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:M.test(c)?n.parseJSON(c):c)}catch(e){}n.data(a,b,c)}else c=void 0}return c}function P(a){var b
    3 ;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(L(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?null==(f=g[b])&&(f=g[n.camelCase(b)]):f=g,f}}function R(a,b,c){if(L(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return!!(a=a.nodeType?n.cache[a[n.expando]]:a[n.expando])&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),O(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?O(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)(c=n._data(f[g],a+"queueHooks"))&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return(c=d.getElementsByTagName("body")[0])&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),void 0!==b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do{f=f||".5",k/=f,n.style(a,b,k+j)}while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)X(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Y=/^(?:checkbox|radio)$/i,Z=/<([\w:-]+)/,$=/^$|\/(?:java|ecma)script/i,_=/^\s+/,aa="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ba(a){var b=aa.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var ca={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};ca.optgroup=ca.option,ca.tbody=ca.tfoot=ca.colgroup=ca.caption=ca.thead,ca.th=ca.td;function da(a,b){var c,d,e=0,f=void 0!==a.getElementsByTagName?a.getElementsByTagName(b||"*"):void 0!==a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,da(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function ea(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var fa=/<|&#?\w+;/,ga=/<tbody/i;function ha(a){Y.test(a.type)&&(a.defaultChecked=a.checked)}function ia(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ba(b),q=[],r=0;r<o;r++)if((g=a[r])||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(fa.test(g)){i=i||p.appendChild(b.createElement("div")),j=(Z.exec(g)||["",""])[1].toLowerCase(),m=ca[j]||ca._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&_.test(g)&&q.push(b.createTextNode(_.exec(g)[0])),!l.tbody){g="table"!==j||ga.test(g)?"<table>"!==m[1]||ga.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(da(q,"input"),ha),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=da(p.appendChild(g),"script"),h&&ea(i),c){f=0;while(g=i[f++])$.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=!1===e.attributes[c].expando);e=null}();var ja=/^(?:input|select|textarea)$/i,ka=/^key/,la=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ma=/^(?:focusinfocus|focusoutblur)$/,na=/^([^.]*)(?:\.(.+)|)/;function oa(){return!0}function pa(){return!1}function qa(){try{return d.activeElement}catch(a){}}function ra(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ra(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),!1===e)e=pa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return void 0===n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=na.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&!1!==j.setup.call(a,d,p,k)||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=na.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&!1!==l.teardown.call(a,p,r.handle)||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ma.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||!1!==l.trigger.apply(e,c))){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,ma.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),(g=h&&i[h])&&g.apply&&L(i)&&(b.result=g.apply(i,c),!1===b.result&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),c))&&L(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||!1!==k.preDispatch.call(this,a)){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,void 0!==(d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i))&&!1===(a.result=d)&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(!0!==i.disabled||"click"!==a.type)){for(d=[],c=0;c<h;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=la.test(f)?this.mouseHooks:ka.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==qa()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===qa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(n.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&(void 0===a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){if(!(this instanceof n.Event))return new n.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?oa:pa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),this[n.expando]=!0},n.Event.prototype={constructor:n.Event,isDefaultPrevented:pa,isPropagationStopped:pa,isImmediatePropagationStopped:pa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=oa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=oa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=oa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){if(n.nodeName(this,"form"))return!1;n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){if(n.nodeName(this,"form"))return!1;n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){if(ja.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1;n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ja.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){return n.event.remove(this,"._change"),!ja.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return ra(this,a,b,c,d)},one:function(a,b,c,d){return ra(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return!1!==b&&"function"!=typeof b||(c=b,b=void 0),!1===c&&(c=pa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return n.event.trigger(a,b,c,!0)}});var sa=/ jQuery\d+="(?:null|\d+)"/g,ta=new RegExp("<(?:"+aa+")[\\s/>]","i"),ua=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,va=/<script|<style|<link/i,wa=/checked\s*(?:[^=]|=\s*.checked.)/i,xa=/^true\/(.*)/,ya=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,za=ba(d),Aa=za.appendChild(d.createElement("div"));function Ba(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Ca(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Da(a){var b=xa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ea(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Fa(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Ca(b).text=a.text,Da(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Y.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ga(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&wa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ga(f,b,c,d)});if(o&&(k=ia(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(da(k,"script"),Ca),h=i.length;m<o;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,da(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Da),m=0;m<h;m++)g=i[m],$.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(ya,"")));k=e=null}return a}function Ha(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(da(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&ea(da(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ua,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ta.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Aa.innerHTML=a.outerHTML,Aa.removeChild(f=Aa.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=da(f),h=da(a),g=0;null!=(e=h[g]);++g)d[g]&&Fa(e,d[g]);if(b)if(c)for(h=h||da(a),d=d||da(f),g=0;null!=(e=h[g]);g++)Ea(e,d[g]);else Ea(a,f);return d=da(f,"script"),d.length>0&&ea(d,!i&&da(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||L(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||void 0===d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ga,detach:function(a){return Ha(this,a,!0)},remove:function(a){return Ha(this,a)},text:function(a){return X(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){Ba(this,a).appendChild(a)}})},prepend:function(){return Ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ba(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(da(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return X(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(sa,""):void 0;if("string"==typeof a&&!va.test(a)&&(l.htmlSerialize||!ta.test(a))&&(l.leadingWhitespace||!_.test(a))&&!ca[(Z.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(da(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ga(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(da(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;d<=h;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ia,Ja={HTML:"block",BODY:"block"};function Ka(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function La(a){var b=d,c=Ja[a];return c||(c=Ka(a,b),"none"!==c&&c||(Ia=(Ia||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ia[0].contentWindow||Ia[0].contentDocument).document,b.write(),b.close(),c=Ka(a,b),Ia.detach()),Ja[a]=c),c}var Ma=/^margin/,Na=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Oa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Pa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",(f=0===k[0].offsetHeight)&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}j.style&&(j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}}))}();var Qa,Ra,Sa=/^(top|right|bottom|left)$/;a.getComputedStyle?(Qa=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Ra=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Qa(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Na.test(g)&&Ma.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Pa.currentStyle&&(Qa=function(a){return a.currentStyle},Ra=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Qa(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Na.test(g)&&!Sa.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ta(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ua=/alpha\([^)]*\)/i,Va=/opacity\s*=\s*([^)]*)/i,Wa=/^(none|table(?!-c[ea]).+)/,Xa=new RegExp("^("+S+")(.*)$","i"),Ya={position:"absolute",visibility:"hidden",display:"block"},Za={letterSpacing:"0",fontWeight:"400"},$a=["Webkit","O","Moz","ms"],_a=d.createElement("div").style;function ab(a){if(a in _a)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=$a.length;while(c--)if((a=$a[c]+b)in _a)return a}function bb(a,b){for(var c,d,e,f=[],g=0,h=a.length;g<h;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",La(d.nodeName)))):(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;g<h;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function cb(a,b,c){var d=Xa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function db(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;f<4;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function eb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Qa(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(e<=0||null==e){if(e=Ra(a,b,f),(e<0||null==e)&&(e=a.style[b]),Na.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+db(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ra(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=ab(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=ab(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ra(a,b,d)),"normal"===f&&b in Za&&(f=Za[b]),""===c||c?(e=parseFloat(f),!0===c||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){if(c)return Wa.test(n.css(a,"display"))&&0===a.offsetWidth?Oa(a,Ya,function(){return eb(a,b,d)}):eb(a,b,d)},set:function(a,c,d){var e=d&&Qa(a);return cb(a,c,d?db(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Va.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Ua,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ua.test(f)?f.replace(Ua,e):f+" "+e)}}),n.cssHooks.marginRight=Ta(l.reliableMarginRight,function(a,b){if(b)return Oa(a,{display:"inline-block"},Ra,[a,"marginRight"])}),n.cssHooks.marginLeft=Ta(l.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Ra(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Oa(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px"}),n.each({
    4 margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Ma.test(a)||(n.cssHooks[a+b].set=cb)}),n.fn.extend({css:function(a,b){return X(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Qa(a),e=b.length;g<e;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return bb(this,!0)},hide:function(){return bb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function fb(a,b,c,d,e){return new fb.prototype.init(a,b,c,d,e)}n.Tween=fb,fb.prototype={constructor:fb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=fb.propHooks[this.prop];return a&&a.get?a.get(this):fb.propHooks._default.get(this)},run:function(a){var b,c=fb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):fb.propHooks._default.set(this),this}},fb.prototype.init.prototype=fb.prototype,fb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},fb.propHooks.scrollTop=fb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=fb.prototype.init,n.fx.step={};var gb,hb,ib=/^(?:toggle|show|hide)$/,jb=/queueHooks$/;function kb(){return a.setTimeout(function(){gb=void 0}),gb=n.now()}function lb(a,b){var c,d={height:a},e=0;for(b=b?1:0;e<4;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function mb(a,b,c){for(var d,e=(pb.tweeners[b]||[]).concat(pb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function nb(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),"inline"===(k="none"===j?n._data(a,"olddisplay")||La(a.nodeName):j)&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==La(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ib.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?La(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=mb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function ob(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),(g=n.cssHooks[d])&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function pb(a,b,c){var d,e,f=0,g=pb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=gb||kb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:gb||kb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(ob(k,j.opts.specialEasing);f<g;f++)if(d=pb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,mb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(pb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(F);for(var c,d=0,e=a.length;d<e;d++)c=a[d],pb.tweeners[c]=pb.tweeners[c]||[],pb.tweeners[c].unshift(b)},prefilters:[nb],prefilter:function(a,b){b?pb.prefilters.unshift(a):pb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&!0!==d.queue||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=pb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||!1===f.queue?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&!1!==a&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&jb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(lb(b,!0),a,d,e)}}),n.each({slideDown:lb("show"),slideUp:lb("hide"),slideToggle:lb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(gb=n.now();c<b.length;c++)(a=b[c])()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),gb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){hb||(hb=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(hb),hb=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var qb=/\r/g,rb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),(b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()])&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return(b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(qb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(rb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||e<0,g=f?null:[],h=f?e+1:d.length,i=e<0?h:f?e:0;i<h;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){if(n.isArray(b))return a.checked=n.inArray(n(a).val(),b)>-1}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb,tb,ub=n.expr.attrHandle,vb=/^(?:checked|selected)$/i,wb=l.getSetAttribute,xb=l.input;n.fn.extend({attr:function(a,b){return X(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return void 0===a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?tb:sb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?xb&&wb||!vb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(wb?c:d)}}),tb={set:function(a,b,c){return!1===b?n.removeAttr(a,c):xb&&wb||!vb.test(c)?a.setAttribute(!wb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ub[b]||n.find.attr;xb&&wb||!vb.test(b)?ub[b]=function(a,b,d){var e,f;return d||(f=ub[b],ub[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ub[b]=f),e}:ub[b]=function(a,b,c){if(!c)return a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),xb&&wb||(n.attrHooks.value={set:function(a,b,c){if(!n.nodeName(a,"input"))return sb&&sb.set(a,b,c);a.defaultValue=b}}),wb||(sb={set:function(a,b,c){var d=a.getAttributeNode(c);if(d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c))return b}},ub.id=ub.name=ub.coords=function(a,b,c){var d;if(!c)return(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);if(c&&c.specified)return c.value},set:sb.set},n.attrHooks.contenteditable={set:function(a,b,c){sb.set(a,""!==b&&b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var yb=/^(?:input|select|textarea|button|object)$/i,zb=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return X(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):yb.test(a.nodeName)||zb.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Ab=/[\t\r\n\f]/g;function Bb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Bb(this)))});if("string"==typeof a&&a){b=a.match(F)||[];while(c=this[i++])if(e=Bb(c),d=1===c.nodeType&&(" "+e+" ").replace(Ab," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Bb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(F)||[];while(c=this[i++])if(e=Bb(c),d=1===c.nodeType&&(" "+e+" ").replace(Ab," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Bb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Bb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||!1===a?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Bb(c)+" ").replace(Ab," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Cb=a.location,Db=n.now(),Eb=/\?/,Fb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Fb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Gb=/#.*$/,Hb=/([?&])_=[^&]*/,Ib=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Jb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Kb=/^(?:GET|HEAD)$/,Lb=/^\/\//,Mb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Nb={},Ob={},Pb="*/".concat("*"),Qb=Cb.href,Rb=Mb.exec(Qb.toLowerCase())||[];function Sb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Tb(a,b,c,d){var e={},f=a===Ob;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ub(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Vb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Wb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(!(g=j[i+" "+f]||j["* "+f]))for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){!0===g?g=j[e]:!0!==j[e]&&(f=h[0],k.unshift(h[1]));break}if(!0!==g)if(g&&a.throws)b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qb,type:"GET",isLocal:Jb.test(Rb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pb,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":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ub(Ub(a,n.ajaxSettings),b):Ub(n.ajaxSettings,a)},ajaxPrefilter:Sb(Nb),ajaxTransport:Sb(Ob),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Ib.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(u<2)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),x(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Qb)+"").replace(Gb,"").replace(Lb,Rb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(F)||[""],null==l.crossDomain&&(d=Mb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Rb[1]&&d[2]===Rb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Rb[3]||("http:"===Rb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Tb(Nb,l,c,w),2===u)return w;i=n.event&&l.global,i&&0==n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Kb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Eb.test(f)?"&":"?")+l.data,delete l.data),!1===l.cache&&(l.url=Hb.test(f)?f.replace(Hb,"$1_="+Db++):f+(Eb.test(f)?"&":"?")+"_="+Db++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&!1!==l.contentType||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Pb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(!1===l.beforeSend.call(m,w,l)||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Tb(Ob,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,x)}catch(y){if(!(u<2))throw y;x(-1,y)}}else x(-1,"No Transport");function x(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&b<300||304===b,d&&(v=Vb(l,w,d)),v=Wb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),(x=w.getResponseHeader("etag"))&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",b<0&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Xb(a){return a.style&&a.style.display||n.css(a,"display")}function Yb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Xb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Yb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Zb=/%20/g,$b=/\[\]$/,_b=/\r?\n/g,ac=/^(?:submit|button|image|reset|file)$/i,bc=/^(?:input|select|textarea|keygen)/i;function cc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||$b.test(a)?d(a,e):cc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)cc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)cc(c,a[c],b,e);return d.join("&").replace(Zb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&bc.test(this.nodeName)&&!ac.test(a)&&(this.checked||!Y.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(_b,"\r\n")}}):{name:b.name,value:c.replace(_b,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?hc():d.documentMode>8?gc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&gc()||hc()}:gc;var dc=0,ec={},fc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in ec)ec[a](void 0,!0)}),l.cors=!!fc&&"withCredentials"in fc,(fc=l.ajax=!!fc)&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++dc;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete ec[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=ec[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function gc(){try{return new a.XMLHttpRequest}catch(b){}}function hc(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ic=[],jc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ic.pop()||n.expando+"_"+Db++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=!1!==b.jsonp&&(jc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&jc.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(jc,"$1"+e):!1!==b.jsonp&&(b.url+=(Eb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ic.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ia([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var kc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&kc)return kc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function lc(a){return n.isWindow(a)?a:9===a.nodeType&&(a.defaultView||a.parentWindow)}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(void 0!==e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=lc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Pa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return X(this,function(a,d,e){var f=lc(a);if(void 0===e)return f?b in f?f[b]:f.document.documentElement[d]:a[d];f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ta(l.pixelPosition,function(a,c){if(c)return c=Ra(a,b),Na.test(c)?n(a).position()[b]+"px":c})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(!0===d||!0===e?"margin":"border")
    5 ;return X(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var mc=a.jQuery,nc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=nc),b&&a.jQuery===n&&(a.jQuery=mc),n},b||(a.jQuery=a.$=n),n});
     1/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
     2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(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&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}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=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
  • src/js/_enqueues/vendor/jquery/ui/accordion.js

     
     1/*!
     2 * jQuery UI Accordion 1.12.1
     3 * http://jqueryui.com
     4 *
     5 * Copyright jQuery Foundation and other contributors
     6 * Released under the MIT license.
     7 * http://jquery.org/license
     8 */
     9
     10//>>label: Accordion
     11//>>group: Widgets
     12// jscs:disable maximumLineLength
     13//>>description: Displays collapsible content panels for presenting information in a limited amount of space.
     14// jscs:enable maximumLineLength
     15//>>docs: http://api.jqueryui.com/accordion/
     16//>>demos: http://jqueryui.com/accordion/
     17//>>css.structure: ../../themes/base/core.css
     18//>>css.structure: ../../themes/base/accordion.css
     19//>>css.theme: ../../themes/base/theme.css
     20
     21( function( factory ) {
     22        if ( typeof define === "function" && define.amd ) {
     23
     24                // AMD. Register as an anonymous module.
     25                define( [
     26                        "jquery",
     27                        "./version",
     28                        "./keycode",
     29                        "./unique-id",
     30                        "./widget"
     31                ], factory );
     32        } else {
     33
     34                // Browser globals
     35                factory( jQuery );
     36        }
     37}( function( $ ) {
     38
     39return $.widget( "ui.accordion", {
     40        version: "1.12.1",
     41        options: {
     42                active: 0,
     43                animate: {},
     44                classes: {
     45                        "ui-accordion-header": "ui-corner-top",
     46                        "ui-accordion-header-collapsed": "ui-corner-all",
     47                        "ui-accordion-content": "ui-corner-bottom"
     48                },
     49                collapsible: false,
     50                event: "click",
     51                header: "> li > :first-child, > :not(li):even",
     52                heightStyle: "auto",
     53                icons: {
     54                        activeHeader: "ui-icon-triangle-1-s",
     55                        header: "ui-icon-triangle-1-e"
     56                },
     57
     58                // Callbacks
     59                activate: null,
     60                beforeActivate: null
     61        },
     62
     63        hideProps: {
     64                borderTopWidth: "hide",
     65                borderBottomWidth: "hide",
     66                paddingTop: "hide",
     67                paddingBottom: "hide",
     68                height: "hide"
     69        },
     70
     71        showProps: {
     72                borderTopWidth: "show",
     73                borderBottomWidth: "show",
     74                paddingTop: "show",
     75                paddingBottom: "show",
     76                height: "show"
     77        },
     78
     79        _create: function() {
     80                var options = this.options;
     81
     82                this.prevShow = this.prevHide = $();
     83                this._addClass( "ui-accordion", "ui-widget ui-helper-reset" );
     84                this.element.attr( "role", "tablist" );
     85
     86                // Don't allow collapsible: false and active: false / null
     87                if ( !options.collapsible && ( options.active === false || options.active == null ) ) {
     88                        options.active = 0;
     89                }
     90
     91                this._processPanels();
     92
     93                // handle negative values
     94                if ( options.active < 0 ) {
     95                        options.active += this.headers.length;
     96                }
     97                this._refresh();
     98        },
     99
     100        _getCreateEventData: function() {
     101                return {
     102                        header: this.active,
     103                        panel: !this.active.length ? $() : this.active.next()
     104                };
     105        },
     106
     107        _createIcons: function() {
     108                var icon, children,
     109                        icons = this.options.icons;
     110
     111                if ( icons ) {
     112                        icon = $( "<span>" );
     113                        this._addClass( icon, "ui-accordion-header-icon", "ui-icon " + icons.header );
     114                        icon.prependTo( this.headers );
     115                        children = this.active.children( ".ui-accordion-header-icon" );
     116                        this._removeClass( children, icons.header )
     117                                ._addClass( children, null, icons.activeHeader )
     118                                ._addClass( this.headers, "ui-accordion-icons" );
     119                }
     120        },
     121
     122        _destroyIcons: function() {
     123                this._removeClass( this.headers, "ui-accordion-icons" );
     124                this.headers.children( ".ui-accordion-header-icon" ).remove();
     125        },
     126
     127        _destroy: function() {
     128                var contents;
     129
     130                // Clean up main element
     131                this.element.removeAttr( "role" );
     132
     133                // Clean up headers
     134                this.headers
     135                        .removeAttr( "role aria-expanded aria-selected aria-controls tabIndex" )
     136                        .removeUniqueId();
     137
     138                this._destroyIcons();
     139
     140                // Clean up content panels
     141                contents = this.headers.next()
     142                        .css( "display", "" )
     143                        .removeAttr( "role aria-hidden aria-labelledby" )
     144                        .removeUniqueId();
     145
     146                if ( this.options.heightStyle !== "content" ) {
     147                        contents.css( "height", "" );
     148                }
     149        },
     150
     151        _setOption: function( key, value ) {
     152                if ( key === "active" ) {
     153
     154                        // _activate() will handle invalid values and update this.options
     155                        this._activate( value );
     156                        return;
     157                }
     158
     159                if ( key === "event" ) {
     160                        if ( this.options.event ) {
     161                                this._off( this.headers, this.options.event );
     162                        }
     163                        this._setupEvents( value );
     164                }
     165
     166                this._super( key, value );
     167
     168                // Setting collapsible: false while collapsed; open first panel
     169                if ( key === "collapsible" && !value && this.options.active === false ) {
     170                        this._activate( 0 );
     171                }
     172
     173                if ( key === "icons" ) {
     174                        this._destroyIcons();
     175                        if ( value ) {
     176                                this._createIcons();
     177                        }
     178                }
     179        },
     180
     181        _setOptionDisabled: function( value ) {
     182                this._super( value );
     183
     184                this.element.attr( "aria-disabled", value );
     185
     186                // Support: IE8 Only
     187                // #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
     188                // so we need to add the disabled class to the headers and panels
     189                this._toggleClass( null, "ui-state-disabled", !!value );
     190                this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
     191                        !!value );
     192        },
     193
     194        _keydown: function( event ) {
     195                if ( event.altKey || event.ctrlKey ) {
     196                        return;
     197                }
     198
     199                var keyCode = $.ui.keyCode,
     200                        length = this.headers.length,
     201                        currentIndex = this.headers.index( event.target ),
     202                        toFocus = false;
     203
     204                switch ( event.keyCode ) {
     205                case keyCode.RIGHT:
     206                case keyCode.DOWN:
     207                        toFocus = this.headers[ ( currentIndex + 1 ) % length ];
     208                        break;
     209                case keyCode.LEFT:
     210                case keyCode.UP:
     211                        toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
     212                        break;
     213                case keyCode.SPACE:
     214                case keyCode.ENTER:
     215                        this._eventHandler( event );
     216                        break;
     217                case keyCode.HOME:
     218                        toFocus = this.headers[ 0 ];
     219                        break;
     220                case keyCode.END:
     221                        toFocus = this.headers[ length - 1 ];
     222                        break;
     223                }
     224
     225                if ( toFocus ) {
     226                        $( event.target ).attr( "tabIndex", -1 );
     227                        $( toFocus ).attr( "tabIndex", 0 );
     228                        $( toFocus ).trigger( "focus" );
     229                        event.preventDefault();
     230                }
     231        },
     232
     233        _panelKeyDown: function( event ) {
     234                if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
     235                        $( event.currentTarget ).prev().trigger( "focus" );
     236                }
     237        },
     238
     239        refresh: function() {
     240                var options = this.options;
     241                this._processPanels();
     242
     243                // Was collapsed or no panel
     244                if ( ( options.active === false && options.collapsible === true ) ||
     245                                !this.headers.length ) {
     246                        options.active = false;
     247                        this.active = $();
     248
     249                // active false only when collapsible is true
     250                } else if ( options.active === false ) {
     251                        this._activate( 0 );
     252
     253                // was active, but active panel is gone
     254                } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
     255
     256                        // all remaining panel are disabled
     257                        if ( this.headers.length === this.headers.find( ".ui-state-disabled" ).length ) {
     258                                options.active = false;
     259                                this.active = $();
     260
     261                        // activate previous panel
     262                        } else {
     263                                this._activate( Math.max( 0, options.active - 1 ) );
     264                        }
     265
     266                // was active, active panel still exists
     267                } else {
     268
     269                        // make sure active index is correct
     270                        options.active = this.headers.index( this.active );
     271                }
     272
     273                this._destroyIcons();
     274
     275                this._refresh();
     276        },
     277
     278        _processPanels: function() {
     279                var prevHeaders = this.headers,
     280                        prevPanels = this.panels;
     281
     282                this.headers = this.element.find( this.options.header );
     283                this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed",
     284                        "ui-state-default" );
     285
     286                this.panels = this.headers.next().filter( ":not(.ui-accordion-content-active)" ).hide();
     287                this._addClass( this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content" );
     288
     289                // Avoid memory leaks (#10056)
     290                if ( prevPanels ) {
     291                        this._off( prevHeaders.not( this.headers ) );
     292                        this._off( prevPanels.not( this.panels ) );
     293                }
     294        },
     295
     296        _refresh: function() {
     297                var maxHeight,
     298                        options = this.options,
     299                        heightStyle = options.heightStyle,
     300                        parent = this.element.parent();
     301
     302                this.active = this._findActive( options.active );
     303                this._addClass( this.active, "ui-accordion-header-active", "ui-state-active" )
     304                        ._removeClass( this.active, "ui-accordion-header-collapsed" );
     305                this._addClass( this.active.next(), "ui-accordion-content-active" );
     306                this.active.next().show();
     307
     308                this.headers
     309                        .attr( "role", "tab" )
     310                        .each( function() {
     311                                var header = $( this ),
     312                                        headerId = header.uniqueId().attr( "id" ),
     313                                        panel = header.next(),
     314                                        panelId = panel.uniqueId().attr( "id" );
     315                                header.attr( "aria-controls", panelId );
     316                                panel.attr( "aria-labelledby", headerId );
     317                        } )
     318                        .next()
     319                                .attr( "role", "tabpanel" );
     320
     321                this.headers
     322                        .not( this.active )
     323                                .attr( {
     324                                        "aria-selected": "false",
     325                                        "aria-expanded": "false",
     326                                        tabIndex: -1
     327                                } )
     328                                .next()
     329                                        .attr( {
     330                                                "aria-hidden": "true"
     331                                        } )
     332                                        .hide();
     333
     334                // Make sure at least one header is in the tab order
     335                if ( !this.active.length ) {
     336                        this.headers.eq( 0 ).attr( "tabIndex", 0 );
     337                } else {
     338                        this.active.attr( {
     339                                "aria-selected": "true",
     340                                "aria-expanded": "true",
     341                                tabIndex: 0
     342                        } )
     343                                .next()
     344                                        .attr( {
     345                                                "aria-hidden": "false"
     346                                        } );
     347                }
     348
     349                this._createIcons();
     350
     351                this._setupEvents( options.event );
     352
     353                if ( heightStyle === "fill" ) {
     354                        maxHeight = parent.height();
     355                        this.element.siblings( ":visible" ).each( function() {
     356                                var elem = $( this ),
     357                                        position = elem.css( "position" );
     358
     359                                if ( position === "absolute" || position === "fixed" ) {
     360                                        return;
     361                                }
     362                                maxHeight -= elem.outerHeight( true );
     363                        } );
     364
     365                        this.headers.each( function() {
     366                                maxHeight -= $( this ).outerHeight( true );
     367                        } );
     368
     369                        this.headers.next()
     370                                .each( function() {
     371                                        $( this ).height( Math.max( 0, maxHeight -
     372                                                $( this ).innerHeight() + $( this ).height() ) );
     373                                } )
     374                                .css( "overflow", "auto" );
     375                } else if ( heightStyle === "auto" ) {
     376                        maxHeight = 0;
     377                        this.headers.next()
     378                                .each( function() {
     379                                        var isVisible = $( this ).is( ":visible" );
     380                                        if ( !isVisible ) {
     381                                                $( this ).show();
     382                                        }
     383                                        maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
     384                                        if ( !isVisible ) {
     385                                                $( this ).hide();
     386                                        }
     387                                } )
     388                                .height( maxHeight );
     389                }
     390        },
     391
     392        _activate: function( index ) {
     393                var active = this._findActive( index )[ 0 ];
     394
     395                // Trying to activate the already active panel
     396                if ( active === this.active[ 0 ] ) {
     397                        return;
     398                }
     399
     400                // Trying to collapse, simulate a click on the currently active header
     401                active = active || this.active[ 0 ];
     402
     403                this._eventHandler( {
     404                        target: active,
     405                        currentTarget: active,
     406                        preventDefault: $.noop
     407                } );
     408        },
     409
     410        _findActive: function( selector ) {
     411                return typeof selector === "number" ? this.headers.eq( selector ) : $();
     412        },
     413
     414        _setupEvents: function( event ) {
     415                var events = {
     416                        keydown: "_keydown"
     417                };
     418                if ( event ) {
     419                        $.each( event.split( " " ), function( index, eventName ) {
     420                                events[ eventName ] = "_eventHandler";
     421                        } );
     422                }
     423
     424                this._off( this.headers.add( this.headers.next() ) );
     425                this._on( this.headers, events );
     426                this._on( this.headers.next(), { keydown: "_panelKeyDown" } );
     427                this._hoverable( this.headers );
     428                this._focusable( this.headers );
     429        },
     430
     431        _eventHandler: function( event ) {
     432                var activeChildren, clickedChildren,
     433                        options = this.options,
     434                        active = this.active,
     435                        clicked = $( event.currentTarget ),
     436                        clickedIsActive = clicked[ 0 ] === active[ 0 ],
     437                        collapsing = clickedIsActive && options.collapsible,
     438                        toShow = collapsing ? $() : clicked.next(),
     439                        toHide = active.next(),
     440                        eventData = {
     441                                oldHeader: active,
     442                                oldPanel: toHide,
     443                                newHeader: collapsing ? $() : clicked,
     444                                newPanel: toShow
     445                        };
     446
     447                event.preventDefault();
     448
     449                if (
     450
     451                                // click on active header, but not collapsible
     452                                ( clickedIsActive && !options.collapsible ) ||
     453
     454                                // allow canceling activation
     455                                ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
     456                        return;
     457                }
     458
     459                options.active = collapsing ? false : this.headers.index( clicked );
     460
     461                // When the call to ._toggle() comes after the class changes
     462                // it causes a very odd bug in IE 8 (see #6720)
     463                this.active = clickedIsActive ? $() : clicked;
     464                this._toggle( eventData );
     465
     466                // Switch classes
     467                // corner classes on the previously active header stay after the animation
     468                this._removeClass( active, "ui-accordion-header-active", "ui-state-active" );
     469                if ( options.icons ) {
     470                        activeChildren = active.children( ".ui-accordion-header-icon" );
     471                        this._removeClass( activeChildren, null, options.icons.activeHeader )
     472                                ._addClass( activeChildren, null, options.icons.header );
     473                }
     474
     475                if ( !clickedIsActive ) {
     476                        this._removeClass( clicked, "ui-accordion-header-collapsed" )
     477                                ._addClass( clicked, "ui-accordion-header-active", "ui-state-active" );
     478                        if ( options.icons ) {
     479                                clickedChildren = clicked.children( ".ui-accordion-header-icon" );
     480                                this._removeClass( clickedChildren, null, options.icons.header )
     481                                        ._addClass( clickedChildren, null, options.icons.activeHeader );
     482                        }
     483
     484                        this._addClass( clicked.next(), "ui-accordion-content-active" );
     485                }
     486        },
     487
     488        _toggle: function( data ) {
     489                var toShow = data.newPanel,
     490                        toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
     491
     492                // Handle activating a panel during the animation for another activation
     493                this.prevShow.add( this.prevHide ).stop( true, true );
     494                this.prevShow = toShow;
     495                this.prevHide = toHide;
     496
     497                if ( this.options.animate ) {
     498                        this._animate( toShow, toHide, data );
     499                } else {
     500                        toHide.hide();
     501                        toShow.show();
     502                        this._toggleComplete( data );
     503                }
     504
     505                toHide.attr( {
     506                        "aria-hidden": "true"
     507                } );
     508                toHide.prev().attr( {
     509                        "aria-selected": "false",
     510                        "aria-expanded": "false"
     511                } );
     512
     513                // if we're switching panels, remove the old header from the tab order
     514                // if we're opening from collapsed state, remove the previous header from the tab order
     515                // if we're collapsing, then keep the collapsing header in the tab order
     516                if ( toShow.length && toHide.length ) {
     517                        toHide.prev().attr( {
     518                                "tabIndex": -1,
     519                                "aria-expanded": "false"
     520                        } );
     521                } else if ( toShow.length ) {
     522                        this.headers.filter( function() {
     523                                return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
     524                        } )
     525                                .attr( "tabIndex", -1 );
     526                }
     527
     528                toShow
     529                        .attr( "aria-hidden", "false" )
     530                        .prev()
     531                                .attr( {
     532                                        "aria-selected": "true",
     533                                        "aria-expanded": "true",
     534                                        tabIndex: 0
     535                                } );
     536        },
     537
     538        _animate: function( toShow, toHide, data ) {
     539                var total, easing, duration,
     540                        that = this,
     541                        adjust = 0,
     542                        boxSizing = toShow.css( "box-sizing" ),
     543                        down = toShow.length &&
     544                                ( !toHide.length || ( toShow.index() < toHide.index() ) ),
     545                        animate = this.options.animate || {},
     546                        options = down && animate.down || animate,
     547                        complete = function() {
     548                                that._toggleComplete( data );
     549                        };
     550
     551                if ( typeof options === "number" ) {
     552                        duration = options;
     553                }
     554                if ( typeof options === "string" ) {
     555                        easing = options;
     556                }
     557
     558                // fall back from options to animation in case of partial down settings
     559                easing = easing || options.easing || animate.easing;
     560                duration = duration || options.duration || animate.duration;
     561
     562                if ( !toHide.length ) {
     563                        return toShow.animate( this.showProps, duration, easing, complete );
     564                }
     565                if ( !toShow.length ) {
     566                        return toHide.animate( this.hideProps, duration, easing, complete );
     567                }
     568
     569                total = toShow.show().outerHeight();
     570                toHide.animate( this.hideProps, {
     571                        duration: duration,
     572                        easing: easing,
     573                        step: function( now, fx ) {
     574                                fx.now = Math.round( now );
     575                        }
     576                } );
     577                toShow
     578                        .hide()
     579                        .animate( this.showProps, {
     580                                duration: duration,
     581                                easing: easing,
     582                                complete: complete,
     583                                step: function( now, fx ) {
     584                                        fx.now = Math.round( now );
     585                                        if ( fx.prop !== "height" ) {
     586                                                if ( boxSizing === "content-box" ) {
     587                                                        adjust += fx.now;
     588                                                }
     589                                        } else if ( that.options.heightStyle !== "content" ) {
     590                                                fx.now = Math.round( total - toHide.outerHeight() - adjust );
     591                                                adjust = 0;
     592                                        }
     593                                }
     594                        } );
     595        },
     596
     597        _toggleComplete: function( data ) {
     598                var toHide = data.oldPanel,
     599                        prev = toHide.prev();
     600
     601                this._removeClass( toHide, "ui-accordion-content-active" );
     602                this._removeClass( prev, "ui-accordion-header-active" )
     603                        ._addClass( prev, "ui-accordion-header-collapsed" );
     604
     605                // Work around for rendering bug in IE (#5421)
     606                if ( toHide.length ) {
     607                        toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
     608                }
     609                this._trigger( "activate", null, data );
     610        }
     611} );
     612
     613} ) );
  • src/js/_enqueues/vendor/jquery/ui/autocomplete.js

    Property changes on: src/js/_enqueues/vendor/jquery/ui/accordion.js
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1/*!
     2 * jQuery UI Autocomplete 1.12.1
     3 * http://jqueryui.com
     4 *
     5 * Copyright jQuery Foundation and other contributors
     6 * Released under the MIT license.
     7 * http://jquery.org/license
     8 */
     9
     10//>>label: Autocomplete
     11//>>group: Widgets
     12//>>description: Lists suggested words as the user is typing.
     13//>>docs: http://api.jqueryui.com/autocomplete/
     14//>>demos: http://jqueryui.com/autocomplete/
     15//>>css.structure: ../../themes/base/core.css
     16//>>css.structure: ../../themes/base/autocomplete.css
     17//>>css.theme: ../../themes/base/theme.css
     18
     19( function( factory ) {
     20        if ( typeof define === "function" && define.amd ) {
     21
     22                // AMD. Register as an anonymous module.
     23                define( [
     24                        "jquery",
     25                        "./menu",
     26                        "./keycode",
     27                        "./position",
     28                        "./safe-active-element",
     29                        "./version",
     30                        "./widget"
     31                ], factory );
     32        } else {
     33
     34                // Browser globals
     35                factory( jQuery );
     36        }
     37}( function( $ ) {
     38
     39$.widget( "ui.autocomplete", {
     40        version: "1.12.1",
     41        defaultElement: "<input>",
     42        options: {
     43                appendTo: null,
     44                autoFocus: false,
     45                delay: 300,
     46                minLength: 1,
     47                position: {
     48                        my: "left top",
     49                        at: "left bottom",
     50                        collision: "none"
     51                },
     52                source: null,
     53
     54                // Callbacks
     55                change: null,
     56                close: null,
     57                focus: null,
     58                open: null,
     59                response: null,
     60                search: null,
     61                select: null
     62        },
     63
     64        requestIndex: 0,
     65        pending: 0,
     66
     67        _create: function() {
     68
     69                // Some browsers only repeat keydown events, not keypress events,
     70                // so we use the suppressKeyPress flag to determine if we've already
     71                // handled the keydown event. #7269
     72                // Unfortunately the code for & in keypress is the same as the up arrow,
     73                // so we use the suppressKeyPressRepeat flag to avoid handling keypress
     74                // events when we know the keydown event was used to modify the
     75                // search term. #7799
     76                var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
     77                        nodeName = this.element[ 0 ].nodeName.toLowerCase(),
     78                        isTextarea = nodeName === "textarea",
     79                        isInput = nodeName === "input";
     80
     81                // Textareas are always multi-line
     82                // Inputs are always single-line, even if inside a contentEditable element
     83                // IE also treats inputs as contentEditable
     84                // All other element types are determined by whether or not they're contentEditable
     85                this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element );
     86
     87                this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
     88                this.isNewMenu = true;
     89
     90                this._addClass( "ui-autocomplete-input" );
     91                this.element.attr( "autocomplete", "off" );
     92
     93                this._on( this.element, {
     94                        keydown: function( event ) {
     95                                if ( this.element.prop( "readOnly" ) ) {
     96                                        suppressKeyPress = true;
     97                                        suppressInput = true;
     98                                        suppressKeyPressRepeat = true;
     99                                        return;
     100                                }
     101
     102                                suppressKeyPress = false;
     103                                suppressInput = false;
     104                                suppressKeyPressRepeat = false;
     105                                var keyCode = $.ui.keyCode;
     106                                switch ( event.keyCode ) {
     107                                case keyCode.PAGE_UP:
     108                                        suppressKeyPress = true;
     109                                        this._move( "previousPage", event );
     110                                        break;
     111                                case keyCode.PAGE_DOWN:
     112                                        suppressKeyPress = true;
     113                                        this._move( "nextPage", event );
     114                                        break;
     115                                case keyCode.UP:
     116                                        suppressKeyPress = true;
     117                                        this._keyEvent( "previous", event );
     118                                        break;
     119                                case keyCode.DOWN:
     120                                        suppressKeyPress = true;
     121                                        this._keyEvent( "next", event );
     122                                        break;
     123                                case keyCode.ENTER:
     124
     125                                        // when menu is open and has focus
     126                                        if ( this.menu.active ) {
     127
     128                                                // #6055 - Opera still allows the keypress to occur
     129                                                // which causes forms to submit
     130                                                suppressKeyPress = true;
     131                                                event.preventDefault();
     132                                                this.menu.select( event );
     133                                        }
     134                                        break;
     135                                case keyCode.TAB:
     136                                        if ( this.menu.active ) {
     137                                                this.menu.select( event );
     138                                        }
     139                                        break;
     140                                case keyCode.ESCAPE:
     141                                        if ( this.menu.element.is( ":visible" ) ) {
     142                                                if ( !this.isMultiLine ) {
     143                                                        this._value( this.term );
     144                                                }
     145                                                this.close( event );
     146
     147                                                // Different browsers have different default behavior for escape
     148                                                // Single press can mean undo or clear
     149                                                // Double press in IE means clear the whole form
     150                                                event.preventDefault();
     151                                        }
     152                                        break;
     153                                default:
     154                                        suppressKeyPressRepeat = true;
     155
     156                                        // search timeout should be triggered before the input value is changed
     157                                        this._searchTimeout( event );
     158                                        break;
     159                                }
     160                        },
     161                        keypress: function( event ) {
     162                                if ( suppressKeyPress ) {
     163                                        suppressKeyPress = false;
     164                                        if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
     165                                                event.preventDefault();
     166                                        }
     167                                        return;
     168                                }
     169                                if ( suppressKeyPressRepeat ) {
     170                                        return;
     171                                }
     172
     173                                // Replicate some key handlers to allow them to repeat in Firefox and Opera
     174                                var keyCode = $.ui.keyCode;
     175                                switch ( event.keyCode ) {
     176                                case keyCode.PAGE_UP:
     177                                        this._move( "previousPage", event );
     178                                        break;
     179                                case keyCode.PAGE_DOWN:
     180                                        this._move( "nextPage", event );
     181                                        break;
     182                                case keyCode.UP:
     183                                        this._keyEvent( "previous", event );
     184                                        break;
     185                                case keyCode.DOWN:
     186                                        this._keyEvent( "next", event );
     187                                        break;
     188                                }
     189                        },
     190                        input: function( event ) {
     191                                if ( suppressInput ) {
     192                                        suppressInput = false;
     193                                        event.preventDefault();
     194                                        return;
     195                                }
     196                                this._searchTimeout( event );
     197                        },
     198                        focus: function() {
     199                                this.selectedItem = null;
     200                                this.previous = this._value();
     201                        },
     202                        blur: function( event ) {
     203                                if ( this.cancelBlur ) {
     204                                        delete this.cancelBlur;
     205                                        return;
     206                                }
     207
     208                                clearTimeout( this.searching );
     209                                this.close( event );
     210                                this._change( event );
     211                        }
     212                } );
     213
     214                this._initSource();
     215                this.menu = $( "<ul>" )
     216                        .appendTo( this._appendTo() )
     217                        .menu( {
     218
     219                                // disable ARIA support, the live region takes care of that
     220                                role: null
     221                        } )
     222                        .hide()
     223                        .menu( "instance" );
     224
     225                this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
     226                this._on( this.menu.element, {
     227                        mousedown: function( event ) {
     228
     229                                // prevent moving focus out of the text field
     230                                event.preventDefault();
     231
     232                                // IE doesn't prevent moving focus even with event.preventDefault()
     233                                // so we set a flag to know when we should ignore the blur event
     234                                this.cancelBlur = true;
     235                                this._delay( function() {
     236                                        delete this.cancelBlur;
     237
     238                                        // Support: IE 8 only
     239                                        // Right clicking a menu item or selecting text from the menu items will
     240                                        // result in focus moving out of the input. However, we've already received
     241                                        // and ignored the blur event because of the cancelBlur flag set above. So
     242                                        // we restore focus to ensure that the menu closes properly based on the user's
     243                                        // next actions.
     244                                        if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
     245                                                this.element.trigger( "focus" );
     246                                        }
     247                                } );
     248                        },
     249                        menufocus: function( event, ui ) {
     250                                var label, item;
     251
     252                                // support: Firefox
     253                                // Prevent accidental activation of menu items in Firefox (#7024 #9118)
     254                                if ( this.isNewMenu ) {
     255                                        this.isNewMenu = false;
     256                                        if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {
     257                                                this.menu.blur();
     258
     259                                                this.document.one( "mousemove", function() {
     260                                                        $( event.target ).trigger( event.originalEvent );
     261                                                } );
     262
     263                                                return;
     264                                        }
     265                                }
     266
     267                                item = ui.item.data( "ui-autocomplete-item" );
     268                                if ( false !== this._trigger( "focus", event, { item: item } ) ) {
     269
     270                                        // use value to match what will end up in the input, if it was a key event
     271                                        if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
     272                                                this._value( item.value );
     273                                        }
     274                                }
     275
     276                                // Announce the value in the liveRegion
     277                                label = ui.item.attr( "aria-label" ) || item.value;
     278                                if ( label && $.trim( label ).length ) {
     279                                        this.liveRegion.children().hide();
     280                                        $( "<div>" ).text( label ).appendTo( this.liveRegion );
     281                                }
     282                        },
     283                        menuselect: function( event, ui ) {
     284                                var item = ui.item.data( "ui-autocomplete-item" ),
     285                                        previous = this.previous;
     286
     287                                // Only trigger when focus was lost (click on menu)
     288                                if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
     289                                        this.element.trigger( "focus" );
     290                                        this.previous = previous;
     291
     292                                        // #6109 - IE triggers two focus events and the second
     293                                        // is asynchronous, so we need to reset the previous
     294                                        // term synchronously and asynchronously :-(
     295                                        this._delay( function() {
     296                                                this.previous = previous;
     297                                                this.selectedItem = item;
     298                                        } );
     299                                }
     300
     301                                if ( false !== this._trigger( "select", event, { item: item } ) ) {
     302                                        this._value( item.value );
     303                                }
     304
     305                                // reset the term after the select event
     306                                // this allows custom select handling to work properly
     307                                this.term = this._value();
     308
     309                                this.close( event );
     310                                this.selectedItem = item;
     311                        }
     312                } );
     313
     314                this.liveRegion = $( "<div>", {
     315                        role: "status",
     316                        "aria-live": "assertive",
     317                        "aria-relevant": "additions"
     318                } )
     319                        .appendTo( this.document[ 0 ].body );
     320
     321                this._addClass( this.liveRegion, null, "ui-helper-hidden-accessible" );
     322
     323                // Turning off autocomplete prevents the browser from remembering the
     324                // value when navigating through history, so we re-enable autocomplete
     325                // if the page is unloaded before the widget is destroyed. #7790
     326                this._on( this.window, {
     327                        beforeunload: function() {
     328                                this.element.removeAttr( "autocomplete" );
     329                        }
     330                } );
     331        },
     332
     333        _destroy: function() {
     334                clearTimeout( this.searching );
     335                this.element.removeAttr( "autocomplete" );
     336                this.menu.element.remove();
     337                this.liveRegion.remove();
     338        },
     339
     340        _setOption: function( key, value ) {
     341                this._super( key, value );
     342                if ( key === "source" ) {
     343                        this._initSource();
     344                }
     345                if ( key === "appendTo" ) {
     346                        this.menu.element.appendTo( this._appendTo() );
     347                }
     348                if ( key === "disabled" && value && this.xhr ) {
     349                        this.xhr.abort();
     350                }
     351        },
     352
     353        _isEventTargetInWidget: function( event ) {
     354                var menuElement = this.menu.element[ 0 ];
     355
     356                return event.target === this.element[ 0 ] ||
     357                        event.target === menuElement ||
     358                        $.contains( menuElement, event.target );
     359        },
     360
     361        _closeOnClickOutside: function( event ) {
     362                if ( !this._isEventTargetInWidget( event ) ) {
     363                        this.close();
     364                }
     365        },
     366
     367        _appendTo: function() {
     368                var element = this.options.appendTo;
     369
     370                if ( element ) {
     371                        element = element.jquery || element.nodeType ?
     372                                $( element ) :
     373                                this.document.find( element ).eq( 0 );
     374                }
     375
     376                if ( !element || !element[ 0 ] ) {
     377                        element = this.element.closest( ".ui-front, dialog" );
     378                }
     379
     380                if ( !element.length ) {
     381                        element = this.document[ 0 ].body;
     382                }
     383
     384                return element;
     385        },
     386
     387        _initSource: function() {
     388                var array, url,
     389                        that = this;
     390                if ( $.isArray( this.options.source ) ) {
     391                        array = this.options.source;
     392                        this.source = function( request, response ) {
     393                                response( $.ui.autocomplete.filter( array, request.term ) );
     394                        };
     395                } else if ( typeof this.options.source === "string" ) {
     396                        url = this.options.source;
     397                        this.source = function( request, response ) {
     398                                if ( that.xhr ) {
     399                                        that.xhr.abort();
     400                                }
     401                                that.xhr = $.ajax( {
     402                                        url: url,
     403                                        data: request,
     404                                        dataType: "json",
     405                                        success: function( data ) {
     406                                                response( data );
     407                                        },
     408                                        error: function() {
     409                                                response( [] );
     410                                        }
     411                                } );
     412                        };
     413                } else {
     414                        this.source = this.options.source;
     415                }
     416        },
     417
     418        _searchTimeout: function( event ) {
     419                clearTimeout( this.searching );
     420                this.searching = this._delay( function() {
     421
     422                        // Search if the value has changed, or if the user retypes the same value (see #7434)
     423                        var equalValues = this.term === this._value(),
     424                                menuVisible = this.menu.element.is( ":visible" ),
     425                                modifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
     426
     427                        if ( !equalValues || ( equalValues && !menuVisible && !modifierKey ) ) {
     428                                this.selectedItem = null;
     429                                this.search( null, event );
     430                        }
     431                }, this.options.delay );
     432        },
     433
     434        search: function( value, event ) {
     435                value = value != null ? value : this._value();
     436
     437                // Always save the actual value, not the one passed as an argument
     438                this.term = this._value();
     439
     440                if ( value.length < this.options.minLength ) {
     441                        return this.close( event );
     442                }
     443
     444                if ( this._trigger( "search", event ) === false ) {
     445                        return;
     446                }
     447
     448                return this._search( value );
     449        },
     450
     451        _search: function( value ) {
     452                this.pending++;
     453                this._addClass( "ui-autocomplete-loading" );
     454                this.cancelSearch = false;
     455
     456                this.source( { term: value }, this._response() );
     457        },
     458
     459        _response: function() {
     460                var index = ++this.requestIndex;
     461
     462                return $.proxy( function( content ) {
     463                        if ( index === this.requestIndex ) {
     464                                this.__response( content );
     465                        }
     466
     467                        this.pending--;
     468                        if ( !this.pending ) {
     469                                this._removeClass( "ui-autocomplete-loading" );
     470                        }
     471                }, this );
     472        },
     473
     474        __response: function( content ) {
     475                if ( content ) {
     476                        content = this._normalize( content );
     477                }
     478                this._trigger( "response", null, { content: content } );
     479                if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {
     480                        this._suggest( content );
     481                        this._trigger( "open" );
     482                } else {
     483
     484                        // use ._close() instead of .close() so we don't cancel future searches
     485                        this._close();
     486                }
     487        },
     488
     489        close: function( event ) {
     490                this.cancelSearch = true;
     491                this._close( event );
     492        },
     493
     494        _close: function( event ) {
     495
     496                // Remove the handler that closes the menu on outside clicks
     497                this._off( this.document, "mousedown" );
     498
     499                if ( this.menu.element.is( ":visible" ) ) {
     500                        this.menu.element.hide();
     501                        this.menu.blur();
     502                        this.isNewMenu = true;
     503                        this._trigger( "close", event );
     504                }
     505        },
     506
     507        _change: function( event ) {
     508                if ( this.previous !== this._value() ) {
     509                        this._trigger( "change", event, { item: this.selectedItem } );
     510                }
     511        },
     512
     513        _normalize: function( items ) {
     514
     515                // assume all items have the right format when the first item is complete
     516                if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
     517                        return items;
     518                }
     519                return $.map( items, function( item ) {
     520                        if ( typeof item === "string" ) {
     521                                return {
     522                                        label: item,
     523                                        value: item
     524                                };
     525                        }
     526                        return $.extend( {}, item, {
     527                                label: item.label || item.value,
     528                                value: item.value || item.label
     529                        } );
     530                } );
     531        },
     532
     533        _suggest: function( items ) {
     534                var ul = this.menu.element.empty();
     535                this._renderMenu( ul, items );
     536                this.isNewMenu = true;
     537                this.menu.refresh();
     538
     539                // Size and position menu
     540                ul.show();
     541                this._resizeMenu();
     542                ul.position( $.extend( {
     543                        of: this.element
     544                }, this.options.position ) );
     545
     546                if ( this.options.autoFocus ) {
     547                        this.menu.next();
     548                }
     549
     550                // Listen for interactions outside of the widget (#6642)
     551                this._on( this.document, {
     552                        mousedown: "_closeOnClickOutside"
     553                } );
     554        },
     555
     556        _resizeMenu: function() {
     557                var ul = this.menu.element;
     558                ul.outerWidth( Math.max(
     559
     560                        // Firefox wraps long text (possibly a rounding bug)
     561                        // so we add 1px to avoid the wrapping (#7513)
     562                        ul.width( "" ).outerWidth() + 1,
     563                        this.element.outerWidth()
     564                ) );
     565        },
     566
     567        _renderMenu: function( ul, items ) {
     568                var that = this;
     569                $.each( items, function( index, item ) {
     570                        that._renderItemData( ul, item );
     571                } );
     572        },
     573
     574        _renderItemData: function( ul, item ) {
     575                return this._renderItem( ul, item ).data( "ui-autocomplete-item", item );
     576        },
     577
     578        _renderItem: function( ul, item ) {
     579                return $( "<li>" )
     580                        .append( $( "<div>" ).text( item.label ) )
     581                        .appendTo( ul );
     582        },
     583
     584        _move: function( direction, event ) {
     585                if ( !this.menu.element.is( ":visible" ) ) {
     586                        this.search( null, event );
     587                        return;
     588                }
     589                if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
     590                                this.menu.isLastItem() && /^next/.test( direction ) ) {
     591
     592                        if ( !this.isMultiLine ) {
     593                                this._value( this.term );
     594                        }
     595
     596                        this.menu.blur();
     597                        return;
     598                }
     599                this.menu[ direction ]( event );
     600        },
     601
     602        widget: function() {
     603                return this.menu.element;
     604        },
     605
     606        _value: function() {
     607                return this.valueMethod.apply( this.element, arguments );
     608        },
     609
     610        _keyEvent: function( keyEvent, event ) {
     611                if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
     612                        this._move( keyEvent, event );
     613
     614                        // Prevents moving cursor to beginning/end of the text field in some browsers
     615                        event.preventDefault();
     616                }
     617        },
     618
     619        // Support: Chrome <=50
     620        // We should be able to just use this.element.prop( "isContentEditable" )
     621        // but hidden elements always report false in Chrome.
     622        // https://code.google.com/p/chromium/issues/detail?id=313082
     623        _isContentEditable: function( element ) {
     624                if ( !element.length ) {
     625                        return false;
     626                }
     627
     628                var editable = element.prop( "contentEditable" );
     629
     630                if ( editable === "inherit" ) {
     631                  return this._isContentEditable( element.parent() );
     632                }
     633
     634                return editable === "true";
     635        }
     636} );
     637
     638$.extend( $.ui.autocomplete, {
     639        escapeRegex: function( value ) {
     640                return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
     641        },
     642        filter: function( array, term ) {
     643                var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
     644                return $.grep( array, function( value ) {
     645                        return matcher.test( value.label || value.value || value );
     646                } );
     647        }
     648} );
     649
     650// Live region extension, adding a `messages` option
     651// NOTE: This is an experimental API. We are still investigating
     652// a full solution for string manipulation and internationalization.
     653$.widget( "ui.autocomplete", $.ui.autocomplete, {
     654        options: {
     655                messages: {
     656                        noResults: "No search results.",
     657                        results: function( amount ) {
     658                                return amount + ( amount > 1 ? " results are" : " result is" ) +
     659                                        " available, use up and down arrow keys to navigate.";
     660                        }
     661                }
     662        },
     663
     664        __response: function( content ) {
     665                var message;
     666                this._superApply( arguments );
     667                if ( this.options.disabled || this.cancelSearch ) {
     668                        return;
     669                }
     670                if ( content && content.length ) {
     671                        message = this.options.messages.results( content.length );
     672                } else {
     673                        message = this.options.messages.noResults;
     674                }
     675                this.liveRegion.children().hide();
     676                $( "<div>" ).text( message ).appendTo( this.liveRegion );
     677        }
     678} );
     679
     680return $.ui.autocomplete;
     681
     682} ) );
  • src/js/_enqueues/vendor/jquery/ui/button.js

    Property changes on: src/js/_enqueues/vendor/jquery/ui/autocomplete.js
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1/*!
     2 * jQuery UI Button 1.12.1
     3 * http://jqueryui.com
     4 *
     5 * Copyright jQuery Foundation and other contributors
     6 * Released under the MIT license.
     7 * http://jquery.org/license
     8 */
     9
     10//>>label: Button
     11//>>group: Widgets
     12//>>description: Enhances a form with themeable buttons.
     13//>>docs: http://api.jqueryui.com/button/
     14//>>demos: http://jqueryui.com/button/
     15//>>css.structure: ../../themes/base/core.css
     16//>>css.structure: ../../themes/base/button.css
     17//>>css.theme: ../../themes/base/theme.css
     18
     19( function( factory ) {
     20        if ( typeof define === "function" && define.amd ) {
     21
     22                // AMD. Register as an anonymous module.
     23                define( [
     24                        "jquery",
     25
     26                        // These are only for backcompat
     27                        // TODO: Remove after 1.12
     28                        "./controlgroup",
     29                        "./checkboxradio",
     30
     31                        "./keycode",
     32                        "./widget"
     33                ], factory );
     34        } else {
     35
     36                // Browser globals
     37                factory( jQuery );
     38        }
     39}( function( $ ) {
     40
     41$.widget( "ui.button", {
     42        version: "1.12.1",
     43        defaultElement: "<button>",
     44        options: {
     45                classes: {
     46                        "ui-button": "ui-corner-all"
     47                },
     48                disabled: null,
     49                icon: null,
     50                iconPosition: "beginning",
     51                label: null,
     52                showLabel: true
     53        },
     54
     55        _getCreateOptions: function() {
     56                var disabled,
     57
     58                        // This is to support cases like in jQuery Mobile where the base widget does have
     59                        // an implementation of _getCreateOptions
     60                        options = this._super() || {};
     61
     62                this.isInput = this.element.is( "input" );
     63
     64                disabled = this.element[ 0 ].disabled;
     65                if ( disabled != null ) {
     66                        options.disabled = disabled;
     67                }
     68
     69                this.originalLabel = this.isInput ? this.element.val() : this.element.html();
     70                if ( this.originalLabel ) {
     71                        options.label = this.originalLabel;
     72                }
     73
     74                return options;
     75        },
     76
     77        _create: function() {
     78                if ( !this.option.showLabel & !this.options.icon ) {
     79                        this.options.showLabel = true;
     80                }
     81
     82                // We have to check the option again here even though we did in _getCreateOptions,
     83                // because null may have been passed on init which would override what was set in
     84                // _getCreateOptions
     85                if ( this.options.disabled == null ) {
     86                        this.options.disabled = this.element[ 0 ].disabled || false;
     87                }
     88
     89                this.hasTitle = !!this.element.attr( "title" );
     90
     91                // Check to see if the label needs to be set or if its already correct
     92                if ( this.options.label && this.options.label !== this.originalLabel ) {
     93                        if ( this.isInput ) {
     94                                this.element.val( this.options.label );
     95                        } else {
     96                                this.element.html( this.options.label );
     97                        }
     98                }
     99                this._addClass( "ui-button", "ui-widget" );
     100                this._setOption( "disabled", this.options.disabled );
     101                this._enhance();
     102
     103                if ( this.element.is( "a" ) ) {
     104                        this._on( {
     105                                "keyup": function( event ) {
     106                                        if ( event.keyCode === $.ui.keyCode.SPACE ) {
     107                                                event.preventDefault();
     108
     109                                                // Support: PhantomJS <= 1.9, IE 8 Only
     110                                                // If a native click is available use it so we actually cause navigation
     111                                                // otherwise just trigger a click event
     112                                                if ( this.element[ 0 ].click ) {
     113                                                        this.element[ 0 ].click();
     114                                                } else {
     115                                                        this.element.trigger( "click" );
     116                                                }
     117                                        }
     118                                }
     119                        } );
     120                }
     121        },
     122
     123        _enhance: function() {
     124                if ( !this.element.is( "button" ) ) {
     125                        this.element.attr( "role", "button" );
     126                }
     127
     128                if ( this.options.icon ) {
     129                        this._updateIcon( "icon", this.options.icon );
     130                        this._updateTooltip();
     131                }
     132        },
     133
     134        _updateTooltip: function() {
     135                this.title = this.element.attr( "title" );
     136
     137                if ( !this.options.showLabel && !this.title ) {
     138                        this.element.attr( "title", this.options.label );
     139                }
     140        },
     141
     142        _updateIcon: function( option, value ) {
     143                var icon = option !== "iconPosition",
     144                        position = icon ? this.options.iconPosition : value,
     145                        displayBlock = position === "top" || position === "bottom";
     146
     147                // Create icon
     148                if ( !this.icon ) {
     149                        this.icon = $( "<span>" );
     150
     151                        this._addClass( this.icon, "ui-button-icon", "ui-icon" );
     152
     153                        if ( !this.options.showLabel ) {
     154                                this._addClass( "ui-button-icon-only" );
     155                        }
     156                } else if ( icon ) {
     157
     158                        // If we are updating the icon remove the old icon class
     159                        this._removeClass( this.icon, null, this.options.icon );
     160                }
     161
     162                // If we are updating the icon add the new icon class
     163                if ( icon ) {
     164                        this._addClass( this.icon, null, value );
     165                }
     166
     167                this._attachIcon( position );
     168
     169                // If the icon is on top or bottom we need to add the ui-widget-icon-block class and remove
     170                // the iconSpace if there is one.
     171                if ( displayBlock ) {
     172                        this._addClass( this.icon, null, "ui-widget-icon-block" );
     173                        if ( this.iconSpace ) {
     174                                this.iconSpace.remove();
     175                        }
     176                } else {
     177
     178                        // Position is beginning or end so remove the ui-widget-icon-block class and add the
     179                        // space if it does not exist
     180                        if ( !this.iconSpace ) {
     181                                this.iconSpace = $( "<span> </span>" );
     182                                this._addClass( this.iconSpace, "ui-button-icon-space" );
     183                        }
     184                        this._removeClass( this.icon, null, "ui-wiget-icon-block" );
     185                        this._attachIconSpace( position );
     186                }
     187        },
     188
     189        _destroy: function() {
     190                this.element.removeAttr( "role" );
     191
     192                if ( this.icon ) {
     193                        this.icon.remove();
     194                }
     195                if ( this.iconSpace ) {
     196                        this.iconSpace.remove();
     197                }
     198                if ( !this.hasTitle ) {
     199                        this.element.removeAttr( "title" );
     200                }
     201        },
     202
     203        _attachIconSpace: function( iconPosition ) {
     204                this.icon[ /^(?:end|bottom)/.test( iconPosition ) ? "before" : "after" ]( this.iconSpace );
     205        },
     206
     207        _attachIcon: function( iconPosition ) {
     208                this.element[ /^(?:end|bottom)/.test( iconPosition ) ? "append" : "prepend" ]( this.icon );
     209        },
     210
     211        _setOptions: function( options ) {
     212                var newShowLabel = options.showLabel === undefined ?
     213                                this.options.showLabel :
     214                                options.showLabel,
     215                        newIcon = options.icon === undefined ? this.options.icon : options.icon;
     216
     217                if ( !newShowLabel && !newIcon ) {
     218                        options.showLabel = true;
     219                }
     220                this._super( options );
     221        },
     222
     223        _setOption: function( key, value ) {
     224                if ( key === "icon" ) {
     225                        if ( value ) {
     226                                this._updateIcon( key, value );
     227                        } else if ( this.icon ) {
     228                                this.icon.remove();
     229                                if ( this.iconSpace ) {
     230                                        this.iconSpace.remove();
     231                                }
     232                        }
     233                }
     234
     235                if ( key === "iconPosition" ) {
     236                        this._updateIcon( key, value );
     237                }
     238
     239                // Make sure we can't end up with a button that has neither text nor icon
     240                if ( key === "showLabel" ) {
     241                                this._toggleClass( "ui-button-icon-only", null, !value );
     242                                this._updateTooltip();
     243                }
     244
     245                if ( key === "label" ) {
     246                        if ( this.isInput ) {
     247                                this.element.val( value );
     248                        } else {
     249
     250                                // If there is an icon, append it, else nothing then append the value
     251                                // this avoids removal of the icon when setting label text
     252                                this.element.html( value );
     253                                if ( this.icon ) {
     254                                        this._attachIcon( this.options.iconPosition );
     255                                        this._attachIconSpace( this.options.iconPosition );
     256                                }
     257                        }
     258                }
     259
     260                this._super( key, value );
     261
     262                if ( key === "disabled" ) {
     263                        this._toggleClass( null, "ui-state-disabled", value );
     264                        this.element[ 0 ].disabled = value;
     265                        if ( value ) {
     266                                this.element.blur();
     267                        }
     268                }
     269        },
     270
     271        refresh: function() {
     272
     273                // Make sure to only check disabled if its an element that supports this otherwise
     274                // check for the disabled class to determine state
     275                var isDisabled = this.element.is( "input, button" ) ?
     276                        this.element[ 0 ].disabled : this.element.hasClass( "ui-button-disabled" );
     277
     278                if ( isDisabled !== this.options.disabled ) {
     279                        this._setOptions( { disabled: isDisabled } );
     280                }
     281
     282                this._updateTooltip();
     283        }
     284} );
     285
     286// DEPRECATED
     287if ( $.uiBackCompat !== false ) {
     288
     289        // Text and Icons options
     290        $.widget( "ui.button", $.ui.button, {
     291                options: {
     292                        text: true,
     293                        icons: {
     294                                primary: null,
     295                                secondary: null
     296                        }
     297                },
     298
     299                _create: function() {
     300                        if ( this.options.showLabel && !this.options.text ) {
     301                                this.options.showLabel = this.options.text;
     302                        }
     303                        if ( !this.options.showLabel && this.options.text ) {
     304                                this.options.text = this.options.showLabel;
     305                        }
     306                        if ( !this.options.icon && ( this.options.icons.primary ||
     307                                        this.options.icons.secondary ) ) {
     308                                if ( this.options.icons.primary ) {
     309                                        this.options.icon = this.options.icons.primary;
     310                                } else {
     311                                        this.options.icon = this.options.icons.secondary;
     312                                        this.options.iconPosition = "end";
     313                                }
     314                        } else if ( this.options.icon ) {
     315                                this.options.icons.primary = this.options.icon;
     316                        }
     317                        this._super();
     318                },
     319
     320                _setOption: function( key, value ) {
     321                        if ( key === "text" ) {
     322                                this._super( "showLabel", value );
     323                                return;
     324                        }
     325                        if ( key === "showLabel" ) {
     326                                this.options.text = value;
     327                        }
     328                        if ( key === "icon" ) {
     329                                this.options.icons.primary = value;
     330                        }
     331                        if ( key === "icons" ) {
     332                                if ( value.primary ) {
     333                                        this._super( "icon", value.primary );
     334                                        this._super( "iconPosition", "beginning" );
     335                                } else if ( value.secondary ) {
     336                                        this._super( "icon", value.secondary );
     337                                        this._super( "iconPosition", "end" );
     338                                }
     339                        }
     340                        this._superApply( arguments );
     341                }
     342        } );
     343
     344        $.fn.button = ( function( orig ) {
     345                return function() {
     346                        if ( !this.length || ( this.length && this[ 0 ].tagName !== "INPUT" ) ||
     347                                        ( this.length && this[ 0 ].tagName === "INPUT" && (
     348                                                this.attr( "type" ) !== "checkbox" && this.attr( "type" ) !== "radio"
     349                                        ) ) ) {
     350                                return orig.apply( this, arguments );
     351                        }
     352                        if ( !$.ui.checkboxradio ) {
     353                                $.error( "Checkboxradio widget missing" );
     354                        }
     355                        if ( arguments.length === 0 ) {
     356                                return this.checkboxradio( {
     357                                        "icon": false
     358                                } );
     359                        }
     360                        return this.checkboxradio.apply( this, arguments );
     361                };
     362        } )( $.fn.button );
     363
     364        $.fn.buttonset = function() {
     365                if ( !$.ui.controlgroup ) {
     366                        $.error( "Controlgroup widget missing" );
     367                }
     368                if ( arguments[ 0 ] === "option" && arguments[ 1 ] === "items" && arguments[ 2 ] ) {
     369                        return this.controlgroup.apply( this,
     370                                [ arguments[ 0 ], "items.button", arguments[ 2 ] ] );
     371                }
     372                if ( arguments[ 0 ] === "option" && arguments[ 1 ] === "items" ) {
     373                        return this.controlgroup.apply( this, [ arguments[ 0 ], "items.button" ] );
     374                }
     375                if ( typeof arguments[ 0 ] === "object" && arguments[ 0 ].items ) {
     376                        arguments[ 0 ].items = {
     377                                button: arguments[ 0 ].items
     378                        };
     379                }
     380                return this.controlgroup.apply( this, arguments );
     381        };
     382}
     383
     384return $.ui.button;
     385
     386} ) );
  • src/js/_enqueues/vendor/jquery/ui/checkboxradio.js

    Property changes on: src/js/_enqueues/vendor/jquery/ui/button.js
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1/*!
     2 * jQuery UI Checkboxradio 1.12.1
     3 * http://jqueryui.com
     4 *
     5 * Copyright jQuery Foundation and other contributors
     6 * Released under the MIT license.
     7 * http://jquery.org/license
     8 */
     9
     10//>>label: Checkboxradio
     11//>>group: Widgets
     12//>>description: Enhances a form with multiple themeable checkboxes or radio buttons.
     13//>>docs: http://api.jqueryui.com/checkboxradio/
     14//>>demos: http://jqueryui.com/checkboxradio/
     15//>>css.structure: ../../themes/base/core.css
     16//>>css.structure: ../../themes/base/button.css
     17//>>css.structure: ../../themes/base/checkboxradio.css
     18//>>css.theme: ../../themes/base/theme.css
     19
     20( function( factory ) {
     21        if ( typeof define === "function" && define.amd ) {
     22
     23                // AMD. Register as an anonymous module.
     24                define( [
     25                        "jquery",
     26                        "./escape-selector",
     27                        "./form-reset-mixin",
     28                        "./labels",
     29                        "./widget"
     30                ], factory );
     31        } else {
     32
     33                // Browser globals
     34                factory( jQuery );
     35        }
     36}( function( $ ) {
     37
     38$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
     39        version: "1.12.1",
     40        options: {
     41                disabled: null,
     42                label: null,
     43                icon: true,
     44                classes: {
     45                        "ui-checkboxradio-label": "ui-corner-all",
     46                        "ui-checkboxradio-icon": "ui-corner-all"
     47                }
     48        },
     49
     50        _getCreateOptions: function() {
     51                var disabled, labels;
     52                var that = this;
     53                var options = this._super() || {};
     54
     55                // We read the type here, because it makes more sense to throw a element type error first,
     56                // rather then the error for lack of a label. Often if its the wrong type, it
     57                // won't have a label (e.g. calling on a div, btn, etc)
     58                this._readType();
     59
     60                labels = this.element.labels();
     61
     62                // If there are multiple labels, use the last one
     63                this.label = $( labels[ labels.length - 1 ] );
     64                if ( !this.label.length ) {
     65                        $.error( "No label found for checkboxradio widget" );
     66                }
     67
     68                this.originalLabel = "";
     69
     70                // We need to get the label text but this may also need to make sure it does not contain the
     71                // input itself.
     72                this.label.contents().not( this.element[ 0 ] ).each( function() {
     73
     74                        // The label contents could be text, html, or a mix. We concat each element to get a
     75                        // string representation of the label, without the input as part of it.
     76                        that.originalLabel += this.nodeType === 3 ? $( this ).text() : this.outerHTML;
     77                } );
     78
     79                // Set the label option if we found label text
     80                if ( this.originalLabel ) {
     81                        options.label = this.originalLabel;
     82                }
     83
     84                disabled = this.element[ 0 ].disabled;
     85                if ( disabled != null ) {
     86                        options.disabled = disabled;
     87                }
     88                return options;
     89        },
     90
     91        _create: function() {
     92                var checked = this.element[ 0 ].checked;
     93
     94                this._bindFormResetHandler();
     95
     96                if ( this.options.disabled == null ) {
     97                        this.options.disabled = this.element[ 0 ].disabled;
     98                }
     99
     100                this._setOption( "disabled", this.options.disabled );
     101                this._addClass( "ui-checkboxradio", "ui-helper-hidden-accessible" );
     102                this._addClass( this.label, "ui-checkboxradio-label", "ui-button ui-widget" );
     103
     104                if ( this.type === "radio" ) {
     105                        this._addClass( this.label, "ui-checkboxradio-radio-label" );
     106                }
     107
     108                if ( this.options.label && this.options.label !== this.originalLabel ) {
     109                        this._updateLabel();
     110                } else if ( this.originalLabel ) {
     111                        this.options.label = this.originalLabel;
     112                }
     113
     114                this._enhance();
     115
     116                if ( checked ) {
     117                        this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" );
     118                        if ( this.icon ) {
     119                                this._addClass( this.icon, null, "ui-state-hover" );
     120                        }
     121                }
     122
     123                this._on( {
     124                        change: "_toggleClasses",
     125                        focus: function() {
     126                                this._addClass( this.label, null, "ui-state-focus ui-visual-focus" );
     127                        },
     128                        blur: function() {
     129                                this._removeClass( this.label, null, "ui-state-focus ui-visual-focus" );
     130                        }
     131                } );
     132        },
     133
     134        _readType: function() {
     135                var nodeName = this.element[ 0 ].nodeName.toLowerCase();
     136                this.type = this.element[ 0 ].type;
     137                if ( nodeName !== "input" || !/radio|checkbox/.test( this.type ) ) {
     138                        $.error( "Can't create checkboxradio on element.nodeName=" + nodeName +
     139                                " and element.type=" + this.type );
     140                }
     141        },
     142
     143        // Support jQuery Mobile enhanced option
     144        _enhance: function() {
     145                this._updateIcon( this.element[ 0 ].checked );
     146        },
     147
     148        widget: function() {
     149                return this.label;
     150        },
     151
     152        _getRadioGroup: function() {
     153                var group;
     154                var name = this.element[ 0 ].name;
     155                var nameSelector = "input[name='" + $.ui.escapeSelector( name ) + "']";
     156
     157                if ( !name ) {
     158                        return $( [] );
     159                }
     160
     161                if ( this.form.length ) {
     162                        group = $( this.form[ 0 ].elements ).filter( nameSelector );
     163                } else {
     164
     165                        // Not inside a form, check all inputs that also are not inside a form
     166                        group = $( nameSelector ).filter( function() {
     167                                return $( this ).form().length === 0;
     168                        } );
     169                }
     170
     171                return group.not( this.element );
     172        },
     173
     174        _toggleClasses: function() {
     175                var checked = this.element[ 0 ].checked;
     176                this._toggleClass( this.label, "ui-checkboxradio-checked", "ui-state-active", checked );
     177
     178                if ( this.options.icon && this.type === "checkbox" ) {
     179                        this._toggleClass( this.icon, null, "ui-icon-check ui-state-checked", checked )
     180                                ._toggleClass( this.icon, null, "ui-icon-blank", !checked );
     181                }
     182
     183                if ( this.type === "radio" ) {
     184                        this._getRadioGroup()
     185                                .each( function() {
     186                                        var instance = $( this ).checkboxradio( "instance" );
     187
     188                                        if ( instance ) {
     189                                                instance._removeClass( instance.label,
     190                                                        "ui-checkboxradio-checked", "ui-state-active" );
     191                                        }
     192                                } );
     193                }
     194        },
     195
     196        _destroy: function() {
     197                this._unbindFormResetHandler();
     198
     199                if ( this.icon ) {
     200                        this.icon.remove();
     201                        this.iconSpace.remove();
     202                }
     203        },
     204
     205        _setOption: function( key, value ) {
     206
     207                // We don't allow the value to be set to nothing
     208                if ( key === "label" && !value ) {
     209                        return;
     210                }
     211
     212                this._super( key, value );
     213
     214                if ( key === "disabled" ) {
     215                        this._toggleClass( this.label, null, "ui-state-disabled", value );
     216                        this.element[ 0 ].disabled = value;
     217
     218                        // Don't refresh when setting disabled
     219                        return;
     220                }
     221                this.refresh();
     222        },
     223
     224        _updateIcon: function( checked ) {
     225                var toAdd = "ui-icon ui-icon-background ";
     226
     227                if ( this.options.icon ) {
     228                        if ( !this.icon ) {
     229                                this.icon = $( "<span>" );
     230                                this.iconSpace = $( "<span> </span>" );
     231                                this._addClass( this.iconSpace, "ui-checkboxradio-icon-space" );
     232                        }
     233
     234                        if ( this.type === "checkbox" ) {
     235                                toAdd += checked ? "ui-icon-check ui-state-checked" : "ui-icon-blank";
     236                                this._removeClass( this.icon, null, checked ? "ui-icon-blank" : "ui-icon-check" );
     237                        } else {
     238                                toAdd += "ui-icon-blank";
     239                        }
     240                        this._addClass( this.icon, "ui-checkboxradio-icon", toAdd );
     241                        if ( !checked ) {
     242                                this._removeClass( this.icon, null, "ui-icon-check ui-state-checked" );
     243                        }
     244                        this.icon.prependTo( this.label ).after( this.iconSpace );
     245                } else if ( this.icon !== undefined ) {
     246                        this.icon.remove();
     247                        this.iconSpace.remove();
     248                        delete this.icon;
     249                }
     250        },
     251
     252        _updateLabel: function() {
     253
     254                // Remove the contents of the label ( minus the icon, icon space, and input )
     255                var contents = this.label.contents().not( this.element[ 0 ] );
     256                if ( this.icon ) {
     257                        contents = contents.not( this.icon[ 0 ] );
     258                }
     259                if ( this.iconSpace ) {
     260                        contents = contents.not( this.iconSpace[ 0 ] );
     261                }
     262                contents.remove();
     263
     264                this.label.append( this.options.label );
     265        },
     266
     267        refresh: function() {
     268                var checked = this.element[ 0 ].checked,
     269                        isDisabled = this.element[ 0 ].disabled;
     270
     271                this._updateIcon( checked );
     272                this._toggleClass( this.label, "ui-checkboxradio-checked", "ui-state-active", checked );
     273                if ( this.options.label !== null ) {
     274                        this._updateLabel();
     275                }
     276
     277                if ( isDisabled !== this.options.disabled ) {
     278                        this._setOptions( { "disabled": isDisabled } );
     279                }
     280        }
     281
     282} ] );
     283
     284return $.ui.checkboxradio;
     285
     286} ) );
  • src/js/_enqueues/vendor/jquery/ui/controlgroup.js

    Property changes on: src/js/_enqueues/vendor/jquery/ui/checkboxradio.js
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1/*!
     2 * jQuery UI Controlgroup 1.12.1
     3 * http://jqueryui.com
     4 *
     5 * Copyright jQuery Foundation and other contributors
     6 * Released under the MIT license.
     7 * http://jquery.org/license
     8 */
     9
     10//>>label: Controlgroup
     11//>>group: Widgets
     12//>>description: Visually groups form control widgets
     13//>>docs: http://api.jqueryui.com/controlgroup/
     14//>>demos: http://jqueryui.com/controlgroup/
     15//>>css.structure: ../../themes/base/core.css
     16//>>css.structure: ../../themes/base/controlgroup.css
     17//>>css.theme: ../../themes/base/theme.css
     18
     19( function( factory ) {
     20        if ( typeof define === "function" && define.amd ) {
     21
     22                // AMD. Register as an anonymous module.
     23                define( [
     24                        "jquery",
     25                        "./widget"
     26                ], factory );
     27        } else {
     28
     29                // Browser globals
     30                factory( jQuery );
     31        }
     32}( function( $ ) {
     33var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
     34
     35return $.widget( "ui.controlgroup", {
     36        version: "1.12.1",
     37        defaultElement: "<div>",
     38        options: {
     39                direction: "horizontal",
     40                disabled: null,
     41                onlyVisible: true,
     42                items: {
     43                        "button": "input[type=button], input[type=submit], input[type=reset], button, a",
     44                        "controlgroupLabel": ".ui-controlgroup-label",
     45                        "checkboxradio": "input[type='checkbox'], input[type='radio']",
     46                        "selectmenu": "select",
     47                        "spinner": ".ui-spinner-input"
     48                }
     49        },
     50
     51        _create: function() {
     52                this._enhance();
     53        },
     54
     55        // To support the enhanced option in jQuery Mobile, we isolate DOM manipulation
     56        _enhance: function() {
     57                this.element.attr( "role", "toolbar" );
     58                this.refresh();
     59        },
     60
     61        _destroy: function() {
     62                this._callChildMethod( "destroy" );
     63                this.childWidgets.removeData( "ui-controlgroup-data" );
     64                this.element.removeAttr( "role" );
     65                if ( this.options.items.controlgroupLabel ) {
     66                        this.element
     67                                .find( this.options.items.controlgroupLabel )
     68                                .find( ".ui-controlgroup-label-contents" )
     69                                .contents().unwrap();
     70                }
     71        },
     72
     73        _initWidgets: function() {
     74                var that = this,
     75                        childWidgets = [];
     76
     77                // First we iterate over each of the items options
     78                $.each( this.options.items, function( widget, selector ) {
     79                        var labels;
     80                        var options = {};
     81
     82                        // Make sure the widget has a selector set
     83                        if ( !selector ) {
     84                                return;
     85                        }
     86
     87                        if ( widget === "controlgroupLabel" ) {
     88                                labels = that.element.find( selector );
     89                                labels.each( function() {
     90                                        var element = $( this );
     91
     92                                        if ( element.children( ".ui-controlgroup-label-contents" ).length ) {
     93                                                return;
     94                                        }
     95                                        element.contents()
     96                                                .wrapAll( "<span class='ui-controlgroup-label-contents'></span>" );
     97                                } );
     98                                that._addClass( labels, null, "ui-widget ui-widget-content ui-state-default" );
     99                                childWidgets = childWidgets.concat( labels.get() );
     100                                return;
     101                        }
     102
     103                        // Make sure the widget actually exists
     104                        if ( !$.fn[ widget ] ) {
     105                                return;
     106                        }
     107
     108                        // We assume everything is in the middle to start because we can't determine
     109                        // first / last elements until all enhancments are done.
     110                        if ( that[ "_" + widget + "Options" ] ) {
     111                                options = that[ "_" + widget + "Options" ]( "middle" );
     112                        } else {
     113                                options = { classes: {} };
     114                        }
     115
     116                        // Find instances of this widget inside controlgroup and init them
     117                        that.element
     118                                .find( selector )
     119                                .each( function() {
     120                                        var element = $( this );
     121                                        var instance = element[ widget ]( "instance" );
     122
     123                                        // We need to clone the default options for this type of widget to avoid
     124                                        // polluting the variable options which has a wider scope than a single widget.
     125                                        var instanceOptions = $.widget.extend( {}, options );
     126
     127                                        // If the button is the child of a spinner ignore it
     128                                        // TODO: Find a more generic solution
     129                                        if ( widget === "button" && element.parent( ".ui-spinner" ).length ) {
     130                                                return;
     131                                        }
     132
     133                                        // Create the widget if it doesn't exist
     134                                        if ( !instance ) {
     135                                                instance = element[ widget ]()[ widget ]( "instance" );
     136                                        }
     137                                        if ( instance ) {
     138                                                instanceOptions.classes =
     139                                                        that._resolveClassesValues( instanceOptions.classes, instance );
     140                                        }
     141                                        element[ widget ]( instanceOptions );
     142
     143                                        // Store an instance of the controlgroup to be able to reference
     144                                        // from the outermost element for changing options and refresh
     145                                        var widgetElement = element[ widget ]( "widget" );
     146                                        $.data( widgetElement[ 0 ], "ui-controlgroup-data",
     147                                                instance ? instance : element[ widget ]( "instance" ) );
     148
     149                                        childWidgets.push( widgetElement[ 0 ] );
     150                                } );
     151                } );
     152
     153                this.childWidgets = $( $.unique( childWidgets ) );
     154                this._addClass( this.childWidgets, "ui-controlgroup-item" );
     155        },
     156
     157        _callChildMethod: function( method ) {
     158                this.childWidgets.each( function() {
     159                        var element = $( this ),
     160                                data = element.data( "ui-controlgroup-data" );
     161                        if ( data && data[ method ] ) {
     162                                data[ method ]();
     163                        }
     164                } );
     165        },
     166
     167        _updateCornerClass: function( element, position ) {
     168                var remove = "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all";
     169                var add = this._buildSimpleOptions( position, "label" ).classes.label;
     170
     171                this._removeClass( element, null, remove );
     172                this._addClass( element, null, add );
     173        },
     174
     175        _buildSimpleOptions: function( position, key ) {
     176                var direction = this.options.direction === "vertical";
     177                var result = {
     178                        classes: {}
     179                };
     180                result.classes[ key ] = {
     181                        "middle": "",
     182                        "first": "ui-corner-" + ( direction ? "top" : "left" ),
     183                        "last": "ui-corner-" + ( direction ? "bottom" : "right" ),
     184                        "only": "ui-corner-all"
     185                }[ position ];
     186
     187                return result;
     188        },
     189
     190        _spinnerOptions: function( position ) {
     191                var options = this._buildSimpleOptions( position, "ui-spinner" );
     192
     193                options.classes[ "ui-spinner-up" ] = "";
     194                options.classes[ "ui-spinner-down" ] = "";
     195
     196                return options;
     197        },
     198
     199        _buttonOptions: function( position ) {
     200                return this._buildSimpleOptions( position, "ui-button" );
     201        },
     202
     203        _checkboxradioOptions: function( position ) {
     204                return this._buildSimpleOptions( position, "ui-checkboxradio-label" );
     205        },
     206
     207        _selectmenuOptions: function( position ) {
     208                var direction = this.options.direction === "vertical";
     209                return {
     210                        width: direction ? "auto" : false,
     211                        classes: {
     212                                middle: {
     213                                        "ui-selectmenu-button-open": "",
     214                                        "ui-selectmenu-button-closed": ""
     215                                },
     216                                first: {
     217                                        "ui-selectmenu-button-open": "ui-corner-" + ( direction ? "top" : "tl" ),
     218                                        "ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "top" : "left" )
     219                                },
     220                                last: {
     221                                        "ui-selectmenu-button-open": direction ? "" : "ui-corner-tr",
     222                                        "ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "bottom" : "right" )
     223                                },
     224                                only: {
     225                                        "ui-selectmenu-button-open": "ui-corner-top",
     226                                        "ui-selectmenu-button-closed": "ui-corner-all"
     227                                }
     228
     229                        }[ position ]
     230                };
     231        },
     232
     233        _resolveClassesValues: function( classes, instance ) {
     234                var result = {};
     235                $.each( classes, function( key ) {
     236                        var current = instance.options.classes[ key ] || "";
     237                        current = $.trim( current.replace( controlgroupCornerRegex, "" ) );
     238                        result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
     239                } );
     240                return result;
     241        },
     242
     243        _setOption: function( key, value ) {
     244                if ( key === "direction" ) {
     245                        this._removeClass( "ui-controlgroup-" + this.options.direction );
     246                }
     247
     248                this._super( key, value );
     249                if ( key === "disabled" ) {
     250                        this._callChildMethod( value ? "disable" : "enable" );
     251                        return;
     252                }
     253
     254                this.refresh();
     255        },
     256
     257        refresh: function() {
     258                var children,
     259                        that = this;
     260
     261                this._addClass( "ui-controlgroup ui-controlgroup-" + this.options.direction );
     262
     263                if ( this.options.direction === "horizontal" ) {
     264                        this._addClass( null, "ui-helper-clearfix" );
     265                }
     266                this._initWidgets();
     267
     268                children = this.childWidgets;
     269
     270                // We filter here because we need to track all childWidgets not just the visible ones
     271                if ( this.options.onlyVisible ) {
     272                        children = children.filter( ":visible" );
     273                }
     274
     275                if ( children.length ) {
     276
     277                        // We do this last because we need to make sure all enhancment is done
     278                        // before determining first and last
     279                        $.each( [ "first", "last" ], function( index, value ) {
     280                                var instance = children[ value ]().data( "ui-controlgroup-data" );
     281
     282                                if ( instance && that[ "_" + instance.widgetName + "Options" ] ) {
     283                                        var options = that[ "_" + instance.widgetName + "Options" ](
     284                                                children.length === 1 ? "only" : value
     285                                        );
     286                                        options.classes = that._resolveClassesValues( options.classes, instance );
     287                                        instance.element[ instance.widgetName ]( options );
     288                                } else {
     289                                        that._updateCornerClass( children[ value ](), value );
     290                                }
     291                        } );
     292
     293                        // Finally call the refresh method on each of the child widgets.
     294                        this._callChildMethod( "refresh" );
     295                }
     296        }
     297} );
     298} ) );
  • src/js/_enqueues/vendor/jquery/ui/core.js

    Property changes on: src/js/_enqueues/vendor/jquery/ui/controlgroup.js
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1/*! jQuery UI - v1.12.1 - 2016-09-14
     2* http://jqueryui.com
     3* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
     4* Copyright jQuery Foundation and other contributors; Licensed MIT */
     5
     6(function( factory ) {
     7        if ( typeof define === "function" && define.amd ) {
     8
     9                // AMD. Register as an anonymous module.
     10                define([ "jquery" ], factory );
     11        } else {
     12
     13                // Browser globals
     14                factory( jQuery );
     15        }
     16}(function( $ ) {
     17
     18$.ui = $.ui || {};
     19
     20var version = $.ui.version = "1.12.1";
     21
     22
     23/*!
     24 * jQuery UI Widget 1.12.1
     25 * http://jqueryui.com
     26 *
     27 * Copyright jQuery Foundation and other contributors
     28 * Released under the MIT license.
     29 * http://jquery.org/license
     30 */
     31
     32//>>label: Widget
     33//>>group: Core
     34//>>description: Provides a factory for creating stateful widgets with a common API.
     35//>>docs: http://api.jqueryui.com/jQuery.widget/
     36//>>demos: http://jqueryui.com/widget/
     37
     38
     39
     40var widgetUuid = 0;
     41var widgetSlice = Array.prototype.slice;
     42
     43$.cleanData = ( function( orig ) {
     44        return function( elems ) {
     45                var events, elem, i;
     46                for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
     47                        try {
     48
     49                                // Only trigger remove when necessary to save time
     50                                events = $._data( elem, "events" );
     51                                if ( events && events.remove ) {
     52                                        $( elem ).triggerHandler( "remove" );
     53                                }
     54
     55                        // Http://bugs.jquery.com/ticket/8235
     56                        } catch ( e ) {}
     57                }
     58                orig( elems );
     59        };
     60} )( $.cleanData );
     61
     62$.widget = function( name, base, prototype ) {
     63        var existingConstructor, constructor, basePrototype;
     64
     65        // ProxiedPrototype allows the provided prototype to remain unmodified
     66        // so that it can be used as a mixin for multiple widgets (#8876)
     67        var proxiedPrototype = {};
     68
     69        var namespace = name.split( "." )[ 0 ];
     70        name = name.split( "." )[ 1 ];
     71        var fullName = namespace + "-" + name;
     72
     73        if ( !prototype ) {
     74                prototype = base;
     75                base = $.Widget;
     76        }
     77
     78        if ( $.isArray( prototype ) ) {
     79                prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
     80        }
     81
     82        // Create selector for plugin
     83        $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
     84                return !!$.data( elem, fullName );
     85        };
     86
     87        $[ namespace ] = $[ namespace ] || {};
     88        existingConstructor = $[ namespace ][ name ];
     89        constructor = $[ namespace ][ name ] = function( options, element ) {
     90
     91                // Allow instantiation without "new" keyword
     92                if ( !this._createWidget ) {
     93                        return new constructor( options, element );
     94                }
     95
     96                // Allow instantiation without initializing for simple inheritance
     97                // must use "new" keyword (the code above always passes args)
     98                if ( arguments.length ) {
     99                        this._createWidget( options, element );
     100                }
     101        };
     102
     103        // Extend with the existing constructor to carry over any static properties
     104        $.extend( constructor, existingConstructor, {
     105                version: prototype.version,
     106
     107                // Copy the object used to create the prototype in case we need to
     108                // redefine the widget later
     109                _proto: $.extend( {}, prototype ),
     110
     111                // Track widgets that inherit from this widget in case this widget is
     112                // redefined after a widget inherits from it
     113                _childConstructors: []
     114        } );
     115
     116        basePrototype = new base();
     117
     118        // We need to make the options hash a property directly on the new instance
     119        // otherwise we'll modify the options hash on the prototype that we're
     120        // inheriting from
     121        basePrototype.options = $.widget.extend( {}, basePrototype.options );
     122        $.each( prototype, function( prop, value ) {
     123                if ( !$.isFunction( value ) ) {
     124                        proxiedPrototype[ prop ] = value;
     125                        return;
     126                }
     127                proxiedPrototype[ prop ] = ( function() {
     128                        function _super() {
     129                                return base.prototype[ prop ].apply( this, arguments );
     130                        }
     131
     132                        function _superApply( args ) {
     133                                return base.prototype[ prop ].apply( this, args );
     134                        }
     135
     136                        return function() {
     137                                var __super = this._super;
     138                                var __superApply = this._superApply;
     139                                var returnValue;
     140
     141                                this._super = _super;
     142                                this._superApply = _superApply;
     143
     144                                returnValue = value.apply( this, arguments );
     145
     146                                this._super = __super;
     147                                this._superApply = __superApply;
     148
     149                                return returnValue;
     150                        };
     151                } )();
     152        } );
     153        constructor.prototype = $.widget.extend( basePrototype, {
     154
     155                // TODO: remove support for widgetEventPrefix
     156                // always use the name + a colon as the prefix, e.g., draggable:start
     157                // don't prefix for widgets that aren't DOM-based
     158                widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name
     159        }, proxiedPrototype, {
     160                constructor: constructor,
     161                namespace: namespace,
     162                widgetName: name,
     163                widgetFullName: fullName
     164        } );
     165
     166        // If this widget is being redefined then we need to find all widgets that
     167        // are inheriting from it and redefine all of them so that they inherit from
     168        // the new version of this widget. We're essentially trying to replace one
     169        // level in the prototype chain.
     170        if ( existingConstructor ) {
     171                $.each( existingConstructor._childConstructors, function( i, child ) {
     172                        var childPrototype = child.prototype;
     173
     174                        // Redefine the child widget using the same prototype that was
     175                        // originally used, but inherit from the new version of the base
     176                        $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor,
     177                                child._proto );
     178                } );
     179
     180                // Remove the list of existing child constructors from the old constructor
     181                // so the old child constructors can be garbage collected
     182                delete existingConstructor._childConstructors;
     183        } else {
     184                base._childConstructors.push( constructor );
     185        }
     186
     187        $.widget.bridge( name, constructor );
     188
     189        return constructor;
     190};
     191
     192$.widget.extend = function( target ) {
     193        var input = widgetSlice.call( arguments, 1 );
     194        var inputIndex = 0;
     195        var inputLength = input.length;
     196        var key;
     197        var value;
     198
     199        for ( ; inputIndex < inputLength; inputIndex++ ) {
     200                for ( key in input[ inputIndex ] ) {
     201                        value = input[ inputIndex ][ key ];
     202                        if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
     203
     204                                // Clone objects
     205                                if ( $.isPlainObject( value ) ) {
     206                                        target[ key ] = $.isPlainObject( target[ key ] ) ?
     207                                                $.widget.extend( {}, target[ key ], value ) :
     208
     209                                                // Don't extend strings, arrays, etc. with objects
     210                                                $.widget.extend( {}, value );
     211
     212                                // Copy everything else by reference
     213                                } else {
     214                                        target[ key ] = value;
     215                                }
     216                        }
     217                }
     218        }
     219        return target;
     220};
     221
     222$.widget.bridge = function( name, object ) {
     223        var fullName = object.prototype.widgetFullName || name;
     224        $.fn[ name ] = function( options ) {
     225                var isMethodCall = typeof options === "string";
     226                var args = widgetSlice.call( arguments, 1 );
     227                var returnValue = this;
     228
     229                if ( isMethodCall ) {
     230
     231                        // If this is an empty collection, we need to have the instance method
     232                        // return undefined instead of the jQuery instance
     233                        if ( !this.length && options === "instance" ) {
     234                                returnValue = undefined;
     235                        } else {
     236                                this.each( function() {
     237                                        var methodValue;
     238                                        var instance = $.data( this, fullName );
     239
     240                                        if ( options === "instance" ) {
     241                                                returnValue = instance;
     242                                                return false;
     243                                        }
     244
     245                                        if ( !instance ) {
     246                                                return $.error( "cannot call methods on " + name +
     247                                                        " prior to initialization; " +
     248                                                        "attempted to call method '" + options + "'" );
     249                                        }
     250
     251                                        if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
     252                                                return $.error( "no such method '" + options + "' for " + name +
     253                                                        " widget instance" );
     254                                        }
     255
     256                                        methodValue = instance[ options ].apply( instance, args );
     257
     258                                        if ( methodValue !== instance && methodValue !== undefined ) {
     259                                                returnValue = methodValue && methodValue.jquery ?
     260                                                        returnValue.pushStack( methodValue.get() ) :
     261                                                        methodValue;
     262                                                return false;
     263                                        }
     264                                } );
     265                        }
     266                } else {
     267
     268                        // Allow multiple hashes to be passed on init
     269                        if ( args.length ) {
     270                                options = $.widget.extend.apply( null, [ options ].concat( args ) );
     271                        }
     272
     273                        this.each( function() {
     274                                var instance = $.data( this, fullName );
     275                                if ( instance ) {
     276                                        instance.option( options || {} );
     277                                        if ( instance._init ) {
     278                                                instance._init();
     279                                        }
     280                                } else {
     281                                        $.data( this, fullName, new object( options, this ) );
     282                                }
     283                        } );
     284                }
     285
     286                return returnValue;
     287        };
     288};
     289
     290$.Widget = function( /* options, element */ ) {};
     291$.Widget._childConstructors = [];
     292
     293$.Widget.prototype = {
     294        widgetName: "widget",
     295        widgetEventPrefix: "",
     296        defaultElement: "<div>",
     297
     298        options: {
     299                classes: {},
     300                disabled: false,
     301
     302                // Callbacks
     303                create: null
     304        },
     305
     306        _createWidget: function( options, element ) {
     307                element = $( element || this.defaultElement || this )[ 0 ];
     308                this.element = $( element );
     309                this.uuid = widgetUuid++;
     310                this.eventNamespace = "." + this.widgetName + this.uuid;
     311
     312                this.bindings = $();
     313                this.hoverable = $();
     314                this.focusable = $();
     315                this.classesElementLookup = {};
     316
     317                if ( element !== this ) {
     318                        $.data( element, this.widgetFullName, this );
     319                        this._on( true, this.element, {
     320                                remove: function( event ) {
     321                                        if ( event.target === element ) {
     322                                                this.destroy();
     323                                        }
     324                                }
     325                        } );
     326                        this.document = $( element.style ?
     327
     328                                // Element within the document
     329                                element.ownerDocument :
     330
     331                                // Element is window or document
     332                                element.document || element );
     333                        this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );
     334                }
     335
     336                this.options = $.widget.extend( {},
     337                        this.options,
     338                        this._getCreateOptions(),
     339                        options );
     340
     341                this._create();
     342
     343                if ( this.options.disabled ) {
     344                        this._setOptionDisabled( this.options.disabled );
     345                }
     346
     347                this._trigger( "create", null, this._getCreateEventData() );
     348                this._init();
     349        },
     350
     351        _getCreateOptions: function() {
     352                return {};
     353        },
     354
     355        _getCreateEventData: $.noop,
     356
     357        _create: $.noop,
     358
     359        _init: $.noop,
     360
     361        destroy: function() {
     362                var that = this;
     363
     364                this._destroy();
     365                $.each( this.classesElementLookup, function( key, value ) {
     366                        that._removeClass( value, key );
     367                } );
     368
     369                // We can probably remove the unbind calls in 2.0
     370                // all event bindings should go through this._on()
     371                this.element
     372                        .off( this.eventNamespace )
     373                        .removeData( this.widgetFullName );
     374                this.widget()
     375                        .off( this.eventNamespace )
     376                        .removeAttr( "aria-disabled" );
     377
     378                // Clean up events and states
     379                this.bindings.off( this.eventNamespace );
     380        },
     381
     382        _destroy: $.noop,
     383
     384        widget: function() {
     385                return this.element;
     386        },
     387
     388        option: function( key, value ) {
     389                var options = key;
     390                var parts;
     391                var curOption;
     392                var i;
     393
     394                if ( arguments.length === 0 ) {
     395
     396                        // Don't return a reference to the internal hash
     397                        return $.widget.extend( {}, this.options );
     398                }
     399
     400                if ( typeof key === "string" ) {
     401
     402                        // Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
     403                        options = {};
     404                        parts = key.split( "." );
     405                        key = parts.shift();
     406                        if ( parts.length ) {
     407                                curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
     408                                for ( i = 0; i < parts.length - 1; i++ ) {
     409                                        curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
     410                                        curOption = curOption[ parts[ i ] ];
     411                                }
     412                                key = parts.pop();
     413                                if ( arguments.length === 1 ) {
     414                                        return curOption[ key ] === undefined ? null : curOption[ key ];
     415                                }
     416                                curOption[ key ] = value;
     417                        } else {
     418                                if ( arguments.length === 1 ) {
     419                                        return this.options[ key ] === undefined ? null : this.options[ key ];
     420                                }
     421                                options[ key ] = value;
     422                        }
     423                }
     424
     425                this._setOptions( options );
     426
     427                return this;
     428        },
     429
     430        _setOptions: function( options ) {
     431                var key;
     432
     433                for ( key in options ) {
     434                        this._setOption( key, options[ key ] );
     435                }
     436
     437                return this;
     438        },
     439
     440        _setOption: function( key, value ) {
     441                if ( key === "classes" ) {
     442                        this._setOptionClasses( value );
     443                }
     444
     445                this.options[ key ] = value;
     446
     447                if ( key === "disabled" ) {
     448                        this._setOptionDisabled( value );
     449                }
     450
     451                return this;
     452        },
     453
     454        _setOptionClasses: function( value ) {
     455                var classKey, elements, currentElements;
     456
     457                for ( classKey in value ) {
     458                        currentElements = this.classesElementLookup[ classKey ];
     459                        if ( value[ classKey ] === this.options.classes[ classKey ] ||
     460                                        !currentElements ||
     461                                        !currentElements.length ) {
     462                                continue;
     463                        }
     464
     465                        // We are doing this to create a new jQuery object because the _removeClass() call
     466                        // on the next line is going to destroy the reference to the current elements being
     467                        // tracked. We need to save a copy of this collection so that we can add the new classes
     468                        // below.
     469                        elements = $( currentElements.get() );
     470                        this._removeClass( currentElements, classKey );
     471
     472                        // We don't use _addClass() here, because that uses this.options.classes
     473                        // for generating the string of classes. We want to use the value passed in from
     474                        // _setOption(), this is the new value of the classes option which was passed to
     475                        // _setOption(). We pass this value directly to _classes().
     476                        elements.addClass( this._classes( {
     477                                element: elements,
     478                                keys: classKey,
     479                                classes: value,
     480                                add: true
     481                        } ) );
     482                }
     483        },
     484
     485        _setOptionDisabled: function( value ) {
     486                this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!value );
     487
     488                // If the widget is becoming disabled, then nothing is interactive
     489                if ( value ) {
     490                        this._removeClass( this.hoverable, null, "ui-state-hover" );
     491                        this._removeClass( this.focusable, null, "ui-state-focus" );
     492                }
     493        },
     494
     495        enable: function() {
     496                return this._setOptions( { disabled: false } );
     497        },
     498
     499        disable: function() {
     500                return this._setOptions( { disabled: true } );
     501        },
     502
     503        _classes: function( options ) {
     504                var full = [];
     505                var that = this;
     506
     507                options = $.extend( {
     508                        element: this.element,
     509                        classes: this.options.classes || {}
     510                }, options );
     511
     512                function processClassString( classes, checkOption ) {
     513                        var current, i;
     514                        for ( i = 0; i < classes.length; i++ ) {
     515                                current = that.classesElementLookup[ classes[ i ] ] || $();
     516                                if ( options.add ) {
     517                                        current = $( $.unique( current.get().concat( options.element.get() ) ) );
     518                                } else {
     519                                        current = $( current.not( options.element ).get() );
     520                                }
     521                                that.classesElementLookup[ classes[ i ] ] = current;
     522                                full.push( classes[ i ] );
     523                                if ( checkOption && options.classes[ classes[ i ] ] ) {
     524                                        full.push( options.classes[ classes[ i ] ] );
     525                                }
     526                        }
     527                }
     528
     529                this._on( options.element, {
     530                        "remove": "_untrackClassesElement"
     531                } );
     532
     533                if ( options.keys ) {
     534                        processClassString( options.keys.match( /\S+/g ) || [], true );
     535                }
     536                if ( options.extra ) {
     537                        processClassString( options.extra.match( /\S+/g ) || [] );
     538                }
     539
     540                return full.join( " " );
     541        },
     542
     543        _untrackClassesElement: function( event ) {
     544                var that = this;
     545                $.each( that.classesElementLookup, function( key, value ) {
     546                        if ( $.inArray( event.target, value ) !== -1 ) {
     547                                that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
     548                        }
     549                } );
     550        },
     551
     552        _removeClass: function( element, keys, extra ) {
     553                return this._toggleClass( element, keys, extra, false );
     554        },
     555
     556        _addClass: function( element, keys, extra ) {
     557                return this._toggleClass( element, keys, extra, true );
     558        },
     559
     560        _toggleClass: function( element, keys, extra, add ) {
     561                add = ( typeof add === "boolean" ) ? add : extra;
     562                var shift = ( typeof element === "string" || element === null ),
     563                        options = {
     564                                extra: shift ? keys : extra,
     565                                keys: shift ? element : keys,
     566                                element: shift ? this.element : element,
     567                                add: add
     568                        };
     569                options.element.toggleClass( this._classes( options ), add );
     570                return this;
     571        },
     572
     573        _on: function( suppressDisabledCheck, element, handlers ) {
     574                var delegateElement;
     575                var instance = this;
     576
     577                // No suppressDisabledCheck flag, shuffle arguments
     578                if ( typeof suppressDisabledCheck !== "boolean" ) {
     579                        handlers = element;
     580                        element = suppressDisabledCheck;
     581                        suppressDisabledCheck = false;
     582                }
     583
     584                // No element argument, shuffle and use this.element
     585                if ( !handlers ) {
     586                        handlers = element;
     587                        element = this.element;
     588                        delegateElement = this.widget();
     589                } else {
     590                        element = delegateElement = $( element );
     591                        this.bindings = this.bindings.add( element );
     592                }
     593
     594                $.each( handlers, function( event, handler ) {
     595                        function handlerProxy() {
     596
     597                                // Allow widgets to customize the disabled handling
     598                                // - disabled as an array instead of boolean
     599                                // - disabled class as method for disabling individual parts
     600                                if ( !suppressDisabledCheck &&
     601                                                ( instance.options.disabled === true ||
     602                                                $( this ).hasClass( "ui-state-disabled" ) ) ) {
     603                                        return;
     604                                }
     605                                return ( typeof handler === "string" ? instance[ handler ] : handler )
     606                                        .apply( instance, arguments );
     607                        }
     608
     609                        // Copy the guid so direct unbinding works
     610                        if ( typeof handler !== "string" ) {
     611                                handlerProxy.guid = handler.guid =
     612                                        handler.guid || handlerProxy.guid || $.guid++;
     613                        }
     614
     615                        var match = event.match( /^([\w:-]*)\s*(.*)$/ );
     616                        var eventName = match[ 1 ] + instance.eventNamespace;
     617                        var selector = match[ 2 ];
     618
     619                        if ( selector ) {
     620                                delegateElement.on( eventName, selector, handlerProxy );
     621                        } else {
     622                                element.on( eventName, handlerProxy );
     623                        }
     624                } );
     625        },
     626
     627        _off: function( element, eventName ) {
     628                eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
     629                        this.eventNamespace;
     630                element.off( eventName ).off( eventName );
     631
     632                // Clear the stack to avoid memory leaks (#10056)
     633                this.bindings = $( this.bindings.not( element ).get() );
     634                this.focusable = $( this.focusable.not( element ).get() );
     635                this.hoverable = $( this.hoverable.not( element ).get() );
     636        },
     637
     638        _delay: function( handler, delay ) {
     639                function handlerProxy() {
     640                        return ( typeof handler === "string" ? instance[ handler ] : handler )
     641                                .apply( instance, arguments );
     642                }
     643                var instance = this;
     644                return setTimeout( handlerProxy, delay || 0 );
     645        },
     646
     647        _hoverable: function( element ) {
     648                this.hoverable = this.hoverable.add( element );
     649                this._on( element, {
     650                        mouseenter: function( event ) {
     651                                this._addClass( $( event.currentTarget ), null, "ui-state-hover" );
     652                        },
     653                        mouseleave: function( event ) {
     654                                this._removeClass( $( event.currentTarget ), null, "ui-state-hover" );
     655                        }
     656                } );
     657        },
     658
     659        _focusable: function( element ) {
     660                this.focusable = this.focusable.add( element );
     661                this._on( element, {
     662                        focusin: function( event ) {
     663                                this._addClass( $( event.currentTarget ), null, "ui-state-focus" );
     664                        },
     665                        focusout: function( event ) {
     666                                this._removeClass( $( event.currentTarget ), null, "ui-state-focus" );
     667                        }
     668                } );
     669        },
     670
     671        _trigger: function( type, event, data ) {
     672                var prop, orig;
     673                var callback = this.options[ type ];
     674
     675                data = data || {};
     676                event = $.Event( event );
     677                event.type = ( type === this.widgetEventPrefix ?
     678                        type :
     679                        this.widgetEventPrefix + type ).toLowerCase();
     680
     681                // The original event may come from any element
     682                // so we need to reset the target on the new event
     683                event.target = this.element[ 0 ];
     684
     685                // Copy original event properties over to the new event
     686                orig = event.originalEvent;
     687                if ( orig ) {
     688                        for ( prop in orig ) {
     689                                if ( !( prop in event ) ) {
     690                                        event[ prop ] = orig[ prop ];
     691                                }
     692                        }
     693                }
     694
     695                this.element.trigger( event, data );
     696                return !( $.isFunction( callback ) &&
     697                        callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
     698                        event.isDefaultPrevented() );
     699        }
     700};
     701
     702$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
     703        $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
     704                if ( typeof options === "string" ) {
     705                        options = { effect: options };
     706                }
     707
     708                var hasOptions;
     709                var effectName = !options ?
     710                        method :
     711                        options === true || typeof options === "number" ?
     712                                defaultEffect :
     713                                options.effect || defaultEffect;
     714
     715                options = options || {};
     716                if ( typeof options === "number" ) {
     717                        options = { duration: options };
     718                }
     719
     720                hasOptions = !$.isEmptyObject( options );
     721                options.complete = callback;
     722
     723                if ( options.delay ) {
     724                        element.delay( options.delay );
     725                }
     726
     727                if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
     728                        element[ method ]( options );
     729                } else if ( effectName !== method && element[ effectName ] ) {
     730                        element[ effectName ]( options.duration, options.easing, callback );
     731                } else {
     732                        element.queue( function( next ) {
     733                                $( this )[ method ]();
     734                                if ( callback ) {
     735                                        callback.call( element[ 0 ] );
     736                                }
     737                                next();
     738                        } );
     739                }
     740        };
     741} );
     742
     743var widget = $.widget;
     744
     745
     746/*!
     747 * jQuery UI Position 1.12.1
     748 * http://jqueryui.com
     749 *
     750 * Copyright jQuery Foundation and other contributors
     751 * Released under the MIT license.
     752 * http://jquery.org/license
     753 *
     754 * http://api.jqueryui.com/position/
     755 */
     756
     757//>>label: Position
     758//>>group: Core
     759//>>description: Positions elements relative to other elements.
     760//>>docs: http://api.jqueryui.com/position/
     761//>>demos: http://jqueryui.com/position/
     762
     763
     764( function() {
     765var cachedScrollbarWidth,
     766        max = Math.max,
     767        abs = Math.abs,
     768        rhorizontal = /left|center|right/,
     769        rvertical = /top|center|bottom/,
     770        roffset = /[\+\-]\d+(\.[\d]+)?%?/,
     771        rposition = /^\w+/,
     772        rpercent = /%$/,
     773        _position = $.fn.position;
     774
     775function getOffsets( offsets, width, height ) {
     776        return [
     777                parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
     778                parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
     779        ];
     780}
     781
     782function parseCss( element, property ) {
     783        return parseInt( $.css( element, property ), 10 ) || 0;
     784}
     785
     786function getDimensions( elem ) {
     787        var raw = elem[ 0 ];
     788        if ( raw.nodeType === 9 ) {
     789                return {
     790                        width: elem.width(),
     791                        height: elem.height(),
     792                        offset: { top: 0, left: 0 }
     793                };
     794        }
     795        if ( $.isWindow( raw ) ) {
     796                return {
     797                        width: elem.width(),
     798                        height: elem.height(),
     799                        offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
     800                };
     801        }
     802        if ( raw.preventDefault ) {
     803                return {
     804                        width: 0,
     805                        height: 0,
     806                        offset: { top: raw.pageY, left: raw.pageX }
     807                };
     808        }
     809        return {
     810                width: elem.outerWidth(),
     811                height: elem.outerHeight(),
     812                offset: elem.offset()
     813        };
     814}
     815
     816$.position = {
     817        scrollbarWidth: function() {
     818                if ( cachedScrollbarWidth !== undefined ) {
     819                        return cachedScrollbarWidth;
     820                }
     821                var w1, w2,
     822                        div = $( "<div " +
     823                                "style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +
     824                                "<div style='height:100px;width:auto;'></div></div>" ),
     825                        innerDiv = div.children()[ 0 ];
     826
     827                $( "body" ).append( div );
     828                w1 = innerDiv.offsetWidth;
     829                div.css( "overflow", "scroll" );
     830
     831                w2 = innerDiv.offsetWidth;
     832
     833                if ( w1 === w2 ) {
     834                        w2 = div[ 0 ].clientWidth;
     835                }
     836
     837                div.remove();
     838
     839                return ( cachedScrollbarWidth = w1 - w2 );
     840        },
     841        getScrollInfo: function( within ) {
     842                var overflowX = within.isWindow || within.isDocument ? "" :
     843                                within.element.css( "overflow-x" ),
     844                        overflowY = within.isWindow || within.isDocument ? "" :
     845                                within.element.css( "overflow-y" ),
     846                        hasOverflowX = overflowX === "scroll" ||
     847                                ( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ),
     848                        hasOverflowY = overflowY === "scroll" ||
     849                                ( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight );
     850                return {
     851                        width: hasOverflowY ? $.position.scrollbarWidth() : 0,
     852                        height: hasOverflowX ? $.position.scrollbarWidth() : 0
     853                };
     854        },
     855        getWithinInfo: function( element ) {
     856                var withinElement = $( element || window ),
     857                        isWindow = $.isWindow( withinElement[ 0 ] ),
     858                        isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
     859                        hasOffset = !isWindow && !isDocument;
     860                return {
     861                        element: withinElement,
     862                        isWindow: isWindow,
     863                        isDocument: isDocument,
     864                        offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
     865                        scrollLeft: withinElement.scrollLeft(),
     866                        scrollTop: withinElement.scrollTop(),
     867                        width: withinElement.outerWidth(),
     868                        height: withinElement.outerHeight()
     869                };
     870        }
     871};
     872
     873$.fn.position = function( options ) {
     874        if ( !options || !options.of ) {
     875                return _position.apply( this, arguments );
     876        }
     877
     878        // Make a copy, we don't want to modify arguments
     879        options = $.extend( {}, options );
     880
     881        var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
     882                target = $( options.of ),
     883                within = $.position.getWithinInfo( options.within ),
     884                scrollInfo = $.position.getScrollInfo( within ),
     885                collision = ( options.collision || "flip" ).split( " " ),
     886                offsets = {};
     887
     888        dimensions = getDimensions( target );
     889        if ( target[ 0 ].preventDefault ) {
     890
     891                // Force left top to allow flipping
     892                options.at = "left top";
     893        }
     894        targetWidth = dimensions.width;
     895        targetHeight = dimensions.height;
     896        targetOffset = dimensions.offset;
     897
     898        // Clone to reuse original targetOffset later
     899        basePosition = $.extend( {}, targetOffset );
     900
     901        // Force my and at to have valid horizontal and vertical positions
     902        // if a value is missing or invalid, it will be converted to center
     903        $.each( [ "my", "at" ], function() {
     904                var pos = ( options[ this ] || "" ).split( " " ),
     905                        horizontalOffset,
     906                        verticalOffset;
     907
     908                if ( pos.length === 1 ) {
     909                        pos = rhorizontal.test( pos[ 0 ] ) ?
     910                                pos.concat( [ "center" ] ) :
     911                                rvertical.test( pos[ 0 ] ) ?
     912                                        [ "center" ].concat( pos ) :
     913                                        [ "center", "center" ];
     914                }
     915                pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
     916                pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
     917
     918                // Calculate offsets
     919                horizontalOffset = roffset.exec( pos[ 0 ] );
     920                verticalOffset = roffset.exec( pos[ 1 ] );
     921                offsets[ this ] = [
     922                        horizontalOffset ? horizontalOffset[ 0 ] : 0,
     923                        verticalOffset ? verticalOffset[ 0 ] : 0
     924                ];
     925
     926                // Reduce to just the positions without the offsets
     927                options[ this ] = [
     928                        rposition.exec( pos[ 0 ] )[ 0 ],
     929                        rposition.exec( pos[ 1 ] )[ 0 ]
     930                ];
     931        } );
     932
     933        // Normalize collision option
     934        if ( collision.length === 1 ) {
     935                collision[ 1 ] = collision[ 0 ];
     936        }
     937
     938        if ( options.at[ 0 ] === "right" ) {
     939                basePosition.left += targetWidth;
     940        } else if ( options.at[ 0 ] === "center" ) {
     941                basePosition.left += targetWidth / 2;
     942        }
     943
     944        if ( options.at[ 1 ] === "bottom" ) {
     945                basePosition.top += targetHeight;
     946        } else if ( options.at[ 1 ] === "center" ) {
     947                basePosition.top += targetHeight / 2;
     948        }
     949
     950        atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
     951        basePosition.left += atOffset[ 0 ];
     952        basePosition.top += atOffset[ 1 ];
     953
     954        return this.each( function() {
     955                var collisionPosition, using,
     956                        elem = $( this ),
     957                        elemWidth = elem.outerWidth(),
     958                        elemHeight = elem.outerHeight(),
     959                        marginLeft = parseCss( this, "marginLeft" ),
     960                        marginTop = parseCss( this, "marginTop" ),
     961                        collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
     962                                scrollInfo.width,
     963                        collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) +
     964                                scrollInfo.height,
     965                        position = $.extend( {}, basePosition ),
     966                        myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
     967
     968                if ( options.my[ 0 ] === "right" ) {
     969                        position.left -= elemWidth;
     970                } else if ( options.my[ 0 ] === "center" ) {
     971                        position.left -= elemWidth / 2;
     972                }
     973
     974                if ( options.my[ 1 ] === "bottom" ) {
     975                        position.top -= elemHeight;
     976                } else if ( options.my[ 1 ] === "center" ) {
     977                        position.top -= elemHeight / 2;
     978                }
     979
     980                position.left += myOffset[ 0 ];
     981                position.top += myOffset[ 1 ];
     982
     983                collisionPosition = {
     984                        marginLeft: marginLeft,
     985                        marginTop: marginTop
     986                };
     987
     988                $.each( [ "left", "top" ], function( i, dir ) {
     989                        if ( $.ui.position[ collision[ i ] ] ) {
     990                                $.ui.position[ collision[ i ] ][ dir ]( position, {
     991                                        targetWidth: targetWidth,
     992                                        targetHeight: targetHeight,
     993                                        elemWidth: elemWidth,
     994                                        elemHeight: elemHeight,
     995                                        collisionPosition: collisionPosition,
     996                                        collisionWidth: collisionWidth,
     997                                        collisionHeight: collisionHeight,
     998                                        offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
     999                                        my: options.my,
     1000                                        at: options.at,
     1001                                        within: within,
     1002                                        elem: elem
     1003                                } );
     1004                        }
     1005                } );
     1006
     1007                if ( options.using ) {
     1008
     1009                        // Adds feedback as second argument to using callback, if present
     1010                        using = function( props ) {
     1011                                var left = targetOffset.left - position.left,
     1012                                        right = left + targetWidth - elemWidth,
     1013                                        top = targetOffset.top - position.top,
     1014                                        bottom = top + targetHeight - elemHeight,
     1015                                        feedback = {
     1016                                                target: {
     1017                                                        element: target,
     1018                                                        left: targetOffset.left,
     1019                                                        top: targetOffset.top,
     1020                                                        width: targetWidth,
     1021                                                        height: targetHeight
     1022                                                },
     1023                                                element: {
     1024                                                        element: elem,
     1025                                                        left: position.left,
     1026                                                        top: position.top,
     1027                                                        width: elemWidth,
     1028                                                        height: elemHeight
     1029                                                },
     1030                                                horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
     1031                                                vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
     1032                                        };
     1033                                if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
     1034                                        feedback.horizontal = "center";
     1035                                }
     1036                                if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
     1037                                        feedback.vertical = "middle";
     1038                                }
     1039                                if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
     1040                                        feedback.important = "horizontal";
     1041                                } else {
     1042                                        feedback.important = "vertical";
     1043                                }
     1044                                options.using.call( this, props, feedback );
     1045                        };
     1046                }
     1047
     1048                elem.offset( $.extend( position, { using: using } ) );
     1049        } );
     1050};
     1051
     1052$.ui.position = {
     1053        fit: {
     1054                left: function( position, data ) {
     1055                        var within = data.within,
     1056                                withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
     1057                                outerWidth = within.width,
     1058                                collisionPosLeft = position.left - data.collisionPosition.marginLeft,
     1059                                overLeft = withinOffset - collisionPosLeft,
     1060                                overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
     1061                                newOverRight;
     1062
     1063                        // Element is wider than within
     1064                        if ( data.collisionWidth > outerWidth ) {
     1065
     1066                                // Element is initially over the left side of within
     1067                                if ( overLeft > 0 && overRight <= 0 ) {
     1068                                        newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
     1069                                                withinOffset;
     1070                                        position.left += overLeft - newOverRight;
     1071
     1072                                // Element is initially over right side of within
     1073                                } else if ( overRight > 0 && overLeft <= 0 ) {
     1074                                        position.left = withinOffset;
     1075
     1076                                // Element is initially over both left and right sides of within
     1077                                } else {
     1078                                        if ( overLeft > overRight ) {
     1079                                                position.left = withinOffset + outerWidth - data.collisionWidth;
     1080                                        } else {
     1081                                                position.left = withinOffset;
     1082                                        }
     1083                                }
     1084
     1085                        // Too far left -> align with left edge
     1086                        } else if ( overLeft > 0 ) {
     1087                                position.left += overLeft;
     1088
     1089                        // Too far right -> align with right edge
     1090                        } else if ( overRight > 0 ) {
     1091                                position.left -= overRight;
     1092
     1093                        // Adjust based on position and margin
     1094                        } else {
     1095                                position.left = max( position.left - collisionPosLeft, position.left );
     1096                        }
     1097                },
     1098                top: function( position, data ) {
     1099                        var within = data.within,
     1100                                withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
     1101                                outerHeight = data.within.height,
     1102                                collisionPosTop = position.top - data.collisionPosition.marginTop,
     1103                                overTop = withinOffset - collisionPosTop,
     1104                                overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
     1105                                newOverBottom;
     1106
     1107                        // Element is taller than within
     1108                        if ( data.collisionHeight > outerHeight ) {
     1109
     1110                                // Element is initially over the top of within
     1111                                if ( overTop > 0 && overBottom <= 0 ) {
     1112                                        newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
     1113                                                withinOffset;
     1114                                        position.top += overTop - newOverBottom;
     1115
     1116                                // Element is initially over bottom of within
     1117                                } else if ( overBottom > 0 && overTop <= 0 ) {
     1118                                        position.top = withinOffset;
     1119
     1120                                // Element is initially over both top and bottom of within
     1121                                } else {
     1122                                        if ( overTop > overBottom ) {
     1123                                                position.top = withinOffset + outerHeight - data.collisionHeight;
     1124                                        } else {
     1125                                                position.top = withinOffset;
     1126                                        }
     1127                                }
     1128
     1129                        // Too far up -> align with top
     1130                        } else if ( overTop > 0 ) {
     1131                                position.top += overTop;
     1132
     1133                        // Too far down -> align with bottom edge
     1134                        } else if ( overBottom > 0 ) {
     1135                                position.top -= overBottom;
     1136
     1137                        // Adjust based on position and margin
     1138                        } else {
     1139                                position.top = max( position.top - collisionPosTop, position.top );
     1140                        }
     1141                }
     1142        },
     1143        flip: {
     1144                left: function( position, data ) {
     1145                        var within = data.within,
     1146                                withinOffset = within.offset.left + within.scrollLeft,
     1147                                outerWidth = within.width,
     1148                                offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
     1149                                collisionPosLeft = position.left - data.collisionPosition.marginLeft,
     1150                                overLeft = collisionPosLeft - offsetLeft,
     1151                                overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
     1152                                myOffset = data.my[ 0 ] === "left" ?
     1153                                        -data.elemWidth :
     1154                                        data.my[ 0 ] === "right" ?
     1155                                                data.elemWidth :
     1156                                                0,
     1157                                atOffset = data.at[ 0 ] === "left" ?
     1158                                        data.targetWidth :
     1159                                        data.at[ 0 ] === "right" ?
     1160                                                -data.targetWidth :
     1161                                                0,
     1162                                offset = -2 * data.offset[ 0 ],
     1163                                newOverRight,
     1164                                newOverLeft;
     1165
     1166                        if ( overLeft < 0 ) {
     1167                                newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
     1168                                        outerWidth - withinOffset;
     1169                                if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
     1170                                        position.left += myOffset + atOffset + offset;
     1171                                }
     1172                        } else if ( overRight > 0 ) {
     1173                                newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
     1174                                        atOffset + offset - offsetLeft;
     1175                                if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
     1176                                        position.left += myOffset + atOffset + offset;
     1177                                }
     1178                        }
     1179                },
     1180                top: function( position, data ) {
     1181                        var within = data.within,
     1182                                withinOffset = within.offset.top + within.scrollTop,
     1183                                outerHeight = within.height,
     1184                                offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
     1185                                collisionPosTop = position.top - data.collisionPosition.marginTop,
     1186                                overTop = collisionPosTop - offsetTop,
     1187                                overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
     1188                                top = data.my[ 1 ] === "top",
     1189                                myOffset = top ?
     1190                                        -data.elemHeight :
     1191                                        data.my[ 1 ] === "bottom" ?
     1192                                                data.elemHeight :
     1193                                                0,
     1194                                atOffset = data.at[ 1 ] === "top" ?
     1195                                        data.targetHeight :
     1196                                        data.at[ 1 ] === "bottom" ?
     1197                                                -data.targetHeight :
     1198                                                0,
     1199                                offset = -2 * data.offset[ 1 ],
     1200                                newOverTop,
     1201                                newOverBottom;
     1202                        if ( overTop < 0 ) {
     1203                                newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
     1204                                        outerHeight - withinOffset;
     1205                                if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
     1206                                        position.top += myOffset + atOffset + offset;
     1207                                }
     1208                        } else if ( overBottom > 0 ) {
     1209                                newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
     1210                                        offset - offsetTop;
     1211                                if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
     1212                                        position.top += myOffset + atOffset + offset;
     1213                                }
     1214                        }
     1215                }
     1216        },
     1217        flipfit: {
     1218                left: function() {
     1219                        $.ui.position.flip.left.apply( this, arguments );
     1220                        $.ui.position.fit.left.apply( this, arguments );
     1221                },
     1222                top: function() {
     1223                        $.ui.position.flip.top.apply( this, arguments );
     1224                        $.ui.position.fit.top.apply( this, arguments );
     1225                }
     1226        }
     1227};
     1228
     1229} )();
     1230
     1231var position = $.ui.position;
     1232
     1233
     1234/*!
     1235 * jQuery UI :data 1.12.1
     1236 * http://jqueryui.com
     1237 *
     1238 * Copyright jQuery Foundation and other contributors
     1239 * Released under the MIT license.
     1240 * http://jquery.org/license
     1241 */
     1242
     1243//>>label: :data Selector
     1244//>>group: Core
     1245//>>description: Selects elements which have data stored under the specified key.
     1246//>>docs: http://api.jqueryui.com/data-selector/
     1247
     1248
     1249var data = $.extend( $.expr[ ":" ], {
     1250        data: $.expr.createPseudo ?
     1251                $.expr.createPseudo( function( dataName ) {
     1252                        return function( elem ) {
     1253                                return !!$.data( elem, dataName );
     1254                        };
     1255                } ) :
     1256
     1257                // Support: jQuery <1.8
     1258                function( elem, i, match ) {
     1259                        return !!$.data( elem, match[ 3 ] );
     1260                }
     1261} );
     1262
     1263/*!
     1264 * jQuery UI Disable Selection 1.12.1
     1265 * http://jqueryui.com
     1266 *
     1267 * Copyright jQuery Foundation and other contributors
     1268 * Released under the MIT license.
     1269 * http://jquery.org/license
     1270 */
     1271
     1272//>>label: disableSelection
     1273//>>group: Core
     1274//>>description: Disable selection of text content within the set of matched elements.
     1275//>>docs: http://api.jqueryui.com/disableSelection/
     1276
     1277// This file is deprecated
     1278
     1279
     1280var disableSelection = $.fn.extend( {
     1281        disableSelection: ( function() {
     1282                var eventType = "onselectstart" in document.createElement( "div" ) ?
     1283                        "selectstart" :
     1284                        "mousedown";
     1285
     1286                return function() {
     1287                        return this.on( eventType + ".ui-disableSelection", function( event ) {
     1288                                event.preventDefault();
     1289                        } );
     1290                };
     1291        } )(),
     1292
     1293        enableSelection: function() {
     1294                return this.off( ".ui-disableSelection" );
     1295        }
     1296} );
     1297
     1298
     1299/*!
     1300 * jQuery UI Focusable 1.12.1
     1301 * http://jqueryui.com
     1302 *
     1303 * Copyright jQuery Foundation and other contributors
     1304 * Released under the MIT license.
     1305 * http://jquery.org/license
     1306 */
     1307
     1308//>>label: :focusable Selector
     1309//>>group: Core
     1310//>>description: Selects elements which can be focused.
     1311//>>docs: http://api.jqueryui.com/focusable-selector/
     1312
     1313
     1314
     1315// Selectors
     1316$.ui.focusable = function( element, hasTabindex ) {
     1317        var map, mapName, img, focusableIfVisible, fieldset,
     1318                nodeName = element.nodeName.toLowerCase();
     1319
     1320        if ( "area" === nodeName ) {
     1321                map = element.parentNode;
     1322                mapName = map.name;
     1323                if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
     1324                        return false;
     1325                }
     1326                img = $( "img[usemap='#" + mapName + "']" );
     1327                return img.length > 0 && img.is( ":visible" );
     1328        }
     1329
     1330        if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) {
     1331                focusableIfVisible = !element.disabled;
     1332
     1333                if ( focusableIfVisible ) {
     1334
     1335                        // Form controls within a disabled fieldset are disabled.
     1336                        // However, controls within the fieldset's legend do not get disabled.
     1337                        // Since controls generally aren't placed inside legends, we skip
     1338                        // this portion of the check.
     1339                        fieldset = $( element ).closest( "fieldset" )[ 0 ];
     1340                        if ( fieldset ) {
     1341                                focusableIfVisible = !fieldset.disabled;
     1342                        }
     1343                }
     1344        } else if ( "a" === nodeName ) {
     1345                focusableIfVisible = element.href || hasTabindex;
     1346        } else {
     1347                focusableIfVisible = hasTabindex;
     1348        }
     1349
     1350        return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) );
     1351};
     1352
     1353// Support: IE 8 only
     1354// IE 8 doesn't resolve inherit to visible/hidden for computed values
     1355function visible( element ) {
     1356        var visibility = element.css( "visibility" );
     1357        while ( visibility === "inherit" ) {
     1358                element = element.parent();
     1359                visibility = element.css( "visibility" );
     1360        }
     1361        return visibility !== "hidden";
     1362}
     1363
     1364$.extend( $.expr[ ":" ], {
     1365        focusable: function( element ) {
     1366                return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
     1367        }
     1368} );
     1369
     1370var focusable = $.ui.focusable;
     1371
     1372
     1373// Support: IE8 Only
     1374// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
     1375// with a string, so we need to find the proper form.
     1376var form = $.fn.form = function() {
     1377        return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
     1378};
     1379
     1380
     1381/*!
     1382 * jQuery UI Form Reset Mixin 1.12.1
     1383 * http://jqueryui.com
     1384 *
     1385 * Copyright jQuery Foundation and other contributors
     1386 * Released under the MIT license.
     1387 * http://jquery.org/license
     1388 */
     1389
     1390//>>label: Form Reset Mixin
     1391//>>group: Core
     1392//>>description: Refresh input widgets when their form is reset
     1393//>>docs: http://api.jqueryui.com/form-reset-mixin/
     1394
     1395
     1396
     1397var formResetMixin = $.ui.formResetMixin = {
     1398        _formResetHandler: function() {
     1399                var form = $( this );
     1400
     1401                // Wait for the form reset to actually happen before refreshing
     1402                setTimeout( function() {
     1403                        var instances = form.data( "ui-form-reset-instances" );
     1404                        $.each( instances, function() {
     1405                                this.refresh();
     1406                        } );
     1407                } );
     1408        },
     1409
     1410        _bindFormResetHandler: function() {
     1411                this.form = this.element.form();
     1412                if ( !this.form.length ) {
     1413                        return;
     1414                }
     1415
     1416                var instances = this.form.data( "ui-form-reset-instances" ) || [];
     1417                if ( !instances.length ) {
     1418
     1419                        // We don't use _on() here because we use a single event handler per form
     1420                        this.form.on( "reset.ui-form-reset", this._formResetHandler );
     1421                }
     1422                instances.push( this );
     1423                this.form.data( "ui-form-reset-instances", instances );
     1424        },
     1425
     1426        _unbindFormResetHandler: function() {
     1427                if ( !this.form.length ) {
     1428                        return;
     1429                }
     1430
     1431                var instances = this.form.data( "ui-form-reset-instances" );
     1432                instances.splice( $.inArray( this, instances ), 1 );
     1433                if ( instances.length ) {
     1434                        this.form.data( "ui-form-reset-instances", instances );
     1435                } else {
     1436                        this.form
     1437                                .removeData( "ui-form-reset-instances" )
     1438                                .off( "reset.ui-form-reset" );
     1439                }
     1440        }
     1441};
     1442
     1443
     1444/*!
     1445 * jQuery UI Support for jQuery core 1.7.x 1.12.1
     1446 * http://jqueryui.com
     1447 *
     1448 * Copyright jQuery Foundation and other contributors
     1449 * Released under the MIT license.
     1450 * http://jquery.org/license
     1451 *
     1452 */
     1453
     1454//>>label: jQuery 1.7 Support
     1455//>>group: Core
     1456//>>description: Support version 1.7.x of jQuery core
     1457
     1458
     1459
     1460// Support: jQuery 1.7 only
     1461// Not a great way to check versions, but since we only support 1.7+ and only
     1462// need to detect <1.8, this is a simple check that should suffice. Checking
     1463// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
     1464// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting
     1465// 1.7 anymore). See #11197 for why we're not using feature detection.
     1466if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
     1467
     1468        // Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight()
     1469        // Unlike jQuery Core 1.8+, these only support numeric values to set the
     1470        // dimensions in pixels
     1471        $.each( [ "Width", "Height" ], function( i, name ) {
     1472                var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
     1473                        type = name.toLowerCase(),
     1474                        orig = {
     1475                                innerWidth: $.fn.innerWidth,
     1476                                innerHeight: $.fn.innerHeight,
     1477                                outerWidth: $.fn.outerWidth,
     1478                                outerHeight: $.fn.outerHeight
     1479                        };
     1480
     1481                function reduce( elem, size, border, margin ) {
     1482                        $.each( side, function() {
     1483                                size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
     1484                                if ( border ) {
     1485                                        size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
     1486                                }
     1487                                if ( margin ) {
     1488                                        size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
     1489                                }
     1490          &nb