Commit 4ec6b09cc39410df3cac48fe94007d80610403d7

Authored by Leandro Santos
1 parent 204606ab

adding jquery-ui Blind Effect for display category content

index.html
... ... @@ -30,6 +30,7 @@
30 30 function loadCSSFiles(){
31 31 var css_files = [
32 32 'css/bootstrap.min.css',
  33 + 'css/hover.custom.css',
33 34 'http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css',
34 35 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,700',
35 36 'http://fonts.googleapis.com/css?family=Asap:400,700',
... ... @@ -123,7 +124,7 @@
123 124 <div id="proposal-categories-container">
124 125 {{#each article.categories}}
125 126 <li id='proposal-category-{{slug}}' class="proposal-category" data-category="{{slug}}">
126   - <a href="#/temas/{{slug}}/{{id}}" class="proposal-link" data-target="proposal-item-{{id}}">{{name}}</a>
  127 + <a href="#/temas/{{slug}}/{{id}}" class="proposal-link hvr-float-shadow" data-target="proposal-item-{{id}}">{{name}}</a>
127 128 <div class="arrow-box" style="display: none"></div>
128 129 </li>
129 130 {{/each}}
... ... @@ -234,7 +235,7 @@
234 235 <div class='send-experience-button send-button'><a href='#'><span>Envie Sua Experiência</span></a></div>
235 236 <div class="login-container hide">Login</div>
236 237 <form class='make-experience-form save-article-form hide' id='make-experience-form-{{id}}'>
237   - <div class="message"></div>
  238 + <div class="message hide"></div>
238 239 <div>
239 240 <div><label for="article_abstract">Descrição</label></div>
240 241 <textarea id="article_abstract" class="countdown" name="article[abstract]" placeholder="Descrição" maxlength="5000"></textarea>
... ...
js/jquery-ui-1.11.4.custom/jquery-ui.css
1   -/*! jQuery UI - v1.11.4 - 2015-04-19
  1 +/*! jQuery UI - v1.11.4 - 2015-04-24
2 2 * http://jqueryui.com
3 3 * Includes: core.css, autocomplete.css, menu.css
4 4 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
... ...
js/jquery-ui-1.11.4.custom/jquery-ui.js
1   -/*! jQuery UI - v1.11.4 - 2015-04-19
  1 +/*! jQuery UI - v1.11.4 - 2015-04-24
2 2 * http://jqueryui.com
3   -* Includes: core.js, widget.js, position.js, autocomplete.js, menu.js
  3 +* Includes: core.js, widget.js, position.js, autocomplete.js, menu.js, effect.js, effect-blind.js
4 4 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
5 5  
6 6 (function( factory ) {
... ... @@ -2606,5 +2606,1373 @@ $.widget( &quot;ui.autocomplete&quot;, $.ui.autocomplete, {
2606 2606 var autocomplete = $.ui.autocomplete;
2607 2607  
2608 2608  
  2609 +/*!
  2610 + * jQuery UI Effects 1.11.4
  2611 + * http://jqueryui.com
  2612 + *
  2613 + * Copyright jQuery Foundation and other contributors
  2614 + * Released under the MIT license.
  2615 + * http://jquery.org/license
  2616 + *
  2617 + * http://api.jqueryui.com/category/effects-core/
  2618 + */
  2619 +
  2620 +
  2621 +var dataSpace = "ui-effects-",
  2622 +
  2623 + // Create a local jQuery because jQuery Color relies on it and the
  2624 + // global may not exist with AMD and a custom build (#10199)
  2625 + jQuery = $;
  2626 +
  2627 +$.effects = {
  2628 + effect: {}
  2629 +};
  2630 +
  2631 +/*!
  2632 + * jQuery Color Animations v2.1.2
  2633 + * https://github.com/jquery/jquery-color
  2634 + *
  2635 + * Copyright 2014 jQuery Foundation and other contributors
  2636 + * Released under the MIT license.
  2637 + * http://jquery.org/license
  2638 + *
  2639 + * Date: Wed Jan 16 08:47:09 2013 -0600
  2640 + */
  2641 +(function( jQuery, undefined ) {
  2642 +
  2643 + var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
  2644 +
  2645 + // plusequals test for += 100 -= 100
  2646 + rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
  2647 + // a set of RE's that can match strings and generate color tuples.
  2648 + stringParsers = [ {
  2649 + re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  2650 + parse: function( execResult ) {
  2651 + return [
  2652 + execResult[ 1 ],
  2653 + execResult[ 2 ],
  2654 + execResult[ 3 ],
  2655 + execResult[ 4 ]
  2656 + ];
  2657 + }
  2658 + }, {
  2659 + re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  2660 + parse: function( execResult ) {
  2661 + return [
  2662 + execResult[ 1 ] * 2.55,
  2663 + execResult[ 2 ] * 2.55,
  2664 + execResult[ 3 ] * 2.55,
  2665 + execResult[ 4 ]
  2666 + ];
  2667 + }
  2668 + }, {
  2669 + // this regex ignores A-F because it's compared against an already lowercased string
  2670 + re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
  2671 + parse: function( execResult ) {
  2672 + return [
  2673 + parseInt( execResult[ 1 ], 16 ),
  2674 + parseInt( execResult[ 2 ], 16 ),
  2675 + parseInt( execResult[ 3 ], 16 )
  2676 + ];
  2677 + }
  2678 + }, {
  2679 + // this regex ignores A-F because it's compared against an already lowercased string
  2680 + re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
  2681 + parse: function( execResult ) {
  2682 + return [
  2683 + parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
  2684 + parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
  2685 + parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
  2686 + ];
  2687 + }
  2688 + }, {
  2689 + re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
  2690 + space: "hsla",
  2691 + parse: function( execResult ) {
  2692 + return [
  2693 + execResult[ 1 ],
  2694 + execResult[ 2 ] / 100,
  2695 + execResult[ 3 ] / 100,
  2696 + execResult[ 4 ]
  2697 + ];
  2698 + }
  2699 + } ],
  2700 +
  2701 + // jQuery.Color( )
  2702 + color = jQuery.Color = function( color, green, blue, alpha ) {
  2703 + return new jQuery.Color.fn.parse( color, green, blue, alpha );
  2704 + },
  2705 + spaces = {
  2706 + rgba: {
  2707 + props: {
  2708 + red: {
  2709 + idx: 0,
  2710 + type: "byte"
  2711 + },
  2712 + green: {
  2713 + idx: 1,
  2714 + type: "byte"
  2715 + },
  2716 + blue: {
  2717 + idx: 2,
  2718 + type: "byte"
  2719 + }
  2720 + }
  2721 + },
  2722 +
  2723 + hsla: {
  2724 + props: {
  2725 + hue: {
  2726 + idx: 0,
  2727 + type: "degrees"
  2728 + },
  2729 + saturation: {
  2730 + idx: 1,
  2731 + type: "percent"
  2732 + },
  2733 + lightness: {
  2734 + idx: 2,
  2735 + type: "percent"
  2736 + }
  2737 + }
  2738 + }
  2739 + },
  2740 + propTypes = {
  2741 + "byte": {
  2742 + floor: true,
  2743 + max: 255
  2744 + },
  2745 + "percent": {
  2746 + max: 1
  2747 + },
  2748 + "degrees": {
  2749 + mod: 360,
  2750 + floor: true
  2751 + }
  2752 + },
  2753 + support = color.support = {},
  2754 +
  2755 + // element for support tests
  2756 + supportElem = jQuery( "<p>" )[ 0 ],
  2757 +
  2758 + // colors = jQuery.Color.names
  2759 + colors,
  2760 +
  2761 + // local aliases of functions called often
  2762 + each = jQuery.each;
  2763 +
  2764 +// determine rgba support immediately
  2765 +supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
  2766 +support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
  2767 +
  2768 +// define cache name and alpha properties
  2769 +// for rgba and hsla spaces
  2770 +each( spaces, function( spaceName, space ) {
  2771 + space.cache = "_" + spaceName;
  2772 + space.props.alpha = {
  2773 + idx: 3,
  2774 + type: "percent",
  2775 + def: 1
  2776 + };
  2777 +});
  2778 +
  2779 +function clamp( value, prop, allowEmpty ) {
  2780 + var type = propTypes[ prop.type ] || {};
  2781 +
  2782 + if ( value == null ) {
  2783 + return (allowEmpty || !prop.def) ? null : prop.def;
  2784 + }
  2785 +
  2786 + // ~~ is an short way of doing floor for positive numbers
  2787 + value = type.floor ? ~~value : parseFloat( value );
  2788 +
  2789 + // IE will pass in empty strings as value for alpha,
  2790 + // which will hit this case
  2791 + if ( isNaN( value ) ) {
  2792 + return prop.def;
  2793 + }
  2794 +
  2795 + if ( type.mod ) {
  2796 + // we add mod before modding to make sure that negatives values
  2797 + // get converted properly: -10 -> 350
  2798 + return (value + type.mod) % type.mod;
  2799 + }
  2800 +
  2801 + // for now all property types without mod have min and max
  2802 + return 0 > value ? 0 : type.max < value ? type.max : value;
  2803 +}
  2804 +
  2805 +function stringParse( string ) {
  2806 + var inst = color(),
  2807 + rgba = inst._rgba = [];
  2808 +
  2809 + string = string.toLowerCase();
  2810 +
  2811 + each( stringParsers, function( i, parser ) {
  2812 + var parsed,
  2813 + match = parser.re.exec( string ),
  2814 + values = match && parser.parse( match ),
  2815 + spaceName = parser.space || "rgba";
  2816 +
  2817 + if ( values ) {
  2818 + parsed = inst[ spaceName ]( values );
  2819 +
  2820 + // if this was an rgba parse the assignment might happen twice
  2821 + // oh well....
  2822 + inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
  2823 + rgba = inst._rgba = parsed._rgba;
  2824 +
  2825 + // exit each( stringParsers ) here because we matched
  2826 + return false;
  2827 + }
  2828 + });
  2829 +
  2830 + // Found a stringParser that handled it
  2831 + if ( rgba.length ) {
  2832 +
  2833 + // if this came from a parsed string, force "transparent" when alpha is 0
  2834 + // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
  2835 + if ( rgba.join() === "0,0,0,0" ) {
  2836 + jQuery.extend( rgba, colors.transparent );
  2837 + }
  2838 + return inst;
  2839 + }
  2840 +
  2841 + // named colors
  2842 + return colors[ string ];
  2843 +}
  2844 +
  2845 +color.fn = jQuery.extend( color.prototype, {
  2846 + parse: function( red, green, blue, alpha ) {
  2847 + if ( red === undefined ) {
  2848 + this._rgba = [ null, null, null, null ];
  2849 + return this;
  2850 + }
  2851 + if ( red.jquery || red.nodeType ) {
  2852 + red = jQuery( red ).css( green );
  2853 + green = undefined;
  2854 + }
  2855 +
  2856 + var inst = this,
  2857 + type = jQuery.type( red ),
  2858 + rgba = this._rgba = [];
  2859 +
  2860 + // more than 1 argument specified - assume ( red, green, blue, alpha )
  2861 + if ( green !== undefined ) {
  2862 + red = [ red, green, blue, alpha ];
  2863 + type = "array";
  2864 + }
  2865 +
  2866 + if ( type === "string" ) {
  2867 + return this.parse( stringParse( red ) || colors._default );
  2868 + }
  2869 +
  2870 + if ( type === "array" ) {
  2871 + each( spaces.rgba.props, function( key, prop ) {
  2872 + rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
  2873 + });
  2874 + return this;
  2875 + }
  2876 +
  2877 + if ( type === "object" ) {
  2878 + if ( red instanceof color ) {
  2879 + each( spaces, function( spaceName, space ) {
  2880 + if ( red[ space.cache ] ) {
  2881 + inst[ space.cache ] = red[ space.cache ].slice();
  2882 + }
  2883 + });
  2884 + } else {
  2885 + each( spaces, function( spaceName, space ) {
  2886 + var cache = space.cache;
  2887 + each( space.props, function( key, prop ) {
  2888 +
  2889 + // if the cache doesn't exist, and we know how to convert
  2890 + if ( !inst[ cache ] && space.to ) {
  2891 +
  2892 + // if the value was null, we don't need to copy it
  2893 + // if the key was alpha, we don't need to copy it either
  2894 + if ( key === "alpha" || red[ key ] == null ) {
  2895 + return;
  2896 + }
  2897 + inst[ cache ] = space.to( inst._rgba );
  2898 + }
  2899 +
  2900 + // this is the only case where we allow nulls for ALL properties.
  2901 + // call clamp with alwaysAllowEmpty
  2902 + inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
  2903 + });
  2904 +
  2905 + // everything defined but alpha?
  2906 + if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
  2907 + // use the default of 1
  2908 + inst[ cache ][ 3 ] = 1;
  2909 + if ( space.from ) {
  2910 + inst._rgba = space.from( inst[ cache ] );
  2911 + }
  2912 + }
  2913 + });
  2914 + }
  2915 + return this;
  2916 + }
  2917 + },
  2918 + is: function( compare ) {
  2919 + var is = color( compare ),
  2920 + same = true,
  2921 + inst = this;
  2922 +
  2923 + each( spaces, function( _, space ) {
  2924 + var localCache,
  2925 + isCache = is[ space.cache ];
  2926 + if (isCache) {
  2927 + localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
  2928 + each( space.props, function( _, prop ) {
  2929 + if ( isCache[ prop.idx ] != null ) {
  2930 + same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
  2931 + return same;
  2932 + }
  2933 + });
  2934 + }
  2935 + return same;
  2936 + });
  2937 + return same;
  2938 + },
  2939 + _space: function() {
  2940 + var used = [],
  2941 + inst = this;
  2942 + each( spaces, function( spaceName, space ) {
  2943 + if ( inst[ space.cache ] ) {
  2944 + used.push( spaceName );
  2945 + }
  2946 + });
  2947 + return used.pop();
  2948 + },
  2949 + transition: function( other, distance ) {
  2950 + var end = color( other ),
  2951 + spaceName = end._space(),
  2952 + space = spaces[ spaceName ],
  2953 + startColor = this.alpha() === 0 ? color( "transparent" ) : this,
  2954 + start = startColor[ space.cache ] || space.to( startColor._rgba ),
  2955 + result = start.slice();
  2956 +
  2957 + end = end[ space.cache ];
  2958 + each( space.props, function( key, prop ) {
  2959 + var index = prop.idx,
  2960 + startValue = start[ index ],
  2961 + endValue = end[ index ],
  2962 + type = propTypes[ prop.type ] || {};
  2963 +
  2964 + // if null, don't override start value
  2965 + if ( endValue === null ) {
  2966 + return;
  2967 + }
  2968 + // if null - use end
  2969 + if ( startValue === null ) {
  2970 + result[ index ] = endValue;
  2971 + } else {
  2972 + if ( type.mod ) {
  2973 + if ( endValue - startValue > type.mod / 2 ) {
  2974 + startValue += type.mod;
  2975 + } else if ( startValue - endValue > type.mod / 2 ) {
  2976 + startValue -= type.mod;
  2977 + }
  2978 + }
  2979 + result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
  2980 + }
  2981 + });
  2982 + return this[ spaceName ]( result );
  2983 + },
  2984 + blend: function( opaque ) {
  2985 + // if we are already opaque - return ourself
  2986 + if ( this._rgba[ 3 ] === 1 ) {
  2987 + return this;
  2988 + }
  2989 +
  2990 + var rgb = this._rgba.slice(),
  2991 + a = rgb.pop(),
  2992 + blend = color( opaque )._rgba;
  2993 +
  2994 + return color( jQuery.map( rgb, function( v, i ) {
  2995 + return ( 1 - a ) * blend[ i ] + a * v;
  2996 + }));
  2997 + },
  2998 + toRgbaString: function() {
  2999 + var prefix = "rgba(",
  3000 + rgba = jQuery.map( this._rgba, function( v, i ) {
  3001 + return v == null ? ( i > 2 ? 1 : 0 ) : v;
  3002 + });
  3003 +
  3004 + if ( rgba[ 3 ] === 1 ) {
  3005 + rgba.pop();
  3006 + prefix = "rgb(";
  3007 + }
  3008 +
  3009 + return prefix + rgba.join() + ")";
  3010 + },
  3011 + toHslaString: function() {
  3012 + var prefix = "hsla(",
  3013 + hsla = jQuery.map( this.hsla(), function( v, i ) {
  3014 + if ( v == null ) {
  3015 + v = i > 2 ? 1 : 0;
  3016 + }
  3017 +
  3018 + // catch 1 and 2
  3019 + if ( i && i < 3 ) {
  3020 + v = Math.round( v * 100 ) + "%";
  3021 + }
  3022 + return v;
  3023 + });
  3024 +
  3025 + if ( hsla[ 3 ] === 1 ) {
  3026 + hsla.pop();
  3027 + prefix = "hsl(";
  3028 + }
  3029 + return prefix + hsla.join() + ")";
  3030 + },
  3031 + toHexString: function( includeAlpha ) {
  3032 + var rgba = this._rgba.slice(),
  3033 + alpha = rgba.pop();
  3034 +
  3035 + if ( includeAlpha ) {
  3036 + rgba.push( ~~( alpha * 255 ) );
  3037 + }
  3038 +
  3039 + return "#" + jQuery.map( rgba, function( v ) {
  3040 +
  3041 + // default to 0 when nulls exist
  3042 + v = ( v || 0 ).toString( 16 );
  3043 + return v.length === 1 ? "0" + v : v;
  3044 + }).join("");
  3045 + },
  3046 + toString: function() {
  3047 + return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
  3048 + }
  3049 +});
  3050 +color.fn.parse.prototype = color.fn;
  3051 +
  3052 +// hsla conversions adapted from:
  3053 +// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
  3054 +
  3055 +function hue2rgb( p, q, h ) {
  3056 + h = ( h + 1 ) % 1;
  3057 + if ( h * 6 < 1 ) {
  3058 + return p + ( q - p ) * h * 6;
  3059 + }
  3060 + if ( h * 2 < 1) {
  3061 + return q;
  3062 + }
  3063 + if ( h * 3 < 2 ) {
  3064 + return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
  3065 + }
  3066 + return p;
  3067 +}
  3068 +
  3069 +spaces.hsla.to = function( rgba ) {
  3070 + if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
  3071 + return [ null, null, null, rgba[ 3 ] ];
  3072 + }
  3073 + var r = rgba[ 0 ] / 255,
  3074 + g = rgba[ 1 ] / 255,
  3075 + b = rgba[ 2 ] / 255,
  3076 + a = rgba[ 3 ],
  3077 + max = Math.max( r, g, b ),
  3078 + min = Math.min( r, g, b ),
  3079 + diff = max - min,
  3080 + add = max + min,
  3081 + l = add * 0.5,
  3082 + h, s;
  3083 +
  3084 + if ( min === max ) {
  3085 + h = 0;
  3086 + } else if ( r === max ) {
  3087 + h = ( 60 * ( g - b ) / diff ) + 360;
  3088 + } else if ( g === max ) {
  3089 + h = ( 60 * ( b - r ) / diff ) + 120;
  3090 + } else {
  3091 + h = ( 60 * ( r - g ) / diff ) + 240;
  3092 + }
  3093 +
  3094 + // chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
  3095 + // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
  3096 + if ( diff === 0 ) {
  3097 + s = 0;
  3098 + } else if ( l <= 0.5 ) {
  3099 + s = diff / add;
  3100 + } else {
  3101 + s = diff / ( 2 - add );
  3102 + }
  3103 + return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
  3104 +};
  3105 +
  3106 +spaces.hsla.from = function( hsla ) {
  3107 + if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
  3108 + return [ null, null, null, hsla[ 3 ] ];
  3109 + }
  3110 + var h = hsla[ 0 ] / 360,
  3111 + s = hsla[ 1 ],
  3112 + l = hsla[ 2 ],
  3113 + a = hsla[ 3 ],
  3114 + q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
  3115 + p = 2 * l - q;
  3116 +
  3117 + return [
  3118 + Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
  3119 + Math.round( hue2rgb( p, q, h ) * 255 ),
  3120 + Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
  3121 + a
  3122 + ];
  3123 +};
  3124 +
  3125 +each( spaces, function( spaceName, space ) {
  3126 + var props = space.props,
  3127 + cache = space.cache,
  3128 + to = space.to,
  3129 + from = space.from;
  3130 +
  3131 + // makes rgba() and hsla()
  3132 + color.fn[ spaceName ] = function( value ) {
  3133 +
  3134 + // generate a cache for this space if it doesn't exist
  3135 + if ( to && !this[ cache ] ) {
  3136 + this[ cache ] = to( this._rgba );
  3137 + }
  3138 + if ( value === undefined ) {
  3139 + return this[ cache ].slice();
  3140 + }
  3141 +
  3142 + var ret,
  3143 + type = jQuery.type( value ),
  3144 + arr = ( type === "array" || type === "object" ) ? value : arguments,
  3145 + local = this[ cache ].slice();
  3146 +
  3147 + each( props, function( key, prop ) {
  3148 + var val = arr[ type === "object" ? key : prop.idx ];
  3149 + if ( val == null ) {
  3150 + val = local[ prop.idx ];
  3151 + }
  3152 + local[ prop.idx ] = clamp( val, prop );
  3153 + });
  3154 +
  3155 + if ( from ) {
  3156 + ret = color( from( local ) );
  3157 + ret[ cache ] = local;
  3158 + return ret;
  3159 + } else {
  3160 + return color( local );
  3161 + }
  3162 + };
  3163 +
  3164 + // makes red() green() blue() alpha() hue() saturation() lightness()
  3165 + each( props, function( key, prop ) {
  3166 + // alpha is included in more than one space
  3167 + if ( color.fn[ key ] ) {
  3168 + return;
  3169 + }
  3170 + color.fn[ key ] = function( value ) {
  3171 + var vtype = jQuery.type( value ),
  3172 + fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
  3173 + local = this[ fn ](),
  3174 + cur = local[ prop.idx ],
  3175 + match;
  3176 +
  3177 + if ( vtype === "undefined" ) {
  3178 + return cur;
  3179 + }
  3180 +
  3181 + if ( vtype === "function" ) {
  3182 + value = value.call( this, cur );
  3183 + vtype = jQuery.type( value );
  3184 + }
  3185 + if ( value == null && prop.empty ) {
  3186 + return this;
  3187 + }
  3188 + if ( vtype === "string" ) {
  3189 + match = rplusequals.exec( value );
  3190 + if ( match ) {
  3191 + value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
  3192 + }
  3193 + }
  3194 + local[ prop.idx ] = value;
  3195 + return this[ fn ]( local );
  3196 + };
  3197 + });
  3198 +});
  3199 +
  3200 +// add cssHook and .fx.step function for each named hook.
  3201 +// accept a space separated string of properties
  3202 +color.hook = function( hook ) {
  3203 + var hooks = hook.split( " " );
  3204 + each( hooks, function( i, hook ) {
  3205 + jQuery.cssHooks[ hook ] = {
  3206 + set: function( elem, value ) {
  3207 + var parsed, curElem,
  3208 + backgroundColor = "";
  3209 +
  3210 + if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
  3211 + value = color( parsed || value );
  3212 + if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
  3213 + curElem = hook === "backgroundColor" ? elem.parentNode : elem;
  3214 + while (
  3215 + (backgroundColor === "" || backgroundColor === "transparent") &&
  3216 + curElem && curElem.style
  3217 + ) {
  3218 + try {
  3219 + backgroundColor = jQuery.css( curElem, "backgroundColor" );
  3220 + curElem = curElem.parentNode;
  3221 + } catch ( e ) {
  3222 + }
  3223 + }
  3224 +
  3225 + value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
  3226 + backgroundColor :
  3227 + "_default" );
  3228 + }
  3229 +
  3230 + value = value.toRgbaString();
  3231 + }
  3232 + try {
  3233 + elem.style[ hook ] = value;
  3234 + } catch ( e ) {
  3235 + // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
  3236 + }
  3237 + }
  3238 + };
  3239 + jQuery.fx.step[ hook ] = function( fx ) {
  3240 + if ( !fx.colorInit ) {
  3241 + fx.start = color( fx.elem, hook );
  3242 + fx.end = color( fx.end );
  3243 + fx.colorInit = true;
  3244 + }
  3245 + jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
  3246 + };
  3247 + });
  3248 +
  3249 +};
  3250 +
  3251 +color.hook( stepHooks );
  3252 +
  3253 +jQuery.cssHooks.borderColor = {
  3254 + expand: function( value ) {
  3255 + var expanded = {};
  3256 +
  3257 + each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
  3258 + expanded[ "border" + part + "Color" ] = value;
  3259 + });
  3260 + return expanded;
  3261 + }
  3262 +};
  3263 +
  3264 +// Basic color names only.
  3265 +// Usage of any of the other color names requires adding yourself or including
  3266 +// jquery.color.svg-names.js.
  3267 +colors = jQuery.Color.names = {
  3268 + // 4.1. Basic color keywords
  3269 + aqua: "#00ffff",
  3270 + black: "#000000",
  3271 + blue: "#0000ff",
  3272 + fuchsia: "#ff00ff",
  3273 + gray: "#808080",
  3274 + green: "#008000",
  3275 + lime: "#00ff00",
  3276 + maroon: "#800000",
  3277 + navy: "#000080",
  3278 + olive: "#808000",
  3279 + purple: "#800080",
  3280 + red: "#ff0000",
  3281 + silver: "#c0c0c0",
  3282 + teal: "#008080",
  3283 + white: "#ffffff",
  3284 + yellow: "#ffff00",
  3285 +
  3286 + // 4.2.3. "transparent" color keyword
  3287 + transparent: [ null, null, null, 0 ],
  3288 +
  3289 + _default: "#ffffff"
  3290 +};
  3291 +
  3292 +})( jQuery );
  3293 +
  3294 +/******************************************************************************/
  3295 +/****************************** CLASS ANIMATIONS ******************************/
  3296 +/******************************************************************************/
  3297 +(function() {
  3298 +
  3299 +var classAnimationActions = [ "add", "remove", "toggle" ],
  3300 + shorthandStyles = {
  3301 + border: 1,
  3302 + borderBottom: 1,
  3303 + borderColor: 1,
  3304 + borderLeft: 1,
  3305 + borderRight: 1,
  3306 + borderTop: 1,
  3307 + borderWidth: 1,
  3308 + margin: 1,
  3309 + padding: 1
  3310 + };
  3311 +
  3312 +$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
  3313 + $.fx.step[ prop ] = function( fx ) {
  3314 + if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
  3315 + jQuery.style( fx.elem, prop, fx.end );
  3316 + fx.setAttr = true;
  3317 + }
  3318 + };
  3319 +});
  3320 +
  3321 +function getElementStyles( elem ) {
  3322 + var key, len,
  3323 + style = elem.ownerDocument.defaultView ?
  3324 + elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
  3325 + elem.currentStyle,
  3326 + styles = {};
  3327 +
  3328 + if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
  3329 + len = style.length;
  3330 + while ( len-- ) {
  3331 + key = style[ len ];
  3332 + if ( typeof style[ key ] === "string" ) {
  3333 + styles[ $.camelCase( key ) ] = style[ key ];
  3334 + }
  3335 + }
  3336 + // support: Opera, IE <9
  3337 + } else {
  3338 + for ( key in style ) {
  3339 + if ( typeof style[ key ] === "string" ) {
  3340 + styles[ key ] = style[ key ];
  3341 + }
  3342 + }
  3343 + }
  3344 +
  3345 + return styles;
  3346 +}
  3347 +
  3348 +function styleDifference( oldStyle, newStyle ) {
  3349 + var diff = {},
  3350 + name, value;
  3351 +
  3352 + for ( name in newStyle ) {
  3353 + value = newStyle[ name ];
  3354 + if ( oldStyle[ name ] !== value ) {
  3355 + if ( !shorthandStyles[ name ] ) {
  3356 + if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
  3357 + diff[ name ] = value;
  3358 + }
  3359 + }
  3360 + }
  3361 + }
  3362 +
  3363 + return diff;
  3364 +}
  3365 +
  3366 +// support: jQuery <1.8
  3367 +if ( !$.fn.addBack ) {
  3368 + $.fn.addBack = function( selector ) {
  3369 + return this.add( selector == null ?
  3370 + this.prevObject : this.prevObject.filter( selector )
  3371 + );
  3372 + };
  3373 +}
  3374 +
  3375 +$.effects.animateClass = function( value, duration, easing, callback ) {
  3376 + var o = $.speed( duration, easing, callback );
  3377 +
  3378 + return this.queue( function() {
  3379 + var animated = $( this ),
  3380 + baseClass = animated.attr( "class" ) || "",
  3381 + applyClassChange,
  3382 + allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
  3383 +
  3384 + // map the animated objects to store the original styles.
  3385 + allAnimations = allAnimations.map(function() {
  3386 + var el = $( this );
  3387 + return {
  3388 + el: el,
  3389 + start: getElementStyles( this )
  3390 + };
  3391 + });
  3392 +
  3393 + // apply class change
  3394 + applyClassChange = function() {
  3395 + $.each( classAnimationActions, function(i, action) {
  3396 + if ( value[ action ] ) {
  3397 + animated[ action + "Class" ]( value[ action ] );
  3398 + }
  3399 + });
  3400 + };
  3401 + applyClassChange();
  3402 +
  3403 + // map all animated objects again - calculate new styles and diff
  3404 + allAnimations = allAnimations.map(function() {
  3405 + this.end = getElementStyles( this.el[ 0 ] );
  3406 + this.diff = styleDifference( this.start, this.end );
  3407 + return this;
  3408 + });
  3409 +
  3410 + // apply original class
  3411 + animated.attr( "class", baseClass );
  3412 +
  3413 + // map all animated objects again - this time collecting a promise
  3414 + allAnimations = allAnimations.map(function() {
  3415 + var styleInfo = this,
  3416 + dfd = $.Deferred(),
  3417 + opts = $.extend({}, o, {
  3418 + queue: false,
  3419 + complete: function() {
  3420 + dfd.resolve( styleInfo );
  3421 + }
  3422 + });
  3423 +
  3424 + this.el.animate( this.diff, opts );
  3425 + return dfd.promise();
  3426 + });
  3427 +
  3428 + // once all animations have completed:
  3429 + $.when.apply( $, allAnimations.get() ).done(function() {
  3430 +
  3431 + // set the final class
  3432 + applyClassChange();
  3433 +
  3434 + // for each animated element,
  3435 + // clear all css properties that were animated
  3436 + $.each( arguments, function() {
  3437 + var el = this.el;
  3438 + $.each( this.diff, function(key) {
  3439 + el.css( key, "" );
  3440 + });
  3441 + });
  3442 +
  3443 + // this is guarnteed to be there if you use jQuery.speed()
  3444 + // it also handles dequeuing the next anim...
  3445 + o.complete.call( animated[ 0 ] );
  3446 + });
  3447 + });
  3448 +};
  3449 +
  3450 +$.fn.extend({
  3451 + addClass: (function( orig ) {
  3452 + return function( classNames, speed, easing, callback ) {
  3453 + return speed ?
  3454 + $.effects.animateClass.call( this,
  3455 + { add: classNames }, speed, easing, callback ) :
  3456 + orig.apply( this, arguments );
  3457 + };
  3458 + })( $.fn.addClass ),
  3459 +
  3460 + removeClass: (function( orig ) {
  3461 + return function( classNames, speed, easing, callback ) {
  3462 + return arguments.length > 1 ?
  3463 + $.effects.animateClass.call( this,
  3464 + { remove: classNames }, speed, easing, callback ) :
  3465 + orig.apply( this, arguments );
  3466 + };
  3467 + })( $.fn.removeClass ),
  3468 +
  3469 + toggleClass: (function( orig ) {
  3470 + return function( classNames, force, speed, easing, callback ) {
  3471 + if ( typeof force === "boolean" || force === undefined ) {
  3472 + if ( !speed ) {
  3473 + // without speed parameter
  3474 + return orig.apply( this, arguments );
  3475 + } else {
  3476 + return $.effects.animateClass.call( this,
  3477 + (force ? { add: classNames } : { remove: classNames }),
  3478 + speed, easing, callback );
  3479 + }
  3480 + } else {
  3481 + // without force parameter
  3482 + return $.effects.animateClass.call( this,
  3483 + { toggle: classNames }, force, speed, easing );
  3484 + }
  3485 + };
  3486 + })( $.fn.toggleClass ),
  3487 +
  3488 + switchClass: function( remove, add, speed, easing, callback) {
  3489 + return $.effects.animateClass.call( this, {
  3490 + add: add,
  3491 + remove: remove
  3492 + }, speed, easing, callback );
  3493 + }
  3494 +});
  3495 +
  3496 +})();
  3497 +
  3498 +/******************************************************************************/
  3499 +/*********************************** EFFECTS **********************************/
  3500 +/******************************************************************************/
  3501 +
  3502 +(function() {
  3503 +
  3504 +$.extend( $.effects, {
  3505 + version: "1.11.4",
  3506 +
  3507 + // Saves a set of properties in a data storage
  3508 + save: function( element, set ) {
  3509 + for ( var i = 0; i < set.length; i++ ) {
  3510 + if ( set[ i ] !== null ) {
  3511 + element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
  3512 + }
  3513 + }
  3514 + },
  3515 +
  3516 + // Restores a set of previously saved properties from a data storage
  3517 + restore: function( element, set ) {
  3518 + var val, i;
  3519 + for ( i = 0; i < set.length; i++ ) {
  3520 + if ( set[ i ] !== null ) {
  3521 + val = element.data( dataSpace + set[ i ] );
  3522 + // support: jQuery 1.6.2
  3523 + // http://bugs.jquery.com/ticket/9917
  3524 + // jQuery 1.6.2 incorrectly returns undefined for any falsy value.
  3525 + // We can't differentiate between "" and 0 here, so we just assume
  3526 + // empty string since it's likely to be a more common value...
  3527 + if ( val === undefined ) {
  3528 + val = "";
  3529 + }
  3530 + element.css( set[ i ], val );
  3531 + }
  3532 + }
  3533 + },
  3534 +
  3535 + setMode: function( el, mode ) {
  3536 + if (mode === "toggle") {
  3537 + mode = el.is( ":hidden" ) ? "show" : "hide";
  3538 + }
  3539 + return mode;
  3540 + },
  3541 +
  3542 + // Translates a [top,left] array into a baseline value
  3543 + // this should be a little more flexible in the future to handle a string & hash
  3544 + getBaseline: function( origin, original ) {
  3545 + var y, x;
  3546 + switch ( origin[ 0 ] ) {
  3547 + case "top": y = 0; break;
  3548 + case "middle": y = 0.5; break;
  3549 + case "bottom": y = 1; break;
  3550 + default: y = origin[ 0 ] / original.height;
  3551 + }
  3552 + switch ( origin[ 1 ] ) {
  3553 + case "left": x = 0; break;
  3554 + case "center": x = 0.5; break;
  3555 + case "right": x = 1; break;
  3556 + default: x = origin[ 1 ] / original.width;
  3557 + }
  3558 + return {
  3559 + x: x,
  3560 + y: y
  3561 + };
  3562 + },
  3563 +
  3564 + // Wraps the element around a wrapper that copies position properties
  3565 + createWrapper: function( element ) {
  3566 +
  3567 + // if the element is already wrapped, return it
  3568 + if ( element.parent().is( ".ui-effects-wrapper" )) {
  3569 + return element.parent();
  3570 + }
  3571 +
  3572 + // wrap the element
  3573 + var props = {
  3574 + width: element.outerWidth(true),
  3575 + height: element.outerHeight(true),
  3576 + "float": element.css( "float" )
  3577 + },
  3578 + wrapper = $( "<div></div>" )
  3579 + .addClass( "ui-effects-wrapper" )
  3580 + .css({
  3581 + fontSize: "100%",
  3582 + background: "transparent",
  3583 + border: "none",
  3584 + margin: 0,
  3585 + padding: 0
  3586 + }),
  3587 + // Store the size in case width/height are defined in % - Fixes #5245
  3588 + size = {
  3589 + width: element.width(),
  3590 + height: element.height()
  3591 + },
  3592 + active = document.activeElement;
  3593 +
  3594 + // support: Firefox
  3595 + // Firefox incorrectly exposes anonymous content
  3596 + // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
  3597 + try {
  3598 + active.id;
  3599 + } catch ( e ) {
  3600 + active = document.body;
  3601 + }
  3602 +
  3603 + element.wrap( wrapper );
  3604 +
  3605 + // Fixes #7595 - Elements lose focus when wrapped.
  3606 + if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
  3607 + $( active ).focus();
  3608 + }
  3609 +
  3610 + wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element
  3611 +
  3612 + // transfer positioning properties to the wrapper
  3613 + if ( element.css( "position" ) === "static" ) {
  3614 + wrapper.css({ position: "relative" });
  3615 + element.css({ position: "relative" });
  3616 + } else {
  3617 + $.extend( props, {
  3618 + position: element.css( "position" ),
  3619 + zIndex: element.css( "z-index" )
  3620 + });
  3621 + $.each([ "top", "left", "bottom", "right" ], function(i, pos) {
  3622 + props[ pos ] = element.css( pos );
  3623 + if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {
  3624 + props[ pos ] = "auto";
  3625 + }
  3626 + });
  3627 + element.css({
  3628 + position: "relative",
  3629 + top: 0,
  3630 + left: 0,
  3631 + right: "auto",
  3632 + bottom: "auto"
  3633 + });
  3634 + }
  3635 + element.css(size);
  3636 +
  3637 + return wrapper.css( props ).show();
  3638 + },
  3639 +
  3640 + removeWrapper: function( element ) {
  3641 + var active = document.activeElement;
  3642 +
  3643 + if ( element.parent().is( ".ui-effects-wrapper" ) ) {
  3644 + element.parent().replaceWith( element );
  3645 +
  3646 + // Fixes #7595 - Elements lose focus when wrapped.
  3647 + if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
  3648 + $( active ).focus();
  3649 + }
  3650 + }
  3651 +
  3652 + return element;
  3653 + },
  3654 +
  3655 + setTransition: function( element, list, factor, value ) {
  3656 + value = value || {};
  3657 + $.each( list, function( i, x ) {
  3658 + var unit = element.cssUnit( x );
  3659 + if ( unit[ 0 ] > 0 ) {
  3660 + value[ x ] = unit[ 0 ] * factor + unit[ 1 ];
  3661 + }
  3662 + });
  3663 + return value;
  3664 + }
  3665 +});
  3666 +
  3667 +// return an effect options object for the given parameters:
  3668 +function _normalizeArguments( effect, options, speed, callback ) {
  3669 +
  3670 + // allow passing all options as the first parameter
  3671 + if ( $.isPlainObject( effect ) ) {
  3672 + options = effect;
  3673 + effect = effect.effect;
  3674 + }
  3675 +
  3676 + // convert to an object
  3677 + effect = { effect: effect };
  3678 +
  3679 + // catch (effect, null, ...)
  3680 + if ( options == null ) {
  3681 + options = {};
  3682 + }
  3683 +
  3684 + // catch (effect, callback)
  3685 + if ( $.isFunction( options ) ) {
  3686 + callback = options;
  3687 + speed = null;
  3688 + options = {};
  3689 + }
  3690 +
  3691 + // catch (effect, speed, ?)
  3692 + if ( typeof options === "number" || $.fx.speeds[ options ] ) {
  3693 + callback = speed;
  3694 + speed = options;
  3695 + options = {};
  3696 + }
  3697 +
  3698 + // catch (effect, options, callback)
  3699 + if ( $.isFunction( speed ) ) {
  3700 + callback = speed;
  3701 + speed = null;
  3702 + }
  3703 +
  3704 + // add options to effect
  3705 + if ( options ) {
  3706 + $.extend( effect, options );
  3707 + }
  3708 +
  3709 + speed = speed || options.duration;
  3710 + effect.duration = $.fx.off ? 0 :
  3711 + typeof speed === "number" ? speed :
  3712 + speed in $.fx.speeds ? $.fx.speeds[ speed ] :
  3713 + $.fx.speeds._default;
  3714 +
  3715 + effect.complete = callback || options.complete;
  3716 +
  3717 + return effect;
  3718 +}
  3719 +
  3720 +function standardAnimationOption( option ) {
  3721 + // Valid standard speeds (nothing, number, named speed)
  3722 + if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
  3723 + return true;
  3724 + }
  3725 +
  3726 + // Invalid strings - treat as "normal" speed
  3727 + if ( typeof option === "string" && !$.effects.effect[ option ] ) {
  3728 + return true;
  3729 + }
  3730 +
  3731 + // Complete callback
  3732 + if ( $.isFunction( option ) ) {
  3733 + return true;
  3734 + }
  3735 +
  3736 + // Options hash (but not naming an effect)
  3737 + if ( typeof option === "object" && !option.effect ) {
  3738 + return true;
  3739 + }
  3740 +
  3741 + // Didn't match any standard API
  3742 + return false;
  3743 +}
  3744 +
  3745 +$.fn.extend({
  3746 + effect: function( /* effect, options, speed, callback */ ) {
  3747 + var args = _normalizeArguments.apply( this, arguments ),
  3748 + mode = args.mode,
  3749 + queue = args.queue,
  3750 + effectMethod = $.effects.effect[ args.effect ];
  3751 +
  3752 + if ( $.fx.off || !effectMethod ) {
  3753 + // delegate to the original method (e.g., .show()) if possible
  3754 + if ( mode ) {
  3755 + return this[ mode ]( args.duration, args.complete );
  3756 + } else {
  3757 + return this.each( function() {
  3758 + if ( args.complete ) {
  3759 + args.complete.call( this );
  3760 + }
  3761 + });
  3762 + }
  3763 + }
  3764 +
  3765 + function run( next ) {
  3766 + var elem = $( this ),
  3767 + complete = args.complete,
  3768 + mode = args.mode;
  3769 +
  3770 + function done() {
  3771 + if ( $.isFunction( complete ) ) {
  3772 + complete.call( elem[0] );
  3773 + }
  3774 + if ( $.isFunction( next ) ) {
  3775 + next();
  3776 + }
  3777 + }
  3778 +
  3779 + // If the element already has the correct final state, delegate to
  3780 + // the core methods so the internal tracking of "olddisplay" works.
  3781 + if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
  3782 + elem[ mode ]();
  3783 + done();
  3784 + } else {
  3785 + effectMethod.call( elem[0], args, done );
  3786 + }
  3787 + }
  3788 +
  3789 + return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
  3790 + },
  3791 +
  3792 + show: (function( orig ) {
  3793 + return function( option ) {
  3794 + if ( standardAnimationOption( option ) ) {
  3795 + return orig.apply( this, arguments );
  3796 + } else {
  3797 + var args = _normalizeArguments.apply( this, arguments );
  3798 + args.mode = "show";
  3799 + return this.effect.call( this, args );
  3800 + }
  3801 + };
  3802 + })( $.fn.show ),
  3803 +
  3804 + hide: (function( orig ) {
  3805 + return function( option ) {
  3806 + if ( standardAnimationOption( option ) ) {
  3807 + return orig.apply( this, arguments );
  3808 + } else {
  3809 + var args = _normalizeArguments.apply( this, arguments );
  3810 + args.mode = "hide";
  3811 + return this.effect.call( this, args );
  3812 + }
  3813 + };
  3814 + })( $.fn.hide ),
  3815 +
  3816 + toggle: (function( orig ) {
  3817 + return function( option ) {
  3818 + if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
  3819 + return orig.apply( this, arguments );
  3820 + } else {
  3821 + var args = _normalizeArguments.apply( this, arguments );
  3822 + args.mode = "toggle";
  3823 + return this.effect.call( this, args );
  3824 + }
  3825 + };
  3826 + })( $.fn.toggle ),
  3827 +
  3828 + // helper functions
  3829 + cssUnit: function(key) {
  3830 + var style = this.css( key ),
  3831 + val = [];
  3832 +
  3833 + $.each( [ "em", "px", "%", "pt" ], function( i, unit ) {
  3834 + if ( style.indexOf( unit ) > 0 ) {
  3835 + val = [ parseFloat( style ), unit ];
  3836 + }
  3837 + });
  3838 + return val;
  3839 + }
  3840 +});
  3841 +
  3842 +})();
  3843 +
  3844 +/******************************************************************************/
  3845 +/*********************************** EASING ***********************************/
  3846 +/******************************************************************************/
  3847 +
  3848 +(function() {
  3849 +
  3850 +// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
  3851 +
  3852 +var baseEasings = {};
  3853 +
  3854 +$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
  3855 + baseEasings[ name ] = function( p ) {
  3856 + return Math.pow( p, i + 2 );
  3857 + };
  3858 +});
  3859 +
  3860 +$.extend( baseEasings, {
  3861 + Sine: function( p ) {
  3862 + return 1 - Math.cos( p * Math.PI / 2 );
  3863 + },
  3864 + Circ: function( p ) {
  3865 + return 1 - Math.sqrt( 1 - p * p );
  3866 + },
  3867 + Elastic: function( p ) {
  3868 + return p === 0 || p === 1 ? p :
  3869 + -Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );
  3870 + },
  3871 + Back: function( p ) {
  3872 + return p * p * ( 3 * p - 2 );
  3873 + },
  3874 + Bounce: function( p ) {
  3875 + var pow2,
  3876 + bounce = 4;
  3877 +
  3878 + while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
  3879 + return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
  3880 + }
  3881 +});
  3882 +
  3883 +$.each( baseEasings, function( name, easeIn ) {
  3884 + $.easing[ "easeIn" + name ] = easeIn;
  3885 + $.easing[ "easeOut" + name ] = function( p ) {
  3886 + return 1 - easeIn( 1 - p );
  3887 + };
  3888 + $.easing[ "easeInOut" + name ] = function( p ) {
  3889 + return p < 0.5 ?
  3890 + easeIn( p * 2 ) / 2 :
  3891 + 1 - easeIn( p * -2 + 2 ) / 2;
  3892 + };
  3893 +});
  3894 +
  3895 +})();
  3896 +
  3897 +var effect = $.effects;
  3898 +
  3899 +
  3900 +/*!
  3901 + * jQuery UI Effects Blind 1.11.4
  3902 + * http://jqueryui.com
  3903 + *
  3904 + * Copyright jQuery Foundation and other contributors
  3905 + * Released under the MIT license.
  3906 + * http://jquery.org/license
  3907 + *
  3908 + * http://api.jqueryui.com/blind-effect/
  3909 + */
  3910 +
  3911 +
  3912 +var effectBlind = $.effects.effect.blind = function( o, done ) {
  3913 + // Create element
  3914 + var el = $( this ),
  3915 + rvertical = /up|down|vertical/,
  3916 + rpositivemotion = /up|left|vertical|horizontal/,
  3917 + props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
  3918 + mode = $.effects.setMode( el, o.mode || "hide" ),
  3919 + direction = o.direction || "up",
  3920 + vertical = rvertical.test( direction ),
  3921 + ref = vertical ? "height" : "width",
  3922 + ref2 = vertical ? "top" : "left",
  3923 + motion = rpositivemotion.test( direction ),
  3924 + animation = {},
  3925 + show = mode === "show",
  3926 + wrapper, distance, margin;
  3927 +
  3928 + // if already wrapped, the wrapper's properties are my property. #6245
  3929 + if ( el.parent().is( ".ui-effects-wrapper" ) ) {
  3930 + $.effects.save( el.parent(), props );
  3931 + } else {
  3932 + $.effects.save( el, props );
  3933 + }
  3934 + el.show();
  3935 + wrapper = $.effects.createWrapper( el ).css({
  3936 + overflow: "hidden"
  3937 + });
  3938 +
  3939 + distance = wrapper[ ref ]();
  3940 + margin = parseFloat( wrapper.css( ref2 ) ) || 0;
  3941 +
  3942 + animation[ ref ] = show ? distance : 0;
  3943 + if ( !motion ) {
  3944 + el
  3945 + .css( vertical ? "bottom" : "right", 0 )
  3946 + .css( vertical ? "top" : "left", "auto" )
  3947 + .css({ position: "absolute" });
  3948 +
  3949 + animation[ ref2 ] = show ? margin : distance + margin;
  3950 + }
  3951 +
  3952 + // start at 0 if we are showing
  3953 + if ( show ) {
  3954 + wrapper.css( ref, 0 );
  3955 + if ( !motion ) {
  3956 + wrapper.css( ref2, margin + distance );
  3957 + }
  3958 + }
  3959 +
  3960 + // Animate
  3961 + wrapper.animate( animation, {
  3962 + duration: o.duration,
  3963 + easing: o.easing,
  3964 + queue: false,
  3965 + complete: function() {
  3966 + if ( mode === "hide" ) {
  3967 + el.hide();
  3968 + }
  3969 + $.effects.restore( el, props );
  3970 + $.effects.removeWrapper( el );
  3971 + done();
  3972 + }
  3973 + });
  3974 +};
  3975 +
  3976 +
