-
Notifications
You must be signed in to change notification settings - Fork 0
/
yna.min.js.download
34 lines (30 loc) · 131 KB
/
yna.min.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*! * @license Cropper v3.0.0-rc.1 https://github.com/fengyuanchen/cropper Copyright (c) 2017 Fengyuan Chen Released under the MIT licens Date: 2017-04-30T03:10:34.736Z*/
/*!@license
The MIT License (MIT)
Copyright © 2016-2017 Nicolas Bevacqua
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*! * @license jQuery v2.2.3 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&"length"in a&&a.length,c=fa.type(a);return"function"!==c&&!fa.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a,b,c){if(fa.isFunction(b))return fa.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return fa.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(pa.test(b))return fa.filter(b,a,c);b=fa.filter(b,a)}return fa.grep(a,function(a){return _.call(b,a)>-1!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b={};return fa.each(a.match(ua)||[],function(a,c){b[c]=!0}),b}function g(){X.removeEventListener("DOMContentLoaded",g),a.removeEventListener("load",g),fa.ready()}function h(){this.expando=fa.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Ba,"-$&").toLowerCase(),"string"==typeof(c=a.getAttribute(d))){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:Aa.test(c)?fa.parseJSON(c):c)}catch(a){}za.set(a,b,c)}else c=void 0;return c}function j(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return fa.css(a,b,"")},i=h(),j=c&&c[3]||(fa.cssNumber[b]?"":"px"),k=(fa.cssNumber[b]||"px"!==j&&+i)&&Da.exec(fa.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do{f=f||".5",k/=f,fa.style(a,b,k+j)}while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function k(a,b){var c=void 0!==a.getElementsByTagName?a.getElementsByTagName(b||"*"):void 0!==a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&fa.nodeName(a,b)?fa.merge([a],c):c}function l(a,b){for(var c=0,d=a.length;d>c;c++)ya.set(a[c],"globalEval",!b||ya.get(b[c],"globalEval"))}function m(a,b,c,d,e){for(var f,g,h,i,j,m,n=b.createDocumentFragment(),o=[],p=0,q=a.length;q>p;p++)if((f=a[p])||0===f)if("object"===fa.type(f))fa.merge(o,f.nodeType?[f]:f);else if(Ka.test(f)){for(g=g||n.appendChild(b.createElement("div")),h=(Ha.exec(f)||["",""])[1].toLowerCase(),i=Ja[h]||Ja._default,g.innerHTML=i[1]+fa.htmlPrefilter(f)+i[2],m=i[0];m--;)g=g.lastChild;fa.merge(o,g.childNodes),g=n.firstChild,g.textContent=""}else o.push(b.createTextNode(f));for(n.textContent="",p=0;f=o[p++];)if(d&&fa.inArray(f,d)>-1)e&&e.push(f);else if(j=fa.contains(f.ownerDocument,f),g=k(n.appendChild(f),"script"),j&&l(g),c)for(m=0;f=g[m++];)Ia.test(f.type||"")&&c.push(f);return n}function n(){return!0}function o(){return!1}function p(){try{return X.activeElement}catch(a){}}function q(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)q(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),!1===e)e=o;else if(!e)return a;return 1===f&&(g=e,e=function(a){return fa().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=fa.guid++)),a.each(function(){fa.event.add(this,b,e,d,c)})}function r(a,b){return fa.nodeName(a,"table")&&fa.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function s(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function t(a){var b=Ra.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function u(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ya.hasData(a)&&(f=ya.access(a),g=ya.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)fa.event.add(b,e,j[e][c])}za.hasData(a)&&(h=za.access(a),i=fa.extend({},h),za.set(b,i))}}function v(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Ga.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function w(a,b,c,d){b=Z.apply([],b);var e,f,g,h,i,j,l=0,n=a.length,o=n-1,p=b[0],q=fa.isFunction(p);if(q||n>1&&"string"==typeof p&&!da.checkClone&&Qa.test(p))return a.each(function(e){var f=a.eq(e);q&&(b[0]=p.call(this,e,f.html())),w(f,b,c,d)});if(n&&(e=m(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(g=fa.map(k(e,"script"),s),h=g.length;n>l;l++)i=e,l!==o&&(i=fa.clone(i,!0,!0),h&&fa.merge(g,k(i,"script"))),c.call(a[l],i,l);if(h)for(j=g[g.length-1].ownerDocument,fa.map(g,t),l=0;h>l;l++)i=g[l],Ia.test(i.type||"")&&!ya.access(i,"globalEval")&&fa.contains(j,i)&&(i.src?fa._evalUrl&&fa._evalUrl(i.src):fa.globalEval(i.textContent.replace(Sa,"")))}return a}function x(a,b,c){for(var d,e=b?fa.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||fa.cleanData(k(d)),d.parentNode&&(c&&fa.contains(d.ownerDocument,d)&&l(k(d,"script")),d.parentNode.removeChild(d));return a}function y(a,b){var c=fa(b.createElement(a)).appendTo(b.body),d=fa.css(c[0],"display");return c.detach(),d}function z(a){var b=X,c=Ua[a];return c||(c=y(a,b),"none"!==c&&c||(Ta=(Ta||fa("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Ta[0].contentDocument,b.write(),b.close(),c=y(a,b),Ta.detach()),Ua[a]=c),c}function A(a,b,c){var d,e,f,g,h=a.style;return c=c||Xa(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||fa.contains(a.ownerDocument,a)||(g=fa.style(a,b)),c&&!da.pixelMarginRight()&&Wa.test(g)&&Va.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function B(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function C(a){if(a in cb)return a;for(var b=a[0].toUpperCase()+a.slice(1),c=bb.length;c--;)if((a=bb[c]+b)in cb)return a}function D(a,b,c){var d=Da.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function E(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=fa.css(a,c+Ea[f],!0,e)),d?("content"===c&&(g-=fa.css(a,"padding"+Ea[f],!0,e)),"margin"!==c&&(g-=fa.css(a,"border"+Ea[f]+"Width",!0,e))):(g+=fa.css(a,"padding"+Ea[f],!0,e),"padding"!==c&&(g+=fa.css(a,"border"+Ea[f]+"Width",!0,e)));return g}function F(b,c,d){var e=!0,f="width"===c?b.offsetWidth:b.offsetHeight,g=Xa(b),h="border-box"===fa.css(b,"boxSizing",!1,g);if(X.msFullscreenElement&&a.top!==a&&b.getClientRects().length&&(f=Math.round(100*b.getBoundingClientRect()[c])),0>=f||null==f){if(f=A(b,c,g),(0>f||null==f)&&(f=b.style[c]),Wa.test(f))return f;e=h&&(da.boxSizingReliable()||f===b.style[c]),f=parseFloat(f)||0}return f+E(b,c,d||(h?"border":"content"),e,g)+"px"}function G(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=ya.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&Fa(d)&&(f[g]=ya.access(d,"olddisplay",z(d.nodeName)))):(e=Fa(d),"none"===c&&e||ya.set(d,"olddisplay",e?c:fa.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function H(a,b,c,d,e){return new H.prototype.init(a,b,c,d,e)}function I(){return a.setTimeout(function(){db=void 0}),db=fa.now()}function J(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=Ea[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function K(a,b,c){for(var d,e=(N.tweeners[b]||[]).concat(N.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function L(a,b,c){var d,e,f,g,h,i,j,k=this,l={},m=a.style,n=a.nodeType&&Fa(a),o=ya.get(a,"fxshow");c.queue||(h=fa._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,k.always(function(){k.always(function(){h.unqueued--,fa.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],j=fa.css(a,"display"),"inline"===("none"===j?ya.get(a,"olddisplay")||z(a.nodeName):j)&&"none"===fa.css(a,"float")&&(m.display="inline-block")),c.overflow&&(m.overflow="hidden",k.always(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],fb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(n?"hide":"show")){if("show"!==e||!o||void 0===o[d])continue;n=!0}l[d]=o&&o[d]||fa.style(a,d)}else j=void 0;if(fa.isEmptyObject(l))"inline"===("none"===j?z(a.nodeName):j)&&(m.display=j);else{o?"hidden"in o&&(n=o.hidden):o=ya.access(a,"fxshow",{}),f&&(o.hidden=!n),n?fa(a).show():k.done(function(){fa(a).hide()}),k.done(function(){var b;ya.remove(a,"fxshow");for(b in l)fa.style(a,b,l[b])});for(d in l)g=K(n?o[d]:0,d,k),d in o||(o[d]=g.start,n&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function M(a,b){var c,d,e,f,g;for(c in a)if(d=fa.camelCase(c),e=b[d],f=a[c],fa.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),(g=fa.cssHooks[d])&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function N(a,b,c){var d,e,f=0,g=N.prefilters.length,h=fa.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=db||I(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:fa.extend({},b),opts:fa.extend(!0,{specialEasing:{},easing:fa.easing._default},c),originalProperties:b,originalOptions:c,startTime:db||I(),duration:c.duration,tweens:[],createTween:function(b,c){var d=fa.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(M(k,j.opts.specialEasing);g>f;f++)if(d=N.prefilters[f].call(j,a,k,j.opts))return fa.isFunction(d.stop)&&(fa._queueHooks(j.elem,j.opts.queue).stop=fa.proxy(d.stop,d)),d;return fa.map(k,K,j),fa.isFunction(j.opts.start)&&j.opts.start.call(a,j),fa.fx.timer(fa.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function O(a){return a.getAttribute&&a.getAttribute("class")||""}function P(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(ua)||[];if(fa.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Q(a,b,c,d){function e(h){var i;return f[h]=!0,fa.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===zb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function R(a,b){var c,d,e=fa.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&fa.extend(!0,a,d),a}function S(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function T(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(!(g=j[i+" "+f]||j["* "+f]))for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){!0===g?g=j[e]:!0!==j[e]&&(f=h[0],k.unshift(h[1]));break}if(!0!==g)if(g&&a.throws)b=g(b);else try{b=g(b)}catch(a){return{state:"parsererror",error:g?a:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function U(a,b,c,d){var e;if(fa.isArray(b))fa.each(b,function(b,e){c||Db.test(a)?d(a,e):U(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==fa.type(b))d(a,b);else for(e in b)U(a+"["+e+"]",b[e],c,d)}function V(a){return fa.isWindow(a)?a:9===a.nodeType&&a.defaultView}var W=[],X=a.document,Y=W.slice,Z=W.concat,$=W.push,_=W.indexOf,aa={},ba=aa.toString,ca=aa.hasOwnProperty,da={},ea="2.2.3",fa=function(a,b){return new fa.fn.init(a,b)},ga=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ha=/^-ms-/,ia=/-([\da-z])/gi,ja=function(a,b){return b.toUpperCase()};fa.fn=fa.prototype={jquery:ea,constructor:fa,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:Y.call(this)},pushStack:function(a){var b=fa.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return fa.each(this,a)},map:function(a){return this.pushStack(fa.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:$,sort:W.sort,splice:W.splice},fa.extend=fa.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||fa.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(fa.isPlainObject(d)||(e=fa.isArray(d)))?(e?(e=!1,f=c&&fa.isArray(c)?c:[]):f=c&&fa.isPlainObject(c)?c:{},g[b]=fa.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},fa.extend({expando:"jQuery"+(ea+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===fa.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!fa.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==fa.type(a)||a.nodeType||fa.isWindow(a))return!1;if(a.constructor&&!ca.call(a,"constructor")&&!ca.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||ca.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?aa[ba.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;(a=fa.trim(a))&&(1===a.indexOf("use strict")?(b=X.createElement("script"),b.text=a,X.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(ha,"ms-").replace(ia,ja)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var d,e=0;if(c(a))for(d=a.length;d>e&&!1!==b.call(a[e],e,a[e]);e++);else for(e in a)if(!1===b.call(a[e],e,a[e]))break;return a},trim:function(a){return null==a?"":(a+"").replace(ga,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?fa.merge(d,"string"==typeof a?[a]:a):$.call(d,a)),d},inArray:function(a,b,c){return null==b?-1:_.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d=[],e=0,f=a.length,g=!c;f>e;e++)!b(a[e],e)!==g&&d.push(a[e]);return d},map:function(a,b,d){var e,f,g=0,h=[];if(c(a))for(e=a.length;e>g;g++)null!=(f=b(a[g],g,d))&&h.push(f);else for(g in a)null!=(f=b(a[g],g,d))&&h.push(f);return Z.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),fa.isFunction(a)?(d=Y.call(arguments,2),e=function(){return a.apply(b||this,d.concat(Y.call(arguments)))},e.guid=a.guid=a.guid||fa.guid++,e):void 0},now:Date.now,support:da}),"function"==typeof Symbol&&(fa.fn[Symbol.iterator]=W[Symbol.iterator]),fa.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){aa["[object "+b+"]"]=b.toLowerCase()});var ka=function(a){function b(a,b,c,d){var e,f,g,h,j,l,m,n,o=b&&b.ownerDocument,p=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!==p&&9!==p&&11!==p)return c;if(!d&&((b?b.ownerDocument||b:M)!==E&&D(b),b=b||E,G)){if(11!==p&&(l=pa.exec(a)))if(e=l[1]){if(9===p){if(!(g=b.getElementById(e)))return c;if(g.id===e)return c.push(g),c}else if(o&&(g=o.getElementById(e))&&K(b,g)&&g.id===e)return c.push(g),c}else{if(l[2])return Y.apply(c,b.getElementsByTagName(a)),c;if((e=l[3])&&t.getElementsByClassName&&b.getElementsByClassName)return Y.apply(c,b.getElementsByClassName(e)),c}if(t.qsa&&!R[a+" "]&&(!H||!H.test(a))){if(1!==p)o=b,n=a;else if("object"!==b.nodeName.toLowerCase()){for((h=b.getAttribute("id"))?h=h.replace(ra,"\\$&"):b.setAttribute("id",h=L),m=x(a),f=m.length,j=ka.test(h)?"#"+h:"[id='"+h+"']";f--;)m[f]=j+" "+k(m[f]);n=m.join(","),o=qa.test(a)&&i(b.parentNode)||b}if(n)try{return Y.apply(c,o.querySelectorAll(n)),c}catch(a){}finally{h===L&&b.removeAttribute("id")}}}return z(a.replace(fa,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>u.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[L]=!0,a}function e(a){var b=E.createElement("div");try{return!!a(b)}catch(a){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=c.length;d--;)u.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||T)-(~a.sourceIndex||T);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function i(a){return a&&void 0!==a.getElementsByTagName&&a}function j(){}function k(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function l(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=O++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[N,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(j=b[L]||(b[L]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===N&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function m(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function n(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function o(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function p(a,b,c,e,f,g){return e&&!e[L]&&(e=p(e)),f&&!f[L]&&(f=p(f,g)),d(function(d,g,h,i){var j,k,l,m=[],p=[],q=g.length,r=d||n(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:o(r,m,a,h,i),t=c?f||(d?a:q||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=o(t,p),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[p[k]]=!(s[p[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?$(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=o(t===g?t.splice(q,t.length):t),f?f(null,g,t,i):Y.apply(g,t)})}function q(a){for(var b,c,d,e=a.length,f=u.relative[a[0].type],g=f||u.relative[" "],h=f?1:0,i=l(function(a){return a===b},g,!0),j=l(function(a){return $(b,a)>-1},g,!0),n=[function(a,c,d){var e=!f&&(d||c!==A)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=u.relative[a[h].type])n=[l(m(n),c)];else{if(c=u.filter[a[h].type].apply(null,a[h].matches),c[L]){for(d=++h;e>d&&!u.relative[a[d].type];d++);return p(h>1&&m(n),h>1&&k(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(fa,"$1"),c,d>h&&q(a.slice(h,d)),e>d&&q(a=a.slice(d)),e>d&&k(a))}n.push(c)}return m(n)}function r(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,p="0",q=d&&[],r=[],s=A,t=d||f&&u.find.TAG("*",j),v=N+=null==s?1:Math.random()||.1,w=t.length;for(j&&(A=g===E||g||j);p!==w&&null!=(k=t[p]);p++){if(f&&k){for(l=0,g||k.ownerDocument===E||(D(k),h=!G);m=a[l++];)if(m(k,g||E,h)){i.push(k);break}j&&(N=v)}e&&((k=!m&&k)&&n--,d&&q.push(k))}if(n+=p,e&&p!==n){for(l=0;m=c[l++];)m(q,r,g,h);if(d){if(n>0)for(;p--;)q[p]||r[p]||(r[p]=W.call(i));r=o(r)}Y.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(N=v,A=s),q};return e?d(g):g}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L="sizzle"+1*new Date,M=a.document,N=0,O=0,P=c(),Q=c(),R=c(),S=function(a,b){return a===b&&(C=!0),0},T=1<<31,U={}.hasOwnProperty,V=[],W=V.pop,X=V.push,Y=V.push,Z=V.slice,$=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},_="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",aa="[\\x20\\t\\r\\n\\f]",ba="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ca="\\["+aa+"*("+ba+")(?:"+aa+"*([*^$|!~]?=)"+aa+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ba+"))|)"+aa+"*\\]",da=":("+ba+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ca+")*)|.*)\\)|)",ea=new RegExp(aa+"+","g"),fa=new RegExp("^"+aa+"+|((?:^|[^\\\\])(?:\\\\.)*)"+aa+"+$","g"),ga=new RegExp("^"+aa+"*,"+aa+"*"),ha=new RegExp("^"+aa+"*([>+~]|"+aa+")"+aa+"*"),ia=new RegExp("="+aa+"*([^\\]'\"]*?)"+aa+"*\\]","g"),ja=new RegExp(da),ka=new RegExp("^"+ba+"$"),la={ID:new RegExp("^#("+ba+")"),CLASS:new RegExp("^\\.("+ba+")"),TAG:new RegExp("^("+ba+"|[*])"),ATTR:new RegExp("^"+ca),PSEUDO:new RegExp("^"+da),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+aa+"*(even|odd|(([+-]|)(\\d*)n|)"+aa+"*(?:([+-]|)"+aa+"*(\\d+)|))"+aa+"*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^"+aa+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+aa+"*((?:-\\d)?\\d*)"+aa+"*\\)|)(?=[^-]|$)","i")},ma=/^(?:input|select|textarea|button)$/i,na=/^h\d$/i,oa=/^[^{]+\{\s*\[native \w/,pa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,qa=/[+~]/,ra=/'|\\/g,sa=new RegExp("\\\\([\\da-f]{1,6}"+aa+"?|("+aa+")|.)","ig"),ta=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ua=function(){D()};try{Y.apply(V=Z.call(M.childNodes),M.childNodes),V[M.childNodes.length].nodeType}catch(a){Y={apply:V.length?function(a,b){X.apply(a,Z.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}t=b.support={},w=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},D=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:M;return d!==E&&9===d.nodeType&&d.documentElement?(E=d,F=E.documentElement,G=!w(E),(c=E.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",ua,!1):c.attachEvent&&c.attachEvent("onunload",ua)),t.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),t.getElementsByTagName=e(function(a){return a.appendChild(E.createComment("")),!a.getElementsByTagName("*").length}),t.getElementsByClassName=oa.test(E.getElementsByClassName),t.getById=e(function(a){return F.appendChild(a).id=L,!E.getElementsByName||!E.getElementsByName(L).length}),t.getById?(u.find.ID=function(a,b){if(void 0!==b.getElementById&&G){var c=b.getElementById(a);return c?[c]:[]}},u.filter.ID=function(a){var b=a.replace(sa,ta);return function(a){return a.getAttribute("id")===b}}):(delete u.find.ID,u.filter.ID=function(a){var b=a.replace(sa,ta);return function(a){var c=void 0!==a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),u.find.TAG=t.getElementsByTagName?function(a,b){return void 0!==b.getElementsByTagName?b.getElementsByTagName(a):t.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},u.find.CLASS=t.getElementsByClassName&&function(a,b){return void 0!==b.getElementsByClassName&&G?b.getElementsByClassName(a):void 0},I=[],H=[],(t.qsa=oa.test(E.querySelectorAll))&&(e(function(a){F.appendChild(a).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+aa+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||H.push("\\["+aa+"*(?:value|"+_+")"),a.querySelectorAll("[id~="+L+"-]").length||H.push("~="),a.querySelectorAll(":checked").length||H.push(":checked"),a.querySelectorAll("a#"+L+"+*").length||H.push(".#.+[+~]")}),e(function(a){var b=E.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&H.push("name"+aa+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),H.push(",.*:")})),(t.matchesSelector=oa.test(J=F.matches||F.webkitMatchesSelector||F.mozMatchesSelector||F.oMatchesSelector||F.msMatchesSelector))&&e(function(a){t.disconnectedMatch=J.call(a,"div"),J.call(a,"[s!='']:x"),I.push("!=",da)}),H=H.length&&new RegExp(H.join("|")),I=I.length&&new RegExp(I.join("|")),b=oa.test(F.compareDocumentPosition),K=b||oa.test(F.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},S=b?function(a,b){if(a===b)return C=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c||(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!t.sortDetached&&b.compareDocumentPosition(a)===c?a===E||a.ownerDocument===M&&K(M,a)?-1:b===E||b.ownerDocument===M&&K(M,b)?1:B?$(B,a)-$(B,b):0:4&c?-1:1)}:function(a,b){if(a===b)return C=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===E?-1:b===E?1:e?-1:f?1:B?$(B,a)-$(B,b):0;if(e===f)return g(a,b);for(c=a;c=c.parentNode;)h.unshift(c);for(c=b;c=c.parentNode;)i.unshift(c);for(;h[d]===i[d];)d++;return d?g(h[d],i[d]):h[d]===M?-1:i[d]===M?1:0},E):E},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==E&&D(a),c=c.replace(ia,"='$1']"),t.matchesSelector&&G&&!R[c+" "]&&(!I||!I.test(c))&&(!H||!H.test(c)))try{var d=J.call(a,c);if(d||t.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(a){}return b(c,E,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==E&&D(a),K(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==E&&D(a);var c=u.attrHandle[b.toLowerCase()],d=c&&U.call(u.attrHandle,b.toLowerCase())?c(a,b,!G):void 0;return void 0!==d?d:t.attributes||!G?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(C=!t.detectDuplicates,B=!t.sortStable&&a.slice(0),a.sort(S),C){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return B=null,a},v=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=v(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=v(b);return c},u=b.selectors={cacheLength:50,createPseudo:d,match:la,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(sa,ta),a[3]=(a[3]||a[4]||a[5]||"").replace(sa,ta),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return la.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&ja.test(c)&&(b=x(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(sa,ta).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=P[a+" "];return b||(b=new RegExp("(^|"+aa+")"+a+"("+aa+"|$)"))&&P(a,function(a){return b.test("string"==typeof a.className&&a.className||void 0!==a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:!c||(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ea," ")+" ").indexOf(d)>-1:"|="===c&&(f===d||f.slice(0,d.length+1)===d+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){for(;p;){for(m=b;m=m[p];)if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(m=q,l=m[L]||(m[L]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===N&&j[1],t=n&&j[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){k[a]=[N,n,t];break}}else if(s&&(m=b,l=m[L]||(m[L]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===N&&j[1],t=n),!1===t)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((h?m.nodeName.toLowerCase()!==r:1!==m.nodeType)||!++t||(s&&(l=m[L]||(m[L]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[N,t]),m!==b)););return(t-=e)===d||t%d==0&&t/d>=0}}},PSEUDO:function(a,c){var e,f=u.pseudos[a]||u.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[L]?f(c):f.length>1?(e=[a,a,"",c],u.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=$(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=y(a.replace(fa,"$1"));return e[L]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(sa,ta),function(b){return(b.textContent||b.innerText||v(b)).indexOf(a)>-1}}),lang:d(function(a){return ka.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(sa,ta).toLowerCase(),function(b){var c;do{if(c=G?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return(c=c.toLowerCase())===a||0===c.indexOf(a+"-")}while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===F},focus:function(a){return a===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!u.pseudos.empty(a)},header:function(a){return na.test(a.nodeName)},input:function(a){return ma.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:h(function(){return[0]}),last:h(function(a,b){return[b-1]}),eq:h(function(a,b,c){return[0>c?c+b:c]}),even:h(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:h(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:h(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:h(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},
u.pseudos.nth=u.pseudos.eq;for(s in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})u.pseudos[s]=function(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}(s);for(s in{submit:!0,reset:!0})u.pseudos[s]=function(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}(s);return j.prototype=u.filters=u.pseudos,u.setFilters=new j,x=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=Q[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=u.preFilter;h;){d&&!(e=ga.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ha.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(fa," ")}),h=h.slice(d.length));for(g in u.filter)!(e=la[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):Q(a,i).slice(0)},y=b.compile=function(a,b){var c,d=[],e=[],f=R[a+" "];if(!f){for(b||(b=x(a)),c=b.length;c--;)f=q(b[c]),f[L]?d.push(f):e.push(f);f=R(a,r(e,d)),f.selector=a}return f},z=b.select=function(a,b,c,d){var e,f,g,h,j,l="function"==typeof a&&a,m=!d&&x(a=l.selector||a);if(c=c||[],1===m.length){if(f=m[0]=m[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&t.getById&&9===b.nodeType&&G&&u.relative[f[1].type]){if(!(b=(u.find.ID(g.matches[0].replace(sa,ta),b)||[])[0]))return c;l&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=la.needsContext.test(a)?0:f.length;e--&&(g=f[e],!u.relative[h=g.type]);)if((j=u.find[h])&&(d=j(g.matches[0].replace(sa,ta),qa.test(f[0].type)&&i(b.parentNode)||b))){if(f.splice(e,1),!(a=d.length&&k(f)))return Y.apply(c,d),c;break}}return(l||y(a,m))(d,b,!G,c,!b||qa.test(a)&&i(b.parentNode)||b),c},t.sortStable=L.split("").sort(S).join("")===L,t.detectDuplicates=!!C,D(),t.sortDetached=e(function(a){return 1&a.compareDocumentPosition(E.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),t.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(_,function(a,b,c){var d;return c?void 0:!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);fa.find=ka,fa.expr=ka.selectors,fa.expr[":"]=fa.expr.pseudos,fa.uniqueSort=fa.unique=ka.uniqueSort,fa.text=ka.getText,fa.isXMLDoc=ka.isXML,fa.contains=ka.contains;var la=function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&fa(a).is(c))break;d.push(a)}return d},ma=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},na=fa.expr.match.needsContext,oa=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pa=/^.[^:#\[\.,]*$/;fa.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?fa.find.matchesSelector(d,a)?[d]:[]:fa.find.matches(a,fa.grep(b,function(a){return 1===a.nodeType}))},fa.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(fa(a).filter(function(){for(b=0;c>b;b++)if(fa.contains(e[b],this))return!0}));for(b=0;c>b;b++)fa.find(a,e[b],d);return d=this.pushStack(c>1?fa.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&na.test(a)?fa(a):a||[],!1).length}});var qa,ra=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(fa.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||qa,"string"==typeof a){if(!(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:ra.exec(a))||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof fa?b[0]:b,fa.merge(this,fa.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:X,!0)),oa.test(d[1])&&fa.isPlainObject(b))for(d in b)fa.isFunction(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=X.getElementById(d[2]),e&&e.parentNode&&(this.length=1,this[0]=e),this.context=X,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):fa.isFunction(a)?void 0!==c.ready?c.ready(a):a(fa):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),fa.makeArray(a,this))}).prototype=fa.fn,qa=fa(X);var sa=/^(?:parents|prev(?:Until|All))/,ta={children:!0,contents:!0,next:!0,prev:!0};fa.fn.extend({has:function(a){var b=fa(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(fa.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=na.test(a)||"string"!=typeof a?fa(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&fa.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?fa.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?_.call(fa(a),this[0]):_.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(fa.uniqueSort(fa.merge(this.get(),fa(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),fa.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return la(a,"parentNode")},parentsUntil:function(a,b,c){return la(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return la(a,"nextSibling")},prevAll:function(a){return la(a,"previousSibling")},nextUntil:function(a,b,c){return la(a,"nextSibling",c)},prevUntil:function(a,b,c){return la(a,"previousSibling",c)},siblings:function(a){return ma((a.parentNode||{}).firstChild,a)},children:function(a){return ma(a.firstChild)},contents:function(a){return a.contentDocument||fa.merge([],a.childNodes)}},function(a,b){fa.fn[a]=function(c,d){var e=fa.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=fa.filter(d,e)),this.length>1&&(ta[a]||fa.uniqueSort(e),sa.test(a)&&e.reverse()),this.pushStack(e)}});var ua=/\S+/g;fa.Callbacks=function(a){a="string"==typeof a?f(a):fa.extend({},a);var b,c,d,e,g=[],h=[],i=-1,j=function(){for(e=a.once,d=b=!0;h.length;i=-1)for(c=h.shift();++i<g.length;)!1===g[i].apply(c[0],c[1])&&a.stopOnFalse&&(i=g.length,c=!1);a.memory||(c=!1),b=!1,e&&(g=c?[]:"")},k={add:function(){return g&&(c&&!b&&(i=g.length-1,h.push(c)),function b(c){fa.each(c,function(c,d){fa.isFunction(d)?a.unique&&k.has(d)||g.push(d):d&&d.length&&"string"!==fa.type(d)&&b(d)})}(arguments),c&&!b&&j()),this},remove:function(){return fa.each(arguments,function(a,b){for(var c;(c=fa.inArray(b,g,c))>-1;)g.splice(c,1),i>=c&&i--}),this},has:function(a){return a?fa.inArray(a,g)>-1:g.length>0},empty:function(){return g&&(g=[]),this},disable:function(){return e=h=[],g=c="",this},disabled:function(){return!g},lock:function(){return e=h=[],c||(g=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],h.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},fa.extend({Deferred:function(a){var b=[["resolve","done",fa.Callbacks("once memory"),"resolved"],["reject","fail",fa.Callbacks("once memory"),"rejected"],["notify","progress",fa.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return fa.Deferred(function(c){fa.each(b,function(b,f){var g=fa.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&fa.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?fa.extend(a,d):d}},e={};return d.pipe=d.then,fa.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=Y.call(arguments),g=f.length,h=1!==g||a&&fa.isFunction(a.promise)?g:0,i=1===h?a:fa.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?Y.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&fa.isFunction(f[e].promise)?f[e].promise().progress(j(e,c,b)).done(j(e,d,f)).fail(i.reject):--h;return h||i.resolveWith(d,f),i.promise()}});var va;fa.fn.ready=function(a){return fa.ready.promise().done(a),this},fa.extend({isReady:!1,readyWait:1,holdReady:function(a){a?fa.readyWait++:fa.ready(!0)},ready:function(a){(!0===a?--fa.readyWait:fa.isReady)||(fa.isReady=!0,!0!==a&&--fa.readyWait>0||(va.resolveWith(X,[fa]),fa.fn.triggerHandler&&(fa(X).triggerHandler("ready"),fa(X).off("ready"))))}}),fa.ready.promise=function(b){return va||(va=fa.Deferred(),"complete"===X.readyState||"loading"!==X.readyState&&!X.documentElement.doScroll?a.setTimeout(fa.ready):(X.addEventListener("DOMContentLoaded",g),a.addEventListener("load",g))),va.promise(b)},fa.ready.promise();var wa=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===fa.type(c)){e=!0;for(h in c)wa(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,fa.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(fa(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},xa=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};h.uid=1,h.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!xa(a))return{};var b=a[this.expando];return b||(b={},xa(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,fa.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{fa.isArray(b)?d=b.concat(b.map(fa.camelCase)):(e=fa.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(ua)||[])),c=d.length;for(;c--;)delete f[d[c]]}(void 0===b||fa.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!fa.isEmptyObject(b)}};var ya=new h,za=new h,Aa=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ba=/[A-Z]/g;fa.extend({hasData:function(a){return za.hasData(a)||ya.hasData(a)},data:function(a,b,c){return za.access(a,b,c)},removeData:function(a,b){za.remove(a,b)},_data:function(a,b,c){return ya.access(a,b,c)},_removeData:function(a,b){ya.remove(a,b)}}),fa.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=za.get(f),1===f.nodeType&&!ya.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=fa.camelCase(d.slice(5)),i(f,d,e[d])));ya.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){za.set(this,a)}):wa(this,function(b){var c,d;if(f&&void 0===b){if(void 0!==(c=za.get(f,a)||za.get(f,a.replace(Ba,"-$&").toLowerCase())))return c;if(d=fa.camelCase(a),void 0!==(c=za.get(f,d)))return c;if(void 0!==(c=i(f,d,void 0)))return c}else d=fa.camelCase(a),this.each(function(){var c=za.get(this,d);za.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&za.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){za.remove(this,a)})}}),fa.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=ya.get(a,b),c&&(!d||fa.isArray(c)?d=ya.access(a,b,fa.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=fa.queue(a,b),d=c.length,e=c.shift(),f=fa._queueHooks(a,b),g=function(){fa.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return ya.get(a,c)||ya.access(a,c,{empty:fa.Callbacks("once memory").add(function(){ya.remove(a,[b+"queue",c])})})}}),fa.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?fa.queue(this[0],a):void 0===b?this:this.each(function(){var c=fa.queue(this,a,b);fa._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&fa.dequeue(this,a)})},dequeue:function(a){return this.each(function(){fa.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=fa.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)(c=ya.get(f[g],a+"queueHooks"))&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Ca=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Da=new RegExp("^(?:([+-])=|)("+Ca+")([a-z%]*)$","i"),Ea=["Top","Right","Bottom","Left"],Fa=function(a,b){return a=b||a,"none"===fa.css(a,"display")||!fa.contains(a.ownerDocument,a)},Ga=/^(?:checkbox|radio)$/i,Ha=/<([\w:-]+)/,Ia=/^$|\/(?:java|ecma)script/i,Ja={option:[1,"<select multiple='multiple'>","</select>"],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,"",""]};Ja.optgroup=Ja.option,Ja.tbody=Ja.tfoot=Ja.colgroup=Ja.caption=Ja.thead,Ja.th=Ja.td;var Ka=/<|&#?\w+;/;!function(){var a=X.createDocumentFragment(),b=a.appendChild(X.createElement("div")),c=X.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),da.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",da.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var La=/^key/,Ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Na=/^([^.]*)(?:\.(.+)|)/;fa.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ya.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=fa.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return void 0!==fa&&fa.event.triggered!==b.type?fa.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(ua)||[""],j=b.length;j--;)h=Na.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=fa.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=fa.event.special[n]||{},k=fa.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&fa.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&!1!==l.setup.call(a,d,o,g)||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),fa.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ya.hasData(a)&&ya.get(a);if(q&&(i=q.events)){for(b=(b||"").match(ua)||[""],j=b.length;j--;)if(h=Na.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=fa.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&!1!==l.teardown.call(a,o,q.handle)||fa.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)fa.event.remove(a,n+b[j],c,d,!0);fa.isEmptyObject(i)&&ya.remove(a,"handle events")}},dispatch:function(a){a=fa.event.fix(a);var b,c,d,e,f,g=[],h=Y.call(arguments),i=(ya.get(this,"events")||{})[a.type]||[],j=fa.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||!1!==j.preDispatch.call(this,a)){for(g=fa.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(f.namespace)||(a.handleObj=f,a.data=f.data,void 0!==(d=((fa.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h))&&!1===(a.result=d)&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(!0!==i.disabled||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?fa(e,this).index(i)>-1:fa.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||X,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[fa.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Ma.test(e)?this.mouseHooks:La.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new fa.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=X),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==p()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&fa.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return fa.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},fa.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},fa.Event=function(a,b){return this instanceof fa.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?n:o):this.type=a,b&&fa.extend(this,b),this.timeStamp=a&&a.timeStamp||fa.now(),void(this[fa.expando]=!0)):new fa.Event(a,b)},fa.Event.prototype={constructor:fa.Event,isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=n,a&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=n,a&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=n,a&&a.stopImmediatePropagation(),this.stopPropagation()}},fa.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){fa.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||fa.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),fa.fn.extend({on:function(a,b,c,d){return q(this,a,b,c,d)},one:function(a,b,c,d){return q(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,fa(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return!1!==b&&"function"!=typeof b||(c=b,b=void 0),!1===c&&(c=o),this.each(function(){fa.event.remove(this,a,c,b)})}});var Oa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Pa=/<script|<style|<link/i,Qa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ra=/^true\/(.*)/,Sa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;fa.extend({htmlPrefilter:function(a){return a.replace(Oa,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=fa.contains(a.ownerDocument,a);if(!(da.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||fa.isXMLDoc(a)))for(g=k(h),f=k(a),d=0,e=f.length;e>d;d++)v(f[d],g[d]);if(b)if(c)for(f=f||k(a),g=g||k(h),d=0,e=f.length;e>d;d++)u(f[d],g[d]);else u(a,h);return g=k(h,"script"),g.length>0&&l(g,!i&&k(a,"script")),h},cleanData:function(a){for(var b,c,d,e=fa.event.special,f=0;void 0!==(c=a[f]);f++)if(xa(c)){if(b=c[ya.expando]){if(b.events)for(d in b.events)e[d]?fa.event.remove(c,d):fa.removeEvent(c,d,b.handle);c[ya.expando]=void 0}c[za.expando]&&(c[za.expando]=void 0)}}}),fa.fn.extend({domManip:w,detach:function(a){return x(this,a,!0)},remove:function(a){return x(this,a)},text:function(a){return wa(this,function(a){return void 0===a?fa.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return w(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){r(this,a).appendChild(a)}})},prepend:function(){return w(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=r(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return w(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return w(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(fa.cleanData(k(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return fa.clone(this,a,b)})},html:function(a){return wa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Pa.test(a)&&!Ja[(Ha.exec(a)||["",""])[1].toLowerCase()]){a=fa.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(fa.cleanData(k(b,!1)),b.innerHTML=a);b=0}catch(a){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return w(this,arguments,function(b){var c=this.parentNode;fa.inArray(this,a)<0&&(fa.cleanData(k(this)),c&&c.replaceChild(b,this))},a)}}),fa.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){fa.fn[a]=function(a){for(var c,d=[],e=fa(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),fa(e[g])[b](c),$.apply(d,c.get());return this.pushStack(d)}});var Ta,Ua={HTML:"block",BODY:"block"},Va=/^margin/,Wa=new RegExp("^("+Ca+")(?!px)[a-z%]+$","i"),Xa=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Ya=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Za=X.documentElement;!function(){function b(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Za.appendChild(g);var b=a.getComputedStyle(h);c="1%"!==b.top,f="2px"===b.marginLeft,d="4px"===b.width,h.style.marginRight="50%",e="4px"===b.marginRight,Za.removeChild(g)}var c,d,e,f,g=X.createElement("div"),h=X.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",da.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),fa.extend(da,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return null==d&&b(),d},pixelMarginRight:function(){return null==d&&b(),e},reliableMarginLeft:function(){return null==d&&b(),f},reliableMarginRight:function(){var b,c=h.appendChild(X.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Za.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Za.removeChild(g),h.removeChild(c),b}}))}();var $a=/^(none|table(?!-c[ea]).+)/,_a={position:"absolute",visibility:"hidden",display:"block"},ab={letterSpacing:"0",fontWeight:"400"},bb=["Webkit","O","Moz","ms"],cb=X.createElement("div").style;fa.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=A(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=fa.camelCase(b),i=a.style;return b=fa.cssProps[h]||(fa.cssProps[h]=C(h)||h),g=fa.cssHooks[b]||fa.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Da.exec(c))&&e[1]&&(c=j(a,b,e),f="number"),void(null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(fa.cssNumber[h]?"":"px")),da.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c))))}},css:function(a,b,c,d){var e,f,g,h=fa.camelCase(b);return b=fa.cssProps[h]||(fa.cssProps[h]=C(h)||h),g=fa.cssHooks[b]||fa.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=A(a,b,d)),"normal"===e&&b in ab&&(e=ab[b]),""===c||c?(f=parseFloat(e),!0===c||isFinite(f)?f||0:e):e}}),fa.each(["height","width"],function(a,b){fa.cssHooks[b]={get:function(a,c,d){return c?$a.test(fa.css(a,"display"))&&0===a.offsetWidth?Ya(a,_a,function(){return F(a,b,d)}):F(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Xa(a),g=d&&E(a,b,d,"border-box"===fa.css(a,"boxSizing",!1,f),f);return g&&(e=Da.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=fa.css(a,b)),D(a,c,g)}}}),fa.cssHooks.marginLeft=B(da.reliableMarginLeft,function(a,b){return b?(parseFloat(A(a,"marginLeft"))||a.getBoundingClientRect().left-Ya(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),fa.cssHooks.marginRight=B(da.reliableMarginRight,function(a,b){return b?Ya(a,{display:"inline-block"},A,[a,"marginRight"]):void 0}),fa.each({margin:"",padding:"",border:"Width"},function(a,b){fa.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Ea[d]+b]=f[d]||f[d-2]||f[0];return e}},Va.test(a)||(fa.cssHooks[a+b].set=D)}),fa.fn.extend({css:function(a,b){return wa(this,function(a,b,c){var d,e,f={},g=0;if(fa.isArray(b)){for(d=Xa(a),e=b.length;e>g;g++)f[b[g]]=fa.css(a,b[g],!1,d);return f}return void 0!==c?fa.style(a,b,c):fa.css(a,b)},a,b,arguments.length>1)},show:function(){return G(this,!0)},hide:function(){return G(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Fa(this)?fa(this).show():fa(this).hide()})}}),fa.Tween=H,H.prototype={constructor:H,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||fa.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(fa.cssNumber[c]?"":"px")},cur:function(){var a=H.propHooks[this.prop];return a&&a.get?a.get(this):H.propHooks._default.get(this)},run:function(a){var b,c=H.propHooks[this.prop];return this.options.duration?this.pos=b=fa.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=fa.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){fa.fx.step[a.prop]?fa.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[fa.cssProps[a.prop]]&&!fa.cssHooks[a.prop]?a.elem[a.prop]=a.now:fa.style(a.elem,a.prop,a.now+a.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},fa.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},fa.fx=H.prototype.init,fa.fx.step={};var db,eb,fb=/^(?:toggle|show|hide)$/,gb=/queueHooks$/;fa.Animation=fa.extend(N,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return j(c.elem,a,Da.exec(b),c),c}]},tweener:function(a,b){fa.isFunction(a)?(b=a,a=["*"]):a=a.match(ua);for(var c,d=0,e=a.length;e>d;d++)c=a[d],N.tweeners[c]=N.tweeners[c]||[],N.tweeners[c].unshift(b)},prefilters:[L],prefilter:function(a,b){b?N.prefilters.unshift(a):N.prefilters.push(a)}}),fa.speed=function(a,b,c){var d=a&&"object"==typeof a?fa.extend({},a):{complete:c||!c&&b||fa.isFunction(a)&&a,duration:a,easing:c&&b||b&&!fa.isFunction(b)&&b};return d.duration=fa.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in fa.fx.speeds?fa.fx.speeds[d.duration]:fa.fx.speeds._default,null!=d.queue&&!0!==d.queue||(d.queue="fx"),d.old=d.complete,d.complete=function(){fa.isFunction(d.old)&&d.old.call(this),d.queue&&fa.dequeue(this,d.queue)},d},fa.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Fa).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=fa.isEmptyObject(a),f=fa.speed(b,c,d),g=function(){var b=N(this,fa.extend({},a),f);(e||ya.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||!1===f.queue?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&!1!==a&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=fa.timers,g=ya.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&gb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||fa.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var b,c=ya.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=fa.timers,g=d?d.length:0;for(c.finish=!0,fa.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),fa.each(["toggle","show","hide"],function(a,b){var c=fa.fn[b];fa.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(J(b,!0),a,d,e)}}),fa.each({slideDown:J("show"),slideUp:J("hide"),slideToggle:J("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){fa.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),fa.timers=[],fa.fx.tick=function(){var a,b=0,c=fa.timers;for(db=fa.now();b<c.length;b++)(a=c[b])()||c[b]!==a||c.splice(b--,1);c.length||fa.fx.stop(),db=void 0},fa.fx.timer=function(a){
fa.timers.push(a),a()?fa.fx.start():fa.timers.pop()},fa.fx.interval=13,fa.fx.start=function(){eb||(eb=a.setInterval(fa.fx.tick,fa.fx.interval))},fa.fx.stop=function(){a.clearInterval(eb),eb=null},fa.fx.speeds={slow:600,fast:200,_default:400},fa.fn.delay=function(b,c){return b=fa.fx?fa.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=X.createElement("input"),b=X.createElement("select"),c=b.appendChild(X.createElement("option"));a.type="checkbox",da.checkOn=""!==a.value,da.optSelected=c.selected,b.disabled=!0,da.optDisabled=!c.disabled,a=X.createElement("input"),a.value="t",a.type="radio",da.radioValue="t"===a.value}();var hb,ib=fa.expr.attrHandle;fa.fn.extend({attr:function(a,b){return wa(this,fa.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){fa.removeAttr(this,a)})}}),fa.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return void 0===a.getAttribute?fa.prop(a,b,c):(1===f&&fa.isXMLDoc(a)||(b=b.toLowerCase(),e=fa.attrHooks[b]||(fa.expr.match.bool.test(b)?hb:void 0)),void 0!==c?null===c?void fa.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=fa.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!da.radioValue&&"radio"===b&&fa.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(ua);if(f&&1===a.nodeType)for(;c=f[e++];)d=fa.propFix[c]||c,fa.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),hb={set:function(a,b,c){return!1===b?fa.removeAttr(a,c):a.setAttribute(c,c),c}},fa.each(fa.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ib[b]||fa.find.attr;ib[b]=function(a,b,d){var e,f;return d||(f=ib[b],ib[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ib[b]=f),e}});var jb=/^(?:input|select|textarea|button)$/i,kb=/^(?:a|area)$/i;fa.fn.extend({prop:function(a,b){return wa(this,fa.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[fa.propFix[a]||a]})}}),fa.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&fa.isXMLDoc(a)||(b=fa.propFix[b]||b,e=fa.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=fa.find.attr(a,"tabindex");return b?parseInt(b,10):jb.test(a.nodeName)||kb.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),da.optSelected||(fa.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),fa.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){fa.propFix[this.toLowerCase()]=this});var lb=/[\t\r\n\f]/g;fa.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(fa.isFunction(a))return this.each(function(b){fa(this).addClass(a.call(this,b,O(this)))});if("string"==typeof a&&a)for(b=a.match(ua)||[];c=this[i++];)if(e=O(c),d=1===c.nodeType&&(" "+e+" ").replace(lb," ")){for(g=0;f=b[g++];)d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=fa.trim(d),e!==h&&c.setAttribute("class",h)}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(fa.isFunction(a))return this.each(function(b){fa(this).removeClass(a.call(this,b,O(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a)for(b=a.match(ua)||[];c=this[i++];)if(e=O(c),d=1===c.nodeType&&(" "+e+" ").replace(lb," ")){for(g=0;f=b[g++];)for(;d.indexOf(" "+f+" ")>-1;)d=d.replace(" "+f+" "," ");h=fa.trim(d),e!==h&&c.setAttribute("class",h)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):fa.isFunction(a)?this.each(function(c){fa(this).toggleClass(a.call(this,c,O(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c)for(d=0,e=fa(this),f=a.match(ua)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else void 0!==a&&"boolean"!==c||(b=O(this),b&&ya.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||!1===a?"":ya.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;for(b=" "+a+" ";c=this[d++];)if(1===c.nodeType&&(" "+O(c)+" ").replace(lb," ").indexOf(b)>-1)return!0;return!1}});var mb=/\r/g,nb=/[\x20\t\r\n\f]+/g;fa.fn.extend({val:function(a){var b,c,d,e=this[0];return arguments.length?(d=fa.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,fa(this).val()):a,null==e?e="":"number"==typeof e?e+="":fa.isArray(e)&&(e=fa.map(e,function(a){return null==a?"":a+""})),(b=fa.valHooks[this.type]||fa.valHooks[this.nodeName.toLowerCase()])&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))})):e?(b=fa.valHooks[e.type]||fa.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(mb,""):null==c?"":c)):void 0}}),fa.extend({valHooks:{option:{get:function(a){var b=fa.find.attr(a,"value");return null!=b?b:fa.trim(fa.text(a)).replace(nb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(da.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!fa.nodeName(c.parentNode,"optgroup"))){if(b=fa(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=fa.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=fa.inArray(fa.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),fa.each(["radio","checkbox"],function(){fa.valHooks[this]={set:function(a,b){return fa.isArray(b)?a.checked=fa.inArray(fa(a).val(),b)>-1:void 0}},da.checkOn||(fa.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ob=/^(?:focusinfocus|focusoutblur)$/;fa.extend(fa.event,{trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||X],n=ca.call(b,"type")?b.type:b,o=ca.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||X,3!==d.nodeType&&8!==d.nodeType&&!ob.test(n+fa.event.triggered)&&(n.indexOf(".")>-1&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[fa.expando]?b:new fa.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:fa.makeArray(c,[b]),l=fa.event.special[n]||{},e||!l.trigger||!1!==l.trigger.apply(d,c))){if(!e&&!l.noBubble&&!fa.isWindow(d)){for(i=l.delegateType||n,ob.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||X)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(ya.get(g,"events")||{})[b.type]&&ya.get(g,"handle"),k&&k.apply(g,c),(k=j&&g[j])&&k.apply&&xa(g)&&(b.result=k.apply(g,c),!1===b.result&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&!1!==l._default.apply(m.pop(),c)||!xa(d)||j&&fa.isFunction(d[n])&&!fa.isWindow(d)&&(h=d[j],h&&(d[j]=null),fa.event.triggered=n,d[n](),fa.event.triggered=void 0,h&&(d[j]=h)),b.result}},simulate:function(a,b,c){var d=fa.extend(new fa.Event,c,{type:a,isSimulated:!0});fa.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}}),fa.fn.extend({trigger:function(a,b){return this.each(function(){fa.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?fa.event.trigger(a,b,c,!0):void 0}}),fa.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){fa.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),fa.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),da.focusin="onfocusin"in a,da.focusin||fa.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){fa.event.simulate(b,a.target,fa.event.fix(a))};fa.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=ya.access(d,b);e||d.addEventListener(a,c,!0),ya.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=ya.access(d,b)-1;e?ya.access(d,b,e):(d.removeEventListener(a,c,!0),ya.remove(d,b))}}});var pb=a.location,qb=fa.now(),rb=/\?/;fa.parseJSON=function(a){return JSON.parse(a+"")},fa.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(a){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||fa.error("Invalid XML: "+b),c};var sb=/#.*$/,tb=/([?&])_=[^&]*/,ub=/^(.*?):[ \t]*([^\r\n]*)$/gm,vb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,wb=/^(?:GET|HEAD)$/,xb=/^\/\//,yb={},zb={},Ab="*/".concat("*"),Bb=X.createElement("a");Bb.href=pb.href,fa.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pb.href,type:"GET",isLocal:vb.test(pb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ab,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":fa.parseJSON,"text xml":fa.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?R(R(a,fa.ajaxSettings),b):R(fa.ajaxSettings,a)},ajaxPrefilter:P(yb),ajaxTransport:P(zb),ajax:function(b,c){function d(b,c,d,h){var j,l,s,t,v,x=c;2!==u&&(u=2,i&&a.clearTimeout(i),e=void 0,g=h||"",w.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(t=S(m,w,d)),t=T(m,t,w,j),j?(m.ifModified&&(v=w.getResponseHeader("Last-Modified"),v&&(fa.lastModified[f]=v),(v=w.getResponseHeader("etag"))&&(fa.etag[f]=v)),204===b||"HEAD"===m.type?x="nocontent":304===b?x="notmodified":(x=t.state,l=t.data,s=t.error,j=!s)):(s=x,!b&&x||(x="error",0>b&&(b=0))),w.status=b,w.statusText=(c||x)+"",j?p.resolveWith(n,[l,x,w]):p.rejectWith(n,[w,x,s]),w.statusCode(r),r=void 0,k&&o.trigger(j?"ajaxSuccess":"ajaxError",[w,m,j?l:s]),q.fireWith(n,[w,x]),k&&(o.trigger("ajaxComplete",[w,m]),--fa.active||fa.event.trigger("ajaxStop")))}"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=fa.ajaxSetup({},c),n=m.context||m,o=m.context&&(n.nodeType||n.jquery)?fa(n):fa.event,p=fa.Deferred(),q=fa.Callbacks("once memory"),r=m.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!h)for(h={};b=ub.exec(g);)h[b[1].toLowerCase()]=b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return e&&e.abort(b),d(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,m.url=((b||m.url||pb.href)+"").replace(sb,"").replace(xb,pb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=fa.trim(m.dataType||"*").toLowerCase().match(ua)||[""],null==m.crossDomain){j=X.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=Bb.protocol+"//"+Bb.host!=j.protocol+"//"+j.host}catch(a){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=fa.param(m.data,m.traditional)),Q(yb,m,c,w),2===u)return w;k=fa.event&&m.global,k&&0==fa.active++&&fa.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!wb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(rb.test(f)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=tb.test(f)?f.replace(tb,"$1_="+qb++):f+(rb.test(f)?"&":"?")+"_="+qb++)),m.ifModified&&(fa.lastModified[f]&&w.setRequestHeader("If-Modified-Since",fa.lastModified[f]),fa.etag[f]&&w.setRequestHeader("If-None-Match",fa.etag[f])),(m.data&&m.hasContent&&!1!==m.contentType||c.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ab+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)w.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(!1===m.beforeSend.call(n,w,m)||2===u))return w.abort();v="abort";for(l in{success:1,error:1,complete:1})w[l](m[l]);if(e=Q(zb,m,c,w)){if(w.readyState=1,k&&o.trigger("ajaxSend",[w,m]),2===u)return w;m.async&&m.timeout>0&&(i=a.setTimeout(function(){w.abort("timeout")},m.timeout));try{u=1,e.send(s,d)}catch(a){if(!(2>u))throw a;d(-1,a)}}else d(-1,"No Transport");return w},getJSON:function(a,b,c){return fa.get(a,b,c,"json")},getScript:function(a,b){return fa.get(a,void 0,b,"script")}}),fa.each(["get","post"],function(a,b){fa[b]=function(a,c,d,e){return fa.isFunction(c)&&(e=e||d,d=c,c=void 0),fa.ajax(fa.extend({url:a,type:b,dataType:e,data:c,success:d},fa.isPlainObject(a)&&a))}}),fa._evalUrl=function(a){return fa.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},fa.fn.extend({wrapAll:function(a){var b;return fa.isFunction(a)?this.each(function(b){fa(this).wrapAll(a.call(this,b))}):(this[0]&&(b=fa(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return fa.isFunction(a)?this.each(function(b){fa(this).wrapInner(a.call(this,b))}):this.each(function(){var b=fa(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=fa.isFunction(a);return this.each(function(c){fa(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){fa.nodeName(this,"body")||fa(this).replaceWith(this.childNodes)}).end()}}),fa.expr.filters.hidden=function(a){return!fa.expr.filters.visible(a)},fa.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Cb=/%20/g,Db=/\[\]$/,Eb=/\r?\n/g,Fb=/^(?:submit|button|image|reset|file)$/i,Gb=/^(?:input|select|textarea|keygen)/i;fa.param=function(a,b){var c,d=[],e=function(a,b){b=fa.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=fa.ajaxSettings&&fa.ajaxSettings.traditional),fa.isArray(a)||a.jquery&&!fa.isPlainObject(a))fa.each(a,function(){e(this.name,this.value)});else for(c in a)U(c,a[c],b,e);return d.join("&").replace(Cb,"+")},fa.fn.extend({serialize:function(){return fa.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=fa.prop(this,"elements");return a?fa.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!fa(this).is(":disabled")&&Gb.test(this.nodeName)&&!Fb.test(a)&&(this.checked||!Ga.test(a))}).map(function(a,b){var c=fa(this).val();return null==c?null:fa.isArray(c)?fa.map(c,function(a){return{name:b.name,value:a.replace(Eb,"\r\n")}}):{name:b.name,value:c.replace(Eb,"\r\n")}}).get()}}),fa.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(a){}};var Hb={0:200,1223:204},Ib=fa.ajaxSettings.xhr();da.cors=!!Ib&&"withCredentials"in Ib,da.ajax=Ib=!!Ib,fa.ajaxTransport(function(b){var c,d;return da.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(a){if(c)throw a}},abort:function(){c&&c()}}:void 0}),fa.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return fa.globalEval(a),a}}}),fa.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),fa.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=fa("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),X.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;fa.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||fa.expando+"_"+qb++;return this[a]=!0,a}}),fa.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=!1!==b.jsonp&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=fa.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):!1!==b.jsonp&&(b.url+=(rb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||fa.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?fa(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&fa.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),fa.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||X;var d=oa.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m([a],b,e),e&&e.length&&fa(e).remove(),fa.merge([],d.childNodes))};var Lb=fa.fn.load;fa.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=fa.trim(a.slice(h)),a=a.slice(0,h)),fa.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&fa.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?fa("<div>").append(fa.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},fa.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){fa.fn[b]=function(a){return this.on(b,a)}}),fa.expr.filters.animated=function(a){return fa.grep(fa.timers,function(b){return a===b.elem}).length},fa.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=fa.css(a,"position"),l=fa(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=fa.css(a,"top"),i=fa.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),fa.isFunction(b)&&(b=b.call(a,c,fa.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},fa.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){fa.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;return f?(b=f.documentElement,fa.contains(b,d)?(e=d.getBoundingClientRect(),c=V(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e):void 0},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===fa.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),fa.nodeName(a[0],"html")||(d=a.offset()),d.top+=fa.css(a[0],"borderTopWidth",!0),d.left+=fa.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-fa.css(c,"marginTop",!0),left:b.left-d.left-fa.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===fa.css(a,"position");)a=a.offsetParent;return a||Za})}}),fa.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;fa.fn[a]=function(d){return wa(this,function(a,d,e){var f=V(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),fa.each(["top","left"],function(a,b){fa.cssHooks[b]=B(da.pixelPosition,function(a,c){return c?(c=A(a,b),Wa.test(c)?fa(a).position()[b]+"px":c):void 0})}),fa.each({Height:"height",Width:"width"},function(a,b){fa.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){fa.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(!0===d||!0===e?"margin":"border");return wa(this,function(b,c,d){var e;return fa.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?fa.css(b,c,g):fa.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),fa.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),fa.fn.andSelf=fa.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return fa});var Mb=a.jQuery,Nb=a.$;return fa.noConflict=function(b){return a.$===fa&&(a.$=Nb),b&&a.jQuery===fa&&(a.jQuery=Mb),fa},b||(a.jQuery=a.$=fa),fa}),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jQuery)}(this,function(a){"use strict";function b(a){return"number"==typeof a&&!isNaN(a)}function c(a){return void 0===a}function d(a,c){var d=[];return b(c)&&d.push(c),d.slice.apply(a,d)}function e(a,b){for(var c=arguments.length,e=Array(c>2?c-2:0),f=2;f<c;f++)e[f-2]=arguments[f];return function(){for(var c=arguments.length,f=Array(c),g=0;g<c;g++)f[g]=arguments[g];return a.apply(b,e.concat(d(f)))}}function f(b){var c=[];return a.each(b,function(a){c.push(a)}),c}function g(a){var b=a.match(/^(https?:)\/\/([^:\/?#]+):?(\d*)/i);return b&&(b[1]!==location.protocol||b[2]!==location.hostname||b[3]!==location.port)}function h(a){var b="timestamp="+(new Date).getTime();return a+(-1===a.indexOf("?")?"?":"&")+b}function i(a){return a?' crossOrigin="'+a+'"':""}function j(a,b){if(a.naturalWidth&&!y)return void b(a.naturalWidth,a.naturalHeight);var c=document.createElement("img");c.onload=function(){b(this.width,this.height)},c.src=a.src}function k(a){var c=[],d=a.translateX,e=a.translateY,f=a.rotate,g=a.scaleX,h=a.scaleY;return b(d)&&0!==d&&c.push("translateX("+d+"px)"),b(e)&&0!==e&&c.push("translateY("+e+"px)"),b(f)&&0!==f&&c.push("rotate("+f+"deg)"),b(g)&&1!==g&&c.push("scaleX("+g+")"),b(h)&&1!==h&&c.push("scaleY("+h+")"),c.length?c.join(" "):"none"}function l(a,b){var c=Math.abs(a.degree)%180,d=(c>90?180-c:c)*Math.PI/180,e=Math.sin(d),f=Math.cos(d),g=a.width,h=a.height,i=a.aspectRatio,j=void 0,k=void 0;return b?(j=g/(f+e/i),k=j/i):(j=g*f+h*e,k=g*e+h*f),{width:j,height:k}}function m(c,d){var e=a("<canvas>")[0],f=e.getContext("2d"),g=0,h=0,i=d.naturalWidth,j=d.naturalHeight,k=d.rotate,m=d.scaleX,n=d.scaleY,o=b(m)&&b(n)&&(1!==m||1!==n),p=b(k)&&0!==k,q=p||o,r=i*Math.abs(m||1),s=j*Math.abs(n||1),t=void 0,u=void 0,v=void 0;return o&&(t=r/2,u=s/2),p&&(v=l({width:r,height:s,degree:k}),r=v.width,s=v.height,t=r/2,u=s/2),e.width=r,e.height=s,q&&(g=-i/2,h=-j/2,f.save(),f.translate(t,u)),p&&f.rotate(k*Math.PI/180),o&&f.scale(m,n),f.drawImage(c,Math.floor(g),Math.floor(h),Math.floor(i),Math.floor(j)),q&&f.restore(),e}function n(a,b,c){var d="",e=void 0;for(e=b,c+=b;e<c;e++)d+=z(a.getUint8(e));return d}function o(a){var b=new DataView(a),c=b.byteLength,d=void 0,e=void 0,f=void 0,g=void 0,h=void 0,i=void 0,j=void 0,k=void 0,l=void 0,m=void 0;if(255===b.getUint8(0)&&216===b.getUint8(1))for(l=2;l<c;){if(255===b.getUint8(l)&&225===b.getUint8(l+1)){j=l;break}l++}if(j&&(e=j+4,f=j+10,"Exif"===n(b,e,4)&&(i=b.getUint16(f),((h=18761===i)||19789===i)&&42===b.getUint16(f+2,h)&&(g=b.getUint32(f+4,h))>=8&&(k=f+g))),k)for(c=b.getUint16(k,h),m=0;m<c;m++)if(l=k+12*m+2,274===b.getUint16(l,h)){l+=8,d=b.getUint16(l,h),y&&b.setUint16(l,1,h);break}return d}function p(a){var b=a.replace(v,""),c=atob(b),d=c.length,e=new ArrayBuffer(d),f=new Uint8Array(e),g=void 0;for(g=0;g<d;g++)f[g]=c.charCodeAt(g);return e}function q(a){var b=new Uint8Array(a),c=b.length,d="",e=void 0;for(e=0;e<c;e++)d+=z(b[e]);return"data:image/jpeg;base64,"+btoa(d)}function r(b,c){var d=b.pageX,e=b.pageY,f={endX:d,endY:e};return c?f:a.extend({startX:d,startY:e},f)}function s(b){var c=a.extend({},b),d=[];return a.each(b,function(b,e){delete c[b],a.each(c,function(a,b){var c=Math.abs(e.startX-b.startX),f=Math.abs(e.startY-b.startY),g=Math.abs(e.endX-b.endX),h=Math.abs(e.endY-b.endY),i=Math.sqrt(c*c+f*f),j=Math.sqrt(g*g+h*h),k=(j-i)/i;d.push(k)})}),d.sort(function(a,b){return Math.abs(a)<Math.abs(b)}),d[0]}function t(b){var c=0,d=0,e=0;return a.each(b,function(a,b){var f=b.startX,g=b.startY;c+=f,d+=g,e+=1}),c/=e,d/=e,{pageX:c,pageY:d}}a="default"in a?a.default:a;var u={viewMode:0,dragMode:"crop",aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},v=/^data:.*,/,w=/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i,x="undefined"!=typeof window?window.navigator:null,y=x&&w.test(x.userAgent),z=String.fromCharCode,A={render:function(){var a=this;a.initContainer(),a.initCanvas(),a.initCropBox(),a.renderCanvas(),a.cropped&&a.renderCropBox()},initContainer:function(){var a=this,b=a.options,c=a.$element,d=a.$container,e=a.$cropper,f="cropper-hidden";e.addClass(f),c.removeClass(f),e.css(a.container={width:Math.max(d.width(),Number(b.minContainerWidth)||200),height:Math.max(d.height(),Number(b.minContainerHeight)||100)}),c.addClass(f),e.removeClass(f)},initCanvas:function(){var b=this,c=b.options.viewMode,d=b.container,e=d.width,f=d.height,g=b.image,h=g.naturalWidth,i=g.naturalHeight,j=90===Math.abs(g.rotate),k=j?i:h,l=j?h:i,m=k/l,n=e,o=f;f*m>e?3===c?n=f*m:o=e/m:3===c?o=e/m:n=f*m;var p={naturalWidth:k,naturalHeight:l,aspectRatio:m,width:n,height:o};p.oldLeft=p.left=(e-n)/2,p.oldTop=p.top=(f-o)/2,b.canvas=p,b.limited=1===c||2===c,b.limitCanvas(!0,!0),b.initialImage=a.extend({},g),b.initialCanvas=a.extend({},p)},limitCanvas:function(a,b){var c=this,d=c.options,e=d.viewMode,f=c.container,g=f.width,h=f.height,i=c.canvas,j=i.aspectRatio,k=c.cropBox,l=c.cropped&&k;if(a){var m=Number(d.minCanvasWidth)||0,n=Number(d.minCanvasHeight)||0;e&&(e>1?(m=Math.max(m,g),n=Math.max(n,h),3===e&&(n*j>m?m=n*j:n=m/j)):m?m=Math.max(m,l?k.width:0):n?n=Math.max(n,l?k.height:0):l&&(m=k.width,n=k.height,n*j>m?m=n*j:n=m/j)),m&&n?n*j>m?n=m/j:m=n*j:m?n=m/j:n&&(m=n*j),i.minWidth=m,i.minHeight=n,i.maxWidth=1/0,i.maxHeight=1/0}if(b)if(e){var o=g-i.width,p=h-i.height;i.minLeft=Math.min(0,o),i.minTop=Math.min(0,p),i.maxLeft=Math.max(0,o),i.maxTop=Math.max(0,p),l&&c.limited&&(i.minLeft=Math.min(k.left,k.left+k.width-i.width),i.minTop=Math.min(k.top,k.top+k.height-i.height),i.maxLeft=k.left,i.maxTop=k.top,2===e&&(i.width>=g&&(i.minLeft=Math.min(0,o),i.maxLeft=Math.max(0,o)),i.height>=h&&(i.minTop=Math.min(0,p),i.maxTop=Math.max(0,p))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=g,i.maxTop=h},renderCanvas:function(a){var b=this,c=b.canvas,d=b.image,e=d.rotate,f=d.naturalWidth,g=d.naturalHeight;if(b.rotated){b.rotated=!1;var h=l({width:d.width,height:d.height,degree:e}),i=h.width/h.height,j=1===d.aspectRatio;if(j||i!==c.aspectRatio){if(c.left-=(h.width-c.width)/2,c.top-=(h.height-c.height)/2,c.width=h.width,c.height=h.height,c.aspectRatio=i,c.naturalWidth=f,c.naturalHeight=g,j&&e%90||e%180){var m=l({width:f,height:g,degree:e});c.naturalWidth=m.width,c.naturalHeight=m.height}b.limitCanvas(!0,!1)}}(c.width>c.maxWidth||c.width<c.minWidth)&&(c.left=c.oldLeft),(c.height>c.maxHeight||c.height<c.minHeight)&&(c.top=c.oldTop),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),b.limitCanvas(!1,!0),c.oldLeft=c.left=Math.min(Math.max(c.left,c.minLeft),c.maxLeft),c.oldTop=c.top=Math.min(Math.max(c.top,c.minTop),c.maxTop),b.$canvas.css({width:c.width,height:c.height,transform:k({translateX:c.left,translateY:c.top})}),b.renderImage(),b.cropped&&b.limited&&b.limitCropBox(!0,!0),a&&b.output()},renderImage:function(b){var c=this,d=c.canvas,e=c.image,f=void 0;e.rotate&&(f=l({width:d.width,height:d.height,degree:e.rotate,aspectRatio:e.aspectRatio},!0)),a.extend(e,f?{width:f.width,height:f.height,left:(d.width-f.width)/2,top:(d.height-f.height)/2}:{width:d.width,height:d.height,left:0,top:0}),c.$clone.css({width:e.width,height:e.height,transform:k(a.extend({translateX:e.left,translateY:e.top},e))}),b&&c.output()},initCropBox:function(){var b=this,c=b.options,d=b.canvas,e=c.aspectRatio,f=Number(c.autoCropArea)||.8,g={width:d.width,height:d.height};e&&(d.height*e>d.width?g.height=g.width/e:g.width=g.height*e),b.cropBox=g,b.limitCropBox(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.width=Math.max(g.minWidth,g.width*f),g.height=Math.max(g.minHeight,g.height*f),g.oldLeft=g.left=d.left+(d.width-g.width)/2,g.oldTop=g.top=d.top+(d.height-g.height)/2,b.initialCropBox=a.extend({},g)},limitCropBox:function(a,b){var c=this,d=c.options,e=d.aspectRatio,f=c.container,g=f.width,h=f.height,i=c.canvas,j=c.cropBox,k=c.limited;if(a){var l=Number(d.minCropBoxWidth)||0,m=Number(d.minCropBoxHeight)||0,n=Math.min(g,k?i.width:g),o=Math.min(h,k?i.height:h);l=Math.min(l,g),m=Math.min(m,h),e&&(l&&m?m*e>l?m=l/e:l=m*e:l?m=l/e:m&&(l=m*e),o*e>n?o=n/e:n=o*e),j.minWidth=Math.min(l,n),j.minHeight=Math.min(m,o),j.maxWidth=n,j.maxHeight=o}b&&(k?(j.minLeft=Math.max(0,i.left),j.minTop=Math.max(0,i.top),j.maxLeft=Math.min(g,i.left+i.width)-j.width,j.maxTop=Math.min(h,i.top+i.height)-j.height):(j.minLeft=0,j.minTop=0,j.maxLeft=g-j.width,j.maxTop=h-j.height))},renderCropBox:function(){var a=this,b=a.options,c=a.container,d=c.width,e=c.height,f=a.cropBox;(f.width>f.maxWidth||f.width<f.minWidth)&&(f.left=f.oldLeft),(f.height>f.maxHeight||f.height<f.minHeight)&&(f.top=f.oldTop),f.width=Math.min(Math.max(f.width,f.minWidth),f.maxWidth),f.height=Math.min(Math.max(f.height,f.minHeight),f.maxHeight),a.limitCropBox(!1,!0),f.oldLeft=f.left=Math.min(Math.max(f.left,f.minLeft),f.maxLeft),f.oldTop=f.top=Math.min(Math.max(f.top,f.minTop),f.maxTop),b.movable&&b.cropBoxMovable&&a.$face.data("action",f.width===d&&f.height===e?"move":"all"),a.$cropBox.css({width:f.width,height:f.height,transform:k({translateX:f.left,translateY:f.top})}),a.cropped&&a.limited&&a.limitCanvas(!0,!0),a.disabled||a.output()},output:function(){var a=this;a.preview(),a.completed&&a.trigger("crop",a.getData())}},B="preview",C={initPreview:function(){var b=this,c=i(b.crossOrigin),d=c?b.crossOriginUrl:b.url,e=void 0;b.$preview=a(b.options.preview),
b.$clone2=e=a("<img "+c+' src="'+d+'">'),b.$viewBox.html(e),b.$preview.each(function(b,e){var f=a(e);f.data(B,{width:f.width(),height:f.height(),html:f.html()}),f.html("<img "+c+' src="'+d+'" style="display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;">')})},resetPreview:function(){this.$preview.each(function(b,c){var d=a(c),e=d.data(B);d.css({width:e.width,height:e.height}).html(e.html).removeData(B)})},preview:function(){var b=this,c=b.image,d=b.canvas,e=b.cropBox,f=e.width,g=e.height,h=c.width,i=c.height,j=e.left-d.left-c.left,l=e.top-d.top-c.top;b.cropped&&!b.disabled&&(b.$clone2.css({width:h,height:i,transform:k(a.extend({translateX:-j,translateY:-l},c))}),b.$preview.each(function(b,d){var e=a(d),m=e.data(B),n=m.width,o=m.height,p=n,q=o,r=1;f&&(r=n/f,q=g*r),g&&q>o&&(r=o/g,p=f*r,q=o),e.css({width:p,height:q}).find("img").css({width:h*r,height:i*r,transform:k(a.extend({translateX:-j*r,translateY:-l*r},c))})}))}},D="undefined"!=typeof window?window.PointerEvent:null,E=D?"pointerdown":"touchstart mousedown",F=D?"pointermove":"touchmove mousemove",G=D?" pointerup pointercancel":"touchend touchcancel mouseup",H="wheel mousewheel DOMMouseScroll",I="dblclick",J="resize",K="cropstart",L="cropmove",M="cropend",N="crop",O="zoom",P={bind:function(){var b=this,c=b.options,d=b.$element,f=b.$cropper;a.isFunction(c.cropstart)&&d.on(K,c.cropstart),a.isFunction(c.cropmove)&&d.on(L,c.cropmove),a.isFunction(c.cropend)&&d.on(M,c.cropend),a.isFunction(c.crop)&&d.on(N,c.crop),a.isFunction(c.zoom)&&d.on(O,c.zoom),f.on(E,e(b.cropStart,this)),c.zoomable&&c.zoomOnWheel&&f.on(H,e(b.wheel,this)),c.toggleDragModeOnDblclick&&f.on(I,e(b.dblclick,this)),a(document).on(F,b.onCropMove=e(b.cropMove,this)).on(G,b.onCropEnd=e(b.cropEnd,this)),c.responsive&&a(window).on(J,b.onResize=e(b.resize,this))},unbind:function(){var b=this,c=b.options,d=b.$element,e=b.$cropper;a.isFunction(c.cropstart)&&d.off(K,c.cropstart),a.isFunction(c.cropmove)&&d.off(L,c.cropmove),a.isFunction(c.cropend)&&d.off(M,c.cropend),a.isFunction(c.crop)&&d.off(N,c.crop),a.isFunction(c.zoom)&&d.off(O,c.zoom),e.off(E,b.cropStart),c.zoomable&&c.zoomOnWheel&&e.off(H,b.wheel),c.toggleDragModeOnDblclick&&e.off(I,b.dblclick),a(document).off(F,b.onCropMove).off(G,b.onCropEnd),c.responsive&&a(window).off(J,b.onResize)}},Q=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,R={resize:function(){var b=this,c=b.options,d=b.$container,e=b.container,f=Number(c.minContainerWidth)||200,g=Number(c.minContainerHeight)||100;if(!b.disabled&&e.width!==f&&e.height!==g){var h=d.width()/e.width;1===h&&d.height()===e.height||function(){var d=void 0,e=void 0;c.restore&&(d=b.getCanvasData(),e=b.getCropBoxData()),b.render(),c.restore&&(b.setCanvasData(a.each(d,function(a,b){d[a]=b*h})),b.setCropBoxData(a.each(e,function(a,b){e[a]=b*h})))}()}},dblclick:function(){var a=this;a.disabled||"none"===a.options.dragMode||a.setDragMode(a.$dragBox.hasClass("cropper-crop")?"move":"crop")},wheel:function(a){var b=this,c=a.originalEvent||a,d=Number(b.options.wheelZoomRatio)||.1;if(!b.disabled&&(a.preventDefault(),!b.wheeling)){b.wheeling=!0,setTimeout(function(){b.wheeling=!1},50);var e=1;c.deltaY?e=c.deltaY>0?1:-1:c.wheelDelta?e=-c.wheelDelta/120:c.detail&&(e=c.detail>0?1:-1),b.zoom(-e*d,a)}},cropStart:function(b){var c=this;if(!c.disabled){var d=c.options,e=c.pointers,g=b.originalEvent,h=void 0;g&&g.changedTouches?a.each(g.changedTouches,function(a,b){e[b.identifier]=r(b)}):e[g&&g.pointerId||0]=r(g||b),h=f(e).length>1&&d.zoomable&&d.zoomOnTouch?"zoom":a(b.target).data("action"),Q.test(h)&&(c.trigger("cropstart",{originalEvent:g,action:h}).isDefaultPrevented()||(b.preventDefault(),c.action=h,c.cropping=!1,"crop"===h&&(c.cropping=!0,c.$dragBox.addClass("cropper-modal"))))}},cropMove:function(b){var c=this,d=c.action;if(!c.disabled&&d){var e=c.pointers,f=b.originalEvent;b.preventDefault(),c.trigger("cropmove",{originalEvent:f,action:d}).isDefaultPrevented()||(f&&f.changedTouches?a.each(f.changedTouches,function(b,c){a.extend(e[c.identifier],r(c,!0))}):a.extend(e[f&&f.pointerId||0],r(f||b,!0)),c.change(b))}},cropEnd:function(b){var c=this;if(!c.disabled){var d=c.action,e=c.pointers,g=b.originalEvent;g&&g.changedTouches?a.each(g.changedTouches,function(a,b){delete e[b.identifier]}):delete e[g&&g.pointerId||0],d&&(b.preventDefault(),f(e).length||(c.action=""),c.cropping&&(c.cropping=!1,c.$dragBox.toggleClass("cropper-modal",c.cropped&&c.options.modal)),c.trigger("cropend",{originalEvent:g,action:d}))}}},S="se",T="sw",U="ne",V="nw",W={change:function(b){var c=this,d=c.options,e=c.pointers,g=e[f(e)[0]],h=c.container,i=c.canvas,j=c.cropBox,k=c.action,l=d.aspectRatio,m=j.width,n=j.height,o=j.left,p=j.top,q=o+m,r=p+n,t=0,u=0,v=h.width,w=h.height,x=!0,y=void 0;!l&&b.shiftKey&&(l=m&&n?m/n:1),c.limited&&(t=j.minLeft,u=j.minTop,v=t+Math.min(h.width,i.width,i.left+i.width),w=u+Math.min(h.height,i.height,i.top+i.height));var z={x:g.endX-g.startX,y:g.endY-g.startY};switch(l&&(z.X=z.y*l,z.Y=z.x/l),k){case"all":o+=z.x,p+=z.y;break;case"e":if(z.x>=0&&(q>=v||l&&(p<=u||r>=w))){x=!1;break}m+=z.x,l&&(n=m/l,p-=z.Y/2),m<0&&(k="w",m=0);break;case"n":if(z.y<=0&&(p<=u||l&&(o<=t||q>=v))){x=!1;break}n-=z.y,p+=z.y,l&&(m=n*l,o+=z.X/2),n<0&&(k="s",n=0);break;case"w":if(z.x<=0&&(o<=t||l&&(p<=u||r>=w))){x=!1;break}m-=z.x,o+=z.x,l&&(n=m/l,p+=z.Y/2),m<0&&(k="e",m=0);break;case"s":if(z.y>=0&&(r>=w||l&&(o<=t||q>=v))){x=!1;break}n+=z.y,l&&(m=n*l,o-=z.X/2),n<0&&(k="n",n=0);break;case U:if(l){if(z.y<=0&&(p<=u||q>=v)){x=!1;break}n-=z.y,p+=z.y,m=n*l}else z.x>=0?q<v?m+=z.x:z.y<=0&&p<=u&&(x=!1):m+=z.x,z.y<=0?p>u&&(n-=z.y,p+=z.y):(n-=z.y,p+=z.y);m<0&&n<0?(k=T,n=0,m=0):m<0?(k=V,m=0):n<0&&(k=S,n=0);break;case V:if(l){if(z.y<=0&&(p<=u||o<=t)){x=!1;break}n-=z.y,p+=z.y,m=n*l,o+=z.X}else z.x<=0?o>t?(m-=z.x,o+=z.x):z.y<=0&&p<=u&&(x=!1):(m-=z.x,o+=z.x),z.y<=0?p>u&&(n-=z.y,p+=z.y):(n-=z.y,p+=z.y);m<0&&n<0?(k=S,n=0,m=0):m<0?(k=U,m=0):n<0&&(k=T,n=0);break;case T:if(l){if(z.x<=0&&(o<=t||r>=w)){x=!1;break}m-=z.x,o+=z.x,n=m/l}else z.x<=0?o>t?(m-=z.x,o+=z.x):z.y>=0&&r>=w&&(x=!1):(m-=z.x,o+=z.x),z.y>=0?r<w&&(n+=z.y):n+=z.y;m<0&&n<0?(k=U,n=0,m=0):m<0?(k=S,m=0):n<0&&(k=V,n=0);break;case S:if(l){if(z.x>=0&&(q>=v||r>=w)){x=!1;break}m+=z.x,n=m/l}else z.x>=0?q<v?m+=z.x:z.y>=0&&r>=w&&(x=!1):m+=z.x,z.y>=0?r<w&&(n+=z.y):n+=z.y;m<0&&n<0?(k=V,n=0,m=0):m<0?(k=T,m=0):n<0&&(k=U,n=0);break;case"move":c.move(z.x,z.y),x=!1;break;case"zoom":c.zoom(s(e),b.originalEvent),x=!1;break;case"crop":if(!z.x||!z.y){x=!1;break}y=c.$cropper.offset(),o=g.startX-y.left,p=g.startY-y.top,m=j.minWidth,n=j.minHeight,z.x>0?k=z.y>0?S:U:z.x<0&&(o-=m,k=z.y>0?T:V),z.y<0&&(p-=n),c.cropped||(c.$cropBox.removeClass("cropper-hidden"),c.cropped=!0,c.limited&&c.limitCropBox(!0,!0))}x&&(j.width=m,j.height=n,j.left=o,j.top=p,c.action=k,c.renderCropBox()),a.each(e,function(a,b){b.startX=b.endX,b.startY=b.endY})}},X=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},Y=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),Z=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return Array.from(a)},$={crop:function(){var a=this;a.ready&&!a.disabled&&(a.cropped||(a.cropped=!0,a.limitCropBox(!0,!0),a.options.modal&&a.$dragBox.addClass("cropper-modal"),a.$cropBox.removeClass("cropper-hidden")),a.setCropBoxData(a.initialCropBox))},reset:function(){var b=this;b.ready&&!b.disabled&&(b.image=a.extend({},b.initialImage),b.canvas=a.extend({},b.initialCanvas),b.cropBox=a.extend({},b.initialCropBox),b.renderCanvas(),b.cropped&&b.renderCropBox())},clear:function(){var b=this;b.cropped&&!b.disabled&&(a.extend(b.cropBox,{left:0,top:0,width:0,height:0}),b.cropped=!1,b.renderCropBox(),b.limitCanvas(!0,!0),b.renderCanvas(),b.$dragBox.removeClass("cropper-modal"),b.$cropBox.addClass("cropper-hidden"))},replace:function(a,b){var c=this;!c.disabled&&a&&(c.isImg&&c.$element.attr("src",a),b?(c.url=a,c.$clone.attr("src",a),c.ready&&c.$preview.find("img").add(c.$clone2).attr("src",a)):(c.isImg&&(c.replaced=!0),c.options.data=null,c.load(a)))},enable:function(){var a=this;a.ready&&(a.disabled=!1,a.$cropper.removeClass("cropper-disabled"))},disable:function(){var a=this;a.ready&&(a.disabled=!0,a.$cropper.addClass("cropper-disabled"))},destroy:function(){var a=this,b=a.$element;a.loaded?(a.isImg&&a.replaced&&b.attr("src",a.originalUrl),a.unbuild(),b.removeClass("cropper-hidden")):a.isImg?b.off("load",a.start):a.$clone&&a.$clone.remove(),b.removeData("cropper")},move:function(a,b){var d=this,e=d.canvas;d.moveTo(c(a)?a:e.left+Number(a),c(b)?b:e.top+Number(b))},moveTo:function(a,d){var e=this,f=e.canvas,g=!1;c(d)&&(d=a),a=Number(a),d=Number(d),e.ready&&!e.disabled&&e.options.movable&&(b(a)&&(f.left=a,g=!0),b(d)&&(f.top=d,g=!0),g&&e.renderCanvas(!0))},zoom:function(a,b){var c=this,d=c.canvas;a=Number(a),a=a<0?1/(1-a):1+a,c.zoomTo(d.width*a/d.naturalWidth,b)},zoomTo:function(a,b){var c=this,d=c.options,e=c.pointers,g=c.canvas,h=g.width,i=g.height,j=g.naturalWidth,k=g.naturalHeight;if((a=Number(a))>=0&&c.ready&&!c.disabled&&d.zoomable){var l=j*a,m=k*a,n=void 0;if(b&&(n=b.originalEvent),c.trigger("zoom",{originalEvent:n,oldRatio:h/j,ratio:l/j}).isDefaultPrevented())return;if(n){var o=c.$cropper.offset(),p=e&&f(e).length?t(e):{pageX:b.pageX||n.pageX||0,pageY:b.pageY||n.pageY||0};g.left-=(l-h)*((p.pageX-o.left-g.left)/h),g.top-=(m-i)*((p.pageY-o.top-g.top)/i)}else g.left-=(l-h)/2,g.top-=(m-i)/2;g.width=l,g.height=m,c.renderCanvas(!0)}},rotate:function(a){var b=this;b.rotateTo((b.image.rotate||0)+Number(a))},rotateTo:function(a){var c=this;a=Number(a),b(a)&&c.ready&&!c.disabled&&c.options.rotatable&&(c.image.rotate=a%360,c.rotated=!0,c.renderCanvas(!0))},scale:function(a,d){var e=this,f=e.image,g=!1;c(d)&&(d=a),a=Number(a),d=Number(d),e.ready&&!e.disabled&&e.options.scalable&&(b(a)&&(f.scaleX=a,g=!0),b(d)&&(f.scaleY=d,g=!0),g&&e.renderImage(!0))},scaleX:function(a){var c=this,d=c.image.scaleY;c.scale(a,b(d)?d:1)},scaleY:function(a){var c=this,d=c.image.scaleX;c.scale(b(d)?d:1,a)},getData:function(b){var c=this,d=c.options,e=c.image,f=c.canvas,g=c.cropBox,h=void 0,i=void 0;return c.ready&&c.cropped?(i={x:g.left-f.left,y:g.top-f.top,width:g.width,height:g.height},h=e.width/e.naturalWidth,a.each(i,function(a,c){c/=h,i[a]=b?Math.round(c):c})):i={x:0,y:0,width:0,height:0},d.rotatable&&(i.rotate=e.rotate||0),d.scalable&&(i.scaleX=e.scaleX||1,i.scaleY=e.scaleY||1),i},setData:function(c){var d=this,e=d.options,f=d.image,g=d.canvas,h={},i=void 0,j=void 0,k=void 0;a.isFunction(c)&&(c=c.call(d.element)),d.ready&&!d.disabled&&a.isPlainObject(c)&&(e.rotatable&&b(c.rotate)&&c.rotate!==f.rotate&&(f.rotate=c.rotate,d.rotated=i=!0),e.scalable&&(b(c.scaleX)&&c.scaleX!==f.scaleX&&(f.scaleX=c.scaleX,j=!0),b(c.scaleY)&&c.scaleY!==f.scaleY&&(f.scaleY=c.scaleY,j=!0)),i?d.renderCanvas():j&&d.renderImage(),k=f.width/f.naturalWidth,b(c.x)&&(h.left=c.x*k+g.left),b(c.y)&&(h.top=c.y*k+g.top),b(c.width)&&(h.width=c.width*k),b(c.height)&&(h.height=c.height*k),d.setCropBoxData(h))},getContainerData:function(){return this.ready?this.container:{}},getImageData:function(){return this.loaded?this.image:{}},getCanvasData:function(){var b=this,c=b.canvas,d={};return b.ready&&a.each(["left","top","width","height","naturalWidth","naturalHeight"],function(a,b){d[b]=c[b]}),d},setCanvasData:function(c){var d=this,e=d.canvas,f=e.aspectRatio;a.isFunction(c)&&(c=c.call(d.$element)),d.ready&&!d.disabled&&a.isPlainObject(c)&&(b(c.left)&&(e.left=c.left),b(c.top)&&(e.top=c.top),b(c.width)?(e.width=c.width,e.height=c.width/f):b(c.height)&&(e.height=c.height,e.width=c.height*f),d.renderCanvas(!0))},getCropBoxData:function(){var a=this,b=a.cropBox;return a.ready&&a.cropped?{left:b.left,top:b.top,width:b.width,height:b.height}:{}},setCropBoxData:function(c){var d=this,e=d.cropBox,f=d.options.aspectRatio,g=void 0,h=void 0;a.isFunction(c)&&(c=c.call(d.$element)),d.ready&&d.cropped&&!d.disabled&&a.isPlainObject(c)&&(b(c.left)&&(e.left=c.left),b(c.top)&&(e.top=c.top),b(c.width)&&c.width!==e.width&&(g=!0,e.width=c.width),b(c.height)&&c.height!==e.height&&(h=!0,e.height=c.height),f&&(g?e.height=e.width/f:h&&(e.width=e.height*f)),d.renderCropBox())},getCroppedCanvas:function(b){var c=this;if(!c.ready||!window.HTMLCanvasElement)return null;if(!c.cropped)return m(c.$clone[0],c.image);a.isPlainObject(b)||(b={});var d=c.getData(),e=d.width,f=d.height,g=e/f,h=void 0,i=void 0,j=void 0;a.isPlainObject(b)&&(h=b.width,i=b.height,h?(i=h/g,j=h/e):i&&(h=i*g,j=i/f));var k=Math.floor(h||e),l=Math.floor(i||f),n=a("<canvas>")[0],o=n.getContext("2d");n.width=k,n.height=l,b.fillColor&&(o.fillStyle=b.fillColor,o.fillRect(0,0,k,l));var p=function(){var a=m(c.$clone[0],c.image),b=a.width,g=a.height,h=c.canvas,i=[a],k=d.x+h.naturalWidth*(Math.abs(d.scaleX||1)-1)/2,l=d.y+h.naturalHeight*(Math.abs(d.scaleY||1)-1)/2,n=void 0,o=void 0,p=void 0,q=void 0,r=void 0,s=void 0;return k<=-e||k>b?k=n=p=r=0:k<=0?(p=-k,k=0,n=r=Math.min(b,e+k)):k<=b&&(p=0,n=r=Math.min(e,b-k)),n<=0||l<=-f||l>g?l=o=q=s=0:l<=0?(q=-l,l=0,o=s=Math.min(g,f+l)):l<=g&&(q=0,o=s=Math.min(f,g-l)),i.push(Math.floor(k),Math.floor(l),Math.floor(n),Math.floor(o)),j&&(p*=j,q*=j,r*=j,s*=j),r>0&&s>0&&i.push(Math.floor(p),Math.floor(q),Math.floor(r),Math.floor(s)),i}();return o.drawImage.apply(o,Z(p)),n},setAspectRatio:function(a){var b=this,d=b.options;b.disabled||c(a)||(d.aspectRatio=Math.max(0,a)||NaN,b.ready&&(b.initCropBox(),b.cropped&&b.renderCropBox()))},setDragMode:function(a){var b=this,c=b.options,d=void 0,e=void 0;b.loaded&&!b.disabled&&(d="crop"===a,e=c.movable&&"move"===a,a=d||e?a:"none",b.$dragBox.data("action",a).toggleClass("cropper-crop",d).toggleClass("cropper-move",e),c.cropBoxMovable||b.$face.data("action",a).toggleClass("cropper-crop",d).toggleClass("cropper-move",e))}},_="cropper-hidden",aa=/^data:/,ba=/^data:image\/jpeg;base64,/,ca=function(){function b(c,d){X(this,b);var e=this;e.$element=a(c),e.options=a.extend({},u,a.isPlainObject(d)&&d),e.loaded=!1,e.ready=!1,e.completed=!1,e.rotated=!1,e.cropped=!1,e.disabled=!1,e.replaced=!1,e.limited=!1,e.wheeling=!1,e.isImg=!1,e.originalUrl="",e.canvas=null,e.cropBox=null,e.pointers={},e.init()}return Y(b,[{key:"init",value:function(){var a=this,b=a.$element,c=void 0;if(b.is("img")){if(a.isImg=!0,a.originalUrl=c=b.attr("src"),!c)return;c=b.prop("src")}else b.is("canvas")&&window.HTMLCanvasElement&&(c=b[0].toDataURL());a.load(c)}},{key:"trigger",value:function(b,c){var d=a.Event(b,c);return this.$element.trigger(d),d}},{key:"load",value:function(b){var c=this,d=c.options,e=c.$element;if(b){if(c.url=b,c.image={},!d.checkOrientation||!ArrayBuffer)return void c.clone();if(aa.test(b))return void(ba.test(b)?c.read(p(b)):c.clone());var f=new XMLHttpRequest;f.onerror=f.onabort=a.proxy(function(){c.clone()},this),f.onload=function(){c.read(this.response)},d.checkCrossOrigin&&g(b)&&e.prop("crossOrigin")&&(b=h(b)),f.open("get",b),f.responseType="arraybuffer",f.withCredentials="use-credentials"===e.prop("crossOrigin"),f.send()}}},{key:"read",value:function(a){var b=this,c=b.options,d=o(a),e=b.image,f=0,g=1,h=1;if(d>1)switch(b.url=q(a),d){case 2:g=-1;break;case 3:f=-180;break;case 4:h=-1;break;case 5:f=90,h=-1;break;case 6:f=90;break;case 7:f=90,g=-1;break;case 8:f=-90}c.rotatable&&(e.rotate=f),c.scalable&&(e.scaleX=g,e.scaleY=h),b.clone()}},{key:"clone",value:function(){var b=this,c=b.options,d=b.$element,e=b.url,f="",j=void 0;c.checkCrossOrigin&&g(e)&&(f=d.prop("crossOrigin"),f?j=e:(f="anonymous",j=h(e))),b.crossOrigin=f,b.crossOriginUrl=j;var k=a("<img "+i(f)+' src="'+(j||e)+'">');b.$clone=k,b.isImg?d[0].complete?b.start():d.one("load",a.proxy(b.start,this)):k.one("load",a.proxy(b.start,this)).one("error",a.proxy(b.stop,this)).addClass("cropper-hide").insertAfter(d)}},{key:"start",value:function(){var b=this,c=b.$clone,d=b.$element;b.isImg||(c.off("error",b.stop),d=c),j(d[0],function(c,d){a.extend(b.image,{naturalWidth:c,naturalHeight:d,aspectRatio:c/d}),b.loaded=!0,b.build()})}},{key:"stop",value:function(){var a=this;a.$clone.remove(),a.$clone=null}},{key:"build",value:function(){var b=this,c=b.options,d=b.$element,e=b.$clone,f=void 0,g=void 0,h=void 0;b.loaded&&(b.ready&&b.unbuild(),b.$container=d.parent(),b.$cropper=f=a('<div class="cropper-container"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-action="e"></span><span class="cropper-line line-n" data-action="n"></span><span class="cropper-line line-w" data-action="w"></span><span class="cropper-line line-s" data-action="s"></span><span class="cropper-point point-e" data-action="e"></span><span class="cropper-point point-n" data-action="n"></span><span class="cropper-point point-w" data-action="w"></span><span class="cropper-point point-s" data-action="s"></span><span class="cropper-point point-ne" data-action="ne"></span><span class="cropper-point point-nw" data-action="nw"></span><span class="cropper-point point-sw" data-action="sw"></span><span class="cropper-point point-se" data-action="se"></span></div></div>'),b.$canvas=f.find(".cropper-canvas").append(e),b.$dragBox=f.find(".cropper-drag-box"),b.$cropBox=g=f.find(".cropper-crop-box"),b.$viewBox=f.find(".cropper-view-box"),b.$face=h=g.find(".cropper-face"),d.addClass(_).after(f),b.isImg||e.removeClass("cropper-hide"),b.initPreview(),b.bind(),c.aspectRatio=Math.max(0,c.aspectRatio)||NaN,c.viewMode=Math.max(0,Math.min(3,Math.round(c.viewMode)))||0,b.cropped=c.autoCrop,c.autoCrop?c.modal&&b.$dragBox.addClass("cropper-modal"):g.addClass(_),c.guides||g.find(".cropper-dashed").addClass(_),c.center||g.find(".cropper-center").addClass(_),c.cropBoxMovable&&h.addClass("cropper-move").data("action","all"),c.highlight||h.addClass("cropper-invisible"),c.background&&f.addClass("cropper-bg"),c.cropBoxResizable||g.find(".cropper-line, .cropper-point").addClass(_),b.setDragMode(c.dragMode),b.render(),b.ready=!0,b.setData(c.data),b.completing=setTimeout(function(){a.isFunction(c.ready)&&d.one("ready",c.ready),b.trigger("ready"),b.trigger("crop",b.getData()),b.completed=!0},0))}},{key:"unbuild",value:function(){var a=this;a.ready&&(a.completed||clearTimeout(a.completing),a.ready=!1,a.completed=!1,a.initialImage=null,a.initialCanvas=null,a.initialCropBox=null,a.container=null,a.canvas=null,a.cropBox=null,a.unbind(),a.resetPreview(),a.$preview=null,a.$viewBox=null,a.$cropBox=null,a.$dragBox=null,a.$canvas=null,a.$container=null,a.$cropper.remove(),a.$cropper=null)}}],[{key:"setDefaults",value:function(b){a.extend(u,a.isPlainObject(b)&&b)}}]),b}();a.extend(ca.prototype,A),a.extend(ca.prototype,C),a.extend(ca.prototype,P),a.extend(ca.prototype,R),a.extend(ca.prototype,W),a.extend(ca.prototype,$);var da="cropper",ea=a.fn.cropper;a.fn.cropper=function(b){for(var c=arguments.length,d=Array(c>1?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];var f=void 0;return this.each(function(c,e){var g=a(e),h=g.data(da);if(!h){if(/destroy/.test(b))return;var i=a.extend({},g.data(),a.isPlainObject(b)&&b);g.data(da,h=new ca(e,i))}if("string"==typeof b){var j=h[b];a.isFunction(j)&&(f=j.apply(h,d))}}),void 0!==f?f:this},a.fn.cropper.Constructor=ca,a.fn.cropper.setDefaults=ca.setDefaults,a.fn.cropper.noConflict=function(){return a.fn.cropper=ea,this}}),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.dragula=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";function d(a){var b=g[a];return b?b.lastIndex=0:g[a]=b=new RegExp(h+a+i,"g"),b}function e(a,b){var c=a.className;c.length?d(b).test(c)||(a.className+=" "+b):a.className=b}function f(a,b){a.className=a.className.replace(d(b)," ").trim()}var g={},h="(?:^|\\s)",i="(?:\\s|$)";b.exports={add:e,rm:f}},{}],2:[function(a,b,c){(function(c){"use strict";function d(a,b){function c(a){return-1!==ja.containers.indexOf(a)||ia.isContainer(a)}function d(a){var b=a?"remove":"add";e(x,b,"mousedown",z),e(x,b,"mouseup",I)}function h(a){e(x,a?"remove":"add","mousemove",A)}function p(a){var b=a?"remove":"add";u[b](x,"selectstart",y),u[b](x,"click",y)}function r(){d(!0),I({})}function y(a){ga&&a.preventDefault()}function z(a){if(aa=a.clientX,ba=a.clientY,!(1!==f(a)||a.metaKey||a.ctrlKey)){var b=a.target,c=B(b);c&&(ga=c,h(),"mousedown"===a.type&&(o(b)?b.focus():a.preventDefault()))}}function A(a){if(ga){if(0===f(a))return void I({});if(void 0===a.clientX||a.clientX!==aa||void 0===a.clientY||a.clientY!==ba){if(ia.ignoreInputTextSelection){var b=s("clientX",a),c=s("clientY",a);if(o(w.elementFromPoint(b,c)))return}var d=ga;h(!0),p(),G(),E(d);var e=g(Z);$=s("pageX",a)-e.left,_=s("pageY",a)-e.top,v.add(ea||Z,"gu-transit"),S(),P(a)}}}function B(a){if(!(ja.dragging&&X||c(a))){for(var b=a;n(a)&&!1===c(n(a));){if(ia.invalid(a,b))return;if(!(a=n(a)))return}var d=n(a);if(d&&!ia.invalid(a,b)){if(ia.moves(a,d,b,q(a)))return{item:a,source:d}}}}function C(a){return!!B(a)}function D(a){var b=B(a);b&&E(b)}function E(a){W(a.item,a.source)&&(ea=a.item.cloneNode(!0),ja.emit("cloned",ea,a.item,"copy")),Y=a.source,Z=a.item,ca=da=q(a.item),ja.dragging=!0,ja.emit("drag",Z,Y)}function F(){return!1}function G(){if(ja.dragging){var a=ea||Z;J(a,n(a))}}function H(){ga=!1,h(!0),p(!0)}function I(a){if(H(),ja.dragging){var b=ea||Z,c=s("clientX",a),d=s("clientY",a),e=i(X,c,d),f=O(e,c,d);f&&(ea&&ia.copySortSource||!ea||f!==Y)?J(b,f):ia.removeOnSpill?K():L()}}function J(a,b){var c=n(a);ea&&ia.copySortSource&&b===Y&&c.removeChild(Z),N(b)?ja.emit("cancel",a,Y,Y):ja.emit("drop",a,b,Y,da),M()}function K(){if(ja.dragging){var a=ea||Z,b=n(a);b&&b.removeChild(a),ja.emit(ea?"cancel":"remove",a,b,Y),M()}}function L(a){if(ja.dragging){var b=arguments.length>0?a:ia.revertOnSpill,c=ea||Z,d=n(c),e=N(d);!1===e&&b&&(ea?d&&d.removeChild(ea):Y.insertBefore(c,ca)),e||b?ja.emit("cancel",c,Y,Y):ja.emit("drop",c,d,Y,da),M()}}function M(){var a=ea||Z;H(),T(),a&&v.rm(a,"gu-transit"),fa&&clearTimeout(fa),ja.dragging=!1,ha&&ja.emit("out",a,ha,Y),ja.emit("dragend",a),Y=Z=ea=ca=da=fa=ha=null}function N(a,b){var c;return c=void 0!==b?b:X?da:q(ea||Z),a===Y&&c===ca}function O(a,b,d){for(var e=a;e&&!function(){if(!1===c(e))return!1;var f=U(e,a),g=V(e,f,b,d);return!!N(e,g)||ia.accepts(Z,e,Y,g)}();)e=n(e);return e}function P(a){function b(a){ja.emit(a,g,ha,Y)}if(X){a.preventDefault();var c=s("clientX",a),d=s("clientY",a),e=c-$,f=d-_;X.style.left=e+"px",X.style.top=f+"px";var g=ea||Z,h=i(X,c,d),j=O(h,c,d),k=null!==j&&j!==ha;(k||null===j)&&(function(){ha&&b("out")}(),ha=j,function(){k&&b("over")}());var l=n(g);if(j===Y&&ea&&!ia.copySortSource)return void(l&&l.removeChild(g));var m,o=U(j,h);if(null!==o)m=V(j,o,c,d);else{if(!0!==ia.revertOnSpill||ea)return void(ea&&l&&l.removeChild(g));m=ca,j=Y}(null===m&&k||m!==g&&m!==q(g))&&(da=m,j.insertBefore(g,m),ja.emit("shadow",g,j,Y))}}function Q(a){v.rm(a,"gu-hide")}function R(a){ja.dragging&&v.add(a,"gu-hide")}function S(){if(!X){var a=Z.getBoundingClientRect();X=Z.cloneNode(!0),X.style.width=l(a)+"px",X.style.height=m(a)+"px",v.rm(X,"gu-transit"),v.add(X,"gu-mirror"),ia.mirrorContainer.appendChild(X),e(x,"add","mousemove",P),v.add(ia.mirrorContainer,"gu-unselectable"),ja.emit("cloned",X,Z,"mirror")}}function T(){X&&(v.rm(ia.mirrorContainer,"gu-unselectable"),e(x,"remove","mousemove",P),n(X).removeChild(X),X=null)}function U(a,b){for(var c=b;c!==a&&n(c)!==a;)c=n(c);return c===x?null:c}function V(a,b,c,d){function e(a){return a?q(b):b}var f="horizontal"===ia.direction;return b!==a?function(){var a=b.getBoundingClientRect();return e(f?c>a.left+l(a)/2:d>a.top+m(a)/2)}():function(){var b,e,g,h=a.children.length;for(b=0;h>b;b++){if(e=a.children[b],g=e.getBoundingClientRect(),f&&g.left+g.width/2>c)return e;if(!f&&g.top+g.height/2>d)return e}return null}()}function W(a,b){return"boolean"==typeof ia.copy?ia.copy:ia.copy(a,b)}1===arguments.length&&!1===Array.isArray(a)&&(b=a,a=[]);var X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha=null,ia=b||{};void 0===ia.moves&&(ia.moves=k),void 0===ia.accepts&&(ia.accepts=k),void 0===ia.invalid&&(ia.invalid=F),void 0===ia.containers&&(ia.containers=a||[]),void 0===ia.isContainer&&(ia.isContainer=j),void 0===ia.copy&&(ia.copy=!1),void 0===ia.copySortSource&&(ia.copySortSource=!1),void 0===ia.revertOnSpill&&(ia.revertOnSpill=!1),void 0===ia.removeOnSpill&&(ia.removeOnSpill=!1),void 0===ia.direction&&(ia.direction="vertical"),void 0===ia.ignoreInputTextSelection&&(ia.ignoreInputTextSelection=!0),void 0===ia.mirrorContainer&&(ia.mirrorContainer=w.body);var ja=t({containers:ia.containers,start:D,end:G,cancel:L,remove:K,destroy:r,canMove:C,dragging:!1});return!0===ia.removeOnSpill&&ja.on("over",Q).on("out",R),d(),ja}function e(a,b,d,e){var f={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},g={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},h={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};c.navigator.pointerEnabled?u[b](a,g[d],e):c.navigator.msPointerEnabled?u[b](a,h[d],e):(u[b](a,f[d],e),u[b](a,d,e))}function f(a){if(void 0!==a.touches)return a.touches.length;if(void 0!==a.which&&0!==a.which)return a.which;if(void 0!==a.buttons)return a.buttons;var b=a.button;return void 0!==b?1&b?1:2&b?3:4&b?2:0:void 0}function g(a){var b=a.getBoundingClientRect();return{left:b.left+h("scrollLeft","pageXOffset"),top:b.top+h("scrollTop","pageYOffset")}}function h(a,b){return void 0!==c[b]?c[b]:x.clientHeight?x[a]:w.body[a]}function i(a,b,c){var d,e=a||{},f=e.className;return e.className+=" gu-hide",d=w.elementFromPoint(b,c),e.className=f,d}function j(){return!1}function k(){return!0}function l(a){return a.width||a.right-a.left}function m(a){return a.height||a.bottom-a.top}function n(a){return a.parentNode===w?null:a.parentNode}function o(a){return"INPUT"===a.tagName||"TEXTAREA"===a.tagName||"SELECT"===a.tagName||p(a)}function p(a){return!!a&&("false"!==a.contentEditable&&("true"===a.contentEditable||p(n(a))))}function q(a){return a.nextElementSibling||function(){var b=a;do{b=b.nextSibling}while(b&&1!==b.nodeType);return b}()}function r(a){return a.targetTouches&&a.targetTouches.length?a.targetTouches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a}function s(a,b){var c=r(b),d={pageX:"clientX",pageY:"clientY"};return a in d&&!(a in c)&&d[a]in c&&(a=d[a]),c[a]}var t=a("contra/emitter"),u=a("crossvent"),v=a("./classes"),w=document,x=w.documentElement;b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(a,b,c){b.exports=function(a,b){return Array.prototype.slice.call(a,b)}},{}],4:[function(a,b,c){"use strict";var d=a("ticky");b.exports=function(a,b,c){a&&d(function(){a.apply(c||null,b||[])})}},{ticky:9}],5:[function(a,b,c){"use strict";var d=a("atoa"),e=a("./debounce");b.exports=function(a,b){var c=b||{},f={};return void 0===a&&(a={}),a.on=function(b,c){return f[b]?f[b].push(c):f[b]=[c],a},a.once=function(b,c){return c._once=!0,a.on(b,c),a},a.off=function(b,c){var d=arguments.length;if(1===d)delete f[b];else if(0===d)f={};else{var e=f[b];if(!e)return a;e.splice(e.indexOf(c),1)}return a},a.emit=function(){var b=d(arguments);return a.emitterSnapshot(b.shift()).apply(this,b)},a.emitterSnapshot=function(b){var g=(f[b]||[]).slice(0);return function(){var f=d(arguments),h=this||a;if("error"===b&&!1!==c.throws&&!g.length)throw 1===f.length?f[0]:f;return g.forEach(function(d){c.async?e(d,f,h):d.apply(h,f),d._once&&a.off(b,d)}),a}},a}},{"./debounce":4,atoa:3}],6:[function(a,b,c){(function(c){"use strict";function d(a,b,c,d){return a.addEventListener(b,c,d)}function e(a,b,c){return a.attachEvent("on"+b,j(a,b,c))}function f(a,b,c,d){return a.removeEventListener(b,c,d)}function g(a,b,c){var d=k(a,b,c);return d?a.detachEvent("on"+b,d):void 0}function h(a,b,c){var d=-1===n.indexOf(b)?function(){return new m(b,{detail:c})}():function(){var a;return o.createEvent?(a=o.createEvent("Event"),a.initEvent(b,!0,!0)):o.createEventObject&&(a=o.createEventObject()),a}();a.dispatchEvent?a.dispatchEvent(d):a.fireEvent("on"+b,d)}function i(a,b,d){return function(b){var e=b||c.event;e.target=e.target||e.srcElement,e.preventDefault=e.preventDefault||function(){e.returnValue=!1},e.stopPropagation=e.stopPropagation||function(){e.cancelBubble=!0},e.which=e.which||e.keyCode,d.call(a,e)}}function j(a,b,c){var d=k(a,b,c)||i(a,b,c);return r.push({wrapper:d,element:a,type:b,fn:c}),d}function k(a,b,c){var d=l(a,b,c);if(d){var e=r[d].wrapper;return r.splice(d,1),e}}function l(a,b,c){var d,e;for(d=0;d<r.length;d++)if(e=r[d],e.element===a&&e.type===b&&e.fn===c)return d}var m=a("custom-event"),n=a("./eventmap"),o=c.document,p=d,q=f,r=[];c.addEventListener||(p=e,q=g),b.exports={add:p,remove:q,fabricate:h}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(a,b,c){(function(a){"use strict";var c=[],d="",e=/^on/;for(d in a)e.test(d)&&c.push(d.slice(2));b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(a,b,c){(function(a){var c=a.CustomEvent;b.exports=function(){try{var a=new c("cat",{detail:{foo:"bar"}});return"cat"===a.type&&"bar"===a.detail.foo}catch(a){}return!1}()?c:"function"==typeof document.createEvent?function(a,b){var c=document.createEvent("CustomEvent");return b?c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail):c.initCustomEvent(a,!1,!1,void 0),c}:function(a,b){var c=document.createEventObject();return c.type=a,b?(c.bubbles=Boolean(b.bubbles),c.cancelable=Boolean(b.cancelable),c.detail=b.detail):(c.bubbles=!1,c.cancelable=!1,c.detail=void 0),c}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(a,b,c){var d;d="function"==typeof setImmediate?function(a){setImmediate(a)}:function(a){setTimeout(a,0)},b.exports=d},{}]},{},[2])(2)}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.returnExportsGlobal=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b,c,d,e,f,g,h,i,j;b=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}/*!@license
Implement Github like autocomplete mentions
http://ichord.github.com/At.js
Copyright (c) 2013 chord.luo@gmail.com
Licensed under the MIT license.
*/
return b.prototype.setPos=function(a){var b,c,d,e;return(e=i.getSelection())&&(d=0,c=!1,(b=function(a,f){var h,i,j,k,l,m;for(l=f.childNodes,m=[],j=0,k=l.length;j<k&&(h=l[j],!c);j++)if(3===h.nodeType){if(d+h.length>=a){c=!0,i=g.createRange(),i.setStart(h,a-d),e.removeAllRanges(),e.addRange(i);break}m.push(d+=h.length)}else m.push(b(a,h));return m})(a,this.domInputor)),this.domInputor},b.prototype.getIEPosition=function(){return this.getPosition()},b.prototype.getPosition=function(){var a,b;return b=this.getOffset(),a=this.$inputor.offset(),b.left-=a.left,b.top-=a.top,b},b.prototype.getOldIEPos=function(){var a,b;return b=g.selection.createRange(),a=g.body.createTextRange(),a.moveToElementText(this.domInputor),a.setEndPoint("EndToEnd",b),a.text.length},b.prototype.getPos=function(){var a,b,c;return(c=this.range())?(a=c.cloneRange(),a.selectNodeContents(this.domInputor),a.setEnd(c.endContainer,c.endOffset),b=a.toString().length,a.detach(),b):g.selection?this.getOldIEPos():void 0},b.prototype.getOldIEOffset=function(){var a,b;return a=g.selection.createRange().duplicate(),a.moveStart("character",-1),b=a.getBoundingClientRect(),{height:b.bottom-b.top,left:b.left,top:b.top}},b.prototype.getOffset=function(b){var c,d,e,f,h;return i.getSelection&&(e=this.range())?(e.endOffset-1>0&&e.endContainer!==this.domInputor&&(c=e.cloneRange(),c.setStart(e.endContainer,e.endOffset-1),c.setEnd(e.endContainer,e.endOffset),f=c.getBoundingClientRect(),d={height:f.height,left:f.left+f.width,top:f.top},c.detach()),d&&0!==(null!=d?d.height:void 0)||(c=e.cloneRange(),h=a(g.createTextNode("|")),c.insertNode(h[0]),c.selectNode(h[0]),f=c.getBoundingClientRect(),d={height:f.height,left:f.left,top:f.top},h.remove(),c.detach())):g.selection&&(d=this.getOldIEOffset()),d&&(d.top+=a(i).scrollTop(),d.left+=a(i).scrollLeft()),d},b.prototype.range=function(){var a;if(i.getSelection)return a=i.getSelection(),a.rangeCount>0?a.getRangeAt(0):null},b}(),c=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.getIEPos=function(){var a,b,c,d,e,f,h;return b=this.domInputor,f=g.selection.createRange(),e=0,f&&f.parentElement()===b&&(d=b.value.replace(/\r\n/g,"\n"),c=d.length,h=b.createTextRange(),h.moveToBookmark(f.getBookmark()),a=b.createTextRange(),a.collapse(!1),e=h.compareEndPoints("StartToEnd",a)>-1?c:-h.moveStart("character",-c)),e},b.prototype.getPos=function(){return g.selection?this.getIEPos():this.domInputor.selectionStart},b.prototype.setPos=function(a){var b,c;return b=this.domInputor,g.selection?(c=b.createTextRange(),c.move("character",a),c.select()):b.setSelectionRange&&b.setSelectionRange(a,a),b},b.prototype.getIEOffset=function(a){var b,c,d,e;return c=this.domInputor.createTextRange(),a||(a=this.getPos()),c.move("character",a),d=c.boundingLeft,e=c.boundingTop,b=c.boundingHeight,{left:d,top:e,height:b}},b.prototype.getOffset=function(b){var c,d,e;return c=this.$inputor,g.selection?(d=this.getIEOffset(b),d.top+=a(i).scrollTop()+c.scrollTop(),d.left+=a(i).scrollLeft()+c.scrollLeft(),d):(d=c.offset(),e=this.getPosition(b),d={left:d.left+e.left-c.scrollLeft(),top:d.top+e.top-c.scrollTop(),height:e.height})},b.prototype.getPosition=function(a){var b,c,e,f,g,h;return b=this.$inputor,e=function(a){return a=a.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"<br/>"),/firefox/i.test(navigator.userAgent)&&(a=a.replace(/\s/g," ")),a},void 0===a&&(a=this.getPos()),h=b.val().slice(0,a),c=b.val().slice(a),f="<span style='position: relative; display: inline;'>"+e(h)+"</span>",f+="<span id='caret' style='position: relative; display: inline;'>|</span>",f+="<span style='position: relative; display: inline;'>"+e(c)+"</span>",g=new d(b),g.create(f).rect()},b.prototype.getIEPosition=function(a){var b,c,d,e,f;return d=this.getIEOffset(a),c=this.$inputor.offset(),e=d.left-c.left,f=d.top-c.top,b=d.height,{left:e,top:f,height:b}},b}(),d=function(){function b(a){this.$inputor=a}return b.prototype.css_attr=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],b.prototype.mirrorCss=function(){var b,c=this;return b={position:"absolute",left:-9999,top:0,zIndex:-2e4},"TEXTAREA"===this.$inputor.prop("tagName")&&this.css_attr.push("width"),a.each(this.css_attr,function(a,d){return b[d]=c.$inputor.css(d)}),b},b.prototype.create=function(b){return this.$mirror=a("<div></div>"),this.$mirror.css(this.mirrorCss()),this.$mirror.html(b),this.$inputor.after(this.$mirror),this},b.prototype.rect=function(){var a,b,c;return a=this.$mirror.find("#caret"),b=a.position(),c={left:b.left,top:b.top,height:a.height()},this.$mirror.remove(),c},b}(),e={contentEditable:function(a){return!(!a[0].contentEditable||"true"!==a[0].contentEditable)}},f={pos:function(a){return a||0===a?this.setPos(a):this.getPos()},position:function(a){return g.selection?this.getIEPosition(a):this.getPosition(a)},offset:function(a){return this.getOffset(a)}},g=null,i=null,h=null,j=function(a){var b;return(b=null!=a?a.iframe:void 0)?(h=b,i=b.contentWindow,g=b.contentDocument||i.document):(h=void 0,i=window,g=document)},a.fn.caret=function(d,g,h){var i;return f[d]?(a.isPlainObject(g)?(j(g),g=void 0):j(h),i=e.contentEditable(this)?new b(this):new c(this),f[d].apply(i,[g])):a.error("Method "+d+" does not exist on jQuery.caret")},a.fn.caret.EditableCaret=b,a.fn.caret.InputCaret=c,a.fn.caret.Utils=e,a.fn.caret.apis=f});