From 843c443f81bb6271983b05d481b8b9ace5b3da3f Mon Sep 17 00:00:00 2001 From: abidibo Date: Wed, 2 Sep 2020 10:14:46 +0200 Subject: [PATCH 1/7] closes #91 --- README.md | 1 + baton/static/baton/app/dist/baton.min.js | 4 ++-- baton/static/baton/app/dist/baton.min.js.map | 2 +- baton/static/baton/app/src/core/ChangeForm.js | 9 +++++++-- .../baton/app/src/styles/_changeform.scss | 5 +++++ baton/templates/admin/change_form.html | 2 +- docs/form_includes.rst | 2 ++ testapp/app/db.sqlite3 | Bin 593920 -> 602112 bytes testapp/app/news/admin.py | 3 ++- .../templates/news/admin_title_include.html | 1 + 10 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 testapp/app/news/templates/news/admin_title_include.html diff --git a/README.md b/README.md index 03e6a2e7..3a299fe7 100644 --- a/README.md +++ b/README.md @@ -416,6 +416,7 @@ You can specify the following positions: |`bottom`| the template is placed inside the form row, at the bottom| |`above`| the template is placed above the form row| |`below`| the template is placed below the form row| +|`right`| the template is placed inline at the right side of the input field| And, of course, you can access the `{{ original }}` object variable inside your template. diff --git a/baton/static/baton/app/dist/baton.min.js b/baton/static/baton/app/dist/baton.min.js index 40693cbd..2a7f2e2b 100644 --- a/baton/static/baton/app/dist/baton.min.js +++ b/baton/static/baton/app/dist/baton.min.js @@ -22,7 +22,7 @@ * * Date: 2020-03-14 */ -function(e){var t,n,o,r,a,i,p,c,l,s,m,u,d,g,f,h,b,w,y,x="sizzle"+1*new Date,k=e.document,v=0,_=0,j=ce(),E=ce(),T=ce(),C=ce(),D=function(e,t){return e===t&&(m=!0),0},z={}.hasOwnProperty,S=[],N=S.pop,A=S.push,q=S.push,O=S.slice,L=function(e,t){for(var n=0,o=e.length;n+~]|"+M+")"+M+"*"),$=new RegExp(M+"|>"),Q=new RegExp(H),X=new RegExp("^"+F+"$"),V={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),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("^(?:"+I+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\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))},oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){u()},ie=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{q.apply(S=O.call(k.childNodes),k.childNodes),S[k.childNodes.length].nodeType}catch(e){q={apply:S.length?function(e,t){A.apply(e,O.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function pe(e,t,o,r){var a,p,l,s,m,g,b,w=t&&t.ownerDocument,k=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==k&&9!==k&&11!==k)return o;if(!r&&(u(t),t=t||d,f)){if(11!==k&&(m=Z.exec(e)))if(a=m[1]){if(9===k){if(!(l=t.getElementById(a)))return o;if(l.id===a)return o.push(l),o}else if(w&&(l=w.getElementById(a))&&y(t,l)&&l.id===a)return o.push(l),o}else{if(m[2])return q.apply(o,t.getElementsByTagName(e)),o;if((a=m[3])&&n.getElementsByClassName&&t.getElementsByClassName)return q.apply(o,t.getElementsByClassName(a)),o}if(n.qsa&&!C[e+" "]&&(!h||!h.test(e))&&(1!==k||"object"!==t.nodeName.toLowerCase())){if(b=e,w=t,1===k&&($.test(e)||U.test(e))){for((w=ee.test(e)&&be(t.parentNode)||t)===t&&n.scope||((s=t.getAttribute("id"))?s=s.replace(oe,re):t.setAttribute("id",s=x)),p=(g=i(e)).length;p--;)g[p]=(s?"#"+s:":scope")+" "+ye(g[p]);b=g.join(",")}try{return q.apply(o,w.querySelectorAll(b)),o}catch(t){C(e,!0)}finally{s===x&&t.removeAttribute("id")}}}return c(e.replace(B,"$1"),t,o,r)}function ce(){var e=[];return function t(n,r){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function le(e){return e[x]=!0,e}function se(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function me(e,t){for(var n=e.split("|"),r=n.length;r--;)o.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ge(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return le((function(t){return t=+t,le((function(n,o){for(var r,a=e([],n.length,t),i=a.length;i--;)n[r=a[i]]&&(n[r]=!(o[r]=n[r]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=pe.support={},a=pe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},u=pe.setDocument=function(e){var t,r,i=e?e.ownerDocument||e:k;return i!=d&&9===i.nodeType&&i.documentElement?(g=(d=i).documentElement,f=!a(d),k!=d&&(r=d.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ae,!1):r.attachEvent&&r.attachEvent("onunload",ae)),n.scope=se((function(e){return g.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=se((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(d.getElementsByClassName),n.getById=se((function(e){return g.appendChild(e).id=x,!d.getElementsByName||!d.getElementsByName(x).length})),n.getById?(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,o,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),o=0;a=r[o++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[r++];)1===n.nodeType&&o.push(n);return o}return a},o.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},b=[],h=[],(n.qsa=J.test(d.querySelectorAll))&&(se((function(e){var t;g.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+M+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+x+"-]").length||h.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),se((function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),g.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=J.test(w=g.matches||g.webkitMatchesSelector||g.mozMatchesSelector||g.oMatchesSelector||g.msMatchesSelector))&&se((function(e){n.disconnectedMatch=w.call(e,"*"),w.call(e,"[s!='']:x"),b.push("!=",H)})),h=h.length&&new RegExp(h.join("|")),b=b.length&&new RegExp(b.join("|")),t=J.test(g.compareDocumentPosition),y=t||J.test(g.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return m=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e==d||e.ownerDocument==k&&y(k,e)?-1:t==d||t.ownerDocument==k&&y(k,t)?1:s?L(s,e)-L(s,t):0:4&o?-1:1)}:function(e,t){if(e===t)return m=!0,0;var n,o=0,r=e.parentNode,a=t.parentNode,i=[e],p=[t];if(!r||!a)return e==d?-1:t==d?1:r?-1:a?1:s?L(s,e)-L(s,t):0;if(r===a)return ue(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)p.unshift(n);for(;i[o]===p[o];)o++;return o?ue(i[o],p[o]):i[o]==k?-1:p[o]==k?1:0},d):d},pe.matches=function(e,t){return pe(e,null,null,t)},pe.matchesSelector=function(e,t){if(u(e),n.matchesSelector&&f&&!C[t+" "]&&(!b||!b.test(t))&&(!h||!h.test(t)))try{var o=w.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){C(t,!0)}return pe(t,d,null,[e]).length>0},pe.contains=function(e,t){return(e.ownerDocument||e)!=d&&u(e),y(e,t)},pe.attr=function(e,t){(e.ownerDocument||e)!=d&&u(e);var r=o.attrHandle[t.toLowerCase()],a=r&&z.call(o.attrHandle,t.toLowerCase())?r(e,t,!f):void 0;return void 0!==a?a:n.attributes||!f?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},pe.escape=function(e){return(e+"").replace(oe,re)},pe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},pe.uniqueSort=function(e){var t,o=[],r=0,a=0;if(m=!n.detectDuplicates,s=!n.sortStable&&e.slice(0),e.sort(D),m){for(;t=e[a++];)t===e[a]&&(r=o.push(a));for(;r--;)e.splice(o[r],1)}return s=null,e},r=pe.getText=function(e){var t,n="",o=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[o++];)n+=r(t);return n},(o=pe.selectors={cacheLength:50,createPseudo:le,match:V,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]||pe.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]&&pe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Q.test(n)&&(t=i(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=j[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&j(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(o){var r=pe.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var a="nth"!==e.slice(0,3),i="last"!==e.slice(-4),p="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,c){var l,s,m,u,d,g,f=a!==i?"nextSibling":"previousSibling",h=t.parentNode,b=p&&t.nodeName.toLowerCase(),w=!c&&!p,y=!1;if(h){if(a){for(;f;){for(u=t;u=u[f];)if(p?u.nodeName.toLowerCase()===b:1===u.nodeType)return!1;g=f="only"===e&&!g&&"nextSibling"}return!0}if(g=[i?h.firstChild:h.lastChild],i&&w){for(y=(d=(l=(s=(m=(u=h)[x]||(u[x]={}))[u.uniqueID]||(m[u.uniqueID]={}))[e]||[])[0]===v&&l[1])&&l[2],u=d&&h.childNodes[d];u=++d&&u&&u[f]||(y=d=0)||g.pop();)if(1===u.nodeType&&++y&&u===t){s[e]=[v,d,y];break}}else if(w&&(y=d=(l=(s=(m=(u=t)[x]||(u[x]={}))[u.uniqueID]||(m[u.uniqueID]={}))[e]||[])[0]===v&&l[1]),!1===y)for(;(u=++d&&u&&u[f]||(y=d=0)||g.pop())&&((p?u.nodeName.toLowerCase()!==b:1!==u.nodeType)||!++y||(w&&((s=(m=u[x]||(u[x]={}))[u.uniqueID]||(m[u.uniqueID]={}))[e]=[v,y]),u!==t)););return(y-=r)===o||y%o==0&&y/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||pe.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var o,a=r(e,t),i=a.length;i--;)e[o=L(e,a[i])]=!(n[o]=a[i])})):function(e){return r(e,0,n)}):r}},pseudos:{not:le((function(e){var t=[],n=[],o=p(e.replace(B,"$1"));return o[x]?le((function(e,t,n,r){for(var a,i=o(e,null,r,[]),p=e.length;p--;)(a=i[p])&&(e[p]=!(t[p]=a))})):function(e,r,a){return t[0]=e,o(t,null,a,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return pe(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:le((function(e){return X.test(e||"")||pe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===g},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!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!o.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.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:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;nt?t:n;--o>=0;)e.push(o);return e})),gt:he((function(e,t,n){for(var o=n<0?n+t:n;++o1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function ve(e,t,n,o,r){for(var a,i=[],p=0,c=e.length,l=null!=t;p-1&&(a[l]=!(i[l]=m))}}else b=ve(b===i?b.splice(g,b.length):b),r?r(null,i,b,c):q.apply(i,b)}))}function je(e){for(var t,n,r,a=e.length,i=o.relative[e[0].type],p=i||o.relative[" "],c=i?1:0,s=xe((function(e){return e===t}),p,!0),m=xe((function(e){return L(t,e)>-1}),p,!0),u=[function(e,n,o){var r=!i&&(o||n!==l)||((t=n).nodeType?s(e,n,o):m(e,n,o));return t=null,r}];c1&&ke(u),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),n,c0,r=e.length>0,a=function(a,i,p,c,s){var m,g,h,b=0,w="0",y=a&&[],x=[],k=l,_=a||r&&o.find.TAG("*",s),j=v+=null==k?1:Math.random()||.1,E=_.length;for(s&&(l=i==d||i||s);w!==E&&null!=(m=_[w]);w++){if(r&&m){for(g=0,i||m.ownerDocument==d||(u(m),p=!f);h=e[g++];)if(h(m,i||d,p)){c.push(m);break}s&&(v=j)}n&&((m=!h&&m)&&b--,a&&y.push(m))}if(b+=w,n&&w!==b){for(g=0;h=t[g++];)h(y,x,i,p);if(a){if(b>0)for(;w--;)y[w]||x[w]||(x[w]=N.call(c));x=ve(x)}q.apply(c,x),s&&!a&&x.length>0&&b+t.length>1&&pe.uniqueSort(c)}return s&&(v=j,l=k),y};return n?le(a):a}(a,r))).selector=e}return p},c=pe.select=function(e,t,n,r){var a,c,l,s,m,u="function"==typeof e&&e,d=!r&&i(e=u.selector||e);if(n=n||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&f&&o.relative[c[1].type]){if(!(t=(o.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(a=V.needsContext.test(e)?0:c.length;a--&&(l=c[a],!o.relative[s=l.type]);)if((m=o.find[s])&&(r=m(l.matches[0].replace(te,ne),ee.test(c[0].type)&&be(t.parentNode)||t))){if(c.splice(a,1),!(e=r.length&&ye(c)))return q.apply(n,r),n;break}}return(u||p(e,d))(r,t,!f,n,!t||ee.test(e)&&be(t.parentNode)||t),n},n.sortStable=x.split("").sort(D).join("")===x,n.detectDuplicates=!!m,u(),n.sortDetached=se((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),se((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||me("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&se((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||me("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||me(I,(function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null})),pe}(n);_.find=E,_.expr=E.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=E.uniqueSort,_.text=E.getText,_.isXMLDoc=E.isXML,_.contains=E.contains,_.escapeSelector=E.escape;var T=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&_(e).is(n))break;o.push(e)}return o},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=_.expr.match.needsContext;function z(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(e,t,n){return b(t)?_.grep(e,(function(e,o){return!!t.call(e,o,e)!==n})):t.nodeType?_.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?_.grep(e,(function(e){return s.call(t,e)>-1!==n})):_.filter(t,e,n)}_.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?_.find.matchesSelector(o,e)?[o]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(N(this,e||[],!1))},not:function(e){return this.pushStack(N(this,e||[],!0))},is:function(e){return!!N(this,"string"==typeof e&&D.test(e)?_(e):e||[],!1).length}});var A,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),S.test(o[1])&&_.isPlainObject(t))for(o in t)b(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=y.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,A=_(y);var O=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&_.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?_.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?s.call(_(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(z(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(n,o){var r=_.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=_.filter(o,r)),this.length>1&&(L[e]||_.uniqueSort(r),O.test(e)&&r.reverse()),this.pushStack(r)}}));var M=/[^\x20\t\r\n\f]+/g;function F(e){return e}function P(e){throw e}function H(e,t,n,o){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(n):e&&b(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(M)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,o,r,a=[],i=[],p=-1,c=function(){for(r=r||e.once,o=t=!0;i.length;p=-1)for(n=i.shift();++p-1;)a.splice(n,1),n<=p&&p--})),this},has:function(e){return e?_.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=i=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=i=[],n||t||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!o}};return l},_.extend({Deferred:function(e){var t=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(n){_.each(t,(function(t,o){var r=b(e[o[4]])&&e[o[4]];a[o[1]]((function(){var e=r&&r.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,o,r){var a=0;function i(e,t,o,r){return function(){var p=this,c=arguments,l=function(){var n,l;if(!(e=a&&(o!==P&&(p=void 0,c=[n]),t.rejectWith(p,c))}};e?s():(_.Deferred.getStackHook&&(s.stackTrace=_.Deferred.getStackHook()),n.setTimeout(s))}}return _.Deferred((function(n){t[0][3].add(i(0,n,b(r)?r:F,n.notifyWith)),t[1][3].add(i(0,n,b(e)?e:F)),t[2][3].add(i(0,n,b(o)?o:P))})).promise()},promise:function(e){return null!=e?_.extend(e,r):r}},a={};return _.each(t,(function(e,n){var i=n[2],p=n[5];r[n[1]]=i.add,p&&i.add((function(){o=p}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=i.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,o=Array(n),r=p.call(arguments),a=_.Deferred(),i=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?p.call(arguments):n,--t||a.resolveWith(o,r)}};if(t<=1&&(H(e,a.done(i(n)).resolve,a.reject,!t),"pending"===a.state()||b(r[n]&&r[n].then)))return a.then();for(;n--;)H(r[n],i(n),a.reject);return a.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&R.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){n.setTimeout((function(){throw e}))};var B=_.Deferred();function W(){y.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),_.ready()}_.fn.ready=function(e){return B.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||B.resolveWith(y,[_]))}}),_.ready.then=B.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(_.ready):(y.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var U=function(e,t,n,o,r,a,i){var p=0,c=e.length,l=null==n;if("object"===v(n))for(p in r=!0,n)U(e,t,p,n[p],!0,a,i);else if(void 0!==o&&(r=!0,b(o)||(i=!0),l&&(i?(t.call(e,o),t=null):(l=t,t=function(e,t,n){return l.call(_(e),n)})),t))for(;p1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=G.get(e,t),n&&(!o||Array.isArray(n)?o=G.access(e,t,_.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),o=n.length,r=n.shift(),a=_._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,(function(){_.dequeue(e,t)}),a)),!o&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:_.Callbacks("once memory").add((function(){G.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;de=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),de.appendChild(ge),h.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="",h.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="",h.option=!!de.lastChild;var we={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&z(e,t)?_.merge([e],n):n}function xe(e,t){for(var n=0,o=e.length;n",""]);var ke=/<|&#?\w+;/;function ve(e,t,n,o,r){for(var a,i,p,c,l,s,m=t.createDocumentFragment(),u=[],d=0,g=e.length;d-1)r&&r.push(a);else if(l=ie(a),i=ye(m.appendChild(a),"script"),l&&xe(i),n)for(s=0;a=i[s++];)be.test(a.type||"")&&n.push(a);return m}var _e=/^key/,je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ce(){return!1}function De(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function ze(e,t,n,o,r,a){var i,p;if("object"==typeof t){for(p in"string"!=typeof n&&(o=o||n,n=void 0),t)ze(e,p,n,o,t[p],a);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Ce;else if(!r)return e;return 1===a&&(i=r,(r=function(e){return _().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=_.guid++)),e.each((function(){_.event.add(this,t,r,o,n)}))}function Se(e,t,n){n?(G.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var o,r,a=G.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=p.call(arguments),G.set(this,t,a),o=n(this,t),this[t](),a!==(r=G.get(this,t))||o?G.set(this,t,!1):r={},a!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else a.length&&(G.set(this,t,{value:_.event.trigger(_.extend(a[0],_.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,t)&&_.event.add(e,t,Te)}_.event={global:{},add:function(e,t,n,o,r){var a,i,p,c,l,s,m,u,d,g,f,h=G.get(e);if(Y(e))for(n.handler&&(n=(a=n).handler,r=a.selector),r&&_.find.matchesSelector(ae,r),n.guid||(n.guid=_.guid++),(c=h.events)||(c=h.events=Object.create(null)),(i=h.handle)||(i=h.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;l--;)d=f=(p=Ee.exec(t[l])||[])[1],g=(p[2]||"").split(".").sort(),d&&(m=_.event.special[d]||{},d=(r?m.delegateType:m.bindType)||d,m=_.event.special[d]||{},s=_.extend({type:d,origType:f,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&_.expr.match.needsContext.test(r),namespace:g.join(".")},a),(u=c[d])||((u=c[d]=[]).delegateCount=0,m.setup&&!1!==m.setup.call(e,o,g,i)||e.addEventListener&&e.addEventListener(d,i)),m.add&&(m.add.call(e,s),s.handler.guid||(s.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,s):u.push(s),_.event.global[d]=!0)},remove:function(e,t,n,o,r){var a,i,p,c,l,s,m,u,d,g,f,h=G.hasData(e)&&G.get(e);if(h&&(c=h.events)){for(l=(t=(t||"").match(M)||[""]).length;l--;)if(d=f=(p=Ee.exec(t[l])||[])[1],g=(p[2]||"").split(".").sort(),d){for(m=_.event.special[d]||{},u=c[d=(o?m.delegateType:m.bindType)||d]||[],p=p[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=a=u.length;a--;)s=u[a],!r&&f!==s.origType||n&&n.guid!==s.guid||p&&!p.test(s.namespace)||o&&o!==s.selector&&("**"!==o||!s.selector)||(u.splice(a,1),s.selector&&u.delegateCount--,m.remove&&m.remove.call(e,s));i&&!u.length&&(m.teardown&&!1!==m.teardown.call(e,g,h.handle)||_.removeEvent(e,d,h.handle),delete c[d])}else for(d in c)_.event.remove(e,d+t[l],n,o,!0);_.isEmptyObject(c)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,a,i,p=new Array(arguments.length),c=_.event.fix(e),l=(G.get(this,"events")||Object.create(null))[c.type]||[],s=_.event.special[c.type]||{};for(p[0]=c,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],i={},n=0;n-1:_.find(r,this,null,[l]).length),i[r]&&a.push(o);a.length&&p.push({elem:l,handlers:a})}return l=this,c\s*$/g;function Oe(e,t){return z(e,"table")&&z(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,o,r,a,i,p;if(1===t.nodeType){if(G.hasData(e)&&(p=G.get(e).events))for(r in G.remove(t,"handle events"),p)for(n=0,o=p[r].length;n1&&"string"==typeof g&&!h.checkClone&&Ae.test(g))return e.each((function(r){var a=e.eq(r);f&&(t[0]=g.call(this,r,a.html())),Pe(a,t,n,o)}));if(u&&(a=(r=ve(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=a),a||o)){for(p=(i=_.map(ye(r,"script"),Le)).length;m0&&xe(i,!c&&ye(e,"script")),p},cleanData:function(e){for(var t,n,o,r=_.event.special,a=0;void 0!==(n=e[a]);a++)if(Y(n)){if(t=n[G.expando]){if(t.events)for(o in t.events)r[o]?_.event.remove(n,o):_.removeEvent(n,o,t.handle);n[G.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),_.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return U(this,(function(e){return void 0===e?_.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||Oe(this,e).appendChild(e)}))},prepend:function(){return Pe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(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&&(_.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!we[(he.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),p}}))}();var Xe=["Webkit","Moz","ms"],Ve=y.createElement("div").style,Ye={};function Ke(e){var t=_.cssProps[e]||Ye[e];return t||(e in Ve?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var o=oe.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function nt(e,t,n,o,r,a){var i="width"===t?1:0,p=0,c=0;if(n===(o?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(c+=_.css(e,n+re[i],!0,r)),o?("content"===n&&(c-=_.css(e,"padding"+re[i],!0,r)),"margin"!==n&&(c-=_.css(e,"border"+re[i]+"Width",!0,r))):(c+=_.css(e,"padding"+re[i],!0,r),"padding"!==n?c+=_.css(e,"border"+re[i]+"Width",!0,r):p+=_.css(e,"border"+re[i]+"Width",!0,r));return!o&&a>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-c-p-.5))||0),c}function ot(e,t,n){var o=Be(e),r=(!h.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,o),a=r,i=$e(e,t,o),p="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(i)){if(!n)return i;i="auto"}return(!h.boxSizingReliable()&&r||!h.reliableTrDimensions()&&z(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===_.css(e,"display",!1,o))&&e.getClientRects().length&&(r="border-box"===_.css(e,"boxSizing",!1,o),(a=p in e)&&(i=e[p])),(i=parseFloat(i)||0)+nt(e,t,n||(r?"border":"content"),a,o,i)+"px"}function rt(e,t,n,o,r){return new rt.prototype.init(e,t,n,o,r)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(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,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,i,p=V(t),c=Je.test(t),l=e.style;if(c||(t=Ke(p)),i=_.cssHooks[t]||_.cssHooks[p],void 0===n)return i&&"get"in i&&void 0!==(r=i.get(e,!1,o))?r:l[t];"string"===(a=typeof n)&&(r=oe.exec(n))&&r[1]&&(n=le(e,t,r),a="number"),null!=n&&n==n&&("number"!==a||c||(n+=r&&r[3]||(_.cssNumber[p]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,o))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,o){var r,a,i,p=V(t);return Je.test(t)||(t=Ke(p)),(i=_.cssHooks[t]||_.cssHooks[p])&&"get"in i&&(r=i.get(e,!0,n)),void 0===r&&(r=$e(e,t,o)),"normal"===r&&t in et&&(r=et[t]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,n,o){if(n)return!Ge.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,o):We(e,Ze,(function(){return ot(e,t,o)}))},set:function(e,n,o){var r,a=Be(e),i=!h.scrollboxSize()&&"absolute"===a.position,p=(i||o)&&"border-box"===_.css(e,"boxSizing",!1,a),c=o?nt(e,t,o,p,a):0;return p&&i&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-nt(e,t,"border",!1,a)-.5)),c&&(r=oe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),tt(0,n,c)}}})),_.cssHooks.marginLeft=Qe(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(n){for(var o=0,r={},a="string"==typeof n?n.split(" "):[n];o<4;o++)r[e+re[o]+t]=a[o]||a[o-2]||a[0];return r}},"margin"!==e&&(_.cssHooks[e+t].set=tt)})),_.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var o,r,a={},i=0;if(Array.isArray(t)){for(o=Be(e),r=t.length;i1)}}),_.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,o,r,a){this.elem=e,this.prop=n,this.easing=r||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=a||(_.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=_.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):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.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=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=rt.prototype.init,_.fx.step={};var at,it,pt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){it&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,_.fx.interval),_.fx.tick())}function st(){return n.setTimeout((function(){at=void 0})),at=Date.now()}function mt(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=re[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ut(e,t,n){for(var o,r=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),a=0,i=r.length;a1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,n){var o,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?_.prop(e,t,n):(1===a&&_.isXMLDoc(e)||(r=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=_.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&z(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(M);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ft[t]||_.find.attr;ft[t]=function(e,t,o){var r,a,i=t.toLowerCase();return o||(a=ft[i],ft[i]=r,r=null!=n(e,t,o)?i:null,ft[i]=a),r}}));var ht=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function wt(e){return(e.match(M)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}_.fn.extend({prop:function(e,t){return U(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,n){var o,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&_.isXMLDoc(e)||(t=_.propFix[t]||t,r=_.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(_.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)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,n,o,r,a,i,p,c=0;if(b(e))return this.each((function(t){_(this).addClass(e.call(this,t,yt(this)))}));if((t=xt(e)).length)for(;n=this[c++];)if(r=yt(n),o=1===n.nodeType&&" "+wt(r)+" "){for(i=0;a=t[i++];)o.indexOf(" "+a+" ")<0&&(o+=a+" ");r!==(p=wt(o))&&n.setAttribute("class",p)}return this},removeClass:function(e){var t,n,o,r,a,i,p,c=0;if(b(e))return this.each((function(t){_(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[c++];)if(r=yt(n),o=1===n.nodeType&&" "+wt(r)+" "){for(i=0;a=t[i++];)for(;o.indexOf(" "+a+" ")>-1;)o=o.replace(" "+a+" "," ");r!==(p=wt(o))&&n.setAttribute("class",p)}return this},toggleClass:function(e,t){var n=typeof e,o="string"===n||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):b(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,r,a,i;if(o)for(r=0,a=_(this),i=xt(e);t=i[r++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&G.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":G.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+wt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var kt=/\r/g;_.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=b(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,_(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_.map(r,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=_.valHooks[r.type]||_.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(kt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:wt(_.text(e))}},select:{get:function(e){var t,n,o,r=e.options,a=e.selectedIndex,i="select-one"===e.type,p=i?null:[],c=i?a+1:r.length;for(o=a<0?c:i?a:0;o-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},h.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in n;var vt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,o,r){var a,i,p,c,l,s,m,u,g=[o||y],f=d.call(e,"type")?e.type:e,h=d.call(e,"namespace")?e.namespace.split("."):[];if(i=u=p=o=o||y,3!==o.nodeType&&8!==o.nodeType&&!vt.test(f+_.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[_.expando]?e:new _.Event(f,"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=o),t=null==t?[e]:_.makeArray(t,[e]),m=_.event.special[f]||{},r||!m.trigger||!1!==m.trigger.apply(o,t))){if(!r&&!m.noBubble&&!w(o)){for(c=m.delegateType||f,vt.test(c+f)||(i=i.parentNode);i;i=i.parentNode)g.push(i),p=i;p===(o.ownerDocument||y)&&g.push(p.defaultView||p.parentWindow||n)}for(a=0;(i=g[a++])&&!e.isPropagationStopped();)u=i,e.type=a>1?c:m.bindType||f,(s=(G.get(i,"events")||Object.create(null))[e.type]&&G.get(i,"handle"))&&s.apply(i,t),(s=l&&i[l])&&s.apply&&Y(i)&&(e.result=s.apply(i,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||m._default&&!1!==m._default.apply(g.pop(),t)||!Y(o)||l&&b(o[f])&&!w(o)&&((p=o[l])&&(o[l]=null),_.event.triggered=f,e.isPropagationStopped()&&u.addEventListener(f,_t),o[f](),e.isPropagationStopped()&&u.removeEventListener(f,_t),_.event.triggered=void 0,p&&(o[l]=p)),e.result}},simulate:function(e,t,n){var o=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(o,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}}),h.focusin||_.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var o=this.ownerDocument||this.document||this,r=G.access(o,t);r||o.addEventListener(e,n,!0),G.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this.document||this,r=G.access(o,t)-1;r?G.access(o,t,r):(o.removeEventListener(e,n,!0),G.remove(o,t))}}}));var jt=n.location,Et={guid:Date.now()},Tt=/\?/;_.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+e),t};var Ct=/\[\]$/,Dt=/\r?\n/g,zt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,o){var r;if(Array.isArray(t))_.each(t,(function(t,r){n||Ct.test(e)?o(e,r):Nt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)}));else if(n||"object"!==v(t))o(e,t);else for(r in t)Nt(e+"["+r+"]",t[r],n,o)}_.param=function(e,t){var n,o=[],r=function(e,t){var n=b(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){r(this.name,this.value)}));else for(n in e)Nt(n,e[n],t,r);return o.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&St.test(this.nodeName)&&!zt.test(e)&&(this.checked||!fe.test(e))})).map((function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}})):{name:t.name,value:n.replace(Dt,"\r\n")}})).get()}});var At=/%20/g,qt=/#.*$/,Ot=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Mt=/^\/\//,Ft={},Pt={},Ht="*/".concat("*"),Rt=y.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,a=t.toLowerCase().match(M)||[];if(b(n))for(;o=a[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Wt(e,t,n,o){var r={},a=e===Pt;function i(p){var c;return r[p]=!0,_.each(e[p]||[],(function(e,p){var l=p(t,n,o);return"string"!=typeof l||a||r[l]?a?!(c=l):void 0:(t.dataTypes.unshift(l),i(l),!1)})),c}return i(t.dataTypes[0])||!r["*"]&&i("*")}function Ut(e,t){var n,o,r=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&_.extend(!0,e,o),e}Rt.href=jt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(jt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,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":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,_.ajaxSettings),t):Ut(_.ajaxSettings,e)},ajaxPrefilter:Bt(Ft),ajaxTransport:Bt(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,r,a,i,p,c,l,s,m,u,d=_.ajaxSetup({},t),g=d.context||d,f=d.context&&(g.nodeType||g.jquery)?_(g):_.event,h=_.Deferred(),b=_.Callbacks("once memory"),w=d.statusCode||{},x={},k={},v="canceled",j={readyState:0,getResponseHeader:function(e){var t;if(l){if(!i)for(i={};t=Lt.exec(a);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=k[e.toLowerCase()]=k[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)j.always(e[j.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||v;return o&&o.abort(t),E(0,t),this}};if(h.promise(j),d.url=((e||d.url||jt.href)+"").replace(Mt,jt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(M)||[""],null==d.crossDomain){c=y.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Rt.protocol+"//"+Rt.host!=c.protocol+"//"+c.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=_.param(d.data,d.traditional)),Wt(Ft,d,t,j),l)return j;for(m in(s=_.event&&d.global)&&0==_.active++&&_.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!It.test(d.type),r=d.url.replace(qt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(At,"+")):(u=d.url.slice(r.length),d.data&&(d.processData||"string"==typeof d.data)&&(r+=(Tt.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Ot,"$1"),u=(Tt.test(r)?"&":"?")+"_="+Et.guid+++u),d.url=r+u),d.ifModified&&(_.lastModified[r]&&j.setRequestHeader("If-Modified-Since",_.lastModified[r]),_.etag[r]&&j.setRequestHeader("If-None-Match",_.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&j.setRequestHeader("Content-Type",d.contentType),j.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ht+"; q=0.01":""):d.accepts["*"]),d.headers)j.setRequestHeader(m,d.headers[m]);if(d.beforeSend&&(!1===d.beforeSend.call(g,j,d)||l))return j.abort();if(v="abort",b.add(d.complete),j.done(d.success),j.fail(d.error),o=Wt(Pt,d,t,j)){if(j.readyState=1,s&&f.trigger("ajaxSend",[j,d]),l)return j;d.async&&d.timeout>0&&(p=n.setTimeout((function(){j.abort("timeout")}),d.timeout));try{l=!1,o.send(x,E)}catch(e){if(l)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,i,c){var m,u,y,x,k,v=t;l||(l=!0,p&&n.clearTimeout(p),o=void 0,a=c||"",j.readyState=e>0?4:0,m=e>=200&&e<300||304===e,i&&(x=function(e,t,n){for(var o,r,a,i,p=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in p)if(p[r]&&p[r].test(o)){c.unshift(r);break}if(c[0]in n)a=c[0];else{for(r in n){if(!c[0]||e.converters[r+" "+c[0]]){a=r;break}i||(i=r)}a=a||i}if(a)return a!==c[0]&&c.unshift(a),n[a]}(d,j,i)),!m&&_.inArray("script",d.dataTypes)>-1&&(d.converters["text script"]=function(){}),x=function(e,t,n,o){var r,a,i,p,c,l={},s=e.dataTypes.slice();if(s[1])for(i in e.converters)l[i.toLowerCase()]=e.converters[i];for(a=s.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=s.shift())if("*"===a)a=c;else if("*"!==c&&c!==a){if(!(i=l[c+" "+a]||l["* "+a]))for(r in l)if((p=r.split(" "))[1]===a&&(i=l[c+" "+p[0]]||l["* "+p[0]])){!0===i?i=l[r]:!0!==l[r]&&(a=p[0],s.unshift(p[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+c+" to "+a}}}return{state:"success",data:t}}(d,x,j,m),m?(d.ifModified&&((k=j.getResponseHeader("Last-Modified"))&&(_.lastModified[r]=k),(k=j.getResponseHeader("etag"))&&(_.etag[r]=k)),204===e||"HEAD"===d.type?v="nocontent":304===e?v="notmodified":(v=x.state,u=x.data,m=!(y=x.error))):(y=v,!e&&v||(v="error",e<0&&(e=0))),j.status=e,j.statusText=(t||v)+"",m?h.resolveWith(g,[u,v,j]):h.rejectWith(g,[j,v,y]),j.statusCode(w),w=void 0,s&&f.trigger(m?"ajaxSuccess":"ajaxError",[j,d,m?u:y]),b.fireWith(g,[j,v]),s&&(f.trigger("ajaxComplete",[j,d]),--_.active||_.event.trigger("ajaxStop")))}return j},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,n,o,r){return b(n)&&(r=r||o,o=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:r,data:n,success:o},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(n){_(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Qt=_.ajaxSettings.xhr();h.cors=!!Qt&&"withCredentials"in Qt,h.ajax=Qt=!!Qt,_.ajaxTransport((function(e){var t,o;if(h.cors||Qt&&!e.crossDomain)return{send:function(r,a){var i,p=e.xhr();if(p.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)p[i]=e.xhrFields[i];for(i in e.mimeType&&p.overrideMimeType&&p.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)p.setRequestHeader(i,r[i]);t=function(e){return function(){t&&(t=o=p.onload=p.onerror=p.onabort=p.ontimeout=p.onreadystatechange=null,"abort"===e?p.abort():"error"===e?"number"!=typeof p.status?a(0,"error"):a(p.status,p.statusText):a($t[p.status]||p.status,p.statusText,"text"!==(p.responseType||"text")||"string"!=typeof p.responseText?{binary:p.response}:{text:p.responseText},p.getAllResponseHeaders()))}},p.onload=t(),o=p.onerror=p.ontimeout=t("error"),void 0!==p.onabort?p.onabort=o:p.onreadystatechange=function(){4===p.readyState&&n.setTimeout((function(){t&&o()}))},t=t("abort");try{p.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.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 _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,r){t=_("