")[0],p=e.each;f.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=f.style.backgroundColor.indexOf("rgba")>-1,p(c,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),u.fn=e.extend(u.prototype,{parse:function(o,r,a,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=e(o).css(r),r=t);var h=this,d=e.type(o),f=this._rgba=[];return r!==t&&(o=[o,r,a,l],d="array"),"string"===d?this.parse(n(o)||s._default):"array"===d?(p(c.rgba.props,function(e,t){f[t.idx]=i(o[t.idx],t)}),this):"object"===d?(p(c,o instanceof u?function(e,t){o[t.cache]&&(h[t.cache]=o[t.cache].slice())}:function(t,n){var s=n.cache;p(n.props,function(e,t){if(!h[s]&&n.to){if("alpha"===e||null==o[e])return;h[s]=n.to(h._rgba)}h[s][t.idx]=i(o[e],t,!0)}),h[s]&&e.inArray(null,h[s].slice(0,3))<0&&(h[s][3]=1,n.from&&(h._rgba=n.from(h[s])))}),this):void 0},is:function(e){var t=u(e),i=!0,n=this;return p(c,function(e,o){var s,r=t[o.cache];return r&&(s=n[o.cache]||o.to&&o.to(n._rgba)||[],p(o.props,function(e,t){if(null!=r[t.idx])return i=r[t.idx]===s[t.idx]})),i}),i},_space:function(){var e=[],t=this;return p(c,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var n=u(e),o=n._space(),s=c[o],r=0===this.alpha()?u("transparent"):this,a=r[s.cache]||s.to(r._rgba),l=a.slice();return n=n[s.cache],p(s.props,function(e,o){var s=o.idx,r=a[s],u=n[s],c=h[o.type]||{};null!==u&&(null===r?l[s]=u:(c.mod&&(u-r>c.mod/2?r+=c.mod:r-u>c.mod/2&&(r-=c.mod)),l[s]=i((u-r)*t+r,o)))}),this[o](l)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=u(t)._rgba;return u(e.map(i,function(e,t){return(1-n)*o[t]+n*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,o=e[1]/255,s=e[2]/255,r=e[3],a=Math.max(n,o,s),l=Math.min(n,o,s),u=a-l,c=a+l,h=.5*c;return t=l===a?0:n===a?60*(o-s)/u+360:o===a?60*(s-n)/u+120:60*(n-o)/u+240,i=0===u?0:h<=.5?u/c:u/(2-c),[Math.round(t)%360,i,h,null==r?1:r]},c.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],r=n<=.5?n*(1+i):n+i-n*i,a=2*n-r;return[Math.round(255*o(a,r,t+1/3)),Math.round(255*o(a,r,t)),Math.round(255*o(a,r,t-1/3)),s]},p(c,function(n,o){var s=o.props,r=o.cache,l=o.to,c=o.from;u.fn[n]=function(n){if(l&&!this[r]&&(this[r]=l(this._rgba)),n===t)return this[r].slice();var o,a=e.type(n),h="array"===a||"object"===a?n:arguments,d=this[r].slice();return p(s,function(e,t){var n=h["object"===a?e:t.idx];null==n&&(n=d[t.idx]),d[t.idx]=i(n,t)}),c?((o=u(c(d)))[r]=d,o):u(d)},p(s,function(t,i){u.fn[t]||(u.fn[t]=function(o){var s,r=e.type(o),l="alpha"===t?this._hsla?"hsla":"rgba":n,u=this[l](),c=u[i.idx];return"undefined"===r?c:("function"===r&&(o=o.call(this,c),r=e.type(o)),null==o&&i.empty?this:("string"===r&&(s=a.exec(o))&&(o=c+parseFloat(s[2])*("+"===s[1]?1:-1)),u[i.idx]=o,this[l](u)))})})}),u.hook=function(t){var i=t.split(" ");p(i,function(t,i){e.cssHooks[i]={set:function(t,o){var s,r,a="";if("transparent"!==o&&("string"!==e.type(o)||(s=n(o)))){if(o=u(s||o),!d.rgba&&1!==o._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===a||"transparent"===a)&&r&&r.style;)try{a=e.css(r,"backgroundColor"),r=r.parentNode}catch(l){}o=o.blend(a&&"transparent"!==a?a:"_default")}o=o.toRgbaString()}try{t.style[i]=o}catch(l){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=u(t.elem,i),t.end=u(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},u.hook(r),e.cssHooks.borderColor={expand:function(e){var t={};return p(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},s=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(s),function(){function t(t){var i,n,o=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)"string"==typeof o[i=o[n]]&&(s[e.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(s[i]=o[i]);return s}function i(t,i){var n,o,s={};for(n in i)o=i[n],t[n]!==o&&(r[n]||!e.fx.step[n]&&isNaN(parseFloat(o))||(s[n]=o));return s}var n,o=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(s.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(n,s,r,a){var l=e.speed(s,r,a);return this.queue(function(){var s,r=e(this),a=r.attr("class")||"",u=l.children?r.find("*").addBack():r;u=u.map(function(){return{el:e(this),start:t(this)}}),(s=function(){e.each(o,function(e,t){n[t]&&r[t+"Class"](n[t])})})(),u=u.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),r.attr("class",a),u=u.map(function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()}),e.when.apply(e,u.get()).done(function(){s(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(r[0])})})},e.fn.extend({addClass:(n=e.fn.addClass,function(t,i,o,s){return i?e.effects.animateClass.call(this,{add:t},i,o,s):n.apply(this,arguments)}),removeClass:function(t){return function(i,n,o,s){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,o,s):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,o,s,r){return"boolean"==typeof n||n===undefined?o?e.effects.animateClass.call(this,n?{add:i}:{remove:i},o,s,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,o,s)}}(e.fn.toggleClass),switchClass:function(t,i,n,o,s){return e.effects.animateClass.call(this,{add:i,remove:t},n,o,s)}})}(),function(){function t(t,i,n,o){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(o=n,n=i,i={}),e.isFunction(n)&&(o=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=o||i.complete,t}function s(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||(!!e.isFunction(t)||"object"==typeof t&&!t.effect))}function r(e,t){var i=t.outerWidth(),n=t.outerHeight(),o=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?n:parseFloat(o[3]),left:parseFloat(o[4])||0}}var a;e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=(a=e.expr.filters.animated,function(t){return!!e(t).data(o)||a(t)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var n=0,o=t.length;n").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(r){s=document.body}return t.wrap(n),(t[0]===s||e.contains(t[0],s))&&e(s).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(o),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,o="vertical"!==i?(t||100)/100:1;return{height:e.height()*o,width:e.width()*n,outerHeight:e.outerHeight()*o,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(n,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(n)||"",e.removeData(n)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var n,o=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(o)&&(o="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(i+"placeholder",n)),t.css({position:o,left:s.left,top:s.top}),n},removePlaceholder:function(e){var t=i+"placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,o){return o=o||{},e.each(i,function(e,i){var s=t.cssUnit(i);s[0]>0&&(o[i]=s[0]*n+s[1])}),o}}),e.fn.extend({effect:function(){function i(t){function i(){l.removeData(o),e.effects.cleanUp(l),"hide"===n.mode&&l.hide(),a()}function a(){e.isFunction(u)&&u.call(l[0]),e.isFunction(t)&&t()}var l=e(this);n.mode=h.shift(),!1===e.uiBackCompat||r?"none"===n.mode?(l[c](),a()):s.call(l[0],n,i):(l.is(":hidden")?"hide"===c:"show"===c)?(l[c](),a()):s.call(l[0],n,a)}var n=t.apply(this,arguments),s=e.effects.effect[n.effect],r=s.mode,a=n.queue,l=a||"fx",u=n.complete,c=n.mode,h=[],d=function(t){var i=e(this),n=e.effects.mode(i,c)||r;i.data(o,!0),h.push(n),r&&("show"===n||n===r&&"hide"===n)&&i.show(),r&&"none"===n||e.effects.saveStyle(i),e.isFunction(t)&&t()};return e.fx.off||!s?c?this[c](n.duration,u):this.each(function(){u&&u.call(this)}):!1===a?this.each(d).each(i):this.queue(l,d).queue(l,i)},show:function(e){return function(i){if(s(i))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(i){if(s(i))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(i){if(s(i)||"boolean"==typeof i)return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var n=e(this),o=e(t.to),s="fixed"===o.css("position"),r=e("body"),a=s?r.scrollTop():0,l=s?r.scrollLeft():0,u=o.offset(),c={top:u.top-a,left:u.left-l,height:o.innerHeight(),width:o.innerWidth()},h=n.offset(),d=e("

").appendTo("body").addClass(t.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(c,t.duration,t.easing,function(){d.remove(),e.isFunction(i)&&i()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=r(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}}),e.effects}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("blind","hide",function(t,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=e(this),s=t.direction||"up",r=o.cssClip(),a={clip:e.extend({},r)},l=e.effects.createPlaceholder(o);a.clip[n[s][0]]=a.clip[n[s][1]],"show"===t.mode&&(o.cssClip(a.clip),l&&l.css(e.effects.clipToBox(a)),a.clip=r),l&&l.animate(e.effects.clipToBox(a),t.duration,t.easing),o.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("bounce",function(t,i){var n,o,s,r=e(this),a=t.mode,l="hide"===a,u="show"===a,c=t.direction||"up",h=t.distance,d=t.times||5,f=2*d+(u||l?1:0),p=t.duration/f,m=t.easing,g="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,b=0,y=r.queue().length;for(e.effects.createPlaceholder(r),s=r.css(g),h||(h=r["top"===g?"outerHeight":"outerWidth"]()/3),u&&((o={opacity:1})[g]=s,r.css("opacity",0).css(g,v?2*-h:2*h).animate(o,p,m)),l&&(h/=Math.pow(2,d-1)),(o={})[g]=s;b").css({position:"absolute",visibility:"visible",left:-r*g,top:-s*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:v,left:a+(p?u*g:0),top:l+(p?c*v:0),opacity:p?0:1}).animate({left:a+(p?0:u*g),top:l+(p?0:c*v),opacity:p?1:0},t.duration||500,t.easing,n)})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("fade","toggle",function(t,i){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("fold","hide",function(t,i){var n=e(this),o=t.mode,s="show"===o,r="hide"===o,a=t.size||15,l=/([0-9]+)%/.exec(a),u=!!t.horizFirst?["right","bottom"]:["bottom","right"],c=t.duration/2,h=e.effects.createPlaceholder(n),d=n.cssClip(),f={clip:e.extend({},d)},p={clip:e.extend({},d)},m=[d[u[0]],d[u[1]]],g=n.queue().length;l&&(a=parseInt(l[1],10)/100*m[r?0:1]),f.clip[u[0]]=a,p.clip[u[0]]=a,p.clip[u[1]]=0,s&&(n.cssClip(p.clip),h&&h.css(e.effects.clipToBox(p)),p.clip=d),n.queue(function(i){h&&h.animate(e.effects.clipToBox(f),c,t.easing).animate(e.effects.clipToBox(p),c,t.easing),i()}).animate(f,c,t.easing).animate(p,c,t.easing).queue(i),e.effects.unshift(n,g,4)})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("highlight","show",function(t,i){var n=e(this),o={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(o.opacity=0),e.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("size",function(t,i){var n,o,s,r=e(this),a=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=t.mode,h="effect"!==c,d=t.scale||"both",f=t.origin||["middle","center"],p=r.css("position"),m=r.position(),g=e.effects.scaledDimensions(r),v=t.from||g,b=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===c&&(s=v,v=b,b=s),o={from:{y:v.height/g.height,x:v.width/g.width},to:{y:b.height/g.height,x:b.width/g.width}},"box"!==d&&"both"!==d||(o.from.y!==o.to.y&&(v=e.effects.setTransition(r,l,o.from.y,v),b=e.effects.setTransition(r,l,o.to.y,b)),o.from.x!==o.to.x&&(v=e.effects.setTransition(r,u,o.from.x,v),b=e.effects.setTransition(r,u,o.to.x,b))),"content"!==d&&"both"!==d||o.from.y!==o.to.y&&(v=e.effects.setTransition(r,a,o.from.y,v),b=e.effects.setTransition(r,a,o.to.y,b)),f&&(n=e.effects.getBaseline(f,g),v.top=(g.outerHeight-v.outerHeight)*n.y+m.top,v.left=(g.outerWidth-v.outerWidth)*n.x+m.left,b.top=(g.outerHeight-b.outerHeight)*n.y+m.top,b.left=(g.outerWidth-b.outerWidth)*n.x+m.left),r.css(v),"content"!==d&&"both"!==d||(l=l.concat(["marginTop","marginBottom"]).concat(a),u=u.concat(["marginLeft","marginRight"]),r.find("*[width]").each(function(){var i=e(this),n=e.effects.scaledDimensions(i),s={height:n.height*o.from.y,width:n.width*o.from.x,outerHeight:n.outerHeight*o.from.y,outerWidth:n.outerWidth*o.from.x},r={height:n.height*o.to.y,width:n.width*o.to.x,outerHeight:n.height*o.to.y,outerWidth:n.width*o.to.x};o.from.y!==o.to.y&&(s=e.effects.setTransition(i,l,o.from.y,s),r=e.effects.setTransition(i,l,o.to.y,r)),o.from.x!==o.to.x&&(s=e.effects.setTransition(i,u,o.from.x,s),r=e.effects.setTransition(i,u,o.to.x,r)),h&&e.effects.saveStyle(i),i.css(s),i.animate(r,t.duration,t.easing,function(){h&&e.effects.restoreStyle(i)})})),r.animate(b,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===b.opacity&&r.css("opacity",v.opacity),h||(r.css("position","static"===p?"relative":p).offset(t),e.effects.saveStyle(r)),i()}})})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-size"],e):e(jQuery)}(function(e){return e.effects.define("scale",function(t,i){var n=e(this),o=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==o?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(n),to:e.effects.scaledDimensions(n,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,i)})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-scale"],e):e(jQuery)}(function(e){return e.effects.define("puff","hide",function(t,i){var n=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,n,i)})}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(e){return e.effects.define("pulsate","show",function(t,i){var n=e(this),o=t.mode,s="show"===o,r=s||"hide"===o,a=2*(t.times||5)+(r?1:0),l=t.duration/a,u=0,c=1,h=n.queue().length;for(!s&&n.is(":visible")||(n.css("opacity",0).show(),u=1);c'),c='';l===t||a===t||i.isCrossDomain(o)||(c+=''),r&&u.attr("target",r),u.hide().append(c).appendTo("body"),u.submit()},formElements:function(t,i){return t.is("form")?e(t[0].elements).filter(i):t.find(i)},disableFormElements:function(t){i.formElements(t,i.disableSelector).each(function(){i.disableFormElement(e(this))})},disableFormElement:function(e){var i,n;i=e.is("button")?"html":"val",n=e.data("disable-with"),e.data("ujs:enable-with",e[i]()),n!==t&&e[i](n),e.prop("disabled",!0)},enableFormElements:function(t){i.formElements(t,i.enableSelector).each(function(){i.enableFormElement(e(this))})},enableFormElement:function(e){var t=e.is("button")?"html":"val";e.data("ujs:enable-with")&&e[t](e.data("ujs:enable-with")),e.prop("disabled",!1)},allowAction:function(e){var t,n=e.data("confirm"),o=!1;return!n||(i.fire(e,"confirm")&&(o=i.confirm(n),t=i.fire(e,"confirm:complete",[o])),o&&t)},blankInputs:function(t,i,n){var o,s=e(),r=i||"input,textarea",a=t.find(r);return a.each(function(){if(o=e(this),!(o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):o.val())==!n){if(o.is("input[type=radio]")&&a.filter('input[type=radio]:checked[name="'+o.attr("name")+'"]').length)return!0;s=s.add(o)}}),!!s.length&&s},nonBlankInputs:function(e,t){return i.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var n=e.data("disable-with");e.data("ujs:enable-with",e.html()),n!==t&&e.html(n),e.bind("click.railsDisable",function(e){return i.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable")}},i.fire(n,"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,n){e.crossDomain||i.CSRFProtection(n)}),n.delegate(i.linkDisableSelector,"ajax:complete",function(){i.enableElement(e(this))}),n.delegate(i.buttonDisableSelector,"ajax:complete",function(){i.enableFormElement(e(this))}),n.delegate(i.linkClickSelector,"click.rails",function(n){var o=e(this),s=o.data("method"),r=o.data("params"),a=n.metaKey||n.ctrlKey;if(!i.allowAction(o))return i.stopEverything(n);if(!a&&o.is(i.linkDisableSelector)&&i.disableElement(o),o.data("remote")!==t){if(a&&(!s||"GET"===s)&&!r)return!0;var l=i.handleRemote(o);return!1===l?i.enableElement(o):l.error(function(){i.enableElement(o)}),!1}return o.data("method")?(i.handleMethod(o),!1):void 0}),n.delegate(i.buttonClickSelector,"click.rails",function(t){var n=e(this);if(!i.allowAction(n))return i.stopEverything(t);n.is(i.buttonDisableSelector)&&i.disableFormElement(n);var o=i.handleRemote(n);return!1===o?i.enableFormElement(n):o.error(function(){i.enableFormElement(n)}),!1}),n.delegate(i.inputChangeSelector,"change.rails",function(t){var n=e(this);return i.allowAction(n)?(i.handleRemote(n),!1):i.stopEverything(t)}),n.delegate(i.formSubmitSelector,"submit.rails",function(n){var o,s,r=e(this),a=r.data("remote")!==t;if(!i.allowAction(r))return i.stopEverything(n);if(r.attr("novalidate")==t&&(o=i.blankInputs(r,i.requiredInputSelector))&&i.fire(r,"ajax:aborted:required",[o]))return i.stopEverything(n);if(a){if(s=i.nonBlankInputs(r,i.fileInputSelector)){setTimeout(function(){i.disableFormElements(r)},13);var l=i.fire(r,"ajax:aborted:file",[s]);return l||setTimeout(function(){i.enableFormElements(r)},13),l}return i.handleRemote(r),!1}setTimeout(function(){i.disableFormElements(r)},13)}),n.delegate(i.formInputClickSelector,"click.rails",function(t){var n=e(this);if(!i.allowAction(n))return i.stopEverything(t);var o=n.attr("name"),s=o?{name:o,value:n.val()}:null;n.closest("form").data("ujs:submit-button",s)}),n.delegate(i.formSubmitSelector,"ajax:send.rails",function(t){this==t.target&&i.disableFormElements(e(this))}),n.delegate(i.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&i.enableFormElements(e(this))}),e(function(){i.refreshCSRFTokens()}))}(jQuery),function(e){"use strict";e.ajaxPrefilter(function(e){if(e.iframe)return e.originalURL=e.url,"iframe"}),e.ajaxTransport("iframe",function(t,i){function n(){a.each(function(t,i){var n=e(i);n.data("clone").replaceWith(n)}),o.remove(),s.one("load",function(){s.remove()}),s.attr("src","about:blank")}var o=null,s=null,r="iframe-"+e.now(),a=e(t.files).filter(":file:enabled"),l=null;if(t.dataTypes.shift(),t.data=i.data,a.length)return o=e("
").hide().attr({action:t.originalURL,target:r}),"string"==typeof t.data&&t.data.length>0&&e.error("data must not be serialized"),e.each(t.data||{},function(t,i){e.isPlainObject(i)&&(t=i.name,i=i.value),e("").attr({name:t,value:i}).appendTo(o)}),e("").appendTo(o),l=t.dataTypes[0]&&t.accepts[t.dataTypes[0]]?t.accepts[t.dataTypes[0]]+("*"!==t.dataTypes[0]?", */*; q=0.01":""):t.accepts["*"],e("").attr("value",l).appendTo(o),a.after(function(){var t=e(this),i=t.clone().prop("disabled",!0);return t.data("clone",i),i}).next(),a.appendTo(o),{send:function(t,i){(s=e("