helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject [17/20] helix git commit: Added more licenses; mvn -Prat -DskipTests passes
Date Sun, 29 Mar 2015 00:04:49 GMT
http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/admin.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/admin.js b/helix-ui/src/main/resources/assets/js/admin.js
index 410049d..8f02059 100644
--- a/helix-ui/src/main/resources/assets/js/admin.js
+++ b/helix-ui/src/main/resources/assets/js/admin.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 $(document).ready(function() {
     $("#add-cluster-form button").click(function(event) {
         event.preventDefault()

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/app.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/app.js b/helix-ui/src/main/resources/assets/js/app.js
index 8b6691c..d8caf0b 100644
--- a/helix-ui/src/main/resources/assets/js/app.js
+++ b/helix-ui/src/main/resources/assets/js/app.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 $(document).ready(function() {
     var hashRoute = getHashRoute()
 

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/accordion.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/accordion.min.js b/helix-ui/src/main/resources/assets/js/components/accordion.min.js
deleted file mode 100644
index 54d3d00..0000000
--- a/helix-ui/src/main/resources/assets/js/components/accordion.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-accordion",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){function o(i){var o=t(i),e="auto";if(o.is(":visible"))e=o.outerHeight();else{var a={position:o.css("position"),visibility:o.css("visibility"),display:o.css("display")};e=o.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),o.css(a)}return e}return i.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){i.ready(function(t){setTimeout(function(){i.$("[data-@-accordion]",t).each(function(){var t=i.$(this);t.data("accordion")||i.accordion(t,i.Utils.options(t.attr("data-@-accordion")))})},0)})},init:function(){var i=this;this.element.on("click",this.options.toggle,function(o){o.preventDefault(),i.toggleItem(t(this).data("wrapper"),i.options
 .animate,i.options.collapse)}),this.update(),this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)},toggleItem:function(t,e,a){var n=this;t.data("toggle").toggleClass(this.options.clsactive);var s=t.data("toggle").hasClass(this.options.clsactive);a&&(this.toggle.not(t.data("toggle")).removeClass(this.options.clsactive),this.content.not(t.data("content")).parent().stop().animate({height:0},{easing:this.options.easing,duration:e?this.options.duration:0})),e?t.stop().animate({height:s?o(t.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){s&&i.Utils.checkDisplay(t.data("content")),n.trigger("display.uk.check")}}):(t.stop().height(s?"auto":0),s&&i.Utils.checkDisplay(t.data("content")),this.trigger("display.uk.check")),this.element.trigger("toggle.uk.accordion",[s,t.data("toggle"),t.data("content")])},update:function(){var i,o,e,a=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options.
 containers),this.content.each(function(n){i=t(this),o=i.parent().data("wrapper")?i.parent():t(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent(),e=a.toggle.eq(n),o.data("toggle",e),o.data("content",i),e.data("wrapper",o),i.data("wrapper",o)}),this.element.trigger("update.uk.accordion",[this])}}),i.accordion});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js b/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js
deleted file mode 100644
index d4505f5..0000000
--- a/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-autocomplete",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";var i;return e.component("autocomplete",{defaults:{minLength:3,param:"search",method:"post",delay:300,loadingClass:"@-loading",flipDropdown:!1,skipClass:"@-skip",hoverClass:"@-active",source:null,renderer:null,template:'<ul class="@-nav @-nav-autocomplete @-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>'},visible:!1,value:null,selected:null,boot:function(){e.$html.on("focus.autocomplete.uikit","[data-@-autocomplete]",function(){var t=e.$(this);if(!t.data("autocomplete")){e.autocomplete(t,e.Utils.options(t.attr("data-@-autocomplete")))}}),e.$html.on("click.autocomplete.uikit",function(t){i&&t.target!=i.input[0]&&i.hide()})},init:function(){var t=this,i=!1,s=e.Utils.debounce(function(){return i?i=!1:(t.handle(),void 0)},this.optio
 ns.delay);this.dropdown=this.find(".@-dropdown"),this.template=this.find('script[type="text/autocomplete"]').html(),this.template=e.Utils.template(e.prefix(this.template||this.options.template)),this.input=this.find("input:first").attr("autocomplete","off"),this.dropdown.length||(this.dropdown=e.$('<div class="@-dropdown"></div>').appendTo(this.element)),this.options.flipDropdown&&this.dropdown.addClass(e.prefix("@-dropdown-flip")),this.input.on({keydown:function(e){if(e&&e.which&&!e.shiftKey)switch(e.which){case 13:i=!0,t.selected&&(e.preventDefault(),t.select());break;case 38:e.preventDefault(),t.pick("prev",!0);break;case 40:e.preventDefault(),t.pick("next",!0);break;case 27:case 9:t.hide()}},keyup:s}),this.dropdown.on("click",e.prefix(".@-autocomplete-results > *"),function(){t.select()}),this.dropdown.on("mouseover",e.prefix(".@-autocomplete-results > *"),function(){t.pick(e.$(this))}),this.triggercomplete=s},handle:function(){var t=this,e=this.value;return this.value=this.inpu
 t.val(),this.value.length<this.options.minLength?this.hide():(this.value!=e&&t.request(),this)},pick:function(t,i){var s=this,o=e.$(this.dropdown.find(e.prefix(".@-autocomplete-results")).children(e.prefix(":not(."+this.options.skipClass+")"))),n=!1;if("string"==typeof t||t.hasClass(this.options.skipClass)){if("next"==t||"prev"==t){if(this.selected){var l=o.index(this.selected);n="next"==t?o.eq(l+1<o.length?l+1:0):o.eq(0>l-1?o.length-1:l-1)}else n=o["next"==t?"first":"last"]();n=e.$(n)}}else n=t;if(n&&n.length&&(this.selected=n,o.removeClass(this.options.hoverClass),this.selected.addClass(this.options.hoverClass),i)){var a=n.position().top,r=s.dropdown.scrollTop(),h=s.dropdown.height();(a>h||0>a)&&s.dropdown.scrollTop(r+a)}},select:function(){if(this.selected){var t=this.selected.data();this.trigger("select.uk.autocomplete",[t,this]),t.value&&this.input.val(t.value).trigger("change"),this.hide()}},show:function(){return this.visible?void 0:(this.visible=!0,this.element.addClass("@-o
 pen"),i=this,this)},hide:function(){return this.visible?(this.visible=!1,this.element.removeClass("@-open"),i===this&&(i=!1),this):void 0},request:function(){var e=this,i=function(t){t&&e.render(t),e.element.removeClass(e.options.loadingClass)};if(this.element.addClass(this.options.loadingClass),this.options.source){var s=this.options.source;switch(typeof this.options.source){case"function":this.options.source.apply(this,[i]);break;case"object":if(s.length){var o=[];s.forEach(function(t){t.value&&-1!=t.value.toLowerCase().indexOf(e.value.toLowerCase())&&o.push(t)}),i(o)}break;case"string":var n={};n[this.options.param]=this.value,t.ajax({url:this.options.source,data:n,type:this.options.method,dataType:"json"}).done(function(t){i(t||[])});break;default:i(null)}}else this.element.removeClass(e.options.loadingClass)},render:function(t){return this.dropdown.empty(),this.selected=!1,this.options.renderer?this.options.renderer.apply(this,[t]):t&&t.length&&(this.dropdown.append(this.templa
 te({items:t})),this.show(),this.trigger("show.uk.autocomplete")),this}}),e.autocomplete});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/cover.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/cover.min.js b/helix-ui/src/main/resources/assets/js/components/cover.min.js
