text: /*
  * Kendo UI Complete v2013.2.918 (http://kendoui.com)
  * Copyright 2013 Telerik AD. All rights reserved.
  *
  * Kendo UI Complete commercial licenses may be obtained at
  * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  !function(define){return define(["./kendo.data.min"],function(){!function(e,t){function a(e,t,a,n){return e({idx:t,text:a,ns:p.ns,numeric:n})}function n(e,t){return w({className:e.substring(1),text:t})}function s(e,t,a,n){e.find(t).parent().attr(p.attr("page"),a).attr("tabindex",-1).toggleClass("k-state-disabled",n)}function i(e,t){s(e,u,1,1>=t)}function r(e,t){s(e,c,Math.max(1,t-1),1>=t)}function l(e,t,a){s(e,h,Math.min(a,t+1),t>=a)}function o(e,t,a){s(e,m,a,t>=a)}var p=window.kendo,d=p.ui,f=d.Widget,g=e.proxy,u=".k-i-seek-w",m=".k-i-seek-e",c=".k-i-arrow-w",h=".k-i-arrow-e",k="change",S=".kendoPager",x="click",v="keydown",b="disabled",w=p.template('<a href="\\#" title="#=text#" class="k-link"><span class="k-icon #= className #">#=text#</span></a>'),y=f.extend({init:function(t,a){var s,d,b=this;f.fn.init.call(b,t,a),a=b.options,b.dataSource=p.data.DataSource.create(a.dataSource),b.linkTemplate=p.template(b.options.linkTemplate),b.selectTemplate=p.template(b.options.selectTemplate),s=b.page(),d=b.totalPages(),b._refreshHandler=g(b.refresh,b),b.dataSource.bind(k,b._refreshHandler),a.previousNext&&(b.element.find(u).length||(b.element.append(n(u,a.messages.first)),i(b.element,s,d)),b.element.find(c).length||(b.element.append(n(c,a.messages.previous)),r(b.element,s,d))),a.numeric&&(b.list=b.element.find(".k-pager-numbers"),b.list.length||(b.list=e('<ul class="k-pager-numbers k-reset" />').appendTo(b.element))),a.input&&(b.element.find(".k-pager-input").length||b.element.append('<span class="k-pager-input k-label">'+a.messages.page+'<input class="k-textbox">'+p.format(a.messages.of,d)+"</span>"),b.element.on(v+S,".k-pager-input input",g(b._keydown,b))),a.previousNext&&(b.element.find(h).length||(b.element.append(n(h,a.messages.next)),l(b.element,s,d)),b.element.find(m).length||(b.element.append(n(m,a.messages.last)),o(b.element,s,d))),a.pageSizes&&(b.element.find(".k-pager-sizes").length||e('<span class="k-pager-sizes k-label"><select/>'+a.messages.itemsPerPage+"</span>").appendTo(b.element).find("select").html(e.map(e.isArray(a.pageSizes)?a.pageSizes:[5,10,20],function(e){return"<option>"+e+"</option>"}).join("")).end().appendTo(b.element),b.element.find(".k-pager-sizes select").val(b.pageSize()),p.ui.DropDownList&&b.element.find(".k-pager-sizes select").show().kendoDropDownList(),b.element.on(k+S,".k-pager-sizes select",g(b._change,b))),a.refresh&&(b.element.find(".k-pager-refresh").length||b.element.append('<a href="#" class="k-pager-refresh k-link"  title="'+a.messages.refresh+'"><span class="k-icon k-i-refresh">'+a.messages.refresh+"</span></a>"),b.element.on(x+S,".k-pager-refresh",g(b._refreshClick,b))),a.info&&(b.element.find(".k-pager-info").length||b.element.append('<span class="k-pager-info k-label" />')),b.element.on(x+S,"a",g(b._click,b)).addClass("k-pager-wrap k-widget"),a.autoBind&&b.refresh(),p.notify(b)},destroy:function(){var e=this;f.fn.destroy.call(e),e.element.off(S),e.dataSource.unbind(k,e._refreshHandler)},events:[k],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',linkTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh"}},setDataSource:function(e){var t=this;t.dataSource.unbind(k,t._refreshHandler),t.dataSource=t.options.dataSource=e,e.bind(k,t._refreshHandler),t.options.autoBind&&e.fetch()},refresh:function(e){var t,n,s,d=this,f=1,g="",u=d.page(),m=d.options,c=d.pageSize(),h=d.dataSource.total(),k=d.totalPages(),S=d.linkTemplate,x=m.buttonCount;if(!e||"itemchange"!=e.action){if(m.numeric){for(u>x&&(s=u%x,f=0===s?u-x+1:u-s+1),n=Math.min(f+x-1,k),f>1&&(g+=a(S,f-1,"...",!1)),t=f;n>=t;t++)g+=a(t==u?d.selectTemplate:S,t,t,!0);k>n&&(g+=a(S,t,"...",!1)),""===g&&(g=d.selectTemplate({text:0})),d.list.html(g)}m.info&&(g=h>0?p.format(m.messages.display,(u-1)*c+1,Math.min(u*c,h),h):m.messages.empty,d.element.find(".k-pager-info").html(g)),m.input&&d.element.find(".k-pager-input").html(d.options.messages.page+'<input class="k-textbox">'+p.format(m.messages.of,k)).find("input").val(u).attr(b,1>h).toggleClass("k-state-disabled",1>h),m.previousNext&&(i(d.element,u,k),r(d.element,u,k),l(d.element,u,k),o(d.element,u,k)),m.pageSizes&&d.element.find(".k-pager-sizes select").val(c).filter("["+p.attr("role")+"=dropdownlist]").kendoDropDownList("value",c).kendoDropDownList("text",c)}},_keydown:function(e){if(e.keyCode===p.keys.ENTER){var t=this.element.find(".k-pager-input").find("input"),a=parseInt(t.val(),10);(isNaN(a)||1>a||a>this.totalPages())&&(a=this.page()),t.val(a),this.page(a)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var t=parseInt(e.currentTarget.value,10);isNaN(t)||this.dataSource.pageSize(t)},_click:function(t){var a=e(t.currentTarget);t.preventDefault(),a.is(".k-state-disabled")||this.page(a.attr(p.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e===t?this.dataSource.total()>0?this.dataSource.page():0:(this.dataSource.page(e),this.trigger(k,{index:e}),t)}});d.plugin(y)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,t){return t()});