2609 3977  
2610 3978 }));
2611 3979 \ No newline at end of file
... ...
js/jquery-ui-1.11.4.custom/jquery-ui.min.css
1   -/*! jQuery UI - v1.11.4 - 2015-04-19
  1 +/*! jQuery UI - v1.11.4 - 2015-04-24
2 2 * http://jqueryui.com
3 3 * Includes: core.css, autocomplete.css, menu.css
4 4 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
... ...
js/jquery-ui-1.11.4.custom/jquery-ui.min.js
1   -/*! jQuery UI - v1.11.4 - 2015-04-19
  1 +/*! jQuery UI - v1.11.4 - 2015-04-24
2 2 * http://jqueryui.com
3   -* Includes: core.js, widget.js, position.js, autocomplete.js, menu.js
  3 +* Includes: core.js, widget.js, position.js, autocomplete.js, menu.js, effect.js, effect-blind.js
4 4 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
5 5  
6 6 (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e("img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/^(input|select|textarea|button|object)$/.test(r)?!t.disabled:"a"===r?t.href||s:s)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({scrollParent:function(t){var i=this.css("position"),s="absolute"===i,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var t=e(this);return s&&"static"===t.css("position")?!1:n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(i){return t(i,!isNaN(e.attr(i,"tabindex")))},tabbable:function(i){var s=e.attr(i,"tabindex"),n=isNaN(s);return(n||s>=0)&&t(i,!n)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(t,i){function s(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(t){return void 0===t?o["inner"+i].call(this):this.each(function(){e(this).css(a,s(this,t)+"px")})},e.fn["outer"+i]=function(t,n){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){e(this).css(a,s(this,t,!0,n)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var i,s,n=e(this[0]);n.length&&n[0]!==document;){if(i=n.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0}}),e.ui.plugin={add:function(t,i,s){var n,a=e.ui[t].prototype;for(n in s)a.plugins[n]=a.plugins[n]||[],a.plugins[n].push([i,s[n]])},call:function(e,t,i,s){var n,a=e.plugins[t];if(a&&(s||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(n=0;a.length>n;n++)e.options[a[n][0]]&&a[n][1].apply(e.element,i)}};var s=0,n=Array.prototype.slice;e.cleanData=function(t){return function(i){var s,n,a;for(a=0;null!=(n=i[a]);a++)try{s=e._data(n,"events"),s&&s.remove&&e(n).triggerHandler("remove")}catch(o){}t(i)}}(e.cleanData),e.widget=function(t,i,s){var n,a,o,r,h={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t,s||(s=i,i=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[l]=e[l]||{},a=e[l][t],o=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new o(e,t)},e.extend(o,a,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=new i,r.options=e.widget.extend({},r.options),e.each(s,function(t,s){return e.isFunction(s)?(h[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=n,t=s.apply(this,arguments),this._super=i,this._superApply=a,t}}(),void 0):(h[t]=s,void 0)}),o.prototype=e.widget.extend(r,{widgetEventPrefix:a?r.widgetEventPrefix||t:t},h,{constructor:o,namespace:l,widgetName:t,widgetFullName:n}),a?(e.each(a._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete a._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,s,a=n.call(arguments,1),o=0,r=a.length;r>o;o++)for(i in a[o])s=a[o][i],a[o].hasOwnProperty(i)&&void 0!==s&&(t[i]=e.isPlainObject(s)?e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(a){var o="string"==typeof a,r=n.call(arguments,1),h=this;return o?this.each(function(){var i,n=e.data(this,s);return"instance"===a?(h=n,!1):n?e.isFunction(n[a])&&"_"!==a.charAt(0)?(i=n[a].apply(n,r),i!==n&&void 0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; "+"attempted to call method '"+a+"'")}):(r.length&&(a=e.widget.extend.apply(null,[a].concat(r))),this.each(function(){var t=e.data(this,s);t?(t.option(a||{}),t._init&&t._init()):e.data(this,s,new i(a,this))})),h}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,a,o=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(o={},s=t.split("."),t=s.shift(),s.length){for(n=o[t]=e.widget.extend({},this.options[t]),a=0;s.length-1>a;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=i}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,s){var n,a=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,function(s,o){function r(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(r.guid=o.guid=o.guid||r.guid||e.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+a.eventNamespace,u=h[2];u?n.delegate(u,l,r):i.bind(l,r)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(i).undelegate(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,o=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(o)&&o.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var o,r=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),o=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),o&&e.effects&&e.effects.effect[r]?s[t](n):r!==t&&s[r]?s[r](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}}),e.widget,function(){function t(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function s(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,i,s=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=s.children()[0];return e("body").append(s),t=a.offsetWidth,s.css("overflow","scroll"),i=a.offsetWidth,t===i&&(i=s[0].clientWidth),s.remove(),n=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),n="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,a="scroll"===s||"auto"===s&&t.height<t.element[0].scrollHeight;return{width:a?e.position.scrollbarWidth():0,height:n?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=e.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s||n?i.width():i.outerWidth(),height:s||n?i.height():i.outerHeight()}}},e.fn.position=function(n){if(!n||!n.of)return f.apply(this,arguments);n=e.extend({},n);var p,m,g,v,y,b,_=e(n.of),x=e.position.getWithinInfo(n.within),w=e.position.getScrollInfo(x),k=(n.collision||"flip").split(" "),T={};return b=s(_),_[0].preventDefault&&(n.at="left top"),m=b.width,g=b.height,v=b.offset,y=e.extend({},v),e.each(["my","at"],function(){var e,t,i=(n[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",e=d.exec(i[0]),t=d.exec(i[1]),T[this]=[e?e[0]:0,t?t[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===n.at[0]?y.left+=m:"center"===n.at[0]&&(y.left+=m/2),"bottom"===n.at[1]?y.top+=g:"center"===n.at[1]&&(y.top+=g/2),p=t(T.at,m,g),y.left+=p[0],y.top+=p[1],this.each(function(){var s,l,u=e(this),d=u.outerWidth(),c=u.outerHeight(),f=i(this,"marginLeft"),b=i(this,"marginTop"),D=d+f+i(this,"marginRight")+w.width,S=c+b+i(this,"marginBottom")+w.height,N=e.extend({},y),M=t(T.my,u.outerWidth(),u.outerHeight());"right"===n.my[0]?N.left-=d:"center"===n.my[0]&&(N.left-=d/2),"bottom"===n.my[1]?N.top-=c:"center"===n.my[1]&&(N.top-=c/2),N.left+=M[0],N.top+=M[1],a||(N.left=h(N.left),N.top=h(N.top)),s={marginLeft:f,marginTop:b},e.each(["left","top"],function(t,i){e.ui.position[k[t]]&&e.ui.position[k[t]][i](N,{targetWidth:m,targetHeight:g,elemWidth:d,elemHeight:c,collisionPosition:s,collisionWidth:D,collisionHeight:S,offset:[p[0]+M[0],p[1]+M[1]],my:n.my,at:n.at,within:x,elem:u})}),n.using&&(l=function(e){var t=v.left-N.left,i=t+m-d,s=v.top-N.top,a=s+g-c,h={target:{element:_,left:v.left,top:v.top,width:m,height:g},element:{element:u,left:N.left,top:N.top,width:d,height:c},horizontal:0>i?"left":t>0?"right":"center",vertical:0>a?"top":s>0?"bottom":"middle"};d>m&&m>r(t+i)&&(h.horizontal="center"),c>g&&g>r(s+a)&&(h.vertical="middle"),h.important=o(r(t),r(i))>o(r(s),r(a))?"horizontal":"vertical",n.using.call(this,e,h)}),u.offset(e.extend(N,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=e.left-t.collisionPosition.marginLeft,h=n-r,l=r+t.collisionWidth-a-n;t.collisionWidth>a?h>0&&0>=l?(i=e.left+h+t.collisionWidth-a-n,e.left+=h-i):e.left=l>0&&0>=h?n:h>l?n+a-t.collisionWidth:n:h>0?e.left+=h:l>0?e.left-=l:e.left=o(e.left-r,e.left)},top:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollTop:s.offset.top,a=t.within.height,r=e.top-t.collisionPosition.marginTop,h=n-r,l=r+t.collisionHeight-a-n;t.collisionHeight>a?h>0&&0>=l?(i=e.top+h+t.collisionHeight-a-n,e.top+=h-i):e.top=l>0&&0>=h?n:h>l?n+a-t.collisionHeight:n:h>0?e.top+=h:l>0?e.top-=l:e.top=o(e.top-r,e.top)}},flip:{left:function(e,t){var i,s,n=t.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,d=l+t.collisionWidth-o-h,c="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+c+p+f+t.collisionWidth-o-a,(0>i||r(u)>i)&&(e.left+=c+p+f)):d>0&&(s=e.left-t.collisionPosition.marginLeft+c+p+f-h,(s>0||d>r(s))&&(e.left+=c+p+f))},top:function(e,t){var i,s,n=t.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,d=l+t.collisionHeight-o-h,c="top"===t.my[1],p=c?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-o-a,(0>s||r(u)>s)&&(e.top+=p+f+m)):d>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,(i>0||d>r(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,n,o,r=document.getElementsByTagName("body")[0],h=document.createElement("div");t=document.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in s)t.style[o]=s[o];t.appendChild(h),i=r||document.documentElement,i.insertBefore(t,i.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",n=e(h).offset().left,a=n>10&&11>n,t.innerHTML="",i.removeChild(t)}()}(),e.ui.position,e.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var i=e(t.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&e(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var i=e(t.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){var i,s,n,a,o=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1,s=this.previousFilter||"",n=String.fromCharCode(t.keyCode),a=!1,clearTimeout(this.filterTimer),n===s?a=!0:n=s+n,i=this._filterMenuItems(n),i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var t,i,s=this,n=this.options.icons.submenu,a=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),i=t.parent(),s=e("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))}),t=a.add(this.element),i=t.find(this.options.items),i.not(".ui-menu-item").each(function(){var t=e(this);s._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")}),i.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,a,o,r;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),o=this.activeMenu.height(),r=t.outerHeight(),0>n?this.activeMenu.scrollTop(a+n):n+r>o&&this.activeMenu.scrollTop(a+n-o+r))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this.activeMenu=s},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=e(this),0>i.offset().top-s-n}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-s+n>0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items).first())),void 0):(this.next(t),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(e.trim(e(this).text()))})}}),e.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),a="textarea"===n,o="input"===n;this.isMultiLine=a?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,i=!0,void 0;t=!1,s=!1,i=!1;var a=e.ui.keyCode;switch(n.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",n);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case a.UP:t=!0,this._keyEvent("previous",n);break;case a.DOWN:t=!0,this._keyEvent("next",n);break;case a.ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case a.TAB:this.menu.active&&this.menu.select(n);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){return s?(s=!1,e.preventDefault(),void 0):(this._searchTimeout(e),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(e),this._change(e),void 0)}}),this._initSource(),this.menu=e("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(s){s.target===t.element[0]||s.target===i||e.contains(i,s.target)||t.close()})})},menufocus:function(t,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&e.trim(s).length&&(this.liveRegion.children().hide(),e("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!i&&!s)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()
7   -},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").text(i.label).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[e](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))}}),e.ui.autocomplete});
8 7 \ No newline at end of file
  8 +},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").text(i.label).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[e](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))}}),e.ui.autocomplete;var a="ui-effects-",o=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var s=d[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(e,a){var o,r=a.re.exec(i),h=r&&a.parse(r),l=a.space||"rgba";return h?(o=s[l](h),s[u[l].cache]=o[u[l].cache],n=s._rgba=o._rgba,!1):t}),n.length?("0,0,0,0"===n.join()&&e.extend(n,a.transparent),s):a[i]}function n(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,s,n){return new e.Color.fn.parse(t,i,s,n)},u={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"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=l.support={},p=e("<p>")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(n,o,r,h){if(n===t)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=e(n).css(o),o=t);var d=this,c=e.type(n),p=this._rgba=[];return o!==t&&(n=[n,o,r,h],c="array"),"string"===c?this.parse(s(n)||a._default):"array"===c?(f(u.rgba.props,function(e,t){p[t.idx]=i(n[t.idx],t)}),this):"object"===c?(n instanceof l?f(u,function(e,t){n[t.cache]&&(d[t.cache]=n[t.cache].slice())}):f(u,function(t,s){var a=s.cache;f(s.props,function(e,t){if(!d[a]&&s.to){if("alpha"===e||null==n[e])return;d[a]=s.to(d._rgba)}d[a][t.idx]=i(n[e],t,!0)}),d[a]&&0>e.inArray(null,d[a].slice(0,3))&&(d[a][3]=1,s.from&&(d._rgba=s.from(d[a])))}),this):t},is:function(e){var i=l(e),s=!0,n=this;return f(u,function(e,a){var o,r=i[a.cache];return r&&(o=n[a.cache]||a.to&&a.to(n._rgba)||[],f(a.props,function(e,i){return null!=r[i.idx]?s=r[i.idx]===o[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),n=s._space(),a=u[n],o=0===this.alpha()?l("transparent"):this,r=o[a.cache]||a.to(o._rgba),h=r.slice();return s=s[a.cache],f(a.props,function(e,n){var a=n.idx,o=r[a],l=s[a],u=d[n.type]||{};null!==l&&(null===o?h[a]=l:(u.mod&&(l-o>u.mod/2?o+=u.mod:o-l>u.mod/2&&(o-=u.mod)),h[a]=i((l-o)*t+o,n)))}),this[n](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*n[t]+s*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&&3>t&&(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(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,n=e[1]/255,a=e[2]/255,o=e[3],r=Math.max(s,n,a),h=Math.min(s,n,a),l=r-h,u=r+h,d=.5*u;return t=h===r?0:s===r?60*(n-a)/l+360:n===r?60*(a-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=d?l/u:l/(2-u),[Math.round(t)%360,i,d,null==o?1:o]},u.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],s=e[2],a=e[3],o=.5>=s?s*(1+i):s+i-s*i,r=2*s-o;return[Math.round(255*n(r,o,t+1/3)),Math.round(255*n(r,o,t)),Math.round(255*n(r,o,t-1/3)),a]},f(u,function(s,n){var a=n.props,o=n.cache,h=n.to,u=n.from;l.fn[s]=function(s){if(h&&!this[o]&&(this[o]=h(this._rgba)),s===t)return this[o].slice();var n,r=e.type(s),d="array"===r||"object"===r?s:arguments,c=this[o].slice();return f(a,function(e,t){var s=d["object"===r?e:t.idx];null==s&&(s=c[t.idx]),c[t.idx]=i(s,t)}),u?(n=l(u(c)),n[o]=c,n):l(c)},f(a,function(t,i){l.fn[t]||(l.fn[t]=function(n){var a,o=e.type(n),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===o?u:("function"===o&&(n=n.call(this,u),o=e.type(n)),null==n&&i.empty?this:("string"===o&&(a=r.exec(n),a&&(n=u+parseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,n){var a,o,r="";if("transparent"!==n&&("string"!==e.type(n)||(a=s(n)))){if(n=l(a||n),!c.rgba&&1!==n._rgba[3]){for(o="backgroundColor"===i?t.parentNode:t;(""===r||"transparent"===r)&&o&&o.style;)try{r=e.css(o,"backgroundColor"),o=o.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{t.style[i]=n}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(o),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},a=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"}}(o),function(){function t(t){var i,s,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(a[e.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(a[i]=n[i]);return a}function i(t,i){var s,a,o={};for(s in i)a=i[s],t[s]!==a&&(n[s]||(e.fx.step[s]||!isNaN(parseFloat(a)))&&(o[s]=a));return o}var s=["add","remove","toggle"],n={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)&&(o.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,a,o,r){var h=e.speed(a,o,r);return this.queue(function(){var a,o=e(this),r=o.attr("class")||"",l=h.children?o.find("*").addBack():o;l=l.map(function(){var i=e(this);return{el:i,start:t(this)}}),a=function(){e.each(s,function(e,t){n[t]&&o[t+"Class"](n[t])})},a(),l=l.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr("class",r),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.call(o[0])})})},e.fn.extend({addClass:function(t){return function(i,s,n,a){return s?e.effects.animateClass.call(this,{add:i},s,n,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,n,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,n,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,n,a,o){return"boolean"==typeof s||void 0===s?n?e.effects.animateClass.call(this,s?{add:i}:{remove:i},n,a,o):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,n,a)}}(e.fn.toggleClass),switchClass:function(t,i,s,n,a){return e.effects.animateClass.call(this,{add:i,remove:t},s,n,a)}})}(),function(){function t(t,i,s,n){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(n=s,s=i,i={}),e.isFunction(s)&&(n=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=n||i.complete,t}function i(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.11.4",save:function(e,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(a+t[i],e[0].style[t[i]])},restore:function(e,t){var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(a+t[s]),void 0===i&&(i=""),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;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":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return t.wrap(s),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),s=t.parent(),"static"===t.css("position")?(s.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,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(n),s.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).focus()),t},setTransition:function(t,i,s,n){return n=n||{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(a)&&a.call(n[0]),e.isFunction(t)&&t()}var n=e(this),a=s.complete,r=s.mode;(n.is(":hidden")?"hide"===r:"show"===r)?(n[r](),i()):o.call(n[0],s,i)}var s=t.apply(this,arguments),n=s.mode,a=s.queue,o=e.effects.effect[s.effect];return e.fx.off||!o?n?this[n](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):a===!1?this.each(i):this.queue(a||"fx",i)},show:function(e){return function(s){if(i(s))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(s){if(i(s))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(s){if(i(s)||"boolean"==typeof s)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),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var 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;((t=Math.pow(2,--i))-1)/11>e;);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.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.effect.blind=function(t,i){var s,n,a,o=e(this),r=/up|down|vertical/,h=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(o,t.mode||"hide"),d=t.direction||"up",c=r.test(d),p=c?"height":"width",f=c?"top":"left",m=h.test(d),g={},v="show"===u;o.parent().is(".ui-effects-wrapper")?e.effects.save(o.parent(),l):e.effects.save(o,l),o.show(),s=e.effects.createWrapper(o).css({overflow:"hidden"}),n=s[p](),a=parseFloat(s.css(f))||0,g[p]=v?n:0,m||(o.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[f]=v?a:n+a),v&&(s.css(p,0),m||s.css(f,a+n)),s.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===u&&o.hide(),e.effects.restore(o,l),e.effects.removeWrapper(o),i()}})}});
9 9 \ No newline at end of file
... ...
js/jquery-ui-1.11.4.custom/jquery-ui.structure.min.css
1   -/*! jQuery UI - v1.11.4 - 2015-04-19
  1 +/*! jQuery UI - v1.11.4 - 2015-04-24
2 2 * http://jqueryui.com
3 3 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
4 4  
... ...
js/main.js
... ... @@ -85,6 +85,20 @@ $.getJSON(noosferoAPI)
85 85 // Update URL and Navigate
86 86 updateHash($link.attr('href'));
87 87 });
  88 +//TODO remove this
  89 +// $( '.proposal-category a' ).hover(function(event){
  90 +// $(this).stop().effect('shake', {distance:20}, 700);
  91 +// $(form).siblings('.success-sent').show();
  92 +//
  93 +// if(!$(this)..siblings.hasClass('animated')){
  94 +// if(!$(this).hasClass('animated')){
  95 +// $(this).addClass('animated');
  96 +// $(this).stop().effect('shake', {distance:20}, 700);
  97 +// }
  98 +// },
  99 +// function(){
  100 +// $(this).removeClass('animated');
  101 +// });
88 102  
89 103 $( '.proposal-category .go-back' ).click(function(event){
90 104 event.preventDefault();
... ... @@ -379,7 +393,7 @@ function display_proposal_by_category(item){
379 393 $('#nav-proposal-group a').removeClass('active');
380 394 $('.proposal-category-items').hide();
381 395 $('.proposal-detail').hide();
382   - $item.show();
  396 + $item.toggle( 'blind', 1000 );
383 397 $(".proposal-item p").dotdotdot();
384 398 $('.proposal-category .arrow-box').hide();
385 399 var categorySlug = $item.data('category');
... ...
sass/_proposal_categories.scss
... ... @@ -30,7 +30,6 @@
30 30 font-weight: 700;
31 31 text-align: center;
32 32 padding-top: 100px;
33   - overflow: hidden;
34 33 // border-width: 2px;
35 34 // border-style: solid;
36 35 background-size: 90px;
... ... @@ -192,4 +191,4 @@
192 191 .proposal-item {
193 192 width: 95% !important;
194 193 }
195   -}
196 194 \ No newline at end of file
  195 +}
... ...