@sitelintcode/optimize-image-on-the-client-side 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces/optimize-image-on-the-client-side.interfaces.d.ts +4 -0
- package/dist/optimize-image-on-the-client-side.d.ts +3 -3
- package/dist/optimize-image-on-the-client-side.js +30 -11
- package/dist/optimize-image-on-the-client-side.mjs +25 -6
- package/dist/utilities/common.utilities.d.ts +5 -0
- package/package.json +33 -34
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* jQuery JavaScript Library v3.7.1
|
|
1
|
+
(function(b){typeof globalThis!="object"&&(this?g():(b.defineProperty(b.prototype,"_T_",{configurable:!0,get:g}),_T_));function g(){var A=this||self;A.globalThis=A,delete b.prototype._T_}})(Object);/*!
|
|
2
|
+
* jQuery JavaScript Library v4.1.0
|
|
4
3
|
* https://jquery.com/
|
|
5
4
|
*
|
|
6
5
|
* Copyright OpenJS Foundation and other contributors
|
|
7
6
|
* Released under the MIT license
|
|
8
|
-
* https://jquery.
|
|
7
|
+
* https://jquery.com/license/
|
|
9
8
|
*
|
|
10
|
-
* Date:
|
|
11
|
-
*/function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,e="undefined"!=typeof window?window:jquery,t=function(e,t){var n=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,n){var r,i,o=(n=n||m).createElement("script");if(o.text=e,t)for(r in y)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function A(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[l.call(e)]||"object":typeof e}var x="3.7.1",b=/HTML$/i,w=function(e,t){return new w.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=A(e);return!h(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||h(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||w.isPlainObject(n)?n:{},i=!1,s[t]=w.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},w.extend({expando:"jQuery"+(x+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]"!==l.call(e)||(t=r(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){v(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=w.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!b.test(t||n&&n.nodeName||"HTML")},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,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,s=0,a=[];if(C(e))for(r=e.length;s<r;s++)null!=(i=t(e[s],s,n))&&a.push(i);else for(s in e)null!=(i=t(e[s],s,n))&&a.push(i);return o(a)},guid:1,support:d}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var E=n.pop,S=n.sort,D=n.splice,j="[\\x20\\t\\r\\n\\f]",k=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");w.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function q(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}w.escapeSelector=function(e){return(e+"").replace(N,q)};var I=m,R=s;!function(){var t,r,o,s,u,l,f,p,h,g,m=R,y=w.expando,v=0,A=0,x=ee(),b=ee(),C=ee(),N=ee(),q=function(e,t){return e===t&&(u=!0),0},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+j+"*("+B+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+j+"*\\]",M=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",L=new RegExp(j+"+","g"),P=new RegExp("^"+j+"*,"+j+"*"),F=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),Q=new RegExp(j+"|>"),W=new RegExp(M),U=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),z=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))},$=function(){ue()},K=pe(function(e){return!0===e.disabled&&T(e,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(n=i.call(I.childNodes),I.childNodes),n[I.childNodes.length].nodeType}catch(e){m={apply:function(e,t){R.apply(e,i.call(t))},call:function(e){R.apply(e,i.call(arguments,1))}}}function _(e,t,n,r){var i,o,s,a,u,c,f,g=t&&t.ownerDocument,v=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return n;if(!r&&(ue(t),t=t||l,p)){if(11!==v&&(u=Z.exec(e)))if(i=u[1]){if(9===v){if(!(s=t.getElementById(i)))return n;if(s.id===i)return m.call(n,s),n}else if(g&&(s=g.getElementById(i))&&_.contains(t,s)&&s.id===i)return m.call(n,s),n}else{if(u[2])return m.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(i)),n}if(!(N[e+" "]||h&&h.test(e))){if(f=e,g=t,1===v&&(Q.test(e)||F.test(e))){for((g=V.test(e)&&ae(t.parentNode)||t)==t&&d.scope||((a=t.getAttribute("id"))?a=w.escapeSelector(a):t.setAttribute("id",a=y)),o=(c=ce(e)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+fe(c[o]);f=c.join(",")}try{return m.apply(n,g.querySelectorAll(f)),n}catch(t){N(e,!0)}finally{a===y&&t.removeAttribute("id")}}}return ve(e.replace(k,"$1"),t,n,r)}function ee(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function te(e){return e[y]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return T(t,"input")&&t.type===e}}function ie(e){return function(t){return(T(t,"input")||T(t,"button"))&&t.type===e}}function oe(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&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te(function(t){return t=+t,te(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function ue(e){var t,n=e?e.ownerDocument||e:I;return n!=l&&9===n.nodeType&&n.documentElement?(f=(l=n).documentElement,p=!w.isXMLDoc(l),g=f.matches||f.webkitMatchesSelector||f.msMatchesSelector,f.msMatchesSelector&&I!=l&&(t=l.defaultView)&&t.top!==t&&t.addEventListener("unload",$),d.getById=ne(function(e){return f.appendChild(e).id=w.expando,!l.getElementsByName||!l.getElementsByName(w.expando).length}),d.disconnectedMatch=ne(function(e){return g.call(e,"*")}),d.scope=ne(function(){return l.querySelectorAll(":scope")}),d.cssHas=ne(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),d.getById?(r.filter.ID=function(e){var t=e.replace(X,z);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(X,z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},h=[],ne(function(e){var t;f.appendChild(e).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+j+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+y+"-]").length||h.push("~="),e.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")}),d.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),q=function(e,t){if(e===t)return u=!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===l||e.ownerDocument==I&&_.contains(I,e)?-1:t===l||t.ownerDocument==I&&_.contains(I,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)},l):l}for(t in _.matches=function(e,t){return _(e,null,null,t)},_.matchesSelector=function(e,t){if(ue(e),p&&!N[t+" "]&&(!h||!h.test(t)))try{var n=g.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return _(t,l,null,[e]).length>0},_.contains=function(e,t){return(e.ownerDocument||e)!=l&&ue(e),w.contains(e,t)},_.attr=function(e,t){(e.ownerDocument||e)!=l&&ue(e);var n=r.attrHandle[t.toLowerCase()],i=n&&c.call(r.attrHandle,t.toLowerCase())?n(e,t,!p):void 0;return void 0!==i?i:e.getAttribute(t)},_.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],r=0,o=0;if(u=!d.sortStable,s=!d.sortStable&&i.call(e,0),S.call(e,q),u){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)D.call(e,n[r],1)}return s=null,e},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(i.apply(this)))},r=w.expr={cacheLength:50,createPseudo:te,match:Y,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(X,z),e[3]=(e[3]||e[4]||e[5]||"").replace(X,z),"~="===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]||_.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]&&_.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=ce(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(X,z).toLowerCase();return"*"===e?function(){return!0}:function(e){return T(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&x(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(r){var i=_.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(L," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h=o!==s?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),A=!u&&!a,x=!1;if(g){if(o){for(;h;){for(f=t;f=f[h];)if(a?T(f,m):1===f.nodeType)return!1;d=h="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&A){for(x=(p=(l=(c=g[y]||(g[y]={}))[e]||[])[0]===v&&l[1])&&l[2],f=p&&g.childNodes[p];f=++p&&f&&f[h]||(x=p=0)||d.pop();)if(1===f.nodeType&&++x&&f===t){c[e]=[v,p,x];break}}else if(A&&(x=p=(l=(c=t[y]||(t[y]={}))[e]||[])[0]===v&&l[1]),!1===x)for(;(f=++p&&f&&f[h]||(x=p=0)||d.pop())&&(!(a?T(f,m):1===f.nodeType)||!++x||(A&&((c=f[y]||(f[y]={}))[e]=[v,x]),f!==t)););return(x-=i)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||_.error("unsupported pseudo: "+e);return i[y]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,n){for(var r,o=i(e,t),s=o.length;s--;)e[r=a.call(e,o[s])]=!(n[r]=o[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:te(function(e){var t=[],n=[],r=ye(e.replace(k,"$1"));return r[y]?te(function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return _(e,t).length>0}}),contains:te(function(e){return e=e.replace(X,z),function(t){return(t.textContent||w.text(t)).indexOf(e)>-1}}),lang:te(function(e){return U.test(e||"")||_.error("unsupported lang: "+e),e=e.replace(X,z).toLowerCase(),function(t){var n;do{if(n=p?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===f},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return T(e,"input")&&!!e.checked||T(e,"option")&&!!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!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){return T(e,"input")&&"button"===e.type||T(e,"button")},text:function(e){var t;return T(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se(function(){return[0]}),last:se(function(e,t){return[t-1]}),eq:se(function(e,t,n){return[n<0?n+t:n]}),even:se(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:se(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:se(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:se(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=re(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ie(t);function le(){}function ce(e,t){var n,i,o,s,a,u,l,c=b[e+" "];if(c)return t?0:c.slice(0);for(a=e,u=[],l=r.preFilter;a;){for(s in n&&!(i=P.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),n=!1,(i=F.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(k," ")}),a=a.slice(n.length)),r.filter)!(i=Y[s].exec(a))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?_.error(e):b(e,u).slice(0)}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=A++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var l,c,f=[v,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(c=t[y]||(t[y]={}),i&&T(t,i))t=t[r]||t;else{if((l=c[o])&&l[0]===v&&l[1]===a)return f[2]=l[2];if(c[o]=f,f[2]=e(t,n,u))return!0}return!1}}function de(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function ge(e,t,n,r,i,o){return r&&!r[y]&&(r=ge(r)),i&&!i[y]&&(i=ge(i,o)),te(function(o,s,u,l){var c,f,p,d,h=[],g=[],y=s.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)_(e,t[r],n);return n}(t||"*",u.nodeType?[u]:u,[]),A=!e||!o&&t?v:he(v,h,e,u,l);if(n?n(A,d=i||(o?e:y||r)?[]:s,u,l):d=A,r)for(c=he(d,g),r(c,[],u,l),f=c.length;f--;)(p=c[f])&&(d[g[f]]=!(A[g[f]]=p));if(o){if(i||e){if(i){for(c=[],f=d.length;f--;)(p=d[f])&&c.push(A[f]=p);i(null,d=[],c,l)}for(f=d.length;f--;)(p=d[f])&&(c=i?a.call(o,p):h[f])>-1&&(o[c]=!(s[c]=p))}}else d=he(d===s?d.splice(y,d.length):d),i?i(null,s,d,l):m.apply(s,d)})}function me(e){for(var t,n,i,s=e.length,u=r.relative[e[0].type],l=u||r.relative[" "],c=u?1:0,f=pe(function(e){return e===t},l,!0),p=pe(function(e){return a.call(t,e)>-1},l,!0),d=[function(e,n,r){var i=!u&&(r||n!=o)||((t=n).nodeType?f(e,n,r):p(e,n,r));return t=null,i}];c<s;c++)if(n=r.relative[e[c].type])d=[pe(de(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[y]){for(i=++c;i<s&&!r.relative[e[i].type];i++);return ge(c>1&&de(d),c>1&&fe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(k,"$1"),n,c<i&&me(e.slice(c,i)),i<s&&me(e=e.slice(i)),i<s&&fe(e))}d.push(n)}return de(d)}function ye(e,t){var n,i=[],s=[],a=C[e+" "];if(!a){for(t||(t=ce(e)),n=t.length;n--;)(a=me(t[n]))[y]?i.push(a):s.push(a);a=C(e,function(e,t){var n=t.length>0,i=e.length>0,s=function(s,a,u,c,f){var d,h,g,y=0,A="0",x=s&&[],b=[],C=o,T=s||i&&r.find.TAG("*",f),S=v+=null==C?1:Math.random()||.1,D=T.length;for(f&&(o=a==l||a||f);A!==D&&null!=(d=T[A]);A++){if(i&&d){for(h=0,a||d.ownerDocument==l||(ue(d),u=!p);g=e[h++];)if(g(d,a||l,u)){m.call(c,d);break}f&&(v=S)}n&&((d=!g&&d)&&y--,s&&x.push(d))}if(y+=A,n&&A!==y){for(h=0;g=t[h++];)g(x,b,a,u);if(s){if(y>0)for(;A--;)x[A]||b[A]||(b[A]=E.call(c));b=he(b)}m.apply(c,b),f&&!s&&b.length>0&&y+t.length>1&&w.uniqueSort(c)}return f&&(v=S,o=C),x};return n?te(s):s}(s,i)),a.selector=e}return a}function ve(e,t,n,i){var o,s,a,u,l,c="function"==typeof e&&e,f=!i&&ce(e=c.selector||e);if(n=n||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===t.nodeType&&p&&r.relative[s[1].type]){if(!(t=(r.find.ID(a.matches[0].replace(X,z),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=Y.needsContext.test(e)?0:s.length;o--&&(a=s[o],!r.relative[u=a.type]);)if((l=r.find[u])&&(i=l(a.matches[0].replace(X,z),V.test(s[0].type)&&ae(t.parentNode)||t))){if(s.splice(o,1),!(e=i.length&&fe(s)))return m.apply(n,i),n;break}}return(c||ye(e,f))(i,t,!p,n,!t||V.test(e)&&ae(t.parentNode)||t),n}le.prototype=r.filters=r.pseudos,r.setFilters=new le,d.sortStable=y.split("").sort(q).join("")===y,ue(),d.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),w.find=_,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,_.compile=ye,_.select=ve,_.setDocument=ue,_.tokenize=ce,_.escape=w.escapeSelector,_.getText=w.text,_.isXML=w.isXMLDoc,_.selectors=w.expr,_.support=w.support,_.uniqueSort=w.uniqueSort}();var H=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},B=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},O=w.expr.match.needsContext,M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return h(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return a.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&O.test(e)?w(e):e||[],!1).length}});var P,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:F.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 w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),M.test(r[1])&&w.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,P=w(m);var Q=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&w(e);if(!O.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(w(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.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 U(e,"nextSibling")},prev:function(e){return U(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 B((e.parentNode||{}).firstChild,e)},children:function(e){return B(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(W[e]||w.uniqueSort(i),Q.test(e)&&i.reverse()),this.pushStack(i)}});var Y=/[^\x20\t\r\n\f]+/g;function G(e){return e}function J(e){throw e}function Z(e,t,n,r){var i;try{e&&h(i=e.promise)?i.call(e).done(t).fail(n):e&&h(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(Y)||[],function(e,n){t[n]=!0}),t}(e):w.extend({},e);var t,n,r,i,o=[],s=[],a=-1,u=function(){for(i=i||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){w.each(n,function(n,r){h(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==A(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;(n=w.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=h(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function s(t,n,r,i){return function(){var a=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(a,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(l)?i?l.call(e,s(o,n,G,i),s(o,n,J,i)):(o++,l.call(e,s(o,n,G,i),s(o,n,J,i),s(o,n,G,n.notifyWith))):(r!==G&&(a=void 0,u=[e]),(i||n.resolveWith)(a,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.error),t+1>=o&&(r!==J&&(a=void 0,u=[e]),n.rejectWith(a,u))}};t?c():(w.Deferred.getErrorHook?c.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(c.error=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(s(0,e,h(i)?i:G,e.notifyWith)),n[1][3].add(s(0,e,h(t)?t:G)),n[2][3].add(s(0,e,h(r)?r:J))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),s=w.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?i.call(arguments):n,--t||s.resolveWith(r,o)}};if(t<=1&&(Z(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||h(o[n]&&o[n].then)))return s.then();for(;n--;)Z(o[n],a(n),s.reject);return s.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&V.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var X=w.Deferred();function z(){m.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),w.ready()}w.fn.ready=function(e){return X.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||X.resolveWith(m,[w]))}}),w.ready.then=X.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var $=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===A(n))for(a in i=!0,n)$(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,h(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},K=/^-ms-/,_=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(K,"ms-").replace(_,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=w.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(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[te(t)]=n;else for(r in t)i[te(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(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(te):(t=te(t))in r?[t]:t.match(Y)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.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&&!w.isEmptyObject(t)}};var ie=new re,oe=new re,se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function ue(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:se.test(e)?JSON.parse(e):e)}(n)}catch(e){}oe.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return oe.hasData(e)||ie.hasData(e)},data:function(e,t,n){return oe.access(e,t,n)},removeData:function(e,t){oe.remove(e,t)},_data:function(e,t,n){return ie.access(e,t,n)},_removeData:function(e,t){ie.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=oe.get(o),1===o.nodeType&&!ie.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=te(r.slice(5)),ue(o,r,i[r]));ie.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){oe.set(this,e)}):$(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=oe.get(o,e))||void 0!==(n=ue(o,e))?n:void 0;this.each(function(){oe.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){oe.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ie.get(e,t),n&&(!r||Array.isArray(n)?r=ie.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){w.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie.get(e,n)||ie.access(e,n,{empty:w.Callbacks("once memory").add(function(){ie.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ie.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var le=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ce=new RegExp("^(?:([+-])=|)("+le+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],pe=m.documentElement,de=function(e){return w.contains(e.ownerDocument,e)},he={composed:!0};pe.getRootNode&&(de=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(he)===e.ownerDocument});var ge=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&de(e)&&"none"===w.css(e,"display")};function me(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return w.css(e,t,"")},u=a(),l=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==l&&+u)&&ce.exec(w.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)w.style(e,t,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c*=2,w.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 ye={};function ve(e){var t,n=e.ownerDocument,r=e.nodeName,i=ye[r];return i||(t=n.body.appendChild(n.createElement(r)),i=w.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ye[r]=i,i)}function Ae(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=ie.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ge(r)&&(i[o]=ve(r))):"none"!==n&&(i[o]="none",ie.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}w.fn.extend({show:function(){return Ae(this,!0)},hide:function(){return Ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?w(this).show():w(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;xe=m.createDocumentFragment().appendChild(m.createElement("div")),(be=m.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),d.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",d.option=!!xe.lastChild;var Ee={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 Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?w.merge([e],n):n}function De(e,t){for(var n=0,r=e.length;n<r;n++)ie.set(e[n],"globalEval",!t||ie.get(t[n],"globalEval"))}Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,d.option||(Ee.optgroup=Ee.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function ke(e,t,n,r,i){for(var o,s,a,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===A(o))w.merge(p,o.nodeType?[o]:o);else if(je.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ce.exec(o)||["",""])[1].toLowerCase(),u=Ee[a]||Ee._default,s.innerHTML=u[1]+w.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;w.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&w.inArray(o,r)>-1)i&&i.push(o);else if(l=de(o),s=Se(f.appendChild(o),"script"),l&&De(s),n)for(c=0;o=s[c++];)Te.test(o.type||"")&&n.push(o);return f}var Ne=/^([^.]*)(?:\.(.+)|)/;function qe(){return!0}function Ie(){return!1}function Re(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Re(e,a,n,r,t[a],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=Ie;else if(!i)return e;return 1===o&&(s=i,i=function(e){return w().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}function He(e,t,n){n?(ie.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ie.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),ie.set(this,t,r),this[t](),n=ie.get(this,t),ie.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ie.set(this,t,w.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=qe)}})):void 0===ie.get(e,t)&&w.event.add(e,t,qe)}w.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=ie.get(e);if(ne(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(pe,i),n.guid||(n.guid=w.guid++),(u=m.events)||(u=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(Y)||[""]).length;l--;)d=g=(a=Ne.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=ie.hasData(e)&&ie.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(Y)||[""]).length;l--;)if(d=g=(a=Ne.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),d){for(f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.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));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||w.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),u=w.event.fix(e),l=(ie.get(this,"events")||Object.create(null))[u.type]||[],c=w.event.special[u.type]||{};for(a[0]=u,t=1;t<arguments.length;t++)a[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(s=w.event.handlers.call(this,u,l),t=0;(i=s[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(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=((w.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!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,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?w(i,this).index(l)>-1:w.find(i,this,null,[l]).length),s[i]&&o.push(r);o.length&&a.push({elem:l,handlers:o})}return l=this,u<t.length&&a.push({elem:l,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&T(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&T(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&T(t,"input")&&ie.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?qe:Ie,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&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=qe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=qe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=qe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.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:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(m.documentMode){var n=ie.get(this,"handle"),r=w.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else w.event.simulate(t,e.target,w.event.fix(e))}w.event.special[e]={setup:function(){var r;if(He(this,e,!0),!m.documentMode)return!1;(r=ie.get(this,t))||this.addEventListener(t,n),ie.set(this,t,(r||0)+1)},trigger:function(){return He(this,e),!0},teardown:function(){var e;if(!m.documentMode)return!1;(e=ie.get(this,t)-1)?ie.set(this,t,e):(this.removeEventListener(t,n),ie.remove(this,t))},_default:function(t){return ie.get(t.target,e)},delegateType:t},w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=m.documentMode?this:r,o=ie.get(i,t);o||(m.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ie.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=m.documentMode?this:r,o=ie.get(i,t)-1;o?ie.set(i,t,o):(m.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ie.remove(i,t))}}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,r){return Re(this,e,t,n,r)},one:function(e,t,n,r){return Re(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(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=Ie),this.each(function(){w.event.remove(this,e,n,t)})}});var Be=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Le(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Qe(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(ie.hasData(e)&&(a=ie.get(e).events))for(i in ie.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)w.event.add(t,i,a[i][n]);oe.hasData(e)&&(o=oe.access(e),s=w.extend({},o),oe.set(t,s))}}function We(e,t){var n=t.nodeName.toLowerCase();"input"===n&&we.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ue(e,t,n,r){t=o(t);var i,s,a,u,l,c,f=0,p=e.length,g=p-1,m=t[0],y=h(m);if(y||p>1&&"string"==typeof m&&!d.checkClone&&Oe.test(m))return e.each(function(i){var o=e.eq(i);y&&(t[0]=m.call(this,i,o.html())),Ue(o,t,n,r)});if(p&&(s=(i=ke(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(u=(a=w.map(Se(i,"script"),Pe)).length;f<p;f++)l=i,f!==g&&(l=w.clone(l,!0,!0),u&&w.merge(a,Se(l,"script"))),n.call(e[f],l,f);if(u)for(c=a[a.length-1].ownerDocument,w.map(a,Fe),f=0;f<u;f++)l=a[f],Te.test(l.type||"")&&!ie.access(l,"globalEval")&&w.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):v(l.textContent.replace(Me,""),l,c))}return e}function Ye(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(Se(r)),r.parentNode&&(n&&de(r)&&De(Se(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=de(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=Se(a),r=0,i=(o=Se(e)).length;r<i;r++)We(o[r],s[r]);if(t)if(n)for(o=o||Se(e),s=s||Se(a),r=0,i=o.length;r<i;r++)Qe(o[r],s[r]);else Qe(e,a);return(s=Se(a,"script")).length>0&&De(s,!u&&Se(e,"script")),a},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(ne(n)){if(t=n[ie.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[ie.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return $(this,function(e){return void 0===e?w.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 Ue(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Ue(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ue(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ue(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&&(w.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.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&&!Be.test(e)&&!Ee[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ue(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(Se(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),w(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Ge=new RegExp("^("+le+")(?!px)[a-z%]+$","i"),Je=/^--/,Ze=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ve=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},Xe=new RegExp(fe.join("|"),"i");function ze(e,t,n){var r,i,o,s,a=Je.test(t),u=e.style;return(n=n||Ze(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(k,"$1")||void 0),""!==s||de(e)||(s=w.style(e,t)),!d.pixelBoxStyles()&&Ge.test(s)&&Xe.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=s,s=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==s?s+"":s}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),pe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,s,a,u,l=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==a&&(t=m.createElement("table"),n=m.createElement("tr"),r=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",pe.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,pe.removeChild(t)),a}}))}();var Ke=["Webkit","Moz","ms"],_e=m.createElement("div").style,et={};function tt(e){var t=w.cssProps[e]||et[e];return t||(e in _e?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in _e)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,rt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"};function ot(e,t,n){var r=ce.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function st(e,t,n,r,i,o){var s="width"===t?1:0,a=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(e,n+fe[s],!0,i)),r?("content"===n&&(u-=w.css(e,"padding"+fe[s],!0,i)),"margin"!==n&&(u-=w.css(e,"border"+fe[s]+"Width",!0,i))):(u+=w.css(e,"padding"+fe[s],!0,i),"padding"!==n?u+=w.css(e,"border"+fe[s]+"Width",!0,i):a+=w.css(e,"border"+fe[s]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-a-.5))||0),u+l}function at(e,t,n){var r=Ze(e),i=(!d.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),o=i,s=ze(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(s)){if(!n)return s;s="auto"}return(!d.boxSizingReliable()&&i||!d.reliableTrDimensions()&&T(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===w.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+st(e,t,n||(i?"border":"content"),o,r,s)+"px"}function ut(e,t,n,r,i){return new ut.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=te(t),u=Je.test(t),l=e.style;if(u||(t=tt(a)),s=w.cssHooks[t]||w.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=ce.exec(n))&&i[1]&&(n=me(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(w.cssNumber[a]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,s,a=te(t);return Je.test(t)||(t=tt(a)),(s=w.cssHooks[t]||w.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in it&&(i=it[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!nt.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,r):Ve(e,rt,function(){return at(e,t,r)})},set:function(e,n,r){var i,o=Ze(e),s=!d.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===w.css(e,"boxSizing",!1,o),u=r?st(e,t,r,a,o):0;return a&&s&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-st(e,t,"border",!1,o)-.5)),u&&(i=ce.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),ot(0,n,u)}}}),w.cssHooks.marginLeft=$e(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+fe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=ot)}),w.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Ze(e),i=t.length;s<i;s++)o[t[s]]=w.css(e,t[s],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,arguments.length>1)}}),w.Tween=ut,ut.prototype={constructor:ut,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,n=ut.propHooks[this.prop];return this.options.duration?this.pos=t=w.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):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.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=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=ut.prototype.init,w.fx.step={};var lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ct&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(dt):e.setTimeout(dt,w.fx.interval),w.fx.tick())}function ht(){return e.setTimeout(function(){lt=void 0}),lt=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=fe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function mt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function yt(e,t,n){var r,i,o=0,s=yt.prefilters.length,a=w.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=lt||ht(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(r);return a.notifyWith(e,[l,r,n]),r<1&&s?n:(s||a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:lt||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=te(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=w.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<s;o++)if(r=yt.prefilters[o].call(l,e,c,l.opts))return h(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,mt,l),h(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return me(n.elem,e,ce.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(Y);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ge(e),m=ie.get(e,"fxshow");for(r in n.queue||(null==(s=w._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,w.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=m&&m.display)&&(l=ie.get(e,"display")),"none"===(c=w.css(e,"display"))&&(l?c=l:(Ae([e],!0),l=e.style.display||l,c=w.css(e,"display"),Ae([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===w.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||(m?"hidden"in m&&(g=m.hidden):m=ie.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&Ae([e],!0),p.done(function(){for(r in g||Ae([e]),ie.remove(e,"fxshow"),d)w.style(e,r,d[r])})),u=mt(g?m[r]:0,r,p),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),s=function(){var t=yt(this,w.extend({},e),o);(i||ie.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=w.timers,s=ie.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&pt.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ie.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=w.timers,s=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(gt(t,!0),e,r,i)}}),w.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(lt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),lt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ct||(ct=!0,dt())},w.fx.stop=function(){ct=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=m.createElement("input"),t=m.createElement("select").appendChild(m.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=t.selected,(e=m.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var vt,At=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return $(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void w.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=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&T(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(Y);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=At[t]||w.find.attr;At[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=At[s],At[s]=i,i=null!=n(e,t,r)?s:null,At[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function wt(e){return(e.match(Y)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}w.fn.extend({prop:function(e,t){return $(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.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=w.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,r,i,o,s;return h(e)?this.each(function(t){w(this).addClass(e.call(this,t,Ct(this)))}):(t=Tt(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+wt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=wt(n),r!==s&&this.setAttribute("class",s)}}):this},removeClass:function(e){var t,n,r,i,o,s;return h(e)?this.each(function(t){w(this).removeClass(e.call(this,t,Ct(this)))}):arguments.length?(t=Tt(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+wt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");s=wt(n),r!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,s=typeof e,a="string"===s||Array.isArray(e);return h(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,Ct(this),t),t)}):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Tt(e),this.each(function(){if(a)for(o=w(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==s||((r=Ct(this))&&ie.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ie.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+wt(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Et,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:wt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],u=s?o+1:i.length;for(r=o<0?u:s?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),s=i.length;s--;)((r=i[s]).selected=w.inArray(w.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},d.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var St=e.location,Dt={guid:Date.now()},jt=/\?/;w.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||w.error("Invalid XML: "+(r?w.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var kt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,r,i){var o,s,a,u,l,f,p,d,y=[r||m],v=c.call(t,"type")?t.type:t,A=c.call(t,"namespace")?t.namespace.split("."):[];if(s=d=a=r=r||m,3!==r.nodeType&&8!==r.nodeType&&!kt.test(v+w.event.triggered)&&(v.indexOf(".")>-1&&(A=v.split("."),v=A.shift(),A.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[w.expando]?t:new w.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=A.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+A.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:w.makeArray(n,[t]),p=w.event.special[v]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!g(r)){for(u=p.delegateType||v,kt.test(u+v)||(s=s.parentNode);s;s=s.parentNode)y.push(s),a=s;a===(r.ownerDocument||m)&&y.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=y[o++])&&!t.isPropagationStopped();)d=s,t.type=o>1?u:p.bindType||v,(f=(ie.get(s,"events")||Object.create(null))[t.type]&&ie.get(s,"handle"))&&f.apply(s,n),(f=l&&s[l])&&f.apply&&ne(s)&&(t.result=f.apply(s,n),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(y.pop(),n)||!ne(r)||l&&h(r[v])&&!g(r)&&((a=r[l])&&(r[l]=null),w.event.triggered=v,t.isPropagationStopped()&&d.addEventListener(v,Nt),r[v](),t.isPropagationStopped()&&d.removeEventListener(v,Nt),w.event.triggered=void 0,a&&(r[l]=a)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,It=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,function(t,i){n||qt.test(e)?r(e,i):Bt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==A(t))r(e,t);else for(i in t)Bt(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(n in e)Bt(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Ht.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}});var Ot=/%20/g,Mt=/#.*$/,Lt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Qt=/^\/\//,Wt={},Ut={},Yt="*/".concat("*"),Gt=m.createElement("a");function Jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Y)||[];if(h(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Zt(e,t,n,r){var i={},o=e===Ut;function s(a){var u;return i[a]=!0,w.each(e[a]||[],function(e,a){var l=a(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),s(l),!1)}),u}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Vt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Gt.href=St.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,w.ajaxSettings),t):Vt(w.ajaxSettings,e)},ajaxPrefilter:Jt(Wt),ajaxTransport:Jt(Ut),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,s,a,u,l,c,f,p,d=w.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?w(h):w.event,y=w.Deferred(),v=w.Callbacks("once memory"),A=d.statusCode||{},x={},b={},C="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Pt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=b[e.toLowerCase()]=b[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)T.always(e[T.status]);else for(t in e)A[t]=[A[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),E(0,t),this}};if(y.promise(T),d.url=((t||d.url||St.href)+"").replace(Qt,St.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Y)||[""],null==d.crossDomain){u=m.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Gt.protocol+"//"+Gt.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),Zt(Wt,d,n,T),l)return T;for(f in(c=w.event&&d.global)&&0===w.active++&&w.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ft.test(d.type),i=d.url.replace(Mt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Ot,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(jt.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Lt,"$1"),p=(jt.test(i)?"&":"?")+"_="+Dt.guid+++p),d.url=i+p),d.ifModified&&(w.lastModified[i]&&T.setRequestHeader("If-Modified-Since",w.lastModified[i]),w.etag[i]&&T.setRequestHeader("If-None-Match",w.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Yt+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,T,d)||l))return T.abort();if(C="abort",v.add(d.complete),T.done(d.success),T.fail(d.error),r=Zt(Ut,d,n,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,d]),l)return T;d.async&&d.timeout>0&&(a=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{l=!1,r.send(x,E)}catch(e){if(l)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,s,u){var f,p,m,x,b,C=n;l||(l=!0,a&&e.clearTimeout(a),r=void 0,o=u||"",T.readyState=t>0?4:0,f=t>=200&&t<300||304===t,s&&(x=function(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[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}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,T,s)),!f&&w.inArray("script",d.dataTypes)>-1&&w.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),x=function(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();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(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(d,x,T,f),f?(d.ifModified&&((b=T.getResponseHeader("Last-Modified"))&&(w.lastModified[i]=b),(b=T.getResponseHeader("etag"))&&(w.etag[i]=b)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=x.state,p=x.data,f=!(m=x.error))):(m=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",f?y.resolveWith(h,[p,C,T]):y.rejectWith(h,[T,C,m]),T.statusCode(A),A=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[T,d,f?p:m]),v.fireWith(h,[T,C]),c&&(g.trigger("ajaxComplete",[T,d]),--w.active||w.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,r,i){return h(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}}),w.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=w(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 h(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},zt=w.ajaxSettings.xhr();d.cors=!!zt&&"withCredentials"in zt,d.ajax=zt=!!zt,w.ajaxTransport(function(t){var n,r;if(d.cors||zt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Xt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}});var $t,Kt=[],_t=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||w.expando+"_"+Dt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(_t.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&_t.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(_t,"$1"+i):!1!==t.jsonp&&(t.url+=(jt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||w.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?w(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Kt.push(i)),s&&h(o)&&o(s[0]),s=o=void 0}),"script"}),d.createHTMLDocument=(($t=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$t.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),o=!n&&[],(i=M.exec(e))?[t.createElement(i[1])]:(i=ke([e],t,o),o&&o.length&&w(o).remove(),w.merge([],i.childNodes)));var r,i,o},w.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=wt(e.slice(a)),e=e.slice(0,a)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&w.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l=w.css(e,"position"),c=w(e),f={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=w.css(e,"top"),u=w.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),h(t)&&(t=t.call(e,n,w.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.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"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),i.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-w.css(r,"marginTop",!0),left:t.left-i.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||pe})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return $(this,function(e,r,i){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=$e(d.pixelPosition,function(e,n){if(n)return n=ze(e,t),Ge.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){w.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return $(this,function(t,n,i){var o;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,n,a):w.style(t,n,i,a)},t,s?i:void 0,s)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.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.on("mouseenter",e).on("mouseleave",t||e)}}),w.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,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=i.call(arguments,2),o=function(){return e.apply(t||this,r.concat(i.call(arguments)))},o.guid=e.guid=e.guid||w.guid++,o},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=T,w.isFunction=h,w.isWindow=g,w.camelCase=te,w.type=A,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(en,"$1")};var tn=e.jQuery,nn=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=nn),t&&e.jQuery===w&&(e.jQuery=tn),w},void 0===t&&(e.jQuery=e.$=w),w},jquery$1.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}),jquery$1.exports;var e,t}requireJquery();class CommonUtilities{static isHtmlElement(e){if(null===e)return!1;try{return e instanceof Element||e instanceof Document}catch(t){return"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}static getComputedStyle(e,t){return CommonUtilities.isHtmlElement(e)?document&&document.defaultView&&document.defaultView.getComputedStyle(e,t||null):null}static createCSS(e,t,n){if(null===e)throw new Error("[CommonUtilities.createCSS] passed content is not a string. Is type "+typeof e);const r=document.head,i=document.createElement("style");"string"==typeof t&&(i.id=t),"string"==typeof n&&n.length>0&&i.setAttribute("media",n),"object"==typeof i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),r.appendChild(i)}}class OptimizeImage{constructor(){this.inputTypeFileHandlerReference=null,this.customInputElements=null,this.onCompressionDoneCallback=void 0,this.originalCursor=void 0,this.timeoutId=void 0,this.processedEvent=!1,this.busyElementId="sl_busy_indicator",this.quality=.75}createCSS(){CommonUtilities.createCSS('\n .sl-busy-indicator {\n display: flex;\n justify-content: center;\n position: fixed;\n top: 4px;\n width: 100%;\n }\n\n .sl-busy-indicator span {\n background-image: url("data:image/gif;base64,R0lGODlhHwAfAPUAAP///wAAAOjo6NLS0ry8vK6urqKiotzc3Li4uJqamuTk5NjY2KqqqqCgoLCwsMzMzPb29qioqNTU1Obm5jY2NiYmJlBQUMTExHBwcJKSklZWVvr6+mhoaEZGRsbGxvj4+EhISDIyMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA4BiwSQexKh0eEAkrldAZbvlOD5TqYKALWu5XIwnPFwwymY0GsRgAxrwuJwbCi8aAHlYZ3sVdwtRCm8JgVgODwoQAAIXGRpojQwKRGSDCRESYRsGHYZlBFR5AJt2a3kHQlZlERN2QxMRcAiTeaG2QxJ5RnAOv1EOcEdwUMZDD3BIcKzNq3BJcJLUABBwStrNBtjf3GUGBdLfCtadWMzUz6cDxN/IZQMCvdTBcAIAsli0jOHSJeSAqmlhNr0awo7RJ19TJORqdAXVEEVZyjyKtE3Bg3oZE2iK8oeiKkFZGiCaggelSTiA2LhxiZLBSjZjBL2siNBOFQ84LxHA+mYEiRJzBO7ZCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82YAIQxRCm14Ww4PChAAEAoPDlsAFRUgHkRiZAkREmoSEXiVlRgfQgeBaXRpo6MOQlZbERN0Qx4drRUcAAJmnrVDBrkVDwNjr8BDGxq5Z2MPyUQZuRgFY6rRABe5FgZjjdm8uRTh2d5b4NkQY0zX5QpjTc/lD2NOx+WSW0++2RJmUGJhmZVsQqgtCE6lqpXGjBchmt50+hQKEAEiht5gUcTIESR9GhlgE9IH0BiTkxrMmWIHDkose9SwcQlHDsOIk9ygiVbl5JgMLuV4HUmypMkTOkEAACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2LQV3t4UBcvcF9/eFpdYxdgZ5hUYA73YGxruCbVjt78G7hXFqlhY/fLQwR0HIQdGuUrTz5eQdIc0cfIEwByGD0MKvcGSaFGjR8GyeAPhIUofQGNQSgrB4IsdOCqx7FHDBiYcOQshYjKDxliVDpRjunCjdSTJkiZP6AQBACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2I3WBcvczltNxNzIW0693MFYT7bTumNQqlisv7BjswAHo64egFdQAbj0RtOXDQY6VAAUakihN1gSLaJ1IYOGChgXXqEUpQ9ASRlDYhT0xQ4cACJDhqDD5mRKjCAYuArjBmVKDP9+VRljMyMHDwcfuBlBooSCBQwJiqkJAgAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA8BQIAwExKh0eEAkrlcA9oo4TKcKwharHScIiu9wwTBn3QnGQg1owBNld+O72N/zZnVzRApteFsODwoQABAKDw5bZQxpQ2JkCRESahIRh1gEVIGVamlmXgBWWxETdEMTnlsIAAJmm65DEmZGYw64UZFbR2MPv0QPY0hjpMYKY0ljjMZCEGNK09MG0diN1gXL3M5bTcTcyFtOvdzBWE+207pjUKpYrL+wY7MAB4EerqZjUAG4lKVCBwMbvnT6dCXUkEIFK0jUkOECFEeQJF2hFKUPAIkgQwIaI+hLiJAoR27Zo4YBCJQgVW4cpMYDBpgVZKL59cEBhw+U+QROQ4bBAoUlTZ7QCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82Z1c0QKbXhbDg8KEAAQCg8OW2UMaUNiZAkREmoSEYdYBFSBlWppZl4AVlsRE3RDE55bCAACZpuuQxJmRmMOuFGRW0djD79ED2NIY6TGCmNJY4zGQhBjStPTFBXb21DY1VsGFtzbF9gAzlsFGOQVGefIW2LtGhvYwVgDD+0V17+6Y6BwaNfBwy9YY2YBcMAPnStTY1B9YMdNiyZOngCFGuIBxDZAiRY1eoTvE6UoDEIAGrNSUoNBUuzAaYlljxo2M+HIeXiJpRsRNMaq+JSFCpsRJEqYOPH2JQgAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfjywjlzX9jdXNEHiAVFX8ODwoQABAKDw5bZQxpQh8YiIhaERJqEhF4WwRDDpubAJdqaWZeAByoFR0edEMTolsIAA+yFUq2QxJmAgmyGhvBRJNbA5qoGcpED2MEFrIX0kMKYwUUslDaj2PA4soGY47iEOQFY6vS3FtNYw/m1KQDYw7mzFhPZj5JGzYGipUtESYowzVmF4ADgOCBCZTgFQAxZBJ4AiXqT6ltbUZhWdToUSR/Ii1FWbDnDkUyDQhJsQPn5ZU9atjUhCPHVhgTNy/RSKsiqKFFbUaQKGHiJNyXIAAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEh8JDAWCsBQIAwExKhU+HFwKlgsIMHlIg7TqQeTLW+7XYIiPGSAymY0mrFgA0LwuLzbCC/6eVlnewkADXVECgxcAGUaGRdQEAoPDmhnDGtDBJcVHQYbYRIRhWgEQwd7AB52AGt7YAAIchETrUITpGgIAAJ7ErdDEnsCA3IOwUSWaAOcaA/JQ0amBXKa0QpyBQZyENFCEHIG39HcaN7f4WhM1uTZaE1y0N/TacZoyN/LXU+/0cNyoMxCUytYLjm8AKSS46rVKzmxADhjlCACMFGkBiU4NUQRxS4OHijwNqnSJS6ZovzRyJAQo0NhGrgs5bIPmwWLCLHsQsfhxBWTe9QkOzCwC8sv5Ho127akyRM7QQAAOwAAAAAAAAAAAA==");\n background-repeat: no-repeat;\n background-position: 100% 50%;\n background-size: 1.5rem 1.5rem;\n display: inline-flex;\n height: 1.5rem;\n width: 1.5rem;\n }')}enableBusyIndicator(){const e=CommonUtilities.getComputedStyle(document.body);if(null===e)return;this.originalCursor=e.getPropertyValue("cursor"),document.body.style.cursor="progress";const t=document.createElement("div");t.id=this.busyElementId,t.classList.add("sl-busy-indicator"),t.insertAdjacentHTML("afterbegin","<span></span>"),document.body.appendChild(t)}disableBusyIndicator(){globalThis.clearTimeout(this.timeoutId),"string"==typeof this.originalCursor&&(document.body.style.cursor=this.originalCursor);const e=document.getElementById(this.busyElementId);null==e||e.remove()}async compressImage(e,{quality:t=1,type:n=e.type}){let r;try{r=await globalThis.createImageBitmap(e)}catch(e){return Promise.resolve(null)}const i=document.createElement("canvas");i.width=r.width,i.height=r.height;const o=i.getContext("2d");if(null===o)return Promise.resolve(null);let s;o.drawImage(r,0,0);try{s=await new Promise(e=>{i.toBlob(e,n,t)})}catch(e){return Promise.resolve(null)}return null===s?Promise.resolve(null):new File([s],e.name,{type:s.type})}redispatchEvent(e,t){var n;const r=t;r.disabled=!1;const i={bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,currentTarget:e.currentTarget,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,returnValue:e.returnValue,srcElement:e.srcElement,target:e.target,timeStamp:e.timeStamp,type:e.type};if("undefined"==typeof jQuery){const t=new CustomEvent(e.type,i);null===(n=r.parentNode)||void 0===n||n.dispatchEvent(t)}else{const n=$.Event(e.type,i);$(t).trigger(n)}this.processedEvent=!1}async processImages(e,t){const n=t;if(void 0===n.files)return void this.redispatchEvent(e,n);const r=n.files;if(null===r||0===r.length)return void this.redispatchEvent(e,n);this.timeoutId=Number(globalThis.setTimeout(this.enableBusyIndicator.bind(this),1e3));const i=["image/jpeg","image/png","image/webp"],o=t=>t===e.target;let s;if(Array.isArray(this.customInputElements)&&(s=this.customInputElements.find(o),void 0===s))return;const a=new DataTransfer,u={quality:this.quality,type:"image/jpeg"},l=async e=>{if(!1===e.type.startsWith("image")||!1===i.includes(e.type))return void a.items.add(e);const t=Object.assign(u,{type:e.type}),n=await this.compressImage(e,t);n instanceof File&&(n.size<e.size?a.items.add(n):a.items.add(e))};for(let e=0,t=r.length;e<t;e+=1)await l(r[e]);e.target.files=a.files,this.disableBusyIndicator(),"function"==typeof this.onCompressionDoneCallback&&this.onCompressionDoneCallback(r,a.files),this.redispatchEvent(e,t)}handlejQueryChangeEvent(e){const t=e.originalEvent;if(void 0===t||null===t.target)return;const n=$(t.target);!this.processedEvent&&n.is('input[type="file"]')&&"change"===e.type&&(1===e.eventPhase&&(this.processedEvent=!0),e.stopPropagation(),n.prop("disabled",!0),this.processImages(t,n[0]))}handleChangeEvent(e){const t=e.target;this.processedEvent||null===t||"change"===e.type&&"input"===t.nodeName.toLowerCase()&&"file"===t.type&&(1===e.eventPhase&&(this.processedEvent=!0),e.stopPropagation(),t.disabled=!0,this.processImages(e,t))}addImageOptimization(e){"string"==typeof e&&(this.customInputElements=Array.from(document.querySelectorAll(e)))}uninstall(){this.onCompressionDoneCallback=void 0,null!==this.inputTypeFileHandlerReference&&document.removeEventListener("change",this.inputTypeFileHandlerReference)}install(e,t,n=.75){this.inputTypeFileHandlerReference=this.handleChangeEvent.bind(this),this.quality=n,this.onCompressionDoneCallback=t;const r={capture:!0};window.jQuery?$(document).on("change",this.handlejQueryChangeEvent.bind(this)):document.addEventListener("change",this.inputTypeFileHandlerReference,r),this.createCSS(),"string"==typeof e&&this.addImageOptimization(e)}}export{OptimizeImage};
|
|
9
|
+
* Date: 2026-11-17T18:40Z
|
|
10
|
+
*/function Ji(b,g){if(typeof b>"u"||!b.document)throw new Error("jQuery requires a window with a document");var A=[],k=Object.getPrototypeOf,w=A.slice,O=A.flat?function(e){return A.flat.call(e)}:function(e){return A.concat.apply([],e)},P=A.push,M=A.indexOf,Q={},Me=Q.toString,le=Q.hasOwnProperty,R=le.toString,we=R.call(Object),ee={};function Ee(e){return e==null?e+"":typeof e=="object"?Q[Me.call(e)]||"object":typeof e}function Se(e){return e!=null&&e===e.window}function Le(e){var t=!!e&&e.length,n=Ee(e);return typeof e=="function"||Se(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}var N=b.document,Nn={type:!0,src:!0,nonce:!0,noModule:!0};function jt(e,t,n){n=n||N;var i,o=n.createElement("script");o.text=e;for(i in Nn)t&&t[i]&&(o[i]=t[i]);n.head.appendChild(o).parentNode&&o.parentNode.removeChild(o)}var Nt="4.1.0",kn=/HTML$/i,r=function(e,t){return new r.fn.init(e,t)};r.fn=r.prototype={jquery:Nt,constructor:r,length:0,toArray:function(){return w.call(this)},get:function(e){return e==null?w.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=r.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return r.each(this,e)},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(r.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(r.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},r.extend=r.fn.extend=function(){var e,t,n,i,o,s,u=arguments[0]||{},a=1,f=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[a]||{},a++),typeof u!="object"&&typeof u!="function"&&(u={}),a===f&&(u=this,a--);a<f;a++)if((e=arguments[a])!=null)for(t in e)i=e[t],!(t==="__proto__"||u===i)&&(c&&i&&(r.isPlainObject(i)||(o=Array.isArray(i)))?(n=u[t],o&&!Array.isArray(n)?s=[]:!o&&!r.isPlainObject(n)?s={}:s=n,o=!1,u[t]=r.extend(c,s,i)):i!==void 0&&(u[t]=i));return u},r.extend({expando:"jQuery"+(Nt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||Me.call(e)!=="[object Object]"?!1:(t=k(e),t?(n=le.call(t,"constructor")&&t.constructor,typeof n=="function"&&R.call(n)===we):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){jt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(Le(e))for(n=e.length;i<n&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},text:function(e){var t,n,i="",o=e.nodeType;if(!o)for(t=0;t<e.length;t++)n=e[t],i+=r.text(n);return o===1||o===11?e.textContent:o===9?e.documentElement.textContent:o===3||o===4?e.nodeValue:i},makeArray:function(e,t){var n=t||[];return e!=null&&(Le(Object(e))?r.merge(n,typeof e=="string"?[e]:e):P.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:M.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!kn.test(t||n&&n.nodeName||"HTML")},contains:function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i,o=[],s=0,u=e.length,a=!n;s<u;s++)i=!t(e[s],s),i!==a&&o.push(e[s]);return o},map:function(e,t,n){var i,o,s=0,u=[];if(Le(e))for(i=e.length;s<i;s++)o=t(e[s],s,n),o!=null&&u.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&u.push(o);return O(u)},guid:1,support:ee}),typeof Symbol=="function"&&(r.fn[Symbol.iterator]=A[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Q["[object "+t+"]"]=t.toLowerCase()});function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var In=A.pop,E="[\\x20\\t\\r\\n\\f]",De=/^--/,q=N.documentMode,Be=q&&new RegExp(":enabled|:disabled|\\["+E+"*name"+E+"*="+E+`*(?:''|"")`),je=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),On="\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\da-fA-F\\r\\n\\f]",se="(?:"+On+"|[\\w-]|[^\\0-\\x7f])+",kt=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),Rn=new RegExp(E+"|>"),rt=/[+~]/,te=N.documentElement,qn=te.matches||te.msMatchesSelector;function Fe(){var e=[];function t(n,i){return e.push(n+" ")>r.expr.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function ot(e){return e&&typeof e.querySelectorAll<"u"&&e}var It="\\["+E+"*("+se+")(?:"+E+"*([*^$|!~]?=)"+E+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+se+"))|)"+E+"*\\]",Ot=":("+se+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+It+")*)|.*)\\)|)",st={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se+"|[*])"),ATTR:new RegExp("^"+It),PSEUDO:new RegExp("^"+Ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i")},Hn=new RegExp(Ot),Pn=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\da-fA-F\\r\\n\\f])","g"),Mn=function(e,t){var n="0x"+e.slice(1)-0;return t||(!n||n>1114111||n>=55296&&n<57344?"\uFFFD":n<65536?String.fromCharCode(n):String.fromCharCode(n-65536>>10|55296,n-65536&1023|56320))};function ne(e){return e.replace(Pn,Mn)}function Ne(e){r.error("Syntax error, unrecognized expression: "+e)}var Ln=new RegExp("^"+E+"*,"+E+"*"),Rt=Fe();function ke(e,t){var n,i,o,s,u,a,f,c=Rt[e+" "];if(c)return t?0:c.slice(0);for(u=e,a=[],f=r.expr.preFilter;u;){(!n||(i=Ln.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),a.push(o=[])),n=!1,(i=kt.exec(u))&&(n=i.shift(),o.push({value:n,type:i[0].replace(je," ")}),u=u.slice(n.length));for(s in st)(i=r.expr.match[s].exec(u))&&(!f[s]||(i=f[s](i)))&&(n=i.shift(),o.push({value:n,type:s,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?Ne(e):Rt(e,a).slice(0)}var Bn={ATTR:function(e){return e[1]=ne(e[1]),e[3]=ne(e[3]||e[4]||e[5]||""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||Ne(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&Ne(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return st.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Hn.test(n)&&(t=ke(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))}};function Qe(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function V(e,t,n,i,o,s,u){var a=0,f=e.length,c=n==null;if(Ee(n)==="object"){o=!0;for(a in n)V(e,t,a,n[a],!0,s,u)}else if(i!==void 0&&(o=!0,typeof i!="function"&&(u=!0),c&&(u?(t.call(e,i),t=null):(c=t,t=function(p,d,l){return c.call(r(p),l)})),t))for(;a<f;a++)t(e[a],n,u?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):f?t(e[0],n):s}var _=/[^\x20\t\r\n\f]+/g;r.fn.extend({attr:function(e,t){return V(this,r.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){r.removeAttr(this,e)})}}),r.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(!(s===3||s===8||s===2)){if(typeof e.getAttribute>"u")return r.prop(e,t,n);if((s!==1||!r.isXMLDoc(e))&&(o=r.attrHooks[t.toLowerCase()]),n!==void 0){if(n===null||n===!1&&t.toLowerCase().indexOf("aria-")!==0){r.removeAttr(e,t);return}return o&&"set"in o&&(i=o.set(e,n,t))!==void 0?i:(e.setAttribute(t,n),n)}return o&&"get"in o&&(i=o.get(e,t))!==null?i:(i=e.getAttribute(t),i??void 0)}},attrHooks:{},removeAttr:function(e,t){var n,i=t&&t.match(_);if(i&&e.nodeType===1)for(n=0;n<i.length;n++)e.removeAttribute(i[n])}}),q&&(r.attrHooks.type={set:function(e,t){if(t==="radio"&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}});var Fn=/^-$|([\0-\x1f\x7f]|^-?\d)|[^\x80-\uFFFF\w-]/g;function Qn(e,t){return t?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}r.escapeSelector=function(e){return(e+"").replace(Fn,Qn)};var Wn=A.sort,Un=A.splice,ut;function Gn(e,t){if(e==t)return ut=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1?e==N||e.ownerDocument==N&&r.contains(N,e)?-1:t==N||t.ownerDocument==N&&r.contains(N,t)?1:0:n&4?-1:1)}r.uniqueSort=function(e){var t,n=1;if(ut=!1,Wn.call(e,Gn),ut){for(t=1;t<e.length;t++)e[t]!==e[t-1]&&(e[n++]=e[t]);Array.isArray(e)?e.length=n:Un.call(e,n)}return e},r.fn.uniqueSort=function(){return this.pushStack(r.uniqueSort(w.apply(this)))};var pe,We,F,qt,X,K=0,Yn=0,Ht=Fe(),Pt=Fe(),Ue=Fe(),Zn=new RegExp(E+"+","g"),_n=new RegExp("^"+se+"$"),Mt=r.extend({needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},st),Jn=/^(?:input|select|textarea|button)$/i,Vn=/^h\d$/i,Xn=/^(?:#([\w-]+)|(\.?[a-z][\w-]*))$/i,Kn=function(){de()},$n=Ge(function(e){return e.disabled===!0&&S(e,"fieldset")},{dir:"parentNode",next:"legend"});function U(e,t,n,i){var o,s,u,a,f,c,p,d=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],typeof e!="string"||!e||l!==1&&l!==9&&l!==11)return n;if(!i&&(de(t),t=t||F,X)){if(l!==11&&(f=Xn.exec(e))){if(o=f[1]){if(l===9)return(u=t.getElementById(o))&&P.call(n,u),n;if(d&&(u=d.getElementById(o))&&r.contains(t,u))return P.call(n,u),n}else if(f[2])return P.apply(n,t.querySelectorAll(e)),n}if(!Ue[e+" "]&&(!Be||!Be.test(e))){if(p=e,d=t,l===1&&(Rn.test(e)||kt.test(e))){for(d=rt.test(e)&&ot(t.parentNode)||t,(d!=t||q)&&((a=t.getAttribute("id"))?a=r.escapeSelector(a):t.setAttribute("id",a=r.expando)),c=ke(e),s=c.length;s--;)c[s]=(a?"#"+a:":scope")+" "+Qe(c[s]);p=c.join(",")}try{return P.apply(n,d.querySelectorAll(p)),n}catch{Ue(e,!0)}finally{a===r.expando&&t.removeAttribute("id")}}}return Ft(e.replace(je,"$1"),t,n,i)}function J(e){return e[r.expando]=!0,e}function zn(e){return function(t){return S(t,"input")&&t.type===e}}function ei(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function Lt(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&$n(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function ue(e){return J(function(t){return t=+t,J(function(n,i){for(var o,s=e([],n.length,t),u=s.length;u--;)n[o=s[u]]&&(n[o]=!(i[o]=n[o]))})})}function de(e){var t,n=e?e.ownerDocument||e:N;n==F||n.nodeType!==9||(F=n,qt=F.documentElement,X=!r.isXMLDoc(F),q&&N!=F&&(t=F.defaultView)&&t.top!==t&&t.addEventListener("unload",Kn))}U.matches=function(e,t){return U(e,null,null,t)},U.matchesSelector=function(e,t){if(de(e),X&&!Ue[t+" "]&&(!Be||!Be.test(t)))try{return qn.call(e,t)}catch{Ue(t,!0)}return U(t,F,null,[e]).length>0},r.expr={cacheLength:50,createPseudo:J,match:Mt,find:{ID:function(e,t){if(typeof t.getElementById<"u"&&X){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return q&&De.test(e)?[]:t.querySelectorAll(e==="*"?e:r.escapeSelector(e))},CLASS:function(e,t){if(X)return q&&De.test(e)?t.getElementsByClassName(e):t.querySelectorAll("."+r.escapeSelector(e))}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:Bn,filter:{ID:function(e){var t=ne(e);return function(n){return n.getAttribute("id")===t}},TAG:function(e){var t=ne(e).toLowerCase();return e==="*"?function(){return!0}:function(n){return S(n,t)}},CLASS:function(e){var t=Ht[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&Ht(e,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute<"u"&&n.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=r.attr(i,e);return o==null?t==="!=":t?(o+="",t==="="?o===n:t==="!="?o!==n:t==="^="?n&&o.indexOf(n)===0:t==="*="?n&&o.indexOf(n)>-1:t==="$="?n&&o.slice(-n.length)===n:t==="~="?(" "+o.replace(Zn," ")+" ").indexOf(n)>-1:t==="|="?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,i,o){var s=e.slice(0,3)!=="nth",u=e.slice(-4)!=="last",a=t==="of-type";return i===1&&o===0?function(f){return!!f.parentNode}:function(f,c,p){var d,l,h,y,v,x=s!==u?"nextSibling":"previousSibling",j=f.parentNode,D=a&&f.nodeName.toLowerCase(),Y=!p&&!a,H=!1;if(j){if(s){for(;x;){for(h=f;h=h[x];)if(a?S(h,D):h.nodeType===1)return!1;v=x=e==="only"&&!v&&"nextSibling"}return!0}if(v=[u?j.firstChild:j.lastChild],u&&Y){for(l=j[r.expando]||(j[r.expando]={}),d=l[e]||[],y=d[0]===K&&d[1],H=y&&d[2],h=y&&j.childNodes[y];h=++y&&h&&h[x]||(H=y=0)||v.pop();)if(h.nodeType===1&&++H&&h===f){l[e]=[K,y,H];break}}else if(Y&&(l=f[r.expando]||(f[r.expando]={}),d=l[e]||[],y=d[0]===K&&d[1],H=y),H===!1)for(;(h=++y&&h&&h[x]||(H=y=0)||v.pop())&&!((a?S(h,D):h.nodeType===1)&&++H&&(Y&&(l=h[r.expando]||(h[r.expando]={}),l[e]=[K,H]),h===f)););return H-=o,H===i||H%i===0&&H/i>=0}}},PSEUDO:function(e,t){var n=r.expr.pseudos[e]||r.expr.setFilters[e.toLowerCase()]||Ne("unsupported pseudo: "+e);return n[r.expando]?n(t):n}},pseudos:{not:J(function(e){var t=[],n=[],i=lt(e.replace(je,"$1"));return i[r.expando]?J(function(o,s,u,a){for(var f,c=i(o,null,a,[]),p=o.length;p--;)(f=c[p])&&(o[p]=!(s[p]=f))}):function(o,s,u){return t[0]=o,i(t,null,u,n),t[0]=null,!n.pop()}}),has:J(function(e){return function(t){return U(e,t).length>0}}),contains:J(function(e){return e=ne(e),function(t){return(t.textContent||r.text(t)).indexOf(e)>-1}}),lang:J(function(e){return _n.test(e||"")||Ne("unsupported lang: "+e),e=ne(e).toLowerCase(),function(t){var n;do if(n=X?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(e){var t=b.location&&b.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===qt},focus:function(e){return e===F.activeElement&&F.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Lt(!1),disabled:Lt(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return q&&e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.expr.pseudos.empty(e)},header:function(e){return Vn.test(e.nodeName)},input:function(e){return Jn.test(e.nodeName)},button:function(e){return S(e,"input")&&e.type==="button"||S(e,"button")},text:function(e){return S(e,"input")&&e.type==="text"},first:ue(function(){return[0]}),last:ue(function(e,t){return[t-1]}),eq:ue(function(e,t,n){return[n<0?n+t:n]}),even:ue(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ue(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ue(function(e,t,n){var i;for(n<0?i=n+t:n>t?i=t:i=n;--i>=0;)e.push(i);return e}),gt:ue(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},r.expr.pseudos.nth=r.expr.pseudos.eq;for(pe in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.expr.pseudos[pe]=zn(pe);for(pe in{submit:!0,reset:!0})r.expr.pseudos[pe]=ei(pe);function Bt(){}Bt.prototype=r.expr.pseudos,r.expr.setFilters=new Bt;function Ge(e,t,n){var i=t.dir,o=t.next,s=o||i,u=n&&s==="parentNode",a=Yn++;return t.first?function(f,c,p){for(;f=f[i];)if(f.nodeType===1||u)return e(f,c,p);return!1}:function(f,c,p){var d,l,h=[K,a];if(p){for(;f=f[i];)if((f.nodeType===1||u)&&e(f,c,p))return!0}else for(;f=f[i];)if(f.nodeType===1||u)if(l=f[r.expando]||(f[r.expando]={}),o&&S(f,o))f=f[i]||f;else{if((d=l[s])&&d[0]===K&&d[1]===a)return h[2]=d[2];if(l[s]=h,h[2]=e(f,c,p))return!0}return!1}}function at(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function ti(e,t,n){for(var i=0,o=t.length;i<o;i++)U(e,t[i],n);return n}function Ye(e,t,n,i,o){for(var s,u=[],a=0,f=e.length,c=t!=null;a<f;a++)(s=e[a])&&(!n||n(s,i,o))&&(u.push(s),c&&t.push(a));return u}function ft(e,t,n,i,o,s){return i&&!i[r.expando]&&(i=ft(i)),o&&!o[r.expando]&&(o=ft(o,s)),J(function(u,a,f,c){var p,d,l,h,y=[],v=[],x=a.length,j=u||ti(t||"*",f.nodeType?[f]:f,[]),D=e&&(u||!t)?Ye(j,y,e,f,c):j;if(n?(h=o||(u?e:x||i)?[]:a,n(D,h,f,c)):h=D,i)for(p=Ye(h,v),i(p,[],f,c),d=p.length;d--;)(l=p[d])&&(h[v[d]]=!(D[v[d]]=l));if(u){if(o||e){if(o){for(p=[],d=h.length;d--;)(l=h[d])&&p.push(D[d]=l);o(null,h=[],p,c)}for(d=h.length;d--;)(l=h[d])&&(p=o?M.call(u,l):y[d])>-1&&(u[p]=!(a[p]=l))}}else h=Ye(h===a?h.splice(x,h.length):h),o?o(null,a,h,c):P.apply(a,h)})}function ct(e){for(var t,n,i,o=e.length,s=r.expr.relative[e[0].type],u=s||r.expr.relative[" "],a=s?1:0,f=Ge(function(d){return d===t},u,!0),c=Ge(function(d){return M.call(t,d)>-1},u,!0),p=[function(d,l,h){var y=!s&&(h||l!=We)||((t=l).nodeType?f(d,l,h):c(d,l,h));return t=null,y}];a<o;a++)if(n=r.expr.relative[e[a].type])p=[Ge(at(p),n)];else{if(n=r.expr.filter[e[a].type].apply(null,e[a].matches),n[r.expando]){for(i=++a;i<o&&!r.expr.relative[e[i].type];i++);return ft(a>1&&at(p),a>1&&Qe(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(je,"$1"),n,a<i&&ct(e.slice(a,i)),i<o&&ct(e=e.slice(i)),i<o&&Qe(e))}p.push(n)}return at(p)}function ni(e,t){var n=t.length>0,i=e.length>0,o=function(s,u,a,f,c){var p,d=0,l="0",h=0,y=s&&[],v=[],x=We,j=s||i&&r.expr.find.TAG("*",c),D=K+=x==null?1:Math.random()||.1;for(c&&(We=u==F||u||c);l<j.length;l++){if(p=j[l],i&&p){for(!u&&p.ownerDocument!=F&&(de(p),a=!X),d=0;d<e.length;d++)if(e[d](p,u||F,a)){P.call(f,p);break}c&&(K=D)}n&&((p=d>=e.length&&p)&&h--,s&&y.push(p))}if(h+=l,n&&l!==h){for(d=0;d<t.length;d++)t[d](y,v,u,a);if(s){if(h>0)for(;l--;)y[l]||v[l]||(v[l]=In.call(f));v=Ye(v)}P.apply(f,v),c&&!s&&v.length>0&&h+t.length>1&&r.uniqueSort(f)}return c&&(K=D,We=x),y};return n?J(o):o}function lt(e,t){var n,i=[],o=[],s=Pt[e+" "];if(!s){for(t||(t=ke(e)),n=t.length;n--;)s=ct(t[n]),s[r.expando]?i.push(s):o.push(s);s=Pt(e,ni(o,i)),s.selector=e}return s}function Ft(e,t,n,i){var o,s,u,a,f,c=typeof e=="function"&&e,p=!i&&ke(e=c.selector||e);if(n=n||[],p.length===1){if(s=p[0]=p[0].slice(0),s.length>2&&(u=s[0]).type==="ID"&&t.nodeType===9&&X&&r.expr.relative[s[1].type]){if(t=(r.expr.find.ID(ne(u.matches[0]),t)||[])[0],t)c&&(t=t.parentNode);else return n;e=e.slice(s.shift().value.length)}for(o=Mt.needsContext.test(e)?0:s.length;o--&&(u=s[o],!r.expr.relative[a=u.type]);)if((f=r.expr.find[a])&&(i=f(ne(u.matches[0]),rt.test(s[0].type)&&ot(t.parentNode)||t))){if(s.splice(o,1),e=i.length&&Qe(s),!e)return P.apply(n,i),n;break}}return(c||lt(e,p))(i,t,!X,n,!t||rt.test(e)&&ot(t.parentNode)||t),n}de(),r.find=U,U.compile=lt,U.select=Ft,U.setDocument=de,U.tokenize=ke;function he(e,t,n){for(var i=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&r(e).is(n))break;i.push(e)}return i}function Qt(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}var Wt=r.expr.match.needsContext,Ut=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Gt(e){return e[0]==="<"&&e[e.length-1]===">"&&e.length>=3}function pt(e,t,n){return typeof t=="function"?r.grep(e,function(i,o){return!!t.call(i,o,i)!==n}):t.nodeType?r.grep(e,function(i){return i===t!==n}):typeof t!="string"?r.grep(e,function(i){return M.call(t,i)>-1!==n}):r.filter(t,e,n)}r.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),t.length===1&&i.nodeType===1?r.find.matchesSelector(i,e)?[i]:[]:r.find.matches(e,r.grep(t,function(o){return o.nodeType===1}))},r.fn.extend({find:function(e){var t,n,i=this.length,o=this;if(typeof e!="string")return this.pushStack(r(e).filter(function(){for(t=0;t<i;t++)if(r.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)r.find(e,o[t],n);return i>1?r.uniqueSort(n):n},filter:function(e){return this.pushStack(pt(this,e||[],!1))},not:function(e){return this.pushStack(pt(this,e||[],!0))},is:function(e){return!!pt(this,typeof e=="string"&&Wt.test(e)?r(e):e||[],!1).length}});var Ze,ii=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ri=r.fn.init=function(e,t){var n,i;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if(typeof e=="function")return Ze.ready!==void 0?Ze.ready(e):e(r);if(n=e+"",Gt(n))n=[null,e,null];else if(typeof e=="string")n=ii.exec(e);else return r.makeArray(e,this);if(n&&(n[1]||!t))if(n[1]){if(t=t instanceof r?t[0]:t,r.merge(this,r.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:N,!0)),Ut.test(n[1])&&r.isPlainObject(t))for(n in t)typeof this[n]=="function"?this[n](t[n]):this.attr(n,t[n]);return this}else return i=N.getElementById(n[2]),i&&(this[0]=i,this.length=1),this;else return!t||t.jquery?(t||Ze).find(e):this.constructor(t).find(e)};ri.prototype=r.fn,Ze=r(N);var oi=/^(?:parents|prev(?:Until|All))/,si={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(e){var t=r(e,this),n=t.length;return this.filter(function(){for(var i=0;i<n;i++)if(r.contains(this,t[i]))return!0})},closest:function(e,t){var n,i=0,o=this.length,s=[],u=typeof e!="string"&&r(e);if(!Wt.test(e)){for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(u?u.index(n)>-1:n.nodeType===1&&r.find.matchesSelector(n,e))){s.push(n);break}}return this.pushStack(s.length>1?r.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?M.call(r(e),this[0]):M.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Yt(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}r.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return he(e,"parentNode")},parentsUntil:function(e,t,n){return he(e,"parentNode",n)},next:function(e){return Yt(e,"nextSibling")},prev:function(e){return Yt(e,"previousSibling")},nextAll:function(e){return he(e,"nextSibling")},prevAll:function(e){return he(e,"previousSibling")},nextUntil:function(e,t,n){return he(e,"nextSibling",n)},prevUntil:function(e,t,n){return he(e,"previousSibling",n)},siblings:function(e){return Qt((e.parentNode||{}).firstChild,e)},children:function(e){return Qt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&k(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),r.merge([],e.childNodes))}},function(e,t){r.fn[e]=function(n,i){var o=r.map(this,t,n);return e.slice(-5)!=="Until"&&(i=n),i&&typeof i=="string"&&(o=r.filter(i,o)),this.length>1&&(si[e]||r.uniqueSort(o),oi.test(e)&&o.reverse()),this.pushStack(o)}});function ui(e){var t={};return r.each(e.match(_)||[],function(n,i){t[i]=!0}),t}r.Callbacks=function(e){e=typeof e=="string"?ui(e):r.extend({},e);var t,n,i,o,s=[],u=[],a=-1,f=function(){for(o=o||e.once,i=t=!0;u.length;a=-1)for(n=u.shift();++a<s.length;)s[a].apply(n[0],n[1])===!1&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(n?s=[]:s="")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,u.push(n)),(function p(d){r.each(d,function(l,h){typeof h=="function"?(!e.unique||!c.has(h))&&s.push(h):h&&h.length&&Ee(h)!=="string"&&p(h)})})(arguments),n&&!t&&f()),this},remove:function(){return r.each(arguments,function(p,d){for(var l;(l=r.inArray(d,s,l))>-1;)s.splice(l,1),l<=a&&a--}),this},has:function(p){return p?r.inArray(p,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=u=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=u=[],!n&&!t&&(s=n=""),this},locked:function(){return!!o},fireWith:function(p,d){return o||(d=d||[],d=[p,d.slice?d.slice():d],u.push(d),t||f()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c};function ge(e){return e}function _e(e){throw e}function Zt(e,t,n,i){var o;try{e&&typeof(o=e.promise)=="function"?o.call(e).done(t).fail(n):e&&typeof(o=e.then)=="function"?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(s){n(s)}}r.extend({Deferred:function(e){var t=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(s){return i.then(null,s)},pipe:function(){var s=arguments;return r.Deferred(function(u){r.each(t,function(a,f){var c=typeof s[f[4]]=="function"&&s[f[4]];o[f[1]](function(){var p=c&&c.apply(this,arguments);p&&typeof p.promise=="function"?p.promise().progress(u.notify).done(u.resolve).fail(u.reject):u[f[0]+"With"](this,c?[p]:arguments)})}),s=null}).promise()},then:function(s,u,a){var f=0;function c(p,d,l,h){return function(){var y=this,v=arguments,x=function(){var D,Y;if(!(p<f)){if(D=l.apply(y,v),D===d.promise())throw new TypeError("Thenable self-resolution");Y=D&&(typeof D=="object"||typeof D=="function")&&D.then,typeof Y=="function"?h?Y.call(D,c(f,d,ge,h),c(f,d,_e,h)):(f++,Y.call(D,c(f,d,ge,h),c(f,d,_e,h),c(f,d,ge,d.notifyWith))):(l!==ge&&(y=void 0,v=[D]),(h||d.resolveWith)(y,v))}},j=h?x:function(){try{x()}catch(D){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(D,j.error),p+1>=f&&(l!==_e&&(y=void 0,v=[D]),d.rejectWith(y,v))}};p?j():(r.Deferred.getErrorHook&&(j.error=r.Deferred.getErrorHook()),b.setTimeout(j))}}return r.Deferred(function(p){t[0][3].add(c(0,p,typeof a=="function"?a:ge,p.notifyWith)),t[1][3].add(c(0,p,typeof s=="function"?s:ge)),t[2][3].add(c(0,p,typeof u=="function"?u:_e))}).promise()},promise:function(s){return s!=null?r.extend(s,i):i}},o={};return r.each(t,function(s,u){var a=u[2],f=u[5];i[u[1]]=a.add,f&&a.add(function(){n=f},t[3-s][2].disable,t[3-s][3].disable,t[0][2].lock,t[0][3].lock),a.add(u[3].fire),o[u[0]]=function(){return o[u[0]+"With"](this===o?void 0:this,arguments),this},o[u[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=w.call(arguments),s=r.Deferred(),u=function(a){return function(f){i[a]=this,o[a]=arguments.length>1?w.call(arguments):f,--t||s.resolveWith(i,o)}};if(t<=1&&(Zt(e,s.done(u(n)).resolve,s.reject,!t),s.state()==="pending"||typeof(o[n]&&o[n].then)=="function"))return s.then();for(;n--;)Zt(o[n],u(n),s.reject);return s.promise()}});var ai=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(e,t){e&&ai.test(e.name)&&b.console.warn("jQuery.Deferred exception",e,t)},r.readyException=function(e){b.setTimeout(function(){throw e})};var dt=r.Deferred();r.fn.ready=function(e){return dt.then(e).catch(function(t){r.readyException(t)}),this},r.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--r.readyWait:r.isReady)||(r.isReady=!0,!(e!==!0&&--r.readyWait>0)&&dt.resolveWith(N,[r]))}}),r.ready.then=dt.then;function Je(){N.removeEventListener("DOMContentLoaded",Je),b.removeEventListener("load",Je),r.ready()}N.readyState!=="loading"?b.setTimeout(r.ready):(N.addEventListener("DOMContentLoaded",Je),b.addEventListener("load",Je));var fi=/-([a-z])/g;function ci(e,t){return t.toUpperCase()}function ae(e){return e.replace(fi,ci)}function Ie(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function Oe(){this.expando=r.expando+Oe.uid++}Oe.uid=1,Oe.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),Ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if(typeof t=="string")o[ae(t)]=n;else for(i in t)o[ae(i)]=t[i];return n},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ae(t)]},access:function(e,t,n){return t===void 0||t&&typeof t=="string"&&n===void 0?this.get(e,t):(this.set(e,t,n),n!==void 0?n:t)},remove:function(e,t){var n,i=e[this.expando];if(i!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ae):(t=ae(t),t=t in i?[t]:t.match(_)||[]),n=t.length;n--;)delete i[t[n]];(t===void 0||r.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!r.isEmptyObject(t)}};var m=new Oe,L=new Oe,li=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,pi=/[A-Z]/g;function di(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:li.test(e)?JSON.parse(e):e}function _t(e,t,n){var i;if(n===void 0&&e.nodeType===1)if(i="data-"+t.replace(pi,"-$&").toLowerCase(),n=e.getAttribute(i),typeof n=="string"){try{n=di(n)}catch{}L.set(e,t,n)}else n=void 0;return n}r.extend({hasData:function(e){return L.hasData(e)||m.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return m.access(e,t,n)},_removeData:function(e,t){m.remove(e,t)}}),r.fn.extend({data:function(e,t){var n,i,o,s=this[0],u=s&&s.attributes;if(e===void 0){if(this.length&&(o=L.get(s),s.nodeType===1&&!m.get(s,"hasDataAttrs"))){for(n=u.length;n--;)u[n]&&(i=u[n].name,i.indexOf("data-")===0&&(i=ae(i.slice(5)),_t(s,i,o[i])));m.set(s,"hasDataAttrs",!0)}return o}return typeof e=="object"?this.each(function(){L.set(this,e)}):V(this,function(a){if(s&&a===void 0)return _t(s,e,L.get(s,e));this.each(function(){L.set(this,e,a)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}}),r.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=m.get(e,t),n&&(!i||Array.isArray(n)?i=m.set(e,t,r.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=r.queue(e,t),i=n.length,o=n.shift(),s=r._queueHooks(e,t),u=function(){r.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),i--),o&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,o.call(e,u,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return m.get(e,n)||m.set(e,n,{empty:r.Callbacks("once memory").add(function(){m.remove(e,[t+"queue",n])})})}}),r.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?r.queue(this[0],e):t===void 0?this:this.each(function(){var i=r.queue(this,e,t);r._queueHooks(this,e),e==="fx"&&i[0]!=="inprogress"&&r.dequeue(this,e)})},dequeue:function(e){return this.each(function(){r.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=r.Deferred(),s=this,u=this.length,a=function(){--i||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";u--;)n=m.get(s[u],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Jt+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"];function Ve(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&r.css(e,"display")==="none"}var hi=/^[a-z]/,gi=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function Xe(e){return hi.test(e)&&gi.test(e[0].toUpperCase()+e.slice(1))}function Vt(e,t,n,i){var o,s,u=20,a=i?function(){return i.cur()}:function(){return r.css(e,t,"")},f=a(),c=n&&n[3]||(Xe(t)?"px":""),p=e.nodeType&&(!Xe(t)||c!=="px"&&+f)&&Re.exec(r.css(e,t));if(p&&p[3]!==c){for(f=f/2,c=c||p[3],p=+f||1;u--;)r.style(e,t,p+c),(1-s)*(1-(s=a()/f||.5))<=0&&(u=0),p=p/s;p=p*2,r.style(e,t,p+c),n=n||[]}return n&&(p=+p||+f||0,o=n[1]?p+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=p,i.end=o)),o}var yi=/^-ms-/;function ht(e){return ae(e.replace(yi,"ms-"))}var Xt={};function vi(e){var t,n=e.ownerDocument,i=e.nodeName,o=Xt[i];return o||(t=n.body.appendChild(n.createElement(i)),o=r.css(t,"display"),t.parentNode.removeChild(t),o==="none"&&(o="block"),Xt[i]=o,o)}function ye(e,t){for(var n,i,o=[],s=0,u=e.length;s<u;s++)i=e[s],i.style&&(n=i.style.display,t?(n==="none"&&(o[s]=m.get(i,"display")||null,o[s]||(i.style.display="")),i.style.display===""&&Ve(i)&&(o[s]=vi(i))):n!=="none"&&(o[s]="none",m.set(i,"display",n)));for(s=0;s<u;s++)o[s]!=null&&(e[s].style.display=o[s]);return e}r.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){Ve(this)?r(this).show():r(this).hide()})}});var qe=function(e){return r.contains(e.ownerDocument,e)||e.getRootNode(Ai)===e.ownerDocument},Ai={composed:!0};te.getRootNode||(qe=function(e){return r.contains(e.ownerDocument,e)});var Kt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,z={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};z.tbody=z.tfoot=z.colgroup=z.caption=z.thead,z.th=z.td;function B(e,t){var n;return typeof e.querySelectorAll<"u"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&S(e,t)?r.merge([e],n):n}var $t=/^$|^module$|\/(?:java|ecma)script/i;function gt(e,t){for(var n=0,i=e.length;n<i;n++)m.set(e[n],"globalEval",!t||m.get(t[n],"globalEval"))}var xi=/<|&#?\w+;/;function zt(e,t,n,i,o){var s,u,a,f,c,p,d,l=t.createDocumentFragment(),h=[],y=e.length;for(p=0;p<y;p++)if(s=e[p],s||s===0)if(Ee(s)==="object"&&(s.nodeType||Le(s)))r.merge(h,s.nodeType?[s]:s);else if(!xi.test(s))h.push(t.createTextNode(s));else{for(u=u||l.appendChild(t.createElement("div")),a=(Kt.exec(s)||["",""])[1].toLowerCase(),f=z[a]||A,d=f.length;--d>-1;)u=u.appendChild(t.createElement(f[d]));u.innerHTML=r.htmlPrefilter(s),r.merge(h,u.childNodes),u=l.firstChild,u.textContent=""}for(l.textContent="",p=0;p<h.length;p++){if(s=h[p],i&&r.inArray(s,i)>-1){o&&o.push(s);continue}if(c=qe(s),u=B(l.appendChild(s),"script"),c&>(u),n)for(d=0;d<u.length;d++)s=u[d],$t.test(s.type||"")&&n.push(s)}return l}function mi(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function bi(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ve(e,t,n,i){t=O(t);var o,s,u,a,f,c,p=0,d=e.length,l=d-1,h=t[0],y=typeof h=="function";if(y)return e.each(function(v){var x=e.eq(v);t[0]=h.call(this,v,x.html()),ve(x,t,n,i)});if(d&&(o=zt(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,o.childNodes.length===1&&(o=s),s||i)){for(u=r.map(B(o,"script"),mi),a=u.length;p<d;p++)f=o,p!==l&&(f=r.clone(f,!0,!0),a&&r.merge(u,B(f,"script"))),n.call(e[p],f,p);if(a)for(c=u[u.length-1].ownerDocument,r.map(u,bi),p=0;p<a;p++)f=u[p],$t.test(f.type||"")&&!m.get(f,"globalEval")&&r.contains(c,f)&&(f.src&&(f.type||"").toLowerCase()!=="module"?r._evalUrl&&!f.noModule&&r._evalUrl(f.src,{nonce:f.nonce,crossOrigin:f.crossOrigin},c):jt(f.textContent,f,c))}return e}var Ke=/^(?:checkbox|radio)$/i,en=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function xe(){return!1}function yt(e,t,n,i,o,s){var u,a;if(typeof t=="object"){typeof n!="string"&&(i=i||n,n=void 0);for(a in t)yt(e,a,n,i,t[a],s);return e}if(i==null&&o==null?(o=n,i=n=void 0):o==null&&(typeof n=="string"?(o=i,i=void 0):(o=i,i=n,n=void 0)),o===!1)o=xe;else if(!o)return e;return s===1&&(u=o,o=function(f){return r().off(f),u.apply(this,arguments)},o.guid=u.guid||(u.guid=r.guid++)),e.each(function(){r.event.add(this,t,o,i,n)})}r.event={add:function(e,t,n,i,o){var s,u,a,f,c,p,d,l,h,y,v,x=m.get(e);if(Ie(e))for(n.handler&&(s=n,n=s.handler,o=s.selector),o&&r.find.matchesSelector(te,o),n.guid||(n.guid=r.guid++),(f=x.events)||(f=x.events=Object.create(null)),(u=x.handle)||(u=x.handle=function(j){return typeof r<"u"&&r.event.triggered!==j.type?r.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(_)||[""],c=t.length;c--;)a=en.exec(t[c])||[],h=v=a[1],y=(a[2]||"").split(".").sort(),h&&(d=r.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=r.event.special[h]||{},p=r.extend({type:h,origType:v,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&r.expr.match.needsContext.test(o),namespace:y.join(".")},s),(l=f[h])||(l=f[h]=[],l.delegateCount=0,(!d.setup||d.setup.call(e,i,y,u)===!1)&&e.addEventListener&&e.addEventListener(h,u)),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?l.splice(l.delegateCount++,0,p):l.push(p))},remove:function(e,t,n,i,o){var s,u,a,f,c,p,d,l,h,y,v,x=m.hasData(e)&&m.get(e);if(!(!x||!(f=x.events))){for(t=(t||"").match(_)||[""],c=t.length;c--;){if(a=en.exec(t[c])||[],h=v=a[1],y=(a[2]||"").split(".").sort(),!h){for(h in f)r.event.remove(e,h+t[c],n,i,!0);continue}for(d=r.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,l=f[h]||[],a=a[2]&&new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=s=l.length;s--;)p=l[s],(o||v===p.origType)&&(!n||n.guid===p.guid)&&(!a||a.test(p.namespace))&&(!i||i===p.selector||i==="**"&&p.selector)&&(l.splice(s,1),p.selector&&l.delegateCount--,d.remove&&d.remove.call(e,p));u&&!l.length&&((!d.teardown||d.teardown.call(e,y,x.handle)===!1)&&r.removeEvent(e,h,x.handle),delete f[h])}r.isEmptyObject(f)&&m.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,u,a,f,c,p=new Array(arguments.length);for(t=r.event.fix(e),c=(m.get(this,"events")||Object.create(null))[t.type]||[],a=r.event.special[t.type]||{},s=0;s<arguments.length;s++)p[s]=arguments[s];if(p[0]=t,t.delegateTarget=this,!(a.preDispatch&&a.preDispatch.call(this,t)===!1)){for(f=r.event.handlers.call(this,t,c),s=0;s<f.length&&!t.isPropagationStopped();s++)for(i=f[s],t.currentTarget=i.elem,u=0;u<i.handlers.length&&!t.isImmediatePropagationStopped();u++)o=i.handlers[u],(!t.rnamespace||o.namespace===!1||t.rnamespace.test(o.namespace))&&(t.handleObj=o,t.data=o.data,n=((r.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,p),n!==void 0&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return a.postDispatch&&a.postDispatch.call(this,t),t.result}},handlers:function(e,t){var n,i,o,s,u,a=[],f=t.delegateCount,c=e.target;if(f&&!(e.type==="click"&&e.button>=1)){for(;c!==this;c=c.parentNode||this)if(c.nodeType===1&&!(e.type==="click"&&c.disabled===!0)){for(s=[],u={},n=0;n<f;n++)i=t[n],o=i.selector+" ",u[o]===void 0&&(u[o]=i.needsContext?r(o,this).index(c)>-1:r.find(o,this,null,[c]).length),u[o]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}}return c=this,f<t.length&&a.push({elem:c,handlers:t.slice(f)}),a},addProp:function(e,t){Object.defineProperty(r.Event.prototype,e,{enumerable:!0,configurable:!0,get:typeof t=="function"?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(e){return e[r.expando]?e:new r.Event(e)},special:r.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click"),!0},_default:function(e){var t=e.target;return Ke.test(t.type)&&t.click&&S(t,"input")&&m.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.preventDefault()}}})};function $e(e,t,n){if(!n){m.get(e,t)===void 0&&r.event.add(e,t,Ae);return}m.set(e,t,!1),r.event.add(e,t,{namespace:!1,handler:function(i){var o,s=m.get(this,t);if(i.isTrigger&1&&this[t]){if(s.length)(r.event.special[t]||{}).delegateType&&i.stopPropagation();else if(s=w.call(arguments),m.set(this,t,s),this[t](),o=m.get(this,t),m.set(this,t,!1),s!==o)return i.stopImmediatePropagation(),i.preventDefault(),o&&o.value}else s.length&&(m.set(this,t,{value:r.event.trigger(s[0],s.slice(1),this)}),i.stopPropagation(),i.isImmediatePropagationStopped=Ae)}})}r.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},r.Event=function(e,t){if(!(this instanceof r.Event))return new r.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Ae:xe,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&r.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[r.expando]=!0},r.Event.prototype={constructor:r.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},r.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:!0},r.event.addProp),r.each({focus:"focusin",blur:"focusout"},function(e,t){function n(i){var o=r.event.fix(i);o.type=i.type==="focusin"?"focus":"blur",o.isSimulated=!0,o.target===o.currentTarget&&m.get(this,"handle")(o)}r.event.special[e]={setup:function(){if($e(this,e,!0),q)this.addEventListener(t,n);else return!1},trigger:function(){return $e(this,e),!0},teardown:function(){if(q)this.removeEventListener(t,n);else return!1},_default:function(i){return m.get(i.target,e)},delegateType:t}}),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){r.event.special[e]={delegateType:t,bindType:t,handle:function(n){var i,o=this,s=n.relatedTarget,u=n.handleObj;return(!s||s!==o&&!r.contains(o,s))&&(n.type=u.origType,i=u.handler.apply(this,arguments),n.type=t),i}}}),r.fn.extend({on:function(e,t,n,i){return yt(this,e,t,n,i)},one:function(e,t,n,i){return yt(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,r(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(n=t,t=void 0),n===!1&&(n=xe),this.each(function(){r.event.remove(this,e,n,t)})}});var Ti=/<script|<style|<link/i;function tn(e,t){return S(e,"table")&&S(t.nodeType!==11?t:t.firstChild,"tr")&&r(e).children("tbody")[0]||e}function nn(e,t){var n,i,o,s=m.get(e,"events");if(t.nodeType===1){if(s){m.remove(t,"handle events");for(n in s)for(i=0,o=s[n].length;i<o;i++)r.event.add(t,n,s[n][i])}L.hasData(e)&&L.set(t,r.extend({},L.get(e)))}}function rn(e,t,n){var i,o,s=t?r.filter(t,e):e;for(o=0;o<s.length;o++)i=s[o],!n&&i.nodeType===1&&r.cleanData(B(i)),i.parentNode&&(n&&qe(i)&>(B(i,"script")),i.parentNode.removeChild(i));return e}r.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,u,a=e.cloneNode(!0),f=qe(e);if(q&&(e.nodeType===1||e.nodeType===11)&&!r.isXMLDoc(e))for(u=B(a),s=B(e),i=0,o=s.length;i<o;i++)S(u[i],"textarea")&&(u[i].defaultValue=s[i].defaultValue);if(t)if(n)for(s=s||B(e),u=u||B(a),i=0,o=s.length;i<o;i++)nn(s[i],u[i]);else nn(e,a);return u=B(a,"script"),u.length>0&>(u,!f&&B(e,"script")),a},cleanData:function(e){var t,n,i,o,s=r.event.special;for(o=0;o<e.length;o++)if(n=e[o],Ie(n)){if(t=n[m.expando]){if(t.events)for(i in t.events)s[i]?r.event.remove(n,i):r.removeEvent(n,i,t.handle);n[m.expando]=void 0}n[L.expando]&&(n[L.expando]=void 0)}}}),r.fn.extend({detach:function(e){return rn(this,e,!0)},remove:function(e){return rn(this,e)},text:function(e){return V(this,function(t){return t===void 0?r.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return ve(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=tn(this,e);t.appendChild(e)}})},prepend:function(){return ve(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=tn(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){var e,t;for(t=0;t<this.length;t++)e=this[t],e.nodeType===1&&(r.cleanData(B(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return r.clone(this,e,t)})},html:function(e){return V(this,function(t){var n=this[0]||{},i=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!Ti.test(t)&&!z[(Kt.exec(t)||["",""])[1].toLowerCase()]){t=r.htmlPrefilter(t);try{for(;i<o;i++)n=this[i]||{},n.nodeType===1&&(r.cleanData(B(n,!1)),n.innerHTML=t);n=0}catch{}}n&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return ve(this,arguments,function(t){var n=this.parentNode;r.inArray(this,e)<0&&(r.cleanData(B(this)),n&&n.replaceChild(t,this))},e)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){r.fn[e]=function(n){for(var i,o=[],s=r(n),u=s.length-1,a=0;a<=u;a++)i=a===u?this:this.clone(!0),r(s[a])[t](i),P.apply(o,i);return this.pushStack(o)}});var Ci=new RegExp("^("+Jt+")(?!px)[a-z%]+$","i");function ze(e){var t=e.ownerDocument.defaultView;return t||(t=b),t.getComputedStyle(e)}function wi(e,t,n){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.call(e);for(o in t)e.style[o]=s[o];return i}function on(e,t,n){var i,o=De.test(t);return n=n||ze(e),n&&(i=n.getPropertyValue(t)||n[t],o&&i&&(i=i.replace(je,"$1")||void 0),i===""&&!qe(e)&&(i=r.style(e,t))),i!==void 0?i+"":i}function fe(e){return N.createElementNS("http://www.w3.org/1999/xhtml",e)}var sn=["Webkit","Moz","ms"],un=fe("div").style;function Ei(e){for(var t=e[0].toUpperCase()+e.slice(1),n=sn.length;n--;)if(e=sn[n]+t,e in un)return e}function vt(e){return e in un?e:Ei(e)||e}var an,fn,re=fe("table");function cn(){if(!(!re||!re.style)){var e,t=fe("col"),n=fe("tr"),i=fe("td");if(re.style.cssText="position:absolute;left:-11111px;border-collapse:separate;border-spacing:0",n.style.cssText="box-sizing:content-box;border:1px solid;height:1px",i.style.cssText="height:9px;width:9px;padding:0",t.span=2,te.appendChild(re).appendChild(t).parentNode.appendChild(n).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),re.offsetWidth===0){te.removeChild(re).textContent="";return}e=b.getComputedStyle(n),fn=q||Math.round(parseFloat(b.getComputedStyle(t).width))===18,an=Math.round(parseFloat(e.height)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth))===n.offsetHeight,te.removeChild(re),re=null}}r.extend(ee,{reliableTrDimensions:function(){return cn(),an},reliableColDimensions:function(){return cn(),fn}});var Si={position:"absolute",visibility:"hidden",display:"block"},ln={letterSpacing:"0",fontWeight:"400"};function pn(e,t,n){var i=Re.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function dn(e,t,n,i,o,s){var u=t==="width"?1:0,a=0,f=0,c=0;if(n===(i?"border":"content"))return 0;for(;u<4;u+=2)n==="margin"&&(c+=r.css(e,n+ie[u],!0,o)),i?(n==="content"&&(f-=r.css(e,"padding"+ie[u],!0,o)),n!=="margin"&&(f-=r.css(e,"border"+ie[u]+"Width",!0,o))):(f+=r.css(e,"padding"+ie[u],!0,o),n!=="padding"?f+=r.css(e,"border"+ie[u]+"Width",!0,o):a+=r.css(e,"border"+ie[u]+"Width",!0,o));return!i&&s>=0&&(f+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-f-a-.5))||0),f+c}function hn(e,t,n){var i=ze(e),o=q||n,s=o&&r.css(e,"boxSizing",!1,i)==="border-box",u=s,a=on(e,t,i),f="offset"+t[0].toUpperCase()+t.slice(1);if(Ci.test(a)){if(!n)return a;a="auto"}return(a==="auto"||q&&s||!ee.reliableColDimensions()&&S(e,"col")||!ee.reliableTrDimensions()&&S(e,"tr"))&&e.getClientRects().length&&(s=r.css(e,"boxSizing",!1,i)==="border-box",u=f in e,u&&(a=e[f])),a=parseFloat(a)||0,a+dn(e,t,n||(s?"border":"content"),u,i,a)+"px"}r.extend({cssHooks:{},style:function(e,t,n,i){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,s,u,a=ht(t),f=De.test(t),c=e.style;if(f||(t=vt(a)),u=r.cssHooks[t]||r.cssHooks[a],n!==void 0){if(s=typeof n,s==="string"&&(o=Re.exec(n))&&o[1]&&(n=Vt(e,t,o),s="number"),n==null||n!==n)return;s==="number"&&(n+=o&&o[3]||(Xe(a)?"px":"")),q&&n===""&&t.indexOf("background")===0&&(c[t]="inherit"),(!u||!("set"in u)||(n=u.set(e,n,i))!==void 0)&&(f?c.setProperty(t,n):c[t]=n)}else return u&&"get"in u&&(o=u.get(e,!1,i))!==void 0?o:c[t]}},css:function(e,t,n,i){var o,s,u,a=ht(t),f=De.test(t);return f||(t=vt(a)),u=r.cssHooks[t]||r.cssHooks[a],u&&"get"in u&&(o=u.get(e,!0,n)),o===void 0&&(o=on(e,t,i)),o==="normal"&&t in ln&&(o=ln[t]),n===""||n?(s=parseFloat(o),n===!0||isFinite(s)?s||0:o):o}}),r.each(["height","width"],function(e,t){r.cssHooks[t]={get:function(n,i,o){if(i)return r.css(n,"display")==="none"?wi(n,Si,function(){return hn(n,t,o)}):hn(n,t,o)},set:function(n,i,o){var s,u=ze(n),a=o&&r.css(n,"boxSizing",!1,u)==="border-box",f=o?dn(n,t,o,a,u):0;return f&&(s=Re.exec(i))&&(s[3]||"px")!=="px"&&(n.style[t]=i,i=r.css(n,t)),pn(n,i,f)}}}),r.each({margin:"",padding:"",border:"Width"},function(e,t){r.cssHooks[e+t]={expand:function(n){for(var i=0,o={},s=typeof n=="string"?n.split(" "):[n];i<4;i++)o[e+ie[i]+t]=s[i]||s[i-2]||s[0];return o}},e!=="margin"&&(r.cssHooks[e+t].set=pn)}),r.fn.extend({css:function(e,t){return V(this,function(n,i,o){var s,u,a={},f=0;if(Array.isArray(i)){for(s=ze(n),u=i.length;f<u;f++)a[i[f]]=r.css(n,i[f],!1,s);return a}return o!==void 0?r.style(n,i,o):r.css(n,i)},e,t,arguments.length>1)}});function W(e,t,n,i,o){return new W.prototype.init(e,t,n,i,o)}r.Tween=W,W.prototype={constructor:W,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||r.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(Xe(n)?"px":"")},cur:function(){var e=W.propHooks[this.prop];return e&&e.get?e.get(this):W.propHooks._default.get(this)},run:function(e){var t,n=W.propHooks[this.prop];return this.options.duration?this.pos=t=r.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):W.propHooks._default.set(this),this}},W.prototype.init.prototype=W.prototype,W.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=r.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){r.fx.step[e.prop]?r.fx.step[e.prop](e):e.elem.nodeType===1&&(r.cssHooks[e.prop]||e.elem.style[vt(e.prop)]!=null)?r.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},r.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},r.fx=W.prototype.init,r.fx.step={};var me,et,Di=/^(?:toggle|show|hide)$/,ji=/queueHooks$/;function At(){et&&(N.hidden===!1&&b.requestAnimationFrame?b.requestAnimationFrame(At):b.setTimeout(At,13),r.fx.tick())}function gn(){return b.setTimeout(function(){me=void 0}),me=Date.now()}function tt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)n=ie[i],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function yn(e,t,n){for(var i,o=(G.tweeners[t]||[]).concat(G.tweeners["*"]),s=0,u=o.length;s<u;s++)if(i=o[s].call(n,t,e))return i}function Ni(e,t,n){var i,o,s,u,a,f,c,p,d="width"in t||"height"in t,l=this,h={},y=e.style,v=e.nodeType&&Ve(e),x=m.get(e,"fxshow");n.queue||(u=r._queueHooks(e,"fx"),u.unqueued==null&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,l.always(function(){l.always(function(){u.unqueued--,r.queue(e,"fx").length||u.empty.fire()})}));for(i in t)if(o=t[i],Di.test(o)){if(delete t[i],s=s||o==="toggle",o===(v?"hide":"show"))if(o==="show"&&x&&x[i]!==void 0)v=!0;else continue;h[i]=x&&x[i]||r.style(e,i)}if(f=!r.isEmptyObject(t),!(!f&&r.isEmptyObject(h))){d&&e.nodeType===1&&(n.overflow=[y.overflow,y.overflowX,y.overflowY],c=x&&x.display,c==null&&(c=m.get(e,"display")),p=r.css(e,"display"),p==="none"&&(c?p=c:(ye([e],!0),c=e.style.display||c,p=r.css(e,"display"),ye([e]))),(p==="inline"||p==="inline-block"&&c!=null)&&r.css(e,"float")==="none"&&(f||(l.done(function(){y.display=c}),c==null&&(p=y.display,c=p==="none"?"":p)),y.display="inline-block")),n.overflow&&(y.overflow="hidden",l.always(function(){y.overflow=n.overflow[0],y.overflowX=n.overflow[1],y.overflowY=n.overflow[2]})),f=!1;for(i in h)f||(x?"hidden"in x&&(v=x.hidden):x=m.set(e,"fxshow",{display:c}),s&&(x.hidden=!v),v&&ye([e],!0),l.done(function(){v||ye([e]),m.remove(e,"fxshow");for(i in h)r.style(e,i,h[i])})),f=yn(v?x[i]:0,i,l),i in x||(x[i]=f.start,v&&(f.end=f.start,f.start=0))}}function ki(e,t){var n,i,o,s,u;for(n in e)if(i=ht(n),o=t[i],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),u=r.cssHooks[i],u&&"expand"in u){s=u.expand(s),delete e[i];for(n in s)n in e||(e[n]=s[n],t[n]=o)}else t[i]=o}function G(e,t,n){var i,o,s=0,u=G.prefilters.length,a=r.Deferred().always(function(){delete f.elem}),f=function(){if(o)return!1;for(var d=me||gn(),l=Math.max(0,c.startTime+c.duration-d),h=1-(l/c.duration||0),y=0,v=c.tweens.length;y<v;y++)c.tweens[y].run(h);return a.notifyWith(e,[c,h,l]),h<1&&v?l:(v||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:r.extend({},t),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},n),originalProperties:t,originalOptions:n,startTime:me||gn(),duration:n.duration,tweens:[],createTween:function(d,l){var h=r.Tween(e,c.opts,d,l,c.opts.specialEasing[d]||c.opts.easing);return c.tweens.push(h),h},stop:function(d){var l=0,h=d?c.tweens.length:0;if(o)return this;for(o=!0;l<h;l++)c.tweens[l].run(1);return d?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,d])):a.rejectWith(e,[c,d]),this}}),p=c.props;for(ki(p,c.opts.specialEasing);s<u;s++)if(i=G.prefilters[s].call(c,e,p,c.opts),i)return typeof i.stop=="function"&&(r._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return r.map(p,yn,c),typeof c.opts.start=="function"&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),r.fx.timer(r.extend(f,{elem:e,anim:c,queue:c.opts.queue})),c}r.Animation=r.extend(G,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Vt(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){typeof e=="function"?(t=e,e=["*"]):e=e.match(_);for(var n,i=0,o=e.length;i<o;i++)n=e[i],G.tweeners[n]=G.tweeners[n]||[],G.tweeners[n].unshift(t)},prefilters:[Ni],prefilter:function(e,t){t?G.prefilters.unshift(e):G.prefilters.push(e)}}),r.speed=function(e,t,n){var i=e&&typeof e=="object"?r.extend({},e):{complete:n||t||typeof e=="function"&&e,duration:e,easing:n&&t||t&&typeof t!="function"&&t};return r.fx.off?i.duration=0:typeof i.duration!="number"&&(i.duration in r.fx.speeds?i.duration=r.fx.speeds[i.duration]:i.duration=r.fx.speeds._default),(i.queue==null||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){typeof i.old=="function"&&i.old.call(this),i.queue&&r.dequeue(this,i.queue)},i},r.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Ve).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=r.isEmptyObject(e),s=r.speed(t,n,i),u=function(){var a=G(this,r.extend({},e),s);(o||m.get(this,"finish"))&&a.stop(!0)};return u.finish=u,o||s.queue===!1?this.each(u):this.queue(s.queue,u)},stop:function(e,t,n){var i=function(o){var s=o.stop;delete o.stop,s(n)};return typeof e!="string"&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var o=!0,s=e!=null&&e+"queueHooks",u=r.timers,a=m.get(this);if(s)a[s]&&a[s].stop&&i(a[s]);else for(s in a)a[s]&&a[s].stop&&ji.test(s)&&i(a[s]);for(s=u.length;s--;)u[s].elem===this&&(e==null||u[s].queue===e)&&(u[s].anim.stop(n),o=!1,u.splice(s,1));(o||!n)&&r.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=m.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],s=r.timers,u=i?i.length:0;for(n.finish=!0,r.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<u;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),r.each(["toggle","show","hide"],function(e,t){var n=r.fn[t];r.fn[t]=function(i,o,s){return i==null||typeof i=="boolean"?n.apply(this,arguments):this.animate(tt(t,!0),i,o,s)}}),r.each({slideDown:tt("show"),slideUp:tt("hide"),slideToggle:tt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){r.fn[e]=function(n,i,o){return this.animate(t,n,i,o)}}),r.timers=[],r.fx.tick=function(){var e,t=0,n=r.timers;for(me=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||r.fx.stop(),me=void 0},r.fx.timer=function(e){r.timers.push(e),r.fx.start()},r.fx.start=function(){et||(et=!0,At())},r.fx.stop=function(){et=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(e,t){return e=r.fx&&r.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(n,i){var o=b.setTimeout(n,e);i.stop=function(){b.clearTimeout(o)}})};var Ii=/^(?:input|select|textarea|button)$/i,Oi=/^(?:a|area)$/i;r.fn.extend({prop:function(e,t){return V(this,r.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[r.propFix[e]||e]})}}),r.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(!(s===3||s===8||s===2))return(s!==1||!r.isXMLDoc(e))&&(t=r.propFix[t]||t,o=r.propHooks[t]),n!==void 0?o&&"set"in o&&(i=o.set(e,n,t))!==void 0?i:e[t]=n:o&&"get"in o&&(i=o.get(e,t))!==null?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute("tabindex");return t?parseInt(t,10):Ii.test(e.nodeName)||Oi.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),q&&(r.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)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function ce(e){var t=e.match(_)||[];return t.join(" ")}function be(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:typeof e=="string"?e.match(_)||[]:[]}r.fn.extend({addClass:function(e){var t,n,i,o,s;return typeof e=="function"?this.each(function(u){r(this).addClass(e.call(this,u,be(this)))}):(t=xt(e),t.length?this.each(function(){if(i=be(this),n=this.nodeType===1&&" "+ce(i)+" ",n){for(o=0;o<t.length;o++)n.indexOf(" "+t[o]+" ")<0&&(n+=t[o]+" ");s=ce(n),i!==s&&this.setAttribute("class",s)}}):this)},removeClass:function(e){var t,n,i,o,s;return typeof e=="function"?this.each(function(u){r(this).removeClass(e.call(this,u,be(this)))}):arguments.length?(t=xt(e),t.length?this.each(function(){if(i=be(this),n=this.nodeType===1&&" "+ce(i)+" ",n){for(o=0;o<t.length;o++)for(;n.indexOf(" "+t[o]+" ")>-1;)n=n.replace(" "+t[o]+" "," ");s=ce(n),i!==s&&this.setAttribute("class",s)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,i,o;return typeof e=="function"?this.each(function(s){r(this).toggleClass(e.call(this,s,be(this),t),t)}):typeof t=="boolean"?t?this.addClass(e):this.removeClass(e):(n=xt(e),n.length?this.each(function(){for(o=r(this),i=0;i<n.length;i++)o.hasClass(n[i])?o.removeClass(n[i]):o.addClass(n[i])}):this)},hasClass:function(e){var t,n;for(t=" "+e+" ",n=0;n<this.length;n++)if(this[n].nodeType===1&&(" "+ce(be(this[n]))+" ").indexOf(t)>-1)return!0;return!1}}),r.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=typeof e=="function",this.each(function(s){var u;this.nodeType===1&&(i?u=e.call(this,s,r(this).val()):u=e,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=r.map(u,function(a){return a==null?"":a+""})),t=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,u,"value")===void 0)&&(this.value=u))})):o?(t=r.valHooks[o.type]||r.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,n??"")):void 0}}),r.extend({valHooks:{select:{get:function(e){var t,n,i,o=e.options,s=e.selectedIndex,u=e.type==="select-one",a=u?null:[],f=u?s+1:o.length;for(s<0?i=f:i=u?s:0;i<f;i++)if(n=o[i],n.selected&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=r(n).val(),u)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,s=r.makeArray(t),u=o.length;u--;)i=o[u],(i.selected=r.inArray(r(i).val(),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),q&&(r.valHooks.option={get:function(e){var t=e.getAttribute("value");return t??ce(r.text(e))}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=r.inArray(r(e).val(),t)>-1}}});var vn=/^(?:focusinfocus|focusoutblur)$/,An=function(e){e.stopPropagation()};r.extend(r.event,{trigger:function(e,t,n,i){var o,s,u,a,f,c,p,d,l,h=le.call(e,"type")?e.type:e,y=le.call(e,"namespace")?e.namespace.split("."):[];if(s=l=u=n=n||N,a=[s],!(n.nodeType===3||n.nodeType===8)&&!vn.test(h+r.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),c=h.indexOf(":")<0&&"on"+h,e=e[r.expando]?e:new r.Event(h,typeof e=="object"&&e),e.isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:r.makeArray(t,[e]),d=r.event.special[h]||{},!(!i&&d.trigger&&d.trigger.apply(n,t)===!1))){if(!i&&!d.noBubble&&!Se(n)){for(f=d.delegateType||h,vn.test(f+h)||(s=s.parentNode);s;s=s.parentNode)a.push(s),u=s;u===(n.ownerDocument||N)&&a.push(u.defaultView||u.parentWindow||b)}for(o=0;o<a.length&&!e.isPropagationStopped();o++)s=a[o],l=s,e.type=o?f:d.bindType||h,p=(m.get(s,"events")||Object.create(null))[e.type]&&m.get(s,"handle"),p&&p.apply(s,t),p=c&&s[c],p&&p.apply&&Ie(s)&&(e.result=p.apply(s,t),e.result===!1&&e.preventDefault());return e.type=h,!i&&!e.isDefaultPrevented()&&(!d._default||d._default.apply(a.pop(),t)===!1)&&Ie(n)&&c&&typeof n[h]=="function"&&!Se(n)&&(u=n[c],u&&(n[c]=null),r.event.triggered=h,e.isPropagationStopped()&&l.addEventListener(h,An),n[h](),e.isPropagationStopped()&&l.removeEventListener(h,An),r.event.triggered=void 0,u&&(n[c]=u)),e.result}},simulate:function(e,t,n){var i=r.extend(new r.Event,n,{type:e,isSimulated:!0});r.event.trigger(i,null,t)}}),r.fn.extend({trigger:function(e,t){return this.each(function(){r.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return r.event.trigger(e,t,n,!0)}});var He=b.location,xn={guid:Date.now()},mt=/\?/;r.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new b.DOMParser().parseFromString(e,"text/xml")}catch{}return n=t&&t.querySelector("parsererror"),(!t||n)&&r.error("Invalid XML: "+(n?r.map(n.childNodes,function(i){return i.textContent}).join(`
|
|
11
|
+
`):e)),t};var Ri=/\[\]$/,mn=/\r?\n/g,qi=/^(?:submit|button|image|reset|file)$/i,Hi=/^(?:input|select|textarea|keygen)/i;function bt(e,t,n,i){var o;if(Array.isArray(t))r.each(t,function(s,u){n||Ri.test(e)?i(e,u):bt(e+"["+(typeof u=="object"&&u!=null?s:"")+"]",u,n,i)});else if(!n&&Ee(t)==="object")for(o in t)bt(e+"["+o+"]",t[o],n,i);else i(e,t)}r.param=function(e,t){var n,i=[],o=function(s,u){var a=typeof u=="function"?u():u;i[i.length]=encodeURIComponent(s)+"="+encodeURIComponent(a??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!r.isPlainObject(e))r.each(e,function(){o(this.name,this.value)});else for(n in e)bt(n,e[n],t,o);return i.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=r.prop(this,"elements");return e?r.makeArray(e):Hi.test(this.nodeName)?this:[]}).filter(function(){var e=this.type;return this.name&&!r(this).is(":disabled")&&!qi.test(e)&&(this.checked||!Ke.test(e))}).map(function(e,t){var n=r(this).val();return n==null?null:Array.isArray(n)?r.map(n,function(i){return{name:t.name,value:i.replace(mn,`\r
|
|
12
|
+
`)}}):{name:t.name,value:n.replace(mn,`\r
|
|
13
|
+
`)}}).get()}});var Pi=/%20/g,Mi=/#.*$/,Li=/([?&])_=[^&]*/,Bi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Fi=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Qi=/^(?:GET|HEAD)$/,Wi=/^\/\//,bn={},Tt={},Tn="*/".concat("*"),Ct=fe("a");Ct.href=He.href;function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var i,o,s=t.toLowerCase().match(_)||[];if(typeof n=="function")for(o=0;o<s.length;o++)i=s[o],i[0]==="+"?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function wn(e,t,n,i){var o={},s=e===Tt;function u(a){var f;return o[a]=!0,r.each(e[a]||[],function(c,p){var d=p(t,n,i);if(typeof d=="string"&&!s&&!o[d])return t.dataTypes.unshift(d),u(d),!1;if(s)return!(f=d)}),f}return u(t.dataTypes[0])||!o["*"]&&u("*")}function wt(e,t){var n,i,o=r.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&r.extend(!0,e,i),e}function Ui(e,t,n){for(var i,o,s,u,a=e.contents,f=e.dataTypes;f.length&&f[0]==="*";)f.shift(),i===void 0&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i){for(o in a)if(a[o]&&a[o].test(i)){f.unshift(o);break}}if(f[0]in n)s=f[0];else{for(o in n){if(!f[0]||e.converters[o+" "+f[0]]){s=o;break}u||(u=o)}s=s||u}if(s)return s!==f[0]&&f.unshift(s),n[s]}function Gi(e,t,n,i){var o,s,u,a,f,c={},p=e.dataTypes.slice();if(p[1])for(u in e.converters)c[u.toLowerCase()]=e.converters[u];for(s=p.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!f&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),f=s,s=p.shift(),s){if(s==="*")s=f;else if(f!=="*"&&f!==s){if(u=c[f+" "+s]||c["* "+s],!u){for(o in c)if(a=o.split(" "),a[1]===s&&(u=c[f+" "+a[0]]||c["* "+a[0]],u)){u===!0?u=c[o]:c[o]!==!0&&(s=a[0],p.unshift(a[1]));break}}if(u!==!0)if(u&&e.throws)t=u(t);else try{t=u(t)}catch(d){return{state:"parsererror",error:u?d:"No conversion from "+f+" to "+s}}}}return{state:"success",data:t}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:He.href,type:"GET",isLocal:Fi.test(He.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Tn,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":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?wt(wt(e,r.ajaxSettings),t):wt(r.ajaxSettings,e)},ajaxPrefilter:Cn(bn),ajaxTransport:Cn(Tt),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,i,o,s,u,a,f,c,p,d,l=r.ajaxSetup({},t),h=l.context||l,y=l.context&&(h.nodeType||h.jquery)?r(h):r.event,v=r.Deferred(),x=r.Callbacks("once memory"),j=l.statusCode||{},D={},Y={},H="canceled",C={readyState:0,getResponseHeader:function(T){var I;if(f){if(!s)for(s={};I=Bi.exec(o);)s[I[1].toLowerCase()+" "]=(s[I[1].toLowerCase()+" "]||[]).concat(I[2]);I=s[T.toLowerCase()+" "]}return I==null?null:I.join(", ")},getAllResponseHeaders:function(){return f?o:null},setRequestHeader:function(T,I){return f==null&&(T=Y[T.toLowerCase()]=Y[T.toLowerCase()]||T,D[T]=I),this},overrideMimeType:function(T){return f==null&&(l.mimeType=T),this},statusCode:function(T){var I;if(T)if(f)C.always(T[C.status]);else for(I in T)j[I]=[j[I],T[I]];return this},abort:function(T){var I=T||H;return n&&n.abort(I),nt(0,I),this}};if(v.promise(C),l.url=((e||l.url||He.href)+"").replace(Wi,He.protocol+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=(l.dataType||"*").toLowerCase().match(_)||[""],l.crossDomain==null){a=fe("a");try{a.href=l.url,a.href=a.href,l.crossDomain=Ct.protocol+"//"+Ct.host!=a.protocol+"//"+a.host}catch{l.crossDomain=!0}}if(wn(bn,l,t,C),l.data&&l.processData&&typeof l.data!="string"&&(l.data=r.param(l.data,l.traditional)),f)return C;c=r.event&&l.global,c&&r.active++===0&&r.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Qi.test(l.type),i=l.url.replace(Mi,""),l.hasContent?l.data&&l.processData&&(l.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(l.data=l.data.replace(Pi,"+")):(d=l.url.slice(i.length),l.data&&(l.processData||typeof l.data=="string")&&(i+=(mt.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(i=i.replace(Li,"$1"),d=(mt.test(i)?"&":"?")+"_="+xn.guid+++d),l.url=i+d),l.ifModified&&(r.lastModified[i]&&C.setRequestHeader("If-Modified-Since",r.lastModified[i]),r.etag[i]&&C.setRequestHeader("If-None-Match",r.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&C.setRequestHeader("Content-Type",l.contentType),C.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):l.accepts["*"]);for(p in l.headers)C.setRequestHeader(p,l.headers[p]);if(l.beforeSend&&(l.beforeSend.call(h,C,l)===!1||f))return C.abort();if(H="abort",x.add(l.complete),C.done(l.success),C.fail(l.error),n=wn(Tt,l,t,C),!n)nt(-1,"No Transport");else{if(C.readyState=1,c&&y.trigger("ajaxSend",[C,l]),f)return C;l.async&&l.timeout>0&&(u=b.setTimeout(function(){C.abort("timeout")},l.timeout));try{f=!1,n.send(D,nt)}catch(T){if(f)throw T;nt(-1,T)}}function nt(T,I,St,Dn){var oe,Dt,Pe,Te,Ce,Z,jn;typeof T=="object"&&(I=T.statusText,St=T.responses,Dn=T.headers,jn=T.responseURL,T=T.status),Z=I,!f&&(f=!0,u&&b.clearTimeout(u),n=void 0,o=Dn||"",C.readyState=T>0?4:0,oe=T>=200&&T<300||T===304,St&&(Te=Ui(l,C,St)),!oe&&r.inArray("script",l.dataTypes)>-1&&r.inArray("json",l.dataTypes)<0&&(l.converters["text script"]=function(){}),Te=Gi(l,Te,C,oe),oe?(l.ifModified&&(Ce=C.getResponseHeader("Last-Modified"),Ce&&(r.lastModified[i]=Ce),Ce=C.getResponseHeader("etag"),Ce&&(r.etag[i]=Ce)),T===204||l.type==="HEAD"?Z="nocontent":T===304?Z="notmodified":(Z=Te.state,Dt=Te.data,Pe=Te.error,oe=!Pe)):(Pe=Z,(T||!Z)&&(Z="error",T<0&&(T=0))),C.status=T,C.statusText=(I||Z)+"",C.responseURL=jn,oe?v.resolveWith(h,[Dt,Z,C]):v.rejectWith(h,[C,Z,Pe]),C.statusCode(j),j=void 0,c&&y.trigger(oe?"ajaxSuccess":"ajaxError",[C,l,oe?Dt:Pe]),x.fireWith(h,[C,Z]),c&&(y.trigger("ajaxComplete",[C,l]),--r.active||r.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return r.get(e,t,n,"json")},getScript:function(e,t){return r.get(e,void 0,t,"script")}}),r.each(["get","post"],function(e,t){r[t]=function(n,i,o,s){return(typeof i=="function"||i===null)&&(s=s||o,o=i,i=void 0),r.ajax(r.extend({url:n,type:t,dataType:s,data:i,success:o},r.isPlainObject(n)&&n))}}),r.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),r._evalUrl=function(e,t,n){return r.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(i){r.globalEval(i,t,n)}})},r.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e=="function"&&(e=e.call(this[0])),t=r(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(e){return typeof e=="function"?this.each(function(t){r(this).wrapInner(e.call(this,t))}):this.each(function(){var t=r(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e=="function";return this.each(function(n){r(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(e){return!r.expr.pseudos.visible(e)},r.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},r.ajaxSettings.xhr=function(){return new b.XMLHttpRequest};var Yi={0:200};r.ajaxTransport(function(e){var t;return{send:function(n,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(o in n)s.setRequestHeader(o,n[o]);t=function(u){return function(){t&&(t=s.onload=s.onerror=s.onabort=s.ontimeout=null,u==="abort"?s.abort():i(u==="error"?{status:s.status,statusText:s.statusText,responseURL:s.responseURL}:{status:Yi[s.status]||s.status,statusText:s.statusText,responses:(s.responseType||"text")==="text"?{text:s.responseText}:{binary:s.response},headers:s.getAllResponseHeaders(),responseURL:s.responseURL}))}},s.onload=t(),s.onabort=s.onerror=s.ontimeout=t("error"),t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}});function En(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&r.inArray("json",e.dataTypes)<0)}r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},converters:{"text script":function(e){return r.globalEval(e),e}}}),r.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),En(e)&&(e.type="GET")}),r.ajaxTransport("script",function(e){if(En(e)){var t,n;return{send:function(i,o){t=r("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(s){t.remove(),n=null,s&&o(s.type==="error"?404:200,s.type)}),N.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Sn=[],Et=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Sn.pop()||r.expando+"_"+xn.guid++;return this[e]=!0,e}}),r.ajaxPrefilter("jsonp",function(e,t,n){var i,o,s,u=e.jsonp!==!1&&(Et.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Et.test(e.data)&&"data");return i=e.jsonpCallback=typeof e.jsonpCallback=="function"?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Et,"$1"+i):e.jsonp!==!1&&(e.url+=(mt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||r.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=b[i],b[i]=function(){s=arguments},n.always(function(){o===void 0?r(b).removeProp(i):b[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Sn.push(i)),s&&typeof o=="function"&&o(s[0]),s=o=void 0}),"script"}),r.ajaxPrefilter(function(e,t){typeof e.data!="string"&&!r.isPlainObject(e.data)&&!Array.isArray(e.data)&&!("processData"in t)&&(e.processData=!1),e.data instanceof b.FormData&&(e.contentType=!1)}),r.parseHTML=function(e,t,n){if(typeof e!="string"&&!Gt(e+""))return[];typeof t=="boolean"&&(n=t,t=!1);var i,o;return t||(t=new b.DOMParser().parseFromString("","text/html")),i=Ut.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=zt([e],t,o),o&&o.length&&r(o).remove(),r.merge([],i.childNodes))},r.fn.load=function(e,t,n){var i,o,s,u=this,a=e.indexOf(" ");return a>-1&&(i=ce(e.slice(a)),e=e.slice(0,a)),typeof t=="function"?(n=t,t=void 0):t&&typeof t=="object"&&(o="POST"),u.length>0&&r.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(f){s=arguments,u.html(i?r("<div>").append(r.parseHTML(f)).find(i):f)}).always(n&&function(f,c){u.each(function(){n.apply(this,s||[f.responseText,c,f])})}),this},r.expr.pseudos.animated=function(e){return r.grep(r.timers,function(t){return e===t.elem}).length},r.offset={setOffset:function(e,t,n){var i,o,s,u,a,f,c,p=r.css(e,"position"),d=r(e),l={};p==="static"&&(e.style.position="relative"),a=d.offset(),s=r.css(e,"top"),f=r.css(e,"left"),c=(p==="absolute"||p==="fixed")&&(s+f).indexOf("auto")>-1,c?(i=d.position(),u=i.top,o=i.left):(u=parseFloat(s)||0,o=parseFloat(f)||0),typeof t=="function"&&(t=t.call(e,n,r.extend({},a))),t.top!=null&&(l.top=t.top-a.top+u),t.left!=null&&(l.left=t.left-a.left+o),"using"in t?t.using.call(e,l):d.css(l)}},r.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(o){r.offset.setOffset(this,e,o)});var t,n,i=this[0];if(i)return i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if(r.css(i,"position")==="fixed")t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&e!==n.documentElement&&r.css(e,"position")==="static";)e=e.offsetParent||n.documentElement;e&&e!==i&&e.nodeType===1&&r.css(e,"position")!=="static"&&(o=r(e).offset(),o.top+=r.css(e,"borderTopWidth",!0),o.left+=r.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-r.css(i,"marginTop",!0),left:t.left-o.left-r.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&r.css(e,"position")==="static";)e=e.offsetParent;return e||te})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=t==="pageYOffset";r.fn[e]=function(i){return V(this,function(o,s,u){var a;if(Se(o)?a=o:o.nodeType===9&&(a=o.defaultView),u===void 0)return a?a[t]:o[s];a?a.scrollTo(n?a.pageXOffset:u,n?u:a.pageYOffset):o[s]=u},e,i,arguments.length)}}),r.each({Height:"height",Width:"width"},function(e,t){r.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){r.fn[i]=function(o,s){var u=arguments.length&&(n||typeof o!="boolean"),a=n||(o===!0||s===!0?"margin":"border");return V(this,function(f,c,p){var d;return Se(f)?i.indexOf("outer")===0?f["inner"+e]:f.document.documentElement["client"+e]:f.nodeType===9?(d=f.documentElement,Math.max(f.body["scroll"+e],d["scroll"+e],f.body["offset"+e],d["offset"+e],d["client"+e])):p===void 0?r.css(f,c,a):r.style(f,c,p,a)},t,u?o:void 0,u)}})}),r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){r.fn[t]=function(n){return this.on(t,n)}}),r.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,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),r.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,t){r.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),r.proxy=function(e,t){var n,i,o;if(typeof t=="string"&&(n=e[t],t=e,e=n),typeof e=="function")return i=w.call(arguments,2),o=function(){return e.apply(t||this,i.concat(w.call(arguments)))},o.guid=e.guid=e.guid||r.guid++,o},r.holdReady=function(e){e?r.readyWait++:r.ready(!0)},r.expr[":"]=r.expr.filters=r.expr.pseudos,typeof define=="function"&&define.amd&&define("jquery",[],function(){return r});var Zi=b.jQuery,_i=b.$;return r.noConflict=function(e){return b.$===r&&(b.$=_i),e&&b.jQuery===r&&(b.jQuery=Zi),r},r}Ji(window);class it{static isHtmlElement(g){if(g===null)return!1;try{return g instanceof Element||g instanceof Document}catch{return typeof g=="object"&&g.nodeType===Node.ELEMENT_NODE&&typeof g.style=="object"&&typeof g.ownerDocument=="object"}}static getComputedStyle(g,A){return it.isHtmlElement(g)?document&&document.defaultView&&document.defaultView.getComputedStyle(g,A||null):null}static createCSS(g,A,k){if(g===null)throw new Error(`[CommonUtilities.createCSS] passed content is not a string. Is type ${typeof g}`);const w=document.head,O=document.createElement("style");typeof A=="string"&&(O.id=A),typeof k=="string"&&k.length>0&&O.setAttribute("media",k),typeof O.styleSheet=="object"?O.styleSheet.cssText=g:O.appendChild(document.createTextNode(g)),w.appendChild(O)}}class Vi{constructor(){this.inputTypeFileHandlerReference=null,this.customInputElements=null,this.onCompressionDoneCallback=void 0,this.originalCursor=void 0,this.timeoutId=void 0,this.processedEvent=!1,this.busyElementId="sl_busy_indicator",this.quality=.75}createCSS(){it.createCSS(`
|
|
14
|
+
.sl-busy-indicator {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 4px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sl-busy-indicator span {
|
|
23
|
+
background-image: url("data:image/gif;base64,R0lGODlhHwAfAPUAAP///wAAAOjo6NLS0ry8vK6urqKiotzc3Li4uJqamuTk5NjY2KqqqqCgoLCwsMzMzPb29qioqNTU1Obm5jY2NiYmJlBQUMTExHBwcJKSklZWVvr6+mhoaEZGRsbGxvj4+EhISDIyMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA4BiwSQexKh0eEAkrldAZbvlOD5TqYKALWu5XIwnPFwwymY0GsRgAxrwuJwbCi8aAHlYZ3sVdwtRCm8JgVgODwoQAAIXGRpojQwKRGSDCRESYRsGHYZlBFR5AJt2a3kHQlZlERN2QxMRcAiTeaG2QxJ5RnAOv1EOcEdwUMZDD3BIcKzNq3BJcJLUABBwStrNBtjf3GUGBdLfCtadWMzUz6cDxN/IZQMCvdTBcAIAsli0jOHSJeSAqmlhNr0awo7RJ19TJORqdAXVEEVZyjyKtE3Bg3oZE2iK8oeiKkFZGiCaggelSTiA2LhxiZLBSjZjBL2siNBOFQ84LxHA+mYEiRJzBO7ZCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82YAIQxRCm14Ww4PChAAEAoPDlsAFRUgHkRiZAkREmoSEXiVlRgfQgeBaXRpo6MOQlZbERN0Qx4drRUcAAJmnrVDBrkVDwNjr8BDGxq5Z2MPyUQZuRgFY6rRABe5FgZjjdm8uRTh2d5b4NkQY0zX5QpjTc/lD2NOx+WSW0++2RJmUGJhmZVsQqgtCE6lqpXGjBchmt50+hQKEAEiht5gUcTIESR9GhlgE9IH0BiTkxrMmWIHDkose9SwcQlHDsOIk9ygiVbl5JgMLuV4HUmypMkTOkEAACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2LQV3t4UBcvcF9/eFpdYxdgZ5hUYA73YGxruCbVjt78G7hXFqlhY/fLQwR0HIQdGuUrTz5eQdIc0cfIEwByGD0MKvcGSaFGjR8GyeAPhIUofQGNQSgrB4IsdOCqx7FHDBiYcOQshYjKDxliVDpRjunCjdSTJkiZP6AQBACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2I3WBcvczltNxNzIW0693MFYT7bTumNQqlisv7BjswAHo64egFdQAbj0RtOXDQY6VAAUakihN1gSLaJ1IYOGChgXXqEUpQ9ASRlDYhT0xQ4cACJDhqDD5mRKjCAYuArjBmVKDP9+VRljMyMHDwcfuBlBooSCBQwJiqkJAgAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA8BQIAwExKh0eEAkrlcA9oo4TKcKwharHScIiu9wwTBn3QnGQg1owBNld+O72N/zZnVzRApteFsODwoQABAKDw5bZQxpQ2JkCRESahIRh1gEVIGVamlmXgBWWxETdEMTnlsIAAJmm65DEmZGYw64UZFbR2MPv0QPY0hjpMYKY0ljjMZCEGNK09MG0diN1gXL3M5bTcTcyFtOvdzBWE+207pjUKpYrL+wY7MAB4EerqZjUAG4lKVCBwMbvnT6dCXUkEIFK0jUkOECFEeQJF2hFKUPAIkgQwIaI+hLiJAoR27Zo4YBCJQgVW4cpMYDBpgVZKL59cEBhw+U+QROQ4bBAoUlTZ7QCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82Z1c0QKbXhbDg8KEAAQCg8OW2UMaUNiZAkREmoSEYdYBFSBlWppZl4AVlsRE3RDE55bCAACZpuuQxJmRmMOuFGRW0djD79ED2NIY6TGCmNJY4zGQhBjStPTFBXb21DY1VsGFtzbF9gAzlsFGOQVGefIW2LtGhvYwVgDD+0V17+6Y6BwaNfBwy9YY2YBcMAPnStTY1B9YMdNiyZOngCFGuIBxDZAiRY1eoTvE6UoDEIAGrNSUoNBUuzAaYlljxo2M+HIeXiJpRsRNMaq+JSFCpsRJEqYOPH2JQgAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfjywjlzX9jdXNEHiAVFX8ODwoQABAKDw5bZQxpQh8YiIhaERJqEhF4WwRDDpubAJdqaWZeAByoFR0edEMTolsIAA+yFUq2QxJmAgmyGhvBRJNbA5qoGcpED2MEFrIX0kMKYwUUslDaj2PA4soGY47iEOQFY6vS3FtNYw/m1KQDYw7mzFhPZj5JGzYGipUtESYowzVmF4ADgOCBCZTgFQAxZBJ4AiXqT6ltbUZhWdToUSR/Ii1FWbDnDkUyDQhJsQPn5ZU9atjUhCPHVhgTNy/RSKsiqKFFbUaQKGHiJNyXIAAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEh8JDAWCsBQIAwExKhU+HFwKlgsIMHlIg7TqQeTLW+7XYIiPGSAymY0mrFgA0LwuLzbCC/6eVlnewkADXVECgxcAGUaGRdQEAoPDmhnDGtDBJcVHQYbYRIRhWgEQwd7AB52AGt7YAAIchETrUITpGgIAAJ7ErdDEnsCA3IOwUSWaAOcaA/JQ0amBXKa0QpyBQZyENFCEHIG39HcaN7f4WhM1uTZaE1y0N/TacZoyN/LXU+/0cNyoMxCUytYLjm8AKSS46rVKzmxADhjlCACMFGkBiU4NUQRxS4OHijwNqnSJS6ZovzRyJAQo0NhGrgs5bIPmwWLCLHsQsfhxBWTe9QkOzCwC8sv5Ho127akyRM7QQAAOwAAAAAAAAAAAA==");
|
|
24
|
+
background-repeat: no-repeat;
|
|
25
|
+
background-position: 100% 50%;
|
|
26
|
+
background-size: 1.5rem 1.5rem;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
height: 1.5rem;
|
|
29
|
+
width: 1.5rem;
|
|
30
|
+
}`)}enableBusyIndicator(){const g=it.getComputedStyle(document.body);if(g===null)return;this.originalCursor=g.getPropertyValue("cursor"),document.body.style.cursor="progress";const A=document.createElement("div");A.id=this.busyElementId,A.classList.add("sl-busy-indicator"),A.insertAdjacentHTML("afterbegin","<span></span>"),document.body.appendChild(A)}disableBusyIndicator(){globalThis.clearTimeout(this.timeoutId),typeof this.originalCursor=="string"&&(document.body.style.cursor=this.originalCursor),document.getElementById(this.busyElementId)?.remove()}async compressImage(g,{quality:A=1,type:k=g.type}){let w;try{w=await globalThis.createImageBitmap(g)}catch{return Promise.resolve(null)}const O=document.createElement("canvas");O.width=w.width,O.height=w.height;const P=O.getContext("2d");if(P===null)return Promise.resolve(null);P.drawImage(w,0,0);let M;try{M=await new Promise(Q=>{O.toBlob(Q,k,A)})}catch{return Promise.resolve(null)}return M===null?Promise.resolve(null):new File([M],g.name,{type:M.type})}redispatchEvent(g,A){const k=A;k.disabled=!1;const w={bubbles:g.bubbles,cancelable:g.cancelable,composed:g.composed,currentTarget:g.currentTarget,defaultPrevented:g.defaultPrevented,eventPhase:g.eventPhase,isTrusted:g.isTrusted,returnValue:g.returnValue,srcElement:g.srcElement,target:g.target,timeStamp:g.timeStamp,type:g.type};if(typeof jQuery>"u"){const O=new CustomEvent(g.type,w);k.parentNode?.dispatchEvent(O)}else{const O=$.Event(g.type,w);$(A).trigger(O)}this.processedEvent=!1}async processImages(g,A){const k=A;if(typeof k.files>"u"){this.redispatchEvent(g,k);return}const w=k.files;if(w===null||w.length===0){this.redispatchEvent(g,k);return}this.timeoutId=Number(globalThis.setTimeout(this.enableBusyIndicator.bind(this),1e3));const O=["image/jpeg","image/png","image/webp"],P=R=>R===g.target;let M;if(Array.isArray(this.customInputElements)&&(M=this.customInputElements.find(P),typeof M>"u"))return;const Q=new DataTransfer,Me={quality:this.quality,type:"image/jpeg"},le=async R=>{if(R.type.startsWith("image")===!1||O.includes(R.type)===!1){Q.items.add(R);return}const we=Object.assign(Me,{type:R.type}),ee=await this.compressImage(R,we);ee instanceof File&&(ee.size<R.size?Q.items.add(ee):Q.items.add(R))};for(let R=0,we=w.length;R<we;R+=1)await le(w[R]);g.target.files=Q.files,this.disableBusyIndicator(),typeof this.onCompressionDoneCallback=="function"&&this.onCompressionDoneCallback(w,Q.files),this.redispatchEvent(g,A)}handlejQueryChangeEvent(g){const A=g.originalEvent;if(typeof A>"u"||A.target===null)return;const k=$(A.target);this.processedEvent||!k.is('input[type="file"]')||g.type==="change"&&(g.eventPhase===1&&(this.processedEvent=!0),g.stopPropagation(),k.prop("disabled",!0),this.processImages(A,k[0]))}handleChangeEvent(g){const A=g.target;this.processedEvent||A===null||g.type==="change"&&(A.nodeName.toLowerCase()!=="input"||A.type!=="file"||(g.eventPhase===1&&(this.processedEvent=!0),g.stopPropagation(),A.disabled=!0,this.processImages(g,A)))}addImageOptimization(g){typeof g=="string"&&(this.customInputElements=Array.from(document.querySelectorAll(g)))}uninstall(){this.onCompressionDoneCallback=void 0,this.inputTypeFileHandlerReference!==null&&document.removeEventListener("change",this.inputTypeFileHandlerReference)}install(g,A,k=.75){this.inputTypeFileHandlerReference=this.handleChangeEvent.bind(this),this.quality=k,this.onCompressionDoneCallback=A;const w={capture:!0};window.jQuery?$(document).on("change",this.handlejQueryChangeEvent.bind(this)):document.addEventListener("change",this.inputTypeFileHandlerReference,w),this.createCSS(),typeof g=="string"&&this.addImageOptimization(g)}}export{Vi as OptimizeImage};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class CommonUtilities {
|
|
2
|
+
static isHtmlElement(el: HTMLElement | Element | Node | null): boolean;
|
|
3
|
+
static getComputedStyle(element: Element, pseudoElt?: string): CSSStyleDeclaration | null;
|
|
4
|
+
static createCSS(content: string, id?: string, media?: string): void;
|
|
5
|
+
}
|