deleted file mode 100644
index 3bf7a2a..0000000
--- a/helix-ui/src/main/resources/assets/js/components/cover.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-cover",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";i.component("cover",{defaults:{automute:!0},boot:function(){i.ready(function(t){i.$("[data-@-cover]",t).each(function(){var t=i.$(this);if(!t.data("cover")){i.cover(t,i.Utils.options(t.attr("data-@-cover")))}})})},init:function(){if(this.parent=this.element.parent(),i.$win.on("load resize orientationchange",i.Utils.debounce(function(){this.check()}.bind(this),100)),this.on("display.uk.check",function(){this.element.is(":visible")&&this.check()}.bind(this)),this.check(),this.element.data("cover",this),this.element.is("iframe")&&this.options.automute){var t=this.element.attr("src");this.element.attr("src","").on("load",function(){this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[t,t.indexOf("?")>-1?"&":"?","enablejsapi=1&api=
 1"].join(""))}},check:function(){this.element.css({width:"",height:""}),this.dimension={w:this.element.width(),h:this.element.height()},this.element.attr("width")&&!isNaN(this.element.attr("width"))&&(this.dimension.w=this.element.attr("width")),this.element.attr("height")&&!isNaN(this.element.attr("height"))&&(this.dimension.h=this.element.attr("height")),this.ratio=this.dimension.w/this.dimension.h;var t,i,e=this.parent.width(),n=this.parent.height();e/this.ratio<n?(t=Math.ceil(n*this.ratio),i=n):(t=e,i=Math.ceil(e/this.ratio)),this.element.css({width:t,height:i})}})});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/datepicker.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/datepicker.min.js b/helix-ui/src/main/resources/assets/js/components/datepicker.min.js
deleted file mode 100644
index 0deccb7..0000000
--- a/helix-ui/src/main/resources/assets/js/components/datepicker.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(e){var t;jQuery&&UIkit&&(t=e(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-datepicker",["uikit"],function(){return t||e(jQuery,UIkit)})}(function(e,t){"use strict";var n,a,s=!1;return t.component("datepicker",{defaults:{mobile:!1,weekstart:1,i18n:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},format:"DD.MM.YYYY",offsettop:5,maxDate:!1,minDate:!1,template:function(e,n){var s,i,r,o="";if(n.maxDate!==!1&&(s=isNaN(n.maxDate)?a(n.maxDate,n.format):a().add(n.maxDate,"days")),n.minDate!==!1&&(i=isNaN(n.minDate)?a(n.minDate,n.format):a().add(n.minDate-1,"days")),o+='<div class="@-datepicker-nav">',o+='<a href="" class="@-datepicker-previous"></a>',o+='<a href="" class="@-datepicker-next"></a>',t.formSelect){var u,c,d,l,h=(new Date).getFullYear(),f=[];for(r=0;r<n.i18n.months.length;r++)r==e.month?f.push('<option value="'+r+'" selected>
 '+n.i18n.months[r]+"</option>"):f.push('<option value="'+r+'">'+n.i18n.months[r]+"</option>");for(u='<span class="@-form-select">'+n.i18n.months[e.month]+'<select class="update-picker-month">'+f.join("")+"</select></span>",f=[],d=i?i.year():h-50,l=s?s.year():h+20,r=d;l>=r;r++)r==e.year?f.push('<option value="'+r+'" selected>'+r+"</option>"):f.push('<option value="'+r+'">'+r+"</option>");c='<span class="@-form-select">'+e.year+'<select class="update-picker-year">'+f.join("")+"</select></span>",o+='<div class="@-datepicker-heading">'+u+" "+c+"</div>"}else o+='<div class="@-datepicker-heading">'+n.i18n.months[e.month]+" "+e.year+"</div>";for(o+="</div>",o+='<table class="@-datepicker-table">',o+="<thead>",r=0;r<e.weekdays.length;r++)e.weekdays[r]&&(o+="<th>"+e.weekdays[r]+"</th>");for(o+="</thead>",o+="<tbody>",r=0;r<e.days.length;r++)if(e.days[r]&&e.days[r].length){o+="<tr>";for(var m=0;m<e.days[r].length;m++)if(e.days[r][m]){var _=e.days[r][m],p=[];_.inmonth||p.push("@-datepicker-tab
 le-muted"),_.selected&&p.push("@-active"),s&&_.day>s&&p.push("@-datepicker-date-disabled @-datepicker-table-muted"),i&&i>_.day&&p.push("@-datepicker-date-disabled @-datepicker-table-muted"),o+='<td><a href="" class="'+p.join(" ")+'" data-date="'+_.day.format()+'">'+_.day.format("D")+"</a></td>"}o+="</tr>"}return o+="</tbody>",o+="</table>",t.prefix(o)}},boot:function(){t.$win.on("resize orientationchange",function(){s&&s.hide()}),t.$html.on("focus.datepicker.uikit","[data-@-datepicker]",function(e){var n=t.$(this);if(!n.data("datepicker")){e.preventDefault();{t.datepicker(n,t.Utils.options(n.attr("data-@-datepicker")))}n.trigger("focus")}}),t.$html.on("click.datepicker.uikit",function(e){var a=t.$(e.target);!s||a[0]==n[0]||a.data("datepicker")||a.parents(".@-datepicker:first").length||s.hide()})},init:function(){if(!t.support.touch||"date"!=this.element.attr("type")||this.options.mobile){var i=this;this.current=this.element.val()?a(this.element.val(),this.options.format):a(),this.on
 ("click",function(){s!==i&&i.pick(this.value)}).on("change",function(){i.element.val()&&!a(i.element.val(),i.options.format).isValid()&&i.element.val(a().format(i.options.format))}),n||(n=t.$('<div class="@-dropdown @-datepicker"></div>'),n.on("click",".@-datepicker-next, .@-datepicker-previous, [data-date]",function(e){e.stopPropagation(),e.preventDefault();var i=t.$(this);return i.hasClass("@-datepicker-date-disabled")?!1:(i.is("[data-date]")?(s.element.val(a(i.data("date")).format(s.options.format)).trigger("change"),n.hide(),s=!1):s.add(1*(i.hasClass("@-datepicker-next")?1:-1),"months"),void 0)}),n.on("change",".update-picker-month, .update-picker-year",function(){var t=e(this);s[t.is(".update-picker-year")?"setYear":"setMonth"](Number(t.val()))}),n.appendTo("body"))}},pick:function(e){var i=this.element.offset(),r={top:i.top+this.element.outerHeight()+this.options.offsettop,left:i.left,right:""};this.current=e?a(e,this.options.format):a(),this.initdate=this.current.format("YYYY
 -MM-DD"),this.update(),"right"==t.langdirection&&(r.right=window.innerWidth-(r.left+this.element.outerWidth()),r.left=""),n.css(r).show(),this.trigger("show.uk.datepicker"),s=this},add:function(e,t){this.current.add(e,t),this.update()},setMonth:function(e){this.current.month(e),this.update()},setYear:function(e){this.current.year(e),this.update()},update:function(){var e=this.getRows(this.current.year(),this.current.month()),t=this.options.template(e,this.options);n.html(t),this.trigger("update.uk.datepicker")},getRows:function(e,t){var n=this.options,s=a().format("YYYY-MM-DD"),i=[31,e%4===0&&e%100!==0||e%400===0?29:28,31,30,31,30,31,31,30,31,30,31][t],r=new Date(e,t,1).getDay(),o={month:t,year:e,weekdays:[],days:[]},u=[];o.weekdays=function(){for(var e=0,t=[];7>e;e++){for(var a=e+(n.weekstart||0);a>=7;)a-=7;t.push(n.i18n.weekdays[a])}return t}(),n.weekstart&&n.weekstart>0&&(r-=n.weekstart,0>r&&(r+=7));for(var c=i+r,d=c;d>7;)d-=7;c+=7-d;for(var l,h,f,m,_,p=0,y=0;c>p;p++)l=new Date(e
 ,t,1+(p-r)),h=n.mindate&&l<n.mindate||n.maxdate&&l>n.maxdate,_=!(r>p||p>=i+r),l=a(l),f=this.initdate==l.format("YYYY-MM-DD"),m=s==l.format("YYYY-MM-DD"),u.push({selected:f,today:m,disabled:h,day:l,inmonth:_}),7===++y&&(o.days.push(u),u=[],y=0);return o},hide:function(){s&&s===this&&(n.hide(),s=!1,this.trigger("hide.uk.datepicker"))}}),a=function(e){function t(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function n(e,t){return Yt.call(e,t)}function a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(e){Dt.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function i(e,t){var n=!0;return h(function(){return n&&(s(e),n=!1),t.apply(this,arguments)},t)}function r(e,t){mn[e]||(s(t),mn[e]=!0)}function o(e,t){return function(n
 ){return _(e.call(this,n),t)}}function u(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function c(){}function d(e,t){t!==!1&&F(e),f(this,e),this._d=new Date(+e._d)}function l(e){var t=w(e),n=t.year||0,a=t.quarter||0,s=t.month||0,i=t.week||0,r=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*c+6e4*u+36e5*o,this._days=+r+7*i,this._months=+s+3*a+12*n,this._data={},this._locale=Dt.localeData(),this._bubble()}function h(e,t){for(var a in t)n(t,a)&&(e[a]=t[a]);return n(t,"toString")&&(e.toString=t.toString),n(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t){var n,a,s;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"unde
 fined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=t._pf),"undefined"!=typeof t._locale&&(e._locale=t._locale),Ft.length>0)for(n in Ft)a=Ft[n],s=t[a],"undefined"!=typeof s&&(e[a]=s);return e}function m(e){return 0>e?Math.ceil(e):Math.floor(e)}function _(e,t,n){for(var a=""+Math.abs(e),s=e>=0;a.length<t;)a="0"+a;return(s?n?"+":"":"-")+a}function p(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function y(e,t){var n;return t=x(t,e),e.isBefore(t)?n=p(e,t):(n=p(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function D(e,t){return function(n,a){var s,i;return null===a||isNaN(+a)||(r(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),i=n,n=a,a=i),n="string"==typeof n?+n:n,s=Dt.duration(n,a),g(this,s,e),this}}function g(e,t,n,a){var s=t._milliseconds,i=t._days
 ,r=t._months;a=null==a?!0:a,s&&e._d.setTime(+e._d+s*n),i&&ft(e,"Date",ht(e,"Date")+i*n),r&&lt(e,ht(e,"Month")+r*n),a&&Dt.updateOffset(e,i||r)}function k(e){return"[object Array]"===Object.prototype.toString.call(e)}function M(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function Y(e,t,n){var a,s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0;for(a=0;s>a;a++)(n&&e[a]!==t[a]||!n&&S(e[a])!==S(t[a]))&&r++;return r+i}function v(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=on[e]||un[t]||t}return e}function w(e){var t,a,s={};for(a in e)n(e,a)&&(t=v(a),t&&(s[t]=e[a]));return s}function b(t){var n,a;if(0===t.indexOf("week"))n=7,a="day";else{if(0!==t.indexOf("month"))return;n=12,a="month"}Dt[t]=function(s,i){var r,o,u=Dt._locale[t],c=[];if("number"==typeof s&&(i=s,s=e),o=function(e){var t=Dt().utc().set(a,e);return u.call(Dt._locale,t,s||"")},null!=i)return o(i);for(r=0;n>r;r++)c.push(o(r));return c}}function S(e){var t=+e,n=0;return
  0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function T(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function O(e,t,n){return ot(Dt([e,11,31+t-n]),t,n).week}function W(e){return U(e)?366:365}function U(e){return e%4===0&&e%100!==0||e%400===0}function F(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[wt]<0||e._a[wt]>11?wt:e._a[bt]<1||e._a[bt]>T(e._a[vt],e._a[wt])?bt:e._a[St]<0||e._a[St]>23?St:e._a[Tt]<0||e._a[Tt]>59?Tt:e._a[Ot]<0||e._a[Ot]>59?Ot:e._a[Wt]<0||e._a[Wt]>999?Wt:-1,e._pf._overflowDayOfYear&&(vt>t||t>bt)&&(t=bt),e._pf.overflow=t)}function G(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length)),e._isValid}function C(e){return e?e.toLowerCase().replace("_","-"):e}function z(e){for(var t,n,a,s,i=0;i<e.length;){for(s=C(e[i]).split("-"),t=s.length
 ,n=C(e[i+1]),n=n?n.split("-"):null;t>0;){if(a=I(s.slice(0,t).join("-")))return a;if(n&&n.length>=t&&Y(s,n,!0)>=t-1)break;t--}i++}return null}function I(e){var t=null;if(!Ut[e]&&Gt)try{t=Dt.locale(),require("./locale/"+e),Dt.locale(t)}catch(n){}return Ut[e]}function x(e,t){return t._isUTC?Dt(e).zone(t._offset||0):Dt(e).local()}function L(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function P(e){var t,n,a=e.match(xt);for(t=0,n=a.length;n>t;t++)a[t]=fn[a[t]]?fn[a[t]]:L(a[t]);return function(s){var i="";for(t=0;n>t;t++)i+=a[t]instanceof Function?a[t].call(s,e):a[t];return i}}function H(e,t){return e.isValid()?(t=A(t,e.localeData()),cn[t]||(cn[t]=P(t)),cn[t](e)):e.localeData().invalidDate()}function A(e,t){function n(e){return t.longDateFormat(e)||e}var a=5;for(Lt.lastIndex=0;a>=0&&Lt.test(e);)e=e.replace(Lt,n),Lt.lastIndex=0,a-=1;return e}function j(e,t){var n,a=t._strict;switch(e){case"Q":return qt;case"DDDD":return Rt;case"YYYY":case"GGGG":case"gggg":ret
 urn a?Xt:At;case"Y":case"G":case"g":return Kt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Bt:jt;case"S":if(a)return qt;case"SS":if(a)return Qt;case"SSS":if(a)return Rt;case"DDD":return Ht;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Nt;case"a":case"A":return t._locale._meridiemParse;case"X":return Vt;case"Z":case"ZZ":return Et;case"T":return $t;case"SSSS":return Zt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Qt:Pt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Pt;case"Do":return Jt;default:return n=new RegExp(R(Q(e.replace("\\","")),"i"))}}function Z(e){e=e||"";var t=e.match(Et)||[],n=t[t.length-1]||[],a=(n+"").match(sn)||["-",0,0],s=+(60*a[1])+S(a[2]);return"+"===a[0]?-s:s}function N(e,t,n){var a,s=n._a;switch(e){case"Q":null!=t&&(s[wt]=3*(S(t)-1));break;case"M":case"MM":null!=t&&(s[wt]=S(t)-1);break;case"MMM":case"MMMM":a=n._locale.monthsParse(
 t),null!=a?s[wt]=a:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(s[bt]=S(t));break;case"Do":null!=t&&(s[bt]=S(parseInt(t,10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=S(t));break;case"YY":s[vt]=Dt.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":s[vt]=S(t);break;case"a":case"A":n._isPm=n._locale.isPM(t);break;case"H":case"HH":case"h":case"hh":s[St]=S(t);break;case"m":case"mm":s[Tt]=S(t);break;case"s":case"ss":s[Ot]=S(t);break;case"S":case"SS":case"SSS":case"SSSS":s[Wt]=S(1e3*("0."+t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=Z(t);break;case"dd":case"ddd":case"dddd":a=n._locale.weekdaysParse(t),null!=a?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=S(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=Dt.parseTwoDigitYear(t)}}function E(e){var n,a,s,i,
 r,o,u;n=e._w,null!=n.GG||null!=n.W||null!=n.E?(r=1,o=4,a=t(n.GG,e._a[vt],ot(Dt(),1,4).year),s=t(n.W,1),i=t(n.E,1)):(r=e._locale._week.dow,o=e._locale._week.doy,a=t(n.gg,e._a[vt],ot(Dt(),r,o).year),s=t(n.w,1),null!=n.d?(i=n.d,r>i&&++s):i=null!=n.e?n.e+r:r),u=ut(a,s,i,o,r),e._a[vt]=u.year,e._dayOfYear=u.dayOfYear}function $(e){var n,a,s,i,r=[];if(!e._d){for(s=J(e),e._w&&null==e._a[bt]&&null==e._a[wt]&&E(e),e._dayOfYear&&(i=t(e._a[vt],s[vt]),e._dayOfYear>W(i)&&(e._pf._overflowDayOfYear=!0),a=at(i,0,e._dayOfYear),e._a[wt]=a.getUTCMonth(),e._a[bt]=a.getUTCDate()),n=0;3>n&&null==e._a[n];++n)e._a[n]=r[n]=s[n];for(;7>n;n++)e._a[n]=r[n]=null==e._a[n]?2===n?1:0:e._a[n];e._d=(e._useUTC?at:nt).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm)}}function V(e){var t;e._d||(t=w(e._i),e._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],$(e))}function J(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.ge
 tMonth(),t.getDate()]}function q(e){if(e._f===Dt.ISO_8601)return B(e),void 0;e._a=[],e._pf.empty=!0;var t,n,a,s,i,r=""+e._i,o=r.length,u=0;for(a=A(e._f,e._locale).match(xt)||[],t=0;t<a.length;t++)s=a[t],n=(r.match(j(s,e))||[])[0],n&&(i=r.substr(0,r.indexOf(n)),i.length>0&&e._pf.unusedInput.push(i),r=r.slice(r.indexOf(n)+n.length),u+=n.length),fn[s]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(s),N(s,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(s);e._pf.charsLeftOver=o-u,r.length>0&&e._pf.unusedInput.push(r),e._isPm&&e._a[St]<12&&(e._a[St]+=12),e._isPm===!1&&12===e._a[St]&&(e._a[St]=0),$(e),F(e)}function Q(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,s){return t||n||a||s})}function R(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e){var t,n,s,i,r;if(0===e._f.length)return e._pf.invalidFormat=!0,e._d=new Date(0/0),void 0;for(i=0;i<e._f.length;i++)r=0,t=f({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._pf=a(),t._f=e._f[i],q(t),G(t)&&(r+=t._pf
 .charsLeftOver,r+=10*t._pf.unusedTokens.length,t._pf.score=r,(null==s||s>r)&&(s=r,n=t));h(e,n||t)}function B(e){var t,n,a=e._i,s=en.exec(a);if(s){for(e._pf.iso=!0,t=0,n=nn.length;n>t;t++)if(nn[t][1].exec(a)){e._f=nn[t][0]+(s[6]||" ");break}for(t=0,n=an.length;n>t;t++)if(an[t][1].exec(a)){e._f+=an[t][0];break}a.match(Et)&&(e._f+="Z"),q(e)}else e._isValid=!1}function K(e){B(e),e._isValid===!1&&(delete e._isValid,Dt.createFromInputFallback(e))}function et(e,t){var n,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function tt(t){var n,a=t._i;a===e?t._d=new Date:M(a)?t._d=new Date(+a):null!==(n=Ct.exec(a))?t._d=new Date(+n[1]):"string"==typeof a?K(t):k(a)?(t._a=et(a.slice(0),function(e){return parseInt(e,10)}),$(t)):"object"==typeof a?V(t):"number"==typeof a?t._d=new Date(a):Dt.createFromInputFallback(t)}function nt(e,t,n,a,s,i,r){var o=new Date(e,t,n,a,s,i,r);return 1970>e&&o.setFullYear(e),o}function at(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFul
 lYear(e),t}function st(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function it(e,t,n,a,s){return s.relativeTime(t||1,!!n,e,a)}function rt(e,t,n){var a=Dt.duration(e).abs(),s=Mt(a.as("s")),i=Mt(a.as("m")),r=Mt(a.as("h")),o=Mt(a.as("d")),u=Mt(a.as("M")),c=Mt(a.as("y")),d=s<dn.s&&["s",s]||1===i&&["m"]||i<dn.m&&["mm",i]||1===r&&["h"]||r<dn.h&&["hh",r]||1===o&&["d"]||o<dn.d&&["dd",o]||1===u&&["M"]||u<dn.M&&["MM",u]||1===c&&["y"]||["yy",c];return d[2]=t,d[3]=+e>0,d[4]=n,it.apply({},d)}function ot(e,t,n){var a,s=n-t,i=n-e.day();return i>s&&(i-=7),s-7>i&&(i+=7),a=Dt(e).add(i,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function ut(e,t,n,a,s){var i,r,o=at(e,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:s,i=s-o+(o>a?7:0)-(s>o?7:0),r=7*(t-1)+(n-s)+i+1,{year:r>0?e:e-1,dayOfYear:r>0?r:W(e-1)+r}}function ct(t){var n=t._i,a=t._f;return t._locale=t._locale||Dt.localeData(t._l),null===n||a===e&&""===n?Dt.inva
 lid({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),Dt.isMoment(n)?new d(n,!0):(a?k(a)?X(t):q(t):tt(t),new d(t)))}function dt(e,t){var n,a;if(1===t.length&&k(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],a=1;a<t.length;++a)t[a][e](n)&&(n=t[a]);return n}function lt(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),T(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function ht(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function ft(e,t,n){return"Month"===t?lt(e,n):e._d["set"+(e._isUTC?"UTC":"")+t](n)}function mt(e,t){return function(n){return null!=n?(ft(this,e,n),Dt.updateOffset(this,t),this):ht(this,e)}}function _t(e){return 400*e/146097}function pt(e){return 146097*e/400}function yt(e){Dt.duration.fn[e]=function(){return this._data[e]}}for(var Dt,gt,kt="2.8.3",Mt=Math.round,Yt=Object.prototype.hasOwnProperty,vt=0,wt=1,bt=2,St=3,Tt=4,Ot=5,Wt=6,Ut={},Ft=[],Gt="undefined"!=typeof modu
 le&&module.exports,Ct=/^\/?Date\((\-?\d+)/i,zt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,It=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,xt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,Lt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Pt=/\d\d?/,Ht=/\d{1,3}/,At=/\d{1,4}/,jt=/[+\-]?\d{1,6}/,Zt=/\d+/,Nt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Et=/Z|[\+\-]\d\d:?\d\d/gi,$t=/T/i,Vt=/[\+\-]?\d+(\.\d{1,3})?/,Jt=/\d{1,2}/,qt=/\d/,Qt=/\d\d/,Rt=/\d{3}/,Xt=/\d{4}/,Bt=/[+-]?\d{6}/,Kt=/[+-]?\d+/,en=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tn="YYYY-MM-DDTHH:mm:ssZ",nn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD
 ",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],an=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],sn=/([\+\-]|\d\d)/gi,rn=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),on={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},un={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},cn={},dn={s:45,m:45,h:22,d:26,M:11},ln="DDD w W M D d".split(" "),hn="M D H h m s w W".split(" "),fn={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(
 ){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return _(this.year()%100,2)},YYYY:function(){return _(this.year(),4)},YYYYY:function(){return _(this.year(),5)},YYYYYY:function(){var e=this.year(),t=e>=0?"+":"-";return t+_(Math.abs(e),6)},gg:function(){return _(this.weekYear()%100,2)},gggg:function(){return _(this.weekYear(),4)},ggggg:function(){return _(this.weekYear(),5)},GG:function(){return _(this.isoWeekYear()%100,2)},GGGG:function(){return _(this.isoWeekYear(),4)},GGGGG:function(){return _(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:fun
 ction(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return S(this.milliseconds()/100)},SS:function(){return _(S(this.milliseconds()/10),2)},SSS:function(){return _(this.milliseconds(),3)},SSSS:function(){return _(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+_(S(e/60),2)+":"+_(S(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+_(S(e/60),2)+_(S(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},mn={},_n=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ln.length;)gt=ln.pop(),fn[gt+"o"]=u(fn[gt],gt);for(;hn.length;)gt=hn.pop(),fn[gt+gt]=o(fn[gt],2);fn.DDDD=o(fn.DDD,3),h(c.prototype,{set:function(e){var t,n;for(n in e)t
 =e[n],"function"==typeof t?this[n]=t:this["_"+n]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e){var t,n,a;for(this._monthsParse||(this._monthsParse=[]),t=0;12>t;t++)if(this._monthsParse[t]||(n=Dt.utc([2e3,t]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[t]=new RegExp(a.replace(".",""),"i")),this._monthsParse[t].test(e))return t},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysPa
 rse:function(e){var t,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Dt([2e3,1]).day(t),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:funct
 ion(e,t){var n=this._calendar[e];return"function"==typeof n?n.apply(t):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,a){var s=this._relativeTime[n];return"function"==typeof s?s(e,t,n,a):s.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",preparse:function(e){return e},postformat:function(e){return e},week:function(e){return ot(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),Dt=function(t,n,s,i){var r;return"boolean"==typeof s&&(i=s,s=e),r={},r._isAMomentObject=!0,r._i=t,r._f=n,r._l=s,r._strict=i,r._isUTC=!1,r._pf=a(),ct(r)},Dt.suppressDeprecationWarnings=!1,Dt
 .createFromInputFallback=i("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i)}),Dt.min=function(){var e=[].slice.call(arguments,0);return dt("isBefore",e)},Dt.max=function(){var e=[].slice.call(arguments,0);return dt("isAfter",e)},Dt.utc=function(t,n,s,i){var r;return"boolean"==typeof s&&(i=s,s=e),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=s,r._i=t,r._f=n,r._strict=i,r._pf=a(),ct(r).utc()},Dt.unix=function(e){return Dt(1e3*e)},Dt.duration=function(e,t){var a,s,i,r,o=e,u=null;return Dt.isDuration(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(u=zt.exec(e))?(a="-"===u[1]?-1:1,o={y:0,d:S(u[bt])*a,h:S(u[St])*a,m:S(u[Tt])*a,s:S(u[Ot])*a,ms:S(u[Wt])*a}):(u=It.exec(e))?(a="-"===u[1]?-1:1,i=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?
 0:t)*a},o={y:i(u[2]),M:i(u[3]),d:i(u[4]),h:i(u[5]),m:i(u[6]),s:i(u[7]),w:i(u[8])}):"object"==typeof o&&("from"in o||"to"in o)&&(r=y(Dt(o.from),Dt(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),s=new l(o),Dt.isDuration(e)&&n(e,"_locale")&&(s._locale=e._locale),s},Dt.version=kt,Dt.defaultFormat=tn,Dt.ISO_8601=function(){},Dt.momentProperties=Ft,Dt.updateOffset=function(){},Dt.relativeTimeThreshold=function(t,n){return dn[t]===e?!1:n===e?dn[t]:(dn[t]=n,!0)},Dt.lang=i("moment.lang is deprecated. Use moment.locale instead.",function(e,t){return Dt.locale(e,t)}),Dt.locale=function(e,t){var n;return e&&(n="undefined"!=typeof t?Dt.defineLocale(e,t):Dt.localeData(e),n&&(Dt.duration._locale=Dt._locale=n)),Dt._locale._abbr},Dt.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ut[e]||(Ut[e]=new c),Ut[e].set(t),Dt.locale(e),Ut[e]):(delete Ut[e],null)},Dt.langData=i("moment.langData is deprecated. Use moment.localeData instead.",function(e){return Dt.localeData(e)}),Dt.localeData=function(e){va
 r t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Dt._locale;if(!k(e)){if(t=I(e))return t;e=[e]}return z(e)},Dt.isMoment=function(e){return e instanceof d||null!=e&&n(e,"_isAMomentObject")},Dt.isDuration=function(e){return e instanceof l};for(gt=_n.length-1;gt>=0;--gt)b(_n[gt]);Dt.normalizeUnits=function(e){return v(e)},Dt.invalid=function(e){var t=Dt.utc(0/0);return null!=e?h(t._pf,e):t._pf.userInvalidated=!0,t},Dt.parseZone=function(){return Dt.apply(null,arguments).parseZone()},Dt.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)},h(Dt.fn=d.prototype,{clone:function(){return Dt(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=Dt(this).utc();return 0<e.year()&&e.year()<=9999?H(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z
 ]"):H(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return G(this)},isDSTShifted:function(){return this._a?this.isValid()&&Y(this._a,(this._isUTC?Dt.utc(this._a):Dt(this._a)).toArray())>0:!1},parsingFlags:function(){return h({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),"m")),this},format:function(e){var t=H(this,e||Dt.defaultFormat);return this.localeData().postformat(t)},add:D(1,"add"),subtract:D(-1,"subtract"),diff:function(e,t,n){var a,s,i,r=x(e,this),o=6e4*(this.zone()-r.zone());return t=v(t),"year"===t||"month"===t?(a=432e5*(this.daysInMonth()+r.daysInMonth()),s=12*(this.year()-r.year())+(this.month()-r.month()),i=this-Dt(this).startOf("month")-(r-Dt(r).startOf("month")),i-=6e4*(this.zone()-Dt(this
 ).startOf("month").zone()-(r.zone()-Dt(r).startOf("month").zone())),s+=i/a,"year"===t&&(s/=12)):(a=this-r,s="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-o)/864e5:"week"===t?(a-o)/6048e5:a),n?s:m(s)},from:function(e,t){return Dt.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(Dt(),e)},calendar:function(e){var t=e||Dt(),n=x(t,this).startOf("day"),a=this.diff(n,"days",!0),s=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(s,this))},isLeapYear:function(){return U(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=st(e,this.localeData()),this.add(e-t,"d")):t},month:mt("Month",!0),startOf:function(e){switch(e=v(e)){case"year":this.month(0);case"quarter":case"mon
 th":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e?this.weekday(0):"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(e){return e=v(e),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},isAfter:function(e,t){return t=v("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=Dt.isMoment(e)?e:Dt(e),+this>+e):+this.clone().startOf(t)>+Dt(e).startOf(t)},isBefore:function(e,t){return t=v("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=Dt.isMoment(e)?e:Dt(e),+e>+this):+this.clone().startOf(t)<+Dt(e).startOf(t)},isSame:function(e,t){return t=v(t||"millisecond"),"millisecond"===t?(e=Dt.isMoment(e)?e:Dt(e),+this===+e):+this.clone().startOf(t)===+x(e,this).startOf(t)},min:i("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(e){re
 turn e=Dt.apply(null,arguments),this>e?this:e}),max:i("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(e){return e=Dt.apply(null,arguments),e>this?this:e}),zone:function(e,t){var n,a=this._offset||0;return null==e?this._isUTC?a:this._dateTzOffset():("string"==typeof e&&(e=Z(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==e&&(!t||this._changeInProgress?g(this,Dt.duration(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Dt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?Dt(e).zone():0,(this.zone()-e)%60===0},daysInMonth:function(){return T(this
 .year(),this.month())},dayOfYear:function(e){var t=Mt((Dt(this).startOf("day")-Dt(this).startOf("year"))/864e5)+1;
-return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=ot(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=ot(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=ot(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return O(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return O(this.year(),e.dow,e.doy)},get:function(e){return e=v(e),this[e]()},set:function(e,t){return e=v(e),"function"==typeof this[e]&&this[e](t),this},locale:function(t){
 var n;return t===e?this._locale._abbr:(n=Dt.localeData(t),null!=n&&(this._locale=n),this)},lang:i("moment().lang() is deprecated. Use moment().localeData() instead.",function(t){return t===e?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Dt.fn.millisecond=Dt.fn.milliseconds=mt("Milliseconds",!1),Dt.fn.second=Dt.fn.seconds=mt("Seconds",!1),Dt.fn.minute=Dt.fn.minutes=mt("Minutes",!1),Dt.fn.hour=Dt.fn.hours=mt("Hours",!0),Dt.fn.date=mt("Date",!0),Dt.fn.dates=i("dates accessor is deprecated. Use date instead.",mt("Date",!0)),Dt.fn.year=mt("FullYear",!0),Dt.fn.years=i("years accessor is deprecated. Use year instead.",mt("FullYear",!0)),Dt.fn.days=Dt.fn.day,Dt.fn.months=Dt.fn.month,Dt.fn.weeks=Dt.fn.week,Dt.fn.isoWeeks=Dt.fn.isoWeek,Dt.fn.quarters=Dt.fn.quarter,Dt.fn.toJSON=Dt.fn.toISOString,h(Dt.duration.fn=l.prototype,{_bubble:function(){var e,t,n,a=this._milliseconds,s=this._
 days,i=this._months,r=this._data,o=0;r.milliseconds=a%1e3,e=m(a/1e3),r.seconds=e%60,t=m(e/60),r.minutes=t%60,n=m(t/60),r.hours=n%24,s+=m(n/24),o=m(_t(s)),s-=m(pt(o)),i+=m(s/30),s%=30,o+=m(i/12),i%=12,r.days=s,r.months=i,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return m(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12)},humanize:function(e){var t=rt(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=Dt.duration(e
 ,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=Dt.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=v(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;if(e=v(e),"month"===e||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*_t(t),"month"===e?n:n/12;switch(t=this._days+pt(this._months/12),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second":return 24*t*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:Dt.fn.lang,locale:Dt.fn.locale,toIsoString:i("toIsoString() is deprecated. Please use toISOString() instead (notice the
  capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),s=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(a||s||i?"T":"")+(a?a+"H":"")+(s?s+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale}}),Dt.duration.fn.toString=Dt.duration.fn.toISOString;for(gt in rn)n(rn,gt)&&yt(gt.toLowerCase());return Dt.duration.fn.asMilliseconds=function(){return this.as("ms")},Dt.duration.fn.asSeconds=function(){return this.as("s")},Dt.duration.fn.asMinutes=function(){return this.as("m")},Dt.duration.fn.asHours=function(){return this.as("h")},Dt.duration.fn.asDays=function(){return this.as("d")},Dt.duration.fn.asWeeks=function(){return this.as("weeks")},Dt.duration.fn.asMonths=function(){return this.as("M")},Dt.duration.fn.asYears=function(){r
 eturn this.as("y")},Dt.locale("en",{ordinal:function(e){var t=e%10,n=1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),Dt}.call(this),t.Utils.moment=a,t.datepicker});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/form-password.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/form-password.min.js b/helix-ui/src/main/resources/assets/js/components/form-password.min.js
deleted file mode 100644
index 12730a4..0000000
--- a/helix-ui/src/main/resources/assets/js/components/form-password.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-password",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";return i.component("formPassword",{defaults:{lblShow:"Show",lblHide:"Hide"},boot:function(){i.$html.on("click.formpassword.uikit","[data-@-form-password]",function(t){var e=i.$(this);if(!e.data("formPassword")){t.preventDefault();{i.formPassword(e,i.Utils.options(e.attr("data-@-form-password")))}e.trigger("click")}})},init:function(){var t=this;this.on("click",function(i){if(i.preventDefault(),t.input.length){var e=t.input.attr("type");t.input.attr("type","text"==e?"password":"text"),t.element.text(t.options["text"==e?"lblShow":"lblHide"])}}),this.input=this.element.next("input").length?this.element.next("input"):this.element.prev("input"),this.element.text(this.options[this.input.is("[type='password']")?"lblShow":"lblHide"]),this.element.data("formPassword",this)}}),i.formPassword});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/form-select.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/form-select.min.js b/helix-ui/src/main/resources/assets/js/components/form-select.min.js
deleted file mode 100644
index 5dcb8bd..0000000
--- a/helix-ui/src/main/resources/assets/js/components/form-select.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-select",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";return e.component("formSelect",{defaults:{target:">span:first"},boot:function(){e.ready(function(t){e.$("[data-@-form-select]",t).each(function(){var t=e.$(this);if(!t.data("formSelect")){e.formSelect(t,e.Utils.options(t.attr("data-@-form-select")))}})})},init:function(){var t=this;this.target=this.find(this.options.target),this.select=this.find("select"),this.select.on("change",function(){var e=t.select[0],i=function(){try{t.target.text(e.options[e.selectedIndex].text)}catch(n){}return i};return i()}()),this.element.data("formSelect",this)}}),e.formSelect});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/grid.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/grid.min.js b/helix-ui/src/main/resources/assets/js/components/grid.min.js
deleted file mode 100644
index b200840..0000000
--- a/helix-ui/src/main/resources/assets/js/components/grid.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-grid",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";function e(t){return n(t)}i.component("grid",{defaults:{colwidth:"auto",animation:!0,duration:200,gutter:0,controls:!1},boot:function(){i.ready(function(t){i.$("[data-@-grid]",t).each(function(){var t=i.$(this);if(!t.data("grid")){i.grid(t,i.Utils.options(t.attr("data-@-grid")))}})})},init:function(){var e=this;if(this.element.css({position:"relative"}),this.options.controls){var n=t(this.options.controls);n.on("click","[data-uk-filter]",function(i){i.preventDefault(),e.filter(t(this).data("ukFilter"))}),n.on("click","[data-uk-sort]",function(i){i.preventDefault();var n=t(this).data("ukSort").split(":");e.sort(n[0],n[1])})}i.$win.on("load resize orientationchange",i.Utils.debounce(function(){this.updateLayout()}.bind(this),100)),this.updateLayout(),this.on("display.@.check",function(){e.element.i
 s(":visible")&&e.updateLayout()}),i.$html.on("changed.@.dom",function(){e.updateLayout()})},_prepareElements:function(){var t,i=this.element.children(":not([data-grid-prepared])");i.length&&(t={position:"absolute","box-sizing":"border-box",width:"auto"==this.options.colwidth?"":this.options.colwidth},this.options.gutter&&(t["padding-left"]=this.options.gutter,t["padding-bottom"]=this.options.gutter,this.element.css("margin-left",-1*this.options.gutter)),i.attr("data-grid-prepared","true").css(t))},updateLayout:function(i){this._prepareElements(),i=i||this.element.children(":visible");var n,o,r,a,d,h,s,u,f=this.options.gutter,p=i,l=this.element.width()+2*f+2,c=0,g=0,m=[];this.trigger("beforeupdate.@.grid",[p]),p.each(function(){for(u=e(this),n=t(this),o=u.outerWidth,r=u.outerHeight,c=0,g=0,d=0,s=m.length;s>d;d++)a=m[d],c<=a.aX&&(c=a.aX),c+o>l&&(c=0),g<=a.aY&&(g=a.aY);m.push({ele:n,top:g,left:c,width:o,height:r,aY:g+r,aX:c+o})});var v,b=0;for(d=0,s=m.length;s>d;d++){for(a=m[d],g=0,h=0
 ;d>h;h++)v=m[h],a.left<v.aX&&v.left+1<a.aX&&(g=v.aY);a.top=g,a.aY=g+a.height,b=Math.max(b,a.aY)}b-=f,this.options.animation?(this.element.stop().animate({height:b},100),m.forEach(function(t){t.ele.stop().animate({top:t.top,left:t.left},this.options.duration)}.bind(this))):(this.element.css("height",b),m.forEach(function(t){t.ele.css({top:t.top,left:t.left})}.bind(this))),this.trigger("afterupdate.@.grid",[p])},filter:function(i){i=i||[],"string"==typeof i&&(i=i.split(/,/).map(function(t){return t.trim()}));var e=this.element.children(),n={visible:[],hidden:[]};e.each(function(){var e=t(this),o=e.data("ukFilter"),r=i.length?!1:!0;o&&(o=o.split(/,/).map(function(t){return t.trim()}),i.forEach(function(t){o.indexOf(t)>-1&&(r=!0)})),n[r?"visible":"hidden"].push(e)}),n.hidden=t(n.hidden).map(function(){return this[0]}),n.visible=t(n.visible).map(function(){return this[0]}),n.hidden.fadeOut(this.options.duration),n.visible.show(),this.updateLayout(n.visible)},sort:function(i,e){e=e||1,"st
 ring"==typeof e&&(e="desc"==e.toLowerCase()?-1:1);var n=this.element.children();n.sort(function(n,o){return n=t(n),o=t(o),(o.data(i)||"")<(n.data(i)||"")?e:-1*e}).appendTo(this.element),this.updateLayout(n.filter(":visible"))}});var n=function(){function t(t){if(t){if("string"==typeof u[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i,e=0,n=s.length;n>e;e++)if(i=s[e]+t,"string"==typeof u[i])return i}}function i(t){var i=parseFloat(t),e=-1===t.indexOf("%")&&!isNaN(i);return e&&i}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0,e=p.length;e>i;i++){var n=p[i];t[n]=0}return t}function o(){if(!l){l=!0;var e=window.getComputedStyle;if(a=function(){var t=e?function(t){return e(t,null)}:function(t){return t.currentStyle};return function(i){var e=t(i);return e||f("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}}(),d=t("boxSizing")){var n=document.crea
 teElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[d]="border-box";var o=document.body||document.documentElement;o.appendChild(n);var r=a(n);h=200===i(r.width),o.removeChild(n)}}}function r(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=a(t);if("none"===e.display)return n();var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var s=r.isBorderBox=!(!d||!e[d]||"border-box"!==e[d]),u=0,f=p.length;f>u;u++){var l=p[u],c=e[l],g=parseFloat(c);r[l]=isNaN(g)?0:g}var m=r.paddingLeft+r.paddingRight,v=r.paddingTop+r.paddingBottom,b=r.marginLeft+r.marginRight,y=r.marginTop+r.marginBottom,w=r.borderLeftWidth+r.borderRightWidth,x=r.borderTopWidth+r.borderBottomWidth,W=s&&h,k=i(e.width);k!==!1&&(r.width=k+(W?0:m+w));var L=i(e.height);return L!==!1&&(r.height=L+(W?0:v+x)),r.innerWidth=r.width-(m+w),r.innerHeight=r.height-(v+x),r.outerWidth=r.widt
 h+b,r.outerHeight=r.height+y,r}}var a,d,h,s="Webkit Moz ms Ms O".split(" "),u=document.documentElement.style,f="undefined"==typeof console?e:function(t){console.error(t)},p=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],l=!1;return r}()});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js b/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js
deleted file mode 100644
index 982e4b1..0000000
--- a/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-htmleditor",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";var i=[];return e.component("htmleditor",{defaults:{iframe:!1,mode:"split",markdown:!1,autocomplete:!0,height:500,maxsplitsize:1e3,markedOptions:{gfm:!0,tables:!0,breaks:!0,pedantic:!0,sanitize:!1,smartLists:!0,smartypants:!1,langPrefix:"lang-"},codemirror:{mode:"htmlmixed",lineWrapping:!0,dragDrop:!1,autoCloseTags:!0,matchTags:!0,autoCloseBrackets:!0,matchBrackets:!0,indentUnit:4,indentWithTabs:!1,tabSize:4,hintOptions:{completionSingle:!1}},toolbar:["bold","italic","strike","link","image","blockquote","listUl","listOl"],lblPreview:"Preview",lblCodeview:"HTML",lblMarkedview:"Markdown"},boot:function(){e.ready(function(t){e.$("textarea[data-@-htmleditor]",t).each(function(){var t,i=e.$(this);i.data("htmleditor")||(t=e.htmleditor(i,e.Utils.options(i.attr("data-@-htmleditor"))))})})},init:fun
 ction(){var o=this,r=e.components.htmleditor.template;this.CodeMirror=this.options.CodeMirror||CodeMirror,this.buttons={},r=r.replace(/\{:lblPreview\}/g,this.options.lblPreview),r=r.replace(/\{:lblCodeview\}/g,this.options.lblCodeview),this.htmleditor=e.$(r),this.content=this.htmleditor.find(".@-htmleditor-content"),this.toolbar=this.htmleditor.find(".@-htmleditor-toolbar"),this.preview=this.htmleditor.find(".@-htmleditor-preview").children().eq(0),this.code=this.htmleditor.find(".@-htmleditor-code"),this.element.before(this.htmleditor).appendTo(this.code),this.editor=this.CodeMirror.fromTextArea(this.element[0],this.options.codemirror),this.editor.htmleditor=this,this.editor.on("change",e.Utils.debounce(function(){o.render()},150)),this.editor.on("change",function(){o.editor.save()}),this.code.find(".CodeMirror").css("height",this.options.height),this.options.iframe?(this.iframe=e.$('<iframe class="@-htmleditor-iframe" frameborder="0" scrolling="auto" height="100" width="100%"></if
 rame>'),this.preview.append(this.iframe),this.iframe[0].contentWindow.document.open(),this.iframe[0].contentWindow.document.close(),this.preview.container=t(this.iframe[0].contentWindow.document).find("body"),"string"==typeof this.options.iframe&&this.preview.container.parent().append('<link rel="stylesheet" href="'+this.options.iframe+'">')):this.preview.container=this.preview,e.$win.on("resize",e.Utils.debounce(function(){o.fit()},200));var n=this.iframe?this.preview.container:o.preview.parent(),l=this.code.find(".CodeMirror-sizer"),s=this.code.find(".CodeMirror-scroll").on("scroll",e.Utils.debounce(function(){if("tab"!=o.htmleditor.attr("data-mode")){var t=l.height()-s.height(),e=n[0].scrollHeight-(o.iframe?o.iframe.height():n.height()),i=e/t,r=s.scrollTop()*i;n.scrollTop(r)}},10));this.htmleditor.on("click",".@-htmleditor-button-code, .@-htmleditor-button-preview",function(t){t.preventDefault(),"tab"==o.htmleditor.attr("data-mode")&&(o.htmleditor.find(".@-htmleditor-button-code,
  .@-htmleditor-button-preview").removeClass("@-active").filter(this).addClass("@-active"),o.activetab=e.$(this).hasClass("@-htmleditor-button-code")?"code":"preview",o.htmleditor.attr("data-active-tab",o.activetab),o.editor.refresh())}),this.htmleditor.on("click","a[data-htmleditor-button]",function(){o.code.is(":visible")&&o.trigger("action."+e.$(this).data("htmleditor-button"),[o.editor])}),this.preview.parent().css("height",this.code.height()),this.options.autocomplete&&this.CodeMirror.showHint&&this.CodeMirror.hint&&this.CodeMirror.hint.html&&this.editor.on("inputRead",e.Utils.debounce(function(){var t=o.editor.getDoc(),e=t.getCursor(),i=o.CodeMirror.innerMode(o.editor.getMode(),o.editor.getTokenAt(e).state).mode.name;if("xml"==i){var r=o.editor.getCursor(),n=o.editor.getTokenAt(r);("<"==n.string.charAt(0)||"attribute"==n.type)&&o.CodeMirror.showHint(o.editor,o.CodeMirror.hint.html,{completeSingle:!1})}},100)),this.debouncedRedraw=e.Utils.debounce(function(){o.redraw()},5),this.
 on("init.uk.component",function(){o.redraw()}),this.element.attr("data-@-check-display",1).on("display.uk.check",function(){this.htmleditor.is(":visible")&&this.fit()}.bind(this)),i.push(this)},addButton:function(t,e){this.buttons[t]=e},addButtons:function(e){t.extend(this.buttons,e)},replaceInPreview:function(t,e){function i(t){var e=o.getValue().substring(0,t).split("\n");return{line:e.length-1,ch:e[e.length-1].length}}var o=this.editor,r=[],n=o.getValue(),l=-1;return this.currentvalue=this.currentvalue.replace(t,function(){l=n.indexOf(arguments[0],++l);var t={matches:arguments,from:i(l),to:i(l+arguments[0].length),replace:function(e){o.replaceRange(e,t.from,t.to)},inRange:function(e){return e.line===t.from.line&&e.line===t.to.line?e.ch>=t.from.ch&&e.ch<t.to.ch:e.line===t.from.line&&e.ch>=t.from.ch||e.line>t.from.line&&e.line<t.to.line||e.line===t.to.line&&e.ch<t.to.ch}},s=e(t);return s?(r.push(t),s):arguments[0]}),r},_buildtoolbar:function(){if(this.options.toolbar&&this.options.
 toolbar.length){var t=this,i=[];this.toolbar.empty(),this.options.toolbar.forEach(function(e){if(t.buttons[e]){var o=t.buttons[e].title?t.buttons[e].title:e;i.push('<li><a data-htmleditor-button="'+e+'" title="'+o+'" data-@-tooltip>'+t.buttons[e].label+"</a></li>")}}),this.toolbar.html(e.prefix(i.join("\n")))}},fit:function(){var t=this.options.mode;"split"==t&&this.htmleditor.width()<this.options.maxsplitsize&&(t="tab"),"tab"==t&&(this.activetab||(this.activetab="code",this.htmleditor.attr("data-active-tab",this.activetab)),this.htmleditor.find(".@-htmleditor-button-code, .@-htmleditor-button-preview").removeClass("@-active").filter("code"==this.activetab?".@-htmleditor-button-code":".@-htmleditor-button-preview").addClass("@-active")),this.editor.refresh(),this.preview.parent().css("height",this.code.height()),this.htmleditor.attr("data-mode",t)},redraw:function(){this._buildtoolbar(),this.render(),this.fit()},getMode:function(){return this.editor.getOption("mode")},getCursorMode:
 function(){var t={mode:"html"};return this.trigger("cursorMode",[t]),t.mode},render:function(){return this.currentvalue=this.editor.getValue(),this.currentvalue?(this.trigger("render",[this]),this.trigger("renderLate",[this]),this.preview.container.html(this.currentvalue),void 0):(this.element.val(""),this.preview.container.html(""),void 0)},addShortcut:function(e,i){var o={};return t.isArray(e)||(e=[e]),e.forEach(function(t){o[t]=i}),this.editor.addKeyMap(o),o},addShortcutAction:function(t,e){var i=this;this.addShortcut(e,function(){i.element.trigger("action."+t,[i.editor])})},replaceSelection:function(t){var e=this.editor.getSelection();if(!e.length){for(var i=this.editor.getCursor(),o=this.editor.getLine(i.line),r=i.ch,n=r;n<o.length&&/[\w$]+/.test(o.charAt(n));)++n;for(;r&&/[\w$]+/.test(o.charAt(r-1));)--r;var l=r!=n&&o.slice(r,n);l&&(this.editor.setSelection({line:i.line,ch:r},{line:i.line,ch:n}),e=l)}var s=t.replace("$1",e);this.editor.replaceSelection(s,"end"),this.editor.foc
 us()},replaceLine:function(t){var e=this.editor.getDoc().getCursor(),i=this.editor.getLine(e.line),o=t.replace("$1",i);this.editor.replaceRange(o,{line:e.line,ch:0},{line:e.line,ch:i.length}),this.editor.setCursor({line:e.line,ch:o.length}),this.editor.focus()},save:function(){this.editor.save()}}),e.components.htmleditor.template=['<div class="@-htmleditor @-clearfix" data-mode="split">','<div class="@-htmleditor-navbar">','<ul class="@-htmleditor-navbar-nav @-htmleditor-toolbar"></ul>','<div class="@-htmleditor-navbar-flip">','<ul class="@-htmleditor-navbar-nav">','<li class="@-htmleditor-button-code"><a>{:lblCodeview}</a></li>','<li class="@-htmleditor-button-preview"><a>{:lblPreview}</a></li>','<li><a data-htmleditor-button="fullscreen"><i class="@-icon-expand"></i></a></li>',"</ul>","</div>","</div>",'<div class="@-htmleditor-content">','<div class="@-htmleditor-code"></div>','<div class="@-htmleditor-preview"><div></div></div>',"</div>","</div>"].join(""),e.plugin("htmleditor"
 ,"base",{init:function(t){function i(e,i,o){t.on("action."+e,function(){"html"==t.getCursorMode()&&t["replaceLine"==o?"replaceLine":"replaceSelection"](i)})}t.addButtons({fullscreen:{title:"Fullscreen",label:'<i class="@-icon-expand"></i>'},bold:{title:"Bold",label:'<i class="@-icon-bold"></i>'},italic:{title:"Italic",label:'<i class="@-icon-italic"></i>'},strike:{title:"Strikethrough",label:'<i class="@-icon-strikethrough"></i>'},blockquote:{title:"Blockquote",label:'<i class="@-icon-quote-right"></i>'},link:{title:"Link",label:'<i class="@-icon-link"></i>'},image:{title:"Image",label:'<i class="@-icon-picture-o"></i>'},listUl:{title:"Unordered List",label:'<i class="@-icon-list-ul"></i>'},listOl:{title:"Ordered List",label:'<i class="@-icon-list-ol"></i>'}}),i("bold","<strong>$1</strong>"),i("italic","<em>$1</em>"),i("strike","<del>$1</del>"),i("blockquote","<blockquote><p>$1</p></blockquote>","replaceLine"),i("link",'<a href="http://">$1</a>'),i("image",'<img src="http://" alt="$
 1">');var o=function(){if("html"==t.getCursorMode()){for(var e=t.editor,i=e.getDoc().getCursor(!0),o=e.getDoc().getCursor(!1),r=i.line;r<o.line+1;r++)e.replaceRange("<li>"+e.getLine(r)+"</li>",{line:r,ch:0},{line:r,ch:e.getLine(r).length});e.setCursor({line:o.line,ch:e.getLine(o.line).length}),e.focus()}};t.on("action.listUl",function(){o()}),t.on("action.listOl",function(){o()}),t.htmleditor.on("click",'a[data-htmleditor-button="fullscreen"]',function(){t.htmleditor.toggleClass("@-htmleditor-fullscreen");var i=t.editor.getWrapperElement();if(t.htmleditor.hasClass("@-htmleditor-fullscreen"))t.editor.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:i.style.width,height:i.style.height},i.style.width="",i.style.height=t.content.height()+"px",document.documentElement.style.overflow="hidden";else{document.documentElement.style.overflow="";var o=t.editor.state.fullScreenRestore;i.style.width=o.width,i.style.height=o.height,window.scrollTo(o.scrollL
 eft,o.scrollTop)}setTimeout(function(){t.fit(),e.$win.trigger("resize")},50)}),t.addShortcut(["Ctrl-S","Cmd-S"],function(){t.element.trigger("htmleditor-save",[t])}),t.addShortcutAction("bold",["Ctrl-B","Cmd-B"])}}),e.plugin("htmleditor","markdown",{init:function(e){function i(){e.editor.setOption("mode","gfm"),e.htmleditor.find(".@-htmleditor-button-code a").html(e.options.lblMarkedview)}function o(t,i,o){e.on("action."+t,function(){"markdown"==e.getCursorMode()&&e["replaceLine"==o?"replaceLine":"replaceSelection"](i)})}var r=e.options.marked||marked;r&&(r.setOptions(e.options.markedOptions),e.options.markdown&&i(),o("bold","**$1**"),o("italic","*$1*"),o("strike","~~$1~~"),o("blockquote","> $1","replaceLine"),o("link","[$1](http://)"),o("image","![$1](http://)"),e.on("action.listUl",function(){if("markdown"==e.getCursorMode()){for(var t=e.editor,i=t.getDoc().getCursor(!0),o=t.getDoc().getCursor(!1),r=i.line;r<o.line+1;r++)t.replaceRange("* "+t.getLine(r),{line:r,ch:0},{line:r,ch:t.
 getLine(r).length});t.setCursor({line:o.line,ch:t.getLine(o.line).length}),t.focus()}}),e.on("action.listOl",function(){if("markdown"==e.getCursorMode()){var t=e.editor,i=t.getDoc().getCursor(!0),o=t.getDoc().getCursor(!1),r=1;if(i.line>0){var n,l=t.getLine(i.line-1);(n=l.match(/^(\d+)\./))&&(r=Number(n[1])+1)}for(var s=i.line;s<o.line+1;s++)t.replaceRange(r+". "+t.getLine(s),{line:s,ch:0},{line:s,ch:t.getLine(s).length}),r++;t.setCursor({line:o.line,ch:t.getLine(o.line).length}),t.focus()}}),e.on("renderLate",function(){"gfm"==e.editor.options.mode&&(e.currentvalue=r(e.currentvalue))}),e.on("cursorMode",function(t,i){if("gfm"==e.editor.options.mode){var o=e.editor.getDoc().getCursor();e.editor.getTokenAt(o).state.base.htmlState||(i.mode="markdown")}}),t.extend(e,{enableMarkdown:function(){i(),this.render()},disableMarkdown:function(){this.editor.setOption("mode","htmlmixed"),this.htmleditor.find(".@-htmleditor-button-code a").html(this.options.lblCodeview),this.render()}}),e.on({en
 ableMarkdown:function(){e.enableMarkdown()},disableMarkdown:function(){e.disableMarkdown()}}))}}),e.htmleditor});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/lightbox.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/lightbox.min.js b/helix-ui/src/main/resources/assets/js/components/lightbox.min.js
deleted file mode 100644
index 152dbbf..0000000
--- a/helix-ui/src/main/resources/assets/js/components/lightbox.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(i){var t;jQuery&&UIkit&&(t=i(jQuery,UIkit)),"function"==typeof define&&define.amd&&define(["uikit-lightbox"],function(){return t||i(jQuery,UIkit)})}(function(i,t){function e(e){return o?(o.lightbox=e,o):(o=t.$(['<div class="@-modal">','<div class="@-modal-dialog @-modal-dialog-lightbox @-slidenav-position" style="margin-left:auto;margin-right:auto;width:200px;height:200px;top:'+Math.abs(window.innerHeight/2-200)+'px;">','<a href="#" class="@-modal-close @-close @-close-alt"></a>','<div class="@-lightbox-content"></div>','<div class="@-modal-spinner @-hidden"></div>',"</div>","</div>"].join("")).appendTo("body"),o.dialog=o.find(t.prefix(".@-modal-dialog:first")),o.content=o.find(t.prefix(".@-lightbox-content:first")),o.loader=o.find(t.prefix(".@-modal-spinner:first")),o.closer=o.find(t.prefix(".@-close.@-close-alt")),o.modal=t.modal(o),o.on("swipeRight swipeLeft",function(i){o.lightbox["swipeLeft"==i.type?"next":"previous"]()}).on("click","[data-lightbox-previous], [data-li
 ghtbox-next]",function(t){t.preventDefault(),o.lightbox[i(this).is("[data-lightbox-next]")?"next":"previous"]()}),o.on("hide.uk.modal",function(){o.content.html("")}),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){o.is(":visible")&&o.lightbox.fitSize()}.bind(this),100)),o.lightbox=e,o)}var o,n={};return t.component("lightbox",{defaults:{group:!1,duration:400,keyboard:!0},index:0,items:!1,boot:function(){t.$html.on("click",t.prefix("[data-@-lightbox]"),function(i){i.preventDefault();var e=t.$(this);e.data("lightbox")||t.lightbox(e,t.Utils.options(e.attr("data-@-lightbox"))),e.data("lightbox").show(e)}),t.$doc.on("keyup",function(i){if(o&&o.is(":visible")&&o.lightbox.options.keyboard)switch(i.preventDefault(),i.keyCode){case 37:o.lightbox.previous();break;case 39:o.lightbox.next()}})},init:function(){this.siblings=this.options.group?t.$(['[data-@-lightbox*="'+this.options.group+'"]',"[data-@-lightbox*='"+this.options.group+"']"].join(",")):this.element,this.inde
 x=this.siblings.index(this.element),this.trigger("lightbox-init",[this])},show:function(o){this.modal=e(this),this.modal.dialog.stop(),this.modal.content.stop();var n,h,s,a,d=this,l=i.Deferred();o=o||0,"object"==typeof o&&(o=this.siblings.index(o)),0>o?o=this.siblings.length-o:this.siblings[o]||(o=0),s=this.siblings.eq(o),h=s.attr("href"),a=s.attr("title"),n={lightbox:d,source:h,type:s.data("lightboxType")||"auto",index:o,promise:l,title:a,item:s,meta:{content:"",width:null,height:null}},this.index=o,this.modal.content.empty(),this.modal.is(":visible")||(this.modal.content.css({width:"",height:""}).empty(),this.modal.modal.show()),this.modal.loader.removeClass(t.prefix("@-hidden")),l.promise().done(function(){d.data=n,d.fitSize(n)}).fail(function(){alert("Loading resource failed!")}),d.trigger("show.uk.lightbox",[n])},fitSize:function(){var e=this,o=this.data,n=this.modal.dialog.outerWidth()-this.modal.dialog.width(),h=parseInt(this.modal.dialog.css("margin-top"),10)+parseInt(this.m
 odal.dialog.css("margin-bottom"),10),s=o.meta.content,a=e.options.duration;this.siblings.length>1&&(s=[s,'<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous uk-hidden-touch" data-lightbox-previous></a>','<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next uk-hidden-touch" data-lightbox-next></a>'].join(""));var d,l,r=i("<div>&nbsp;</div>").css({opacity:0,position:"absolute",top:0,left:0,width:"100%","max-width":e.modal.dialog.css("max-width"),padding:e.modal.dialog.css("padding"),margin:e.modal.dialog.css("margin")}),c=o.meta.width,g=o.meta.height;r.appendTo("body").width(),d=r.width(),l=window.innerHeight-2*h,r.remove(),d<o.meta.width&&(g=Math.floor(g*(d/c)),c=d),g>l&&(g=Math.floor(l),c=Math.ceil(o.meta.width*(l/o.meta.height))),this.modal.content.css("opacity",0).width(c).html(s),this.modal.dialog.find(t.prefix(".@-modal-caption")).remove(),o.title&&this.modal.dialog.append(t.prefix('<div class="@-modal-caption">')+o.title+"</div>"),"iframe"=
 =o.type&&this.modal.content.find("iframe:first").height(g);var u=g+n,m=Math.floor(window.innerHeight/2-u/2)-h;0>m&&(m=0),this.modal.closer.addClass(t.prefix("@-hidden")),e.modal.data("mwidth")==c&&e.modal.data("mheight")==g&&(a=0),this.modal.dialog.animate({width:c+n,height:g+n,top:m},a,"swing",function(){e.modal.loader.addClass(t.prefix("@-hidden")),e.modal.content.css({width:""}).animate({opacity:1},function(){e.modal.closer.removeClass(t.prefix("@-hidden"))}),e.modal.data({mwidth:c,mheight:g})})},next:function(){this.show(this.siblings[this.index+1]?this.index+1:0)},previous:function(){this.show(this.siblings[this.index-1]?this.index-1:this.siblings.length-1)}}),t.plugin("lightbox","image",{init:function(i){i.on("show.uk.lightbox",function(i,t){if("image"==t.type||t.source&&t.source.match(/\.(jpg|jpeg|png|gif|svg)$/)){var e=function(i,e,o){t.meta={content:'<img class="uk-responsive-width" width="'+e+'" height="'+o+'" height="" src ="'+i+'">',width:e,height:o},t.type="image",t.pro
 mise.resolve()};if(n[t.source])e(t.source,n[t.source].width,n[t.source].height);else{var o=new Image;o.onerror=function(){t.promise.reject("Loading image failed")},o.onload=function(){n[t.source]={width:o.width,height:o.height},e(t.source,n[t.source].width,n[t.source].height)},o.src=t.source}}})}}),t.plugin("lightbox","youtube",{init:function(i){var t=/(\/\/.*?youtube\.[a-z]+)\/watch\?v=([^&]+)&?(.*)/,e=/youtu\.be\/(.*)/;i.on("show.uk.lightbox",function(i,o){var h,s,a=function(i,t,e){o.meta={content:'<iframe src="//www.youtube.com/embed/'+i+'" width="'+t+'" height="'+e+'" style="max-width:100%;"></iframe>',width:t,height:e},o.type="iframe",o.promise.resolve()};if((s=o.source.match(t))&&(h=s[2]),(s=o.source.match(e))&&(h=s[1]),h){if(n[h])a(h,n[h].width,n[h].height);else{var d=new Image;d.onerror=function(){n[h]={width:640,height:320},a(h,n[h].width,n[h].height)},d.onload=function(){n[h]={width:d.width,height:d.height},a(h,d.width,d.height)},d.src="//img.youtube.com/vi/"+h+"/0.jpg"}i.
 stopImmediatePropagation()}})}}),t.plugin("lightbox","vimeo",{init:function(t){var e,o=/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/;t.on("show.uk.lightbox",function(t,h){var s,a=function(i,t,e){h.meta={content:'<iframe src="//player.vimeo.com/video/'+i+'" width="'+t+'" height="'+e+'" style="width:100%;box-sizing:border-box;"></iframe>',width:t,height:e},h.type="iframe",h.promise.resolve()};(e=h.source.match(o))&&(s=e[2],n[s]?a(s,n[s].width,n[s].height):i.ajax({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(h.source),jsonp:"callback",dataType:"jsonp",success:function(i){n[s]={width:i.width,height:i.height},a(s,n[s].width,n[s].height)}}),t.stopImmediatePropagation())})}}),t.plugin("lightbox","video",{init:function(t){t.on("show.uk.lightbox",function(t,e){var o=function(i,t,o){e.meta={content:'<video class="uk-responsive-width" src="'+i+'" width="'+t+'" height="'+o+'" controls width="'+t+'" height="'+o+'"></video>',width:t,height:o},e.type="video",e.promise.resolve()};if("vi
 deo"==e.type||e.source.match(/\.(mp4|webm|ogv)$/))if(n[e.source])o(e.source,n[e.source].width,n[e.source].height);else var h=i('<video style="position:fixed;visibility:hidden;top:-10000px;"></video>').attr("src",e.source).appendTo("body"),s=setInterval(function(){h[0].videoWidth&&(clearInterval(s),n[e.source]={width:h[0].videoWidth,height:h[0].videoHeight},o(e.source,n[e.source].width,n[e.source].height),h.remove())},20)})}}),t.lightbox});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/nestable.min.js
----------------------------------------------------------------------
diff --git a/helix-ui/src/main/resources/assets/js/components/nestable.min.js b/helix-ui/src/main/resources/assets/js/components/nestable.min.js
deleted file mode 100644
index ff6c06d..0000000
--- a/helix-ui/src/main/resources/assets/js/components/nestable.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
-!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-nestable",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";var s,i="ontouchstart"in window,n=t("html"),a=[],l=e.$win,o=function(){var t=document.createElement("div"),e=document.documentElement;if(!("pointerEvents"in t.style))return!1;t.style.pointerEvents="auto",t.style.pointerEvents="x",e.appendChild(t);var s=window.getComputedStyle&&"auto"===window.getComputedStyle(t,"").pointerEvents;return e.removeChild(t),!!s}(),r=i?"touchstart":"mousedown",d=i?"touchmove":"mousemove",h=i?"touchend":"mouseup",p=i?"touchcancel":"mouseup";return e.component("nestable",{defaults:{prefix:"@",listNodeName:"ul",itemNodeName:"li",listBaseClass:"{prefix}-nestable",listClass:"{prefix}-nestable-list",listitemClass:"{prefix}-nestable-list-item",itemClass:"{prefix}-nestable-item",dragClass:"{prefix}-nestable-list-dragged",movingClass:"{prefix}-nestable-moving",handleClass:"
 {prefix}-nestable-handle",collapsedClass:"{prefix}-collapsed",placeClass:"{prefix}-nestable-placeholder",noDragClass:"{prefix}-nestable-nodrag",emptyClass:"{prefix}-nestable-empty",group:0,maxDepth:10,threshold:20},boot:function(){e.$html.on("mousemove touchmove",function(){if(s){var t=s.offset().top;t<e.$win.scrollTop()?e.$win.scrollTop(e.$win.scrollTop()-Math.ceil(s.height()/2)):t+s.height()>window.innerHeight+e.$win.scrollTop()&&e.$win.scrollTop(e.$win.scrollTop()+Math.ceil(s.height()/2))}}),e.ready(function(t){e.$("[data-@-nestable]",t).each(function(){var t=e.$(this);if(!t.data("nestable")){e.nestable(t,e.Utils.options(t.attr("data-@-nestable")))}})})},init:function(){var n=this;n.options.prefix=e.prefix(n.options.prefix),Object.keys(this.options).forEach(function(t){-1!=String(n.options[t]).indexOf("{prefix}")&&(n.options[t]=n.options[t].replace("{prefix}",n.options.prefix))}),this.tplempty='<div class="'+this.options.emptyClass+'"/>',this.find(">"+this.options.itemNodeName).a
 ddClass(this.options.listitemClass).end().find("ul:not(.ignore-list)").addClass(this.options.listClass).find(">li").addClass(this.options.listitemClass),this.element.children(this.options.itemNodeName).length||this.element.append(this.tplempty),this.element.data("nestable-id","ID"+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())),this.reset(),this.element.data("nestable-group",this.options.group),this.placeEl=t('<div class="'+this.options.placeClass+'"/>'),this.find(this.options.itemNodeName).each(function(){n.setParent(t(this))}),this.on("click","[data-nestable-action]",function(e){if(!n.dragEl&&(i||0===e.button)){e.preventDefault();var s=t(e.currentTarget),a=s.data("nestableAction"),l=s.closest(n.options.itemNodeName);"collapse"===a&&n.collapseItem(l),"expand"===a&&n.expandItem(l),"toggle"===a&&n.toggleItem(l)}});var a=function(e){var s=t(e.target);if(!s.hasClass(n.options.handleClass)){if(s.closest("."+n.options.noDragClass).length)return;s=s.closest("."+n.options.handleC
 lass)}!s.length||n.dragEl||!i&&0!==e.button||i&&1!==e.touches.length||(e.preventDefault(),n.dragStart(i?e.touches[0]:e),n.trigger("start.uk.nestable",[n]))},o=function(t){n.dragEl&&(t.preventDefault(),n.dragMove(i?t.touches[0]:t),n.trigger("move.uk.nestable",[n]))},c=function(t){n.dragEl&&(t.preventDefault(),n.dragStop(i?t.touches[0]:t),n.trigger("stop.uk.nestable",[n])),s=!1};i?(this.element[0].addEventListener(r,a,!1),window.addEventListener(d,o,!1),window.addEventListener(h,c,!1),window.addEventListener(p,c,!1)):(this.on(r,a),l.on(d,o),l.on(h,c))},serialize:function(){var e,s=0,i=this,n=function(e,s){var a=[],l=e.children(i.options.itemNodeName);return l.each(function(){var e=t(this),l=t.extend({},e.data()),o=e.children(i.options.listNodeName);o.length&&(l.children=n(o,s+1)),a.push(l)}),a};return e=n(i.element,s)},list:function(e){var s=[],i=this,n=0,e=t.extend({},i.options,e),a=function(i,n,l){var o=i.children(e.itemNodeName);o.each(function(i){var o=t(this),r=t.extend({parent_i
 d:l?l:null,depth:n,order:i},o.data()),d=o.children(e.listNodeName);s.push(r),d.length&&a(d,n+1,o.data(e.idProperty||"id"))})};return a(i.element,n),s},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null;for(var t=0;t<a.length;t++)a[t].children().length||a[t].append(this.tplempty);a=[]},toggleItem:function(t){this[t.hasClass(this.options.collapsedClass)?"expandItem":"collapseItem"](t)},expandItem:function(t){t.removeClass(this.options.collapsedClass)},collapseItem:function(t){var e=t.children(this.options.listNodeName);e.length&&t.addClass(this.options.collapsedClass)},expandAll:function(){var e=this;this.find(e.options.itemNodeName).each(function(){e.expandItem(t(this))})},collapseAll:function(){var e=this;this.find(e.options.itemNodeName).each(function(
 ){e.collapseItem(t(this))})},setParent:function(t){t.children(this.options.listNodeName).length&&t.addClass("uk-parent")},unsetParent:function(t){t.removeClass("uk-parent "+this.options.collapsedClass),t.children(this.options.listNodeName).remove()},dragStart:function(i){var a=this.mouse,l=t(i.target),o=l.closest(this.options.itemNodeName),r=o.offset();this.placeEl.css("height",o.height()),a.offsetX=i.pageX-r.left,a.offsetY=i.pageY-r.top,a.startX=a.lastX=r.left,a.startY=a.lastY=r.top,this.dragRootEl=this.element,this.dragEl=e.$(document.createElement(this.options.listNodeName)).addClass(this.options.listClass+" "+this.options.dragClass),this.dragEl.css("width",o.width()),s=this.dragEl,this.tmpDragOnSiblings=[o[0].previousSibling,o[0].nextSibling],o.after(this.placeEl),o[0].parentNode.removeChild(o[0]),o.appendTo(this.dragEl),t(document.body).append(this.dragEl),this.dragEl.css({left:r.left,top:r.top});var d,h,p=this.dragEl.find(this.options.itemNodeName);for(d=0;d<p.length;d++)h=t(p
 [d]).parents(this.options.listNodeName).length,h>this.dragDepth&&(this.dragDepth=h);n.addClass(this.options.movingClass)},dragStop:function(){var t=this.dragEl.children(this.options.itemNodeName).first();t[0].parentNode.removeChild(t[0]),this.placeEl.replaceWith(t),this.dragEl.remove(),(this.tmpDragOnSiblings[0]!=t[0].previousSibling||this.tmpDragOnSiblings[1]&&this.tmpDragOnSiblings[1]!=t[0].nextSibling)&&(this.element.trigger("change.uk.nestable",[t,this.hasNewRoot?"added":"moved"]),this.hasNewRoot&&this.dragRootEl.trigger(e.prefix("change.uk.nestable"),[t,"removed"])),this.reset(),n.removeClass(this.options.movingClass)},dragMove:function(e){var s,i,n,l,r,d=this.options,h=this.mouse;this.dragEl.css({left:e.pageX-h.offsetX,top:e.pageY-h.offsetY}),h.lastX=h.nowX,h.lastY=h.nowY,h.nowX=e.pageX,h.nowY=e.pageY,h.distX=h.nowX-h.lastX,h.distY=h.nowY-h.lastY,h.lastDirX=h.dirX,h.lastDirY=h.dirY,h.dirX=0===h.distX?0:h.distX>0?1:-1,h.dirY=0===h.distY?0:h.distY>0?1:-1;var p=Math.abs(h.distX)>
 Math.abs(h.distY)?1:0;if(!h.moving)return h.dirAx=p,h.moving=!0,void 0;h.dirAx!==p?(h.distAxX=0,h.distAxY=0):(h.distAxX+=Math.abs(h.distX),0!==h.dirX&&h.dirX!==h.lastDirX&&(h.distAxX=0),h.distAxY+=Math.abs(h.distY),0!==h.dirY&&h.dirY!==h.lastDirY&&(h.distAxY=0)),h.dirAx=p,h.dirAx&&h.distAxX>=d.threshold&&(h.distAxX=0,n=this.placeEl.prev(d.itemNodeName),h.distX>0&&n.length&&!n.hasClass(d.collapsedClass)&&(s=n.find(d.listNodeName).last(),r=this.placeEl.parents(d.listNodeName).length,r+this.dragDepth<=d.maxDepth&&(s.length?(s=n.children(d.listNodeName).last(),s.append(this.placeEl)):(s=t("<"+d.listNodeName+"/>").addClass(d.listClass),s.append(this.placeEl),n.append(s),this.setParent(n)))),h.distX<0&&(l=this.placeEl.next(d.itemNodeName),l.length||(i=this.placeEl.parent(),this.placeEl.closest(d.itemNodeName).after(this.placeEl),i.children().length||this.unsetParent(i.parent()))));var c=!1;if(o||(this.dragEl[0].style.visibility="hidden"),this.pointEl=t(document.elementFromPoint(e.pageX-do
 cument.body.scrollLeft,e.pageY-(window.pageYOffset||document.documentElement.scrollTop))),o||(this.dragEl[0].style.visibility="visible"),this.pointEl.hasClass(d.handleClass))this.pointEl=this.pointEl.closest(d.itemNodeName);else{var m=this.pointEl.closest("."+d.itemClass);m.length&&(this.pointEl=m.closest(d.itemNodeName))}if(this.pointEl.hasClass(d.emptyClass))c=!0;else if(this.pointEl.data("nestable")&&!this.pointEl.children().length)c=!0,this.pointEl=t(this.tplempty).appendTo(this.pointEl);else if(!this.pointEl.length||!this.pointEl.hasClass(d.listitemClass))return;var g=this.element,f=this.pointEl.closest("."+this.options.listBaseClass),u=g[0]!==this.pointEl.closest("."+this.options.listBaseClass)[0],E=f;if(!h.dirAx||u||c){if(u&&d.group!==E.data("nestable-group"))return;if(a.push(g),r=this.dragDepth-1+this.pointEl.parents(d.listNodeName).length,r>d.maxDepth)return;var v=e.pageY<this.pointEl.offset().top+this.pointEl.height()/2;i=this.placeEl.parent(),c?this.pointEl.replaceWith(th
 is.placeEl):v?this.pointEl.before(this.placeEl):this.pointEl.after(this.placeEl),i.children().length||i.data("nestable")||this.unsetParent(i.parent()),this.dragRootEl.find(d.itemNodeName).length||this.dragRootEl.children().length||this.dragRootEl.append(this.tplempty),u&&(this.dragRootEl=f,this.hasNewRoot=this.element[0]!==this.dragRootEl[0])}}}),e.nestable});
\ No newline at end of file


Mime
View raw message