You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
29 KiB
Plaintext

11 months ago
/*! jQuery UI - v1.12.1 - 2017-11-15
* http://jqueryui.com
* Includes: effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(d){d.ui=d.ui||{};var c=d.ui.version="1.12.1";
/*!
* jQuery UI Effects 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var k="ui-effects-",e="ui-effects-style",p="ui-effects-animated",i=d;d.effects={effect:{}};
/*!
* jQuery Color Animations v2.1.2
* https://github.com/jquery/jquery-color
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* Date: Wed Jan 16 08:47:09 2013 -0600
*/
(function(K,z){var G="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",D=/^([\-+])=\s*(\d+\.?\d*)/,C=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(L){return[L[1],L[2],L[3],L[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(L){return[L[1]*2.55,L[2]*2.55,L[3]*2.55,L[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(L){return[parseInt(L[1],16),parseInt(L[2],16),parseInt(L[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(L){return[parseInt(L[1]+L[1],16),parseInt(L[2]+L[2],16),parseInt(L[3]+L[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(L){return[L[1],L[2]/100,L[3]/100,L[4]]}}],A=K.Color=function(M,N,L,O){return new K.Color.fn.parse(M,N,L,O)},F={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},J={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},I=A.support={},x=K("<p>")[0],w,H=K.each;x.style.cssText="background-color:rgba(1,1,1,.5)";I.rgba=x.style.backgroundColor.indexOf("rgba")>-1;H(F,function(L,M){M.cache="_"+L;M.props.alpha={idx:3,type:"percent",def:1}});function E(M,O,N){var L=J[O.type]||{};if(M==null){return(N||!O.def)?null:O.def}M=L.floor?~~M:parseFloat(M);if(isNaN(M)){return O.def}if(L.mod){return(M+L.mod)%L.mod}return 0>M?0:L.max<M?L.max:M}function B(L){var N=A(),M=N._rgba=[];L=L.toLowerCase();H(C,function(S,T){var Q,R=T.re.exec(L),P=R&&T.parse(R),O=T.space||"rgba";if(P){Q=N[O](P);N[F[O].cache]=Q[F[O].cache];M=N._rgba=Q._rgba;return false}});if(M.length){if(M.join()==="0,0,0,0"){K.extend(M,w.transparent)}return N}return w[L]}A.fn=K.extend(A.prototype,{parse:function(R,P,L,Q){if(R===z){this._rgba=[null,null,null,null];return this}if(R.jquery||R.nodeType){R=K(R).css(P);P=z}var O=this,N=K.type(R),M=this._rgba=[];if(P!==z){R=[R,P,L,Q];N="array"}if(N==="string"){return this.parse(B(R)||w._default)}if(N==="array"){H(F.rgba.props,function(S,T){M[T.idx]=E(R[T.idx],T)});return this}if(N==="object"){if(R instanceof A){H(F,function(S,T){if(R[T.cache]){O[T.cache]=R[T.cache].slice()}})}else{H(F,function(T,U){var S=U.cache;H(U.props,function(V,W){if(!O[S]&&U.to){if(V==="alpha"||R[V]==null){return}O[S]=U.to(O._rgba)}O[S][W.idx]=E(R[V],W,true)});if(O[S]&&K.inArray(null,O[S].slice(0,3))<0){O[S][3]=1;if(U.from){O._rgba=U.from(O[S])}}})}return this}},is:function(N){var L=A(N),O=true,M=this;H(F,function(P,R){var S,Q=L[R.cache];if(Q){S=M[R.cache]||R.to&&R.to(M._rgba)||[];H(R.props,function(T,U){if(Q[U.idx]!=null){O=(Q[U.idx]===S[U.idx]);return O}})}return O});return O},_space:function(){var L=[],M=this;H(F,function(N,O){if(M[O.cache]){L.push(N)}});return L.pop()},transition:function(M,S){var N=A(M),O=N._space(),P=F[O],Q=this.alpha()===0?A("transparent"):this,R=Q[P.cache]||P.to(Q._rgba),L=R.slice();N=N[P.cache];H(P.props,function(W,Y){var V=Y.idx,U=R[V],T=N[V],X=J[Y.type]||{};if(T===null){return}if(U===null){L[V]=T}else{if(X.mod){if(T-U>X.mod/2){U+=X.mod}else{if(U-T>X.mod/2){U-=X.mod}}}L[V]=E((T-U)*S+U,Y)}});return this[O](L)},blend:function(O){if(this._rgba[3]===1){return this}var N=this._rgba.slice(),M=N.pop(),L=A(O)._rgba;return A(K.map(N,function(P,Q){return(1-M)*L[Q]+M*P}))},toRgbaString:function(){var M="rgba(",L=K.map(this._rgba,function(N,O){return N==null?(O>2?1:0):N});if(L[3]===1){L.pop();M="rgb("}return M+L.join()+")"},toHslaString:function(){var M="hsla(",L=K.map(this.hsla(),function(N,O){if(N==null){N=O>2?1:0}if(O&&O<3){N=Math.round(N*100)+"%"}return N});if(L[3]===1){L.pop();M="hsl("}return M+L.join()+")"},toHexString:function(L){var M=this._rgba.slice(),N=M.pop();if(L){M.push(~~(N*255))}return"#"+K.map(M,function(O){O=(O||0).toString(16);return O.length===1?"0"+O:O}).jo
/*!
* jQuery UI Effects Blind 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var h=d.effects.define("blind","hide",function(y,w){var B={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},z=d(this),A=y.direction||"up",D=z.cssClip(),x={clip:d.extend({},D)},C=d.effects.createPlaceholder(z);x.clip[B[A][0]]=x.clip[B[A][1]];if(y.mode==="show"){z.cssClip(x.clip);if(C){C.css(d.effects.clipToBox(x))}x.clip=D}if(C){C.animate(d.effects.clipToBox(x),y.duration,y.easing)}z.animate(x,{queue:false,duration:y.duration,easing:y.easing,complete:w})});
/*!
* jQuery UI Effects Bounce 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var q=d.effects.define("bounce",function(x,E){var A,I,L,w=d(this),D=x.mode,C=D==="hide",M=D==="show",N=x.direction||"up",y=x.distance,B=x.times||5,O=B*2+(M||C?1:0),K=x.duration/O,G=x.easing,z=(N==="up"||N==="down")?"top":"left",F=(N==="up"||N==="left"),J=0,H=w.queue().length;d.effects.createPlaceholder(w);L=w.css(z);if(!y){y=w[z==="top"?"outerHeight":"outerWidth"]()/3}if(M){I={opacity:1};I[z]=L;w.css("opacity",0).css(z,F?-y*2:y*2).animate(I,K,G)}if(C){y=y/Math.pow(2,B-1)}I={};I[z]=L;for(;J<B;J++){A={};A[z]=(F?"-=":"+=")+y;w.animate(A,K,G).animate(I,K,G);y=C?y*2:y/2}if(C){A={opacity:0};A[z]=(F?"-=":"+=")+y;w.animate(A,K,G)}w.queue(E);d.effects.unshift(w,H,O+1)});
/*!
* jQuery UI Effects Clip 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var v=d.effects.define("clip","hide",function(E,A){var x,y={},B=d(this),D=E.direction||"vertical",C=D==="both",w=C||D==="horizontal",z=C||D==="vertical";x=B.cssClip();y.clip={top:z?(x.bottom-x.top)/2:x.top,right:w?(x.right-x.left)/2:x.right,bottom:z?(x.bottom-x.top)/2:x.bottom,left:w?(x.right-x.left)/2:x.left};d.effects.createPlaceholder(B);if(E.mode==="show"){B.cssClip(y.clip);y.clip=x}B.animate(y,{queue:false,duration:E.duration,easing:E.easing,complete:A})});
/*!
* jQuery UI Effects Drop 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var g=d.effects.define("drop","hide",function(G,z){var w,A=d(this),C=G.mode,E=C==="show",D=G.direction||"left",x=(D==="up"||D==="down")?"top":"left",F=(D==="up"||D==="left")?"-=":"+=",B=(F==="+=")?"-=":"+=",y={opacity:0};d.effects.createPlaceholder(A);w=G.distance||A[x==="top"?"outerHeight":"outerWidth"](true)/2;y[x]=F+w;if(E){A.css(y);y[x]=B+w;y.opacity=1}A.animate(y,{queue:false,duration:G.duration,easing:G.easing,complete:z})});
/*!
* jQuery UI Effects Explode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var b=d.effects.define("explode","hide",function(x,J){var M,L,z,H,G,E,D=x.pieces?Math.round(Math.sqrt(x.pieces)):3,y=D,w=d(this),F=x.mode,N=F==="show",B=w.show().css("visibility","hidden").offset(),K=Math.ceil(w.outerWidth()/y),I=Math.ceil(w.outerHeight()/D),C=[];function O(){C.push(this);if(C.length===D*y){A()}}for(M=0;M<D;M++){H=B.top+M*I;E=M-(D-1)/2;for(L=0;L<y;L++){z=B.left+L*K;G=L-(y-1)/2;w.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-L*K,top:-M*I}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:K,height:I,left:z+(N?G*K:0),top:H+(N?E*I:0),opacity:N?0:1}).animate({left:z+(N?0:G*K),top:H+(N?0:E*I),opacity:N?1:0},x.duration||500,x.easing,O)}}function A(){w.css({visibility:"visible"});d(C).remove();J()}});
/*!
* jQuery UI Effects Fade 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var s=d.effects.define("fade","toggle",function(y,x){var w=y.mode==="show";d(this).css("opacity",w?0:1).animate({opacity:w?1:0},{queue:false,duration:y.duration,easing:y.easing,complete:x})});
/*!
* jQuery UI Effects Fold 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var f=d.effects.define("fold","hide",function(M,B){var C=d(this),D=M.mode,J=D==="show",E=D==="hide",L=M.size||15,F=/([0-9]+)%/.exec(L),K=!!M.horizFirst,z=K?["right","bottom"]:["bottom","right"],A=M.duration/2,I=d.effects.createPlaceholder(C),x=C.cssClip(),H={clip:d.extend({},x)},G={clip:d.extend({},x)},w=[x[z[0]],x[z[1]]],y=C.queue().length;if(F){L=parseInt(F[1],10)/100*w[E?0:1]}H.clip[z[0]]=L;G.clip[z[0]]=L;G.clip[z[1]]=0;if(J){C.cssClip(G.clip);if(I){I.css(d.effects.clipToBox(G))}G.clip=x}C.queue(function(N){if(I){I.animate(d.effects.clipToBox(H),A,M.easing).animate(d.effects.clipToBox(G),A,M.easing)}N()}).animate(H,A,M.easing).animate(G,A,M.easing).queue(B);d.effects.unshift(C,y,4)});
/*!
* jQuery UI Effects Highlight 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var r=d.effects.define("highlight","show",function(x,w){var y=d(this),z={backgroundColor:y.css("backgroundColor")};if(x.mode==="hide"){z.opacity=0}d.effects.saveStyle(y);y.css({backgroundImage:"none",backgroundColor:x.color||"#ffff99"}).animate(z,{queue:false,duration:x.duration,easing:x.easing,complete:w})});
/*!
* jQuery UI Effects Size 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var n=d.effects.define("size",function(z,F){var D,E,J,w=d(this),B=["fontSize"],K=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],y=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],C=z.mode,I=C!=="effect",N=z.scale||"both",L=z.origin||["middle","center"],M=w.css("position"),A=w.position(),G=d.effects.scaledDimensions(w),H=z.from||G,x=z.to||d.effects.scaledDimensions(w,0);d.effects.createPlaceholder(w);if(C==="show"){J=H;H=x;x=J}E={from:{y:H.height/G.height,x:H.width/G.width},to:{y:x.height/G.height,x:x.width/G.width}};if(N==="box"||N==="both"){if(E.from.y!==E.to.y){H=d.effects.setTransition(w,K,E.from.y,H);x=d.effects.setTransition(w,K,E.to.y,x)}if(E.from.x!==E.to.x){H=d.effects.setTransition(w,y,E.from.x,H);x=d.effects.setTransition(w,y,E.to.x,x)}}if(N==="content"||N==="both"){if(E.from.y!==E.to.y){H=d.effects.setTransition(w,B,E.from.y,H);x=d.effects.setTransition(w,B,E.to.y,x)}}if(L){D=d.effects.getBaseline(L,G);H.top=(G.outerHeight-H.outerHeight)*D.y+A.top;H.left=(G.outerWidth-H.outerWidth)*D.x+A.left;x.top=(G.outerHeight-x.outerHeight)*D.y+A.top;x.left=(G.outerWidth-x.outerWidth)*D.x+A.left}w.css(H);if(N==="content"||N==="both"){K=K.concat(["marginTop","marginBottom"]).concat(B);y=y.concat(["marginLeft","marginRight"]);w.find("*[width]").each(function(){var R=d(this),O=d.effects.scaledDimensions(R),Q={height:O.height*E.from.y,width:O.width*E.from.x,outerHeight:O.outerHeight*E.from.y,outerWidth:O.outerWidth*E.from.x},P={height:O.height*E.to.y,width:O.width*E.to.x,outerHeight:O.height*E.to.y,outerWidth:O.width*E.to.x};if(E.from.y!==E.to.y){Q=d.effects.setTransition(R,K,E.from.y,Q);P=d.effects.setTransition(R,K,E.to.y,P)}if(E.from.x!==E.to.x){Q=d.effects.setTransition(R,y,E.from.x,Q);P=d.effects.setTransition(R,y,E.to.x,P)}if(I){d.effects.saveStyle(R)}R.css(Q);R.animate(P,z.duration,z.easing,function(){if(I){d.effects.restoreStyle(R)}})})}w.animate(x,{queue:false,duration:z.duration,easing:z.easing,complete:function(){var O=w.offset();if(x.opacity===0){w.css("opacity",H.opacity)}if(!I){w.css("position",M==="static"?"relative":M).offset(O);d.effects.saveStyle(w)}F()}})});
/*!
* jQuery UI Effects Scale 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var j=d.effects.define("scale",function(x,w){var y=d(this),B=x.mode,z=parseInt(x.percent,10)||(parseInt(x.percent,10)===0?0:(B!=="effect"?0:100)),A=d.extend(true,{from:d.effects.scaledDimensions(y),to:d.effects.scaledDimensions(y,z,x.direction||"both"),origin:x.origin||["middle","center"]},x);if(x.fade){A.from.opacity=1;A.to.opacity=0}d.effects.effect.size.call(this,A,w)});
/*!
* jQuery UI Effects Puff 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var a=d.effects.define("puff","hide",function(x,w){var y=d.extend(true,{},x,{fade:true,percent:parseInt(x.percent,10)||150});d.effects.effect.scale.call(this,y,w)});
/*!
* jQuery UI Effects Pulsate 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var o=d.effects.define("pulsate","show",function(H,y){var A=d(this),B=H.mode,F=B==="show",C=B==="hide",G=F||C,D=((H.times||5)*2)+(G?1:0),x=H.duration/D,E=0,z=1,w=A.queue().length;if(F||!A.is(":visible")){A.css("opacity",0).show();E=1}for(;z<D;z++){A.animate({opacity:E},x,H.easing);E=1-E}A.animate({opacity:E},x,H.easing);A.queue(y);d.effects.unshift(A,w,D+1)});
/*!
* jQuery UI Effects Shake 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var u=d.effects.define("shake",function(K,D){var E=1,F=d(this),H=K.direction||"left",w=K.distance||20,x=K.times||3,I=x*2+1,B=Math.round(K.duration/I),A=(H==="up"||H==="down")?"top":"left",y=(H==="up"||H==="left"),C={},J={},G={},z=F.queue().length;d.effects.createPlaceholder(F);C[A]=(y?"-=":"+=")+w;J[A]=(y?"+=":"-=")+w*2;G[A]=(y?"-=":"+=")+w*2;F.animate(C,B,K.easing);for(;E<x;E++){F.animate(J,B,K.easing).animate(G,B,K.easing)}F.animate(J,B,K.easing).animate(C,B/2,K.easing).queue(D);d.effects.unshift(F,z,I+1)});
/*!
* jQuery UI Effects Slide 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var l=d.effects.define("slide","show",function(H,D){var A,x,E=d(this),y={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},F=H.mode,G=H.direction||"left",B=(G==="up"||G==="down")?"top":"left",z=(G==="up"||G==="left"),w=H.distance||E[B==="top"?"outerHeight":"outerWidth"](true),C={};d.effects.createPlaceholder(E);A=E.cssClip();x=E.position()[B];C[B]=(z?-1:1)*w+x;C.clip=E.cssClip();C.clip[y[G][1]]=C.clip[y[G][0]];if(F==="show"){E.cssClip(C.clip);E.css(B,C[B]);C.clip=A;C[B]=x}E.animate(C,{queue:false,duration:H.duration,easing:H.easing,complete:D})});
/*!
* jQuery UI Effects Transfer 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var m;if(d.uiBackCompat!==false){m=d.effects.define("transfer",function(x,w){d(this).transfer(x,w)})}var t=m}));