document.addEventListener('DOMContentLoaded', function () {
	    //  translate
			if (typeof _L != "undefined") {
				_L["Copy function name"] = {"ru":"Скопировать имя функции"}
				_L["Double Click to show or hide functions"] =  {"ru":"Нажмите 2 раза чтобы показать или свернуть функции"}
				
				_L["edit this folder name."] = {"ru":"Изменить имя этой папки."}
				_L["delete this folder."] = {"ru":"Удалить эту папку, сохранить функции."}
				_L["delete this folder with all functions."] = {"ru":"Удалить эту папку, включая функции внутри нее."}
				
				_L["Left mouse click – Add new folder"] = {"ru": "Левый клик мыши – Создать папку"};
				_L["Right click – expand/collapse all folders"] = {"ru": "Правый клик – открыть/закрыть все папки"};
				_L["Please input folder name : "] = {"ru":"Введите название папки : "}	
				_L["Can't create folder with empty name"] = {"ru":"Название папки не может быть пустым!"}
				_L["Can't rename folder with empty name"] = {"ru":"Название папки не может быть пустым!"}
				
			}  	
});


function FunctionManager()
{
	var EditingFunctionName = "";
	var ParamEditingName = null;
	var MoreDetailsDefault = false;
	
	// mod Int64
	this.tree = [];
	this.treeInitialized = false;
	this.isBulkDeleteFlag = false;
	this.isSearch = false;
	this.allFoldersCollapsed = false;

	//
	//Templates
	//

	var NodeTemplate = `
# if (item.items) {  #
			<span class="FunctionManagerItem" data-name="#: item.text #">
				<a href="\\#" class="k-in FunctionManagerFolderClick FunctionManagerItem#: item.id ? (item.id%8) + 1 : 5 #" data-folder="#: item.text #" title="#: tr('Double Click to show or hide functions') #">
					<i class="fa fa-folder FunctionManagerItemBar" aria-hidden="true" style="margin-right: 6px;"></i>
					<span class="func-count">(#= item.items ? item.items.length : 0 #)</span>
					#: item.text #
				</a>
				<a href="\\#" class="FunctionManagerItemMenu FunctionManagerItemMenuFolder" data-menu-toggle="true" data-name="#: item.text #"><i class="fa fa-bars FunctionManagerItemBar" aria-hidden="true"></i></a>
			</span>
			<span class="FunctionManagerItemMenuContent" data-name="#: item.text #" data-visible="false">
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-pencil FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuFolderEdit" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Edit')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">#:tr('edit this folder name.')#</span>
												</span>
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-times FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuFolderDelete text-danger" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Delete')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">#:tr('delete this folder.')#</span>
												</span>
												
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-times FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuFolderDelete BulkFolderDelete text-danger" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Delete')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">#:tr('delete this folder with all functions.')#</span>
												</span>
												
											</a>
		   </span>
    # } else  {   #   
    								
 									<span class="FunctionManagerItem" data-name="#: item.text #">
										<a href="\\#" data-toggle="tooltip" data-placement="auto" title="${tr('Click to show function in scenario editor')}" class="k-in FunctionManagerItemClick FunctionManagerItem#: (item.text === "Main") ? 8 : (item.id != null && item.id !== 0) ? (item.id % 8) + 1 : 1 # # (item.text == _MainView.model.get('function_name')) ? "FunctionManagerItemSelected" : "" #" data-func-name="#: item.text #" >#: item.text #</a>
										# if (item.text != "Main") { #
											<a href="\\#" class="FunctionManagerItemMenu" data-menu-toggle="false" data-name="#: item.text #" title="#: tr('Run this function') #">
												<i class="fa fa-bolt FunctionManagerItemBar" aria-hidden="true"></i>
											</a>
											<a href="\\#" class="FunctionManagerItemMenu FunctionManagerItemNameCopy" data-name="#: item.text #" title="#: tr('Copy function name') #">
													<i class="fa fa-copy FunctionManagerItemBar" aria-hidden="true"></i>
											</a>
										# } #
										<a href="\\#" class="FunctionManagerItemMenu" data-menu-toggle="true" data-name="#: item.text #"><i class="fa fa-bars FunctionManagerItemBar" aria-hidden="true"></i></a>
									</span>
												
									<span class="FunctionManagerItemMenuContent" data-name="#: item.text #" data-visible="false">
										<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
											<i class="fa fa-play-circle FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
											<span class="FunctionManagerItemLineLeft">
												<span class="FunctionManagerItemMenuOpen" data-name="#: item.text #" style="font-size:small">
													<span>${tr('Open')}</span>
												</span> 
												- 
												<span class="FunctionManagerItemMenuDescription">${tr('show function in scenario editor.')}</span>
											</span>
										</a>
										
										# if(item.text != "Main") { #
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-pencil FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuEdit" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Edit')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('edit function name, description, params etc.')}</span>
												</span>
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-bolt FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuRun" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Call')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('run this function.')}</span>
												</span>
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-random FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuRunAsync" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Call asynchronously')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('run this function in separate thread, wait for results or stop it if necessary.')}</span>
												</span>
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-cubes FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuRunMultithreaded" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Call in several threads')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('run this function specified number of times with specified number of threads.')}</span>
												</span>
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-times FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuDelete text-danger" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Delete')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('delete this function.')}</span>
												</span>
												
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-code  FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuCSharp" data-name="#: item.text #" style="font-size:small">
														
														<span>#:tr('Run from C\\#')#</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">#:tr('run this function from C\\# code, send parameters and receive result.')#</span>
												</span>
												
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-code  FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuNodejs" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Run from Node.js')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('run this function from Node.js code, send parameters and receive result.')}</span>
												</span>
												
											</a>
											<a href="\\#" class="FunctionManagerItemLine FunctionManagerItemLine#: 1 + 1 #">
												<i class="fa fa-code  FunctionManagerItemMenuDescriptionIcon" aria-hidden="true"></i>
												<span class="FunctionManagerItemLineLeft">
													<span class="FunctionManagerItemMenuPython" data-name="#: item.text #" style="font-size:small">
														
														<span>${tr('Run from Python')}</span>
													</span> 
													- 
													<span class="FunctionManagerItemMenuDescription">${tr('run this function from Python code, send parameters and receive result.')}</span>
												</span>
											</a> 
										
										# } #	
									</span>
				
    # } #

`;

	 
	var Template1 = `
		<div id="FunctionManagerMainLabel">
			<img src="icons/functionmanager.png" style="float:left" />
			<span>${tr('Function list')}</span> (<strong><%= GetFunctionList().length %></strong>)
			<a href="#" id="FunctionManagerMainCloseLink">
				<i class="fa fa-times-circle-o FunctionManagerMainClose text-danger" aria-hidden="true" ></i>
			</a>

		</div> 
		<div id="FunctionManagerDescription">${tr('Functions are containers, which holds action list. It helps to group several actions which does same task. For example, there can be function which logins to account, function that checks account balance, etc. It makes your code clear and well organized.')}</div>

		<div class="input-group input-group-sm" style="margin: 10px;">
		  <input type="text" id="FunctionManagerMainLabelSearchInput" class="form-control" placeholder="${tr('Search')}" aria-describedby="FunctionManagerMainLabelSearchLabel" style="border-top-left-radius:2px;border-bottom-left-radius:2px;">
		  
		  <span class="input-group-addon" id="FunctionManagerMainLabelSearchLabel" style="border-top-right-radius: 2px;border-bottom-right-radius: 2px;background-color: #f8f8f8;color: gray;"><i class="fa fa-search" aria-hidden="true"></i></span>
		</div>
	  
   	  
		<div id="FunctionListMain"> <% /* <= mod by Int64 */ %>
    	</div>
						
			
		<% /* <= mod by Int64 { */ %>				
        <a href="#" id="FunctionManagerAddFolder" class="custom-tooltip">
		  <i class="fa fa-folder"></i> +
		  <span class="tooltip-text"><%=tr('Left mouse click – Add new folder')%><br><%=tr('Right click – expand/collapse all folders')%></span>
		</a>
		
		<% /* <= mod by Int64 } */ %>
        <a href="#" id="FunctionManagerAddTask">+</a>
	

	`

	var TemplateFunction = `
		<div id="FunctionManagerMainLabel">
			<img src="icons/functionmanager.png" style="float:left" />
			<% if(functionname == ''){ %>
				<span>${tr('Adding new function')}</span>
			<% }else{ %>
				<span>${tr('Editing function')}</span> "<strong><%= functionname %></strong>"
			<% } %>
			
			<a href="#" id="FunctionManagerMainCloseLink">
				<i class="fa fa-times-circle-o FunctionManagerMainClose text-danger" aria-hidden="true" ></i>
			</a>
			<a href="#" id="FunctionManagerMainBackLink">
				<i class="fa fa-arrow-circle-o-left FunctionManagerMainBack text-primary" aria-hidden="true" ></i>
			</a>

		</div> 
		<div style="clear:both"></div>



		<div id="FunctionManagerEditData">

			<div class="FunctionManagerEditSection VisibleIfDetailed">
				<i class="fa fa-chevron-right" aria-hidden="true" style="color:#c96055;margin-right:2px;"></i>
				<span>${tr('Function properties:')}</span>
			</div>

			<div id="FunctionManagerEditFunctionNamePanel">
				<div id="FunctionManagerEditFunctionName">
					<span>${tr('Function name:')}</span> 
					<span id="FunctionManagerEditName"></span> 
				</div>
            	<a href="#" class="FunctionManagerEditFunctionLink"><i class="fa fa-pencil FunctionManagerEditFunctionLinkIcon" aria-hidden="true"></i></a>

			</div>

			<div id="FunctionManagerEditFunctionDescriptionPanel" class="VisibleIfDetailed">
				<div id="FunctionManagerEditFunctionDescription">
					<span>${tr('Function description:')}</span>
					<span id="FunctionManagerEditDescription"></span> 
				</div>
            	<a href="#" class="FunctionManagerEditFunctionDescriptionLink"><i class="fa fa-pencil FunctionManagerEditFunctionLinkIcon" aria-hidden="true"></i></a>

			</div>

			<div class="FunctionManagerEditSection VisibleIfDetailed">
				<i class="fa fa-chevron-right" aria-hidden="true" style="color:#c96055;margin-right:2px;"></i>
				<span>${tr('Return value:')}</span>
			</div>

			<div id="FunctionManagerEditHasReturnValuePanel">
				<div id="FunctionManagerEditHasReturnValue">
					<span style="flex-grow: 1;"><span>${tr('Has return value:')}</span> <span id="FunctionManagerEditHasReturnVal">${tr('no')}</span></span>

					<div class="pretty p-switch p-fill" style="margin-right: 21px;">
				        <input type="checkbox" id="FunctionManagerEditHasReturnValCheckbox" />
				        <div class="state p-success">
				            <label></label>
				        </div>
				    </div>
				</div>
			</div>

			<div id="FunctionManagerEditFunctionReturnDescriptionPanel" class="VisibleIfDetailed">
				<div id="FunctionManagerEditFunctionReturnDescription">
					<span>${tr('Return value description:')}</span>
					<span id="FunctionManagerEditReturnDescription"></span> 
				</div>
            	<a href="#" class="FunctionManagerEditFunctionReturnDescriptionLink"><i class="fa fa-pencil FunctionManagerEditFunctionLinkIcon" aria-hidden="true"></i></a>

			</div>

			<div id="FunctionManagerEditFunctionReturnVariablePanel" class="VisibleIfDetailed">
				<div id="FunctionManagerEditFunctionReturnVariable">
					<span>${tr('Default variable name:')}</span>
					<span id="FunctionManagerEditReturnVariable"></span> 
				</div>
            	<a href="#" class="FunctionManagerEditFunctionReturnVariableLink"><i class="fa fa-pencil FunctionManagerEditFunctionLinkIcon" aria-hidden="true"></i></a>

			</div>

			<div class="FunctionManagerEditSection">
				<span style="flex-grow: 1;">
					<i class="fa fa-chevron-right" aria-hidden="true" style="color:#c96055;margin-right:2px;"></i>
					
					
					<span>${tr('Parameters')}</span> <span style="color:gray;font-size:12px;" data-toggle="tooltip" data-placement="auto" title="${tr('Each function can have input parameters. For example, if function logins to some site, then parameters could be account login and account password. Function also can have one output parameter which contains result of its work. Input and output params are optional.')}"><i class="fa fa-question-circle" aria-hidden="true"></i></span> (<strong id="FunctionManagerEditParamsNumber">0</strong>):
				</span>


				<a id="FunctionManagerAddParam" href="#">
					<i class="fa fa-plus-square-o" aria-hidden="true" style="font-style: normal;font-size:14px;margin-right: 3px;"></i>
					<span>${tr('Add')}</span>
				</a>
			</div>

			<div id="FunctionManagerParamList">

				<div id="FunctionManagerParamListEmpty">${tr('Params list is empty')}</div>

			</div>



		</div>
		<div style="height:20px;">&nbsp;</div>
		<a href="#" id="FunctionManagerAddTaskDetailed">${tr('More details')}</a>
		<a href="#" id="FunctionManagerAddTaskCancel">${tr('Cancel')}</a>
		<a href="#" id="FunctionManagerAddTaskResult">${tr('Save changes')}</a>

	`
	var TemplateParam = `
	<div data-name="<%- name %>" data-type="<%- type %>" data-description="<%- description %>" data-defaults="<%- defaults %>" class="FunctionManagerParamPanel">
		
		<div class="FunctionManagerEditFunctionParamPanel">
			<div class="FunctionManagerEditFunctionParam">
				<span>` + tr("Name:") + `</span>
				<span class="FunctionManagerEditParam"><%- name %></span> 
				<br/>
				<span>` + tr("Type:") + `</span>
				<span class="FunctionManagerEditParam"><%- type %></span> 
				<br class="VisibleIfDetailed" />
				<span class="VisibleIfDetailed">` + tr("Description:") + `</span>
				<span class="FunctionManagerEditParam VisibleIfDetailed"><%- ((description) ? description : "-") %></span> 
			</div>
        	<div style="float:right;width:40px">
        		<a href="#" class="FunctionManagerEditFunctionParamLink"><i class="fa fa-pencil FunctionManagerEditFunctionLinkIcon" aria-hidden="true"></i></a>
        		<a href="#" class="FunctionManagerEditFunctionDeleteParam"><i class="fa fa-trash FunctionManagerEditFunctionLinkIcon" aria-hidden="true"></i></a>
        	</div>

		</div>
	</div>
	`

	
	// utils
	
	function folderExists(structure, folderName) {
	    return structure.some(item => {
	        if (!item.items) return false;
	        if (item.text === folderName) return true;
	        return folderExists(item.items, folderName);
	    });
	}


	function cleanupItems(items, functionSet) {
	    return items.filter(item => {
	        if (item.items) {
	            item.items = cleanupItems(item.items, functionSet);
	            return true;
	        } else {
	            if (functionSet.has(item.text)) {
	                functionSet.delete(item.text);
	                return true;
	            } else {
	                return false;
	            }
	        }
	    });
	}

	function treeIsChildOf(parentItem, childItem) {
	    if (!childItem || !parentItem) return false;
	    var parent = childItem.parent();
	    while (parent) {
	        if (parent.uid === parentItem.uid) return true;
	        parent = parent.parent();
	    }
	    return false;
	}

	function toJson(nodes, parentId, counter) {
	    return $.map(nodes, function(item) {
	        var result = {
	            text: item.text
	        };
	        result.id = parentId;
	        if (item.items) {
	            counter.value++
	            result.id = counter.value;
	            result.expanded = item.expanded;
	            result.items = item.hasChildren ? toJson(item.children.view(), result.id, counter) : [];
	        }
	        return result;
	    });
	}

	function filterTree(dataSource, query) {
	    var hasVisibleChildren = false;
	    var data = dataSource instanceof kendo.data.HierarchicalDataSource && dataSource.data();

	    for (var i = 0; i < data.length; i++) {
	        var item = data[i];
	        var text = item.text.toLowerCase();
	        var itemVisible =
	            query === true // parent already matches
	            ||
	            query === "" // query is empty
	            ||
	            text.indexOf(query) >= 0; // item text matches query

	        var anyVisibleChildren = filterTree(item.children, itemVisible || query); // pass true if parent matches

	        hasVisibleChildren = hasVisibleChildren || anyVisibleChildren || itemVisible;

	        item.hidden = !itemVisible && !anyVisibleChildren;
	    }

	    if (data) {
	        // Re-apply the filter on the children.
	        dataSource.filter({
	            field: "hidden",
	            operator: "neq",
	            value: true
	        });
	    }

	    return hasVisibleChildren;
	}
	
	
	// api

	this.getFunctionStructure = function() {
		  var task = FindTaskById(0), treeData = [];
		  try {
				treeData = task.get("fd");
					
				if (!Array.isArray(treeData) || treeData.length === 0) {
				treeData = GetFunctionList()
				    .slice(1) // Remove Main
					.map(function(f) {
						return {text: f.name};
					});
			  } else {
				 var functionSet = new Set(GetFunctionList().slice(1).map(f => f.name));
				 treeData = cleanupItems(treeData, functionSet); 
				 functionSet.forEach(function(newFuncName) {
					 treeData.unshift({ text: newFuncName });
				 })
			  }
			  return treeData;
		  } catch (e) {
		     prompt("getFunctionStructureError:", e);
		  }
	};

	
	this.updateFunctionStructure = function() {
	 try {	
		 var structure = [];
		//  this.updateFolderFunctionCounters(this.tree);	
		 if (this.isSearch) return;
	
		 var counter = { value: 0 };
		 structure = toJson(this.tree.dataSource.view(), 0, counter).slice(1) // remove main;
		
		_MainView.model.set("dontsend",true)
		  
		 var task = FindTaskById(0);
		 task.set("fd", structure);

		 _MainView.model.set("dontsend", false);
		 _MainView.send();
		 _MainView.render();
		  
		} catch(e) { 
			 prompt("updateFunctionStructureError", e);
		}
	};
	
	
	this.createFolder = function(folderName) {
		var structure = this.getFunctionStructure();
		var exists = folderExists(structure, folderName);
		if (exists) 
			return;

		structure.unshift({text: folderName, items: []});

		_MainView.model.set("dontsend",true)
		var task = FindTaskById(0);
		task.set("fd", structure);
		_MainView.model.set("dontsend", false);
		
		_MainView.send();
		_MainView.render();
		this.RenderDefault();
		
		//this.currentFolder = folderName;
	};
	
	
		
/* 	this.updateFolderFunctionCounters = function(tree) {
		function getItemsCount(item) {
		  if (!item.items || !item.items.length) return 0;
		  return item.items.reduce(function(sum, child) {
			if (child.items && child.items.length) {
			  return sum + getItemsCount(child);
			} else {
			  return sum + 1;
			}
		  }, 0);
		}	
		// рекурсивно получаем кол-во
		tree.items().each(function () {
			var count = getItemsCount(tree.dataItem(this));
			var el = $(this).find(".FunctionManagerFolderClick");
			if (el.length) {
				el.find(".func-count").text(`(#${count})`);
			}
	  });
	} */
	
	
	
	//
	//Rendering
	//
	
	
	this.Render = function(Data, Global)
	{
			
		var self = this		
			
		try {

			$("#FunctionManagerMain").html(_.template(Template1)({data: Data, global: Global}));

			var structure = self.getFunctionStructure();
			structure.unshift({text: "Main"}) // main is first,


			self.treeInitialized = false;
			self.tree = $("#FunctionListMain")
				.empty()
				.kendoTreeView({
					dragAndDrop: true,
					loadOnDemand: false,
					template: kendo.template(NodeTemplate),
					dataSource: structure,
					collapse: function(e) {
						setTimeout(self.updateFunctionStructure(), 100)
					},
					expand: function(e) {
						setTimeout(self.updateFunctionStructure(), 100)
					},
					dataBound: function() {
						var tree = this;
						tree.element.find(".k-item").each(function() {
							var node = $(this);
							var item = tree.dataItem(node);
							if (!item.items) return;
							var children = item.items && item.items.length ? item.children.view() : [];
							var count = children.length;
							node.find(".func-count").text(`(${count})`);
						});
						if (self.treeInitialized)
							self.updateFunctionStructure();
					},
					drop: function(e) {
						try {

							//prompt("", JSON.stringify(this.dataItem(e.sourceNode)));					
							if (self.isSearch) {
								e.setValid(false);
								return;
							};

							var tree = this;
							var srcItem = tree.dataItem(e.sourceNode);
							var destItem = tree.dataItem(e.destinationNode);

							if (!destItem || srcItem === destItem || srcItem.text === "Main") {
								e.setValid(false);
								return;
							}

							if ((e.dropPosition == "over" && !destItem.items)) {
								e.preventDefault();

								var $scrLi = $(e.sourceNode);
								var $dstLi = $(e.destinationNode);


								//  prompt("", JSON.stringify(srcItem) + " ||||| " + JSON.stringify(destItem));	  
								if (srcItem.uid === destItem.uid || treeIsChildOf(srcItem, destItem)) { // отключаем дроп в детей
									e.setValid(false);
									return;
								}

								tree.remove($(e.sourceNode));

								if (destItem.text === "Main") {
									tree.insertAfter(srcItem, $dstLi)
								} else {
									tree.insertBefore(srcItem, $dstLi);
								}


							} else {
								if (destItem.text === "Main" && e.dropPosition == "before") { //disable main
									e.setValid(false);
									return;
								}
							}

						} catch (e) {
							// prompt("drop error",e);
							e.setValid(false);
							return;
						}
					}


				}).data("kendoTreeView");

		}
		catch (e) {
		    prompt("functionManager template ERROR", e);
		}
		
		self.treeInitialized = true;
		

		$("#FunctionManagerMainLabelSearchInput").on("input", function() {
			try { 
				self.isSearch = true;
				var query = this.value.toLowerCase();
				filterTree(self.tree.dataSource, query); //self.tree.dataSource.filter({field: "text", operator: "contains", value: query})
				if (query == "") {
					self.isSearch = false;
				}
			} catch(e) {
				 prompt("SearchErr", e);
			}
		});
		
		$("#FunctionManagerAddFolder").click(function(event){
        	event.preventDefault()
			bootbox.prompt({
			    title: tr("Please input folder name : "),
			    size: 'textarea',
			    value: "",
			    callback: function (result) {
					if(result === null)
						return
					if(result.length == 0)
						{
						bootbox.alert(tr("Can't create folder with empty name"));
						return;
					}
			        self.createFolder(result);
			    }
			});
        })
		
		$("#FunctionManagerAddFolder").on("contextmenu", function(e) {
			e.preventDefault(); 
			try { 
				if (self.allFoldersCollapsed) {
					self.tree.expand(".k-item"); 
				} else {
					self.tree.collapse(".k-item");
				}
				self.allFoldersCollapsed = !self.allFoldersCollapsed; 
			} catch(e) {
				prompt("allFoldersCollapsed", e);
			}
		});
				

		$("#FunctionListMain")
		.off('click', '.FunctionManagerItemMenu')
		.on("click", ".FunctionManagerItemMenu", function(event){
			event.preventDefault();
			event.stopPropagation();
			var data = $(this).data();
			
			// copy mod by Int64 {
			if ($(this).hasClass("FunctionManagerItemNameCopy")) {
			    var name = data.name;
			  
			    var tempInput = document.createElement("textarea");
			    tempInput.value = name;
			    tempInput.setAttribute("readonly", "");
			    tempInput.style.position = "absolute";
			    tempInput.style.left = "-9999px";
			    document.body.appendChild(tempInput);

			    tempInput.select();
			    
			    var $icon = $(this).find("i");  
			    var oldHTML = $icon.prop("outerHTML");
			    
			    try {
			        document.execCommand("copy"); 
				    $(this).html(`<span class="FunctionManagerItemBar">OK</span>`); 
			    } catch (err) {
			        $(this).html(`<span class="FunctionManagerItemBar">ERR/span>`);
			    }
			    
			    setTimeout(() => {
				        $(this).html(oldHTML);
				}, 200);
				
			    document.body.removeChild(tempInput);

			    return;
			}
			// copy mod by Int64 }

			if (!data.menuToggle) {
				BrowserAutomationStudio_RunFunction(data.name);
				self.Hide();
				return;
			}
			

			var FunctionName = $(event.target).closest(".FunctionManagerItemMenu").attr("data-name")
			var ContentElement = $(".FunctionManagerItemMenuContent[data-name='" + FunctionName + "']")
			var IsVisible = ContentElement.attr("data-visible") == "true"

			$(".FunctionManagerItemMenuContent").hide()
			$(".FunctionManagerItemMenuContent").attr("data-visible","false")

			$(".FunctionManagerItemMenu").removeClass("FunctionManagerItemMenuCurrent")
			
			if(IsVisible)
			{
				ContentElement.hide().attr("data-visible","false")

			}else
			{
				ContentElement.show().attr("data-visible","true")	
				$(event.target).closest(".FunctionManagerItemMenu").addClass("FunctionManagerItemMenuCurrent")
			}
		})
		

       $("#FunctionListMain")
		 .off('click', '.FunctionManagerItemClick')
		 .on("click", ".FunctionManagerItemClick", function(e){
		    e.preventDefault();
		    var name = $(this).attr("data-func-name");
		    _MainView.setfunctionname(name);
		    self.Hide();
		    self.SendCurrentFunction(name);
		  }); 	
    
      	
	   $("#FunctionListMain")
	   .off('dblclick', '.FunctionManagerItemMenuFolder')
	   .on("dblclick", ".FunctionManagerItemMenuFolder", function(event){
		    e.stopPropagation(); 
			e.preventDefault();
	   })
	   
	   $("#FunctionListMain")
	   .off('dblclick', '.FunctionManagerItemMenuContent')
	   .on("dblclick", ".FunctionManagerItemMenuContent", function(event){
		    e.stopPropagation(); 
			e.preventDefault();
	   })
	   
  
       $("#FunctionListMain")
	   .off('click', '.FunctionManagerItemLine')
	   .on("click", ".FunctionManagerItemLine", function(event){
        	event.preventDefault()
        	var Target = $(event.target).closest(".FunctionManagerItemLine")

        	if(Target.find(".FunctionManagerItemMenuOpen").length > 0)
        	{
        		var FuncName = Target.find(".FunctionManagerItemMenuOpen").attr("data-name")
        		_MainView.setfunctionname(FuncName)
        		self.Hide()
        		self.SendCurrentFunction(FuncName)

        	}else if(Target.find(".FunctionManagerItemMenuRun").length > 0)
        	{
				var FuncName = Target.find(".FunctionManagerItemMenuRun").attr("data-name")
        		BrowserAutomationStudio_RunFunction(FuncName);
        		self.Hide()
        	}else if(Target.find(".FunctionManagerItemMenuRunMultithreaded").length > 0)
        	{
				var FuncName = Target.find(".FunctionManagerItemMenuRunMultithreaded").attr("data-name")
        		BrowserAutomationStudio_RunFunctionSeveralThreads(FuncName);
        		self.Hide()
        	}else if(Target.find(".FunctionManagerItemMenuRunAsync").length > 0)
        	{
				var FuncName = Target.find(".FunctionManagerItemMenuRunAsync").attr("data-name")
        		BrowserAutomationStudio_RunFunctionAsync(FuncName);
        		self.Hide()
        	}else if(Target.find(".FunctionManagerItemMenuEdit").length > 0)
        	{
				var FuncName = Target.find(".FunctionManagerItemMenuEdit").attr("data-name")
        		self.RenderFunction(FuncName)
        	}else if(Target.find(".FunctionManagerItemMenuDelete").length > 0)
        	{
				var FuncName = Target.find(".FunctionManagerItemMenuDelete").attr("data-name")
				_MainView.removefunction(FuncName);
        	}else if(Target.find(".FunctionManagerItemMenuCSharp").length > 0)
        	{
				BrowserAutomationStudio_OpenUrl('https://github.com/CheshireCaat/BASRemote.NET');
				self.Hide()
        	}else if(Target.find(".FunctionManagerItemMenuNodejs").length > 0)
        	{
				BrowserAutomationStudio_OpenUrl('https://github.com/CheshireCaat/bas-remote-node');
				self.Hide()
        	}else if(Target.find(".FunctionManagerItemMenuPython").length > 0)
        	{
				BrowserAutomationStudio_OpenUrl('https://github.com/CheshireCaat/bas-remote-python');
				self.Hide()  
        	}else if (Target.find(".FunctionManagerItemMenuFolderEdit").length > 0)  // edit folder name
        	{	
			
				var Target = $(Target).closest(".k-item");
				var item = self.tree.dataItem(Target);
				
				bootbox.prompt({
					title: tr("Please input folder name : "),
					size: 'textarea',
					value: item.get("text"),
					callback: function (result) {
						if(result === null) return
						if(result.length == 0)
							{
							bootbox.alert(tr("Can't rename folder with empty name"));
							return;
						}
						
						item.set("text", result);
						self.updateFunctionStructure() 
					}
				});
				
			}else if(Target.find(".FunctionManagerItemMenuFolderDelete").length > 0)  // delete folder
        	{	
				try {
					
					var isBulkDelete = Target.find(".BulkFolderDelete").length > 0;
					
					var Target = $(Target).closest(".k-item");
					var item = self.tree.dataItem(Target);
					
					if (isBulkDelete) {
						this.isBulkDeleteFlag = true;
						
						const allChilds = (item) => (item.items.toJSON() || []).flatMap(child =>
								[child, ...(child.items ? allChilds(child) : [])]
						);

						
						var funcList = allChilds(item);
						funcList.forEach(function(func) {
							_MainView.removefunction(func.text);
						})
						
						this.isBulkDeleteFlag = false;
					}	
					self.tree.remove(Target);
				
					self.updateFunctionStructure();
					self.RenderDefault();
					
				} catch(e) {
					prompt("FolderDeleteErr",  e + " | " + JSON.stringify(item));
				}
				

				
			}
			
        	
        })
		
		// original events

		$("#FunctionManagerMain").contextmenu(function(event) {
			event.preventDefault();
			event.stopPropagation();
			
		});

		$("#FunctionManagerMainCloseLink").click(function(event){
        	event.preventDefault()
        	self.Hide()
        })
  

		$("#FunctionManagerAddTask").click(function(){
			self.RenderFunction("")
		})
		
	
		//$('[data-toggle="tooltip"]').tooltip({trigger:'hover', template:'<div class="mytooltip" role="tooltip"><div class="mytooltip-arrow tooltip-arrow"></div><div class="mytooltip-inner tooltip-inner"></div></div>',delay: { "show": 500, "hide": 100 }})
       
		
	}
	
	this.RenderDefault = function()
	{
		if (this.isBulkDeleteFlag) return; // bypass
		this.Render(_TaskCollection,_GobalModel.toJSON())
	}

	this.SendCurrentFunction = function(FunctionName)
	{
		var task = FindTaskById(0)
		var found = false
		while(true)
		{
			if(!task)
				break
			var id = parseInt(task.get("id"))
			if(IsFunctionNode(id) && GetFunctionData(id)["name"] == FunctionName)
			{
				found = true
				break
			}
			task = FindNextTask(id)
		}
		if(found)
		{
			BrowserAutomationStudio_SetCurrentFunction(task.get("fd"))
		}

	}

	this.ChangeFunction = function(FunctionName)
	{
		if(GetFunctionList().find(x=>x.name==FunctionName))
		{
			_MainView.setfunctionname(FunctionName)
	    	this.Hide()
	    	this.SendCurrentFunction(FunctionName)
	    }
	}



	this.RenderFunction = function(FunctionName)
	{
		var self = this
		EditingFunctionName = FunctionName
        $("#FunctionManagerMain").html(_.template(TemplateFunction)({functionname:FunctionName}))
        $("#FunctionManagerMainCloseLink").click(function(event){
        	event.preventDefault()
        	self.Hide()
        })

        $("#FunctionManagerMainBackLink").click(function(event){
        	event.preventDefault()
        	self.RenderDefault()
        })

        $('#FunctionManagerEditHasReturnValCheckbox').change(function() {
        	self.SetHasReturnValue($(this).is(":checked"))
        })

        this.SetFunctionName(FunctionName)
        this.SetFunctionReturnVariable("")

        //Find task and get parse data
        var task = FindTaskById(0)
		var found = false
		while(true)
		{
			if(!task)
				break
			var id = parseInt(task.get("id"))
			if(IsFunctionNode(id) && GetFunctionData(id)["name"] == FunctionName)
			{
				found = true
				break
			}
			task = FindNextTask(id)
		}
		if(found)
		{
			this.ParseData(FunctionName, task.get("fd"))
		}

        /*this.SetFunctionName(FunctionName)
        this.SetFunctionDescription("")
        this.SetFunctionReturnDescription("")
        this.SetFunctionReturnVariable("")
        this.SetHasReturnValue(false)*/


        $(".FunctionManagerEditFunctionLink").click(function(event){
        	event.preventDefault()

	        $("#EditFunctionName").val(self.GetFunctionName())
	        $("#validation").html("")
	        $("#editfunctionmodal").modal({})

        })

        $(".FunctionManagerEditFunctionDescriptionLink").click(function(event){
        	event.preventDefault()
			bootbox.prompt({
			    title: tr("Please input function description : "),
			    inputType: 'textarea',
			    value: self.GetFunctionDescription(),
			    callback: function (result) {
			        if(result === null)
						return
					self.SetFunctionDescription(result); 
			    }
			});
        })

        $(".FunctionManagerEditFunctionReturnDescriptionLink").click(function(event){
        	event.preventDefault()
			bootbox.prompt({
			    title: tr("Please input return value description : "),
			    inputType: 'textarea',
			    value: self.GetFunctionReturnDescription(),
			    callback: function (result) {
			        if(result === null)
						return
					self.SetFunctionReturnDescription(result); 
			    }
			});
        })

        $(".FunctionManagerEditFunctionReturnVariableLink").click(function(event){
        	event.preventDefault()
			bootbox.prompt({
			    title: tr("Please input return variable name : "),
			    value: self.GetFunctionReturnVariable(),
			    callback: function (result) {
			        if(result === null)
						return
					self.SetFunctionReturnVariable(result); 
			    }
			});
        })


        $("#FunctionManagerParamList").off('click', ".FunctionManagerEditFunctionParamLink").on("click", ".FunctionManagerEditFunctionParamLink", function(event){
		    event.preventDefault()

        	var Target = $(event.target).closest(".FunctionManagerParamPanel")
        	var Name = Target.attr("data-name")
        	var Description = Target.attr("data-description")
        	var Type = Target.attr("data-type")
        	var Defaults = Target.attr("data-defaults")
        	$("#EditParameterName").val(Name)
        	$("#EditParameterType").val(Type)
        	$("#EditParameterDescription").val(Description)
        	$("#EditParameterDefaults").val(Defaults)


	        $("#editparametermodal").modal({})
		});

		$("#FunctionManagerParamList").off('click', ".FunctionManagerEditFunctionDeleteParam").on("click", ".FunctionManagerEditFunctionDeleteParam", function(event){
		    event.preventDefault()

        	var Target = $(event.target).closest(".FunctionManagerParamPanel")
        	var Name = Target.attr("data-name")
        	bootbox.confirm(tr("Are you sure that you want to delete") + " '" + Name + "' " + tr("param?"), function(result) {
          		if(result)
        			self.RemoveParam(Name)
        	})

		});

		$("#FunctionManagerParamList").off('click', ".FunctionManagerEditFunctionParamLink").on("click", ".FunctionManagerEditFunctionParamLink", function(event){
		    event.preventDefault()

        	var Target = $(event.target).closest(".FunctionManagerParamPanel")
        	var Name = Target.attr("data-name")
        	var Description = Target.attr("data-description")
        	var Type = Target.attr("data-type")
        	var Defaults = Target.attr("data-defaults")
        	$("#EditParameterName").val(Name)
        	$("#EditParameterType").val(Type)
        	$("#EditParameterDescription").val(Description)
        	$("#EditParameterDefaults").val(Defaults)

        	ParamEditingName = Name

	        $("#validationParam").html("")
	        $("#editparametermodal").modal({})
		});


		$("#FunctionManagerAddParam").click(function(event){
		    event.preventDefault()

		    ParamEditingName = null

        	$("#EditParameterName").val("")
        	$("#EditParameterType").val("String")
        	$("#EditParameterDescription").val("")
        	$("#EditParameterDefaults").val("")
			
	        $("#validationParam").html("")
	        $("#editparametermodal").modal({})

		});


		$("#FunctionManagerAddTaskDetailed").click(function(event){
		    event.preventDefault()
		    if($("#FunctionManagerMain").hasClass("NotDetailed"))
		    {
		    	$("#FunctionManagerMain").removeClass("NotDetailed").removeClass("Detailed").addClass("Detailed")
		    	$("#FunctionManagerAddTaskDetailed").text(tr("Less details"))
		    	$(".EditParameterDescriptionPanel").show()
		    	$(".EditParameterDefaultsPanel").show()
		    	MoreDetailsDefault = true;


		    }else
		    {
		    	$("#FunctionManagerMain").removeClass("NotDetailed").removeClass("Detailed").addClass("NotDetailed")
				$("#FunctionManagerAddTaskDetailed").text(tr("More details"))
				$(".EditParameterDescriptionPanel").hide()
				$(".EditParameterDefaultsPanel").hide()
				MoreDetailsDefault = false;
		    }

		});

		if(MoreDetailsDefault)
		{
			$("#FunctionManagerMain").removeClass("NotDetailed").removeClass("Detailed").addClass("Detailed")
	    	$("#FunctionManagerAddTaskDetailed").text(tr("Less details"))
	    	$(".EditParameterDescriptionPanel").show()
	    	$(".EditParameterDefaultsPanel").show()
		}else
		{
			$("#FunctionManagerMain").removeClass("NotDetailed").removeClass("Detailed").addClass("NotDetailed")
			$("#FunctionManagerAddTaskDetailed").text(tr("More details"))
			$(".EditParameterDescriptionPanel").hide()
			$(".EditParameterDefaultsPanel").hide()

		}


		$("#FunctionManagerAddTaskCancel").click(function(event){
		    event.preventDefault()
          	self.RenderDefault()
		});

		$("#FunctionManagerAddTaskResult").click(function(event){
		    event.preventDefault()
		    var name = self.GetFunctionName()
		    if(name.length == 0)
		    {
		    	bootbox.alert(tr("Can't create function with empty name"));
		    	return;
		    }
		    if(FunctionName)
		    {
		    	//Edit existing function
				_GobalModel.set("dontsend",true)

				var task = FindTaskById(0)
				var found = false
				while(true)
				{
					if(!task)
						break
					var id = parseInt(task.get("id"))
					if(IsFunctionNode(id) && GetFunctionData(id)["name"] == FunctionName)
					{
						found = true
						break
					}
					task = FindNextTask(id)
				}
				if(found)
				{
					task.set("name",name)
					task.set("fd", self.SerializeData())
					task.set("code",Normalize(_.template($('#function_code').html())({name:name})))
				}
				//_GobalModel.set("function_name",name)
				//_MainView.SetDefaultInsert()
				_MainView.model.set("dontsend",false)
				BrowserAutomationStudio_SaveToUndoManager()
				_MainView.send()
				BrowserAutomationStudio_AskForVariablesUpdateIfNeeded()
				_MainView.render()
				self.RenderDefault()
		    }else
		    {		
		    	//Add new function
		    	var id = Math.floor(Math.random() * (1000000000 - 100)) + 100
          		var code = Normalize(_.template($('#function_code').html())({name:name}))
          		var task = { name: name, fd: self.SerializeData(), code: code, id: id, donotexecuteduringrecord: false, parentid: 0}
          		_TaskCollection.add(task,{at: 1})
          			
          			
          		_GobalModel.set("function_name",name)
          		_MainView.ClearSelection()

         		self.SendCurrentFunction(name)

         		BrowserAutomationStudio_StopSaveToUndoManager = true

         		var i = 1;

          		self.GetParamList().forEach(function(Param){
          			var Id = Math.floor(Math.random() * (1000000000 - 100)) + 100
          			var VarName = self.ClearVariableName(self.Translit(Param.name).replace(/\s/g,"_"))

          			if(VarName.replace(/\_/g,"").length == 0)
          			{
          				VarName	= "FUNCTION_PARAMETER_" + i
          				i++
          			}


          			var Dat = {"s":"getfunctionparameter","v":1,"f":[],"uw":"0","ut":"0","uto":"0","um":"0","d":[{"id":"ParameterName","type":"constr","data":Param.name,"class":"string"},{"id":"Save","type":"var","data":VarName}]}

          			BrowserAutomationStudio_AddTask("\u007b\u0022n\u0022:\u0022" + tr("Obtaining function parameter") + "\u0022,\u0022c\u0022:\u00222\u0022\u007d",`/*Dat:${utf8_to_b64(JSON.stringify(Dat))}*/
      					VAR_${VarName} = _function_argument(${JSON.stringify(Param.name)})`,Id)
					
          		})

          		if(self.GetHasReturnValue())
          		{
          			var Id = Math.floor(Math.random() * (1000000000 - 100)) + 100


					BrowserAutomationStudio_AddTask("\u007b\u0022n\u0022:\u0022" + tr("Finish function and set result") + "\u0022,\u0022c\u0022:\u00221\u0022\u007d",`/*Dat:eyJzIjoicmV0dXJuIiwidiI6MSwiZiI6W10sInV3IjoiMCIsInV0IjoiMCIsInV0byI6IjAiLCJ1bSI6IjAiLCJkIjpbeyJpZCI6IlJldHVyblZhbHVlIiwidHlwZSI6ImNvbnN0ciIsImRhdGEiOiJSZXR1cm4gdmFsdWUiLCJjbGFzcyI6InN0cmluZyJ9XX0=*/
      					_function_return("Return value")`,Id)
          		}


          		BrowserAutomationStudio_StopSaveToUndoManager = false
        		BrowserAutomationStudio_SaveToUndoManager()
        		BrowserAutomationStudio_AskForVariablesUpdateIfNeeded()


          		
          		self.Hide()
		    }
		});
        
		tr()

		//$('[data-toggle="tooltip"]').tooltip({trigger:'hover', template:'<div class="mytooltip" role="tooltip"><div class="mytooltip-arrow tooltip-arrow"></div><div class="mytooltip-inner tooltip-inner"></div></div>',delay: { "show": 500, "hide": 100 }})

    }

    //
    //Params
    //

    this.GetParamList = function()
    {
    	var Res = []
		$.each( $(".FunctionManagerParamPanel"), function( Index, Element ){
			var Name = $(Element).attr("data-name")
			var Type = $(Element).attr("data-type")
			var Description = $(Element).attr("data-description")
			var Defaults = $(Element).attr("data-defaults")
			var El = {name: Name,type: Type,description: Description, defaults: Defaults}
			Res.push(El)
		})
		return Res
    }

    this.FindParam = function(Name)
    {
		var Res = this.GetParamList().find(function(Element) {
			if(Element.name == Name)
				return Element
		});
		if(typeof(Res) == "undefined")
			return null
		return Res
    }

    this.RemoveParam = function(Name)
    {
		$.each( $(".FunctionManagerParamPanel"), function( Index, Element ){
			var CurrentName = $(Element).attr("data-name")
			if(Name == CurrentName)
				$(Element).remove()
		})
	   	this.UpdateParamsInterface()
    }

    this.AddOrChangeParam = function(Name, Type, Description, Defaults)
    {
    	if(Name.length == 0)
    		return "Name is empty"
    	if(ParamEditingName == null)
    	{
    		if(this.FindParam(Name))
    		{
    			return tr("Parameter with this name already exists")
    		}
    	}else
    	{
    		if(Name != ParamEditingName && this.FindParam(Name))
    		{
				return tr("Parameter with this name already exists")
    		}
    		$.each( $(".FunctionManagerParamPanel"), function( Index, Element ){
				var Name = $(Element).attr("data-name")
				if(Name == ParamEditingName)
					$(Element).remove()
			})
    	}
    	$("#FunctionManagerParamList").append(_.template(TemplateParam)({name:Name,type:Type,description:Description,defaults:Defaults}))
    	this.UpdateParamsInterface()
    	return null
    }

    this.UpdateParamsInterface = function()
    {

    	var Items = $('.FunctionManagerParamPanel');
    	$("#FunctionManagerEditParamsNumber").html(Items.length.toString())
    	if(Items.length == 0)
    	{
    		$("#FunctionManagerParamListEmpty").show()
    	}else
    	{
    		$("#FunctionManagerParamListEmpty").hide()
			Items.sort(function(a, b){

			    return $(a).data('name').localeCompare($(b).data('name'));
			});
	    
			Items.appendTo('#FunctionManagerParamList');
		}
    }

    //
    //Tools
    //

    this.ClearVariableName = function(VariableName)
    {
		return VariableName.toUpperCase().replace(/[^a-zA-Z0-9_]/g,"")
    }

    this.Translit = function(Str)
    {
    
	    var ru = {
	        'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd', 
	        'е': 'e', 'ё': 'e', 'ж': 'j', 'з': 'z', 'и': 'i', 
	        'к': 'k', 'л': 'l', 'м': 'm', 'н': 'n', 'о': 'o', 
	        'п': 'p', 'р': 'r', 'с': 's', 'т': 't', 'у': 'u', 
	        'ф': 'f', 'х': 'h', 'ц': 'c', 'ч': 'ch', 'ш': 'sh', 
	        'щ': 'shch', 'ы': 'y', 'э': 'e', 'ю': 'u', 'я': 'ya'
	    }, n_str = [];
	    
	    Str = Str.replace(/[ъь]+/g, '').replace(/й/g, 'i');
	    
	    for ( var i = 0; i < Str.length; ++i ) {
	       n_str.push(
	              ru[ Str[i] ]
	           || ru[ Str[i].toLowerCase() ] == undefined && Str[i]
	           || ru[ Str[i].toLowerCase() ].replace(/^(.)/, function ( match ) { return match.toUpperCase() })
	       );
	    }
	    
	    return n_str.join('');
	}
    
	//
	//Data
	//

	this.SerializeData = function()
	{
		var Data = {}
		Data["fd"] = this.GetFunctionDescription()
		Data["hr"] = this.GetHasReturnValue()
		Data["rd"] = this.GetFunctionReturnDescription()
		Data["rv"] = this.GetFunctionReturnVariable()
		Data["p"] = this.GetParamList()

		return JSON.stringify(Data)
	}

	this.ParseData = function(FunctionName, Data)
	{
		var self = this
		try{
			this.SetFunctionName(FunctionName)
			var DataObject = JSON.parse(Data)
			this.SetFunctionDescription(DataObject["fd"])
			this.SetHasReturnValue(DataObject["hr"])
			$('#FunctionManagerEditHasReturnValCheckbox').prop('checked', DataObject["hr"]);
			this.SetFunctionReturnDescription(DataObject["rd"])
			this.SetFunctionReturnVariable(DataObject["rv"])
			ParamEditingName = null
			DataObject["p"].forEach(function(Param){
				self.AddOrChangeParam(Param["name"],Param["type"],Param["description"],Param["defaults"])
			})
		}catch(e)
		{

		}
	}



    this.GetEditingFunctionName = function()
    {
    	return EditingFunctionName
    }

    this.SetHasReturnValue = function(HasReturnValue)
    {
    	if(HasReturnValue)
    	{
    		$("#FunctionManagerEditHasReturnVal").text(tr("yes"))
    		$("#FunctionManagerEditFunctionReturnDescriptionPanel").show()
    		$("#FunctionManagerEditFunctionReturnVariablePanel").show()
    	}else
    	{
			$("#FunctionManagerEditHasReturnVal").text(tr("no"))
			$("#FunctionManagerEditFunctionReturnDescriptionPanel").hide()
    		$("#FunctionManagerEditFunctionReturnVariablePanel").hide()
    	}
    }

    this.GetHasReturnValue = function()
    {
    	return $('#FunctionManagerEditHasReturnValCheckbox').is(":checked")
    }

    this.SetFunctionName = function(FunctionName)
    {
    	if(FunctionName.length == 0)
        {
			$("#FunctionManagerEditName").text(tr("Empty, please set"))
			$("#FunctionManagerEditName").addClass("FunctionManagerEditEmpty")
        }else
        {
        	$("#FunctionManagerEditName").text(FunctionName)
        	$("#FunctionManagerEditName").removeClass("FunctionManagerEditEmpty")
        }
    }

    this.SetFunctionDescription = function(FunctionDescription)
    {
    	if(FunctionDescription.length == 0)
        {
			$("#FunctionManagerEditDescription").text("-")
			$("#FunctionManagerEditDescription").addClass("FunctionManagerEditEmptyNotImportant")
        }else
        {
        	$("#FunctionManagerEditDescription").text(FunctionDescription)
        	$("#FunctionManagerEditDescription").removeClass("FunctionManagerEditEmptyNotImportant")
        }
    }

    this.SetFunctionReturnDescription = function(FunctionReturnDescription)
    {
    	if(FunctionReturnDescription.length == 0)
        {
			$("#FunctionManagerEditReturnDescription").text("-")
			$("#FunctionManagerEditReturnDescription").addClass("FunctionManagerEditEmptyNotImportant")
        }else
        {
        	$("#FunctionManagerEditReturnDescription").text(FunctionReturnDescription)
        	$("#FunctionManagerEditReturnDescription").removeClass("FunctionManagerEditEmptyNotImportant")
        }
    }

    this.SetFunctionReturnVariable = function(FunctionReturnVariable)
    {
    	if(FunctionReturnVariable.length == 0)
        {
			$("#FunctionManagerEditReturnVariable").text(this.ClearVariableName("FUNCTION_RESULT"))
			$("#FunctionManagerEditReturnVariable").addClass("FunctionManagerEditEmptyNotImportant")
        }else
        {
        	$("#FunctionManagerEditReturnVariable").text(this.ClearVariableName(FunctionReturnVariable))
        	$("#FunctionManagerEditReturnVariable").removeClass("FunctionManagerEditEmptyNotImportant")
        }
    }


    this.GetFunctionName = function()
    {
    	if($("#FunctionManagerEditName").hasClass("FunctionManagerEditEmpty"))
    	{
    		return ""
    	}else
    	{
    		return $("#FunctionManagerEditName").text()
    	}
    }

    this.GetFunctionDescription = function()
    {
    	if($("#FunctionManagerEditDescription").hasClass("FunctionManagerEditEmptyNotImportant"))
    	{
    		return ""
    	}else
    	{
    		return $("#FunctionManagerEditDescription").text()
    	}
    }


    this.GetFunctionReturnDescription = function()
    {
    	if($("#FunctionManagerEditReturnDescription").hasClass("FunctionManagerEditEmptyNotImportant"))
    	{
    		return ""
    	}else
    	{
    		return $("#FunctionManagerEditReturnDescription").text()
    	}
    }

    this.GetFunctionReturnVariable = function()
    {
    	if($("#FunctionManagerEditReturnVariable").hasClass("FunctionManagerEditEmptyNotImportant"))
    	{
    		return "FUNCTION_RESULT"
    	}else
    	{
    		return this.ClearVariableName($("#FunctionManagerEditReturnVariable").text())
    	}
    }

    //
    //Visibility
    //
    

	this.Show = function()
	{
		if(this.IsVisible())
		{
			return
		}
		$(".modal.in").modal("hide")
		$('#FunctionManagerMain').show()
		if(!$('.scenario-page').is(':visible'))
		{
			$("html").addClass("overflow-hidden")
		}
		$('#FunctionManagerMain').attr("data-visible","true")
	}

	this.Hide = function()
	{	
		if(!this.IsVisible())
		{
			return
		}
		$(".modal.in").modal("hide")
		$('#FunctionManagerMain').hide()
		if(!$('.scenario-page').is(':visible'))
		{
			$("html").removeClass("overflow-hidden")
		}
		$('#FunctionManagerMain').attr("data-visible","false")
		this.updateFunctionStructure();
		this.isSearch = false;
	}

	this.Toggle = function ()
	{
		if(this.IsVisible())
		{
			this.Hide();
		}else
		{
			this.RenderDefault();
			this.Show();
		}
	}

	this.IsVisible = function()
	{
		return $("#FunctionManagerMain").attr("data-visible") == "true"
	}

}




$("<style>")
			.prop("type","text/css")
			  .html(`
			  

			.k-treeview ul {
			  list-style: none !important;
			  margin-left: 0 !important;
			  padding-left: 5px
			  background-color:#333;
			}

			  
			.k-drop-hint {
				display: flex;
				gap: 4px;
				justify-content: space-between;
				align-items: center;
				position: fixed !important;
				z-index: 1000;
				background-color:#333;
			}  


			.k-drop-hint-h .k-drop-hint-start {
				border-left-width: 0;
				border-left-color: #ff0000 !important;
				border-right-width: 0;
			}

			.k-drop-hint-h .k-drop-hint-line {
				display: none !important;
			}

			.FunctionManagerItemMenuContent
			{
			  margin-left:0px !important;
			  margin-right:10px;
			  display:none;
			  padding-left: 0px;
			  padding-right: 0px;
			  margin-top: -8px;
			}

			#FunctionManagerAddFolder
			{
			  position:fixed;
			  right: 23px;
			  bottom: 92px;
			  width: 35px;
			  height: 35px;
			  line-height: 35px;
			  text-align: center;
			  background-color: #d9534f;
			  color: white;
			  border-radius: 50%;
			  font-size: 15px;
			  text-decoration: none;
			}
			
			.custom-tooltip {
			  position: relative;
			  display: inline-block;
			  cursor: pointer;
			}

			.custom-tooltip .tooltip-text {
			  visibility: hidden;
			  line-height: 1.6;
			  opacity: 0;
			  position: absolute;
			  bottom: 120%; 
			  left: 0;
			  transform: translateX(-80%);
			  background-color: #333;
			  color: #fff;
			  padding: 0px 5px;
			  border: 1px solid #ccc;
			  font-size: 13px;
			  border-radius: 5px;
			  white-space: nowrap;
			  box-shadow: 0px 0px 0px rgba(238, 238, 238, 0.2);
		
			  z-index: 1000;
			}

			.custom-tooltip:hover .tooltip-text {
			  visibility: visible;
			  opacity: 1;
			}

			.FunctionManagerFolderClick {
				background-color: #333; /* светло-голубой */
				font-size: 14px;
				color: #fff !important;
				border-bottom: 1px solid #404040;
				text-decoration: none !important;
				padding-left: 10px;
				display: inline-block;
				height: 40px;
				line-height: 40px;
				flex: 1;
			}

			.FunctionManagerFolderClick:hover {
				background-color: #333 ; /* немного темнее при наведении */
			}


			.FunctionManagerItemMenuFolderDelete, .FunctionManagerItemMenuFolderEdit
			{
			  color: #333;	
			}
			
			 
			.FunctionManagerItem1 {   border-left: 3px solid #6B69D6   !important;  }  /*  зелёный */
			.FunctionManagerItem4 {   border-left: 3px solid #00a67dc9 !important;  }  /*  зелёный */
		    .FunctionManagerItem5 {   border-left: 3px solid #f80036bb !important;  }
		    .FunctionManagerItem2 {   border-left: 3px solid #009bdebe !important;  }  
		    .FunctionManagerItem3 {   border-left: 3px solid #fa8900c9 !important;  }  

			`)
			.appendTo("head");






















































$("<style>")
			.prop("type","text/css")
			  .html(`
:root{--kendo-disabled-text: unset;--kendo-disabled-bg: unset;--kendo-disabled-border: unset;--kendo-disabled-opacity: .6;--kendo-disabled-filter: grayscale(.1)}:root{--kendo-color-app-surface: #ffffff;--kendo-color-on-app-surface: #424242;--kendo-color-subtle: #666666;--kendo-color-surface: #fafafa;--kendo-color-surface-alt: #ffffff;--kendo-color-border: rgba(0, 0, 0, 0.08);--kendo-color-border-alt: rgba(0, 0, 0, 0.16);--kendo-color-base-subtle: #ebebeb;--kendo-color-base-subtle-hover: #e1e1e1;--kendo-color-base-subtle-active: #d5d5d5;--kendo-color-base: #f5f5f5;--kendo-color-base-hover: #ebebeb;--kendo-color-base-active: #d8d8d8;--kendo-color-base-emphasis: #c2c2c2;--kendo-color-base-on-subtle: #424242;--kendo-color-on-base: #424242;--kendo-color-base-on-surface: #424242;--kendo-color-primary-subtle: #d0e3ee;--kendo-color-primary-subtle-hover: #accee2;--kendo-color-primary-subtle-active: #89bad6;--kendo-color-primary: #1274AC;--kendo-color-primary-hover: #116fa5;--kendo-color-primary-active: #106697;--kendo-color-primary-emphasis: #4d97c1;--kendo-color-primary-on-subtle: #06293c;--kendo-color-on-primary: white;--kendo-color-primary-on-surface: #0e5781;--kendo-color-secondary-subtle: #e3e3e3;--kendo-color-secondary-subtle-hover: #cfcfcf;--kendo-color-secondary-subtle-active: #bababa;--kendo-color-secondary: #757575;--kendo-color-secondary-hover: #707070;--kendo-color-secondary-active: #676767;--kendo-color-secondary-emphasis: #989898;--kendo-color-secondary-on-subtle: #292929;--kendo-color-on-secondary: white;--kendo-color-secondary-on-surface: #585858;--kendo-color-tertiary-subtle: #cce5e6;--kendo-color-tertiary-subtle-hover: #a6d2d4;--kendo-color-tertiary-subtle-active: #80bfc2;--kendo-color-tertiary: #007F84;--kendo-color-tertiary-hover: #007a7f;--kendo-color-tertiary-active: #007074;--kendo-color-tertiary-emphasis: #409fa3;--kendo-color-tertiary-on-subtle: #002c2e;--kendo-color-on-tertiary: white;--kendo-color-tertiary-on-surface: #005f63;--kendo-color-info-subtle: #ccdefb;--kendo-color-info-subtle-hover: #a6c5f7;--kendo-color-info-subtle-active: #80acf4;--kendo-color-info: #0058E9;--kendo-color-info-hover: #0054e0;--kendo-color-info-active: #004dcd;--kendo-color-info-emphasis: #4082ef;--kendo-color-info-on-subtle: #001f52;--kendo-color-on-info: white;--kendo-color-info-on-surface: #0042af;--kendo-color-success-subtle: #d4e6cc;--kendo-color-success-subtle-hover: #b3d3a6;--kendo-color-success-subtle-active: #93c180;--kendo-color-success: #278200;--kendo-color-success-hover: #257d00;--kendo-color-success-active: #227200;--kendo-color-success-emphasis: #5da140;--kendo-color-success-on-subtle: #0e2e00;--kendo-color-on-success: white;--kendo-color-success-on-surface: #1d6200;--kendo-color-warning-subtle: #fdedcc;--kendo-color-warning-subtle-hover: #fce0a6;--kendo-color-warning-subtle-active: #fad380;--kendo-color-warning: #F5A600;--kendo-color-warning-hover: #eb9f00;--kendo-color-warning-active: #d89200;--kendo-color-warning-emphasis: #f8bc40;--kendo-color-warning-on-subtle: #563a00;--kendo-color-on-warning: white;--kendo-color-warning-on-surface: #b87d00;--kendo-color-error-subtle: #f7d1d3;--kendo-color-error-subtle-hover: #f0afb2;--kendo-color-error-subtle-active: #ea8c91;--kendo-color-error: #D51923;--kendo-color-error-hover: #cc1822;--kendo-color-error-active: #bb161f;--kendo-color-error-emphasis: #e0535a;--kendo-color-error-on-subtle: #4b090c;--kendo-color-on-error: white;--kendo-color-error-on-surface: #a0131a;--kendo-color-light-subtle: #e3e3e3;--kendo-color-light-subtle-hover: #cfcfcf;--kendo-color-light-subtle-active: #bababa;--kendo-color-light: #757575;--kendo-color-light-hover: #707070;--kendo-color-light-active: #676767;--kendo-color-light-emphasis: #989898;--kendo-color-light-on-subtle: #292929;--kendo-color-on-light: white;--kendo-color-light-on-surface: #585858;--kendo-color-dark-subtle: #c2c2c2;--kendo-color-dark-subtle-hover: #adadad;--kendo-color-dark-subtle-active: #999999;--kendo-color-dark: #3d3d3d;--kendo-color-dark-hover: #292929;--kendo-color-dark-active: #1f1f1f;--kendo-color-dark-emphasis: #666666;--kendo-color-dark-on-subtle: #1f1f1f;--kendo-color-on-dark: #ffffff;--kendo-color-dark-on-surface: #141414;--kendo-color-inverse-subtle: #c2c2c2;--kendo-color-inverse-subtle-hover: #adadad;--kendo-color-inverse-subtle-active: #999999;--kendo-color-inverse: #3d3d3d;--kendo-color-inverse-hover: #292929;--kendo-color-inverse-active: #1f1f1f;--kendo-color-inverse-emphasis: #666666;--kendo-color-inverse-on-subtle: #1f1f1f;--kendo-color-on-inverse: #ffffff;--kendo-color-inverse-on-surface: #141414;--kendo-color-series-a: #1274AC;--kendo-color-series-a-bold: #0e5781;--kendo-color-series-a-bolder: #093a56;--kendo-color-series-a-subtle: #4d97c1;--kendo-color-series-a-subtler: #89bad6;--kendo-color-series-b: #FFE162;--kendo-color-series-b-bold: #bfa94a;--kendo-color-series-b-bolder: #807131;--kendo-color-series-b-subtle: #ffe989;--kendo-color-series-b-subtler: #fff0b1;--kendo-color-series-c: #4CD180;--kendo-color-series-c-bold: #399d60;--kendo-color-series-c-bolder: #266940;--kendo-color-series-c-subtle: #79dda0;--kendo-color-series-c-subtler: #a6e8c0;--kendo-color-series-d: #0074e6;--kendo-color-series-d-bold: #0057ad;--kendo-color-series-d-bolder: #003a73;--kendo-color-series-d-subtle: #4097ec;--kendo-color-series-d-subtler: #80baf3;--kendo-color-series-e: #9B4FE6;--kendo-color-series-e-bold: #743bad;--kendo-color-series-e-bolder: #4e2873;--kendo-color-series-e-subtle: #b47bec;--kendo-color-series-e-subtler: #cda7f3;--kendo-color-series-f: #FF80AC;--kendo-color-series-f-bold: #bf6081;--kendo-color-series-f-bolder: #804056;--kendo-color-series-f-subtle: #ffa0c1;--kendo-color-series-f-subtler: #ffc0d6}.k-sr-only{position:absolute;left:-1px;width:1px;height:1px;overflow:hidden}.k-push-right-enter,.k-push-right-appear{transform:translate(-100%, 0)}.k-push-right-enter-active,.k-push-right-appear-active{transform:translate(0, 0);transition:transform 300ms ease-in-out}.k-push-right-exit{transform:translate(0, 0)}.k-push-right-exit-active{transform:translate(100%, 0);transition:transform 300ms ease-in-out}.k-push-left-enter,.k-push-left-appear{transform:translate(100%, 0)}.k-push-left-enter-active,.k-push-left-appear-active{transform:translate(0, 0);transition:transform 300ms ease-in-out}.k-push-left-exit{transform:translate(0, 0)}.k-push-left-exit-active{transform:translate(-100%, 0);transition:transform 300ms ease-in-out}.k-push-down-enter,.k-push-down-appear{transform:translate(0, -100%)}.k-push-down-enter-active,.k-push-down-appear-active{transform:translate(0, 0);transition:transform 300ms ease-in-out}.k-push-down-exit{transform:translate(0, 0)}.k-push-down-exit-active{transform:translate(0, 100%);transition:transform 300ms ease-in-out}.k-push-up-enter,.k-push-up-appear{transform:translate(0, 100%)}.k-push-up-enter-active,.k-push-up-appear-active{transform:translate(0, 0);transition:transform 300ms ease-in-out}.k-push-up-exit{transform:translate(0, 0)}.k-push-up-exit-active{transform:translate(0, -100%);transition:transform 300ms ease-in-out}.k-expand-vertical-enter,.k-expand-vertical-appear{transform:scaleY(0)}.k-expand-vertical-enter-active,.k-expand-vertical-appear-active{transform:scaleY(1);transition:transform 300ms ease-in-out}.k-expand-vertical-exit{transform:scaleY(1)}.k-expand-vertical-exit-active{transform:scaleY(0);transition:transform 300ms ease-in-out}.k-expand-horizontal-enter,.k-expand-horizontal-appear{transform:scaleX(0)}.k-expand-horizontal-enter-active,.k-expand-horizontal-appear-active{transform:scaleX(1);transition:transform 300ms ease-in-out}.k-expand-horizontal-exit{transform:scaleX(1)}.k-expand-horizontal-exit-active{transform:scaleX(0);transition:transform 300ms ease-in-out}.k-fade-enter,.k-fade-appear{opacity:0}.k-fade-enter-active,.k-fade-appear-active{opacity:1;transition:opacity 500ms ease-in-out}.k-fade-exit{opacity:1}.k-fade-exit-active{opacity:0;transition:opacity 500ms ease-in-out}.k-fade-exit-active+.k-fade-exit-active,.k-fade-enter-active+.k-fade-enter-active{display:none}.k-zoom-in-enter,.k-zoom-in-appear{opacity:0;transform:scale(0)}.k-zoom-in-enter-active,.k-zoom-in-appear-active{opacity:1;transform:scale(1);transition:transform,opacity 300ms ease-in-out}.k-zoom-in-exit{opacity:1;transform:scale(1)}.k-zoom-in-exit-active{opacity:0;transform:scale(2);transition:transform,opacity 300ms ease-in-out}.k-zoom-out-enter,.k-zoom-out-appear{opacity:0;transform:scale(2)}.k-zoom-out-enter-active,.k-zoom-out-appear-active{opacity:1;transform:scale(1);transition:transform,opacity 300ms ease-in-out}.k-zoom-out-exit{opacity:1;transform:scale(1)}.k-zoom-out-exit-active{opacity:0;transform:scale(0);transition:transform,opacity 300ms ease-in-out}.k-slide-in-appear{opacity:.1;transform:translate(0, -3em)}.k-slide-in-appear .k-centered{transform:translate(-50%, -60%)}.k-slide-in-appear-active{opacity:1;transform:translate(0, 0);transition:transform .3s cubic-bezier(0.2, 0.6, 0.4, 1),opacity .3s cubic-bezier(0.2, 1, 0.2, 1)}.k-slide-in-appear-active .k-centered{transform:translate(-50%, -50%)}.k-slide-down-enter,.k-slide-down-appear{transform:translateY(-100%)}.k-slide-down-enter-active,.k-slide-down-appear-active{transform:translateY(0);transition:transform 300ms ease-in-out}.k-slide-down-exit{transform:translateY(0)}.k-slide-down-exit-active{transform:translateY(-100%);transition:transform 300ms ease-in-out}.k-slide-up-enter,.k-slide-up-appear{transform:translateY(100%)}.k-slide-up-enter-active,.k-slide-up-appear-active{transform:translateY(0);transition:transform 300ms ease-in-out}.k-slide-up-exit{transform:translateY(0)}.k-slide-up-exit-active{transform:translateY(100%);transition:transform 300ms ease-in-out}.k-slide-right-enter,.k-slide-right-appear{transform:translateX(-100%)}.k-slide-right-enter-active,.k-slide-right-appear-active{transform:translateX(0);transition:transform 300ms ease-in-out}.k-slide-right-exit{transform:translateX(0)}.k-slide-right-exit-active{transform:translateX(-100%);transition:transform 300ms ease-in-out}.k-slide-left-enter,.k-slide-left-appear{transform:translateX(100%)}.k-slide-left-enter-active,.k-slide-left-appear-active{transform:translateX(0);transition:transform 300ms ease-in-out}.k-slide-left-exit{transform:translateX(0)}.k-slide-left-exit-active{transform:translateX(100%);transition:transform 300ms ease-in-out}.k-reveal-vertical-enter,.k-reveal-vertical-appear{max-height:0}.k-reveal-vertical-enter-active,.k-reveal-vertical-appear-active{transition:max-height 300ms ease-in-out}.k-reveal-vertical-exit-active{max-height:0 !important;transition:max-height 300ms ease-in-out}.k-reveal-horizontal-enter,.k-reveal-horizontal-appear{max-width:0}.k-reveal-horizontal-enter-active,.k-reveal-horizontal-appear-active{transition:max-width 300ms ease-in-out}.k-reveal-horizontal-exit-active{max-width:0 !important;transition:max-width 300ms ease-in-out}.k-fx-end .k-fx-next,.k-fx-end .k-fx-current{transition:all 350ms ease-out}.k-fx{position:relative}.k-fx .k-fx-current{z-index:0}.k-fx .k-fx-next{z-index:1}.k-fx-hidden,.k-fx-hidden *{visibility:hidden !important}.k-fx-reverse .k-fx-current{z-index:1}.k-fx-reverse .k-fx-next{z-index:0}.k-fx-zoom.k-fx-start .k-fx-next{transform:scale(0) !important}.k-fx-zoom.k-fx-end .k-fx-next{transform:scale(1) !important}.k-fx-zoom.k-fx-reverse.k-fx-start .k-fx-next,.k-fx-zoom.k-fx-reverse.k-fx-end .k-fx-next{transform:scale(1) !important}.k-fx-zoom.k-fx-reverse.k-fx-start .k-fx-current{transform:scale(1) !important}.k-fx-zoom.k-fx-reverse.k-fx-end .k-fx-current{transform:scale(0) !important}.k-fx-fade.k-fx-start .k-fx-next{will-change:opacity;opacity:0}.k-fx-fade.k-fx-end .k-fx-next{opacity:1}.k-fx-fade.k-fx-reverse.k-fx-start .k-fx-current{will-change:opacity;opacity:1}.k-fx-fade.k-fx-reverse.k-fx-end .k-fx-current{opacity:0}.k-fx-slide.k-fx-end .k-fx-next .k-content,.k-fx-slide.k-fx-end .k-fx-next .k-header,.k-fx-slide.k-fx-end .k-fx-next .k-footer,.k-fx-slide.k-fx-end .k-fx-current .k-content,.k-fx-slide.k-fx-end .k-fx-current .k-header,.k-fx-slide.k-fx-end .k-fx-current .k-footer,.k-fx-slide.k-fx-end .k-fx-next .km-content,.k-fx-slide.k-fx-end .k-fx-next .km-header,.k-fx-slide.k-fx-end .k-fx-next .km-footer,.k-fx-slide.k-fx-end .k-fx-current .km-content,.k-fx-slide.k-fx-end .k-fx-current .km-header,.k-fx-slide.k-fx-end .k-fx-current .km-footer{transition:all 350ms ease-out}.k-fx-slide.k-fx-start .k-fx-next .k-content,.k-fx-slide.k-fx-start .k-fx-next .km-content{will-change:transform;transform:translateX(100%)}.k-fx-slide.k-fx-start .k-fx-next .k-header,.k-fx-slide.k-fx-start .k-fx-next .k-footer,.k-fx-slide.k-fx-start .k-fx-next .km-header,.k-fx-slide.k-fx-start .k-fx-next .km-footer{will-change:opacity;opacity:0}.k-fx-slide.k-fx-end .k-fx-current .k-content,.k-fx-slide.k-fx-end .k-fx-current .km-content{transform:translateX(-100%)}.k-fx-slide.k-fx-end .k-fx-next .k-header,.k-fx-slide.k-fx-end .k-fx-next .k-footer,.k-fx-slide.k-fx-end .k-fx-next .km-header,.k-fx-slide.k-fx-end .k-fx-next .km-footer{opacity:1}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .k-content,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-content{will-change:transform;transform:translateX(0)}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .k-content,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-content{transform:translateX(100%)}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .k-content,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-content{transform:translateX(-100%)}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .k-content,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-content{transform:translateX(0)}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .k-header,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .k-footer,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-header,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-footer{will-change:opacity;opacity:1}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .k-header,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .k-footer,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-header,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-footer{opacity:1}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .k-header,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .k-footer,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-header,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-footer{opacity:0}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .k-header,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .k-footer,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-header,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-footer{opacity:1}.k-fx-slide.k-fx-right.k-fx-start .k-fx-next .k-content,.k-fx-slide.k-fx-right.k-fx-start .k-fx-next .km-content{transform:translateX(-100%)}.k-fx-slide.k-fx-right.k-fx-end .k-fx-current .k-content,.k-fx-slide.k-fx-right.k-fx-end .k-fx-current .km-content{transform:translateX(100%)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current .k-content,.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current .km-content{transform:translateX(0)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current .k-content,.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current .km-content{transform:translateX(-100%)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next .k-content,.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next .km-content{transform:translateX(100%)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next .k-content,.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next .km-content{transform:translateX(0%)}.k-fx-tile.k-fx-start .k-fx-next{will-change:transform;transform:translateX(100%)}.k-fx-tile.k-fx-end .k-fx-current{transform:translateX(-100%)}.k-fx-tile.k-fx-reverse.k-fx-start .k-fx-current{will-change:transform;transform:translateX(0)}.k-fx-tile.k-fx-reverse.k-fx-end .k-fx-current{transform:translateX(100%)}.k-fx-tile.k-fx-reverse.k-fx-start .k-fx-next{transform:translateX(-100%)}.k-fx-tile.k-fx-reverse.k-fx-end .k-fx-next{transform:translateX(0)}.k-fx-tile.k-fx-right.k-fx-start .k-fx-next{transform:translateX(-100%)}.k-fx-tile.k-fx-right.k-fx-end .k-fx-current{transform:translateX(100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current{transform:translateX(0)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current{transform:translateX(-100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next{transform:translateX(100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next{transform:translateX(0%)}.k-fx.k-fx-overlay.k-fx-start .k-fx-next,.k-fx.k-fx-overlay.k-fx-left.k-fx-start .k-fx-next{will-change:transform;transform:translateX(100%)}.k-fx.k-fx-overlay.k-fx-right.k-fx-start .k-fx-next{transform:translateX(-100%)}.k-fx.k-fx-overlay.k-fx-up.k-fx-start .k-fx-next{transform:translateY(100%)}.k-fx.k-fx-overlay.k-fx-down.k-fx-start .k-fx-next{transform:translateY(-100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-start .k-fx-next{transform:none}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-start .k-fx-current{will-change:transform;transform:none}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-end .k-fx-current,.k-fx.k-fx-overlay.k-fx-reverse.k-fx-left.k-fx-end .k-fx-current{transform:translateX(100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-right.k-fx-end .k-fx-current{transform:translateX(-100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-up.k-fx-end .k-fx-current{transform:translateY(100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-down.k-fx-end .k-fx-current{transform:translateY(-100%)}.k-theme-test-class,.k-common-test-class{opacity:0}.k-hstack,.k-hbox{display:flex;flex-flow:row nowrap}.k-vstack,.k-vbox{display:flex;flex-flow:column nowrap}.k-spacer,.k-flex{flex:1 1 auto}.k-spacer-sized{flex:none}.k-float-wrap::after,.k-floatwrap::after{content:"";display:block;clear:both}.k-flex-layout{display:flex}.k-grid-layout{display:grid}.k-separator{width:auto;height:0;border-width:1px 0 0;border-style:solid;border-color:inherit;display:block;flex-grow:0 !important;flex-shrink:0 !important;align-self:stretch}.k-separator-horizontal,.k-vstack>.k-separator,.k-vbox>.k-separator{width:auto;height:0;border-width:1px 0 0}.k-separator-vertical,.k-hstack>.k-separator,.k-hbox>.k-separator{width:0;height:auto;border-width:0 0 0 1px}hr.k-separator{margin:0;padding:0}.k-hidden{display:none !important}.k-rtl{direction:rtl}[hidden]{display:none !important}script{display:none !important}.k-disabled{outline:none;cursor:default;color:var(--kendo-disabled-text, unset);background-color:var(--kendo-disabled-bg, unset);border-color:var(--kendo-disabled-border, unset);opacity:var(--kendo-disabled-opacity, unset);filter:var(--kendo-disabled-filter, unset);pointer-events:none;box-shadow:none}.k-disabled .k-link{cursor:default;outline:0}.k-disabled [disabled],.k-disabled .k-disabled{--kendo-disabled-opacity: 1;--kendo-disabled-filter: grayscale(0)}.k-hr{margin-block:var(--kendo-spacing-4, 1rem);padding:0;height:0;border-width:1px 0 0;border-style:solid;border-color:inherit;display:block;float:none;clear:both}.k-d-flex-row>.k-hr{margin:0;width:0;height:auto;border-width:0 0 0 1px;flex:0 0 auto}.k-d-flex-col>.k-hr{margin:0;flex:0 0 auto}.k-sprite{display:inline-block;width:1rem;height:1rem;overflow:hidden;background-repeat:no-repeat;font-size:0;line-height:0;text-align:center}.k-image{display:inline-block}.k-reset{margin:0;padding:0;border-width:0;outline:0;text-decoration:none;font:inherit;list-style:none}kendo-sortable{display:block}.k-link,.k-link:hover{color:inherit;text-decoration:none;outline:0;cursor:pointer}.k-content{outline:0}.k-centered{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.k-no-click{pointer-events:none}.k-pdf-export-shadow{position:absolute;overflow:hidden;left:-15000px;width:14400px}.kendo-pdf-hide-pseudo-elements::before,.kendo-pdf-hide-pseudo-elements::after{display:none !important}.k-dirty{margin:0;padding:0;width:0;height:0;border-width:3px;border-style:solid;border-block-start-color:currentColor;border-block-end-color:rgba(0,0,0,0);border-inline-start-color:rgba(0,0,0,0);border-inline-end-color:currentColor;position:absolute;inset-block-start:0;inset-inline-end:0}.k-scrollbar{position:absolute;overflow:scroll}.k-scrollbar-vertical{top:0;right:0;width:17px;height:100%;overflow-x:hidden}.k-touch-scrollbar{display:none;position:absolute;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585}.k-resize-handle,.k-resize-hint{position:absolute;border-color:inherit;z-index:200}.k-resize-handle{display:flex;align-items:center;justify-content:center}.k-resize-handle::before{content:"";border:0 solid;border-color:inherit}.k-resize-n{width:100%;height:6px;flex-direction:row;left:0;top:-3px;cursor:n-resize}.k-resize-s{width:100%;height:6px;flex-direction:row;left:0;bottom:-3px;cursor:s-resize}.k-resize-w{width:6px;height:100%;flex-direction:column;top:0;left:-3px;cursor:w-resize}.k-resize-e{width:6px;height:100%;flex-direction:column;top:0;right:-3px;cursor:e-resize}.k-resize-sw,.k-resize-se,.k-resize-nw,.k-resize-ne{width:5px;height:5px}.k-resize-sw{cursor:sw-resize;bottom:0;left:0}.k-resize-se{cursor:se-resize;bottom:0;right:0}.k-resize-nw{cursor:nw-resize;top:0;left:0}.k-resize-ne{cursor:ne-resize;top:0;right:0}.k-vertical-resize{cursor:row-resize}.k-horizontal-resize{cursor:col-resize}.k-resize-hint{display:flex;flex-direction:column;align-items:center}.k-resize-hint .k-resize-hint-handle{width:auto;height:20px;align-self:stretch}.k-resize-hint .k-resize-hint-marker{width:2px;height:auto;flex:1 1 auto}.k-resize-hint-vertical{display:flex;flex-direction:row;align-items:center}.k-resize-hint-vertical .k-resize-hint-handle{width:20px;height:auto;align-self:stretch}.k-resize-hint-vertical .k-resize-hint-marker{width:auto;height:2px;flex:1 1 auto}.k-top-start,.k-pos-top-start{top:0;inset-inline-start:0}.k-top-end,.k-pos-top-end{top:0;inset-inline-end:0}.k-bottom-start,.k-pos-bottom-start{bottom:0;inset-inline-start:0}.k-bottom-end,.k-pos-bottom-end{bottom:0;inset-inline-end:0}.k-top-center,.k-pos-top-center{top:0;left:50%;transform:translateX(-50%)}.k-middle-left,.k-middle-start,.k-pos-middle-start{top:50%;left:0;transform:translateY(-50%)}.k-middle-center{top:50%;left:50%;transform:translateY(-50%)}.k-middle-right,.k-middle-end,.k-pos-middle-end{top:50%;right:0;transform:translateY(-50%)}.k-bottom-center,.k-pos-bottom-center{bottom:0;left:50%;transform:translateX(-50%)}:root{--kendo-spacing-0: 0px;--kendo-spacing-1px: 1px;--kendo-spacing-0\.5: 0.125rem;--kendo-spacing-1: 0.25rem;--kendo-spacing-1\.5: 0.375rem;--kendo-spacing-2: 0.5rem;--kendo-spacing-2\.5: 0.625rem;--kendo-spacing-3: 0.75rem;--kendo-spacing-3\.5: 0.875rem;--kendo-spacing-4: 1rem;--kendo-spacing-4\.5: 1.125rem;--kendo-spacing-5: 1.25rem;--kendo-spacing-5\.5: 1.375rem;--kendo-spacing-6: 1.5rem;--kendo-spacing-6\.5: 1.625rem;--kendo-spacing-7: 1.75rem;--kendo-spacing-7\.5: 1.875rem;--kendo-spacing-8: 2rem;--kendo-spacing-9: 2.25rem;--kendo-spacing-10: 2.5rem;--kendo-spacing-11: 2.75rem;--kendo-spacing-12: 3rem;--kendo-spacing-13: 3.25rem;--kendo-spacing-14: 3.5rem;--kendo-spacing-15: 3.75rem;--kendo-spacing-16: 4rem;--kendo-spacing-17: 4.25rem;--kendo-spacing-18: 4.5rem;--kendo-spacing-19: 4.75rem;--kendo-spacing-20: 5rem;--kendo-spacing-21: 5.25rem;--kendo-spacing-22: 5.5rem;--kendo-spacing-23: 5.75rem;--kendo-spacing-24: 6rem;--kendo-spacing-25: 7rem;--kendo-spacing-26: 8rem;--kendo-spacing-27: 9rem;--kendo-spacing-28: 10rem;--kendo-spacing-29: 11rem;--kendo-spacing-30: 12rem}:root{--kendo-elevation-1: 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-2: 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-3: 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-4: 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-5: 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-6: 0 12px 14px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-7: 0 14px 16px rgba(0, 0, 0, 0.24), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-8: 0 16px 18px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12);--kendo-elevation-9: 0 32px 34px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(0, 0, 0, 0.12)}:root{--kendo-font-family: inherit;--kendo-font-size: 0.875rem;--kendo-line-height: 1.4285714286;--kendo-font-weight: 400;--kendo-letter-spacing: ;--kendo-font-size-xxs: 0.5rem;--kendo-font-size-xs: 0.625rem;--kendo-font-size-sm: 0.75rem;--kendo-font-size-md: 0.875rem;--kendo-font-size-lg: 1rem;--kendo-font-size-xl: 1.25rem;--kendo-line-height-xs: 1;--kendo-line-height-sm: 1.25;--kendo-line-height-md: 1.4285714286;--kendo-line-height-lg: 1.5;--kendo-font-weight-thin: 100;--kendo-font-weight-extra-light: 200;--kendo-font-weight-light: 300;--kendo-font-weight-normal: 400;--kendo-font-weight-medium: 500;--kendo-font-weight-semibold: 600;--kendo-font-weight-bold: 700;--kendo-letter-spacing-tightest: -0.15px;--kendo-letter-spacing-tighter: -0.1px;--kendo-letter-spacing-tight: -0.5px;--kendo-letter-spacing-normal: 0px;--kendo-letter-spacing-wide: 0.5px;--kendo-letter-spacing-wider: 0.1px;--kendo-letter-spacing-widest: 0.15px;--kendo-font-family-sans: Arial, Verdana, Tahoma, Trebuchet MS, Helvetica, Impact, Gill Sans;--kendo-font-family-serif: Times New Roman, Georgia, Garamond, Palatino, Baskerville;--kendo-font-family-sans-serif: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;--kendo-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, Roboto Mono, Ubuntu Mono, Lucida Console, Courier New, monospace}:root{--kendo-border-radius-none: 0px;--kendo-border-radius-xs: 1px;--kendo-border-radius-sm: 0.125rem;--kendo-border-radius-md: 0.25rem;--kendo-border-radius-lg: 0.375rem;--kendo-border-radius-xl: 0.5rem;--kendo-border-radius-xxl: 0.75rem;--kendo-border-radius-xxxl: 1rem;--kendo-border-radius-full: 9999px}.k-rounded-none{border-radius:var(--kendo-border-radius-none, 0px)}.k-rounded-xs{border-radius:var(--kendo-border-radius-xs, 1px)}.k-rounded-sm{border-radius:var(--kendo-border-radius-sm, 0.125rem)}.k-rounded-md{border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-rounded-lg{border-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-rounded-xl{border-radius:var(--kendo-border-radius-xl, 0.5rem)}.k-rounded-xxl{border-radius:var(--kendo-border-radius-xxl, 0.75rem)}.k-rounded-xxxl{border-radius:var(--kendo-border-radius-xxxl, 1rem)}.k-rounded-full{border-radius:var(--kendo-border-radius-full, 9999px)}.k-body,.k-typography{font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);font-weight:var(--kendo-font-weight-normal, normal);letter-spacing:var(--kendo-letter-spacing, normal);margin:0}.k-body p,.k-typography p{margin:0 0 var(--kendo-font-size, inherit)}.k-h1{font-size:var(--kendo-h1-font-size, calc(var(--kendo-font-size, 0.875rem)*4));font-family:var(--kendo-h1-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-h1-line-height, 74px);font-weight:var(--kendo-h1-font-weight, var(--kendo-font-weight-normal, normal));letter-spacing:var(--kendo-h1-letter-spacing, );margin:var(--kendo-h1-margin, 0 0 var(--kendo-font-size, inherit))}.k-h2{font-size:var(--kendo-h2-font-size, calc(var(--kendo-font-size, 0.875rem)*3));font-family:var(--kendo-h2-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-h2-line-height, 56px);font-weight:var(--kendo-h2-font-weight, var(--kendo-font-weight-normal, normal));letter-spacing:var(--kendo-h2-letter-spacing, );margin:var(--kendo-h2-margin, 0 0 var(--kendo-font-size, inherit))}.k-h3{font-size:var(--kendo-h3-font-size, calc(var(--kendo-font-size, 0.875rem)*2.5));font-family:var(--kendo-h3-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-h3-line-height, 42px);font-weight:var(--kendo-h3-font-weight, var(--kendo-font-weight-normal, normal));letter-spacing:var(--kendo-h3-letter-spacing, );margin:var(--kendo-h3-margin, 0 0 var(--kendo-font-size, inherit))}.k-h4{font-size:var(--kendo-h4-font-size, calc(var(--kendo-font-size, 0.875rem)*2));font-family:var(--kendo-h4-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-h4-line-height, 40px);font-weight:var(--kendo-h4-font-weight, var(--kendo-font-weight-bold, normal));letter-spacing:var(--kendo-h4-letter-spacing, );margin:var(--kendo-h4-margin, 0 0 var(--kendo-font-size, inherit))}.k-h5{font-size:var(--kendo-h5-font-size, calc(var(--kendo-font-size, 0.875rem)*1.5));font-family:var(--kendo-h5-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-h5-line-height, 28px);font-weight:var(--kendo-h5-font-weight, var(--kendo-font-weight-bold, normal));letter-spacing:var(--kendo-h5-letter-spacing, );margin:var(--kendo-h5-margin, 0 0 var(--kendo-font-size, inherit))}.k-h6{font-size:var(--kendo-h6-font-size, var(--kendo-font-size, inherit));font-family:var(--kendo-h6-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-h6-line-height, 20px);font-weight:var(--kendo-h6-font-weight, var(--kendo-font-weight-bold, normal));letter-spacing:var(--kendo-h6-letter-spacing, );margin:var(--kendo-h6-margin, 0 0 var(--kendo-font-size, inherit))}.k-paragraph{font-size:var(--kendo-paragraph-font-size, var(--kendo-font-size, inherit));font-family:var(--kendo-paragraph-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-paragraph-line-height, 20px);font-weight:var(--kendo-paragraph-font-weight, var(--kendo-font-weight-normal, normal));letter-spacing:var(--kendo-paragraph-letter-spacing, );margin:var(--kendo-paragraph-margin, 0 0 var(--kendo-font-size, inherit))}.k-pre,.k-code{font-size:var(--kendo-code-font-size, var(--kendo-font-size, inherit));font-family:var(--kendo-code-font-family, var(--kendo-font-family-monospace, normal));line-height:var(--kendo-code-line-height, 20px);font-weight:var(--kendo-code-font-weight, var(--kendo-font-weight-normal, normal));letter-spacing:var(--kendo-code-letter-spacing, );border-style:solid;border-width:1px}.k-pre{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-6, 1.5rem);overflow:auto}.k-pre>.k-code{padding:0;border-width:0;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);font-family:inherit;font-size:inherit}.k-code{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-display-1{font-size:var(--kendo-display1-font-size, calc(var(--kendo-font-size, 0.875rem)*8));font-family:var(--kendo-display1-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-display1-line-height, 1.2);font-weight:var(--kendo-display1-font-weight, var(--kendo-font-weight-light, normal));letter-spacing:var(--kendo-display1-letter-spacing, )}.k-display-2{font-size:var(--kendo-display2-font-size, calc(var(--kendo-font-size, 0.875rem)*7));font-family:var(--kendo-display2-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-display2-line-height, 1.2);font-weight:var(--kendo-display2-font-weight, var(--kendo-font-weight-light, normal));letter-spacing:var(--kendo-display2-letter-spacing, )}.k-display-3{font-size:var(--kendo-display3-font-size, calc(var(--kendo-font-size, 0.875rem)*6));font-family:var(--kendo-display3-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-display3-line-height, 1.2);font-weight:var(--kendo-display3-font-weight, var(--kendo-font-weight-light, normal));letter-spacing:var(--kendo-display3-letter-spacing, )}.k-display-4{font-size:var(--kendo-display4-font-size, calc(var(--kendo-font-size, 0.875rem)*5));font-family:var(--kendo-display4-font-family, var(--kendo-font-family, inherit));line-height:var(--kendo-display4-line-height, 1.2);font-weight:var(--kendo-display4-font-weight, var(--kendo-font-weight-light, normal));letter-spacing:var(--kendo-display4-letter-spacing, )}.k-body{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-app-surface, #ffffff)}.k-pre,.k-code{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-font-family-sans{font-family:var(--kendo-font-family-sans, Arial, Verdana, Tahoma, Trebuchet MS, Helvetica, Impact, Gill Sans)}.\!k-font-family-sans{font-family:var(--kendo-font-family-sans, Arial, Verdana, Tahoma, Trebuchet MS, Helvetica, Impact, Gill Sans) !important}.k-font-family-serif{font-family:var(--kendo-font-family-serif, Times New Roman, Georgia, Garamond, Palatino, Baskerville)}.\!k-font-family-serif{font-family:var(--kendo-font-family-serif, Times New Roman, Georgia, Garamond, Palatino, Baskerville) !important}.k-font-family-sans-serif{font-family:var(--kendo-font-family-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji)}.\!k-font-family-sans-serif{font-family:var(--kendo-font-family-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji) !important}.k-font-family-monospace{font-family:var(--kendo-font-family-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Roboto Mono, Ubuntu Mono, Lucida Console, Courier New, monospace)}.\!k-font-family-monospace{font-family:var(--kendo-font-family-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Roboto Mono, Ubuntu Mono, Lucida Console, Courier New, monospace) !important}.k-font-size-xxs{font-size:var(--kendo-font-size-xxs, 0.5rem)}.\!k-font-size-xxs{font-size:var(--kendo-font-size-xxs, 0.5rem) !important}.k-font-size-xs{font-size:var(--kendo-font-size-xs, 0.625rem)}.\!k-font-size-xs{font-size:var(--kendo-font-size-xs, 0.625rem) !important}.k-font-size-sm{font-size:var(--kendo-font-size-sm, 0.75rem)}.\!k-font-size-sm{font-size:var(--kendo-font-size-sm, 0.75rem) !important}.k-font-size-md{font-size:var(--kendo-font-size-md, 0.875rem)}.\!k-font-size-md{font-size:var(--kendo-font-size-md, 0.875rem) !important}.k-font-size-lg{font-size:var(--kendo-font-size-lg, 1rem)}.\!k-font-size-lg{font-size:var(--kendo-font-size-lg, 1rem) !important}.k-font-size-xl{font-size:var(--kendo-font-size-xl, 1.25rem)}.\!k-font-size-xl{font-size:var(--kendo-font-size-xl, 1.25rem) !important}.k-fs-xxs{font-size:var(--kendo-fs-xxs, 0.5rem)}.\!k-fs-xxs{font-size:var(--kendo-fs-xxs, 0.5rem) !important}.k-fs-xs{font-size:var(--kendo-fs-xs, 0.625rem)}.\!k-fs-xs{font-size:var(--kendo-fs-xs, 0.625rem) !important}.k-fs-sm{font-size:var(--kendo-fs-sm, 0.75rem)}.\!k-fs-sm{font-size:var(--kendo-fs-sm, 0.75rem) !important}.k-fs-md{font-size:var(--kendo-fs-md, 0.875rem)}.\!k-fs-md{font-size:var(--kendo-fs-md, 0.875rem) !important}.k-fs-lg{font-size:var(--kendo-fs-lg, 1rem)}.\!k-fs-lg{font-size:var(--kendo-fs-lg, 1rem) !important}.k-fs-xl{font-size:var(--kendo-fs-xl, 1.25rem)}.\!k-fs-xl{font-size:var(--kendo-fs-xl, 1.25rem) !important}.k-font-style-italic{font-style:var(--kendo-font-style-italic, italic)}.\!k-font-style-italic{font-style:var(--kendo-font-style-italic, italic) !important}.k-font-style-non-italic{font-style:var(--kendo-font-style-non-italic, normal)}.\!k-font-style-non-italic{font-style:var(--kendo-font-style-non-italic, normal) !important}.k-font-style-oblique{font-style:var(--kendo-font-style-oblique, oblique)}.\!k-font-style-oblique{font-style:var(--kendo-font-style-oblique, oblique) !important}.k-font-thin{font-weight:var(--kendo-font-weight-thin, 100)}.\!k-font-thin{font-weight:var(--kendo-font-weight-thin, 100) !important}.k-font-extra-light{font-weight:var(--kendo-font-weight-extra-light, 200)}.\!k-font-extra-light{font-weight:var(--kendo-font-weight-extra-light, 200) !important}.k-font-light{font-weight:var(--kendo-font-weight-light, 300)}.\!k-font-light{font-weight:var(--kendo-font-weight-light, 300) !important}.k-font-normal{font-weight:var(--kendo-font-weight-normal, 400)}.\!k-font-normal{font-weight:var(--kendo-font-weight-normal, 400) !important}.k-font-medium{font-weight:var(--kendo-font-weight-medium, 500)}.\!k-font-medium{font-weight:var(--kendo-font-weight-medium, 500) !important}.k-font-semibold{font-weight:var(--kendo-font-weight-semibold, 600)}.\!k-font-semibold{font-weight:var(--kendo-font-weight-semibold, 600) !important}.k-font-bold{font-weight:var(--kendo-font-weight-bold, 700)}.\!k-font-bold{font-weight:var(--kendo-font-weight-bold, 700) !important}.k-font-weight-thin{font-weight:var(--kendo-font-weight-thin, 100)}.\!k-font-weight-thin{font-weight:var(--kendo-font-weight-thin, 100) !important}.k-font-weight-extra-light{font-weight:var(--kendo-font-weight-extra-light, 200)}.\!k-font-weight-extra-light{font-weight:var(--kendo-font-weight-extra-light, 200) !important}.k-font-weight-light{font-weight:var(--kendo-font-weight-light, 300)}.\!k-font-weight-light{font-weight:var(--kendo-font-weight-light, 300) !important}.k-font-weight-normal{font-weight:var(--kendo-font-weight-normal, 400)}.\!k-font-weight-normal{font-weight:var(--kendo-font-weight-normal, 400) !important}.k-font-weight-medium{font-weight:var(--kendo-font-weight-medium, 500)}.\!k-font-weight-medium{font-weight:var(--kendo-font-weight-medium, 500) !important}.k-font-weight-semibold{font-weight:var(--kendo-font-weight-semibold, 600)}.\!k-font-weight-semibold{font-weight:var(--kendo-font-weight-semibold, 600) !important}.k-font-weight-bold{font-weight:var(--kendo-font-weight-bold, 700)}.\!k-font-weight-bold{font-weight:var(--kendo-font-weight-bold, 700) !important}.k-letter-spacing-tightest{letter-spacing:var(--kendo-letter-spacing-tightest, -0.15px)}.\!k-letter-spacing-tightest{letter-spacing:var(--kendo-letter-spacing-tightest, -0.15px) !important}.k-letter-spacing-tighter{letter-spacing:var(--kendo-letter-spacing-tighter, -0.1px)}.\!k-letter-spacing-tighter{letter-spacing:var(--kendo-letter-spacing-tighter, -0.1px) !important}.k-letter-spacing-tight{letter-spacing:var(--kendo-letter-spacing-tight, -0.5px)}.\!k-letter-spacing-tight{letter-spacing:var(--kendo-letter-spacing-tight, -0.5px) !important}.k-letter-spacing-normal{letter-spacing:var(--kendo-letter-spacing-normal, 0px)}.\!k-letter-spacing-normal{letter-spacing:var(--kendo-letter-spacing-normal, 0px) !important}.k-letter-spacing-wide{letter-spacing:var(--kendo-letter-spacing-wide, 0.5px)}.\!k-letter-spacing-wide{letter-spacing:var(--kendo-letter-spacing-wide, 0.5px) !important}.k-letter-spacing-wider{letter-spacing:var(--kendo-letter-spacing-wider, 0.1px)}.\!k-letter-spacing-wider{letter-spacing:var(--kendo-letter-spacing-wider, 0.1px) !important}.k-letter-spacing-widest{letter-spacing:var(--kendo-letter-spacing-widest, 0.15px)}.\!k-letter-spacing-widest{letter-spacing:var(--kendo-letter-spacing-widest, 0.15px) !important}.k-line-height-xs{line-height:var(--kendo-line-height-xs, 1)}.\!k-line-height-xs{line-height:var(--kendo-line-height-xs, 1) !important}.k-line-height-sm{line-height:var(--kendo-line-height-sm, 1.25)}.\!k-line-height-sm{line-height:var(--kendo-line-height-sm, 1.25) !important}.k-line-height-md{line-height:var(--kendo-line-height-md, 1.4285714286)}.\!k-line-height-md{line-height:var(--kendo-line-height-md, 1.4285714286) !important}.k-line-height-lg{line-height:var(--kendo-line-height-lg, 1.5)}.\!k-line-height-lg{line-height:var(--kendo-line-height-lg, 1.5) !important}.k-list-none{list-style-type:none}.\!k-list-none{list-style-type:none !important}.k-list-disc{list-style-type:disc}.\!k-list-disc{list-style-type:disc !important}.k-list-decimal{list-style-type:decimal}.\!k-list-decimal{list-style-type:decimal !important}.k-text-left{text-align:left}.\!k-text-left{text-align:left !important}.k-text-right{text-align:right}.\!k-text-right{text-align:right !important}.k-text-center{text-align:center}.\!k-text-center{text-align:center !important}.k-text-justify{text-align:justify}.\!k-text-justify{text-align:justify !important}.k-text-start{text-align:start}.\!k-text-start{text-align:start !important}.k-text-end{text-align:end}.\!k-text-end{text-align:end !important}.k-text-app-surface{color:var(--kendo-color-app-surface, #ffffff)}.\!k-text-app-surface{color:var(--kendo-color-app-surface, #ffffff) !important}.k-text-on-app-surface{color:var(--kendo-color-on-app-surface, #424242)}.\!k-text-on-app-surface{color:var(--kendo-color-on-app-surface, #424242) !important}.k-text-subtle{color:var(--kendo-color-subtle, #666666)}.\!k-text-subtle{color:var(--kendo-color-subtle, #666666) !important}.k-text-surface{color:var(--kendo-color-surface, #fafafa)}.\!k-text-surface{color:var(--kendo-color-surface, #fafafa) !important}.k-text-surface-alt{color:var(--kendo-color-surface-alt, #ffffff)}.\!k-text-surface-alt{color:var(--kendo-color-surface-alt, #ffffff) !important}.k-text-border{color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.\!k-text-border{color:var(--kendo-color-border, rgba(0, 0, 0, 0.08)) !important}.k-text-border-alt{color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.\!k-text-border-alt{color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16)) !important}.k-text-base-subtle{color:var(--kendo-color-base-subtle, #ebebeb)}.\!k-text-base-subtle{color:var(--kendo-color-base-subtle, #ebebeb) !important}.k-text-base-emphasis{color:var(--kendo-color-base-emphasis, #c2c2c2)}.\!k-text-base-emphasis{color:var(--kendo-color-base-emphasis, #c2c2c2) !important}.k-text-primary-subtle{color:var(--kendo-color-primary-subtle, #d0e3ee)}.\!k-text-primary-subtle{color:var(--kendo-color-primary-subtle, #d0e3ee) !important}.k-text-primary{color:var(--kendo-color-primary, #1274AC)}.\!k-text-primary{color:var(--kendo-color-primary, #1274AC) !important}.k-text-primary-emphasis{color:var(--kendo-color-primary-emphasis, #4d97c1)}.\!k-text-primary-emphasis{color:var(--kendo-color-primary-emphasis, #4d97c1) !important}.k-text-secondary-subtle{color:var(--kendo-color-secondary-subtle, #e3e3e3)}.\!k-text-secondary-subtle{color:var(--kendo-color-secondary-subtle, #e3e3e3) !important}.k-text-secondary{color:var(--kendo-color-secondary, #757575)}.\!k-text-secondary{color:var(--kendo-color-secondary, #757575) !important}.k-text-secondary-emphasis{color:var(--kendo-color-secondary-emphasis, #989898)}.\!k-text-secondary-emphasis{color:var(--kendo-color-secondary-emphasis, #989898) !important}.k-text-tertiary-subtle{color:var(--kendo-color-tertiary-subtle, #cce5e6)}.\!k-text-tertiary-subtle{color:var(--kendo-color-tertiary-subtle, #cce5e6) !important}.k-text-tertiary{color:var(--kendo-color-tertiary, #007F84)}.\!k-text-tertiary{color:var(--kendo-color-tertiary, #007F84) !important}.k-text-tertiary-emphasis{color:var(--kendo-color-tertiary-emphasis, #409fa3)}.\!k-text-tertiary-emphasis{color:var(--kendo-color-tertiary-emphasis, #409fa3) !important}.k-text-info-subtle{color:var(--kendo-color-info-subtle, #ccdefb)}.\!k-text-info-subtle{color:var(--kendo-color-info-subtle, #ccdefb) !important}.k-text-info{color:var(--kendo-color-info, #0058E9)}.\!k-text-info{color:var(--kendo-color-info, #0058E9) !important}.k-text-info-emphasis{color:var(--kendo-color-info-emphasis, #4082ef)}.\!k-text-info-emphasis{color:var(--kendo-color-info-emphasis, #4082ef) !important}.k-text-success-subtle{color:var(--kendo-color-success-subtle, #d4e6cc)}.\!k-text-success-subtle{color:var(--kendo-color-success-subtle, #d4e6cc) !important}.k-text-success{color:var(--kendo-color-success, #278200)}.\!k-text-success{color:var(--kendo-color-success, #278200) !important}.k-text-success-emphasis{color:var(--kendo-color-success-emphasis, #5da140)}.\!k-text-success-emphasis{color:var(--kendo-color-success-emphasis, #5da140) !important}.k-text-warning-subtle{color:var(--kendo-color-warning-subtle, #fdedcc)}.\!k-text-warning-subtle{color:var(--kendo-color-warning-subtle, #fdedcc) !important}.k-text-warning{color:var(--kendo-color-warning, #F5A600)}.\!k-text-warning{color:var(--kendo-color-warning, #F5A600) !important}.k-text-warning-emphasis{color:var(--kendo-color-warning-emphasis, #f8bc40)}.\!k-text-warning-emphasis{color:var(--kendo-color-warning-emphasis, #f8bc40) !important}.k-text-error-subtle{color:var(--kendo-color-error-subtle, #f7d1d3)}.\!k-text-error-subtle{color:var(--kendo-color-error-subtle, #f7d1d3) !important}.k-text-error{color:var(--kendo-color-error, #D51923)}.\!k-text-error{color:var(--kendo-color-error, #D51923) !important}.k-text-error-emphasis{color:var(--kendo-color-error-emphasis, #e0535a)}.\!k-text-error-emphasis{color:var(--kendo-color-error-emphasis, #e0535a) !important}.k-text-light-subtle{color:var(--kendo-color-light-subtle, #e3e3e3)}.\!k-text-light-subtle{color:var(--kendo-color-light-subtle, #e3e3e3) !important}.k-text-light{color:var(--kendo-color-light, #757575)}.\!k-text-light{color:var(--kendo-color-light, #757575) !important}.k-text-light-emphasis{color:var(--kendo-color-light-emphasis, #989898)}.\!k-text-light-emphasis{color:var(--kendo-color-light-emphasis, #989898) !important}.k-text-dark-subtle{color:var(--kendo-color-dark-subtle, #c2c2c2)}.\!k-text-dark-subtle{color:var(--kendo-color-dark-subtle, #c2c2c2) !important}.k-text-dark{color:var(--kendo-color-dark, #3d3d3d)}.\!k-text-dark{color:var(--kendo-color-dark, #3d3d3d) !important}.k-text-dark-emphasis{color:var(--kendo-color-dark-emphasis, #666666)}.\!k-text-dark-emphasis{color:var(--kendo-color-dark-emphasis, #666666) !important}.k-text-inherit{color:var(--kendo-color-inherit, inherit)}.\!k-text-inherit{color:var(--kendo-color-inherit, inherit) !important}.k-text-current{color:var(--kendo-color-current, currentColor)}.\!k-text-current{color:var(--kendo-color-current, currentColor) !important}.k-text-transparent{color:var(--kendo-color-transparent, transparent)}.\!k-text-transparent{color:var(--kendo-color-transparent, transparent) !important}.k-text-black{color:var(--kendo-color-black, black)}.\!k-text-black{color:var(--kendo-color-black, black) !important}.k-text-white{color:var(--kendo-color-white, white)}.\!k-text-white{color:var(--kendo-color-white, white) !important}.k-color-app-surface{color:var(--kendo-color-app-surface, #ffffff)}.\!k-color-app-surface{color:var(--kendo-color-app-surface, #ffffff) !important}.k-color-on-app-surface{color:var(--kendo-color-on-app-surface, #424242)}.\!k-color-on-app-surface{color:var(--kendo-color-on-app-surface, #424242) !important}.k-color-subtle{color:var(--kendo-color-subtle, #666666)}.\!k-color-subtle{color:var(--kendo-color-subtle, #666666) !important}.k-color-surface{color:var(--kendo-color-surface, #fafafa)}.\!k-color-surface{color:var(--kendo-color-surface, #fafafa) !important}.k-color-surface-alt{color:var(--kendo-color-surface-alt, #ffffff)}.\!k-color-surface-alt{color:var(--kendo-color-surface-alt, #ffffff) !important}.k-color-border{color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.\!k-color-border{color:var(--kendo-color-border, rgba(0, 0, 0, 0.08)) !important}.k-color-border-alt{color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.\!k-color-border-alt{color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16)) !important}.k-color-base-subtle{color:var(--kendo-color-base-subtle, #ebebeb)}.\!k-color-base-subtle{color:var(--kendo-color-base-subtle, #ebebeb) !important}.k-color-base-emphasis{color:var(--kendo-color-base-emphasis, #c2c2c2)}.\!k-color-base-emphasis{color:var(--kendo-color-base-emphasis, #c2c2c2) !important}.k-color-primary-subtle{color:var(--kendo-color-primary-subtle, #d0e3ee)}.\!k-color-primary-subtle{color:var(--kendo-color-primary-subtle, #d0e3ee) !important}.k-color-primary{color:var(--kendo-color-primary, #1274AC)}.\!k-color-primary{color:var(--kendo-color-primary, #1274AC) !important}.k-color-primary-emphasis{color:var(--kendo-color-primary-emphasis, #4d97c1)}.\!k-color-primary-emphasis{color:var(--kendo-color-primary-emphasis, #4d97c1) !important}.k-color-secondary-subtle{color:var(--kendo-color-secondary-subtle, #e3e3e3)}.\!k-color-secondary-subtle{color:var(--kendo-color-secondary-subtle, #e3e3e3) !important}.k-color-secondary{color:var(--kendo-color-secondary, #757575)}.\!k-color-secondary{color:var(--kendo-color-secondary, #757575) !important}.k-color-secondary-emphasis{color:var(--kendo-color-secondary-emphasis, #989898)}.\!k-color-secondary-emphasis{color:var(--kendo-color-secondary-emphasis, #989898) !important}.k-color-tertiary-subtle{color:var(--kendo-color-tertiary-subtle, #cce5e6)}.\!k-color-tertiary-subtle{color:var(--kendo-color-tertiary-subtle, #cce5e6) !important}.k-color-tertiary{color:var(--kendo-color-tertiary, #007F84)}.\!k-color-tertiary{color:var(--kendo-color-tertiary, #007F84) !important}.k-color-tertiary-emphasis{color:var(--kendo-color-tertiary-emphasis, #409fa3)}.\!k-color-tertiary-emphasis{color:var(--kendo-color-tertiary-emphasis, #409fa3) !important}.k-color-info-subtle{color:var(--kendo-color-info-subtle, #ccdefb)}.\!k-color-info-subtle{color:var(--kendo-color-info-subtle, #ccdefb) !important}.k-color-info{color:var(--kendo-color-info, #0058E9)}.\!k-color-info{color:var(--kendo-color-info, #0058E9) !important}.k-color-info-emphasis{color:var(--kendo-color-info-emphasis, #4082ef)}.\!k-color-info-emphasis{color:var(--kendo-color-info-emphasis, #4082ef) !important}.k-color-success-subtle{color:var(--kendo-color-success-subtle, #d4e6cc)}.\!k-color-success-subtle{color:var(--kendo-color-success-subtle, #d4e6cc) !important}.k-color-success{color:var(--kendo-color-success, #278200)}.\!k-color-success{color:var(--kendo-color-success, #278200) !important}.k-color-success-emphasis{color:var(--kendo-color-success-emphasis, #5da140)}.\!k-color-success-emphasis{color:var(--kendo-color-success-emphasis, #5da140) !important}.k-color-warning-subtle{color:var(--kendo-color-warning-subtle, #fdedcc)}.\!k-color-warning-subtle{color:var(--kendo-color-warning-subtle, #fdedcc) !important}.k-color-warning{color:var(--kendo-color-warning, #F5A600)}.\!k-color-warning{color:var(--kendo-color-warning, #F5A600) !important}.k-color-warning-emphasis{color:var(--kendo-color-warning-emphasis, #f8bc40)}.\!k-color-warning-emphasis{color:var(--kendo-color-warning-emphasis, #f8bc40) !important}.k-color-error-subtle{color:var(--kendo-color-error-subtle, #f7d1d3)}.\!k-color-error-subtle{color:var(--kendo-color-error-subtle, #f7d1d3) !important}.k-color-error{color:var(--kendo-color-error, #D51923)}.\!k-color-error{color:var(--kendo-color-error, #D51923) !important}.k-color-error-emphasis{color:var(--kendo-color-error-emphasis, #e0535a)}.\!k-color-error-emphasis{color:var(--kendo-color-error-emphasis, #e0535a) !important}.k-color-light-subtle{color:var(--kendo-color-light-subtle, #e3e3e3)}.\!k-color-light-subtle{color:var(--kendo-color-light-subtle, #e3e3e3) !important}.k-color-light{color:var(--kendo-color-light, #757575)}.\!k-color-light{color:var(--kendo-color-light, #757575) !important}.k-color-light-emphasis{color:var(--kendo-color-light-emphasis, #989898)}.\!k-color-light-emphasis{color:var(--kendo-color-light-emphasis, #989898) !important}.k-color-dark-subtle{color:var(--kendo-color-dark-subtle, #c2c2c2)}.\!k-color-dark-subtle{color:var(--kendo-color-dark-subtle, #c2c2c2) !important}.k-color-dark{color:var(--kendo-color-dark, #3d3d3d)}.\!k-color-dark{color:var(--kendo-color-dark, #3d3d3d) !important}.k-color-dark-emphasis{color:var(--kendo-color-dark-emphasis, #666666)}.\!k-color-dark-emphasis{color:var(--kendo-color-dark-emphasis, #666666) !important}.k-color-inherit{color:var(--kendo-color-inherit, inherit)}.\!k-color-inherit{color:var(--kendo-color-inherit, inherit) !important}.k-color-current{color:var(--kendo-color-current, currentColor)}.\!k-color-current{color:var(--kendo-color-current, currentColor) !important}.k-color-transparent{color:var(--kendo-color-transparent, transparent)}.\!k-color-transparent{color:var(--kendo-color-transparent, transparent) !important}.k-color-black{color:var(--kendo-color-black, black)}.\!k-color-black{color:var(--kendo-color-black, black) !important}.k-color-white{color:var(--kendo-color-white, white)}.\!k-color-white{color:var(--kendo-color-white, white) !important}.k-text-underline{text-decoration:underline}.\!k-text-underline{text-decoration:underline !important}.k-text-overline{text-decoration:overline}.\!k-text-overline{text-decoration:overline !important}.k-text-line-through{text-decoration:line-through}.\!k-text-line-through{text-decoration:line-through !important}.k-text-no-underline{text-decoration:none}.\!k-text-no-underline{text-decoration:none !important}.k-text-clip{text-overflow:clip}.\!k-text-clip{text-overflow:clip !important}.k-text-ellipsis{text-overflow:ellipsis}.\!k-text-ellipsis{text-overflow:ellipsis !important}.k-text-truncate,.k-text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.\!k-text-truncate,.\!k-text-ellipsis{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}.k-text-uppercase{text-transform:uppercase}.\!k-text-uppercase{text-transform:uppercase !important}.k-text-lowercase{text-transform:lowercase}.\!k-text-lowercase{text-transform:lowercase !important}.k-text-capitalize{text-transform:capitalize}.\!k-text-capitalize{text-transform:capitalize !important}.k-text-normal-case{text-transform:none}.\!k-text-normal-case{text-transform:none !important}.k-align-baseline{vertical-align:baseline}.\!k-align-baseline{vertical-align:baseline !important}.k-align-top{vertical-align:top}.\!k-align-top{vertical-align:top !important}.k-align-middle{vertical-align:middle}.\!k-align-middle{vertical-align:middle !important}.k-align-bottom{vertical-align:bottom}.\!k-align-bottom{vertical-align:bottom !important}.k-align-text-top{vertical-align:text-top}.\!k-align-text-top{vertical-align:text-top !important}.k-align-text-bottom{vertical-align:text-bottom}.\!k-align-text-bottom{vertical-align:text-bottom !important}.k-align-sub{vertical-align:sub}.\!k-align-sub{vertical-align:sub !important}.k-align-super{vertical-align:super}.\!k-align-super{vertical-align:super !important}.k-white-space-normal{white-space:normal}.\!k-white-space-normal{white-space:normal !important}.k-white-space-nowrap,.k-text-nowrap{white-space:nowrap}.\!k-white-space-nowrap{white-space:nowrap !important}.k-white-space-pre{white-space:pre}.\!k-white-space-pre{white-space:pre !important}.k-white-space-pre-line{white-space:pre-line}.\!k-white-space-pre-line{white-space:pre-line !important}.k-white-space-pre-wrap{white-space:pre-wrap}.\!k-white-space-pre-wrap{white-space:pre-wrap !important}.k-white-space-break-spaces{white-space:break-spaces}.\!k-white-space-break-spaces{white-space:break-spaces !important}.k-whitespace-normal{white-space:normal}.\!k-whitespace-normal{white-space:normal !important}.k-whitespace-nowrap{white-space:nowrap}.\!k-whitespace-nowrap{white-space:nowrap !important}.k-whitespace-pre{white-space:pre}.\!k-whitespace-pre{white-space:pre !important}.k-whitespace-pre-line{white-space:pre-line}.\!k-whitespace-pre-line{white-space:pre-line !important}.k-whitespace-pre-wrap{white-space:pre-wrap}.\!k-whitespace-pre-wrap{white-space:pre-wrap !important}.k-whitespace-break-spaces{white-space:break-spaces}.\!k-whitespace-break-spaces{white-space:break-spaces !important}.k-svg-icon{width:16px;height:16px;outline:0;line-height:1;display:inline-flex;flex-flow:row nowrap;align-items:center;justify-content:center;vertical-align:middle;position:relative}.k-svg-icon>svg{fill:currentColor;flex:1 1 auto}.k-svg-icon.k-icon-xs{width:12px;height:12px}.k-svg-icon.k-icon-sm{width:14px;height:14px}.k-svg-icon.k-icon-md{width:16px;height:16px}.k-svg-icon.k-icon-lg{width:20px;height:20px}.k-svg-icon.k-icon-xl{width:24px;height:24px}.k-svg-icon.k-icon-xxl{width:32px;height:32px}.k-svg-icon.k-icon-xxxl{width:48px;height:48px}.k-flip-h.k-svg-icon,.k-svg-icon.k-flip-x,.k-flip-v.k-svg-icon,.k-svg-icon.k-flip-y,.k-flip-h.k-flip-v.k-svg-icon{transform:none}.k-flip-h>svg,.k-flip-x>svg{transform:scaleX(-1)}.k-flip-v>svg,.k-flip-y>svg{transform:scaleY(-1)}.k-flip-h.k-flip-v>svg,.k-flip-h.k-flip-y>svg,.k-flip-v.k-flip-x>svg,.k-flip-x.k-flip-y>svg,.k-flip-both>svg{transform:scale(-1, -1)}.k-rotate-0.k-svg-icon{transform:none}.k-rotate-0>svg{transform:rotate(0deg)}.k-rotate-45.k-svg-icon{transform:none}.k-rotate-45>svg{transform:rotate(45deg)}.k-rotate-90.k-svg-icon{transform:none}.k-rotate-90>svg{transform:rotate(90deg)}.k-rotate-135.k-svg-icon{transform:none}.k-rotate-135>svg{transform:rotate(135deg)}.k-rotate-180.k-svg-icon{transform:none}.k-rotate-180>svg{transform:rotate(180deg)}.k-rotate-225.k-svg-icon{transform:none}.k-rotate-225>svg{transform:rotate(225deg)}.k-rotate-270.k-svg-icon{transform:none}.k-rotate-270>svg{transform:rotate(270deg)}.k-rotate-315.k-svg-icon{transform:none}.k-rotate-315>svg{transform:rotate(315deg)}.k-icon-wrap{flex:none;display:inline-flex;flex-flow:row nowrap;gap:0;align-items:center;align-self:flex-start;vertical-align:middle;position:relative}.k-icon-wrap::before{content:"​";width:0;overflow:hidden;flex:none;display:inline-block;vertical-align:top}.k-icon-wrapper-host{display:contents}.k-icon-with-modifier{position:relative;margin:.25em}.k-icon.k-icon-modifier{width:1em;height:1em;position:absolute;font-size:.5em;bottom:0;right:0;margin:0 -0.5em -0.5em 0}.k-i-none::before{content:"";display:none}.k-icon-action{display:inline-flex;padding:var(--kendo-spacing-1, 0.25rem);line-height:1;align-items:center;vertical-align:middle;cursor:pointer}.k-sprite{display:inline-block;width:16px;height:16px;overflow:hidden;background-repeat:no-repeat;font-size:0;line-height:0;text-align:center}.k-image{display:inline-block}.k-rotate-0{transform:rotate(0deg)}.\!k-rotate-0{transform:rotate(0deg) !important}.k-rotate-45{transform:rotate(45deg)}.\!k-rotate-45{transform:rotate(45deg) !important}.k-rotate-90{transform:rotate(90deg)}.\!k-rotate-90{transform:rotate(90deg) !important}.k-rotate-135{transform:rotate(135deg)}.\!k-rotate-135{transform:rotate(135deg) !important}.k-rotate-180{transform:rotate(180deg)}.\!k-rotate-180{transform:rotate(180deg) !important}.k-rotate-225{transform:rotate(225deg)}.\!k-rotate-225{transform:rotate(225deg) !important}.k-rotate-270{transform:rotate(270deg)}.\!k-rotate-270{transform:rotate(270deg) !important}.k-rotate-315{transform:rotate(315deg)}.\!k-rotate-315{transform:rotate(315deg) !important}.k-flip-h,.k-flip-x{transform:scaleX(-1)}.\!k-flip-h,.\!k-flip-x{transform:scaleX(-1) !important}.k-flip-v,.k-flip-y{transform:scaleY(-1)}.\!k-flip-v,.\!k-flip-y{transform:scaleY(-1) !important}.k-flip-h.k-flip-v,.k-flip-h.k-flip-y,.k-flip-v.k-flip-x,.k-flip-x.k-flip-y{transform:scale(-1, -1)}.\!k-flip-h.\!k-flip-v,.\!k-flip-h.\!k-flip-y,.\!k-flip-v.\!k-flip-x,.\!k-flip-x.\!k-flip-y{transform:scale(-1, -1) !important}.k-messagebox{margin:0 0 var(--kendo-spacing-4, 1rem) 0;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0 0 0 4px;border-style:solid;box-sizing:border-box;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-messagebox a{color:inherit;font-style:italic;text-decoration:underline}.k-messagebox-primary{border-color:var(--kendo-color-primary-emphasis, #4d97c1);color:var(--kendo-color-primary-on-subtle, #06293c);background-color:var(--kendo-color-primary-subtle, #d0e3ee)}.k-messagebox-secondary{border-color:var(--kendo-color-secondary-emphasis, #989898);color:var(--kendo-color-secondary-on-subtle, #292929);background-color:var(--kendo-color-secondary-subtle, #e3e3e3)}.k-messagebox-tertiary{border-color:var(--kendo-color-tertiary-emphasis, #409fa3);color:var(--kendo-color-tertiary-on-subtle, #002c2e);background-color:var(--kendo-color-tertiary-subtle, #cce5e6)}.k-messagebox-info{border-color:var(--kendo-color-info-emphasis, #4082ef);color:var(--kendo-color-info-on-subtle, #001f52);background-color:var(--kendo-color-info-subtle, #ccdefb)}.k-messagebox-success{border-color:var(--kendo-color-success-emphasis, #5da140);color:var(--kendo-color-success-on-subtle, #0e2e00);background-color:var(--kendo-color-success-subtle, #d4e6cc)}.k-messagebox-warning{border-color:var(--kendo-color-warning-emphasis, #f8bc40);color:var(--kendo-color-warning-on-subtle, #563a00);background-color:var(--kendo-color-warning-subtle, #fdedcc)}.k-messagebox-error{border-color:var(--kendo-color-error-emphasis, #e0535a);color:var(--kendo-color-error-on-subtle, #4b090c);background-color:var(--kendo-color-error-subtle, #f7d1d3)}.k-messagebox-dark{border-color:var(--kendo-color-dark-emphasis, #666666);color:var(--kendo-color-dark-on-subtle, #1f1f1f);background-color:var(--kendo-color-dark-subtle, #c2c2c2)}.k-messagebox-light{border-color:var(--kendo-color-light-emphasis, #989898);color:var(--kendo-color-light-on-subtle, #292929);background-color:var(--kendo-color-light-subtle, #e3e3e3)}.k-messagebox-inverse{border-color:var(--kendo-color-dark-hover, #292929);color:var(--kendo-color-dark-on-subtle, #1f1f1f);background-color:var(--kendo-color-dark-subtle, #c2c2c2)}.k-drag-clue{border-radius:var(--kendo-border-radius-md, 0.25rem);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px;border-style:solid;box-sizing:border-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);display:inline-flex;flex-flow:row nowrap;align-items:center;align-content:center;white-space:nowrap;overflow:hidden;position:absolute;z-index:20000;cursor:move}.k-drag-status,.k-drag-clue .k-drag-status{margin:0;margin-right:.4ex}.k-drop-hint{display:flex;gap:4px;justify-content:space-between;align-items:center;position:absolute;z-index:1000;transform:translate(-50%, -50%)}.k-drop-hint-start,.k-drop-hint-end{flex-shrink:0;border-width:4px;border-style:solid;border-color:rgba(0,0,0,0)}.k-drop-hint-line{flex-grow:1;background-color:var(--kendo-color-primary, #1274AC)}.k-drop-hint-h .k-drop-hint-start{border-left-width:6.9282032304px;border-left-color:var(--kendo-color-primary, #1274AC);border-right-width:0}.k-drop-hint-h .k-drop-hint-line{width:20px;height:1px}.k-drop-hint-h .k-drop-hint-end{border-right-width:6.9282032304px;border-right-color:var(--kendo-color-primary, #1274AC);border-left-width:0}.k-drop-hint-v{flex-direction:column}.k-drop-hint-v .k-drop-hint-start{border-top-width:6.9282032304px;border-top-color:var(--kendo-color-primary, #1274AC);border-bottom-width:0}.k-drop-hint-v .k-drop-hint-line{width:1px;height:20px}.k-drop-hint-v .k-drop-hint-end{border-bottom-width:6.9282032304px;border-bottom-color:var(--kendo-color-primary, #1274AC);border-top-width:0}.k-reorder-cue{position:absolute}.k-reorder-cue::before,.k-reorder-cue::after{content:"";width:0;height:0;border:3px solid rgba(0,0,0,0);position:absolute;transform:translateX(-50%)}.k-reorder-cue::before{border-bottom-width:0;border-top-color:currentColor;top:-4px}.k-reorder-cue::after{border-top-width:0;border-bottom-color:currentColor;bottom:-4px}.k-drag-clue{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-list-container{display:flex;flex-flow:column nowrap}.k-list-container>.k-list{flex:1;height:100%}.k-list{margin:0;padding:0;box-sizing:border-box;border-radius:inherit;font-family:var(--kendo-font-family, inherit);display:flex;flex-flow:column nowrap;outline:none;position:relative;overflow:hidden}.k-list *,.k-list *::before,.k-list *::after{box-sizing:border-box}.k-popup>.k-list{height:100%;border-width:0}.k-list-group-sticky-header{border-width:0;border-width:0 0 1px;border-style:solid;font-weight:var(--kendo-font-weight-bold, normal);white-space:nowrap;display:flex;flex-flow:row nowrap;align-items:center;flex:none;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.k-list-content{border-color:inherit;flex:1 1 auto;overflow:hidden;overflow-y:auto;position:relative}.k-list-ul{margin:0;padding:0;border-width:0;border-color:inherit;height:auto;list-style:none}.k-list-item,.k-list-custom-value,.k-list-optionlabel{border:0;outline:none;cursor:pointer;display:flex;flex-flow:row nowrap;align-items:center;align-content:center;gap:var(--kendo-spacing-1, 0.25rem);position:relative;transition-property:color,background-color,outline-color,box-shadow;transition-duration:200ms;transition-timing-function:ease}.k-list-item.k-first::before,.k-first.k-list-custom-value::before,.k-first.k-list-optionlabel::before{content:"";border-width:1px 0 0;border-style:solid;position:absolute;top:0;left:0;right:0}.k-list-item-text::before,.k-list-header-text::before,.k-list-optionlabel::before{content:"​";width:0px;overflow:hidden}.k-list-optionlabel{column-gap:0}.k-list-custom-value{font-style:italic;position:sticky}.k-list-group-item{border-width:0;border-width:1px 0 0;border-style:solid;font-weight:var(--kendo-font-weight-bold, normal);cursor:default;display:flex;flex-flow:row nowrap;align-items:center;align-content:center;gap:var(--kendo-spacing-1, 0.25rem);position:relative}.k-list-item-group-label{position:absolute;top:0;inset-inline-end:0}.k-virtual-content,.k-virtual-list .k-list-content{overflow-y:scroll}.k-virtual-list .k-list-item,.k-virtual-list .k-list-optionlabel,.k-virtual-list .k-list-custom-value,.k-virtual-list .k-list-group-item,.k-virtual-content .k-list-item,.k-virtual-content .k-list-optionlabel,.k-virtual-content .k-list-custom-value,.k-virtual-content .k-list-group-item{position:absolute;width:100%}.k-virtual-list .k-list-item-text,.k-virtual-list .k-list-header-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-virtual-list .k-list-optionlabel{position:relative}.k-list-filter{display:block;position:relative;padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-2, 0.5rem);box-sizing:border-box;flex:none}.k-list-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-list-sm .k-list-group-sticky-header{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-sm .k-list-filter{padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-2, 0.5rem)}.k-list-sm .k-list-item,.k-list-sm .k-list-optionlabel,.k-list-sm .k-list-custom-value{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-sm .k-list-group-item{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-sm .k-list-item-group-label{padding-block:0;padding-inline:.5em;font-size:.75em;line-height:inherit}.k-list-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-list-md .k-list-group-sticky-header{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-md .k-list-filter{padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-2, 0.5rem)}.k-list-md .k-list-item,.k-list-md .k-list-optionlabel,.k-list-md .k-list-custom-value{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-md .k-list-group-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-md .k-list-item-group-label{padding-block:0;padding-inline:.5em;font-size:.75em;line-height:inherit}.k-list-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-list-lg .k-list-group-sticky-header{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-lg .k-list-filter{padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-2, 0.5rem)}.k-list-lg .k-list-item,.k-list-lg .k-list-optionlabel,.k-list-lg .k-list-custom-value{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-lg .k-list-group-item{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-list-lg .k-list-item-group-label{padding-block:0;padding-inline:.5em;font-size:.75em;line-height:inherit}.k-list{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-list-group-sticky-header{border-color:inherit;box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-list-item:hover,.k-list-optionlabel:hover,.k-list-custom-value:hover,.k-list-item.k-hover,.k-hover.k-list-optionlabel,.k-hover.k-list-custom-value{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-list-item:focus,.k-list-optionlabel:focus,.k-list-custom-value:focus,.k-list-item.k-focus,.k-focus.k-list-optionlabel,.k-focus.k-list-custom-value{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-list-item.k-selected,.k-selected.k-list-optionlabel,.k-selected.k-list-custom-value{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-list-item.k-selected:hover,.k-selected.k-list-optionlabel:hover,.k-selected.k-list-custom-value:hover,.k-list-item.k-selected.k-hover,.k-selected.k-hover.k-list-optionlabel,.k-selected.k-hover.k-list-custom-value{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary-hover, #116fa5)}.k-list-optionlabel,.k-list-optionlabel.k-hover,.k-list-optionlabel:hover{color:var(--kendo-color-subtle, #666666)}.k-list-group-item{border-color:inherit}.k-list-item-group-label{color:var(--kendo-color-surface-alt, #ffffff);background-color:var(--kendo-color-on-app-surface, #424242)}.k-listgroup{border-radius:var(--kendo-border-radius-md, 0.25rem);margin:0;padding:0;border-width:1px;border-style:solid;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);list-style:none;display:flex;flex-direction:column;position:relative;overflow:hidden}.k-listgroup>ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.k-listgroup .k-listgroup-item+.k-listgroup-item{border-top-width:1px}.k-listgroup-flush{border-radius:0;border-left-width:0;border-right-width:0}.k-listgroup-item{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0;border-style:solid;border-color:inherit;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:0 0 auto;position:relative}.k-listgroup-item>.k-link{margin-block:calc(var(--kendo-spacing-2, 0.5rem)*-1);margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);color:inherit;text-decoration:none;outline:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:1 1 auto;position:relative}.k-listgroup-item>.k-link>.k-select{padding:var(--kendo-spacing-2, 0.5rem);display:flex;align-items:center;flex:0 0 auto;position:absolute;top:50%;inset-inline-end:0;transform:translateY(-50%)}.k-listgroup-item-segmented{align-items:stretch}.k-listgroup-item-segmented>.k-link{margin-right:0}.k-listgroup-item-segmented>.k-select{margin:calc(var(--kendo-spacing-2, 0.5rem)*-1) calc(var(--kendo-spacing-2, 0.5rem)*-1) calc(var(--kendo-spacing-2, 0.5rem)*-1) 0;padding:var(--kendo-spacing-2, 0.5rem);border-width:0 0 0 1px;border-style:solid;border-color:inherit;cursor:pointer}.k-listgroup-form-row{margin-block:calc(var(--kendo-spacing-2, 0.5rem)*-1);margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex:1 1 auto;position:relative}.k-listgroup-form-row .k-listgroup-form-field-label{width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-listgroup-form-row .k-listgroup-form-field-wrapper{width:50%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;text-align:end;position:relative}.k-listgroup-form-row .k-listgroup-form-field-wrapper select,.k-listgroup-form-row .k-listgroup-form-field-wrapper input[type=text],.k-listgroup-form-row .k-listgroup-form-field-wrapper input[type=password],.k-listgroup-form-row .k-listgroup-form-field-wrapper input[type=date],.k-listgroup-form-row .k-listgroup-form-field-wrapper input[type=time],.k-listgroup-form-row .k-listgroup-form-field-wrapper input[type=datetime-local],.k-listgroup-form-row .k-listgroup-form-field-wrapper input[type=number],.k-listgroup-form-row .k-listgroup-form-field-wrapper textarea{width:100%;box-sizing:border-box;flex:1 1 100%}.k-listgroup-form-row .k-listgroup-form-field-wrapper textarea{min-height:4em;resize:vertical}.k-listgroup-item.k-listgroup-form-row{margin:0}[dir=rtl] .k-listgroup-item>.k-link>.k-select{right:auto;left:0}[dir=rtl] .k-listgroup-item-segmented>.k-link{margin-right:calc(var(--kendo-spacing-2, 0.5rem)*-1);margin-left:0}[dir=rtl] .k-listgroup-item-segmented>.k-select{margin-right:0;margin-left:calc(var(--kendo-spacing-2, 0.5rem)*-1);border-right-width:1px;border-left-width:0}.k-noflexbox .k-listgroup,.k-noflexbox .k-listgroup>ul .k-listgroup-item,.k-noflexbox .k-listgroup-item>.k-link{display:block}.k-listgroup{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-badge{padding:0;border-width:1px;border-style:solid;border-color:rgba(0,0,0,0);box-sizing:border-box;color:inherit;background-color:rgba(0,0,0,0);font:inherit;text-align:center;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.k-badge *,.k-badge *::before,.k-badge *::after{box-sizing:border-box}.k-badge>*{color:inherit}a.k-badge,.k-badge>a{text-decoration:none}a.k-badge:hover,.k-badge>a:hover{text-decoration:underline}.k-badge-icon{max-width:1em;max-height:1em;font-size:inherit}.k-badge-icon.k-svg-icon svg{fill:currentColor}.k-badge-sm{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-0\.5, 0.125rem);font-size:var(--kendo-font-size-xs, inherit);line-height:1;min-width:calc(1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px)}.k-badge-sm:empty{padding:var(--kendo-spacing-0\.5, 0.125rem);min-width:auto}.k-badge-md{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);font-size:var(--kendo-font-size-xs, inherit);line-height:1;min-width:calc(1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-badge-md:empty{padding:var(--kendo-spacing-1, 0.25rem);min-width:auto}.k-badge-lg{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-1\.5, 0.375rem);font-size:var(--kendo-font-size-xs, inherit);line-height:1;min-width:calc(1em + var(--kendo-spacing-1\.5, 0.375rem)*2 + 2px)}.k-badge-lg:empty{padding:var(--kendo-spacing-1\.5, 0.375rem);min-width:auto}kendo-badge-container{display:inline-block}.k-badge-container{position:relative;overflow:visible}.k-badge-inside{position:absolute;z-index:9999}.k-badge-edge{position:absolute;z-index:9999}.k-badge-edge.k-top-start{transform:translate(-50%, -50%)}.k-badge-edge.k-top-end{transform:translate(50%, -50%)}.k-badge-edge.k-bottom-start{transform:translate(-50%, 50%)}.k-badge-edge.k-bottom-end{transform:translate(50%, 50%)}.k-rtl .k-badge-edge.k-top-start,[dir=rtl].k-badge-edge.k-top-start,[dir=rtl] .k-badge-edge.k-top-start{transform:translate(50%, -50%)}.k-rtl .k-badge-edge.k-top-end,[dir=rtl].k-badge-edge.k-top-end,[dir=rtl] .k-badge-edge.k-top-end{transform:translate(-50%, -50%)}.k-rtl .k-badge-edge.k-bottom-start,[dir=rtl].k-badge-edge.k-bottom-start,[dir=rtl] .k-badge-edge.k-bottom-start{transform:translate(50%, 50%)}.k-rtl .k-badge-edge.k-bottom-end,[dir=rtl].k-badge-edge.k-bottom-end,[dir=rtl] .k-badge-edge.k-bottom-end{transform:translate(-50%, 50%)}.k-badge-outside{position:absolute;z-index:9999}.k-badge-outside.k-top-start{transform:translate(-100%, -100%)}.k-badge-outside.k-top-end{transform:translate(100%, -100%)}.k-badge-outside.k-bottom-start{transform:translate(-100%, 100%)}.k-badge-outside.k-bottom-end{transform:translate(100%, 100%)}.k-rtl .k-badge-outside.k-top-start,[dir=rtl].k-badge-outside.k-top-start,[dir=rtl] .k-badge-outside.k-top-start{transform:translate(100%, -100%)}.k-rtl .k-badge-outside.k-top-end,[dir=rtl].k-badge-outside.k-top-end,[dir=rtl] .k-badge-outside.k-top-end{transform:translate(-100%, -100%)}.k-rtl .k-badge-outside.k-bottom-start,[dir=rtl].k-badge-outside.k-bottom-start,[dir=rtl] .k-badge-outside.k-bottom-start{transform:translate(100%, 100%)}.k-rtl .k-badge-outside.k-bottom-end,[dir=rtl].k-badge-outside.k-bottom-end,[dir=rtl] .k-badge-outside.k-bottom-end{transform:translate(-100%, 100%)}.k-badge-border-cutout{box-shadow:0 0 0 2px var(--kendo-color-surface-alt, #ffffff)}.k-badge-solid-primary{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-badge-solid-secondary{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-badge-solid-tertiary{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-badge-solid-info{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-badge-solid-success{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-badge-solid-warning{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-badge-solid-error{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-badge-solid-dark{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-badge-solid-light{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-badge-solid-inverse{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-badge-outline{border-color:currentColor;background-color:rgba(0,0,0,0)}.k-badge-outline-primary{color:var(--kendo-color-primary, #1274AC)}.k-badge-outline-secondary{color:var(--kendo-color-secondary, #757575)}.k-badge-outline-tertiary{color:var(--kendo-color-tertiary, #007F84)}.k-badge-outline-info{color:var(--kendo-color-info, #0058E9)}.k-badge-outline-success{color:var(--kendo-color-success, #278200)}.k-badge-outline-warning{color:var(--kendo-color-warning, #F5A600)}.k-badge-outline-error{color:var(--kendo-color-error, #D51923)}.k-badge-outline-dark{color:var(--kendo-color-dark, #3d3d3d)}.k-badge-outline-light{color:var(--kendo-color-light, #757575)}.k-badge-outline-inverse{color:var(--kendo-color-dark, #3d3d3d)}.k-button{box-sizing:border-box;border-width:1px;border-style:solid;color:inherit;background:none;font-family:var(--kendo-font-family, inherit);font-weight:var(--kendo-font-weight-normal, normal);text-align:center;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:var(--kendo-spacing-1, 0.25rem);vertical-align:middle;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;-webkit-appearance:none;position:relative;transition:color .2s ease-in-out}.k-button *,.k-button *::before,.k-button *::after{box-sizing:border-box}.k-button:disabled,.k-button.k-disabled{box-shadow:none}.k-button::-moz-focus-inner{padding:0;border:0;outline:0}.k-button:hover,.k-button:focus{text-decoration:none;outline:0}.k-icon-button{gap:0}.k-icon-button .k-icon{display:inline-flex}.k-button-icon{color:inherit;align-self:center;position:relative}.k-button-sm{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-button-sm.k-icon-button{padding:var(--kendo-spacing-0\.5, 0.125rem)}.k-button-sm.k-icon-button .k-button-icon{min-width:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal));min-height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal));display:inline-flex;align-items:center;justify-content:center}.k-button-sm.k-icon-button .k-button-icon.k-svg-icon>svg,.k-button-sm.k-icon-button .k-button-icon.k-icon-md>svg{width:16px;height:16px}.k-button-sm.k-icon-button .k-button-icon.k-icon-xs>svg{width:12px;height:12px}.k-button-sm.k-icon-button .k-button-icon.k-icon-sm>svg{width:14px;height:14px}.k-button-sm.k-icon-button .k-button-icon.k-icon-lg>svg{width:20px;height:20px}.k-button-sm.k-icon-button .k-button-icon.k-icon-xl>svg{width:24px;height:24px}.k-button-sm.k-icon-button .k-button-icon.k-icon-xxl>svg{width:32px;height:32px}.k-button-sm.k-icon-button .k-button-icon.k-icon-xxxl>svg{width:48px;height:48px}.k-button-md{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-button-md.k-icon-button{padding:var(--kendo-spacing-1, 0.25rem)}.k-button-md.k-icon-button .k-button-icon{min-width:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal));min-height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal));display:inline-flex;align-items:center;justify-content:center}.k-button-md.k-icon-button .k-button-icon.k-svg-icon>svg,.k-button-md.k-icon-button .k-button-icon.k-icon-md>svg{width:16px;height:16px}.k-button-md.k-icon-button .k-button-icon.k-icon-xs>svg{width:12px;height:12px}.k-button-md.k-icon-button .k-button-icon.k-icon-sm>svg{width:14px;height:14px}.k-button-md.k-icon-button .k-button-icon.k-icon-lg>svg{width:20px;height:20px}.k-button-md.k-icon-button .k-button-icon.k-icon-xl>svg{width:24px;height:24px}.k-button-md.k-icon-button .k-button-icon.k-icon-xxl>svg{width:32px;height:32px}.k-button-md.k-icon-button .k-button-icon.k-icon-xxxl>svg{width:48px;height:48px}.k-button-lg{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-button-lg.k-icon-button{padding:var(--kendo-spacing-2, 0.5rem)}.k-button-lg.k-icon-button .k-button-icon{min-width:calc(var(--kendo-font-size-lg, inherit)*var(--kendo-line-height-lg, normal));min-height:calc(var(--kendo-font-size-lg, inherit)*var(--kendo-line-height-lg, normal));display:inline-flex;align-items:center;justify-content:center}.k-button-lg.k-icon-button .k-button-icon.k-svg-icon>svg,.k-button-lg.k-icon-button .k-button-icon.k-icon-md>svg{width:16px;height:16px}.k-button-lg.k-icon-button .k-button-icon.k-icon-xs>svg{width:12px;height:12px}.k-button-lg.k-icon-button .k-button-icon.k-icon-sm>svg{width:14px;height:14px}.k-button-lg.k-icon-button .k-button-icon.k-icon-lg>svg{width:20px;height:20px}.k-button-lg.k-icon-button .k-button-icon.k-icon-xl>svg{width:24px;height:24px}.k-button-lg.k-icon-button .k-button-icon.k-icon-xxl>svg{width:32px;height:32px}.k-button-lg.k-icon-button .k-button-icon.k-icon-xxxl>svg{width:48px;height:48px}.k-button-square{aspect-ratio:1}.k-button-group{margin:0;padding:0;border-width:0;box-sizing:border-box;list-style:none;outline:0;display:inline-flex;flex-flow:row nowrap;vertical-align:middle;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-button-group>.k-button+.k-button{margin-inline-start:-1px}.k-button-group>.k-button:hover,.k-button-group>.k-button.k-hover,.k-button-group>.k-button:focus,.k-button-group>.k-button.k-focus,.k-button-group>.k-button:active,.k-button-group>.k-button.k-active,.k-button-group>.k-button.k-selected{z-index:2}.k-button-group .k-button:not(:first-child):not(:last-child){border-start-end-radius:0;border-end-end-radius:0;border-start-start-radius:0;border-end-start-radius:0}.k-button-group>.k-button:first-child:not(:only-child){border-start-end-radius:0;border-end-end-radius:0}.k-button-group>.k-button:last-child:not(:only-child){border-start-start-radius:0;border-end-start-radius:0}.k-button-group-stretched{width:100%}.k-button-group-stretched>*{flex:1 0 0%;overflow:hidden}.k-button-flat{border-color:rgba(0,0,0,0) !important;color:inherit;background:none !important;box-shadow:none !important}.k-button-flat::before{display:block !important}.k-button-flat::after{box-shadow:inset 0 0 0 2px currentColor;display:block !important}.k-button-flat:focus::after,.k-button-flat.k-focus::after{opacity:.12}.k-button-outline{border-color:currentColor;color:inherit;background:none}.k-button-link{border-color:rgba(0,0,0,0);color:inherit;text-decoration:none;background:none}.k-button-link:hover,.k-button-link.k-hover{text-decoration:underline}.k-button-clear{border-color:rgba(0,0,0,0) !important;color:inherit;background:none !important;box-shadow:none !important}.k-button-overlay,.k-button::before{border-radius:inherit;content:"";background:currentColor;opacity:0;display:none;pointer-events:none;position:absolute;left:-1px;right:-1px;top:-1px;bottom:-1px;z-index:0;transition:opacity .2s ease-in-out}.k-button:hover::before,.k-button.k-hover::before{opacity:4%}.k-button.k-no-focus:not(:hover)::before,.k-button.k-no-focus:not(.k-hover)::before{opacity:0}.k-button:active::before,.k-button.k-active::before{opacity:6%}.k-button.k-selected::before{opacity:8%}.k-button::after{border-radius:inherit;content:"";opacity:0;display:none;pointer-events:none;position:absolute;left:-1px;right:-1px;top:-1px;bottom:-1px;z-index:0;transition:opacity .2s ease-in-out}.k-button-solid-base{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base, #f5f5f5)}.k-button-solid-base:hover,.k-button-solid-base.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-button-solid-base:focus,.k-button-solid-base.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-button-solid-base:active,.k-button-solid-base.k-active{background-color:var(--kendo-color-base-active, #d8d8d8)}.k-button-solid-base.k-selected{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-button-solid-primary{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-button-solid-primary:hover,.k-button-solid-primary.k-hover{border-color:var(--kendo-color-primary-hover, #116fa5);background-color:var(--kendo-color-primary-hover, #116fa5)}.k-button-solid-primary:focus,.k-button-solid-primary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-button-solid-primary:active,.k-button-solid-primary.k-active{border-color:var(--kendo-color-primary-active, #106697);background-color:var(--kendo-color-primary-active, #106697)}.k-button-solid-primary.k-selected{border-color:var(--kendo-color-primary-active, #106697);background-color:var(--kendo-color-primary-active, #106697)}.k-button-solid-secondary{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-button-solid-secondary:hover,.k-button-solid-secondary.k-hover{border-color:var(--kendo-color-secondary-hover, #707070);background-color:var(--kendo-color-secondary-hover, #707070)}.k-button-solid-secondary:focus,.k-button-solid-secondary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-secondary, #757575) 30%, transparent)}.k-button-solid-secondary:active,.k-button-solid-secondary.k-active{border-color:var(--kendo-color-secondary-active, #676767);background-color:var(--kendo-color-secondary-active, #676767)}.k-button-solid-secondary.k-selected{border-color:var(--kendo-color-secondary-active, #676767);background-color:var(--kendo-color-secondary-active, #676767)}.k-button-solid-tertiary{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-button-solid-tertiary:hover,.k-button-solid-tertiary.k-hover{border-color:var(--kendo-color-tertiary-hover, #007a7f);background-color:var(--kendo-color-tertiary-hover, #007a7f)}.k-button-solid-tertiary:focus,.k-button-solid-tertiary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-tertiary, #007F84) 30%, transparent)}.k-button-solid-tertiary:active,.k-button-solid-tertiary.k-active{border-color:var(--kendo-color-tertiary-active, #007074);background-color:var(--kendo-color-tertiary-active, #007074)}.k-button-solid-tertiary.k-selected{border-color:var(--kendo-color-tertiary-active, #007074);background-color:var(--kendo-color-tertiary-active, #007074)}.k-button-solid-info{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-button-solid-info:hover,.k-button-solid-info.k-hover{border-color:var(--kendo-color-info-hover, #0054e0);background-color:var(--kendo-color-info-hover, #0054e0)}.k-button-solid-info:focus,.k-button-solid-info.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-info, #0058E9) 30%, transparent)}.k-button-solid-info:active,.k-button-solid-info.k-active{border-color:var(--kendo-color-info-active, #004dcd);background-color:var(--kendo-color-info-active, #004dcd)}.k-button-solid-info.k-selected{border-color:var(--kendo-color-info-active, #004dcd);background-color:var(--kendo-color-info-active, #004dcd)}.k-button-solid-success{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-button-solid-success:hover,.k-button-solid-success.k-hover{border-color:var(--kendo-color-success-hover, #257d00);background-color:var(--kendo-color-success-hover, #257d00)}.k-button-solid-success:focus,.k-button-solid-success.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-success, #278200) 30%, transparent)}.k-button-solid-success:active,.k-button-solid-success.k-active{border-color:var(--kendo-color-success-active, #227200);background-color:var(--kendo-color-success-active, #227200)}.k-button-solid-success.k-selected{border-color:var(--kendo-color-success-active, #227200);background-color:var(--kendo-color-success-active, #227200)}.k-button-solid-warning{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-button-solid-warning:hover,.k-button-solid-warning.k-hover{border-color:var(--kendo-color-warning-hover, #eb9f00);background-color:var(--kendo-color-warning-hover, #eb9f00)}.k-button-solid-warning:focus,.k-button-solid-warning.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-warning, #F5A600) 30%, transparent)}.k-button-solid-warning:active,.k-button-solid-warning.k-active{border-color:var(--kendo-color-warning-active, #d89200);background-color:var(--kendo-color-warning-active, #d89200)}.k-button-solid-warning.k-selected{border-color:var(--kendo-color-warning-active, #d89200);background-color:var(--kendo-color-warning-active, #d89200)}.k-button-solid-error{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-button-solid-error:hover,.k-button-solid-error.k-hover{border-color:var(--kendo-color-error-hover, #cc1822);background-color:var(--kendo-color-error-hover, #cc1822)}.k-button-solid-error:focus,.k-button-solid-error.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-error, #D51923) 30%, transparent)}.k-button-solid-error:active,.k-button-solid-error.k-active{border-color:var(--kendo-color-error-active, #bb161f);background-color:var(--kendo-color-error-active, #bb161f)}.k-button-solid-error.k-selected{border-color:var(--kendo-color-error-active, #bb161f);background-color:var(--kendo-color-error-active, #bb161f)}.k-button-solid-dark{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-solid-dark:hover,.k-button-solid-dark.k-hover{border-color:var(--kendo-color-dark-hover, #292929);background-color:var(--kendo-color-dark-hover, #292929)}.k-button-solid-dark:focus,.k-button-solid-dark.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-dark, #3d3d3d) 30%, transparent)}.k-button-solid-dark:active,.k-button-solid-dark.k-active{border-color:var(--kendo-color-dark-active, #1f1f1f);background-color:var(--kendo-color-dark-active, #1f1f1f)}.k-button-solid-dark.k-selected{border-color:var(--kendo-color-dark-active, #1f1f1f);background-color:var(--kendo-color-dark-active, #1f1f1f)}.k-button-solid-light{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-button-solid-light:hover,.k-button-solid-light.k-hover{border-color:var(--kendo-color-light-hover, #707070);background-color:var(--kendo-color-light-hover, #707070)}.k-button-solid-light:focus,.k-button-solid-light.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-light, #757575) 30%, transparent)}.k-button-solid-light:active,.k-button-solid-light.k-active{border-color:var(--kendo-color-light-active, #676767);background-color:var(--kendo-color-light-active, #676767)}.k-button-solid-light.k-selected{border-color:var(--kendo-color-light-active, #676767);background-color:var(--kendo-color-light-active, #676767)}.k-button-solid-inverse{border-color:var(--kendo-color-inverse, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-inverse, #3d3d3d)}.k-button-solid-inverse:hover,.k-button-solid-inverse.k-hover{border-color:var(--kendo-color-inverse-hover, #292929);background-color:var(--kendo-color-inverse-hover, #292929)}.k-button-solid-inverse:focus,.k-button-solid-inverse.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-inverse, #3d3d3d) 30%, transparent)}.k-button-solid-inverse:active,.k-button-solid-inverse.k-active{border-color:var(--kendo-color-inverse-active, #1f1f1f);background-color:var(--kendo-color-inverse-active, #1f1f1f)}.k-button-solid-inverse.k-selected{border-color:var(--kendo-color-inverse-active, #1f1f1f);background-color:var(--kendo-color-inverse-active, #1f1f1f)}.k-button-outline-base{box-shadow:none;border-color:currentColor;color:var(--kendo-color-base-on-surface, #424242);background-color:rgba(0,0,0,0)}.k-button-outline-base:hover,.k-button-outline-base.k-hover{border-color:var(--kendo-color-on-base, #424242);color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-on-base, #424242)}.k-button-outline-base:focus,.k-button-outline-base.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 30%, transparent)}.k-button-outline-base:active,.k-button-outline-base.k-active{border-color:var(--kendo-color-on-base, #424242);color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-on-base, #424242)}.k-button-outline-base.k-selected{border-color:var(--kendo-color-on-base, #424242);color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-on-base, #424242)}.k-button-outline-primary{box-shadow:none;border-color:currentColor;color:var(--kendo-color-primary-on-surface, #0e5781);background-color:rgba(0,0,0,0)}.k-button-outline-primary:hover,.k-button-outline-primary.k-hover{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-button-outline-primary:focus,.k-button-outline-primary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-button-outline-primary:active,.k-button-outline-primary.k-active{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-button-outline-primary.k-selected{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-button-outline-secondary{box-shadow:none;border-color:currentColor;color:var(--kendo-color-secondary-on-surface, #585858);background-color:rgba(0,0,0,0)}.k-button-outline-secondary:hover,.k-button-outline-secondary.k-hover{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-button-outline-secondary:focus,.k-button-outline-secondary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-secondary, #757575) 30%, transparent)}.k-button-outline-secondary:active,.k-button-outline-secondary.k-active{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-button-outline-secondary.k-selected{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-button-outline-tertiary{box-shadow:none;border-color:currentColor;color:var(--kendo-color-tertiary-on-surface, #005f63);background-color:rgba(0,0,0,0)}.k-button-outline-tertiary:hover,.k-button-outline-tertiary.k-hover{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-button-outline-tertiary:focus,.k-button-outline-tertiary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-tertiary, #007F84) 30%, transparent)}.k-button-outline-tertiary:active,.k-button-outline-tertiary.k-active{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-button-outline-tertiary.k-selected{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-button-outline-info{box-shadow:none;border-color:currentColor;color:var(--kendo-color-info-on-surface, #0042af);background-color:rgba(0,0,0,0)}.k-button-outline-info:hover,.k-button-outline-info.k-hover{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-button-outline-info:focus,.k-button-outline-info.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-info, #0058E9) 30%, transparent)}.k-button-outline-info:active,.k-button-outline-info.k-active{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-button-outline-info.k-selected{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-button-outline-success{box-shadow:none;border-color:currentColor;color:var(--kendo-color-success-on-surface, #1d6200);background-color:rgba(0,0,0,0)}.k-button-outline-success:hover,.k-button-outline-success.k-hover{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-button-outline-success:focus,.k-button-outline-success.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-success, #278200) 30%, transparent)}.k-button-outline-success:active,.k-button-outline-success.k-active{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-button-outline-success.k-selected{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-button-outline-warning{box-shadow:none;border-color:currentColor;color:var(--kendo-color-warning-on-surface, #b87d00);background-color:rgba(0,0,0,0)}.k-button-outline-warning:hover,.k-button-outline-warning.k-hover{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-button-outline-warning:focus,.k-button-outline-warning.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-warning, #F5A600) 30%, transparent)}.k-button-outline-warning:active,.k-button-outline-warning.k-active{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-button-outline-warning.k-selected{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-button-outline-error{box-shadow:none;border-color:currentColor;color:var(--kendo-color-error-on-surface, #a0131a);background-color:rgba(0,0,0,0)}.k-button-outline-error:hover,.k-button-outline-error.k-hover{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-button-outline-error:focus,.k-button-outline-error.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-error, #D51923) 30%, transparent)}.k-button-outline-error:active,.k-button-outline-error.k-active{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-button-outline-error.k-selected{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-button-outline-dark{box-shadow:none;border-color:currentColor;color:var(--kendo-color-dark-on-surface, #141414);background-color:rgba(0,0,0,0)}.k-button-outline-dark:hover,.k-button-outline-dark.k-hover{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-outline-dark:focus,.k-button-outline-dark.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-dark, #3d3d3d) 30%, transparent)}.k-button-outline-dark:active,.k-button-outline-dark.k-active{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-outline-dark.k-selected{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-outline-light{box-shadow:none;border-color:currentColor;color:var(--kendo-color-light-on-surface, #585858);background-color:rgba(0,0,0,0)}.k-button-outline-light:hover,.k-button-outline-light.k-hover{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-button-outline-light:focus,.k-button-outline-light.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-light, #757575) 30%, transparent)}.k-button-outline-light:active,.k-button-outline-light.k-active{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-button-outline-light.k-selected{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-button-outline-inverse{box-shadow:none;border-color:currentColor;color:var(--kendo-color-inverse-on-surface, #141414);background-color:rgba(0,0,0,0)}.k-button-outline-inverse:hover,.k-button-outline-inverse.k-hover{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-outline-inverse:focus,.k-button-outline-inverse.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-inverse, #3d3d3d) 30%, transparent)}.k-button-outline-inverse:active,.k-button-outline-inverse.k-active{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-outline-inverse.k-selected{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-button-flat-base{color:inherit}.k-button-flat-primary{color:var(--kendo-color-primary-on-surface, #0e5781)}.k-button-flat-secondary{color:var(--kendo-color-secondary-on-surface, #585858)}.k-button-flat-tertiary{color:var(--kendo-color-tertiary-on-surface, #005f63)}.k-button-flat-info{color:var(--kendo-color-info-on-surface, #0042af)}.k-button-flat-success{color:var(--kendo-color-success-on-surface, #1d6200)}.k-button-flat-warning{color:var(--kendo-color-warning-on-surface, #b87d00)}.k-button-flat-error{color:var(--kendo-color-error-on-surface, #a0131a)}.k-button-flat-dark{color:var(--kendo-color-dark-on-surface, #141414)}.k-button-flat-light{color:var(--kendo-color-light-on-surface, #585858)}.k-button-flat-inverse{color:var(--kendo-color-inverse-on-surface, #141414)}.k-button-link-base{color:var(--kendo-color-on-app-surface, #424242)}.k-button-link-base:hover,.k-button-link-base.k-hover{color:var(--kendo-color-on-app-surface, #424242)}.k-button-link-base:focus,.k-button-link-base.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 30%, transparent)}.k-button-link-base:active,.k-button-link-base.k-active{color:var(--kendo-color-on-app-surface, #424242)}.k-button-link-base.k-selected{color:var(--kendo-color-on-app-surface, #424242)}.k-button-link-primary{color:var(--kendo-color-primary, #1274AC)}.k-button-link-primary:hover,.k-button-link-primary.k-hover{color:var(--kendo-color-primary-hover, #116fa5)}.k-button-link-primary:focus,.k-button-link-primary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-button-link-primary:active,.k-button-link-primary.k-active{color:var(--kendo-color-primary-active, #106697)}.k-button-link-primary.k-selected{color:var(--kendo-color-primary-active, #106697)}.k-button-link-secondary{color:var(--kendo-color-secondary, #757575)}.k-button-link-secondary:hover,.k-button-link-secondary.k-hover{color:var(--kendo-color-secondary-hover, #707070)}.k-button-link-secondary:focus,.k-button-link-secondary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-secondary, #757575) 30%, transparent)}.k-button-link-secondary:active,.k-button-link-secondary.k-active{color:var(--kendo-color-secondary-active, #676767)}.k-button-link-secondary.k-selected{color:var(--kendo-color-secondary-active, #676767)}.k-button-link-tertiary{color:var(--kendo-color-tertiary, #007F84)}.k-button-link-tertiary:hover,.k-button-link-tertiary.k-hover{color:var(--kendo-color-tertiary-hover, #007a7f)}.k-button-link-tertiary:focus,.k-button-link-tertiary.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-tertiary, #007F84) 30%, transparent)}.k-button-link-tertiary:active,.k-button-link-tertiary.k-active{color:var(--kendo-color-tertiary-active, #007074)}.k-button-link-tertiary.k-selected{color:var(--kendo-color-tertiary-active, #007074)}.k-button-link-info{color:var(--kendo-color-info, #0058E9)}.k-button-link-info:hover,.k-button-link-info.k-hover{color:var(--kendo-color-info-hover, #0054e0)}.k-button-link-info:focus,.k-button-link-info.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-info, #0058E9) 30%, transparent)}.k-button-link-info:active,.k-button-link-info.k-active{color:var(--kendo-color-info-active, #004dcd)}.k-button-link-info.k-selected{color:var(--kendo-color-info-active, #004dcd)}.k-button-link-success{color:var(--kendo-color-success, #278200)}.k-button-link-success:hover,.k-button-link-success.k-hover{color:var(--kendo-color-success-hover, #257d00)}.k-button-link-success:focus,.k-button-link-success.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-success, #278200) 30%, transparent)}.k-button-link-success:active,.k-button-link-success.k-active{color:var(--kendo-color-success-active, #227200)}.k-button-link-success.k-selected{color:var(--kendo-color-success-active, #227200)}.k-button-link-warning{color:var(--kendo-color-warning, #F5A600)}.k-button-link-warning:hover,.k-button-link-warning.k-hover{color:var(--kendo-color-warning-hover, #eb9f00)}.k-button-link-warning:focus,.k-button-link-warning.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-warning, #F5A600) 30%, transparent)}.k-button-link-warning:active,.k-button-link-warning.k-active{color:var(--kendo-color-warning-active, #d89200)}.k-button-link-warning.k-selected{color:var(--kendo-color-warning-active, #d89200)}.k-button-link-error{color:var(--kendo-color-error, #D51923)}.k-button-link-error:hover,.k-button-link-error.k-hover{color:var(--kendo-color-error-hover, #cc1822)}.k-button-link-error:focus,.k-button-link-error.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-error, #D51923) 30%, transparent)}.k-button-link-error:active,.k-button-link-error.k-active{color:var(--kendo-color-error-active, #bb161f)}.k-button-link-error.k-selected{color:var(--kendo-color-error-active, #bb161f)}.k-button-link-dark{color:var(--kendo-color-dark, #3d3d3d)}.k-button-link-dark:hover,.k-button-link-dark.k-hover{color:var(--kendo-color-dark-hover, #292929)}.k-button-link-dark:focus,.k-button-link-dark.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-dark, #3d3d3d) 30%, transparent)}.k-button-link-dark:active,.k-button-link-dark.k-active{color:var(--kendo-color-dark-active, #1f1f1f)}.k-button-link-dark.k-selected{color:var(--kendo-color-dark-active, #1f1f1f)}.k-button-link-light{color:var(--kendo-color-light, #757575)}.k-button-link-light:hover,.k-button-link-light.k-hover{color:var(--kendo-color-light-hover, #707070)}.k-button-link-light:focus,.k-button-link-light.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-light, #757575) 30%, transparent)}.k-button-link-light:active,.k-button-link-light.k-active{color:var(--kendo-color-light-active, #676767)}.k-button-link-light.k-selected{color:var(--kendo-color-light-active, #676767)}.k-button-link-inverse{color:var(--kendo-color-dark, #3d3d3d)}.k-button-link-inverse:hover,.k-button-link-inverse.k-hover{color:var(--kendo-color-inverse-hover, #292929)}.k-button-link-inverse:focus,.k-button-link-inverse.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-inverse, #3d3d3d) 30%, transparent)}.k-button-link-inverse:active,.k-button-link-inverse.k-active{color:var(--kendo-color-inverse-active, #1f1f1f)}.k-button-link-inverse.k-selected{color:var(--kendo-color-inverse-active, #1f1f1f)}.k-button-clear-base{color:var(--kendo-color-base-on-surface, #424242)}.k-button-clear-base:focus::after,.k-button-clear-base.k-focus::after,.k-button-clear-base:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-primary{color:var(--kendo-color-primary-on-surface, #0e5781)}.k-button-clear-primary:focus::after,.k-button-clear-primary.k-focus::after,.k-button-clear-primary:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-secondary{color:var(--kendo-color-secondary-on-surface, #585858)}.k-button-clear-secondary:focus::after,.k-button-clear-secondary.k-focus::after,.k-button-clear-secondary:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-tertiary{color:var(--kendo-color-tertiary-on-surface, #005f63)}.k-button-clear-tertiary:focus::after,.k-button-clear-tertiary.k-focus::after,.k-button-clear-tertiary:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-info{color:var(--kendo-color-info-on-surface, #0042af)}.k-button-clear-info:focus::after,.k-button-clear-info.k-focus::after,.k-button-clear-info:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-success{color:var(--kendo-color-success-on-surface, #1d6200)}.k-button-clear-success:focus::after,.k-button-clear-success.k-focus::after,.k-button-clear-success:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-warning{color:var(--kendo-color-warning-on-surface, #b87d00)}.k-button-clear-warning:focus::after,.k-button-clear-warning.k-focus::after,.k-button-clear-warning:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-error{color:var(--kendo-color-error-on-surface, #a0131a)}.k-button-clear-error:focus::after,.k-button-clear-error.k-focus::after,.k-button-clear-error:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-dark{color:var(--kendo-color-dark-on-surface, #141414)}.k-button-clear-dark:focus::after,.k-button-clear-dark.k-focus::after,.k-button-clear-dark:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-light{color:var(--kendo-color-light-on-surface, #585858)}.k-button-clear-light:focus::after,.k-button-clear-light.k-focus::after,.k-button-clear-light:active::after{background-color:currentColor;opacity:.1;display:block}.k-button-clear-inverse{color:var(--kendo-color-inverse-on-surface, #141414)}.k-button-clear-inverse:focus::after,.k-button-clear-inverse.k-focus::after,.k-button-clear-inverse:active::after{background-color:currentColor;opacity:.1;display:block}.k-actions,.k-form-buttons,.k-edit-buttons,.k-action-buttons,.k-columnmenu-actions{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);box-sizing:border-box;border-width:0px 0 0 0;border-style:solid;border-color:inherit;flex-shrink:0;display:flex;flex-flow:row nowrap;align-items:center;gap:var(--kendo-spacing-2, 0.5rem);overflow:hidden;clear:both}.k-actions *,.k-form-buttons *,.k-edit-buttons *,.k-action-buttons *,.k-columnmenu-actions *,.k-actions *::before,.k-form-buttons *::before,.k-edit-buttons *::before,.k-action-buttons *::before,.k-columnmenu-actions *::before,.k-actions *::after,.k-form-buttons *::after,.k-edit-buttons *::after,.k-action-buttons *::after,.k-columnmenu-actions *::after{box-sizing:border-box}.k-popup .k-actions,.k-popup .k-form-buttons,.k-popup .k-edit-buttons,.k-popup .k-action-buttons,.k-popup .k-columnmenu-actions{margin-top:var(--kendo-spacing-4, 1rem)}.k-actions-start{justify-content:flex-start}.k-actions-center{justify-content:center}.k-actions-end{justify-content:flex-end}.k-actions-justify{justify-content:space-between}.k-actions-stretched>*{flex:1 0 0%}.k-actions-horizontal{width:100%;flex-flow:row nowrap}.k-actions-vertical{flex-flow:column nowrap;align-items:normal}.k-justify-content-normal{justify-content:normal}.\!k-justify-content-normal{justify-content:normal !important}.k-justify-content-stretch{justify-content:stretch}.\!k-justify-content-stretch{justify-content:stretch !important}.k-justify-content-center{justify-content:center}.\!k-justify-content-center{justify-content:center !important}.k-justify-content-start{justify-content:start}.\!k-justify-content-start{justify-content:start !important}.k-justify-content-end{justify-content:end}.\!k-justify-content-end{justify-content:end !important}.k-justify-content-flex-start{justify-content:flex-start}.\!k-justify-content-flex-start{justify-content:flex-start !important}.k-justify-content-flex-end{justify-content:flex-end}.\!k-justify-content-flex-end{justify-content:flex-end !important}.k-justify-content-left{justify-content:left}.\!k-justify-content-left{justify-content:left !important}.k-justify-content-right{justify-content:right}.\!k-justify-content-right{justify-content:right !important}.k-justify-content-baseline{justify-content:baseline}.\!k-justify-content-baseline{justify-content:baseline !important}.k-justify-content-first-baseline{justify-content:first baseline}.\!k-justify-content-first-baseline{justify-content:first baseline !important}.k-justify-content-last-baseline{justify-content:last baseline}.\!k-justify-content-last-baseline{justify-content:last baseline !important}.k-justify-content-between{justify-content:space-between}.\!k-justify-content-between{justify-content:space-between !important}.k-justify-content-around{justify-content:space-around}.\!k-justify-content-around{justify-content:space-around !important}.k-justify-content-evenly{justify-content:space-evenly}.\!k-justify-content-evenly{justify-content:space-evenly !important}.k-justify-content-stretch>*{flex:1 0 0%}.\!.k-justify-content-stretch>*{flex:1 0 0% !important}.k-overlay{width:100%;height:100%;opacity:.5;position:fixed;top:0;left:0;z-index:10001}.k-overlay{background-color:#000}.k-overlay-primary{background-color:var(--kendo-color-primary, #1274AC)}.k-overlay-secondary{background-color:var(--kendo-color-secondary, #757575)}.k-overlay-tertiary{background-color:var(--kendo-color-tertiary, #007F84)}.k-overlay-info{background-color:var(--kendo-color-info, #0058E9)}.k-overlay-success{background-color:var(--kendo-color-success, #278200)}.k-overlay-warning{background-color:var(--kendo-color-warning, #F5A600)}.k-overlay-error{background-color:var(--kendo-color-error, #D51923)}.k-overlay-dark{background-color:var(--kendo-color-dark, #3d3d3d)}.k-overlay-light{background-color:var(--kendo-color-light, #757575)}.k-overlay-inverse{background-color:var(--kendo-color-dark, #3d3d3d)}.k-animation-container{position:absolute;overflow:hidden;z-index:100;outline:none}.k-animation-container-fixed{position:fixed}.k-animation-container-relative{position:relative;display:inline-block}.k-animation-container{border-radius:0 0 .25rem .25rem}.k-animation-container-shown{overflow:visible}.k-popup{margin:0;padding:0;border-width:1px;border-style:solid;box-sizing:border-box;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;align-items:stretch}.k-popup .k-item{outline:none}.k-popup>.k-colorpalette{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-popup.k-popup-transparent{border-width:0;background-color:rgba(0,0,0,0);box-shadow:none}.k-popup.k-popup-flush{padding:0}.k-popup>.k-widget,.k-popup>.k-coloreditor{border-width:0}.k-popup .k-column-list{max-height:200px;overflow-x:hidden;overflow-y:auto}.k-popup .k-multicheck-wrap{max-height:300px;overflow:auto}.k-shadow{box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-popup{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-ripple-target{position:relative}.k-ripple{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;overflow:hidden;pointer-events:none}.k-ripple-blob{pointer-events:none;position:absolute;border-radius:50%;padding:0;transform:translate(-50%, -50%) scale(0);transition:opacity 100ms linear,transform 500ms cubic-bezier(0.4, 0, 0.2, 1);opacity:.1;background-color:currentColor}.k-primary .k-ripple-blob{opacity:.2}.k-ripple-focus::after{visibility:visible;animation:ripple 600ms ease-out}@keyframes ripple{0%{transform:translate(-50%, -50%) scale(0)}20%{transform:translate(-50%, -50%) scale(1)}100%{opacity:0;transform:translate(-50%, -50%) scale(1)}}.k-table{width:100%;max-width:none;border-width:1px;border-style:solid;text-align:start;border-collapse:collapse;border-spacing:0;empty-cells:show;outline:none}.k-data-table{border-width:1px;border-style:solid}.k-data-table .k-table{table-layout:fixed}.k-table-thead,.k-table-tbody,.k-table-tfoot,.k-table-row,.k-table-alt-row{border-color:inherit;text-align:inherit}.k-table-th,.k-table-td{border-width:0 0 0px 1px;border-style:solid;border-color:inherit;box-sizing:border-box;font-weight:normal;text-align:inherit;white-space:nowrap;text-overflow:ellipsis;display:table-cell;overflow:hidden;position:relative}.k-table-th:first-child,.k-table-td:first-child{border-left-width:0}.k-table-th{border-bottom-width:1px}.k-table-header{padding-inline-end:var(--kendo-scrollbar-width);border-width:0 0 1px;border-style:solid;box-sizing:border-box}.k-table-header .k-table{border-width:0}.k-table-header-wrap{margin-right:-1px;width:100%;border-width:0 1px 0 0;border-style:solid;border-color:inherit;overflow:hidden}.k-table-header>.k-table,.k-table-header-wrap>.k-table{margin-bottom:-1px}.k-table-group-sticky-header{flex:none}.k-table-group-sticky-header .k-table-th{display:flex;flex-flow:row nowrap;align-items:center;align-content:center}.k-table-list{margin:0;padding:0;width:100%;max-width:none;border-width:0;display:table;border-collapse:collapse;border-spacing:0;table-layout:fixed;empty-cells:show;list-style:none;outline:none}.k-table-list .k-table-row{position:relative}.k-table-list .k-table-row,.k-table-list .k-table-group-row{width:100%;box-sizing:border-box;display:table-row}.k-table-list .k-table-row.k-first{border-top:1px solid currentColor}.k-table-list .k-table-th,.k-table-list .k-table-td{vertical-align:middle}.k-table-list .k-table-group-row{position:sticky}.k-table-list .k-table-group-row::before{content:"​";padding-inline:0;width:0;display:block;overflow:hidden}.k-table-list .k-table-group-row .k-table-th{width:100%;border-color:inherit;color:inherit;background-color:inherit;position:absolute;top:0}.k-table-list .k-table-spacer-td{padding:0 !important;width:0 !important;border-left-width:0 !important;border-right-width:0 !important}.k-table-list .k-table-group-td{padding:0 !important;width:0 !important;border-left-width:0 !important;border-right-width:0 !important;overflow:visible}.k-table-list .k-table-group-td>span{font-size:.75em;position:absolute;top:0;right:0}.k-virtual-table .k-table-row,.k-virtual-table .k-table-group-row{position:absolute;width:100%}.k-table-scroller{position:relative;overflow:auto}.k-table-scroller>.k-table{border-width:0}.k-table-footer{padding-inline-end:var(--kendo-scrollbar-width);border-width:1px 0 0;border-style:solid;box-sizing:border-box}.k-table-footer .k-table{border-width:0}.k-table-footer-wrap{margin-right:-1px;width:100%;border-width:0 1px 0 0;border-style:solid;border-color:inherit;overflow:hidden}.k-table-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-table-sm .k-table-th,.k-table-sm .k-table-td{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-table-sm .k-table-list .k-table-group-td>span{padding-block:0;padding-inline:calc(var(--kendo-spacing-2, 0.5rem)/2)}.k-table-sm .k-table-list .k-table-group-row::before{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:0}.k-table-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-table-md .k-table-th,.k-table-md .k-table-td{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-table-md .k-table-list .k-table-group-td>span{padding-block:0;padding-inline:calc(var(--kendo-spacing-3, 0.75rem)/2)}.k-table-md .k-table-list .k-table-group-row::before{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:0}.k-table-lg{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-table-lg .k-table-th,.k-table-lg .k-table-td{padding-block:var(--kendo-spacing-2\.5, 0.625rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-table-lg .k-table-list .k-table-group-td>span{padding-block:0;padding-inline:calc(var(--kendo-spacing-2, 0.5rem)/2)}.k-table-lg .k-table-list .k-table-group-row::before{padding-block:var(--kendo-spacing-2\.5, 0.625rem);padding-inline:0}.k-rtl.k-table .k-table-th,.k-rtl.k-table .k-table-td,.k-rtl .k-table .k-table-th,.k-rtl .k-table .k-table-td,[dir=rtl].k-table .k-table-th,[dir=rtl].k-table .k-table-td,[dir=rtl] .k-table .k-table-th,[dir=rtl] .k-table .k-table-td{border-left-width:0;border-right-width:1px}.k-rtl.k-table .k-table-th:first-child,.k-rtl.k-table .k-table-td:first-child,.k-rtl .k-table .k-table-th:first-child,.k-rtl .k-table .k-table-td:first-child,[dir=rtl].k-table .k-table-th:first-child,[dir=rtl].k-table .k-table-td:first-child,[dir=rtl] .k-table .k-table-th:first-child,[dir=rtl] .k-table .k-table-td:first-child{border-right-width:0}.k-rtl.k-table .k-table-header-wrap,.k-rtl.k-table .k-table-footer-wrap,.k-rtl .k-table .k-table-header-wrap,.k-rtl .k-table .k-table-footer-wrap,[dir=rtl].k-table .k-table-header-wrap,[dir=rtl].k-table .k-table-footer-wrap,[dir=rtl] .k-table .k-table-header-wrap,[dir=rtl] .k-table .k-table-footer-wrap{margin-right:0;margin-left:-1px;border-left-width:1px;border-right-width:0}.k-rtl .k-table-list .k-table-group-td>span,[dir=rtl] .k-table-list .k-table-group-td>span{left:0;right:auto}.k-table,.k-data-table{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-table .k-table-td-row-span,.k-data-table .k-table-td-row-span{box-shadow:inset 0 0 0 1px var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-table-thead,.k-table-header,.k-table-group-sticky-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-table-tfoot,.k-table-footer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-table-group-row{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-table-group-td>span{color:var(--kendo-color-surface-alt, #ffffff);background-color:var(--kendo-color-on-app-surface, #424242)}.k-table-alt-row{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-table-tbody .k-table-row:hover,.k-table-list .k-table-row:hover,.k-table-tbody .k-table-row.k-hover,.k-table-list .k-table-row.k-hover{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 11%, transparent)}.k-table-tbody .k-table-row.k-focus,.k-table-tbody .k-table-row:focus,.k-table-list .k-table-row.k-focus,.k-table-list .k-table-row:focus,.k-table-tbody .k-table-td.k-focus,.k-table-tbody .k-table-td:focus,.k-table-list .k-table-td.k-focus,.k-table-list .k-table-td:focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-table-tbody .k-table-row.k-selected>.k-table-td,.k-table-list .k-table-row.k-selected{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-virtual-scroller{width:100%;height:100%;flex:1 1 auto;overflow:auto;position:relative}.k-virtual-scroller-wrap{position:relative;z-index:1}.k-virtual-scroller-content{position:absolute;width:100%;top:0;inset-inline-start:0}.k-virtual-scroller-size{position:relative;z-index:0}.k-no-data,.k-nodata{min-height:140px;display:flex;align-items:center;justify-content:center;font-weight:lighter;text-align:center;white-space:normal}.k-no-data,.k-nodata{color:var(--kendo-color-subtle, #666666)}.k-column-menu-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-menu-sm .k-columnmenu-item{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-list-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-list-sm .k-column-list-item{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-group-menu-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-group-menu-sm .k-group-menu-item{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-menu-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-menu-md .k-columnmenu-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-list-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-list-md .k-column-list-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-group-menu-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-group-menu-md .k-group-menu-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-column-menu-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-column-menu-lg .k-columnmenu-item{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-column-list-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-column-list-lg .k-column-list-item{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-group-menu-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-group-menu-lg .k-group-menu-item{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-group-menu .k-group-menu-item-wrap+.k-group-menu-item-wrap{border-top:1px solid}.k-group-menu-item{display:flex;-webkit-user-select:none;user-select:none;gap:var(--kendo-spacing-1, 0.25rem)}.k-group-menu-item-actions{display:flex;align-items:center;justify-content:center;margin-block:calc(var(--kendo-spacing-1, 0.25rem)*-1);pointer-events:none}.k-group-menu-item-action{display:flex;align-items:center;justify-content:center;padding:var(--kendo-spacing-1, 0.25rem);border-radius:var(--kendo-border-radius-md, 0.25rem);pointer-events:auto;cursor:pointer}.k-group-menu-item-drag-action{cursor:move}.k-group-menu-item-action:not(.k-group-menu-item-drag-action).k-hover,.k-group-menu-item-action:not(.k-group-menu-item-drag-action):hover{background-color:color-mix(in srgb, currentColor 4%, transparent)}.k-group-menu-item-action:not(.k-group-menu-item-drag-action).k-selected,.k-group-menu-item-action:not(.k-group-menu-item-drag-action):active{background-color:color-mix(in srgb, currentColor 16%, transparent)}.k-group-menu-item-action.k-group-menu-item-add-action{color:var(--kendo-color-primary, #1274AC)}.k-group-menu .k-group-menu-item-wrap+.k-group-menu-item-wrap{border-top-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-avatar{border-width:0;border-style:solid;box-sizing:border-box;vertical-align:middle;display:inline-flex;flex-flow:row nowrap;justify-content:center;align-items:center;flex-shrink:0;overflow:hidden}.k-avatar *,.k-avatar *::before,.k-avatar *::after{box-sizing:border-box}.k-avatar-text,.k-avatar-initials{font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal)}.k-avatar-icon{display:flex;flex-flow:row nowrap;align-items:center}.k-avatar-image{width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat}.k-avatar-image>img{width:100%;height:100%;object-fit:cover;vertical-align:top}.k-avatar-sm{width:var(--kendo-spacing-4, 1rem);height:var(--kendo-spacing-4, 1rem);flex-basis:var(--kendo-spacing-4, 1rem)}.k-avatar-md{width:var(--kendo-spacing-8, 2rem);height:var(--kendo-spacing-8, 2rem);flex-basis:var(--kendo-spacing-8, 2rem)}.k-avatar-lg{width:var(--kendo-spacing-16, 4rem);height:var(--kendo-spacing-16, 4rem);flex-basis:var(--kendo-spacing-16, 4rem)}.k-avatar-bordered{border-width:1px}.k-avatar-solid-primary{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-avatar-solid-secondary{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-avatar-solid-tertiary{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-avatar-solid-info{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-avatar-solid-success{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-avatar-solid-warning{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-avatar-solid-error{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-avatar-solid-dark{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-avatar-solid-light{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-avatar-solid-inverse{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-avatar-outline{border-color:currentColor}.k-avatar-outline-primary{color:var(--kendo-color-primary, #1274AC)}.k-avatar-outline-secondary{color:var(--kendo-color-secondary, #757575)}.k-avatar-outline-tertiary{color:var(--kendo-color-tertiary, #007F84)}.k-avatar-outline-info{color:var(--kendo-color-info, #0058E9)}.k-avatar-outline-success{color:var(--kendo-color-success, #278200)}.k-avatar-outline-warning{color:var(--kendo-color-warning, #F5A600)}.k-avatar-outline-error{color:var(--kendo-color-error, #D51923)}.k-avatar-outline-dark{color:var(--kendo-color-dark, #3d3d3d)}.k-avatar-outline-light{color:var(--kendo-color-light, #757575)}.k-avatar-outline-inverse{color:var(--kendo-color-dark, #3d3d3d)}.k-chip{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border-width:1px;border-style:solid;outline:0;font-family:var(--kendo-font-family, inherit);font-weight:var(--kendo-font-weight-normal, normal);font-size:var(--kendo-font-size, inherit);line-height:1;display:inline-flex;flex-flow:row nowrap;align-items:center;justify-content:center;gap:var(--kendo-spacing-1, 0.25rem);position:relative;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.k-chip *,.k-chip *::before,.k-chip *::after{box-sizing:border-box}.k-chip .k-selected-icon-wrapper{display:none !important}.k-chip-content{min-width:0;display:flex;flex-flow:row nowrap;align-items:center;flex:1 1 auto}.k-chip-content .k-icon-wrapper-host{display:initial}.k-chip-content:first-child{margin-inline-start:var(--kendo-spacing-1, 0.25rem)}.k-chip-content:last-child{margin-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-chip-text,.k-chip-label{padding-block:.5em;padding-inline:0;margin-block:-0.5em;margin-inline:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1 1 auto}.k-chip-avatar{border-radius:50%;background-size:cover;background-position:center;flex:none}.k-chip-icon{display:flex;align-items:center;justify-content:center;flex:none}.k-chip-actions{margin-block:-5em;margin-inline:0;flex:none;display:flex;flex-flow:row nowrap;align-items:center;align-self:center}.k-chip-action{flex:none;display:flex;flex-flow:row nowrap;align-items:center;align-self:center}.k-remove-icon{font-size:inherit;display:flex;align-items:center;justify-content:center;flex:none}.k-chip-list{min-width:0px;display:inline-flex;flex-wrap:wrap;align-items:center;position:relative}.k-chip-sm{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem);font-size:var(--kendo-font-size, inherit);line-height:1}.k-chip-sm .k-chip-action{padding:var(--kendo-spacing-0\.5, 0.125rem)}.k-chip-avatar{width:1em;height:1em;flex-basis:1em}.k-chip-md{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);font-size:var(--kendo-font-size, inherit);line-height:1}.k-chip-md .k-chip-action{padding:var(--kendo-spacing-1, 0.25rem)}.k-chip-avatar{width:1em;height:1em;flex-basis:1em}.k-chip-lg{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-1, 0.25rem);font-size:var(--kendo-font-size, inherit);line-height:1}.k-chip-lg .k-chip-action{padding:var(--kendo-spacing-1\.5, 0.375rem)}.k-chip-avatar{width:1em;height:1em;flex-basis:1em}.k-chip-list-sm{gap:var(--kendo-spacing-1, 0.25rem)}.k-chip-list-md{gap:var(--kendo-spacing-1, 0.25rem)}.k-chip-list-lg{gap:var(--kendo-spacing-1, 0.25rem)}.k-chip-solid-base{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base-subtle, #ebebeb)}.k-chip-solid-base:focus,.k-chip-solid-base.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-chip-solid-base:hover,.k-chip-solid-base.k-hover{background-color:var(--kendo-color-base-subtle-hover, #e1e1e1)}.k-chip-solid-base.k-selected{background-color:var(--kendo-color-base-active, #d8d8d8)}.k-chip-solid-error{border-color:var(--kendo-color-error-emphasis, #e0535a);color:var(--kendo-color-error-on-subtle, #4b090c);background-color:var(--kendo-color-error-subtle, #f7d1d3)}.k-chip-solid-error:focus,.k-chip-solid-error.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-error, #D51923) 16%, transparent)}.k-chip-solid-error:hover,.k-chip-solid-error.k-hover{background-color:var(--kendo-color-error-subtle-hover, #f0afb2)}.k-chip-solid-error.k-selected{background-color:var(--kendo-color-error-subtle-active, #ea8c91)}.k-chip-solid-info{border-color:var(--kendo-color-info-emphasis, #4082ef);color:var(--kendo-color-info-on-subtle, #001f52);background-color:var(--kendo-color-info-subtle, #ccdefb)}.k-chip-solid-info:focus,.k-chip-solid-info.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-info, #0058E9) 16%, transparent)}.k-chip-solid-info:hover,.k-chip-solid-info.k-hover{background-color:var(--kendo-color-info-subtle-hover, #a6c5f7)}.k-chip-solid-info.k-selected{background-color:var(--kendo-color-info-subtle-active, #80acf4)}.k-chip-solid-warning{border-color:var(--kendo-color-warning-emphasis, #f8bc40);color:var(--kendo-color-warning-on-subtle, #563a00);background-color:var(--kendo-color-warning-subtle, #fdedcc)}.k-chip-solid-warning:focus,.k-chip-solid-warning.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-warning, #F5A600) 16%, transparent)}.k-chip-solid-warning:hover,.k-chip-solid-warning.k-hover{background-color:var(--kendo-color-warning-subtle-hover, #fce0a6)}.k-chip-solid-warning.k-selected{background-color:var(--kendo-color-warning-subtle-active, #fad380)}.k-chip-solid-success{border-color:var(--kendo-color-success-emphasis, #5da140);color:var(--kendo-color-success-on-subtle, #0e2e00);background-color:var(--kendo-color-success-subtle, #d4e6cc)}.k-chip-solid-success:focus,.k-chip-solid-success.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-success, #278200) 16%, transparent)}.k-chip-solid-success:hover,.k-chip-solid-success.k-hover{background-color:var(--kendo-color-success-subtle-hover, #b3d3a6)}.k-chip-solid-success.k-selected{background-color:var(--kendo-color-success-subtle-active, #93c180)}.k-chip-outline-base{border-color:var(--kendo-color-base-on-surface, #424242);color:var(--kendo-color-base-on-surface, #424242);background-color:rgba(0,0,0,0)}.k-chip-outline-base:focus,.k-chip-outline-base.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-chip-outline-base:hover,.k-chip-outline-base.k-hover{color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-base-on-surface, #424242)}.k-chip-outline-base.k-selected{color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-base-on-surface, #424242)}.k-chip-outline-error{border-color:var(--kendo-color-error-on-surface, #a0131a);color:var(--kendo-color-error-on-surface, #a0131a);background-color:rgba(0,0,0,0)}.k-chip-outline-error:focus,.k-chip-outline-error.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-error, #D51923) 16%, transparent)}.k-chip-outline-error:hover,.k-chip-outline-error.k-hover{border-color:var(--kendo-color-error-hover, #cc1822);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error-hover, #cc1822)}.k-chip-outline-error.k-selected{border-color:var(--kendo-color-error-active, #bb161f);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error-active, #bb161f)}.k-chip-outline-info{border-color:var(--kendo-color-info-on-surface, #0042af);color:var(--kendo-color-info-on-surface, #0042af);background-color:rgba(0,0,0,0)}.k-chip-outline-info:focus,.k-chip-outline-info.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-info, #0058E9) 16%, transparent)}.k-chip-outline-info:hover,.k-chip-outline-info.k-hover{border-color:var(--kendo-color-info-hover, #0054e0);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info-hover, #0054e0)}.k-chip-outline-info.k-selected{border-color:var(--kendo-color-info-active, #004dcd);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info-active, #004dcd)}.k-chip-outline-warning{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-app-surface, #424242);background-color:rgba(0,0,0,0)}.k-chip-outline-warning:focus,.k-chip-outline-warning.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-warning, #F5A600) 16%, transparent)}.k-chip-outline-warning:hover,.k-chip-outline-warning.k-hover{color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-chip-outline-warning.k-selected{color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-chip-outline-success{border-color:var(--kendo-color-success-on-surface, #1d6200);color:var(--kendo-color-success-on-surface, #1d6200);background-color:rgba(0,0,0,0)}.k-chip-outline-success:focus,.k-chip-outline-success.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-success, #278200) 16%, transparent)}.k-chip-outline-success:hover,.k-chip-outline-success.k-hover{border-color:var(--kendo-color-success-hover, #257d00);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success-hover, #257d00)}.k-chip-outline-success.k-selected{border-color:var(--kendo-color-success-active, #227200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success-active, #227200)}.k-color-preview{width:100%;height:100%;border-width:1px;border-radius:var(--kendo-border-radius-md, 0.25rem);box-sizing:border-box;border-style:solid;display:inline-flex;flex-flow:row nowrap;position:relative;overflow:hidden}.k-color-preview *,.k-color-preview *::before,.k-color-preview *::after{box-sizing:border-box}.k-coloreditor-current-color{cursor:pointer}.k-icon-color-preview{border-width:0;border-radius:0;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:2px}.k-icon-color-preview .k-color-preview-mask{width:14px;height:2px}.k-color-preview-mask{width:100%;height:100%;position:relative}.k-color-preview-mask::before{content:"";width:100%;height:100%;position:absolute;top:0;left:0;z-index:-1;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC");background-size:contain;background-position:0 0}.k-no-color .k-color-preview-mask::before{content:"";background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' version='1.1'%3e%3cline x1='0' x2='20' y1='0' y2='20' stroke='var%28--kendo-color-error, %23D51923%29' stroke-width='1'/%3e%3c/svg%3e");background-size:100% 100%;background-position:0 0}.k-color-preview{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-color-preview:hover,.k-color-preview.k-hover{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-loader{position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;line-height:0}.k-loader-canvas{display:flex;position:relative}.k-loader-segment{border-radius:50%;background-color:currentColor;position:absolute}.k-loader-sm{padding:calc(var(--kendo-spacing-1, 0.25rem)/2)}.k-loader-sm .k-loader-segment{width:var(--kendo-spacing-1, 0.25rem);height:var(--kendo-spacing-1, 0.25rem)}.k-loader-md{padding:calc(var(--kendo-spacing-2, 0.5rem)/2)}.k-loader-md .k-loader-segment{width:var(--kendo-spacing-2, 0.5rem);height:var(--kendo-spacing-2, 0.5rem)}.k-loader-lg{padding:calc(var(--kendo-spacing-4, 1rem)/2)}.k-loader-lg .k-loader-segment{width:var(--kendo-spacing-4, 1rem);height:var(--kendo-spacing-4, 1rem)}@keyframes pulsing-2-segment{0%{transform:scale(1)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.k-loader-pulsing-2 .k-loader-canvas{align-items:center}.k-loader-pulsing-2 .k-loader-segment:nth-child(1){left:0;transform:scale(1.5);transform-origin:0 50%;animation:pulsing-2-segment 1s ease infinite;animation-delay:-0.5s}.k-loader-pulsing-2 .k-loader-segment:nth-child(2){right:0;transform-origin:100% 50%;animation:pulsing-2-segment 1s ease infinite}.k-loader-pulsing-2.k-loader-sm .k-loader-canvas{width:calc(var(--kendo-spacing-1, 0.25rem)*3);height:calc(var(--kendo-spacing-1, 0.25rem)*1.5)}.k-loader-pulsing-2.k-loader-md .k-loader-canvas{width:calc(var(--kendo-spacing-2, 0.5rem)*3);height:calc(var(--kendo-spacing-2, 0.5rem)*1.5)}.k-loader-pulsing-2.k-loader-lg .k-loader-canvas{width:calc(var(--kendo-spacing-4, 1rem)*3);height:calc(var(--kendo-spacing-4, 1rem)*1.5)}@keyframes spinner-3-segment{0%{top:0;left:50%}33.3333%{top:100%;left:0}66.6666%{top:100%;left:100%}100%{top:0;left:50%}}.k-loader-spinner-3 .k-loader-segment{transform:translate(-50%, -50%)}.k-loader-spinner-3 .k-loader-segment:nth-child(1){top:0;left:50%;animation:spinner-3-segment 2s ease infinite}.k-loader-spinner-3 .k-loader-segment:nth-child(2){top:100%;left:0;animation:spinner-3-segment 2s ease infinite;animation-delay:-.6666666667s}.k-loader-spinner-3 .k-loader-segment:nth-child(3){top:100%;left:100%;animation:spinner-3-segment 2s ease infinite;animation-delay:-1.3333333333s}.k-loader-spinner-3.k-loader-sm .k-loader-canvas{margin:calc(var(--kendo-spacing-1, 0.25rem)/2);width:calc(var(--kendo-spacing-1, 0.25rem)*4 - var(--kendo-spacing-1, 0.25rem));height:calc(var(--kendo-spacing-1, 0.25rem)*4*0.8660254038 - var(--kendo-spacing-1, 0.25rem))}.k-loader-spinner-3.k-loader-md .k-loader-canvas{margin:calc(var(--kendo-spacing-2, 0.5rem)/2);width:calc(var(--kendo-spacing-2, 0.5rem)*4 - var(--kendo-spacing-2, 0.5rem));height:calc(var(--kendo-spacing-2, 0.5rem)*4*0.8660254038 - var(--kendo-spacing-2, 0.5rem))}.k-loader-spinner-3.k-loader-lg .k-loader-canvas{margin:calc(var(--kendo-spacing-4, 1rem)/2);width:calc(var(--kendo-spacing-4, 1rem)*4 - var(--kendo-spacing-4, 1rem));height:calc(var(--kendo-spacing-4, 1rem)*4*0.8660254038 - var(--kendo-spacing-4, 1rem))}@keyframes spinner-4-segment-1{0%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}33.3%{top:0;left:0;transform:translateX(0) translateY(0)}66.6%{top:0;left:0;transform:translateX(0) translateY(0)}100%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}}@keyframes spinner-4-segment-2{0%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}33.3%{top:0;left:100%;transform:translateX(-100%) translateY(0)}66.6%{top:0;left:100%;transform:translateX(-100%) translateY(0)}100%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}}@keyframes spinner-4-segment-3{0%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}33.3%{top:100%;left:100%;transform:translateX(-100%) translateY(-100%)}66.6%{top:100%;left:100%;transform:translateX(-100%) translateY(-100%)}100%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}}@keyframes spinner-4-segment-4{0%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}33.3%{top:100%;left:0;transform:translateX(0) translateY(-100%)}66.6%{top:100%;left:0;transform:translateX(0) translateY(-100%)}100%{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}}@keyframes spinner-4{0%{transform:rotate(0)}33.3%{transform:rotate(0)}66.6%{transform:rotate(180deg)}100%{transform:rotate(180deg)}}.k-loader-spinner-4 .k-loader-canvas{animation:spinner-4 1.833s ease infinite}.k-loader-spinner-4 .k-loader-segment{top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.k-loader-spinner-4 .k-loader-segment:nth-child(1){animation:spinner-4-segment-1 1.833s ease infinite}.k-loader-spinner-4 .k-loader-segment:nth-child(2){animation:spinner-4-segment-2 1.833s ease infinite}.k-loader-spinner-4 .k-loader-segment:nth-child(3){animation:spinner-4-segment-3 1.833s ease infinite}.k-loader-spinner-4 .k-loader-segment:nth-child(4){animation:spinner-4-segment-4 1.833s ease infinite}.k-loader-spinner-4.k-loader-sm .k-loader-canvas{width:calc(var(--kendo-spacing-1, 0.25rem)*4);height:calc(var(--kendo-spacing-1, 0.25rem)*4)}.k-loader-spinner-4.k-loader-md .k-loader-canvas{width:calc(var(--kendo-spacing-2, 0.5rem)*4);height:calc(var(--kendo-spacing-2, 0.5rem)*4)}.k-loader-spinner-4.k-loader-lg .k-loader-canvas{width:calc(var(--kendo-spacing-4, 1rem)*4);height:calc(var(--kendo-spacing-4, 1rem)*4)}.k-loader-container{display:flex;align-items:center;justify-content:center;z-index:20001}.k-loader-container .k-loader{padding:0}.k-loader-container,.k-loader-container-overlay{width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0}.k-loader-container-overlay{opacity:.5}.k-loader-container-inner{display:flex;align-items:center;position:relative;z-index:2}.k-loader-container-panel{border-width:1px;border-style:solid;border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-loader-container-sm .k-loader-container-inner{padding:var(--kendo-spacing-4, 1rem);gap:var(--kendo-spacing-1, 0.25rem)}.k-loader-container-sm .k-loader-container-label{font-size:var(--kendo-font-size-sm, inherit)}.k-loader-container-md .k-loader-container-inner{padding:var(--kendo-spacing-5, 1.25rem);gap:var(--kendo-spacing-2, 0.5rem)}.k-loader-container-md .k-loader-container-label{font-size:var(--kendo-font-size, inherit)}.k-loader-container-lg .k-loader-container-inner{padding:var(--kendo-spacing-6, 1.5rem);gap:var(--kendo-spacing-3, 0.75rem)}.k-loader-container-lg .k-loader-container-label{font-size:var(--kendo-font-size-lg, inherit)}.k-loader-top .k-loader-container-inner{flex-direction:column;text-align:center}.k-loader-end .k-loader-container-label{order:-1}.k-loading-mask,.k-loading-image,.k-loading-color{width:100%;height:100%;box-sizing:border-box;position:absolute;top:0;left:0}.k-loading-mask *,.k-loading-mask *::before,.k-loading-mask *::after,.k-loading-mask::before,.k-loading-mask::after,.k-loading-image *,.k-loading-image *::before,.k-loading-image *::after,.k-loading-image::before,.k-loading-image::after,.k-loading-color *,.k-loading-color *::before,.k-loading-color *::after,.k-loading-color::before,.k-loading-color::after{box-sizing:border-box}.k-loading-mask{z-index:100}.k-loading-mask.k-opaque .k-loading-color{opacity:1}.k-loading-text{text-indent:-4000px;text-align:center;position:absolute;color:currentColor}.k-loading-image{z-index:2;color:currentColor}.k-loading-color{background-color:var(--kendo-color-surface-alt, #ffffff);opacity:.3}.k-i-loading{width:1em;height:1em;line-height:1;display:inline-flex;flex-flow:row nowrap;align-items:center;justify-content:center;vertical-align:middle;position:relative;background-color:rgba(0,0,0,0);box-sizing:border-box;color:currentColor}.k-i-loading::before,.k-i-loading::after{box-sizing:border-box}.k-i-loading::before,.k-i-loading::after,.k-loading-image::before,.k-loading-image::after{position:absolute;top:50%;left:50%;display:inline-block;content:"";box-sizing:inherit;border-radius:50%;border-width:.05em;border-style:solid;border-color:currentColor;border-top-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.k-icon.k-i-loading::before,.k-icon.k-i-loading::after{content:""}.k-i-loading::before,.k-loading-image::before{margin-top:-0.5em;margin-left:-0.5em;width:1em;height:1em;animation:k-loading-animation .7s linear infinite}.k-i-loading::after,.k-loading-image::after{margin-top:-0.25em;margin-left:-0.25em;width:.5em;height:.5em;animation:k-loading-animation reverse 1.4s linear infinite}.k-loading-image::before,.k-loading-image::after{content:"";border-width:1px;border-width:clamp(.015em,1px,1px);font-size:4em}@keyframes k-loading-animation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.k-loader-primary{color:var(--kendo-color-primary, #1274AC)}.k-loader-secondary{color:var(--kendo-color-secondary, #757575)}.k-loader-tertiary{color:var(--kendo-color-tertiary, #007F84)}.k-loader-info{color:var(--kendo-color-info, #0058E9)}.k-loader-success{color:var(--kendo-color-success, #278200)}.k-loader-warning{color:var(--kendo-color-warning, #F5A600)}.k-loader-error{color:var(--kendo-color-error, #D51923)}.k-loader-dark{color:var(--kendo-color-dark, #3d3d3d)}.k-loader-light{color:var(--kendo-color-light, #757575)}.k-loader-inverse{color:var(--kendo-color-dark, #3d3d3d)}.k-loader-container-panel{background-color:#fff;border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-skeleton,.k-placeholder-line{display:block}.k-skeleton-text,.k-placeholder-line{border-radius:var(--kendo-border-radius-md, 0.25rem);transform:scale(1, 0.6)}.k-skeleton-text:empty::before,.k-placeholder-line:empty::before{content:"​"}.k-skeleton-rect{border-radius:0}.k-skeleton-circle{border-radius:9999px}@keyframes k-skeleton-wave{0%{transform:translateX(-100%)}60%{transform:translateX(100%)}100%{transform:translateX(100%)}}.k-skeleton-wave .k-skeleton,.k-skeleton-wave .k-placeholder-line,.k-skeleton-wave.k-skeleton,.k-skeleton-wave.k-placeholder-line{position:relative;overflow:hidden}.k-skeleton-wave .k-skeleton::after,.k-skeleton-wave .k-placeholder-line::after,.k-skeleton-wave.k-skeleton::after,.k-skeleton-wave.k-placeholder-line::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);animation:k-skeleton-wave 1.6s linear .5s infinite}@keyframes k-skeleton-pulse{0%{opacity:1}50%{opacity:.4}100%{opacity:1}}.k-skeleton-pulse .k-skeleton,.k-skeleton-pulse .k-placeholder-line,.k-skeleton-pulse.k-skeleton,.k-skeleton-pulse.k-placeholder-line{animation:k-skeleton-pulse 1.5s ease-in-out .5s infinite}.k-skeleton,.k-placeholder-line{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 20%, transparent)}.k-skeleton-wave .k-skeleton::after,.k-skeleton-wave .k-placeholder-line::after,.k-skeleton-wave.k-skeleton::after,.k-skeleton-wave.k-placeholder-line::after{background-image:linear-gradient(to right, transparent, rgba(0, 0, 0, 0.04), transparent)}.k-tooltip{border-radius:var(--kendo-border-radius-md, 0.25rem);margin:0;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0px;border-style:solid;box-sizing:border-box;background-repeat:repeat-x;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height-sm, normal);display:flex;flex-flow:row nowrap;align-items:flex-start;position:absolute;z-index:12000;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-tooltip *,.k-tooltip *::before,.k-tooltip *::after{box-sizing:border-box}.k-tooltip-icon{margin-inline-end:var(--kendo-spacing-1, 0.25rem);flex-shrink:0}.k-tooltip-title{margin-bottom:.25em;font-size:calc(var(--kendo-font-size, 0.875rem)*1.25);line-height:var(--kendo-line-height-xs, normal)}.k-tooltip-content{align-self:stretch;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}.k-tooltip-button{margin-inline-start:var(--kendo-spacing-1, 0.25rem);flex-shrink:0}.k-tooltip-button .k-icon{color:inherit;vertical-align:top}.k-callout{width:12px;height:12px;border-width:6px;border-style:solid;border-color:rgba(0,0,0,0);position:absolute;pointer-events:none}.k-callout-n{margin-left:-6px;border-bottom-color:currentColor;top:-12px;left:50%;pointer-events:none}.k-callout-e{margin-top:-6px;border-left-color:currentColor;top:50%;right:-12px;pointer-events:none}.k-callout-s{margin-left:-6px;border-top-color:currentColor;bottom:-12px;left:50%;pointer-events:none}.k-callout-w{margin-top:-6px;border-right-color:currentColor;top:50%;left:-12px;pointer-events:none}.k-tooltip{border-color:var(--kendo-color-on-app-surface, #424242);color:var(--kendo-color-app-surface, #ffffff);background-color:var(--kendo-color-on-app-surface, #424242);box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-tooltip .k-callout{color:var(--kendo-color-on-app-surface, #424242)}.k-tooltip-inverse{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-tooltip-inverse .k-callout{color:var(--kendo-color-dark, #3d3d3d)}.k-tooltip-light{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-tooltip-light .k-callout{color:var(--kendo-color-light, #757575)}.k-tooltip-dark{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-tooltip-dark .k-callout{color:var(--kendo-color-dark, #3d3d3d)}.k-tooltip-error{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-tooltip-error .k-callout{color:var(--kendo-color-error, #D51923)}.k-tooltip-warning{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-tooltip-warning .k-callout{color:var(--kendo-color-warning, #F5A600)}.k-tooltip-success{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-tooltip-success .k-callout{color:var(--kendo-color-success, #278200)}.k-tooltip-info{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-tooltip-info .k-callout{color:var(--kendo-color-info, #0058E9)}.k-tooltip-tertiary{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-tooltip-tertiary .k-callout{color:var(--kendo-color-tertiary, #007F84)}.k-tooltip-secondary{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-tooltip-secondary .k-callout{color:var(--kendo-color-secondary, #757575)}.k-tooltip-primary{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-tooltip-primary .k-callout{color:var(--kendo-color-primary, #1274AC)}.k-current-time{width:1px;position:absolute}.k-current-time.k-current-time-arrow-left,.k-current-time.k-current-time-arrow-right,.k-current-time.k-current-time-arrow-down{width:0;height:0;background:rgba(0,0,0,0);border:4px solid rgba(0,0,0,0)}.k-current-time{background:red}.k-current-time.k-current-time-arrow-left{border-right-color:red}.k-current-time.k-current-time-arrow-right{border-left-color:red}.k-current-time.k-current-time-arrow-down{border-top-color:red}.k-marquee{position:absolute;z-index:100000}.k-marquee-color,.k-marquee-text{position:absolute;top:0;left:0;width:100%;height:100%}.k-marquee-color{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC);border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));opacity:.6}.k-marquee-text{color:var(--kendo-color-on-primary, white)}.k-text-selection ::selection{background-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white)}.k-menu-bar,.k-menu{border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-wrap:nowrap;align-items:stretch;position:relative;cursor:default;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-menu-bar *,.k-menu *,.k-menu-bar *::before,.k-menu *::before,.k-menu-bar *::after,.k-menu *::after{box-sizing:border-box}.k-menu-item{border-width:0;outline:0;display:flex;flex-flow:column nowrap;flex:none;position:relative;-webkit-user-select:none;user-select:none}.k-menu-item.k-selected{font-weight:var(--kendo-font-weight-bold, normal)}.k-menu-item-content{display:block;height:auto;overflow:visible}.k-menu-item-content .k-actions,.k-menu-item-content .k-form-buttons,.k-menu-item-content .k-edit-buttons,.k-menu-item-content .k-action-buttons,.k-menu-item-content .k-columnmenu-actions{margin-top:0}.k-menu-link{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-3, 0.75rem);outline:0;color:inherit;display:flex;flex-flow:row nowrap;flex:1 1 auto;gap:var(--kendo-spacing-1, 0.25rem);align-items:center;position:relative;white-space:nowrap;cursor:pointer}.k-menu-link-text{display:flex;flex-flow:row nowrap;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}.k-menu-expand-arrow{margin-inline-end:calc(var(--kendo-spacing-1, 0.25rem)*-1);display:inline-flex;flex-flow:row wrap;align-items:center;flex:none;position:relative}.k-menu-horizontal{flex-direction:row}.k-menu-horizontal>.k-menu-item+.k-menu-item{margin-inline-start:var(--kendo-spacing-0, 0px)}.k-menu-horizontal>.k-separator{margin-block:var(--kendo-spacing-1\.5, 0.375rem);margin-inline:var(--kendo-spacing-1, 0.25rem);width:0;height:auto;border-width:0 0 0 1px;border-style:solid}.k-menu-vertical{flex-direction:column;width:100%}.k-menu-vertical>.k-menu-item+.k-menu-item{margin-top:var(--kendo-spacing-0, 0px)}.k-menu-vertical>.k-menu-item>.k-menu-link{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);padding-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2 + 16px)}.k-menu-vertical>.k-menu-item>.k-menu-link>.k-menu-expand-arrow{margin-inline-start:var(--kendo-spacing-2, 0.5rem);margin-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2*-1 + -16px - var(--kendo-spacing-2, 0.5rem)/2*-1)}.k-menu-vertical>.k-separator{margin-block:var(--kendo-spacing-1\.5, 0.375rem);margin-inline:0;height:0;border-width:1px 0 0;border-style:solid;display:block}.k-menu-popup{box-sizing:border-box;border-width:1px;border-style:solid;overflow:auto;max-height:80vh}.k-menu-popup *,.k-menu-popup *::before,.k-menu-popup *::after{box-sizing:border-box}.k-menu-popup .k-menu-item{font-weight:initial}.k-menu-group{margin:0;padding:0;list-style:none;display:flex;flex-flow:column nowrap;position:absolute}.k-menu-group .k-menu-item+.k-menu-item{margin-top:var(--kendo-spacing-0, 0px)}.k-menu-group .k-separator{margin-block:var(--kendo-spacing-1, 0.25rem);margin-inline:0;height:0;border-width:1px 0 0;border-style:solid;display:block}.k-menu-popup .k-menu-group{position:relative}.k-menu-group-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-menu-group-sm .k-menu-item{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-menu-group-sm .k-menu-link{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem);padding-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2 + 16px)}.k-menu-group-sm .k-menu-expand-arrow{margin-inline-start:var(--kendo-spacing-2, 0.5rem);margin-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2*-1 + -16px - var(--kendo-spacing-2, 0.5rem)/2*-1)}.k-menu-group-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-menu-group-md .k-menu-item{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-menu-group-md .k-menu-link{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);padding-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2 + 16px)}.k-menu-group-md .k-menu-expand-arrow{margin-inline-start:var(--kendo-spacing-2, 0.5rem);margin-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2*-1 + -16px - var(--kendo-spacing-2, 0.5rem)/2*-1)}.k-menu-group-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-menu-group-lg .k-menu-item{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-menu-group-lg .k-menu-link{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem);padding-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2 + 16px)}.k-menu-group-lg .k-menu-expand-arrow{margin-inline-start:var(--kendo-spacing-2, 0.5rem);margin-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*2*-1 + -16px - var(--kendo-spacing-2, 0.5rem)/2*-1)}.k-popups-wrapper{position:relative;border:0;margin:0;padding:0}.k-context-menu{margin:0;border-width:1px;border-style:solid}.k-animation-container .k-context-menu.k-menu-horizontal{display:flex !important;flex-wrap:nowrap}.k-context-menu-popup{z-index:12000}.k-context-menu-popup .k-context-menu{border-width:0}.k-popup .k-context-menu,.k-context-menu-popup .k-context-menu{border-width:0}.k-menu-scroll-wrapper{margin:0;padding:0;border:0;position:relative;display:flex;align-items:center}.k-menu-scroll-wrapper .k-menu{overflow:hidden;flex-wrap:nowrap}.k-menu-scroll-wrapper-vertical{flex-direction:column}.k-menu-scroll-wrapper-vertical>.k-menu-scroll-button{width:100%}.k-menu:not(.k-context-menu){color:var(--kendo-color-on-app-surface, #424242);background-color:rgba(0,0,0,0)}.k-menu:not(.k-context-menu)>.k-item{color:var(--kendo-color-subtle, #666666)}.k-menu:not(.k-context-menu)>.k-item:hover,.k-menu:not(.k-context-menu)>.k-item.k-hover{color:var(--kendo-color-on-app-surface, #424242)}.k-menu:not(.k-context-menu)>.k-item:active,.k-menu:not(.k-context-menu)>.k-item.k-active{color:var(--kendo-color-primary, #1274AC)}.k-menu:not(.k-context-menu)>.k-item:focus,.k-menu:not(.k-context-menu)>.k-item.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-menu:not(.k-context-menu)>.k-item.k-selected{color:var(--kendo-color-primary, #1274AC)}.k-menu:not(.k-context-menu)>.k-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-menu-group,.k-menu.k-context-menu{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-menu-group .k-item>.k-link:hover,.k-menu-group .k-item>.k-link.k-hover,.k-menu.k-context-menu .k-item>.k-link:hover,.k-menu.k-context-menu .k-item>.k-link.k-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-menu-group .k-item>.k-link:active,.k-menu-group .k-item>.k-link.k-active,.k-menu-group .k-item>.k-link.k-selected,.k-menu.k-context-menu .k-item>.k-link:active,.k-menu.k-context-menu .k-item>.k-link.k-active,.k-menu.k-context-menu .k-item>.k-link.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-menu-group .k-item:focus>.k-link,.k-menu-group .k-item.k-focus>.k-link,.k-menu.k-context-menu .k-item:focus>.k-link,.k-menu.k-context-menu .k-item.k-focus>.k-link{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-menu-group>.k-separator,.k-menu.k-context-menu>.k-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-menu-scroll-wrapper .k-menu-scroll-button{color:var(--kendo-color-subtle, #666666)}.k-menu-scroll-wrapper .k-menu-scroll-button:hover{color:var(--kendo-color-on-app-surface, #424242)}.k-menu-scroll-wrapper .k-menu-scroll-button:hover::before{opacity:0}.k-toolbar{margin:0;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);list-style:none;display:flex;flex-flow:row wrap;gap:var(--kendo-spacing-2, 0.5rem);align-items:center;justify-content:flex-start;position:relative;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-toolbar::before{content:"";height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-toolbar.k-toolbar-resizable{flex-wrap:nowrap}.k-toolbar.k-toolbar-scrollable{flex-wrap:nowrap;position:relative}.k-toolbar.k-toolbar-scrollable-overlay::before,.k-toolbar.k-toolbar-scrollable-overlay::after{content:"";height:100%;aspect-ratio:1;position:absolute;z-index:3}.k-toolbar.k-toolbar-scrollable-overlay::before{inset-inline-start:0}.k-toolbar.k-toolbar-scrollable-overlay::after{inset-inline-end:0}.k-toolbar.k-toolbar-scrollable-overlay.k-toolbar-scrollable-start::before,.k-toolbar.k-toolbar-scrollable-overlay.k-toolbar-scrollable-end::after{display:none}.k-toolbar>*{flex-shrink:0;display:inline-flex;align-content:center;vertical-align:middle}.k-toolbar>*>label{margin-inline-end:var(--kendo-spacing-2, 0.5rem);align-self:center}.k-toolbar .k-input,.k-toolbar .k-picker{width:10em}.k-toolbar .k-color-picker,.k-toolbar .k-colorpicker{width:min-content}.k-toolbar .k-toolbar-overflow-button{margin-inline-start:auto}.k-toolbar .k-toolbar-button-separator{height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px);margin-inline-start:auto}.k-toolbar .k-toolbar-button-separator+.k-toolbar-overflow-button{margin-inline-start:0}.k-toolbar .k-toolbar-spacer{height:1.4285714286em;flex:1 0 0%}.k-toolbar .k-toolbar-item:focus,.k-toolbar .k-toolbar-item.k-focus{text-decoration:none;outline:0}.k-toolbar .k-separator,.k-toolbar-separator{width:0;height:1.4285714286em;border-width:0 0 0 1px;border-style:solid;align-self:center}.k-toolbar-items{display:flex;flex-flow:row nowrap;gap:var(--kendo-spacing-2, 0.5rem);align-items:center;justify-content:flex-start;flex:1 1 auto;overflow:hidden}.k-toolbar-items-scroll{overflow-x:auto;scrollbar-width:none}.k-toolbar-items-scroll::-webkit-scrollbar{display:none}.k-toolbar-items-scroll:has(.k-badge-container){padding-block-start:.5em;margin-block-start:-0.5em}.k-toolbar-items-list{display:flex;flex-flow:row wrap;gap:var(--kendo-spacing-2, 0.5rem);align-items:center;justify-content:flex-start;flex:1 1 auto;overflow:hidden}.k-toolbar-outline{border-width:1px;background:none}.k-toolbar-flat{border-top-color:rgba(0,0,0,0) !important;border-inline-color:rgba(0,0,0,0) !important;background:none !important}.k-toolbar-group{display:flex;flex-direction:inherit;flex-wrap:nowrap;gap:inherit}.k-toolbar-sm{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);gap:var(--kendo-spacing-1\.5, 0.375rem)}.k-toolbar-sm::before{margin-inline-start:calc(var(--kendo-spacing-1\.5, 0.375rem)*-1)}.k-toolbar-sm.k-toolbar-scrollable-overlay::before{inset-inline-start:var(--kendo-spacing-1\.5, 0.375rem)}.k-toolbar-sm>*>label{margin-inline-end:var(--kendo-spacing-1\.5, 0.375rem)}.k-toolbar-sm .k-toolbar-items{gap:var(--kendo-spacing-1\.5, 0.375rem)}.k-toolbar-sm .k-toolbar-button-separator{height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px)}.k-toolbar-items-list-sm{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);gap:var(--kendo-spacing-1\.5, 0.375rem)}.k-toolbar-md{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);gap:var(--kendo-spacing-2, 0.5rem)}.k-toolbar-md::before{margin-inline-start:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-toolbar-md.k-toolbar-scrollable-overlay::before{inset-inline-start:var(--kendo-spacing-2, 0.5rem)}.k-toolbar-md>*>label{margin-inline-end:var(--kendo-spacing-2, 0.5rem)}.k-toolbar-md .k-toolbar-items{gap:var(--kendo-spacing-2, 0.5rem)}.k-toolbar-md .k-toolbar-button-separator{height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-toolbar-items-list-md{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);gap:var(--kendo-spacing-2, 0.5rem)}.k-toolbar-lg{padding-block:var(--kendo-spacing-2\.5, 0.625rem);padding-inline:var(--kendo-spacing-2\.5, 0.625rem);gap:var(--kendo-spacing-2\.5, 0.625rem)}.k-toolbar-lg::before{margin-inline-start:calc(var(--kendo-spacing-2\.5, 0.625rem)*-1)}.k-toolbar-lg.k-toolbar-scrollable-overlay::before{inset-inline-start:var(--kendo-spacing-2\.5, 0.625rem)}.k-toolbar-lg>*>label{margin-inline-end:var(--kendo-spacing-2\.5, 0.625rem)}.k-toolbar-lg .k-toolbar-items{gap:var(--kendo-spacing-2\.5, 0.625rem)}.k-toolbar-lg .k-toolbar-button-separator{height:calc(var(--kendo-line-height-lg, normal)*1em + var(--kendo-spacing-2, 0.5rem)*2 + 2px)}.k-toolbar-items-list-lg{padding-block:var(--kendo-spacing-2\.5, 0.625rem);padding-inline:var(--kendo-spacing-2\.5, 0.625rem);gap:var(--kendo-spacing-2\.5, 0.625rem)}.k-toolbar-sm::before{height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px)}.k-toolbar-md::before{height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-toolbar-lg::before{height:calc(var(--kendo-line-height-lg, normal)*1em + var(--kendo-spacing-2, 0.5rem)*2 + 2px)}.k-floating-toolbar,.editorToolbarWindow.k-window-content{padding-block:var(--kendo-spacing-2, 0.5rem) !important;padding-inline:var(--kendo-spacing-2, 0.5rem) !important;border-width:1px;border-style:solid;display:flex;flex-flow:row nowrap;gap:var(--kendo-spacing-2, 0.5rem);align-items:center}.k-floating-toolbar .k-toolbar,.editorToolbarWindow.k-window-content .k-toolbar{padding:0;border-width:0;flex-shrink:1;color:inherit;background:none}.k-editortoolbar-dragHandle{cursor:move;display:flex;align-items:center;align-self:stretch;flex-shrink:0}.k-overflow-container{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-overflow-container>.k-item{border-color:inherit}.k-overflow-container .k-separator{margin:var(--kendo-spacing-1, 0.25rem) 0}.k-overflow-container .k-overflow-tool-group{display:block}.k-overflow-container .k-overflow-button{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);width:100%;height:auto;border-width:0;border-radius:0;aspect-ratio:auto;color:inherit;background-color:rgba(0,0,0,0);background-image:none;font:inherit;cursor:pointer;display:flex;flex-flow:row nowrap;align-items:center;align-content:center;gap:var(--kendo-spacing-1, 0.25rem);justify-content:flex-start;position:relative}.k-overflow-container .k-button-group{box-shadow:none;display:flex;flex-flow:column nowrap}.k-overflow-container .k-button-group .k-button{margin:0}.k-overflow-container .k-split-button{display:flex;flex-direction:column}.k-overflow-container .k-overflow-hidden{display:none}.k-toolbar .k-toolbar-item:focus,.k-toolbar .k-toolbar-item.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-toolbar-items{border-color:inherit}.k-toolbar .k-separator,.k-toolbar-separator{border-color:inherit}.k-toolbar-solid{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-toolbar-solid.k-toolbar-scrollable-overlay::before{background:linear-gradient(90deg, var(--kendo-color-surface, #fafafa), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-toolbar-solid.k-toolbar-scrollable-overlay::after{background:linear-gradient(270deg, var(--kendo-color-surface, #fafafa), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-toolbar-items-list-solid{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-toolbar-outline{border-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 50%, transparent);color:var(--kendo-color-on-base, #424242)}.k-toolbar-outline.k-toolbar-scrollable-overlay::before{background:linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-toolbar-outline.k-toolbar-scrollable-overlay::after{background:linear-gradient(270deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-toolbar-items-list-outline{border-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 50%, transparent)}.k-toolbar-flat{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-toolbar-flat>.k-separator,.k-toolbar-flat .k-toolbar-separator{border-inline-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-toolbar-flat.k-toolbar-scrollable-overlay::before{background:linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-toolbar-flat.k-toolbar-scrollable-overlay::after{background:linear-gradient(270deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-toolbar-items-list-flat{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-floating-toolbar,.editorToolbarWindow.k-window-content{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-overflow-container .k-button:hover,.k-overflow-container .k-button.k-hover{color:var(--kendo-color-on-app-surface, #424242);background:var(--kendo-color-base-hover, #ebebeb)}.k-overflow-container .k-button:focus,.k-overflow-container .k-button.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-overflow-container .k-button:active,.k-overflow-container .k-button.k-active{color:var(--kendo-color-on-app-surface, #424242);background:var(--kendo-color-base-hover, #ebebeb)}.k-overflow-container .k-button.k-selected{color:var(--kendo-color-on-primary, white);background:var(--kendo-color-primary, #1274AC)}.k-overflow-container .k-button:disabled,.k-overflow-container .k-button.k-disabled{color:inherit}:is(.k-rtl .k-toolbar-scrollable-overlay,[dir=rtl] .k-toolbar-scrollable-overlay,.k-toolbar-scrollable-overlay.k-rtl,.k-toolbar-scrollable-overlay[dir=rtl])::before{background:linear-gradient(270deg, var(--kendo-color-surface, #fafafa), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-toolbar-scrollable-overlay,[dir=rtl] .k-toolbar-scrollable-overlay,.k-toolbar-scrollable-overlay.k-rtl,.k-toolbar-scrollable-overlay[dir=rtl])::after{background:linear-gradient(90deg, var(--kendo-color-surface, #fafafa), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-toolbar-scrollable-overlay,[dir=rtl] .k-toolbar-scrollable-overlay,.k-toolbar-scrollable-overlay.k-rtl,.k-toolbar-scrollable-overlay[dir=rtl]).k-toolbar-outline::before{background:linear-gradient(270deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-toolbar-scrollable-overlay,[dir=rtl] .k-toolbar-scrollable-overlay,.k-toolbar-scrollable-overlay.k-rtl,.k-toolbar-scrollable-overlay[dir=rtl]).k-toolbar-outline::after{background:linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-toolbar-scrollable-overlay,[dir=rtl] .k-toolbar-scrollable-overlay,.k-toolbar-scrollable-overlay.k-rtl,.k-toolbar-scrollable-overlay[dir=rtl]).k-toolbar-flat::before{background:linear-gradient(270deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-toolbar-scrollable-overlay,[dir=rtl] .k-toolbar-scrollable-overlay,.k-toolbar-scrollable-overlay.k-rtl,.k-toolbar-scrollable-overlay[dir=rtl]).k-toolbar-flat::after{background:linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-overflow-auto{overflow:auto}.\!k-overflow-auto{overflow:auto !important}.k-overflow-hidden{overflow:hidden}.\!k-overflow-hidden{overflow:hidden !important}.k-overflow-visible{overflow:visible}.\!k-overflow-visible{overflow:visible !important}.k-overflow-scroll{overflow:scroll}.\!k-overflow-scroll{overflow:scroll !important}.k-overflow-clip{overflow:clip}.\!k-overflow-clip{overflow:clip !important}.k-overflow-x-auto{overflow-x:auto}.\!k-overflow-x-auto{overflow-x:auto !important}.k-overflow-x-hidden{overflow-x:hidden}.\!k-overflow-x-hidden{overflow-x:hidden !important}.k-overflow-x-visible{overflow-x:visible}.\!k-overflow-x-visible{overflow-x:visible !important}.k-overflow-x-scroll{overflow-x:scroll}.\!k-overflow-x-scroll{overflow-x:scroll !important}.k-overflow-x-clip{overflow-x:clip}.\!k-overflow-x-clip{overflow-x:clip !important}.k-overflow-y-auto{overflow-y:auto}.\!k-overflow-y-auto{overflow-y:auto !important}.k-overflow-y-hidden{overflow-y:hidden}.\!k-overflow-y-hidden{overflow-y:hidden !important}.k-overflow-y-visible{overflow-y:visible}.\!k-overflow-y-visible{overflow-y:visible !important}.k-overflow-y-scroll{overflow-y:scroll}.\!k-overflow-y-scroll{overflow-y:scroll !important}.k-overflow-y-clip{overflow-y:clip}.\!k-overflow-y-clip{overflow-y:clip !important}.k-form,.k-form-inline{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-fieldset{margin:var(--kendo-spacing-7\.5, 1.875rem);border-width:1px 0 0;border-style:solid;padding:25px 0 0}.k-fieldset>legend{margin-left:0;padding:0 var(--kendo-spacing-2, 0.5rem) 0 0;text-transform:uppercase}kendo-label>.k-label{margin:0}.k-label-optional{margin-left:var(--kendo-spacing-1\.5, 0.375rem);font-size:var(--kendo-font-size-sm, inherit);font-style:italic;align-self:center}.k-label-empty::before{content:"";display:inline-block}.k-form{border:0}.k-form .k-form-field>.k-label,.k-form .k-form-field>kendo-label,.k-form .k-form-label{margin-bottom:var(--kendo-spacing-0, 0px);display:flex;flex-flow:row nowrap}.k-form .k-label+.k-radio{margin-left:0}.k-form .k-form-fieldset{margin:2em 0 0;padding:var(--kendo-spacing-0, 0px);border:0}.k-form .k-form-fieldset>*:not(.k-hidden):first-child,.k-form .k-form-fieldset>*.k-hidden+:not(.k-hidden){margin-top:0}.k-form .k-form-legend{margin:0 0 1em;padding:var(--kendo-spacing-0, 0px);border-width:0 0 2px;border-style:solid;width:100%;font-size:var(--kendo-font-size, inherit);text-transform:uppercase}.k-form .k-form-group{padding:0}.k-form>*:not(.k-hidden):first-child,.k-form>*.k-hidden+:not(.k-hidden){margin-top:0}.k-form .k-form-field,.k-form .k-form-field-wrap{display:block}.k-form .k-form-field-disabled .k-label,.k-form .k-form-field-disabled .k-form-label{outline:none;cursor:default;color:var(--kendo-disabled-text, unset);background-color:var(--kendo-disabled-bg, unset);border-color:var(--kendo-disabled-border, unset);opacity:var(--kendo-disabled-opacity, unset);filter:var(--kendo-disabled-filter, unset);pointer-events:none;box-shadow:none}.k-form .k-alert-error{font-size:var(--kendo-font-size-sm, inherit);margin-top:calc(var(--kendo-spacing-1, 0.25rem)*2)}.k-form .k-field-info{display:inline-block;font-size:var(--kendo-font-size-xs, inherit);line-height:1;margin-block:0;margin-inline:var(--kendo-spacing-2, 0.5rem)}.k-form .k-multiselect,.k-form .k-floating-label-container,.k-form .k-daterangepicker .k-dateinput,.k-form .k-signature{display:inline-flex;width:100%}.k-form-buttons{padding:0;overflow:visible}.k-form-hint,.k-form-error{margin-top:var(--kendo-spacing-1, 0.25rem);display:flex;font-size:var(--kendo-font-size-sm, inherit);font-style:italic}.k-text-start,.k-buttons-start{justify-content:flex-start}.k-text-end,.k-buttons-end{justify-content:flex-end}.k-form-separator{margin:var(--kendo-spacing-3\.5, 0.875rem) 0 0;border-width:1px 0 0;border-style:solid;display:block;flex:0 0 auto}.k-form-horizontal .k-form-field{display:flex}.k-form-horizontal .k-form-field>.k-label,.k-form-horizontal .k-form-field>kendo-label,.k-form-horizontal .k-form-field>.k-form-label{margin-right:var(--kendo-spacing-2\.5, 0.625rem);padding-top:calc(var(--kendo-spacing-2\.5, 0.625rem)/2);width:25%;text-align:end;flex-direction:column;align-items:flex-end;justify-content:flex-start}.k-form-horizontal .k-form-field .k-label-optional{margin:0;align-self:inherit}.k-form-horizontal .k-form-field-wrap{max-width:calc(75% - var(--kendo-spacing-2\.5, 0.625rem));flex:1 1 auto}.k-form [dir=rtl] .k-label-optional,.k-rtl .k-form .k-label-optional{margin-left:0;margin-right:var(--kendo-spacing-1\.5, 0.375rem)}.k-form-horizontal [dir=rtl].k-form-field>.k-label,.k-form-horizontal [dir=rtl].k-form-field>kendo-label,.k-form-horizontal [dir=rtl].k-form-field>.k-form-label,.k-form-horizontal [dir=rtl] .k-form-field>.k-label,.k-form-horizontal [dir=rtl] .k-form-field>kendo-label,.k-form-horizontal [dir=rtl] .k-form-field>.k-form-label,.k-rtl .k-form-horizontal.k-form-field>.k-label,.k-rtl .k-form-horizontal.k-form-field>kendo-label,.k-rtl .k-form-horizontal.k-form-field>.k-form-label,.k-rtl .k-form-horizontal .k-form-field>.k-label,.k-rtl .k-form-horizontal .k-form-field>kendo-label,.k-rtl .k-form-horizontal .k-form-field>.k-form-label{margin-right:0;margin-left:var(--kendo-spacing-2\.5, 0.625rem)}.k-form-sm .k-form-field,.k-form-sm .k-form-buttons{margin-top:var(--kendo-spacing-2\.5, 0.625rem)}.k-form-md .k-form-field,.k-form-md .k-form-buttons{margin-top:var(--kendo-spacing-3\.5, 0.875rem)}.k-form-lg .k-form-field,.k-form-lg .k-form-buttons{margin-top:var(--kendo-spacing-4\.5, 1.125rem)}.k-form-inline{padding:calc(var(--kendo-spacing-2, 0.5rem)*2)}.k-form-inline fieldset{border-width:1px 0 0;border-style:solid;margin:calc(var(--kendo-spacing-2, 0.5rem)*2*2) 0;padding:0}.k-form-inline fieldset:first-child:first-of-type{margin-top:0}.k-form-inline fieldset:last-child:last-of-type{margin-bottom:0}.k-form-inline legend{font-size:var(--kendo-font-size-sm, inherit);text-align:start;font-weight:600;line-height:1;margin-bottom:calc(var(--kendo-spacing-1\.5, 0.375rem)*2);text-transform:uppercase;padding:0 var(--kendo-spacing-2, 0.5rem) 0 0;width:auto}.k-form-inline .k-form-field{display:flex;align-items:flex-start;text-align:start;margin-bottom:calc(var(--kendo-spacing-1\.5, 0.375rem)*2)}.k-form-inline .k-form-field>span:not(.k-widget){width:25%;text-align:end;line-height:var(--kendo-line-height, normal);padding-block:calc(var(--kendo-spacing-1, 0.25rem) + 1px);padding-inline:0 var(--kendo-spacing-3, 0.75rem);align-self:center}.k-form-inline .k-form-field>input{align-self:center}.k-form-inline .k-form-field>input:not(.k-checkbox):not(.k-radio){flex:1 1 auto}.k-form-inline .k-form-field .k-alert-error{font-size:var(--kendo-font-size-sm, inherit);margin-top:calc(var(--kendo-spacing-1, 0.25rem)*2)}.k-form-inline .k-form-field .k-field-info{display:block;font-size:var(--kendo-font-size-xs, inherit);line-height:1;margin:0}.k-form-inline .k-form-field:last-child{margin-bottom:0}.k-edit-form-container{width:400px;min-width:400px;border-color:inherit;position:relative}.k-popup-edit-form>.k-actions,.k-popup-edit-form>.k-edit-buttons,.k-popup-edit-form>.k-action-buttons,.k-popup-edit-form>.k-columnmenu-actions,.k-popup-edit-form>.k-form-buttons,.k-edit-form-container .k-actions,.k-edit-form-container .k-edit-buttons,.k-edit-form-container .k-action-buttons,.k-edit-form-container .k-columnmenu-actions,.k-edit-form-container .k-form-buttons{margin:var(--kendo-spacing-4, 1rem) calc(var(--kendo-spacing-4, 1rem)*-1) calc(var(--kendo-spacing-4, 1rem)*-1)}.k-edit-label{margin:0 0 var(--kendo-spacing-4, 1rem);padding:calc(var(--kendo-spacing-1, 0.25rem) + 1px) 0;width:30%;line-height:var(--kendo-line-height, normal);text-align:end;float:left;clear:both}.k-edit-field{margin:0 0 var(--kendo-spacing-4, 1rem);width:65%;float:right;clear:right;position:relative}.k-edit-field.k-no-editor{padding:calc(var(--kendo-spacing-1, 0.25rem) + 1px) 0}.k-edit-field>.k-widget{width:100%;box-sizing:border-box}.k-edit-field input[type=radio]:not(.k-radio),.k-edit-field input[type=checkbox]:not(.k-checkbox){margin-right:.4ex}.k-edit-field .k-radio-label,.k-edit-field .k-checkbox-label{margin-right:var(--kendo-spacing-4, 1rem)}.k-edit-field>.k-reset>li+li{margin-top:var(--kendo-spacing-2, 0.5rem)}.k-edit-field .k-reset .k-widget{margin:0 .4ex 0 1ex}.k-form,.k-form-inline{color:var(--kendo-color-on-app-surface, #424242)}.k-form fieldset legend,.k-form-inline fieldset legend{color:var(--kendo-color-on-app-surface, #424242)}.k-form .k-form-legend,.k-form-inline .k-form-legend{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-form .k-field-info,.k-form-inline .k-field-info{color:var(--kendo-color-subtle, #666666)}.k-form .k-alert-error,.k-form-inline .k-alert-error{color:var(--kendo-color-error, #D51923)}.k-form-error,.k-text-error,.k-form-field-error .k-label{color:var(--kendo-color-error, #D51923)}.k-form-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-d-none{display:none}.\!k-d-none{display:none !important}.k-d-contents{display:contents}.\!k-d-contents{display:contents !important}.k-d-block{display:block}.\!k-d-block{display:block !important}.k-d-inline{display:inline}.\!k-d-inline{display:inline !important}.k-d-inline-block{display:inline-block}.\!k-d-inline-block{display:inline-block !important}.k-d-flex,.k-d-flex-col,.k-d-flex-row{display:flex}.\!k-d-flex,.\!k-d-flex-col,.\!k-d-flex-row{display:flex !important}.k-d-inline-flex{display:inline-flex}.\!k-d-inline-flex{display:inline-flex !important}.k-d-grid{display:grid}.\!k-d-grid{display:grid !important}.k-d-inline-grid{display:inline-grid}.\!k-d-inline-grid{display:inline-grid !important}.k-d-table{display:table}.\!k-d-table{display:table !important}.k-d-inline-table{display:inline-table}.\!k-d-inline-table{display:inline-table !important}.k-d-table-row{display:table-row}.\!k-d-table-row{display:table-row !important}.k-d-table-cell{display:table-cell}.\!k-d-table-cell{display:table-cell !important}.k-d-list-item{display:list-item}.\!k-d-list-item{display:list-item !important}.k-display-none{display:none}.\!k-display-none{display:none !important}.k-display-contents{display:contents}.\!k-display-contents{display:contents !important}.k-display-block{display:block}.\!k-display-block{display:block !important}.k-display-inline{display:inline}.\!k-display-inline{display:inline !important}.k-display-inline-block{display:inline-block}.\!k-display-inline-block{display:inline-block !important}.k-display-flex{display:flex}.\!k-display-flex{display:flex !important}.k-display-inline-flex{display:inline-flex}.\!k-display-inline-flex{display:inline-flex !important}.k-display-grid{display:grid}.\!k-display-grid{display:grid !important}.k-display-inline-grid{display:inline-grid}.\!k-display-inline-grid{display:inline-grid !important}.k-display-table{display:table}.\!k-display-table{display:table !important}.k-display-inline-table{display:inline-table}.\!k-display-inline-table{display:inline-table !important}.k-display-table-row{display:table-row}.\!k-display-table-row{display:table-row !important}.k-display-table-cell{display:table-cell}.\!k-display-table-cell{display:table-cell !important}.k-display-list-item{display:list-item}.\!k-display-list-item{display:list-item !important}.k-gap-0{gap:var(--kendo-spacing-0, 0px)}.\!k-gap-0{gap:var(--kendo-spacing-0, 0px) !important}.k-gap-1px{gap:var(--kendo-spacing-1px, 1px)}.\!k-gap-1px{gap:var(--kendo-spacing-1px, 1px) !important}.k-gap-0\.5{gap:var(--kendo-spacing-0\.5, 0.125rem)}.\!k-gap-0\.5{gap:var(--kendo-spacing-0\.5, 0.125rem) !important}.k-gap-1{gap:var(--kendo-spacing-1, 0.25rem)}.\!k-gap-1{gap:var(--kendo-spacing-1, 0.25rem) !important}.k-gap-1\.5{gap:var(--kendo-spacing-1\.5, 0.375rem)}.\!k-gap-1\.5{gap:var(--kendo-spacing-1\.5, 0.375rem) !important}.k-gap-2{gap:var(--kendo-spacing-2, 0.5rem)}.\!k-gap-2{gap:var(--kendo-spacing-2, 0.5rem) !important}.k-gap-2\.5{gap:var(--kendo-spacing-2\.5, 0.625rem)}.\!k-gap-2\.5{gap:var(--kendo-spacing-2\.5, 0.625rem) !important}.k-gap-3{gap:var(--kendo-spacing-3, 0.75rem)}.\!k-gap-3{gap:var(--kendo-spacing-3, 0.75rem) !important}.k-gap-3\.5{gap:var(--kendo-spacing-3\.5, 0.875rem)}.\!k-gap-3\.5{gap:var(--kendo-spacing-3\.5, 0.875rem) !important}.k-gap-4{gap:var(--kendo-spacing-4, 1rem)}.\!k-gap-4{gap:var(--kendo-spacing-4, 1rem) !important}.k-gap-4\.5{gap:var(--kendo-spacing-4\.5, 1.125rem)}.\!k-gap-4\.5{gap:var(--kendo-spacing-4\.5, 1.125rem) !important}.k-gap-5{gap:var(--kendo-spacing-5, 1.25rem)}.\!k-gap-5{gap:var(--kendo-spacing-5, 1.25rem) !important}.k-gap-5\.5{gap:var(--kendo-spacing-5\.5, 1.375rem)}.\!k-gap-5\.5{gap:var(--kendo-spacing-5\.5, 1.375rem) !important}.k-gap-6{gap:var(--kendo-spacing-6, 1.5rem)}.\!k-gap-6{gap:var(--kendo-spacing-6, 1.5rem) !important}.k-gap-6\.5{gap:var(--kendo-spacing-6\.5, 1.625rem)}.\!k-gap-6\.5{gap:var(--kendo-spacing-6\.5, 1.625rem) !important}.k-gap-7{gap:var(--kendo-spacing-7, 1.75rem)}.\!k-gap-7{gap:var(--kendo-spacing-7, 1.75rem) !important}.k-gap-7\.5{gap:var(--kendo-spacing-7\.5, 1.875rem)}.\!k-gap-7\.5{gap:var(--kendo-spacing-7\.5, 1.875rem) !important}.k-gap-8{gap:var(--kendo-spacing-8, 2rem)}.\!k-gap-8{gap:var(--kendo-spacing-8, 2rem) !important}.k-gap-9{gap:var(--kendo-spacing-9, 2.25rem)}.\!k-gap-9{gap:var(--kendo-spacing-9, 2.25rem) !important}.k-gap-10{gap:var(--kendo-spacing-10, 2.5rem)}.\!k-gap-10{gap:var(--kendo-spacing-10, 2.5rem) !important}.k-gap-11{gap:var(--kendo-spacing-11, 2.75rem)}.\!k-gap-11{gap:var(--kendo-spacing-11, 2.75rem) !important}.k-gap-12{gap:var(--kendo-spacing-12, 3rem)}.\!k-gap-12{gap:var(--kendo-spacing-12, 3rem) !important}.k-gap-13{gap:var(--kendo-spacing-13, 3.25rem)}.\!k-gap-13{gap:var(--kendo-spacing-13, 3.25rem) !important}.k-gap-14{gap:var(--kendo-spacing-14, 3.5rem)}.\!k-gap-14{gap:var(--kendo-spacing-14, 3.5rem) !important}.k-gap-15{gap:var(--kendo-spacing-15, 3.75rem)}.\!k-gap-15{gap:var(--kendo-spacing-15, 3.75rem) !important}.k-gap-16{gap:var(--kendo-spacing-16, 4rem)}.\!k-gap-16{gap:var(--kendo-spacing-16, 4rem) !important}.k-gap-17{gap:var(--kendo-spacing-17, 4.25rem)}.\!k-gap-17{gap:var(--kendo-spacing-17, 4.25rem) !important}.k-gap-18{gap:var(--kendo-spacing-18, 4.5rem)}.\!k-gap-18{gap:var(--kendo-spacing-18, 4.5rem) !important}.k-gap-19{gap:var(--kendo-spacing-19, 4.75rem)}.\!k-gap-19{gap:var(--kendo-spacing-19, 4.75rem) !important}.k-gap-20{gap:var(--kendo-spacing-20, 5rem)}.\!k-gap-20{gap:var(--kendo-spacing-20, 5rem) !important}.k-gap-21{gap:var(--kendo-spacing-21, 5.25rem)}.\!k-gap-21{gap:var(--kendo-spacing-21, 5.25rem) !important}.k-gap-22{gap:var(--kendo-spacing-22, 5.5rem)}.\!k-gap-22{gap:var(--kendo-spacing-22, 5.5rem) !important}.k-gap-23{gap:var(--kendo-spacing-23, 5.75rem)}.\!k-gap-23{gap:var(--kendo-spacing-23, 5.75rem) !important}.k-gap-24{gap:var(--kendo-spacing-24, 6rem)}.\!k-gap-24{gap:var(--kendo-spacing-24, 6rem) !important}.k-gap-25{gap:var(--kendo-spacing-25, 7rem)}.\!k-gap-25{gap:var(--kendo-spacing-25, 7rem) !important}.k-gap-26{gap:var(--kendo-spacing-26, 8rem)}.\!k-gap-26{gap:var(--kendo-spacing-26, 8rem) !important}.k-gap-27{gap:var(--kendo-spacing-27, 9rem)}.\!k-gap-27{gap:var(--kendo-spacing-27, 9rem) !important}.k-gap-28{gap:var(--kendo-spacing-28, 10rem)}.\!k-gap-28{gap:var(--kendo-spacing-28, 10rem) !important}.k-gap-29{gap:var(--kendo-spacing-29, 11rem)}.\!k-gap-29{gap:var(--kendo-spacing-29, 11rem) !important}.k-gap-30{gap:var(--kendo-spacing-30, 12rem)}.\!k-gap-30{gap:var(--kendo-spacing-30, 12rem) !important}.k-gap-xs{gap:var(--kendo-spacing-xs, var(--kendo-spacing-1, 0.25rem))}.\!k-gap-xs{gap:var(--kendo-spacing-xs, var(--kendo-spacing-1, 0.25rem)) !important}.k-gap-sm{gap:var(--kendo-spacing-sm, var(--kendo-spacing-2, 0.5rem))}.\!k-gap-sm{gap:var(--kendo-spacing-sm, var(--kendo-spacing-2, 0.5rem)) !important}.k-gap-md{gap:var(--kendo-spacing-md, var(--kendo-spacing-3, 0.75rem))}.\!k-gap-md{gap:var(--kendo-spacing-md, var(--kendo-spacing-3, 0.75rem)) !important}.k-gap-lg{gap:var(--kendo-spacing-lg, var(--kendo-spacing-4, 1rem))}.\!k-gap-lg{gap:var(--kendo-spacing-lg, var(--kendo-spacing-4, 1rem)) !important}.k-gap-xl{gap:var(--kendo-spacing-xl, var(--kendo-spacing-6, 1.5rem))}.\!k-gap-xl{gap:var(--kendo-spacing-xl, var(--kendo-spacing-6, 1.5rem)) !important}.k-gap-thin{gap:var(--kendo-spacing-thin, var(--kendo-spacing-0\.5, 0.125rem))}.\!k-gap-thin{gap:var(--kendo-spacing-thin, var(--kendo-spacing-0\.5, 0.125rem)) !important}.k-gap-hair{gap:var(--kendo-spacing-hair, var(--kendo-spacing-1px, 1px))}.\!k-gap-hair{gap:var(--kendo-spacing-hair, var(--kendo-spacing-1px, 1px)) !important}.k-gap-x-0{column-gap:var(--kendo-spacing-0, 0px)}.\!k-gap-x-0{column-gap:var(--kendo-spacing-0, 0px) !important}.k-gap-x-1px{column-gap:var(--kendo-spacing-1px, 1px)}.\!k-gap-x-1px{column-gap:var(--kendo-spacing-1px, 1px) !important}.k-gap-x-0\.5{column-gap:var(--kendo-spacing-0\.5, 0.125rem)}.\!k-gap-x-0\.5{column-gap:var(--kendo-spacing-0\.5, 0.125rem) !important}.k-gap-x-1{column-gap:var(--kendo-spacing-1, 0.25rem)}.\!k-gap-x-1{column-gap:var(--kendo-spacing-1, 0.25rem) !important}.k-gap-x-1\.5{column-gap:var(--kendo-spacing-1\.5, 0.375rem)}.\!k-gap-x-1\.5{column-gap:var(--kendo-spacing-1\.5, 0.375rem) !important}.k-gap-x-2{column-gap:var(--kendo-spacing-2, 0.5rem)}.\!k-gap-x-2{column-gap:var(--kendo-spacing-2, 0.5rem) !important}.k-gap-x-2\.5{column-gap:var(--kendo-spacing-2\.5, 0.625rem)}.\!k-gap-x-2\.5{column-gap:var(--kendo-spacing-2\.5, 0.625rem) !important}.k-gap-x-3{column-gap:var(--kendo-spacing-3, 0.75rem)}.\!k-gap-x-3{column-gap:var(--kendo-spacing-3, 0.75rem) !important}.k-gap-x-3\.5{column-gap:var(--kendo-spacing-3\.5, 0.875rem)}.\!k-gap-x-3\.5{column-gap:var(--kendo-spacing-3\.5, 0.875rem) !important}.k-gap-x-4{column-gap:var(--kendo-spacing-4, 1rem)}.\!k-gap-x-4{column-gap:var(--kendo-spacing-4, 1rem) !important}.k-gap-x-4\.5{column-gap:var(--kendo-spacing-4\.5, 1.125rem)}.\!k-gap-x-4\.5{column-gap:var(--kendo-spacing-4\.5, 1.125rem) !important}.k-gap-x-5{column-gap:var(--kendo-spacing-5, 1.25rem)}.\!k-gap-x-5{column-gap:var(--kendo-spacing-5, 1.25rem) !important}.k-gap-x-5\.5{column-gap:var(--kendo-spacing-5\.5, 1.375rem)}.\!k-gap-x-5\.5{column-gap:var(--kendo-spacing-5\.5, 1.375rem) !important}.k-gap-x-6{column-gap:var(--kendo-spacing-6, 1.5rem)}.\!k-gap-x-6{column-gap:var(--kendo-spacing-6, 1.5rem) !important}.k-gap-x-6\.5{column-gap:var(--kendo-spacing-6\.5, 1.625rem)}.\!k-gap-x-6\.5{column-gap:var(--kendo-spacing-6\.5, 1.625rem) !important}.k-gap-x-7{column-gap:var(--kendo-spacing-7, 1.75rem)}.\!k-gap-x-7{column-gap:var(--kendo-spacing-7, 1.75rem) !important}.k-gap-x-7\.5{column-gap:var(--kendo-spacing-7\.5, 1.875rem)}.\!k-gap-x-7\.5{column-gap:var(--kendo-spacing-7\.5, 1.875rem) !important}.k-gap-x-8{column-gap:var(--kendo-spacing-8, 2rem)}.\!k-gap-x-8{column-gap:var(--kendo-spacing-8, 2rem) !important}.k-gap-x-9{column-gap:var(--kendo-spacing-9, 2.25rem)}.\!k-gap-x-9{column-gap:var(--kendo-spacing-9, 2.25rem) !important}.k-gap-x-10{column-gap:var(--kendo-spacing-10, 2.5rem)}.\!k-gap-x-10{column-gap:var(--kendo-spacing-10, 2.5rem) !important}.k-gap-x-11{column-gap:var(--kendo-spacing-11, 2.75rem)}.\!k-gap-x-11{column-gap:var(--kendo-spacing-11, 2.75rem) !important}.k-gap-x-12{column-gap:var(--kendo-spacing-12, 3rem)}.\!k-gap-x-12{column-gap:var(--kendo-spacing-12, 3rem) !important}.k-gap-x-13{column-gap:var(--kendo-spacing-13, 3.25rem)}.\!k-gap-x-13{column-gap:var(--kendo-spacing-13, 3.25rem) !important}.k-gap-x-14{column-gap:var(--kendo-spacing-14, 3.5rem)}.\!k-gap-x-14{column-gap:var(--kendo-spacing-14, 3.5rem) !important}.k-gap-x-15{column-gap:var(--kendo-spacing-15, 3.75rem)}.\!k-gap-x-15{column-gap:var(--kendo-spacing-15, 3.75rem) !important}.k-gap-x-16{column-gap:var(--kendo-spacing-16, 4rem)}.\!k-gap-x-16{column-gap:var(--kendo-spacing-16, 4rem) !important}.k-gap-x-17{column-gap:var(--kendo-spacing-17, 4.25rem)}.\!k-gap-x-17{column-gap:var(--kendo-spacing-17, 4.25rem) !important}.k-gap-x-18{column-gap:var(--kendo-spacing-18, 4.5rem)}.\!k-gap-x-18{column-gap:var(--kendo-spacing-18, 4.5rem) !important}.k-gap-x-19{column-gap:var(--kendo-spacing-19, 4.75rem)}.\!k-gap-x-19{column-gap:var(--kendo-spacing-19, 4.75rem) !important}.k-gap-x-20{column-gap:var(--kendo-spacing-20, 5rem)}.\!k-gap-x-20{column-gap:var(--kendo-spacing-20, 5rem) !important}.k-gap-x-21{column-gap:var(--kendo-spacing-21, 5.25rem)}.\!k-gap-x-21{column-gap:var(--kendo-spacing-21, 5.25rem) !important}.k-gap-x-22{column-gap:var(--kendo-spacing-22, 5.5rem)}.\!k-gap-x-22{column-gap:var(--kendo-spacing-22, 5.5rem) !important}.k-gap-x-23{column-gap:var(--kendo-spacing-23, 5.75rem)}.\!k-gap-x-23{column-gap:var(--kendo-spacing-23, 5.75rem) !important}.k-gap-x-24{column-gap:var(--kendo-spacing-24, 6rem)}.\!k-gap-x-24{column-gap:var(--kendo-spacing-24, 6rem) !important}.k-gap-x-25{column-gap:var(--kendo-spacing-25, 7rem)}.\!k-gap-x-25{column-gap:var(--kendo-spacing-25, 7rem) !important}.k-gap-x-26{column-gap:var(--kendo-spacing-26, 8rem)}.\!k-gap-x-26{column-gap:var(--kendo-spacing-26, 8rem) !important}.k-gap-x-27{column-gap:var(--kendo-spacing-27, 9rem)}.\!k-gap-x-27{column-gap:var(--kendo-spacing-27, 9rem) !important}.k-gap-x-28{column-gap:var(--kendo-spacing-28, 10rem)}.\!k-gap-x-28{column-gap:var(--kendo-spacing-28, 10rem) !important}.k-gap-x-29{column-gap:var(--kendo-spacing-29, 11rem)}.\!k-gap-x-29{column-gap:var(--kendo-spacing-29, 11rem) !important}.k-gap-x-30{column-gap:var(--kendo-spacing-30, 12rem)}.\!k-gap-x-30{column-gap:var(--kendo-spacing-30, 12rem) !important}.k-gap-x-xs{column-gap:var(--kendo-spacing-xs, var(--kendo-spacing-1, 0.25rem))}.\!k-gap-x-xs{column-gap:var(--kendo-spacing-xs, var(--kendo-spacing-1, 0.25rem)) !important}.k-gap-x-sm{column-gap:var(--kendo-spacing-sm, var(--kendo-spacing-2, 0.5rem))}.\!k-gap-x-sm{column-gap:var(--kendo-spacing-sm, var(--kendo-spacing-2, 0.5rem)) !important}.k-gap-x-md{column-gap:var(--kendo-spacing-md, var(--kendo-spacing-3, 0.75rem))}.\!k-gap-x-md{column-gap:var(--kendo-spacing-md, var(--kendo-spacing-3, 0.75rem)) !important}.k-gap-x-lg{column-gap:var(--kendo-spacing-lg, var(--kendo-spacing-4, 1rem))}.\!k-gap-x-lg{column-gap:var(--kendo-spacing-lg, var(--kendo-spacing-4, 1rem)) !important}.k-gap-x-xl{column-gap:var(--kendo-spacing-xl, var(--kendo-spacing-6, 1.5rem))}.\!k-gap-x-xl{column-gap:var(--kendo-spacing-xl, var(--kendo-spacing-6, 1.5rem)) !important}.k-gap-x-thin{column-gap:var(--kendo-spacing-thin, var(--kendo-spacing-0\.5, 0.125rem))}.\!k-gap-x-thin{column-gap:var(--kendo-spacing-thin, var(--kendo-spacing-0\.5, 0.125rem)) !important}.k-gap-x-hair{column-gap:var(--kendo-spacing-hair, var(--kendo-spacing-1px, 1px))}.\!k-gap-x-hair{column-gap:var(--kendo-spacing-hair, var(--kendo-spacing-1px, 1px)) !important}.k-gap-y-0{row-gap:var(--kendo-spacing-0, 0px)}.\!k-gap-y-0{row-gap:var(--kendo-spacing-0, 0px) !important}.k-gap-y-1px{row-gap:var(--kendo-spacing-1px, 1px)}.\!k-gap-y-1px{row-gap:var(--kendo-spacing-1px, 1px) !important}.k-gap-y-0\.5{row-gap:var(--kendo-spacing-0\.5, 0.125rem)}.\!k-gap-y-0\.5{row-gap:var(--kendo-spacing-0\.5, 0.125rem) !important}.k-gap-y-1{row-gap:var(--kendo-spacing-1, 0.25rem)}.\!k-gap-y-1{row-gap:var(--kendo-spacing-1, 0.25rem) !important}.k-gap-y-1\.5{row-gap:var(--kendo-spacing-1\.5, 0.375rem)}.\!k-gap-y-1\.5{row-gap:var(--kendo-spacing-1\.5, 0.375rem) !important}.k-gap-y-2{row-gap:var(--kendo-spacing-2, 0.5rem)}.\!k-gap-y-2{row-gap:var(--kendo-spacing-2, 0.5rem) !important}.k-gap-y-2\.5{row-gap:var(--kendo-spacing-2\.5, 0.625rem)}.\!k-gap-y-2\.5{row-gap:var(--kendo-spacing-2\.5, 0.625rem) !important}.k-gap-y-3{row-gap:var(--kendo-spacing-3, 0.75rem)}.\!k-gap-y-3{row-gap:var(--kendo-spacing-3, 0.75rem) !important}.k-gap-y-3\.5{row-gap:var(--kendo-spacing-3\.5, 0.875rem)}.\!k-gap-y-3\.5{row-gap:var(--kendo-spacing-3\.5, 0.875rem) !important}.k-gap-y-4{row-gap:var(--kendo-spacing-4, 1rem)}.\!k-gap-y-4{row-gap:var(--kendo-spacing-4, 1rem) !important}.k-gap-y-4\.5{row-gap:var(--kendo-spacing-4\.5, 1.125rem)}.\!k-gap-y-4\.5{row-gap:var(--kendo-spacing-4\.5, 1.125rem) !important}.k-gap-y-5{row-gap:var(--kendo-spacing-5, 1.25rem)}.\!k-gap-y-5{row-gap:var(--kendo-spacing-5, 1.25rem) !important}.k-gap-y-5\.5{row-gap:var(--kendo-spacing-5\.5, 1.375rem)}.\!k-gap-y-5\.5{row-gap:var(--kendo-spacing-5\.5, 1.375rem) !important}.k-gap-y-6{row-gap:var(--kendo-spacing-6, 1.5rem)}.\!k-gap-y-6{row-gap:var(--kendo-spacing-6, 1.5rem) !important}.k-gap-y-6\.5{row-gap:var(--kendo-spacing-6\.5, 1.625rem)}.\!k-gap-y-6\.5{row-gap:var(--kendo-spacing-6\.5, 1.625rem) !important}.k-gap-y-7{row-gap:var(--kendo-spacing-7, 1.75rem)}.\!k-gap-y-7{row-gap:var(--kendo-spacing-7, 1.75rem) !important}.k-gap-y-7\.5{row-gap:var(--kendo-spacing-7\.5, 1.875rem)}.\!k-gap-y-7\.5{row-gap:var(--kendo-spacing-7\.5, 1.875rem) !important}.k-gap-y-8{row-gap:var(--kendo-spacing-8, 2rem)}.\!k-gap-y-8{row-gap:var(--kendo-spacing-8, 2rem) !important}.k-gap-y-9{row-gap:var(--kendo-spacing-9, 2.25rem)}.\!k-gap-y-9{row-gap:var(--kendo-spacing-9, 2.25rem) !important}.k-gap-y-10{row-gap:var(--kendo-spacing-10, 2.5rem)}.\!k-gap-y-10{row-gap:var(--kendo-spacing-10, 2.5rem) !important}.k-gap-y-11{row-gap:var(--kendo-spacing-11, 2.75rem)}.\!k-gap-y-11{row-gap:var(--kendo-spacing-11, 2.75rem) !important}.k-gap-y-12{row-gap:var(--kendo-spacing-12, 3rem)}.\!k-gap-y-12{row-gap:var(--kendo-spacing-12, 3rem) !important}.k-gap-y-13{row-gap:var(--kendo-spacing-13, 3.25rem)}.\!k-gap-y-13{row-gap:var(--kendo-spacing-13, 3.25rem) !important}.k-gap-y-14{row-gap:var(--kendo-spacing-14, 3.5rem)}.\!k-gap-y-14{row-gap:var(--kendo-spacing-14, 3.5rem) !important}.k-gap-y-15{row-gap:var(--kendo-spacing-15, 3.75rem)}.\!k-gap-y-15{row-gap:var(--kendo-spacing-15, 3.75rem) !important}.k-gap-y-16{row-gap:var(--kendo-spacing-16, 4rem)}.\!k-gap-y-16{row-gap:var(--kendo-spacing-16, 4rem) !important}.k-gap-y-17{row-gap:var(--kendo-spacing-17, 4.25rem)}.\!k-gap-y-17{row-gap:var(--kendo-spacing-17, 4.25rem) !important}.k-gap-y-18{row-gap:var(--kendo-spacing-18, 4.5rem)}.\!k-gap-y-18{row-gap:var(--kendo-spacing-18, 4.5rem) !important}.k-gap-y-19{row-gap:var(--kendo-spacing-19, 4.75rem)}.\!k-gap-y-19{row-gap:var(--kendo-spacing-19, 4.75rem) !important}.k-gap-y-20{row-gap:var(--kendo-spacing-20, 5rem)}.\!k-gap-y-20{row-gap:var(--kendo-spacing-20, 5rem) !important}.k-gap-y-21{row-gap:var(--kendo-spacing-21, 5.25rem)}.\!k-gap-y-21{row-gap:var(--kendo-spacing-21, 5.25rem) !important}.k-gap-y-22{row-gap:var(--kendo-spacing-22, 5.5rem)}.\!k-gap-y-22{row-gap:var(--kendo-spacing-22, 5.5rem) !important}.k-gap-y-23{row-gap:var(--kendo-spacing-23, 5.75rem)}.\!k-gap-y-23{row-gap:var(--kendo-spacing-23, 5.75rem) !important}.k-gap-y-24{row-gap:var(--kendo-spacing-24, 6rem)}.\!k-gap-y-24{row-gap:var(--kendo-spacing-24, 6rem) !important}.k-gap-y-25{row-gap:var(--kendo-spacing-25, 7rem)}.\!k-gap-y-25{row-gap:var(--kendo-spacing-25, 7rem) !important}.k-gap-y-26{row-gap:var(--kendo-spacing-26, 8rem)}.\!k-gap-y-26{row-gap:var(--kendo-spacing-26, 8rem) !important}.k-gap-y-27{row-gap:var(--kendo-spacing-27, 9rem)}.\!k-gap-y-27{row-gap:var(--kendo-spacing-27, 9rem) !important}.k-gap-y-28{row-gap:var(--kendo-spacing-28, 10rem)}.\!k-gap-y-28{row-gap:var(--kendo-spacing-28, 10rem) !important}.k-gap-y-29{row-gap:var(--kendo-spacing-29, 11rem)}.\!k-gap-y-29{row-gap:var(--kendo-spacing-29, 11rem) !important}.k-gap-y-30{row-gap:var(--kendo-spacing-30, 12rem)}.\!k-gap-y-30{row-gap:var(--kendo-spacing-30, 12rem) !important}.k-gap-y-xs{row-gap:var(--kendo-spacing-xs, var(--kendo-spacing-1, 0.25rem))}.\!k-gap-y-xs{row-gap:var(--kendo-spacing-xs, var(--kendo-spacing-1, 0.25rem)) !important}.k-gap-y-sm{row-gap:var(--kendo-spacing-sm, var(--kendo-spacing-2, 0.5rem))}.\!k-gap-y-sm{row-gap:var(--kendo-spacing-sm, var(--kendo-spacing-2, 0.5rem)) !important}.k-gap-y-md{row-gap:var(--kendo-spacing-md, var(--kendo-spacing-3, 0.75rem))}.\!k-gap-y-md{row-gap:var(--kendo-spacing-md, var(--kendo-spacing-3, 0.75rem)) !important}.k-gap-y-lg{row-gap:var(--kendo-spacing-lg, var(--kendo-spacing-4, 1rem))}.\!k-gap-y-lg{row-gap:var(--kendo-spacing-lg, var(--kendo-spacing-4, 1rem)) !important}.k-gap-y-xl{row-gap:var(--kendo-spacing-xl, var(--kendo-spacing-6, 1.5rem))}.\!k-gap-y-xl{row-gap:var(--kendo-spacing-xl, var(--kendo-spacing-6, 1.5rem)) !important}.k-gap-y-thin{row-gap:var(--kendo-spacing-thin, var(--kendo-spacing-0\.5, 0.125rem))}.\!k-gap-y-thin{row-gap:var(--kendo-spacing-thin, var(--kendo-spacing-0\.5, 0.125rem)) !important}.k-gap-y-hair{row-gap:var(--kendo-spacing-hair, var(--kendo-spacing-1px, 1px))}.\!k-gap-y-hair{row-gap:var(--kendo-spacing-hair, var(--kendo-spacing-1px, 1px)) !important}.k-grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.\!k-grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr)) !important}.k-grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.\!k-grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr)) !important}.k-grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.\!k-grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr)) !important}.k-grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.\!k-grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr)) !important}.k-grid-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr))}.\!k-grid-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr)) !important}.k-grid-cols-6{grid-template-columns:repeat(6, minmax(0, 1fr))}.\!k-grid-cols-6{grid-template-columns:repeat(6, minmax(0, 1fr)) !important}.k-grid-cols-7{grid-template-columns:repeat(7, minmax(0, 1fr))}.\!k-grid-cols-7{grid-template-columns:repeat(7, minmax(0, 1fr)) !important}.k-grid-cols-8{grid-template-columns:repeat(8, minmax(0, 1fr))}.\!k-grid-cols-8{grid-template-columns:repeat(8, minmax(0, 1fr)) !important}.k-grid-cols-9{grid-template-columns:repeat(9, minmax(0, 1fr))}.\!k-grid-cols-9{grid-template-columns:repeat(9, minmax(0, 1fr)) !important}.k-grid-cols-10{grid-template-columns:repeat(10, minmax(0, 1fr))}.\!k-grid-cols-10{grid-template-columns:repeat(10, minmax(0, 1fr)) !important}.k-grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr))}.\!k-grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr)) !important}.k-grid-cols-12{grid-template-columns:repeat(12, minmax(0, 1fr))}.\!k-grid-cols-12{grid-template-columns:repeat(12, minmax(0, 1fr)) !important}.k-grid-cols-none{grid-template-columns:none}.\!k-grid-cols-none{grid-template-columns:none !important}.k-col-span-1{grid-column:span 1/span 1}.\!k-col-span-1{grid-column:span 1/span 1 !important}.k-col-span-2{grid-column:span 2/span 2}.\!k-col-span-2{grid-column:span 2/span 2 !important}.k-col-span-3{grid-column:span 3/span 3}.\!k-col-span-3{grid-column:span 3/span 3 !important}.k-col-span-4{grid-column:span 4/span 4}.\!k-col-span-4{grid-column:span 4/span 4 !important}.k-col-span-5{grid-column:span 5/span 5}.\!k-col-span-5{grid-column:span 5/span 5 !important}.k-col-span-6{grid-column:span 6/span 6}.\!k-col-span-6{grid-column:span 6/span 6 !important}.k-col-span-7{grid-column:span 7/span 7}.\!k-col-span-7{grid-column:span 7/span 7 !important}.k-col-span-8{grid-column:span 8/span 8}.\!k-col-span-8{grid-column:span 8/span 8 !important}.k-col-span-9{grid-column:span 9/span 9}.\!k-col-span-9{grid-column:span 9/span 9 !important}.k-col-span-10{grid-column:span 10/span 10}.\!k-col-span-10{grid-column:span 10/span 10 !important}.k-col-span-11{grid-column:span 11/span 11}.\!k-col-span-11{grid-column:span 11/span 11 !important}.k-col-span-12{grid-column:span 12/span 12}.\!k-col-span-12{grid-column:span 12/span 12 !important}.k-col-span-full{grid-column:1 / -1}.\!k-col-span-full{grid-column:1 / -1 !important}.k-col-span-auto{grid-column:auto}.\!k-col-span-auto{grid-column:auto !important}.k-col-start-1{grid-column-start:1}.\!k-col-start-1{grid-column-start:1 !important}.k-col-start-2{grid-column-start:2}.\!k-col-start-2{grid-column-start:2 !important}.k-col-start-3{grid-column-start:3}.\!k-col-start-3{grid-column-start:3 !important}.k-col-start-4{grid-column-start:4}.\!k-col-start-4{grid-column-start:4 !important}.k-col-start-5{grid-column-start:5}.\!k-col-start-5{grid-column-start:5 !important}.k-col-start-6{grid-column-start:6}.\!k-col-start-6{grid-column-start:6 !important}.k-col-start-7{grid-column-start:7}.\!k-col-start-7{grid-column-start:7 !important}.k-col-start-8{grid-column-start:8}.\!k-col-start-8{grid-column-start:8 !important}.k-col-start-9{grid-column-start:9}.\!k-col-start-9{grid-column-start:9 !important}.k-col-start-10{grid-column-start:10}.\!k-col-start-10{grid-column-start:10 !important}.k-col-start-11{grid-column-start:11}.\!k-col-start-11{grid-column-start:11 !important}.k-col-start-12{grid-column-start:12}.\!k-col-start-12{grid-column-start:12 !important}.k-col-start-13{grid-column-start:13}.\!k-col-start-13{grid-column-start:13 !important}.k-col-start-auto{grid-column-start:auto}.\!k-col-start-auto{grid-column-start:auto !important}.k-col-end-1{grid-column-end:1}.\!k-col-end-1{grid-column-end:1 !important}.k-col-end-2{grid-column-end:2}.\!k-col-end-2{grid-column-end:2 !important}.k-col-end-3{grid-column-end:3}.\!k-col-end-3{grid-column-end:3 !important}.k-col-end-4{grid-column-end:4}.\!k-col-end-4{grid-column-end:4 !important}.k-col-end-5{grid-column-end:5}.\!k-col-end-5{grid-column-end:5 !important}.k-col-end-6{grid-column-end:6}.\!k-col-end-6{grid-column-end:6 !important}.k-col-end-7{grid-column-end:7}.\!k-col-end-7{grid-column-end:7 !important}.k-col-end-8{grid-column-end:8}.\!k-col-end-8{grid-column-end:8 !important}.k-col-end-9{grid-column-end:9}.\!k-col-end-9{grid-column-end:9 !important}.k-col-end-10{grid-column-end:10}.\!k-col-end-10{grid-column-end:10 !important}.k-col-end-11{grid-column-end:11}.\!k-col-end-11{grid-column-end:11 !important}.k-col-end-12{grid-column-end:12}.\!k-col-end-12{grid-column-end:12 !important}.k-col-end-13{grid-column-end:13}.\!k-col-end-13{grid-column-end:13 !important}.k-col-end-auto{grid-column-end:auto}.\!k-col-end-auto{grid-column-end:auto !important}.k-colspan-1{grid-column:span 1/span 1}.\!k-colspan-1{grid-column:span 1/span 1 !important}.k-colspan-2{grid-column:span 2/span 2}.\!k-colspan-2{grid-column:span 2/span 2 !important}.k-colspan-3{grid-column:span 3/span 3}.\!k-colspan-3{grid-column:span 3/span 3 !important}.k-colspan-4{grid-column:span 4/span 4}.\!k-colspan-4{grid-column:span 4/span 4 !important}.k-colspan-5{grid-column:span 5/span 5}.\!k-colspan-5{grid-column:span 5/span 5 !important}.k-colspan-6{grid-column:span 6/span 6}.\!k-colspan-6{grid-column:span 6/span 6 !important}.k-colspan-7{grid-column:span 7/span 7}.\!k-colspan-7{grid-column:span 7/span 7 !important}.k-colspan-8{grid-column:span 8/span 8}.\!k-colspan-8{grid-column:span 8/span 8 !important}.k-colspan-9{grid-column:span 9/span 9}.\!k-colspan-9{grid-column:span 9/span 9 !important}.k-colspan-10{grid-column:span 10/span 10}.\!k-colspan-10{grid-column:span 10/span 10 !important}.k-colspan-11{grid-column:span 11/span 11}.\!k-colspan-11{grid-column:span 11/span 11 !important}.k-colspan-12{grid-column:span 12/span 12}.\!k-colspan-12{grid-column:span 12/span 12 !important}.k-colspan-full,.k-colspan-all{grid-column:1 / -1}.\!k-colspan-full,.\!k-colspan-all{grid-column:1 / -1 !important}.k-colspan-auto{grid-column:auto}.\!k-colspan-auto{grid-column:auto !important}.k-validator-tooltip{margin-top:6px;width:auto;white-space:normal;display:flex;align-items:center;z-index:9999}.k-grid .k-validator-tooltip{max-width:300px}.k-floating-label-container{padding-top:calc(var(--kendo-line-height, normal)*var(--kendo-font-size, inherit));box-sizing:border-box;display:inline-flex;vertical-align:middle;position:relative;flex-direction:column;justify-content:stretch}.k-floating-label-container *,.k-floating-label-container *::before,.k-floating-label-container *::after{box-sizing:border-box}.k-floating-label-container>.k-floating-label{max-width:90%;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);white-space:nowrap;text-overflow:ellipsis;position:absolute;top:var(--kendo-floating-label-offset-y, calc(var(--kendo-line-height, normal)*var(--kendo-font-size, inherit) + 1px + var(--kendo-spacing-1, 0.25rem)));left:var(--kendo-floating-label-offset-x, calc(var(--kendo-spacing-2, 0.5rem) + 1px));overflow:hidden;cursor:text;transform-origin:left center;transition:transform .2s ease-out,color .2s ease-out,top .2s ease-out,left .2s ease-out}.k-floating-label-container.k-empty>.k-floating-label{top:var(--kendo-floating-label-offset-y, calc(var(--kendo-line-height, normal)*var(--kendo-font-size, inherit) + 1px + var(--kendo-spacing-1, 0.25rem)));left:var(--kendo-floating-label-offset-x, calc(var(--kendo-spacing-2, 0.5rem) + 1px));transform:scale(1);pointer-events:none}.k-floating-label-container>.k-floating-label,.k-floating-label-container.k-focus>.k-floating-label{top:var(--kendo-floating-label-focus-offset-y, 0);left:var(--kendo-floating-label-focus-offset-x, 0);transform:scale(1)}.k-floating-label-container:focus-within>.k-floating-label{top:var(--kendo-floating-label-focus-offset-y, 0);left:var(--kendo-floating-label-focus-offset-x, 0);transform:scale(1)}.k-floating-label-container.k-empty:not(.k-focus):not(:focus-within) ::placeholder{color:rgba(0,0,0,0)}[dir=rtl] .k-floating-label-container>.k-floating-label,.k-rtl .k-floating-label-container>.k-floating-label,.k-floating-label-container[dir=rtl]>.k-floating-label{transform-origin:right center;transition:transform .2s ease-out,color .2s ease-out,top .2s ease-out,right .2s ease-out}[dir=rtl] .k-floating-label-container.k-empty>.k-floating-label,.k-rtl .k-floating-label-container.k-empty>.k-floating-label,.k-floating-label-container[dir=rtl].k-empty>.k-floating-label{left:auto;right:var(--kendo-floating-label-offset-x, calc(var(--kendo-spacing-2, 0.5rem) + 1px))}[dir=rtl] .k-floating-label-container>.k-floating-label,[dir=rtl] .k-floating-label-container.k-focus>.k-floating-label,.k-rtl .k-floating-label-container>.k-floating-label,.k-rtl .k-floating-label-container.k-focus>.k-floating-label,.k-floating-label-container[dir=rtl]>.k-floating-label,.k-floating-label-container[dir=rtl].k-focus>.k-floating-label{left:auto;right:var(--kendo-floating-label-focus-offset-x, 0)}[dir=rtl] .k-floating-label-container:focus-within>.k-floating-label,.k-rtl .k-floating-label-container:focus-within>.k-floating-label,.k-floating-label-container[dir=rtl]:focus-within>.k-floating-label{left:auto;right:var(--kendo-floating-label-focus-offset-x, 0)}.k-floating-label-container.k-invalid>.k-floating-label,.k-floating-label-container.ng-invalid.ng-touched>.k-floating-label,.k-floating-label-container.ng-invalid.ng-dirty>.k-floating-label{color:var(--kendo-color-error, #D51923)}.k-split-button .k-split-button-arrow{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);width:auto;aspect-ratio:auto;flex:none}.k-split-button .k-split-button-arrow.k-button-sm{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-0\.5, 0.125rem)}.k-split-button .k-split-button-arrow.k-button-md{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-split-button .k-split-button-arrow.k-button-lg{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-split-button .k-split-button-arrow .k-button-icon{min-width:0}.k-split-button:focus,.k-split-button.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-menu-button,.k-dropdown-button{aspect-ratio:auto;outline:0;display:inline-flex;flex-flow:row nowrap;vertical-align:middle}.k-menu-button>.k-button-arrow,.k-dropdown-button>.k-button-arrow{margin-inline-start:calc(var(--kendo-spacing-1, 0.25rem)*-1);margin-inline-end:calc(var(--kendo-spacing-2, 0.5rem)*-1);padding-left:var(--kendo-spacing-1, 0.25rem);padding-right:var(--kendo-spacing-1, 0.25rem);flex:none;display:inline-flex;align-items:center;justify-content:center}.k-menu-button.k-icon-button>.k-button-arrow,.k-dropdown-button.k-icon-button>.k-button-arrow{margin-inline-start:0;margin-inline-end:calc(var(--kendo-spacing-1, 0.25rem)*-1)}.k-input,.k-picker{margin:0;padding:0;width:100%;min-width:0;box-sizing:border-box;border-width:1px;border-style:solid;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);font-weight:normal;text-align:start;box-shadow:none;display:inline-flex;flex-flow:row nowrap;align-items:stretch;vertical-align:middle;position:relative;overflow:hidden;text-overflow:ellipsis;-webkit-appearance:none}.k-input *,.k-input *::before,.k-input *::after,.k-picker *,.k-picker *::before,.k-picker *::after{box-sizing:border-box}.k-input>.k-input,.k-input>.k-picker,.k-picker>.k-input,.k-picker>.k-picker{border-width:0 !important;color:inherit;background:none;font:inherit;outline:0;box-shadow:none}.k-input>*,.k-picker>*{margin:0}.k-input::placeholder,.k-picker::placeholder{color:var(--kendo-color-subtle, #666666);opacity:1;-webkit-user-select:none;user-select:none}input.k-input,textarea.k-textarea{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}textarea.k-textarea{overflow:auto}.k-picker{cursor:pointer}select.k-picker{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);appearance:auto;align-items:center}.k-input-inner{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);width:100%;border:0;outline:0;color:inherit;background:none;font:inherit;flex:1;position:relative;z-index:1;overflow:hidden;text-overflow:ellipsis;-webkit-appearance:none}.k-input-inner::placeholder{color:var(--kendo-color-subtle, #666666);opacity:1;-webkit-user-select:none;user-select:none}.k-input-inner:invalid{box-shadow:none}span.k-input-inner{white-space:nowrap;display:flex;flex-flow:row nowrap;align-items:center}textarea.k-input-inner{margin:0}.k-input-value-icon{flex:none}.k-input-value-text{flex:1;overflow:hidden;text-overflow:ellipsis}.k-input-value-text::before{content:"​";width:0px;overflow:hidden;flex:none;display:inline-block;vertical-align:top}.k-input-values{min-width:0px;width:100%;display:flex;flex-flow:row wrap;align-items:center;cursor:text}.k-input-values .k-chip-list{display:contents}.k-icon-picker>.k-input-inner{padding:var(--kendo-spacing-1, 0.25rem);justify-content:center}.k-input-prefix,.k-input-suffix{border-color:inherit;display:flex;align-items:center;flex:none}.k-input-prefix>*,.k-input-suffix>*{flex-shrink:0;border:none}.k-input-prefix-vertical,.k-input-suffix-vertical{flex-flow:column wrap}.k-input-prefix-horizontal,.k-input-suffix-horizontal{flex-flow:row wrap}.k-input-separator{margin:0;border-style:solid;border-color:inherit;border-width:0 0 0 1px;height:16px;align-self:center}.k-input-separator-horizontal{height:auto;margin-inline:var(--kendo-spacing-1, 0.25rem);align-self:stretch;border-width:1px 0 0}.k-input-separator-vertical{height:auto;margin-block:var(--kendo-spacing-1, 0.25rem);align-self:stretch;border-width:0 0 0 1px}.k-input-group{margin:0;padding:0;border-width:0;box-sizing:border-box;list-style:none;outline:0;display:inline-flex;flex-flow:row nowrap;vertical-align:middle;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-input-group>.k-input+.k-input{margin-inline-start:-1px}.k-input-group>.k-input:hover,.k-input-group>.k-input.k-hover,.k-input-group>.k-input:focus,.k-input-group>.k-input:focus-within,.k-input-group>.k-input.k-focus,.k-input-group>.k-input:active,.k-input-group>.k-input.k-active,.k-input-group>.k-input.k-selected{z-index:2}.k-input-group .k-input:not(:first-child):not(:last-child){border-start-end-radius:0;border-end-end-radius:0;border-start-start-radius:0;border-end-start-radius:0}.k-input-group>.k-input:first-child:not(:only-child){border-start-end-radius:0;border-end-end-radius:0}.k-input-group>.k-input:last-child:not(:only-child){border-start-start-radius:0;border-end-start-radius:0}.k-input-group:disabled,.k-input-group[disabled],.k-input-group.k-disabled{opacity:1;filter:none}.k-input-icon,.k-input-validation-icon,.k-input-loading-icon{flex:none;align-self:center;display:inline-flex;flex-flow:row nowrap;align-items:center;justify-content:center;box-sizing:content-box}.k-input-loading-icon{width:1em;height:1em;font-size:16px}.k-input-icon.k-svg-icon>svg,.k-input-icon.k-icon-md>svg,.k-input-validation-icon.k-svg-icon>svg,.k-input-validation-icon.k-icon-md>svg,.k-input-loading-icon.k-svg-icon>svg,.k-input-loading-icon.k-icon-md>svg{width:16px;height:16px}.k-input-icon.k-icon-xs>svg,.k-input-validation-icon.k-icon-xs>svg,.k-input-loading-icon.k-icon-xs>svg{width:12px;height:12px}.k-input-icon.k-icon-sm>svg,.k-input-validation-icon.k-icon-sm>svg,.k-input-loading-icon.k-icon-sm>svg{width:14px;height:14px}.k-input-icon.k-icon-lg>svg,.k-input-validation-icon.k-icon-lg>svg,.k-input-loading-icon.k-icon-lg>svg{width:20px;height:20px}.k-input-icon.k-icon-xl>svg,.k-input-validation-icon.k-icon-xl>svg,.k-input-loading-icon.k-icon-xl>svg{width:24px;height:24px}.k-input-icon.k-icon-xxl>svg,.k-input-validation-icon.k-icon-xxl>svg,.k-input-loading-icon.k-icon-xxl>svg{width:32px;height:32px}.k-input-icon.k-icon-xxxl>svg,.k-input-validation-icon.k-icon-xxxl>svg,.k-input-loading-icon.k-icon-xxxl>svg{width:48px;height:48px}.k-clear-value{outline:0;flex:none;align-self:center;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;opacity:80%}.k-clear-value:hover,.k-clear-value.k-hover{opacity:1}.k-clear-value:focus-visible{outline:1px dotted;outline-offset:-1px}.k-input-button{width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2);border-width:0;border-inline-start-width:1px;flex:none;aspect-ratio:auto;box-shadow:none}.k-input-button>.k-button-icon{min-width:auto !important}.k-input-button:focus{box-shadow:none}.k-picker .k-input-button{color:inherit;background:none;border-color:rgba(0,0,0,0)}.k-input-spinner{width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2);flex:none;display:flex;flex-flow:column nowrap}.k-input-spinner .k-spinner-increase,.k-input-spinner .k-spinner-decrease{border-width:0;border-inline-start-width:1px;flex:1 1 50%;box-shadow:none;position:relative;aspect-ratio:auto}.k-input-spinner .k-spinner-increase .k-button-icon,.k-input-spinner .k-spinner-decrease .k-button-icon{margin-block:-1em;margin-inline:0;min-width:auto !important;min-height:auto !important}.k-input-spinner .k-spinner-increase .k-icon{bottom:auto}.k-input-spinner .k-spinner-decrease .k-icon{top:auto}.k-searchbar{flex:1 1 auto;display:flex;flex-flow:row nowrap}.k-picker-wrap,.k-dropdown-wrap,.k-dateinput-wrap,.k-multiselect-wrap,.k-numeric-wrap{width:100%;border-width:0;border-color:inherit;box-sizing:border-box;flex:1 1 auto;display:flex;flex-flow:row nowrap;overflow:hidden;position:relative}.k-input-flat,.k-picker-flat{border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important;border-width:1px 0;border-top-color:rgba(0,0,0,0) !important;background-image:none !important}.k-input-outline{background:none !important}.k-input-sm,.k-picker-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-input-sm .k-input-values,.k-picker-sm .k-input-values{padding:calc(var(--kendo-spacing-0\.5, 0.125rem)/2);gap:calc(var(--kendo-spacing-0\.5, 0.125rem)/2)}.k-input-sm .k-input-values>.k-searchbar,.k-input-sm .k-input-values>.k-input-inner,.k-picker-sm .k-input-values>.k-searchbar,.k-picker-sm .k-input-values>.k-input-inner{margin:calc(var(--kendo-spacing-0\.5, 0.125rem)/2*-1)}.k-input-sm .k-input-inner,.k-picker-sm .k-input-inner{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-sm .k-input-button,.k-input-sm .k-spinner-increase,.k-input-sm .k-spinner-decrease,.k-picker-sm .k-input-button,.k-picker-sm .k-spinner-increase,.k-picker-sm .k-spinner-decrease{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-0\.5, 0.125rem)}.k-input-sm .k-input-icon,.k-input-sm .k-input-validation-icon,.k-input-sm .k-input-loading-icon,.k-input-sm .k-clear-value,.k-input-sm .k-input-prefix>.k-icon,.k-input-sm .k-input-prefix>.k-input-prefix-text,.k-input-sm .k-input-suffix>.k-icon,.k-input-sm .k-input-suffix>.k-input-suffix-text,.k-picker-sm .k-input-icon,.k-picker-sm .k-input-validation-icon,.k-picker-sm .k-input-loading-icon,.k-picker-sm .k-clear-value,.k-picker-sm .k-input-prefix>.k-icon,.k-picker-sm .k-input-prefix>.k-input-prefix-text,.k-picker-sm .k-input-suffix>.k-icon,.k-picker-sm .k-input-suffix>.k-input-suffix-text{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-0\.5, 0.125rem);box-sizing:content-box}.k-input-sm .k-input-separator-horizontal,.k-picker-sm .k-input-separator-horizontal{margin-inline:var(--kendo-spacing-0\.5, 0.125rem)}.k-input-sm .k-input-separator-vertical,.k-picker-sm .k-input-separator-vertical{margin-block:var(--kendo-spacing-0\.5, 0.125rem)}.k-input-sm.k-icon-picker>.k-input-inner,.k-picker-sm.k-icon-picker>.k-input-inner{width:calc(var(--kendo-line-height, normal)*1em);height:calc(var(--kendo-line-height, normal)*1em);padding:var(--kendo-spacing-0\.5, 0.125rem);box-sizing:content-box}select.k-picker-sm{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-md,.k-picker-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-input-md .k-input-values,.k-picker-md .k-input-values{padding:calc(var(--kendo-spacing-1, 0.25rem)/2);gap:calc(var(--kendo-spacing-1, 0.25rem)/2)}.k-input-md .k-input-values>.k-searchbar,.k-input-md .k-input-values>.k-input-inner,.k-picker-md .k-input-values>.k-searchbar,.k-picker-md .k-input-values>.k-input-inner{margin:calc(var(--kendo-spacing-1, 0.25rem)/2*-1)}.k-input-md .k-input-inner,.k-picker-md .k-input-inner{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-md .k-input-button,.k-input-md .k-spinner-increase,.k-input-md .k-spinner-decrease,.k-picker-md .k-input-button,.k-picker-md .k-spinner-increase,.k-picker-md .k-spinner-decrease{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-input-md .k-input-icon,.k-input-md .k-input-validation-icon,.k-input-md .k-input-loading-icon,.k-input-md .k-clear-value,.k-input-md .k-input-prefix>.k-icon,.k-input-md .k-input-prefix>.k-input-prefix-text,.k-input-md .k-input-suffix>.k-icon,.k-input-md .k-input-suffix>.k-input-suffix-text,.k-picker-md .k-input-icon,.k-picker-md .k-input-validation-icon,.k-picker-md .k-input-loading-icon,.k-picker-md .k-clear-value,.k-picker-md .k-input-prefix>.k-icon,.k-picker-md .k-input-prefix>.k-input-prefix-text,.k-picker-md .k-input-suffix>.k-icon,.k-picker-md .k-input-suffix>.k-input-suffix-text{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box}.k-input-md .k-input-separator-horizontal,.k-picker-md .k-input-separator-horizontal{margin-inline:var(--kendo-spacing-1, 0.25rem)}.k-input-md .k-input-separator-vertical,.k-picker-md .k-input-separator-vertical{margin-block:var(--kendo-spacing-1, 0.25rem)}.k-input-md.k-icon-picker>.k-input-inner,.k-picker-md.k-icon-picker>.k-input-inner{width:calc(var(--kendo-line-height, normal)*1em);height:calc(var(--kendo-line-height, normal)*1em);padding:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box}select.k-picker-md{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-lg,.k-picker-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-input-lg .k-input-values,.k-picker-lg .k-input-values{padding:calc(var(--kendo-spacing-2, 0.5rem)/2);gap:calc(var(--kendo-spacing-2, 0.5rem)/2)}.k-input-lg .k-input-values>.k-searchbar,.k-input-lg .k-input-values>.k-input-inner,.k-picker-lg .k-input-values>.k-searchbar,.k-picker-lg .k-input-values>.k-input-inner{margin:calc(var(--kendo-spacing-2, 0.5rem)/2*-1)}.k-input-lg .k-input-inner,.k-picker-lg .k-input-inner{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-lg .k-input-button,.k-input-lg .k-spinner-increase,.k-input-lg .k-spinner-decrease,.k-picker-lg .k-input-button,.k-picker-lg .k-spinner-increase,.k-picker-lg .k-spinner-decrease{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-lg .k-input-icon,.k-input-lg .k-input-validation-icon,.k-input-lg .k-input-loading-icon,.k-input-lg .k-clear-value,.k-input-lg .k-input-prefix>.k-icon,.k-input-lg .k-input-prefix>.k-input-prefix-text,.k-input-lg .k-input-suffix>.k-icon,.k-input-lg .k-input-suffix>.k-input-suffix-text,.k-picker-lg .k-input-icon,.k-picker-lg .k-input-validation-icon,.k-picker-lg .k-input-loading-icon,.k-picker-lg .k-clear-value,.k-picker-lg .k-input-prefix>.k-icon,.k-picker-lg .k-input-prefix>.k-input-prefix-text,.k-picker-lg .k-input-suffix>.k-icon,.k-picker-lg .k-input-suffix>.k-input-suffix-text{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);box-sizing:content-box}.k-input-lg .k-input-separator-horizontal,.k-picker-lg .k-input-separator-horizontal{margin-inline:var(--kendo-spacing-2, 0.5rem)}.k-input-lg .k-input-separator-vertical,.k-picker-lg .k-input-separator-vertical{margin-block:var(--kendo-spacing-2, 0.5rem)}.k-input-lg.k-icon-picker>.k-input-inner,.k-picker-lg.k-icon-picker>.k-input-inner{width:calc(var(--kendo-line-height-lg, normal)*1em);height:calc(var(--kendo-line-height-lg, normal)*1em);padding:var(--kendo-spacing-2, 0.5rem);box-sizing:content-box}select.k-picker-lg{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-input>kendo-popup,.k-picker>kendo-popup{position:fixed}@keyframes autoFillStart{}@keyframes autoFillEnd{}.k-autofill:-webkit-autofill{animation-name:autoFillStart}.k-autofill:not(:-webkit-autofill){animation-name:autoFillEnd}.k-input:-webkit-autofill{animation-name:autoFillStart}.k-input:not(:-webkit-autofill){animation-name:autoFillEnd}.k-input-solid{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-input-solid:hover,.k-input-solid.k-hover{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-input-solid:focus,.k-input-solid.k-focus{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16));box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-input-solid:focus-within{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16));box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-input-solid.k-invalid,.k-input-solid.ng-invalid.ng-touched,.k-input-solid.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-input-solid.k-invalid .k-input-validation-icon,.k-input-solid.ng-invalid.ng-touched .k-input-validation-icon,.k-input-solid.ng-invalid.ng-dirty .k-input-validation-icon{color:var(--kendo-color-error, #D51923)}.k-input-solid .k-input-prefix{color:var(--kendo-color-subtle, #666666)}.k-input-solid .k-input-suffix{color:var(--kendo-color-subtle, #666666)}.k-input-solid .k-input-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-picker-solid{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base, #f5f5f5)}.k-picker-solid:hover,.k-picker-solid.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-picker-solid:focus,.k-picker-solid.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-picker-solid:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-picker-solid.k-invalid,.k-picker-solid.ng-invalid.ng-touched,.k-picker-solid.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-picker-solid.k-invalid .k-input-validation-icon,.k-picker-solid.ng-invalid.ng-touched .k-input-validation-icon,.k-picker-solid.ng-invalid.ng-dirty .k-input-validation-icon{color:var(--kendo-color-error, #D51923)}.k-input-outline{border-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 50%, transparent);color:var(--kendo-color-on-app-surface, #424242)}.k-input-outline>.k-input-button{border-color:inherit}.k-input-outline>.k-input-spinner{border-color:inherit}.k-input-outline>.k-input-spinner>.k-spinner-increase,.k-input-outline>.k-input-spinner>.k-spinner-decrease{border-color:inherit}.k-input-outline:hover,.k-input-outline.k-hover{border-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 80%, transparent)}.k-input-outline:focus,.k-input-outline.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-input-outline:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-input-outline.k-invalid,.k-input-outline.ng-invalid.ng-touched,.k-input-outline.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-input-outline.k-invalid .k-input-validation-icon,.k-input-outline.ng-invalid.ng-touched .k-input-validation-icon,.k-input-outline.ng-invalid.ng-dirty .k-input-validation-icon{color:var(--kendo-color-error, #D51923)}.k-input-outline .k-input-prefix{color:var(--kendo-color-subtle, #666666)}.k-input-outline .k-input-suffix{color:var(--kendo-color-subtle, #666666)}.k-input-outline .k-input-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-picker-outline{border-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 50%, transparent);color:var(--kendo-color-on-base, #424242)}.k-picker-outline:hover,.k-picker-outline.k-hover{border-color:var(--kendo-color-on-base, #424242);color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-on-base, #424242)}.k-picker-outline:focus,.k-picker-outline.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-picker-outline:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-picker-outline.k-invalid,.k-picker-outline.ng-invalid.ng-touched,.k-picker-outline.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-picker-outline.k-invalid .k-input-validation-icon,.k-picker-outline.ng-invalid.ng-touched .k-input-validation-icon,.k-picker-outline.ng-invalid.ng-dirty .k-input-validation-icon{color:var(--kendo-color-error, #D51923)}.k-input-flat{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242)}.k-input-flat:hover,.k-input-flat.k-hover{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-input-flat:focus,.k-input-flat.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-input-flat:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-input-flat.k-invalid,.k-input-flat.ng-invalid.ng-touched,.k-input-flat.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-input-flat.k-invalid .k-input-validation-icon,.k-input-flat.ng-invalid.ng-touched .k-input-validation-icon,.k-input-flat.ng-invalid.ng-dirty .k-input-validation-icon{color:var(--kendo-color-error, #D51923)}.k-input-flat .k-input-prefix{color:var(--kendo-color-subtle, #666666)}.k-input-flat .k-input-suffix{color:var(--kendo-color-subtle, #666666)}.k-input-flat .k-input-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-picker-flat{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242)}.k-picker-flat:hover,.k-picker-flat.k-hover{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16));background-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 4%, transparent)}.k-picker-flat:focus,.k-picker-flat.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-picker-flat:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-picker-flat.k-invalid,.k-picker-flat.ng-invalid.ng-touched,.k-picker-flat.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-picker-flat.k-invalid .k-input-validation-icon,.k-picker-flat.ng-invalid.ng-touched .k-input-validation-icon,.k-picker-flat.ng-invalid.ng-dirty .k-input-validation-icon{color:var(--kendo-color-error, #D51923)}.k-textarea:has(.k-input-inner[style*=width]){width:max-content}.k-align-items-normal{align-items:normal}.\!k-align-items-normal{align-items:normal !important}.k-align-items-stretch{align-items:stretch}.\!k-align-items-stretch{align-items:stretch !important}.k-align-items-center{align-items:center}.\!k-align-items-center{align-items:center !important}.k-align-items-start{align-items:start}.\!k-align-items-start{align-items:start !important}.k-align-items-end{align-items:end}.\!k-align-items-end{align-items:end !important}.k-align-items-flex-start{align-items:flex-start}.\!k-align-items-flex-start{align-items:flex-start !important}.k-align-items-flex-end{align-items:flex-end}.\!k-align-items-flex-end{align-items:flex-end !important}.k-align-items-baseline{align-items:baseline}.\!k-align-items-baseline{align-items:baseline !important}.k-align-items-first-baseline{align-items:first baseline}.\!k-align-items-first-baseline{align-items:first baseline !important}.k-align-items-last-baseline{align-items:last baseline}.\!k-align-items-last-baseline{align-items:last baseline !important}.k-align-items-self-start{align-items:self-start}.\!k-align-items-self-start{align-items:self-start !important}.k-align-items-self-end{align-items:self-end}.\!k-align-items-self-end{align-items:self-end !important}.k-flex-row,.k-d-flex-row{flex-direction:row}.\!k-flex-row,.\!k-d-flex-row,.\!k-d-flex-col{flex-direction:row !important}.k-flex-row-reverse{flex-direction:row-reverse}.\!k-flex-row-reverse{flex-direction:row-reverse !important}.k-flex-col,.k-flex-column,.k-d-flex-col{flex-direction:column}.\!k-flex-col{flex-direction:column !important}.k-flex-col-reverse,.k-flex-column-reverse{flex-direction:column-reverse}.\!k-flex-col-reverse{flex-direction:column-reverse !important}.k-flex-1{flex:1 1 0%}.\!k-flex-1{flex:1 1 0% !important}.k-flex-auto{flex:1 1 auto}.\!k-flex-auto{flex:1 1 auto !important}.k-flex-initial{flex:0 1 auto}.\!k-flex-initial{flex:0 1 auto !important}.k-flex-none{flex:none}.\!k-flex-none{flex:none !important}.k-flex-wrap{flex-wrap:wrap}.\!k-flex-wrap{flex-wrap:wrap !important}.k-flex-wrap-reverse{flex-wrap:wrap-reverse}.\!k-flex-wrap-reverse{flex-wrap:wrap-reverse !important}.k-flex-nowrap{flex-wrap:nowrap}.\!k-flex-nowrap{flex-wrap:nowrap !important}.k-resize{resize:both}.\!k-resize{resize:both !important}.k-resize-none{resize:none}.\!k-resize-none{resize:none !important}.k-resize-x{resize:horizontal}.\!k-resize-x{resize:horizontal !important}.k-resize-y{resize:vertical}.\!k-resize-y{resize:vertical !important}.k-checkbox{margin:0;padding:0;line-height:initial;border-width:1px;border-style:solid;outline:0;background-position:center;background-repeat:no-repeat;background-size:contain;display:inline-block;flex:none;vertical-align:middle;position:relative;cursor:pointer;-webkit-appearance:none}.k-checkbox::before{content:"";display:block;width:100%;height:100%;mask-repeat:no-repeat}.k-checkbox:checked::before,.k-checkbox.k-checked::before{background-color:currentColor;mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M3,8 l3,3 l7-7'/%3e%3c/svg%3e")}.k-checkbox:indeterminate::before,.k-checkbox.k-indeterminate::before{background-color:currentColor;mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ff6358' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M4,8 h8'/%3e%3c/svg%3e")}.k-checkbox-wrap{flex:none;display:inline-flex;flex-flow:row nowrap;gap:0;align-items:center;align-self:flex-start;vertical-align:middle;position:relative}.k-checkbox-wrap::before{content:"​";width:0px;overflow:hidden;flex:none;display:inline-block;vertical-align:top}.k-checkbox-label{margin:0;padding:0;display:inline-flex;align-items:flex-start;gap:var(--kendo-spacing-1, 0.25rem);vertical-align:middle;position:relative;cursor:pointer}.k-checkbox-label .k-ripple{visibility:hidden !important}.k-checkbox+.k-label,.k-checkbox-wrap+.k-label,.k-checkbox+.k-checkbox-label,.k-checkbox-wrap+.k-checkbox-label{display:inline;margin-inline-start:var(--kendo-spacing-1, 0.25rem)}.k-checkbox-label:empty{display:none !important}.k-checkbox-label.k-no-text{min-width:1px}.k-checkbox-list{margin:0;padding:0;display:flex;flex-flow:column nowrap;gap:0;list-style:none}.k-checkbox-item,.k-checkbox-list-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-0, 0px);display:flex;flex-flow:row nowrap;align-items:center;align-content:center;gap:var(--kendo-spacing-1, 0.25rem)}.k-checkbox-item .k-checkbox-label,.k-checkbox-list-item .k-checkbox-label{margin:0}.k-checkbox-list-horizontal,.k-checkbox-list.k-list-horizontal{display:flex;flex-flow:row wrap;gap:var(--kendo-spacing-4, 1rem)}.k-ripple-container .k-checkbox::after{content:"";display:block;position:absolute;left:50%;top:50%;border-radius:100%;z-index:-1;transition:opacity 100ms linear,transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%) scale(0);transform-origin:center center}.k-ripple-container .k-checkbox:focus,.k-ripple-container .k-checkbox.k-focus{box-shadow:none !important}.k-ripple-container .k-checkbox:disabled::after,.k-ripple-container .k-checkbox.k-disabled::after{display:none}.k-checkbox-sm{width:var(--kendo-spacing-3, 0.75rem);height:var(--kendo-spacing-3, 0.75rem)}.k-checkbox-sm::before{font-size:var(--kendo-spacing-2\.5, 0.625rem)}.k-ripple-container .k-checkbox-sm::after{width:300%;height:300%}.k-checkbox-md{width:var(--kendo-spacing-4, 1rem);height:var(--kendo-spacing-4, 1rem)}.k-checkbox-md::before{font-size:var(--kendo-spacing-3\.5, 0.875rem)}.k-ripple-container .k-checkbox-md::after{width:300%;height:300%}.k-checkbox-lg{width:var(--kendo-spacing-5, 1.25rem);height:var(--kendo-spacing-5, 1.25rem)}.k-checkbox-lg::before{font-size:var(--kendo-spacing-4\.5, 1.125rem)}.k-ripple-container .k-checkbox-lg::after{width:300%;height:300%}.k-checkbox{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-surface-alt, #ffffff)}.k-checkbox:focus,.k-checkbox.k-focus{box-shadow:0 0 0 2px rgba(0,0,0,.06)}.k-checkbox:indeterminate,.k-checkbox.k-indeterminate{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-primary, #1274AC);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-checkbox:checked,.k-checkbox.k-checked{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-checkbox:checked:focus,.k-checkbox.k-checked.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-checkbox.k-invalid{border-color:var(--kendo-color-error, #D51923)}.k-checkbox.k-invalid+.k-checkbox-label{color:var(--kendo-color-error, #D51923)}.k-checkbox-wrap .k-ripple-blob{color:var(--kendo-color-primary, #1274AC);opacity:.25}.k-ripple-container .k-checkbox::after{background:var(--kendo-color-primary, #1274AC);opacity:.25}.k-listbox{width:10em;height:200px;border-width:0;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);vertical-align:top;background-color:rgba(0,0,0,0);display:inline-flex;gap:var(--kendo-spacing-2, 0.5rem);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-listbox .k-listbox-actions{display:flex;gap:var(--kendo-spacing-2, 0.5rem)}.k-listbox.k-listbox-actions-left,.k-listbox.k-listbox-actions-right{flex-direction:row}.k-listbox.k-listbox-actions-left .k-listbox-actions,.k-listbox.k-listbox-actions-right .k-listbox-actions{flex-direction:column}.k-listbox.k-listbox-actions-right{flex-direction:row-reverse}.k-listbox.k-listbox-actions-top,.k-listbox.k-listbox-actions-bottom{flex-direction:column}.k-listbox.k-listbox-actions-top .k-listbox-actions,.k-listbox.k-listbox-actions-bottom .k-listbox-actions{flex-direction:row}.k-listbox.k-listbox-actions-bottom{flex-direction:column-reverse}.k-listbox .k-list-scroller{width:100%;min-height:0;height:inherit;border-width:1px;border-style:solid;box-sizing:border-box;display:flex;flex-flow:column nowrap}.k-listbox .k-list-scroller .k-list-scroller{border-width:0}.k-listbox .k-list-scroller .k-list{height:inherit;background:rgba(0,0,0,0)}.k-listbox .k-drop-hint{border-top-width:1px;border-top-style:solid}.k-listbox .k-ghost{opacity:.5}.k-item{cursor:default}.k-listbox .k-list-scroller{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-listbox .k-drop-hint{border-top-color:var(--kendo-color-primary, #1274AC)}.k-progressbar{border-radius:var(--kendo-border-radius-md, 0.25rem);--kendo-progressbar-value: 0;border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-xs, normal);display:inline-grid;vertical-align:middle;position:relative;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-progressbar *,.k-progressbar *::before,.k-progressbar *::after{box-sizing:border-box}.k-progressbar>.k-progressbar-value{border-width:0;border-style:solid;display:flex;overflow:hidden;grid-column:1/-1;grid-row:1/-1}.k-progressbar>.k-progressbar-chunks{border-width:inherit;border-style:inherit;white-space:nowrap;display:flex;align-items:stretch;flex:1;gap:1px;grid-column:1/-1;grid-row:1/-1}.k-progressbar .k-progressbar-chunk{display:block;border-width:0;flex:1}.k-progress-status-wrap{width:100%;height:100%;display:flex;align-items:center;flex-shrink:0;grid-column:1/-1;grid-row:1/-1}.k-progress-status-wrap.k-progress-start{justify-content:flex-start}.k-progress-status-wrap.k-progress-center{justify-content:center}.k-progress-status-wrap.k-progress-end{justify-content:flex-end}.k-progress-status{padding-block:0;padding-inline:var(--kendo-spacing-2, 0.5rem);min-width:10px;text-align:center;display:inline-block;white-space:nowrap}.k-progressbar-horizontal{width:100%;height:var(--kendo-progressbar-height, 22px);grid-template-columns:1fr;grid-template-rows:100%}.k-progressbar-horizontal .k-progress-status-wrap{flex-direction:row}.k-progressbar-horizontal>.k-progressbar-value{width:calc(var(--kendo-progressbar-value, 0)*1%);flex-direction:row}.k-progressbar-horizontal>.k-progressbar-value>.k-progress-status-wrap{width:calc(10000%/var(--kendo-progressbar-value, 1))}.k-progressbar-horizontal>.k-progressbar-chunks{flex-direction:row}.k-progressbar-horizontal.k-progressbar-reverse>.k-progressbar-value{flex-direction:row-reverse;justify-self:flex-end}.k-progressbar-horizontal.k-progressbar-reverse>.k-progressbar-chunks{flex-direction:row-reverse}.k-progressbar-vertical{width:var(--kendo-progressbar-height, 22px);height:27em;grid-template-columns:100%;grid-template-rows:1fr}.k-progressbar-vertical .k-progress-status-wrap{flex-direction:column-reverse}.k-progressbar-vertical .k-progress-status{writing-mode:vertical-lr}.k-progressbar-vertical>.k-progressbar-value{height:calc(var(--kendo-progressbar-value, 0)*1%);flex-direction:column-reverse;align-self:flex-end;align-items:flex-end}.k-progressbar-vertical>.k-progressbar-value>.k-progress-status-wrap{height:calc(10000%/var(--kendo-progressbar-value, 1))}.k-progressbar-vertical>.k-progressbar-chunks{flex-direction:column-reverse}.k-progressbar-vertical.k-progressbar-reverse{flex-direction:column}.k-progressbar-vertical.k-progressbar-reverse>.k-progressbar-value{flex-direction:column;align-self:flex-start}.k-progressbar-vertical.k-progressbar-reverse>.k-progressbar-chunks{flex-direction:column}.k-progressbar-indeterminate .k-progress-status-wrap,.k-progressbar-indeterminate .k-progressbar-value,.k-progressbar-indeterminate .k-progressbar-chunk{display:none}.telerik-blazor.k-progressbar-horizontal>.k-progressbar-value,.telerik-blazor.k-progressbar-horizontal>.k-progressbar-value>.k-progress-status-wrap{transition:width .1s ease-in-out}.k-rtl .k-progressbar,.k-progressbar[dir=rtl]{direction:rtl}.k-circular-progressbar{display:inline-block;text-align:start;position:relative}.k-circular-progressbar-surface{height:100%}.k-circular-progressbar-surface>div{width:100%;height:100%}.k-circular-progressbar-surface svg{width:100%;height:100%}.k-circular-progressbar-scale{fill:none}.k-circular-progressbar-arc{transform-box:fill-box;transform-origin:center center;transform:rotate(-90deg);stroke-linecap:round;fill:none}.k-circular-progressbar-label{position:absolute;text-align:center;padding:0;margin:0}@keyframes kendo-progressbar-indeterminate-animation{from{background-position:0 0}to{background-position:22px 0}}.k-progressbar{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-subtle, #ebebeb)}.k-progressbar .k-selected{border-color:var(--kendo-color-primary-active, #106697);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-chunk-progressbar{background-color:rgba(0,0,0,0)}.k-progressbar-chunk{background-color:var(--kendo-color-base-subtle, #ebebeb)}.k-progressbar-chunk .k-selected{background-color:var(--kendo-color-primary, #1274AC)}.k-progressbar-indeterminate{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-subtle, #ebebeb);background-image:linear-gradient(45deg, color-mix(in srgb, var(--kendo-color-base-emphasis, #c2c2c2) 55%, transparent) 25%, transparent 25%, transparent 50%, color-mix(in srgb, var(--kendo-color-base-emphasis, #c2c2c2) 55%, transparent) 50%, color-mix(in srgb, var(--kendo-color-base-emphasis, #c2c2c2) 55%, transparent) 75%, transparent 75%, transparent);background-size:22px 22px;animation:kendo-progressbar-indeterminate-animation 1s linear infinite}.k-circular-progressbar-scale{stroke:var(--kendo-color-base-subtle, #ebebeb)}.k-circular-progressbar-arc{stroke:var(--kendo-color-primary, #1274AC);transition:stroke .5s ease}.k-radio{border-radius:50%;margin:0;padding:0;line-height:initial;border-width:1px;border-style:solid;outline:0;box-sizing:border-box;background-position:center;background-repeat:no-repeat;background-size:contain;display:inline-block;flex:none;vertical-align:middle;position:relative;cursor:pointer;-webkit-appearance:none}.k-radio::before{content:"";display:block;width:100%;height:100%;mask-repeat:no-repeat}.k-radio:checked::before,.k-radio.k-checked::before{background-color:currentColor;mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3e%3ccircle cx='50%25' cy='50%25' r='4' fill='%23ffffff'/%3e%3c/svg%3e")}.k-radio-wrap{flex:none;display:inline-flex;flex-flow:row nowrap;gap:0;align-items:center;align-self:start;vertical-align:middle;position:relative}.k-radio-wrap::before{content:"​";width:0px;overflow:hidden;flex:none;display:inline-block;vertical-align:top}.k-radio-label{margin:0;padding:0;display:inline-flex;align-items:flex-start;gap:var(--kendo-spacing-1, 0.25rem);vertical-align:middle;position:relative;cursor:pointer}.k-radio-label .k-ripple{visibility:hidden !important}.k-radio+.k-label,.k-radio-wrap+.k-label,.k-radio+.k-radio-label,.k-radio-wrap+.k-radio-label{display:inline;margin-inline-start:var(--kendo-spacing-1, 0.25rem)}.k-radio-label:empty{display:none !important}.k-radio-label.k-no-text{min-width:1px}.k-radio-list{margin:0;padding:0;display:flex;flex-flow:column nowrap;gap:0;list-style:none}.k-radio-item,.k-radio-list-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-0, 0px);display:flex;flex-flow:row nowrap;align-items:center;align-content:center;gap:var(--kendo-spacing-1, 0.25rem)}.k-radio-item .k-radio-label,.k-radio-list-item .k-radio-label{margin:0}.k-radio-list-horizontal,.k-radio-list.k-list-horizontal{display:flex;flex-flow:row wrap;gap:var(--kendo-spacing-4, 1rem)}.k-ripple-container .k-radio::after{content:"";display:block;position:absolute;left:50%;top:50%;border-radius:100%;z-index:-1;transition:opacity 100ms linear,transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%) scale(0);transform-origin:center center}.k-ripple-container .k-radio:focus,.k-ripple-container .k-radio.k-focus{box-shadow:none !important}.k-ripple-container .k-radio:disabled::after,.k-ripple-container .k-radio.k-disabled::after{display:none}.k-ripple-container .k-radio:disabled::after,.k-ripple-container .k-radio.k-disabled::after{display:none}.k-radio-sm{width:var(--kendo-spacing-3, 0.75rem);height:var(--kendo-spacing-3, 0.75rem)}.k-radio-sm::before{font-size:var(--kendo-spacing-2\.5, 0.625rem)}.k-ripple-container .k-radio-sm::after{width:300%;height:300%}.k-radio-md{width:var(--kendo-spacing-4, 1rem);height:var(--kendo-spacing-4, 1rem)}.k-radio-md::before{font-size:var(--kendo-spacing-3\.5, 0.875rem)}.k-ripple-container .k-radio-md::after{width:300%;height:300%}.k-radio-lg{width:var(--kendo-spacing-5, 1.25rem);height:var(--kendo-spacing-5, 1.25rem)}.k-radio-lg::before{font-size:var(--kendo-spacing-4\.5, 1.125rem)}.k-ripple-container .k-radio-lg::after{width:300%;height:300%}.k-radio{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-surface-alt, #ffffff)}.k-radio:focus,.k-radio.k-focus{box-shadow:0 0 0 2px rgba(0,0,0,.06)}.k-radio.k-invalid,.k-radio.ng-invalid.ng-touched,.k-radio.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-radio.k-invalid+.k-radio-label,.k-radio.ng-invalid.ng-touched+.k-radio-label,.k-radio.ng-invalid.ng-dirty+.k-radio-label{color:var(--kendo-color-error, #D51923)}.k-radio:checked,.k-radio.k-checked{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-radio:checked:focus,.k-radio.k-checked.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-ripple-container .k-radio::after{background:var(--kendo-color-primary, #1274AC);opacity:.25}.k-slider{border:0;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);background:none;display:inline-flex;align-items:center;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-slider *,.k-slider *::before,.k-slider *::after{box-sizing:border-box}.k-slider .k-label{width:auto;font-size:.92em;line-height:1;white-space:nowrap;position:absolute}.k-slider .k-tick,.k-slider .k-slider-track{cursor:pointer}.k-slider .k-tick{background-color:rgba(0,0,0,0);background-position:center center;background-repeat:no-repeat;margin:0;padding:0;position:relative}.k-slider.k-disabled .k-tick,.k-slider.k-disabled .k-slider-track,.k-slider.k-disabled .k-draghandle{cursor:default}.k-slider{width:min-content;height:min-content;gap:7px}.k-slider .k-button{flex:none}.k-slider .k-slider-track-wrap{flex:1 1 auto;display:flex;flex-flow:inherit;position:relative;touch-action:none}.k-slider .k-slider-track-wrap .k-slider-items{margin:0;padding:0;list-style:none;flex:1 1 100%;display:flex;flex-flow:inherit;justify-content:space-between;-webkit-user-select:none;user-select:none}.k-slider .k-slider-track-wrap .k-tick{flex:0 0 1px}.k-slider .k-slider-track-wrap .k-tick-horizontal{width:1px;min-height:100%}.k-slider .k-slider-track-wrap .k-tick-vertical{width:100%;min-height:1px}.k-slider .k-slider-track-wrap .k-draghandle{position:absolute}.k-slider-horizontal .k-slider-track-wrap{height:26px}.k-slider-horizontal .k-slider-track-wrap .k-slider-track{width:100%}.k-slider-horizontal .k-slider-track-wrap .k-draghandle{top:50%;transform:translate(-50%, -50%)}.k-slider-horizontal .k-slider-track-wrap .k-draghandle:focus,.k-slider-horizontal .k-slider-track-wrap .k-draghandle:active{transform:translate(-50%, -50%) scale(1)}.k-slider-horizontal .k-slider-track-wrap .k-slider-selection{width:calc((var(--kendo-slider-end, 0) - var(--kendo-slider-start, 0))*1%);inset-inline-start:calc(var(--kendo-slider-start, 0)*1%)}.k-slider-horizontal .k-slider-track-wrap .k-draghandle-start{inset-inline-start:calc(var(--kendo-slider-start, 0)*1%)}.k-slider-horizontal .k-slider-track-wrap .k-draghandle-end{inset-inline-start:calc(var(--kendo-slider-end, 0)*1%)}.k-slider-vertical .k-slider-track-wrap{width:26px}.k-slider-vertical .k-slider-track-wrap .k-slider-track{height:100%}.k-slider-vertical .k-slider-track-wrap .k-draghandle{left:50%;transform:translate(-50%, 50%)}.k-slider-vertical .k-slider-track-wrap .k-draghandle:focus,.k-slider-vertical .k-slider-track-wrap .k-draghandle:active{transform:translate(-50%, 50%) scale(1)}.k-slider-vertical .k-slider-track-wrap .k-slider-selection{bottom:calc(var(--kendo-slider-start, 0)*1%);height:calc((var(--kendo-slider-end, 0) - var(--kendo-slider-start, 0))*1%)}.k-slider-vertical .k-slider-track-wrap .k-draghandle-start{bottom:calc(var(--kendo-slider-start, 0)*1%)}.k-slider-vertical .k-slider-track-wrap .k-draghandle-end{bottom:calc(var(--kendo-slider-end, 0)*1%)}.k-slider-vertical{height:200px;flex-flow:column-reverse nowrap}.k-slider-vertical .k-tick{text-align:end;margin-left:2px}.k-slider-vertical .k-slider-topleft .k-tick{text-align:start}.k-slider-vertical .k-tick{background-position:-94px center}.k-slider-vertical .k-slider-topleft .k-tick{background-position:-124px center}.k-slider-vertical .k-slider-bottomright .k-tick{background-position:-154px center}.k-slider-vertical .k-tick-large{display:flex;align-items:center;background-position:-4px center}.k-slider-vertical .k-slider-topleft .k-tick-large{background-position:-34px center}.k-slider-vertical .k-slider-bottomright .k-tick-large{background-position:-64px center}.k-slider-vertical .k-first{background-position:-94px 100%}.k-slider-vertical .k-tick-large.k-first{background-position:-4px 100%}.k-slider-vertical .k-slider-topleft .k-first{background-position:-124px 100%}.k-slider-vertical .k-slider-topleft .k-tick-large.k-first{background-position:-34px 100%}.k-slider-vertical .k-slider-bottomright .k-first{background-position:-154px 100%}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-first{background-position:-64px 100%}.k-slider-vertical .k-last{background-position:-94px 0}.k-slider-vertical .k-tick-large.k-last{background-position:-4px 0}.k-slider-vertical .k-slider-topleft .k-last{background-position:-124px 0}.k-slider-vertical .k-slider-topleft .k-tick-large.k-last{background-position:-34px 0}.k-slider-vertical .k-slider-bottomright .k-last{background-position:-154px 0}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-last{background-position:-64px 0}.k-slider-vertical .k-label{text-align:start;inset-inline-start:120%;top:50%;transform:translateY(-50%)}.k-slider-vertical .k-first .k-label{top:100%}.k-slider-vertical .k-last .k-label{top:0}.k-slider-vertical .k-slider-topleft .k-label{inset-inline-start:auto;inset-inline-end:120%}.k-slider-horizontal{width:200px;flex-flow:row nowrap}.k-slider-horizontal .k-tick{background-position:center -92px}.k-slider-horizontal .k-slider-topleft .k-tick{background-position:center -122px}.k-slider-horizontal .k-slider-bottomright .k-tick{background-position:center -152px}.k-slider-horizontal .k-tick-large{background-position:center -2px}.k-slider-horizontal .k-slider-topleft .k-tick-large{background-position:center -32px}.k-slider-horizontal .k-slider-bottomright .k-tick-large{background-position:center -62px}.k-slider-horizontal .k-first{background-position:0 -92px}.k-slider-horizontal .k-tick-large.k-first{background-position:0 -2px}.k-slider-horizontal .k-slider-topleft .k-first{background-position:0 -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-first{background-position:0 -32px}.k-slider-horizontal .k-slider-bottomright .k-first{background-position:0 -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-first{background-position:0 -62px}.k-slider-horizontal .k-last{background-position:100% -92px}.k-slider-horizontal .k-tick-large.k-last{background-position:100% -2px}.k-slider-horizontal .k-slider-topleft .k-last{background-position:100% -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-last{background-position:100% -32px}.k-slider-horizontal .k-slider-bottomright .k-last{background-position:100% -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-last{background-position:100% -62px}.k-slider-horizontal .k-label{inset-inline-start:50%;bottom:-1.2em;transform:translateX(-50%)}.k-slider-horizontal .k-first .k-label{inset-inline-start:0}.k-slider-horizontal .k-last .k-label{inset-inline-start:100%}.k-slider-horizontal .k-slider-topleft .k-label{top:-1.2em}.k-slider-track,.k-slider-selection{margin:0;padding:0;position:absolute}.k-slider-horizontal :is(.k-slider-track,.k-slider-selection){height:4px;left:0;margin-top:-2px;top:50%}.k-slider-vertical :is(.k-slider-track,.k-slider-selection){bottom:0;left:50%;margin-left:-2px;width:4px}.k-draghandle{background-color:rgba(0,0,0,0);background-repeat:no-repeat;border-style:solid;border-width:1px;outline:0;position:absolute;text-align:center;text-decoration:none;width:14px;height:14px}.k-draghandle.k-pressed{transition:none}.k-slider-selection.k-pressed{transition:none}.k-slider-transitions.k-slider-horizontal .k-draghandle{transition:inset-inline-start .3s ease-out,background-color .3s ease-out,transform .4s cubic-bezier(0.25, 0.8, 0.25, 1)}.k-slider-transitions.k-slider-horizontal .k-slider-selection{transition:width .3s ease-out}.k-slider-transitions.k-slider-vertical .k-draghandle{transition:bottom .3s ease-out,background-color .3s ease-out,transform .4s cubic-bezier(0.25, 0.8, 0.25, 1)}.k-slider-transitions.k-slider-vertical .k-slider-selection{transition:height .3s ease-out}.k-slider.k-readonly .k-button,.k-slider.k-readonly .k-slider-track,.k-slider.k-readonly .k-tick,.k-slider.k-readonly .k-draghandle{pointer-events:none}.k-slider-tooltip .k-callout-n,.k-slider-tooltip .k-callout-s{margin-inline-start:-6px / 2}.k-slider-tooltip .k-callout-w,.k-slider-tooltip .k-callout-e{margin-top:-6px / 2}.k-slider-rtl.k-slider-horizontal .k-draghandle,.k-slider-horizontal.k-slider[dir=rtl] .k-draghandle,[dir=rtl] .k-slider-horizontal.k-slider .k-draghandle,.k-slider-horizontal.k-slider.k-rtl .k-draghandle,.k-rtl .k-slider-horizontal.k-slider .k-draghandle{transform:translate(50%, -50%)}.k-slider-rtl.k-slider-horizontal .k-draghandle:focus,.k-slider-horizontal.k-slider[dir=rtl] .k-draghandle:focus,[dir=rtl] .k-slider-horizontal.k-slider .k-draghandle:focus,.k-slider-horizontal.k-slider.k-rtl .k-draghandle:focus,.k-rtl .k-slider-horizontal.k-slider .k-draghandle:focus,.k-slider-rtl.k-slider-horizontal .k-draghandle:active,.k-slider-horizontal.k-slider[dir=rtl] .k-draghandle:active,[dir=rtl] .k-slider-horizontal.k-slider .k-draghandle:active,.k-slider-horizontal.k-slider.k-rtl .k-draghandle:active,.k-rtl .k-slider-horizontal.k-slider .k-draghandle:active{transform:translate(50%, -50%) scale(1)}.k-slider-rtl.k-slider-horizontal .k-label,.k-slider-horizontal.k-slider[dir=rtl] .k-label,[dir=rtl] .k-slider-horizontal.k-slider .k-label,.k-slider-horizontal.k-slider.k-rtl .k-label,.k-rtl .k-slider-horizontal.k-slider .k-label{transform:translateX(50%)}.k-slider kendo-resize-sensor{position:absolute}.k-slider{color:var(--kendo-color-on-app-surface, #424242)}.k-slider .k-slider-track,.k-slider .k-slider-selection{border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-slider .k-slider-track{background-color:var(--kendo-color-base-emphasis, #c2c2c2)}.k-slider .k-slider-selection{background-color:var(--kendo-color-primary, #1274AC)}.k-slider .k-draghandle{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC);border-radius:50%}.k-slider .k-draghandle:hover,.k-slider .k-draghandle.k-hover{border-color:var(--kendo-color-primary, #1274AC);background-color:var(--kendo-color-primary-hover, #116fa5)}.k-slider .k-draghandle:active,.k-slider .k-draghandle.k-active,.k-slider .k-draghandle.k-pressed{border-color:var(--kendo-color-primary-active, #106697);background-color:var(--kendo-color-primary-active, #106697)}.k-slider .k-draghandle:focus,.k-slider .k-draghandle.k-focus{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-slider.k-focus .k-draghandle{box-shadow:0 0 0 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-slider-horizontal .k-tick{background-image:url(data:image/gif;base64,R0lGODlhAQC0AIABALi4uAAAACH5BAEAAAEALAAAAAABALQAAAIWjIGJxqzazlux2ovlzND2rAHgSIZWAQA7)}.k-slider-vertical .k-tick{background-image:url(data:image/gif;base64,R0lGODlhtAABAIABALi4uAAAACH5BAEAAAEALAAAAAC0AAEAAAIWjIGJxqzazlux2ovlzND2rAHgSIZWAQA7)}.k-calendar{inline-size:var(--INTERNAL--kendo-calendar-width, min-content);block-size:var(--INTERNAL--kendo-calendar-height, min-content);border-width:1px;border-style:solid;border-radius:0;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);position:relative;overflow:hidden;display:inline-flex;flex-flow:column nowrap;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-calendar>.k-calendar{border:0}.k-calendar-table{margin-block:0;margin-inline:auto;border-width:0;border-color:inherit;border-spacing:0;border-collapse:separate;table-layout:fixed;text-align:center;outline:0;display:table;position:relative;z-index:1}.k-calendar-caption,.k-calendar-caption.k-calendar-th,.k-calendar .k-meta-header,.k-calendar .k-month-header{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);height:32px;box-sizing:border-box;text-transform:none;text-align:start;font-weight:var(--kendo-font-weight-bold, normal);cursor:default}.k-calendar-th,.k-calendar-td{border-width:0;padding:0;text-align:center;border-style:solid;border-color:inherit;font-weight:normal;cursor:default}.k-calendar-th{inline-size:var(--INTERNAL--kendo-calendar-cell-size, 32px);block-size:var(--INTERNAL--kendo-calendar-cell-size, 32px);font-size:var(--kendo-font-size-sm, inherit);line-height:2;text-transform:uppercase}.k-calendar-td{border-radius:var(--kendo-border-radius-md, 0.25rem);inline-size:var(--INTERNAL--kendo-calendar-cell-size, min-content);block-size:var(--INTERNAL--kendo-calendar-cell-size, min-content);border-color:rgba(0,0,0,0)}.k-calendar-td.k-alt{font-size:.75rem}.k-calendar .k-calendar-cell-inner,.k-calendar .k-link{border-radius:var(--kendo-border-radius-md, 0.25rem);padding-inline:var(--INTERNAL--kendo-calendar-cell-padding-x, 0.25em);padding-block:var(--INTERNAL--kendo-calendar-cell-padding-y, 0.25em);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;white-space:normal;position:relative;overflow:hidden}.k-calendar .k-header{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border-bottom-width:1px;border-bottom-style:solid;display:flex;flex-flow:row nowrap;align-items:center;position:relative;z-index:2}.k-calendar-header{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);min-width:var(--INTERNAL--kendo-calendar-view-width, 256px);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}.k-calendar-header .k-calendar-nav{display:flex;flex-flow:row nowrap;align-items:center}.k-calendar-footer,.k-calendar .k-footer{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);text-align:center;clear:both}.k-calendar-view{margin:auto;padding-block:0;padding-inline:var(--kendo-spacing-1, 0.25rem);width:var(--INTERNAL--kendo-calendar-view-width, 256px);inline-size:var(--INTERNAL--kendo-calendar-view-width, 256px);min-height:224px;box-sizing:content-box;gap:var(--kendo-spacing-4, 1rem);position:relative;z-index:1;overflow:hidden}.k-calendar-view .k-today{font-weight:var(--kendo-font-weight-bold, normal)}.k-month-calendar .k-calendar-td,.k-calendar-monthview .k-calendar-td{width:var(--INTERNAL--kendo-calendar-cell-size, 32px);height:var(--INTERNAL--kendo-calendar-cell-size, 32px);inline-size:var(--INTERNAL--kendo-calendar-cell-size, 32px);block-size:var(--INTERNAL--kendo-calendar-cell-size, 32px)}.k-year-calendar .k-calendar-td,.k-calendar-yearview .k-calendar-td{width:var(--INTERNAL--kendo-calendar-cell-size, 64px);height:var(--INTERNAL--kendo-calendar-cell-size, 64px);inline-size:var(--INTERNAL--kendo-calendar-cell-size, 64px);block-size:var(--INTERNAL--kendo-calendar-cell-size, 64px)}.k-decade-calendar .k-calendar-td,.k-calendar-decadeview .k-calendar-td{width:var(--INTERNAL--kendo-calendar-cell-size, 64px);height:var(--INTERNAL--kendo-calendar-cell-size, 64px);inline-size:var(--INTERNAL--kendo-calendar-cell-size, 64px);block-size:var(--INTERNAL--kendo-calendar-cell-size, 64px)}.k-century-calendar .k-calendar-td,.k-calendar-centuryview .k-calendar-td{width:var(--INTERNAL--kendo-calendar-cell-size, 64px);height:var(--INTERNAL--kendo-calendar-cell-size, 64px);inline-size:var(--INTERNAL--kendo-calendar-cell-size, 64px);block-size:var(--INTERNAL--kendo-calendar-cell-size, 64px)}.k-century-calendar .k-calendar-cell-inner,.k-century-calendar .k-link,.k-calendar-centuryview .k-calendar-cell-inner,.k-calendar-centuryview .k-link{text-align:start}.k-popup .k-calendar{height:100%}.k-calendar-container,.k-datetime-container{padding:0}.k-calendar-container .k-calendar,.k-datetime-container .k-calendar{border-width:0}.k-calendar .k-content.k-scrollable,.k-calendar .k-calendar-content.k-scrollable{box-sizing:content-box;overflow-x:hidden;overflow-y:auto;display:block;padding-right:100px;padding-left:100px;margin-left:-100px;margin-right:calc(-100px - var(--kendo-scrollbar-width, 17px))}.k-calendar .k-scrollable-placeholder{position:absolute;z-index:-1;width:1px;top:0;right:0}.k-calendar-sm{--INTERNAL--kendo-calendar-view-width: 224px;--INTERNAL--kendo-calendar-cell-padding-x: var( --kendo-calendar-sm-cell-padding-x, var(--kendo-spacing-0\.5, 0.125rem) );--INTERNAL--kendo-calendar-cell-padding-y: var( --kendo-calendar-sm-cell-padding-y, var(--kendo-spacing-0\.5, 0.125rem) );font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-calendar-sm.k-month-calendar,.k-calendar-sm .k-calendar-monthview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-sm-month-cell-size, 28px )}.k-calendar-sm.k-year-calendar,.k-calendar-sm .k-calendar-yearview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-sm-year-cell-size, 56px )}.k-calendar-sm.k-decade-calendar,.k-calendar-sm .k-calendar-decadeview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-sm-decade-cell-size, 56px )}.k-calendar-sm.k-century-calendar,.k-calendar-sm .k-calendar-centuryview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-sm-century-cell-size, 56px )}.k-calendar-md{--INTERNAL--kendo-calendar-view-width: 256px;--INTERNAL--kendo-calendar-cell-padding-x: var( --kendo-calendar-md-cell-padding-x, var(--kendo-spacing-1, 0.25rem) );--INTERNAL--kendo-calendar-cell-padding-y: var( --kendo-calendar-md-cell-padding-y, var(--kendo-spacing-1, 0.25rem) );font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-calendar-md.k-month-calendar,.k-calendar-md .k-calendar-monthview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-md-month-cell-size, 32px )}.k-calendar-md.k-year-calendar,.k-calendar-md .k-calendar-yearview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-md-year-cell-size, 64px )}.k-calendar-md.k-decade-calendar,.k-calendar-md .k-calendar-decadeview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-md-decade-cell-size, 64px )}.k-calendar-md.k-century-calendar,.k-calendar-md .k-calendar-centuryview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-md-century-cell-size, 64px )}.k-calendar-lg{--INTERNAL--kendo-calendar-view-width: 320px;--INTERNAL--kendo-calendar-cell-padding-x: var( --kendo-calendar-lg-cell-padding-x, var(--kendo-spacing-2, 0.5rem) );--INTERNAL--kendo-calendar-cell-padding-y: var( --kendo-calendar-lg-cell-padding-y, var(--kendo-spacing-2, 0.5rem) );font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-calendar-lg.k-month-calendar,.k-calendar-lg .k-calendar-monthview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-lg-month-cell-size, 40px )}.k-calendar-lg.k-year-calendar,.k-calendar-lg .k-calendar-yearview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-lg-year-cell-size, 80px )}.k-calendar-lg.k-decade-calendar,.k-calendar-lg .k-calendar-decadeview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-lg-decade-cell-size, 80px )}.k-calendar-lg.k-century-calendar,.k-calendar-lg .k-calendar-centuryview{--INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-lg-century-cell-size, 80px )}.k-calendar-infinite{box-sizing:content-box;display:inline-flex;flex-flow:row nowrap}.k-calendar-infinite .k-calendar-view{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-4, 1rem);height:288px;flex:0 0 auto;display:flex;flex-flow:column nowrap;gap:0;overflow:hidden}.k-calendar-infinite .k-calendar-view .k-content.k-scrollable{position:relative}.k-calendar-infinite .k-calendar-view::after{display:block;position:absolute;bottom:0;content:"​";height:0;line-height:0;z-index:1;width:150%;left:-25%;box-shadow:0 0 32px 16px var(--kendo-color-surface-alt, #ffffff)}.k-calendar-infinite .k-calendar-header{margin-left:calc(var(--kendo-spacing-4, 1rem)*-1);margin-right:calc(var(--kendo-spacing-4, 1rem)*-1);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);width:auto;min-width:0}.k-calendar-infinite .k-calendar-weekdays{flex:0 0 auto}.k-calendar-navigation{width:5em;text-align:center;flex:0 0 auto;display:block;overflow:hidden;position:relative;z-index:1}.k-calendar-navigation::before,.k-calendar-navigation::after{display:block;position:absolute;content:"​";height:0;line-height:0;z-index:1;width:200%;left:-50%;box-shadow:0 0 6em 3em var(--kendo-color-surface, #fafafa)}.k-calendar-navigation::before{top:0}.k-calendar-navigation::after{bottom:0}.k-calendar-navigation .k-content,.k-calendar-navigation .k-calendar-content{background:rgba(0,0,0,0);height:auto;position:absolute;top:0;left:0;bottom:0;right:0}.k-calendar-navigation .k-content ul,.k-calendar-navigation .k-calendar-content ul{width:5em}.k-calendar-navigation .k-content li,.k-calendar-navigation .k-calendar-content li{height:2em;line-height:2em;cursor:pointer;padding-block:0;padding-inline:1em;overflow:hidden;white-space:nowrap;text-overflow:clip}.k-calendar-navigation .k-calendar-navigation-marker{font-weight:bold}.k-calendar-navigation .k-calendar-navigation-highlight{width:100%;border-width:1px 0;border-style:solid;height:2em;box-sizing:border-box;position:absolute;top:50%;right:0;transform:translateY(-50%)}.k-calendar-range{width:auto}.k-calendar-range .k-calendar-view{width:auto;white-space:nowrap}.k-calendar-range .k-calendar-view::after{display:none}.k-calendar-range .k-calendar-view:focus{outline:0}.k-range-start{border-radius:var(--kendo-border-radius-lg, 0.375rem) 0 0 var(--kendo-border-radius-lg, 0.375rem)}.k-range-start .k-calendar-cell-inner,.k-range-start .k-link{border-color:inherit;border-radius:inherit}.k-range-end{border-radius:0 var(--kendo-border-radius-lg, 0.375rem) var(--kendo-border-radius-lg, 0.375rem) 0}.k-range-end .k-calendar-cell-inner,.k-range-end .k-link{border-color:inherit;border-radius:inherit}.k-range-mid{border-color:inherit;border-radius:0}.k-range-start.k-range-end{border-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-rtl .k-calendar .k-content.k-scrollable,.k-rtl .k-calendar .k-calendar-content.k-scrollable,[dir=rtl] .k-calendar .k-content.k-scrollable,[dir=rtl] .k-calendar .k-calendar-content.k-scrollable,.k-calendar.k-rtl .k-content.k-scrollable,.k-calendar.k-rtl .k-calendar-content.k-scrollable,.k-calendar[dir=rtl] .k-content.k-scrollable,.k-calendar[dir=rtl] .k-calendar-content.k-scrollable{padding-right:100px;padding-left:100px;margin-left:calc(-100px - var(--kendo-scrollbar-width, 17px));margin-right:-100px}.k-rtl .k-calendar .k-range-start,[dir=rtl] .k-calendar .k-range-start,.k-calendar.k-rtl .k-range-start,.k-calendar[dir=rtl] .k-range-start{border-radius:0 var(--kendo-border-radius-lg, 0.375rem) var(--kendo-border-radius-lg, 0.375rem) 0}.k-rtl .k-calendar .k-range-end,[dir=rtl] .k-calendar .k-range-end,.k-calendar.k-rtl .k-range-end,.k-calendar[dir=rtl] .k-range-end{border-radius:var(--kendo-border-radius-lg, 0.375rem) 0 0 var(--kendo-border-radius-lg, 0.375rem)}.k-calendar{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-calendar .k-header{border-color:inherit;color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa);box-shadow:0 1px 3px 1px rgba(0,0,0,.1)}.k-calendar .k-calendar-th,.k-calendar .k-calendar-caption,.k-calendar .k-meta-header,.k-calendar .k-month-header{color:var(--kendo-color-subtle, #666666)}.k-calendar .k-calendar-view .k-today{color:var(--kendo-color-primary, #1274AC)}.k-calendar .k-other-month{color:var(--kendo-color-subtle, #666666)}.k-calendar .k-alt{background-color:rgba(0,0,0,0);color:var(--kendo-color-subtle, #666666)}.k-calendar .k-calendar-td:hover .k-calendar-cell-inner,.k-calendar .k-calendar-td:hover .k-link,.k-calendar .k-calendar-td.k-hover .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-hover .k-link{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-calendar .k-calendar-td.k-selected .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-selected .k-link{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-calendar .k-calendar-td.k-selected:hover .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-selected:hover .k-link,.k-calendar .k-calendar-td.k-selected.k-hover .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-selected.k-hover .k-link{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary-hover, #116fa5)}.k-calendar .k-calendar-td:focus .k-calendar-cell-inner,.k-calendar .k-calendar-td:focus .k-link,.k-calendar .k-calendar-td.k-focus .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-focus .k-link{box-shadow:inset 0 0 0 2px rgba(0,0,0,.08)}.k-calendar .k-calendar-td.k-selected:focus .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-selected:focus .k-link,.k-calendar .k-calendar-td.k-selected.k-focus .k-calendar-cell-inner,.k-calendar .k-calendar-td.k-selected.k-focus .k-link{box-shadow:inset 0 0 0 2px rgba(0,0,0,.08)}.k-calendar .k-calendar-navigation{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa);box-shadow:inset -1px 0 var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-calendar .k-calendar-navigation li:hover,.k-calendar .k-calendar-navigation li.k-hover{color:var(--kendo-color-primary-hover, #116fa5)}.k-calendar .k-calendar-navigation-highlight{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-calendar .k-calendar-navigation-marker{color:currentColor}.k-calendar.k-invalid,.k-calendar.k-invalid:hover,.k-calendar.ng-invalid.ng-touched,.k-calendar.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-rtl .k-calendar .k-calendar-navigation,.k-calendar[dir=rtl] .k-calendar-navigation{box-shadow:inset 1px 0 var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-scheduler .k-calendar .k-other-month{color:var(--kendo-color-subtle, #666666);background-color:rgba(0,0,0,0)}.k-calendar .k-range-start,.k-calendar .k-range-end,.k-calendar .k-range-mid{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-calendar .k-range-start .k-calendar-cell-inner,.k-calendar .k-range-start .k-link,.k-calendar .k-range-end .k-calendar-cell-inner,.k-calendar .k-range-end .k-link{background-color:var(--kendo-color-primary, #1274AC)}.k-calendar .k-range-start.k-active .k-calendar-cell-inner,.k-calendar .k-range-start.k-active .k-link,.k-calendar .k-range-end.k-active .k-calendar-cell-inner,.k-calendar .k-range-end.k-active .k-link{box-shadow:inset 0 0 2px 2px rgba(0,0,0,.2)}.k-calendar .k-range-split-start,.k-calendar .k-range-split-end{position:relative}.k-calendar .k-range-split-start::after,.k-calendar .k-range-split-end::after{content:"";display:block;position:absolute;top:0;bottom:0;width:5px}.k-calendar .k-range-split-start::after{left:-5px;right:auto;background-image:linear-gradient(to left, color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent), transparent 100%)}.k-calendar .k-range-split-end::after{right:-5px;left:auto;background-image:linear-gradient(to right, color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent), transparent 100%)}.k-pointer-events-none{pointer-events:none}.\!k-pointer-events-none{pointer-events:none !important}.k-pointer-events-auto{pointer-events:auto}.\!k-pointer-events-auto{pointer-events:auto !important}.k-timeselector{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);position:relative;overflow:hidden;display:flex;flex-flow:column nowrap;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-popup>.k-timeselector{border-width:0}.k-time-header,.k-time-selector-header{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}.k-time-header .k-title,.k-time-header .k-time-selector-header-title,.k-time-selector-header .k-title,.k-time-selector-header .k-time-selector-header-title{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-weight:bold;display:inline-block}.k-time-header .k-time-now,.k-time-selector-header .k-time-now{border-width:0;line-height:inherit;cursor:pointer}.k-actions.k-time-fast-selection,.k-time-fast-selection.k-edit-buttons,.k-time-fast-selection.k-action-buttons,.k-time-fast-selection.k-columnmenu-actions,.k-time-fast-selection.k-form-buttons{margin-top:0}.k-time-list-container{display:flex;position:relative;flex:1 1 auto;overflow:hidden}.k-time-highlight,.k-time-list-highlight{width:100%;height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal) + var(--kendo-spacing-1, 0.25rem)*2);border-width:1px 0px;border-style:solid;box-sizing:border-box;position:absolute;top:calc(50% + (var(--kendo-font-size-sm, inherit))*(var(--kendo-line-height-lg, normal))/2);left:0;right:0;transform:translateY(-50%);z-index:1}.k-time-list-wrapper{min-width:4em;height:240px;box-sizing:content-box;display:inline-flex;flex-flow:column nowrap;align-items:stretch;overflow:hidden;position:relative;text-align:center;flex:1 1 auto}.k-time-list-wrapper .k-title{font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-lg, normal);font-weight:bold;text-align:center;text-transform:capitalize;display:block}.k-time-list-wrapper.k-focus::before,.k-time-list-wrapper.k-focus::after{display:block;content:"​";position:absolute;width:100%;left:0;pointer-events:none;height:calc(50% - var(--kendo-font-size, inherit)*var(--kendo-line-height, normal)/2 - var(--kendo-spacing-1, 0.25rem)*2/2);box-sizing:border-box;border-width:0;border-style:solid}.k-time-list-wrapper.k-focus::before{top:calc((var(--kendo-font-size-sm, inherit))*(var(--kendo-line-height-lg, normal)))}.k-time-list-wrapper.k-focus::after{bottom:0}.k-time-list{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1;position:relative;z-index:1;outline:0;overflow:hidden}.k-time-list::before,.k-time-list::after{display:block;position:absolute;content:"​";height:0;line-height:0;z-index:1;width:200%;left:-50%}.k-time-list::before{top:0}.k-time-list::after{bottom:0}.k-time-container,.k-time-list-content{position:relative;flex:1 1 auto;display:block;overflow-x:hidden;overflow-y:scroll;padding-right:100px;padding-left:100px;margin-left:-100px;margin-right:calc(-100px - var(--kendo-scrollbar-width, 17px))}.k-time-container>ul,.k-time-list-content>ul{height:auto;width:4em;margin:auto}.k-time-container .k-scrollable-placeholder,.k-time-list-content .k-scrollable-placeholder{position:absolute;width:1px;top:0;right:0}.k-time-list-item,.k-time-list .k-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-time-separator{width:0;height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal) + var(--kendo-spacing-1, 0.25rem)*2);align-self:center;display:inline-flex;justify-content:center;align-items:center;position:relative;z-index:11;top:calc((var(--kendo-font-size-sm, inherit))*(var(--kendo-line-height-lg, normal))/2)}.k-timeselector-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-timeselector-sm .k-time-highlight,.k-timeselector-sm .k-time-list-highlight{height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal) + var(--kendo-spacing-0\.5, 0.125rem)*2)}.k-timeselector-sm .k-time-separator{height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal) + var(--kendo-spacing-0\.5, 0.125rem)*2)}.k-timeselector-sm .k-time-list-item,.k-timeselector-sm .k-time-list .k-item{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-timeselector-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-timeselector-md .k-time-highlight,.k-timeselector-md .k-time-list-highlight{height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal) + var(--kendo-spacing-1, 0.25rem)*2)}.k-timeselector-md .k-time-separator{height:calc(var(--kendo-font-size, inherit)*var(--kendo-line-height, normal) + var(--kendo-spacing-1, 0.25rem)*2)}.k-timeselector-md .k-time-list-item,.k-timeselector-md .k-time-list .k-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-timeselector-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-timeselector-lg .k-time-highlight,.k-timeselector-lg .k-time-list-highlight{height:calc(var(--kendo-font-size-lg, inherit)*var(--kendo-line-height-lg, normal) + var(--kendo-spacing-2, 0.5rem)*2)}.k-timeselector-lg .k-time-separator{height:calc(var(--kendo-font-size-lg, inherit)*var(--kendo-line-height-lg, normal) + var(--kendo-spacing-2, 0.5rem)*2)}.k-timeselector-lg .k-time-list-item,.k-timeselector-lg .k-time-list .k-item{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-rtl .k-time-container,.k-rtl .k-time-list-content,[dir=rtl] .k-time-container,[dir=rtl] .k-time-list-content{padding-right:100px;padding-left:100px;margin-left:calc(-100px - var(--kendo-scrollbar-width, 17px));margin-right:-100px}.k-timeselector{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-time-header .k-title,.k-time-selector-header .k-title{color:unset}.k-time-header .k-time-now,.k-time-selector-header .k-time-now{color:var(--kendo-color-primary, #1274AC)}.k-time-header .k-time-now:hover,.k-time-selector-header .k-time-now:hover{color:var(--kendo-color-primary-hover, #116fa5)}.k-time-list-wrapper .k-title{color:var(--kendo-color-subtle, #666666)}.k-time-list-wrapper.k-focus .k-title{color:var(--kendo-color-on-app-surface, #424242)}.k-time-list-wrapper.k-focus::before,.k-time-list-wrapper.k-focus::after{background-color:rgba(0,0,0,.04)}.k-time-list::before,.k-time-list::after{box-shadow:0 0 3em 1.5em var(--kendo-color-surface-alt, #ffffff)}.k-time-list .k-item:hover{color:var(--kendo-color-primary, #1274AC)}.k-time-container{background:rgba(0,0,0,0)}.k-time-highlight{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-surface-alt, #ffffff)}.k-captcha{width:280px;box-sizing:border-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-2, 0.5rem)}.k-captcha *,.k-captcha *::before,.k-captcha *::after{box-sizing:border-box}.k-captcha-image-wrap{position:relative;gap:var(--kendo-spacing-2, 0.5rem)}.k-captcha-image-controls{position:relative;gap:var(--kendo-spacing-2, 0.5rem)}.k-captcha-image{width:100%;height:100%;overflow:hidden}.k-captcha-image>img{width:100%;height:100%;display:block;object-fit:cover}.k-captcha-loading .k-captcha-image{height:auto}.k-captcha-volume-control{height:100%}.k-captcha-validation-message{margin-top:calc(var(--kendo-spacing-2, 0.5rem)/2);font-size:var(--kendo-font-size-sm, inherit);font-style:italic}.k-captcha{border-color:var(--kendo-color-surface-alt, #ffffff);color:var(--kendo-color-surface-alt, #ffffff);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-pos-static,.k-static{position:static}.\!k-pos-static,.\!k-static{position:static !important}.k-pos-relative,.k-relative{position:relative}.\!k-pos-relative,.\!k-relative{position:relative !important}.k-pos-absolute,.k-absolute{position:absolute}.\!k-pos-absolute,.\!k-absolute{position:absolute !important}.k-pos-fixed,.k-fixed{position:fixed}.\!k-pos-fixed,.\!k-fixed{position:fixed !important}.k-pos-sticky,.k-sticky{position:sticky}.\!k-pos-sticky,.\!k-sticky{position:sticky !important}.k-colorpalette{border-width:0;box-sizing:border-box;outline:0;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:0;display:inline-flex;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-colorpalette *,.k-colorpalette *::before,.k-colorpalette *::after{box-sizing:border-box}.k-colorpalette-table{width:100%;height:100%;border-collapse:collapse;position:relative}.k-colorpalette-tile{width:var(--kendo-spacing-6, 1.5rem);height:var(--kendo-spacing-6, 1.5rem);box-sizing:border-box;overflow:hidden;cursor:pointer}.k-colorpalette-tile:hover,.k-colorpalette-tile.k-hover{position:relative;z-index:101}.k-colorpalette-tile:focus,.k-colorpalette-tile.k-focus,.k-colorpalette-tile.k-selected,.k-colorpalette-tile.k-selected:hover{position:relative;z-index:100}.k-colorpalette-sm .k-colorpalette-tile{width:var(--kendo-spacing-5\.5, 1.375rem);height:var(--kendo-spacing-5\.5, 1.375rem)}.k-colorpalette-md .k-colorpalette-tile{width:var(--kendo-spacing-6, 1.5rem);height:var(--kendo-spacing-6, 1.5rem)}.k-colorpalette-lg .k-colorpalette-tile{width:var(--kendo-spacing-8, 2rem);height:var(--kendo-spacing-8, 2rem)}.k-colorpalette-tile:focus,.k-colorpalette-tile.k-focus{box-shadow:0 0 3px 1px rgba(0,0,0,.3),inset 0 0 0 1px hsla(0,0%,100%,.5)}.k-colorpalette-tile:hover,.k-colorpalette-tile.k-hover{box-shadow:0 0 3px 1px rgba(0,0,0,.3),inset 0 0 0 1px hsla(0,0%,100%,.8)}.k-colorpalette-tile.k-selected,.k-colorpalette-tile.k-selected:hover{box-shadow:0 1px 3px 1px rgba(0,0,0,.3),inset 0 0 0 1px #fff}.k-colorgradient{border-radius:var(--kendo-border-radius-md, 0.25rem);width:272px;padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem);border-style:solid;border-width:1px;box-sizing:border-box;outline:0;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;align-items:stretch;gap:var(--kendo-spacing-3, 0.75rem);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-colorgradient *,.k-colorgradient *::before,.k-colorgradient *::after{box-sizing:border-box}.k-colorgradient-canvas{gap:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-canvas .k-hsv-rectangle{border-radius:var(--kendo-border-radius-md, 0.25rem);position:relative;flex:1 1 auto;-webkit-user-select:none;user-select:none}.k-colorgradient-canvas .k-hsv-gradient{border-radius:var(--kendo-border-radius-md, 0.25rem);height:202px}.k-colorgradient-canvas .k-hsv-draghandle{margin-top:-7px;margin-left:-7px;position:absolute;top:50%;left:50%;z-index:1;cursor:pointer}.k-colorgradient-canvas .k-hsv-controls{position:relative;flex-shrink:0;gap:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-canvas.k-vstack,.k-colorgradient-canvas.k-vbox{padding-inline:8px}.k-colorgradient .k-draghandle{border-radius:50%;width:14px;height:14px;border-width:1px;border-style:solid;outline-width:1px;outline-style:solid;box-sizing:border-box}.k-colorgradient-slider.k-slider-vertical{width:10px;height:202px;flex:0 0 10px}.k-colorgradient-slider.k-slider-vertical .k-slider-track{width:10px;border-radius:10px;margin-left:-5px}.k-colorgradient-slider.k-slider-horizontal{width:100%;height:10px;flex:0 0 10px}.k-colorgradient-slider.k-slider-horizontal .k-slider-track{height:10px;border-radius:10px;margin-top:-5px}.k-colorgradient-slider.k-alpha-slider .k-slider-track::before{content:"";width:100%;height:100%;display:block;border-radius:10px;position:relative;z-index:-1}.k-colorgradient-slider .k-slider-track-wrap{z-index:1}.k-colorgradient-slider .k-slider-selection{display:none}.k-colorgradient-slider .k-draghandle{border-width:3px}.k-colorgradient-sm{width:252px;gap:var(--kendo-spacing-3, 0.75rem);padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-sm .k-colorgradient-inputs .k-numerictextbox{width:42px}.k-colorgradient-sm .k-colorgradient-canvas{gap:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-sm .k-colorgradient-canvas .k-hsv-gradient{height:182px}.k-colorgradient-sm .k-colorgradient-canvas .k-slider-vertical{height:182px}.k-colorgradient-sm .k-colorgradient-canvas .k-hsv-controls{gap:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-md{width:272px;gap:var(--kendo-spacing-3, 0.75rem);padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-md .k-colorgradient-inputs .k-numerictextbox{width:46px}.k-colorgradient-md .k-colorgradient-canvas{gap:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-md .k-colorgradient-canvas .k-hsv-gradient{height:202px}.k-colorgradient-md .k-colorgradient-canvas .k-slider-vertical{height:202px}.k-colorgradient-md .k-colorgradient-canvas .k-hsv-controls{gap:var(--kendo-spacing-3, 0.75rem)}.k-colorgradient-lg{width:362px;gap:var(--kendo-spacing-4\.5, 1.125rem);padding-block:var(--kendo-spacing-4\.5, 1.125rem);padding-inline:var(--kendo-spacing-4\.5, 1.125rem)}.k-colorgradient-lg .k-colorgradient-inputs .k-numerictextbox{width:62px}.k-colorgradient-lg .k-colorgradient-canvas{gap:var(--kendo-spacing-4\.5, 1.125rem)}.k-colorgradient-lg .k-colorgradient-canvas .k-hsv-gradient{height:268px}.k-colorgradient-lg .k-colorgradient-canvas .k-slider-vertical{height:268px}.k-colorgradient-lg .k-colorgradient-canvas .k-hsv-controls{gap:var(--kendo-spacing-4\.5, 1.125rem)}.k-colorgradient-inputs{gap:var(--kendo-spacing-2, 0.5rem)}.k-colorgradient-inputs .k-colorgradient-input-label{text-transform:uppercase}.k-colorgradient-inputs>.k-vstack,.k-colorgradient-inputs>.k-vbox{gap:calc(var(--kendo-spacing-3, 0.75rem)/3)}.k-colorgradient-inputs .k-numerictextbox{width:46px}.k-colorgradient-inputs .k-input-inner{padding-inline-start:2px;padding-inline-end:2px;text-align:center;text-overflow:clip}.k-colorgradient-color-contrast>div{display:flex;flex-flow:row nowrap;gap:calc(var(--kendo-spacing-3, 0.75rem)/1.5)}.k-colorgradient-color-contrast .k-contrast-ratio{margin-bottom:calc(var(--kendo-spacing-3, 0.75rem)/1.5)}.k-colorgradient-color-contrast .k-contrast-ratio-text{font-weight:var(--kendo-font-weight-bold, normal)}.k-colorgradient-color-contrast .k-contrast-validation{display:inline-flex;align-items:center;gap:calc(var(--kendo-spacing-3, 0.75rem)/1.5/2)}.k-colorgradient-color-contrast .k-contrast-validation .k-icon{vertical-align:middle}.k-colorgradient-color-contrast .k-contrast-validation .k-icon+.k-icon,.k-colorgradient-color-contrast .k-contrast-validation .k-icon-wrapper-host+.k-icon-wrapper-host .k-icon{margin-inline-start:-13px}.k-color-contrast-svg{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}.k-colorgradient{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-colorgradient:focus,.k-colorgradient.k-focus{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-colorgradient-canvas .k-hsv-gradient{background:linear-gradient(to bottom, rgba(0, 0, 0, 0), black),linear-gradient(to right, white, rgba(255, 255, 255, 0))}.k-colorgradient .k-draghandle{border-color:hsla(0,0%,100%,.8);background-color:rgba(0,0,0,0);outline-color:#000;box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-colorgradient .k-draghandle:focus,.k-colorgradient .k-draghandle.k-focus{border-color:#fff;background-color:rgba(0,0,0,0);outline-color:#000;box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-colorgradient .k-draghandle:hover,.k-colorgradient .k-draghandle.k-hover,.k-colorgradient .k-draghandle.k-active,.k-colorgradient .k-draghandle:active{border-color:#fff;background-color:rgba(0,0,0,0);outline-color:#000}.k-colorgradient-slider.k-hue-slider.k-slider-horizontal .k-slider-track{background:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)}.k-colorgradient-slider.k-hue-slider.k-slider-vertical .k-slider-track{background:linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)}.k-colorgradient-slider.k-alpha-slider .k-slider-track::before{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC) center repeat}.k-colorgradient-input-label{color:var(--kendo-color-subtle, #666666)}.k-rtl .k-colorgradient .k-hue-slider.k-slider-horizontal .k-slider-track,[dir=rtl] .k-colorgradient .k-hue-slider.k-slider-horizontal .k-slider-track{background:linear-gradient(to left, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)}.k-align-self-auto{align-self:auto}.\!k-align-self-auto{align-self:auto !important}.k-align-self-normal{align-self:normal}.\!k-align-self-normal{align-self:normal !important}.k-align-self-stretch{align-self:stretch}.\!k-align-self-stretch{align-self:stretch !important}.k-align-self-center{align-self:center}.\!k-align-self-center{align-self:center !important}.k-align-self-start{align-self:start}.\!k-align-self-start{align-self:start !important}.k-align-self-end{align-self:end}.\!k-align-self-end{align-self:end !important}.k-align-self-flex-start{align-self:flex-start}.\!k-align-self-flex-start{align-self:flex-start !important}.k-align-self-flex-end{align-self:flex-end}.\!k-align-self-flex-end{align-self:flex-end !important}.k-align-self-baseline{align-self:baseline}.\!k-align-self-baseline{align-self:baseline !important}.k-align-self-first-baseline{align-self:first baseline}.\!k-align-self-first-baseline{align-self:first baseline !important}.k-align-self-last-baseline{align-self:last baseline}.\!k-align-self-last-baseline{align-self:last baseline !important}.k-align-self-self-start{align-self:self-start}.\!k-align-self-self-start{align-self:self-start !important}.k-align-self-self-end{align-self:self-end}.\!k-align-self-self-end{align-self:self-end !important}.k-coloreditor{border-radius:var(--kendo-border-radius-md, 0.25rem);min-width:272px;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);display:inline-flex;flex-direction:column;align-items:stretch}.k-coloreditor *,.k-coloreditor *::before,.k-coloreditor *::after{box-sizing:border-box}.k-coloreditor-header{padding:var(--kendo-spacing-3, 0.75rem) var(--kendo-spacing-3, 0.75rem) 0}.k-coloreditor-header-actions{gap:var(--kendo-spacing-2, 0.5rem)}.k-coloreditor-preview{display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:center;gap:var(--kendo-spacing-0\.5, 0.125rem);position:relative;z-index:1}.k-coloreditor-preview .k-color-preview{width:34px;height:14px}.k-coloreditor-sm{min-width:252px}.k-coloreditor-sm .k-coloreditor-header{padding:var(--kendo-spacing-3, 0.75rem) var(--kendo-spacing-3, 0.75rem) 0}.k-coloreditor-sm .k-coloreditor-views{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-coloreditor-sm .k-coloreditor-preview{gap:var(--kendo-spacing-0\.5, 0.125rem)}.k-coloreditor-sm .k-coloreditor-preview .k-color-preview{width:34px;height:12px}.k-coloreditor-md{min-width:272px}.k-coloreditor-md .k-coloreditor-header{padding:var(--kendo-spacing-3, 0.75rem) var(--kendo-spacing-3, 0.75rem) 0}.k-coloreditor-md .k-coloreditor-views{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-coloreditor-md .k-coloreditor-preview{gap:var(--kendo-spacing-0\.5, 0.125rem)}.k-coloreditor-md .k-coloreditor-preview .k-color-preview{width:34px;height:14px}.k-coloreditor-lg{min-width:362px}.k-coloreditor-lg .k-coloreditor-header{padding:var(--kendo-spacing-4\.5, 1.125rem) var(--kendo-spacing-4\.5, 1.125rem) 0}.k-coloreditor-lg .k-coloreditor-views{padding-block:var(--kendo-spacing-4\.5, 1.125rem);padding-inline:var(--kendo-spacing-4\.5, 1.125rem)}.k-coloreditor-lg .k-coloreditor-preview{gap:var(--kendo-spacing-1, 0.25rem)}.k-coloreditor-lg .k-coloreditor-preview .k-color-preview{width:44px;height:16px}.k-coloreditor-views{min-width:calc(var(--kendo-color-preview-width, var(--kendo-spacing-6, 1.5rem))*var(--kendo-color-preview-columns, 10));padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem);gap:var(--kendo-spacing-3, 0.75rem)}.k-coloreditor-views .k-colorgradient{padding:0;width:auto;border-width:0}.k-coloreditor-views .k-colorgradient:focus,.k-coloreditor-views .k-colorgradient.k-focus{outline:2px dotted;outline-offset:4px;border-radius:0}.k-coloreditor-views .k-colorpalette{align-self:center}.k-coloreditor-footer.k-actions,.k-coloreditor-footer.k-edit-buttons,.k-coloreditor-footer.k-action-buttons,.k-coloreditor-footer.k-columnmenu-actions,.k-coloreditor-footer.k-form-buttons{margin:0}.k-coloreditor{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-coloreditor .k-colorgradient:focus,.k-coloreditor .k-colorgradient.k-focus{box-shadow:none;outline-color:rgba(0,0,0,.3)}.k-color-picker,.k-colorpicker{width:min-content}.k-datetime-selector{display:flex;transition:transform .2s}.k-datetime-wrap{width:calc(256px + var(--kendo-spacing-4, 1rem)*2);overflow:hidden}.k-datetime-wrap .k-datetime-buttongroup{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-datetime-wrap .k-calendar,.k-datetime-wrap .k-timeselector{width:100%;border-width:0}.k-datetime-calendar-wrap,.k-datetime-time-wrap{text-align:center;flex:0 0 calc(256px + var(--kendo-spacing-4, 1rem)*2)}.k-date-tab .k-datetime-selector{transform:translateX(0)}.k-time-tab .k-datetime-selector{transform:translateX(-100%)}:is(.k-rtl,[dir=rtl]) .k-time-tab .k-datetime-selector,.k-time-tab .k-datetime-selector:is(.k-rtl,[dir=rtl]){transform:translateX(100%)}.k-daterange-picker,.k-daterangepicker{width:100%;display:flex;flex-flow:row nowrap;align-items:flex-end;gap:var(--kendo-spacing-2, 0.5rem)}.k-daterange-picker *,.k-daterangepicker *,.k-daterange-picker *::before,.k-daterangepicker *::before,.k-daterange-picker *::after,.k-daterangepicker *::after{box-sizing:border-box}.k-daterange-picker .k-dateinput,.k-daterangepicker .k-dateinput{width:10em}.k-daterangepicker-wrap{display:inherit;flex-flow:inherit;align-items:inherit;gap:inherit}.k-dropdowngrid-popup{overflow:hidden}.k-dropdowngrid-popup>.k-data-table{border-width:0}.k-dropdown-operator{width:min-content;flex:none}.k-dropdown-operator .k-input-button{border-width:0;width:min-content}.k-dropdown-operator .k-input-button .k-button-icon{width:auto;aspect-ratio:1}.k-dropdown-operator .k-input-inner{display:none}.k-treeview{padding:0;border-width:0;background:none;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:block;cursor:default;overflow:auto;white-space:nowrap;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-treeview *,.k-treeview *::before,.k-treeview *::after{box-sizing:border-box}.k-treeview-filter{padding:var(--kendo-spacing-2, 0.5rem);display:block;position:relative;flex:none}.k-treeview-group{margin:0;padding:0;list-style:none;position:relative;outline:0;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-treeview-group.ng-animating{overflow:hidden}.k-treeview-top,.k-treeview-mid,.k-treeview-bot{display:flex;flex-direction:row;align-items:center;align-content:center}.k-treeview-item{outline-style:none;margin:0;padding:0 0 0 24px;border-width:0;display:block}.k-treeview-toggle{margin-inline-start:-24px;flex:none;display:inline-flex;flex-flow:row nowrap;align-items:center;cursor:pointer}.k-treeview-toggle .k-icon{padding:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box}.k-treeview-loading{margin-right:var(--kendo-spacing-1, 0.25rem)}.k-treeview .k-checkbox-wrap,.k-treeview .k-checkbox-wrapper{align-self:center}.k-treeview-leaf{border-radius:var(--kendo-border-radius-md, 0.25rem);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border:0px solid rgba(0,0,0,0);text-decoration:none;display:inline-flex;align-items:center;align-content:center;vertical-align:middle;position:relative}.k-treeview-leaf .k-icon,.k-treeview-leaf .k-image,.k-treeview-leaf .k-sprite{margin-right:var(--kendo-spacing-1, 0.25rem)}.k-treeview-leaf.k-focus{z-index:1}.k-treeview .k-treeview-load-more-button{cursor:pointer}.k-treeview .k-treeview-load-more-button:hover,.k-treeview .k-treeview-load-more-button.k-hover,.k-treeview .k-treeview-load-more-button:focus,.k-treeview .k-treeview-load-more-button.k-focus{text-decoration:underline}.k-rtl .k-treeview .k-treeview-item,[dir=rtl] .k-treeview .k-treeview-item,.k-treeview.k-rtl .k-treeview-item,.k-treeview[dir=rtl] .k-treeview-item{padding-left:0;padding-right:24px}.k-rtl .k-treeview .k-treeview-loading,[dir=rtl] .k-treeview .k-treeview-loading,.k-treeview.k-rtl .k-treeview-loading,.k-treeview[dir=rtl] .k-treeview-loading{margin-right:0;margin-left:var(--kendo-spacing-1, 0.25rem)}.k-rtl .k-treeview .k-treeview-leaf .k-icon,.k-rtl .k-treeview .k-treeview-leaf .k-image,.k-rtl .k-treeview .k-treeview-leaf .k-sprite,.k-rtl .k-treeview .k-in .k-icon,.k-rtl .k-treeview .k-in .k-image,.k-rtl .k-treeview .k-in .k-sprite,[dir=rtl] .k-treeview .k-treeview-leaf .k-icon,[dir=rtl] .k-treeview .k-treeview-leaf .k-image,[dir=rtl] .k-treeview .k-treeview-leaf .k-sprite,[dir=rtl] .k-treeview .k-in .k-icon,[dir=rtl] .k-treeview .k-in .k-image,[dir=rtl] .k-treeview .k-in .k-sprite,.k-treeview.k-rtl .k-treeview-leaf .k-icon,.k-treeview.k-rtl .k-treeview-leaf .k-image,.k-treeview.k-rtl .k-treeview-leaf .k-sprite,.k-treeview.k-rtl .k-in .k-icon,.k-treeview.k-rtl .k-in .k-image,.k-treeview.k-rtl .k-in .k-sprite,.k-treeview[dir=rtl] .k-treeview-leaf .k-icon,.k-treeview[dir=rtl] .k-treeview-leaf .k-image,.k-treeview[dir=rtl] .k-treeview-leaf .k-sprite,.k-treeview[dir=rtl] .k-in .k-icon,.k-treeview[dir=rtl] .k-in .k-image,.k-treeview[dir=rtl] .k-in .k-sprite{margin-right:0;margin-left:var(--kendo-spacing-1, 0.25rem)}.k-treeview-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-treeview-sm .k-treeview-leaf{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-treeview-sm .k-checkbox-wrap{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-treeview-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-treeview-md .k-treeview-leaf{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-treeview-md .k-checkbox-wrap{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-treeview-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-treeview-lg .k-treeview-leaf{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-treeview-lg .k-checkbox-wrap{padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-treeview{color:var(--kendo-color-on-app-surface, #424242)}.k-treeview-leaf:hover,.k-treeview-leaf.k-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-treeview-leaf:focus,.k-treeview-leaf.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-treeview-leaf.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-treeview .k-treeview-load-more-button{color:var(--kendo-color-primary, #1274AC);background-color:rgba(0,0,0,0)}.k-treeview .k-treeview-load-more-button:hover,.k-treeview .k-treeview-load-more-button.k-hover{color:var(--kendo-color-primary-hover, #116fa5);background-color:rgba(0,0,0,0)}.k-treeview .k-treeview-load-more-button:focus,.k-treeview .k-treeview-load-more-button.k-focus{color:var(--kendo-color-primary-hover, #116fa5);background-color:rgba(0,0,0,0);box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-popup-dropdowntree .k-treeview,.k-dropdowntree-popup .k-treeview,.k-multiselecttree-popup .k-treeview{padding-block:calc(var(--kendo-spacing-2, 0.5rem)/2);padding-inline:calc(var(--kendo-spacing-2, 0.5rem)/2)}.k-popup-dropdowntree .k-check-all,.k-dropdowntree-popup .k-check-all,.k-multiselecttree-popup .k-check-all{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-multiselecttree .k-input-values{width:auto;max-width:100%}.k-multiselecttree .k-input-inner::before{content:"​";width:0px;overflow:hidden;flex:none;display:inline-block;vertical-align:top}.k-rating{margin:0;padding:0;border-width:0;box-sizing:border-box;outline:0;background:none;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:inline-flex;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-rating *,.k-rating *::before,.k-rating *::after{box-sizing:border-box}.k-rating.k-readonly{pointer-events:none}.k-rating-container{flex:0 1 auto;position:relative;margin-block:0;margin-inline:var(--kendo-spacing-1, 0.25rem)}.k-rating-container .k-rating-item{display:inline-flex;position:relative;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);align-items:center;vertical-align:middle;margin:0;outline:0;overflow:hidden;transition:color 200ms ease-out 0s}.k-rating-container .k-rating-item *{pointer-events:none}.k-rating-container .k-rating-item .k-rating-precision-part,.k-rating-container .k-rating-item .k-rating-precision-complement{display:inherit;position:absolute;top:var(--kendo-spacing-1, 0.25rem);left:var(--kendo-spacing-1, 0.25rem);overflow:hidden}.k-rating-container .k-rating-item .k-rating-precision-complement{direction:rtl}.k-rating-container .k-rating-item svg{fill:currentColor}.k-rating-label{display:inline-flex;align-items:center;vertical-align:middle;line-height:var(--kendo-line-height-lg, normal);margin-block:var(--kendo-spacing-1, 0.25rem);margin-inline:var(--kendo-spacing-2, 0.5rem)}.k-rtl .k-rating-precision-part,[dir=rtl] .k-rating-precision-part{left:auto;right:var(--kendo-spacing-1, 0.25rem)}.k-rtl .k-rating-item .k-rating-precision-complement,[dir=rtl] .k-rating-item .k-rating-precision-complement{direction:ltr}.k-rating{color:var(--kendo-color-on-app-surface, #424242)}.k-rating:focus .k-rating-item>.k-icon,.k-rating.k-focus .k-rating-item>.k-icon{filter:drop-shadow(var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12)))}.k-rating:focus .k-rating-item.k-selected>.k-icon,.k-rating.k-focus .k-rating-item.k-selected>.k-icon{filter:drop-shadow(var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12)))}.k-rating-item{color:var(--kendo-color-on-app-surface, #424242)}.k-rating-item.k-selected{color:var(--kendo-color-primary, #1274AC)}.k-rating-item.k-selected:focus,.k-rating-item.k-selected.k-focus{color:var(--kendo-color-primary, #1274AC)}.k-rating-item:hover,.k-rating-item.k-hover{color:var(--kendo-color-primary, #1274AC);cursor:pointer}.k-switch{box-sizing:border-box;outline:0;display:inline-flex;align-items:center;vertical-align:middle;line-height:1;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-switch *,.k-switch *::before,.k-switch *::after{box-sizing:border-box}.k-switch [type=checkbox]{display:none}.k-switch[aria-readonly=true]{pointer-events:none}.k-switch.k-readonly{pointer-events:none}.k-switch-track{border-width:1px;border-style:solid;outline:0;display:flex;flex-flow:row nowrap;flex:1 0 auto;position:relative;transition:background-color 200ms ease-in-out}.k-switch-thumb-wrap{width:0;height:0;overflow:visible;position:absolute;transition:left 200ms ease-in-out;top:50%}.k-switch-thumb{border-width:1px;border-style:solid;display:block;position:absolute;transform:translate(-50%, -50%)}.k-switch-label-on,.k-switch-label-off{text-transform:uppercase;display:inline;position:absolute;top:50%;transform:translateY(-50%);overflow:hidden}.k-switch-sm{width:52px;height:26px;font-size:10px}.k-switch-sm .k-switch-track{width:52px;height:26px}.k-switch-sm .k-switch-label-on{left:4px}.k-switch-sm .k-switch-label-off{right:4px}.k-switch-sm .k-switch-thumb{width:26px;height:26px}.k-switch-sm.k-switch-on .k-switch-thumb-wrap{left:calc(100% - 13px)}.k-switch-sm.k-switch-off .k-switch-thumb-wrap{left:13px}.k-switch-sm[dir=rtl] .k-switch-label-on,[dir=rtl] .k-switch-sm .k-switch-label-on,.k-rtl .k-switch-sm .k-switch-label-on{left:auto;right:4px}.k-switch-sm[dir=rtl] .k-switch-label-off,[dir=rtl] .k-switch-sm .k-switch-label-off,.k-rtl .k-switch-sm .k-switch-label-off{right:auto;left:4px}.k-switch-sm[dir=rtl].k-switch-on .k-switch-thumb-wrap,[dir=rtl] .k-switch-sm.k-switch-on .k-switch-thumb-wrap,.k-rtl .k-switch-sm.k-switch-on .k-switch-thumb-wrap{left:13px}.k-switch-sm[dir=rtl].k-switch-off .k-switch-thumb-wrap,[dir=rtl] .k-switch-sm.k-switch-off .k-switch-thumb-wrap,.k-rtl .k-switch-sm.k-switch-off .k-switch-thumb-wrap{left:calc(100% - 13px)}.k-switch-md{width:60px;height:30px;font-size:10px}.k-switch-md .k-switch-track{width:60px;height:30px}.k-switch-md .k-switch-label-on{left:6px}.k-switch-md .k-switch-label-off{right:6px}.k-switch-md .k-switch-thumb{width:30px;height:30px}.k-switch-md.k-switch-on .k-switch-thumb-wrap{left:calc(100% - 15px)}.k-switch-md.k-switch-off .k-switch-thumb-wrap{left:15px}.k-switch-md[dir=rtl] .k-switch-label-on,[dir=rtl] .k-switch-md .k-switch-label-on,.k-rtl .k-switch-md .k-switch-label-on{left:auto;right:6px}.k-switch-md[dir=rtl] .k-switch-label-off,[dir=rtl] .k-switch-md .k-switch-label-off,.k-rtl .k-switch-md .k-switch-label-off{right:auto;left:6px}.k-switch-md[dir=rtl].k-switch-on .k-switch-thumb-wrap,[dir=rtl] .k-switch-md.k-switch-on .k-switch-thumb-wrap,.k-rtl .k-switch-md.k-switch-on .k-switch-thumb-wrap{left:15px}.k-switch-md[dir=rtl].k-switch-off .k-switch-thumb-wrap,[dir=rtl] .k-switch-md.k-switch-off .k-switch-thumb-wrap,.k-rtl .k-switch-md.k-switch-off .k-switch-thumb-wrap{left:calc(100% - 15px)}.k-switch-lg{width:68px;height:34px;font-size:10px}.k-switch-lg .k-switch-track{width:68px;height:34px}.k-switch-lg .k-switch-label-on{left:8px}.k-switch-lg .k-switch-label-off{right:8px}.k-switch-lg .k-switch-thumb{width:34px;height:34px}.k-switch-lg.k-switch-on .k-switch-thumb-wrap{left:calc(100% - 17px)}.k-switch-lg.k-switch-off .k-switch-thumb-wrap{left:17px}.k-switch-lg[dir=rtl] .k-switch-label-on,[dir=rtl] .k-switch-lg .k-switch-label-on,.k-rtl .k-switch-lg .k-switch-label-on{left:auto;right:8px}.k-switch-lg[dir=rtl] .k-switch-label-off,[dir=rtl] .k-switch-lg .k-switch-label-off,.k-rtl .k-switch-lg .k-switch-label-off{right:auto;left:8px}.k-switch-lg[dir=rtl].k-switch-on .k-switch-thumb-wrap,[dir=rtl] .k-switch-lg.k-switch-on .k-switch-thumb-wrap,.k-rtl .k-switch-lg.k-switch-on .k-switch-thumb-wrap{left:17px}.k-switch-lg[dir=rtl].k-switch-off .k-switch-thumb-wrap,[dir=rtl] .k-switch-lg.k-switch-off .k-switch-thumb-wrap,.k-rtl .k-switch-lg.k-switch-off .k-switch-thumb-wrap{left:calc(100% - 17px)}.k-switch[dir=rtl] .k-switch-thumb,[dir=rtl] .k-switch .k-switch-thumb,.k-switch.k-rtl .k-switch-thumb,.k-rtl .k-switch .k-switch-thumb{transform:translate(50%, -50%)}.k-switch-off .k-switch-track{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-switch-off .k-switch-thumb{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-switch-off:focus .k-switch-track,.k-switch-off.k-focus .k-switch-track{outline:2px solid color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-switch-off .k-switch-label-on{color:rgba(0,0,0,0)}.k-switch-on .k-switch-track{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-switch-on .k-switch-thumb{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-switch-on:focus .k-switch-track,.k-switch-on.k-focus .k-switch-track{outline:2px solid color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-switch-on .k-switch-label-off{color:rgba(0,0,0,0)}.k-external-dropzone{height:220px;display:flex;flex-flow:row nowrap}.k-dropzone-inner{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px;border-style:solid;box-sizing:border-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);flex:1 1 auto;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;position:relative}.k-dropzone-inner .k-dropzone-icon{margin-bottom:var(--kendo-spacing-6, 1.5rem)}.k-dropzone-inner .k-dropzone-hint{margin-bottom:var(--kendo-spacing-2, 0.5rem)}.k-dropzone-inner .k-dropzone-note{font-size:var(--kendo-font-size-sm, inherit)}.k-dropzone-inner{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-dropzone-inner .k-icon,.k-dropzone-inner .k-dropzone-icon{color:var(--kendo-color-subtle, #666666)}.k-dropzone-inner .k-dropzone-note{color:var(--kendo-color-subtle, #666666)}.k-external-dropzone-hover .k-icon,.k-external-dropzone-hover .k-dropzone-icon{color:var(--kendo-color-primary, #1274AC)}.k-upload{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);position:relative;display:block;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-upload *,.k-upload *::before,.k-upload *::after{box-sizing:border-box}.k-upload .k-upload-button{min-width:7em}.k-upload .k-dropzone,.k-upload .k-upload-dropzone{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0;text-align:end;display:flex;align-items:center;justify-content:space-between;position:relative;background-color:rgba(0,0,0,0)}.k-upload .k-dropzone .k-dropzone-hint,.k-upload .k-upload-dropzone .k-dropzone-hint{font-style:normal;font-weight:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;flex:1}.k-upload .k-dropzone .k-upload-status,.k-upload .k-upload-dropzone .k-upload-status{font-weight:normal;display:flex;align-items:center;position:relative}.k-upload .k-dropzone .k-upload-status>.k-icon,.k-upload .k-upload-dropzone .k-upload-status>.k-icon{margin-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-upload .k-dropzone .k-upload-status+.k-dropzone-hint,.k-upload .k-upload-dropzone .k-upload-status+.k-dropzone-hint{display:none}.k-upload .k-dropzone-active .k-upload-status{display:none}.k-upload .k-dropzone-active .k-upload-status+.k-dropzone-hint{display:block}.k-upload .k-upload-files{max-height:300px;overflow-y:auto;margin:0;padding:0;border-width:1px 0 0;border-style:solid;border-color:inherit;list-style:none}.k-upload .k-upload-files .k-file-multiple,.k-upload .k-upload-files .k-file-single{width:100%;display:flex;justify-content:space-between}.k-upload .k-upload-files .k-file-single{align-items:center}.k-upload .k-upload-files .k-file-multiple{align-items:flex-start}.k-upload .k-upload-files .k-file{padding:var(--kendo-spacing-2, 0.5rem) var(--kendo-spacing-2, 0.5rem) calc(var(--kendo-spacing-2, 0.5rem) + 2px);border-width:0 0 1px;border-style:solid;outline:none;display:flex;align-items:flex-start;position:relative}.k-upload .k-upload-files .k-file:last-child{border-width:0}.k-upload .k-upload-files .k-filename{margin-left:var(--kendo-spacing-4, 1rem);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.k-upload .k-upload-files .k-upload-pct{margin-block:0;margin-inline:var(--kendo-spacing-1, 0.25rem);font-weight:normal;vertical-align:middle}.k-upload .k-upload-files~.k-clear-selected,.k-upload .k-upload-files~.k-upload-selected{margin-top:calc(var(--kendo-spacing-1, 0.25rem)*-1);border-width:0}.k-upload .k-upload-files~.k-upload-selected{border-left-width:1px;border-left-style:solid;margin-left:-1px}.k-upload .k-upload-files .k-file-name,.k-upload .k-upload-files .k-file-size,.k-upload .k-upload-files .k-file-validation-message,.k-upload .k-upload-files .k-file-summary{display:block}.k-upload .k-upload-files .k-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.k-upload .k-upload-files .k-file-size,.k-upload .k-upload-files .k-file-summary,.k-upload .k-upload-files .k-file-validation-message{font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-xs, normal)}.k-upload .k-upload-files .k-file-icon-wrapper .k-file-state{position:absolute}.k-upload .k-upload-files .k-file-state{visibility:hidden}.k-upload .k-upload-files .k-file-info{min-height:32px;display:block;overflow:hidden;flex:1 0 0}.k-upload .k-multiple-files-wrapper,.k-upload .k-file-single>.k-file-info{margin-inline-start:var(--kendo-spacing-2, 0.5rem);min-height:32px;display:block;overflow:hidden;flex:1 0 0}.k-upload .k-multiple-files-wrapper .k-file-info{margin-bottom:var(--kendo-spacing-3, 0.75rem);display:block}.k-upload .k-multiple-files-wrapper .k-file-summary{margin-top:calc(var(--kendo-spacing-3, 0.75rem)/3*-1)}.k-upload .k-progressbar{--kendo-progressbar-height: 2px;position:absolute;left:var(--kendo-spacing-2, 0.5rem);right:var(--kendo-spacing-2, 0.5rem);bottom:calc(var(--kendo-spacing-2, 0.5rem)/2);width:auto}.k-upload .k-actions,.k-upload .k-edit-buttons,.k-upload .k-action-buttons,.k-upload .k-columnmenu-actions,.k-upload .k-form-buttons{border-top-width:1px}.k-upload-button-wrap{position:relative;direction:ltr}.k-upload-button-wrap input{font:170px monospace !important;margin:0;padding:0;width:100%;height:100%;opacity:0;cursor:pointer;position:absolute;bottom:0;right:0;z-index:1}.k-upload-button-wrap input[disabled],.k-upload-button-wrap input.k-disabled{visibility:hidden}.k-upload{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-upload .k-dropzone,.k-upload .k-upload-dropzone{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-upload .k-dropzone.k-hover,.k-upload .k-upload-dropzone.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-upload .k-dropzone .k-dropzone-hint,.k-upload .k-upload-dropzone .k-dropzone-hint{color:var(--kendo-color-subtle, #666666)}.k-upload .k-upload-files,.k-upload .k-file{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-upload .k-file.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-upload .k-file .k-upload-action.k-focus{box-shadow:0 0 0 2px rgba(0,0,0,.13)}.k-upload .k-upload-status{color:var(--kendo-color-subtle, #666666)}.k-upload .k-file-progress .k-progressbar .k-selected{background-color:var(--kendo-color-info, #0058E9)}.k-upload .k-file-success .k-file-validation-message{color:var(--kendo-color-success, #278200)}.k-upload .k-file-success .k-progressbar .k-selected{background-color:var(--kendo-color-success, #278200)}.k-upload .k-file-error .k-file-validation-message{color:var(--kendo-color-error, #D51923)}.k-upload .k-file-error .k-progressbar .k-selected{background-color:var(--kendo-color-error, #D51923)}.k-upload .k-file-icon-wrapper{color:var(--kendo-color-subtle, #666666);border-color:var(--kendo-color-subtle, #666666)}.k-upload .k-file-size,.k-upload .k-file-validation-message,.k-upload .k-file-summary{color:var(--kendo-color-subtle, #666666)}.k-upload .k-multiple-files-wrapper .k-file-summary{color:var(--kendo-color-on-app-surface, #424242)}.k-upload.k-invalid,.k-upload.ng-invalid.ng-touched,.k-upload.ng-invalid.ng-dirty{border-color:var(--kendo-color-error, #D51923)}.k-otp{display:flex;width:min-content;align-items:center;flex-direction:row}.k-otp .k-otp-input>.k-input-inner{text-align:center;padding-inline:0}.k-otp-sm{gap:var(--kendo-spacing-1, 0.25rem)}.k-otp-sm .k-otp-input{min-width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px)}.k-otp-sm .k-otp-separator:not(:empty){padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-otp-md{gap:var(--kendo-spacing-1\.5, 0.375rem)}.k-otp-md .k-otp-input{min-width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-otp-md .k-otp-separator:not(:empty){padding-inline:var(--kendo-spacing-1\.5, 0.375rem)}.k-otp-lg{gap:var(--kendo-spacing-2, 0.5rem)}.k-otp-lg .k-otp-input{min-width:calc(var(--kendo-line-height-lg, normal)*1em + var(--kendo-spacing-2, 0.5rem)*2 + 2px)}.k-otp-lg .k-otp-separator:not(:empty){padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-appbar{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);list-style:none;display:flex;gap:var(--kendo-spacing-2, 0.5rem);flex-flow:row wrap;align-items:center;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-appbar *,.k-appbar *::before,.k-appbar *::after{box-sizing:border-box}.k-appbar>*{flex-shrink:0}.k-appbar .k-appbar-section{display:inline-flex;flex-wrap:nowrap;align-items:center}.k-appbar .k-appbar-spacer{flex:1 0 auto}.k-appbar .k-appbar-spacer-sized{flex-grow:0}.k-appbar .k-appbar-separator{margin:0;width:0;min-height:1em;border-style:solid;border-width:0 0 0 1px;display:inline-block}.k-appbar .k-input,.k-appbar .k-picker{width:10em}.k-appbar .k-color-picker,.k-appbar .k-colorpicker{width:min-content}.k-appbar-static{position:static}.k-appbar-sticky{width:100%;position:sticky;top:0;z-index:1000}.k-appbar-fixed{width:100%;position:fixed;z-index:1}.k-appbar-top{top:0;bottom:auto}.k-appbar-bottom{top:auto;bottom:0}.k-appbar-bottom.k-appbar-fixed{bottom:0}.k-appbar{box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-appbar-bottom{box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-appbar-primary{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-appbar-secondary{color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-appbar-tertiary{color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-appbar-info{color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-appbar-success{color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-appbar-warning{color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-appbar-error{color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-appbar-dark{color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-appbar-light{color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-appbar-inverse{color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-fab{padding:0;border-width:0;border-style:solid;border-color:rgba(0,0,0,0);box-sizing:border-box;color:inherit;background-color:rgba(0,0,0,0);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);font-family:var(--kendo-font-family, inherit);text-align:center;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;cursor:pointer;outline:none}.k-fab *,.k-fab *::before,.k-fab *::after{box-sizing:border-box}.k-fab:focus{outline:none}.k-fab-icon{padding-inline:var(--kendo-spacing-0\.5, 0.125rem);padding-block:var(--kendo-spacing-0\.5, 0.125rem);box-sizing:content-box}.k-icon-wrapper-host:not(:only-child) .k-fab-icon,.k-fab-icon:not(:only-child){margin-inline-end:var(--kendo-spacing-0\.5, 0.125rem);margin-inline-start:calc(var(--kendo-spacing-0\.5, 0.125rem)*-1)}.k-fab-sm{padding:calc(var(--kendo-spacing-4, 1rem)/2) calc(var(--kendo-spacing-4, 1rem)/2)}.k-fab-md{padding:var(--kendo-spacing-4, 1rem) var(--kendo-spacing-4, 1rem)}.k-fab-lg{padding:calc(var(--kendo-spacing-4, 1rem)*1.5) calc(var(--kendo-spacing-4, 1rem)*1.5)}.k-fab-items{margin:0;padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-0, 0px);display:flex}.k-fab-items-bottom{flex-direction:column}.k-fab-items-bottom .k-fab-item:last-child{margin-block-end:0}.k-fab-items-top{flex-direction:column-reverse}.k-fab-items-top .k-fab-item:first-child{margin-block-end:0}.k-fab-item{list-style-type:none;margin-block-end:var(--kendo-spacing-2, 0.5rem);outline:none;white-space:nowrap;display:flex;align-items:center;justify-content:flex-end;cursor:pointer}.k-fab-item.k-text-right{flex-direction:row}.k-fab-item.k-text-right .k-fab-item-text{margin-right:var(--kendo-spacing-2, 0.5rem)}.k-fab-item.k-text-left{flex-direction:row-reverse}.k-fab-item.k-text-left .k-fab-item-text{margin-left:var(--kendo-spacing-2, 0.5rem)}.k-fab-item-text{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border-width:1px;border-radius:2px;font-size:var(--kendo-font-size-xs, inherit);line-height:1.2}.k-fab-item-icon{padding-block:calc(var(--kendo-spacing-2, 0.5rem) + var(--kendo-spacing-0\.5, 0.125rem));padding-inline:calc(var(--kendo-spacing-2, 0.5rem) + var(--kendo-spacing-0\.5, 0.125rem));border-width:0;border-radius:50%;box-sizing:content-box;outline:none}.k-rtl .k-fab-popup .k-fab-item.k-text-left,[dir=rtl] .k-fab-popup .k-fab-item.k-text-left{flex-direction:row}.k-rtl .k-fab-popup .k-fab-item.k-text-right,[dir=rtl] .k-fab-popup .k-fab-item.k-text-right{flex-direction:row-reverse}.k-fab-solid-primary{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-primary, #1274AC);outline-offset:-1px;border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-fab-solid-secondary{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-secondary, #757575);outline-offset:-1px;border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-fab-solid-tertiary{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-tertiary, #007F84);outline-offset:-1px;border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-fab-solid-info{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-info, #0058E9);outline-offset:-1px;border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-fab-solid-success{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-success, #278200);outline-offset:-1px;border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-fab-solid-warning{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-warning, #F5A600);outline-offset:-1px;border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-fab-solid-error{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-error, #D51923);outline-offset:-1px;border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-fab-solid-dark{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-dark, #3d3d3d);outline-offset:-1px;border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-fab-solid-light{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-light, #757575);outline-offset:-1px;border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-fab-solid-inverse{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid var(--kendo-color-dark, #3d3d3d);outline-offset:-1px;border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-hover.k-fab-solid-primary,.k-fab-solid-primary:hover{border-color:var(--kendo-color-primary-hover, #116fa5);background-color:var(--kendo-color-primary-hover, #116fa5)}.k-hover.k-fab-solid-secondary,.k-fab-solid-secondary:hover{border-color:var(--kendo-color-secondary-hover, #707070);background-color:var(--kendo-color-secondary-hover, #707070)}.k-hover.k-fab-solid-tertiary,.k-fab-solid-tertiary:hover{border-color:var(--kendo-color-tertiary-hover, #007a7f);background-color:var(--kendo-color-tertiary-hover, #007a7f)}.k-hover.k-fab-solid-info,.k-fab-solid-info:hover{border-color:var(--kendo-color-info-hover, #0054e0);background-color:var(--kendo-color-info-hover, #0054e0)}.k-hover.k-fab-solid-success,.k-fab-solid-success:hover{border-color:var(--kendo-color-success-hover, #257d00);background-color:var(--kendo-color-success-hover, #257d00)}.k-hover.k-fab-solid-warning,.k-fab-solid-warning:hover{border-color:var(--kendo-color-warning-hover, #eb9f00);background-color:var(--kendo-color-warning-hover, #eb9f00)}.k-hover.k-fab-solid-error,.k-fab-solid-error:hover{border-color:var(--kendo-color-error-hover, #cc1822);background-color:var(--kendo-color-error-hover, #cc1822)}.k-hover.k-fab-solid-dark,.k-fab-solid-dark:hover{border-color:var(--kendo-color-dark-hover, #292929);background-color:var(--kendo-color-dark-hover, #292929)}.k-hover.k-fab-solid-light,.k-fab-solid-light:hover{border-color:var(--kendo-color-light-hover, #707070);background-color:var(--kendo-color-light-hover, #707070)}.k-hover.k-fab-solid-inverse,.k-fab-solid-inverse:hover{border-color:var(--kendo-color-inverse-hover, #292929);background-color:var(--kendo-color-inverse-hover, #292929)}.k-fab-solid-primary.k-focus,.k-fab-solid-primary:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-fab-solid-secondary.k-focus,.k-fab-solid-secondary:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-secondary, #757575) 30%, transparent)}.k-fab-solid-tertiary.k-focus,.k-fab-solid-tertiary:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-tertiary, #007F84) 30%, transparent)}.k-fab-solid-info.k-focus,.k-fab-solid-info:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-info, #0058E9) 30%, transparent)}.k-fab-solid-success.k-focus,.k-fab-solid-success:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-success, #278200) 30%, transparent)}.k-fab-solid-warning.k-focus,.k-fab-solid-warning:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-warning, #F5A600) 30%, transparent)}.k-fab-solid-error.k-focus,.k-fab-solid-error:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-error, #D51923) 30%, transparent)}.k-fab-solid-dark.k-focus,.k-fab-solid-dark:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-dark, #3d3d3d) 30%, transparent)}.k-fab-solid-light.k-focus,.k-fab-solid-light:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-light, #757575) 30%, transparent)}.k-fab-solid-inverse.k-focus,.k-fab-solid-inverse:focus{outline:solid var(--kendo-spacing-0\.5, 0.125rem) color-mix(in srgb, var(--kendo-color-inverse, #3d3d3d) 30%, transparent)}.k-active.k-fab-solid-primary,.k-selected.k-fab-solid-primary,.k-fab-solid-primary:active{border-color:var(--kendo-color-primary-active, #106697);background-color:var(--kendo-color-primary-active, #106697)}.k-active.k-fab-solid-secondary,.k-selected.k-fab-solid-secondary,.k-fab-solid-secondary:active{border-color:var(--kendo-color-secondary-active, #676767);background-color:var(--kendo-color-secondary-active, #676767)}.k-active.k-fab-solid-tertiary,.k-selected.k-fab-solid-tertiary,.k-fab-solid-tertiary:active{border-color:var(--kendo-color-tertiary-active, #007074);background-color:var(--kendo-color-tertiary-active, #007074)}.k-active.k-fab-solid-info,.k-selected.k-fab-solid-info,.k-fab-solid-info:active{border-color:var(--kendo-color-info-active, #004dcd);background-color:var(--kendo-color-info-active, #004dcd)}.k-active.k-fab-solid-success,.k-selected.k-fab-solid-success,.k-fab-solid-success:active{border-color:var(--kendo-color-success-active, #227200);background-color:var(--kendo-color-success-active, #227200)}.k-active.k-fab-solid-warning,.k-selected.k-fab-solid-warning,.k-fab-solid-warning:active{border-color:var(--kendo-color-warning-active, #d89200);background-color:var(--kendo-color-warning-active, #d89200)}.k-active.k-fab-solid-error,.k-selected.k-fab-solid-error,.k-fab-solid-error:active{border-color:var(--kendo-color-error-active, #bb161f);background-color:var(--kendo-color-error-active, #bb161f)}.k-active.k-fab-solid-dark,.k-selected.k-fab-solid-dark,.k-fab-solid-dark:active{border-color:var(--kendo-color-dark-active, #1f1f1f);background-color:var(--kendo-color-dark-active, #1f1f1f)}.k-active.k-fab-solid-light,.k-selected.k-fab-solid-light,.k-fab-solid-light:active{border-color:var(--kendo-color-light-active, #676767);background-color:var(--kendo-color-light-active, #676767)}.k-active.k-fab-solid-inverse,.k-selected.k-fab-solid-inverse,.k-fab-solid-inverse:active{border-color:var(--kendo-color-inverse-active, #1f1f1f);background-color:var(--kendo-color-inverse-active, #1f1f1f)}.k-disabled.k-fab-solid-primary,.k-fab-solid-primary:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-primary, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-secondary,.k-fab-solid-secondary:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-secondary, #757575) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-secondary, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-tertiary,.k-fab-solid-tertiary:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-tertiary, #007F84) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-tertiary, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-info,.k-fab-solid-info:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-info, #0058E9) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-info, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-success,.k-fab-solid-success:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-success, #278200) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-success, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-warning,.k-fab-solid-warning:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-warning, #F5A600) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-warning, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-error,.k-fab-solid-error:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-error, #D51923) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-error, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-dark,.k-fab-solid-dark:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-dark, #3d3d3d) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-dark, #ffffff) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-light,.k-fab-solid-light:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-light, #757575) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-light, white) 60%, transparent);opacity:1}.k-disabled.k-fab-solid-inverse,.k-fab-solid-inverse:disabled{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-inverse, #3d3d3d) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-inverse, #ffffff) 60%, transparent);opacity:1}.k-fab-item-text{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-fab-item-icon{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base, #f5f5f5);box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));outline:1px solid rgba(0,0,0,.08);outline-offset:-1px}.k-fab-item.k-hover .k-fab-item-icon,.k-fab-item:hover .k-fab-item-icon{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-base-hover, #ebebeb)}.k-fab-item:focus .k-fab-item-text,.k-fab-item:focus .k-fab-item-icon,.k-fab-item.k-focus .k-fab-item-text,.k-fab-item.k-focus .k-fab-item-icon{outline:solid var(--kendo-spacing-0\.5, 0.125rem) rgba(0,0,0,.08)}.k-fab-item.k-active .k-fab-item-icon,.k-fab-item:active .k-fab-item-icon{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16));background-color:var(--kendo-color-base-active, #d8d8d8)}.k-fab-item.k-disabled,.k-fab-item:disabled{opacity:1}.k-fab-item.k-disabled .k-fab-item-text,.k-fab-item.k-disabled .k-fab-item-icon,.k-fab-item:disabled .k-fab-item-text,.k-fab-item:disabled .k-fab-item-icon{box-shadow:var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12));background-color:color-mix(in srgb, var(--kendo-color-base, #f5f5f5) 60%, transparent);color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 60%, transparent)}.k-fab-popup{box-shadow:none}.k-window{border-radius:0px;padding:0;border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height-sm, normal);display:inline-flex;flex-direction:column;position:absolute;z-index:10002;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-window.k-window-maximized{max-width:100vw;max-height:100vh;box-shadow:none}.k-window-sm{width:300px}.k-window-md{width:800px}.k-window-lg{width:1200px}.k-window-titlebar{border-top-left-radius:0px;border-top-right-radius:0px;padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:0 0 1px;border-style:solid;white-space:nowrap;display:flex;flex-direction:row;flex-shrink:0;align-items:center}.k-window-minimized .k-window-titlebar{border-width:0}.k-window-title{padding-block:.5em;padding-inline:0;margin-block:-0.5em;margin-inline:0;font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-sm, normal);text-overflow:ellipsis;overflow:hidden;cursor:default;flex:1}.k-window-title:empty::before{content:"​"}.k-window-titlebar-actions{margin-block:-5em;margin-inline:0;margin-inline-end:calc(var(--kendo-spacing-3, 0.75rem) - var(--kendo-spacing-4, 1rem));line-height:1;display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;vertical-align:top}.k-window-titlebar-action{flex-shrink:0}.k-window-content,.k-prompt-container{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:0;border-color:inherit;color:inherit;background:none;outline:0;overflow:auto;position:relative;flex:1 1 auto}.k-window-content+.k-prompt-container{margin-top:-var(--kendo-spacing-4, 1rem) / 2}.k-window-content:first-child{padding-top:clamp(var(--kendo-spacing-4, 1rem),var(--kendo-spacing-3, 0.75rem),var(--kendo-spacing-3, 0.75rem))}.k-window-content:last-child{padding-bottom:clamp(var(--kendo-spacing-4, 1rem),var(--kendo-spacing-3, 0.75rem),var(--kendo-spacing-3, 0.75rem))}.k-window-iframecontent{padding:0;overflow:visible}.k-window-iframecontent .k-content-frame{vertical-align:top;border:0;width:100%;height:100%}.k-window-actions{border-bottom-right-radius:0px;border-bottom-left-radius:0px;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px 0 0;border-style:solid;border-color:inherit;flex:0 0 auto;display:flex;flex-flow:row wrap;align-items:center;overflow:hidden}.k-prompt-container>.k-textarea{width:100%}.k-window .k-resize-n{top:0}.k-window .k-resize-e{right:0}.k-window .k-resize-s{bottom:0}.k-window .k-resize-w{left:0}.k-window{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-8, 0 16px 18px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-window:focus,.k-window.k-focus{box-shadow:var(--kendo-elevation-9, 0 32px 34px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-window-titlebar{border-color:inherit;color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-window-primary .k-window-titlebar{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-window-light .k-window-titlebar{color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-window-dark .k-window-titlebar{color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-actionsheet-container{width:100%;height:100%;max-width:clamp(100vw,100%,100%);max-height:clamp(100vh,100%,100%);position:fixed;top:0;left:0;z-index:9999;overflow:hidden;transform:translateZ(0)}.k-actionsheet-container>.k-overlay{position:absolute;z-index:1}.k-actionsheet-container>.k-animation-container{width:100%;height:100%;border-radius:0;overflow:hidden;position:absolute;z-index:2;top:0;left:0;pointer-events:none}.k-actionsheet-container>.k-animation-container>.k-child-animation-container{position:absolute}.k-actionsheet-container>.k-actionsheet{position:absolute;z-index:2}.k-actionsheet-container .k-actionsheet{pointer-events:all}.k-actionsheet{width:var(--kendo-actionsheet-width, 360px);height:var(--kendo-actionsheet-height, 60vh);max-width:var(--kendo-actionsheet-max-width, 100%);max-height:var(--kendo-actionsheet-max-height, 60vh);border-width:0;border-style:solid;box-sizing:border-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);overflow:hidden;position:relative;display:flex;flex-flow:column nowrap}.k-actionsheet:has(>.k-actionsheet-view){flex-flow:row nowrap}.k-actionsheet .k-actionsheet-view{display:flex;flex-flow:column nowrap;flex:0 0 100%}.k-actionsheet .k-actionsheet-view.k-actionsheet-view-animated{transform:translateX(calc(-100%*(var(--kendo-actionsheet-view-current, 1) - 1)))}.k-actionsheet *,.k-actionsheet *::before,.k-actionsheet *::after{box-sizing:border-box}.k-actionsheet-titlebar,.k-actionsheet-jq .k-actionsheet-header{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);border-bottom-width:1px;border-bottom-style:solid;flex:none;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--kendo-spacing-4, 1rem)}.k-actionsheet-titlebar-group{display:flex;flex-flow:row nowrap;align-items:center;width:100%}.k-actionsheet-title{flex:1}.k-actionsheet-subtitle{font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-sm, normal)}.k-actionsheet-actions{flex:none}.k-actionsheet-content{flex:1;overflow:auto;position:relative}.k-actionsheet-footer{flex:none;border-top-width:1px;border-top-style:solid}.k-actionsheet-items{margin:0;padding:0;list-style:none;flex:none}.k-actionsheet-item{padding:0;box-sizing:border-box;display:flex;flex-flow:row nowrap;outline:none}.k-actionsheet-action{margin:0;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);min-height:40px;box-sizing:border-box;color:inherit;text-decoration:none;outline:0;display:flex;flex-flow:row nowrap;align-items:flex-start;gap:var(--kendo-spacing-3, 0.75rem)}.k-actionsheet-item-text{display:flex;flex-flow:column nowrap}.k-actionsheet-item-description{font-size:.875em}.k-actionsheet .k-hr{margin:0;flex:none}.k-actionsheet-top{border-bottom-right-radius:0px;border-bottom-left-radius:0px;border-width:0px;border-top-width:0;top:0;inset-inline-start:50%;transform:translateX(-50%)}.k-actionsheet-bottom{border-top-left-radius:0px;border-top-right-radius:0px;border-width:0px;border-bottom-width:0;bottom:0;inset-inline-start:50%;transform:translateX(-50%)}.k-actionsheet-left{border-top-right-radius:0px;border-bottom-right-radius:0px;border-width:0px;border-left-width:0;left:0;top:50%;transform:translateY(-50%)}.k-actionsheet-right{border-top-left-radius:0px;border-bottom-left-radius:0px;border-width:0px;border-right-width:0;right:0;top:50%;transform:translateY(-50%)}.k-actionsheet-fullscreen{width:100%;max-width:100%;max-height:100%;height:100%}.k-animation-container>.k-actionsheet{top:auto;right:auto;bottom:auto;left:auto;transform:none}.k-adaptive-actionsheet{max-width:100%;width:100%;font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height, inherit)}.k-adaptive-actionsheet .k-actionsheet-titlebar,.k-adaptive-actionsheet .k-actionsheet-jq .k-actionsheet-header,.k-actionsheet-jq .k-adaptive-actionsheet .k-actionsheet-header{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-adaptive-actionsheet .k-actionsheet-content{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-adaptive-actionsheet .k-actionsheet-footer{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-adaptive-actionsheet .k-actionsheet-filter{width:calc(360px - var(--kendo-spacing-4, 1rem)*2)}.k-adaptive-actionsheet .k-actionsheet-content,.k-adaptive-actionsheet .k-actionsheet-footer{margin-inline:auto;width:min(100%,360px)}.k-adaptive-actionsheet .k-list-container,.k-adaptive-actionsheet .k-treeview{height:100%}.k-adaptive-actionsheet .k-list-filter{width:100%;padding-inline:0}.k-adaptive-actionsheet .k-menu-group{height:100%;overflow:auto;position:static}.k-adaptive-actionsheet .k-calendar{margin-inline:auto;border-width:0;display:flex}.k-adaptive-actionsheet .k-timeselector{height:100%;border-width:0;overflow:hidden}.k-adaptive-actionsheet .k-timeselector .k-time-part{display:contents}.k-adaptive-actionsheet .k-timeselector .k-time-list-wrapper{height:100%}.k-adaptive-actionsheet .k-datetime-wrap{width:100%;height:100%;display:flex;flex-flow:column nowrap}.k-adaptive-actionsheet .k-datetime-selector{flex:1 1 auto}.k-adaptive-actionsheet .k-datetime-calendar-wrap{width:100%;position:absolute;top:0;left:0;bottom:0;flex:0 0 100%}.k-adaptive-actionsheet .k-datetime-time-wrap{width:100%;position:absolute;top:0;left:100%;bottom:0;flex:0 0 100%}.k-adaptive-actionsheet .k-scrollable-wrap{height:100%;overflow-y:auto}.k-adaptive-actionsheet .k-data-table{max-height:100%;overflow:hidden;display:flex;flex-flow:column nowrap}.k-adaptive-actionsheet .k-coloreditor{min-width:100%;height:100%;border:0;overflow:auto;scrollbar-width:none}.k-adaptive-actionsheet .k-coloreditor::-webkit-scrollbar{display:none}.k-adaptive-actionsheet .k-coloreditor .k-coloreditor-header{padding:0}.k-adaptive-actionsheet .k-coloreditor .k-coloreditor-views{padding-inline:0}.k-adaptive-actionsheet .k-colorgradient-canvas .k-hsv-gradient{aspect-ratio:1;height:100%}.k-actionsheet-jq.k-actionsheet{height:auto}.k-actionsheet-jq .k-actionsheet-header{align-items:flex-start}.k-actionsheet-jq .k-actionsheet-action{align-items:center}.k-rtl .k-actionsheet-top,.k-rtl .k-actionsheet-bottom,[dir=rtl] .k-actionsheet-top,[dir=rtl] .k-actionsheet-bottom{transform:translateX(50%)}:is([dir=rtl],.k-rtl) .k-actionsheet-view.k-actionsheet-view-animated{transform:translateX(calc(100%*(var(--kendo-actionsheet-view-current, 1) - 1)))}.k-actionsheet{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-7, 0 14px 16px rgba(0, 0, 0, 0.24), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-actionsheet-titlebar,.k-actionsheet-jq .k-actionsheet-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-actionsheet-footer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-actionsheet-subtitle{color:var(--kendo-color-subtle, #666666)}.k-actionsheet-item:hover,.k-actionsheet-item.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-actionsheet-item:focus,.k-actionsheet-item.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-actionsheet-item-description{color:var(--kendo-color-subtle, #666666)}.k-actionsheet .k-hr{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-dialog-wrapper{display:flex;align-items:center;justify-content:center;flex-direction:column;outline:0;position:fixed;top:0;left:0;width:100%;height:100%;z-index:10001}.k-dialog-wrapper .k-dialog{position:relative}.k-dialog{padding:0;position:fixed;box-sizing:border-box}.k-dialog.k-dialog-centered{transform:translate(-50%, -50%);top:50%;left:50%}.k-dialog .k-multiselect{width:100%}.k-dialog-actions{border-bottom-right-radius:0px;border-bottom-left-radius:0px;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px 0 0;border-style:solid;border-color:inherit;flex:0 0 auto;display:flex;flex-flow:row wrap;align-items:center;gap:var(--kendo-spacing-2, 0.5rem);overflow:hidden}.k-dialog{background-color:var(--kendo-color-app-surface, #ffffff)}.k-dialog-titlebar{border-color:inherit;color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-dialog-primary .k-dialog-titlebar{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-dialog-light .k-dialog-titlebar{color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-dialog-dark .k-dialog-titlebar{color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-drawer-container{display:flex;flex-flow:row nowrap;align-items:flex-start}kendo-drawer.k-drawer,kendo-drawer .k-drawer-wrapper{transition:none}.k-drawer{height:100%;max-width:100%;border-width:0;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;flex:0 0 auto;transition:all 300ms ease-in-out;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-drawer *,.k-drawer *::before,.k-drawer *::after{box-sizing:border-box}.k-drawer-mini .k-drawer.k-drawer-start,.k-drawer-expanded .k-drawer.k-drawer-start{border-inline-end-width:1px}.k-drawer-mini .k-drawer.k-drawer-end,.k-drawer-expanded .k-drawer.k-drawer-end{border-inline-start-width:1px}.k-drawer.k-drawer-start{top:0;inset-inline-start:0}.k-drawer.k-drawer-end{top:0;inset-inline-end:0}.k-drawer-content{flex:1 1 auto;overflow:auto}.k-drawer-overlay .k-drawer{max-width:80vw;position:fixed;z-index:10002;border:0}.k-drawer-overlay>.k-overlay{display:none}.k-drawer-overlay.k-drawer-expanded>.k-overlay{display:block}.k-drawer-push{display:flex;flex-direction:row}.k-drawer-push .k-drawer{height:auto;position:relative;align-self:stretch}.k-drawer-push:has(.k-drawer.k-drawer-end){flex-direction:row-reverse}.k-drawer-wrapper{overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;transition:all 300ms ease-in-out}.k-drawer-wrapper::-webkit-scrollbar{width:7px}.k-drawer-wrapper::-webkit-scrollbar-thumb{border-radius:20px}.k-drawer-items{margin:0;padding-block:0;padding-inline:0;list-style:none;display:flex;flex-direction:column;align-items:stretch}.k-drawer-item{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);outline:0;color:inherit;font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal);font-weight:var(--kendo-font-weight, normal);display:flex;flex-flow:row nowrap;gap:var(--kendo-spacing-4, 1rem);align-items:center;cursor:pointer}.k-drawer-item>.k-drawer-link{margin-block:calc(var(--kendo-spacing-2, 0.5rem)*-1);margin-inline:calc(var(--kendo-spacing-4, 1rem)*-1);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);color:inherit;display:flex;flex-flow:row nowrap;flex:1 0 auto;gap:var(--kendo-spacing-4, 1rem)}.k-drawer-item .k-icon{flex-shrink:0;padding-inline:var(--kendo-spacing-0, 0px);padding-block:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box}.k-drawer-item .k-icon.k-i-none{margin:0}.k-drawer-item .k-item-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-drawer-item .k-drawer-toggle{margin-inline-start:auto;cursor:pointer;display:flex}.k-drawer-item.k-level-1{padding-inline-start:calc(var(--kendo-spacing-4, 1rem)*2)}.k-drawer-item.k-level-2{padding-inline-start:calc(var(--kendo-spacing-4, 1rem)*3)}.k-drawer-item.k-level-3{padding-inline-start:calc(var(--kendo-spacing-4, 1rem)*4)}.k-drawer-item.k-level-4{padding-inline-start:calc(var(--kendo-spacing-4, 1rem)*5)}.k-drawer-item.k-level-5{padding-inline-start:calc(var(--kendo-spacing-4, 1rem)*6)}.k-drawer-separator{padding:0;height:1px}.k-drawer-mini .k-drawer-wrapper{width:calc(var(--kendo-spacing-4, 1rem)*2 + 16px)}.k-drawer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-drawer-wrapper{scrollbar-color:rgba(156,156,156,.7) #dedede}.k-drawer-wrapper::-webkit-scrollbar-track{background:#dedede}.k-drawer-wrapper::-webkit-scrollbar-thumb{background:rgba(156,156,156,.7)}.k-drawer-wrapper::-webkit-scrollbar-thumb:hover{background:#9c9c9c}.k-drawer-item:hover,.k-drawer-item.k-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-drawer-item:focus,.k-drawer-item.k-focus{background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-drawer-item:focus:hover,.k-drawer-item:focus.k-hover,.k-drawer-item.k-focus:hover,.k-drawer-item.k-focus.k-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-drawer-item.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-drawer-item.k-selected:hover,.k-drawer-item.k-selected.k-hover{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary-hover, #116fa5)}.k-drawer-separator{background-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-notification-group{max-height:100%;display:inline-flex;flex-flow:column-reverse wrap;position:fixed;z-index:1000;gap:var(--kendo-spacing-2, 0.5rem) 0}.k-notification-container-animating{overflow:hidden}.k-notification{border-radius:var(--kendo-border-radius-md, 0.25rem);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size-sm, inherit);line-height:va(--kendo-line-height, normal);cursor:default;position:relative;display:flex;align-items:center;justify-content:center;gap:var(--kendo-spacing-1, 0.25rem);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-notification *,.k-notification *::before,.k-notification *::after{box-sizing:border-box}.k-notification>.k-notification-content{flex:1 1 auto}.k-notification>.k-notification-status{flex-shrink:0}.k-notification-actions{flex:none;display:flex;gap:var(--kendo-spacing-1, 0.25rem);flex-flow:row nowrap;align-items:center;align-self:center;cursor:pointer}.k-notification-action{flex:none;display:flex;flex-flow:row nowrap;align-items:center;align-self:center}.k-notification{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-notification-inverse{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-inverse, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-notification-light{border-color:var(--kendo-color-light, #757575);color:var(--kendo-color-on-light, white);background-color:var(--kendo-color-light, #757575)}.k-notification-dark{border-color:var(--kendo-color-dark, #3d3d3d);color:var(--kendo-color-on-dark, #ffffff);background-color:var(--kendo-color-dark, #3d3d3d)}.k-notification-error{border-color:var(--kendo-color-error, #D51923);color:var(--kendo-color-on-error, white);background-color:var(--kendo-color-error, #D51923)}.k-notification-warning{border-color:var(--kendo-color-warning, #F5A600);color:var(--kendo-color-on-warning, white);background-color:var(--kendo-color-warning, #F5A600)}.k-notification-success{border-color:var(--kendo-color-success, #278200);color:var(--kendo-color-on-success, white);background-color:var(--kendo-color-success, #278200)}.k-notification-info{border-color:var(--kendo-color-info, #0058E9);color:var(--kendo-color-on-info, white);background-color:var(--kendo-color-info, #0058E9)}.k-notification-tertiary{border-color:var(--kendo-color-tertiary, #007F84);color:var(--kendo-color-on-tertiary, white);background-color:var(--kendo-color-tertiary, #007F84)}.k-notification-secondary{border-color:var(--kendo-color-secondary, #757575);color:var(--kendo-color-on-secondary, white);background-color:var(--kendo-color-secondary, #757575)}.k-notification-primary{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}kendo-card,kendo-card-header,kendo-card-body,kendo-card-actions,kendo-card-footer{display:block}.k-card{border-radius:var(--kendo-border-radius-lg, 0.375rem);border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;position:relative;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-card *,.k-card *::before,.k-card *::after{box-sizing:border-box}.k-card .k-card-avatar,.k-card .k-avatar{margin-right:var(--kendo-spacing-4, 1rem);width:45px;height:45px;flex-basis:45px}.k-card>.k-card-inner{border-radius:calc(var(--kendo-border-radius-lg, 0.375rem) - 1px);display:flex;flex-direction:inherit;overflow:hidden;position:relative}.k-card-horizontal{flex-flow:row nowrap}.k-card-vertical{flex-flow:column nowrap}.k-card-header{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:0 0 1px;border-style:solid;outline:0;flex-shrink:0;overflow:hidden;position:relative;z-index:1}.k-card-header .k-card-title,.k-card-header .k-card-subtitle{margin-bottom:0}.k-card-header .k-card-title+.k-card-subtitle,.k-card-header .k-card-subtitle+.k-card-subtitle{margin-top:var(--kendo-spacing-2, 0.5rem)}.k-card-footer{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:1px 0 0;border-style:solid;outline:0;flex-shrink:0}.k-card-body{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);outline:0;flex:1 1 auto}.k-card-body p{margin:0 0 var(--kendo-font-size, inherit)}.k-card-body>.k-last,.k-card-body>:last-child{margin-bottom:0}.k-card-body>.k-card-actions{padding:0}.k-card-media{border:0;max-width:100%;flex-shrink:0;overflow:hidden}.k-card-horizontal .k-card-media{max-width:100px;object-fit:cover}.k-card-title{margin:0 0 var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-sm, normal);font-weight:var(--kendo-font-weight-normal, normal)}.k-card-subtitle{margin:0 0 var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-lg, normal);font-weight:var(--kendo-font-weight-normal, normal)}.k-card-separator{margin:0;border-width:0;border-style:solid;border-color:inherit;display:block;flex:0 0 auto;align-self:stretch}.k-card-separator.k-separator-horizontal,.k-card-vertical>.k-card-separator{border-top-width:1px}.k-card-separator.k-separator-vertical,.k-card-horizontal>.k-card-separator{border-left-width:1px}.k-card>.k-hr{margin:0;flex:0 0 auto;border-color:inherit}.k-card-actions{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0;border-style:solid;border-color:inherit;overflow:hidden;display:flex;flex-shrink:0;flex-basis:auto;gap:var(--kendo-spacing-2, 0.5rem)}.k-card-horizontal .k-actions-horizontal{width:auto}.k-card-list{display:flex;flex-flow:column nowrap;align-items:stretch;gap:var(--kendo-spacing-4, 1rem);flex:0 0 auto}.k-card-list .k-card{flex:0 0 auto}.k-card-deck{display:flex;flex-flow:row nowrap;align-items:stretch;gap:var(--kendo-spacing-4, 1rem);flex:0 0 auto}.k-card-deck .k-card{flex:0 0 auto}.k-card-deck-scrollwrap{padding-bottom:3px;width:100%;box-sizing:content-box;display:flex;flex:0 0 auto;align-items:center;position:relative;overflow:hidden}.k-card-deck-scrollwrap>.k-button{border-radius:0px;flex:0 0 auto;position:absolute;z-index:1}.k-card-deck-scrollwrap>.k-button:first-child{left:-1px}.k-card-deck-scrollwrap>.k-button:last-child{right:-1px}.k-card-deck-scrollwrap>.k-card-deck{margin-bottom:-20px;padding-bottom:20px;flex:1 1 auto}.k-card-group{display:flex;flex-flow:row nowrap;align-items:stretch;flex:0 0 auto}.k-card-group .k-card{border-radius:0;flex:0 0 auto}.k-card-group .k-card+.k-card{margin-inline-start:1px}.k-card-group .k-card.k-first{border-top-left-radius:var(--kendo-border-radius-lg, 0.375rem);border-bottom-left-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-card-group .k-card.k-last{border-top-right-radius:var(--kendo-border-radius-lg, 0.375rem);border-bottom-right-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-card-group .k-card.k-only{border-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-card-with-callout{overflow:visible}.k-card-callout{margin:0;width:20px;height:20px;border-width:1px;border-style:solid;box-sizing:border-box;position:absolute}.k-card-callout.k-callout-n{top:0;left:50%;transform:translate(-50%, -50%) rotate(45deg)}.k-card-callout.k-callout-e{top:50%;right:0;transform:translate(50%, -50%) rotate(-45deg)}.k-card-callout.k-callout-s{bottom:0;left:50%;transform:translate(-50%, 50%) rotate(45deg)}.k-card-callout.k-callout-w{top:50%;left:0;transform:translate(-50%, -50%) rotate(45deg)}.k-card-flat{box-shadow:none}.k-card{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-card .k-card-inner{background-color:inherit;border-color:inherit}.k-card:focus,.k-card.k-focus{border-color:rgba(0,0,0,.15)}.k-card-actions{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-card-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242)}.k-card-footer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242)}.k-card-body{border-color:inherit}.k-card-separator,.k-card .k-separator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-card-subtitle{color:var(--kendo-color-subtle, #666666)}.k-card-primary{background-color:var(--kendo-color-primary-subtle, #d0e3ee);color:var(--kendo-color-primary-on-subtle, #06293c);border-color:var(--kendo-color-primary-emphasis, #4d97c1)}.k-card-primary .k-card-subtitle{color:inherit}.k-card-secondary{background-color:var(--kendo-color-secondary-subtle, #e3e3e3);color:var(--kendo-color-secondary-on-subtle, #292929);border-color:var(--kendo-color-secondary-emphasis, #989898)}.k-card-secondary .k-card-subtitle{color:inherit}.k-card-tertiary{background-color:var(--kendo-color-tertiary-subtle, #cce5e6);color:var(--kendo-color-tertiary-on-subtle, #002c2e);border-color:var(--kendo-color-tertiary-emphasis, #409fa3)}.k-card-tertiary .k-card-subtitle{color:inherit}.k-card-info{background-color:var(--kendo-color-info-subtle, #ccdefb);color:var(--kendo-color-info-on-subtle, #001f52);border-color:var(--kendo-color-info-emphasis, #4082ef)}.k-card-info .k-card-subtitle{color:inherit}.k-card-success{background-color:var(--kendo-color-success-subtle, #d4e6cc);color:var(--kendo-color-success-on-subtle, #0e2e00);border-color:var(--kendo-color-success-emphasis, #5da140)}.k-card-success .k-card-subtitle{color:inherit}.k-card-warning{background-color:var(--kendo-color-warning-subtle, #fdedcc);color:var(--kendo-color-warning-on-subtle, #563a00);border-color:var(--kendo-color-warning-emphasis, #f8bc40)}.k-card-warning .k-card-subtitle{color:inherit}.k-card-error{background-color:var(--kendo-color-error-subtle, #f7d1d3);color:var(--kendo-color-error-on-subtle, #4b090c);border-color:var(--kendo-color-error-emphasis, #e0535a)}.k-card-error .k-card-subtitle{color:inherit}.k-card-dark{background-color:var(--kendo-color-dark-subtle, #c2c2c2);color:var(--kendo-color-dark-on-subtle, #1f1f1f);border-color:var(--kendo-color-dark-emphasis, #666666)}.k-card-dark .k-card-subtitle{color:inherit}.k-card-light{background-color:var(--kendo-color-light-subtle, #e3e3e3);color:var(--kendo-color-light-on-subtle, #292929);border-color:var(--kendo-color-light-emphasis, #989898)}.k-card-light .k-card-subtitle{color:inherit}.k-card-inverse{background-color:var(--kendo-color-inverse-subtle, #c2c2c2);color:var(--kendo-color-inverse-on-subtle, #1f1f1f);border-color:var(--kendo-color-inverse-emphasis, #666666)}.k-card-inverse .k-card-subtitle{color:inherit}.k-card-callout{border-color:inherit;background-color:inherit;box-shadow:inherit}.k-popover{border-radius:var(--kendo-border-radius-lg, 0.375rem);padding:0;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-flow:column nowrap;z-index:12000;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-popover *,.k-popover *::before,.k-popover *::after{box-sizing:border-box}.k-popover-inner{height:inherit;position:relative;border-radius:inherit;border-color:inherit}.k-popover-header{border-top-left-radius:var(--kendo-border-radius-lg, 0.375rem);border-top-right-radius:var(--kendo-border-radius-lg, 0.375rem);padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:0 0 1px;border-style:solid;border-color:inherit}.k-popover-body{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-popover-actions{border-width:1px 0 0}.k-popover-callout{margin:0;width:20px;height:20px;border-width:1px;border-style:solid;position:absolute}.k-popover-callout.k-callout-n{top:0;left:50%;transform:translate(-50%, -50%) rotate(45deg)}.k-popover-callout.k-callout-e{top:50%;right:0;transform:translate(50%, -50%) rotate(-45deg)}.k-popover-callout.k-callout-s{bottom:0;left:50%;transform:translate(-50%, 50%) rotate(45deg)}.k-popover-callout.k-callout-w{top:50%;left:0;transform:translate(-50%, -50%) rotate(45deg)}.k-popover{box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12));border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-popover-inner{background-color:inherit;border-color:inherit}.k-popover-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242)}.k-popover-callout{border-color:inherit;background-color:inherit;box-shadow:inherit}.k-rpanel-left,.k-rpanel-right{position:fixed;display:block;overflow:auto;min-width:320px;height:100%;top:0}.k-rpanel-left+*,.k-rpanel-right+*{overflow:auto}.k-rpanel-left.k-rpanel-expanded,.k-rpanel-right.k-rpanel-expanded{transform:translateX(0) translateZ(0)}.k-rpanel-left{transform:translateX(-100%) translateZ(0);left:0}.k-rpanel-right{transform:translateX(100%) translateZ(0);right:0}.k-rpanel-top{position:static;max-height:0}.k-rpanel-top.k-rpanel-expanded{max-height:568px;overflow:visible !important}.k-rpanel-toggle{touch-action:manipulation}.k-bottom-nav{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);width:100%;border-width:0;border-style:solid;border-color:rgba(0,0,0,0);box-sizing:border-box;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height-xs, normal);font-family:var(--kendo-font-family, inherit);letter-spacing:.2px;display:flex;flex-flow:row nowrap;white-space:nowrap;gap:var(--kendo-spacing-1, 0.25rem);overflow:hidden;outline:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-bottom-nav *,.k-bottom-nav *::before,.k-bottom-nav *::after{box-sizing:border-box}.k-bottom-nav-border{border-width:1px 0px 0px 0px}.k-bottom-nav-shadow{box-shadow:var(--kendo-elevation-4, 0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-bottom-nav-item{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-2, 0.5rem);min-width:72px;min-height:calc(40px + var(--kendo-spacing-2, 0.5rem)*2 - var(--kendo-spacing-1, 0.25rem)*2);border-width:0;border-radius:var(--kendo-border-radius-md, 0.25rem);box-sizing:border-box;font:inherit;display:inline-flex;flex:1 1 auto;align-items:center;justify-content:center;gap:0 var(--kendo-spacing-1, 0.25rem);text-decoration:none;cursor:pointer;color:inherit;background-color:inherit;border-color:inherit;outline:none}.k-bottom-nav-item:focus{outline:none}.k-bottom-nav-item:hover{color:inherit;text-decoration:none}.k-bottom-nav-item>.k-bottom-nav-link{margin-block:calc(var(--kendo-spacing-0, 0px)*-1);margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1);padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-2, 0.5rem);width:100%;color:inherit;display:flex;flex-flow:row nowrap;flex:1 0 auto;align-items:center;justify-content:center;outline:0}.k-bottom-nav-item.k-disabled{background-color:initial}.k-bottom-nav-item-text{overflow:hidden;text-overflow:ellipsis;max-width:100%}.k-bottom-nav-item-flow-horizontal .k-bottom-nav-item{flex-flow:row nowrap}.k-bottom-nav-item-flow-vertical .k-bottom-nav-item{flex-direction:column}.k-bottom-nav.k-pos-fixed,.k-bottom-nav.k-fixed{bottom:0;z-index:1}.k-bottom-nav-solid-primary,.k-bottom-nav-solid.k-bottom-nav-primary{color:color-mix(in srgb, var(--kendo-color-on-primary, white) 65%, transparent);background-color:var(--kendo-color-primary, #1274AC)}.k-bottom-nav-solid-primary .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-primary .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-primary .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-primary .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-primary, white) 12.5%, transparent)}.k-bottom-nav-solid-primary .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-primary .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-primary, white)}.k-bottom-nav-solid-secondary,.k-bottom-nav-solid.k-bottom-nav-secondary{color:color-mix(in srgb, var(--kendo-color-on-secondary, white) 65%, transparent);background-color:var(--kendo-color-secondary, #757575)}.k-bottom-nav-solid-secondary .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-secondary .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-secondary .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-secondary .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-secondary, white) 12.5%, transparent)}.k-bottom-nav-solid-secondary .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-secondary .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-secondary, white)}.k-bottom-nav-solid-tertiary,.k-bottom-nav-solid.k-bottom-nav-tertiary{color:color-mix(in srgb, var(--kendo-color-on-tertiary, white) 65%, transparent);background-color:var(--kendo-color-tertiary, #007F84)}.k-bottom-nav-solid-tertiary .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-tertiary .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-tertiary .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-tertiary .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-tertiary, white) 12.5%, transparent)}.k-bottom-nav-solid-tertiary .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-tertiary .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-tertiary, white)}.k-bottom-nav-solid-info,.k-bottom-nav-solid.k-bottom-nav-info{color:color-mix(in srgb, var(--kendo-color-on-info, white) 65%, transparent);background-color:var(--kendo-color-info, #0058E9)}.k-bottom-nav-solid-info .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-info .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-info .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-info .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-info, white) 12.5%, transparent)}.k-bottom-nav-solid-info .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-info .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-info, white)}.k-bottom-nav-solid-success,.k-bottom-nav-solid.k-bottom-nav-success{color:color-mix(in srgb, var(--kendo-color-on-success, white) 65%, transparent);background-color:var(--kendo-color-success, #278200)}.k-bottom-nav-solid-success .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-success .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-success .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-success .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-success, white) 12.5%, transparent)}.k-bottom-nav-solid-success .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-success .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-success, white)}.k-bottom-nav-solid-warning,.k-bottom-nav-solid.k-bottom-nav-warning{color:color-mix(in srgb, var(--kendo-color-on-warning, white) 65%, transparent);background-color:var(--kendo-color-warning, #F5A600)}.k-bottom-nav-solid-warning .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-warning .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-warning .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-warning .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-warning, white) 12.5%, transparent)}.k-bottom-nav-solid-warning .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-warning .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-warning, white)}.k-bottom-nav-solid-error,.k-bottom-nav-solid.k-bottom-nav-error{color:color-mix(in srgb, var(--kendo-color-on-error, white) 65%, transparent);background-color:var(--kendo-color-error, #D51923)}.k-bottom-nav-solid-error .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-error .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-error .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-error .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-error, white) 12.5%, transparent)}.k-bottom-nav-solid-error .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-error .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-error, white)}.k-bottom-nav-solid-dark,.k-bottom-nav-solid.k-bottom-nav-dark{color:color-mix(in srgb, var(--kendo-color-on-dark, #ffffff) 65%, transparent);background-color:var(--kendo-color-dark, #3d3d3d)}.k-bottom-nav-solid-dark .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-dark .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-dark .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-dark .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-dark, #ffffff) 12.5%, transparent)}.k-bottom-nav-solid-dark .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-dark .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-dark, #ffffff)}.k-bottom-nav-solid-light,.k-bottom-nav-solid.k-bottom-nav-light{color:color-mix(in srgb, var(--kendo-color-on-light, white) 65%, transparent);background-color:var(--kendo-color-light, #757575)}.k-bottom-nav-solid-light .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-light .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-light .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-light .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-light, white) 12.5%, transparent)}.k-bottom-nav-solid-light .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-light .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-light, white)}.k-bottom-nav-solid-inverse,.k-bottom-nav-solid.k-bottom-nav-inverse{color:color-mix(in srgb, var(--kendo-color-on-inverse, #ffffff) 65%, transparent);background-color:var(--kendo-color-dark, #3d3d3d)}.k-bottom-nav-solid-inverse .k-bottom-nav-item.k-focus,.k-bottom-nav-solid.k-bottom-nav-inverse .k-bottom-nav-item.k-focus,.k-bottom-nav-solid-inverse .k-bottom-nav-item:focus,.k-bottom-nav-solid.k-bottom-nav-inverse .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-inverse, #ffffff) 12.5%, transparent)}.k-bottom-nav-solid-inverse .k-bottom-nav-item.k-selected,.k-bottom-nav-solid.k-bottom-nav-inverse .k-bottom-nav-item.k-selected{color:var(--kendo-color-on-inverse, #ffffff)}.k-bottom-nav-flat-primary,.k-bottom-nav-flat.k-bottom-nav-primary{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-primary .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-primary .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-primary .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-primary .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-primary .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-primary .k-bottom-nav-item.k-selected{color:var(--kendo-color-primary, #1274AC)}.k-bottom-nav-flat-secondary,.k-bottom-nav-flat.k-bottom-nav-secondary{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-secondary .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-secondary .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-secondary .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-secondary .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-secondary .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-secondary .k-bottom-nav-item.k-selected{color:var(--kendo-color-secondary, #757575)}.k-bottom-nav-flat-tertiary,.k-bottom-nav-flat.k-bottom-nav-tertiary{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-tertiary .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-tertiary .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-tertiary .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-tertiary .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-tertiary .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-tertiary .k-bottom-nav-item.k-selected{color:var(--kendo-color-tertiary, #007F84)}.k-bottom-nav-flat-info,.k-bottom-nav-flat.k-bottom-nav-info{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-info .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-info .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-info .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-info .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-info .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-info .k-bottom-nav-item.k-selected{color:var(--kendo-color-info, #0058E9)}.k-bottom-nav-flat-success,.k-bottom-nav-flat.k-bottom-nav-success{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-success .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-success .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-success .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-success .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-success .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-success .k-bottom-nav-item.k-selected{color:var(--kendo-color-success, #278200)}.k-bottom-nav-flat-warning,.k-bottom-nav-flat.k-bottom-nav-warning{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-warning .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-warning .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-warning .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-warning .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-warning .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-warning .k-bottom-nav-item.k-selected{color:var(--kendo-color-warning, #F5A600)}.k-bottom-nav-flat-error,.k-bottom-nav-flat.k-bottom-nav-error{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-error .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-error .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-error .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-error .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-error .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-error .k-bottom-nav-item.k-selected{color:var(--kendo-color-error, #D51923)}.k-bottom-nav-flat-dark,.k-bottom-nav-flat.k-bottom-nav-dark{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-dark .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-dark .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-dark .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-dark .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-dark .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-dark .k-bottom-nav-item.k-selected{color:var(--kendo-color-dark, #3d3d3d)}.k-bottom-nav-flat-light,.k-bottom-nav-flat.k-bottom-nav-light{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-light .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-light .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-light .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-light .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-light .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-light .k-bottom-nav-item.k-selected{color:var(--kendo-color-light, #757575)}.k-bottom-nav-flat-inverse,.k-bottom-nav-flat.k-bottom-nav-inverse{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-bottom-nav-flat-inverse .k-bottom-nav-item.k-focus,.k-bottom-nav-flat.k-bottom-nav-inverse .k-bottom-nav-item.k-focus,.k-bottom-nav-flat-inverse .k-bottom-nav-item:focus,.k-bottom-nav-flat.k-bottom-nav-inverse .k-bottom-nav-item:focus{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-bottom-nav-flat-inverse .k-bottom-nav-item.k-selected,.k-bottom-nav-flat.k-bottom-nav-inverse .k-bottom-nav-item.k-selected{color:var(--kendo-color-dark, #3d3d3d)}.k-breadcrumb{border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);display:flex;flex-direction:row;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-breadcrumb *,.k-breadcrumb *::before,.k-breadcrumb *::after{box-sizing:border-box}.k-breadcrumb-container,.k-breadcrumb-root-item-container{margin:0;padding:0;list-style:none;display:flex;flex-flow:row nowrap;overflow:hidden}.k-breadcrumb-root-item-container{align-items:flex-start;flex-shrink:0}.k-breadcrumb-item{vertical-align:middle;display:inline-flex;flex-direction:row;flex:none;align-items:center;overflow:hidden}.k-breadcrumb-root-item{flex-shrink:0}.k-breadcrumb-link,.k-breadcrumb-root-link{border-radius:var(--kendo-border-radius-md, 0.25rem);color:inherit;text-decoration:none;white-space:nowrap;outline:none;cursor:pointer;position:relative;display:inline-flex;align-items:center;align-self:stretch;overflow:hidden;transition:color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out}.k-breadcrumb-link>.k-image,.k-breadcrumb-icontext-link .k-icon{margin-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-breadcrumb-delimiter,.k-breadcrumb-delimiter-icon{color:inherit;opacity:var(--kendo-disabled-opacity, unset)}.k-breadcrumb-input-container{width:100%}.k-breadcrumb-input-container .k-breadcrumb-input-container{border-color:rgba(0,0,0,0)}.k-breadcrumb-sm{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-breadcrumb-sm .k-breadcrumb-link,.k-breadcrumb-sm .k-breadcrumb-root-link{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-breadcrumb-sm .k-breadcrumb-icon-link{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-1\.5, 0.375rem)}.k-breadcrumb-md{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-breadcrumb-md .k-breadcrumb-link,.k-breadcrumb-md .k-breadcrumb-root-link{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-breadcrumb-md .k-breadcrumb-icon-link{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-breadcrumb-lg{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-breadcrumb-lg .k-breadcrumb-link,.k-breadcrumb-lg .k-breadcrumb-root-link{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-breadcrumb-lg .k-breadcrumb-icon-link{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-breadcrumb{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-breadcrumb:focus,.k-breadcrumb.k-focus{box-shadow:0 0 2px 1px rgba(0,0,0,.06)}.k-breadcrumb-link{color:var(--kendo-color-primary, #1274AC)}.k-breadcrumb-link:hover,.k-breadcrumb-link.k-hover{color:var(--kendo-color-primary-hover, #116fa5);background-color:var(--kendo-color-surface, #fafafa)}.k-breadcrumb-link:focus,.k-breadcrumb-link.k-focus{color:var(--kendo-color-primary, #1274AC);box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-breadcrumb-root-link:hover,.k-breadcrumb-root-link.k-hover{background-color:var(--kendo-color-surface, #fafafa)}.k-breadcrumb-root-link:focus,.k-breadcrumb-root-link.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-pager{padding:0;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);white-space:nowrap;display:flex;flex-wrap:wrap;align-items:center;position:relative;overflow:hidden;cursor:default;flex:0 0 auto;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-pager *,.k-pager *::before,.k-pager *::after{box-sizing:border-box}.k-pager-responsive{flex-wrap:nowrap}.k-pager-info,.k-pager-sizes,.k-pager-input{display:flex;flex-direction:row;align-items:center}.k-pager-nav{color:inherit;text-align:center;display:inline-flex;align-items:center;justify-content:center;position:relative}.k-pager-nav:hover{z-index:2}.k-pager-numbers-wrap{display:flex;flex-direction:row;position:relative}.k-pager-numbers-wrap select.k-dropdown-list,.k-pager-numbers-wrap select.k-dropdown,.k-pager-numbers-wrap select.k-dropdownlist{width:5em}.k-pager-numbers{display:flex;flex-direction:row}.k-pager-numbers .k-selected{cursor:inherit;z-index:2}.k-pager-input{gap:1ex}.k-pager-input .k-textbox,.k-pager-input .k-numerictextbox{margin-block:0;width:5em}.k-pager-sizes{gap:1ex}.k-pager-sizes .k-input-inner,.k-pager-sizes .k-input-value-text{text-overflow:clip}.k-pager-info{text-align:end;justify-content:flex-end;flex:1 1 0%;order:9}.k-pager-refresh{margin-inline-start:auto;color:inherit;order:10}.k-pager-sm{padding-inline:var(--kendo-spacing-1, 0.25rem);padding-block:var(--kendo-spacing-1, 0.25rem);gap:var(--kendo-spacing-3, 0.75rem)}.k-pager-sm .k-pager-numbers-wrap .k-button{min-width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px)}.k-pager-sm .k-pager-numbers-wrap .k-pager-input,.k-pager-sm .k-pager-numbers-wrap>select.k-dropdown-list,.k-pager-sm .k-pager-numbers-wrap>select.k-dropdown,.k-pager-sm .k-pager-numbers-wrap>select.k-dropdownlist{margin-inline-start:var(--kendo-spacing-3, 0.75rem);margin-inline-end:var(--kendo-spacing-3, 0.75rem)}.k-pager-sm .k-pager-sizes .k-dropdown-list,.k-pager-sm .k-pager-sizes .k-dropdown,.k-pager-sm .k-pager-sizes .k-dropdownlist,.k-pager-sm .k-pager-sizes>select{width:5em}.k-pager-md{padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-2, 0.5rem);gap:var(--kendo-spacing-3\.5, 0.875rem)}.k-pager-md .k-pager-numbers-wrap .k-button{min-width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-pager-md .k-pager-numbers-wrap .k-pager-input,.k-pager-md .k-pager-numbers-wrap>select.k-dropdown-list,.k-pager-md .k-pager-numbers-wrap>select.k-dropdown,.k-pager-md .k-pager-numbers-wrap>select.k-dropdownlist{margin-inline-start:var(--kendo-spacing-3\.5, 0.875rem);margin-inline-end:var(--kendo-spacing-3\.5, 0.875rem)}.k-pager-md .k-pager-sizes .k-dropdown-list,.k-pager-md .k-pager-sizes .k-dropdown,.k-pager-md .k-pager-sizes .k-dropdownlist,.k-pager-md .k-pager-sizes>select{width:5em}.k-pager-lg{padding-inline:var(--kendo-spacing-2\.5, 0.625rem);padding-block:var(--kendo-spacing-2\.5, 0.625rem);gap:var(--kendo-spacing-4, 1rem)}.k-pager-lg .k-pager-numbers-wrap .k-button{min-width:calc(var(--kendo-line-height-lg, normal)*1em + var(--kendo-spacing-2, 0.5rem)*2 + 2px)}.k-pager-lg .k-pager-numbers-wrap .k-pager-input,.k-pager-lg .k-pager-numbers-wrap>select.k-dropdown-list,.k-pager-lg .k-pager-numbers-wrap>select.k-dropdown,.k-pager-lg .k-pager-numbers-wrap>select.k-dropdownlist{margin-inline-start:var(--kendo-spacing-4, 1rem);margin-inline-end:var(--kendo-spacing-4, 1rem)}.k-pager-lg .k-pager-sizes .k-dropdown-list,.k-pager-lg .k-pager-sizes .k-dropdown,.k-pager-lg .k-pager-sizes .k-dropdownlist,.k-pager-lg .k-pager-sizes>select{width:5em}.k-pager{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-pager:focus,.k-pager.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-stepper{border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);font-family:var(--kendo-font-family, inherit);display:block;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);color:inherit;background:none}.k-stepper *,.k-stepper *::before,.k-stepper *::after{box-sizing:border-box}.k-stepper .k-step-list{margin:0;padding:0;list-style:none;display:flex;position:relative;z-index:1}.k-stepper .k-step-link{outline:none;color:inherit;text-decoration:none;white-space:nowrap;display:flex;align-items:center;overflow:hidden}.k-stepper .k-step-indicator{border-radius:50%;margin:3px;width:28px;height:28px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;flex:none;position:relative;z-index:1;overflow:visible;transition-property:color,background-color,border-color;transition-duration:.4s;transition-timing-function:ease-in-out}.k-stepper .k-step-indicator::before{border-radius:50%;content:"";width:100%;height:100%;position:absolute;top:0;left:0;z-index:-1}.k-stepper .k-step-indicator::after{border-radius:100%;content:"";border-width:1px;border-style:solid;border-color:inherit;pointer-events:none;display:none;position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;z-index:2}.k-stepper .k-step.k-focus .k-step-indicator::after,.k-stepper .k-step-link:focus .k-step-indicator::after{display:block}.k-stepper .k-step-label{max-width:clamp(100%,10em,100%);display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;z-index:1}.k-stepper .k-step-label:only-child{border-radius:var(--kendo-border-radius-xxxl, 1rem);padding-block:calc(var(--kendo-spacing-2\.5, 0.625rem)/2);padding-inline:var(--kendo-spacing-3, 0.75rem);border-width:0}.k-stepper .k-step-label .k-step-text{max-width:calc(10em - 16px - var(--kendo-spacing-1, 0.25rem));flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-stepper .k-step-label .k-icon{margin-left:var(--kendo-spacing-1, 0.25rem)}.k-stepper .k-step-current .k-step-label{font-weight:bold}.k-stepper .k-step-label-optional{flex-basis:100%;font-style:italic}.k-stepper .k-step-disabled,.k-stepper .k-step.k-disabled{opacity:1;pointer-events:none}.k-stepper .k-step-disabled .k-step-link,.k-stepper .k-step.k-disabled .k-step-link{cursor:default}.k-stepper .k-step-disabled .k-step-label-optional,.k-stepper .k-step.k-disabled .k-step-label-optional{color:inherit}.k-stepper .k-progressbar{pointer-events:none;z-index:0;overflow:visible}.k-stepper .k-progressbar-horizontal{grid-row:1/-1}.k-stepper .k-progressbar-vertical{position:absolute}.k-step-list-horizontal{flex-direction:row;grid-row:1}.k-step-list-horizontal .k-step{flex:1 0 auto;text-align:center}.k-step-list-horizontal .k-step-link{margin:auto;max-width:10em;flex-direction:column}.k-step-list-horizontal .k-step-label{text-align:center}.k-step-list-horizontal .k-step-indicator+.k-step-label{margin-top:var(--kendo-spacing-1, 0.25rem)}.k-step-list-horizontal~.k-progressbar{width:100%;height:2px;top:17px}.k-step-list-vertical{flex-direction:column}.k-step-list-vertical .k-step{min-height:54px}.k-step-list-vertical .k-step-label{justify-content:flex-start}.k-step-list-vertical .k-step-indicator+.k-step-label{margin-left:var(--kendo-spacing-3, 0.75rem)}.k-step-list-vertical~.k-progressbar{width:2px;height:100%;min-height:20px;left:17px}.k-step-list-vertical .k-step-content{height:0;overflow:hidden;transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.k-step-list-vertical .k-step-current .k-step-content{height:auto;overflow:visible;display:flex;flex-direction:column;justify-content:space-between;margin-left:30px;padding-block:var(--kendo-spacing-5, 1.25rem);padding-inline:var(--kendo-spacing-2\.5, 0.625rem)}.k-rtl .k-stepper,.k-stepper[dir=rtl]{direction:rtl}.k-rtl .k-stepper .k-step-label .k-icon,.k-stepper[dir=rtl] .k-step-label .k-icon{margin-left:0;margin-right:var(--kendo-spacing-1, 0.25rem)}.k-rtl .k-stepper .k-step-list-vertical .k-step-indicator+.k-step-label,.k-stepper[dir=rtl] .k-step-list-vertical .k-step-indicator+.k-step-label{margin-left:0;margin-right:var(--kendo-spacing-3, 0.75rem)}.k-rtl .k-stepper .k-step-list-vertical~.k-progressbar,.k-stepper[dir=rtl] .k-step-list-vertical~.k-progressbar{left:auto;right:17px}.k-stepper{color:var(--kendo-color-on-app-surface, #424242)}.k-stepper .k-step:hover .k-step-label,.k-stepper .k-step.k-hover .k-step-label,.k-stepper .k-step.k-step-hover .k-step-label{color:var(--kendo-color-on-base, #424242)}.k-stepper .k-step:hover .k-step-indicator,.k-stepper .k-step.k-hover .k-step-indicator,.k-stepper .k-step.k-step-hover .k-step-indicator{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-stepper .k-step.k-focus .k-step-label:only-child,.k-stepper .k-step .k-step-link:focus .k-step-label:only-child{box-shadow:inset 0 0 0 2px var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-stepper .k-step.k-step-disabled .k-step-indicator,.k-stepper .k-step.k-disabled .k-step-indicator,.k-stepper .k-step:disabled .k-step-indicator{color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 60%, transparent);background-color:var(--kendo-color-app-surface, #ffffff)}.k-stepper .k-step.k-step-disabled .k-step-label,.k-stepper .k-step.k-disabled .k-step-label,.k-stepper .k-step:disabled .k-step-label{color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 60%, transparent)}.k-stepper .k-step-indicator{border-color:#ccc;color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-stepper .k-step-indicator::after{box-shadow:inset 0 0 0 2px var(--kendo-color-surface-alt, #ffffff)}.k-stepper .k-step-label:only-child{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-stepper .k-step-done .k-step-indicator{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-stepper .k-step-done:hover .k-step-indicator,.k-stepper .k-step-done.k-hover .k-step-indicator,.k-stepper .k-step-done.k-step-hover .k-step-indicator{background-color:var(--kendo-color-primary-hover, #116fa5)}.k-stepper .k-step-done.k-step-disabled .k-step-indicator,.k-stepper .k-step-done.k-disabled .k-step-indicator,.k-stepper .k-step-done:disabled .k-step-indicator{border-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 60%, transparent);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-app-surface, #ffffff)}.k-stepper .k-step-done.k-step-disabled .k-step-indicator::before,.k-stepper .k-step-done.k-disabled .k-step-indicator::before,.k-stepper .k-step-done:disabled .k-step-indicator::before{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 60%, transparent)}.k-stepper .k-step-current .k-step-indicator{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-stepper .k-step-current:hover .k-step-indicator,.k-stepper .k-step-current.k-hover .k-step-indicator,.k-stepper .k-step-current.k-step-hover .k-step-indicator{background-color:var(--kendo-color-primary-hover, #116fa5)}.k-stepper .k-step-current.k-step-disabled .k-step-indicator,.k-stepper .k-step-current.k-disabled .k-step-indicator,.k-stepper .k-step-current:disabled .k-step-indicator{border-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 60%, transparent);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-app-surface, #ffffff)}.k-stepper .k-step-current.k-step-disabled .k-step-indicator::before,.k-stepper .k-step-current.k-disabled .k-step-indicator::before,.k-stepper .k-step-current:disabled .k-step-indicator::before{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 60%, transparent)}.k-stepper .k-step-success .k-step-label .k-icon{color:var(--kendo-color-success, #278200)}.k-stepper .k-step-error .k-step-label{color:var(--kendo-color-error, #D51923)}.k-stepper .k-step-error:hover .k-step-label,.k-stepper .k-step-error.k-hover .k-step-label,.k-stepper .k-step-error.k-step-hover .k-step-label{color:var(--kendo-color-error, #D51923)}.k-stepper .k-step-label-optional{color:var(--kendo-color-subtle, #666666)}.k-tabstrip-wrapper{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-0, 0px);box-sizing:border-box;border-width:0px;border-style:solid;display:flex;flex-direction:column;position:relative}.k-tabstrip{border-width:0;border-color:rgba(0,0,0,0);box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);color:inherit;background-color:rgba(0,0,0,0);display:flex;flex-flow:column nowrap;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-tabstrip-wrapper>.k-tabstrip{flex:1 1 auto}.k-tabstrip-items-wrapper{box-sizing:border-box;border-width:0;border-style:solid;border-color:inherit;position:relative;flex-shrink:0}.k-tabstrip-items{box-sizing:border-box;outline:0;display:flex;flex-direction:inherit;flex-wrap:wrap;flex:1 1 auto;gap:var(--kendo-spacing-0, 0px)}.k-tabstrip-items *,.k-tabstrip-items *::before,.k-tabstrip-items *::after{box-sizing:border-box}.k-tabstrip-items .k-item{margin:0;padding:0;border:1px solid rgba(0,0,0,0);position:relative;flex-shrink:0;display:flex;flex-direction:row;align-items:stretch;justify-items:stretch;outline:0}.k-tabstrip-items .k-item-actions{margin:0;padding:0;display:flex;flex-direction:row}.k-tabstrip-items .k-link{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-3, 0.75rem);color:inherit;cursor:pointer;display:inline-flex;vertical-align:middle;flex:1 1 auto;flex-direction:row;align-content:center;align-items:center;gap:var(--kendo-spacing-1, 0.25rem)}.k-tabstrip-content,.k-tabstrip>.k-content{margin:0 !important;padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);box-sizing:border-box;border-width:1px;border-style:solid;border-color:inherit;display:none;overflow:auto;flex:1 1 auto;position:relative}.k-tabstrip-content.k-active,.k-tabstrip>.k-content.k-active{display:block}.k-tabstrip-content:focus,.k-tabstrip-content.k-focus,.k-tabstrip>.k-content:focus,.k-tabstrip>.k-content.k-focus{outline-width:1px;outline-style:dotted;outline-offset:-1px}.k-tabstrip-items .k-loading{width:20%;height:0;border:0;border-top:1px solid rgba(0,0,0,0);border-color:inherit;background:none;position:absolute;top:0;left:0;transition:width .2s linear;display:none}.k-tabstrip-items .k-loading.k-complete{width:100%;border-top-width:0}.k-tabstrip-scrollable>.k-tabstrip-items-wrapper>.k-tabstrip-items{flex-wrap:nowrap;white-space:nowrap;overflow:hidden}.k-tabstrip-scrollable>.k-tabstrip-items-wrapper>.k-tabstrip-items.k-tabstrip-items-scroll{scrollbar-width:none}.k-tabstrip-scrollable>.k-tabstrip-items-wrapper>.k-tabstrip-items.k-tabstrip-items-scroll::-webkit-scrollbar{display:none}.k-tabstrip-scrollable.k-tabstrip-top .k-tabstrip-items.k-tabstrip-items-scroll,.k-tabstrip-scrollable.k-tabstrip-bottom .k-tabstrip-items.k-tabstrip-items-scroll{overflow-x:auto}.k-tabstrip-scrollable.k-tabstrip-left .k-tabstrip-items.k-tabstrip-items-scroll,.k-tabstrip-scrollable.k-tabstrip-right .k-tabstrip-items.k-tabstrip-items-scroll{overflow-y:auto}.k-tabstrip-scrollable-overlay .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay .k-tabstrip-items-wrapper::after{content:"";position:absolute;z-index:3}.k-tabstrip-scrollable-overlay.k-tabstrip-top .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-top .k-tabstrip-items-wrapper::after,.k-tabstrip-scrollable-overlay.k-tabstrip-bottom .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-bottom .k-tabstrip-items-wrapper::after{height:100%;aspect-ratio:1}.k-tabstrip-scrollable-overlay.k-tabstrip-top .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-bottom .k-tabstrip-items-wrapper::before{inset-inline-start:0}.k-tabstrip-scrollable-overlay.k-tabstrip-top .k-tabstrip-items-wrapper::after,.k-tabstrip-scrollable-overlay.k-tabstrip-bottom .k-tabstrip-items-wrapper::after{inset-inline-end:0}.k-tabstrip-scrollable-overlay.k-tabstrip-left .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-left .k-tabstrip-items-wrapper::after,.k-tabstrip-scrollable-overlay.k-tabstrip-right .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-right .k-tabstrip-items-wrapper::after{width:100%}.k-tabstrip-scrollable-overlay.k-tabstrip-left .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-right .k-tabstrip-items-wrapper::before{inset-block-start:0}.k-tabstrip-scrollable-overlay.k-tabstrip-left .k-tabstrip-items-wrapper::after,.k-tabstrip-scrollable-overlay.k-tabstrip-right .k-tabstrip-items-wrapper::after{inset-block-end:0}.k-tabstrip-scrollable-overlay.k-tabstrip-scrollable-start .k-tabstrip-items-wrapper::before{display:none}.k-tabstrip-scrollable-overlay.k-tabstrip-scrollable-end .k-tabstrip-items-wrapper::after{display:none}.k-tabstrip-horizontal,.k-tabstrip-bottom>.k-tabstrip-items-wrapper,.k-tabstrip-top>.k-tabstrip-items-wrapper{flex-direction:row}.k-tabstrip-vertical,.k-tabstrip-right>.k-tabstrip-items-wrapper,.k-tabstrip-left>.k-tabstrip-items-wrapper{flex-direction:column}.k-tabstrip-top>.k-tabstrip-items-wrapper{border-bottom-width:1px}.k-tabstrip-top>.k-tabstrip-items-wrapper .k-item{border-top-left-radius:var(--kendo-border-radius-md, 0.25rem);border-top-right-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-width:0}.k-tabstrip-top>.k-tabstrip-items-wrapper .k-item .k-link{justify-content:center}.k-tabstrip-top>.k-tabstrip-items-wrapper .k-item:active,.k-tabstrip-top>.k-tabstrip-items-wrapper .k-item.k-active{margin-bottom:-1px;border-bottom-width:1px;border-bottom-color:rgba(0,0,0,0) !important}.k-tabstrip-top>.k-content,.k-tabstrip-top>.k-tabstrip-content{border-bottom-right-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-left-radius:var(--kendo-border-radius-md, 0.25rem);border-top-width:0 !important}.k-tabstrip-bottom>.k-tabstrip-items-wrapper{border-top-width:1px}.k-tabstrip-bottom>.k-tabstrip-items-wrapper .k-item{border-bottom-right-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-left-radius:var(--kendo-border-radius-md, 0.25rem);border-top-width:0}.k-tabstrip-bottom>.k-tabstrip-items-wrapper .k-item .k-link{justify-content:center}.k-tabstrip-bottom>.k-tabstrip-items-wrapper .k-item:active,.k-tabstrip-bottom>.k-tabstrip-items-wrapper .k-item.k-active{margin-top:-1px;border-top-width:1px;border-top-color:rgba(0,0,0,0) !important}.k-tabstrip-bottom>.k-content,.k-tabstrip-bottom>.k-tabstrip-content{border-top-left-radius:var(--kendo-border-radius-md, 0.25rem);border-top-right-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-width:0 !important}.k-tabstrip-left{flex-direction:row}.k-tabstrip-left>.k-tabstrip-items-wrapper{border-right-width:1px}.k-tabstrip-left>.k-tabstrip-items-wrapper .k-item{border-top-left-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-left-radius:var(--kendo-border-radius-md, 0.25rem);border-right-width:0}.k-tabstrip-left>.k-tabstrip-items-wrapper .k-item:active,.k-tabstrip-left>.k-tabstrip-items-wrapper .k-item.k-active{margin-right:-1px;border-right-width:1px;border-right-color:rgba(0,0,0,0) !important}.k-tabstrip-left>.k-content,.k-tabstrip-left>.k-tabstrip-content{border-top-right-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-right-radius:var(--kendo-border-radius-md, 0.25rem);border-left-width:0 !important}.k-tabstrip-right{flex-direction:row-reverse}.k-tabstrip-right>.k-tabstrip-items-wrapper{border-left-width:1px}.k-tabstrip-right>.k-tabstrip-items-wrapper .k-item{border-top-right-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-right-radius:var(--kendo-border-radius-md, 0.25rem);border-left-width:0}.k-tabstrip-right>.k-tabstrip-items-wrapper .k-item:active,.k-tabstrip-right>.k-tabstrip-items-wrapper .k-item.k-active{margin-left:-1px;border-left-width:1px;border-left-color:rgba(0,0,0,0) !important}.k-tabstrip-right>.k-content,.k-tabstrip-right>.k-tabstrip-content{border-top-left-radius:var(--kendo-border-radius-md, 0.25rem);border-bottom-left-radius:var(--kendo-border-radius-md, 0.25rem);border-right-width:0}.k-tabstrip-items-start{justify-content:flex-start}.k-tabstrip-items-center{justify-content:center}.k-tabstrip-items-end{justify-content:flex-end}.k-tabstrip-items-justify{justify-content:space-between}.k-tabstrip-items-stretched>*{flex:1 0 0}.k-rtl .k-tabstrip.k-tabstrip-left>.k-tabstrip-items-wrapper,.k-rtl .k-tabstrip.k-tabstrip-right>.k-tabstrip-items-wrapper,.k-tabstrip[dir=rtl].k-tabstrip-left>.k-tabstrip-items-wrapper,.k-tabstrip[dir=rtl].k-tabstrip-right>.k-tabstrip-items-wrapper{order:1}.k-rtl .k-tabstrip.k-tabstrip-left>.k-content,.k-rtl .k-tabstrip.k-tabstrip-right>.k-content,.k-tabstrip[dir=rtl].k-tabstrip-left>.k-content,.k-tabstrip[dir=rtl].k-tabstrip-right>.k-content{order:0}.k-rtl .k-tabstrip.k-tabstrip-left>.k-tabstrip-content,.k-rtl .k-tabstrip.k-tabstrip-right>.k-tabstrip-content,.k-tabstrip[dir=rtl].k-tabstrip-left>.k-tabstrip-content,.k-tabstrip[dir=rtl].k-tabstrip-right>.k-tabstrip-content{order:0}.k-tabstrip-sm .k-tabstrip-items .k-link{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}:is(.k-tabstrip-sm.k-tabstrip-left,.k-tabstrip-sm.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper)::before,:is(.k-tabstrip-sm.k-tabstrip-left,.k-tabstrip-sm.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper)::after{height:calc(var(--kendo-line-height, normal)*1em + 2px + var(--kendo-spacing-1, 0.25rem)*2)}.k-tabstrip-md .k-tabstrip-items .k-link{font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}:is(.k-tabstrip-md.k-tabstrip-left,.k-tabstrip-md.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper)::before,:is(.k-tabstrip-md.k-tabstrip-left,.k-tabstrip-md.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper)::after{height:calc(var(--kendo-line-height, normal)*1em + 2px + var(--kendo-spacing-1\.5, 0.375rem)*2)}.k-tabstrip-lg .k-tabstrip-items .k-link{font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-lg, normal);padding-block:var(--kendo-spacing-2\.5, 0.625rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}:is(.k-tabstrip-lg.k-tabstrip-left,.k-tabstrip-lg.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper)::before,:is(.k-tabstrip-lg.k-tabstrip-left,.k-tabstrip-lg.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper)::after{height:calc(var(--kendo-line-height-lg, normal)*1em + 2px + var(--kendo-spacing-2\.5, 0.625rem)*2)}.k-tabstrip-items-wrapper{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242)}.k-tabstrip-items-wrapper .k-item{color:var(--kendo-color-subtle, #666666)}.k-tabstrip-items-wrapper .k-item:hover,.k-tabstrip-items-wrapper .k-item.k-hover{color:var(--kendo-color-on-app-surface, #424242)}.k-tabstrip-items-wrapper .k-item:active,.k-tabstrip-items-wrapper .k-item.k-active,.k-tabstrip-items-wrapper .k-item.k-selected{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-primary, #1274AC);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-tabstrip-items-wrapper .k-item:focus,.k-tabstrip-items-wrapper .k-item.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-tabstrip-items-wrapper .k-item.k-tabstrip-dragging{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-tabstrip-content,.k-tabstrip>.k-content{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-tabstrip-content:focus,.k-tabstrip-content.k-focus,.k-tabstrip>.k-content:focus,.k-tabstrip>.k-content.k-focus{outline-color:var(--kendo-color-on-app-surface, #424242)}.k-tabstrip-scrollable-overlay.k-tabstrip-top .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-bottom .k-tabstrip-items-wrapper::before{background:linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-tabstrip-scrollable-overlay.k-tabstrip-top .k-tabstrip-items-wrapper::after,.k-tabstrip-scrollable-overlay.k-tabstrip-bottom .k-tabstrip-items-wrapper::after{background:linear-gradient(270deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-tabstrip-scrollable-overlay.k-tabstrip-left .k-tabstrip-items-wrapper::before,.k-tabstrip-scrollable-overlay.k-tabstrip-right .k-tabstrip-items-wrapper::before{background:linear-gradient(180deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-tabstrip-scrollable-overlay.k-tabstrip-left .k-tabstrip-items-wrapper::after,.k-tabstrip-scrollable-overlay.k-tabstrip-right .k-tabstrip-items-wrapper::after{background:linear-gradient(360deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-tabstrip-scrollable-overlay,[dir=rtl] .k-tabstrip-scrollable-overlay,.k-tabstrip-scrollable-overlay.k-rtl,.k-tabstrip-scrollable-overlay[dir=rtl]).k-tabstrip-top .k-tabstrip-items-wrapper::before,:is(.k-rtl .k-tabstrip-scrollable-overlay,[dir=rtl] .k-tabstrip-scrollable-overlay,.k-tabstrip-scrollable-overlay.k-rtl,.k-tabstrip-scrollable-overlay[dir=rtl]).k-tabstrip-bottom .k-tabstrip-items-wrapper::before{background:linear-gradient(270deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}:is(.k-rtl .k-tabstrip-scrollable-overlay,[dir=rtl] .k-tabstrip-scrollable-overlay,.k-tabstrip-scrollable-overlay.k-rtl,.k-tabstrip-scrollable-overlay[dir=rtl]).k-tabstrip-top .k-tabstrip-items-wrapper::after,:is(.k-rtl .k-tabstrip-scrollable-overlay,[dir=rtl] .k-tabstrip-scrollable-overlay,.k-tabstrip-scrollable-overlay.k-rtl,.k-tabstrip-scrollable-overlay[dir=rtl]).k-tabstrip-bottom .k-tabstrip-items-wrapper::after{background:linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))}.k-wizard{padding-block:calc(var(--kendo-spacing-2, 0.5rem)*2.5);padding-inline:calc(var(--kendo-spacing-2, 0.5rem)*2.5);border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);font-family:var(--kendo-font-family, inherit);position:relative;color:inherit;background:none;display:flex;align-items:stretch;overflow:hidden}.k-wizard .k-wizard-steps{box-sizing:border-box;display:flex;overflow:hidden}.k-wizard .k-wizard-step{box-sizing:border-box;padding:calc(var(--kendo-spacing-2, 0.5rem)*4/4 + 2px);width:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between}.k-wizard .k-wizard-step:focus,.k-wizard .k-wizard-step.k-focus{outline-width:1px;outline-style:dotted;outline-offset:-1px}.k-wizard .k-wizard-content{box-sizing:border-box;overflow-y:auto}.k-wizard .k-wizard-buttons{margin-top:calc(var(--kendo-spacing-1, 0.25rem)*8);box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;flex-shrink:0}.k-wizard .k-wizard-buttons .k-button{margin-right:var(--kendo-spacing-2\.5, 0.625rem)}.k-wizard .k-wizard-buttons .k-wizard-pager{vertical-align:middle}.k-wizard .k-wizard-buttons-right .k-button:last-of-type{margin-right:0}.k-wizard .k-stepper .k-step-list-vertical .k-step{flex:1 0 auto}.k-wizard .k-stepper .k-step-indicator{flex-shrink:0}.k-wizard-horizontal{flex-direction:column}.k-wizard-horizontal .k-wizard-steps{margin-top:calc(var(--kendo-spacing-1, 0.25rem)*8)}.k-wizard-horizontal .k-wizard-steps,.k-wizard-horizontal .k-wizard-content{flex:1 1 auto}.k-wizard-vertical .k-wizard-steps{margin-left:calc(var(--kendo-spacing-2, 0.5rem)*4);flex:1 0 0%}.k-wizard-vertical .k-wizard-content{flex:1 1 0%}.k-wizard-left{flex-direction:row-reverse}.k-wizard-left .k-wizard-steps{margin-right:calc(var(--kendo-spacing-2, 0.5rem)*4);margin-left:0}.k-wizard-step:focus,.k-wizard-step.k-focus{outline-color:#656565}.k-expander{border-width:1px;border-style:solid;box-sizing:border-box;overflow:hidden;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-expander *,.k-expander *::before,.k-expander *::after{box-sizing:border-box}.k-rtl .k-expander .k-expander-indicator,.k-expander.k-rtl .k-expander-indicator,.k-expander[dir=rtl] .k-expander-indicator{margin-left:0;margin-right:var(--kendo-spacing-3, 0.75rem)}.k-expander-header{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-4, 1rem);display:flex;justify-content:space-between;align-items:center;cursor:pointer}.k-expander-spacer{flex:1 1 auto}.k-expander-title{text-transform:uppercase;font-weight:500}.k-expander-indicator{margin-left:var(--kendo-spacing-3, 0.75rem);display:flex;justify-content:center;align-items:center}.k-expander-content{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-expander+.k-expander.k-expanded,.k-expander.k-expanded+.k-expander{margin-top:var(--kendo-spacing-2, 0.5rem)}.k-expander:not(.k-expanded)+.k-expander:not(.k-expanded){border-top-width:0}.k-expander{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-expander.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-expander-header{color:var(--kendo-color-on-app-surface, #424242);background-color:rgba(0,0,0,0);outline:none}.k-expander-header:hover,.k-expander-header.k-hover{background-color:rgba(0,0,0,.04)}.k-expander-header.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-expander-title{color:var(--kendo-color-primary, #1274AC)}.k-expander-sub-title{color:var(--kendo-color-subtle, #666666)}.k-block,.k-panel{border-radius:var(--kendo-border-radius-md, 0.25rem);padding:0;border-width:1px;border-style:solid;box-sizing:border-box}.k-block>.k-header,.k-panel>.k-header{border-top-left-radius:var(--kendo-border-radius-md, 0.25rem);border-top-right-radius:var(--kendo-border-radius-md, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-1, 0.25rem)}.k-block>.k-content,.k-panel>.k-content{padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-1, 0.25rem)}.k-block,.k-panel{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-block>.k-header,.k-panel>.k-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}:where(.k-content){border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-panelbar{margin:0;padding:0;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);list-style:none;display:block;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-panelbar *,.k-panelbar *::before,.k-panelbar *::after{box-sizing:border-box}.k-panelbar>.k-panelbar-header{border-width:0;border-style:solid;border-color:inherit;display:block}.k-panelbar>.k-panelbar-header>.k-link{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-4, 1rem);color:inherit;background:none;text-decoration:none;font-weight:500;display:flex;flex-flow:row nowrap;gap:var(--kendo-spacing-1, 0.25rem);align-items:center;align-content:center;position:relative;-webkit-user-select:none;user-select:none;cursor:default;transition:color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out}.k-panelbar>.k-panelbar-header+.k-panelbar-header{border-top-width:1px}.k-panelbar .k-panelbar-group{margin:0;padding:0;border-width:0;border-color:inherit;color:inherit;background-color:rgba(0,0,0,0);list-style:none}.k-panelbar .k-panelbar-group>.k-panelbar-item{display:block}.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);color:inherit;text-decoration:none;display:flex;flex-flow:row nowrap;gap:var(--kendo-spacing-1, 0.25rem);align-items:center;align-content:center;position:relative;-webkit-user-select:none;user-select:none;cursor:default;transition:color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out}.k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-1 .k-link{padding-left:calc(var(--kendo-spacing-4, 1rem)*1)}.k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-2 .k-link{padding-left:calc(var(--kendo-spacing-4, 1rem)*2)}.k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-3 .k-link{padding-left:calc(var(--kendo-spacing-4, 1rem)*3)}.k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-4 .k-link{padding-left:calc(var(--kendo-spacing-4, 1rem)*4)}.k-panelbar .k-panelbar-item{outline-style:none}.k-panelbar .k-panelbar-content{display:flow-root}.k-panelbar .k-panelbar-expand,.k-panelbar .k-panelbar-collapse,.k-panelbar .k-panelbar-toggle{margin-inline-start:auto}.k-panelbar .k-panelbar-group .k-panelbar-expand,.k-panelbar .k-panelbar-group .k-panelbar-collapse,.k-panelbar .k-panelbar-group .k-panelbar-toggle{margin-inline-end:calc(var(--kendo-spacing-4, 1rem) - var(--kendo-spacing-4, 1rem))}.k-rtl .k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-1 .k-link,.k-panelbar.k-rtl .k-panelbar-group>.k-panelbar-item.k-level-1 .k-link,.k-panelbar [dir=rtl] .k-panelbar-group>.k-panelbar-item.k-level-1 .k-link{padding-left:var(--kendo-spacing-4, 1rem);padding-right:calc(var(--kendo-spacing-4, 1rem)*1)}.k-rtl .k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-2 .k-link,.k-panelbar.k-rtl .k-panelbar-group>.k-panelbar-item.k-level-2 .k-link,.k-panelbar [dir=rtl] .k-panelbar-group>.k-panelbar-item.k-level-2 .k-link{padding-left:var(--kendo-spacing-4, 1rem);padding-right:calc(var(--kendo-spacing-4, 1rem)*2)}.k-rtl .k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-3 .k-link,.k-panelbar.k-rtl .k-panelbar-group>.k-panelbar-item.k-level-3 .k-link,.k-panelbar [dir=rtl] .k-panelbar-group>.k-panelbar-item.k-level-3 .k-link{padding-left:var(--kendo-spacing-4, 1rem);padding-right:calc(var(--kendo-spacing-4, 1rem)*3)}.k-rtl .k-panelbar .k-panelbar-group>.k-panelbar-item.k-level-4 .k-link,.k-panelbar.k-rtl .k-panelbar-group>.k-panelbar-item.k-level-4 .k-link,.k-panelbar [dir=rtl] .k-panelbar-group>.k-panelbar-item.k-level-4 .k-link{padding-left:var(--kendo-spacing-4, 1rem);padding-right:calc(var(--kendo-spacing-4, 1rem)*4)}.k-panelbar{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-panelbar>.k-panelbar-header>.k-link{color:var(--kendo-color-primary, #1274AC);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-panelbar>.k-panelbar-header>.k-link .k-icon,.k-panelbar>.k-panelbar-header>.k-link .k-panelbar-item-icon{color:var(--kendo-color-on-app-surface, #424242)}.k-panelbar>.k-panelbar-header>.k-link:hover,.k-panelbar>.k-panelbar-header>.k-link.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-panelbar>.k-panelbar-header>.k-link:focus,.k-panelbar>.k-panelbar-header>.k-link.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-panelbar>.k-panelbar-header>.k-link.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-panelbar>.k-panelbar-header>.k-link.k-selected .k-icon,.k-panelbar>.k-panelbar-header>.k-link.k-selected .k-panelbar-item-icon{color:inherit}.k-panelbar>.k-panelbar-header>.k-link.k-selected:hover,.k-panelbar>.k-panelbar-header>.k-link.k-selected.k-hover{background-color:var(--kendo-color-primary-hover, #116fa5)}.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link:hover,.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link:focus,.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link.k-selected:hover,.k-panelbar .k-panelbar-group>.k-panelbar-item>.k-link.k-selected.k-hover{background-color:var(--kendo-color-primary-hover, #116fa5)}.k-splitter{height:300px;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:block;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-splitter .k-pane{overflow:hidden;box-sizing:border-box}.k-splitter .k-scrollable{overflow:auto}.k-splitter .k-splitter-resizing{overflow:hidden}.k-splitter .k-pane-loading{position:static;top:50%;left:50%}.k-ghost-splitbar,.k-splitbar{border-style:solid;outline:0;position:absolute;-webkit-user-select:none;user-select:none;touch-action:none;display:flex;align-items:center;justify-content:center}.k-ghost-splitbar .k-collapse-prev,.k-ghost-splitbar .k-collapse-next,.k-splitbar .k-collapse-prev,.k-splitbar .k-collapse-next{cursor:pointer;padding:var(--kendo-spacing-0\.5, 0.125rem)}.k-splitbar-draggable-horizontal{cursor:col-resize}.k-splitbar-draggable-vertical{cursor:row-resize}.k-ghost-splitbar-horizontal,.k-splitbar-horizontal{width:var(--kendo-spacing-3, 0.75rem);border-width:0;background-repeat:repeat-y;flex-direction:column;top:0}.k-ghost-splitbar-vertical,.k-splitbar-vertical{height:var(--kendo-spacing-3, 0.75rem);border-width:0;background-repeat:repeat-x;flex-direction:row;left:0}.k-splitbar-static-horizontal{width:1px}.k-splitbar-static-vertical{height:1px}.k-splitbar-draggable-horizontal .k-resize-handle{width:2px;height:20px;position:static;z-index:1}.k-splitbar .k-resize-handle{display:none;background-color:currentColor}.k-splitbar-draggable-horizontal .k-resize-handle,.k-splitbar-draggable-vertical .k-resize-handle{display:block}.k-splitbar-horizontal .k-collapse-prev{margin-bottom:var(--kendo-spacing-2, 0.5rem)}.k-splitbar-horizontal .k-collapse-next{margin-top:var(--kendo-spacing-2, 0.5rem)}.k-splitbar-vertical .k-collapse-prev{margin-right:var(--kendo-spacing-2, 0.5rem)}.k-splitbar-vertical .k-collapse-next{margin-left:var(--kendo-spacing-2, 0.5rem)}.k-splitbar-draggable-vertical .k-resize-handle{width:20px;height:2px;position:static;z-index:1}.k-pane>.k-splitter{border-width:0;overflow:hidden}.k-pane>.k-splitter-overlay{opacity:0;position:absolute}.k-splitter-flex{display:flex;width:100%;height:auto}.k-splitter-flex .k-pane{position:relative;flex:1 1 auto;min-width:0;max-width:100%;min-height:0;max-height:100%;height:100%}.k-splitter-flex .k-pane-static{flex-grow:0;flex-shrink:0}.k-splitter-flex .k-pane-flex{display:flex}.k-splitter-flex .k-splitbar{position:static;flex:0 0 auto}.k-splitter-flex .k-pane.k-hidden,.k-splitter-flex .k-pane[hidden],.k-splitter-flex .k-pane-flex.k-hidden,.k-splitter-flex .k-pane-flex[hidden]{flex:0 1 0% !important;overflow:hidden !important;display:block !important}.k-splitter-flex.k-splitter-horizontal{flex-direction:row}.k-splitter-flex.k-splitter-vertical{flex-direction:column}.k-splitter{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-splitbar{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-splitbar:hover,.k-splitbar.k-hover,.k-splitbar-horizontal-hover,.k-splitbar-vertical-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-splitbar:focus,.k-splitbar.k-focus{color:var(--kendo-color-on-primary, white);background:var(--kendo-color-primary, #1274AC)}.k-ghost-splitbar{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-tilelayout{border-width:0px;border-style:solid;box-sizing:border-box;outline:0;display:grid;position:relative;padding:var(--kendo-spacing-4, 1rem) var(--kendo-spacing-4, 1rem);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-tilelayout .k-card{box-shadow:none;border-width:1px}.k-tilelayout-item{position:relative;z-index:0}.k-layout-item-hint{border-radius:var(--kendo-border-radius-lg, 0.375rem);border-width:1px;border-style:solid;position:relative}.k-layout-item-hint.k-layout-item-hint-resize{z-index:3}.k-tilelayout-item-header.k-card-header{z-index:0}.k-tilelayout-item-body{min-height:0}.k-tilelayout{background-color:var(--kendo-color-surface, #fafafa)}.k-layout-item-hint{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:hsla(0,0%,100%,.2)}.k-grid-flow-row{grid-auto-flow:row}.\!k-grid-flow-row{grid-auto-flow:row !important}.k-grid-flow-col{grid-auto-flow:column}.\!k-grid-flow-col{grid-auto-flow:column !important}.k-grid-flow-dense{grid-auto-flow:dense}.\!k-grid-flow-dense{grid-auto-flow:dense !important}.k-grid-flow-row-dense{grid-auto-flow:row dense}.\!k-grid-flow-row-dense{grid-auto-flow:row dense !important}.k-grid-flow-col-dense{grid-auto-flow:column dense}.\!k-grid-flow-col-dense{grid-auto-flow:column dense !important}.k-grid-flow-unset{grid-auto-flow:unset}.\!k-grid-flow-unset{grid-auto-flow:unset !important}.k-justify-items-normal{justify-items:normal}.\!k-justify-items-normal{justify-items:normal !important}.k-justify-items-stretch{justify-items:stretch}.\!k-justify-items-stretch{justify-items:stretch !important}.k-justify-items-center{justify-items:center}.\!k-justify-items-center{justify-items:center !important}.k-justify-items-start{justify-items:start}.\!k-justify-items-start{justify-items:start !important}.k-justify-items-end{justify-items:end}.\!k-justify-items-end{justify-items:end !important}.k-justify-items-flex-start{justify-items:flex-start}.\!k-justify-items-flex-start{justify-items:flex-start !important}.k-justify-items-flex-end{justify-items:flex-end}.\!k-justify-items-flex-end{justify-items:flex-end !important}.k-justify-items-self-start{justify-items:self-start}.\!k-justify-items-self-start{justify-items:self-start !important}.k-justify-items-self-end{justify-items:self-end}.\!k-justify-items-self-end{justify-items:self-end !important}.k-justify-items-left{justify-items:left}.\!k-justify-items-left{justify-items:left !important}.k-justify-items-right{justify-items:right}.\!k-justify-items-right{justify-items:right !important}.k-justify-items-baseline{justify-items:baseline}.\!k-justify-items-baseline{justify-items:baseline !important}.k-justify-items-first-baseline{justify-items:first baseline}.\!k-justify-items-first-baseline{justify-items:first baseline !important}.k-justify-items-last-baseline{justify-items:last baseline}.\!k-justify-items-last-baseline{justify-items:last baseline !important}.k-dock-manager{width:100%;height:100%;border-width:1px;border-style:solid;position:relative;display:flex;flex-flow:row nowrap;overflow:auto;box-sizing:border-box}.k-dock-manager-toolbar{border-width:0 1px 0 0;border-color:inherit;flex-shrink:0;writing-mode:vertical-lr;box-shadow:none}.k-dock-manager-toolbar::before{height:0}.k-dock-manager-toolbar .k-separator-horizontal{width:1.4285714286em;height:0;border-width:1px 0 0}.k-dock-manager-pane-container{width:100%;height:100%;display:flex;flex-grow:1;overflow:hidden}.k-dock-manager-splitter,.k-dock-manager-unpinned-container{height:100%;border-width:0;align-items:stretch}.k-dock-manager-splitter>.k-pane,.k-dock-manager-unpinned-container>.k-pane{height:auto;flex-direction:column;border-color:inherit}.k-dock-manager-splitter .k-pane-header,.k-dock-manager-unpinned-container .k-pane-header{display:flex;align-items:center;justify-content:center;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-4, 1rem);border-block-end-width:1px;border-block-end-style:solid;border-color:inherit}.k-dock-manager-splitter .k-pane-title,.k-dock-manager-unpinned-container .k-pane-title{font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-sm, normal);font-weight:var(--kendo-font-weight-normal, normal);flex:1 1 auto;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-dock-manager-splitter .k-pane-scrollable,.k-dock-manager-unpinned-container .k-pane-scrollable{height:100%;display:flex;flex-direction:column;border-color:inherit}.k-dock-manager-splitter .k-pane-content,.k-dock-manager-unpinned-container .k-pane-content{height:100%;padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);overflow:auto;flex:1}.k-dock-manager-splitter .k-pane-actions,.k-dock-manager-unpinned-container .k-pane-actions{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center}.k-dock-manager-splitter .k-pane-tabbed,.k-dock-manager-unpinned-container .k-pane-tabbed{padding-block-start:var(--kendo-spacing-3\.5, 0.875rem);padding-block-end:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-dock-manager-splitter .k-splitbar,.k-dock-manager-unpinned-container .k-splitbar{border-width:0 1px;border-style:solid;border-color:inherit}.k-dock-manager-splitter .k-splitbar-vertical,.k-dock-manager-unpinned-container .k-splitbar-vertical{border-width:1px 0}.k-dock-manager-unpinned-container{width:300px;position:absolute;display:flex;height:100%;border-color:inherit;z-index:20}.k-dock-manager-unpinned-container .k-pane{display:inline-flex;flex-direction:column;position:relative;flex:1 1 auto;width:100%}.k-dock-manager-unpinned-container .k-splitbar{height:100%;position:relative;flex:none}.k-docking-preview{width:100%;height:100%;box-sizing:border-box;display:flex;position:absolute;top:0;left:0;border-width:1px;border-style:dashed;border-radius:var(--kendo-border-radius-sm, 0.125rem);z-index:10}.k-dock-manager-window:has(.k-pane) .k-window-content{padding:0}.k-dock-navigator-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;position:absolute;z-index:10001;pointer-events:none}.k-dock-navigator{display:grid;grid-template-columns:repeat(3, auto);grid-template-rows:repeat(3, auto);justify-content:center;position:absolute}.k-dock-indicator{padding:var(--kendo-spacing-1\.5, 0.375rem);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;position:relative;pointer-events:all;outline-width:1px;outline-style:solid}.k-dock-indicator.k-dock-indicator-middle{filter:none}.k-dock-indicator-top{grid-area:1/2/auto}.k-dock-indicator-right{grid-area:2/3/auto}.k-dock-indicator-bottom{grid-area:3/2/auto}.k-dock-indicator-left{grid-area:2/1/auto}.k-dock-indicator-middle{grid-area:2/2/auto}.k-dock-manager{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-dock-manager-splitter .k-pane-header,.k-dock-manager-unpinned-container .k-pane-header{background-color:var(--kendo-color-surface, #fafafa)}.k-dock-manager-unpinned-container{background-color:#fff;box-shadow:4px 0px 5px 0px rgba(0,0,0,.04),2px 0px 4px 0px rgba(0,0,0,.03)}.k-docking-preview{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 16%, transparent);border-color:var(--kendo-color-primary, #1274AC)}.k-dock-indicator{color:var(--kendo-color-primary, #1274AC);background-color:#f5f5f5;outline-color:var(--kendo-color-primary, #1274AC);filter:drop-shadow(0px 1px 18px rgba(0, 0, 0, 0.12)) drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.14)) drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.2))}.k-dock-indicator:hover,.k-dock-indicator.k-hover{background-color:var(--kendo-color-primary, #1274AC);color:#fff}.k-barcode{display:inline-block}.k-barcode>div{height:150px}.k-chart,.k-sparkline,.k-stockchart{border-width:0px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-chart,.k-stockchart{display:block;height:400px}.k-chart-surface{height:100%}.k-chart .k-popup{border-width:0}.k-chart-tooltip-wrapper .k-animation-container-shown,.k-chart-tooltip-wrapper.k-animation-container-shown{border-radius:var(--kendo-border-radius-md, 0.25rem);transition:left 300ms cubic-bezier(0, 0.33, 0.19, 1),top 300ms cubic-bezier(0, 0.33, 0.19, 1)}.k-sparkline-tooltip-wrapper,.k-chart-tooltip-wrapper{z-index:12000}.k-sparkline-tooltip-wrapper .k-popup,.k-chart-tooltip-wrapper .k-popup{border-radius:var(--kendo-border-radius-md, 0.25rem);padding:0;border-width:0;background:rgba(0,0,0,0)}.k-chart-tooltip table{border-spacing:0;border-collapse:collapse}.k-chart-tooltip{border-radius:var(--kendo-border-radius-md, 0.25rem);font-size:0.812875rem;line-height:var(--kendo-line-height, normal);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-chart-tooltip th{width:auto;text-align:center;padding:1px}.k-chart-tooltip td{width:auto;text-align:start;padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem);line-height:var(--kendo-line-height, normal);vertical-align:middle}.k-chart-crosshair-tooltip,.k-chart-shared-tooltip{border-width:1px;border-style:solid}.k-chart-shared-tooltip .k-chart-shared-tooltip-marker{display:block;width:15px;height:3px;vertical-align:middle}.k-selector{position:absolute;transform:translateZ(0)}.k-selection{position:absolute;height:100%;border-width:1px;border-style:solid;border-bottom:0}.k-selection-bg{position:absolute;width:100%;height:100%}.k-handle{border-radius:50%;width:22px;height:22px;border-width:1px;border-style:solid;z-index:1;position:absolute;box-sizing:content-box}.k-handle div{width:100%;height:100%}.k-left-handle{left:-11px}.k-right-handle{right:-11px}.k-left-handle div{margin:-22px 0 0 -14.6666666667px;padding:44px 29.3333333333px 0 0}.k-right-handle div{margin:-22px 0 0 -14.6666666667px;padding:44px 0 0 29.3333333333px}.k-left-handle.k-handle-active div{margin-left:-44px;padding-left:58.6666666667px}.k-right-handle.k-handle-active div{margin-left:-44px;padding-right:58.6666666667px}.k-mask{position:absolute;height:100%}.k-navigator-hint div{position:absolute}.k-navigator-hint .k-scroll{border-radius:var(--kendo-border-radius-md, 0.25rem);position:absolute;height:4px}.k-navigator-hint .k-tooltip{margin-top:20px;min-width:160px;opacity:1;text-align:center}.k-sparkline,.k-sparkline span{display:inline-block;vertical-align:top}.k-sparkline span{height:100%;width:100%}.k-chart-dragging{-webkit-user-select:none;user-select:none}.k-chart-donut-center{position:absolute;display:flex;align-items:center;flex-direction:column;justify-content:center;border-radius:50%;text-align:center;border:4px solid rgba(0,0,0,0);box-sizing:border-box}.k-pdf-export .k-chart .k-animation-container,.k-pdf-export .k-sparkline .k-animation-container,.k-pdf-export .k-stockchart .k-animation-container{display:none}.k-chart-overlay{margin:0;width:100%;height:calc(100% - var(--kendo-chart-computed-title-height, 0px));position:absolute;top:0;left:0;opacity:1;z-index:10001}.k-chart-overlay-top{top:var(--kendo-chart-computed-title-height, 0px)}.k-chart-overlay .k-no-data,.k-chart-overlay .k-nodata{min-height:auto;padding-block-start:var(--kendo-spacing-25, 7rem);color:inherit;font-size:var(--kendo-font-size-lg, inherit);font-weight:var(--kendo-font-weight, normal)}.k-diagram{height:600px}.k-diagram .km-scroll-wrapper{width:100%;height:100%;position:relative}.k-diagram .km-scroll-wrapper{width:100%;height:100%;position:relative}.k-canvas-container{width:100%;height:100%}.k-sankey text{pointer-events:none}.k-treemap{height:400px;box-sizing:border-box;border-width:1px;border-style:solid;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:block;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-treemap .k-treemap-tile{margin:-1px 0 0 -1px;height:100%;box-sizing:border-box;border:1px solid;border-color:inherit;color:inherit;background-color:inherit;overflow:hidden;position:absolute}.k-treemap>.k-treemap-tile{position:relative}.k-treemap .k-treemap-title{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border-width:0 0 1px;border-style:solid;border-color:inherit;font-size:var(--kendo-font-size, inherit);background-position:0 0;background-repeat:repeat-x}.k-treemap .k-treemap-title-vertical{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-0\.5, 0.125rem);width:1.4285714286em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute;top:0;bottom:0}.k-treemap .k-treemap-title-vertical>div{transform-origin:right;transform:rotate(-90deg);position:absolute;top:0;right:1em}.k-treemap .k-treemap-wrap{border-color:inherit;color:inherit;background-color:inherit;position:absolute;top:0;left:0;bottom:0;right:0}.k-treemap .k-treemap-title+.k-treemap-wrap{top:calc(var(--kendo-spacing-0\.5, 0.125rem)*2 + var(--kendo-line-height, normal)*var(--kendo-font-size, inherit) + 1px)}.k-treemap .k-treemap-title-vertical+.k-treemap-wrap{left:calc(var(--kendo-spacing-0\.5, 0.125rem)*2 + var(--kendo-line-height, normal)*var(--kendo-font-size, inherit) + 1px)}.k-treemap .k-leaf{padding:var(--kendo-spacing-1, 0.25rem)}.k-gauge{text-align:start;position:relative}.k-arcgauge,.k-circulargauge{display:inline-block}.k-arcgauge-label,.k-circulargauge-label{position:absolute;text-align:center;padding:0;margin:0}.k-qrcode{display:inline-block}.k-qrcode>div{height:150px}.k-var--primary{background-color:var(--kendo-color-primary, #1274AC)}.k-var--primary-contrast{background-color:var(--kendo-color-on-primary, white)}.k-var--base{background-color:var(--kendo-color-surface, #fafafa)}.k-var--background{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-var--normal-background{background-color:var(--kendo-color-surface, #fafafa)}.k-var--normal-text-color{background-color:var(--kendo-color-on-app-surface, #424242)}.k-var--series-a{background-color:var(--kendo-color-series-a, #1274AC)}.k-var--series-b{background-color:var(--kendo-color-series-b, #FFE162)}.k-var--series-c{background-color:var(--kendo-color-series-c, #4CD180)}.k-var--series-d{background-color:var(--kendo-color-series-d, #0074e6)}.k-var--series-e{background-color:var(--kendo-color-series-e, #9B4FE6)}.k-var--series-f{background-color:var(--kendo-color-series-f, #FF80AC)}.k-var--series-1{background-color:var(--kendo-color-series-a, #1274AC)}.k-var--series-2{background-color:var(--kendo-color-series-b, #FFE162)}.k-var--series-3{background-color:var(--kendo-color-series-c, #4CD180)}.k-var--series-4{background-color:var(--kendo-color-series-d, #0074e6)}.k-var--series-5{background-color:var(--kendo-color-series-e, #9B4FE6)}.k-var--series-6{background-color:var(--kendo-color-series-f, #FF80AC)}.k-var--series-7{background-color:var(--kendo-color-series-a-subtle, #4d97c1)}.k-var--series-8{background-color:var(--kendo-color-series-b-subtle, #ffe989)}.k-var--series-9{background-color:var(--kendo-color-series-c-subtle, #79dda0)}.k-var--series-10{background-color:var(--kendo-color-series-d-subtle, #4097ec)}.k-var--series-11{background-color:var(--kendo-color-series-e-subtle, #b47bec)}.k-var--series-12{background-color:var(--kendo-color-series-f-subtle, #ffa0c1)}.k-var--series-13{background-color:var(--kendo-color-series-a-bold, #0e5781)}.k-var--series-14{background-color:var(--kendo-color-series-b-bold, #bfa94a)}.k-var--series-15{background-color:var(--kendo-color-series-c-bold, #399d60)}.k-var--series-16{background-color:var(--kendo-color-series-d-bold, #0057ad)}.k-var--series-17{background-color:var(--kendo-color-series-e-bold, #743bad)}.k-var--series-18{background-color:var(--kendo-color-series-f-bold, #bf6081)}.k-var--series-19{background-color:var(--kendo-color-series-a-subtler, #89bad6)}.k-var--series-20{background-color:var(--kendo-color-series-b-subtler, #fff0b1)}.k-var--series-21{background-color:var(--kendo-color-series-c-subtler, #a6e8c0)}.k-var--series-22{background-color:var(--kendo-color-series-d-subtler, #80baf3)}.k-var--series-23{background-color:var(--kendo-color-series-e-subtler, #cda7f3)}.k-var--series-24{background-color:var(--kendo-color-series-f-subtler, #ffc0d6)}.k-var--series-25{background-color:var(--kendo-color-series-a-bolder, #093a56)}.k-var--series-26{background-color:var(--kendo-color-series-b-bolder, #807131)}.k-var--series-27{background-color:var(--kendo-color-series-c-bolder, #266940)}.k-var--series-28{background-color:var(--kendo-color-series-d-bolder, #003a73)}.k-var--series-29{background-color:var(--kendo-color-series-e-bolder, #4e2873)}.k-var--series-30{background-color:var(--kendo-color-series-f-bolder, #804056)}.k-var--gauge-pointer{background-color:var(--kendo-color-primary, #1274AC)}.k-var--gauge-track{background-color:var(--kendo-color-base-emphasis, #c2c2c2)}.k-var--chart-font-size{font-size:var(--kendo-font-size, inherit)}.k-var--chart-title-font-size{font-size:var(--kendo-font-size-lg, inherit)}.k-var--chart-pane-title-font-size{font-size:var(--kendo-font-size-sm, inherit)}.k-var--chart-pane-title-font-weight{font-weight:var(--kendo-font-weight-normal, normal)}.k-var--chart-label-font-size{font-size:var(--kendo-font-size-sm, inherit)}.k-var--chart-inactive{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-var--chart-major-lines{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-var--chart-minor-lines{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 4%, transparent)}.k-var--chart-area-opacity{opacity:0.6}.k-var--chart-area-inactive-opacity{opacity:0.1}.k-var--chart-line-inactive-opacity{opacity:0.3}.k-var--chart-notes-background{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-var--chart-notes-border{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-var--chart-notes-lines{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-var--chart-crosshair-background{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-var--chart-error-bars-background{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-chart,.k-diagram,.k-gauge,.k-sparkline{--kendo-chart-primary-bg: var(--kendo-color-primary, #1274AC);--kendo-chart-primary-contrast: var(--kendo-color-on-primary, white);--kendo-chart-bg: var(--kendo-color-surface-alt, #ffffff);--kendo-chart-text: var(--kendo-color-on-app-surface, #424242);--kendo-chart-font-size: var(--kendo-font-size, inherit);--kendo-chart-title-font-size: var(--kendo-font-size-lg, inherit);--kendo-chart-pane-title-font-size: var(--kendo-font-size-sm, inherit);--kendo-chart-pane-title-font-weight: var(--kendo-font-weight-normal, normal);--kendo-chart-label-font-size: var(--kendo-font-size-sm, inherit);--kendo-chart-inactive: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent);--kendo-chart-major-lines: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent);--kendo-chart-minor-lines: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 4%, transparent);--kendo-chart-area-opacity: 0.6;--kendo-chart-area-inactive-opacity: 0.1;--kendo-chart-line-inactive-opacity: 0.3;--kendo-chart-notes-bg: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent);--kendo-chart-notes-border: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent);--kendo-chart-notes-lines: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent);--kendo-chart-crosshair-bg: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent);--kendo-chart-error-bars-bg: color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent);--kendo-chart-series-1: var(--kendo-color-series-a, #1274AC);--kendo-chart-series-2: var(--kendo-color-series-b, #FFE162);--kendo-chart-series-3: var(--kendo-color-series-c, #4CD180);--kendo-chart-series-4: var(--kendo-color-series-d, #0074e6);--kendo-chart-series-5: var(--kendo-color-series-e, #9B4FE6);--kendo-chart-series-6: var(--kendo-color-series-f, #FF80AC);--kendo-chart-series-7: var(--kendo-color-series-a-subtle, #4d97c1);--kendo-chart-series-8: var(--kendo-color-series-b-subtle, #ffe989);--kendo-chart-series-9: var(--kendo-color-series-c-subtle, #79dda0);--kendo-chart-series-10: var(--kendo-color-series-d-subtle, #4097ec);--kendo-chart-series-11: var(--kendo-color-series-e-subtle, #b47bec);--kendo-chart-series-12: var(--kendo-color-series-f-subtle, #ffa0c1);--kendo-chart-series-13: var(--kendo-color-series-a-bold, #0e5781);--kendo-chart-series-14: var(--kendo-color-series-b-bold, #bfa94a);--kendo-chart-series-15: var(--kendo-color-series-c-bold, #399d60);--kendo-chart-series-16: var(--kendo-color-series-d-bold, #0057ad);--kendo-chart-series-17: var(--kendo-color-series-e-bold, #743bad);--kendo-chart-series-18: var(--kendo-color-series-f-bold, #bf6081);--kendo-chart-series-19: var(--kendo-color-series-a-subtler, #89bad6);--kendo-chart-series-20: var(--kendo-color-series-b-subtler, #fff0b1);--kendo-chart-series-21: var(--kendo-color-series-c-subtler, #a6e8c0);--kendo-chart-series-22: var(--kendo-color-series-d-subtler, #80baf3);--kendo-chart-series-23: var(--kendo-color-series-e-subtler, #cda7f3);--kendo-chart-series-24: var(--kendo-color-series-f-subtler, #ffc0d6);--kendo-chart-series-25: var(--kendo-color-series-a-bolder, #093a56);--kendo-chart-series-26: var(--kendo-color-series-b-bolder, #807131);--kendo-chart-series-27: var(--kendo-color-series-c-bolder, #266940);--kendo-chart-series-28: var(--kendo-color-series-d-bolder, #003a73);--kendo-chart-series-29: var(--kendo-color-series-e-bolder, #4e2873);--kendo-chart-series-30: var(--kendo-color-series-f-bolder, #804056);--kendo-chart-gauge-pointer: var(--kendo-color-primary, #1274AC);--kendo-chart-gauge-track: var(--kendo-color-base-emphasis, #c2c2c2)}.k-chart,.k-sparkline,.k-stockchart{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:rgba(0,0,0,0)}.k-chart .k-popup,.k-sparkline .k-popup,.k-stockchart .k-popup{background:rgba(0,0,0,0)}.k-chart-tooltip{color:#fff}.k-chart-tooltip-inverse{color:#000}.k-chart-crosshair-tooltip,.k-chart-shared-tooltip{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base, #f5f5f5);border-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent)}.k-selection{border-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 8%, transparent);box-shadow:inset 0 1px 7px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 15%, transparent)}.k-selection-bg{background-color:rgba(0,0,0,0)}.k-handle{cursor:e-resize;border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base, #f5f5f5)}.k-handle:hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-handle div{background-color:rgba(0,0,0,0)}.k-mask{background-color:var(--kendo-color-surface-alt, #ffffff);opacity:.8}.k-chart-overlay{background-color:var(--kendo-color-surface, #fafafa)}.k-treemap{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-treemap .k-treemap-title{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-treemap .k-leaf{color:var(--kendo-color-surface-alt, #ffffff)}.k-treemap .k-leaf.k-inverse{color:var(--kendo-color-on-app-surface, #424242)}.k-treemap .k-leaf:hover,.k-treemap .k-leaf.k-hover{box-shadow:inset 0 0 0 3px var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-pane-wrapper{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:block;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-pane-wrapper .k-pane{width:100%;height:100%;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:sans-serif;overflow-x:hidden}.k-pane-wrapper .k-view{top:0;left:0;position:relative;border:0;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;height:100%;width:100%;flex-direction:column;align-items:stretch;align-content:stretch;vertical-align:top;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-pane-wrapper .k-content{min-height:1px;flex:1;align-items:stretch;display:block;width:auto;overflow:hidden;position:relative}.k-pane-wrapper>div.k-pane{box-shadow:none;font-weight:normal}.k-pane-wrapper .k-popup-edit-form .k-content,.k-pane-wrapper .k-grid-edit-form .k-content,.k-pane-wrapper .k-grid-header-menu .k-content,.k-pane-wrapper .k-grid-filter-menu .k-content{overflow-y:auto}.k-pane-wrapper .k-popup-edit-form .k-content>.k-scroll-container,.k-pane-wrapper .k-grid-edit-form .k-content>.k-scroll-container,.k-pane-wrapper .k-grid-header-menu .k-content>.k-scroll-container,.k-pane-wrapper .k-grid-filter-menu .k-content>.k-scroll-container{position:absolute;width:100%;min-height:100%;box-sizing:border-box}.k-pane-wrapper .k-grid-edit-form .k-popup-edit-form,.k-pane-wrapper .k-grid-edit-form .k-edit-form-container{width:auto;min-width:auto}.k-grid.k-grid-mobile{border-width:0}.k-grid-mobile .k-resize-handle-inner::before{content:"";position:absolute;font:16px/1 "WebComponentsIcons";top:calc(50% - 1px);left:50%;transform:translate(-50%, -50%);padding:.2em}.k-grid-mobile .k-header a{-webkit-user-select:none;user-select:none}.k-pane-wrapper .k-scheduler-edit-form .k-recur-view{padding:0;flex-direction:column;align-items:stretch}.k-pane-wrapper .k-scheduler-edit-form .k-recur-view>.k-listgroup-form-row{margin:0}.k-pane-wrapper .k-scheduler-edit-form .k-recur-items-wrap{width:100%;margin-block:-1px;margin-inline:0}.k-pane-wrapper .k-scheduler-edit-form .k-scheduler-recur-end-wrap{white-space:nowrap}.k-scheduler.k-scheduler-mobile{border-width:0}.k-scheduler-mobile th{font-weight:normal}.k-scheduler-mobile .k-event:hover .k-resize-handle{visibility:hidden}.k-scheduler-mobile .k-scheduler-toolbar{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-scheduler-mobile .k-scheduler-toolbar>*{margin:0}.k-scheduler-mobile .k-scheduler-toolbar::before{display:none}.k-scheduler-mobile .k-scheduler-toolbar .k-scheduler-navigation{width:100%;display:flex;flex-flow:row nowrap;justify-content:space-between;margin:0}.k-scheduler-mobile .k-scheduler-toolbar .k-scheduler-navigation .k-nav-current{line-height:1;display:flex;flex-flow:column nowrap;align-items:center;justify-content:space-evenly;gap:0}.k-scheduler-mobile .k-scheduler-toolbar .k-scheduler-views-wrapper .k-views-dropdown{display:inline-block}.k-scheduler-mobile .k-scheduler-footer{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:flex;justify-content:space-between}.k-scheduler-mobile .k-scheduler-footer>*{margin:0}.k-scheduler-mobile .k-scheduler-footer::before{display:none}.k-scheduler-mobile .k-scheduler-monthview .k-hidden{height:40px}.k-scheduler-mobile .k-scheduler-monthview .k-scheduler-table td{height:40px;vertical-align:top;text-align:center}.k-scheduler-mobile .k-scheduler-monthview .k-events-container{position:absolute;text-align:center;height:6px;line-height:6px}.k-scheduler-mobile .k-scheduler-monthview .k-event{position:static;padding:4px;border-radius:50%;display:inline-block;width:4px;height:4px;min-height:0;margin:1px}.k-scheduler-mobile .k-scheduler-dayview .k-mobile-header.k-mobile-horizontal-header .k-scheduler-times table tr:first-child{display:none}.k-scheduler-mobile .k-scheduler-dayview .k-mobile-header .k-scheduler-header .k-scheduler-date-group{display:none}.k-scheduler-mobile .k-scheduler-header-wrap>div{overflow:visible}.k-scheduler-mobile .k-scheduler-agendaview .k-mobile-header{display:none}.k-scheduler-mobile .k-scheduler-agendaview .k-scheduler-table{table-layout:auto}.k-scheduler-mobile .k-scheduler-agendaview .k-scheduler-table .k-scheduler-groupcolumn{width:1%}.k-scheduler-mobile .k-scheduler-agendaview .k-scheduler-table td{white-space:normal}.k-scheduler-mobile .k-mobile-header .k-scheduler-table td,.k-scheduler-mobile .k-mobile-header .k-scheduler-table th{height:1.5em}.k-scheduler-mobile .k-time-text,.k-scheduler-mobile .k-time-period{display:block;line-height:1}.k-scheduler-mobile .k-time-period{font-size:.7em}.k-scheduler-mobile .k-scheduler-table td,.k-scheduler-mobile .k-scheduler-table th{height:2em;vertical-align:middle}.k-scheduler-mobile .k-scheduler-datecolumn-wrap{display:flex;align-items:center;justify-content:space-between}.k-scheduler-mobile .k-task{display:flex;align-items:center;gap:.5em}.k-scheduler-mobile .k-task .k-scheduler-mark{border-radius:50%;margin:0}.k-scheduler-mobile .k-task .k-scheduler-task-text{flex:1 1 0%}.k-scheduler-mobile .k-scheduler-times .k-scheduler-group-cell,.k-scheduler-mobile .k-scheduler-times .k-scheduler-groupcolumn,.k-scheduler-mobile .k-scheduler-agenda .k-scheduler-group-cell,.k-scheduler-mobile .k-scheduler-agenda .k-scheduler-groupcolumn{vertical-align:top}.k-scheduler-mobile .k-scheduler-times .k-scheduler-group-cell .k-scheduler-group-text,.k-scheduler-mobile .k-scheduler-times .k-scheduler-groupcolumn .k-scheduler-group-text,.k-scheduler-mobile .k-scheduler-agenda .k-scheduler-group-cell .k-scheduler-group-text,.k-scheduler-mobile .k-scheduler-agenda .k-scheduler-groupcolumn .k-scheduler-group-text{writing-mode:vertical-lr;transform:rotate(180deg);white-space:nowrap}.k-scheduler-mobile .k-scrollbar-h tr+tr .k-scheduler-times{border-bottom-width:0}.k-pane-wrapper .k-appbar{padding:var(--kendo-spacing-1, 0.25rem)}.k-pane-wrapper .k-list-title,.k-pane-wrapper .k-filter-help-text{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:block}.k-pane-wrapper .k-listgroup-title{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-weight:bold;text-transform:uppercase}.k-pane-wrapper .k-listgroup .k-listgroup-item{border-color:inherit}.k-pane-wrapper .k-listgroup+.k-listgroup{margin-top:var(--kendo-spacing-4, 1rem)}.k-pane-wrapper .k-column-menu{padding:var(--kendo-spacing-2, 0.5rem);display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-2, 0.5rem)}.k-pane-wrapper .k-column-menu .k-filter-item .k-filterable *{pointer-events:none}.k-pane-wrapper .k-column-menu .k-list-title,.k-pane-wrapper .k-column-menu .k-listgroup-title{padding:0}.k-pane-wrapper .k-column-menu .k-listgroup{margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-pane-wrapper .k-filter-menu{padding:var(--kendo-spacing-2, 0.5rem);display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-2, 0.5rem)}.k-pane-wrapper .k-filter-menu .k-list-title{padding:0}.k-pane-wrapper .k-filter-menu .k-list-filter{padding:0;display:flex;flex-flow:column nowrap;gap:inherit}.k-pane-wrapper .k-filter-menu .k-filter-tools{display:flex;flex-flow:row nowrap;gap:inherit}.k-pane-wrapper .k-filter-menu .k-listgroup{margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-pane-wrapper .k-popup-edit-form .k-recur-editor-wrap{display:flex}.k-pane-wrapper .k-popup-edit-form .k-mobiletimezoneeditor{display:flex;align-items:center;justify-content:flex-end;position:relative;flex:1 1 auto}.k-pane-wrapper .k-multicheck-wrap.k-listgroup{overflow-y:auto}.k-pane-wrapper .k-pager-wrap.k-pager-sm,.k-pane-wrapper .k-pager.k-pager-sm{justify-content:center}.k-pane-wrapper .k-pager-wrap.k-pager-sm .k-pager-refresh,.k-pane-wrapper .k-pager.k-pager-sm .k-pager-refresh{display:none}:is(.k-rtl .k-pane-wrapper,[dir=rtl] .k-pane-wrapper,.k-pane-wrapper[dir=rtl]) .k-scheduler-mobile .k-scheduler-toolbar>ul>li{border:0}:is(.k-rtl .k-pane-wrapper,[dir=rtl] .k-pane-wrapper,.k-pane-wrapper[dir=rtl]) .k-scheduler-mobile .k-task .k-i-reload{margin-left:.5em;margin-right:0}.k-pane-wrapper,.k-view{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-pane-wrapper .k-pane>.k-view>.k-content{background-position:50% 50%;background-color:var(--kendo-color-surface, #fafafa)}.k-pane-wrapper .k-pane .k-grid-mobile .k-column-active+th.k-header{border-left-color:var(--kendo-color-on-app-surface, #424242)}.k-pane-wrapper .k-pane .k-grid-mobile .k-resize-handle-inner::before{background-color:var(--kendo-color-surface, #fafafa)}.k-pane-wrapper .k-pane .k-scheduler-mobile .k-nav-current{color:var(--kendo-color-primary, #1274AC)}.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-times,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-header,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-groupcolumn,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-mobile-scheduler-agendadate{color:inherit}.k-pane-wrapper .k-pane .k-scheduler-mobile .k-time-period,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-mobile-scheduler-agendaweekday{color:var(--kendo-color-subtle, #666666)}.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-times,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-header,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-header-wrap,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-datecolumn,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-groupcolumn,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-group-cell,.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-header-all-day{background-color:var(--kendo-color-surface, #fafafa)}.k-pane-wrapper .k-pane .k-scheduler-mobile .k-scheduler-toolbar .k-scheduler-tools>li{display:inline-block;background-color:inherit}.k-pane-wrapper .k-pane .k-grid-edit-form .k-item,.k-pane-wrapper .k-pane .k-grid-edit-form .k-link,.k-pane-wrapper .k-pane .k-grid-header-menu .k-item,.k-pane-wrapper .k-pane .k-grid-header-menu .k-link,.k-pane-wrapper .k-pane .k-grid-filter-menu .k-item,.k-pane-wrapper .k-pane .k-grid-filter-menu .k-link,.k-pane-wrapper .k-pane .k-scheduler-edit-form .k-item,.k-pane-wrapper .k-pane .k-scheduler-edit-form .k-link{color:var(--kendo-color-on-app-surface, #424242)}.k-pane-wrapper .k-pane .k-grid-edit-form .k-clear,.k-pane-wrapper .k-pane .k-grid-edit-form .k-select-all,.k-pane-wrapper .k-pane .k-grid-edit-form .k-scheduler-delete,.k-pane-wrapper .k-pane .k-grid-edit-form .k-scheduler-resetSeries,.k-pane-wrapper .k-pane .k-grid-header-menu .k-clear,.k-pane-wrapper .k-pane .k-grid-header-menu .k-select-all,.k-pane-wrapper .k-pane .k-grid-header-menu .k-scheduler-delete,.k-pane-wrapper .k-pane .k-grid-header-menu .k-scheduler-resetSeries,.k-pane-wrapper .k-pane .k-grid-filter-menu .k-clear,.k-pane-wrapper .k-pane .k-grid-filter-menu .k-select-all,.k-pane-wrapper .k-pane .k-grid-filter-menu .k-scheduler-delete,.k-pane-wrapper .k-pane .k-grid-filter-menu .k-scheduler-resetSeries,.k-pane-wrapper .k-pane .k-scheduler-edit-form .k-clear,.k-pane-wrapper .k-pane .k-scheduler-edit-form .k-select-all,.k-pane-wrapper .k-pane .k-scheduler-edit-form .k-scheduler-delete,.k-pane-wrapper .k-pane .k-scheduler-edit-form .k-scheduler-resetSeries{color:var(--kendo-color-primary, #1274AC)}.k-pane-wrapper .k-pane .k-column-menu .k-listgroup-item.k-selected{color:var(--kendo-color-primary, #1274AC);background:none}.k-pane-wrapper .k-pane .k-column-menu .k-listgroup-item.k-selected .k-link{color:inherit}.k-grid{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-grid.k-grid-display-block{display:block}.k-grid .k-grid-container{display:flex;flex:1 1 auto;overflow:hidden;position:relative}.k-grid .k-grid-aria-root{border-color:inherit;display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden}.k-grid .k-table{margin:0;width:100%;max-width:none;border-width:0;border-color:inherit;border-collapse:separate;border-spacing:0;box-sizing:content-box;empty-cells:show;outline:0}.k-grid .k-grid-header .k-table,.k-grid .k-grid-content .k-table,.k-grid .k-grid-content-locked .k-table,.k-grid .k-grid-footer .k-table{table-layout:fixed}.k-grid .k-table-thead,.k-grid .k-table-tbody,.k-grid .k-table-tfoot{text-align:start;border-color:inherit}.k-grid .k-table-row{border-color:inherit}.k-grid .k-table-th,.k-grid td,.k-grid .k-table-td{border-width:0;border-inline-start-width:1px;border-style:solid;border-color:inherit;outline:0;font-weight:inherit;text-align:inherit;position:static;overflow:hidden;text-overflow:ellipsis;box-sizing:content-box}.k-grid .k-table-th:first-child,.k-grid td:first-child,.k-grid .k-table-td:first-child{border-inline-start-width:0}.k-grid .k-table-th:focus,.k-grid td:focus,.k-grid .k-table-td:focus{outline:none}.k-grid .k-table-th>.k-radio,.k-grid .k-table-th>.k-radio-wrap,.k-grid .k-table-th>.k-checkbox,.k-grid .k-table-th>.k-checkbox-wrap,.k-grid td>.k-radio,.k-grid td>.k-radio-wrap,.k-grid td>.k-checkbox,.k-grid td>.k-checkbox-wrap,.k-grid .k-table-td>.k-radio,.k-grid .k-table-td>.k-radio-wrap,.k-grid .k-table-td>.k-checkbox,.k-grid .k-table-td>.k-checkbox-wrap{vertical-align:top}.k-grid .k-table-th{border-block-end-width:1px;white-space:nowrap}.k-grid td,.k-grid .k-table-td{border-block-end-width:0px;white-space:unset;vertical-align:middle}.k-grid a{color:inherit;text-decoration:none}.k-grid a:hover{text-decoration:none}.k-grid .k-grid-header-wrap{box-sizing:content-box}.k-grid .k-grid-header{border-bottom-width:1px}.k-grid .k-grid-header .k-table{margin-bottom:-1px}.k-grid .k-grid-header.k-grid-draggable-header{-webkit-user-select:none;user-select:none;touch-action:none}.k-grid .k-grid-header .k-table-th{position:relative;vertical-align:bottom;cursor:default}.k-grid .k-grid-header .k-table-th:first-child{border-inline-start-width:0}.k-grid .k-grid-header .k-table-th.k-first{border-inline-start-width:1px}.k-grid .k-grid-header .k-table-th>.k-link{line-height:inherit;display:block;overflow:hidden;text-overflow:ellipsis;outline:0}.k-grid .k-grid-header .k-table-th>.k-link:focus{text-decoration:none}.k-grid .k-grid-header .k-grid-filter,.k-grid .k-grid-header .k-header-column-menu,.k-grid .k-grid-header .k-grid-header-menu{box-sizing:border-box;outline:0;display:flex;align-items:center;align-content:center;justify-content:center;position:absolute;inset-inline-end:var(--kendo-spacing-1, 0.25rem);z-index:1}.k-grid .k-grid-header .k-grid-filter:hover,.k-grid .k-grid-header .k-header-column-menu:hover,.k-grid .k-grid-header .k-grid-header-menu:hover{cursor:pointer}.k-grid .k-grid-header .k-cell-inner>.k-link>.k-sort-icon{vertical-align:text-top;margin-inline-start:calc(var(--kendo-spacing-2, 0.5rem) - 1px)}.k-grid .k-grid-header .k-cell-inner>.k-link>.k-sort-icon .k-icon{display:flex}.k-grid .k-grid-header .k-sort-order{display:inline-block;vertical-align:top;height:16px;font-size:var(--kendo-font-size-sm, inherit);margin-top:calc(var(--kendo-spacing-1, 0.25rem)/2);margin-inline-start:calc(var(--kendo-spacing-1, 0.25rem)/2*-1)}.k-grid .k-grid-header .k-filterable>.k-cell-inner .k-link{padding-inline-end:0}.k-grid .k-cell-inner{display:flex;flex-flow:row nowrap;align-items:center;justify-content:inherit;overflow:hidden}.k-grid .k-cell-inner>.k-link{width:auto;display:flex;flex-flow:row nowrap;align-items:center;justify-content:inherit;flex:1;overflow:hidden}.k-grid .k-cell-inner>.k-link>.k-sort-icon{margin-inline-start:0;display:inline-block;flex-shrink:0}.k-grid .k-cell-inner .k-sort-order{flex-shrink:0;line-height:normal}.k-grid .k-cell-inner .k-grid-filter,.k-grid .k-cell-inner .k-header-column-menu,.k-grid .k-cell-inner .k-grid-header-menu{position:static;margin-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-grid .k-group-col,.k-grid .k-hierarchy-col{padding:0;width:32px}.k-grid .k-grouping-row p{margin:0;display:flex;align-items:center;align-content:center}.k-grid .k-grouping-row td,.k-grid .k-grouping-row .k-table-td{overflow:visible}.k-grid .k-grouping-row+.k-table-row td,.k-grid .k-grouping-row+.k-table-row .k-table-td{border-top-width:1px}.k-grid .k-grouping-row .k-group-cell,.k-grid .k-grouping-row+.k-table-row .k-group-cell{border-top-width:0;text-overflow:clip}.k-grid .k-grouping-row .k-icon{margin-inline-start:calc(8px - var(--kendo-spacing-3, 0.75rem));margin-inline-end:8px;text-decoration:none}.k-grid .k-table .k-group-footer td,.k-grid .k-table .k-group-footer .k-table-td{border-style:solid;border-width:1px 0}.k-grid .k-group-footer .k-group-cell+td,.k-grid .k-group-footer .k-group-cell+.k-table-td{border-inline-start-width:1px}.k-grid .k-hierarchy-cell,.k-grid .k-drag-cell{text-align:center;overflow:visible}.k-grid .k-hierarchy-cell>.k-font-icon,.k-grid .k-drag-cell>.k-font-icon{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:0;width:100%;height:100%;display:inline-block;outline:0}.k-grid .k-hierarchy-cell+.k-grid-content-sticky{border-inline-start-width:1px}.k-grid .k-detail-row .k-detail-cell{border-inline-start-width:0}.k-grid .k-dirty-cell{position:relative}.k-grid .k-dirty-cell.k-edit-cell{position:static}.k-grid .k-dirty-cell.k-grid-content-sticky{position:sticky}.k-grid .k-dirty{border-width:5px;border-color:rgba(0,0,0,0);border-block-start-color:currentColor;border-inline-start-color:currentColor;inset-inline-start:0;inset-inline-end:auto}.k-grid .k-grid-content-locked+.k-grid-content{box-sizing:content-box}.k-grid .k-grid-content-expander{position:absolute;visibility:hidden;height:1px;bottom:1px}.k-grid .k-grid-filter,.k-grid .k-header-column-menu,.k-grid .k-grid-header-menu,.k-grid .k-hierarchy-cell .k-icon{border-width:0}.k-grid .k-drag-col{padding:0;width:36px}.k-grid .k-drag-cell{cursor:move}.k-grid-resizable{resize:both;overflow:auto}.k-grid-toolbar{border-width:0 0 1px;flex-shrink:0}.k-grid-toolbar-bottom{border-width:1px 0 0}.k-grouping-header{border-width:0 0 1px;border-style:solid;border-color:inherit;white-space:normal;display:flex;align-items:center;position:relative;flex-wrap:wrap}.k-grouping-header::before{content:"";height:calc(1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px);display:inline-block;vertical-align:middle}.k-grouping-header .k-chip-list{flex-grow:0;display:contents}.k-grouping-header>.k-grouping-drop-container{flex-grow:1;padding-block:var(--kendo-spacing-2, 0.5rem);margin-block:calc(var(--kendo-spacing-2, 0.5rem)*-1);display:inline-flex;align-self:stretch;align-items:center}.k-grouping-dropclue{width:12px;position:absolute;top:3px;box-sizing:content-box}.k-grouping-dropclue::before,.k-grouping-dropclue::after{display:inline-block;content:"";position:absolute}.k-grouping-dropclue::before{border-width:6px;border-style:solid;border-left-color:rgba(0,0,0,0);border-right-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0);top:0}.k-grouping-dropclue::after{width:2px;height:calc(100% - 6px);top:6px;inset-inline-start:5px}.k-grid-header-wrap,.k-grid-footer-wrap{margin-inline-end:-1px;width:100%;border-width:0;border-inline-end-width:1px;border-style:solid;border-color:inherit;position:relative;overflow:hidden}.k-grid-header-locked+.k-grid-header-wrap.k-auto-scrollable{margin-inline-end:0}.k-grid-header,.k-grid-footer{padding-inline-start:0;padding-inline-end:var(--kendo-scrollbar-width, 17px);border-width:0;border-style:solid;border-color:inherit;flex:0 0 auto}div.k-grid-header,div.k-grid-footer{display:flex;flex-direction:row;align-items:stretch}.k-column-resizer{width:.5em;height:1000%;display:block;position:absolute;top:0;inset-inline-end:0;cursor:col-resize}.k-row-resizer{display:block;height:var(--kendo-spacing-0\.5, 0.125rem);width:100%;background:none}.k-grid-footer{border-top-width:1px}.k-grid-footer td,.k-grid-footer .k-table-td{height:1.4285714286em}.k-grid-footer td,.k-group-footer td,.k-grouping-row td,.k-grid-footer .k-table-td,.k-group-footer .k-table-td,.k-grouping-row .k-table-td{font-weight:bold}.k-grid-filter-popup{min-width:230px;max-width:320px}.k-grid-column-menu-standalone a.k-grid-filter{position:initial;display:inline-block;margin-block:-4px;margin-inline:0;padding-block:4px;padding-inline:8px}.k-filter-row{line-height:var(--kendo-line-height, normal)}.k-filter-row td,.k-filter-row .k-table-td,.k-filter-row .k-table-th{border-width:0;border-block-end-width:1px;border-inline-start-width:1px;white-space:nowrap}.k-filter-row td:first-child,.k-filter-row .k-table-td:first-child{border-inline-start-width:0}.k-filter-row .k-multiselect{height:auto}.k-filtercell{width:auto;display:flex;flex-flow:row nowrap;align-items:center}.k-filtercell>span,.k-filtercell .k-filtercell-wrapper{width:100%;display:flex;flex-flow:row nowrap;align-items:center;flex:1 1 auto}.k-filtercell>span>.k-button,.k-filtercell .k-filtercell-wrapper>.k-button{flex:none}.k-grid-content,.k-grid-content-locked{border-color:inherit;outline:0}.k-grid-content .k-table-row:last-child>td,.k-grid-content .k-table-row:last-child>.k-table-td,.k-grid-content-locked .k-table-row:last-child>td,.k-grid-content-locked .k-table-row:last-child>.k-table-td{border-bottom-width:0}.k-grid-content{width:100%;min-height:0;overflow:auto;overflow-x:auto;overflow-y:scroll;position:relative;flex:1}.k-virtual-scrollable-wrap{height:100%;overflow-y:hidden;position:relative}.k-grid .k-edit-cell,.k-grid .k-command-cell,.k-grid .k-grid-edit-row td,.k-grid .k-grid-edit-row .k-table-td{text-overflow:clip}.k-grid .k-edit-cell>input:not([type=checkbox]):not([type=radio]),.k-grid .k-edit-cell>select,.k-grid .k-edit-cell>.k-widget:not(.k-switch),.k-grid .k-grid-edit-row td>input:not([type=checkbox]):not([type=radio]),.k-grid .k-grid-edit-row td>select,.k-grid .k-grid-edit-row td>.k-widget:not(.k-switch),.k-grid .k-grid-edit-row .k-table-td>input:not([type=checkbox]):not([type=radio]),.k-grid .k-grid-edit-row .k-table-td>select,.k-grid .k-grid-edit-row .k-table-td>.k-widget:not(.k-switch){width:100%;vertical-align:middle;box-sizing:border-box}.k-grid .k-edit-cell>.k-radio,.k-grid .k-edit-cell>.k-checkbox,.k-grid .k-edit-cell>.k-radio-wrap,.k-grid .k-edit-cell>.k-checkbox-wrap,.k-grid .k-grid-edit-row td>.k-radio,.k-grid .k-grid-edit-row td>.k-checkbox,.k-grid .k-grid-edit-row td>.k-radio-wrap,.k-grid .k-grid-edit-row td>.k-checkbox-wrap,.k-grid .k-grid-edit-row .k-table-td>.k-radio,.k-grid .k-grid-edit-row .k-table-td>.k-checkbox,.k-grid .k-grid-edit-row .k-table-td>.k-radio-wrap,.k-grid .k-grid-edit-row .k-table-td>.k-checkbox-wrap{vertical-align:middle}.k-grid .k-command-cell>.k-button{margin-inline-end:var(--kendo-spacing-2, 0.5rem);vertical-align:middle}.k-grid .k-command-cell>.k-button:last-child{margin-inline-end:unset}.k-grid>.k-resize-handle,.k-grid-header .k-resize-handle{height:25px;cursor:col-resize;position:absolute;z-index:2}.k-selection-aggregates{border-width:1px 0 0;border-style:solid;line-height:var(--kendo-line-height, normal);display:flex;justify-content:flex-end;gap:var(--kendo-spacing-2, 0.5rem)}.k-selection-aggregates-item-value{font-weight:var(--kendo-font-weight-bold, normal)}.k-grid-pager{border-width:1px 0 0;border-color:inherit;font-size:inherit}.k-grid-pager-top{border-width:0 0 1px}.k-grid-virtual .k-grid-content .k-grid-table-wrap{float:left;width:100%}.k-grid-virtual .k-grid-content .k-grid-table{position:relative;float:left;z-index:1}.k-grid-virtual .k-grid-content>.k-height-container{position:relative;float:left}.k-grid-virtual .k-grid-content::after{content:"";display:block;clear:both}.k-width-container{position:absolute;visibility:hidden}.k-width-container div{height:1px}.k-grid-add-row td,.k-grid-add-row .k-table-td{border-bottom-style:solid;border-bottom-width:1px}.k-grid-lockedcolumns{white-space:nowrap}.k-grid-content,.k-grid-content-locked{white-space:normal}.k-grid-content-locked,.k-grid-footer-locked,.k-grid-header-locked{flex:0 0 auto;display:inline-block;vertical-align:top;overflow:hidden;position:relative;border-style:solid;border-width:0;border-inline-end-width:1px;box-sizing:content-box}.k-grid-content-locked+.k-grid-content.k-auto-scrollable,.k-grid-footer-locked+.k-grid-content.k-auto-scrollable,.k-grid-header-locked+.k-grid-content.k-auto-scrollable{display:inline-block}.k-grid-content-locked .k-table,.k-grid-footer-locked .k-table,.k-grid-header-locked .k-table{border-width:0}.k-grid-content,.k-grid-footer-wrap,.k-grid-header-wrap{flex:1 1 auto;display:inline-block;vertical-align:top}.k-grid-content.k-auto-scrollable,.k-grid-footer-wrap.k-auto-scrollable,.k-grid-header-wrap.k-auto-scrollable{display:block}.k-grid-header-locked>.k-grid-header-table,.k-grid-header-wrap>.k-grid-header-table{margin-bottom:-1px}.k-grid-header .k-table-th.k-grid-header-sticky,.k-grid-header .k-filter-row .k-grid-header-sticky,.k-grid .k-grid-content-sticky,.k-grid .k-grid-row-sticky,.k-grid .k-grid-footer-sticky{position:sticky;z-index:2}.k-grid-header .k-table-th.k-grid-header-sticky.k-edit-cell,.k-grid-header .k-filter-row .k-grid-header-sticky.k-edit-cell,.k-grid .k-grid-content-sticky.k-edit-cell,.k-grid .k-grid-row-sticky.k-edit-cell,.k-grid .k-grid-footer-sticky.k-edit-cell{overflow:visible;z-index:3}.k-master-row .k-grid-content-sticky::before,.k-master-row.k-grid-row-sticky .k-table-td::before{content:"";width:100%;height:100%;position:absolute;top:0;left:0;z-index:-1}kendo-grid .k-table-row.k-grid-row-sticky{border:0;position:static;z-index:auto}kendo-grid .k-grid-row-sticky td,kendo-grid .k-grid-row-sticky .k-table-td{border-bottom-width:1px;border-top-width:1px;position:sticky;top:inherit;bottom:inherit;z-index:2}kendo-grid .k-grid-row-sticky td.k-grid-content-sticky,kendo-grid .k-grid-row-sticky.k-table-alt-row td.k-grid-content-sticky,kendo-grid .k-grid-row-sticky .k-table-td.k-grid-content-sticky,kendo-grid .k-grid-row-sticky.k-table-alt-row .k-table-td.k-grid-content-sticky{z-index:3}kendo-grid .k-grid-header-locked .k-table-th.k-grid-header-sticky:last-child,kendo-grid .k-grid-content-locked .k-table-row .k-grid-content-sticky:last-child{border-inline-end:0}kendo-grid .k-grid-header .k-grid-column-menu,kendo-grid .k-grid-header .k-grid-header-menu{z-index:1}.k-grid-content-sticky.k-grid-row-sticky{z-index:3}.k-grid .k-table .k-grid-header-sticky,.k-grid .k-table .k-grid-content-sticky,.k-grid .k-table .k-grid-footer-sticky{border-inline-end-width:1px}.k-grid .k-table .k-grid-header-sticky:not([style*="display: none"])+td,.k-grid .k-table .k-grid-header-sticky:not([style*="display: none"])+.k-table-td,.k-grid .k-table .k-grid-header-sticky:not([style*="display: none"])+.k-table-th,.k-grid .k-table .k-grid-content-sticky:not([style*="display: none"])+td,.k-grid .k-table .k-grid-content-sticky:not([style*="display: none"])+.k-table-td,.k-grid .k-table .k-grid-content-sticky:not([style*="display: none"])+.k-table-th,.k-grid .k-table .k-grid-footer-sticky:not([style*="display: none"])+td,.k-grid .k-table .k-grid-footer-sticky:not([style*="display: none"])+.k-table-td,.k-grid .k-table .k-grid-footer-sticky:not([style*="display: none"])+.k-table-th{border-inline-start-width:0}.k-grid .k-grid-row-sticky{border-bottom-width:1px;border-top-width:1px}.k-grid-header-sticky.k-table-th.k-grid-no-left-border.k-first{border-inline-start-width:0}.k-grid.k-grid-no-scrollbar .k-grid-header-wrap,.k-grid.k-grid-no-scrollbar .k-grid-footer-wrap{margin:0;border-width:0}.k-grid.k-grid-no-scrollbar .k-grid-header,.k-grid.k-grid-no-scrollbar .k-grid-footer{padding:0}.k-grid.k-grid-no-scrollbar .k-grid-content{overflow-y:auto}.k-grid-norecords{text-align:center}div.k-grid-norecords{width:100%;height:100%;display:flex;align-items:center}.k-grid-norecords-template{box-sizing:border-box;margin-block:0;margin-inline:auto;width:20em;height:4em;border:1px solid;line-height:4em}.k-column-title{min-width:0;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;overflow:hidden}.k-grid .k-grid-sm .k-table-th,.k-grid-sm .k-table-th{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-sm td,.k-grid .k-grid-sm .k-table-td,.k-grid-sm td,.k-grid-sm .k-table-td{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-sm .k-grouping-header,.k-grid-sm .k-grouping-header{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);gap:var(--kendo-spacing-1, 0.25rem)}.k-grid .k-grid-sm .k-grouping-header::before,.k-grid-sm .k-grouping-header::before{margin-inline-start:calc(var(--kendo-spacing-1, 0.25rem)*-1)}.k-grid .k-grid-sm .k-grid-header .k-table-th>.k-link,.k-grid-sm .k-grid-header .k-table-th>.k-link{margin-block:calc(var(--kendo-spacing-1, 0.25rem)*-1);margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-sm .k-grid-header .k-grid-filter,.k-grid .k-grid-sm .k-grid-header .k-header-column-menu,.k-grid .k-grid-sm .k-grid-header .k-grid-header-menu,.k-grid-sm .k-grid-header .k-grid-filter,.k-grid-sm .k-grid-header .k-header-column-menu,.k-grid-sm .k-grid-header .k-grid-header-menu{padding:var(--kendo-spacing-0\.5, 0.125rem);width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px);height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 2px);bottom:calc(var(--kendo-spacing-1, 0.25rem) + 0.7142857143em - var(--kendo-line-height, normal)*1em/2 - var(--kendo-spacing-1, 0.25rem)*2/2)}.k-grid .k-grid-sm .k-table-th>.k-cell-inner,.k-grid-sm .k-table-th>.k-cell-inner{margin-block:calc(var(--kendo-spacing-1, 0.25rem)*-1);margin-inline:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-grid .k-grid-sm .k-table-th>.k-cell-inner>.k-link,.k-grid-sm .k-table-th>.k-cell-inner>.k-link{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-sm .k-grouping-row .k-icon,.k-grid-sm .k-grouping-row .k-icon{margin-inline-start:calc(8px - var(--kendo-spacing-2, 0.5rem))}.k-grid .k-grid-sm .k-grouping-dropclue,.k-grid-sm .k-grouping-dropclue{height:calc(1em + var(--kendo-spacing-0\.5, 0.125rem)*2 + 8px)}.k-grid .k-grid-sm .k-hierarchy-cell,.k-grid .k-grid-sm .k-drag-cell,.k-grid-sm .k-hierarchy-cell,.k-grid-sm .k-drag-cell{padding:0}.k-grid .k-grid-sm .k-hierarchy-cell>.k-icon,.k-grid .k-grid-sm .k-drag-cell>.k-icon,.k-grid-sm .k-hierarchy-cell>.k-icon,.k-grid-sm .k-drag-cell>.k-icon{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:0}.k-grid .k-grid-sm .k-edit-cell,.k-grid .k-grid-sm .k-command-cell,.k-grid .k-grid-sm .k-grid-edit-row td,.k-grid .k-grid-sm .k-grid-edit-row .k-table-td,.k-grid-sm .k-edit-cell,.k-grid-sm .k-command-cell,.k-grid-sm .k-grid-edit-row td,.k-grid-sm .k-grid-edit-row .k-table-td{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-sm .k-filter-row td,.k-grid .k-grid-sm .k-filter-row .k-table-td,.k-grid .k-grid-sm .k-filter-row .k-table-th,.k-grid-sm .k-filter-row td,.k-grid-sm .k-filter-row .k-table-td,.k-grid-sm .k-filter-row .k-table-th{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-1\.5, 0.375rem)}.k-grid .k-grid-sm .k-filtercell>span,.k-grid .k-grid-sm .k-filtercell .k-filtercell-wrapper,.k-grid-sm .k-filtercell>span,.k-grid-sm .k-filtercell .k-filtercell-wrapper{gap:calc(var(--kendo-spacing-1, 0.25rem)/2)}.k-grid .k-grid-sm .k-selection-aggregates,.k-grid-sm .k-selection-aggregates{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-grid .k-grid-sm .k-resizer-wrap,.k-grid-sm .k-resizer-wrap{display:block;width:100%;padding-block-start:calc(var(--kendo-spacing-0\.5, 0.125rem) - var(--kendo-spacing-0\.5, 0.125rem));padding-block-end:var(--kendo-spacing-0\.5, 0.125rem);position:absolute;background:none;cursor:row-resize;z-index:2}.k-grid .k-grid-md .k-table-th,.k-grid-md .k-table-th{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-grid .k-grid-md td,.k-grid .k-grid-md .k-table-td,.k-grid-md td,.k-grid-md .k-table-td{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-grid .k-grid-md .k-grouping-header,.k-grid-md .k-grouping-header{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);gap:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-md .k-grouping-header::before,.k-grid-md .k-grouping-header::before{margin-inline-start:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-grid .k-grid-md .k-grid-header .k-table-th>.k-link,.k-grid-md .k-grid-header .k-table-th>.k-link{margin-block:calc(var(--kendo-spacing-2, 0.5rem)*-1);margin-inline:calc(var(--kendo-spacing-3, 0.75rem)*-1);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-grid .k-grid-md .k-grid-header .k-grid-filter,.k-grid .k-grid-md .k-grid-header .k-header-column-menu,.k-grid .k-grid-md .k-grid-header .k-grid-header-menu,.k-grid-md .k-grid-header .k-grid-filter,.k-grid-md .k-grid-header .k-header-column-menu,.k-grid-md .k-grid-header .k-grid-header-menu{padding:var(--kendo-spacing-1, 0.25rem);width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px);height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px);bottom:calc(var(--kendo-spacing-2, 0.5rem) + 0.7142857143em - var(--kendo-line-height, normal)*1em/2 - var(--kendo-spacing-1, 0.25rem)*2/2)}.k-grid .k-grid-md .k-table-th>.k-cell-inner,.k-grid-md .k-table-th>.k-cell-inner{margin-block:calc(var(--kendo-spacing-2, 0.5rem)*-1);margin-inline:calc(var(--kendo-spacing-3, 0.75rem)*-1)}.k-grid .k-grid-md .k-table-th>.k-cell-inner>.k-link,.k-grid-md .k-table-th>.k-cell-inner>.k-link{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-grid .k-grid-md .k-grouping-row .k-icon,.k-grid-md .k-grouping-row .k-icon{margin-inline-start:calc(8px - var(--kendo-spacing-3, 0.75rem))}.k-grid .k-grid-md .k-grouping-dropclue,.k-grid-md .k-grouping-dropclue{height:calc(1em + var(--kendo-spacing-1, 0.25rem)*2 + 8px)}.k-grid .k-grid-md .k-hierarchy-cell,.k-grid .k-grid-md .k-drag-cell,.k-grid-md .k-hierarchy-cell,.k-grid-md .k-drag-cell{padding:0}.k-grid .k-grid-md .k-hierarchy-cell>.k-icon,.k-grid .k-grid-md .k-drag-cell>.k-icon,.k-grid-md .k-hierarchy-cell>.k-icon,.k-grid-md .k-drag-cell>.k-icon{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:0}.k-grid .k-grid-md .k-edit-cell,.k-grid .k-grid-md .k-command-cell,.k-grid .k-grid-md .k-grid-edit-row td,.k-grid .k-grid-md .k-grid-edit-row .k-table-td,.k-grid-md .k-edit-cell,.k-grid-md .k-command-cell,.k-grid-md .k-grid-edit-row td,.k-grid-md .k-grid-edit-row .k-table-td{padding-block:calc(var(--kendo-spacing-1\.5, 0.375rem)/2);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-grid .k-grid-md .k-filter-row td,.k-grid .k-grid-md .k-filter-row .k-table-td,.k-grid .k-grid-md .k-filter-row .k-table-th,.k-grid-md .k-filter-row td,.k-grid-md .k-filter-row .k-table-td,.k-grid-md .k-filter-row .k-table-th{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-md .k-filtercell>span,.k-grid .k-grid-md .k-filtercell .k-filtercell-wrapper,.k-grid-md .k-filtercell>span,.k-grid-md .k-filtercell .k-filtercell-wrapper{gap:calc(var(--kendo-spacing-2, 0.5rem)/2)}.k-grid .k-grid-md .k-selection-aggregates,.k-grid-md .k-selection-aggregates{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-grid .k-grid-md .k-resizer-wrap,.k-grid-md .k-resizer-wrap{display:block;width:100%;padding-block-start:calc(var(--kendo-spacing-1\.5, 0.375rem)/2 - var(--kendo-spacing-0\.5, 0.125rem));padding-block-end:calc(var(--kendo-spacing-1\.5, 0.375rem)/2);position:absolute;background:none;cursor:row-resize;z-index:2}.k-loading-pdf-mask{position:absolute;width:100%;height:100%;top:0;left:0;z-index:100}.k-loading-pdf-mask>.k-i-loading{position:absolute;top:50%;left:50%;font-size:64px}.k-loading-pdf-mask .k-loading-pdf-progress{margin:auto;position:absolute;top:0;bottom:0;left:0;right:0}.k-pdf-export .k-loading-pdf-mask{display:none}.k-grid-pdf-export-element{position:absolute;left:-10000px;top:-10000px}.k-grid-pdf-export-element .k-filter-row{display:none}.k-pdf-export-shadow .k-grid{float:left;width:auto !important}.k-pdf-export-shadow .k-grid,.k-pdf-export-shadow .k-grid-content,.k-pdf-export-shadow .k-grid-content-locked{height:auto !important;overflow:visible}.k-pdf-export-shadow .k-grid-header-locked+.k-grid-header-wrap,.k-pdf-export-shadow .k-grid-header-locked+.k-grid-content,.k-pdf-export-shadow .k-grid-header-locked+.k-grid-footer-wrap{width:auto !important}.k-pdf-export-shadow .k-grid-header,.k-pdf-export-shadow .k-grid[data-role=grid] .k-grid-footer{padding:0 !important}.k-filter-menu-popup{min-width:230px;max-width:320px}.k-filter-menu{box-sizing:border-box}.k-filter-menu-container{padding:var(--kendo-spacing-2, 0.5rem);box-sizing:border-box;display:flex;flex-flow:column nowrap;align-items:stretch;gap:var(--kendo-spacing-2, 0.5rem)}.k-filter-menu-container .k-filter-and{width:min-content;align-self:start}.k-filter-menu-container .k-actions,.k-filter-menu-container .k-edit-buttons,.k-filter-menu-container .k-action-buttons,.k-filter-menu-container .k-columnmenu-actions,.k-filter-menu-container .k-form-buttons{margin:0;padding:0}.k-filter-menu-container kendo-numeric-filter-menu,.k-filter-menu-container kendo-grid-string-filter-menu,.k-filter-menu-container kendo-grid-date-filter-menu,.k-filter-menu-container kendo-grid-numeric-filter-menu,.k-filter-menu-container kendo-grid-filter-menu-input-wrapper,.k-filter-menu-container kendo-treelist-string-filter-menu,.k-filter-menu-container kendo-treelist-date-filter-menu,.k-filter-menu-container kendo-treelist-numeric-filter-menu,.k-filter-menu-container kendo-treelist-filter-menu-input-wrapper{display:flex;flex-flow:column nowrap;align-items:stretch;gap:var(--kendo-spacing-2, 0.5rem)}.k-filter-menu.k-popup .k-filter-menu-container,.k-grid-filter-popup.k-popup .k-filter-menu-container{min-width:230px;max-width:320px}.k-multicheck-wrap{margin:0;padding:0;white-space:nowrap;list-style:none}.k-multicheck-wrap .k-item,.k-multicheck-wrap .k-check-all-wrap{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:flex;flex-flow:row nowrap}.k-filter-selected-items{font-weight:bold;line-height:normal;white-space:nowrap}.k-autofitting{width:auto !important;table-layout:auto !important}.k-autofitting .k-table-th,.k-autofitting td,.k-autofitting .k-table-td{white-space:nowrap !important}.k-autofitting .k-detail-row{display:none !important}.k-column-menu-popup,.k-grid-columnmenu-popup{min-width:230px;box-sizing:border-box}.k-column-menu-popup.k-popup,.k-grid-columnmenu-popup.k-popup{max-width:320px}.k-column-menu-popup .k-actions,.k-column-menu-popup .k-edit-buttons,.k-column-menu-popup .k-action-buttons,.k-column-menu-popup .k-columnmenu-actions,.k-column-menu-popup .k-form-buttons,.k-grid-columnmenu-popup .k-actions,.k-grid-columnmenu-popup .k-edit-buttons,.k-grid-columnmenu-popup .k-action-buttons,.k-grid-columnmenu-popup .k-columnmenu-actions,.k-grid-columnmenu-popup .k-form-buttons{margin:0}.k-column-menu{box-sizing:border-box}.k-column-menu .k-menu:not(.k-context-menu){font-weight:400}.k-column-menu .k-expander{border:0;background:inherit}.k-column-menu .k-expander .k-columnmenu-item{display:flex;align-items:center}.k-column-menu .k-columnmenu-indicators{padding-inline:var(--kendo-spacing-1, 0.25rem);display:flex;align-items:center;justify-content:center}.k-column-menu .k-columnmenu-item:has(>.k-columnmenu-item-actions,>.k-columnmenu-indicators){display:flex;align-items:center}.k-column-menu-tabbed{border-radius:var(--kendo-border-radius-md, 0.25rem) var(--kendo-border-radius-md, 0.25rem) 0 0}.k-column-menu-tabbed .k-tabstrip-items{margin:-1px -1px 0}.k-column-menu-tabbed .k-tabstrip-items .k-item{flex:1}.k-column-menu-tabbed .k-tabstrip-items .k-link{justify-content:center}.k-column-menu-tabbed .k-tabstrip-content{padding-inline:var(--kendo-spacing-0, 0px);padding-block:var(--kendo-spacing-2, 0.5rem);border-width:0}.k-column-list{padding:0;margin:0;list-style:none}.k-column-chooser-title,.k-column-list-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-column-list-item{margin:0;display:flex;flex-flow:row nowrap;align-items:center;gap:4px;cursor:pointer;position:relative}.k-column-list-item .k-checkbox-label{margin:0}.k-column-list-item:focus{outline:none}.k-columns-items-wrap{padding-block:var(--kendo-spacing-1\.5, 0.375rem);padding-inline:var(--kendo-spacing-0, 0px)}.k-columnmenu-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);outline:0;cursor:pointer}.k-columnmenu-item>.k-icon,.k-columnmenu-item>.k-expander-indicator{margin-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-columnmenu-item-wrapper+.k-columnmenu-item-wrapper,.k-column-menu-footer{border-top:1px solid;border-top-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-columnmenu-item-content{overflow:hidden}.k-column-menu-group-header{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:flex;flex:0 0 auto;position:relative;-webkit-user-select:none;user-select:none}.k-column-menu-group-header-text{border-bottom-width:1px;border-bottom-style:solid;font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height, normal);font-weight:bold;text-transform:uppercase;flex:1 1 auto}.k-rtl .k-grid-virtual .k-grid-content .k-grid-table-wrap,.k-rtl .k-grid-virtual .k-grid-content .k-grid-table,.k-rtl .k-grid-virtual .k-grid-content>.k-height-container,[dir=rtl] .k-grid-virtual .k-grid-content .k-grid-table-wrap,[dir=rtl] .k-grid-virtual .k-grid-content .k-grid-table,[dir=rtl] .k-grid-virtual .k-grid-content>.k-height-container,.k-rtl.k-grid-virtual .k-grid-content .k-grid-table-wrap,.k-rtl.k-grid-virtual .k-grid-content .k-grid-table,.k-rtl.k-grid-virtual .k-grid-content>.k-height-container,[dir=rtl].k-grid-virtual .k-grid-content .k-grid-table-wrap,[dir=rtl].k-grid-virtual .k-grid-content .k-grid-table,[dir=rtl].k-grid-virtual .k-grid-content>.k-height-container{float:right}.k-grid-header,.k-grid-header-wrap,.k-grouping-header,.k-grid .k-table-th,.k-grid td,.k-grid .k-table-td,.k-grid-footer,.k-grid-footer-wrap,.k-grid-content-locked,.k-grid-footer-locked,.k-grid-header-locked,.k-filter-row>.k-table-th,.k-filter-row>td,.k-filter-row>.k-table-td{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-grid-header,.k-grouping-header,.k-grid-add-row,.k-grid-footer{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-grid .k-table{background-color:inherit}.k-grid-toolbar{border-color:inherit;box-shadow:none}.k-grid-content{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-group-footer td,.k-grouping-row td,.k-group-footer .k-table-td,.k-grouping-row .k-table-td,.k-table-tbody .k-group-cell{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-grouping-dropclue::before{border-color:var(--kendo-color-on-app-surface, #424242) rgba(0,0,0,0) rgba(0,0,0,0)}.k-grouping-dropclue::after{background-color:var(--kendo-color-on-app-surface, #424242)}.k-grid{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-grid .k-table-row.k-table-alt-row{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 5%, transparent)}.k-grid .k-table-tbody>.k-table-row:not(.k-detail-row):hover,.k-grid .k-table-tbody>.k-table-row:not(.k-detail-row).k-hover{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 11%, transparent)}.k-grid td.k-selected,.k-grid .k-table-row.k-selected>td,.k-grid .k-table-td.k-selected,.k-grid .k-table-row.k-selected>.k-table-td{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-grid .k-table-th:focus,.k-grid .k-table-th.k-focus,.k-grid td:focus,.k-grid td.k-focus,.k-grid .k-table-td:focus,.k-grid .k-table-td.k-focus,.k-grid .k-master-row>td:focus,.k-grid .k-master-row>td.k-focus,.k-grid .k-grouping-row>td:focus,.k-grid .k-grouping-row>td.k-focus,.k-grid .k-detail-row>td:focus,.k-grid .k-detail-row>td.k-focus,.k-grid .k-group-footer>td:focus,.k-grid .k-group-footer>td.k-focus,.k-grid .k-master-row>.k-table-td:focus,.k-grid .k-master-row>.k-table-td.k-focus,.k-grid .k-grouping-row>.k-table-td:focus,.k-grid .k-grouping-row>.k-table-td.k-focus,.k-grid .k-detail-row>.k-table-td:focus,.k-grid .k-detail-row>.k-table-td.k-focus,.k-grid .k-group-footer>.k-table-td:focus,.k-grid .k-group-footer>.k-table-td.k-focus,.k-grid .k-grid-pager:focus,.k-grid .k-grid-pager.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-grid .k-grid-filter,.k-grid .k-header-column-menu,.k-grid .k-grid-header-menu,.k-grid .k-hierarchy-cell .k-icon{color:var(--kendo-color-on-app-surface, #424242)}.k-grid .k-grouping-row{background-color:var(--kendo-color-surface, #fafafa)}.k-grid .k-grouping-row .k-icon{color:var(--kendo-color-on-app-surface, #424242)}.k-grid .k-grouping-row .k-grid-content-sticky{border-color:rgba(0,0,0,.3);border-top-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-grid .k-grid-header-locked,.k-grid .k-grid-content-locked,.k-grid .k-grid-footer-locked,.k-grid .k-grid-header-locked .k-table-th,.k-grid .k-grid-content-locked td,.k-grid .k-grid-content-locked .k-table-td,.k-grid .k-grid-footer-locked td,.k-grid .k-grid-footer-locked .k-table-td{border-color:rgba(0,0,0,.3)}.k-grid .k-grid-content-locked .k-group-footer td,.k-grid .k-grid-content-locked .k-group-footer .k-table-td,.k-grid .k-grid-content-locked .k-group-cell{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-grid .k-grid-content-locked .k-grouping-row+.k-table-row td,.k-grid .k-grid-content-locked .k-grouping-row+.k-table-row .k-table-td{border-top-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-grid .k-grid-content-locked .k-selected td,.k-grid .k-grid-content-locked .k-selected .k-table-td{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-grid .k-grid-content-locked .k-selected.k-table-alt-row td,.k-grid .k-grid-content-locked .k-selected.k-table-alt-row .k-table-td{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 24%, transparent)}.k-grid .k-grid-content-locked .k-selected:hover td,.k-grid .k-grid-content-locked .k-selected.k-hover td,.k-grid .k-grid-content-locked .k-selected:hover .k-table-td,.k-grid .k-grid-content-locked .k-selected.k-hover .k-table-td{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 24%, transparent)}.k-grid .k-grid-header-locked .k-table-th{border-bottom-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}col.k-sorted,.k-table-th.k-sorted{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 3%, transparent)}.k-grid-header .k-sort-icon,.k-grid-header .k-sort-order{color:var(--kendo-color-primary, #1274AC)}.k-grid-header .k-grid-filter:hover,.k-grid-header .k-header-column-menu:hover,.k-grid-header .k-grid-header-menu:hover,.k-grid-header .k-hierarchy-cell .k-icon:hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-grid-header .k-grid-filter:focus,.k-grid-header .k-grid-filter.k-focus,.k-grid-header .k-header-column-menu:focus,.k-grid-header .k-header-column-menu.k-focus,.k-grid-header .k-grid-header-menu:focus,.k-grid-header .k-grid-header-menu.k-focus,.k-grid-header .k-hierarchy-cell .k-icon:focus,.k-grid-header .k-hierarchy-cell .k-icon.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.1)}.k-grid-header .k-grid-filter.k-active,.k-grid-header .k-header-column-menu.k-active,.k-grid-header .k-grid-header-menu.k-active,.k-grid-header .k-hierarchy-cell .k-icon.k-active{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-grid-header .k-table-th.k-grid-header-sticky,.k-grid-header td.k-grid-header-sticky,.k-grid-header .k-table-td.k-grid-header-sticky,.k-grid-header .k-grid-header-sticky.k-sorted{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa);border-right-color:rgba(0,0,0,.3);border-left-color:rgba(0,0,0,.3)}.k-grid-footer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-grid-footer .k-grid-footer-sticky{border-left-color:rgba(0,0,0,.3);border-right-color:rgba(0,0,0,.3);background-color:var(--kendo-color-surface, #fafafa)}.k-selection-aggregates{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-master-row .k-grid-content-sticky{border-color:rgba(0,0,0,.3);border-top-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-surface-alt, #ffffff)}.k-master-row .k-grid-row-sticky,.k-master-row.k-grid-row-sticky>.k-table-td{border-top-color:rgba(0,0,0,.3);border-bottom-color:rgba(0,0,0,.3);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-master-row.k-table-alt-row .k-grid-content-sticky,.k-master-row.k-table-alt-row.k-grid-row-sticky>.k-table-td,.k-master-row.k-table-alt-row .k-grid-row-sticky{background-color:var(--kendo-color-base, #f5f5f5)}.k-master-row.k-table-row.k-selected td.k-grid-content-sticky,.k-master-row.k-table-row.k-selected.k-grid-row-sticky>.k-table-td,.k-master-row.k-table-row.k-selected .k-table-td.k-grid-row-sticky,.k-master-row.k-table-row td.k-grid-content-sticky.k-selected,.k-master-row.k-table-row .k-table-td.k-grid-content-sticky.k-selected{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-master-row.k-table-row.k-selected td.k-grid-content-sticky::before,.k-master-row.k-table-row.k-selected.k-grid-row-sticky>.k-table-td::before,.k-master-row.k-table-row.k-selected .k-table-td.k-grid-row-sticky::before,.k-master-row.k-table-row td.k-grid-content-sticky.k-selected::before,.k-master-row.k-table-row .k-table-td.k-grid-content-sticky.k-selected::before{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-master-row.k-selected.k-table-alt-row td.k-grid-content-sticky,.k-master-row.k-selected.k-table-alt-row.k-grid-row-sticky>.k-table-td,.k-master-row.k-selected.k-table-alt-row .k-table-td.k-grid-row-sticky,.k-master-row.k-table-alt-row td.k-grid-content-sticky.k-selected,.k-master-row.k-table-alt-row .k-table-td.k-grid-content-sticky.k-selected{background-color:var(--kendo-color-base, #f5f5f5)}.k-master-row.k-selected.k-table-alt-row td.k-grid-content-sticky::before,.k-master-row.k-selected.k-table-alt-row.k-grid-row-sticky>.k-table-td::before,.k-master-row.k-selected.k-table-alt-row .k-table-td.k-grid-row-sticky::before,.k-master-row.k-table-alt-row td.k-grid-content-sticky.k-selected::before,.k-master-row.k-table-alt-row .k-table-td.k-grid-content-sticky.k-selected::before{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 24%, transparent)}.k-master-row:hover .k-grid-content-sticky,.k-master-row:hover .k-grid-row-sticky,.k-master-row:hover.k-grid-row-sticky>.k-table-td,.k-master-row.k-hover .k-grid-content-sticky,.k-master-row.k-hover .k-grid-row-sticky,.k-master-row.k-hover.k-grid-row-sticky>.k-table-td{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-master-row.k-selected:hover td.k-grid-content-sticky,.k-master-row.k-selected:hover .k-table-td.k-grid-row-sticky,.k-master-row.k-selected:hover.k-grid-row-sticky>.k-table-td,.k-master-row.k-selected.k-hover td.k-grid-content-sticky,.k-master-row.k-selected.k-hover .k-table-td.k-grid-row-sticky,.k-master-row.k-selected.k-hover.k-grid-row-sticky>.k-table-td,.k-master-row:hover td.k-grid-content-sticky.k-selected,.k-master-row.k-hover td.k-grid-content-sticky.k-selected,.k-master-row:hover .k-table-td.k-grid-content-sticky.k-selected,.k-master-row.k-hover .k-table-td.k-grid-content-sticky.k-selected{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-master-row.k-selected:hover td.k-grid-content-sticky::before,.k-master-row.k-selected:hover .k-table-td.k-grid-row-sticky::before,.k-master-row.k-selected:hover.k-grid-row-sticky>.k-table-td::before,.k-master-row.k-selected.k-hover td.k-grid-content-sticky::before,.k-master-row.k-selected.k-hover .k-table-td.k-grid-row-sticky::before,.k-master-row.k-selected.k-hover.k-grid-row-sticky>.k-table-td::before,.k-master-row:hover td.k-grid-content-sticky.k-selected::before,.k-master-row.k-hover td.k-grid-content-sticky.k-selected::before,.k-master-row:hover .k-table-td.k-grid-content-sticky.k-selected::before,.k-master-row.k-hover .k-table-td.k-grid-content-sticky.k-selected::before{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 24%, transparent)}.k-grouping-row .k-grid-content-sticky{background-color:var(--kendo-color-surface, #fafafa)}.k-grouping-row:hover .k-grid-content-sticky,.k-grouping-row.k-hover .k-grid-content-sticky{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-column-list-item:hover,.k-columnmenu-item:hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-column-list-item:focus,.k-column-list-item.k-focus,.k-columnmenu-item:focus,.k-columnmenu-item.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-columnmenu-item.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-column-menu .k-menu:not(.k-context-menu){border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-column-menu .k-menu:not(.k-context-menu) .k-item:hover,.k-column-menu .k-menu:not(.k-context-menu) .k-item.k-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-column-menu .k-menu:not(.k-context-menu) .k-item.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-column-menu .k-menu:not(.k-context-menu) .k-item:focus,.k-column-menu .k-menu:not(.k-context-menu) .k-item.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-column-menu-tabbed{background-color:var(--kendo-color-surface, #fafafa)}.k-column-menu-group-header-text{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242)}.k-check-all-wrap{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-grid-norecords-template{background-color:var(--kendo-color-surface-alt, #ffffff);border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-resizer-wrap.k-hover .k-row-resizer{background-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 20%, transparent)}.k-resizer-wrap.k-active .k-row-resizer{background-color:var(--kendo-color-primary, #1274AC)}.k-columnmenu-indicators{color:var(--kendo-color-primary, #1274AC)}.k-touch-action-none{touch-action:none}.\!k-touch-action-none{touch-action:none !important}.k-touch-action-auto{touch-action:auto}.\!k-touch-action-auto{touch-action:auto !important}.k-touch-action-pan-x{touch-action:pan-x}.\!k-touch-action-pan-x{touch-action:pan-x !important}.k-touch-action-pan-left{touch-action:pan-left}.\!k-touch-action-pan-left{touch-action:pan-left !important}.k-touch-action-pan-right{touch-action:pan-right}.\!k-touch-action-pan-right{touch-action:pan-right !important}.k-touch-action-pan-y{touch-action:pan-y}.\!k-touch-action-pan-y{touch-action:pan-y !important}.k-touch-action-pan-up{touch-action:pan-up}.\!k-touch-action-pan-up{touch-action:pan-up !important}.k-touch-action-pan-down{touch-action:pan-down}.\!k-touch-action-pan-down{touch-action:pan-down !important}.k-touch-action-pinch-zoom{touch-action:pinch-zoom}.\!k-touch-action-pinch-zoom{touch-action:pinch-zoom !important}.k-touch-action-manipulation{touch-action:manipulation}.\!k-touch-action-manipulation{touch-action:manipulation !important}.k-user-select-none{-webkit-user-select:none;user-select:none}.\!k-user-select-none{-webkit-user-select:none !important;user-select:none !important}.k-user-select-auto{-webkit-user-select:auto;user-select:auto}.\!k-user-select-auto{-webkit-user-select:auto !important;user-select:auto !important}.k-user-select-text{-webkit-user-select:text;user-select:text}.\!k-user-select-text{-webkit-user-select:text !important;user-select:text !important}.k-user-select-all{-webkit-user-select:all;user-select:all}.\!k-user-select-all{-webkit-user-select:all !important;user-select:all !important}.k-user-select-contain{user-select:contain}.\!k-user-select-contain{user-select:contain !important}.k-cursor-none{cursor:none}.\!k-cursor-none{cursor:none !important}.k-cursor-auto{cursor:auto}.\!k-cursor-auto{cursor:auto !important}.k-cursor-default{cursor:default}.\!k-cursor-default{cursor:default !important}.k-cursor-context-menu{cursor:context-menu}.\!k-cursor-context-menu{cursor:context-menu !important}.k-cursor-help{cursor:help}.\!k-cursor-help{cursor:help !important}.k-cursor-pointer{cursor:pointer}.\!k-cursor-pointer{cursor:pointer !important}.k-cursor-progress{cursor:progress}.\!k-cursor-progress{cursor:progress !important}.k-cursor-wait{cursor:wait}.\!k-cursor-wait{cursor:wait !important}.k-cursor-cell{cursor:cell}.\!k-cursor-cell{cursor:cell !important}.k-cursor-crosshair{cursor:crosshair}.\!k-cursor-crosshair{cursor:crosshair !important}.k-cursor-text{cursor:text}.\!k-cursor-text{cursor:text !important}.k-cursor-vertical-text{cursor:vertical-text}.\!k-cursor-vertical-text{cursor:vertical-text !important}.k-cursor-alias{cursor:alias}.\!k-cursor-alias{cursor:alias !important}.k-cursor-copy{cursor:copy}.\!k-cursor-copy{cursor:copy !important}.k-cursor-move{cursor:move}.\!k-cursor-move{cursor:move !important}.k-cursor-no-drop{cursor:no-drop}.\!k-cursor-no-drop{cursor:no-drop !important}.k-cursor-not-allowed{cursor:not-allowed}.\!k-cursor-not-allowed{cursor:not-allowed !important}.k-cursor-e-resize{cursor:e-resize}.\!k-cursor-e-resize{cursor:e-resize !important}.k-cursor-n-resize{cursor:n-resize}.\!k-cursor-n-resize{cursor:n-resize !important}.k-cursor-ne-resize{cursor:ne-resize}.\!k-cursor-ne-resize{cursor:ne-resize !important}.k-cursor-nw-resize{cursor:nw-resize}.\!k-cursor-nw-resize{cursor:nw-resize !important}.k-cursor-s-resize{cursor:s-resize}.\!k-cursor-s-resize{cursor:s-resize !important}.k-cursor-se-resize{cursor:se-resize}.\!k-cursor-se-resize{cursor:se-resize !important}.k-cursor-sw-resize{cursor:sw-resize}.\!k-cursor-sw-resize{cursor:sw-resize !important}.k-cursor-w-resize{cursor:w-resize}.\!k-cursor-w-resize{cursor:w-resize !important}.k-cursor-ew-resize{cursor:ew-resize}.\!k-cursor-ew-resize{cursor:ew-resize !important}.k-cursor-ns-resize{cursor:ns-resize}.\!k-cursor-ns-resize{cursor:ns-resize !important}.k-cursor-nesw-resize{cursor:nesw-resize}.\!k-cursor-nesw-resize{cursor:nesw-resize !important}.k-cursor-nwse-resize{cursor:nwse-resize}.\!k-cursor-nwse-resize{cursor:nwse-resize !important}.k-cursor-col-resize{cursor:col-resize}.\!k-cursor-col-resize{cursor:col-resize !important}.k-cursor-row-resize{cursor:row-resize}.\!k-cursor-row-resize{cursor:row-resize !important}.k-cursor-all-scroll{cursor:all-scroll}.\!k-cursor-all-scroll{cursor:all-scroll !important}.k-cursor-zoom-in{cursor:zoom-in}.\!k-cursor-zoom-in{cursor:zoom-in !important}.k-cursor-zoom-out{cursor:zoom-out}.\!k-cursor-zoom-out{cursor:zoom-out !important}.k-cursor-grab{cursor:grab}.\!k-cursor-grab{cursor:grab !important}.k-cursor-grabbing{cursor:grabbing}.\!k-cursor-grabbing{cursor:grabbing !important}.k-listview{margin:0;padding:0;border-width:0;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-flow:column nowrap;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-listview-bordered{border-width:1px}.k-listview-header{border-width:0;border-style:solid;border-color:inherit}.k-listview-bordered>.k-listview-header{border-bottom-width:1px}.k-listview-content{margin:0;padding:0;outline:0;flex-grow:1;position:relative;overflow:auto}.k-listview-content::after{height:0;clear:both;display:block}.k-listview-content.k-d-flex::after,.k-listview-content.k-d-flex-row::after,.k-listview-content.k-d-flex-col::after,.k-listview-content.k-d-grid::after{display:none}.k-listview-content-padding-rectangle{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-listview-content-padding-square{padding:var(--kendo-spacing-1, 0.25rem)}.k-listview-item{padding:0;border-width:0;outline:0;border-style:solid;box-sizing:border-box;flex-shrink:0}.k-listview-item-padding-rectangle{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-listview-item-padding-rectangle .k-listview-link{margin-block:-var(--kendo-spacing-1, 0.25rem);margin-inline:-var(--kendo-spacing-1, 0.25rem);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-listview-item-padding-square{padding:var(--kendo-spacing-1, 0.25rem)}.k-listview-item-padding-square .k-listview-link{margin:-var(--kendo-spacing-1, 0.25rem);padding:var(--kendo-spacing-1, 0.25rem)}.k-listview-footer{border-width:0;border-style:solid;border-color:inherit}.k-listview-bordered>.k-listview-footer{border-top-width:1px}.k-listview-pager{border-width:0;border-color:inherit}.k-listview-bordered>.k-listview-pager-top{border-block-end-width:var(--kendo-listview-border-width, 1px)}.k-listview-bordered>.k-listview-pager-bottom{border-block-start-width:var(--kendo-listview-border-width, 1px)}.k-listview-borders-all .k-listview-item{border-width:1px}.k-listview-borders-horizontal .k-listview-item{border-top-width:1px}.k-listview-borders-horizontal .k-listview-item:first-child{border-top-width:0}.k-listview-borders-vertical .k-listview-item{border-left-width:1px}.k-listview-borders-vertical .k-listview-item:first-child{border-left-width:0}.k-listview{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-listview-content>.k-focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-listview-content>.k-selected{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-listview-item{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-chart-wizard .k-icon-text-wrapper{display:flex;align-items:center;gap:var(--kendo-spacing-3, 0.75rem)}.k-chart-wizard .k-icon-background-area{display:flex;padding:var(--kendo-spacing-4, 1rem);border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-chart-types-wrapper{display:flex;flex-direction:column;gap:var(--kendo-spacing-4, 1rem)}.k-chart-wizard-splitter{height:100%}.k-chart-wizard-splitter .k-tabstrip{width:100%;height:100%}.k-chart-wizard-preview-pane{padding:var(--kendo-spacing-4, 1rem)}.k-chart-wizard-property-pane{padding:var(--kendo-spacing-4, 1rem)}.k-chart-wizard .k-icon-text-wrapper.k-selected{color:var(--kendo-color-primary, #1274AC)}.k-chart-wizard .k-icon-text-wrapper.k-selected .k-icon-background-area{box-shadow:inset 0 0 0 1px var(--kendo-color-primary, #1274AC)}.k-chart-wizard .k-icon-text-wrapper:hover,.k-chart-wizard .k-icon-text-wrapper.k-hover{cursor:pointer}.k-chart-wizard .k-icon-text-wrapper:focus .k-icon-background-area,.k-chart-wizard .k-icon-text-wrapper.k-focus .k-icon-background-area{box-shadow:inset 0 0 0 1px var(--kendo-color-primary-emphasis, #4d97c1)}.k-chart-wizard .k-icon-background-area{color:var(--kendo-color-primary, #1274AC);background-color:var(--kendo-color-primary-subtle, #d0e3ee)}.k-spreadsheet{width:100%;height:600px;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;cursor:default;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-spreadsheet .k-vertical-align-center{position:relative;top:50%;transform:translateY(-50%)}.k-spreadsheet .k-vertical-align-bottom{position:relative;top:100%;transform:translateY(-100%)}.k-spreadsheet-toolbar{border-top-width:0;border-inline-width:0}.k-spreadsheet-action-bar{border-width:0 0 1px;border-style:solid;border-color:inherit;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);font-size:var(--kendo-font-size, inherit);font-family:Arial,Verdana,sans-serif;position:relative;display:flex;flex-direction:row;gap:var(--kendo-spacing-2, 0.5rem)}.k-spreadsheet-name-editor{width:10em}.k-spreadsheet-formula-bar{min-width:0px;border-color:inherit;display:flex;flex-direction:row;align-items:center;flex:1;gap:var(--kendo-spacing-2, 0.5rem)}.k-spreadsheet-formula-bar>.k-icon{padding-block:0;padding-inline:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box;border-width:0 1px 0 0;border-style:solid;border-color:inherit;flex-shrink:0}.k-spreadsheet-formula-bar .k-tooltip,.k-spreadsheet-formula-bar .k-group-header,.k-spreadsheet-formula-bar .k-list-scroller{display:none}.k-spreadsheet-formula-bar .k-spreadsheet-formula-input{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);line-height:var(--kendo-line-height, normal);display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-spreadsheet-formula-bar .k-spreadsheet-formula-input.k-spreadsheet-array-formula::before{content:"{";font-weight:700}.k-spreadsheet-formula-bar .k-spreadsheet-formula-input.k-spreadsheet-array-formula::after{content:"}";font-weight:700}.k-spreadsheet-formula-input{outline:0;white-space:pre;flex:1;box-sizing:border-box}.k-spreadsheet-formula-input>.k-syntax-func.k-syntax-at-point,.k-spreadsheet-formula-input>.k-syntax-bool.k-syntax-at-point,.k-spreadsheet-formula-input>.k-syntax-ref.k-syntax-at-point,.k-spreadsheet-formula-input>.k-syntax-str.k-syntax-at-point,.k-spreadsheet-formula-input>.k-syntax-num.k-syntax-at-point{text-decoration:underline}.k-spreadsheet-formula-input>.k-series-a,.k-spreadsheet-formula-input>.k-series-b,.k-spreadsheet-formula-input>.k-series-c,.k-spreadsheet-formula-input>.k-series-d{background-color:rgba(0,0,0,0)}.k-spreadsheet-formula-list{min-width:100px}.k-spreadsheet-formula-list .k-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-syntax-func,.k-syntax-startexp{font-weight:bold}.k-spreadsheet-cell-editor{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-1, 0.25rem);line-height:20px;display:none;overflow:hidden;position:absolute;z-index:100}.k-spreadsheet-sheets-bar{padding-block-end:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px 0 0;border-style:solid;border-color:inherit;display:flex;flex-direction:row;align-items:center;position:relative}.k-spreadsheet-sheets{flex:1 1 auto;overflow:hidden}.k-spreadsheet-sheets .k-tabstrip-items-wrapper{border-width:0}.k-spreadsheet-sheets-bar-add{align-self:center}.k-spreadsheet-sheets-bar-add:not(:hover){border-color:rgba(0,0,0,0);color:inherit;background:none}.k-spreadsheet-sheets-items{flex:1;overflow:hidden}.k-spreadsheet-sheets-items .k-tabstrip-items-wrapper{margin:0;border-width:0}.k-spreadsheet-sheets-items .k-item .k-link{display:inline-block}.k-spreadsheet-sheets-items .k-item .k-spreadsheet-sheets-remove{margin-right:var(--kendo-spacing-2, 0.5rem);margin-left:calc(var(--kendo-spacing-2, 0.5rem)*-1);padding:0;line-height:1;display:inline-flex;flex-direction:row;vertical-align:middle;align-self:center}.k-spreadsheet-view{height:auto !important;border-color:inherit;font-size:var(--kendo-font-size, inherit);font-family:Arial,Verdana,sans-serif;flex:1;position:relative;overflow:hidden}.k-spreadsheet-view .k-disabled{pointer-events:auto}.k-spreadsheet-fixed-container{width:calc(100% - var(--kendo-scrollbar-width, 17px));height:calc(100% - var(--kendo-scrollbar-width, 17px));border-color:inherit;box-sizing:border-box;-webkit-user-select:none;user-select:none;position:absolute;z-index:2;overflow:hidden}.k-spreadsheet-overflow{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;border-color:inherit}.k-spreadsheet-pane{padding:0 1px 0 0;border-width:2px 0 0 2px;border-style:solid;border-color:inherit;box-sizing:border-box;position:absolute;overflow:hidden}.k-spreadsheet-pane.k-top{border-top-width:0}.k-spreadsheet-pane.k-left{border-left-width:0}.k-spreadsheet-top-corner{border-width:0 1px 1px 0;border-style:solid;box-sizing:border-box;position:absolute;top:0;left:0;z-index:10000}.k-spreadsheet-top-corner::after{content:"";display:block;width:0;height:0;overflow:hidden;position:absolute;bottom:0;right:0;border:6px solid rgba(0,0,0,0);border-right-color:inherit;border-bottom-color:inherit}.k-spreadsheet-scroller{width:100%;height:100%;overflow:scroll;position:absolute;z-index:1}@media(hover: none),(pointer: coarse){.k-spreadsheet-scroller{z-index:3}}.k-spreadsheet-haxis,.k-spreadsheet-vaxis{border:0 solid;border-color:inherit;position:absolute}.k-spreadsheet-haxis{border-width:1px 0 0;left:0}.k-spreadsheet-vaxis{border-width:0 0 0 1px;top:0}.k-spreadsheet-row-header,.k-spreadsheet-column-header{text-align:center;z-index:100}.k-spreadsheet-row-header>div,.k-spreadsheet-column-header>div{position:relative;box-sizing:border-box;border-width:0;border-style:solid;border-color:inherit}.k-spreadsheet-row-header>div::after,.k-spreadsheet-column-header>div::after{content:"";border-width:0;border-style:solid;border-color:inherit;display:none;position:absolute;top:0;right:0;bottom:0;left:0}.k-spreadsheet-row-header{position:relative}.k-spreadsheet-column-header{position:absolute}.k-spreadsheet-row-header>div{border-top-width:1px}.k-spreadsheet-row-header>div:first-child{border-top-width:0}.k-spreadsheet-row-header>.k-selection-partial::after,.k-spreadsheet-row-header>.k-selection-full::after{border-right-width:2px;display:block}.k-spreadsheet-column-header>div{border-left-width:1px}.k-spreadsheet-column-header>div:first-child{border-left-width:0}.k-spreadsheet-column-header>.k-selection-partial::after,.k-spreadsheet-column-header>.k-selection-full::after{border-bottom-width:2px;display:block}.k-spreadsheet-data{border-color:inherit;cursor:cell;position:relative}.k-spreadsheet-cell{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);box-sizing:border-box;position:absolute;line-height:normal;white-space:pre;overflow:hidden}.k-spreadsheet-merged-cells-wrapper{position:relative}.k-spreadsheet-disabled-mask{position:absolute}.k-spreadsheet .k-selection-wrapper{position:relative;cursor:cell}.k-spreadsheet .k-spreadsheet-selection{border-width:1px;border-style:solid;box-sizing:border-box;position:absolute}.k-spreadsheet .k-spreadsheet-selection-highlight{border-width:2px;border-style:dashed;box-sizing:border-box;position:absolute}.k-spreadsheet .k-spreadsheet-editor-button{position:absolute;padding:0;z-index:60}.k-spreadsheet-active-cell{outline-color:rgba(0,0,0,0) !important;z-index:10}.k-spreadsheet .k-auto-fill-wrapper{position:relative}.k-spreadsheet .k-auto-fill,.k-spreadsheet .k-auto-fill-punch,.k-spreadsheet .k-auto-fill-br-hint{box-sizing:border-box;position:absolute}.k-spreadsheet .k-auto-fill{border-width:1px;border-style:solid;cursor:crosshair}.k-spreadsheet .k-single-selection::after{content:"";margin-bottom:-4px;margin-right:-4px;width:6px;height:6px;border-width:1px;border-style:solid;border-radius:50%;display:block;position:absolute;bottom:0;right:0;z-index:300;cursor:crosshair}.k-spreadsheet .k-selection-full::after,.k-spreadsheet .k-selection-partial::after{display:none}.k-spreadsheet .k-autofill-wrapper{position:relative;cursor:cell}.k-spreadsheet-vborder{position:absolute;border-left-style:solid;border-left-width:1px}.k-spreadsheet-hborder{position:absolute;border-top-style:solid;border-top-width:1px}.k-spreadsheet-has-comment::after{content:"";display:block;position:absolute;top:0;inset-inline-end:0;inset-inline-start:auto;border-width:3px;border-style:solid}.k-spreadsheet-cell .k-dirty{inset-inline-start:0;inset-inline-end:auto}.k-spreadsheet .k-filter-wrapper{position:relative;z-index:50}.k-spreadsheet .k-filter-range{border-width:2px;border-style:solid;position:absolute;box-sizing:border-box;pointer-events:none}.k-spreadsheet-filter{border-radius:var(--kendo-border-radius-md, 0.25rem);padding:var(--kendo-spacing-1, 0.25rem);line-height:1;position:absolute;cursor:pointer}.k-spreadsheet-filter .k-icon{vertical-align:middle}.k-spreadsheet-filter-menu{width:280px}.k-spreadsheet-filter-menu .k-animation-container{position:relative}.k-spreadsheet-filter-menu>.k-menu,.k-spreadsheet-filter-menu>.k-menu.k-menu-vertical{border-width:0}.k-spreadsheet-filter-menu>.k-menu .k-item,.k-spreadsheet-filter-menu>.k-menu.k-menu-vertical .k-item{color:inherit}.k-spreadsheet-filter-menu>.k-menu .k-link,.k-spreadsheet-filter-menu>.k-menu.k-menu-vertical .k-link{padding-left:calc(16px + var(--kendo-spacing-1, 0.25rem)*2)}.k-spreadsheet-filter-menu>.k-menu .k-icon,.k-spreadsheet-filter-menu>.k-menu.k-menu-vertical .k-icon{margin:0 var(--kendo-spacing-1, 0.25rem) 0 calc((16px + var(--kendo-spacing-1, 0.25rem))*-1)}.k-spreadsheet-filter-menu .k-spreadsheet-value-treeview-wrapper{height:200px;border-width:1px;border-style:solid;overflow-y:scroll;overflow-x:auto}.k-spreadsheet-filter-menu .k-spreadsheet-value-treeview-wrapper .k-treeview{padding:var(--kendo-spacing-1, 0.25rem);overflow:visible}.k-spreadsheet-filter-menu .k-details,.k-spreadsheet-filter-menu .k-expander{padding:0;border-width:1px 0 0;border-style:solid;border-color:inherit}.k-spreadsheet-filter-menu .k-expander{border:0;background:inherit}.k-spreadsheet-filter-menu .k-details-summary,.k-spreadsheet-filter-menu .k-columnmenu-item{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:flex;align-items:center;cursor:pointer}.k-spreadsheet-filter-menu .k-details-summary>.k-icon,.k-spreadsheet-filter-menu .k-details-summary>.k-expander-indicator,.k-spreadsheet-filter-menu .k-columnmenu-item>.k-icon,.k-spreadsheet-filter-menu .k-columnmenu-item>.k-expander-indicator{margin-right:var(--kendo-spacing-1, 0.25rem)}.k-spreadsheet-filter-menu .k-details-content,.k-spreadsheet-filter-menu .k-columnmenu-item-content{padding:var(--kendo-spacing-2, 0.5rem);display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-2, 0.5rem)}.k-spreadsheet-filter-menu .k-details-content .k-filter-and,.k-spreadsheet-filter-menu .k-columnmenu-item-content .k-filter-and{width:min-content;align-self:flex-start}.k-spreadsheet-filter-menu .k-actions,.k-spreadsheet-filter-menu .k-edit-buttons,.k-spreadsheet-filter-menu .k-action-buttons,.k-spreadsheet-filter-menu .k-columnmenu-actions,.k-spreadsheet-filter-menu .k-form-buttons{margin:0;padding:0}.k-spreadsheet-popup{padding:0}.k-spreadsheet-popup .k-separator{display:block}.k-spreadsheet-popup .k-reset-color,.k-spreadsheet-popup .k-custom-color{border-radius:0;width:100%;border-width:0;box-sizing:border-box;display:flex}.k-spreadsheet-popup .k-reset-color{border-bottom-width:1px}.k-spreadsheet-popup .k-custom-color{border-top-width:1px}.k-spreadsheet-popup .k-spreadsheet-border-type-palette{padding:var(--kendo-spacing-2, 0.5rem);display:grid;grid-template-columns:repeat(5, max-content);gap:var(--kendo-spacing-2, 0.5rem)}.k-spreadsheet-clipboard,.k-spreadsheet-clipboard-paste{margin:0;padding:0;width:1px;height:1px;border:0;opacity:0;position:absolute;top:0;left:0;overflow:hidden}.k-spreadsheet-window .k-external-dropzone{margin-block-end:var(--kendo-spacing-4, 1rem)}.k-spreadsheet-window .k-edit-form-container{width:auto;min-width:0}.k-spreadsheet-format-cells .k-spreadsheet-preview{margin-top:var(--kendo-spacing-2, 0.5rem);text-align:center}.k-spreadsheet-format-cells .k-list-scroller{margin-top:var(--kendo-spacing-2, 0.5rem);height:210px;border-width:1px;border-style:solid;border-color:inherit}.k-export-config{clear:both;position:relative}.k-export-config::after{content:"";clear:both;display:block}.k-export-config .k-edit-field{margin-left:5%;width:45%;float:left}.k-export-config .k-page-orientation{position:absolute;right:0;top:var(--kendo-spacing-2, 0.5rem)}.k-export-config .k-page-orientation .k-font-icon{font-size:6em}.k-export-config .k-page-orientation .k-svg-icon{width:6em;height:6em}.k-spreadsheet-insert-comment textarea{height:auto}.k-spreadsheet-insert-image-dialog{border-radius:var(--kendo-border-radius-md, 0.25rem);border-style:dashed;border-width:2px}.k-spreadsheet-insert-image-dialog label{display:flex;justify-content:center;min-width:100%;width:355px;height:230px;background-image:url(data:image/png;base64,[encoded data, 12488 characters]);background-size:auto 70%;background-position:50% 30%;background-repeat:no-repeat}.k-spreadsheet-insert-image-dialog label div{display:flex;align-self:flex-end;margin-bottom:var(--kendo-spacing-7\.5, 1.875rem);pointer-events:none}.k-spreadsheet-insert-image-dialog label input{display:none}.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image{background-size:auto 90%;background-position:50% 50%}.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image:hover div,.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image.k-hover div{margin:0;align-self:center;opacity:1}.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image div{opacity:0}.k-spreadsheet-drawing{position:absolute;box-sizing:border-box;z-index:101}.k-spreadsheet-drawing.k-spreadsheet-active-drawing{outline-style:solid;outline-width:2px}.k-spreadsheet-drawing .k-spreadsheet-drawing-image{position:absolute;top:0;left:0;width:100%;height:100%;background-position:50% 50%;background-size:100% 100%;background-repeat:no-repeat;cursor:move}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle{width:6px;height:6px;border-style:solid;border-width:1px;border-radius:var(--kendo-border-radius-lg, 0.375rem);position:absolute;transform:translate(-50%, -50%)}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.N{left:50%;top:0;cursor:ns-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.NE{left:100%;top:0;cursor:nesw-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.E{left:100%;top:50%;cursor:ew-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.SE{left:100%;top:100%;cursor:nwse-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.S{left:50%;top:100%;cursor:ns-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.SW{left:0;top:100%;cursor:nesw-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.W{left:0;top:50%;cursor:ew-resize}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle.NW{left:0;top:0;cursor:nwse-resize}.k-spreadsheet-drawing .k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image:hover,.k-spreadsheet-drawing .k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image.k-hover{border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-spreadsheet-legacy .k-spreadsheet,.k-spreadsheet-legacy .k-spreadsheet-action-bar,.k-spreadsheet-legacy .k-spreadsheet-view{font-size:12px}.k-spreadsheet-legacy .k-spreadsheet-cell{padding:1px}.k-spreadsheet-legacy .k-spreadsheet-filter{padding:0px}.k-spreadsheet-legacy .k-filter-range{border-width:1px}.k-spreadsheet-legacy .k-spreadsheet .k-spreadsheet-selection-highlight{border-width:1px;border-style:solid}.k-spreadsheet .k-tabstrip-wrapper{border-width:0 0 1px;border-style:solid;border-color:inherit;position:relative}.k-spreadsheet-quick-access-toolbar{padding:var(--kendo-spacing-2, 0.5rem);display:inline-flex;flex-direction:row;position:absolute;z-index:2;top:0;left:0}.k-spreadsheet-tabstrip{padding-top:var(--kendo-spacing-2, 0.5rem);position:relative;z-index:1}.k-spreadsheet-tabstrip .k-tabstrip-items-wrapper{margin:0}.k-spreadsheet-tabstrip .k-loading{display:none}.k-spreadsheet-tabstrip .k-content,.k-spreadsheet-tabstrip .k-tabstrip-content{border-radius:0;padding:0;border-width:0;overflow:hidden}.k-spreadsheet{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-spreadsheet-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-spreadsheet-top-corner,.k-spreadsheet-row-header,.k-spreadsheet-column-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-spreadsheet-cell-editor{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-spreadsheet-merged-cell{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-spreadsheet-disabled-mask{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-spreadsheet .k-selection-full,.k-spreadsheet .k-selection-partial{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-spreadsheet-selection{border-color:var(--kendo-color-primary, #1274AC);background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent);box-shadow:inset 0 0 0 1px var(--kendo-color-primary, #1274AC)}.k-spreadsheet-selection-highlight{border-color:var(--kendo-color-primary, #1274AC)}.k-spreadsheet .k-single-selection::after{border-color:var(--kendo-color-surface-alt, #ffffff);background-color:var(--kendo-color-primary, #1274AC)}.k-spreadsheet-active-cell{background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:inset 0 0 0 1px var(--kendo-color-primary, #1274AC)}.k-spreadsheet .k-auto-fill{border-color:var(--kendo-color-primary, #1274AC);background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent);box-shadow:inset 0 0 0 1px var(--kendo-color-primary, #1274AC)}.k-spreadsheet .k-auto-fill-punch{background-color:rgba(var(--kendo-color-surface-alt, #ffffff), 0.5)}.k-spreadsheet .k-resize-handle,.k-spreadsheet .k-resize-hint-handle,.k-spreadsheet .k-resize-hint-marker{background-color:var(--kendo-color-primary, #1274AC)}.k-spreadsheet-has-comment::after{border-block-color:var(--kendo-color-primary, #1274AC) rgba(0,0,0,0);border-inline-color:rgba(0,0,0,0) var(--kendo-color-primary, #1274AC)}.k-spreadsheet-cell .k-dirty{border-block-color:var(--kendo-color-error, #D51923) rgba(0,0,0,0);border-inline-color:var(--kendo-color-error, #D51923) rgba(0,0,0,0)}.k-spreadsheet .k-filter-range{border-color:var(--kendo-color-primary, #1274AC)}.k-spreadsheet-filter{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base, #f5f5f5);box-shadow:inset 0 0 0 1px var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-spreadsheet-filter:hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-spreadsheet-filter.k-active{background-color:var(--kendo-color-base-active, #d8d8d8)}.k-spreadsheet-filter-menu>.k-menu .k-item:hover,.k-spreadsheet-filter-menu>.k-menu .k-item.k-hover,.k-spreadsheet-filter-menu>.k-menu:not(.k-context-menu) .k-item:hover,.k-spreadsheet-filter-menu>.k-menu:not(.k-context-menu) .k-item.k-hover{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-spreadsheet-filter-menu .k-spreadsheet-value-treeview-wrapper{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-spreadsheet-insert-image-dialog{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image:hover,.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image.k-hover{box-shadow:inset 0 0 0 2000px rgba(0,0,0,.5)}.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image:hover div,.k-spreadsheet-insert-image-dialog .k-spreadsheet-has-image.k-hover div{color:var(--kendo-color-surface-alt, #ffffff)}.k-spreadsheet-drawing.k-spreadsheet-active-drawing{outline-color:var(--kendo-color-primary, #1274AC)}.k-spreadsheet-drawing .k-spreadsheet-drawing-handle{border-color:var(--kendo-color-primary, #1274AC);background-color:var(--kendo-color-primary, #1274AC)}.k-spreadsheet-drawing-anchor-cell{background:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-syntax-ref{color:#f82}.k-syntax-num{color:#09f}.k-syntax-str{color:#38b714}.k-syntax-error{color:red}.k-syntax-bool{color:#a9169c}.k-syntax-paren-match{background-color:#caf200}.k-order-1{order:1}.\!k-order-1{order:1 !important}.k-order-2{order:2}.\!k-order-2{order:2 !important}.k-order-3{order:3}.\!k-order-3{order:3 !important}.k-order-4{order:4}.\!k-order-4{order:4 !important}.k-order-5{order:5}.\!k-order-5{order:5 !important}.k-order-6{order:6}.\!k-order-6{order:6 !important}.k-order-7{order:7}.\!k-order-7{order:7 !important}.k-order-8{order:8}.\!k-order-8{order:8 !important}.k-order-9{order:9}.\!k-order-9{order:9 !important}.k-order-10{order:10}.\!k-order-10{order:10 !important}.k-order-11{order:11}.\!k-order-11{order:11 !important}.k-order-12{order:12}.\!k-order-12{order:12 !important}.k-order-first{order:-9999}.\!k-order-first{order:-9999 !important}.k-order-last{order:9999}.\!k-order-last{order:9999 !important}.k-order-none{order:0}.\!k-order-none{order:0 !important}.k-pivotgrid{border-width:1px;border-style:solid;box-sizing:content-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);text-align:start;vertical-align:top;display:grid;grid-template-columns:300px auto;grid-template-rows:75px auto;position:relative}.k-pivotgrid table{margin:0;width:100%;max-width:none;border-width:0;border-color:inherit;border-collapse:separate;border-spacing:0;outline:0;text-align:inherit;empty-cells:show}.k-pivotgrid thead,.k-pivotgrid tbody,.k-pivotgrid th,.k-pivotgrid tr,.k-pivotgrid td{border-color:inherit;text-align:inherit}.k-pivotgrid-table{table-layout:fixed}.k-pivotgrid-table th{font-weight:400;text-transform:initial}.k-pivotgrid-table .k-pivotgrid-header-root{font-weight:600;text-transform:uppercase}.k-pivotgrid-empty-cell{border-right-style:solid;border-right-width:1px;border-bottom-style:solid;border-bottom-width:1px}.k-pivotgrid-empty-cell:focus{outline:none}.k-pivotgrid-column-headers{overflow:hidden}.k-pivotgrid-column-headers .k-pivotgrid-table{padding-inline-start:0;padding-inline-end:var(--kendo-scrollbar-width, 17px)}.k-pivotgrid-column-headers .k-pivotgrid-cell{border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px}.k-pivotgrid-column-headers .k-pivotgrid-cell:first-child{border-left-width:0}.k-pivotgrid-column-headers .k-pivotgrid-cell.k-first{border-left-width:1px}.k-pivotgrid-row-headers{overflow:hidden}.k-pivotgrid-row-headers .k-pivotgrid-table{padding-bottom:var(--kendo-scrollbar-width, 17px)}.k-pivotgrid-row-headers .k-pivotgrid-cell{border-right-style:solid;border-right-width:1px;border-bottom-style:solid;border-bottom-width:1px;white-space:nowrap}.k-pivotgrid-values{border-color:inherit;overflow:scroll}.k-pivotgrid-values .k-pivotgrid-cell{border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px}.k-pivotgrid-values .k-pivotgrid-cell:first-child{border-left-width:0}.k-pivotgrid-cell{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem);text-overflow:ellipsis;white-space:nowrap;vertical-align:top;overflow:hidden}.k-pivotgrid-cell:focus{outline:none}.k-pivotgrid-cell .k-icon{cursor:pointer;padding-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-pivotgrid-total{font-weight:600}.k-column-menu .k-treeview{padding-block:var(--kendo-spacing-0, 0px);padding-inline:calc(var(--kendo-spacing-4, 1rem)/2);overflow:auto}.k-pivotgrid-configurator{display:flex}.k-pivotgrid-configurator-panel{border-width:1px;border-style:solid;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;z-index:2}.k-pivotgrid-configurator-button{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border-width:1px;border-style:solid;box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none}.k-flex-row-reverse .k-pivotgrid-configurator-button>span{transform:rotate(-180deg)}.k-pivotgrid-configurator-overlay{position:absolute;overflow:hidden;z-index:2}.k-pivotgrid-configurator-header{padding-block:calc(var(--kendo-spacing-4, 1rem)*0.75);padding-inline:var(--kendo-spacing-4, 1rem);font-size:18px;font-weight:500;display:flex;flex-direction:row;align-items:center}.k-pivotgrid-configurator-header-text{word-break:normal;overflow-wrap:anywhere}.k-pivotgrid-configurator-content{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-4, 1rem);flex:1 1 auto;overflow:auto}.k-pivotgrid-configurator-content .k-form .k-label{font-size:16px;font-weight:500;align-items:flex-start}.k-pivotgrid-configurator-content .k-form .k-dropdown-list,.k-pivotgrid-configurator-content .k-form .k-dropdown,.k-pivotgrid-configurator-content .k-form .k-dropdownlist{max-width:90px}.k-pivotgrid-configurator-content .k-form .k-textbox{flex-basis:50%}.k-pivotgrid-configurator-content .k-row-fields,.k-pivotgrid-configurator-content .k-column-fields,.k-pivotgrid-configurator-content .k-filter-fields{margin-top:calc(var(--kendo-spacing-4, 1rem)/2);flex-wrap:wrap}.k-pivotgrid-configurator-content .k-value-fields{margin-block:calc(var(--kendo-spacing-4, 1rem)/2);margin-inline:var(--kendo-spacing-0, 0px);display:flex;flex-direction:column;gap:calc(var(--kendo-spacing-4, 1rem)/2)}.k-pivotgrid-configurator-content .k-select-all .k-checkbox{margin-inline-end:var(--kendo-spacing-1, 0.25rem)}.k-pivotgrid-configurator-content .k-fields-list-wrapper{max-height:200px;border-width:1px;border-style:solid;flex:1 1 auto;overflow-x:hidden;overflow-y:auto}.k-pivotgrid-configurator-content .k-settings-description{margin-top:var(--kendo-spacing-4, 1rem);text-align:center}.k-pivotgrid-configurator-content .k-treeview{padding-block:var(--kendo-spacing-0, 0px);padding-inline:calc(var(--kendo-spacing-4, 1rem)/2);overflow:auto}.k-calculated-field{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:1px;border-radius:var(--kendo-border-radius-md, 0.25rem);border-style:solid;box-sizing:border-box;display:flex;flex-direction:column;gap:var(--kendo-spacing-4, 1rem)}.k-calculated-field-header{display:flex;flex-direction:row;align-items:center}.k-calculated-field-header .k-textbox{min-width:200px}.k-calculated-field-header-text{margin-right:5px;word-break:normal;overflow-wrap:anywhere}.k-calculated-field-header-actions{flex-shrink:0;align-self:flex-start}.k-calculated-field-content .k-textbox{width:100%}.k-calculated-field-actions{display:flex;flex-direction:row;align-items:center}.k-calculated-field-actions .k-icon{margin-right:var(--kendo-spacing-2, 0.5rem)}.k-calculated-field-actions .k-dropdown-list,.k-calculated-field-actions .k-dropdown,.k-calculated-field-actions .k-dropdownlist{max-width:100px}.k-filter-menu .k-calculated-item{border-bottom-width:1px;border-bottom-style:solid}.k-pivotgrid-configurator-vertical{min-width:320px}.k-flex-row .k-pivotgrid-configurator-overlay,.k-d-flex-row .k-pivotgrid-configurator-overlay{right:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-flex-row-reverse .k-pivotgrid-configurator-overlay{left:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-flex-row .k-pivotgrid-configurator-button,.k-d-flex-row .k-pivotgrid-configurator-button,.k-flex-row-reverse .k-pivotgrid-configurator-button{display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl}.k-flex-row .k-pivotgrid-configurator-button .k-icon,.k-d-flex-row .k-pivotgrid-configurator-button .k-icon,.k-flex-row-reverse .k-pivotgrid-configurator-button .k-icon{vertical-align:baseline}.k-flex-row .k-pivotgrid-configurator-vertical.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel,.k-d-flex-row .k-pivotgrid-configurator-vertical.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel,.k-flex-row-reverse .k-pivotgrid-configurator-vertical.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel{border-right-width:0;border-left-width:0}.k-pivotgrid-configurator-horizontal{width:100%;height:420px}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-form{display:flex;flex-direction:row}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-form-field-wrapper{padding-left:var(--kendo-spacing-4, 1rem)}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-form-field-wrapper>*:first-child{margin-top:0}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-form-field-wrapper:first-child{padding-left:0;flex:1 1 30%}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-form-field-wrapper:nth-child(2){flex:1 1 30%}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-form-field-wrapper:last-child{border-left-width:1px;border-left-style:solid;flex:1 1 40%}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-row-fields,.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-column-fields,.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-filter-fields{max-height:100px;overflow-x:hidden;overflow-y:auto}.k-pivotgrid-configurator-horizontal .k-pivotgrid-configurator-content .k-value-fields{max-height:250px;flex-flow:row wrap;overflow-x:hidden;overflow-y:auto}.k-flex-col .k-pivotgrid-configurator-overlay,.k-d-flex-col .k-pivotgrid-configurator-overlay,.k-flex-column .k-pivotgrid-configurator-overlay{bottom:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-flex-col-reverse .k-pivotgrid-configurator-overlay,.k-flex-column-reverse .k-pivotgrid-configurator-overlay{top:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-flex-col .k-pivotgrid-configurator-button,.k-d-flex-col .k-pivotgrid-configurator-button,.k-flex-column .k-pivotgrid-configurator-button,.k-flex-col-reverse .k-pivotgrid-configurator-button,.k-flex-column-reverse .k-pivotgrid-configurator-button{text-align:center}.k-flex-col .k-pivotgrid-configurator-horizontal.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel,.k-d-flex-col .k-pivotgrid-configurator-horizontal.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel,.k-flex-column .k-pivotgrid-configurator-horizontal.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel,.k-flex-col-reverse .k-pivotgrid-configurator-horizontal.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel,.k-flex-column-reverse .k-pivotgrid-configurator-horizontal.k-pivotgrid-configurator-push .k-pivotgrid-configurator-panel{border-top-width:0;border-bottom-width:0}.k-pdf-export-shadow .k-pivotgrid{height:auto !important}.k-pdf-export-shadow .k-pivotgrid-values{height:auto;overflow:visible}.k-pdf-export-shadow .k-pivotgrid-column-headers .k-pivotgrid-table{padding-inline-end:0}.k-pivot{border-width:1px;border-style:solid;position:relative}.k-pivot .k-grid td{white-space:nowrap}.k-pivot .k-grid-content{flex:1 1 auto}.k-pivot-toolbar{border-width:0 0 1px;border-style:solid;align-items:flex-start;flex-wrap:wrap;box-shadow:none}.k-pivot-toolbar>*{max-width:100%}.k-pivot-toolbar::before{display:none}.k-pivot-layout{border-spacing:0;table-layout:auto}.k-pivot-layout .k-grid-footer,.k-pivot-layout .k-grid .k-table-alt-row{font-weight:bold}.k-pivot-layout>tbody,.k-pivot .k-table-td,.k-pivot td{vertical-align:top}.k-pivot-layout>tbody>tr>td{padding:0}.k-pivot-rowheaders>.k-grid,.k-pivot-table>.k-grid{border-width:0;color:inherit;background:none}.k-pivot-rowheaders>.k-grid td:first-child,.k-pivot-table .k-grid-header .k-header.k-first{border-left-width:1px}.k-pivot-rowheaders>.k-grid td.k-first{border-left-width:0}.k-pivot-rowheaders>.k-grid{overflow:hidden}.k-pivot-table{border-left-width:1px;border-left-style:solid}.k-pivot-table .k-grid-header-wrap{margin-right:-1px}.k-pivot-table .k-grid-header-wrap>table{height:100%}.k-pivot .k-grid-header .k-header{vertical-align:top}.k-pivot .k-grid tr .k-grid-footer{border-bottom-width:0}.k-pivot .k-grid tr:last-child:not(.k-grid-footer) td:not(.k-grid-footer){border-bottom-width:1px}.k-pivot-layout .k-grid td{border-bottom-width:1px}.k-pivot-layout .k-grid-footer>td{border-top-width:0}.k-pivot-filter-window .k-treeview{max-height:600px}.k-pivotgrid-wrapper{box-sizing:border-box;display:flex;flex-flow:row nowrap;align-items:flex-start;gap:var(--kendo-spacing-2, 0.5rem)}.k-pivotgrid-wrapper>.k-pivotgrid-configurator-panel{max-width:320px;flex:none}.k-pivotgrid-wrapper>.k-pivot{flex:1}.k-pivotgrid-configurator-panel.kendo-jquery{box-sizing:border-box;display:inline-flex}.k-pivotgrid-configurator-panel.kendo-jquery .k-pivotgrid-configurator{height:100%}.k-pivotgrid-configurator-panel.kendo-jquery .k-pivotgrid-configurator-content{padding:var(--kendo-spacing-4, 1rem);max-height:100%;display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-4, 1rem);overflow-x:hidden;overflow-y:auto}.k-pivotgrid-configurator-panel.kendo-jquery .k-pivotgrid-targets{display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-4, 1rem)}.k-pivotgrid-configurator-panel.kendo-jquery .k-pivotgrid-configurator-section{display:flex;flex-flow:column nowrap;gap:var(--kendo-spacing-2, 0.5rem)}.k-pivotgrid-configurator-panel.kendo-jquery .k-column-fields{margin:0;padding:var(--kendo-spacing-1, 0.25rem);max-height:200px;border-width:1px;border-style:solid;display:flex;flex-flow:row wrap;gap:var(--kendo-spacing-1, 0.25rem);overflow-x:hidden;overflow-y:auto}.k-pivotgrid-configurator-panel.kendo-jquery .k-column-fields>*{margin:0}.k-pivotgrid-toggle{margin-block:calc(var(--kendo-spacing-1, 0.25rem)*-1);padding:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box;cursor:pointer}.k-pivotgrid{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-pivotgrid-column-headers,.k-pivotgrid-row-headers,.k-pivotgrid-empty-cell{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-pivotgrid-empty-cell{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-pivotgrid-row-headers .k-pivotgrid-row .k-pivotgrid-cell:last-child{border-right-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-pivotgrid-column-headers .k-pivotgrid-column-total:nth-last-of-type(2) .k-pivotgrid-cell:not(.k-pivotgrid-expanded),.k-pivotgrid-column-headers .k-pivotgrid-row:last-child{border-bottom-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-pivotgrid-header-total,.k-pivotgrid-total{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-subtle, #ebebeb)}.k-pivotgrid-row-headers tbody>.k-pivotgrid-row:hover,.k-pivotgrid-row-headers tbody>.k-pivotgrid-row.k-hover,.k-pivotgrid-column-headers tbody>.k-pivotgrid-row:hover,.k-pivotgrid-column-headers tbody>.k-pivotgrid-row.k-hover,.k-pivotgrid-values tbody>.k-pivotgrid-row:hover,.k-pivotgrid-values tbody>.k-pivotgrid-row.k-hover{background-color:var(--kendo-color-base-hover, #ebebeb)}.k-pivotgrid-cell:focus,.k-pivotgrid-cell.k-focus,.k-pivotgrid-empty-cell:focus,.k-pivotgrid-empty-cell.k-focus,.k-master-row>.k-pivotgrid-cell:focus,.k-grouping-row>.k-pivotgrid-cell:focus,.k-detail-row>.k-pivotgrid-cell:focus,.k-group-footer>.k-pivotgrid-cell:focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}.k-pivotgrid-cell.k-selected,.k-pivotgrid-row.k-selected>.k-pivotgrid-cell{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-pivotgrid-configurator-button,.k-pivotgrid-configurator-panel{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-pivotgrid-configurator-header{color:var(--kendo-color-on-app-surface, #424242)}.k-pivotgrid-configurator-content .k-fields-list-wrapper{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-calculated-field{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-calculated-field-header{color:var(--kendo-color-on-app-surface, #424242)}.k-filter-menu .k-calculated-item{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-pivotgrid-configurator-content .k-form-field-wrapper{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-flex-row .k-pivotgrid-configurator-overlay,.k-d-flex-row .k-pivotgrid-configurator-overlay{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-flex-row-reverse .k-pivotgrid-configurator-overlay{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-flex-col .k-pivotgrid-configurator-overlay,.k-d-flex-col .k-pivotgrid-configurator-overlay,.k-flex-column .k-pivotgrid-configurator-overlay{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-flex-col-reverse .k-pivotgrid-configurator-overlay,.k-flex-column-reverse .k-pivotgrid-configurator-overlay{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-pivot{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-pivot-table{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-pivot-rowheaders{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-pivot-toolbar{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-pivot-toolbar .k-empty{color:var(--kendo-color-subtle, #666666)}.k-pivot .k-alt{background-color:var(--kendo-color-surface, #fafafa)}.k-pivot-toolbar,.k-pivot-table,.k-pivot-rowheaders>.k-grid td:first-child,.k-pivot-table .k-grid-header .k-header.k-first{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-header.k-alt{background-color:var(--kendo-color-base, #f5f5f5)}.k-pivot-layout .k-grid-footer{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-i-kpi-trend-increase,.k-i-kpi-trend-decrease,.k-i-kpi-trend-equal{color:inherit}.k-i-kpi-status-hold{color:var(--kendo-color-warning, #F5A600)}.k-i-kpi-status-deny{color:var(--kendo-color-error, #D51923)}.k-i-kpi-status-open{color:var(--kendo-color-success, #278200)}.k-pivotgrid-configurator-panel.kendo-jquery .k-column-fields{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-treelist.k-grid-display-block.k-grid-lockedcolumns{display:block}.k-treelist .k-status{padding-block:.4em;padding-inline:.6em;line-height:1.6em}.k-treelist .k-status .k-loading{vertical-align:baseline;margin-right:5px;display:none}.k-treelist tr.k-hidden{display:none}.k-treelist .k-treelist-dragging,.k-treelist .k-treelist-dragging .k-hover{cursor:default}.k-treelist .k-drop-hint{transform:translate(0, -50%)}.k-treelist .k-table-row.k-footer td,.k-treelist .k-table-row.k-footer-template td,.k-treelist .k-table-row.k-footer .k-table-td,.k-treelist .k-table-row.k-footer-template .k-table-td{border-width:1px 0;border-style:solid;font-weight:bold}.k-treelist .k-table-row.k-footer+.k-table-row.k-footer td,.k-treelist .k-table-row.k-footer+.k-table-row.k-footer .k-table-td{border-top-width:0}.k-treelist-scrollable>.k-table,.k-treelist-scrollable .k-grid-header .k-table-row,.k-treelist-scrollable .k-grid-header .k-table-th{background-color:inherit}.k-treelist-scrollable .k-grid-toolbar{position:sticky;z-index:3;top:0;left:0}.k-treelist-scrollable .k-grid-header .k-table-th{position:sticky;z-index:1}.k-treelist-scrollable .k-grid-header .k-table-th.k-grid-header-sticky{z-index:3}.k-treelist-scrollable thead.k-grid-header{padding-right:0}.k-treelist-scrollable .k-table-row.k-group-footer+.k-table-row.k-group-footer td{border-top-width:0}:is(.k-treelist-scrollable[dir=rtl],.k-rtl .k-treelist-scrollable) thead.k-grid-header{padding-left:0}.k-drag-separator{display:inline-block;border-right:1px solid;height:1em;vertical-align:top;margin-block:0;margin-inline:.5em}.k-treelist-toggle{margin-block:calc(var(--kendo-spacing-1, 0.25rem)*-1);padding:var(--kendo-spacing-1, 0.25rem);box-sizing:content-box;cursor:pointer}.k-treelist tr.k-footer,.k-treelist tr.k-footer-template{background-color:color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 11%, transparent)}.k-filter{box-sizing:border-box;border-width:0;display:inline-block;background-color:rgba(0,0,0,0)}.k-filter *,.k-filter *::before,.k-filter *::after{box-sizing:border-box}.k-filter ul{padding:0}.k-filter ul li{list-style-type:none}.k-filter .k-filter-container,.k-filter .k-filter-preview{margin-block-end:var(--kendo-spacing-7\.5, 1.875rem)}.k-filter .k-filter-lines,.k-filter .k-filter-item{padding-inline-start:var(--kendo-spacing-2, 0.5rem)}.k-filter .k-filter-toolbar{display:inline-flex;position:relative;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:0}.k-filter .k-filter-toolbar::before{content:"";position:absolute;width:var(--kendo-spacing-2, 0.5rem);height:1px;inset-block-start:50%;inset-inline-start:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-filter .k-filter-toolbar .k-toolbar{border-style:solid}.k-filter .k-filter-operator .k-dropdown-list,.k-filter .k-filter-operator .k-dropdown,.k-filter .k-filter-operator .k-dropdownlist{width:15em}.k-filter .k-filter-item{position:relative}.k-filter .k-filter-item::before{content:"";position:absolute;width:1px;height:100%;inset-block-start:calc(var(--kendo-spacing-1, 0.25rem)*-1);inset-inline-start:0}.k-filter .k-filter-lines .k-filter-item:last-child>.k-filter-toolbar::after,.k-filter .k-filter-lines .k-filter-item:last-child>*>.k-filter-toolbar::after{content:"";position:absolute;width:1px;inset-block-start:calc(var(--kendo-spacing-1, 0.25rem)*-1 - 1px);inset-block-end:50%;inset-inline-start:calc(var(--kendo-spacing-2, 0.5rem)*-1)}.k-filter .k-filter-group-main::before,.k-filter .k-filter-group-main>.k-filter-toolbar::before,.k-filter .k-filter-group-main>.k-filter-toolbar::after,.k-filter .k-filter-group-main>*>.k-filter-toolbar::before,.k-filter .k-filter-group-main>*>.k-filter-toolbar::after,.k-filter .k-filter-lines .k-filter-item:last-child::before{display:none}.k-filter{color:var(--kendo-color-on-app-surface, #424242)}.k-filter .k-filter-preview-field{color:var(--kendo-color-primary, #1274AC)}.k-filter .k-filter-preview-operator{color:var(--kendo-color-subtle, #666666)}.k-filter .k-filter-item::before,.k-filter .k-filter-toolbar::before,.k-filter .k-filter-lines .k-filter-item:last-child>.k-filter-toolbar::after,.k-filter .k-filter-lines .k-filter-item:last-child>*>.k-filter-toolbar::after{background-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-filter .k-toolbar:focus,.k-filter .k-toolbar.k-focus{box-shadow:0 0 0 2px rgba(0,0,0,.08)}.k-filemanager{border-width:1px;border-style:solid;box-sizing:border-box;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-flow:column nowrap}.k-filemanager-header{border-color:inherit}.k-filemanager-toolbar{border-width:0;border-bottom-width:1px;border-color:inherit;flex-shrink:0;z-index:1}.k-filemanager-content-container{border-color:inherit;box-sizing:border-box;flex:1 1 0%;display:flex;flex-flow:row nowrap;align-items:stretch;overflow:hidden}.k-filemanager-splitter{border-width:0}.k-filemanager-navigation{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);width:20%;border-width:0;border-right-width:1px;border-style:solid;border-color:inherit;box-sizing:border-box;flex-shrink:0;overflow:auto}.k-filemanager-treeview{overflow:visible}.k-filemanager-content{border-color:inherit;flex:1 1 0%;display:flex;flex-flow:column nowrap;align-items:stretch;overflow:hidden}.k-filemanager-view{overflow:auto}.k-filemanager-breadcrumb{border-width:0;border-bottom-width:1px;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);flex-shrink:0}.k-filemanager-listview{border-width:0;flex:1 1 0%}.k-filemanager-listview .k-listview-item{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);width:120px;height:120px;text-align:center}.k-filemanager-listview .k-file-preview{display:flex;flex-direction:row;justify-content:center}.k-filemanager-listview .k-file-name{margin-top:calc(var(--kendo-spacing-4, 1rem)/2);display:block;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-filemanager-listview .k-file-edit-input input{width:100%}.k-filemanager-grid{border-width:0;flex:1 1 0%}.k-filemanager-grid .k-file-preview{margin-right:var(--kendo-spacing-1, 0.25rem);display:inline-flex;flex-direction:row;vertical-align:middle}.k-filemanager-grid .k-file-name{display:inline-flex;flex-direction:row;vertical-align:middle}.k-filemanager-preview{padding:calc(var(--kendo-spacing-4, 1rem)*3) var(--kendo-spacing-4, 1rem) var(--kendo-spacing-4, 1rem);width:20%;min-height:calc(var(--kendo-spacing-4, 1rem)*4 + 96px + var(--kendo-spacing-4, 1rem)*3);border-width:0;border-left-width:1px;border-style:solid;border-color:inherit;box-sizing:border-box;text-align:center;overflow-y:auto;flex-shrink:0}.k-filemanager-preview .k-file-preview{display:flex;flex-direction:row;justify-content:center}.k-filemanager-preview .k-file-name{margin-top:var(--kendo-spacing-4, 1rem);display:block}.k-filemanager-preview .k-single-file-selected{font-weight:bold}.k-filemanager-preview .k-multiple-files-selected{font-weight:bold}.k-filemanager-preview .k-file-meta{margin:var(--kendo-spacing-4, 1rem) 0 0;box-sizing:border-box;text-align:start;display:flex;flex-flow:row wrap;grid-column-gap:var(--kendo-spacing-1, 0.25rem)}.k-filemanager-preview .k-file-meta-label{display:inline-block}.k-filemanager-preview .k-file-meta-value{margin:0}.k-filemanager-preview .k-file-type{text-transform:capitalize}.k-filemanager-preview .k-line-break{margin:var(--kendo-spacing-4, 1rem) 0 0;width:100%;flex:1 1 100%;flex-flow:row nowrap}.k-filemanager .k-splitbar{flex-shrink:0;display:inline-flex;position:relative;border-width:0 1px;border-style:solid;border-color:inherit}.k-filemanager-upload-dialog .k-upload-files{max-height:200px;overflow-y:auto}.k-filemanager-drag-hint{display:flex;flex-direction:row;align-items:center;gap:var(--kendo-spacing-1, 0.25rem)}.k-filemanager{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-filemanager-breadcrumb{background-color:var(--kendo-color-surface, #fafafa)}.k-filemanager-listview .k-listview-item .k-file-icon{color:var(--kendo-color-subtle, #666666)}.k-filemanager-listview .k-listview-item.k-selected .k-file-icon{border-color:rgba(0,0,0,0);color:inherit;background-color:rgba(0,0,0,0)}.k-filemanager-preview .k-file-icon{color:var(--kendo-color-subtle, #666666)}.k-taskboard{box-sizing:border-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;position:relative}.k-taskboard *,.k-taskboard *::before,.k-taskboard *::after{box-sizing:border-box}.k-taskboard-toolbar{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);border-width:0;box-shadow:none;background:none}.k-taskboard-content{padding:0 var(--kendo-spacing-4, 1rem) var(--kendo-spacing-4, 1rem);display:flex;position:relative;flex:1 1 auto;overflow-x:auto}.k-taskboard-columns-container{outline:none;display:flex;flex-direction:row;overflow:hidden;gap:var(--kendo-spacing-4, 1rem);overflow-x:visible}.k-taskboard-column{width:320px;border-width:1px;border-radius:var(--kendo-border-radius-md, 0.25rem);border-style:solid;outline:none;display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.k-taskboard-column-header{padding-block:calc(var(--kendo-spacing-4, 1rem)/2);padding-inline:calc(var(--kendo-spacing-4, 1rem)/2);font-weight:500;display:flex;flex-direction:row;align-items:center;gap:calc(var(--kendo-spacing-4, 1rem)/4)}.k-taskboard-column-header-actions{display:inline-flex;flex-shrink:0;align-self:flex-start;gap:calc(var(--kendo-spacing-4, 1rem)/2)}.k-taskboard-column-cards-container{margin-bottom:calc(var(--kendo-spacing-4, 1rem)/2);padding-block:var(--kendo-spacing-0, 0px);padding-inline:calc(var(--kendo-spacing-4, 1rem)/2);outline:none;overflow:auto;flex:1 1 auto}.k-taskboard-column-cards{min-height:100%;display:flex;flex-direction:column;gap:calc(var(--kendo-spacing-4, 1rem)/2) 0}.k-taskboard-column-new .k-taskboard-column-header,.k-taskboard-column-edit .k-taskboard-column-header{font-weight:inherit}.k-taskboard-column-new .k-taskboard-column-header-text,.k-taskboard-column-edit .k-taskboard-column-header-text{flex:1 1 100%}.k-taskboard-pane{width:320px;border-width:1px;border-style:solid;display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;overflow:hidden;z-index:2}.k-taskboard-pane-header{padding-block:calc(var(--kendo-spacing-4, 1rem)*0.75);padding-inline:var(--kendo-spacing-4, 1rem);font-weight:500;display:flex;flex-direction:row;align-items:center}.k-taskboard-pane-header-text{word-break:normal;overflow-wrap:anywhere}.k-taskboard-pane-header-actions{flex-shrink:0;align-self:flex-start}.k-taskboard-pane-content{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-4, 1rem);overflow:auto;flex:1 1 auto}.k-taskboard-pane-actions{padding-block:calc(var(--kendo-spacing-4, 1rem)*0.75);padding-inline:var(--kendo-spacing-4, 1rem)}.k-taskboard-pane-start{right:auto;left:0}.k-taskboard-card{border-radius:var(--kendo-border-radius-md, 0.25rem);border-width:1px}.k-taskboard-card.k-taskboard-card-category{border-inline-start-width:4px}.k-taskboard-card .k-card-header .k-card-body,.k-taskboard-card .k-card-footer{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-taskboard-card .k-card-header{align-items:center}.k-taskboard-card .k-card-title{font-size:inherit;font-weight:inherit;word-break:normal;overflow-wrap:anywhere}.k-taskboard-card .k-card-title:focus,.k-taskboard-card .k-card-title.k-focus,.k-taskboard-card .k-card-title:hover,.k-taskboard-card .k-card-title.k-hover{text-decoration:underline}.k-taskboard-card .k-card-header-actions{align-self:flex-start}.k-taskboard-drag-placeholder{border-radius:var(--kendo-border-radius-md, 0.25rem);border-width:1px;border-style:solid;position:relative}.k-taskboard-column{border-color:rgba(0,0,0,0);background-color:var(--kendo-color-surface, #fafafa)}.k-taskboard-column:focus,.k-taskboard-column.k-focus{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-taskboard-column-header{color:var(--kendo-color-on-app-surface, #424242)}.k-taskboard-pane{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-taskboard-pane-header{color:var(--kendo-color-on-app-surface, #424242)}.k-taskboard-card{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-taskboard-card .k-card-title{color:var(--kendo-color-primary, #1274AC)}.k-taskboard-card .k-card-title:focus,.k-taskboard-card .k-card-title.k-focus{color:var(--kendo-color-primary-hover, #116fa5)}.k-taskboard-card .k-card-title:hover,.k-taskboard-card .k-card-title.k-hover{color:var(--kendo-color-primary-hover, #116fa5)}.k-taskboard-card:focus,.k-taskboard-card.k-focus{box-shadow:none;border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-taskboard-card:hover,.k-taskboard-card.k-hover{border-color:var(--kendo-color-border-alt, rgba(0, 0, 0, 0.16))}.k-taskboard-card.k-selected{border-color:var(--kendo-color-primary-emphasis, #4d97c1);box-shadow:none}.k-taskboard-card.k-disabled{box-shadow:none}.k-taskboard-drag-placeholder{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:hsla(0,0%,100%,.2)}.k-editor{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-flow:column nowrap;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-editor.k-readonly .k-editor-content{pointer-events:auto}.k-editor.k-readonly .k-editor-content.k-focus{outline-width:1px;outline-style:dashed}.k-editor-inline{border-radius:var(--kendo-border-radius-md, 0.25rem);padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border:1px solid rgba(0,0,0,0);word-wrap:break-word;overflow:auto;background:none}.k-editor-resizable{resize:both;overflow:auto}.k-editor-resize-handles-wrapper{position:absolute;visibility:hidden}.k-editor-resize-wrap-element{display:inline-block;position:relative}.k-editor-resize-handle{width:8px;height:8px;border-width:1px;border-style:solid;box-sizing:border-box;position:absolute;visibility:visible;z-index:100}.k-editor-resize-handle.northwest{top:0;left:0;transform:translate(-50%, -50%);cursor:nw-resize}.k-editor-resize-handle.north{top:0;left:50%;transform:translate(-50%, -50%);cursor:n-resize}.k-editor-resize-handle.northeast{top:0;right:0;transform:translate(50%, -50%);cursor:ne-resize}.k-editor-resize-handle.southwest{left:0;bottom:0;transform:translate(-50%, 50%);cursor:sw-resize}.k-editor-resize-handle.south{bottom:0;left:50%;transform:translate(-50%, 50%);cursor:s-resize}.k-editor-resize-handle.southeast{right:0;bottom:0;transform:translate(50%, 50%);cursor:se-resize}.k-editor-resize-handle.west{top:50%;left:0;transform:translate(-50%, -50%);cursor:w-resize}.k-editor-resize-handle.east{top:50%;right:0;transform:translate(50%, -50%);cursor:e-resize}.ProseMirror-selectednode{outline-width:2px;outline-style:solid}.ProseMirror-hideselection{caret-color:rgba(0,0,0,0)}.ProseMirror-hideselection *::selection,.ProseMirror-hideselection *::-moz-selection{background:rgba(0,0,0,0)}.k-editor-toolbar{border-width:0 0 1px;flex-shrink:0}.k-editor-toolbar .k-editor-export .k-icon{margin-right:.25em}.k-editor-toolbar .k-editor-export .k-icon,.k-editor-toolbar .k-editor-export .k-export-tool-text{vertical-align:middle}.k-editor-content{flex:1 1 auto;overflow-y:auto}.k-editor-content>.k-iframe{width:100%;height:100%;border-width:0;display:block}.k-editor-content>.ProseMirror{padding:var(--kendo-spacing-2, 0.5rem);width:100%;height:100%;position:relative;box-sizing:border-box;outline:none;white-space:pre-wrap;overflow:auto}.k-editor-content>.ProseMirror table{white-space:pre-wrap}.k-editor-content>.ProseMirror .k-placeholder::before{content:attr(data-placeholder);height:0;color:var(--kendo-color-subtle, #666666);float:left;opacity:1;cursor:text;-webkit-user-select:none;user-select:none}.k-editor-content>.ProseMirror[contenteditable=false]{cursor:unset !important}.k-editor-content>.ProseMirror[contenteditable=false] .k-editor-resize-handles-wrapper,.k-editor-content>.ProseMirror[contenteditable=false] .k-editor-resize-handle,.k-editor-content>.ProseMirror[contenteditable=false] .row-resize-handle,.k-editor-content>.ProseMirror[contenteditable=false] .column-resize-handle{display:none}.k-editor-content>.ProseMirror[contenteditable=false] img,.k-editor-content>.ProseMirror[contenteditable=false] table{pointer-events:none}.k-editor-content>.ProseMirror[contenteditable=false] .ProseMirror-selectednode{outline:none}.k-editor-content p{margin:0 0 1rem}.k-editor-content td p,.k-editor-content th p,.k-editor-content li p{margin:0}.k-editor-content table{margin:0;border-collapse:collapse;table-layout:fixed;width:100%;overflow:hidden}.k-editor-content td,.k-editor-content th{min-width:1em;border:1px solid;padding-block:3px;padding-inline:5px;vertical-align:top;box-sizing:border-box;position:relative}.k-editor-content th{font-weight:bold;text-align:start}.k-editor-content td{text-align:start}.k-editor-content .selectedCell::after{z-index:2;position:absolute;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none}.k-edit-form-content{flex:1 1 auto;overflow:auto;margin-block:-var(--kendo-spacing-4, 1rem);margin-inline:-var(--kendo-spacing-4, 1rem);padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem)}.k-ct-popup{box-sizing:border-box;width:190px;padding:5px}.k-ct-popup .k-button{width:100%}.k-ct-popup .k-ct-cell{margin:1px;width:20px;height:20px;box-sizing:border-box;border:1px solid;border-color:inherit;display:inline-block;vertical-align:top;overflow:hidden;opacity:.7;pointer-events:all}.k-editor .k-resize-handle{position:absolute;right:0;bottom:0;padding:0;width:0;height:0;border-style:solid;border-width:0 0 13px 13px;border-color:rgba(0,0,0,0);border-bottom-color:inherit;cursor:se-resize}.k-editor .k-resize-handle .k-i-arrow-45-down-right,.k-editor .k-resize-handle .k-i-caret-br{display:none}.k-editor-find-replace .k-content{position:relative}.k-editor-find-replace .k-actions,.k-editor-find-replace .k-edit-buttons,.k-editor-find-replace .k-action-buttons,.k-editor-find-replace .k-columnmenu-actions,.k-editor-find-replace .k-form-buttons{padding:0}.k-editor-find-replace .k-search-options{display:flex;flex-direction:column;padding:10px 0 40px}.k-editor-find-replace .k-matches-container{position:absolute;bottom:0;left:0;right:0;padding:0;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.k-textarea.k-editor-textarea{width:100%;height:100%;resize:none}.k-filebrowser{max-width:100%}.k-filebrowser .k-floatwrap{display:flex}.k-filebrowser .k-floatwrap::after{display:none}.k-filebrowser .k-breadcrumbs{flex:1}.k-filebrowser .k-search-wrap{margin:0 0 0 var(--kendo-spacing-4, 1rem);width:150px;display:flex;align-items:center}.k-filebrowser .k-search-wrap .k-input{flex:1;width:100px}.k-filebrowser .k-search-wrap .k-icon{margin:0;position:static}.k-filebrowser .k-filebrowser-toolbar{margin:var(--kendo-spacing-4, 1rem) 0 0}.k-filebrowser .k-upload{padding:0;border-width:0;background:none}.k-filebrowser .k-upload .k-upload-button{margin:0}.k-filebrowser .k-upload .k-upload-status{display:none}.k-filebrowser .k-upload-files{display:none}.k-filebrowser .k-tiles{display:flex;flex-flow:row wrap;height:390px;max-height:50vh;margin:0 0 var(--kendo-spacing-4, 1rem);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-top-width:0;overflow:auto}.k-filebrowser .k-tile{width:33%;height:90px;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);box-sizing:border-box;white-space:nowrap;overflow:hidden;cursor:pointer;border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-filebrowser .k-tile .k-i-file,.k-filebrowser .k-tile .k-i-folder{font-size:4em}.k-filebrowser .k-tile input{width:100px}.k-filebrowser .k-tile strong{display:block;font-weight:400;overflow:hidden;text-overflow:ellipsis}.k-filebrowser .k-tile-empty{display:block;margin:auto}.k-filebrowser .k-tile-empty.k-selected{color:inherit;border-width:0;background-image:none;background-color:rgba(0,0,0,0)}.k-filebrowser .k-tile-empty strong{opacity:.5;font-size:3em;font-weight:400}.k-filebrowser .k-thumb{float:left;margin-right:var(--kendo-spacing-1, 0.25rem)}.k-filebrowser .k-breadcrumbs-wrap{position:absolute;left:var(--kendo-spacing-2, 0.5rem);top:var(--kendo-spacing-1, 0.25rem)}.k-filebrowser .k-breadcrumbs-wrap .k-icon{position:static;margin-top:0}.k-editor-table-wizard-window .k-tabstrip-wrapper{display:flex;flex:1 1 auto;overflow:auto}.k-editor-table-wizard-window .k-tabstrip-wrapper .k-tabstrip.k-root-tabs{flex:1 1 auto;margin-bottom:0}.k-editor-table-wizard-window .k-edit-field>.k-checkbox{position:relative}.k-editor-inline .k-table{width:100%;border-spacing:0;margin:0 0 1em}.k-editor-inline .k-table,.k-editor-inline .k-table td{outline:0;border-width:1px;border-style:dotted}.k-editor-inline .k-table td{min-width:1px;padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-editor-inline .k-element-resize-handle-wrapper{position:absolute;width:5px;height:5px;border-width:1px;border-style:solid;z-index:100}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle{width:100%;height:100%}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-east{cursor:e-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-north{cursor:n-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-northeast{cursor:ne-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-northwest{cursor:nw-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-south{cursor:s-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-southeast{cursor:se-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-southwest{cursor:sw-resize}.k-editor-inline .k-element-resize-handle-wrapper .k-element-resize-handle.k-resize-west{cursor:w-resize}.k-editor-inline .k-column-resize-handle-wrapper{position:absolute;height:10px;width:10px;cursor:col-resize;z-index:2}.k-editor-inline .k-column-resize-handle-wrapper .k-column-resize-handle{width:100%;height:100%}.k-editor-inline .k-column-resize-handle-wrapper .k-column-resize-handle .k-column-resize-marker{width:2px;height:100%;margin-block:0;margin-inline:auto;display:none;opacity:.8}.k-editor-inline .k-row-resize-handle-wrapper{position:absolute;z-index:2;cursor:row-resize;width:10px;height:10px}.k-editor-inline .k-row-resize-handle-wrapper .k-row-resize-handle{display:table;width:100%;height:100%}.k-editor-inline .k-row-resize-handle-wrapper .k-row-resize-marker-wrapper{display:table-cell;width:100%;height:100%;margin:0;padding:0;vertical-align:middle}.k-editor-inline .k-row-resize-handle-wrapper .k-row-resize-marker{display:none;margin:0;padding:0;width:100%;height:2px;opacity:.8}.k-editor{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-editor.k-readonly .k-editor-content.k-focus{outline-color:var(--kendo-color-on-app-surface, #424242)}.k-editor-inline .k-table,.k-editor-inline .k-table td{border-color:#ccc}.k-editor-inline .k-element-resize-handle-wrapper{background-color:#fff;border-color:#000}.k-editor-inline .k-column-resize-handle-wrapper .k-column-resize-handle .k-column-resize-marker{background-color:#00b0ff}.k-editor-inline .k-row-resize-handle-wrapper .k-row-resize-marker{background-color:#00b0ff}.k-editor-inline:hover,.k-editor-inline.k-hover,.k-editor-inline.k-active{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-editor-resize-handle{background-color:#fff;border-color:#000}.ProseMirror-selectednode{outline-color:#8cf}.k-ct-popup .k-selected{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC);background-image:none}.k-editor-content .k-text-selected,.k-editor-content::selection{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-editor-content .k-text-highlighted{background-color:var(--kendo-color-primary-subtle, #d0e3ee)}.k-editor-content td,.k-editor-content th{border-color:#ddd}.k-editor-content .selectedCell::after{background-color:rgba(200,200,255,.4)}.k-imageeditor{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-imageeditor *,.k-imageeditor *::before,.k-imageeditor *::after{box-sizing:border-box}.k-imageeditor-toolbar{border-width:0;border-bottom-width:1px}.k-imageeditor-content{border-width:0;border-style:solid;border-color:inherit;display:flex;flex-flow:row nowrap}.k-imageeditor-canvas-container{flex:1 1 100%;display:flex;flex-flow:row nowrap;overflow:auto}.k-imageeditor-canvas{margin:auto;display:flex;flex-direction:column;position:relative}.k-imageeditor-action-pane{padding-block:var(--kendo-spacing-8, 2rem);padding-inline:var(--kendo-spacing-4, 1rem);width:241px;border-width:0;border-left-width:1px;border-style:solid;border-color:inherit;box-sizing:border-box;flex:none;overflow-y:auto}.k-imageeditor-action-pane .k-input-inner,.k-imageeditor-action-pane .k-input-value-text{text-overflow:clip}.k-imageeditor-crop-overlay{width:100%;height:100%;position:absolute;top:0;left:0}.k-imageeditor-crop{width:100%;height:100%;border-width:1px;border-style:dashed;box-sizing:border-box;position:absolute}.k-imageeditor-crop .k-resize-handle{margin-block:var(--kendo-spacing-1px, 1px);margin-inline:var(--kendo-spacing-1px, 1px);border-style:solid;border-width:0 2px 2px 0}.k-imageeditor-crop .k-resize-sw,.k-imageeditor-crop .k-resize-se,.k-imageeditor-crop .k-resize-nw,.k-imageeditor-crop .k-resize-ne{width:15px;height:15px}.k-imageeditor-crop .k-resize-n,.k-imageeditor-crop .k-resize-s{left:calc(50% - 7.5px);width:15px;height:0}.k-imageeditor-crop .k-resize-w,.k-imageeditor-crop .k-resize-e{top:calc(50% - 7.5px);width:0;height:15px}.k-imageeditor-crop .k-resize-ne{transform:rotate(-90deg)}.k-imageeditor-crop .k-resize-nw{transform:rotate(-180deg)}.k-imageeditor-crop .k-resize-sw{transform:rotate(90deg)}.k-imageeditor-crop .k-resize-n{top:0}.k-imageeditor-crop .k-resize-s{bottom:0}.k-imageeditor-crop .k-resize-w{left:0}.k-imageeditor-crop .k-resize-e{right:0}.k-imageeditor{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-imageeditor-content{background-color:#c6c6c6}.k-imageeditor-canvas{background:linear-gradient(45deg, rgba(0, 0, 0, 0.09) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.09) 75%, rgba(0, 0, 0, 0.09)),linear-gradient(45deg, rgba(0, 0, 0, 0.09) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.09) 75%, rgba(0, 0, 0, 0.09)),#fff;background-repeat:repeat,repeat;background-position:0px 0px,5px 5px;transform-origin:0 0 0;background-origin:padding-box,padding-box;background-size:10px 10px,10px 10px;box-shadow:none;text-shadow:none;transition:none;transform:scaleX(1) scaleY(1) scaleZ(1)}.k-imageeditor-action-pane{background-color:var(--kendo-color-surface, #fafafa)}.k-imageeditor-crop{border-color:#fff}.k-imageeditor-crop-overlay{background-color:rgba(0,0,0,.3)}.k-gantt{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-flow:column nowrap;position:relative;white-space:nowrap;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-gantt .k-table-td{white-space:nowrap}.k-gantt td{overflow:hidden;white-space:nowrap;vertical-align:top}.k-gantt .k-grid-header tr{height:calc(1.4285714286em + var(--kendo-spacing-2, 0.5rem)*2 + 1px)}.k-gantt .k-grid-header .k-header{position:static}.k-gantt .k-treelist .k-grid-header .k-header{position:relative}.k-gantt .k-grid-content tr{height:calc(1.4285714286em + var(--kendo-spacing-2, 0.5rem)*2)}.k-gantt.k-gantt-planned .k-grid-content tr{height:calc(2.4285714286em + var(--kendo-spacing-2, 0.5rem)*2)}.k-gantt .k-gantt-layout{white-space:normal;vertical-align:top;display:inline-block}.k-gantt .k-splitbar{position:relative;display:inline-flex}.k-gantt .k-gantt-splitter{border-width:0}.k-gantt .k-treelist-scrollable{width:100%;border-width:0;overflow:auto}.k-gantt .k-treelist-scrollable .k-grid-header .k-header{position:sticky}.k-gantt .k-treelist-scrollable .k-grid-header th,.k-gantt .k-treelist-scrollable .k-grid-content-sticky{z-index:4}.k-gantt .k-treelist-scrollable .k-grid-header th.k-grid-header-sticky{z-index:5}.k-gantt .k-treelist-scrollable .k-grid-header tr:first-child th:last-child,.k-gantt .k-treelist-scrollable tbody td:last-child{padding:0;vertical-align:top}.k-gantt .k-treelist-scrollable .k-grid-header th:last-child .k-header{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem);border-width:0 0 1px 1px;white-space:nowrap}.k-gantt .k-treelist-scrollable tr.k-selected>td:last-child{background:rgba(0,0,0,0)}.k-gantt .k-treelist-scrollable .k-task{display:inline-flex;flex-flow:row nowrap;white-space:nowrap;z-index:3}.k-gantt .k-treelist-scrollable .k-task:hover .k-task-start,.k-gantt .k-treelist-scrollable .k-task:hover .k-task-end{display:block}.k-gantt .k-treelist-scrollable .k-task:hover .k-task-draghandle{visibility:visible}.k-gantt .k-treelist-scrollable .k-task-content{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);display:block;line-height:normal;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-gantt .k-treelist-scrollable .k-task-actions{flex-shrink:0}.k-gantt .k-treelist-scrollable .k-task-milestone{border:0;transform:none;background:none}.k-gantt .k-treelist-scrollable .k-task-milestone .k-task-milestone-content{width:100%;height:100%;border-width:1px;border-style:solid;box-sizing:border-box;transform:rotate(45deg)}.k-gantt .k-treelist-scrollable .k-task-summary{height:15px;clip-path:polygon(-20px 0, calc(100% + 20px) 0, calc(100% + 20px) 100%, 100% 100%, calc(100% - 8px) calc(100% - 5px), 8px calc(100% - 5px), 0 100%, -20px 100%)}.k-gantt .k-treelist-scrollable .k-task-summary-complete{width:100%;height:15px}.k-gantt .k-treelist-scrollable .k-task-start{transform:translateX(-140%) translateY(-50%)}.k-gantt .k-treelist-scrollable .k-task-end{transform:translateX(140%) translateY(-50%)}.k-gantt .k-treelist-scrollable .k-master-row:hover .k-task-dot{display:block}.k-gantt .k-treelist-scrollable .k-gantt-columns{background:rgba(0,0,0,0);pointer-events:none;table-layout:fixed}.k-gantt .k-gantt-dependencies-svg{position:absolute;top:0;left:0;overflow:visible;pointer-events:none;z-index:2}.k-gantt .k-gantt-dependencies-svg polyline{stroke-width:2px}.k-gantt-header{border-width:0 0 1px;flex-shrink:0;z-index:6}.k-gantt-footer{border-width:1px 0 0;flex-shrink:0}.k-gantt-toggle{display:none}.k-gantt-views-wrapper{margin-left:auto}.k-gantt-views-wrapper .k-views-dropdown{width:auto;font-size:inherit;display:none;cursor:pointer}@media(max-width: 480px){.k-gantt-toolbar .k-gantt-toggle{display:inline-flex}.k-gantt-toolbar .k-gantt-pdf,.k-gantt-toolbar .k-gantt-create{padding:var(--kendo-spacing-1, 0.25rem);width:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px);height:calc(var(--kendo-line-height, normal)*1em + var(--kendo-spacing-1, 0.25rem)*2 + 2px)}.k-gantt-toolbar .k-gantt-pdf .k-button-text,.k-gantt-toolbar .k-gantt-create .k-button-text{display:none}}@media(max-width: 1024px){.k-gantt-views-wrapper .k-gantt-views{display:none}.k-gantt-views-wrapper .k-views-dropdown{display:flex}}.k-gantt-content{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;overflow:hidden}.k-gantt-treelist .k-treelist{height:100%;border-width:0}.k-gantt-treelist .k-grid-header,.k-gantt-treelist .k-grid-footer{padding:0 !important}.k-gantt-treelist .k-grid-header tr{height:calc(2.8571428572em + var(--kendo-spacing-2, 0.5rem)*4 + 2px);vertical-align:bottom}.k-gantt-treelist .k-grid-content{overflow:hidden;overflow-x:scroll}.k-gantt-treelist .k-grid-content td{vertical-align:middle}.k-gantt-treelist .k-gantt-treelist-nested-columns .k-grid-header tr{height:calc(1.4285714286em + var(--kendo-spacing-2, 0.5rem)*2 + 1px)}.k-gantt-treelist.k-gantt-treelist-scrollable .k-grid-content{overflow:scroll}.k-gantt-timeline-pane .k-gantt-timeline{height:100%;border-width:0;display:flex}.k-gantt-timeline-pane .k-gantt-timeline *,.k-gantt-timeline-pane .k-gantt-timeline *::before,.k-gantt-timeline-pane .k-gantt-timeline *::after,.k-gantt-timeline-pane .k-gantt-timeline::before,.k-gantt-timeline-pane .k-gantt-timeline::after{box-sizing:border-box}.k-gantt-timeline-pane .k-grid-content{overflow-x:scroll}.k-gantt-timeline-pane .k-header{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem);border-width:0 0 1px 1px;white-space:nowrap}.k-gantt-tables{position:relative;border-color:inherit}.k-gantt-rows,.k-gantt-columns{border-color:inherit;position:absolute;z-index:0;top:0;left:0}.k-gantt-dependencies{opacity:.7;position:absolute;top:0;left:0}.k-gantt-dependencies .k-arrow-e,.k-gantt-dependencies .k-arrow-w{width:0;height:0;border:5px solid rgba(0,0,0,0);position:absolute;top:-4px}.k-gantt-dependencies .k-arrow-e{border-left-color:currentColor;right:-6px}.k-gantt-dependencies .k-arrow-w{border-right-color:currentColor;left:-6px}.k-gantt-line{background-color:currentColor;border-color:currentColor;position:absolute}.k-gantt-line.k-selected{z-index:3}.k-gantt-line-h{height:2px}.k-gantt-line-v{width:2px}.k-gantt-dependency-hint{z-index:4}.k-gantt-tasks{position:relative}.k-gantt-tasks td,.k-gantt-tasks .k-table-td{padding:0;border-width:0;position:relative;vertical-align:middle}.k-gantt-tasks td::after{content:"​"}.k-task-wrap{margin-block:0;margin-inline:-21px;padding-block:5px;padding-inline:21px;display:inline-flex;flex-direction:row;align-items:center;position:relative;z-index:2}.k-task-wrap.k-drag-hint{position:absolute}.k-task{position:relative;flex:1 1 auto}.k-task-dot{width:calc(8px + var(--kendo-spacing-1, 0.25rem)*2);height:calc(8px + var(--kendo-spacing-1, 0.25rem)*2);line-height:1;cursor:pointer;display:none;position:absolute;top:50%;transform:translateY(-50%)}.k-task-wrap:hover .k-task-dot,.k-task-wrap.k-origin .k-task-dot{display:block}.k-task-dot::before{content:"";width:8px;height:8px;border-width:0;border-style:solid;border-radius:100%;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.k-task-dot:hover::before,.k-task-dot.k-hover::before{border-width:1px}.k-task-start{left:0}.k-task-end{right:0}.k-task-draghandle{margin-left:16px;width:0;height:0;border:5px solid rgba(0,0,0,0);border-top-width:0;border-bottom-color:inherit;position:absolute;bottom:0;cursor:ew-resize;visibility:hidden}.k-task-wrap:hover .k-task-draghandle{visibility:visible}.k-milestone-wrap{margin-block:0;margin-inline:-2em}.k-task-milestone{width:1em;height:1em;border-width:1px;border-style:solid;box-sizing:border-box;transform:rotate(45deg)}.k-task-summary{height:10px;display:inline-block;vertical-align:top}.k-task-summary,.k-task-summary-complete{background-color:currentColor}.k-task-summary::before,.k-task-summary::after,.k-task-summary-complete::before,.k-task-summary-complete::after{content:"";width:0;height:0;border:8px solid rgba(0,0,0,0);position:absolute;top:0;display:none}.k-task-summary::before,.k-task-summary-complete::before{border-left-color:currentColor;left:0}.k-task-summary::after,.k-task-summary-complete::after{border-right-color:currentColor;right:0}.k-task-summary-complete{height:10px;position:relative;z-index:2}.k-task-summary-progress{height:15px;overflow:hidden}.k-task-single{border-radius:var(--kendo-border-radius-md, 0.25rem);border-width:0px;border-style:solid;box-sizing:border-box;cursor:default}.k-task-single .k-resize-handle{opacity:.5;z-index:2;visibility:hidden;cursor:ew-resize}.k-task-single .k-resize-handle::before{position:absolute;top:2px;bottom:2px}.k-task-single .k-resize-w{left:0}.k-task-single .k-resize-w::before{left:2px;border-left-width:1px}.k-task-single .k-resize-e{right:0}.k-task-single .k-resize-e::before{right:2px;border-left-width:1px}.k-task-single:hover .k-resize-handle,.k-task-single:hover .k-task-actions{visibility:visible}.k-task-complete{border-radius:var(--kendo-border-radius-md, 0.25rem);width:20%;position:absolute;z-index:1;top:0;bottom:0;left:0}.k-task-content{position:relative;z-index:2;display:flex;flex-direction:row;align-items:center;white-space:nowrap}.k-task-template{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);line-height:normal;flex:1;overflow:hidden;text-overflow:ellipsis}.k-task-actions{padding:var(--kendo-spacing-0\.5, 0.125rem);white-space:nowrap;display:flex;flex-direction:row;align-items:center;visibility:hidden;z-index:1}.k-task-actions>.k-link{display:inline-flex}.k-resources-wrap{position:absolute;display:inline-block;z-index:2;margin-left:20px;margin-top:-2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-resources-wrap .k-resource{margin-block:0;margin-inline:5px}.k-task-details{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);white-space:nowrap}.k-task-details strong{font-size:var(--kendo-font-size-lg, inherit);font-weight:normal;display:block}.k-task-details .k-task-pct{font-size:32px}.k-task-details ul{line-height:normal}.k-gantt-planned .k-gantt-dependencies,.k-gantt-planned .k-task-dot,.k-gantt-planned .k-resources-wrap{margin-top:.55em}.k-gantt-planned .k-task-wrap{flex-direction:column;align-items:flex-start}.k-gantt-planned .k-task-inner-wrap{display:inline-flex}.k-gantt-planned .k-task-wrap.k-drag-hint{top:0}.k-gantt-planned .k-summary-wrap.k-drag-hint{top:.5em}.k-gantt-planned .k-milestone-wrap.k-drag-hint{top:.3em}.k-task-planned{margin:0 0 .35em;line-height:.75em;display:flex;align-items:center}.k-task-planned .k-task-moment{border-width:2px;border-radius:5px;border-style:solid;height:6px;width:6px}.k-task-planned .k-task-duration{height:2px}.k-task-planned .k-task-moment.k-moment-left{margin-left:-4px}.k-task-planned:hover .k-task-duration{height:3px}.k-milestone-wrap .k-task-moment{margin-left:3px}.k-planned-tooltip .k-task-content{display:block}.k-task-offset-wrap .k-task-content .k-resize-e{display:none}.k-task-offset{flex-direction:row-reverse;display:flex}.k-task-offset .k-resize-handle{right:0;z-index:2;visibility:hidden;margin-right:1.4em}.k-task-offset .k-resize-handle::before{border-left-width:1px;position:absolute;top:50%;bottom:.5em;margin-right:2px}.k-task-single:hover+.k-task-offset .k-task-actions,.k-task-offset:hover .k-task-actions,.k-task-single:hover+.k-task-offset .k-resize-handle,.k-task-offset:hover .k-resize-handle{visibility:visible}.k-gantt-tooltip-validation{max-width:200px;display:block}.k-gantt-tooltip-validation::before{content:"";width:4px;height:100%;position:absolute;top:0;left:0}.k-gantt-tooltip-validation-row{display:flex;flex-direction:row;justify-content:space-between}.k-gantt-tooltip-validation-label{display:inline-flex;min-width:50px}.k-gantt-tooltip-validation-value{font-weight:var(--kendo-font-weight-bold, normal)}.k-gantt-tooltip-validation-label,.k-gantt-tooltip-validation-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-pdf-export-shadow .k-gantt{float:left}.k-pdf-export-shadow .k-gantt,.k-pdf-export-shadow .k-gantt-timeline-pane,.k-pdf-export-shadow .k-gantt-dependencies{width:auto !important;height:auto !important;overflow:visible !important}.k-pdf-export-shadow .k-gantt-treelist .k-treelist{display:block}.k-pdf-export-shadow .k-gantt-layout.k-splitbar{display:none}.k-gantt-edit-form .k-gantt-delete{float:left}.k-rtl .k-gantt-rows,.k-rtl .k-gantt-columns,[dir=rtl] .k-gantt-rows,[dir=rtl] .k-gantt-columns{left:auto;right:0}.k-rtl .k-task-wrap:not(.k-milestone-wrap),[dir=rtl] .k-task-wrap:not(.k-milestone-wrap){margin-block:0;margin-inline:-26px}.k-rtl .k-gantt-timeline-pane .k-header,[dir=rtl] .k-gantt-timeline-pane .k-header{border-width:0 1px 1px 0}.k-rtl .k-gantt-timeline-pane .k-header:first-child,[dir=rtl] .k-gantt-timeline-pane .k-header:first-child{border-right-width:0}.k-rtl .k-gantt-timeline-pane .k-task-start,[dir=rtl] .k-gantt-timeline-pane .k-task-start{left:auto;right:0}.k-rtl .k-gantt-timeline-pane .k-task-end,[dir=rtl] .k-gantt-timeline-pane .k-task-end{right:auto;left:0}.k-rtl .k-task-content,[dir=rtl] .k-task-content{text-align:end}.k-rtl .k-task-complete,[dir=rtl] .k-task-complete{left:auto;right:0}.k-rtl .k-task-draghandle,[dir=rtl] .k-task-draghandle{margin-left:0;margin-right:16px}.k-rtl .k-gantt-dependencies,[dir=rtl] .k-gantt-dependencies{left:auto;right:0}.k-rtl .k-gantt-delete,[dir=rtl] .k-gantt-delete{float:right}.k-rtl .k-task-offset-wrap .k-task-content .k-resize-e,[dir=rtl] .k-task-offset-wrap .k-task-content .k-resize-e{display:block}.k-rtl .k-task-offset-wrap .k-task-content .k-resize-w,[dir=rtl] .k-task-offset-wrap .k-task-content .k-resize-w{display:none}.k-rtl .k-milestone-wrap,[dir=rtl] .k-milestone-wrap{margin-left:-2.4em}.k-rtl .k-milestone-wrap .k-task-moment,[dir=rtl] .k-milestone-wrap .k-task-moment{margin-right:.2em}.k-rtl .k-gantt-timeline-pane .k-milestone-wrap .k-task-start,[dir=rtl] .k-gantt-timeline-pane .k-milestone-wrap .k-task-start{right:-0.1em}.k-rtl .k-gantt-tooltip-validation::before,[dir=rtl] .k-gantt-tooltip-validation::before{left:auto;right:0}.k-gantt{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-gantt .k-treelist-scrollable .k-task-milestone .k-task-milestone-content{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-on-app-surface, #424242)}.k-gantt .k-treelist-scrollable .k-task-milestone.k-selected .k-task-milestone-content{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-primary, #1274AC)}.k-gantt .k-gantt-dependencies-svg polyline{fill:none;stroke:var(--kendo-color-on-base, #424242)}.k-gantt .k-gantt-dependencies-svg polyline.k-selected{stroke:var(--kendo-color-primary, #1274AC)}.k-gantt-footer{box-shadow:none}.k-gantt-treelist .k-treelist,.k-gantt-treelist .k-grid-content{background-color:rgba(0,0,0,0)}.k-gantt .k-nonwork-hour{background-color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 3%, transparent)}.k-task-dot::before{background-color:var(--kendo-color-on-app-surface, #424242)}.k-task-dot:hover::before,.k-task-dot.k-hover::before{border-color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-task-milestone{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-on-app-surface, #424242)}.k-task-milestone.k-task-delayed{background-image:repeating-linear-gradient(90deg, var(--kendo-color-app-surface, #ffffff), var(--kendo-color-app-surface, #ffffff) 2px, var(--kendo-color-error, #D51923) 2px, var(--kendo-color-error, #D51923) 4px)}.k-task-milestone.k-task-advanced{background-color:var(--kendo-color-success, #278200)}.k-task-milestone.k-selected{background-image:none;border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));background-color:var(--kendo-color-primary, #1274AC)}.k-task-summary{color:var(--kendo-color-subtle, #666666)}.k-task-summary.k-task-delayed{color:var(--kendo-color-error-emphasis, #e0535a)}.k-task-summary.k-task-advanced{color:var(--kendo-color-success-emphasis, #5da140)}.k-task-summary-complete{color:var(--kendo-color-on-base, #424242)}.k-task-delayed .k-task-summary-complete{color:var(--kendo-color-error, #D51923)}.k-task-advanced .k-task-summary-complete{color:var(--kendo-color-success, #278200)}.k-task-summary.k-selected{color:var(--kendo-color-primary-subtle-active, #89bad6)}.k-task-summary.k-selected .k-task-summary-complete{color:var(--kendo-color-primary, #1274AC)}.k-task-single{color:var(--kendo-color-base, #f5f5f5);background-color:var(--kendo-color-subtle, #666666)}.k-task-single.k-task-delayed{background-color:var(--kendo-color-error-emphasis, #e0535a)}.k-task-single.k-task-advanced{background-color:var(--kendo-color-success-emphasis, #5da140)}.k-task-single .k-task-complete{background-color:var(--kendo-color-on-app-surface, #424242)}.k-task-delayed .k-task-complete{background-color:var(--kendo-color-error, #D51923)}.k-task-advanced .k-task-complete{background-color:var(--kendo-color-success, #278200)}.k-task-single.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary-subtle-active, #89bad6)}.k-task-single.k-selected .k-task-complete{background-color:var(--kendo-color-primary, #1274AC)}.k-gantt-line{color:var(--kendo-color-on-base, #424242)}.k-gantt-line.k-selected{color:var(--kendo-color-primary, #1274AC)}.k-task-planned .k-task-moment{border-color:var(--kendo-color-primary, #1274AC);background-color:rgba(0,0,0,0)}.k-task-planned .k-task-duration{background-color:var(--kendo-color-primary, #1274AC)}.k-task-planned:hover .k-task-moment{background-color:var(--kendo-color-primary, #1274AC)}.k-task-offset{background-image:repeating-linear-gradient(135deg, var(--kendo-color-app-surface, #ffffff), var(--kendo-color-app-surface, #ffffff) 2px, var(--kendo-color-error, #D51923) 2px, var(--kendo-color-error, #D51923) 4px)}.k-task-offset .k-resize-e::before{border-color:#000}.k-task-offset .k-task-actions{color:#000}.k-task-offset:hover{background-image:repeating-linear-gradient(135deg, var(--kendo-color-app-surface, #ffffff), var(--kendo-color-app-surface, #ffffff) 2px, var(--kendo-color-error-emphasis, #e0535a) 2px, var(--kendo-color-error-emphasis, #e0535a) 4px)}.k-pdf-export .k-task-offset{background-color:var(--kendo-color-error, #D51923)}.k-offset-tooltip-delayed{background-color:var(--kendo-color-error, #D51923)}.k-planned-tooltip{background-color:var(--kendo-color-primary, #1274AC)}.k-gantt-tooltip-validation::before{background-color:#656565}.k-gantt-tooltip-valid::before{background-color:var(--kendo-color-success, #278200)}.k-gantt-tooltip-invalid::before{background-color:var(--kendo-color-error, #D51923)}.k-table-auto{table-layout:auto}.\!k-table-auto{table-layout:auto !important}.k-table-fixed{table-layout:fixed}.\!k-table-fixed{table-layout:fixed !important}.k-table-layout-auto{table-layout:auto}.\!k-table-layout-auto{table-layout:auto !important}.k-table-layout-fixed{table-layout:fixed}.\!k-table-layout-fixed{table-layout:fixed !important}.k-scheduler{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-scheduler table,.k-scheduler thead,.k-scheduler tfoot,.k-scheduler tbody,.k-scheduler tr,.k-scheduler th,.k-scheduler td,.k-scheduler div,.k-scheduler .k-scheduler-edit-dialog,.k-scheduler>*{border-color:inherit}kendo-scheduler.k-scheduler{overflow:hidden}kendo-scheduler.k-scheduler.k-readonly-scheduler .k-event-delete{display:none}.k-scheduler-table{width:100%;max-width:none;border-collapse:separate;border-spacing:0;table-layout:fixed}.k-scheduler-table td,.k-scheduler-table th{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);height:1.4285714286em;overflow:hidden;white-space:nowrap;border-style:solid;border-width:0 0 1px 1px;vertical-align:top;box-sizing:content-box}.k-scheduler-table td:first-child,.k-scheduler-table th:first-child{border-left-width:0}.k-scheduler-table .k-middle-row td{border-bottom-style:dotted}.k-scheduler-table .k-link{cursor:pointer}.k-scheduler-layout-flex{overflow:auto}.k-scheduler-layout-flex .k-scheduler-head{position:sticky;top:0;z-index:3}.k-scheduler-layout-flex .k-scheduler-body{position:relative}.k-scheduler-layout-flex .k-scheduler-head,.k-scheduler-layout-flex .k-scheduler-body{display:flex;flex:100%;flex-wrap:wrap}.k-scheduler-layout-flex .k-scheduler-row{display:flex;flex:1 1 100%;width:100%;min-width:0}.k-scheduler-layout-flex .k-scheduler-group{display:flex;flex:1 1 100%;width:100%;min-width:0;flex-wrap:wrap}.k-scheduler-layout-flex .k-scheduler-group .k-group-cell{display:flex;flex:1 1 auto;flex-wrap:wrap;overflow:auto}.k-scheduler-layout-flex .k-scheduler-group .k-group-content{padding:0;display:flex;flex:1 1 100%;width:100%;border-width:0;flex-wrap:wrap}.k-scheduler-layout-flex .k-scheduler-group.k-group-horizontal .k-group-cell{flex-basis:100%;border-width:0;padding:0}.k-scheduler-layout-flex.k-scheduler-timeline-view .k-scheduler-body .k-scheduler-cell{flex-basis:auto}.k-scheduler-layout-flex .k-more-events{bottom:2px;left:0;width:100%}.k-scheduler-layout-flex .k-scheduler-cell{display:flex;flex:1 1 100%;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);min-height:1.5em;overflow:hidden;white-space:nowrap;border-style:solid;border-width:0 1px 1px 0;vertical-align:top;box-sizing:content-box}.k-scheduler-layout-flex .k-scheduler-cell.k-slot-cell{position:relative}.k-scheduler-layout-flex .k-scheduler-cell.k-heading-cell{justify-content:center;font-weight:bold}.k-scheduler-layout-flex .k-scheduler-cell.k-side-cell{justify-content:flex-end;flex-grow:0;flex-basis:auto;overflow:visible}.k-scheduler-layout-flex .k-scheduler-cell.k-major-cell{border-bottom-width:0}.k-scheduler-layout-flex .k-middle-row .k-scheduler-cell{border-bottom-style:dotted}.k-scheduler-layout-flex .k-resource-cell{flex:none;display:flex;flex-wrap:wrap;overflow:visible}.k-scheduler-layout-flex .k-resource-content{display:flex;flex-wrap:wrap;padding:0;border-width:0}.k-scheduler-layout-flex .k-sticky-cell{display:flex;flex-wrap:wrap;flex-basis:0;position:sticky;left:0;z-index:3}.k-scheduler-toolbar{border-width:0;border-bottom-width:1px;white-space:nowrap;flex-shrink:0;position:relative;z-index:2}.k-scheduler-toolbar .k-widget{font-size:inherit}.k-scheduler-toolbar .k-nav-current{color:inherit;outline:0;text-decoration:none;display:inline-flex;flex-flow:row nowrap;align-items:center;gap:var(--kendo-spacing-1, 0.25rem);cursor:pointer}.k-scheduler-toolbar .k-scheduler-search{display:inline-flex;flex-flow:row nowrap}.k-scheduler-toolbar .k-views-dropdown{width:auto;font:inherit}.k-scheduler-footer{box-shadow:none;border-width:0;border-top-width:1px;white-space:nowrap;flex-shrink:0;position:relative}.k-scheduler-layout{width:100%;border-collapse:separate;border-spacing:0;flex:1 1 auto;position:relative;z-index:1}.k-scheduler-layout>tbody>tr>td{padding:0;vertical-align:top}.k-scheduler-layout td.k-selected,.k-scheduler-layout .k-scheduler-cell.k-selected{outline:none}.k-scheduler-layout tr+tr .k-scheduler-times tr th,.k-scheduler-layout .k-scheduler-pane+.k-scheduler-pane .k-scheduler-times tr th{border-bottom-color:rgba(0,0,0,0)}.k-scheduler-layout tr+tr .k-scheduler-times tr .k-slot-cell,.k-scheduler-layout tr+tr .k-scheduler-times tr .k-scheduler-times-all-day,.k-scheduler-layout tr+tr .k-scheduler-times tr:last-child th,.k-scheduler-layout .k-scheduler-pane+.k-scheduler-pane .k-scheduler-times tr .k-slot-cell,.k-scheduler-layout .k-scheduler-pane+.k-scheduler-pane .k-scheduler-times tr .k-scheduler-times-all-day,.k-scheduler-layout .k-scheduler-pane+.k-scheduler-pane .k-scheduler-times tr:last-child th{border-bottom-color:inherit}.k-scheduler-layout.k-scheduler-flex-layout{display:flex;flex-direction:column}.k-scheduler-layout.k-scheduler-flex-layout.k-scheduler-weekview .k-scheduler-pane:first-child .k-scheduler-table,.k-scheduler-layout.k-scheduler-flex-layout.k-scheduler-dayview .k-scheduler-pane:first-child .k-scheduler-table{table-layout:fixed}.k-scheduler-header,.k-scheduler-view-header{padding-inline-end:var(--kendo-scrollbar-width, 17px)}.k-scheduler-header th{text-align:center}.k-scheduler-header,.k-scheduler-header-wrap,.k-scheduler-header-wrap>div{border-color:inherit;overflow:hidden}.k-scheduler-header-wrap{border-width:0;border-style:solid;position:relative}.k-scheduler-times{border-color:inherit;position:relative;overflow:hidden}.k-scheduler-times .k-scheduler-table{table-layout:auto}.k-scheduler-times th{border-width:0 1px 1px 0;text-align:end}.k-scheduler-times .k-slot-cell,.k-scheduler-times .k-scheduler-times-all-day{border-bottom-color:inherit}.k-scheduler-times .k-slot-cell.k-last-resource{border-right:0}.k-scheduler-times .k-slot-cell.k-empty-slot{padding-left:0;padding-right:0}.k-scheduler-datecolumn{width:12em}.k-scheduler-timecolumn{width:11em;white-space:nowrap}.k-scheduler-content{border-color:inherit;position:relative;overflow:auto}.k-scheduler-content:focus{outline:none}kendo-scheduler .k-event,.k-event{border-radius:var(--kendo-border-radius-md, 0.25rem);min-height:25px;box-sizing:border-box;border-width:0;border-style:solid;border-radius:var(--kendo-border-radius-md, 0.25rem);text-align:start;outline:0;cursor:default;position:absolute;overflow:hidden;padding-inline-end:var(--kendo-spacing-2, 0.5rem)}kendo-scheduler .k-event>div,.k-event>div{position:relative;z-index:2}kendo-scheduler .k-event .k-event-template,.k-event .k-event-template{line-height:calc(25px - var(--kendo-spacing-1, 0.25rem)*2);padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}kendo-scheduler .k-event .k-event-time,.k-event .k-event-time{padding-bottom:0;font-size:.875em;white-space:nowrap;display:none}kendo-scheduler .k-event .k-event-actions,.k-event .k-event-actions{white-space:nowrap;position:absolute;top:0;bottom:0;right:var(--kendo-spacing-2, 0.5rem);z-index:2}kendo-scheduler .k-event .k-event-actions .k-event-delete,.k-event .k-event-actions .k-event-delete{opacity:.5;visibility:hidden}kendo-scheduler .k-event .k-event-actions:hover .k-event-delete,kendo-scheduler .k-event .k-event-actions.k-hover .k-event-delete,.k-event .k-event-actions:hover .k-event-delete,.k-event .k-event-actions.k-hover .k-event-delete{opacity:1}kendo-scheduler .k-event .k-event-actions a,.k-event .k-event-actions a{color:inherit}kendo-scheduler .k-event .k-event-actions:first-child,.k-event .k-event-actions:first-child{margin:var(--kendo-spacing-0\.5, 0.125rem) .4ex 0 var(--kendo-spacing-1, 0.25rem);top:0;right:0;float:left;position:relative;opacity:1;visibility:visible;line-height:normal}kendo-scheduler .k-event .k-resize-handle,.k-event .k-resize-handle{z-index:4;opacity:.5;visibility:hidden}kendo-scheduler .k-event .k-resize-handle::before,.k-event .k-resize-handle::before{border-color:currentColor}kendo-scheduler .k-event .k-resize-n,.k-event .k-resize-n{height:.5em;top:0}kendo-scheduler .k-event .k-resize-s,.k-event .k-resize-s{height:.5em;bottom:0}kendo-scheduler .k-event .k-resize-n::before,kendo-scheduler .k-event .k-resize-s::before,.k-event .k-resize-n::before,.k-event .k-resize-s::before{width:var(--kendo-spacing-8, 2rem);border-bottom-width:1px}kendo-scheduler .k-event .k-resize-w,.k-event .k-resize-w{width:.5em;left:0}kendo-scheduler .k-event .k-resize-e,.k-event .k-resize-e{width:.5em;right:0}kendo-scheduler .k-event .k-resize-w::before,kendo-scheduler .k-event .k-resize-e::before,.k-event .k-resize-w::before,.k-event .k-resize-e::before{height:var(--kendo-spacing-8, 2rem);border-left-width:1px}kendo-scheduler .k-event:hover .k-event-actions .k-event-delete,kendo-scheduler .k-event:hover .k-resize-handle,kendo-scheduler .k-event.k-hover .k-event-actions .k-event-delete,kendo-scheduler .k-event.k-hover .k-resize-handle,.k-event:hover .k-event-actions .k-event-delete,.k-event:hover .k-resize-handle,.k-event.k-hover .k-event-actions .k-event-delete,.k-event.k-hover .k-resize-handle{visibility:visible}kendo-scheduler .k-event.k-event-drag-hint .k-event-time,.k-event.k-event-drag-hint .k-event-time{display:block}kendo-scheduler .k-event .k-event-top-actions,kendo-scheduler .k-event .k-event-bottom-actions,.k-event .k-event-top-actions,.k-event .k-event-bottom-actions{position:absolute;top:0;left:0;width:100%;text-align:center}kendo-scheduler .k-event .k-event-bottom-actions,.k-event .k-event-bottom-actions{top:auto;bottom:0}.k-scheduler-mark{width:1em;height:1em;display:inline-block;vertical-align:middle}.k-more-events{padding:0;height:13px;border-style:solid;border-width:1px;overflow:hidden;position:absolute;justify-content:center}.k-more-events>.k-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.k-event-drag-hint{opacity:.5;z-index:3}.k-event-drag-hint .k-event-actions,.k-event-drag-hint .k-event-top-actions,.k-event-drag-hint .k-event-bottom-actions,.k-event-drag-hint .k-resize-handle{display:none}.k-event-drag-hint .k-event-time{display:block}.k-scheduler-marquee{border-width:0;border-style:solid}.k-scheduler-marquee .k-label-top,.k-scheduler-marquee .k-label-bottom{font-size:.75em;position:absolute}.k-scheduler-marquee .k-label-top{left:var(--kendo-spacing-1, 0.25rem);top:var(--kendo-spacing-0\.5, 0.125rem)}.k-scheduler-marquee .k-label-bottom{right:var(--kendo-spacing-1, 0.25rem);bottom:var(--kendo-spacing-0\.5, 0.125rem)}.k-scheduler-marquee.k-first::before,.k-scheduler-marquee.k-last::after{content:"";border-width:3px;border-style:solid;position:absolute;width:0;height:0}.k-scheduler-marquee.k-first::before{top:0;left:0;border-right-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0)}.k-scheduler-marquee.k-last::after{bottom:0;right:0;border-left-color:rgba(0,0,0,0);border-top-color:rgba(0,0,0,0)}.k-pdf-export-shadow .k-scheduler,.k-scheduler-pdf-export .k-scheduler-content,.k-scheduler-pdf-export .k-scheduler-times{height:auto !important;overflow:visible !important}.k-scheduler-pdf-export{overflow:hidden}.k-scheduler-pdf-export .k-scheduler-header{padding:0 !important}.k-scheduler-pdf-export .k-scheduler-header-wrap{border-width:0 !important}.k-scheduler-pdf-export .k-scheduler-header .k-scheduler-table,.k-scheduler-pdf-export .k-scheduler-content .k-scheduler-table{width:100% !important}.k-recurrence-editor{display:flex;flex-direction:column}kendo-scheduler .k-recurrence-editor{display:block}.k-scheduler-monthview .k-scheduler-table{height:100%}.k-scheduler-monthview .k-scheduler-table td{height:80px;text-align:end}.k-scheduler-monthview .k-scheduler-body .k-scheduler-cell{min-height:80px}.k-scheduler-monthview .k-hidden{padding-left:0 !important;padding-right:0 !important;border-right-width:0 !important}.k-scheduler-monthview .k-scheduler-table-auto,.k-scheduler-monthview .k-scheduler-table-auto td,.k-scheduler-monthview .k-scheduler-content .k-scheduler-table-auto{height:auto}.k-scheduler-monthview .k-scheduler-content{overflow-y:scroll}.k-scheduler-monthview.k-scheduler-flex-layout .k-scheduler-content{overflow-y:auto}.k-scheduler-agendaview .k-scheduler-mark{margin-right:.5em;width:1em;height:1em;display:inline-block;vertical-align:middle}.k-scheduler-agendaview .k-scheduler-table th:first-child,.k-scheduler-agendaview .k-scheduler-table td:first-child{border-left-width:1px}.k-scheduler-agendaview .k-scheduler-table td.k-first{border-left-width:0}.k-scheduler-agendaview .k-task>.k-event-delete{color:inherit;position:absolute;top:var(--kendo-spacing-0\.5, 0.125rem);right:var(--kendo-spacing-0\.5, 0.125rem);opacity:.5;visibility:hidden}.k-scheduler-agendaview .k-hover .k-task>.k-event-delete,.k-scheduler-agendaview .k-scheduler-content tr:hover .k-event-delete,.k-scheduler-agendaview .k-scheduler-content .k-scheduler-row:hover .k-event-delete,.k-scheduler-agendaview .k-scheduler-content .k-scheduler-row.k-hover .k-event-delete{visibility:visible}.k-scheduler-agendaday{margin:0 .2em 0 0;font-size:3em;line-height:1;font-weight:400;float:left}.k-scheduler-agendaweek{display:block;margin:.4em 0 0;line-height:1;font-style:normal}.k-scheduler-agendadate{font-size:.75em}.k-scheduler-timelineview .k-slot-cell{overflow:hidden}.k-scheduler-timelineview .k-scheduler-content{overflow:auto}.k-scheduler-pane{display:flex;flex-direction:row}.k-scheduler-pane .k-scheduler-times{flex:0 0 auto}.k-scheduler-pane .k-scheduler-times .k-scheduler-table{height:100%}.k-scheduler-pane .k-scheduler-header,.k-scheduler-pane .k-scheduler-content{flex:1 1 auto}.k-scheduler-yearview .k-scheduler-body{padding-block:var(--kendo-spacing-3, 0.75rem);padding-inline:var(--kendo-spacing-3, 0.75rem);justify-content:center}.k-scheduler-yearview .k-calendar{width:100%;border-width:0}.k-scheduler-yearview .k-calendar .k-calendar-view{flex-wrap:wrap;justify-content:center;gap:var(--kendo-spacing-3, 0.75rem)}.k-scheduler-yearview .k-calendar .k-content{flex:0}.k-scheduler-yearview .k-calendar .k-link{position:relative}.k-scheduler-yearview .k-calendar td.k-selected{background-color:inherit}.k-scheduler-yearview .k-day-indicator{margin-top:calc(32px - 0.5em);width:3px;height:3px;border-radius:50%;position:absolute;left:calc(50% - 1.5px)}.k-scheduler-tooltip{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:0;color:inherit}.k-scheduler-tooltip .k-tooltip-title{margin-bottom:var(--kendo-spacing-3, 0.75rem)}.k-scheduler-tooltip .k-tooltip-title .k-month{font-size:var(--kendo-font-size-sm, inherit);text-transform:uppercase}.k-scheduler-tooltip .k-tooltip-title .k-day{font-size:calc(var(--kendo-font-size-sm, 0.75rem)*2)}.k-scheduler-tooltip .k-tooltip-events-container{overflow:auto}.k-scheduler-tooltip .k-tooltip-events{max-height:250px;display:flex;flex-direction:column;gap:var(--kendo-spacing-1, 0.25rem)}.k-scheduler-tooltip .k-tooltip-event{padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-radius:var(--kendo-border-radius-md, 0.25rem);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex-shrink:0;position:relative;gap:var(--kendo-spacing-1, 0.25rem)}.k-scheduler-tooltip .k-tooltip-event .k-event-time{display:flex;flex-shrink:0;font-size:inherit}.k-scheduler-tooltip .k-no-data,.k-scheduler-tooltip .k-nodata{height:auto;min-height:auto;color:inherit}.k-scheduler-edit-dialog .k-dialog{max-height:100vh}.k-scheduler-edit-form .k-edit-form-container{width:100%}.k-scheduler-edit-form .k-edit-label{width:17%}.k-scheduler-edit-form .k-edit-field{width:77%}.k-scheduler-edit-form .k-edit-field>ul>li{display:flex;flex-flow:row nowrap;align-items:center}.k-scheduler-edit-form .k-recurrence-editor .k-radio-list .k-radio-wrap,.k-scheduler-edit-form .k-recurrence-editor .k-checkbox-list .k-checkbox-wrap{align-self:center}.k-scheduler-edit-form .k-recur-interval,.k-scheduler-edit-form .k-recur-count,.k-scheduler-edit-form .k-recur-monthday{width:5em}.k-scheduler-edit-form .k-recur-until,.k-scheduler-edit-form .k-recur-month,.k-scheduler-edit-form .k-recur-weekday,.k-scheduler-edit-form .k-recur-weekday-offset{width:10em}.k-scheduler-edit-form .k-scheduler-datetime-picker{display:flex;flex-flow:row nowrap;gap:var(--kendo-spacing-2, 0.5rem)}.k-rtl .k-scheduler-header th,.k-rtl .k-scheduler-table td{border-width:0 1px 1px 0}.k-rtl .k-scheduler-table td:first-child,.k-rtl .k-scheduler-table th:first-child{border-right-width:0}.k-rtl .k-scheduler-times th{border-width:0 0 1px 1px}.k-rtl .k-scheduler .k-scrollbar-v .k-scheduler-header-wrap{border-right-width:0;border-left-width:1px}.k-rtl .k-event{padding-right:0;padding-left:var(--kendo-spacing-2, 0.5rem)}.k-rtl .k-event .k-resize-w{left:auto;right:0}.k-rtl .k-event .k-resize-e{right:auto;left:0}.k-rtl .k-event .k-event-actions{right:auto;left:2px}.k-rtl .k-event .k-event-actions:first-child{margin:var(--kendo-spacing-0\.5, 0.125rem) var(--kendo-spacing-1, 0.25rem) 0 .4ex;float:right}.k-rtl .k-scheduler-agendaview .k-task>.k-event-delete{left:2px;right:auto}.k-rtl .k-scheduler-agendaview .k-task .k-scheduler-mark{margin-left:.5em;margin-right:0}.k-rtl .k-scheduler-marquee .k-label-top{left:auto;right:4px}.k-rtl .k-scheduler-marquee .k-label-bottom{left:4px;right:auto}.k-rtl .k-scheduler-edit-form .k-scheduler-delete{float:right}.k-rtl .k-scheduler .k-scheduler-header-wrap,.k-rtl.k-scheduler .k-scheduler-header-wrap{border-right-width:0}.k-rtl .k-scheduler .k-scheduler-agendaday,.k-rtl.k-scheduler .k-scheduler-agendaday{float:right;margin:0 0 0 .2em}.k-rtl .k-scheduler .k-scheduler-agendaview .k-scheduler-table td:first-child,.k-rtl .k-scheduler .k-scheduler-agendaview .k-scheduler-table th:first-child,.k-rtl.k-scheduler .k-scheduler-agendaview .k-scheduler-table td:first-child,.k-rtl.k-scheduler .k-scheduler-agendaview .k-scheduler-table th:first-child{border-left-width:0}.k-rtl .k-scheduler .k-scheduler-agendaview .k-scheduler-table tr+tr td:first-child,.k-rtl .k-scheduler .k-scheduler-agendaview .k-scheduler-table tr+tr th:first-child,.k-rtl.k-scheduler .k-scheduler-agendaview .k-scheduler-table tr+tr td:first-child,.k-rtl.k-scheduler .k-scheduler-agendaview .k-scheduler-table tr+tr th:first-child{border-right-width:1px}.k-safari .k-scheduler-tooltip .k-tooltip-event:not(:last-child){margin-bottom:var(--kendo-spacing-1, 0.25rem)}.k-safari .k-scheduler-yearview .k-calendar-view .k-month{margin-block:0;margin-inline:var(--kendo-spacing-3, 0.75rem)/2}.k-scheduler{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-scheduler-toolbar{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-scheduler-footer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-scheduler-header{background-color:var(--kendo-color-surface, #fafafa)}.k-scheduler-header-wrap{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-scheduler-nonwork,.k-scheduler .k-nonwork-hour{background-color:var(--kendo-color-base, #f5f5f5)}.k-scheduler-other-month,.k-scheduler .k-other-month{background-color:var(--kendo-color-base, #f5f5f5)}.k-scheduler-layout td.k-selected,.k-scheduler-layout .k-scheduler-cell.k-selected{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-scheduler-layout-flex .k-scheduler-head,.k-scheduler-layout-flex .k-sticky-cell{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-event{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-event.k-selected{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary-active, #106697);box-shadow:inset 0 0 0 2px rgba(0,0,0,.13)}.k-event.k-event-inverse{color:var(--kendo-color-on-app-surface, #424242)}.k-event.k-event-ongoing{box-shadow:inset 0px 0px 0px 1px red}.k-scheduler-marquee::before,.k-scheduler-marquee::after{border-color:var(--kendo-color-primary, #1274AC)}.k-scheduler-edit-dialog .k-dialog-actions{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-scheduler-agendaview .k-scheduler-content tr:hover,.k-scheduler-agendaview .k-scheduler-content tr.k-hover,.k-scheduler-agendaview .k-scheduler-content .k-scheduler-row:hover,.k-scheduler-agendaview .k-scheduler-content .k-scheduler-row.k-hover{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-base-hover, #ebebeb)}.k-scheduler-agendaview .k-scheduler-content tr:hover .k-scheduler-datecolumn,.k-scheduler-agendaview .k-scheduler-content tr:hover .k-scheduler-groupcolumn,.k-scheduler-agendaview .k-scheduler-content tr.k-hover .k-scheduler-datecolumn,.k-scheduler-agendaview .k-scheduler-content tr.k-hover .k-scheduler-groupcolumn{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-scheduler-agendaview .k-scheduler-content tr.k-selected{background-color:color-mix(in srgb, var(--kendo-color-primary, #1274AC) 25%, transparent)}.k-scheduler-agendaview .k-scheduler-content tr.k-selected .k-scheduler-datecolumn,.k-scheduler-agendaview .k-scheduler-content tr.k-selected .k-scheduler-groupcolumn{background-color:var(--kendo-color-surface-alt, #ffffff)}.k-scheduler-yearview .k-day-indicator{background-color:var(--kendo-color-primary, #1274AC)}.k-scheduler-yearview .k-selected .k-day-indicator{background-color:var(--kendo-color-on-primary, white)}.k-tooltip.k-scheduler-tooltip{color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-on-primary, white);box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-tooltip.k-scheduler-tooltip .k-callout{color:var(--kendo-color-on-primary, white)}.k-chat{margin:auto;max-width:500px;height:600px;max-height:100%;border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-chat .k-message-list{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth}.k-chat .k-message-list-content{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);width:100%;box-sizing:border-box;position:relative;flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.k-chat .k-message-list-content>*+*{margin-top:var(--kendo-spacing-4, 1rem)}.k-chat .k-message-group{max-width:80%;background:none;box-sizing:border-box;display:flex;flex-shrink:0;flex-direction:column;position:relative}.k-chat .k-message-group:not(.k-alt){align-items:flex-start;text-align:start}.k-chat .k-message-group:not(.k-alt) .k-message-time{margin-inline-start:var(--kendo-spacing-2, 0.5rem);inset-inline-start:100%}.k-chat .k-message-group:not(.k-alt) .k-message-status{inset-inline-start:0}.k-chat .k-message-group:not(.k-alt) .k-first .k-chat-bubble,.k-chat .k-message-group:not(.k-alt) .k-only .k-chat-bubble{border-bottom-left-radius:2px}.k-chat .k-message-group:not(.k-alt) .k-middle .k-chat-bubble,.k-chat .k-message-group:not(.k-alt) .k-last .k-chat-bubble{border-top-left-radius:2px;border-bottom-left-radius:2px}.k-chat .k-message-group.k-alt{align-self:flex-end;align-items:flex-end;text-align:end}.k-chat .k-message-group.k-alt .k-message-time{margin-inline-end:var(--kendo-spacing-2, 0.5rem);inset-inline-end:100%}.k-chat .k-message-group.k-alt .k-message-status{inset-inline-end:0}.k-chat .k-message-group.k-alt .k-first .k-chat-bubble,.k-chat .k-message-group.k-alt .k-only .k-chat-bubble{border-bottom-right-radius:2px}.k-chat .k-message-group.k-alt .k-middle .k-chat-bubble,.k-chat .k-message-group.k-alt .k-last .k-chat-bubble{border-top-right-radius:2px;border-bottom-right-radius:2px}.k-chat .k-message{max-width:100%;margin:var(--kendo-spacing-0\.5, 0.125rem) 0 0;position:relative;transition:margin .2s ease-in-out;outline:none}.k-chat .k-message-time,.k-chat .k-message-status{font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-lg, normal);white-space:nowrap;pointer-events:none;position:absolute}.k-chat .k-message-time{opacity:0;top:50%;transform:translateY(-50%);transition:opacity .2s ease-in-out}.k-chat .k-message-status{margin-top:var(--kendo-spacing-0\.5, 0.125rem);height:0;overflow:hidden;top:100%;transition:height .2s ease-in-out}.k-chat .k-chat-bubble{border-radius:12px;padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem);border-width:1px;border-style:solid;line-height:var(--kendo-line-height, normal);word-wrap:break-word;white-space:pre-wrap}.k-chat .k-chat-bubble a{color:inherit;text-decoration:underline}.k-chat .k-message.k-selected{margin-bottom:var(--kendo-spacing-4, 1rem);border:0;color:inherit;background:none}.k-chat .k-message.k-selected .k-message-time{opacity:1}.k-chat .k-message.k-selected .k-message-status{height:1.2em}.k-chat .k-message-error,.k-chat .k-message-sending{margin-bottom:var(--kendo-spacing-4, 1rem)}.k-chat .k-message-error .k-message-status,.k-chat .k-message-sending .k-message-status{height:1.2em}.k-chat .k-avatar{margin:0;position:absolute}.k-message-group:not(.k-alt)>.k-avatar{inset-inline-start:0;bottom:0}.k-message-group.k-alt>.k-avatar{inset-inline-end:0;bottom:0}.k-chat .k-avatars .k-message-group:not(.k-no-avatar){padding-inline-start:calc(32px + var(--kendo-spacing-2, 0.5rem))}.k-chat .k-avatars .k-message-group.k-alt:not(.k-no-avatar){padding-inline-end:calc(32px + var(--kendo-spacing-2, 0.5rem))}.k-author{margin:0;font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-lg, normal)}.k-chat .k-author{margin:0}.k-chat .k-timestamp{font-size:var(--kendo-font-size-sm, inherit);line-height:var(--kendo-line-height-lg, normal);text-transform:uppercase;text-align:center;align-self:stretch}.k-quick-replies{display:block;max-width:100%}.k-quick-reply{border-radius:100px;margin-inline-end:var(--kendo-spacing-2, 0.5rem);margin-block-end:calc(var(--kendo-spacing-2, 0.5rem)/2);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-3, 0.75rem);border-width:1px;border-style:solid;line-height:var(--kendo-line-height, normal);cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-block;flex:0 0 auto;transition-property:color,background-color,border-color;transition-duration:.2s;transition-timing-function:ease-in-out;outline:none}.k-scrollable-quick-replies{margin-inline-start:-var(--kendo-spacing-4, 1rem);margin-inline-end:-var(--kendo-spacing-4, 1rem);padding-inline-start:var(--kendo-spacing-4, 1rem);padding-inline-end:var(--kendo-spacing-4, 1rem);display:flex;flex-flow:row nowrap;flex:0 0 auto;overflow-x:auto;overflow-y:hidden}.k-scrollable-quick-replies::-webkit-scrollbar{display:none}.k-scrollable-quick-replies .k-quick-reply{margin:0}.k-scrollable-quick-replies .k-quick-reply+.k-quick-reply{margin-inline-start:var(--kendo-spacing-2, 0.5rem)}.k-message-box{width:100%;height:auto;box-sizing:border-box;border-width:1px 0 0;border-style:solid;border-color:inherit !important;border-radius:0 !important;flex:none;display:flex;flex-flow:row nowrap;align-items:center}.k-message-box:focus,.k-message-box.k-focus,.k-message-box:focus-within{outline:0;box-shadow:none}.k-message-box .k-button{border-width:0;flex-shrink:0}.k-message-box .k-button svg{width:20px;height:20px;fill:currentColor;display:inline-block}.k-rtl .k-message-box .k-button,[dir=rtl] .k-message-box .k-button{transform:scaleX(-1)}.k-chat .k-card-list{margin:var(--kendo-spacing-0\.5, 0.125rem) 0 0}.k-message-group.k-alt+.k-card-list,.k-message-group.k-alt+kendo-chat-message-attachments.k-card-list{align-self:flex-end}.k-chat .k-card-deck{max-width:calc(100% + var(--kendo-spacing-4, 1rem)*2);box-sizing:border-box;margin-inline-start:calc(var(--kendo-spacing-4, 1rem)*-1);margin-inline-end:calc(var(--kendo-spacing-4, 1rem)*-1);padding:var(--kendo-spacing-4, 1rem) var(--kendo-spacing-4, 1rem) var(--kendo-spacing-4, 1rem);overflow:hidden;overflow-x:auto;scroll-behavior:smooth}.k-chat .k-card-deck .k-card{width:200px}.k-chat .k-card-deck-scrollwrap{margin-right:calc(var(--kendo-spacing-4, 1rem)*-1);margin-left:calc(var(--kendo-spacing-4, 1rem)*-1);padding-left:var(--kendo-spacing-4, 1rem);padding-right:var(--kendo-spacing-4, 1rem)}.k-chat .k-card-deck-scrollwrap>.k-card-deck{margin-bottom:-20px;padding-bottom:20px}.k-chat .k-card-deck .k-card-wrap{display:flex;flex-flow:row nowrap;align-items:stretch;flex:0 0 auto;padding-bottom:5px}.k-chat .k-card-deck .k-card-wrap .k-card{flex:0 0 auto}.k-chat .k-card-deck .k-card-wrap.k-selected{background:none}.k-typing-indicator{padding:0;border-radius:50px;display:inline-flex;flex-flow:row nowrap}.k-typing-indicator span{width:8px;height:8px;border-radius:50%;flex:0 0 8px;background-color:currentColor;opacity:.4}.k-typing-indicator span:nth-of-type(1){animation:1s k-animation-blink infinite .3333s}.k-typing-indicator span:nth-of-type(2){animation:1s k-animation-blink infinite .6666s}.k-typing-indicator span:nth-of-type(3){animation:1s k-animation-blink infinite .9999s}.k-typing-indicator span+span{margin-left:5px}@keyframes k-animation-blink{50%{opacity:1}}.k-chat-toolbar,.k-chat .k-toolbar-box{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);width:100%;border-width:1px 0 0;box-sizing:border-box;flex:none;overflow:hidden;position:relative;gap:var(--kendo-spacing-2, 0.5rem)}.k-chat-toolbar::before,.k-chat .k-toolbar-box::before{display:none}.k-chat-toolbar .k-button-list,.k-chat .k-toolbar-box .k-button-list{display:flex;flex-flow:row nowrap;overflow:hidden;scroll-behavior:smooth}.k-chat-toolbar .k-button,.k-chat .k-toolbar-box .k-button{flex:none}.k-chat-toolbar .k-scroll-button,.k-chat .k-toolbar-box .k-scroll-button{padding:0 var(--kendo-spacing-1, 0.25rem);height:100%;aspect-ratio:auto;position:absolute;z-index:2;top:0}.k-chat-toolbar .k-scroll-button .k-button-icon,.k-chat .k-toolbar-box .k-scroll-button .k-button-icon{min-width:auto;min-height:auto}.k-chat-toolbar .k-scroll-button-left,.k-chat .k-toolbar-box .k-scroll-button-left{left:0}.k-chat-toolbar .k-scroll-button-right,.k-chat .k-toolbar-box .k-scroll-button-right{right:0}.k-chat{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-chat .k-timestamp{color:var(--kendo-color-subtle, #666666)}.k-chat .k-author{font-weight:bold}.k-chat .k-chat-bubble{border-color:var(--kendo-color-surface-alt, #ffffff);color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12));transition:color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out;order:-1}.k-chat .k-chat-bubble a{color:var(--kendo-color-primary, #1274AC)}.k-chat .k-chat-bubble a:hover{color:var(--kendo-color-primary-hover, #116fa5)}.k-chat .k-chat-bubble:hover{box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-chat .k-selected .k-chat-bubble{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-chat .k-alt .k-chat-bubble{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC);box-shadow:var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-chat .k-alt .k-chat-bubble:hover{box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-chat .k-alt .k-selected .k-chat-bubble{box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-chat .k-quick-reply{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-primary, #1274AC);background-color:rgba(0,0,0,0)}.k-chat .k-quick-reply:hover,.k-chat .k-quick-reply.k-hover{border-color:var(--kendo-color-primary, #1274AC);color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-chat .k-quick-reply:focus,.k-chat .k-quick-reply.k-focus{box-shadow:0 0 0px 2px color-mix(in srgb, var(--kendo-color-primary, #1274AC) 30%, transparent)}.k-chat-toolbar,.k-chat .k-toolbar-box{border-color:inherit;color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-mediaplayer{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:block;position:relative;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-mediaplayer *,.k-mediaplayer *::before,.k-mediaplayer *::after{box-sizing:border-box}.k-mediaplayer>iframe{width:100%;height:100%;border:0;vertical-align:top}.k-mediaplayer-titlebar{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);position:absolute;z-index:2;top:0;left:0;right:0}.k-mediaplayer-toolbar-wrap{position:absolute;z-index:2;bottom:0;left:0;right:0}.k-mediaplayer-toolbar{border-width:0;width:100% !important;box-shadow:none}.k-mediaplayer-toolbar .k-dropdown-list,.k-mediaplayer-toolbar .k-dropdown,.k-mediaplayer-toolbar .k-dropdownlist{width:auto}.k-mediaplayer-time-wrap{flex:1}.k-mediaplayer-volume-wrap{padding:0 7px;align-items:center}.k-mediaplayer-volume{width:100px}.k-slider.k-mediaplayer-seekbar{width:100%;position:absolute;z-index:3;top:0;left:0;transform:translateY(-50%)}.k-mediaplayer-seekbar .k-slider-track{width:100% !important;border-radius:0}.k-mediaplayer-seekbar .k-slider-selection{border-radius:0}.k-mediaplayer-fullscreen{z-index:10000;position:fixed;top:0;left:0;width:100% !important;height:100% !important}.k-mediaplayer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-mediaplayer-titlebar{color:var(--kendo-color-surface-alt, #ffffff);background-image:linear-gradient(color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 70%, transparent), color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 0%, transparent));text-shadow:0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #424242) 50%, transparent)}.k-timeline{box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:block;background-color:rgba(0,0,0,0);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-timeline *,.k-timeline *::before,.k-timeline *::after,.k-timeline::before,.k-timeline::after{box-sizing:border-box}.k-timeline ul{margin:0;padding:0}.k-timeline ul li{list-style-type:none}.k-timeline .k-timeline-flag{display:inline-block;text-align:center;padding-block:var(--kendo-spacing-1, 0.25rem);padding-inline:var(--kendo-spacing-2, 0.5rem);border-radius:var(--kendo-border-radius-md, 0.25rem);line-height:var(--kendo-line-height, normal);min-width:80px;max-width:calc(80px + var(--kendo-spacing-10, 2.5rem)*2);position:relative;z-index:1}.k-timeline .k-timeline-circle{width:16px;height:16px;border-radius:50%;flex-shrink:0;position:relative;z-index:1}.k-timeline.k-timeline-dates-hidden .k-timeline-date{display:none}.k-timeline.k-timeline-collapsible .k-card-header{cursor:pointer}.k-timeline.k-timeline-collapsible .k-event-collapse{display:flex}.k-timeline-card .k-card{position:relative;overflow:visible}.k-timeline-card .k-card .k-card-header{overflow:visible;border-bottom:0}.k-timeline-card .k-card .k-card-header+.k-card-body{padding-top:0}.k-timeline-card .k-card .k-card-body{overflow-y:auto;scrollbar-width:thin}.k-timeline-card .k-card .k-card-body::-webkit-scrollbar{width:5px}.k-timeline-card .k-card .k-card-body::-webkit-scrollbar-thumb{border-radius:var(--kendo-border-radius-md, 0.25rem)}.k-timeline-card .k-timeline-card-callout.k-callout-w,.k-timeline-card .k-timeline-card-callout.k-callout-e{top:36px}.k-timeline-vertical,.k-timeline-horizontal{padding-block:0;padding-inline:var(--kendo-spacing-10, 2.5rem);margin-block:var(--kendo-spacing-10, 2.5rem);margin-inline:0;width:100%;position:relative;border:0}.k-timeline-vertical::after,.k-timeline-horizontal .k-timeline-track-wrap::after{content:"";position:absolute;top:0;border-width:1px;border-style:solid}.k-timeline-vertical{padding-left:calc(var(--kendo-spacing-10, 2.5rem) + (80px - var(--kendo-spacing-1\.5, 0.375rem))/2 + 50px)}.k-timeline-vertical.k-timeline-dates-hidden{padding-left:calc(var(--kendo-spacing-10, 2.5rem) + (80px - var(--kendo-spacing-1\.5, 0.375rem))/2)}.k-timeline-vertical::after{height:100%;width:var(--kendo-spacing-1\.5, 0.375rem);transform:translateX(-50%);border-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-timeline-vertical .k-timeline-flag-wrap{display:flex;align-items:center}.k-timeline-vertical .k-timeline-flag-wrap:first-child{padding-top:var(--kendo-spacing-10, 2.5rem)}.k-timeline-vertical .k-timeline-flag{transform:translateX(-50%)}.k-timeline-vertical .k-timeline-date-wrap{position:absolute;padding-right:var(--kendo-spacing-4, 1rem);margin-top:36px;transform:translate(-100%, -50%);text-align:end}.k-timeline-vertical .k-timeline-event{display:flex;align-items:flex-start;padding-block:var(--kendo-spacing-10, 2.5rem);padding-inline:0}.k-timeline-vertical .k-timeline-card{padding-left:var(--kendo-spacing-4, 1rem)}.k-timeline-vertical .k-timeline-card .k-card{margin-left:var(--kendo-spacing-4, 1rem);min-height:70px;width:400px;max-width:100%}.k-timeline-vertical .k-timeline-card .k-card .k-card-header{border-radius:var(--kendo-border-radius-lg, 0.375rem)}.k-timeline-vertical .k-timeline-card .k-card .k-card-title{display:flex;justify-content:space-between}.k-timeline-vertical .k-timeline-card .k-card .k-card-title .k-event-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.k-timeline-vertical .k-timeline-card .k-event-collapse{margin-block:calc(var(--kendo-spacing-1, 0.25rem)*-1);margin-inline:0;transform:rotate(90deg);transition:transform .2s ease-in-out}.k-timeline-vertical .k-timeline-card.k-collapsed .k-card-body,.k-timeline-vertical .k-timeline-card.k-collapsed .k-card-actions{display:none}.k-timeline-vertical .k-timeline-card.k-collapsed .k-event-collapse{transform:rotate(0deg)}.k-timeline-vertical .k-timeline-circle{margin-top:36px;transform:translate(-50%, -50%);margin-right:-8px}.k-timeline-vertical.k-timeline-alternating{padding-left:var(--kendo-spacing-10, 2.5rem)}.k-timeline-vertical.k-timeline-alternating::after{left:50%}.k-timeline-vertical.k-timeline-alternating .k-timeline-flag-wrap{justify-content:center}.k-timeline-vertical.k-timeline-alternating .k-timeline-flag{transform:translateX(0)}.k-timeline-vertical.k-timeline-alternating .k-timeline-event{justify-content:space-between}.k-timeline-vertical.k-timeline-alternating .k-timeline-event.k-reverse{flex-direction:row-reverse}.k-timeline-vertical.k-timeline-alternating .k-timeline-event.k-reverse .k-timeline-date-wrap{text-align:start;padding-right:0;padding-left:var(--kendo-spacing-4, 1rem)}.k-timeline-vertical.k-timeline-alternating .k-timeline-event.k-reverse .k-timeline-card{padding-left:0;padding-right:var(--kendo-spacing-4, 1rem)}.k-timeline-vertical.k-timeline-alternating .k-timeline-event.k-reverse .k-timeline-card .k-card{margin-right:var(--kendo-spacing-4, 1rem);margin-left:auto}.k-timeline-vertical.k-timeline-alternating .k-timeline-card,.k-timeline-vertical.k-timeline-alternating .k-timeline-date-wrap{flex-basis:50%;min-width:0}.k-timeline-vertical.k-timeline-alternating .k-timeline-date-wrap{position:static;transform:translateY(-50%)}.k-timeline-vertical.k-timeline-alternating .k-timeline-circle{transform:translateY(-50%);margin-right:0}.k-timeline-horizontal .k-timeline-track-item{flex:1 0 20%;display:flex;align-items:center;justify-content:flex-start;position:relative;flex-direction:column}.k-timeline-horizontal .k-timeline-track-item:hover{cursor:pointer}.k-timeline-horizontal .k-timeline-track-item.k-timeline-flag-wrap:hover{cursor:default}.k-timeline-horizontal .k-timeline-date-wrap{margin-top:auto;margin-bottom:var(--kendo-spacing-2, 0.5rem)}.k-timeline-horizontal .k-timeline-card{height:100%}.k-timeline-horizontal .k-card{max-height:100%}.k-timeline-horizontal .k-timeline-events-list{overflow-x:hidden;padding-top:var(--kendo-spacing-4, 1rem)}.k-timeline-horizontal .k-timeline-events-list .k-timeline-scrollable-wrap{position:relative;height:600px}.k-timeline-horizontal .k-timeline-events-list .k-timeline-scrollable-wrap .k-timeline-event{position:absolute;top:0;left:0;width:100%;height:100%}.k-timeline-horizontal .k-timeline-track-wrap{position:relative;padding:calc(var(--kendo-spacing-7\.5, 1.875rem)/2) 0}.k-timeline-horizontal .k-timeline-track-wrap::after{top:auto;bottom:calc(var(--kendo-spacing-7\.5, 1.875rem)/2 + var(--kendo-spacing-1\.5, 0.375rem)/2);left:calc(var(--kendo-spacing-7\.5, 1.875rem) - 2px);right:calc(var(--kendo-spacing-7\.5, 1.875rem) - 2px);transform:translateY(-50%);height:var(--kendo-spacing-1\.5, 0.375rem)}.k-timeline-horizontal .k-timeline-track-wrap .k-timeline-track{overflow:hidden;margin-block:0;margin-inline:var(--kendo-spacing-7\.5, 1.875rem);position:relative;z-index:2}.k-timeline-horizontal .k-timeline-track-wrap .k-timeline-track .k-timeline-scrollable-wrap{transition:transform 1s ease-in-out}.k-timeline-horizontal .k-timeline-track-wrap .k-timeline-flag{margin-bottom:calc(var(--kendo-spacing-1\.5, 0.375rem) + 16px);position:relative;min-width:60px}.k-timeline-horizontal .k-timeline-track-wrap .k-timeline-flag::after{content:"";width:10px;height:10px;position:absolute;left:50%;bottom:0;transform:translate(-50%, 50%) rotate(45deg)}.k-timeline-horizontal .k-timeline-scrollable-wrap{padding-bottom:calc(var(--kendo-spacing-1\.5, 0.375rem)/2);display:flex;outline:0}.k-timeline-arrow{width:var(--kendo-spacing-7\.5, 1.875rem);height:var(--kendo-spacing-7\.5, 1.875rem);border-radius:50%;position:absolute;bottom:calc(var(--kendo-spacing-1\.5, 0.375rem) + var(--kendo-spacing-1\.5, 0.375rem)/2 + 2px);z-index:3;display:flex;align-items:center;justify-content:center}.k-timeline-arrow-left{left:0}.k-timeline-arrow-right{right:0}.k-timeline-mobile{padding-block:0;padding-inline:var(--kendo-spacing-4, 1rem);margin-block:var(--kendo-spacing-4, 1rem);margin-inline:0}.k-timeline-mobile .k-timeline-flag{max-width:calc(80px + var(--kendo-spacing-4, 1rem)*2)}.k-timeline-mobile.k-timeline-horizontal .k-timeline-flag-wrap{display:none}.k-timeline-mobile.k-timeline-vertical{padding-left:calc(var(--kendo-spacing-4, 1rem) + (80px - var(--kendo-spacing-1\.5, 0.375rem))/2 + 50px)}.k-timeline-mobile.k-timeline-vertical.k-timeline-dates-hidden{padding-left:calc(var(--kendo-spacing-4, 1rem) + (80px - var(--kendo-spacing-1\.5, 0.375rem))/2)}.k-timeline-mobile.k-timeline-vertical.k-timeline-alternating{padding-left:var(--kendo-spacing-4, 1rem)}.k-timeline-mobile.k-timeline-vertical .k-timeline-card{width:100%}.k-timeline-mobile.k-timeline-vertical .k-timeline-card .k-card{width:auto}.k-timeline .k-timeline-flag{color:var(--kendo-color-on-primary, white);background-color:var(--kendo-color-primary, #1274AC)}.k-timeline .k-timeline-circle{background-color:var(--kendo-color-primary, #1274AC)}.k-timeline .k-timeline-card .k-card-header{background-color:var(--kendo-color-surface-alt, #ffffff);color:var(--kendo-color-on-app-surface, #424242)}.k-timeline .k-timeline-card .k-card-body{scrollbar-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08)) var(--kendo-color-surface-alt, #ffffff)}.k-timeline .k-timeline-card .k-card-body::-webkit-scrollbar-track{background:var(--kendo-color-surface-alt, #ffffff)}.k-timeline .k-timeline-card .k-card-body::-webkit-scrollbar-thumb{background:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-timeline .k-timeline-card .k-card-body::-webkit-scrollbar-thumb:hover{background:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-timeline .k-timeline-date{color:var(--kendo-color-on-app-surface, #424242)}.k-timeline .k-timeline-arrow.k-disabled{opacity:1;color:color-mix(in srgb, var(--kendo-color-on-base, #424242) 60%, transparent);background-color:color-mix(in srgb, var(--kendo-color-base-subtle, #ebebeb) 60%, transparent);border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-timeline-vertical::after,.k-timeline-horizontal .k-timeline-track-wrap::after{background-color:var(--kendo-color-base, #f5f5f5);border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-timeline-horizontal .k-timeline-flag::after{background-color:var(--kendo-color-primary, #1274AC)}.k-timeline-track-item.k-focus .k-timeline-circle{box-shadow:var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-pdf-viewer{border-width:1px;border-style:solid;box-sizing:border-box;position:relative;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);display:flex;flex-direction:column;overflow:hidden;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-pdf-viewer .k-toolbar{border-top-width:0;border-right-width:0;border-left-width:0;border-color:inherit;flex:0 0 auto;z-index:2}.k-pdf-viewer .k-toolbar .k-pager-wrap,.k-pdf-viewer .k-toolbar .k-pager{padding:0;border-width:0;color:inherit;background:none;overflow:visible}.k-pdf-viewer-canvas{display:flex;flex-direction:column;flex:1 1 auto;outline:none}.k-pdf-viewer-canvas.k-enable-text-select{-webkit-user-select:text;user-select:text;cursor:text}.k-pdf-viewer-canvas.k-enable-panning{cursor:grab !important}.k-pdf-viewer-canvas.k-enable-panning span::selection{background-color:rgba(0,0,0,0)}.k-pdf-viewer-pages{flex:1 1 auto}.k-pdf-viewer-pages .k-page{position:relative;margin-block:var(--kendo-spacing-7\.5, 1.875rem);margin-inline:auto;z-index:1}.k-pdf-viewer-pages .k-page .k-canvas-wrapper{overflow:hidden;width:100%;height:100%}.k-pdf-viewer-pages .k-page .k-canvas-wrapper canvas{direction:ltr}.k-pdf-viewer-pages .k-page .k-canvas-wrapper svg{transform:none}.k-pdf-viewer-pages .k-page .k-canvas-wrapper .k-highlight{position:absolute;mix-blend-mode:multiply;fill-opacity:1}.k-pdf-viewer-pages .k-page .k-canvas-wrapper .k-highlight-outline{position:absolute;fill:none;stroke-width:2px;stroke-dasharray:2}.k-pdf-viewer-pages .k-page .k-text-layer{position:absolute;top:0;left:0;opacity:.2;overflow:hidden}.k-pdf-viewer-pages .k-page .k-text-layer .k-marked-content>span,.k-pdf-viewer-pages .k-page .k-text-layer>span,.k-pdf-viewer-pages .k-page .k-text-layer br{position:absolute;line-height:var(--kendo-line-height-sm, normal);transform-origin:0% 0%;color:rgba(0,0,0,0);white-space:pre;cursor:text}.k-pdf-viewer-pages .k-page .k-text-layer .k-marked-content{top:0;height:0}.k-pdf-viewer-pages .k-page .k-text-layer .k-end-of-content{display:block;position:absolute;inset:100% 0 0;z-index:0;cursor:default;-webkit-user-select:none;user-select:none}.k-pdf-viewer-pages .k-page .k-text-layer .k-search-highlight-mark{color:rgba(0,0,0,0)}.k-pdf-viewer-pages .k-page .k-text-layer .k-highlighting{touch-action:none}.k-pdf-viewer-pages .k-page .k-annotation-layer{position:absolute;top:0;left:0;transform-origin:0 0;pointer-events:none}.k-pdf-viewer-pages .k-page .k-annotation-layer section{position:absolute;pointer-events:auto}.k-pdf-viewer-pages .k-page .k-annotation-layer .k-annotation-text-content{position:absolute;width:100%;height:100%;opacity:0;color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;pointer-events:none}.k-pdf-viewer-pages .k-page .k-annotation-layer .k-link-annotation>a{position:absolute;top:0;left:0;width:100%;height:100%}.k-pdf-viewer-pages .k-page .k-annotation-layer .k-text-widget-annotation .k-annotation-content{position:absolute;width:100%;height:100%;pointer-events:none}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer{background:rgba(0,0,0,0);position:absolute;inset:0;transform-origin:0 0;cursor:auto}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-selected{z-index:100000 !important}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-highlight-editor{position:absolute;background:rgba(0,0,0,0);z-index:1;cursor:auto;max-width:100%;max-height:100%;border:none;outline:none;pointer-events:none;transform-origin:0 0}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-highlight-editor .k-internal{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:auto}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-highlight-editor.k-highlight-editor-disabled .k-internal{pointer-events:none}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-free-text-editor{position:absolute;background:rgba(0,0,0,0);z-index:1;transform-origin:0 0;cursor:text;caret-color:rgba(124,22,27,.5);max-width:100%;max-height:100%;border:solid 2px rgba(0,0,0,0)}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-free-text-editor.k-selected.k-draggable{cursor:move}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-free-text-editor.k-selected .k-internal{border-radius:0px;outline:2px dashed var(--kendo-color-primary, #1274AC)}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-free-text-editor .k-internal{background:rgba(0,0,0,0);border:none;inset:0;overflow:visible;white-space:nowrap;-webkit-user-select:none;user-select:none}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer .k-free-text-editor .k-internal:empty::before{content:attr(default-content)}.k-pdf-viewer-pages .k-page .k-annotation-editor-layer-disabled{pointer-events:none}.k-pdf-viewer-pages .k-blank-page{margin:0;display:flex;flex-flow:column nowrap;width:100%;height:100%;align-items:center;justify-content:center;background-color:inherit !important}.k-pdf-viewer-pages .k-blank-page .k-upload,.k-pdf-viewer-pages .k-blank-page .k-dropzone,.k-pdf-viewer-pages .k-blank-page .k-dropzone-inner{border:0;background:none}.k-pdf-viewer-canvas>.k-search-panel{width:max-content;margin-top:calc(var(--kendo-line-height, normal)*1em*-1 + var(--kendo-spacing-1, 0.25rem)*2*-1 + -4px + var(--kendo-spacing-2, 0.5rem)*2*2*-1);padding-block:calc(var(--kendo-spacing-2, 0.5rem)*2);padding-inline:var(--kendo-spacing-2, 0.5rem);border-width:1px;border-style:solid;border-radius:0;display:flex;gap:var(--kendo-spacing-2, 0.5rem);flex-flow:row nowrap;flex:0 0 auto;justify-content:flex-start;align-items:center;z-index:10;cursor:default}.k-pdf-viewer-canvas>.k-search-panel .k-search-dialog-draghandle{cursor:move;margin-left:0}.k-pdf-viewer-canvas>.k-search-panel .k-textbox{width:10em;flex:none}.k-pdf-viewer-canvas>.k-search-panel .k-textbox .k-button{border-width:0}.k-pdf-viewer-canvas>.k-search-panel .k-search-matches{display:inline-flex;gap:var(--kendo-spacing-1, 0.25rem)}.k-pdf-viewer-annotation-editor-toolbar>.k-toolbar{width:min-content;border-bottom-width:0}.k-pdf-viewer-annotation-editor{padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem)}.k-pdf-viewer-annotation-editor .k-column-menu-group-header{padding-inline:0}.k-pdf-viewer-annotation-editor .k-form-field{margin-top:0}.k-pdf-viewer{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-pdf-viewer .k-pdf-viewer-canvas{background-color:var(--kendo-color-surface, #fafafa)}.k-pdf-viewer .k-page{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:#fff;box-shadow:var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-pdf-viewer .k-blank-page>.k-icon{color:var(--kendo-color-subtle, #666666)}.k-pdf-viewer .k-canvas-wrapper .k-highlight-outline.k-hover,.k-pdf-viewer .k-canvas-wrapper .k-highlight-outline:hover{stroke:var(--kendo-color-primary-hover, #116fa5)}.k-pdf-viewer .k-canvas-wrapper .k-highlight-outline.k-selected{stroke:var(--kendo-color-primary, #1274AC)}.k-pdf-viewer .k-search-highlight{background-color:var(--kendo-color-on-app-surface, #424242)}.k-pdf-viewer .k-search-highlight-mark{background-color:#ff0}.k-pdf-viewer .k-annotation-editor-layer .k-free-text-editor .k-internal{color:rgba(124,22,27,.5)}.k-pdf-viewer .k-annotation-editor-layer .k-free-text-editor .k-internal:empty::before{color:rgba(124,22,27,.5)}.k-pdf-viewer-canvas>.k-search-panel{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff);box-shadow:var(--kendo-elevation-8, 0 16px 18px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12))}.km-scrollview,.km-scroll-container{-webkit-user-select:none;user-select:none;border-collapse:separate}.km-scroll-wrapper{position:relative}.km-scroll-header{position:absolute;z-index:1001;width:100%;top:0;left:0}.km-scroller-pull{width:100%;display:block;position:absolute;line-height:3em;font-size:1.4em;text-align:center;transform:translate3d(0, -3em, 0)}.km-scroller-pull .km-template{display:inline-block;min-width:200px;text-align:start}.km-load-more .km-icon,.km-widget .km-scroller-pull .km-icon{display:inline-block;height:2rem;margin-right:1rem;vertical-align:middle;width:2rem;font-size:2rem;transform:rotate(0deg);transition:transform 300ms linear}.km-widget .km-scroller-release .km-icon{transform:rotate(180deg)}.km-widget .km-scroller-refresh .km-icon{transition:none}.km-touch-scrollbar{position:absolute;visibility:hidden;z-index:200000;height:.4em;width:.4em;opacity:0;transform-origin:0 0;transition:opacity .3s linear}.k-map .km-touch-scrollbar,.k-diagram .km-touch-scrollbar{display:none}.km-vertical-scrollbar{height:100%;right:2px;top:0}.km-horizontal-scrollbar{width:100%;left:0;bottom:2px}.km-touch-scrollbar{background-color:#333}.k-scrollview{border-width:1px;border-style:solid;box-sizing:border-box;outline:0;font-family:var(--kendo-font-family, inherit);font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);position:relative;overflow:hidden;display:block;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-scrollview-wrap{position:absolute;margin:0;padding:0;height:100%;width:100%;display:flex;flex-flow:row nowrap;cursor:default;white-space:nowrap}.k-scrollview-wrap>.k-scrollview-view{display:inline-block;overflow:hidden;flex-shrink:0}.k-scrollview-wrap img{-webkit-user-select:none;user-select:none}.k-scrollview-wrap.k-scrollview-animate{width:calc(var(--kendo-scrollview-views, 1)*100%);transition-duration:.3s;transition-timing-function:ease-in-out;transform:translateX(calc(-100%/var(--kendo-scrollview-views, 1)*(var(--kendo-scrollview-current, 1) - 1)))}.k-scrollview-wrap.k-scrollview-animate .k-scrollview-view{width:calc(100%/var(--kendo-scrollview-views, 1));flex:0 0 calc(100%/var(--kendo-scrollview-views, 1))}:is([dir=rtl],.k-rtl) .k-scrollview-wrap.k-scrollview-animate{transform:translateX(calc(100%/var(--kendo-scrollview-views, 1)*(var(--kendo-scrollview-current, 1) - 1)))}.k-scrollview-nav-wrap{padding:0;margin:0;position:absolute;left:0;right:0;bottom:0;height:calc(10px + var(--kendo-spacing-5, 1.25rem)*2);text-align:center}kendo-scrollview.k-scrollview kendo-scrollview-pager{pointer-events:none}kendo-scrollview.k-scrollview .k-scrollview-nav{pointer-events:initial}.k-scrollview-nav{margin:0;padding:var(--kendo-spacing-5, 1.25rem);max-width:100%;box-sizing:border-box;line-height:0;text-align:center;white-space:nowrap;list-style:none;display:inline-flex;align-items:center;overflow-x:scroll;overflow-y:hidden;pointer-events:initial}.k-scrollview-nav:focus{outline:none}.k-scrollview-nav>.k-link{margin-block:0;margin-inline:calc(var(--kendo-spacing-5, 1.25rem)/2);padding:0;width:10px;height:10px;border-width:0px;border-style:solid;border-radius:50%;box-sizing:content-box;display:inline-block;position:relative;flex:0 0 auto;cursor:pointer;pointer-events:all;vertical-align:top}.k-scrollview-nav>.k-link::before{content:"";width:calc(10px + var(--kendo-spacing-5, 1.25rem));height:calc(10px + var(--kendo-spacing-5, 1.25rem));display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:initial;border-radius:0}.k-scrollview-next,.k-scrollview-prev{display:table;position:absolute;padding:0;height:60%;top:20%;text-decoration:none;-webkit-user-select:none;user-select:none;cursor:pointer}.k-scrollview-next .k-icon,.k-scrollview-prev .k-icon{display:table-cell;overflow:visible;margin:0;padding:0;vertical-align:middle;font-weight:normal}.k-scrollview-prev{inset-inline-start:0}.k-scrollview-next{inset-inline-end:0}.k-scrollview-animation{transition-duration:.3s;transition-timing-function:ease-in-out}.k-scrollview{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-scrollview.k-scrollview-dark kendo-scrollview-pager,.k-scrollview.k-scrollview-dark .k-scrollview-nav-wrap{background-color:rgba(0,0,0,.4)}.k-scrollview.k-scrollview-dark .k-scrollview-next,.k-scrollview.k-scrollview-dark .k-scrollview-prev{color:rgba(0,0,0,.4)}.k-scrollview.k-scrollview-light kendo-scrollview-pager,.k-scrollview.k-scrollview-light .k-scrollview-nav-wrap{background-color:hsla(0,0%,100%,.4)}.k-scrollview:focus,.k-scrollview-wrap:focus{outline:none}.k-scrollview-elements{color:#fff}.k-scrollview-next,.k-scrollview-prev{color:#fff;background-color:rgba(0,0,0,0);text-shadow:rgba(0,0,0,.3) 0 0 15px;opacity:.7;outline-width:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-scrollview-next:focus,.k-scrollview-next.k-focus,.k-scrollview-prev:focus,.k-scrollview-prev.k-focus{color:#fff;opacity:1}.k-scrollview-next:focus .k-icon::before,.k-scrollview-next.k-focus .k-icon::before,.k-scrollview-prev:focus .k-icon::before,.k-scrollview-prev.k-focus .k-icon::before{box-shadow:0 0 0 2px rgba(0,0,0,.13)}.k-scrollview-next:hover,.k-scrollview-next.k-hover,.k-scrollview-prev:hover,.k-scrollview-prev.k-hover{color:#fff;opacity:1}.k-scrollview-nav>.k-link{background:var(--kendo-color-base, #f5f5f5);border:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-scrollview-nav>.k-link.k-primary{background:var(--kendo-color-primary, #1274AC);border:var(--kendo-color-primary, #1274AC)}.k-scrollview-nav>.k-link:focus,.k-scrollview-nav>.k-link.k-focus{box-shadow:0 0 0 2px rgba(0,0,0,.13)}.k-scrollview-nav>.k-link:hover,.k-scrollview-nav>.k-link.k-hover{box-shadow:0 0 0 2px rgba(0,0,0,.13)}.k-prompt{display:flex;flex-direction:column;position:relative;overflow:hidden}.k-prompt .k-toolbar{border-top-width:0;border-inline-width:0}.k-prompt-content{padding-block:var(--kendo-spacing-4, 1rem);padding-inline:var(--kendo-spacing-4, 1rem);display:flex;flex-flow:column nowrap;flex:1 1 auto;gap:var(--kendo-spacing-4, 1rem);overflow:auto}.k-prompt-view{display:flex;flex-direction:column;flex:1 1 auto;gap:var(--kendo-spacing-4, 1rem)}.k-prompt-expander{display:flex;flex-direction:column;flex:1;align-items:flex-start;gap:var(--kendo-spacing-2, 0.5rem)}.k-prompt-expander-content{display:flex;flex-flow:column;flex:0 0 auto;gap:var(--kendo-spacing-2, 0.5rem);align-self:stretch}.k-prompt-suggestion{border-width:1px;border-style:solid;border-radius:var(--kendo-border-radius-md, 0.25rem);padding-block:var(--kendo-spacing-2, 0.5rem);padding-inline:var(--kendo-spacing-2, 0.5rem);cursor:pointer}.k-prompt-setting{display:flex;flex-direction:column}.k-prompt-actions.k-actions,.k-prompt-actions.k-edit-buttons,.k-prompt-actions.k-action-buttons,.k-prompt-actions.k-columnmenu-actions,.k-prompt-actions.k-form-buttons{margin:0}.k-prompt{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-prompt-header{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-prompt-content{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-prompt-suggestion{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-app-surface, #ffffff);box-shadow:var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-map{height:600px;box-sizing:border-box;border-width:0px;border-style:solid;font-size:var(--kendo-font-size, inherit);line-height:var(--kendo-line-height, normal);font-family:var(--kendo-font-family, inherit)}.k-map *,.k-map *::before,.k-map *::after{box-sizing:border-box}.k-map .km-scroll-wrapper{width:100%;height:100%;-webkit-user-select:none;user-select:none;position:absolute}.k-map .km-scroll-container{height:100%}.k-map .k-touch-scrollbar{display:none}.k-map .k-layer{position:absolute;left:0;top:0}.k-map .k-marker{transform:translate(-50%, -100%);cursor:pointer;position:absolute;overflow:visible}.k-map .k-attribution{padding-block:var(--kendo-spacing-0\.5, 0.125rem);padding-inline:var(--kendo-spacing-1, 0.25rem);border-width:0;font-size:calc(var(--kendo-font-size, inherit)*0.75);z-index:1000}.k-map-controls{position:absolute;display:flex;align-items:center}.k-navigator{margin:var(--kendo-spacing-4, 1rem);width:calc(48px + var(--kendo-spacing-0\.5, 0.125rem)*2);height:calc(48px + var(--kendo-spacing-0\.5, 0.125rem)*2);border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;position:relative}.k-navigator .k-button{padding:0;width:auto;height:auto;line-height:1;box-shadow:none;position:absolute}.k-navigator .k-button .k-icon{min-width:0;min-height:0}.k-navigator .k-navigator-n,.k-navigator .k-navigator-up{transform:translateX(-50%);top:var(--kendo-spacing-0\.5, 0.125rem);left:50%}.k-navigator .k-navigator-e,.k-navigator .k-navigator-right{transform:translateY(-50%);right:var(--kendo-spacing-0\.5, 0.125rem);top:50%}.k-navigator .k-navigator-s,.k-navigator .k-navigator-down{transform:translateX(-50%);bottom:var(--kendo-spacing-0\.5, 0.125rem);left:50%}.k-navigator .k-navigator-w,.k-navigator .k-navigator-left{transform:translateY(-50%);left:var(--kendo-spacing-0\.5, 0.125rem);top:50%}.k-zoom-control{margin:var(--kendo-spacing-4, 1rem);border:0;background:none;display:flex}.k-pdf-export .k-navigator,.k-pdf-export .k-zoom-control{display:none}.k-map{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-map .k-navigator{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-base, #424242);background-color:var(--kendo-color-base, #f5f5f5)}.k-map .k-marker{color:var(--kendo-color-primary, #1274AC)}.k-map .k-attribution{background-color:color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 80%, transparent)}.k-orgchart{width:100%;padding-block:var(--kendo-spacing-6, 1.5rem);padding-inline:var(--kendo-spacing-6, 1.5rem);box-sizing:border-box;font-size:var(--kendo-font-size, inherit);font-family:var(--kendo-font-family, inherit);line-height:var(--kendo-line-height, normal);overflow:auto}.k-orgchart *,.k-orgchart *::before,.k-orgchart *::after{box-sizing:border-box}.k-orgchart-container{margin-block:0;margin-inline:auto;width:100%;height:100%;position:relative}.k-orgchart-group{gap:var(--kendo-spacing-6, 1.5rem)}.k-orgchart-group.k-vstack>.k-orgchart-node-container,.k-orgchart-group.k-vbox>.k-orgchart-node-container{gap:0}.k-orgchart-node-container{gap:var(--kendo-spacing-6, 1.5rem)}.k-orgchart-node-group-container{border-radius:var(--kendo-border-radius-md, 0.25rem);padding-block:var(--kendo-spacing-6, 1.5rem);padding-inline:var(--kendo-spacing-6, 1.5rem);border-width:1px;border-style:solid;outline:0}.k-orgchart-node-group-title{margin:0 0 calc(var(--kendo-spacing-6, 1.5rem)/3);font-size:var(--kendo-font-size-lg, inherit);line-height:var(--kendo-line-height-sm, normal)}.k-orgchart-node-group-subtitle{margin:0 0 var(--kendo-spacing-6, 1.5rem);font-size:var(--kendo-font-size, inherit)}.k-orgchart-card{width:300px;border-width:1px}.k-orgchart-card .k-card-title{margin:0 0 var(--kendo-spacing-0, 0px)}.k-orgchart-card .k-card-subtitle{margin:0 0 var(--kendo-spacing-0, 0px)}.k-orgchart-card .k-card-body{border-width:2px 0 0;border-style:solid;flex-grow:0}.k-orgchart-card .k-card-body .k-card-title-wrap{margin:0 var(--kendo-spacing-6, 1.5rem)/2 0 0;min-width:0;min-height:45px}.k-orgchart-line{background-color:currentColor}.k-orgchart-line-h{height:1px}.k-orgchart-line-v{margin-block:0;margin-inline:auto;width:1px;height:var(--kendo-spacing-6, 1.5rem)}.k-orgchart-button{z-index:1}.k-orgchart{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface-alt, #ffffff)}.k-orgchart-card .k-card-body{border-color:rgba(0,0,0,0)}.k-orgchart-card:focus,.k-orgchart-card.k-focus{box-shadow:var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))}.k-orgchart-node-group-container{border-color:var(--kendo-color-border, rgba(0, 0, 0, 0.08));color:var(--kendo-color-on-app-surface, #424242);background-color:var(--kendo-color-surface, #fafafa)}.k-orgchart-node-group-container:focus,.k-orgchart-node-group-container.k-focus{box-shadow:var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12));border-color:rgba(0,0,0,.15)}.k-orgchart-node-group-subtitle{color:var(--kendo-color-subtle, #666666)}.k-orgchart-line-h,.k-orgchart-line-v{color:var(--kendo-color-border, rgba(0, 0, 0, 0.08))}.k-signature{width:250px;min-height:84px;position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}.k-signature.k-signature-maximized{width:750px;height:252px}.k-signature.k-signature-maximized>.k-signature-line{border-bottom-width:3px}.k-signature-actions{display:flex;width:min-content;margin-inline-start:auto;gap:var(--kendo-spacing-1, 0.25rem);z-index:2}.k-signature-canvas{position:absolute;top:0;left:0;width:100%;height:100%;display:block;z-index:1;outline:none}.k-signature-line{position:absolute;bottom:33%;z-index:2;pointer-events:none;border-bottom-width:1px;border-bottom-style:dashed}.k-signature-sm{padding-inline:var(--kendo-spacing-0\.5, 0.125rem);padding-block:var(--kendo-spacing-0\.5, 0.125rem)}.k-signature-sm .k-signature-line{width:calc(100% - var(--kendo-spacing-0\.5, 0.125rem)*2)}.k-signature-md{padding-inline:var(--kendo-spacing-1, 0.25rem);padding-block:var(--kendo-spacing-1, 0.25rem)}.k-signature-md .k-signature-line{width:calc(100% - var(--kendo-spacing-1, 0.25rem)*2)}.k-signature-lg{padding-inline:var(--kendo-spacing-2, 0.5rem);padding-block:var(--kendo-spacing-2, 0.5rem)}.k-signature-lg .k-signature-line{width:calc(100% - var(--kendo-spacing-2, 0.5rem)*2)}.k-signature-lg{min-height:110px}.k-signature .k-signature-line{border-bottom-color:color-mix(in srgb, var(--kendo-color-info, #0058E9) 24%, transparent)}

			`)
			.appendTo("head");























/** 
 * Kendo UI v2020.3.1021 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.core.min",["jquery"],e)}(function(){return function(e,t,n){function i(){}function o(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=e.charAt(0),i=e.substring(1);return"="===n?"+("+i+")+":":"===n?"+$kendoHtmlEncode("+i+")+":";"+e+";$kendoOutput+="}function r(e,t,n){return e+="",t=t||2,n=t-e.length,n?j[t].substring(0,n)+e:e}function a(e){var t=e.css(be.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(Ie)||[0,0,0,0,0]:[0,0,0,0,0],i=Se.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(n,i){var o,r,a,s,d,c,u=De.browser,h=be._outerWidth,p=be._outerHeight,f=n.parent(),m=h(t);return f.removeClass("k-animation-container-sm"),f.hasClass("k-animation-container")?l(n,i):(r=n[0].style.width,a=n[0].style.height,s=Ae.test(r),d=Ae.test(a),c=n.hasClass("k-tooltip")||n.is(".k-menu-horizontal.k-context-menu"),o=s||d,!s&&(!i||i&&r||c)&&(r=i?h(n)+1:h(n)),(!d&&(!i||i&&a)||n.is(".k-menu-horizontal.k-context-menu"))&&(a=p(n)),n.wrap(e("<div/>").addClass("k-animation-container").css({width:r,height:a})),f=n.parent(),o&&n.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),m<h(f)&&(f.addClass("k-animation-container-sm"),l(n,i)),u.msie&&Se.floor(u.version)<=7&&(n.css({zoom:1}),n.children(".k-menu").width(n.width())),f}function l(e,t){var n,i=be._outerWidth,o=be._outerHeight,r=e.parent(".k-animation-container"),a=r[0].style;r.is(":hidden")&&r.css({display:"",position:""}),n=Ae.test(a.width)||Ae.test(a.height),n||r.css({width:t?i(e)+1:i(e),height:o(e),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})}function d(e){var t=1,n=arguments.length;for(t=1;t<n;t++)c(e,arguments[t]);return e}function c(e,n){var i,o,r,a,s,l=be.data.ObservableArray,d=be.data.LazyObservableArray,u=be.data.DataSource,h=be.data.HierarchicalDataSource;for(i in n)o=n[i],r=typeof o,a=r===ze&&null!==o?o.constructor:null,!a||a===Array||a===l||a===d||a===u||a===h||a===RegExp||be.isFunction(t.ArrayBuffer)&&a===ArrayBuffer?r!==He&&(e[i]=o):o instanceof Date?e[i]=new Date(o.getTime()):P(o.clone)?e[i]=o.clone():(s=e[i],e[i]=typeof s===ze?s||{}:{},c(e[i],o));return e}function u(e,t,i){for(var o in t)if(t.hasOwnProperty(o)&&t[o].test(e))return o;return i!==n?i:e}function h(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})}function p(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function f(t,n){var i,o={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){o[t]=i.getPropertyValue(t)})):(i=t.currentStyle,n&&e.each(n,function(e,t){o[t]=i[p(t)]})),be.size(o)||(o=i),o}function m(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=f(e,["overflow"]).overflow;return"auto"==t||"scroll"==t}function g(t,i){var o,r,a=De.browser.webkit,s=De.browser.mozilla,l=De.browser.version;return t instanceof e&&i!==n?(t.each(function(e,t){g(t,i)}),n):(o=t instanceof e?t[0]:t)?(r=De.isRtl(t),i===n?r&&a&&(l<85||De.browser.safari)?o.scrollWidth-o.clientWidth-o.scrollLeft:Math.abs(o.scrollLeft):(o.scrollLeft=r&&a&&(l<85||De.browser.safari)?o.scrollWidth-o.clientWidth-i:r&&(s||a)&&i>0?-i:i,n)):n}function v(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function _(e,n,i){var o,r,a;return n||(n="offset"),o=e[n](),r={top:o.top,right:o.right,bottom:o.bottom,left:o.left},De.browser.msie&&(De.pointers||De.msPointers)&&!i&&(a=De.isRtl(e)?1:-1,r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset+a*document.documentElement.scrollLeft),r}function b(e){var t={};return ke("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function w(e){return new be.effects.Element(e)}function k(e,t,n,i){return typeof e===Fe&&(P(t)&&(i=t,t=400,n=!1),P(n)&&(i=n,n=!1),typeof t===Le&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),we({effects:{},duration:400,reverse:!1,init:Ce,teardown:Ce,hide:!1},e,{completeCallback:e.complete,complete:Ce})}function y(t,n,i,o,r){for(var a,s=0,l=t.length;s<l;s++)a=e(t[s]),a.queue(function(){G.promise(a,k(n,i,o,r))});return t}function x(e,t,n,i){return t&&(t=t.split(" "),ke(t,function(t,n){e.toggleClass(n,i)})),e}function C(e){return(""+e).replace($,"&amp;").replace(K,"&lt;").replace(X,"&gt;").replace(Y,"&quot;").replace(Q,"&#39;")}function S(e){var n;try{n=t.decodeURIComponent(e)}catch(i){n=e.replace(/%u([\dA-F]{4})|%([\dA-F]{2})/gi,function(e,t,n){return String.fromCharCode(parseInt("0x"+(t||n),16))})}return n}function T(e,t){var i;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(ae,"-$1"),i=e.getAttribute("data-"+be.ns+t),null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:Me.test(i)&&"mask"!=t?i=parseFloat(i):oe.test(i)&&!re.test(i)&&(i=Function("return ("+i+")")()),i}function D(t,i,o){var r,a,s={},l=t.getAttribute("data-"+be.ns+"role");for(r in i)a=T(t,r),a!==n&&(ie.test(r)&&"drawer"!=l&&("string"==typeof a?e("#"+a).length?a=be.template(e("#"+a).html()):o&&(a=be.template(o[a])):a=t.getAttribute(r)),s[r]=a);return s}function A(t,n){return e.contains(t,n)?-1:1}function E(){var t=e(this);return e.inArray(t.attr("data-"+be.ns+"role"),["slider","rangeslider","breadcrumb"])>-1||t.is(":visible")}function I(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&M(e)}function M(t){return e.expr.pseudos.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function R(e,t){return new R.fn.init(e,t)}var F,P,z,B,L,H,N,O,V,W,U,j,q,G,$,K,Y,Q,X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge,ve,_e,be=t.kendo=t.kendo||{cultures:{}},we=e.extend,ke=e.each,ye=e.isArray,xe=e.proxy,Ce=e.noop,Se=Math,Te=t.JSON||{},De={},Ae=/%/,Ee=/\{(\d+)(:[^\}]+)?\}/g,Ie=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,Me=/^(\+|-?)\d+(\.?)\d*$/,Re="function",Fe="string",Pe="number",ze="object",Be="null",Le="boolean",He="undefined",Ne={},Oe={},Ve=[].slice,We=function(){var e,t,i,o,r,a,s=arguments[0]||{},l=1,d=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"==typeof s||jQuery.isFunction(s)||(s={}),l===d&&(s=this,l--);l<d;l++)if(null!=(r=arguments[l]))for(o in r)"filters"!=o&&"concat"!=o&&":"!=o&&(e=s[o],i=r[o],s!==i&&(c&&i&&(jQuery.isPlainObject(i)||(t=jQuery.isArray(i)))?(t?(t=!1,a=e&&jQuery.isArray(e)?e:[]):a=e&&jQuery.isPlainObject(e)?e:{},s[o]=We(c,a,i)):i!==n&&(s[o]=i)));return s};be.version="2020.3.1021".replace(/^\s+|\s+$/g,""),i.extend=function(e){var t,n,i=function(){},o=this,r=e&&e.init?e.init:function(){o.apply(this,arguments)};i.prototype=o.prototype,n=r.fn=r.prototype=new i;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?we(!0,{},i.prototype[t],e[t]):e[t];return n.constructor=r,r.extend=o.extend,r},i.prototype._initOptions=function(e){this.options=d({},this.options,e)},P=be.isFunction=function(e){return"function"==typeof e},z=function(){this._defaultPrevented=!0},B=function(){return this._defaultPrevented===!0},L=i.extend({init:function(){this._events={}},bind:function(e,t,i){var o,r,a,s,l,d=this,c=typeof e===Fe?[e]:e,u=typeof t===Re;if(t===n){for(o in e)d.bind(o,e[o]);return d}for(o=0,r=c.length;o<r;o++)e=c[o],s=u?t:t[e],s&&(i&&(a=s,s=function(){d.unbind(e,s),a.apply(d,arguments)},s.original=a),l=d._events[e]=d._events[e]||[],l.push(s));return d},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,o,r,a=this,s=typeof e===Fe?[e]:e,l=typeof t===Re;for(n=0,i=s.length;n<i;n++)e=s[n],o=l?t:t[e],o&&(r=a._events[e]=a._events[e]||[],r.unshift(o));return a},trigger:function(e,t){var n,i,o=this,r=o._events[e];if(r){for(t=t||{},t.sender=o,t._defaultPrevented=!1,t.preventDefault=z,t.isDefaultPrevented=B,r=r.slice(),n=0,i=r.length;n<i;n++)r[n].call(o,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var i,o=this,r=o._events[e];if(e===n)o._events={};else if(r)if(t)for(i=r.length-1;i>=0;i--)r[i]!==t&&r[i].original!==t||r.splice(i,1);else o._events[e]=[];return o}}),H=/^\w+/,N=/\$\{([^}]*)\}/g,O=/\\\}/g,V=/__CURLY__/g,W=/\\#/g,U=/__SHARP__/g,j=["","0","00","000","0000"],F={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,o="";for(n=0,i=t.length;n<i;n++)o+=e(t[n]);return o},compile:function(e,t){var n,i,r,a=we({},this,t),s=a.paramName,l=s.match(H)[0],d=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(P(e))return e;for(c+=d?"with("+s+"){":"",c+="$kendoOutput=",i=e.replace(O,"__CURLY__").replace(N,"#=$kendoHtmlEncode($1)#").replace(V,"}").replace(W,"__SHARP__").split("#"),r=0;r<i.length;r++)c+=o(i[r],r%2===0);c+=d?";}":";",c+="return $kendoOutput;",c=c.replace(U,"#");try{return n=Function(l,c),n._slotCount=Math.floor(i.length/2),n}catch(u){throw Error(be.format("Invalid template:'{0}' Generated code:'{1}'",e,c))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===Fe?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(r,a){var s,d,c,u,h,p,f=n,m=a[r];if(m&&typeof m===ze&&typeof m.toJSON===Re&&(m=m.toJSON(r)),typeof o===Re&&(m=o.call(a,r,m)),p=typeof m,p===Fe)return e(m);if(p===Pe)return isFinite(m)?m+"":Be;if(p===Le||p===Be)return m+"";if(p===ze){if(!m)return Be;if(n+=i,h=[],"[object Array]"===l.apply(m)){for(u=m.length,s=0;s<u;s++)h[s]=t(s,m)||Be;return c=0===h.length?"[]":n?"[\n"+n+h.join(",\n"+n)+"\n"+f+"]":"["+h.join(",")+"]",n=f,c}if(o&&typeof o===ze)for(u=o.length,s=0;s<u;s++)typeof o[s]===Fe&&(d=o[s],c=t(d,m),c&&h.push(e(d)+(n?": ":":")+c));else for(d in m)Object.hasOwnProperty.call(m,d)&&(c=t(d,m),c&&h.push(e(d)+(n?": ":":")+c));return c=0===h.length?"{}":n?"{\n"+n+h.join(",\n"+n)+"\n"+f+"}":"{"+h.join(",")+"}",n=f,c}}var n,i,o,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l={}.toString;typeof Date.prototype.toJSON!==Re&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?r(e.getUTCFullYear(),4)+"-"+r(e.getUTCMonth()+1)+"-"+r(e.getUTCDate())+"T"+r(e.getUTCHours())+":"+r(e.getUTCMinutes())+":"+r(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof Te.stringify!==Re&&(Te.stringify=function(e,r,a){var s;if(n="",i="",typeof a===Pe)for(s=0;s<a;s+=1)i+=" ";else typeof a===Fe&&(i=a);if(o=r,r&&typeof r!==Re&&(typeof r!==ze||typeof r.length!==Pe))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===Fe){var t=be.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function i(e){return e&&(e=t(e)),e||be.cultures.current}function o(e,t,o){o=i(o);var a=o.calendars.standard,s=a.days,l=a.months;return t=a.patterns[t]||t,t.replace(c,function(t){var i,o,d;return"d"===t?o=e.getDate():"dd"===t?o=r(e.getDate()):"ddd"===t?o=s.namesAbbr[e.getDay()]:"dddd"===t?o=s.names[e.getDay()]:"M"===t?o=e.getMonth()+1:"MM"===t?o=r(e.getMonth()+1):"MMM"===t?o=l.namesAbbr[e.getMonth()]:"MMMM"===t?o=l.names[e.getMonth()]:"yy"===t?o=r(e.getFullYear()%100):"yyyy"===t?o=r(e.getFullYear(),4):"h"===t?o=e.getHours()%12||12:"hh"===t?o=r(e.getHours()%12||12):"H"===t?o=e.getHours():"HH"===t?o=r(e.getHours()):"m"===t?o=e.getMinutes():"mm"===t?o=r(e.getMinutes()):"s"===t?o=e.getSeconds():"ss"===t?o=r(e.getSeconds()):"f"===t?o=Se.floor(e.getMilliseconds()/100):"ff"===t?(o=e.getMilliseconds(),o>99&&(o=Se.floor(o/10)),o=r(o)):"fff"===t?o=r(e.getMilliseconds(),3):"tt"===t?o=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(i=e.getTimezoneOffset(),d=i<0,o=(""+Se.abs(i/60)).split(".")[0],i=Se.abs(i)-60*o,o=(d?"+":"-")+r(o),o+=":"+r(i)):"zz"!==t&&"z"!==t||(o=e.getTimezoneOffset()/60,d=o<0,o=(""+Se.abs(o)).split(".")[0],o=(d?"+":"-")+("zz"===t?r(o):o)),o!==n?o:t.slice(1,t.length-1)})}function a(e,t,o){var r,a,d,c,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U,j,q,G,$,K,Y;if(o=i(o),r=o.numberFormat,a=r[m],d=r.decimals,c=r.pattern[0],w=[],T=e<0,M=f,R=f,G=-1,e===n)return f;if(!isFinite(e))return e;if(!t)return o.name.length?e.toLocaleString():""+e;if(S=u.exec(t)){if(t=S[1].toLowerCase(),y="c"===t,x="p"===t,(y||x)&&(r=y?r.currency:r.percent,a=r[m],d=r.decimals,k=r.symbol,c=r.pattern[T?0:1]),C=S[2],C&&(d=+C),"e"===t)return K=C?e.toExponential(d):e.toExponential(),K.replace(m,r[m]);if(x&&(e*=100),e=l(e,d),T=e<0,e=e.split(m),D=e[0],A=e[1],T&&(D=D.substring(1)),R=s(D,0,D.length,r),A&&(R+=a+A),"n"===t&&!T)return R;for(e=f,F=0,P=c.length;F<P;F++)z=c.charAt(F),e+="n"===z?R:"$"===z||"%"===z?k:z;return e}if((t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(h,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return w.push(n),b})),t=t.split(";"),T&&t[1])t=t[1],L=!0;else if(0===e&&t[2]){if(t=t[2],t.indexOf(v)==-1&&t.indexOf(_)==-1)return t}else t=t[0];if(U=t.indexOf("%"),j=t.indexOf("$"),x=U!=-1,y=j!=-1,x&&(e*=100),y&&"\\"===t[j-1]&&(t=t.split("\\").join(""),y=!1),(y||x)&&(r=y?r.currency:r.percent,a=r[m],d=r.decimals,k=r.symbol),B=t.indexOf(g)>-1,B&&(t=t.replace(p,f)),H=t.indexOf(m),P=t.length,H!=-1)if(A=(""+e).split("e"),A=A[1]?l(e,Math.abs(A[1])):A[0],A=A.split(m)[1]||f,O=t.lastIndexOf(_)-H,N=t.lastIndexOf(v)-H,V=O>-1,W=N>-1,F=A.length,V||W||(t=t.substring(0,H)+t.substring(H+1),P=t.length,H=-1,F=0),V&&O>N)F=O;else if(N>O)if(W&&F>N){for(Y=l(e,N,T);Y.charAt(Y.length-1)===_&&N>0&&N>O;)N--,Y=l(e,N,T);F=N}else V&&F<O&&(F=O);if(e=l(e,F,T),N=t.indexOf(v),q=O=t.indexOf(_),G=N==-1&&O!=-1?O:N!=-1&&O==-1?N:N>O?O:N,N=t.lastIndexOf(v),O=t.lastIndexOf(_),$=N==-1&&O!=-1?O:N!=-1&&O==-1?N:N>O?N:O,G==P&&($=G),G!=-1){for(R=(""+e).split(m),D=R[0],A=R[1]||f,E=D.length,I=A.length,T&&e*-1>=0&&(T=!1),e=t.substring(0,G),T&&!L&&(e+="-"),F=G;F<P;F++){if(z=t.charAt(F),H==-1){if($-F<E){e+=D;break}}else if(O!=-1&&O<F&&(M=f),H-F<=E&&H-F>-1&&(e+=D,F=H),H===F){e+=(A?a:f)+A,F+=$-H+1;continue}z===_?(e+=z,M=z):z===v&&(e+=M)}if(B&&(e=s(e,G+(T&&!L?1:0),Math.max($,E+G),r)),$>=G&&(e+=t.substring($+1)),y||x){for(R=f,F=0,P=e.length;F<P;F++)z=e.charAt(F),R+="$"===z||"%"===z?k:z;e=R}if(P=w.length)for(F=0;F<P;F++)e=e.replace(b,w[F])}return e}var s,l,d,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,u=/^(n|c|p|e)(\d*)$/i,h=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,p=/\,/g,f="",m=".",g=",",v="#",_="0",b="??",w="en-US",k={}.toString;be.cultures["en-US"]={name:w,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"US Dollar",abbr:"USD",pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},be.culture=function(e){var i,o=be.cultures;return e===n?o.current:(i=t(e)||o[w],i.calendar=i.calendars.standard,o.current=i,n)},be.findCulture=t,be.getCulture=i,be.culture(w),s=function(e,t,i,o){var r,a,s,l,d,c,u=e.indexOf(o[m]),h=o.groupSize.slice(),p=h.shift();if(i=u!==-1?u:i+1,r=e.substring(t,i),a=r.length,a>=p){for(s=a,l=[];s>-1;)if(d=r.substring(s-p,s),d&&l.push(d),s-=p,c=h.shift(),p=c!==n?c:p,0===p){s>0&&l.push(r.substring(0,s));break}r=l.reverse().join(o[g]),e=e.substring(0,t)+r+e.substring(i)}return e},l=function(e,t,n){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),n&&(e=-e),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(Math.min(t,20))},d=function(e,t,i){if(t){if("[object Date]"===k.call(e))return o(e,t,i);if(typeof e===Pe)return a(e,t,i)}return e!==n?e:""},be.format=function(e){var t=arguments;return e.replace(Ee,function(e,n,i){var o=t[parseInt(n,10)+1];return d(o,i?i.substring(1):"")})},be._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},be._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},be._round=l,be._outerWidth=function(t,n){return e(t).outerWidth(n||!1)||0},be._outerHeight=function(t,n){return e(t).outerHeight(n||!1)||0},be.toString=d}(),function(){function t(e,t,n){return!(e>=t&&e<=n)}function i(e){return e.charAt(0)}function o(t){return e.map(t,i)}function r(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];t<n;t++)i[t]=(e[t]+"").toLowerCase();return i}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function l(e,i,a,l){if(!e)return null;var d,c,u,h,p,g,v,_,b,k,y,x,C,S=function(e){for(var t=0;i[L]===e;)t++,L++;return t>0&&(L-=1),t},T=function(t){var n=w[t]||RegExp("^\\d{1,"+t+"}"),i=e.substr(H,t).match(n);return i?(i=i[0],H+=i.length,parseInt(i,10)):null},D=function(t,n){for(var i,o,r,a=0,s=t.length,l=0,d=0;a<s;a++)i=t[a],o=i.length,r=e.substr(H,o),n&&(r=r.toLowerCase()),r==i&&o>l&&(l=o,d=a);return l?(H+=l,d+1):null},A=function(){var t=!1;return e.charAt(H)===i[L]&&(H++,t=!0),t},E=a.calendars.standard,I=null,M=null,R=null,F=null,P=null,z=null,B=null,L=0,H=0,N=!1,O=new Date,V=E.twoDigitYearMax||2029,W=O.getFullYear();for(i||(i="d"),h=E.patterns[i],h&&(i=h),i=i.split(""),u=i.length;L<u;L++)if(d=i[L],N)"'"===d?N=!1:A();else if("d"===d){if(c=S("d"),E._lowerDays||(E._lowerDays=s(E.days)),null!==R&&c>2)continue;if(R=c<3?T(2):D(E._lowerDays[3==c?"namesAbbr":"names"],!0),null===R||t(R,1,31))return null}else if("M"===d){if(c=S("M"),E._lowerMonths||(E._lowerMonths=s(E.months)),M=c<3?T(2):D(E._lowerMonths[3==c?"namesAbbr":"names"],!0),null===M||t(M,1,12))return null;M-=1}else if("y"===d){if(c=S("y"),I=T(c),null===I)return null;2==c&&("string"==typeof V&&(V=W+parseInt(V,10)),I=W-W%100+I,I>V&&(I-=100))}else if("h"===d){if(S("h"),F=T(2),12==F&&(F=0),null===F||t(F,0,11))return null}else if("H"===d){if(S("H"),F=T(2),null===F||t(F,0,23))return null}else if("m"===d){if(S("m"),P=T(2),null===P||t(P,0,59))return null}else if("s"===d){if(S("s"),z=T(2),null===z||t(z,0,59))return null}else if("f"===d){if(c=S("f"),C=e.substr(H,c).match(w[3]),B=T(c),null!==B&&(B=parseFloat("0."+C[0],10),B=be._round(B,3),B*=1e3),null===B||t(B,0,999))return null}else if("t"===d){if(c=S("t"),_=E.AM,b=E.PM,1===c&&(_=o(_),b=o(b)),p=D(b),!p&&!D(_))return null}else if("z"===d){if(g=!0,c=S("z"),"Z"===e.substr(H,1)){A();continue}if(v=e.substr(H,6).match(c>2?m:f),!v)return null;if(v=v[0].split(":"),k=v[0],y=v[1],!y&&k.length>3&&(H=k.length-2,y=k.substring(H),k=k.substring(0,H)),k=parseInt(k,10),t(k,-12,13))return null;if(c>2&&(y=v[0][0]+y,y=parseInt(y,10),isNaN(y)||t(y,-59,59)))return null}else if("'"===d)N=!0,A();else if(!A())return null;return l&&!/^\s*$/.test(e.substr(H))?null:(x=null!==F||null!==P||z||null,null===I&&null===M&&null===R&&x?(I=W,M=O.getMonth(),R=O.getDate()):(null===I&&(I=W),null===R&&(R=1)),p&&F<12&&(F+=12),g?(k&&(F+=-k),y&&(P+=-y),e=new Date(Date.UTC(I,M,R,F,P,z,B))):(e=new Date(I,M,R,F,P,z,B),r(e,F)),I<100&&e.setFullYear(I),e.getDate()!==R&&g===n?null:e)}function d(e){var t="-"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60*parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),t*e}function c(e){var t,n,i,o=Se.max(_.length,b.length),r=e.calendar||e.calendars.standard,a=r.patterns,s=[];for(i=0;i<o;i++){for(t=_[i],n=0;n<t.length;n++)s.push(a[t[n]]);s=s.concat(b[i])}return s}function u(e,t,n,i){var o,r,a,s;if("[object Date]"===k.call(e))return e;if(o=0,r=null,e&&0===e.indexOf("/D")&&(r=g.exec(e)))return r=r[1],s=v.exec(r.substring(1)),r=new Date(parseInt(r,10)),s&&(s=d(s[0]),r=be.timezone.apply(r,0),r=be.timezone.convert(r,0,-1*s)),r;for(n=be.getCulture(n),t||(t=c(n)),t=ye(t)?t:[t],a=t.length;o<a;o++)if(r=l(e,t[o],n,i))return r;return r}var h=/\u00A0/g,p=/[eE][\-+]?[0-9]+/,f=/[+|\-]\d{1,2}/,m=/[+|\-]\d{1,2}:?\d{2}/,g=/^\/Date\((.*?)\)\/$/,v=/[+-]\d*/,_=[[],["G","g","F"],["D","d","y","m","T","t"]],b=[["yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:ss.fff","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss"],["yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm","yyyy/MM/dd HH:mm"],["yyyy/MM/dd","yyyy-MM-dd","HH:mm:ss","HH:mm"]],w={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},k={}.toString;be.parseDate=function(e,t,n){return u(e,t,n,!1)},be.parseExactDate=function(e,t,n){return u(e,t,n,!0)},be.parseInt=function(e,t){var n=be.parseFloat(e,t);return n&&(n=0|n),n},be.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Pe)return e;e=""+e,t=be.getCulture(t);var i,o,r=t.numberFormat,a=r.percent,s=r.currency,l=s.symbol,d=a.symbol,c=e.indexOf("-");return p.test(e)?(e=parseFloat(e.replace(r["."],".")),isNaN(e)&&(e=null),e):c>0?null:(c=c>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf("c")>-1?(r=s,i=r.pattern[0].replace("$",l).split("n"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],"").replace(i[1],""),c=!0)):e.indexOf(d)>-1&&(o=!0,r=a,l=d),e=e.replace("-","").replace(l,"").replace(h," ").split(r[","].replace(h," ")).join("").replace(r["."],"."),e=parseFloat(e),isNaN(e)?e=null:c&&(e*=-1),e&&o&&(e/=100),e)}}(),function(){var i,o,r,a,s,l,d,c,h,p,f,m;De._scrollbar=n,De.scrollbar=function(e){if(isNaN(De._scrollbar)||e){var t,n=document.createElement("div");return n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML="&nbsp;",document.body.appendChild(n),De._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return De._scrollbar},De.isRtl=function(t){return e(t).closest(".k-rtl").length>0},i=document.createElement("table");try{i.innerHTML="<tr><td></td></tr>",De.tbodyInnerHtml=!0}catch(g){De.tbodyInnerHtml=!1}De.touch="ontouchstart"in t,o=document.documentElement.style,r=De.transitions=!1,a=De.transforms=!1,s="HTMLElement"in t?HTMLElement.prototype:[],De.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in o||"msPerspective"in o,De.cssFlexbox="flexWrap"in o||"WebkitFlexWrap"in o||"msFlexWrap"in o,ke(["Moz","webkit","O","ms"],function(){var e,t=""+this,n=typeof i.style[t+"Transition"]===Fe;if(n||typeof i.style[t+"Transform"]===Fe)return e=t.toLowerCase(),a={css:"ms"!=e?"-"+e+"-":"",prefix:t,event:"o"===e||"webkit"===e?e:""},n&&(r=a,r.event=r.event?r.event+"TransitionEnd":"transitionend"),!1}),i=null,De.transforms=a,De.transitions=r,De.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{De.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,De.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(g){De.screenWidth=t.screen.availWidth,De.screenHeight=t.screen.availHeight}De.detectOS=function(e){var n,i,o=!1,r=[],a=!/mobile safari/i.test(e),s={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},l={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},d={tablet:/playbook|ipad|fire/i},c={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(i in s)if(s.hasOwnProperty(i)&&(r=e.match(s[i]))){if("windows"==i&&"plugins"in navigator)return!1;o={},o.device=i,o.tablet=u(i,d,!1),o.browser=u(e,c,"default"),o.name=u(i,l),o[o.name]=!0,o.majorVersion=r[2],o.minorVersion=(r[3]||"0").replace("_","."),n=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+n+Array(3-(n.length<3?n.length:2)).join("0"),o.cordova=typeof t.PhoneGap!==He||typeof t.cordova!==He,o.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||o.cordova,o.android&&(De.devicePixelRatio<1.5&&o.flatVersion<400||a)&&(De.screenWidth>800||De.screenHeight>800)&&(o.tablet=i);break}return o},l=De.mobileOS=De.detectOS(navigator.userAgent),De.wpDevicePixelRatio=l.wp?screen.width/320:0,De.hasNativeScrolling=!1,(l.ios||l.android&&l.majorVersion>2||l.wp)&&(De.hasNativeScrolling=l),De.delayedClick=function(){if(De.touch){if(l.ios)return!0;if(l.android)return!De.browser.chrome||!(De.browser.version<32)&&!(e("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i)}return!1},De.mouseAndTouchPresent=De.touch&&!(De.mobileOS.ios||De.mobileOS.android),De.detectBrowser=function(e){var t,n=!1,i=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(t in o)if(o.hasOwnProperty(t)&&(i=e.match(o[t]))){n={},n[t]=!0,n[i[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||i[2],10);break}return n},De.browser=De.detectBrowser(navigator.userAgent),De.detectClipboardAccess=function(){var e={copy:!!document.queryCommandSupported&&document.queryCommandSupported("copy"),cut:!!document.queryCommandSupported&&document.queryCommandSupported("cut"),paste:!!document.queryCommandSupported&&document.queryCommandSupported("paste")};return De.browser.chrome&&(e.paste=!1,De.browser.version>=43&&(e.copy=!0,e.cut=!0)),e},De.clipboard=De.detectClipboardAccess(),De.zoomLevel=function(){var e,n,i;try{return e=De.browser,n=0,i=document.documentElement,e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!De.touch&&(n=De.scrollbar()),De.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(o){return 1}},De.cssBorderSpacing=n!==o.borderSpacing&&!(De.browser.msie&&De.browser.version<8),function(t){var n="",i=e(document.documentElement),o=parseInt(t.version,10);t.msie?n="ie":t.mozilla?n="ff":t.safari?n="safari":t.webkit?n="webkit":t.opera?n="opera":t.edge&&(n="edge"),n&&(n="k-"+n+" k-"+n+o),De.mobileOS&&(n+=" k-mobile"),De.cssFlexbox||(n+=" k-no-flexbox"),i.addClass(n)}(De.browser),De.eventCapture=document.documentElement.addEventListener,d=document.createElement("input"),De.placeholder="placeholder"in d,De.propertyChangeEvent="onpropertychange"in d,De.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,i="test",o={},r=0;r<n;r++)e=t[r],d.setAttribute("type",e),d.value=i,o[e.replace("-","")]="text"!==d.type&&d.value!==i;return o}(),d.style.cssText="float:left;",De.cssFloat=!!d.style.cssFloat,d=null,De.stableSort=function(){var e,t=513,n=[{index:0,field:"b"}];for(e=1;e<t;e++)n.push({index:e,field:"a"});return n.sort(function(e,t){return e.field>t.field?1:e.field<t.field?-1:0}),1===n[0].index}(),De.matchesSelector=s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.matchesSelector||s.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),i=n.length;i--;)if(n[i]==this)return!0;return!1},De.matchMedia="matchMedia"in t,De.pushState=t.history&&t.history.pushState,c=document.documentMode,De.hashChange="onhashchange"in t&&!(De.browser.msie&&(!c||c<=8)),De.customElements="registerElement"in t.document,h=De.browser.chrome,p=De.browser.crios,f=De.browser.mozilla,m=De.browser.safari,De.msPointers=!h&&t.MSPointerEvent,De.pointers=!h&&!p&&!f&&!m&&t.PointerEvent,De.kineticScrollNeeded=l&&(De.touch||De.msPointers||De.pointers)}(),q={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},G={},e.extend(G,{enabled:!0,Element:function(t){this.element=e(t)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),G.promiseShim=G.promise,"kendoAnimate"in e.fn||we(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return y(this,e,t,n,i)},kendoAddClass:function(e,t){return be.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return be.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return be.toggleClass(this,e,t,n)}}),$=/&/g,K=/</g,Y=/"/g,Q=/'/g,X=/>/g,Z=function(e){return e.target},De.touch&&(Z=function(e){var t="originalEvent"in e?e.originalEvent.changedTouches:"changedTouches"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},ke(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),De.touch?De.mobileOS?(De.mousedown="touchstart",De.mouseup="touchend",De.mousemove="touchmove",De.mousecancel="touchcancel",De.click="touchend",De.resize="orientationchange"):(De.mousedown="mousedown touchstart",De.mouseup="mouseup touchend",De.mousemove="mousemove touchmove",De.mousecancel="mouseleave touchcancel",De.click="click",De.resize="resize"):De.pointers?(De.mousemove="pointermove",De.mousedown="pointerdown",De.mouseup="pointerup",De.mousecancel="pointercancel",De.click="pointerup",De.resize="orientationchange resize"):De.msPointers?(De.mousemove="MSPointerMove",De.mousedown="MSPointerDown",De.mouseup="MSPointerUp",De.mousecancel="MSPointerCancel",De.click="MSPointerUp",De.resize="orientationchange resize"):(De.mousemove="mousemove",De.mousedown="mousedown",De.mouseup="mouseup",De.mousecancel="mouseleave",De.click="click",De.resize="resize"),J=function(e,t){var n,i,o,r,a=t||"d",s=1;for(i=0,o=e.length;i<o;i++)r=e[i],""!==r&&(n=r.indexOf("["),0!==n&&(n==-1?r="."+r:(s++,r="."+r.substring(0,n)+" || {})"+r.substring(n))),s++,a+=r+(i<o-1?" || {})":")"));return Array(s).join("(")+a},ee=/^([a-z]+:)?\/\//i,we(be,{widgets:[],_widgetRegisteredCallbacks:[],ui:be.ui||{},fx:be.fx||w,effects:be.effects||G,mobile:be.mobile||{},data:be.data||{},dataviz:be.dataviz||{},drawing:be.drawing||{},spreadsheet:{messages:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:be.support||De,animate:be.animate||y,ns:"",attr:function(e){return"data-"+be.ns+e},getShadows:a,wrap:s,deepExtend:d,getComputedStyles:f,isScrollable:m,scrollLeft:g,
size:v,toCamelCase:p,toHyphens:h,getOffset:be.getOffset||_,parseEffects:be.parseEffects||b,toggleClass:be.toggleClass||x,directions:be.directions||q,Observable:L,Class:i,Template:F,template:xe(F.compile,F),render:xe(F.render,F),stringify:xe(Te.stringify,Te),eventTarget:Z,htmlEncode:C,unescape:S,isLocalUrl:function(e){return e&&!ee.test(e)},expr:function(e,t,n){return e=e||"",typeof t==Fe&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),t?(e=e.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"'),e=e.replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'"),e=J(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return Ne[n]=Ne[n]||Function("d","return "+be.expr(e,t))},setter:function(e){return Oe[e]=Oe[e]||Function("d,value",be.expr(e)+"=value")},accessor:function(e){return{get:be.getter(e),set:be.setter(e)}},guid:function(){var e,t,n="";for(e=0;e<32;e++)t=16*Se.random()|0,8!=e&&12!=e&&16!=e&&20!=e||(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+be.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(" ");if(n)for(t=0;t<n.length;t++)"view"!=n[t]&&(n[t]=n[t].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return n.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},onWidgetRegistered:function(e){for(var t=0,n=be.widgets.length;t<n;t++)e(be.widgets[t]);be._widgetRegisteredCallbacks.push(e)},logToConsole:function(e,i){var o=t.console;!be.suppressLog&&n!==o&&o.log&&o[i||"log"](e)}}),te=L.extend({init:function(e,t){var n,i,o=this;o.element=be.jQuery(e).handler(o),o.angular("init",t),L.fn.init.call(o),n=t?t.dataSource:null,t&&(i=(o.componentTypes||{})[(t||{}).componentType]),n&&(t=we({},t,{dataSource:{}})),t=o.options=we(!0,{},o.options,o.defaults,i||{},t),n&&(t.dataSource=n),o.element.attr(be.attr("role"))||o.element.attr(be.attr("role"),(t.name||"").toLowerCase()),o.element.data("kendo"+t.prefix+t.name,o),o.bind(o.events,t)},events:[],options:{prefix:""},_hasBindingTarget:function(){return!!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(t){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,i=0,o=n.events.length;i<o;i++)t=n.events[i],n.options[t]&&e[t]&&(n.unbind(t,n.options[t]),n._events&&n._events[t]&&delete n._events[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger("resize",t))},getSize:function(){return be.dimensions(this.element)},size:function(e){return e?(this.setSize(e),n):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(e){this._muteRebind=!0,e.call(this),this._muteRebind=!1}}),ne=te.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var n=this;n.angular(t,function(){return{elements:n.items(),data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})}}),be.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},be.notify=Ce,ie=/template$/i,oe=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,re=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/,ae=/([A-Z])/g,be.initWidget=function(i,o,r){var a,s,l,d,c,u,h,p,f,m,g,v,_;if(r?r.roles&&(r=r.roles):r=be.ui.roles,i=i.nodeType?i:i[0],u=i.getAttribute("data-"+be.ns+"role")){f=u.indexOf(".")===-1,l=f?r[u]:be.getter(u)(t),g=e(i).data(),v=l?"kendo"+l.fn.options.prefix+l.fn.options.name:"",m=f?RegExp("^kendo.*"+u+"$","i"):RegExp("^"+v+"$","i");for(_ in g)if(_.match(m)){if(_!==v)return g[_];a=g[_]}if(l){for(p=T(i,"dataSource"),o=e.extend({},D(i,e.extend({},l.fn.options,l.fn.defaults)),o),p&&(o.dataSource=typeof p===Fe?be.getter(p)(t):p),d=0,c=l.fn.events.length;d<c;d++)s=l.fn.events[d],h=T(i,s),h!==n&&(o[s]=be.getter(h)(t));return a?e.isEmptyObject(o)||a.setOptions(o):a=new l(i,o),a}}},be.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[be.ui,be.dataviz.ui]),t=0,n=e.length;t<n;t++)i[t]=e[t].roles;return we.apply(null,[{}].concat(i.reverse()))},be.init=function(t){var n=be.rolesFromNamespaces(Ve.call(arguments,1));e(t).find("[data-"+be.ns+"role]").addBack().each(function(){be.initWidget(this,{},n)})},be.destroy=function(t){e(t).find("[data-"+be.ns+"role]").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf("kendo")&&typeof n[t].destroy===Re&&n[t].destroy()})},be.resize=function(t,n){var i,o=e(t).find("[data-"+be.ns+"role]").addBack().filter(E);o.length&&(i=e.makeArray(o),i.sort(A),e.each(i,function(){var t=be.widgetInstance(e(this));t&&t.resize(n)}))},be.parseOptions=D,we(be.ui,{Widget:te,DataBoundWidget:ne,roles:{},progress:function(t,n,i){var o,r,a,s,l,d=t.find(".k-loading-mask"),c=be.support,u=c.browser;i=e.extend({},{width:"100%",height:"100%",top:t.scrollTop(),opacity:!1},i),l=i.opacity?"k-loading-mask k-opaque":"k-loading-mask",n?d.length||(o=c.isRtl(t),r=o?"right":"left",s=be.scrollLeft(t),a=u.webkit&&o?t[0].scrollWidth-t.width()-2*s:0,d=e(be.format("<div class='{0}'><span class='k-loading-text'>{1}</span><div class='k-loading-image'></div><div class='k-loading-color'></div></div>",l,be.ui.progress.messages.loading)).width(i.width).height(i.height).css("top",i.top).css(r,Math.abs(s)+a).prependTo(t)):d&&d.remove()},plugin:function(t,i,o){var r,a,s,l,d=t.fn.options.name;for(i=i||be.ui,o=o||"",i[d]=t,i.roles[d.toLowerCase()]=t,r="getKendo"+o+d,d="kendo"+o+d,a={name:d,widget:t,prefix:o||""},be.widgets.push(a),s=0,l=be._widgetRegisteredCallbacks.length;s<l;s++)be._widgetRegisteredCallbacks[s](a);e.fn[d]=function(i){var o,r=this;return typeof i===Fe?(o=Ve.call(arguments,1),this.each(function(){var t,a,s=e.data(this,d);if(!s)throw Error(be.format("Cannot call method '{0}' of {1} before it is initialized",i,d));if(t=s[i],typeof t!==Re)throw Error(be.format("Cannot find method '{0}' of {1}",i,d));if(a=t.apply(s,o),a!==n)return r=a,!1})):this.each(function(){return new t(this,i)}),r},e.fn[d].widget=t,e.fn[r]=function(){return this.data(d)}}}),be.ui.progress.messages={loading:"Loading..."},se={bind:function(){return this},nullObject:!0,options:{}},le=te.extend({init:function(e,t){te.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){te.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(be.roleSelector("view splitview modalview drawer"));return be.widgetInstance(e,be.mobile.ui)||se},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(be.roleSelector("view layout modalview drawer splitview"));return be.widgetInstance(e.eq(0),be.mobile.ui)||se}}),we(be.mobile,{init:function(e){be.init(e,be.mobile.ui,be.ui,be.dataviz.ui)},appLevelNativeScrolling:function(){return be.mobile.application&&be.mobile.application.options&&be.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:le,DataBoundWidget:ne.extend(le.prototype),roles:{},plugin:function(e){be.ui.plugin(e,be.mobile.ui,"Mobile")}}}),d(be.dataviz,{init:function(e){be.init(e,be.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){be.ui.plugin(e,be.dataviz.ui)}},roles:{}}),be.touchScroller=function(t,n){return n||(n={}),n.useNative=!0,e(t).map(function(t,i){return i=e(i),!(!De.kineticScrollNeeded||!be.mobile.ui.Scroller||i.data("kendoMobileScroller"))&&(i.kendoMobileScroller(n),i.data("kendoMobileScroller"))})[0]},be.preventDefault=function(e){e.preventDefault()},be.widgetInstance=function(e,n){var i,o,r,a,s,l=e.data(be.ns+"role"),d=[],c=e.data("kendoView");if(l){if("content"===l&&(l="scroller"),"editortoolbar"===l&&(r=e.data("kendoEditorToolbar")))return r;if("view"===l&&c)return c;if(n)if(n[0])for(i=0,o=n.length;i<o;i++)d.push(n[i].roles[l]);else d.push(n.roles[l]);else d=[be.ui.roles[l],be.dataviz.ui.roles[l],be.mobile.ui.roles[l]];for(l.indexOf(".")>=0&&(d=[be.getter(l)(t)]),i=0,o=d.length;i<o;i++)if(a=d[i],a&&(s=e.data("kendo"+a.fn.options.prefix+a.fn.options.name)))return s}},be.onResize=function(n){var i=n;return De.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(De.resize,i),i},be.unbindResize=function(n){e(t).off(De.resize,n)},be.attrValue=function(e,t){return e.data(be.ns+t)},be.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr.pseudos,{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return I(t,!isNaN(n)&&n>-1)}}),de=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],ce="label, input, [data-rel=external]",ue={setupMouseMute:function(){var t,n=0,i=de.length,o=document.documentElement;if(!ue.mouseTrap&&De.eventCapture)for(ue.mouseTrap=!0,ue.bustClick=!1,ue.captureMouse=!1,t=function(t){ue.captureMouse&&("click"===t.type?ue.bustClick&&!e(t.target).is(ce)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};n<i;n++)o.addEventListener(de[n],t,!0)},muteMouse:function(e){ue.captureMouse=!0,e.data.bustClick&&(ue.bustClick=!0),clearTimeout(ue.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(ue.mouseTrapTimeoutID),ue.mouseTrapTimeoutID=setTimeout(function(){ue.captureMouse=!1,ue.bustClick=!1},400)}},he={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},De.touch&&(De.mobileOS.ios||De.mobileOS.android)?he={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:De.pointers?he={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:De.msPointers&&(he={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!De.msPointers||"onmspointerenter"in t||e.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var i,o=this,r=t.relatedTarget,a=t.handleObj;return r&&(r===o||e.contains(o,r))||(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=n),i}}}),pe=function(e){return he[e]||e},fe=/([^ ]+)/g,be.applyEventMap=function(e,t){return e=e.replace(fe,pe),t&&(e=e.replace(fe,"$1."+t)),e},be.keyDownHandler=function(e,t){var n,i,o=t._events.kendoKeydown;if(!o)return!0;for(o=o.slice(),e.sender=t,e.preventKendoKeydown=!1,n=0,i=o.length;n<i;n++)o[n].call(t,e);return!e.preventKendoKeydown},me=e.fn.on,We(!0,R,e),R.fn=R.prototype=new e,R.fn.constructor=R,R.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof R)&&(n=R(n)),e.fn.init.call(this,t,n,ge)},R.fn.init.prototype=R.fn,ge=R(document),we(R.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||be.guid()),this},on:function(){var e,t,n,i,o,r,a,s,l=this,d=l.data("kendoNS");return 1===arguments.length?me.call(l,arguments[0]):(e=l,t=Ve.call(arguments),typeof t[t.length-1]===He&&t.pop(),n=t[t.length-1],i=be.applyEventMap(t[0],d),De.mouseAndTouchPresent&&i.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(ue.setupMouseMute(),o=2===t.length?null:t[1],r=i.indexOf("click")>-1&&i.indexOf("touchend")>-1,me.call(this,{touchstart:ue.muteMouse,touchend:ue.unMuteMouse},o,{bustClick:r})),arguments[0].indexOf("keydown")!==-1&&t[1]&&t[1].options?(t[0]=i,a=t[1],s=t[t.length-1],t[t.length-1]=function(e){if(be.keyDownHandler(e,a))return s.apply(this,[e])},me.apply(l,t),l):(typeof n===Fe&&(e=l.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,me.apply(l,t),l))},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),be.jQuery=R,be.eventMap=he,be.timezone=function(){function e(e,t){var n,i,o,r=t[3],a=t[4],s=t[5],l=t[8];return l||(t[8]=l={}),l[e]?l[e]:(isNaN(a)?0===a.indexOf("last")?(n=new Date(Date.UTC(e,c[r]+1,1,s[0]-24,s[1],s[2],0)),i=u[a.substr(4,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o-(i>o?7:0))):a.indexOf(">=")>=0?(n=new Date(Date.UTC(e,c[r],a.substr(5),s[0],s[1],s[2],0)),i=u[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o+(i<o?7:0))):a.indexOf("<=")>=0&&(n=new Date(Date.UTC(e,c[r],a.substr(5),s[0],s[1],s[2],0)),i=u[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o-(i>o?7:0))):n=new Date(Date.UTC(e,c[r],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var o,r,a,s;return(n=n[i])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return t<=a&&(n>=a||t==a&&"only"==n||"max"==n)}),n.push(t),n.sort(function(t,n){return"number"!=typeof t&&(t=+e(a,t)),"number"!=typeof n&&(n=+e(a,n)),t-n}),s=n[jQuery.inArray(t,n)-1]||n[n.length-1],isNaN(s)?s:null):(o=i.split(":"),r=0,o.length>1&&(r=60*o[0]+ +o[1]),[-1e6,"max","-","Jan",1,[0,0,0],r,"-"])}function n(e,t,n){var i,o,r,a=t[n];if("string"==typeof a&&(a=t[a]),!a)throw Error('Timezone "'+n+'" is either incorrect, or kendo.timezones.min.js is not included.');for(i=a.length-1;i>=0&&(o=a[i][3],!(o&&e>o));i--);if(r=a[i+1],!r)throw Error('Timezone "'+n+'" not found on '+e+".");return r}function i(e,i,o,r){typeof e!=Pe&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,i,r);return{zone:a,rule:t(e,o,a[1])}}function o(e,t){var n,o,r;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=i(e,this.zones,this.rules,t),o=n.zone,r=n.rule,be.parseFloat(r?o[0]-r[6]:o[0]))}function r(e,t){var n=i(e,this.zones,this.rules,t),o=n.zone,r=n.rule,a=o[2];return a.indexOf("/")>=0?a.split("/")[r&&+r[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",r&&"-"!=r[7]?r[7]:""):a}function a(e,t,n){var i,o,r,a=n;return typeof t==Fe&&(t=this.offset(e,t)),typeof n==Fe&&(n=this.offset(e,n)),o=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),r=e.getTimezoneOffset(),typeof a==Fe&&(a=this.offset(e,a)),i=r-o+(n-a),new Date(e.getTime()+6e4*i)}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function l(e,t){return this.convert(e,t,e.getTimezoneOffset())}function d(e){return this.apply(new Date(e),"Etc/UTC")}var c={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},u={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:o,convert:a,apply:s,remove:l,abbr:r,toLocalDate:d}}(),be.date=function(){function e(e,t){return 0===t&&23===e.getHours()&&(e.setHours(e.getHours()+2),!0)}function t(t,n,i){var o=t.getHours();i=i||1,n=(n-t.getDay()+7*i)%7,t.setDate(t.getDate()+n),e(t,o)}function i(e,n,i){return e=new Date(e),t(e,n,i),e}function o(e){return new Date(e.getFullYear(),e.getMonth(),1)}function r(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=o(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t}function a(e,t){return 1!==t?f(i(e,t,-1),4):f(e,4-(e.getDay()||7))}function s(e,t){var n=new Date(e.getFullYear(),0,1,(-6)),i=a(e,t),o=i.getTime()-n.getTime(),r=Math.floor(o/k);return 1+Math.floor(r/7)}function l(e,t){var i,o,r;return t===n&&(t=be.culture().calendar.firstDay),i=f(e,-7),o=f(e,7),r=s(e,t),0===r?s(i,t)+1:53===r&&s(o,t)>1?1:r}function d(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function c(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function u(e){return b(e).getTime()-d(b(e))}function h(e,t,n){var i,o=u(t),r=u(n);return!e||o==r||(t>=n&&(n+=k),i=u(e),o>i&&(i+=k),r<o&&(r+=k),i>=o&&i<=r)}function p(e,t,n){var i,o=t.getTime(),r=n.getTime();return o>=r&&(r+=k),i=e.getTime(),i>=o&&i<=r}function f(t,n){var i=t.getHours();return t=new Date(t),m(t,n*k),e(t,i),t}function m(e,t,n){var i,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-o,e.setTime(e.getTime()+i*w))}function g(t,n){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e(t,n.getHours()),t}function v(){return d(new Date)}function _(e){return d(e).getTime()==v().getTime()}function b(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}var w=6e4,k=864e5;return{adjustDST:e,dayOfWeek:i,setDayOfWeek:t,getDate:d,isInDateRange:p,isInTimeRange:h,isToday:_,nextDay:function(e){return f(e,1)},previousDay:function(e){return f(e,-1)},toUtcTime:c,MS_PER_DAY:k,MS_PER_HOUR:60*w,MS_PER_MINUTE:w,setTime:m,setHours:g,addDays:f,today:v,toInvariantTime:b,firstDayOfMonth:o,lastDayOfMonth:r,weekInYear:l,getMilliseconds:u}}(),be.stripWhitespace=function(e){var t,n,i;if(document.createNodeIterator)for(t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode);else for(n=0;n<e.childNodes.length;n++)i=e.childNodes[n],3!=i.nodeType||/\S/.test(i.nodeValue)||(e.removeChild(i),n--),1==i.nodeType&&be.stripWhitespace(i)},ve=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},be.animationFrame=function(e){ve.call(t,e)},_e=[],be.queueAnimation=function(e){_e[_e.length]=e,1===_e.length&&be.runNextAnimation()},be.runNextAnimation=function(){be.animationFrame(function(){_e[0]&&(_e.shift()(),_e[0]&&be.runNextAnimation())})},be.parseQueryStringParams=function(e){for(var t=e.split("?")[1]||"",n={},i=t.split(/&|=/),o=i.length,r=0;r<o;r+=2)""!==i[r]&&(n[decodeURIComponent(i[r])]=decodeURIComponent(i[r+1]));return n},be.elementUnderCursor=function(e){if(n!==e.x.client)return document.elementFromPoint(e.x.client,e.y.client)},be.wheelDeltaY=function(e){var t,i=e.originalEvent,o=i.wheelDeltaY;return i.wheelDelta?(o===n||o)&&(t=i.wheelDelta):i.detail&&i.axis===i.VERTICAL_AXIS&&(t=10*-i.detail),t},be.throttle=function(e,t){var i,o,r=0;return!t||t<=0?e:(o=function(){function o(){e.apply(a,l),r=+new Date}var a=this,s=+new Date-r,l=arguments;return r?(i&&clearTimeout(i),s>t?o():i=setTimeout(o,t-s),n):o()},o.cancel=function(){clearTimeout(i)},o)},be.caret=function(t,i,o){var r,a,s,l,d,c=i!==n;if(o===n&&(o=i),t[0]&&(t=t[0]),!c||!t.disabled){try{t.selectionStart!==n?c?(t.focus(),a=De.mobileOS,a.wp||a.android?setTimeout(function(){t.setSelectionRange(i,o)},0):t.setSelectionRange(i,o)):i=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(":visible")&&t.focus(),r=t.createTextRange(),c?(r.collapse(!0),r.moveStart("character",i),r.moveEnd("character",o-i),r.select()):(s=r.duplicate(),r.moveToBookmark(document.selection.createRange().getBookmark()),s.setEndPoint("EndToStart",r),l=s.text.length,d=l+r.text.length,i=[l,d]))}catch(u){i=[]}return i}},be.compileMobileDirective=function(e,n){var i=t.angular;return e.attr("data-"+be.ns+"role",e[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),i.element(e).injector().invoke(["$compile",function(t){t(e)(n),/^\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),be.widgetInstance(e,be.mobile.ui)},be.antiForgeryTokens=function(){var t={},i=e("meta[name=csrf-token],meta[name=_csrf]").attr("content"),o=e("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){t[this.name]=this.value}),o!==n&&i!==n&&(t[o]=i),t},be.cycleForm=function(e){function t(e){var t=be.widgetInstance(e);t&&t.focus?t.focus():e.focus()}var n=e.find("input, .k-widget").first(),i=e.find("button, .k-button").last();i.on("keydown",function(e){e.keyCode!=be.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on("keydown",function(e){e.keyCode==be.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(i))})},be.focusElement=function(n){var i=[],o=n.parentsUntil("body").filter(function(e,t){var n=be.getComputedStyles(t,["overflow"]);return"visible"!==n.overflow}).add(t);o.each(function(t,n){i[t]=e(n).scrollTop()});try{n[0].setActive()}catch(r){n[0].focus()}o.each(function(t,n){e(n).scrollTop(i[t])})},be.focusNextElement=function(){var t,n,i;document.activeElement&&(t=e(":kendoFocusable"),n=t.index(document.activeElement),n>-1&&(i=t[n+1]||t[0],i.focus()))},be.trim=function(e){return e?(""+e).trim():""},be.getWidgetFocusableElement=function(t){var n,i=t.closest(":kendoFocusable"),o=be.widgetInstance(t);return n=i.length?i:o?"Editor"===o.options.name?e(o.body):o.wrapper.find(":kendoFocusable").first():t},be.addAttribute=function(e,t,n){var i=e.attr(t)||"";i.indexOf(n)<0&&e.attr(t,(i+" "+n).trim())},be.removeAttribute=function(e,t,n){var i=e.attr(t)||"";e.attr(t,i.replace(n,"").trim())},be.toggleAttribute=function(e,t,n){var i=e.attr(t)||"";i.indexOf(n)<0?be.addAttribute(e,t,n):be.removeAttribute(e,t,n)},be.matchesMedia=function(e){var n=be._bootstrapToMedia(e)||e;return De.matchMedia&&t.matchMedia(n).matches},be._bootstrapToMedia=function(e){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[e]},be.fileGroupMap={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],"disc-image":[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]},be.getFileGroup=function(e,t){var i,o,r=be.fileGroupMap,a=Object.keys(r),s="file";if(e===n||!e.length)return s;for(i=0;i<a.length;i+=1)if(o=r[a[i]],o.indexOf(e.toLowerCase())>-1)return t?"file-"+a[i]:a[i];return s},be.getFileSizeMessage=function(e){var t,n=["Bytes","KB","MB","GB","TB"];return 0===e?"0 Byte":(t=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10),Math.round(e/Math.pow(1024,t),2)+" "+n[t])},be.selectorFromClasses=function(e){return"."+e.split(" ").join(".")},be.whenAll=function(t){function n(e,t,n){return function(){n!=o&&d++,s.notifyWith(t[e]=this,n[e]=Array.prototype.slice.call(arguments)),--a||s[(d?"reject":"resolve")+"With"](t,n)}}for(var i,o=1==arguments.length&&e.isArray(t)?t:Array.prototype.slice.call(arguments),r=o.length,a=r,s=e.Deferred(),l=0,d=0,c=Array(r),u=Array(r),h=Array(r);l<r;l++)(i=o[l])&&e.isFunction(i.promise)?i.promise().done(n(l,h,o)).fail(n(l,c,u)):(s.notifyWith(this,i),--a);return a||s.resolveWith(h,o),s.promise()},function(){function n(t,n,i,o){var r,a,s=e("<form>").attr({action:i,method:"POST",target:o}),l=be.antiForgeryTokens();l.fileName=n,r=t.split(";base64,"),l.contentType=r[0].replace("data:",""),l.base64=r[1];for(a in l)l.hasOwnProperty(a)&&e("<input>").attr({value:l[a],name:a,type:"hidden"}).appendTo(s);s.appendTo("body").submit().remove()}function i(e,t){var n,i,o,r,a,s=e;if("string"==typeof e){for(n=e.split(";base64,"),i=n[0],o=atob(n[1]),r=new Uint8Array(o.length),a=0;a<o.length;a++)r[a]=o.charCodeAt(a);s=new Blob([r.buffer],{type:i})}navigator.msSaveBlob(s,t)}function o(e,n){t.Blob&&e instanceof Blob&&(e=URL.createObjectURL(e)),r.download=n,r.href=e;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(i),setTimeout(function(){URL.revokeObjectURL(e)})}var r=document.createElement("a"),a="download"in r&&!be.support.browser.edge;be.saveAs=function(e){var t=n;e.forceProxy||(a?t=o:navigator.msSaveBlob&&(t=i)),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}}(),be.proxyModelSetters=function(e){var t={};return Object.keys(e||{}).forEach(function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t,e.dirty=!0}})}),t},function(){be.defaults=be.defaults||{},be.setDefaults=function(e,t){var i=e.split("."),o=be.defaults;e=i.pop(),i.forEach(function(e){o[e]===n&&(o[e]={}),o=o[e]}),o[e]=t.constructor===Object?d({},o[e],t):t}}()}(jQuery,window),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.router.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t){if(!t)return e;e+"/"===t&&(e=t);var n=RegExp("^"+t,"i");return n.test(e)||(e=t+"/"+e),p.protocol+"//"+(p.host+"/"+e).replace(/\/\/+/g,"/")}function i(e){return e?"#!":"#"}function o(e){var t=p.href;return"#!"===e&&t.indexOf("#")>-1&&t.indexOf("#!")<0?null:t.split(e)[1]||""}function r(e,t){return 0===t.indexOf(e)?t.substr(e.length).replace(/\/\//g,"/"):t}function a(e){return e.replace(/^(#)?/,"#")}function s(e){return e.replace(/^(#(!)?)?/,"#!")}var l=window.kendo,d="change",c="back",u="same",h=l.support,p=window.location,f=window.history,m=50,g=l.support.browser.msie,v=/^#*/,_=window.document,b=l.Class.extend({back:function(){g?setTimeout(function(){f.back()}):f.back()},forward:function(){g?setTimeout(function(){f.forward()}):f.forward()},length:function(){return f.length},replaceLocation:function(e){p.replace(e)}}),w=b.extend({init:function(e){this.root=e},navigate:function(e){f.pushState({},_.title,n(e,this.root))},replace:function(e){f.replaceState({},_.title,n(e,this.root))},normalize:function(e){return r(this.root,e)},current:function(){var e=p.pathname;return p.search&&(e+=p.search),r(this.root,e)},change:function(t){e(window).bind("popstate.kendo",t)},stop:function(){e(window).unbind("popstate.kendo")},normalizeCurrent:function(e){var t,r=e.root,a=p.pathname,s=o(i(e.hashBang));r===a+"/"&&(t=r),r===a&&s&&(t=n(s.replace(v,""),r)),t&&f.pushState({},_.title,t)}}),k=b.extend({init:function(e){this._id=l.guid(),this.prefix=i(e),this.fix=e?s:a},navigate:function(e){p.hash=this.fix(e)},replace:function(e){this.replaceLocation(this.fix(e))},normalize:function(e){return e.indexOf(this.prefix)<0?e:e.split(this.prefix)[1]},change:function(t){h.hashChange?e(window).on("hashchange."+this._id,t):this._interval=setInterval(t,m)},stop:function(){e(window).off("hashchange."+this._id),clearInterval(this._interval)},current:function(){return o(this.prefix)},normalizeCurrent:function(e){var t=p.pathname,n=e.root;return!(!e.pushState||n===t)&&(this.replaceLocation(n+this.prefix+r(n,t)),!0)}}),y=l.Observable.extend({start:function(t){if(t=t||{},this.bind([d,c,u],t),!this._started){this._started=!0,t.root=t.root||"/";var n,i=this.createAdapter(t);i.normalizeCurrent(t)||(n=i.current(),e.extend(this,{adapter:i,root:t.root,historyLength:i.length(),current:n,locations:[n]}),i.change(e.proxy(this,"_checkUrl")))}},createAdapter:function(e){return h.pushState&&e.pushState?new w(e.root):new k(e.hashBang)},stop:function(){this._started&&(this.adapter.stop(),this.unbind(d),this._started=!1)},change:function(e){this.bind(d,e)},replace:function(e,t){this._navigate(e,t,function(t){t.replace(e),this.locations[this.locations.length-1]=this.current})},navigate:function(e,n){return"#:back"===e?(this.backCalled=!0,this.adapter.back(),t):(this._navigate(e,n,function(t){t.navigate(e),this.locations.push(this.current)}),t)},_navigate:function(e,n,i){var o=this.adapter;return e=o.normalize(e),this.current===e||this.current===decodeURIComponent(e)?(this.trigger(u),t):(!n&&this.trigger(d,{url:e,decode:!1})||(this.current=e,i.call(this,o),this.historyLength=o.length()),t)},_checkUrl:function(){var e=this.adapter,n=e.current(),i=e.length(),o=this.historyLength===i,r=n===this.locations[this.locations.length-2]&&o,a=this.backCalled,s=this.current;return null===n||this.current===n||this.current===decodeURIComponent(n)||(this.historyLength=i,this.backCalled=!1,this.current=n,r&&this.trigger("back",{url:s,to:n})?(e.forward(),this.current=s,t):this.trigger(d,{url:n,backButtonPressed:!a})?(r?e.forward():(e.back(),this.historyLength--),this.current=s,t):(r?this.locations.pop():this.locations.push(n),t))}});l.History=y,l.History.HistoryAdapter=b,l.History.HashAdapter=k,l.History.PushStateAdapter=w,l.absoluteURL=n,l.history=new y}(window.kendo.jQuery),function(){function e(e,t){return t?e:"([^/]+)"}function t(t,n){return RegExp("^"+t.replace(f,"\\$&").replace(u,"(?:$1)?").replace(h,e).replace(p,"(.*?)")+"$",n?"i":"")}function n(e){return e.replace(/(\?.*)|(#.*)/g,"")}var i=window.kendo,o=i.history,r=i.Observable,a="init",s="routeMissing",l="change",d="back",c="same",u=/\((.*?)\)/g,h=/(\(\?)?:\w+/g,p=/\*\w+/g,f=/[\-{}\[\]+?.,\\\^$|#\s]/g,m=i.Class.extend({init:function(e,n,i){e instanceof RegExp||(e=t(e,i)),this.route=e,this._callback=n},callback:function(e,t,o){var r,a,s=0,l=i.parseQueryStringParams(e);if(l._back=t,e=n(e),r=this.route.exec(e).slice(1),a=r.length,o)for(;s<a;s++)void 0!==r[s]&&(r[s]=decodeURIComponent(r[s]));r.push(l),this._callback.apply(null,r)},worksWith:function(e,t,i){return!!this.route.test(n(e))&&(this.callback(e,t,i),!0)}}),g=r.extend({init:function(e){e||(e={}),r.fn.init.call(this),this.routes=[],this.pushState=e.pushState,this.hashBang=e.hashBang,this.root=e.root,this.ignoreCase=e.ignoreCase!==!1,this.bind([a,s,l,c,d],e)},destroy:function(){o.unbind(l,this._urlChangedProxy),o.unbind(c,this._sameProxy),o.unbind(d,this._backProxy),this.unbind()},start:function(){var e,t=this,n=function(){t._same()},i=function(e){t._back(e)},r=function(e){t._urlChanged(e)};o.start({same:n,change:r,back:i,pushState:t.pushState,hashBang:t.hashBang,root:t.root}),e={url:o.current||"/",preventDefault:$.noop},t.trigger(a,e)||t._urlChanged(e),this._urlChangedProxy=r,this._backProxy=i},route:function(e,t){this.routes.push(new m(e,t,this.ignoreCase))},navigate:function(e,t){i.history.navigate(e,t)},replace:function(e,t){i.history.replace(e,t)},_back:function(e){this.trigger(d,{url:e.url,to:e.to})&&e.preventDefault()},_same:function(){this.trigger(c)},_urlChanged:function(e){var t,n,o,r,a=e.url,d=!!e.decode,c=e.backButtonPressed;if(a||(a="/"),this.trigger(l,{url:e.url,params:i.parseQueryStringParams(e.url),backButtonPressed:c}))return void e.preventDefault();for(t=0,n=this.routes,r=n.length;t<r;t++)if(o=n[t],o.worksWith(a,c,d))return;this.trigger(s,{url:a,params:i.parseQueryStringParams(a),backButtonPressed:c})&&e.preventDefault()}});i.Router=g}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.odata.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(i,o){var r,a,s,l,d,c,u,h,p=[],f=i.logic||"and",g=i.filters;for(r=0,a=g.length;r<a;r++)i=g[r],s=i.field,u=i.value,c=i.operator,i.filters?i=n(i,o):(h=i.ignoreCase,s=s.replace(/\./g,"/"),i=w[c],o&&(i=k[c]),"isnullorempty"===c?i=m.format("{0} {1} null or {0} {1} ''",s,i):"isnotnullorempty"===c?i=m.format("{0} {1} null and {0} {1} ''",s,i):"isnull"===c||"isnotnull"===c?i=m.format("{0} {1} null",s,i):"isempty"===c||"isnotempty"===c?i=m.format("{0} {1} ''",s,i):i&&u!==t&&(l=e.type(u),"string"===l?(d="'{1}'",u=u.replace(/'/g,"''"),h===!0&&(s="tolower("+s+")")):"date"===l?o?(d="{1:yyyy-MM-ddTHH:mm:ss+00:00}",u=m.timezone.apply(u,"Etc/UTC")):d="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":d="{1}",i.length>3?"substringof"!==i?d="{0}({2},"+d+")":(d="{0}("+d+",{2})","doesnotcontain"===c&&(o?(d="{0}({2},'{1}') eq -1",i="indexof"):d+=" eq false")):d="{2} {0} "+d,
i=m.format(d,i,u,s))),p.push(i);return i=p.join(" "+f+" "),p.length>1&&(i="("+i+")"),i}function i(e){for(var t in e)0===t.indexOf("@odata")&&delete e[t]}function o(){return Math.floor(65536*(1+Math.random())).toString(16).substr(1)}function r(e){return e+o()+"-"+o()+"-"+o()}function a(e,t){var n=v+"--"+e;return t&&(n+="--"),n}function s(e,t,n,i){var o=e.options[i].url,r=m.format("{0} ",n);return b(o)?r+o(t):r+o}function l(e,t){var n="";return n+=a(e,!1),n+=v+"Content-Type: application/http",n+=v+"Content-Transfer-Encoding: binary",n+=v+"Content-ID: "+t}function d(e){var t="";return t+=v+"Content-Type: application/json;odata=minimalmetadata",t+=v+"Prefer: return=representation",t+=_+m.stringify(e)}function c(e,t,n,i,o,r){var a,c="";for(a=0;a<e.length;a++)c+=l(t,n),c+=_+s(o,e[a],o.options[i].type,i)+" HTTP/1.1",r||(c+=d(e[a])),c+=v,n++;return c}function u(e,t,n,i,o,r,s){var l="";return l+=h(t,n),l+=c(e,n,i,r,o,s),l+=a(n,!0),l+=v}function h(e,t){var n="";return n+="--"+e+v,n+="Content-Type: multipart/mixed; boundary="+t+v}function p(e,t){var n=g({},e.options.batch),i=r("sf_batch_"),o="",s=0,l=e.options.batch.url,d=r("sf_changeset_");return n.type=e.options.batch.type,n.url=b(l)?l():l,n.headers=g(n.headers||{},{"Content-Type":"multipart/mixed; boundary="+i}),t.updated.length&&(o+=u(t.updated,i,d,s,e,"update",!1),s+=t.updated.length,d=r("sf_changeset_")),t.destroyed.length&&(o+=u(t.destroyed,i,d,s,e,"destroy",!0),s+=t.destroyed.length,d=r("sf_changeset_")),t.created.length&&(o+=u(t.created,i,d,s,e,"create",!1)),o+=a(i,!0),n.data=o,n}function f(e){var t,n,i,o,r,a,s=e.match(/--changesetresponse_[a-z0-9-]+$/gm),l=0,d=[];for(d.push({models:[],passed:!0}),a=0;a<s.length;a++)o=s[a],o.lastIndexOf("--",o.length-1)?a<s.length-1&&d.push({models:[],passed:!0}):(l=l?e.indexOf(o,l+o.length):e.indexOf(o),t=e.substring(l,e.indexOf("--",l+1)),n=t.match(/^HTTP\/1\.\d (\d{3}) (.*)$/gm).pop(),i=m.parseFloat(n.match(/\d{3}/g).pop()),i>=200&&i<=299?(r=t.match(/\{.*\}/gm),r&&d[d.length-1].models.push(JSON.parse(r[0]))):d[d.length-1].passed=!1);return d}var m=window.kendo,g=e.extend,v="\r\n",_="\r\n\r\n",b=m.isFunction,w={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",doesnotcontain:"substringof",endswith:"endswith",startswith:"startswith",isnull:"eq",isnotnull:"ne",isnullorempty:"eq",isnotnullorempty:"ne",isempty:"eq",isnotempty:"ne"},k=g({},w,{contains:"contains"}),y={pageSize:e.noop,page:e.noop,filter:function(e,t,i){t&&(t=n(t,i),t&&(e.$filter=t))},sort:function(t,n){var i=e.map(n,function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir&&(t+=" desc"),t}).join(",");i&&(t.$orderby=i)},skip:function(e,t){t&&(e.$skip=t)},take:function(e,t){t&&(e.$top=t)}},x={read:{dataType:"jsonp"}};g(!0,m.data,{schemas:{odata:{type:"json",data:function(e){return e.d.results||[e.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(e,t,n){var i,o,r,a;if(e=e||{},t=t||"read",a=(this.options||x)[t],a=a?a.dataType:"json","read"===t){i={$inlinecount:"allpages"},"json"!=a&&(i.$format="json");for(r in e)y[r]?y[r](i,e[r],n):i[r]=e[r]}else{if("json"!==a)throw Error("Only json dataType can be used for "+t+" operation.");if("destroy"!==t){for(r in e)o=e[r],"number"==typeof o&&(e[r]=o+"");i=m.stringify(e)}}return i}}}}),g(!0,m.data,{schemas:{"odata-v4":{type:"json",data:function(t){if(e.isArray(t)){for(var n=0;n<t.length;n++)i(t[n]);return t}return t=e.extend({},t),i(t),t.value?t.value:[t]},total:function(e){return e["@odata.count"]}}},transports:{"odata-v4":{batch:{type:"POST"},read:{cache:!0,dataType:"json"},update:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(e,t){var n=m.data.transports.odata.parameterMap(e,t,!0);return"read"==t&&(n.$count=!0,delete n.$inlinecount),n.$filter&&(n.$filter=n.$filter.replace(/('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')/gi,function(e){return e.substring(1,e.length-1)})),n},submit:function(t){var n=this,i=p(n,t.data),o=t.data;(o.updated.length||o.destroyed.length||o.created.length)&&e.ajax(g(!0,{},{success:function(e){var n,i=f(e),r=0;o.updated.length&&(n=i[r],n.passed&&t.success(n.models.length?n.models:[],"update"),r++),o.destroyed.length&&(n=i[r],n.passed&&t.success([],"destroy"),r++),o.created.length&&(n=i[r],n.passed&&t.success(n.models,"create"))},error:function(e,n,i){t.error(e,n,i)}},i))}}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.xml.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.isArray,o=e.isPlainObject,r=e.map,a=e.each,s=e.extend,l=n.getter,d=n.Class,c=d.extend({init:function(t){var l,d,c,u,h=this,p=t.total,f=t.model,m=t.parse,g=t.errors,v=t.serialize,_=t.data;f&&(o(f)&&(l=t.modelBase||n.data.Model,f.fields&&a(f.fields,function(t,n){o(n)&&n.field?e.isFunction(n.field)||(n=s(n,{field:h.getter(n.field)})):n={field:h.getter(n)},f.fields[t]=n}),d=f.id,d&&(c={},c[h.xpathToMember(d,!0)]={field:h.getter(d)},f.fields=s(c,f.fields),f.id=h.xpathToMember(d)),f=l.define(f)),h.model=f),p&&("string"==typeof p?(p=h.getter(p),h.total=function(e){return parseInt(p(e),10)}):"function"==typeof p&&(h.total=p)),g&&("string"==typeof g?(g=h.getter(g),h.errors=function(e){return g(e)||null}):"function"==typeof g&&(h.errors=g)),_&&("string"==typeof _?(_=h.xpathToMember(_),h.data=function(e){var t,n=h.evaluate(e,_);return n=i(n)?n:[n],h.model&&f.fields?(t=new h.model,r(n,function(e){if(e){var n,i={};for(n in f.fields)i[n]=t._parse(n,f.fields[n].field(e));return i}})):n}):"function"==typeof _&&(h.data=_)),"function"==typeof m&&(u=h.parse,h.parse=function(e){var t=m.call(h,e);return u.call(h,t)}),"function"==typeof v&&(h.serialize=v)},total:function(e){return this.data(e).length},errors:function(e){return e?e.errors:null},serialize:function(e){return e},parseDOM:function(e){var n,o,r,a,s,l,d,c={},u=e.attributes,h=u.length;for(d=0;d<h;d++)l=u[d],c["@"+l.nodeName]=l.nodeValue;for(o=e.firstChild;o;o=o.nextSibling)r=o.nodeType,3===r||4===r?c["#text"]=o.nodeValue:1===r&&(n=this.parseDOM(o),a=o.nodeName,s=c[a],i(s)?s.push(n):s=s!==t?[s,n]:n,c[a]=s);return c},evaluate:function(e,t){for(var n,o,r,a,s,l=t.split(".");n=l.shift();)if(e=e[n],i(e)){for(o=[],t=l.join("."),s=0,r=e.length;s<r;s++)a=this.evaluate(e[s],t),a=i(a)?a:[a],o.push.apply(o,a);return o}return e},parse:function(t){var n,i,o={};return n=t.documentElement||e.parseXML(t).documentElement,i=this.parseDOM(n),o[n.nodeName]=i,o},xpathToMember:function(e,t){return e?(e=e.replace(/^\//,"").replace(/\//g,"."),e.indexOf("@")>=0?e.replace(/\.?(@.*)/,t?"$1":'["$1"]'):e.indexOf("text()")>=0?e.replace(/(\.?text\(\))/,t?"#text":'["#text"]'):e):""},getter:function(e){return l(this.xpathToMember(e),!0)}});e.extend(!0,n.data,{XmlDataReader:c,readers:{xml:c}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.min",["kendo.core.min","kendo.data.odata.min","kendo.data.xml.min"],e)}(function(){return function(e,t){function n(e,t,n,i){return function(o){var r,a={};for(r in o)a[r]=o[r];a.field=i?n+"."+o.field:n,t==Be&&e._notifyChange&&e._notifyChange(a),e.trigger(t,a)}}function i(e,t){var n=[];for(e=e||{};e;)Object.getOwnPropertyNames(e).forEach(function(e){n.indexOf(e)===-1&&(!t||ot.indexOf(e)<0)&&n.push(e)}),e=Object.getPrototypeOf(e);return n}function o(t,n){if(t===n)return!0;var i,r=e.type(t),a=e.type(n);if(r!==a)return!1;if("date"===r)return t.getTime()===n.getTime();if("object"!==r&&"array"!==r)return!1;for(i in t)if(!o(t[i],n[i]))return!1;return!0}function r(e,t){var n,i;for(i in e){if(n=e[i],_e(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function a(e){this.data=e||[]}function s(e,n){if(e){var i=typeof e===Ee?{field:e,dir:n}:e,o=we(i)?i:i!==t?[i]:[];return ke(o,function(e){return!!e.dir})}}function l(e,n){var i,o,r,a={};if(e)for(i=typeof e===Ee?{field:e,dir:n}:e,o=we(i)?i:i!==t?[i]:[],r=0;r<o.length;r++)a[o[r].field]={dir:o[r].dir,index:r+1};return a}function d(e){var t,n,i,o,r=e.filters;if(r)for(t=0,n=r.length;t<n;t++)i=r[t],o=i.operator,o&&typeof o===Ee&&(i.operator=oe[o.toLowerCase()]||o),d(i)}function c(e){if(e&&!be(e))return!we(e)&&e.filters||(e={logic:"and",filters:we(e)?e:[e]}),d(e),e}function u(e,t){return!e.logic&&!t.logic&&(e.field===t.field&&e.value===t.value&&e.operator===t.operator)}function h(e){return e=e||{},be(e)?{logic:"and",filters:[]}:c(e)}function p(e,t){return t.logic||e.field>t.field?1:e.field<t.field?-1:0}function f(e,t){var n,i,o,r,a;if(e=h(e),t=h(t),e.logic!==t.logic)return!1;if(o=(e.filters||[]).slice(),r=(t.filters||[]).slice(),o.length!==r.length)return!1;for(o=o.sort(p),r=r.sort(p),a=0;a<o.length;a++)if(n=o[a],i=r[a],n.logic&&i.logic){if(!f(n,i))return!1}else if(!u(n,i))return!1;return!0}function m(e){return we(e)?e:[e]}function g(e,n,i,o){var r=typeof e===Ee?{field:e,dir:n,compare:i,skipItemSorting:o}:e,a=we(r)?r:r!==t?[r]:[];return Y(a,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates,compare:e.compare,skipItemSorting:e.skipItemSorting}})}function v(e,t,n){var i,o=g(e,t,n);for(i=0;i<o.length;i++)delete o[i].compare;return o}function _(e){var t,n=we(e)?e:[e];for(t=0;t<n.length;t++)if(n[t]&&Te(n[t].compare))return!0;return!1}function b(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function w(e,t,n,i,o,r){var a,s,l,d,c;for(t=t||[],d=t.length,a=0;a<d;a++)s=t[a],l=s.aggregate,c=s.field,e[c]=e[c]||{},r[c]=r[c]||{},r[c][l]=r[c][l]||{},e[c][l]=re[l.toLowerCase()](e[c][l],n,Se.accessor(c),i,o,r[c][l])}function k(e){return"number"==typeof e&&!isNaN(e)}function y(e){return e&&e.getTime}function x(e){var t,n=e.length,i=Array(n);for(t=0;t<n;t++)i[t]=e[t].toJSON();return i}function C(e,t,n,i,o){var r,a,s,l,d,c={};for(l=0,d=e.length;l<d;l++){r=e[l];for(a in t)s=o[a],s&&s!==a&&(c[s]||(c[s]=Se.setter(s)),c[s](r,t[a](r)),delete r[a])}}function S(e,t,n,i,o){var r,a,s,l,d;for(l=0,d=e.length;l<d;l++){r=e[l];for(a in t)r[a]=n._parse(a,t[a](r)),s=o[a],s&&s!==a&&delete r[s]}}function T(e,t,n,i,o){var r,a,s,l;for(a=0,l=e.length;a<l;a++)r=e[a],s=i[r.field],s&&s!=r.field&&(r.field=s),r.value=n._parse(r.field,r.value),r.items&&(r.hasSubgroups?T(r.items,t,n,i,o):S(r.items,t,n,i,o))}function D(e,t,n,i,o,r){return function(a){return a=e(a),A(t,n,i,o,r)(a)}}function A(e,t,n,i,o){return function(r){return r&&!be(n)&&("[object Array]"===tt.call(r)||r instanceof rt||(r=[r]),t(r,n,new e,i,o)),r||[]}}function E(e,t){var n,i,o;if(t.items&&t.items.length)for(o=0;o<t.items.length;o++)n=e.items[o],i=t.items[o],n&&i?n.hasSubgroups?E(n,i):n.field&&n.value==i.value?n.items.push.apply(n.items,i.items):e.items.push.apply(e.items,[i]):i&&e.items.push.apply(e.items,[i])}function I(e,t,n,i){for(var o,r,a,s=0;t.length&&i&&(o=t[s],r=o.items,a=r.length,e&&e.field===o.field&&e.value===o.value?(e.hasSubgroups&&e.items.length?I(e.items[e.items.length-1],o.items,n,i):(r=r.slice(n,n+i),e.items=e.items.concat(r)),t.splice(s--,1)):o.hasSubgroups&&r.length?(I(o,r,n,i),o.items.length||t.splice(s--,1)):(r=r.slice(n,n+i),o.items=r,o.items.length||t.splice(s--,1)),0===r.length?n-=a:(n=0,i-=r.length),!(++s>=t.length)););s<t.length&&t.splice(s,t.length-s)}function M(e,t){var n,i,o,r,a=[],s=(e||[]).length,l=Te(t)?t:function(e,t){return e[t]};for(o=0;o<s;o++)if(n=l(e,o),n.hasSubgroups)a=a.concat(M(n.items));else for(i=n.items,r=0;r<i.length;r++)a.push(l(i,r));return a}function R(e){var t,n,i,o,r,a=[];for(t=0,n=e.length;t<n;t++)if(r=e.at(t),r.items)if(r.hasSubgroups)a=a.concat(R(r.items));else for(i=r.items,o=0;o<i.length;o++)a.push(i.at(o));return a}function F(e,t){var n,i,o;if(t)for(n=0,i=e.length;n<i;n++)o=e.at(n),o.items&&(o.hasSubgroups?F(o.items,t):o.items=new Q(o.items,t,o.items._events))}function P(e,t){for(var n=0;n<e.length;n++)if(e[n].hasSubgroups){if(P(e[n].items,t))return!0}else if(t(e[n].items,e[n]))return!0}function z(e,t,n,i){for(var o=0;o<e.length&&e[o].data!==t&&!B(e[o].data,n,i);o++);}function B(e,t,n){for(var i=0,o=e.length;i<o;i++){if(e[i]&&e[i].hasSubgroups)return B(e[i].items,t,n);if(e[i]===t||e[i]===n)return e[i]=n,!0}}function L(e,n,i,o,r){var a,s,l,d;for(a=0,s=e.length;a<s;a++)if(l=e[a],l&&!(l instanceof o))if(l.hasSubgroups===t||r){for(d=0;d<n.length;d++)if(n[d]===l){e[a]=n.at(d),z(i,n,l,e[a]);break}}else L(l.items,n,i,o,r)}function H(e,t){var n,i,o;if(e)for(n=e.length,o=0;o<n;o++)if(i=e[o],i.uid&&i.uid==t.uid)return e.splice(o,1),i}function N(e,t){return t?V(e,function(e){return e.uid&&e.uid==t.uid||e[t.idField]===t.id&&t.id!==t._defaultId}):-1}function O(e,t){return t?V(e,function(e){return e.uid==t.uid}):-1}function V(e,t){var n,i;if(e){for(n=0,i=e.length;n<i;n++)if(t(e[n]))return n;return-1}}function W(e,t){var n,i;return e&&!be(e)?(n=e[t],i=_e(n)?n.from||n.field||t:e[t]||t,Te(i)?t:i):t}function U(e,t){var n,i,o,r={};for(o in e)"filters"!==o&&(r[o]=e[o]);if(e.filters)for(r.filters=[],n=0,i=e.filters.length;n<i;n++)r.filters[n]=U(e.filters[n],t);else r.field=W(t.fields,r.field);return r}function j(e,t){var n,i,o,r,a,s=[];for(n=0,i=e.length;n<i;n++){o={},r=e[n];for(a in r)o[a]=r[a];o.field=W(t.fields,o.field),o.aggregates&&we(o.aggregates)&&(o.aggregates=j(o.aggregates,t)),s.push(o)}return s}function q(t,n){var i,o,r,a,s,l,d,c,u,h;for(t=e(t)[0],i=t.options,o=n[0],r=n[1],a=[],s=0,l=i.length;s<l;s++)u={},c=i[s],d=c.parentNode,d===t&&(d=null),c.disabled||d&&d.disabled||(d&&(u.optgroup=d.label),u[o.field]=c.text,h=c.attributes.value,h=h&&h.specified?c.value:c.text,u[r.field]=h,a.push(u));return a}function G(t,n){var i,o,r,a,s,l,d,c=e(t)[0].tBodies[0],u=c?c.rows:[],h=n.length,p=[];for(i=0,o=u.length;i<o;i++){for(s={},d=!0,a=u[i].cells,r=0;r<h;r++)l=a[r],"th"!==l.nodeName.toLowerCase()&&(d=!1,s[n[r].field]=l.innerHTML);d||p.push(s)}return p}function $(e){return function(){var t=this._data,n=ce.fn[e].apply(this,Je.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),n}}function K(t,n){function i(e,t){return e.filter(t).add(e.find(t))}var o,r,a,s,l,d,c,u,h=e(t).children(),p=[],f=n[0].field,m=n[1]&&n[1].field,g=n[2]&&n[2].field,v=n[3]&&n[3].field;for(o=0,r=h.length;o<r;o++)a={_loaded:!0},s=h.eq(o),d=s[0].firstChild,u=s.children(),t=u.filter("ul"),u=u.filter(":not(ul)"),l=s.attr("data-id"),l&&(a.id=l),d&&(a[f]=3==d.nodeType?d.nodeValue:u.text()),m&&(a[m]=i(u,"a").attr("href")),v&&(a[v]=i(u,"img").attr("src")),g&&(c=i(u,".k-sprite").prop("className"),a[g]=c&&Se.trim(c.replace("k-sprite",""))),t.length&&(a.items=K(t.eq(0),n)),"true"==s.attr("data-hasChildren")&&(a.hasChildren=!0),p.push(a);return p}var Y,Q,X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge=e.extend,ve=e.proxy,_e=e.isPlainObject,be=e.isEmptyObject,we=e.isArray,ke=e.grep,ye=e.ajax,xe=e.each,Ce=e.noop,Se=window.kendo,Te=Se.isFunction,De=Se.Observable,Ae=Se.Class,Ee="string",Ie="function",Me="asc",Re="create",Fe="read",Pe="update",ze="destroy",Be="change",Le="sync",He="get",Ne="error",Oe="requestStart",Ve="progress",We="requestEnd",Ue=[Re,Fe,Pe,ze],je=function(e){return e},qe=Se.getter,Ge=Se.stringify,$e=Math,Ke=[].push,Ye=[].join,Qe=[].pop,Xe=[].splice,Ze=[].shift,Je=[].slice,et=[].unshift,tt={}.toString,nt=Se.support.stableSort,it=/^\/Date\((.*?)\)\/$/,ot=[],rt=De.extend({init:function(e,t){var n=this;n.type=t||X,De.fn.init.call(n),n.length=e.length,n.wrapAll(e,n)},at:function(e){return this[e]},toJSON:function(e){var t,n,i=this.length,o=Array(i);for(t=0;t<i;t++)n=this[t],n instanceof X&&(n=n.toJSON(e)),o[t]=n;return o},parent:Ce,wrapAll:function(e,t){var n,i,o=this,r=function(){return o};for(t=t||[],n=0,i=e.length;n<i;n++)t[n]=o.wrap(e[n],r);return t},wrap:function(e,t){var n,i=this;return null!==e&&"[object Object]"===tt.call(e)&&(n=e instanceof i.type||e instanceof ee,n||(e=e instanceof X?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(Be,function(e){i.trigger(Be,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||"itemloaded":"itemchange"})})),e},push:function(){var e,t=this.length,n=this.wrapAll(arguments);return e=Ke.apply(this,n),this.omitChangeEvent||this.trigger(Be,{action:"add",index:t,items:n}),e},slice:Je,sort:[].sort,join:Ye,pop:function(){var e=this.length,t=Qe.apply(this);return e&&this.trigger(Be,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,n){var i,o,r,a=this.wrapAll(Je.call(arguments,2));if(i=Xe.apply(this,[e,t].concat(a)),i.length)for(this.trigger(Be,{action:"remove",index:e,items:i}),o=0,r=i.length;o<r;o++)i[o]&&i[o].children&&i[o].unbind(Be);return n&&this.trigger(Be,{action:"add",index:e,items:a}),i},shift:function(){var e=this.length,t=Ze.apply(this);return e&&this.trigger(Be,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=et.apply(this,t),this.trigger(Be,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;t<n;t++)if(i[t]===e)return t;return-1},forEach:function(e,t){for(var n=0,i=this.length,o=t||window;n<i;n++)e.call(o,this[n],n,this)},map:function(e,t){for(var n=0,i=[],o=this.length,r=t||window;n<o;n++)i[n]=e.call(r,this[n],n,this);return i},reduce:function(e){var t,n=0,i=this.length;for(2==arguments.length?t=arguments[1]:n<i&&(t=this[n++]);n<i;n++)t=e(t,this[n],n,this);return t},reduceRight:function(e){var t,n=this.length-1;for(2==arguments.length?t=arguments[1]:n>0&&(t=this[n--]);n>=0;n--)t=e(t,this[n],n,this);return t},filter:function(e,t){for(var n,i=0,o=[],r=this.length,a=t||window;i<r;i++)n=this[i],e.call(a,n,i,this)&&(o[o.length]=n);return o},find:function(e,t){for(var n,i=0,o=this.length,r=t||window;i<o;i++)if(n=this[i],e.call(r,n,i,this))return n},every:function(e,t){for(var n,i=0,o=this.length,r=t||window;i<o;i++)if(n=this[i],!e.call(r,n,i,this))return!1;return!0},some:function(e,t){for(var n,i=0,o=this.length,r=t||window;i<o;i++)if(n=this[i],e.call(r,n,i,this))return!0;return!1},remove:function(e){var t=this.indexOf(e);t!==-1&&this.splice(t,1)},empty:function(){this.splice(0,this.length)}});"undefined"!=typeof Symbol&&Symbol.iterator&&!rt.prototype[Symbol.iterator]&&(rt.prototype[Symbol.iterator]=[][Symbol.iterator]),Q=rt.extend({init:function(e,t,n){De.fn.init.call(this),this.type=t||X,n&&(this._events=n);for(var i=0;i<e.length;i++)this[i]=e[i];this.length=i,this._parent=ve(function(){return this},this)},at:function(e){var t=this[e];return t instanceof this.type?t.parent=this._parent:t=this[e]=this.wrap(t,this._parent),t}}),ot=i({},!1),X=De.extend({init:function(e){var t,n=this,o=i(e,!0),r=function(){return n};De.fn.init.call(this),this._handlers={},o.forEach(function(i){t=e[i],"object"==typeof t&&t&&!t.getTime&&"_"!=i.charAt(0)&&(t=n.wrap(t,i,r)),n[i]=t}),n.uid=Se.guid()},shouldSerialize:function(e,t){return this.hasOwnProperty(e)&&"_handlers"!==e&&"_events"!==e&&(t&&t[e]||typeof this[e]!==Ie)&&"uid"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(e){var t,n,i={};for(n in this)this.shouldSerialize(n,e)&&(t=this[n],(t instanceof X||t instanceof rt)&&(t=t.toJSON(e)),i[n]=t);return i},get:function(e){var t,n=this;return n.trigger(He,{field:e}),t="this"===e?n:Se.getter(e,!0)(n)},_set:function(e,t){var n,i,o,r=this,a=e.indexOf(".")>=0;if(a)for(n=e.split("."),i="";n.length>1;){if(i+=n.shift(),o=Se.getter(i,!0)(r),o instanceof X)return o.set(n.join("."),t),a;i+="."}return Se.setter(e)(r,t),a},set:function(e,t){var n=this,i=!1,o=e.indexOf(".")>=0,r=Se.getter(e,!0)(n);return r!==t&&(r instanceof De&&this._handlers[e]&&(this._handlers[e].get&&r.unbind(He,this._handlers[e].get),r.unbind(Be,this._handlers[e].change)),i=n.trigger("set",{field:e,value:t}),i||(o||(t=n.wrap(t,e,function(){return n})),(!n._set(e,t)||e.indexOf("(")>=0||e.indexOf("[")>=0)&&n.trigger(Be,{field:e}))),i},parent:Ce,wrap:function(e,t,i){var o,r,a,s,l=this,d=tt.call(e);return null==e||"[object Object]"!==d&&"[object Array]"!==d||(a=e instanceof rt,s=e instanceof ce,"[object Object]"!==d||s||a?("[object Array]"===d||a||s)&&(a||s||(e=new rt(e)),r=n(l,Be,t,!1),e.bind(Be,r),l._handlers[t]={change:r}):(e instanceof X||(e=new X(e)),o=n(l,He,t,!0),e.bind(He,o),r=n(l,Be,t,!0),e.bind(Be,r),l._handlers[t]={get:o,change:r}),e.parent=i),e}}),Z={number:function(e){return typeof e===Ee&&"null"===e.toLowerCase()?null:Se.parseFloat(e)},date:function(e){return typeof e===Ee&&"null"===e.toLowerCase()?null:Se.parseDate(e)},"boolean":function(e){return typeof e===Ee?"null"===e.toLowerCase()?null:"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return typeof e===Ee&&"null"===e.toLowerCase()?null:null!=e?e+"":e},"default":function(e){return e}},J={string:"",number:0,date:new Date,"boolean":!1,"default":""},ee=X.extend({init:function(n){var i,o,r=this;if((!n||e.isEmptyObject(n))&&(n=e.extend({},r.defaults,n),r._initializers))for(i=0;i<r._initializers.length;i++)o=r._initializers[i],n[o]=r.defaults[o]();X.fn.init.call(r,n),r.dirty=!1,r.dirtyFields={},r.idField&&(r.id=r.get(r.idField),r.id===t&&(r.id=r._defaultId))},shouldSerialize:function(e){return X.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"dirtyFields"!==e&&"_accessors"!==e},_parse:function(e,t){var n,i=this,o=e,a=i.fields||{};return e=a[e],e||(e=r(a,o)),e&&(n=e.parse,!n&&e.type&&(n=Z[e.type.toLowerCase()])),n?n(t):t},_notifyChange:function(e){var t=e.action;"add"!=t&&"remove"!=t||(this.dirty=!0,this.dirtyFields[e.field]=!0)},editable:function(e){return e=(this.fields||{})[e],!e||e.editable!==!1},set:function(e,t){var n=this,i=n.dirty;n.editable(e)&&(t=n._parse(e,t),o(t,n.get(e))?n.trigger("equalSet",{field:e,value:t}):(n.dirty=!0,n.dirtyFields[e]=!0,X.fn.set.call(n,e,t)&&!i&&(n.dirty=i,n.dirty||(n.dirtyFields[e]=!1))))},accept:function(e){var t,n,i=this,o=function(){return i};for(t in e)n=e[t],"_"!=t.charAt(0)&&(n=i.wrap(e[t],t,o)),i._set(t,n);i.idField&&(i.id=i.get(i.idField)),i.dirty=!1,i.dirtyFields={}},isNew:function(){return this.id===this._defaultId}}),ee.define=function(e,n){n===t&&(n=e,e=ee);var i,o,r,a,s,l,d,c,u=ge({defaults:{}},n),h={},p=u.id,f=[];if(p&&(u.idField=p),u.id&&delete u.id,p&&(u.defaults[p]=u._defaultId=""),"[object Array]"===tt.call(u.fields)){for(l=0,d=u.fields.length;l<d;l++)r=u.fields[l],typeof r===Ee?h[r]={}:r.field&&(h[r.field]=r);u.fields=h}for(o in u.fields)r=u.fields[o],a=r.type||"default",s=null,c=o,o=typeof r.field===Ee?r.field:o,r.nullable||(s=u.defaults[c!==o?c:o]=r.defaultValue!==t?r.defaultValue:J[a.toLowerCase()],"function"==typeof s&&f.push(o)),n.id===o&&(u._defaultId=s),u.defaults[c!==o?c:o]=s,r.parse=r.parse||Z[a];return f.length>0&&(u._initializers=f),i=e.extend(u),i.define=function(e){return ee.define(i,e)},u.fields&&(i.fields=u.fields,i.idField=u.idField),i},te={selector:function(e){return Te(e)?e:qe(e)},compare:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:null==e?-1:null==n?1:e.localeCompare?e.localeCompare(n):e>n?1:e<n?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return"desc"==e.dir?function(e,n){return t(n,e,!0)}:t},combine:function(e){return function(t,n){var i,o,r=e[0](t,n);for(i=1,o=e.length;i<o;i++)r=r||e[i](t,n);return r}}},ne=ge({},te,{asc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),o=t(n);return i&&i.getTime&&o&&o.getTime&&(i=i.getTime(),o=o.getTime()),i===o?e.__position-n.__position:null==i?-1:null==o?1:i.localeCompare?i.localeCompare(o):i>o?1:-1}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),o=t(n);return i&&i.getTime&&o&&o.getTime&&(i=i.getTime(),o=o.getTime()),i===o?e.__position-n.__position:null==i?1:null==o?-1:o.localeCompare?o.localeCompare(i):i<o?1:-1}},create:function(e){return this[e.dir](e.field)}}),Y=function(e,t){var n,i=e.length,o=Array(i);for(n=0;n<i;n++)o[n]=t(e[n],n,e);return o},ie=function(){function e(e){return"string"==typeof e&&(e=e.replace(/[\r\n]+/g,"")),JSON.stringify(e)}function t(t){return function(n,i,o,r){return i+="",o&&(n="("+n+" + '').toString()"+(r?".toLocaleLowerCase('"+r+"')":".toLowerCase()"),i=r?i.toLocaleLowerCase(r):i.toLowerCase()),t(n,e(i),o)}}function n(t,n,i,o,r){if(null!=i){if(typeof i===Ee){var a=it.exec(i);a?i=new Date((+a[1])):o?(i=e(r?i.toLocaleLowerCase(r):i.toLowerCase()),n="(("+n+" || '')+'')"+(r?".toLocaleLowerCase('"+r+"')":".toLowerCase()")):i=e(i)}i.getTime&&(n="("+n+"&&"+n+".getTime?"+n+".getTime():"+n+")",i=i.getTime())}return n+" "+t+" "+i}function i(e){var t,n,i,o;for(t="/^",n=!1,i=0;i<e.length;++i){if(o=e.charAt(i),n)t+="\\"+o;else{if("~"==o){n=!0;continue}t+="*"==o?".*":"?"==o?".":".+^$()[]{}|\\/\n\r\u2028\u2029 ".indexOf(o)>=0?"\\"+o:o}n=!1}return t+"$/"}return{quote:function(t){return t&&t.getTime?"new Date("+t.getTime()+")":e(t)},eq:function(e,t,i,o){return n("==",e,t,i,o)},neq:function(e,t,i,o){return n("!=",e,t,i,o)},gt:function(e,t,i){return n(">",e,t,i)},gte:function(e,t,i){return n(">=",e,t,i)},lt:function(e,t,i){return n("<",e,t,i)},lte:function(e,t,i){return n("<=",e,t,i)},startswith:t(function(e,t){return e+".lastIndexOf("+t+", 0) == 0"}),doesnotstartwith:t(function(e,t){return e+".lastIndexOf("+t+", 0) == -1"}),endswith:t(function(e,t){var n=t?t.length-2:0;return e+".indexOf("+t+", "+e+".length - "+n+") >= 0"}),doesnotendwith:t(function(e,t){var n=t?t.length-2:0;return e+".indexOf("+t+", "+e+".length - "+n+") < 0"}),contains:t(function(e,t){return e+".indexOf("+t+") >= 0"}),doesnotcontain:t(function(e,t){return e+".indexOf("+t+") == -1"}),matches:t(function(e,t){return t=t.substring(1,t.length-1),i(t)+".test("+e+")"}),doesnotmatch:t(function(e,t){return t=t.substring(1,t.length-1),"!"+i(t)+".test("+e+")"}),isempty:function(e){return e+" === ''"},isnotempty:function(e){return e+" !== ''"},isnull:function(e){return"("+e+" == null)"},isnotnull:function(e){return"("+e+" != null)"},isnullorempty:function(e){return"("+e+" === null) || ("+e+" === '')"},isnotnullorempty:function(e){return"("+e+" !== null) && ("+e+" !== '')"}}}(),a.filterExpr=function(e){var n,i,o,r,s,l,d=[],c={and:" && ",or:" || "},u=[],h=[],p=e.filters;for(n=0,i=p.length;n<i;n++)o=p[n],s=o.field,l=o.operator,o.filters?(r=a.filterExpr(o),o=r.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(h.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(u.length+t)+"]"}),h.push.apply(h,r.operators),u.push.apply(u,r.fields)):(typeof s===Ie?(r="__f["+u.length+"](d)",u.push(s)):r=Se.expr(s),typeof l===Ie?(o="__o["+h.length+"]("+r+", "+ie.quote(o.value)+")",h.push(l)):o=ie[(l||"eq").toLowerCase()](r,o.value,o.ignoreCase===t||o.ignoreCase,e.accentFoldingFiltering)),d.push(o);return{expression:"("+d.join(c[e.logic])+")",fields:u,operators:h}},oe={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain",isnull:"isnull",isempty:"isempty",isnotempty:"isnotempty"},a.normalizeFilter=c,a.compareFilters=f,a.prototype={toArray:function(){return this.data},range:function(e,t){return new a(this.data.slice(e,e+t))},skip:function(e){return new a(this.data.slice(e))},take:function(e){return new a(this.data.slice(0,e))},select:function(e){return new a(Y(this.data,e))},order:function(e,t,n){var i={dir:t};return e&&(e.compare?i.compare=e.compare:i.field=e),new a(n?this.data.sort(te.create(i)):this.data.slice(0).sort(te.create(i)))},orderBy:function(e,t){return this.order(e,"asc",t)},orderByDescending:function(e,t){return this.order(e,"desc",t)},sort:function(e,t,n,i){var o,r,a=s(e,t),l=[];if(n=n||te,a.length){for(o=0,r=a.length;o<r;o++)l.push(n.create(a[o]));return this.orderBy({compare:n.combine(l)},i)}return this},filter:function(e){var t,n,i,o,r,s,l,d,u=this.data,h=[];if(e=c(e),!e||0===e.filters.length)return this;for(o=a.filterExpr(e),s=o.fields,l=o.operators,r=d=Function("d, __f, __o","return "+o.expression),(s.length||l.length)&&(d=function(e){return r(e,s,l)}),t=0,i=u.length;t<i;t++)n=u[t],d(n)&&h.push(n);return new a(h)},group:function(e,t,n){e=g(e||[]),t=t||this.data;var i,o=this,r=new a(o.data);return e.length>0&&(i=e[0],r=n&&n.groupPaging?new a(t).groupAllData(i,t).select(function(o){var r=new a(t).filter([{field:o.field,operator:"eq",value:o.value,ignoreCase:!1}]),s=e.length>1?new a(o.items).group(e.slice(1),r.toArray(),n).toArray():o.items;return{field:o.field,value:o.value,hasSubgroups:e.length>1,items:s,aggregates:r.aggregate(i.aggregates),uid:Se.guid(),itemCount:s.length,subgroupCount:s.length}}):r.groupBy(i).select(function(n){var o=new a(t).filter([{field:n.field,operator:"eq",value:n.value,ignoreCase:!1}]);return{field:n.field,value:n.value,items:e.length>1?new a(n.items).group(e.slice(1),o.toArray()).toArray():n.items,hasSubgroups:e.length>1,aggregates:o.aggregate(i.aggregates)}})),r},groupBy:function(e){var t,n,i,o,r,s,l,d,c,u,h=this;if(be(e)||!this.data.length)return new a([]);for(t=e.field,n=e.skipItemSorting?this.data:this._sortForGrouping(t,e.dir||"asc"),i=Se.accessor(t),r=i.get(n[0],t),s={field:t,value:r,items:[]},u=[s],d=0,c=n.length;d<c;d++)o=n[d],l=i.get(o,t),b(r,l)||(r=l,s={field:t,value:r,items:[]},u.push(s)),s.items.push(o);return u=h._sortGroups(u,e),new a(u)},groupAllData:function(e,t){if(be(e)||this.data&&!this.data.length)return new a([]);var n,i,o,r,s=e.field,l=e.skipItemSorting?t:new a(t).sort(s,e.dir||"asc",ne).toArray(),d=Se.accessor(s),c=d.get(l[0],s),u={field:s,value:c,items:[]},h=[u];for(o=0,r=l.length;o<r;o++)n=l[o],i=d.get(n,s),b(c,i)||(c=i,u={field:s,value:c,items:[]},h.push(u)),u.items.push(n);return h=this._sortGroups(h,e),new a(h)},_sortForGrouping:function(e,t){var n,i,o=this.data;if(!nt){for(n=0,i=o.length;n<i;n++)o[n].__position=n;for(o=new a(o).sort(e,t,ne).toArray(),n=0,i=o.length;n<i;n++)delete o[n].__position;return o}return this.sort(e,t).toArray()},_sortGroups:function(e,t){var n=e;return t&&Te(t.compare)&&(n=new a(n).order({compare:t.compare},t.dir||Me).toArray()),n},aggregate:function(e){var t,n,i={},o={};if(e&&e.length)for(t=0,n=this.data.length;t<n;t++)w(i,e,this.data[t],t,n,o);return i}},re={sum:function(e,t,n){var i=n.get(t);return k(e)?k(i)&&(e+=i):e=i,e},count:function(e){return(e||0)+1},average:function(e,n,i,o,r,a){var s=i.get(n);return a.count===t&&(a.count=0),k(e)?k(s)&&(e+=s):e=s,k(s)&&a.count++,o==r-1&&k(e)&&(e/=a.count),e},max:function(e,t,n){var i=n.get(t);return k(e)||y(e)||(e=i),e<i&&(k(i)||y(i))&&(e=i),e},min:function(e,t,n){var i=n.get(t);return k(e)||y(e)||(e=i),e>i&&(k(i)||y(i))&&(e=i),e}},a.normalizeGroup=g,a.normalizeSort=s,a.process=function(e,n,i){var o,r,l,d,c,u,h,p,f,m,b,w;return n=n||{},o=n.group,r=_(g(o||[])),l=new a(e),d=v(o||[]),c=s(n.sort||[]),u=r?c:d.concat(c),f=n.filterCallback,m=n.filter,b=n.skip,w=n.take,u&&i&&(l=l.sort(u,t,t,i)),m&&(l=l.filter(m),f&&(l=f(l)),p=l.toArray().length),u&&(i||(l=l.sort(u)),o&&(e=l.toArray())),r?(l=l.group(o,e),b!==t&&w!==t&&(l=new a(M(l.toArray())).range(b,w),h=Y(d,function(e){return ge({},e,{skipItemSorting:!0})}),l=l.group(h,e))):(b!==t&&w!==t&&(l=l.range(b,w)),o&&(l=l.group(o,e,n))),{total:p,data:l.toArray()}},ae=Ae.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),se=Ae.extend({init:function(e){var t,n=this;e=n.options=ge({},n.options,e),xe(Ue,function(t,n){typeof e[n]===Ee&&(e[n]={url:e[n]})}),
n.cache=e.cache?le.create(e.cache):{find:Ce,add:Ce},t=e.parameterMap,e.submit&&(n.submit=e.submit),Te(e.push)&&(n.push=e.push),n.push||(n.push=je),n.parameterMap=Te(t)?t:function(e){var n={};return xe(e,function(e,i){e in t&&(e=t[e],_e(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:je},create:function(e){return ye(this.setup(e,Re))},read:function(n){var i,o,r,a=this,s=a.cache;n=a.setup(n,Fe),i=n.success||Ce,o=n.error||Ce,r=s.find(n.data),r!==t?i(r):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return ye(this.setup(e,Pe))},destroy:function(e){return ye(this.setup(e,ze))},setup:function(e,t){e=e||{};var n,i=this,o=i.options[t],r=Te(o.data)?o.data(e.data):o.data;return e=ge(!0,{},o,e),n=ge(!0,{},r,e.data),e.data=i.parameterMap(n,t),Te(e.url)&&(e.url=e.url(n)),e}}),le=Ae.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[Ge(e)]=n)},find:function(e){return this._store[Ge(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[Ge(e)]}}),le.create=function(e){var t={inmemory:function(){return new le}};return _e(e)&&Te(e.find)?e:e===!0?new le:t[e]()},de=Ae.extend({init:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m=this;e=e||{};for(t in e)n=e[t],m[t]=typeof n===Ee?qe(n):n;o=e.modelBase||ee,_e(m.model)&&(m.model=i=o.define(m.model)),r=ve(m.data,m),m._dataAccessFunction=r,m.model&&(a=ve(m.groups,m),s=ve(m.serialize,m),l={},d={},c={},u={},h=!1,i=m.model,i.fields&&(xe(i.fields,function(e,t){var n;p=e,_e(t)&&t.field?p=t.field:typeof t===Ee&&(p=t),_e(t)&&t.from&&(n=t.from),h=h||n&&n!==e||p!==e,f=n||p,d[e]=f.indexOf(".")!==-1?qe(f,!0):qe(f),c[e]=qe(e),l[n||p]=e,u[e]=n||p}),!e.serialize&&h&&(m.serialize=D(s,i,C,c,l,u))),m._dataAccessFunction=r,m._wrapDataAccessBase=A(i,S,d,l,u),m.data=D(r,i,S,d,l,u),m.groups=D(a,i,T,d,l,u))},errors:function(e){return e?e.errors:null},parse:je,data:je,total:function(e){return e.length},groups:je,aggregates:function(){return{}},serialize:function(e){return e}}),ce=De.extend({init:function(e){var n,i,o,r=this;e&&(i=e.data),e=r.options=ge({},r.options,e),r._map={},r._prefetch={},r._data=[],r._pristineData=[],r._ranges=[],r._view=[],r._pristineTotal=0,r._destroyed=[],r._pageSize=e.pageSize,r._page=e.page||(e.pageSize?1:t),r._sort=s(e.sort),r._sortFields=l(e.sort),r._filter=c(e.filter),r._group=g(e.group),r._aggregate=e.aggregate,r._total=e.total,r._groupPaging=e.groupPaging,r._groupPaging&&(r._groupsState={}),r._shouldDetachObservableParents=!0,De.fn.init.call(r),r.transport=ue.create(e,i,r),Te(r.transport.push)&&r.transport.push({pushCreate:ve(r._pushCreate,r),pushUpdate:ve(r._pushUpdate,r),pushDestroy:ve(r._pushDestroy,r)}),null!=e.offlineStorage&&("string"==typeof e.offlineStorage?(o=e.offlineStorage,r._storage={getItem:function(){return JSON.parse(localStorage.getItem(o))},setItem:function(e){localStorage.setItem(o,Ge(r.reader.serialize(e)))}}):r._storage=e.offlineStorage),r.reader=new Se.data.readers[e.schema.type||"json"](e.schema),n=r.reader.model||{},r._detachObservableParents(),r._data=r._observe(r._data),r._online=!0,r.bind(["push",Ne,Be,Oe,Le,We,Ve],e)},options:{data:null,schema:{modelBase:ee},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1,inPlaceSort:!1},clone:function(){return this},online:function(n){return n!==t?this._online!=n&&(this._online=n,n)?this.sync():e.Deferred().resolve().promise():this._online},offlineData:function(e){return null==this.options.offlineStorage?null:e!==t?this._storage.setItem(e):this._storage.getItem()||[]},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_isServerGroupPaged:function(){return this._isServerGrouped()&&this._groupPaging},_isGroupPaged:function(){var e=this._group||[];return this._groupPaging&&e.length},_pushCreate:function(e){this._push(e,"pushCreate")},_pushUpdate:function(e){this._push(e,"pushUpdate")},_pushDestroy:function(e){this._push(e,"pushDestroy")},_push:function(e,t){var n=this._readData(e);n||(n=e),this[t](n)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return R(e);if(!t)for(var n=0;n<e.length;n++)e.at(n)}return e},parent:Ce,get:function(e){var t,n,i=this._flatData(this._data,this.options.useRanges);for(t=0,n=i.length;t<n;t++)if(i[t].id==e)return i[t]},getByUid:function(e){return this._getByUid(e,this._data)},_getByUid:function(e,t){var n,i,o=this._flatData(t,this.options.useRanges);if(o)for(n=0,i=o.length;n<i;n++)if(o[n].uid==e)return o[n]},indexOf:function(e){return O(this._data,e)},at:function(e){return this._data.at(e)},data:function(e){var n,i=this;if(e===t){if(i._data)for(n=0;n<i._data.length;n++)i._data.at(n);return i._data}i._detachObservableParents(),i._data=this._observe(e),i._pristineData=e.slice(0),i._storeData(),i._ranges=[],i.trigger("reset"),i._addRange(i._data),i._total=i._data.length,i._pristineTotal=i._total,i._process(i._data)},view:function(e){return e===t?this._view:(this._view=this._observeView(e),t)},_observeView:function(e){var t,n=this;return L(e,n._data,n._ranges,n.reader.model||X,n._isServerGrouped()),t=new Q(e,n.reader.model),t.parent=function(){return n.parent()},t},flatView:function(){var e=this.group()||[];return e.length?R(this._view):this._view},add:function(e){return this.insert(this._data.length,e)},_createNewModel:function(e){return this.reader.model?new this.reader.model(e):e instanceof X?e:new X(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof ee||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,this._wrapInEmptyGroup(t)):this._data.splice(e,0,t),this._insertModelInRange(e,t),t},pushInsert:function(t,n){var i,o,r,a,s,l,d=this,c=d._getCurrentRangeSpan();n||(n=t,t=0),we(n)||(n=[n]),i=[],o=this.options.autoSync,this.options.autoSync=!1;try{for(r=0;r<n.length;r++)a=n[r],s=this.insert(t,a),i.push(s),l=s.toJSON(),this._isServerGrouped()&&(l=this._wrapInEmptyGroup(l)),this._pristineData.push(l),c&&c.length&&e(c).last()[0].pristineData.push(l),t++}finally{this.options.autoSync=o}i.length&&this.trigger("push",{type:"create",items:i})},pushCreate:function(e){this.pushInsert(this._data.length,e)},pushUpdate:function(e){var t,n,i,o,r;for(we(e)||(e=[e]),t=[],n=0;n<e.length;n++)i=e[n],o=this._createNewModel(i),r=this.get(o.id),r?(t.push(r),r.accept(i),r.trigger(Be),this._updatePristineForModel(r,i)):this.pushCreate(i);t.length&&this.trigger("push",{type:"update",items:t})},pushDestroy:function(e){var t=this._removeItems(e);t.length&&this.trigger("push",{type:"destroy",items:t})},_removeItems:function(e,n){var i,o,r,a,s,l,d;we(e)||(e=[e]),i=t===n||n,o=[],r=this.options.autoSync,this.options.autoSync=!1;try{for(a=0;a<e.length;a++)s=e[a],l=this._createNewModel(s),d=!1,this._eachItem(this._data,function(e){var t,n;for(t=0;t<e.length;t++)if(n=e.at(t),n.id===l.id){o.push(n),e.splice(t,1),d=!0;break}}),d&&i&&(this._removePristineForModel(l),this._destroyed.pop())}finally{this.options.autoSync=r}return o},remove:function(e){var t,n=this,i=n._isServerGrouped();return this._eachItem(n._data,function(o){if(t=H(o,e),t&&i)return t.isNew&&t.isNew()||n._destroyed.push(t),!0}),this._removeModelFromRanges(e),e},destroyed:function(){return this._destroyed},created:function(){var e,t,n=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e<t;e++)i[e].isNew&&i[e].isNew()&&n.push(i[e]);return n},updated:function(){var e,t,n=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e<t;e++)i[e].isNew&&!i[e].isNew()&&i[e].dirty&&n.push(i[e]);return n},sync:function(){var t,n=this,i=[],o=[],r=n._destroyed,a=e.Deferred().resolve().promise();if(n.online()){if(!n.reader.model)return a;i=n.created(),o=n.updated(),t=[],n.options.batch&&n.transport.submit?t=n._sendSubmit(i,o,r):(t.push.apply(t,n._send("create",i)),t.push.apply(t,n._send("update",o)),t.push.apply(t,n._send("destroy",r))),a=e.when.apply(null,t).then(function(){var e,t;for(e=0,t=arguments.length;e<t;e++)arguments[e]&&n._accept(arguments[e]);n._storeData(!0),n._syncEnd(),n._change({action:"sync"}),n.trigger(Le),n._isServerGroupPaged()&&n.read()})}else n._storeData(!0),n._syncEnd(),n._change({action:"sync"});return a},_syncEnd:Ce,cancelChanges:function(e){var t=this;e instanceof Se.data.Model?t._cancelModel(e):(t._destroyed=[],t._detachObservableParents(),t._data=t._observe(t._pristineData),t.options.serverPaging&&(t._total=t._pristineTotal),t._ranges=[],t._addRange(t._data,0),t._changesCanceled(),t._change(),t._markOfflineUpdatesAsDirty(),t._isServerGrouped()&&t.read())},_changesCanceled:Ce,_markOfflineUpdatesAsDirty:function(){var e=this;null!=e.options.offlineStorage&&e._eachItem(e._data,function(e){var t,n;for(t=0;t<e.length;t++)n=e.at(t),"update"!=n.__state__&&"create"!=n.__state__||(n.dirty=!0)})},hasChanges:function(){var e,t,n=this._flatData(this._data,this.options.useRanges);if(this._destroyed.length)return!0;for(e=0,t=n.length;e<t;e++)if(n[e].isNew&&n[e].isNew()||n[e].dirty)return!0;return!1},_accept:function(t){var n,i=this,o=t.models,r=t.response,a=0,s=i._isServerGrouped(),l=i._pristineData,d=t.type;if(i.trigger(We,{response:r,type:d}),r&&!be(r)){if(r=i.reader.parse(r),i._handleCustomErrors(r))return;r=i.reader.data(r),we(r)||(r=[r])}else r=e.map(o,function(e){return e.toJSON()});for("destroy"===d&&(i._destroyed=[]),a=0,n=o.length;a<n;a++)"destroy"!==d?(o[a].accept(r[a]),"create"===d?l.push(s?i._wrapInEmptyGroup(o[a].toJSON()):r[a]):"update"===d&&i._updatePristineForModel(o[a],r[a])):i._removePristineForModel(o[a])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,n){Se.deepExtend(n[e],t)})},_executeOnPristineForModel:function(e,t){this._eachPristineItem(function(n){var i=N(n,e);if(i>-1)return t(i,n),!0})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,e)},_eachPristineItem:function(e){var t=this,n=t.options,i=t._getCurrentRangeSpan();t._eachItem(t._pristineData,e),n.serverPaging&&n.useRanges&&xe(i,function(n,i){t._eachItem(i.pristineData,e)})},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?P(e,t):t(e))},_pristineForModel:function(e){var t,n,i=function(i){if(n=N(i,e),n>-1)return t=i[n],!0};return this._eachPristineItem(i),t},_cancelModel:function(e){var t=this,n=this._pristineForModel(e);this._eachItem(this._data,function(i){var o=O(i,e);o>=0&&(!n||e.isNew()&&!n.__state__?(t._modelCanceled(e),i.splice(o,1),t._removeModelFromRanges(e)):(i[o].accept(n),"update"==n.__state__&&(i[o].dirty=!0)))})},_modelCanceled:Ce,_submit:function(t,n){var i=this;i.trigger(Oe,{type:"submit"}),i.trigger(Ve),i.transport.submit(ge({success:function(n,i){var o=e.grep(t,function(e){return e.type==i})[0];o&&o.resolve({response:n,models:o.models,type:i})},error:function(e,n,o){for(var r=0;r<t.length;r++)t[r].reject(e);i.error(e,n,o)}},n))},_sendSubmit:function(t,n,i){var o=this,r=[];return o.options.batch&&(t.length&&r.push(e.Deferred(function(e){e.type="create",e.models=t})),n.length&&r.push(e.Deferred(function(e){e.type="update",e.models=n})),i.length&&r.push(e.Deferred(function(e){e.type="destroy",e.models=i})),o._submit(r,{data:{created:o.reader.serialize(x(t)),updated:o.reader.serialize(x(n)),destroyed:o.reader.serialize(x(i))}})),r},_promise:function(t,n,i){var o=this;return e.Deferred(function(e){o.trigger(Oe,{type:i}),o.trigger(Ve),o.transport[i].call(o.transport,ge({success:function(t){e.resolve({response:t,models:n,type:i})},error:function(t,n,i){e.reject(t),o.error(t,n,i)}},t))}).promise()},_send:function(e,t){var n,i,o=this,r=[],a=o.reader.serialize(x(t));if(o.options.batch)t.length&&r.push(o._promise({data:{models:a}},t,e));else for(n=0,i=t.length;n<i;n++)r.push(o._promise({data:a[n]},[t[n]],e));return r},read:function(t){var n=this,i=n._params(t),o=e.Deferred();return n._queueRequest(i,function(){var e=n.trigger(Oe,{type:"read"});e?(n._dequeueRequest(),o.resolve(e)):(n.trigger(Ve),n._ranges=[],n.trigger("reset"),n.online()?n.transport.read({data:i,success:function(e){n._ranges=[],n.success(e,i),o.resolve()},error:function(){var e=Je.call(arguments);n.error.apply(n,e),o.reject.apply(o,e)}}):null!=n.options.offlineStorage&&(n.success(n.offlineData(),i),o.resolve()))}),o.promise()},_readAggregates:function(e){return this.reader.aggregates(e)},success:function(e){var n,i,o,r,a,s,l,d,c,u,h,p=this,f=p.options;if(p.trigger(We,{response:e,type:"read"}),p.online()){if(e=p.reader.parse(e),p._handleCustomErrors(e))return p._dequeueRequest(),t;p._total=p.reader.total(e),p._isServerGroupPaged()&&(p._serverGroupsTotal=p._total),p._pageSize>p._total&&(p._pageSize=p._total,p.options.pageSize&&p.options.pageSize>p._pageSize&&(p._pageSize=p.options.pageSize)),p._aggregate&&f.serverAggregates&&(p._aggregateResult=p._readAggregates(e)),e=p._readData(e),p._destroyed=[]}else{for(e=p._readData(e),n=[],o={},r=p.reader.model,a=r?r.idField:"id",s=0;s<this._destroyed.length;s++)l=this._destroyed[s][a],o[l]=l;for(s=0;s<e.length;s++)d=e[s],c=d.__state__,"destroy"==c?o[d[a]]||this._destroyed.push(this._createNewModel(d)):n.push(d);e=n,p._total=e.length}if(p._pristineTotal=p._total,i=p._skip&&p._data.length&&p._skip<p._data.length,p.options.endless)for(i&&p._pristineData.splice(p._skip,p._pristineData.length),n=e.slice(0),u=0;u<n.length;u++)p._pristineData.push(n[u]);else p._pristineData=e.slice(0);if(p._detachObservableParents(),p.options.endless){for(p._data.unbind(Be,p._changeHandler),p._isServerGrouped()&&p._data[p._data.length-1].value===e[0].value&&(E(p._data[p._data.length-1],e[0]),e.shift()),e=p._observe(e),i&&p._data.splice(p._skip,p._data.length),h=0;h<e.length;h++)p._data.push(e[h]);p._data.bind(Be,p._changeHandler)}else p._data=p._observe(e);p._markOfflineUpdatesAsDirty(),p._storeData(),p._addRange(p._data),p._process(p._data),p._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var e=0;e<this._data.length;e++)this._data[e].parent&&(this._data[e].parent=Ce)},_storeData:function(e){function t(e){var n,i,o,r=[];for(n=0;n<e.length;n++)i=e.at(n),o=i.toJSON(),a&&i.items?o.items=t(i.items):(o.uid=i.uid,s&&(i.isNew()?o.__state__="create":i.dirty&&(o.__state__="update"))),r.push(o);return r}var n,i,o,r,a=this._isServerGrouped(),s=this.reader.model;if(null!=this.options.offlineStorage){for(n=t(this._data),i=[],o=0;o<this._destroyed.length;o++)r=this._destroyed[o].toJSON(),r.__state__="destroy",i.push(r);this.offlineData(n.concat(i)),e&&(this._pristineData=this.reader.reader?this.reader.reader._wrapDataAccessBase(n):this.reader._wrapDataAccessBase(n))}},_addRange:function(e,n){var i,o=this,r=t!==n?n:o._skip||0,a={data:e,pristineData:e.toJSON(),timestamp:o._timeStamp()};this._isGroupPaged()?(i=r+e.length,a.outerStart=r,a.outerEnd=i):i=r+o._flatData(e,!0).length,a.start=r,a.end=i,o._ranges.push(a),o._sortRanges(),o._isGroupPaged()&&(o._groupsFlat||(o._groupsFlat=[]),o._appendToGroupsFlat(a.data),o._updateOuterRangesLength())},_appendToGroupsFlat:function(e){var t,n=e.length;for(t=0;t<n;t++)this._groupsFlat.push(e[t])},_getGroupByUid:function(e){var t,n,i=this._groupsFlat.length;for(n=0;n<i;n++)if(t=this._groupsFlat[n],t.uid===e)return t},_sortRanges:function(){this._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,n){this._dequeueRequest(),this.trigger(We,{}),this.trigger(Ne,{xhr:e,status:t,errorThrown:n})},_params:function(e){var t=this,n=ge({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate,groupPaging:!!t._groupPaging},e);return t.options.serverPaging||(delete n.take,delete n.skip,delete n.page,delete n.pageSize),t.options.serverGrouping?t.reader.model&&n.group&&(n.group=j(n.group,t.reader.model)):delete n.group,t.options.serverFiltering?t.reader.model&&n.filter&&(n.filter=U(n.filter,t.reader.model)):delete n.filter,t.options.serverSorting?t.reader.model&&n.sort&&(n.sort=j(n.sort,t.reader.model)):delete n.sort,t.options.serverAggregates?t.reader.model&&n.aggregate&&(n.aggregate=j(n.aggregate,t.reader.model)):delete n.aggregate,t.options.groupPaging||delete n.groupPaging,n},_queueRequest:function(e,n){var i=this;i._requestInProgress?i._pending={callback:ve(n,i),options:e}:(i._requestInProgress=!0,i._pending=t,n())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(Ne,{xhr:null,status:"customerror",errorThrown:"custom error",errors:t}),!0}return!1},_shouldWrap:function(e){var t=this.reader.model;return!(!t||!e.length)&&!(e[0]instanceof t)},_observe:function(e){var t,n=this,i=n.reader.model;return n._shouldDetachObservableParents=!0,e instanceof rt?(n._shouldDetachObservableParents=!1,n._shouldWrap(e)&&(e.type=n.reader.model,e.wrapAll(e,e))):(t=n.pageSize()&&!n.options.serverPaging?Q:rt,e=new t(e,n.reader.model),e.parent=function(){return n.parent()}),n._isServerGrouped()&&F(e,i),!(n._changeHandler&&n._data&&n._data instanceof rt)||n.options.useRanges&&n.options.serverPaging?n._changeHandler=ve(n._change,n):n._data.unbind(Be,n._changeHandler),e.bind(Be,n._changeHandler)},_updateTotalForAction:function(e,t){var n=this,i=parseInt(n._total,10);k(n._total)||(i=parseInt(n._pristineTotal,10)),"add"===e?i+=t.length:"remove"===e?i-=t.length:"itemchange"===e||"sync"===e||n.options.serverPaging?"sync"===e&&(i=n._pristineTotal=parseInt(n._total,10)):i=n._pristineTotal,n._total=i},_change:function(e){var t,n,i,o=this,r=e?e.action:"";if("remove"===r)for(t=0,n=e.items.length;t<n;t++)e.items[t].isNew&&e.items[t].isNew()||o._destroyed.push(e.items[t]);!o.options.autoSync||"add"!==r&&"remove"!==r&&"itemchange"!==r?(o._updateTotalForAction(r,e?e.items:[]),o._process(o._data,e)):(i=function(t){"sync"===t.action&&(o.unbind("change",i),o._updateTotalForAction(r,e.items))},o.first("change",i),o.sync())},_calculateAggregates:function(e,t){t=t||{};var n=new a(e),i=t.aggregate,o=t.filter;return o&&(n=n.filter(o)),n.aggregate(i)},_process:function(e,n){var i,o=this,r={};o.options.serverPaging!==!0&&(r.skip=o._skip,r.take=o._take||o._pageSize,r.skip===t&&o._page!==t&&o._pageSize!==t&&(r.skip=(o._page-1)*o._pageSize),o.options.useRanges&&(r.skip=o.currentRangeStart())),o.options.serverSorting!==!0&&(r.sort=o._sort),o.options.serverFiltering!==!0&&(r.filter=o._filter),o.options.serverGrouping!==!0&&(r.group=o._group),o.options.serverAggregates!==!0&&(r.aggregate=o._aggregate),o.options.serverGrouping&&o._clearEmptyGroups(e),r.groupPaging=o._groupPaging,i=o._isGroupPaged()&&n&&("page"===n.action||"expandGroup"===n.action||"collapseGroup"===n.action)?o._queryProcess(e,{aggregate:o._aggregate}):o._queryProcess(e,r),o.options.serverAggregates!==!0&&(o._aggregateResult=o._calculateAggregates(i.dataToAggregate||e,r)),o._setView(i,r,n),o._setFilterTotal(i.total,!1),n=n||{},n.items=n.items||o._view,o.trigger(Be,n)},_setView:function(e,t,n){var i,o=this;o._isGroupPaged()&&!o._isServerGrouped()?!n||"page"!==n.action&&"expandGroup"!==n.action&&"collapseGroup"!==n.action?(o._ranges=[],i=new a(e.data),o._addRange(o._observe(e.data)),t.skip+t.take>e.data.length&&(t.skip=e.data.length-t.take),o.view(i.range(t.skip,t.take).toArray())):(o.view(e.data),o._updateOuterRangesLength()):o.view(e.data)},_clearEmptyGroups:function(e){var t,n;for(t=e.length-1;t>=0;t--)n=e[t],n.hasSubgroups?this._clearEmptyGroups(n.items):n.items&&!n.items.length&&Xe.apply(n.parent(),[t,1])},_queryProcess:function(e,t){return this.options.inPlaceSort?a.process(e,t,this.options.inPlaceSort):a.process(e,t)},_mergeState:function(n){var i=this;return n!==t&&(i._pageSize=n.pageSize,i._page=n.page,i._sort=n.sort,i._filter=n.filter,i._group=n.group,i._aggregate=n.aggregate,i._skip=i._currentRangeStart=n.skip,i._take=n.take,i._skip===t&&(i._skip=i._currentRangeStart=i.skip(),n.skip=i.skip()),i._take===t&&i._pageSize!==t&&(i._take=i._pageSize,n.take=i._take),n.sort&&(i._sort=n.sort=s(n.sort),i._sortFields=l(n.sort)),n.filter&&(i._filter=n.filter=i.options.accentFoldingFiltering&&!e.isEmptyObject(n.filter)?e.extend({},c(n.filter),{accentFoldingFiltering:i.options.accentFoldingFiltering}):c(n.filter)),n.group&&(i._group=n.group=g(n.group)),n.aggregate&&(i._aggregate=n.aggregate=m(n.aggregate))),n},query:function(n){var i,o,r,a=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return a||(this._data===t||0===this._data.length)&&!this._destroyed.length?(this.options.endless&&(o=n.pageSize-this.pageSize(),o>0?(o=this.pageSize(),n.page=n.pageSize/o,n.pageSize=o):(n.page=1,this.options.endless=!1)),this.read(this._mergeState(n))):(r=this.trigger(Oe,{type:"read"}),r||(this.trigger(Ve),n&&(n.groupPaging=this._groupPaging),i=this._queryProcess(this._data,this._mergeState(n)),this._setFilterTotal(i.total,!0),this._aggregateResult=this._calculateAggregates(i.dataToAggregate||this._data,n),this._setView(i,n),this.trigger(We,{type:"read"}),this.trigger(Be,{items:i.data,action:n?n.action:""})),e.Deferred().resolve(r).promise())},_hasExpandedSubGroups:function(e){var t,n=!1,i=e.items?e.items.length:0;if(!e.hasSubgroups)return!1;for(t=0;t<i;t++)if(this._groupsState[e.items[t].uid]){n=!0;break}return n},_findGroupedRange:function(e,n,i,o,r){var a,s,l,d,c,u,h,p,f=this,m=e.length;for(h=0;h<m&&(a=e[h],!(i.taken>=i.take));h++)if(f._getGroupByUid(a.uid)||f._groupsFlat.push(a),f._groupsState[a.uid]){if(f._isServerGroupPaged()){if(a.hasSubgroups&&!a.subgroupCount)return f.getGroupSubGroupCount(a,i,o,r),f._fetchingGroupItems=!0,t;if(c=(a.subgroupCount||a.itemCount)+1,u=i.skip-i.skipped,d=!a.items||a.items.length-u<i.take-i.taken,!f._hasExpandedSubGroups(a)&&u>c){i.skipped+=c;continue}if(a.hasSubgroups&&(!a.items||d&&a.items.length<a.subgroupCount)||!a.hasSubgroups&&(!a.items||d&&a.items.length<a.itemCount))return f.getGroupItems(a,i,o,r),f._fetchingGroupItems=!0,t}if(i.includeParents&&i.skipped<i.skip?(i.skipped++,a.excludeHeader=!0):i.includeParents&&i.taken++,a.hasSubgroups&&a.items&&a.items.length)a.currentItems=[],o||(o=[]),o.push(a),f._findGroupedRange(a.items,a.currentItems,i,o,r),o.pop(),a.currentItems.length||i.taken>0?n.push(a):a.excludeHeader=!1;else{for(s=[],l=a.items.length,p=0;p<l;p++)if(i.skipped<i.skip)i.skipped++;else{if(i.taken>=i.take)break;s.push(a.items[p]),i.taken++}s.length||i.taken>0?(a.currentItems=s,n.push(a)):a.excludeHeader=!1}}else{if(i.skipped<i.skip){i.skipped++;continue}n.push(a),i.taken++}},getGroupItems:function(e,t,n,i){var o,r,a,s,l,d=this;e.items||(e.items=[]),o=e.items.length,r=d.take(),a=this._composeItemsFilter(e,n),s={page:$e.floor((o||0)/(r||1))||1,pageSize:r,skip:o,take:r,filter:a,aggregate:d._aggregate,sort:d._sort},l=d.findSubgroups(e),l&&l.length&&(s.group=l,s.groupPaging=!0),clearTimeout(d._timeout),d._timeout=setTimeout(function(){d._queueRequest(s,function(){d.trigger(Oe,{type:"read"})?d._dequeueRequest():d.transport.read({data:s,success:d._groupItemsSuccessHandler(e,t.skip,d.take(),i),error:function(){var e=Je.call(arguments);d.error.apply(d,e)}})})},100)},getGroupSubGroupCount:function(e,t,n,i){var o,r,a,s=this;e.items||(e.items=[]),o=this._composeItemsFilter(e,n),r=this._group.map(function(e){return e.field}).indexOf(e.field),a={filter:o,group:[s._group[r+1]],groupPaging:!0,includeSubGroupCount:!0},clearTimeout(s._timeout),s._timeout=setTimeout(function(){s._queueRequest(a,function(){s.trigger(Oe,{type:"read"})?s._dequeueRequest():s.transport.read({data:a,success:s._subGroupCountSuccessHandler(e,t.skip,s.take(),i),error:function(){var e=Je.call(arguments);s.error.apply(s,e)}})})},100)},_subGroupCountSuccessHandler:function(e,t,n,i){var o,r=this;return i=Te(i)?i:Ce,o=r.options.schema&&r.options.schema.total?r.options.schema.total:"Total",function(a){r._dequeueRequest(),r.trigger(We,{response:a,type:"read"}),r._fetchingGroupItems=!1,e.subgroupCount=Te(o)?o(a):a[o],r.range(t,n,i,"expandGroup")}},_groupItemsSuccessHandler:function(e,t,n,i){var o=this,r=o._timeStamp();return i=Te(i)?i:Ce,function(a){var s,l,d=ee.define(o.options.schema.model);for(o._dequeueRequest(),o.trigger(We,{response:a,type:"read"}),a=o.reader.parse(a),e.hasSubgroups?s=o.reader.groups(a):(s=o.reader.data(a),s=s.map(function(e){return new d(e)})),e.items.omitChangeEvent=!0,l=0;l<s.length;l++)e.items.push(s[l]);e.items.omitChangeEvent=!1,o._updateRangePristineData(e),o._fetchingGroupItems=!1,o._serverGroupsTotal+=s.length,o.range(t,n,i,"expandGroup"),(r>=o._currentRequestTimeStamp||!o._skipRequestsInProgress)&&o.trigger(Be,{})}},findSubgroups:function(e){var t=this._group.map(function(e){return e.field}).indexOf(e.field);return this._group.slice(t+1,this._group.length)},_composeItemsFilter:function(e,t){var n,i=this.filter()||{logic:"and",filters:[]};if(i=ge(!0,{},i),i.filters.push({field:e.field,operator:"eq",value:e.value}),t)for(n=0;n<t.length;n++)i.filters.push({field:t[n].field,operator:"eq",value:t[n].value});return i},_updateRangePristineData:function(e){var t,n,i,o,r,a,s,l=this,d=l._ranges,c=d.length;for(a=0;a<c;a++){for(i=d[a],o=i.data.length,r=[],s=0;s<o&&(n=i.data[s],r.push(s),!(n.uid===e.uid||n.hasSubgroups&&n.items.length&&l._containsSubGroup(n,e,r)));s++)r.pop();if(r.length){for(t=d[a].pristineData;r.length>1;)t=t[r.splice(0,1)[0]].items;t[r[0]]=l._cloneGroup(e);break}}},_containsSubGroup:function(e,t,n){var i,o,r=this,a=e.items.length;if(e.hasSubgroups&&a)for(o=0;o<a;o++){if(i=e.items[o],n.push(o),i.uid===t.uid)return!0;if(i.hasSubgroups&&i.items.length)return r._containsSubGroup(i,t,n);n.pop()}},_cloneGroup:function(e){var t=this;return e="function"==typeof e.toJSON?e.toJSON():e,e.items&&e.items.length&&(e.items=e.items.map(function(e){return t._cloneGroup(e)})),e},_setFilterTotal:function(e,n){var i=this;i.options.serverFiltering||(e!==t?i._total=e:n&&(i._total=i._data.length))},fetch:function(e){var t=this,n=function(n){n!==!0&&Te(e)&&e.call(t)};return this._query().done(n)},_query:function(e){var t=this;return t.query(ge({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var t=this,n=t.page(),i=t.total();if(e=e||{},n&&!(i&&n+1>t.totalPages()))return t._skip=t._currentRangeStart=n*t.take(),n+=1,e.page=n,t._query(e),n},prev:function(e){var t=this,n=t.page();if(e=e||{},n&&1!==n)return t._skip=t._currentRangeStart=t._skip-t.take(),n-=1,e.page=n,t._query(e),n},page:function(e){var n,i,o=this;return e!==t?(e=$e.max($e.min($e.max(e,1),o.totalPages()),1),i=o.take(),o._isGroupPaged()?(e-=1,o.range(e*i,i,null,"page"),t):(o._query(o._pageableQueryOptions({page:e})),t)):(n=o.skip(),n!==t?$e.round((n||0)/(o.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?(n._query(n._pageableQueryOptions({pageSize:e,page:1})),t):n.take()},sort:function(e){var n=this;return e!==t?(n.trigger("sort"),n._query({sort:e}),t):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n.trigger("reset"),n._query({filter:e,page:1}),t)},group:function(e){var n=this,i={group:e};return n._groupPaging&&(i.page=1),e!==t?(n._query(i),t):n._group},getGroupsFlat:function(e){var t,n,i,o=[];for(t=0,n=e.length;t<n;t++)i=e[t],i.hasSubgroups&&(o=o.concat(this.getGroupsFlat(i.items))),o.push(i);return o},total:function(){return parseInt(this._total||0,10)},groupsTotal:function(e){var t=this;return t._group.length?t._isServerGrouped()?t._serverGroupsTotal?t._serverGroupsTotal:t._serverGroupsTotal=t.total():t._calculateGroupsTotal(t._ranges.length?t._ranges[0].data:[],e):t.total()},_calculateGroupsTotal:function(e,t,n,i){var o,r,a,s=this;if(n=n||"items",s._group.length&&e){for(o=0,r=e.length,a=0;a<r;a++)o+=s.groupCount(e[a],t,n,i);return s._groupsTotal=o,o}return s._groupsTotal=s._data.length},groupCount:function(e,t,n,i){var o=this,r=0;return e.hasSubgroups&&o._groupsState[e.uid]?((t&&!e.excludeHeader||i)&&(r+=1),e[n].forEach(function(e){r+=o.groupCount(e,t,n,i)})):o._groupsState[e.uid]?((t&&!e.excludeHeader||i)&&r++,r+=e[n]?e[n].length:0):r++,r},countGroupRange:function(e){var t,n=0,i=e.length;for(t=0;t<i;t++)n+=this.groupCount(e[t],!0);return n},aggregate:function(e){var n=this;return e!==t?(n._query({aggregate:e}),t):n._aggregate},aggregates:function(){var e=this._aggregateResult;return be(e)&&(e=this._emptyAggregates(this.aggregate())),e},_emptyAggregates:function(e){var t,n,i={};if(!be(e))for(t={},we(e)||(e=[e]),n=0;n<e.length;n++)t[e[n].aggregate]=0,i[e[n].field]=t;return i},_pageableQueryOptions:function(e){return e},_wrapInEmptyGroup:function(e){var t,n,i,o,r=this.group();for(i=r.length-1,o=0;i>=o;i--)n=r[i],t={value:e.get?e.get(n.field):e[n.field],field:n.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(n.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total(),n=e._isGroupPaged()?e.groupsTotal(!0):e.total();return $e.ceil((n||0)/t)},inRange:function(e,t){var n=this,i=$e.min(e+t,n.total());return!n.options.serverPaging&&n._data.length>0||n._findRange(e,i).length>0},lastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(e,n,i,o){var r,a,s,l,d;return this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,r=this._isGroupPaged()?this.groupsTotal(!0):this.total(),"expandGroup"!==o&&"collapseGroup"!==o||this._updateOuterRangesLength(),e=$e.min(e||0,r),i=Te(i)?i:Ce,a=this,s=$e.max($e.floor(e/n),0)*n,l=$e.min(s+n,r),d=a._findRange(e,$e.min(e+n,r),i),!d.length&&0!==r||a._fetchingGroupItems?(a._isGroupPaged()&&(a._originalPageSkip=s,a._originalSize=l,s=$e.max($e.floor(a._adjustPageSkip(e,n)/n),0)*n,l=$e.min(s+n,r)),n===t||a._fetchingGroupItems||(a._isGroupPaged()&&!a._groupRangeExists(s,n)||!a._rangeExists(s,l)?a.prefetch(s,n,function(){e>s&&l<a.total()&&!a._rangeExists(l,$e.min(l+n,a.total()))?a.prefetch(l,n,function(){a.range(e,n,i)}):a.range(e,n,i)}):s<e&&a.prefetch(l,n,function(){a.range(e,n,i)})),t):(a._processRangeData(d,e,n,a._originalPageSkip||s,a._originalSize||l,{action:o}),a._originalPageSkip=null,a._originalSize=null,i(),t)},_findRange:function(e,n,i){var o,r,a,l,d,c,u,h,p,f,m,g,_,b,w=this,k=w._ranges,y=[],x=w.options,C=x.serverSorting||x.serverPaging||x.serverFiltering||x.serverGrouping||x.serverAggregates,S={take:n-e,skip:e,skipped:0,taken:0,includeParents:!0},T=w._isGroupPaged(),D=T?"outerStart":"start",A=T?"outerEnd":"end";for(r=0,m=k.length;r<m;r++){if(o=k[r],T){if(o.outerStart>=n)return[];if(e>o.outerEnd){S.skipped+=o.outerEnd-(g||0),g=o.outerEnd;continue}if(t!==g&&g!=o.outerStart&&(S.skipped+=o.outerStart-g),S.skipped>S.skip)return[];for(t===g&&e>0&&o.start>0&&(S.skipped=o.outerStart),a=r;;){if(this._findGroupedRange(o.data,y,S,null,i),_=w._calculateGroupsTotal(y,!0,"currentItems"),_>=S.take)return y;if(w._fetchingGroupItems)return[];if(a++,!k[a]||k[a].outerStart!==o.outerEnd)break;o=k[a]}}else if(e>=o[D]&&e<=o[A]){for(f=0,a=r;a<m;a++)if(o=k[a],p=w._flatData(o.data,!0),p.length&&e+f>=o.start&&(c=o.data,u=o.end,C||(x.inPlaceSort?h=w._queryProcess(o.data,{filter:w.filter()}):(b=v(w.group()||[]).concat(s(w.sort()||[])),h=w._queryProcess(o.data,{sort:b,filter:w.filter()})),p=c=h.data,h.total!==t&&(u=h.total)),l=0,e+f>o.start&&(l=e+f-o.start),d=p.length,u>n&&(d-=u-n),f+=d-l,y=w._mergeGroups(y,c,l,d),n<=o.end&&f==n-e))return y;break}g=o.outerEnd}return[]},_getRangesMismatch:function(e){for(var t,n=this,i=n._ranges,o=0,r=0;;){if(t=i[r],!t||t.outerStart>e)break;t.outerEnd!=t.end&&(o=t.outerEnd-t.end),r++}return o},_mergeGroups:function(e,t,n,i){if(this._isServerGrouped()){var o,r=t.toJSON();return e.length&&(o=e[e.length-1]),
I(o,r,n,i),e.concat(r)}return e.concat(t.slice(n,i))},_processRangeData:function(e,n,i,o,r,a){var s,l,d,c,u=this;u._pending=t,u._skip=n>u.skip()&&!u._omitPrefetch?$e.min(r,(u.totalPages()-1)*u.take()):o,u._currentRangeStart=n,u._take=i,s=u.options.serverPaging,l=u.options.serverSorting,d=u.options.serverFiltering,c=u.options.serverAggregates;try{u.options.serverPaging=!0,u._isServerGrouped()||u.group()&&u.group().length||(u.options.serverSorting=!0),u.options.serverFiltering=!0,u.options.serverPaging=!0,u.options.serverAggregates=!0,s&&(u._detachObservableParents(),u._data=e=u._observe(e)),u._process(e,a)}finally{u.options.serverPaging=s,u.options.serverSorting=l,u.options.serverFiltering=d,u.options.serverAggregates=c}},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,n,i){var o=this,r=o._timeStamp();return function(a){var s,l,d,c=!1,u={start:e,end:t,data:[],timestamp:o._timeStamp()};if(o._dequeueRequest(),o.trigger(We,{response:a,type:"read"}),a=o.reader.parse(a),d=o._readData(a),d.length){for(s=0,l=o._ranges.length;s<l;s++)if(o._ranges[s].start===e){c=!0,u=o._ranges[s],o._isGroupPaged()||(u.pristineData=d,u.data=o._observe(d),u.end=u.start+o._flatData(u.data,!0).length,o._sortRanges());break}c||o._addRange(o._observe(d),e)}o._total=o.reader.total(a),(i||r>=o._currentRequestTimeStamp||!o._skipRequestsInProgress)&&(n&&d.length?n():o.trigger(Be,{}))}},prefetch:function(e,n,i){var o=this,r=$e.min(e+n,o.total()),a={take:n,skip:e,page:e/n+1,pageSize:n,sort:o._sort,filter:o._filter,group:o._group,aggregate:o._aggregate};return o._isGroupPaged()&&!o._isServerGrouped()&&o._groupRangeExists(e,r)?(i&&i(),t):(o._isServerGroupPaged()&&!o._groupRangeExists(e,r)||!o._rangeExists(e,r)?(clearTimeout(o._timeout),o._timeout=setTimeout(function(){o._queueRequest(a,function(){o.trigger(Oe,{type:"read"})?o._dequeueRequest():(o._omitPrefetch&&o.trigger(Ve),o.transport.read({data:o._params(a),success:o._prefetchSuccessHandler(e,r,i),error:function(){var e=Je.call(arguments);o.error.apply(o,e)}}))})},100)):i&&i(),t)},_multiplePrefetch:function(e,t,n){var i=this,o=$e.min(e+t,i.total()),r={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,o)?n&&n():i.trigger(Oe,{type:"read"})||i.transport.read({data:i._params(r),success:i._prefetchSuccessHandler(e,o,n,!0)})},_adjustPageSkip:function(e,t){var n,i,o=this,r=o._getPrevRange(e),a=o.total();if(r){if(i=o._getRangesMismatch(e),!i)return e;e-=i}if(n=$e.max($e.floor(e/t),0)*t,n>a)for(;;)if(n-=t,n<a)break;return n},_getNextRange:function(e){var t,n,i=this,o=i._ranges;for(t=0,n=o.length;t<n;t++)if(o[t].start<=e&&o[t].end>=e)return o[t]},_getPrevRange:function(e){var t,n,i=this,o=i._ranges,r=o.length;for(t=r-1;t>=0;t--)if(o[t].outerStart<=e){n=o[t];break}return n},_rangeExists:function(e,t){var n,i,o=this,r=o._ranges;for(n=0,i=r.length;n<i;n++)if(r[n].start<=e&&r[n].end>=t)return!0;return!1},_groupRangeExists:function(e,t){var n,i,o,r=this,a=r._ranges,s=0,l=r.groupsTotal(!0);for(t>l&&!r._isServerGrouped()&&(t=l),n=0,i=a.length;n<i;n++)o=a[n],o.outerStart<=e&&o.outerEnd>=e?s+=o.outerEnd-e:o.outerStart<=t&&o.outerEnd>=t&&(s+=t-o.outerStart);return s>=t-e},_getCurrentRangeSpan:function(){var e,t,n=this,i=n._ranges,o=n.currentRangeStart(),r=o+(n.take()||0),a=[],s=i.length;for(t=0;t<s;t++)e=i[t],(e.start<=o&&e.end>=o||e.start>=o&&e.start<=r)&&a.push(e);return a},_removeModelFromRanges:function(e){var t,n,i,o=this;for(n=0,i=this._ranges.length;n<i;n++)t=this._ranges[n],o._removeModelFromRange(t,e);o._updateRangesLength()},_removeModelFromRange:function(e,t){this._eachItem(e.data,function(e){var n,i;if(e)for(n=0;n<e.length;n++)if(i=e[n],i.uid&&i.uid==t.uid){[].splice.call(e,n,1);break}})},_insertModelInRange:function(e,t){var n,i,o=this,r=o._ranges||[],a=r.length;for(i=0;i<a;i++)if(n=r[i],n.start<=e&&n.end>=e){o._getByUid(t.uid,n.data)||(o._isServerGrouped()?n.data.splice(e,0,o._wrapInEmptyGroup(t)):n.data.splice(e,0,t));break}o._updateRangesLength()},_updateRangesLength:function(){var e,t,n,i=this,o=i._ranges||[],r=o.length,a=!1,s=0,l=0;for(n=0;n<r;n++)t=o[n],e=i._isGroupPaged()?t.data.length:i._flatData(t.data,!0).length,l=e-$e.abs(t.end-t.start),a||0===l?a&&(t.start+=s,t.end+=s):(a=!0,s=l,t.end+=s)},_updateOuterRangesLength:function(){var e,t,n,i,o=this,r=o._ranges||[],a=r.length,s=0;for(t=0;t<a;t++)e=r[t],i=o._isGroupPaged()?o._calculateGroupsTotal(e.data,!0,"items",!0):o._flatData(e.data,!0).length,n?(n.end!=e.start&&(s=e.start-n.end),e.outerStart=n.outerEnd+s,s=0):e.outerStart=e.start,e.outerEnd=e.outerStart+i,n=e}}),ue={},ue.create=function(t,n,i){var o,r=t.transport?e.extend({},t.transport):null;return r?(r.read=typeof r.read===Ee?{url:r.read}:r.read,"jsdo"===t.type&&(r.dataSource=i),t.type&&(Se.data.transports=Se.data.transports||{},Se.data.schemas=Se.data.schemas||{},Se.data.transports[t.type]?_e(Se.data.transports[t.type])?r=ge(!0,{},Se.data.transports[t.type],r):o=new Se.data.transports[t.type](ge(r,{data:n})):Se.logToConsole("Unknown DataSource transport type '"+t.type+"'.\nVerify that registration scripts for this type are included after Kendo UI on the page.","warn"),t.schema=ge(!0,{},Se.data.schemas[t.type],t.schema)),o||(o=Te(r.read)?r:new se(r))):o=new ae({data:t.data||[]}),o},ce.create=function(e){(we(e)||e instanceof rt)&&(e={data:e});var n,i,o,r=e||{},a=r.data,s=r.fields,l=r.table,d=r.select,c={};if(a||!s||r.transport||(l?a=G(l,s):d&&(a=q(d,s),r.group===t&&a[0]&&a[0].optgroup!==t&&(r.group="optgroup"))),Se.data.Model&&s&&(!r.schema||!r.schema.model)){for(n=0,i=s.length;n<i;n++)o=s[n],o.type&&(c[o.field]=o);be(c)||(r.schema=ge(!0,r.schema,{model:{fields:c}}))}return r.data=a,d=null,r.select=null,l=null,r.table=null,r instanceof ce?r:new ce(r)},he=ee.define({idField:"id",init:function(e){var t,n=this,i=n.hasChildren||e&&e.hasChildren,o="items",r={};Se.data.Model.fn.init.call(n,e),typeof n.children===Ee&&(o=n.children),r={schema:{data:o,model:{hasChildren:i,id:n.idField,fields:n.fields}}},typeof n.children!==Ee&&ge(r,n.children),r.data=e,i||(i=r.schema.data),typeof i===Ee&&(i=Se.getter(i)),Te(i)&&(t=i.call(n,n),n.hasChildren=(!t||0!==t.length)&&!!t),n._childrenOptions=r,n.hasChildren&&n._initChildren(),n._loaded=!(!e||!e._loaded)},_initChildren:function(){var e,t,n,i=this;i.children instanceof pe||(e=i.children=new pe(i._childrenOptions),t=e.transport,n=t.parameterMap,t.parameterMap=function(e,t){return e[i.idField||"id"]=i.id,n&&(e=n.call(i,e,t)),e},e.parent=function(){return i},e.bind(Be,function(e){e.node=e.node||i,i.trigger(Be,e)}),e.bind(Ne,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(Ne,e))}),i._updateChildrenField())},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},_updateChildrenField:function(){var e=this._childrenOptions.schema.data;this[e||"items"]=this.children.data()},_childrenLoaded:function(){this._loaded=!0,this._updateChildrenField()},load:function(){var n,i,o={},r="_query";return this.hasChildren?(this._initChildren(),n=this.children,o[this.idField||"id"]=this.id,this._loaded||(n._data=t,r="read"),n.one(Be,ve(this._childrenLoaded,this)),this._matchFilter&&(o.filter={field:"_matchFilter",operator:"eq",value:!0}),i=n[r](o)):this.loaded(!0),i||e.Deferred().resolve().promise()},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return ee.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),pe=ce.extend({init:function(e){var t=he.define({children:e});e.filter&&!e.serverFiltering&&(this._hierarchicalFilter=e.filter,e.filter=null),ce.fn.init.call(this,ge(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(Ne,function(t){e.trigger(Ne,t)})},read:function(e){var t=ce.fn.read.call(this,e);return this._hierarchicalFilter&&(this._data&&this._data.length>0?this.filter(this._hierarchicalFilter):(this.options.filter=this._hierarchicalFilter,this._filter=c(this.options.filter),this._hierarchicalFilter=null)),t},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=ce.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},success:$("success"),data:$("data"),insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(n.hasChildren=!0,n._initChildren()),ce.fn.insert.call(this,e,t)},filter:function(e){return e===t?this._filter:(!this.options.serverFiltering&&this._markHierarchicalQuery(e)&&(e={logic:"or",filters:[e,{field:"_matchFilter",operator:"equals",value:!0}]}),this.trigger("reset"),this._query({filter:e,page:1}),t)},_markHierarchicalQuery:function(t){var n,i,o,r,s,l=this.options.accentFoldingFiltering;return t=l?e.extend({},c(t),{accentFoldingFiltering:l}):c(t),t&&0!==t.filters.length?(n=a.filterExpr(t),o=n.fields,r=n.operators,i=s=Function("d, __f, __o","return "+n.expression),(o.length||r.length)&&(s=function(e){return i(e,o,r)}),this._updateHierarchicalFilter(s),!0):(this._updateHierarchicalFilter(function(){return!0}),!1)},_updateHierarchicalFilter:function(e){var t,n,i=this._data,o=!1;for(n=0;n<i.length;n++)t=i[n],t.hasChildren?(t._matchFilter=t.children._updateHierarchicalFilter(e),t._matchFilter||(t._matchFilter=e(t))):t._matchFilter=e(t),t._matchFilter&&(o=!0);return o},_find:function(e,t){var n,i,o,r,a=this._data;if(a){if(o=ce.fn[e].call(this,t))return o;for(a=this._flatData(this._data),n=0,i=a.length;n<i;n++)if(r=a[n].children,r instanceof pe&&(o=r[e](t)))return o}},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}}),pe.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data,i=t.fields,o=t.list;return n&&n._dataSource?n._dataSource:(n||!i||t.transport||o&&(n=K(o,i)),t.data=n,t instanceof pe?t:new pe(t))},fe=Se.Observable.extend({init:function(e,t,n){Se.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!n;var i=this;e.bind("change",function(){i._change()}),e.bind("reset",function(){i._reset()}),this._syncWithDataSource(),this.setViewSize(t)},setViewSize:function(e){this.viewSize=e,this._recalculate()},at:function(e){var n=this.pageSize,i=!0;return e>=this.total()?(this.trigger("endreached",{index:e}),null):this.useRanges?this.useRanges?((e<this.dataOffset||e>=this.skip+n)&&(i=this.range(Math.floor(e/n)*n)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange,!0):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),i?this.dataSource.at(e-this.dataOffset):(this.trigger("endreached",{index:e}),null)):t:this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,n=e.skip-e.viewSize+t,i=$e.max($e.floor(n/t),0)*t;this.offset=n,this.dataSource.prefetch(i,t,function(){e._goToRange(n,!0)})},range:function(e,t){if(this.offset===e)return!0;var n=this,i=this.pageSize,o=$e.max($e.floor(e/i),0)*i,r=this.dataSource;return t&&(o+=i),r.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):!this.prefetch||(r.prefetch(o,i,function(){n.offset=e,n._recalculate(),n._goToRange(e,!0)}),!1)},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,n=this.skip+t,i=this.dataSource;i.inRange(n,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:n,take:t}),i.prefetch(n,t,function(){e._prefetching=!1,e.trigger("prefetched",{skip:n,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var e=this.dataSource;this.length=this.useRanges?e.lastRange().end:e.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger("reset",{offset:this.offset})),this.trigger("resize"),this._expanding&&this.trigger("expand"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,n=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+n-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-n,this.nextFullRange=i,this.previousMidRange=t-n,this.previousFullRange=i-e}}),me=Se.Observable.extend({init:function(e,t){var n=this;Se.Observable.fn.init.call(n),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new fe(e,3*t),this.buffer.bind({endreached:function(e){n.trigger("endreached",{index:e.index})},prefetching:function(e){n.trigger("prefetching",{skip:e.skip,take:e.take})},prefetched:function(e){n.trigger("prefetched",{skip:e.skip,take:e.take})},reset:function(){n._total=0,n.trigger("reset")},resize:function(){n._total=Math.ceil(this.length/n.batchSize),n.trigger("resize",{total:n.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,n,i=this.buffer,o=e*this.batchSize,r=this.batchSize,a=[];for(i.offset>o&&i.at(i.offset-1),n=0;n<r&&(t=i.at(o+n),null!==t);n++)a.push(t);return a},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}}),ge(!0,Se.data,{readers:{json:de},Query:a,DataSource:ce,HierarchicalDataSource:pe,Node:he,Comparer:te,ObservableObject:X,ObservableArray:rt,LazyObservableArray:Q,LocalTransport:ae,RemoteTransport:se,Cache:le,DataReader:de,Model:ee,Buffer:fe,BatchBuffer:me})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.binder.min",["kendo.core.min","kendo.data.min"],e)}(function(){return function(e,t){function n(t,n,i){return v.extend({init:function(e,t,n){var i=this;v.fn.init.call(i,e.element[0],t,n),i.widget=e,i._dataBinding=M(i.dataBinding,i),i._dataBound=M(i.dataBound,i),i._itemChange=M(i.itemChange,i)},itemChange:function(e){a(e.item[0],e.data,this._ns(e.ns),[e.data].concat(this.bindings[t]._parents()))},dataBinding:function(e){var t,n,i=this.widget,o=e.removedItems||i.items();for(t=0,n=o.length;t<n;t++)d(o[t],!1)},_ns:function(t){t=t||C.ui;var n=[C.ui,C.dataviz.ui,C.mobile.ui];return n.splice(e.inArray(t,n),1),n.unshift(t),C.rolesFromNamespaces(n)},dataBound:function(e){var i,o,r,s,l=this.widget,d=e.addedItems||l.items(),c=l[n],u=C.data.HierarchicalDataSource;if(!(u&&c instanceof u)&&d.length)for(r=e.addedDataItems||c.flatView(),s=this.bindings[t]._parents(),i=0,o=r.length;i<o;i++)d[i]&&a(d[i],r[i],this._ns(e.ns),[r[i]].concat(s))},refresh:function(e){var o,r,a,s,l=this,d=l.widget;e=e||{},e.action||(l.destroy(),d.bind("dataBinding",l._dataBinding),d.bind("dataBound",l._dataBound),d.bind("itemChange",l._itemChange),o=l.bindings[t].get(),d[n]instanceof C.data.DataSource&&d[n]!=o&&(o instanceof C.data.DataSource?d[i](o):o&&o._dataSource?d[i](o._dataSource):(r=C.ui.Select&&d instanceof C.ui.Select,a=C.ui.MultiSelect&&d instanceof C.ui.MultiSelect,s=C.ui.DropDownTree&&d instanceof C.ui.DropDownTree,s?d.treeview[n].data(o):d[n].data(o),l.bindings.value&&(r||a)&&d.value(p(l.bindings.value.get(),d.options.dataValueField)))))},destroy:function(){var e=this.widget;e.unbind("dataBinding",this._dataBinding),e.unbind("dataBound",this._dataBound),e.unbind("itemChange",this._itemChange)}})}function i(e,t){var n=C.initWidget(e,{},t);if(n)return new k(n)}function o(e){var t,n,i,r,a,s,l,d={};for(l=e.match(y),t=0,n=l.length;t<n;t++)i=l[t],r=i.indexOf(":"),a=i.substring(0,r),s=i.substring(r+1),"{"==s.charAt(0)&&(s=o(s)),d[a]=s;return d}function r(e,t,n){var i,o={};for(i in e)o[i]=new n(t,e[i]);return o}function a(e,t,n,s){var d,c,u,h,p,v,_,b,k;if(e&&!e.getAttribute("data-"+C.ns+"stop")&&(d=e.getAttribute("data-"+C.ns+"role"),u=e.getAttribute("data-"+C.ns+"bind"),h=[],p=!0,_={},s=s||[t],(d||u)&&l(e,!1),d&&(b=i(e,n)),u&&(u=o(u.replace(x,"")),b||(_=C.parseOptions(e,{textField:"",valueField:"",template:"",valueUpdate:N,valuePrimitive:!1,autoBind:!0},t),_.roles=n,b=new w(e,_)),b.source=t,v=r(u,s,f),_.template&&(v.template=new g(s,"",_.template)),v.click&&(u.events=u.events||{},u.events.click=u.click,v.click.destroy(),delete v.click),v.source&&(p=!1),u.attr&&(v.attr=r(u.attr,s,f)),u.style&&(v.style=r(u.style,s,f)),u.events&&(v.events=r(u.events,s,m)),u.css&&(v.css=r(u.css,s,f)),b.bind(v)),b&&(e.kendoBindingTarget=b),k=e.children,p&&k&&!e.getAttribute("data-"+C.ns+"stop"))){for(c=0;c<k.length;c++)h[c]=k[c];for(c=0;c<h.length;c++)a(h[c],t,n,s)}}function s(t,n){var i,o,r,s=C.rolesFromNamespaces([].slice.call(arguments,2));for(n=C.observable(n),t=e(t),i=0,o=t.length;i<o;i++)r=t[i],1===r.nodeType&&a(r,n,s)}function l(t,n){var i,o=t.kendoBindingTarget;o&&(o.destroy(),L?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute("kendoBindingTarget"):t.kendoBindingTarget=null),n&&(i=C.widgetInstance(e(t)),i&&typeof i.destroy===H&&i.destroy())}function d(e,t){l(e,t),c(e,t)}function c(e,t){var n,i,o=e.children;if(o)for(n=0,i=o.length;n<i;n++)d(o[n],t)}function u(t){var n,i;for(t=e(t),n=0,i=t.length;n<i;n++)d(t[n],!1)}function h(e,t){var n=e.element,i=n[0].kendoBindingTarget;i&&s(n,i.source,t)}function p(e,t){var n,i,o=[],r=0;if(!t)return e;if(e instanceof D){for(n=e.length;r<n;r++)i=e[r],o[r]=i.get?i.get(t):i[t];e=o}else e instanceof T&&(e=e.get(t));return e}var f,m,g,v,_,b,w,k,y,x,C=window.kendo,S=C.Observable,T=C.data.ObservableObject,D=C.data.ObservableArray,A={}.toString,E={},I=C.Class,M=e.proxy,R="value",F="source",P="events",z="checked",B="css",L=!0,H="function",N="change";!function(){var e=document.createElement("a");try{delete e.test}catch(t){L=!1}}(),f=S.extend({init:function(e,t){var n=this;S.fn.init.call(n),n.source=e[0],n.parents=e,n.path=t,n.dependencies={},n.dependencies[t]=!0,n.observable=n.source instanceof S,n._access=function(e){n.dependencies[e.field]=!0},n.observable&&(n._change=function(e){n.change(e)},n.source.bind(N,n._change))},_parents:function(){var t,n=this.parents,i=this.get();return i&&"function"==typeof i.parent&&(t=i.parent(),e.inArray(t,n)<0&&(n=[t].concat(n))),n},change:function(e){var t,n,i=e.field,o=this;if("this"===o.path)o.trigger(N,e);else for(t in o.dependencies)if(0===t.indexOf(i)&&(n=t.charAt(i.length),!n||"."===n||"["===n)){o.trigger(N,e);break}},start:function(e){e.bind("get",this._access)},stop:function(e){e.unbind("get",this._access)},get:function(){var e=this,n=e.source,i=0,o=e.path,r=n;if(!e.observable)return r;for(e.start(e.source),r=n.get(o);r===t&&n;)n=e.parents[++i],n instanceof T&&(r=n.get(o));if(r===t)for(n=e.source;r===t&&n;)n=n.parent(),n instanceof T&&(r=n.get(o));return"function"==typeof r&&(i=o.lastIndexOf("."),i>0&&(n=n.get(o.substring(0,i))),e.start(n),r=n!==e.source?r.call(n,e.source):r.call(n),e.stop(n)),n&&n!==e.source&&(e.currentSource=n,n.unbind(N,e._change).bind(N,e._change)),e.stop(e.source),r},set:function(e){var t=this.currentSource||this.source,n=C.getter(this.path)(t);"function"==typeof n?t!==this.source?n.call(t,this.source,e):n.call(t,e):t.set(this.path,e)},destroy:function(){this.observable&&(this.source.unbind(N,this._change),this.currentSource&&this.currentSource.unbind(N,this._change)),this.unbind()}}),m=f.extend({get:function(){var e,t=this.source,n=this.path,i=0;for(e=t.get(n);!e&&t;)t=this.parents[++i],t instanceof T&&(e=t.get(n));return M(e,t)}}),g=f.extend({init:function(e,t,n){var i=this;f.fn.init.call(i,e,t),i.template=n},render:function(e){var t;return this.start(this.source),t=C.render(this.template,e),this.stop(this.source),t}}),v=I.extend({init:function(e,t,n){this.element=e,this.bindings=t,this.options=n},bind:function(e,t){var n=this;e=t?e[t]:e,e.bind(N,function(e){n.refresh(t||e)}),n.refresh(t)},destroy:function(){}}),_=v.extend({dataType:function(){var e=this.element.getAttribute("data-"+C.ns+"type")||this.element.type||"text";return e.toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(e,t){return"date"==t?e=C.parseDate(e,"yyyy-MM-dd"):"datetime-local"==t?e=C.parseDate(e,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==t?e=C.parseFloat(e):"boolean"==t&&(e=e.toLowerCase(),e=null!==C.parseFloat(e)?!!C.parseFloat(e):"true"===e.toLowerCase()),e}}),E.attr=v.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),E.css=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.classes={}},refresh:function(t){var n=e(this.element),i=this.bindings.css[t],o=this.classes[t]=i.get();o?n.addClass(t):n.removeClass(t)}}),E.style=v.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||""}}),E.enabled=v.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),E.readonly=v.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),E.disabled=v.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),E.events=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.handlers={}},refresh:function(t){var n=e(this.element),i=this.bindings.events[t],o=this.handlers[t];o&&n.off(t,o),o=this.handlers[t]=i.get(),n.on(t,i.source,o)},destroy:function(){var t,n=e(this.element);for(t in this.handlers)n.off(t,this.handlers[t])}}),E.text=v.extend({refresh:function(){var t=this.bindings.text.get(),n=this.element.getAttribute("data-"+C.ns+"format")||"";null==t&&(t=""),e(this.element).text(C.toString(t,n))}}),E.visible=v.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),E.invisible=v.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),E.html=v.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),E.value=_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=M(this.change,this),this.eventName=i.valueUpdate||N,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=N,this.bindings[R].set(this.parsedValue()),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[R].get(),null==e&&(e=""),t=this.dataType(),"date"==t?e=C.toString(e,"yyyy-MM-dd"):"datetime-local"==t&&(e=C.toString(e,"yyyy-MM-ddTHH:mm:ss")),this.element.value=e),this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),E.source=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n);var i=this.bindings.source.get();i instanceof C.data.DataSource&&n.autoBind!==!1&&i.fetch()},refresh:function(e){var t=this,n=t.bindings.source.get();n instanceof D||n instanceof C.data.DataSource?(e=e||{},"add"==e.action?t.add(e.index,e.items):"remove"==e.action?t.remove(e.index,e.items):"itemchange"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return"table"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement("tbody")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,n=this.container().nodeName.toLowerCase();return t||(t="select"==n?e.valueField||e.textField?C.format('<option value="#:{0}#">#:{1}#</option>',e.valueField||e.textField,e.textField||e.valueField):"<option>#:data#</option>":"tbody"==n?"<tr><td>#:data#</td></tr>":"ul"==n||"ol"==n?"<li>#:data#</li>":"#:data#",t=C.template(t)),t},add:function(t,n){var i,o,r,s,l=this.container(),d=l.cloneNode(!1),c=l.children[t];if(e(d).html(C.render(this.template(),n)),d.children.length)for(i=this.bindings.source._parents(),o=0,r=n.length;o<r;o++)s=d.children[0],l.insertBefore(s,c||null),a(s,n[o],this.options.roles,[n[o]].concat(i))},remove:function(e,t){var n,i,o=this.container();for(n=0;n<t.length;n++)i=o.children[e],d(i,!0),i.parentNode==o&&o.removeChild(i)},render:function(){var t,n,i,o=this.bindings.source.get(),r=this.container(),s=this.template();if(null!=o)if(o instanceof C.data.DataSource&&(o=o.view()),o instanceof D||"[object Array]"===A.call(o)||(o=[o]),this.bindings.template){if(c(r,!0),e(r).html(this.bindings.template.render(o)),r.children.length)for(t=this.bindings.source._parents(),n=0,i=o.length;n<i;n++)a(r.children[n],o[n],this.options.roles,[o[n]].concat(t))}else e(r).html(C.render(s,o))}}),E.input={checked:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=M(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,n,i=this.element,o=this.value();if("radio"==i.type)o=this.parsedValue(),this.bindings[z].set(o);else if("checkbox"==i.type)if(e=this.bindings[z].get(),e instanceof D){if(o=this.parsedValue(),o instanceof Date){for(n=0;n<e.length;n++)if(e[n]instanceof Date&&+e[n]===+o){t=n;break}}else t=e.indexOf(o);t>-1?e.splice(t,1):e.push(o)}else this.bindings[z].set(o)},refresh:function(){var e,n,i=this.bindings[z].get(),o=i,r=this.dataType(),a=this.element;if("checkbox"==a.type)if(o instanceof D){if(e=-1,i=this.parsedValue(),i instanceof Date){for(n=0;n<o.length;n++)if(o[n]instanceof Date&&+o[n]===+i){e=n;break}}else e=o.indexOf(i);a.checked=e>=0}else a.checked=o;else"radio"==a.type&&("date"==r?i=C.toString(i,"yyyy-MM-dd"):"datetime-local"==r&&(i=C.toString(i,"yyyy-MM-ddTHH:mm:ss")),a.checked=null!==i&&t!==i&&a.value===""+i)},value:function(){var e=this.element,t=e.value;return"checkbox"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(N,this._change)}})},E.select={source:E.source.extend({refresh:function(n){var i,o=this,r=o.bindings.source.get();r instanceof D||r instanceof C.data.DataSource?(n=n||{},"add"==n.action?o.add(n.index,n.items):"remove"==n.action?o.remove(n.index,n.items):"itemchange"!=n.action&&n.action!==t||(o.render(),o.bindings.value&&o.bindings.value&&(i=p(o.bindings.value.get(),e(o.element).data("valueField")),null===i?o.element.selectedIndex=-1:o.element.value=i))):o.render()}}),value:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=M(this.change,this),e(this.element).change(this._change)},parsedValue:function(){var e,t,n,i,o=this.dataType(),r=[];for(n=0,i=this.element.options.length;n<i;n++)t=this.element.options[n],t.selected&&(e=t.attributes.value,e=e&&e.specified?t.value:t.text,r.push(this._parseValue(e,o)));return r},change:function(){var e,n,i,o,r,a,s,l,d=[],c=this.element,u=this.options.valueField||this.options.textField,h=this.options.valuePrimitive;for(r=0,a=c.options.length;r<a;r++)n=c.options[r],n.selected&&(o=n.attributes.value,o=o&&o.specified?n.value:n.text,d.push(u?o:this._parseValue(o,this.dataType())));if(u)for(e=this.bindings.source.get(),e instanceof C.data.DataSource&&(e=e.view()),i=0;i<d.length;i++)for(r=0,a=e.length;r<a;r++)if(s=e[r].get(u),l=s+""===d[i]){d[i]=e[r];break}o=this.bindings[R].get(),o instanceof D?o.splice.apply(o,[0,o.length].concat(d)):this.bindings[R].set(h||!(o instanceof T||null===o||o===t)&&u?d[0].get(u):d[0])},refresh:function(){var e,t,n,i=this.element,o=i.options,r=this.bindings[R].get(),a=r,s=this.options.valueField||this.options.textField,l=!1,d=this.dataType();for(a instanceof D||(a=new D([r])),i.selectedIndex=-1,n=0;n<a.length;n++)for(r=a[n],s&&r instanceof T&&(r=r.get(s)),"date"==d?r=C.toString(a[n],"yyyy-MM-dd"):"datetime-local"==d&&(r=C.toString(a[n],"yyyy-MM-ddTHH:mm:ss")),e=0;e<o.length;e++)t=o[e].value,""===t&&""!==r&&(t=o[e].text),null!=r&&t==""+r&&(o[e].selected=!0,l=!0)},destroy:function(){e(this.element).off(N,this._change)}})},E.widget={events:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],n=this.handlers[e];n&&this.widget.unbind(e,n),n=t.get(),this.handlers[e]=function(e){e.data=t.source,n(e),e.data===t.source&&delete e.data},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this._change=M(this.change,this),this.widget.bind(N,this._change)},change:function(){this.bindings[z].set(this.value())},refresh:function(){this.widget.check(this.bindings[z].get()===!0)},value:function(){var e=this.element,t=e.value;return"on"!=t&&"off"!=t&&"checkbox"!=this.element.type||(t=e.checked),t},destroy:function(){this.widget.unbind(N,this._change)}}),start:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this._change=M(this.change,this),this.widget=e,this.widget.bind(N,this._change)},change:function(){this.bindings.start.set(this.widget.range().start)},refresh:function(){var e=this,t=this.bindings.start.get(),n=e.widget._range?e.widget._range.end:null;this.widget.range({start:t,end:n})},destroy:function(){this.widget.unbind(N,this._change)}}),end:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this._change=M(this.change,this),this.widget=e,this.widget.bind(N,this._change)},change:function(){this.bindings.end.set(this.widget.range().end)},refresh:function(){var e=this,t=this.bindings.end.get(),n=e.widget._range?e.widget._range.start:null;this.widget.range({start:n,end:t})},destroy:function(){this.widget.unbind(N,this._change)}}),visible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?"":"none"}}),invisible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?"none":""}}),enabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:n("source","dataSource","setDataSource"),value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(N,this._change);var o=this.bindings.value.get();this._valueIsObservableObject=!i.valuePrimitive&&(null==o||o instanceof T),this._valueIsObservableArray=o instanceof D,this._initChange=!1},_source:function(){var e;return this.widget.dataItem&&(e=this.widget.dataItem(),e&&e instanceof T)?[e]:(this.bindings.source&&(e=this.bindings.source.get()),(!e||e instanceof C.data.DataSource)&&(e=this.widget.dataSource.flatView()),e)},change:function(){var e,t,n,i,o,r,a,s=this.widget.value(),l=this.options.dataValueField||this.options.dataTextField,d="[object Array]"===A.call(s),c=this._valueIsObservableObject,u=[];if(this._initChange=!0,l)if(""===s&&(c||this.options.valuePrimitive))s=null;else{for(a=this._source(),d&&(t=s.length,u=s.slice(0)),o=0,r=a.length;o<r;o++)if(n=a[o],i=n.get(l),d){for(e=0;e<t;e++)if(i==u[e]){u[e]=n;break}}else if(i==s){s=c?n:i;break}u[0]&&(s=this._valueIsObservableArray?u:c||!l?u[0]:u[0].get(l))}this.bindings.value.set(s),
this._initChange=!1},refresh:function(){var e,n,i,o,r,a,s,l,d;if(!this._initChange){if(e=this.widget,n=e.options,i=n.dataTextField,o=n.dataValueField||i,r=this.bindings.value.get(),a=n.text||"",s=0,d=[],r===t&&(r=null),o)if(r instanceof D){for(l=r.length;s<l;s++)d[s]=r[s].get(o);r=d}else r instanceof T&&(a=r.get(i),r=r.get(o));n.autoBind!==!1||n.cascadeFrom||!e.listView||e.listView.bound()?e.value(r):(i!==o||a||(a=r),a||!r&&0!==r||!n.valuePrimitive?e._preselect(r,a):e.value(r))}this._initChange=!1},destroy:function(){this.widget.unbind(N,this._change)}}),dropdowntree:{value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(N,this._change),this._initChange=!1},change:function(){var e,n,i,o,r,a,s,l,d,c=this,u=c.bindings[R].get(),h=c.options.valuePrimitive,p=c.widget.treeview.select(),f=c.widget._isMultipleSelection()?c.widget._getAllChecked():c.widget.treeview.dataItem(p)||c.widget.value(),m=h||c.widget.options.autoBind===!1?c.widget.value():f,g=this.options.dataValueField||this.options.dataTextField;if(m=m.slice?m.slice(0):m,c._initChange=!0,u instanceof D){for(e=[],n=m.length,i=0,o=0,r=u[i],a=!1;r!==t;){for(d=!1,o=0;o<n;o++)if(h?a=m[o]==r:(l=m[o],l=l.get?l.get(g):l,a=l==(r.get?r.get(g):r)),a){m.splice(o,1),n-=1,d=!0;break}d?i+=1:(e.push(r),b(u,i,1),s=i),r=u[i]}b(u,u.length,0,m),e.length&&u.trigger("change",{action:"remove",items:e,index:s}),m.length&&u.trigger("change",{action:"add",items:m,index:u.length-1})}else c.bindings[R].set(m);c._initChange=!1},refresh:function(){if(!this._initChange){var e,t,n=this.options,i=this.widget,o=n.dataValueField||n.dataTextField,r=this.bindings.value.get(),a=r,s=0,l=[];if(o)if(r instanceof D){for(e=r.length;s<e;s++)t=r[s],l[s]=t.get?t.get(o):t;r=l}else r instanceof T&&(r=r.get(o));n.autoBind===!1&&n.valuePrimitive!==!0?i._preselect(a,r):i.value(r)}},destroy:function(){this.widget.unbind(N,this._change)}})},gantt:{dependencies:n("dependencies","dependencies","setDependenciesDataSource")},multiselect:{value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(N,this._change),this._initChange=!1},change:function(){var e,n,i,o,r,a,s,l,d,c=this,u=c.bindings[R].get(),h=c.options.valuePrimitive,p=h?c.widget.value():c.widget.dataItems(),f=this.options.dataValueField||this.options.dataTextField;if(p=p.slice(0),c._initChange=!0,u instanceof D){for(e=[],n=p.length,i=0,o=0,r=u[i],a=!1;r!==t;){for(d=!1,o=0;o<n;o++)if(h?a=p[o]==r:(l=p[o],l=l.get?l.get(f):l,a=l==(r.get?r.get(f):r)),a){p.splice(o,1),n-=1,d=!0;break}d?i+=1:(e.push(r),b(u,i,1),s=i),r=u[i]}b(u,u.length,0,p),e.length&&u.trigger("change",{action:"remove",items:e,index:s}),p.length&&u.trigger("change",{action:"add",items:p,index:u.length-1})}else c.bindings[R].set(p);c._initChange=!1},refresh:function(){if(!this._initChange){var e,n,i=this.options,o=this.widget,r=i.dataValueField||i.dataTextField,a=this.bindings.value.get(),s=a,l=0,d=[];if(a===t&&(a=null),r)if(a instanceof D){for(e=a.length;l<e;l++)n=a[l],d[l]=n.get?n.get(r):n;a=d}else a instanceof T&&(a=a.get(r));i.autoBind!==!1||i.valuePrimitive===!0||o._isBound()?o.value(a):o._preselect(s,a)}},destroy:function(){this.widget.unbind(N,this._change)}})},scheduler:{source:n("source","dataSource","setDataSource").extend({dataBound:function(e){var t,n,i,o,r=this.widget,s=e.addedItems||r.items();if(s.length)for(i=e.addedDataItems||r.dataItems(),o=this.bindings.source._parents(),t=0,n=i.length;t<n;t++)a(s[t],i[t],this._ns(e.ns),[i[t]].concat(o))}})},grid:{source:n("source","dataSource","setDataSource").extend({dataBound:function(e){var t,n,i,o,r=this.widget,s=e.addedItems||r.items();if(s.length)for(o=e.addedDataItems||r.dataItems(),i=this.bindings.source._parents(),t=0,n=o.length;t<n;t++)a(s[t],o[t],this._ns(e.ns),[o[t]].concat(i))}})},badge:{text:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.text.get();null==e&&(e=""),this.widget.text(e)}})}},b=function(e,t,n,i){var o,r,a,s,l;if(i=i||[],n=n||0,o=i.length,r=e.length,a=[].slice.call(e,t+n),s=a.length,o){for(o=t+o,l=0;t<o;t++)e[t]=i[l],l++;e.length=o}else if(n)for(e.length=t,n+=t;t<n;)delete e[--n];if(s){for(s=t+s,l=0;t<s;t++)e[t]=a[l],l++;e.length=s}for(t=e.length;t<r;)delete e[t],t++},w=I.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,n,i,o,r,a,s=this instanceof k,l=this.binders();for(t in e)t==R?n=!0:t==F?i=!0:t!=P||s?t==z?r=!0:t==B?a=!0:this.applyBinding(t,e,l):o=!0;i&&this.applyBinding(F,e,l),n&&this.applyBinding(R,e,l),r&&this.applyBinding(z,e,l),o&&!s&&this.applyBinding(P,e,l),a&&!s&&this.applyBinding(B,e,l)},binders:function(){return E[this.target.nodeName.toLowerCase()]||{}},applyBinding:function(e,t,n){var i,o=n[e]||E[e],r=this.toDestroy,a=t[e];if(o)if(o=new o(this.target,t,this.options),r.push(o),a instanceof f)o.bind(a),r.push(a);else for(i in a)o.bind(a,i),r.push(a[i]);else if("template"!==e)throw Error("The "+e+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var e,t,n=this.toDestroy;for(e=0,t=n.length;e<t;e++)n[e].destroy()}}),k=w.extend({binders:function(){return E.widget[this.target.options.name.toLowerCase()]||{}},applyBinding:function(e,t,n){var i,o=n[e]||E.widget[e],r=this.toDestroy,a=t[e];if(!o)throw Error("The "+e+" binding is not supported by the "+this.target.options.name+" widget");if(o=new o(this.target,t,this.target.options),r.push(o),a instanceof f)o.bind(a),r.push(a);else for(i in a)o.bind(a,i),r.push(a[i])}}),y=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,x=/\s/g,C.unbind=u,C.bind=s,C.data.binders=E,C.data.Binder=v,C.notify=h,C.observable=function(e){return e instanceof T||(e=new T(e)),e},C.observableHierarchy=function(e){function t(e){var n,i;for(n=0;n<e.length;n++)e[n]._initChildren(),i=e[n].children,i.fetch(),e[n].items=i.data(),t(e[n].items)}var n=C.data.HierarchicalDataSource.create(e);return n.fetch(),t(n.data()),n._data._dataSource=n,n._data}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.fx.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e){return parseInt(e,10)}function i(e,t){return n(e.css(t))}function o(e){var t,n=[];for(t in e)n.push(t);return n}function r(e){for(var t in e)W.indexOf(t)!=-1&&U.indexOf(t)==-1&&delete e[t];return e}function a(e,t){var n,i,o,r,a=[],s={};for(i in t)n=i.toLowerCase(),r=M&&W.indexOf(n)!=-1,!E.hasHW3D&&r&&U.indexOf(n)==-1?delete t[i]:(o=t[i],r?a.push(i+"("+o+")"):s[i]=o);return a.length&&(s[se]=a.join(" ")),s}function s(e,t){var i,o,r;return M?(i=e.css(se),i==Y?"scale"==t?1:0:(o=i.match(RegExp(t+"\\s*\\(([\\d\\w\\.]+)")),r=0,o?r=n(o[1]):(o=i.match(B)||[0,0,0,0,0],t=t.toLowerCase(),H.test(t)?r=parseFloat(o[3]/o[2]):"translatey"==t?r=parseFloat(o[4]/o[2]):"scale"==t?r=parseFloat(o[2]):"rotate"==t&&(r=parseFloat(Math.atan2(o[2],o[1])))),r)):parseFloat(e.css(t))}function l(e){return e.charAt(0).toUpperCase()+e.substring(1)}function d(e,t){var n=f.extend(t),i=n.prototype.directions;S[l(e)]=n,S.Element.prototype[e]=function(e,t,i,o){return new n(this.element,e,t,i,o)},T(i,function(t,i){S.Element.prototype[e+l(i)]=function(e,t,o){return new n(this.element,i,e,t,o)}})}function c(e,n,i,o){d(e,{directions:g,startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return this._shouldHide},prepare:function(e,r){var a,s,l=this,d="out"===this._direction,c=l.element.data(n),u=!(isNaN(c)||c==i);a=u?c:t!==this._startValue?this._startValue:d?i:o,s=t!==this._endValue?this._endValue:d?o:i,this._reverse?(e[n]=s,r[n]=a):(e[n]=a,r[n]=s),l._shouldHide=r[n]===o}})}function u(e,t){var n=C.directions[t].vertical,i=e[n?Z:X]()/2+"px";return _[t].replace("$size",i)}var h,p,f,m,g,v,_,b,w,k,y,x,C=window.kendo,S=C.effects,T=e.each,D=e.extend,A=e.proxy,E=C.support,I=E.browser,M=E.transforms,R=E.transitions,F={scale:0,scalex:0,scaley:0,scale3d:0},P={translate:0,translatex:0,translatey:0,translate3d:0},z=t!==document.documentElement.style.zoom&&!M,B=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,L=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,H=/translatex?$/i,N=/(zoom|fade|expand)(\w+)/,O=/(zoom|fade|expand)/,V=/[xy]$/i,W=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],U=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],j={rotate:"deg",scale:"",skew:"px",translate:"px"},q=M.css,G=Math.round,$="",K="px",Y="none",Q="auto",X="width",Z="height",J="hidden",ee="origin",te="abortId",ne="overflow",ie="translate",oe="position",re="completeCallback",ae=q+"transition",se=q+"transform",le=q+"backface-visibility",de=q+"perspective",ce="1500px",ue="perspective("+ce+")",he={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}};C.directions=he,D(e.fn,{kendoStop:function(e,t){return R?S.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),M&&!R&&(T(U,function(n,i){e.fn[i]=function(n){if(t===n)return s(this,i);var o=e(this)[0],r=i+"("+n+j[i.replace(V,"")]+")";return o.style.cssText.indexOf(se)==-1?e(this).css(se,r):o.style.cssText=o.style.cssText.replace(RegExp(i+"\\(.*?\\)","i"),r),this},e.fx.step[i]=function(t){e(t.elem)[i](t.now)}}),h=e.fx.prototype.cur,e.fx.prototype.cur=function(){return U.indexOf(this.prop)!=-1?parseFloat(e(this.elem)[this.prop]()):h.apply(this,arguments)}),C.toggleClass=function(e,t,n,i){return t&&(t=t.split(" "),R&&(n=D({exclusive:"all",duration:400,ease:"ease-out"},n),e.css(ae,n.exclusive+" "+n.duration+"ms "+n.ease),setTimeout(function(){e.css(ae,"").css(Z)},n.duration)),T(t,function(t,n){e.toggleClass(n,i)})),e},C.parseEffects=function(e,t){var n={};return"string"==typeof e?T(e.split(" "),function(e,i){var o=!O.test(i),r=i.replace(N,function(e,t,n){return t+":"+n.toLowerCase()}),a=r.split(":"),s=a[1],l={};a.length>1&&(l.direction=t&&o?he[s].reverse:s),n[a[0]]=l}):T(e,function(e){var i=this.direction;i&&t&&!O.test(e)&&(this.direction=he[i].reverse),n[e]=this}),n},R&&D(S,{transition:function(t,n,i){var r,s,l,d,c=0,u=t.data("keys")||[];i=D({duration:200,ease:"ease-out",complete:null,exclusive:"all"},i),l=!1,d=function(){l||(l=!0,s&&(clearTimeout(s),s=null),t.removeData(te).dequeue().css(ae,"").css(ae),i.complete.call(t))},i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,r=a(t,n),e.merge(u,o(r)),e.hasOwnProperty("uniqueSort")?t.data("keys",e.uniqueSort(u)).height():t.data("keys",e.unique(u)).height(),t.css(ae,i.exclusive+" "+i.duration+"ms "+i.ease).css(ae),t.css(r).css(se),R.event&&(t.one(R.event,d),0!==i.duration&&(c=500)),s=setTimeout(d,i.duration+c),t.data(te,s),t.data(re,d)},stopQueue:function(e,t,n){var i,o=e.data("keys"),r=!n&&o,a=e.data(re);return r&&(i=C.getComputedStyles(e[0],o)),a&&a(),r&&e.css(i),e.removeData("keys").stop(t)}}),p=C.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,o,s,l,d,c,u=this,h=t.length,p=u.element,f=u.options,m=e.Deferred(),g={},v={};for(u.effects=t,m.done(e.proxy(u,"complete")),p.data("animating",!0),i=0;i<h;i++)for(n=t[i],n.setReverse(f.reverse),n.setOptions(f),u.addRestoreProperties(n.restore),n.prepare(g,v),l=n.children(),o=0,d=l.length;o<d;o++)l[o].duration(f.duration).run();for(c in f.effects)D(v,f.effects[c].properties);for(p.is(":visible")||D(g,{display:p.data("olddisplay")||"block"}),M&&!f.reset&&(s=p.data("targetTransform"),s&&(g=D(s,g))),g=a(p,g),M&&!R&&(g=r(g)),p.css(g).css(se),i=0;i<h;i++)t[i].setup();return f.init&&f.init(),p.data("targetTransform",v),S.animate(p,v,D({},f,{complete:m.resolve})),m.promise()},stop:function(){e(this.element).kendoStop(!0,!0)},addRestoreProperties:function(e){for(var t,n=this.element,i=0,o=e.length;i<o;i++)t=e[i],this.restore.push(t),n.data(t)||n.data(t,n.css(t))},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;e<t;e++)n=this.restore[e],i.css(n,i.data(n))},complete:function(){var t=this,n=0,i=t.element,o=t.options,r=t.effects,a=r.length;for(i.removeData("animating").dequeue(),o.hide&&i.data("olddisplay",i.css("display")).hide(),this.restoreCallback(),z&&!M&&setTimeout(e.proxy(this,"restoreCallback"),0);n<a;n++)r[n].teardown();o.completeCallback&&o.completeCallback(i)}}),S.promise=function(e,t){var n,i,o,r=[],a=new p(e,t),s=C.parseEffects(t.effects);t.effects=s;for(o in s)n=S[l(o)],n&&(i=new n(e,s[o].direction),r.push(i));r[0]?a.run(r):(e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.init&&t.init(),e.dequeue(),a.complete())},D(S,{animate:function(n,o,a){var s=a.transition!==!1;delete a.transition,R&&"transition"in S&&s?S.transition(n,o,a):M?n.animate(r(o),{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete}):n.each(function(){var n=e(this),r={};T(W,function(e,a){var s,l,d,c,u,h,p,f=o?o[a]+" ":null;f&&(l=o,a in F&&o[a]!==t?(s=f.match(L),M&&D(l,{scale:+s[0]})):a in P&&o[a]!==t&&(d=n.css(oe),c="absolute"==d||"fixed"==d,n.data(ie)||(c?n.data(ie,{top:i(n,"top")||0,left:i(n,"left")||0,bottom:i(n,"bottom"),right:i(n,"right")}):n.data(ie,{top:i(n,"marginTop")||0,left:i(n,"marginLeft")||0})),u=n.data(ie),s=f.match(L),s&&(h=a==ie+"y"?0:+s[1],p=a==ie+"y"?+s[1]:+s[2],c?(isNaN(u.right)?isNaN(h)||D(l,{left:u.left+h}):isNaN(h)||D(l,{right:u.right-h}),isNaN(u.bottom)?isNaN(p)||D(l,{top:u.top+p}):isNaN(p)||D(l,{bottom:u.bottom-p})):(isNaN(h)||D(l,{marginLeft:u.left+h}),isNaN(p)||D(l,{marginTop:u.top+p})))),!M&&"scale"!=a&&a in l&&delete l[a],l&&D(r,l))}),I.msie&&delete r.scale,n.animate(r,{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete})})}}),S.animatedPromise=S.promise,f=C.Class.extend({init:function(e,t){var n=this;n.element=e,n._direction=t,n.options={},n._additionalEffects=[],n.restore||(n.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(e){return this._additionalEffects.push(e),this},direction:function(e){return this._direction=e,this},duration:function(e){return this._duration=e,this},compositeRun:function(){var e=this,t=new p(e.element,{reverse:e._reverse,duration:e._duration}),n=e._additionalEffects.concat([e]);return t.run(n)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n,i=this,o=i.element,s=0,l=i.restore,d=l.length,c=e.Deferred(),u={},h={},p=i.children(),f=p.length;for(c.done(e.proxy(i,"_complete")),o.data("animating",!0),s=0;s<d;s++)t=l[s],o.data(t)||o.data(t,o.css(t));for(s=0;s<f;s++)p[s].duration(i._duration).run();return i.prepare(u,h),o.is(":visible")||D(u,{display:o.data("olddisplay")||"block"}),M&&(n=o.data("targetTransform"),n&&(u=D(n,u))),u=a(o,u),M&&!R&&(u=r(u)),o.css(u).css(se),i.setup(),o.data("targetTransform",h),S.animate(o,h,{duration:i._duration,complete:c.resolve}),c.promise()},stop:function(){var t=0,n=this.children(),i=n.length;for(t=0;t<i;t++)n[t].stop();return e(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;e<t;e++)n=this.restore[e],i.css(n,i.data(n))},_complete:function(){var t=this,n=t.element;n.removeData("animating").dequeue(),t.restoreCallback(),t.shouldHide()&&n.data("olddisplay",n.css("display")).hide(),z&&!M&&setTimeout(e.proxy(t,"restoreCallback"),0),t.teardown()},setOptions:function(e){D(!0,this.options,e)},children:function(){return[]},shouldHide:e.noop,setup:e.noop,prepare:e.noop,teardown:e.noop,directions:[],setReverse:function(e){return this._reverse=e,this}}),m=["left","right","up","down"],g=["in","out"],d("slideIn",{directions:m,divisor:function(e){return this.options.divisor=e,this},prepare:function(e,t){var n,i=this,o=i.element,r=C._outerWidth,a=C._outerHeight,s=he[i._direction],l=-s.modifier*(s.vertical?a(o):r(o)),d=l/(i.options&&i.options.divisor||1)+K,c="0px";i._reverse&&(n=e,e=t,t=n),M?(e[s.transition]=d,t[s.transition]=c):(e[s.property]=d,t[s.property]=c)}}),d("tile",{directions:m,init:function(e,t,n){f.prototype.init.call(this,e,t),this.options={previous:n}},previousDivisor:function(e){return this.options.previousDivisor=e,this},children:function(){var e=this,t=e._reverse,n=e.options.previous,i=e.options.previousDivisor||1,o=e._direction,r=[C.fx(e.element).slideIn(o).setReverse(t)];return n&&r.push(C.fx(n).slideIn(he[o].reverse).divisor(i).setReverse(!t)),r}}),c("fade","opacity",1,0),c("zoom","scale",1,.01),d("slideMargin",{prepare:function(e,t){var n,i=this,o=i.element,r=i.options,a=o.data(ee),s=r.offset,l=i._reverse;l||null!==a||o.data(ee,parseFloat(o.css("margin-"+r.axis))),n=o.data(ee)||0,t["margin-"+r.axis]=l?n:n+s}}),d("slideTo",{prepare:function(e,t){var n=this,i=n.element,o=n.options,r=o.offset.split(","),a=n._reverse;M?(t.translatex=a?0:r[0],t.translatey=a?0:r[1]):(t.left=a?0:r[0],t.top=a?0:r[1]),i.css("left")}}),d("expand",{directions:["horizontal","vertical"],restore:[ne],prepare:function(e,n){var i=this,o=i.element,r=i.options,a=i._reverse,s="vertical"===i._direction?Z:X,l=o[0].style[s],d=o.data(s),c=parseFloat(d||l),u=G(o.css(s,Q)[s]());e.overflow=J,c=r&&r.reset?u||c:c||u,n[s]=(a?0:c)+K,e[s]=(a?c:0)+K,d===t&&o.data(s,l)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,n="vertical"===e._direction?Z:X,i=t.data(n);i!=Q&&i!==$||setTimeout(function(){t.css(n,Q).css(n)},0)}}),v={position:"absolute",marginLeft:0,marginTop:0,scale:1},d("transfer",{init:function(e,t){this.element=e,this.options={target:t},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(e,t){var n=this,i=n.element,o=S.box(i),r=S.box(n.options.target),a=s(i,"scale"),l=S.fillScale(r,o),d=S.transformOrigin(r,o);D(e,v),t.scale=1,i.css(se,"scale(1)").css(se),i.css(se,"scale("+a+")"),e.top=o.top,e.left=o.left,e.transformOrigin=d.x+K+" "+d.y+K,n._reverse?e.scale=l:t.scale=l}}),_={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},b={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}},d("turningPage",{directions:m,init:function(e,t,n){f.prototype.init.call(this,e,t),this._container=n},prepare:function(e,t){var n=this,i=n._reverse,o=i?he[n._direction].reverse:n._direction,r=b[o];e.zIndex=1,n._clipInHalf&&(e.clip=u(n._container,C.directions[o].reverse)),e[le]=J,t[se]=ue+(i?r.start:r.end),e[se]=ue+(i?r.end:r.start)},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(){return this.element.addClass("temp-page"),this}}),d("staticPage",{directions:m,init:function(e,t,n){f.prototype.init.call(this,e,t),this._container=n},restore:["clip"],prepare:function(e,t){var n=this,i=n._reverse?he[n._direction].reverse:n._direction;e.clip=u(n._container,i),e.opacity=.999,t.opacity=1},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},face:function(e){return this._face=e,this}}),d("pageturn",{directions:["horizontal","vertical"],init:function(e,t,n,i){f.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",o=C.directions[i].reverse,r=t._reverse,a=n.face.clone(!0).removeAttr("id"),s=n.back.clone(!0).removeAttr("id"),l=t.element;return r&&(e=i,i=o,o=e),[C.fx(n.face).staticPage(i,l).face(!0).setReverse(r),C.fx(n.back).staticPage(o,l).setReverse(r),C.fx(a).turningPage(i,l).face(!0).clipInHalf(!0).temporary().setReverse(r),C.fx(s).turningPage(o,l).clipInHalf(!0).temporary().setReverse(r)]},prepare:function(e,t){e[de]=ce,e.transformStyle="preserve-3d",e.opacity=.999,t.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),d("flip",{directions:["horizontal","vertical"],init:function(e,t,n,i){f.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",o=C.directions[i].reverse,r=t._reverse,a=t.element;return r&&(e=i,i=o,o=e),[C.fx(n.face).turningPage(i,a).face(!0).setReverse(r),C.fx(n.back).turningPage(o,a).setReverse(r)]},prepare:function(e){e[de]=ce,e.transformStyle="preserve-3d"}}),w=!E.mobileOS.android,k=".km-touch-scrollbar, .km-actionsheet-wrapper",d("replace",{_before:e.noop,_after:e.noop,init:function(t,n,i){f.prototype.init.call(this,t),this._previous=e(n),this._transitionClass=i},duration:function(){throw Error("The replace effect does not support duration setting; the effect duration may be customized through the transition class rule")},beforeTransition:function(e){return this._before=e,this},afterTransition:function(e){return this._after=e,this},_both:function(){return e().add(this._element).add(this._previous)},_containerClass:function(){var e=this._direction,t="k-fx k-fx-start k-fx-"+this._transitionClass;return e&&(t+=" k-fx-"+e),this._reverse&&(t+=" k-fx-reverse"),t},complete:function(t){if(!(!this.deferred||t&&e(t.target).is(k))){var n=this.container;n.removeClass("k-fx-end").removeClass(this._containerClass()).off(R.event,this.completeProxy),this._previous.hide().removeClass("k-fx-current"),this.element.removeClass("k-fx-next"),w&&n.css(ne,""),this.isAbsolute||this._both().css(oe,""),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n=this,i=n.element,o=n._previous,r=i.parents().filter(o.parents()).first(),a=n._both(),s=e.Deferred(),l=i.css(oe);return r.length||(r=i.parent()),this.container=r,this.deferred=s,this.isAbsolute="absolute"==l,this.isAbsolute||a.css(oe,"absolute"),w&&(t=r.css(ne),r.css(ne,"hidden")),R?(i.addClass("k-fx-hidden"),r.addClass(this._containerClass()),this.completeProxy=e.proxy(this,"complete"),r.on(R.event,this.completeProxy),C.animationFrame(function(){i.removeClass("k-fx-hidden").addClass("k-fx-next"),o.css("display","").addClass("k-fx-current"),n._before(o,i),C.animationFrame(function(){r.removeClass("k-fx-start").addClass("k-fx-end"),n._after(o,i)})})):this.complete(),s.promise()},stop:function(){this.complete()}}),y=C.Class.extend({init:function(){var e=this;e._tickProxy=A(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,C.animationFrame(this._tickProxy)))},enabled:function(){return!0},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):C.animationFrame(e._tickProxy))}}),x=y.extend({init:function(e){var t=this;D(t,e),y.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration="number"==typeof e.duration?e.duration:300,t.tick=t._easeProxy(e.ease),t.startDate=new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}}),D(x,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,o){return o=1.70158,n*((e=e/i-1)*e*((o+1)*e+o)+1)+t}}),S.Animation=y,S.Transition=x,S.createEffect=d,S.box=function(t){t=e(t);var n=t.offset();return n.width=C._outerWidth(t),n.height=C._outerHeight(t),n},S.transformOrigin=function(e,t){var n=(e.left-t.left)*t.width/(t.width-e.width),i=(e.top-t.top)*t.height/(t.height-e.height);return{x:isNaN(n)?0:n,y:isNaN(i)?0:i}},S.fillScale=function(e,t){return Math.min(e.width/t.width,e.height/t.height)},S.fitScale=function(e,t){return Math.max(e.width/t.width,e.height/t.height)}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.view.min",["kendo.core.min","kendo.binder.min","kendo.fx.min"],e)}(function(){return function(e,t){function n(e){if(!e)return{};var t=e.match(F)||[];return{type:t[1],direction:t[3],reverse:"reverse"===t[5]}}var i=window.kendo,o=i.attr,r=i.ui,a=i.attrValue,s=i.directiveSelector,l=i.Observable,d=i.ui.Widget,c=i.roleSelector,u="SCRIPT",h="init",p="transitionStart",f="transitionEnd",m="show",g="hide",v="attach",_="detach",b=/unrecognized expression/,w=/<body[^>]*>(([\u000a\u000d\u2028\u2029]|.)*)<\/body>/i,k="loadStart",y="loadComplete",x="showStart",C="sameViewRequested",S="viewShow",T="viewTypeDetermined",D="after",A={content:"k-content",view:"k-view",stretchedView:"k-stretched-view",widget:"k-widget",header:"k-header",footer:"k-footer"},E=i.ui.Widget.extend({init:function(t,n){var o=this;n=n||{},o.id=i.guid(),l.fn.init.call(o),this.options=e.extend({},this.options,n),o.content=t,o.options.renderOnInit&&d.fn.init.call(o,o._createElement(),n),o.options.wrapInSections&&o._renderSections(),o.tagName=n.tagName||"div",o.model=n.model,o._wrap=n.wrap!==!1,this._evalTemplate=n.evalTemplate||!1,o._fragments={},o.bind([h,m,g,p,f],n)},options:{name:"View",renderOnInit:!1,wrapInSections:!1,detachOnHide:!0,detachOnDestroy:!0},render:function(t){var n=this,o=!n.element;return o&&(n.element=n._createElement()),t&&e(t).append(n.element),o&&(i.bind(n.element,n.model),n.trigger(h)),t&&(n._eachFragment(v),n.trigger(m)),n.element},clone:function(){return new I(this)},triggerBeforeShow:function(){return!0},triggerBeforeHide:function(){return!0},showStart:function(){var e=this,t=e.render();t&&t.css("display",""),this.trigger(x,{view:this})},showEnd:function(){},hideEnd:function(){this.hide()},beforeTransition:function(e){this.trigger(p,{type:e})},afterTransition:function(e){this.trigger(f,{type:e})},hide:function(){this.options.detachOnHide&&(this._eachFragment(_),e(this.element).detach()),this.trigger(g)},destroy:function(){var e=this,t=e.element;t&&(d.fn.destroy.call(e),i.unbind(t),i.destroy(t),e.options.detachOnDestroy&&t.remove())},purge:function(){var t=this;t.destroy(),e(t.element).add(t.content).add(t.wrapper).off().remove()},fragments:function(t){e.extend(this._fragments,t)},_eachFragment:function(e){for(var t in this._fragments)this._fragments[t][e](this,t)},_createElement:function(){var t,n,o,r=this,a="<"+r.tagName+">";try{n=e(document.getElementById(r.content)||r.content),n[0].tagName===u&&(n=n.html())}catch(s){b.test(s.message)&&(n=r.content)}return"string"==typeof n?(n=n.replace(/^\s+|\s+$/g,""),r._evalTemplate&&(n=i.template(n)(r.model||{})),t=e(a).append(n),r._wrap||(t=t.contents())):(t=n,r._evalTemplate&&(o=e(i.template(e("<div />").append(t.clone(!0)).html())(r.model||{})),e.contains(document,t[0])&&t.replaceWith(o),t=o),r._wrap&&(t=t.wrapAll(a).parent())),t},_renderSections:function(){var e=this;e.options.wrapInSections&&(e._wrapper(),e._createContent(),e._createHeader(),e._createFooter())},_wrapper:function(){var e,t=this,n=t.content;t.wrapper=n.is(c("view"))?t.content:n.wrap("<div data-"+i.ns+'stretch="true" data-'+i.ns+'role="view" data-'+i.ns+'init-widgets="false"></div>').parent(),e=t.wrapper,e.attr("id",t.id),e.addClass(A.view),e.addClass(A.widget),e.attr("role","view")},_createContent:function(){var t,n=this,i=e(n.wrapper),r=c("content");i.children(r)[0]||(t=i.children().filter(function(){var t=e(this);if(!t.is(c("header"))&&!t.is(c("footer")))return t}),t.wrap("<div "+o("role")+'="content"></div>')),this.contentElement=i.children(c("content")),this.contentElement.addClass(A.stretchedView).addClass(A.content)},_createHeader:function(){var e=this,t=e.wrapper;this.header=t.children(c("header")).addClass(A.header)},_createFooter:function(){var e=this,t=e.wrapper;this.footer=t.children(c("footer")).addClass(A.footer)}}),I=i.Class.extend({init:function(t){e.extend(this,{element:t.element.clone(!0),transition:t.transition,id:t.id}),t.element.parent().append(this.element)},hideEnd:function(){this.element.remove()},beforeTransition:e.noop,afterTransition:e.noop}),M=E.extend({init:function(e,t){E.fn.init.call(this,e,t),this.containers={}},container:function(e){var t=this.containers[e];return t||(t=this._createContainer(e),this.containers[e]=t),t},showIn:function(e,t,n){this.container(e).show(t,n)},_createContainer:function(e){var t,n=this.render(),i=n.find(e);if(!i.length&&n.is(e)){if(!n.is(e))throw Error("can't find a container with the specified "+e+" selector");i=n}return t=new P(i),t.bind("accepted",function(e){e.view.render(i)}),t}}),R=E.extend({attach:function(e,t){e.element.find(t).replaceWith(this.render())},detach:function(){}}),F=/^(\w+)(:(\w+))?( (\w+))?$/,P=l.extend({init:function(e){l.fn.init.call(this),this.container=e,this.history=[],this.view=null,this.running=!1},after:function(){this.running=!1,this.trigger("complete",{view:this.view}),this.trigger("after")},end:function(){this.view.showEnd(),this.previous.hideEnd(),this.after()},show:function(e,t,o){if(!e.triggerBeforeShow()||this.view&&!this.view.triggerBeforeHide())return this.trigger("after"),!1;o=o||e.id;var r=this,a=e===r.view?e.clone():r.view,s=r.history,l=s[s.length-2]||{},d=l.id===o,c=t||(d?s[s.length-1].transition:e.transition),u=n(c);return r.running&&r.effect.stop(),"none"===c&&(c=null),r.trigger("accepted",{view:e}),r.view=e,r.previous=a,r.running=!0,d?s.pop():s.push({id:o,transition:c}),a?(c&&i.effects.enabled?(e.element.addClass("k-fx-hidden"),e.showStart(),d&&!t&&(u.reverse=!u.reverse),r.effect=i.fx(e.element).replace(a.element,u.type).beforeTransition(function(){e.beforeTransition("show"),a.beforeTransition("hide")}).afterTransition(function(){e.afterTransition("show"),a.afterTransition("hide")}).direction(u.direction).setReverse(u.reverse),r.effect.run().then(function(){r.end()})):(e.showStart(),r.end()),!0):(e.showStart(),e.showEnd(),r.after(),!0)},destroy:function(){var e=this,t=e.view;t&&t.destroy&&t.destroy()}}),z=l.extend({init:function(t){var n,o,r=this;l.fn.init.call(r),r.options=t,e.extend(r,t),r.sandbox=e("<div />"),o=r.container,n=r._hideViews(o),r.rootView=n.first(),r.layouts={},r.viewContainer=new i.ViewContainer(r.container),r.viewContainer.bind("accepted",function(e){e.view.params=r.params}),r.viewContainer.bind("complete",function(e){r.trigger(S,{view:e.view})}),r.viewContainer.bind(D,function(){r.trigger(D)}),this.bind(this.events,t)},events:[x,D,S,k,y,C,T],destroy:function(){var e,t=this,n=t.viewContainer;i.destroy(t.container);for(e in t.layouts)this.layouts[e].destroy();n&&n.destroy()},view:function(){return this.viewContainer.view},showView:function(e,t,n){if(e=e.replace(RegExp("^"+this.remoteViewURLPrefix),""),""===e&&this.remoteViewURLPrefix&&(e="/"),e.replace(/^#/,"")===this.url)return this.trigger(C),!1;this.trigger(x);var o=this,r=o._findViewElement(e),a=i.widgetInstance(r);return o.url=e.replace(/^#/,""),o.params=n,a&&a.reload&&(a.purge(),r=[]),this.trigger(T,{remote:0===r.length,url:e}),!r[0]||(a||(a=o._createView(r)),o.viewContainer.show(a,t,e))},append:function(e,t){var n,i,r=this.sandbox,a=(t||"").split("?")[0],s=this.container;
return w.test(e)&&(e=RegExp.$1),r[0].innerHTML=e,s.append(r.children("script, style")),n=this._hideViews(r),i=n.first(),i.length||(n=i=r.wrapInner("<div data-role=view />").children()),a&&i.hide().attr(o("url"),a),s.append(n),this._createView(i)},_locate:function(e){return this.$angular?s(e):c(e)},_findViewElement:function(e){var t,n=e.split("?")[0];return n?(t=this.container.children("["+o("url")+"='"+n+"']"),t[0]||n.indexOf("/")!==-1||(t=this.container.children("#"===n.charAt(0)?n:"#"+n)),t[0]||(t=this._findViewElementById(e)),t):this.rootView},_findViewElementById:function(e){var t=this.container.children("[id='"+e+"']");return t},_createView:function(e){return this._createSpaView(e)},_createMobileView:function(e){return i.initWidget(e,{defaultTransition:this.transition,loader:this.loader,container:this.container,getLayout:this.getLayoutProxy,modelScope:this.modelScope,reload:a(e,"reload")},r.roles)},_createSpaView:function(e){var t=(this.options||{}).viewOptions||{};return new i.View(e,{renderOnInit:t.renderOnInit,wrap:t.wrap||!1,wrapInSections:t.wrapInSections,detachOnHide:t.detachOnHide,detachOnDestroy:t.detachOnDestroy})},_hideViews:function(e){return e.children(this._locate("view")).hide()}});i.ViewEngine=z,i.ViewContainer=P,i.Fragment=R,i.Layout=M,i.View=E,i.ViewClone=I}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dom.min",["kendo.core.min"],e)}(function(){return function(e){function t(){this.node=null}function n(){}function i(e,t,n){this.nodeName=e,this.attr=t||{},this.children=n||[]}function o(e){this.nodeValue=e+""}function r(e){this.html=e}function a(e,t){for(h.innerHTML=t;h.firstChild;)e.appendChild(h.firstChild)}function s(e){return new r(e)}function l(e,t,n){return new i(e,t,n)}function d(e){return new o(e)}function c(e){this.root=e,this.children=[]}var u,h;t.prototype={remove:function(){this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.attr={}},attr:{},text:function(){return""}},n.prototype={nodeName:"#null",attr:{style:{}},children:[],remove:function(){}},u=new n,i.prototype=new t,i.prototype.appendTo=function(e){var t,n=document.createElement(this.nodeName),i=this.children;for(t=0;t<i.length;t++)i[t].render(n,u);return e.appendChild(n),n},i.prototype.render=function(e,t){var n,i,o,r,a,s;if(t.nodeName!==this.nodeName)t.remove(),n=this.appendTo(e);else{if(n=t.node,o=this.children,r=o.length,a=t.children,s=a.length,Math.abs(s-r)>2)return void this.render({appendChild:function(n){e.replaceChild(n,t.node)}},u);for(i=0;i<r;i++)o[i].render(n,a[i]||u);for(i=r;i<s;i++)a[i].remove()}this.node=n,this.syncAttributes(t.attr),this.removeAttributes(t.attr)},i.prototype.syncAttributes=function(e){var t,n,i,o=this.attr;for(t in o)n=o[t],i=e[t],"style"===t?this.setStyle(n,i):n!==i&&this.setAttribute(t,n,i)},i.prototype.setStyle=function(e,t){var n,i=this.node;if(t)for(n in e)e[n]!==t[n]&&(i.style[n]=e[n]);else for(n in e)i.style[n]=e[n]},i.prototype.removeStyle=function(e){var t,n=this.attr.style||{},i=this.node;for(t in e)void 0===n[t]&&(i.style[t]="")},i.prototype.removeAttributes=function(e){var t,n=this.attr;for(t in e)"style"===t?this.removeStyle(e.style):void 0===n[t]&&this.removeAttribute(t)},i.prototype.removeAttribute=function(e){var t=this.node;"style"===e?t.style.cssText="":"className"===e?t.className="":t.removeAttribute(e)},i.prototype.setAttribute=function(e,t){var n=this.node;void 0!==n[e]?n[e]=t:n.setAttribute(e,t)},i.prototype.text=function(){var e,t="";for(e=0;e<this.children.length;++e)t+=this.children[e].text();return t},o.prototype=new t,o.prototype.nodeName="#text",o.prototype.render=function(e,t){var n;t.nodeName!==this.nodeName?(t.remove(),n=document.createTextNode(this.nodeValue),e.appendChild(n)):(n=t.node,this.nodeValue!==t.nodeValue&&n.parentNode&&(n.nodeValue=this.nodeValue)),this.node=n},o.prototype.text=function(){return this.nodeValue},r.prototype={nodeName:"#html",attr:{},remove:function(){var e,t;for(e=0;e<this.nodes.length;e++)t=this.nodes[e],t.parentNode&&t.parentNode.removeChild(t)},render:function(e,t){var n,i;if(t.nodeName!==this.nodeName||t.html!==this.html)for(t.remove(),n=e.lastChild,a(e,this.html),this.nodes=[],i=n?n.nextSibling:e.firstChild;i;i=i.nextSibling)this.nodes.push(i);else this.nodes=t.nodes.slice(0)}},h=document.createElement("div"),c.prototype={html:s,element:l,text:d,render:function(e){var t,n,i,o=this.children;for(t=0,n=e.length;t<n;t++)i=o[t],i?i.node&&i.node.parentNode||(i.remove(),i=u):i=u,e[t].render(this.root,i);for(t=n;t<o.length;t++)o[t].remove();this.children=e}},e.dom={html:s,text:d,element:l,Tree:c,Node:t}}(window.kendo),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/utils.min",["kendo.core.min"],e)}(function(){!function(){kendo.ooxml=kendo.ooxml||{},kendo.ooxml.createZip=function(){if("undefined"==typeof JSZip)throw Error("JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.");return new JSZip}}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/kendo-ooxml.min",["kendo.core.min","ooxml/utils.min"],e)}(function(){!function(e){function t(e,t,n){return(1461*(e+4800+((t-13)/12|0))/4|0)+(367*(t-1-12*((t-13)/12|0))/12|0)-(3*((e+4900+((t-13)/12|0))/100|0)/4|0)+n-32075}function n(e,n,i){return t(e,n,i)-W}function i(e,t,n,i){return(e+(t+(n+i/1e3)/60)/60)/24}function o(e){var t=i(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),o=n(e.getFullYear(),e.getMonth(),e.getDate());return o<0?o-1+t:o+t}function r(e){return j+e}function a(e,t){return t.indexOf(e)}function s(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")}function l(e,t){var n,i="";for(n=0;n<e;++n)i+=t(n);return i}function d(e,t){var n,i="";if(null!=e)if(Array.isArray(e))for(n=0;n<e.length;++n)i+=t(e[n],n);else"object"==typeof e&&Object.keys(e).forEach(function(n,o){i+=t(e[n],n,o)});return i}function c(e){return"string"==typeof e?"<f>"+s(e)+"</f>":'<f t="array" ref="'+e.ref+'">'+s(e.src)+"</f>"}function u(e){var t=Math.floor(e/26)-1;return(t>=0?u(t):"")+String.fromCharCode(65+e%26)}function h(e,t){return u(t)+(e+1)}function p(e,t){return"$"+u(t)+"$"+(e+1)}function f(e){var t=e.frozenRows||(e.freezePane||{}).rowSplit||1;return t-1}function m(e){var t=7;return e/t-Math.floor(128/t)/256}function g(e){return.75*e}function v(e){return(e+"").replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}function _(e){var t=e.length;return e.forEach(function(e){e.index&&e.index>=t&&(t=e.index+1)}),t}function b(e){var t=e;return t.length<6&&(t=t.replace(/(\w)/g,function(e,t){return t+t})),t=t.substring(1).toUpperCase(),t.length<8&&(t="FF"+t),t}function w(e){var t="thin";return 2===e?t="medium":3===e&&(t="thick"),t}function k(e,t){var n="";return t&&(n+="<"+e+' style="'+w(t.size)+'">',t.color&&(n+='<color rgb="'+b(t.color)+'"/>'),n+="</"+e+">"),n}function y(e){return"<border>"+k("left",e.left)+k("right",e.right)+k("top",e.top)+k("bottom",e.bottom)+"</border>"}function x(e,t){var n,i,o,r=[],a=[];for(C(e,function(e,t){var n={_source:e,index:t,height:e.height,level:e.level,cells:[]};r.push(n),a[t]=n}),n=S(r).slice(0),i={rowData:r,rowsByIndex:a,mergedCells:t},o=0;o<n.length;o++)I(n[o],i),delete n[o]._source;return S(r)}function C(e,t){var n,i,o;for(n=0;n<e.length;n++)i=e[n],i&&(o=i.index,"number"!=typeof o&&(o=n),t(i,o))}function S(e){return e.sort(function(e,t){return e.index-t.index})}function T(e,t){e.indexOf(t)<0&&e.push(t)}function D(e,t){var n,i,o,r,a;for(n=0;n<e.length;++n)if(i=e[n],o=i.split(":"),r=o[0],r===t)return a=o[1],r=A(r),a=A(a),{rowSpan:a.row-r.row+1,colSpan:a.col-r.col+1}}function A(e){function t(e){var t,n=e.toUpperCase(),i=0;for(t=0;t<n.length;++t)i=26*i+n.charCodeAt(t)-64;return i-1}function n(e){return parseInt(e,10)-1}var i=/^([a-z]+)(\d+)$/i.exec(e);return{row:n(i[2]),col:t(i[1])}}function E(e){return Math.round(9525*e)}function I(e,t){var n,i,o,r,a,s,l,d,c,u=e._source,p=e.index,f=u.cells,m=e.cells;if(f)for(n=0;n<f.length;n++)if(i=f[n]||me,o=i.rowSpan||1,r=i.colSpan||1,a=M(m,i),s=h(p,a),1===o&&1===r&&(l=D(t.mergedCells,s),l&&(r=l.colSpan,o=l.rowSpan)),P(i,m,a,r),(o>1||r>1)&&T(t.mergedCells,s+":"+h(p+o-1,a+r-1)),o>1)for(d=p+1;d<p+o;d++)c=t.rowsByIndex[d],c||(c=t.rowsByIndex[d]={index:d,cells:[]},t.rowData.push(c)),P(i,c.cells,a-1,r+1)}function M(e,t){var n;return"number"==typeof t.index?(n=t.index,R(e,t,t.index)):n=F(e,t),n}function R(e,t,n){e[n]=t}function F(e,t){var n,i=e.length;for(n=0;n<e.length+1;n++)if(!e[n]){e[n]=t,i=n;break}return i}function P(e,t,n,i){var o,r;for(o=1;o<i;o++)r={borderTop:e.borderTop,borderRight:e.borderRight,borderBottom:e.borderBottom,borderLeft:e.borderLeft},R(t,r,n+o)}function z(e){return ge({ref:e.ref,columns:e.columns,generators:{custom:ve,dynamic:_e,top:be,value:we}})}function B(e){return/^\'/.test(e)?e:/^[a-z_][a-z0-9_]*$/i.test(e)?e:"'"+e.replace(/\x27/g,"\\'")+"'"}var L,H,N,O,V,W,U,j,q,G,$,K,Y,Q,X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge,ve,_e,be,we;window.kendo.ooxml=window.kendo.ooxml||{},L=kendo.ooxml,H=e.map,N=L.createZip,O={toString:function(e){return e}},V=kendo.Class.extend({}),V.register=function(e){O=e},V.toString=function(e,t){return O.toString(e,t)},W=t(1900,0,-1),U="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",j="data:"+U+";base64,",q={compression:"DEFLATE",type:"base64"},G={compression:"DEFLATE",type:"blob"},$={compression:"DEFLATE",type:"arraybuffer"},K=JSON.parse.bind(JSON),Y='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',Q=Y+'\n            <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n               <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n               <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n               <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n            </Relationships>',X=function(e){var t=e.creator,n=e.lastModifiedBy,i=e.created,o=e.modified;return Y+'\n <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"\n   xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"\n   xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n   <dc:creator>'+s(t)+"</dc:creator>\n   <cp:lastModifiedBy>"+s(n)+'</cp:lastModifiedBy>\n   <dcterms:created xsi:type="dcterms:W3CDTF">'+s(i)+'</dcterms:created>\n   <dcterms:modified xsi:type="dcterms:W3CDTF">'+s(o)+"</dcterms:modified>\n</cp:coreProperties>"},Z=function(e){var t=e.sheets;return Y+'\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n  <Application>Microsoft Excel</Application>\n  <DocSecurity>0</DocSecurity>\n  <ScaleCrop>false</ScaleCrop>\n  <HeadingPairs>\n    <vt:vector size="2" baseType="variant">\n      <vt:variant>\n        <vt:lpstr>Worksheets</vt:lpstr>\n      </vt:variant>\n      <vt:variant>\n        <vt:i4>'+t.length+'</vt:i4>\n      </vt:variant>\n    </vt:vector>\n  </HeadingPairs>\n  <TitlesOfParts>\n    <vt:vector size="'+t.length+'" baseType="lpstr">'+d(t,function(e,t){return e.options.title?"<vt:lpstr>"+s(e.options.title)+"</vt:lpstr>":"<vt:lpstr>Sheet"+(t+1)+"</vt:lpstr>"})+"</vt:vector>\n  </TitlesOfParts>\n  <LinksUpToDate>false</LinksUpToDate>\n  <SharedDoc>false</SharedDoc>\n  <HyperlinksChanged>false</HyperlinksChanged>\n  <AppVersion>14.0300</AppVersion>\n</Properties>"},J=function(e){var t=e.sheetCount,n=e.commentFiles,i=e.drawingFiles;return Y+'\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n  <Default Extension="png" ContentType="image/png"/>\n  <Default Extension="gif" ContentType="image/gif"/>\n  <Default Extension="jpg" ContentType="image/jpeg"/>\n  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />\n  <Default Extension="xml" ContentType="application/xml" />\n  <Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>\n  <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" />\n  <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>\n  <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>\n  '+l(t,function(e){return'<Override PartName="/xl/worksheets/sheet'+(e+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'})+"\n  "+d(n,function(e){return'<Override PartName="/xl/'+e+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'})+"\n  "+d(i,function(e){return'<Override PartName="/xl/drawings/'+e+'" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>'})+'\n  <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />\n  <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />\n</Types>'},ee=function(e){var t=e.sheets,n=e.filterNames,i=e.userNames;return Y+'\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n  <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9303" />\n  <workbookPr defaultThemeVersion="124226" />\n  <bookViews>\n    <workbookView xWindow="240" yWindow="45" windowWidth="18195" windowHeight="7995" />\n  </bookViews>\n  <sheets>\n  '+d(t,function(e,t){var n=e.options,i=n.name||n.title||"Sheet"+(t+1);return'<sheet name="'+s(i)+'" sheetId="'+(t+1)+'" r:id="rId'+(t+1)+'" />'})+"\n  </sheets>\n  "+(n.length||i.length?"\n    <definedNames>\n      "+d(n,function(e){return'\n         <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+e.localSheetId+'">'+s(B(e.name))+"!"+s(e.from)+":"+s(e.to)+"</definedName>"})+"\n      "+d(i,function(e){return'\n         <definedName name="'+e.name+'" hidden="'+(e.hidden?1:0)+'" '+(null!=e.localSheetId?'localSheetId="'+e.localSheetId+'"':"")+">"+s(e.value)+"</definedName>"})+"\n    </definedNames>":"")+'\n  <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'},te=function(e){var t=e.frozenColumns,n=e.frozenRows,i=e.columns,o=e.defaults,r=e.data,a=e.index,l=e.mergeCells,u=e.autoFilter,p=e.filter,f=e.showGridLines,v=e.hyperlinks,_=e.validations,b=e.defaultCellStyleId,w=e.rtl,k=e.legacyDrawing,y=e.drawing,x=e.lastRow,C=e.lastCol;return Y+'\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">\n   '+(x&&C?'<dimension ref="A1:'+h(x-1,C-1)+'" />':"")+"\n\n   <sheetViews>\n     <sheetView "+(w?'rightToLeft="1"':"")+" "+(0===a?'tabSelected="1"':"")+' workbookViewId="0" '+(f===!1?'showGridLines="0"':"")+">\n     "+(n||t?'\n       <pane state="frozen"\n         '+(t?'xSplit="'+t+'"':"")+"\n         "+(n?'ySplit="'+n+'"':"")+'\n         topLeftCell="'+(String.fromCharCode(65+(t||0))+((n||0)+1))+'"\n       />':"")+'\n     </sheetView>\n   </sheetViews>\n\n   <sheetFormatPr x14ac:dyDescent="0.25" '+(o.skipCustomHeight?"":'customHeight="1"')+' defaultRowHeight="'+(o.rowHeight?.75*o.rowHeight:15)+'"\n     '+(o.columnWidth?'defaultColWidth="'+m(o.columnWidth)+'"':"")+" />\n\n   "+(null!=b||i&&i.length>0?"\n     <cols>\n       "+(i&&i.length?"":'\n         <col min="1" max="16384" style="'+b+'"\n              '+(o.columnWidth?'width="'+m(o.columnWidth)+'"':"")+" /> ")+"\n       "+d(i,function(e,t){var n="number"==typeof e.index?e.index+1:t+1;return 0===e.width?"<col "+(null!=b?'style="'+b+'"':"")+'\n                        min="'+n+'" max="'+n+'" hidden="1" customWidth="1" />':"<col "+(null!=b?'style="'+b+'"':"")+'\n                      min="'+n+'" max="'+n+'" customWidth="1"\n                      '+(e.autoWidth?'width="'+(7*e.width+5)/7*256/256+'" bestFit="1"':'width="'+m(e.width)+'"')+" />"})+"\n     </cols>":"")+"\n\n   <sheetData>\n     "+d(r,function(e,t){var n="number"==typeof e.index?e.index+1:t+1;return'\n         <row r="'+n+'" x14ac:dyDescent="0.25"\n              '+(e.level?'outlineLevel="'+e.level+'"':"")+"\n              "+(0===e.height?'hidden="1"':e.height?'ht="'+g(e.height)+'" customHeight="1"':"")+">\n           "+d(e.data,function(e){return'\n             <c r="'+e.ref+'" '+(e.style?'s="'+e.style+'"':"")+" "+(e.type?'t="'+e.type+'"':"")+">\n               "+(null!=e.formula?c(e.formula):"")+"\n               "+(null!=e.value?"<v>"+s(e.value)+"</v>":"")+"\n             </c>"})+"\n         </row>\n       "})+"\n   </sheetData>\n\n   "+(u?'<autoFilter ref="'+u.from+":"+u.to+'"/>':p?z(p):"")+"\n\n   "+(l.length?'\n     <mergeCells count="'+l.length+'">\n       '+d(l,function(e){return'<mergeCell ref="'+e+'"/>'})+"\n     </mergeCells>":"")+"\n\n   "+(_.length?"\n     <dataValidations>\n       "+d(_,function(e){return'\n         <dataValidation sqref="'+e.sqref.join(" ")+'"\n                         showErrorMessage="'+e.showErrorMessage+'"\n                         type="'+s(e.type)+'"\n                         '+("list"!==e.type?'operator="'+s(e.operator)+'"':"")+'\n                         allowBlank="'+e.allowBlank+'"\n                         showDropDown="'+e.showDropDown+'"\n                         '+(e.error?'error="'+s(e.error)+'"':"")+"\n                         "+(e.errorTitle?'errorTitle="'+s(e.errorTitle)+'"':"")+">\n           "+(e.formula1?"<formula1>"+s(e.formula1)+"</formula1>":"")+"\n           "+(e.formula2?"<formula2>"+s(e.formula2)+"</formula2>":"")+"\n         </dataValidation>"})+"\n     </dataValidations>":"")+"\n\n   "+(v.length?"\n     <hyperlinks>\n       "+d(v,function(e){return'\n         <hyperlink ref="'+e.ref+'" r:id="'+e.rId+'"/>'})+"\n     </hyperlinks>":"")+'\n\n   <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n   '+(y?'<drawing r:id="'+y+'"/>':"")+"\n   "+(k?'<legacyDrawing r:id="'+k+'"/>':"")+"\n</worksheet>"},ne=function(e){var t=e.count;return Y+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n  '+l(t,function(e){return'\n    <Relationship Id="rId'+(e+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(e+1)+'.xml" />'})+'\n  <Relationship Id="rId'+(t+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n  <Relationship Id="rId'+(t+2)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>'},ie=function(e){var t=e.hyperlinks,n=e.comments,i=e.sheetIndex,o=e.drawings;return Y+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n  '+d(t,function(e){return'\n    <Relationship Id="'+e.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+s(e.target)+'" TargetMode="External" />'})+"\n  "+(n.length?'\n    <Relationship Id="comment'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments'+i+'.xml"/>\n    <Relationship Id="vml'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing'+i+'.vml"/>':"")+"\n  "+(o.length?'\n    <Relationship Id="drw'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+i+'.xml"/>':"")+"\n</Relationships>"},oe=function(e){var t=e.comments;return Y+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n  <authors>\n    <author></author>\n  </authors>\n  <commentList>\n    '+d(t,function(e){return'\n      <comment ref="'+e.ref+'" authorId="0">\n        <text>\n          <r>\n            <rPr>\n              <sz val="8"/>\n              <color indexed="81"/>\n              <rFont val="Tahoma"/>\n              <charset val="1"/>\n            </rPr>\n            <t>'+s(e.text)+"</t>\n          </r>\n        </text>\n      </comment>"})+"\n  </commentList>\n</comments>"},re=function(e){var t=e.comments;return'<xml xmlns:v="urn:schemas-microsoft-com:vml"\n     xmlns:o="urn:schemas-microsoft-com:office:office"\n     xmlns:x="urn:schemas-microsoft-com:office:excel">\n  <v:shapetype coordsize="21600,21600" id="_x0000_t202" path="m,l,21600r21600,l21600,xe">\n    <v:stroke joinstyle="miter"/>\n    <v:path gradientshapeok="t" o:connecttype="rect"/>\n  </v:shapetype>\n  '+d(t,function(e){return'\n    <v:shape type="#_x0000_t202" style="visibility: hidden" fillcolor="#ffffe1" o:insetmode="auto">\n      <v:shadow on="t" color="black" obscured="t"/>\n      <x:ClientData ObjectType="Note">\n        <x:MoveWithCells/>\n        <x:SizeWithCells/>\n        <x:Anchor>'+e.anchor+"</x:Anchor>\n        <x:AutoFill>False</x:AutoFill>\n        <x:Row>"+e.row+"</x:Row>\n        <x:Column>"+e.col+"</x:Column>\n      </x:ClientData>\n    </v:shape>"})+"\n</xml>"},ae=function(e){return Y+'\n<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n          xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n          xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n  '+d(e,function(e,t){return'\n    <xdr:oneCellAnchor editAs="oneCell">\n      <xdr:from>\n        <xdr:col>'+e.col+"</xdr:col>\n        <xdr:colOff>"+e.colOffset+"</xdr:colOff>\n        <xdr:row>"+e.row+"</xdr:row>\n        <xdr:rowOff>"+e.rowOffset+'</xdr:rowOff>\n      </xdr:from>\n      <xdr:ext cx="'+e.width+'" cy="'+e.height+'" />\n      <xdr:pic>\n        <xdr:nvPicPr>\n          <xdr:cNvPr id="'+(t+1)+'" name="Picture '+(t+1)+'"/>\n          <xdr:cNvPicPr/>\n        </xdr:nvPicPr>\n        <xdr:blipFill>\n          <a:blip r:embed="'+e.imageId+'"/>\n          <a:stretch>\n            <a:fillRect/>\n          </a:stretch>\n        </xdr:blipFill>\n        <xdr:spPr>\n          <a:prstGeom prst="rect">\n            <a:avLst/>\n          </a:prstGeom>\n        </xdr:spPr>\n      </xdr:pic>\n      <xdr:clientData/>\n    </xdr:oneCellAnchor>'})+"\n</xdr:wsDr>"},se=function(e){return Y+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n  '+d(e,function(e){return'\n    <Relationship Id="'+e.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+e.target+'"/>'})+"\n</Relationships>"},le=function(e){var t=e.count,n=e.uniqueCount,i=e.indexes;return Y+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+t+'" uniqueCount="'+n+'">\n  '+d(Object.keys(i),function(e){return'\n    <si><t xml:space="preserve">'+s(e.substring(1))+"</t></si>"})+"\n</sst>"},de=function(e){var t=e.formats,n=e.fonts,i=e.fills,o=e.borders,r=e.styles;return Y+'\n<styleSheet\n    xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"\n    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\n    mc:Ignorable="x14ac"\n    xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\n  <numFmts count="'+t.length+'">\n  '+d(t,function(e,t){return'\n    <numFmt formatCode="'+s(e.format)+'" numFmtId="'+(165+t)+'" />'})+'\n  </numFmts>\n  <fonts count="'+(n.length+1)+'" x14ac:knownFonts="1">\n    <font>\n       <sz val="11" />\n       <color theme="1" />\n       <name val="Calibri" />\n       <family val="2" />\n       <scheme val="minor" />\n    </font>\n    '+d(n,function(e){return"\n    <font>\n      "+(e.bold?"<b/>":"")+"\n      "+(e.italic?"<i/>":"")+"\n      "+(e.underline?"<u/>":"")+'\n      <sz val="'+(e.fontSize||11)+'" />\n      '+(e.color?'<color rgb="'+s(e.color)+'" />':'<color theme="1" />')+"\n      "+(e.fontFamily?'\n        <name val="'+s(e.fontFamily)+'" />\n        <family val="2" />\n      ':'\n        <name val="Calibri" />\n        <family val="2" />\n        <scheme val="minor" />\n      ')+"\n    </font>"})+'\n  </fonts>\n  <fills count="'+(i.length+2)+'">\n      <fill><patternFill patternType="none"/></fill>\n      <fill><patternFill patternType="gray125"/></fill>\n    '+d(i,function(e){return"\n      "+(e.background?'\n        <fill>\n          <patternFill patternType="solid">\n              <fgColor rgb="'+s(e.background)+'"/>\n          </patternFill>\n        </fill>\n      ':"")})+'\n  </fills>\n  <borders count="'+(o.length+1)+'">\n    <border><left/><right/><top/><bottom/><diagonal/></border>\n    '+d(o,y)+'\n  </borders>\n  <cellStyleXfs count="1">\n    <xf borderId="0" fillId="0" fontId="0" />\n  </cellStyleXfs>\n  <cellXfs count="'+(r.length+1)+'">\n    <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n    '+d(r,function(e){return'\n      <xf xfId="0"\n          '+(e.fontId?'fontId="'+e.fontId+'" applyFont="1"':"")+"\n          "+(e.fillId?'fillId="'+e.fillId+'" applyFill="1"':"")+"\n          "+(e.numFmtId?'numFmtId="'+e.numFmtId+'" applyNumberFormat="1"':"")+"\n          "+(e.textAlign||e.verticalAlign||e.wrap?'applyAlignment="1"':"")+"\n          "+(e.borderId?'borderId="'+e.borderId+'" applyBorder="1"':"")+">\n        "+(e.textAlign||e.verticalAlign||e.wrap?"\n        <alignment\n          "+(e.textAlign?'horizontal="'+s(e.textAlign)+'"':"")+"\n          "+(e.verticalAlign?'vertical="'+s(e.verticalAlign)+'"':"")+"\n          "+(e.indent?'indent="'+s(e.indent)+'"':"")+"\n          "+(e.wrap?'wrapText="1"':"")+" />\n        ":"")+"\n      </xf>\n    "})+'\n  </cellXfs>\n  <cellStyles count="1">\n    <cellStyle name="Normal" xfId="0" builtinId="0"/>\n  </cellStyles>\n  <dxfs count="0" />\n  <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleMedium9" />\n</styleSheet>'},ce=kendo.Class.extend({init:function(t,n,i,o){this.options=t,this._strings=n,this._styles=i,this._borders=o,this._validations={},this._comments=[],this._drawings=t.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map(function(t,n){return e.extend({},t,{rId:"link"+n})})},relsToXML:function(){var e=this._hyperlinks,t=this._comments,n=this._drawings;if(e.length||t.length||n.length)return ie({hyperlinks:e,comments:t,sheetIndex:this.options.sheetIndex,drawings:n})},toXML:function(e){var t,n,i,o,r,a,s,l,d,c=this,u=this.options.mergedCells||[],p=this.options.rows||[],m=x(p,u);this._readCells(m),t=this.options.filter,t&&"number"==typeof t.from&&"number"==typeof t.to?t={from:h(f(this.options),t.from),to:h(f(this.options),t.to)}:t&&t.ref&&t.columns&&(n=t,t=null),i=[];for(o in this._validations)Object.prototype.hasOwnProperty.call(c._validations,o)&&i.push(c._validations[o]);return r=null,this.options.defaultCellStyle&&(r=this._lookupStyle(this.options.defaultCellStyle)),a=this.options.freezePane||{},s=this.options.defaults||{},l=this.options.rows?this._getLastRow():1,d=this.options.rows?this._getLastCol():1,te({frozenColumns:this.options.frozenColumns||a.colSplit,frozenRows:this.options.frozenRows||a.rowSplit,columns:this.options.columns,defaults:s,data:m,index:e,mergeCells:u,autoFilter:t,filter:n,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:i,defaultCellStyleId:r,rtl:void 0!==this.options.rtl?this.options.rtl:s.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:l,lastCol:d})},commentsXML:function(){if(this._comments.length)return oe({comments:this._comments})},drawingsXML:function(e){var t,n;if(this._drawings.length)return t={},n=this._drawings.map(function(n){var i=A(n.topLeftCell),o=t[n.image];return o||(o=t[n.image]={rId:"img"+n.image,target:e[n.image].target}),{col:i.col,colOffset:E(n.offsetX),row:i.row,rowOffset:E(n.offsetY),width:E(n.width),height:E(n.height),imageId:o.rId}}),{main:ae(n),rels:se(t)}},legacyDrawing:function(){if(this._comments.length)return re({comments:this._comments})},_lookupString:function(e){var t,n="$"+e,i=this._strings.indexes[n];return void 0!==i?t=i:(t=this._strings.indexes[n]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,t},_lookupStyle:function(e){var t,n=JSON.stringify(e);return"{}"===n?0:(t=a(n,this._styles),t<0&&(t=this._styles.push(n)-1),t+1)},_lookupBorder:function(e){var t,n=JSON.stringify(e);if("{}"!==n)return t=a(n,this._borders),t<0&&(t=this._borders.push(n)-1),t+1},_readCells:function(e){var t,n,i,o,r,a=this;for(t=0;t<e.length;t++)for(n=e[t],i=n.cells,n.data=[],o=0;o<i.length;o++)r=a._cell(i[o],n.index,o),r&&n.data.push(r)},_cell:function(e,t,n){var i,r,a,s,l,d,c,u,p,f;return e&&e!==me?(i=e.value,r={},e.borderLeft&&(r.left=e.borderLeft),e.borderRight&&(r.right=e.borderRight),e.borderTop&&(r.top=e.borderTop),e.borderBottom&&(r.bottom=e.borderBottom),r=this._lookupBorder(r),a=this.options.defaultCellStyle||{},s={borderId:r},function(e){e("color"),e("background"),e("bold"),e("italic"),e("underline"),e("fontFamily")||e("fontName","fontFamily"),e("fontSize"),e("format"),e("textAlign")||e("hAlign","textAlign"),e("verticalAlign")||e("vAlign","verticalAlign"),e("wrap"),e("indent")}(function(t,n){var i=e[t];if(void 0===i&&(i=a[t]),void 0!==i)return s[n||t]=i,!0}),l=this.options.columns||[],d=l[n],c=typeof i,!d||!d.autoWidth||e.colSpan&&1!==e.colSpan||(u=i,"number"===c&&(u=V.toString(i,e.format)),d.width=Math.max(d.width||0,(u+"").length)),"string"===c?(i=v(i),i=this._lookupString(i),c="s"):"number"===c?c="n":"boolean"===c?(c="b",i=+i):i&&i.getTime?(c=null,i=o(i),s.format||(s.format="mm-dd-yy")):(c=null,i=null),s=this._lookupStyle(s),p=h(t,n),e.validation&&this._addValidation(e.validation,p),e.comment&&(f=[n+1,15,t,10,n+3,15,t+3,4],this._comments.push({ref:p,text:e.comment,row:t,col:n,anchor:f.join(", ")})),{value:i,formula:e.formula,type:c,style:s,ref:p}):null},_addValidation:function(e,t){var n={showErrorMessage:"reject"===e.type?1:0,formula1:e.from,formula2:e.to,type:he[e.dataType]||e.dataType,operator:ue[e.comparerType]||e.comparerType,allowBlank:e.allowNulls?1:0,showDropDown:e.showButton?0:1,error:e.messageTemplate,errorTitle:e.titleTemplate},i=JSON.stringify(n);this._validations[i]||(this._validations[i]=n,n.sqref=[]),this._validations[i].sqref.push(t)},_getLastRow:function(){return _(this.options.rows)},_getLastCol:function(){var e=0;return this.options.rows.forEach(function(t){t.cells&&(e=Math.max(e,_(t.cells)))}),e}}),ue={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},he={number:"decimal"},pe={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70},fe=kendo.Class.extend({init:function(e){var t=this;this.options=e||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,
this._imgId=0,this._sheets=H(this.options.sheets||[],function(e,n){return e.defaults=t.options,e.sheetIndex=n+1,new ce(e,t._strings,t._styles,t._borders)})},imageFilename:function(e){var t=++this._imgId;switch(e){case"image/jpg":case"image/jpeg":return"image"+t+".jpg";case"image/png":return"image"+t+".png";case"image/gif":return"image"+t+".gif";default:return"image"+t+".bin"}},toZIP:function(){var e,t,n,i,o,r,s,l,d,c,u,h,m,g,v,_,w,k,y,x,C,S,T,D,E,I,M,R,F,P=this,z=N(),B=z.folder("docProps");for(B.file("core.xml",X({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()})),e=this._sheets.length,B.file("app.xml",Z({sheets:this._sheets})),t=z.folder("_rels"),t.file(".rels",Q),n=z.folder("xl"),i=n.folder("_rels"),i.file("workbook.xml.rels",ne({count:e})),this._images&&(o=n.folder("media"),Object.keys(this._images).forEach(function(e){var t=P._images[e],n=P.imageFilename(t.type);o.file(n,t.data),t.target="../media/"+n})),r={},n.file("workbook.xml",ee({sheets:this._sheets,filterNames:H(this._sheets,function(e,t){var n,i,o,a,s=e.options,l=s.name||s.title||"Sheet"+(t+1);if(r[l.toLowerCase()]=t,n=s.filter){if(n.ref)return i=n.ref.split(":"),o=A(i[0]),a=A(i[1]),{localSheetId:t,name:l,from:p(o.row,o.col),to:p(a.row,a.col)};if(void 0!==n.from&&void 0!==n.to)return{localSheetId:t,name:l,from:p(f(s),n.from),to:p(f(s),n.to)}}}),userNames:H(this.options.names||[],function(e){return{name:e.localName,localSheetId:e.sheet?r[e.sheet.toLowerCase()]:null,value:e.value,hidden:e.hidden}})})),s=n.folder("worksheets"),l=n.folder("drawings"),d=l.folder("_rels"),c=s.folder("_rels"),u=[],h=[],m=0;m<e;m++)g=P._sheets[m],v="sheet"+(m+1)+".xml",_=g.toXML(m),w=g.relsToXML(),k=g.commentsXML(),y=g.legacyDrawing(),x=g.drawingsXML(P._images),w&&c.file(v+".rels",w),k&&(C="comments"+g.options.sheetIndex+".xml",n.file(C,k),u.push(C)),y&&l.file("vmlDrawing"+g.options.sheetIndex+".vml",y),x&&(S="drawing"+g.options.sheetIndex+".xml",l.file(S,x.main),d.file(S+".rels",x.rels),h.push(S)),s.file(v,_);return T=H(this._borders,K),D=H(this._styles,K),E=function(e){return e.underline||e.bold||e.italic||e.color||e.fontFamily||e.fontSize},I=function(e){var t,n=+e;return n&&(t=3*n/4),t},M=H(D,function(e){if(e.fontSize&&(e.fontSize=I(e.fontSize)),e.color&&(e.color=b(e.color)),E(e))return e}),R=H(D,function(e){if(e.format&&void 0===pe[e.format])return e}),F=H(D,function(e){if(e.background)return e.background=b(e.background),e}),n.file("styles.xml",de({fonts:M,fills:F,formats:R,borders:T,styles:H(D,function(e){var t={};return E(e)&&(t.fontId=a(e,M)+1),e.background&&(t.fillId=a(e,F)+2),t.textAlign=e.textAlign,t.indent=e.indent,t.verticalAlign=e.verticalAlign,t.wrap=e.wrap,t.borderId=e.borderId,e.format&&(t.numFmtId=void 0!==pe[e.format]?pe[e.format]:165+a(e,R)),t})})),n.file("sharedStrings.xml",le(this._strings)),z.file("[Content_Types].xml",J({sheetCount:e,commentFiles:u,drawingFiles:h})),z},toDataURL:function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(q).then(r):r(e.generate(q))},toBlob:function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(G):new Blob([e.generate($)],{type:U})}}),me={},ge=function(e){var t=e.ref,n=e.columns,i=e.generators;return'\n<autoFilter ref="'+t+'">\n  '+d(n,function(e){return'\n    <filterColumn colId="'+e.index+'">\n      '+i[e.filter](e)+"\n    </filterColumn>\n  "})+"\n</autoFilter>"},ve=function(e){var t=e.logic,n=e.criteria;return"\n<customFilters "+("and"===t?'and="1"':"")+">\n"+d(n,function(e){var t=z.customOperator(e),n=z.customValue(e);return"<customFilter "+(t?'operator="'+t+'"':"")+' val="'+n+'"/>'})+"\n</customFilters>"},_e=function(e){var t=e.type;return'<dynamicFilter type="'+z.dynamicFilterType(t)+'" />'},be=function(e){var t=e.type,n=e.value;return'<top10 percent="'+(/percent$/i.test(t)?1:0)+'"\n       top="'+(/^top/i.test(t)?1:0)+'"\n       val="'+n+'" />'},we=function(e){var t=e.blanks,n=e.values;return"<filters "+(t?'blank="1"':"")+">\n    "+d(n,function(e){return'\n      <filter val="'+e+'" />'})+"\n  </filters>"},z.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},z.customValue=function(e){function t(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(e.value);case"contains":case"doesnotcontain":return"*"+t(e.value)+"*";default:return e.value}},z.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e},kendo.deepExtend(kendo.ooxml,{IntlService:V,Workbook:fe,Worksheet:ce})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/main.min",["kendo.core.min","ooxml/kendo-ooxml.min"],e)}(function(){!function(e){var t=kendo.ooxml.Workbook;kendo.ooxml.IntlService.register({toString:kendo.toString}),kendo.ooxml.Workbook=t.extend({toDataURL:function(){var e=t.fn.toDataURL.call(this);if("string"!=typeof e)throw Error("The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.");return e},toDataURLAsync:function(){var n=e.Deferred(),i=t.fn.toDataURL.call(this);return"string"==typeof i?i=n.resolve(i):i&&i.then&&i.then(function(e){n.resolve(e)},function(){n.reject()}),n.promise()}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.ooxml.min",["ooxml/main.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("excel/kendo-excel.min",["kendo.core.min"],e)}(function(){!function(e){function t(e){return e.title+": "+e.value}function n(e,t){var n,i=[];for(n=0;n<e;n++)i.push(t(n));return i}var i,o,r,a,s;window.kendo.excel=window.kendo.excel||{},i=kendo.getter,o=e.map,r={compile:function(e){return e}},a=kendo.Class.extend({}),a.register=function(e){r=e},a.compile=function(e){return r.compile(e)},s=kendo.Class.extend({init:function(e){e.columns=this._trimColumns(e.columns||[]),this.allColumns=o(this._leafColumns(e.columns||[]),this._prepareColumn),this.columns=this.allColumns.filter(function(e){return!e.hidden}),this.options=e,this.data=e.data||[],this.aggregates=e.aggregates||{},this.groups=[].concat(e.groups||[]),this.hierarchy=e.hierarchy},workbook:function(){var e={sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]};return e},_trimColumns:function(e){var t=this;return e.filter(function(e){var n=!!e.field;return!n&&e.columns&&(n=t._trimColumns(e.columns).length>0),n})},_leafColumns:function(e){var t,n=this,i=[];for(t=0;t<e.length;t++)e[t].columns?i=i.concat(n._leafColumns(e[t].columns)):i.push(e[t]);return i},_prepareColumn:function(n){var o,r;return n.field?(o=function(e){return i(n.field,!0)(e)},r=null,n.values&&(r={},n.values.forEach(function(e){r[e.value]=e.text}),o=function(e){return r[i(n.field,!0)(e)]}),e.extend({},n,{value:o,values:r,groupHeaderTemplate:n.groupHeaderTemplate?a.compile(n.groupHeaderTemplate):t,groupFooterTemplate:n.groupFooterTemplate?a.compile(n.groupFooterTemplate):null,footerTemplate:n.footerTemplate?a.compile(n.footerTemplate):null})):null},_filter:function(){if(!this.options.filterable)return null;var e=this._depth();return{from:e,to:e+this.columns.length-1}},_createPaddingCells:function(t){var i=this;return n(t,function(){return e.extend({background:"#dfdfdf",color:"#333"},i.options.paddingCellOptions)})},_dataRow:function(t,n,i){var o,r,a,s,l,d,c,u,h=this,p=this._createPaddingCells(n);if(i&&t.items)return o=this.allColumns.filter(function(e){return e.field===t.field})[0],r=o&&o.title?o.title:t.field,a=o?o.groupHeaderTemplate:null,s=e.extend({title:r,field:t.field,value:o&&o.values?o.values[t.value]:t.value,aggregates:t.aggregates,items:t.items},t.aggregates[t.field]),l=r+": "+t.value,a&&(l=a(s)),p.push(e.extend({value:l,background:"#dfdfdf",color:"#333",colSpan:this.columns.length+i-n},(o||{}).groupHeaderCellOptions)),d=this._dataRows(t.items,n+1),d.unshift({type:"group-header",cells:p,level:this.options.collapsible?n:null}),d.concat(this._footer(t,n));for(c=[],u=0;u<this.columns.length;u++)c[u]=h._cell(t,h.columns[u]);return this.hierarchy&&(c[0].colSpan=i-n+1),[{type:"data",cells:p.concat(c),level:this.options.collapsible?n:null}]},_dataRows:function(e,t){var n,i=this,o=this._depth(),r=[];for(n=0;n<e.length;n++)r.push.apply(r,i._dataRow(e[n],t,o));return r},_hierarchyRows:function(){var e,t,n,i,o,r=this,a=this._depth(),s=this.data,l=this.hierarchy.itemLevel,d=this._hasFooterTemplate(),c=[],u=[],h=0;for(t=0;t<s.length;t++)n=s[t],i=l(n),d&&(i>h?u.push({id:e,level:h}):i<h&&c.push.apply(c,r._hierarchyFooterRows(u,i,a)),h=i,e=n.id),c.push.apply(c,r._dataRow(n,i+1,a));return d&&(c.push.apply(c,this._hierarchyFooterRows(u,0,a)),o=s.length?this.aggregates[s[0].parentId]:{},c.push(this._hierarchyFooter(o,0,a))),this._prependHeaderRows(c),c},_hierarchyFooterRows:function(e,t,n){for(var i,o=this,r=[];e.length&&e[e.length-1].level>=t;)i=e.pop(),r.push(o._hierarchyFooter(o.aggregates[i.id],i.level+1,n));return r},_hasFooterTemplate:function(){var e,t=this.columns;for(e=0;e<t.length;e++)if(t[e].footerTemplate)return!0},_hierarchyFooter:function(t,n,i){var o=this.columns.map(function(o,r){var a=r?1:i-n+1;return o.footerTemplate?e.extend({background:"#dfdfdf",color:"#333",colSpan:a,value:o.footerTemplate(e.extend({},(t||{})[o.field]))},o.footerCellOptions):e.extend({background:"#dfdfdf",color:"#333",colSpan:a},o.footerCellOptions)});return{type:"footer",cells:this._createPaddingCells(n).concat(o)}},_footer:function(t,n){var i,o,r,a=[],s=this.columns.some(function(e){return e.groupFooterTemplate});return s&&(o={group:{items:t.items,field:t.field,value:t.value}},i={},Object.keys(t.aggregates).forEach(function(n){i[n]=e.extend({},t.aggregates[n],o)})),r=this.columns.map(function(n){if(n.groupFooterTemplate){var r=e.extend({},i,t.aggregates[n.field],o);return e.extend({background:"#dfdfdf",color:"#333",value:n.groupFooterTemplate(r)},n.groupFooterCellOptions)}return e.extend({background:"#dfdfdf",color:"#333"},n.groupFooterCellOptions)}),s&&a.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(r),level:this.options.collapsible?n:null}),a},_isColumnVisible:function(e){return this._visibleColumns([e]).length>0&&(e.field||e.columns)},_visibleColumns:function(e){var t=this;return e.filter(function(e){var n=!e.hidden;return n&&e.columns&&(n=t._visibleColumns(e.columns).length>0),n})},_headerRow:function(t,i){var o=this,r=t.cells.map(function(n){return e.extend(n,{colSpan:n.colSpan>1?n.colSpan:1,rowSpan:t.rowSpan>1&&!n.colSpan?t.rowSpan:1})});return this.hierarchy&&(r[0].colSpan=this._depth()+1),{type:"header",cells:n(i.length,function(){return e.extend({background:"#7a7a7a",color:"#fff"},o.options.headerPaddingCellOptions)}).concat(r)}},_prependHeaderRows:function(e){var t,n=this,i=this.groups,o=[{rowSpan:1,cells:[],index:0}];for(this._prepareHeaderRows(o,this.options.columns),t=o.length-1;t>=0;t--)e.unshift(n._headerRow(o[t],i))},_prepareHeaderRows:function(t,n,i,o){var r,a,s,l=this,d=o||t[t.length-1],c=t[d.index+1],u=0;for(r=0;r<n.length;r++)a=n[r],l._isColumnVisible(a)&&(s=e.extend({background:"#7a7a7a",color:"#fff",value:a.title||a.field,colSpan:0},a.headerCellOptions),d.cells.push(s),a.columns&&a.columns.length&&(c||(c={rowSpan:0,cells:[],index:t.length},t.push(c)),s.colSpan=l._trimColumns(l._visibleColumns(a.columns)).length,l._prepareHeaderRows(t,a.columns,s,c),u+=s.colSpan-1,d.rowSpan=t.length-d.index));i&&(i.colSpan+=u)},_rows:function(){var t,n,i=this,o=this._dataRows(this.data,0);return this.columns.length&&(this._prependHeaderRows(o),t=!1,n=this.columns.map(function(n){return n.footerTemplate?(t=!0,e.extend({background:"#dfdfdf",color:"#333",value:n.footerTemplate(e.extend({},i.aggregates,i.aggregates[n.field]))},n.footerCellOptions)):e.extend({background:"#dfdfdf",color:"#333"},n.footerCellOptions)}),t&&o.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(n)})),o},_headerDepth:function(e){var t,n,i=this,o=1,r=0;for(t=0;t<e.length;t++)e[t].columns&&(n=i._headerDepth(e[t].columns),n>r&&(r=n));return o+r},_freezePane:function(){var e=this._visibleColumns(this.options.columns||[]),t=this._visibleColumns(this._trimColumns(this._leafColumns(e.filter(function(e){return e.locked})))).length;return{rowSplit:this._headerDepth(e),colSplit:t?t+this.groups.length:0}},_cell:function(t,n){return e.extend({value:n.value(t)},n.cellOptions)},_depth:function(){var e=0;return e=this.hierarchy?this.hierarchy.depth:this.groups.length},_columns:function(){var e=this._depth(),t=n(e,function(){return{width:20}});return t.concat(this.columns.map(function(e){return{width:parseInt(e.width,10),autoWidth:!e.width}}))}}),kendo.deepExtend(kendo.excel,{ExcelExporter:s,TemplateService:a})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("excel/main.min",["kendo.core.min","kendo.data.min","excel/kendo-excel.min"],e)}(function(){return function(e,t){var n=t.excel.ExcelExporter,i=e.extend;t.excel.TemplateService.register({compile:t.template}),t.ExcelExporter=t.Class.extend({init:function(e){var n,o,r,a;if(this.options=e,n=e.dataSource,n instanceof t.data.DataSource){if(n.filter()||(n.options.filter=void 0),this.dataSource=new n.constructor(i({},n.options,{page:e.allPages?0:n.page(),filter:n.filter(),pageSize:e.allPages?n.total():n.pageSize()||n.total(),sort:n.sort(),group:n.group(),aggregate:n.aggregate()})),o=n.data(),o.length>0){if(e.hierarchy)for(r=0;r<o.length;r++)o[r].expanded!==!1&&void 0!==o[r].expanded||(o[r].expanded=!0);this.dataSource._data=o,a=this.dataSource.transport,n._isServerGrouped()&&a.options&&a.options.data&&(a.options.data=null)}}else this.dataSource=t.data.DataSource.create(n)},_hierarchy:function(){var e,t,n,i,o=this.options.hierarchy,r=this.dataSource;if(o&&r.level){for(o={itemLevel:function(e){return r.level(e)}},e=r.view(),t=0,i=0;i<e.length;i++)n=r.level(e[i]),n>t&&(t=n);o.depth=t+1}else o=!1;return{hierarchy:o}},workbook:function(){return e.Deferred(e.proxy(function(t){this.dataSource.fetch().then(e.proxy(function(){var e=new n(i({},this.options,this._hierarchy(),{data:this.dataSource.view(),groups:this.dataSource.group(),aggregates:this.dataSource.aggregates()})).workbook();t.resolve(e,this.dataSource.view())},this))},this)).promise()}})}(kendo.jQuery,kendo),kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("excel/mixins.min",["excel/main.min","kendo.ooxml.min"],e)}(function(){return function(e,t){t.ExcelMixin={extend:function(t){t.events.push("excelExport"),t.options.excel=e.extend(t.options.excel,this.options),t.saveAsExcel=this.saveAsExcel},options:{proxyURL:"",allPages:!1,filterable:!1,fileName:"Export.xlsx",collapsible:!1},saveAsExcel:function(){var n=this.options.excel||{},i=new t.ExcelExporter({columns:this.columns,dataSource:this.dataSource,allPages:n.allPages,filterable:n.filterable,hierarchy:n.hierarchy,collapsible:n.collapsible});i.workbook().then(e.proxy(function(e,i){if(!this.trigger("excelExport",{workbook:e,data:i})){var o=new t.ooxml.Workbook(e);o.options||(o.options={}),o.options.skipCustomHeight=!0,o.toDataURLAsync().then(function(i){t.saveAs({dataURI:i,fileName:e.fileName||n.fileName,proxyURL:n.proxyURL,forceProxy:n.forceProxy})})}},this))}}}(kendo.jQuery,kendo),kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.excel.min",["excel/main.min","excel/mixins.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.signalr.min",["kendo.data.min"],e)}(function(){return function(e){function t(e){return e&&o(e.done)&&o(e.fail)}function n(e){return e&&o(e.then)&&o(e["catch"])}var i=window.kendo,o=i.isFunction,r=i.data.RemoteTransport.extend({init:function(e){var o,r=e&&e.signalr?e.signalr:{},a=r.promise;if(!a)throw Error('The "promise" option must be set.');if(!t(a)&&!n(a))throw Error('The "promise" option must be a Promise.');if(this.promise=a,o=r.hub,!o)throw Error('The "hub" option must be set.');if("function"!=typeof o.on||"function"!=typeof o.invoke)throw Error('The "hub" option is not a valid SignalR hub proxy.');this.hub=o,i.data.RemoteTransport.fn.init.call(this,e)},push:function(e){var t=this.options.signalr.client||{};t.create&&this.hub.on(t.create,e.pushCreate),t.update&&this.hub.on(t.update,e.pushUpdate),t.destroy&&this.hub.on(t.destroy,e.pushDestroy)},_crud:function(o,r){var a,s,l=this.hub,d=this.promise,c=this.options.signalr.server;if(!c||!c[r])throw Error(i.format('The "server.{0}" option must be set.',r));a=[c[r]],s=this.parameterMap(o.data,r),e.isEmptyObject(s)||a.push(s),t(d)?d.done(function(){l.invoke.apply(l,a).done(o.success).fail(o.error)}):n(d)&&d.then(function(){l.invoke.apply(l,a).then(o.success)["catch"](o.error)})},read:function(e){this._crud(e,"read")},create:function(e){this._crud(e,"create")},update:function(e){this._crud(e,"update")},destroy:function(e){this._crud(e,"destroy")}});e.extend(!0,i.data,{transports:{signalr:r}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("drawing/util.min",["kendo.core.min"],e)}(function(){return function(e){function t(){return e.Deferred()}function n(t){return e.when.apply(e,t)}kendo.drawing.util=kendo.drawing.util||{},kendo.deepExtend(kendo.drawing.util,{createPromise:t,promiseAll:n})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.color.min",["kendo.core.min"],e)}(function(){function e(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}function t(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function n(e,t){var i,o,a;if(null==e||"none"===e)return null;if(e instanceof l)return e;if(a=e.toLowerCase(),i=s(a))return a="transparent"===i[1]?new d(1,1,1,0):n(r[i[1]],t),a.match=[i[1]],a;if((i=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(a))?o=new c(parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16),1):(i=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(a))?o=new c(parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16),1):(i=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(a))?o=new c(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),1):(i=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(a))?o=new c(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),parseFloat(i[4])):(i=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(a))?o=new d(parseFloat(i[1])/100,parseFloat(i[2])/100,parseFloat(i[3])/100,1):(i=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(a))&&(o=new d(parseFloat(i[1])/100,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(i[4]))),o)o.match=i;else if(!t)throw Error("Cannot parse color: "+a);return o}var i,o,r,a,s,l,d,c,u,h,p,f;window.kendo=window.kendo||{},i=kendo.Class,o=kendo.support,r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},a=o.browser,s=function(e){var t,n=Object.keys(r);return n.push("transparent"),t=RegExp("^("+n.join("|")+")(\\W|$)","i"),s=function(e){return t.exec(e)},t.exec(e)},l=i.extend({init:function(){},toHSV:function(){return this},toRGB:function(){return this},toHex:function(){return this.toBytes().toHex()},toBytes:function(){return this},toCss:function(){return"#"+this.toHex()},toCssRgba:function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat((+this.a).toFixed(3))+")"},toDisplay:function(){return a.msie&&a.version<9?this.toCss():this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()===n(e).toCssRgba()},diff:function(e){var t,n;return null===e?NaN:(t=this.toBytes(),n=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2)))},clone:function(){var e=this.toBytes();return e===this&&(e=new c(e.r,e.g,e.b,e.a)),e}}),d=l.extend({init:function(e,t,n,i){l.fn.init.call(this),this.r=e,this.g=t,this.b=n,this.a=i},toHSV:function(){var e,t,n=this,i=n.r,o=n.g,r=n.b,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a,d=s;return 0===l?new u(0,0,d,this.a):(0!==s?(t=l/s,e=i===s?(o-r)/l:o===s?2+(r-i)/l:4+(i-o)/l,e*=60,e<0&&(e+=360)):(t=0,e=-1),new u(e,t,d,this.a))},toHSL:function(){var e,t,n,i=this,o=i.r,r=i.g,a=i.b,s=Math.max(o,r,a),l=Math.min(o,r,a),d=(s+l)/2;if(s===l)e=t=0;else switch(n=s-l,t=d>.5?n/(2-s-l):n/(s+l),s){case o:e=(r-a)/n+(r<a?6:0);break;case r:e=(a-o)/n+2;break;case a:e=(o-r)/n+4}return new h(60*e,100*t,100*d,this.a)},toBytes:function(){return new c(255*this.r,255*this.g,255*this.b,this.a)}}),c=d.extend({init:function(e,t,n,i){d.fn.init.call(this,Math.round(e),Math.round(t),Math.round(n),i)},toRGB:function(){return new d(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHSL:function(){return this.toRGB().toHSL()},toHex:function(){return e(this.r,2)+e(this.g,2)+e(this.b,2)},toBytes:function(){return this}}),u=l.extend({init:function(e,t,n,i){l.fn.init.call(this),this.h=e,this.s=t,this.v=n,this.a=i},toRGB:function(){var e,t,n,i,o,r,a,s,l=this,c=l.h,u=l.s,h=l.v;if(0===u)e=t=n=h;else switch(c/=60,i=Math.floor(c),o=c-i,r=h*(1-u),a=h*(1-u*o),s=h*(1-u*(1-o)),i){case 0:e=h,t=s,n=r;break;case 1:e=a,t=h,n=r;break;case 2:e=r,t=h,n=s;break;case 3:e=r,t=a,n=h;break;case 4:e=s,t=r,n=h;break;default:e=h,t=r,n=a}return new d(e,t,n,this.a)},toHSL:function(){return this.toRGB().toHSL()},toBytes:function(){return this.toRGB().toBytes()}}),h=l.extend({init:function(e,t,n,i){l.fn.init.call(this),this.h=e,this.s=t,this.l=n,this.a=i},toRGB:function(){var e,n,i,o,r,a=this.h/360,s=this.s/100,l=this.l/100;return 0===s?e=n=i=l:(o=l<.5?l*(1+s):l+s-l*s,r=2*l-o,e=t(r,o,a+1/3),n=t(r,o,a),i=t(r,o,a-1/3)),new d(e,n,i,this.a)},toHSV:function(){return this.toRGB().toHSV()},toBytes:function(){return this.toRGB().toBytes()}}),p=180,f=i.extend({init:function(e){var t,n,i,o,r,a,s,l=this;if(1===arguments.length)for(t=f.formats,n=this.resolveColor(e),i=0;i<t.length;i++)o=t[i].re,r=t[i].process,a=o.exec(n),a&&(s=r(a),l.r=s[0],l.g=s[1],l.b=s[2]);else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)},toHex:function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},resolveColor:function(e){var t=e||"black";return"#"===t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase(),t=f.namedColors[t]||t},normalizeByte:function(e){return e<0||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?"0"+e:e},brightness:function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},percBrightness:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},isDark:function(){return this.percBrightness()<p}}),f.fromBytes=function(e,t,n,i){return new c(e,t,n,null!=i?i:1)},f.fromRGB=function(e,t,n,i){return new d(e,t,n,null!=i?i:1)},f.fromHSV=function(e,t,n,i){return new u(e,t,n,null!=i?i:1)},f.fromHSL=function(e,t,n,i){return new h(e,t,n,null!=i?i:1)},f.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],f.namedColors=r,kendo.deepExtend(kendo,{parseColor:n,namedColors:r,Color:f})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("util/text-metrics.min",["kendo.core.min"],e)}(function(){!function(e){function t(e){return(e+"").replace(s,l)}function n(e){var t,n=[];for(t in e)n.push(t+e[t]);return n.sort().join("")}function i(e){var t,n=2166136261;for(t=0;t<e.length;++t)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=e.charCodeAt(t);return n>>>0}function o(){return{width:0,height:0,baseline:0}}function r(e,t,n){return u.current.measure(e,t,n)}var a,s,l,d,c,u;window.kendo.util=window.kendo.util||{},a=kendo.Class.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,t){var n=this._map,i={key:e,value:t};n[e]=i,this._head?(this._tail.newer=i,i.older=this._tail,this._tail=i):this._head=this._tail=i,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(e){var t=this._map[e];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}}),s=/\r?\n|\r|\t/g,l=" ",d={baselineMarkerSize:1},"undefined"!=typeof document&&(c=document.createElement("div"),c.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;"),u=kendo.Class.extend({init:function(t){this._cache=new a(1e3),this.options=e.extend({},d,t)},measure:function(e,r,a){var s,l,d,u,h,p,f,m,g;if(void 0===a&&(a={}),!e)return o();if(s=n(r),l=i(e+s),d=this._cache.get(l))return d;u=o(),h=a.box||c,p=this._baselineMarker().cloneNode(!1);for(f in r)m=r[f],void 0!==m&&(h.style[f]=m);return g=a.normalizeText!==!1?t(e):e+"",h.textContent=g,h.appendChild(p),document.body.appendChild(h),g.length&&(u.width=h.offsetWidth-this.options.baselineMarkerSize,u.height=h.offsetHeight,u.baseline=p.offsetTop+this.options.baselineMarkerSize),u.width>0&&u.height>0&&this._cache.put(l,u),h.parentNode.removeChild(h),u},_baselineMarker:function(){var e=document.createElement("div");return e.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",e}}),u.current=new u,kendo.deepExtend(kendo.util,{LRUCache:a,TextMetrics:u,measureText:r,objectKey:n,hashKey:i,normalizeText:t})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("drawing/kendo-drawing.min",["drawing/util.min","kendo.color.min","util/text-metrics.min"],e)}(function(){!function(e){function t(e,t){return e.push.apply(e,t),e}function n(e){for(var t=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],n="";e>0;)e<t[0]?t.shift():(n+=en[t[0]],e-=t[0]);return n}function i(e){return typeof e!==tn}function o(){return"kdef"+nn++}function r(e){return e/on}function a(e){var t,n,i="";for(t=0;t<e.length;t++)n=e.charCodeAt(t),n<128?i+=sn(n):n<2048?(i+=sn(192|n>>>6),i+=sn(128|63&n)):n<65536&&(i+=sn(224|n>>>12),i+=sn(128|n>>>6&63),i+=sn(128|63&n));return i}function s(e){for(var t,n,i,o,r,s,l,d="",c=0,u=a(e);c<u.length;)t=u.charCodeAt(c++),n=u.charCodeAt(c++),i=u.charCodeAt(c++),o=t>>2,r=(3&t)<<4|n>>4,s=(15&n)<<2|i>>6,l=63&i,isNaN(n)?s=l=64:isNaN(i)&&(l=64),d=d+ln.charAt(o)+ln.charAt(r)+ln.charAt(s)+ln.charAt(l);return d}function l(e){return i((e.x||{}).location)?{x:e.x.location,y:e.y.location}:{x:e.pageX||e.clientX||0,y:e.pageY||e.clientY||0}}function d(e){return void 0===e&&(e={}),e.touch?e.touch.initialTouch:e.target}function c(e){return""===e||null===e||"none"===e||"transparent"===e||!i(e)}function u(e){if(e)return e[e.length-1]}function h(e,t,n){return Math.max(Math.min(e,n),t)}function p(e,t){function n(e,n){for(var i=[],o=0,r=0,a=0;o<e.length&&r<n.length;)t(e[o],n[r])<=0?i[a++]=e[o++]:i[a++]=n[r++];return o<e.length&&i.push.apply(i,e.slice(o)),r<n.length&&i.push.apply(i,n.slice(r)),i}return e.length<2?e.slice():function i(e){var t,o,r;return e.length<=1?e:(t=Math.floor(e.length/2),o=e.slice(0,t),r=e.slice(t),o=i(o),r=i(r),n(o,r))}(e)}function f(e){return e*on}function m(e){return e?Math.pow(10,e):1}function g(e,t){var n=m(t);return Math.round(e*n)/n}function v(e,t){return i(e)?e:t}function _(e,t){var n,i,o;for(n in t)for(i=n.trim().split(" "),o=0;o<i.length;o++)e.addEventListener(i[o],t[n],!1)}function b(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}function w(e,t){var n,i,o={},r=window.getComputedStyle(e)||{},a=Array.isArray(t)?t:[t];
for(n=0;n<a.length;n++)i=a[n],o[i]=r[i];return o}function k(e){return isNaN(e)?e:e+"px"}function y(e,t){var n,o,r;return t?(n=t.width,o=t.height,i(n)&&(e.style.width=k(n)),i(o)&&(e.style.height=k(o)),void 0):(r=w(e,["width","height"]),{width:parseInt(r.width,10),height:parseInt(r.height,10)})}function x(e,t){var n,i,o;void 0===t&&(t={});for(n in t)for(i=n.trim().split(" "),o=0;o<i.length;o++)e.removeEventListener(i[o],t[n],!1)}function C(e){var t=w(e,["paddingLeft","paddingTop"]),n=t.paddingLeft,i=t.paddingTop;return{top:parseFloat(i),left:parseFloat(n)}}function S(e){return function(t){return this[e]!==t&&(this[e]=t,this.geometryChange()),this}}function T(e){return function(){return this[e]}}function D(e,t){var n,i,o;for(n=0;n<t.length;n++)i=t[n],o=i.charAt(0).toUpperCase()+i.substring(1,i.length),e["set"+o]=S(i),e["get"+o]=T(i)}function A(e){return e&&"function"==typeof e.matrix?e.matrix():e}function E(e,t,n,i){var o=0,r=0;return i&&(o=Math.atan2(i.c*n,i.a*t),0!==i.b&&(r=Math.atan2(i.d*n,i.b*t))),{x:o,y:r}}function I(e,t,n){return void 0===n&&(n=mn),0===g(Math.abs(e-t),n)}function M(e,t,n){return e<t||I(e,t,n)}function R(e,t,n,i){var o=t.x-e.x,r=i.x-n.x,a=t.y-e.y,s=i.y-n.y,l=e.x-n.x,d=e.y-n.y,c=o*s-r*a,u=(o*d-a*l)/c,h=(r*d-s*l)/c;if(u>=0&&u<=1&&h>=0&&h<=1)return new cn(e.x+h*o,e.y+h*a)}function F(e){return null===e?null:e instanceof gn?e:new gn(e)}function P(e,t,n,i,o,a){var s=g((o-e)/n,3),l=g((a-t)/i,3);return g(r(Math.atan2(l,s)))}function z(e){var t,n,i,o,a,s,l,d,c,u,h,p,m,v,_,b,w,k,y,x,C,S,T,D,A,E=e.x1,I=e.y1,M=e.x2,R=e.y2,F=e.rx,P=e.ry,z=e.largeArc,B=e.swipe,L=e.rotation;return void 0===L&&(L=0),t=f(L),n=Math.cos(t),i=Math.sin(t),o=n*(E-M)/2+i*(I-R)/2,a=-i*(E-M)/2+n*(I-R)/2,s=z!==B?1:-1,l=Math.pow(o,2),d=Math.pow(a,2),c=Math.pow(F,2),u=Math.pow(P,2),h=l/c+d/u,h>1&&(h=Math.sqrt(l/c+d/u),F=h*F,c=Math.pow(F,2),P=h*P,u=Math.pow(P,2)),p=s*Math.sqrt((c*u-c*d-u*l)/(c*d+u*l)),isNaN(p)&&(p=0),m=p*(F*a)/P,v=-p*(P*o)/F,_=n*m-i*v+(E+M)/2,b=i*m+n*v+(I+R)/2,w=(o-m)/F,k=(a-v)/P,y=-(o+m)/F,x=-(a+v)/P,C=(k>=0?1:-1)*r(Math.acos(w/Math.sqrt(w*w+k*k))),S=g((w*y+k*x)/(Math.sqrt(w*w+k*k)*Math.sqrt(y*y+x*x)),10),T=(w*x-k*y>=0?1:-1)*r(Math.acos(S)),!B&&T>0&&(T-=360),B&&T<0&&(T+=360),D=C+T,A=D>=0?1:-1,D=Math.abs(D)%360*A,{center:new cn(_,b),startAngle:C,endAngle:D,radiusX:F,radiusY:P,xRotation:L}}function B(e,t){for(var n=e;n<t;)n+=90;return n}function L(e){var t="_"+e;return function(e){return i(e)?(this._observerField(t,cn.create(e)),this.geometryChange(),this):this[t]}}function H(e,t){for(var n=0;n<t.length;n++)e[t[n]]=L(t[n])}function N(e,t,n){var i=r(Math.atan2(t.y-e.y,t.x-e.x)),o=n.transformCopy(F().rotate(-i,e));return o.x<e.x}function O(e,t,n){var i=1-e;return Math.pow(i,3)*n[0][t]+3*Math.pow(i,2)*e*n[1][t]+3*Math.pow(e,2)*i*n[2][t]+Math.pow(e,3)*n[3][t]}function V(e,t){return[-e[0][t]+3*e[1][t]-3*e[2][t]+e[3][t],3*(e[0][t]-2*e[1][t]+e[2][t]),3*(-e[0][t]+e[1][t]),e[0][t]]}function W(e){return e<0?-1:1}function U(e,t,n){var i=Math.sqrt(Math.pow(t,2)-4*e*n);return[(-t+i)/(2*e),(-t-i)/(2*e)]}function j(e,t,n,i){var o,r,a,s,l,d,c,u,h,p,f,m,v;return 0===e?U(t,n,i):(o=(3*e*n-Math.pow(t,2))/(3*Math.pow(e,2)),r=(2*Math.pow(t,3)-9*e*t*n+27*Math.pow(e,2)*i)/(27*Math.pow(e,3)),a=Math.pow(o/3,3)+Math.pow(r/2,2),s=new wn(0,1),l=-t/(3*e),a<0?(d=new wn(-r/2,Math.sqrt(-a)).nthRoot(3),c=new wn(-r/2,(-Math.sqrt(-a))).nthRoot(3)):(d=-r/2+Math.sqrt(a),d=new wn(W(d)*Math.pow(Math.abs(d),1/3)),c=-r/2-Math.sqrt(a),c=new wn(W(c)*Math.pow(Math.abs(c),1/3))),u=d.add(c),f=d.add(c).multiplyConstant(-.5),m=d.add(c.negate()).multiplyConstant(Math.sqrt(3)/2),h=f.add(s.multiply(m)),p=f.add(s.negate().multiply(m)),v=[],u.isReal()&&v.push(g(u.real+l,mn)),h.isReal()&&v.push(g(h.real+l,mn)),p.isReal()&&v.push(g(p.real+l,mn)),v)}function q(e,t,n,i,o){var r,a,s=V(e,i),l=j(s[0],s[1],s[2],s[3]-t[i]);for(a=0;a<l.length;a++)if(0<=l[a]&&l[a]<=1&&(r=O(l[a],n,e),Math.abs(r-t[n])<=o))return!0}function G(e,t,n){var i,o,r,a=V(e,"x"),s=j(a[0],a[1],a[2],a[3]-t.x),l=0;for(r=0;r<s.length;r++)i=O(s[r],"y",e),o=I(i,t.y)||i>t.y,o&&((0===s[r]||1===s[r])&&n.bottomRight().x>t.x||0<s[r]&&s[r]<1)&&l++;return l}function $(e,t,n){var i,o,r,a,s,l;return e.x!==t.x&&(o=Math.min(e.x,t.x),r=Math.max(e.x,t.x),a=Math.min(e.y,t.y),s=Math.max(e.y,t.y),l=o<=n.x&&n.x<r,i=a===s?n.y<=a&&l:l&&(s-a)*((e.x-t.x)*(e.y-t.y)>0?n.x-o:r-n.x)/(r-o)+a-n.y>=0),i?1:0}function K(e){var t,n=e.length,i=rn,o=an;for(t=0;t<n;t++)o=Math.max(o,e[t]),i=Math.min(i,e[t]);return{min:i,max:o}}function Y(e){var t,n=e.match(xn);return null===n||2!==n.length?dn.unit():(t=n[1].split(",").map(function(e){return parseFloat(e)}),new(Function.prototype.bind.apply(dn,[null].concat(t))))}function Q(e){var t=getComputedStyle(e).transform;return"none"===t?dn.unit():Y(t)}function X(e){var t,n,i;if(!e)return dn.unit();for(t=Q(e),n=e.parentElement;n;)i=Q(n),t=t.multiplyCopy(i),n=n.parentElement;return t.b=t.c=t.e=t.f=0,t}function Z(e){var t="_"+e;return function(e){return i(e)?(this._observerField(t,e),this.geometryChange(),this):this[t]}}function J(e,t){for(var n=0;n<t.length;n++)e[t[n]]=Z(t[n])}function ee(e,t,n){var i,o,r,a;for(o=0;o<e.length;o++)r=e[o],r.visible()&&(a=t?r.bbox(n):r.rawBBox(),a&&(i=i?hn.union(i,a):a));return i}function te(e,t){var n,i,o,r;for(i=0;i<e.length;i++)o=e[i],o.visible()&&(r=o.clippedBBox(t),r&&(n=n?hn.union(n,r):r));return n}function ne(e,t,n){var i,o=t?0:1;for(i=0;i<e.length;i+=2)e.splice(i+o,0,n)}function ie(e,t){if(e&&t)return t.scaleCopy(2).translate(-e.x,-e.y)}function oe(e,t,n){var i=t.clone().scale(2/3);return{controlOut:i.clone().translateWith(e.scaleCopy(jn)),controlIn:i.translateWith(n.scaleCopy(jn))}}function re(e){var t=[];return e.replace(Gn,function(e,n){t.push(parseFloat(n))}),t}function ae(e,t,n){var i=n.transform()||F(),o=i.matrix();o.e+=e.x-t.origin.x,o.f+=e.y-t.origin.y,i.matrix(o),n.transform(i)}function se(e,t,n,i,o){var r;return r="start"===n?t.origin[i]:"end"===n?t.origin[i]+t.size[o]-e:t.origin[i]+(t.size[o]-e)/2}function le(e,t,n,i,o){var r;return r="start"===n?t.origin[i]+t.size[o]-e:"end"===n?t.origin[i]:t.origin[i]+(t.size[o]-e)/2}function de(e,t,n,i,o){var r,a,s;for(r=0;r<e.length;r++)a=e[r].clippedBBox(),a&&(s=a.origin.clone(),s[i]=se(a.size[o],t,n||"start",i,o),ae(s,a,e[r]))}function ce(e,t,n){de(e,t,n,"x","width")}function ue(e,t,n){de(e,t,n,"y","height")}function he(e,t,n,i){var o,r,a,s,l;if(e.length>1)for(o=new cn,r=e[0].bbox,a=1;a<e.length;a++)s=e[a].element,l=e[a].bbox,o[t]=r.origin[t]+r.size[i],o[n]=l.origin[n],ae(o,l,s),l.origin[t]=o[t],r=l}function pe(e){var t,n,i,o=[];for(t=0;t<e.length;t++)n=e[t],i=n.clippedBBox(),i&&o.push({element:n,bbox:i});return o}function fe(e){he(pe(e),"x","y","width")}function me(e){he(pe(e),"y","x","height")}function ge(e,t,n){var i,o,r,a,s=t.size[n],l=[],d=[],c=0,u=function(){d.push({element:i,bbox:o})};for(r=0;r<e.length;r++)i=e[r],o=i.clippedBBox(),o&&(a=o.size[n],c+a>s?d.length?(l.push(d),d=[],u(),c=a):(u(),l.push(d),d=[],c=0):(u(),c+=a));return d.length&&l.push(d),l}function ve(e,t,n,i,o){var r,a,s,l,d=ge(e,t,o),c=t.origin.clone(),u=[];for(r=0;r<d.length;r++)for(a=d[r],s=a[0],c[i]=s.bbox.origin[i],ae(c,s.bbox,s.element),s.bbox.origin[n]=c[n],he(a,n,i,o),u.push([]),l=0;l<a.length;l++)u[r].push(a[l].element);return u}function _e(e,t){return ve(e,t,"x","y","width")}function be(e,t){return ve(e,t,"y","x","height")}function we(e,t){var n,i,o,r,a=e.clippedBBox();a&&(n=a.size,i=t.size,(i.width<n.width||i.height<n.height)&&(o=Math.min(i.width/n.width,i.height/n.height),r=e.transform()||F(),r.scale(o,o),e.transform(r)))}function ke(e){return function(t){return i(t)?(this.options.set(e,t),this):this.options.get(e)}}function ye(e,t){for(var n=0;n<t.length;n++)e[t[n]]=ke(t[n])}function xe(e){return.5-Math.cos(e*Math.PI)/2}function Ce(e){return e}function Se(e,t,n,i){var o=1.70158,r=0,a=i;return 0===e?n:1===e?n+i:(r||(r=.5),a<Math.abs(i)?(a=i,o=r/4):o=r/(2*Math.PI)*Math.asin(i/a),a*Math.pow(2,-10*e)*Math.sin((+e-o)*(1.1*Math.PI)/r)+i+n)}function Te(e,t){return i(t)&&null!==t?" "+e+'="'+t+'" ':""}function De(e){var t,n="";for(t=0;t<e.length;t++)n+=Te(e[t][0],e[t][1]);return n}function Ae(e){var t,n,o="";for(t=0;t<e.length;t++)n=e[t][1],i(n)&&(o+=e[t][0]+":"+n+";");if(""!==o)return o}function Ee(e,t){return"clip"===e||"fill"===e&&(!t||"Gradient"===t.nodeType)}function Ie(){var e,t=document.getElementsByTagName("base")[0],n=document.location.href,i="";return t&&!(Qt||{}).msie&&(e=n.indexOf("#"),e!==-1&&(n=n.substring(0,e)),i=n),i}function Me(e){var t,n,i,o;try{t=e.getScreenCTM?e.getScreenCTM():null}catch(r){}t&&(n=-t.e%1,i=-t.f%1,o=e.style,0===n&&0===i||(o.left=n+"px",o.top=i+"px"))}function Re(e){if(!e||"string"!=typeof e||!eo.test(e))return e;var t=Re._element;return eo.lastIndex=0,e.replace(eo,function(e){return t.innerHTML=e,t.textContent||t.innerText})}function Fe(e){var t,n,i,o=new Oi({skipBaseHref:!0}),r=e.clippedBBox(),a=e;return r&&(t=r.getOrigin(),n=new oi,n.transform(F().translate(-t.x,-t.y)),n.children.push(e),a=n),o.load([a]),i="<?xml version='1.0' ?><svg xmlns='"+Ci+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+o.render()+"</svg>",o.destroy(),i}function Pe(e,t){var n,i,o,r,a,s,l=t.segments;if(0!==l.length){for(n=l[0],i=n.anchor(),e.moveTo(i.x,i.y),o=1;o<l.length;o++)n=l[o],i=n.anchor(),r=l[o-1],a=r.controlOut(),s=n.controlIn(),a&&s?e.bezierCurveTo(a.x,a.y,s.x,s.y,i.x,i.y):e.lineTo(i.x,i.y);t.options.closed&&e.closePath()}}function ze(e,t){return e._zIndex<t._zIndex?1:e._zIndex>t._zIndex?-1:0}function Be(e,t){var n,i,o;for(n=0;n<t.length;n++)i=t[n],o=kendo.parseColor(i.color()),o.a*=i.opacity(),e.addColorStop(i.offset(),o.toCssRgba())}function Le(t,n){var i,o,r,a,s,l,d,c,u={width:"800px",height:"600px",cors:"Anonymous"},h=t,p=t.clippedBBox();return p&&(i=p.getOrigin(),h=new oi,h.transform(F().translate(-i.x,-i.y)),h.children.push(t),o=p.getSize(),u.width=o.width+"px",u.height=o.height+"px"),r=e.extend(u,n),a=document.createElement("div"),s=a.style,s.display="none",s.width=r.width,s.height=r.height,document.body.appendChild(a),l=new vo(a,r),l.suspendTracking(),l.draw(h),d=l.image(),c=function(){l.destroy(),document.body.removeChild(a)},d.then(c,c),d}function He(e,t){var n=Fe(e);return t&&t.raw||(n="data:image/svg+xml;base64,"+s(n)),Xt().resolve(n)}function Ne(e){return Array.prototype.slice.call(e)}function Oe(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function Ve(e,t){e.classList?e.classList.remove(t):e.className=e.className.split(/\s+/).reduce(function(e,n){return n!=t&&e.push(n),e},[]).join(" ")}function We(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function Ue(e,t){if(e.closest)return e.closest(t);for(;e&&!/^\[object (?:HTML)?Document\]$/.test(e+"");){if(1==e.nodeType&&Fo(e,t))return e;e=e.parentNode}}function je(e){return"number"==typeof e?{x:e,y:e}:Array.isArray(e)?{x:e[0],y:e[1]}:{x:e.x,y:e.y}}function qe(e,t){function n(e){var n=new oi,i=e.getBoundingClientRect();return wt(n,[a.x,0,0,a.y,-i.left*a.x,-i.top*a.y]),Eo._clipbox=!1,Eo._matrix=dn.unit(),Eo._stackingContext={element:e,group:n},Eo._avoidLinks=t.avoidLinks===!0?"a":t.avoidLinks,Oe(e,"k-pdf-export"),Ut(e,n),Ve(e,"k-pdf-export"),n}function i(e){if(null!=e)return"string"==typeof e&&(e=kendo.template(e.replace(/^\s+|\s+$/g,""))),"function"==typeof e?function(t){var n,i=e(t);return i&&"string"==typeof i&&(n=document.createElement("div"),n.innerHTML=i,i=n.firstElementChild),i}:function(){return e.cloneNode(!0)}}function o(e,t,n,o,r,a,s){function l(){("-"!=n||r)&&c(w);var t=p();w.parentNode.insertBefore(t,w),t.appendChild(w),v&&b.forEach(function(e,t){var n=v({element:e,pageNum:t+1,totalPages:b.length});n&&e.appendChild(n)}),nt(b,function(){tt(b,function(){e({pages:b,container:k})})})}function d(e){if(s.keepTogether&&Fo(e,s.keepTogether)&&e.offsetHeight<=r-y)return!0;var t=e.tagName;return!(/^h[1-6]$/i.test(t)&&e.offsetHeight>=r-y)&&(e.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(e.tagName))}function c(e){var t,i,o,a,s,l,u;if("TABLE"==e.tagName&&We(e,{tableLayout:"fixed"}),!d(e)){for(t=dt(e),i=parseFloat(ct(t,"padding-bottom")),o=parseFloat(ct(t,"border-bottom-width")),a=y,y+=i+o,s=!0,l=e.firstChild;l;l=l.nextSibling)if(1==l.nodeType){if(s=!1,Fo(l,n)){h(l);continue}if(!r){c(l);continue}if(!/^(?:static|relative)$/.test(ct(dt(l),"position")))continue;u=f(l),1==u?h(l):u&&d(l)?h(l):c(l)}else 3==l.nodeType&&r&&(m(l,s),s=!1);y=a}}function u(e){var t=e.parentNode,n=t.firstChild;if(e===n)return!0;if(e===t.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}function h(e){var t,n,i,o,r,a,l;return 1==e.nodeType&&e!==w&&u(e)?h(e.parentNode):(t=Ue(e,"table"),n=t&&t.querySelector("colgroup"),s.repeatHeaders&&(i=t&&t.querySelector("thead"),o=Ue(e,".k-grid.k-widget"),o&&o.querySelector(".k-auto-scrollable")&&(r=o.querySelector(".k-grid-header"))),a=p(),l=_.createRange(),l.setStartBefore(w),l.setEndBefore(e),a.appendChild(l.extractContents()),w.parentNode.insertBefore(a,w),g(e.parentNode),t&&(t=Ue(e,"table"),s.repeatHeaders&&i&&t.insertBefore(i.cloneNode(!0),t.firstChild),n&&t.insertBefore(n.cloneNode(!0),t.firstChild)),void(s.repeatHeaders&&r&&(o=Ue(e,".k-grid.k-widget"),o.insertBefore(r.cloneNode(!0),o.firstChild))))}function p(){var e=_.createElement("KENDO-PDF-PAGE");return We(e,{display:"block",boxSizing:"content-box",width:o?o+"px":"auto",padding:a.top+"px "+a.right+"px "+a.bottom+"px "+a.left+"px",position:"relative",height:r?r+"px":"auto",overflow:r||o?"hidden":"visible",clear:"both"}),s&&s.pageClassName&&(e.className=s.pageClassName),b.push(e),e}function f(e){var t,n,i=e.getBoundingClientRect();return 0===i.width||0===i.height?0:(t=w.getBoundingClientRect().top,n=r-y,i.height>n?3:i.top-t>n?1:i.bottom-t>n?2:0)}function m(e,t){var n,i,o,r,a;/\S/.test(e.data)&&(n=e.data.length,i=_.createRange(),i.selectNodeContents(e),o=f(i),o&&(r=e,1==o?h(t?e.parentNode:e):(!function s(t,n,o){return i.setEnd(e,n),t==n||n==o?n:f(i)?s(t,t+n>>1,n):s(n,n+o>>1,o)}(0,n>>1,n),!/\S/.test(""+i)&&t?h(e.parentNode):(r=e.splitText(i.endOffset),a=p(),i.setStartBefore(w),a.appendChild(i.extractContents()),w.parentNode.insertBefore(a,w),g(r.parentNode))),m(r)))}function g(e){var t=Ue(e,"li");t&&(t.setAttribute("kendo-no-bullet","1"),g(t.parentNode))}var v=i(s.template),_=t.ownerDocument,b=[],w=s._destructive?t:Po(t),k=_.createElement("KENDO-PDF-DOCUMENT"),y=0;Ne(w.querySelectorAll("tfoot")).forEach(function(e){e.parentNode.appendChild(e)}),Ne(w.querySelectorAll("ol")).forEach(function(e){Ne(e.children).forEach(function(e,t){e.setAttribute("kendo-split-index",t)})}),We(k,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),o&&(We(k,{width:o+"px",paddingLeft:a.left+"px",paddingRight:a.right+"px"}),We(w,{overflow:"hidden"})),t.parentNode.insertBefore(k,t),k.appendChild(w),s.beforePageBreak?setTimeout(function(){s.beforePageBreak(k,l)},15):setTimeout(l,15)}var r,a;if(t||(t={}),r=Xt(),!e)return r.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");return kendo.pdf.defineFont(Ge(e.ownerDocument)),a=je(t.scale||1),nt(e,function(){var i,s=t&&t.forcePageBreak,l=t&&t.paperSize&&"auto"!=t.paperSize,d=kendo.pdf.getPaperOptions(function(e,n){return"paperSize"==e?l?t[e]:"A4":e in t?t[e]:n}),c=l&&d.paperSize[0],u=l&&d.paperSize[1],h=t.margin&&d.margin,p=!!h;s||u?(h||(h={left:0,top:0,right:0,bottom:0}),c&&(c/=a.x),u&&(u/=a.y),h.left/=a.x,h.right/=a.x,h.top/=a.y,h.bottom/=a.y,i=new oi({pdf:{multiPage:!0,paperSize:l?d.paperSize:"auto",_ignoreMargin:p}}),o(function(e){if(t.progress){var o=!1,a=0;!function s(){if(a<e.pages.length){var l=n(e.pages[a]);i.append(l),t.progress({page:l,pageNum:++a,totalPages:e.pages.length,cancel:function(){o=!0}}),o?e.container.parentNode.removeChild(e.container):setTimeout(s)}else e.container.parentNode.removeChild(e.container),r.resolve(i)}()}else e.pages.forEach(function(e){i.append(n(e))}),e.container.parentNode.removeChild(e.container),r.resolve(i)},e,s,c?c-h.left-h.right:null,u?u-h.top-h.bottom:null,h,t)):r.resolve(n(e))}),r}function Ge(e){function t(e){if(e){var t=null;try{t=e.cssRules}catch(n){}t&&i(e,t)}}function n(e){var t,n=ct(e.style,"src");return n?Bo(n).reduce(function(e,t){var n=Lo(t);return n&&e.push(n),e},[]):(t=Lo(e.cssText),t?[t]:[])}function i(e,i){var r,a,s,l,d,c,u;for(r=0;r<i.length;++r)switch(a=i[r],a.type){case 3:t(a.styleSheet);break;case 5:s=a.style,l=Bo(ct(s,"font-family")),d=/^([56789]00|bold)$/i.test(ct(s,"font-weight")),c="italic"==ct(s,"font-style"),u=n(a),u.length>0&&o(e,l,d,c,u[0])}}function o(e,t,n,i,o){/^data:/i.test(o)||/^[^\/:]+:\/\//.test(o)||/^\//.test(o)||(o=(e.href+"").replace(/[^\/]*$/,"")+o),t.forEach(function(e){e=e.replace(/^(['"]?)(.*?)\1$/,"$2"),n&&(e+="|bold"),i&&(e+="|italic"),r[e]=o})}var r,a;for(null==e&&(e=document),r={},a=0;a<e.styleSheets.length;++a)t(e.styleSheets[a]);return r}function $e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ke(e){return e="_counter_"+e,Eo[e]}function Ye(e){var t=[],n=Eo;for(e="_counter_"+e;n;)$e(n,e)&&t.push(n[e]),n=Object.getPrototypeOf(n);return t.reverse()}function Qe(e,t){var n=Eo;for(e="_counter_"+e;n&&!$e(n,e);)n=Object.getPrototypeOf(n);n||(n=Eo._root),n[e]=(n[e]||0)+(null==t?1:t)}function Xe(e,t){e="_counter_"+e,Eo[e]=null==t?0:t}function Ze(e,t,n){var i,o,r;for(i=0;i<e.length;)o=e[i++],r=parseFloat(e[i]),isNaN(r)?t(o,n):(t(o,r),++i)}function Je(e){var t,n=ct(e,"counter-reset");n&&Ze(Bo(n,/^\s+/),Xe,0),t=ct(e,"counter-increment"),t&&Ze(Bo(t,/^\s+/),Qe,1)}function et(e,t){var n=kendo.parseColor(e,!0);return n&&(n=n.toRGB(),t?n=n.toCssRgba():0===n.a&&(n=null)),n}function tt(e,t){function n(){--i<=0&&t()}var i=0;e.forEach(function(e){var t,o,r=e.querySelectorAll("img");for(t=0;t<r.length;++t)o=r[t],o.complete||(i++,o.onload=o.onerror=n)}),i||n()}function nt(e,t){function n(e){Ao[e]||(Ao[e]=!0,a.push(e))}function i(e){/^img$/i.test(e.tagName)&&n(e.src),zo(ct(dt(e),"background-image")).forEach(function(e){"url"==e.type&&n(e.url)}),e.children&&Ne(e.children).forEach(i)}function o(){--r<=0&&t()}var r,a=[];Array.isArray(e)?e.forEach(i):i(e),r=a.length,0===r&&o(),a.forEach(function(e){var t=Ao[e]=new window.Image;/^data:/i.test(e)||(t.crossOrigin="Anonymous"),t.src=e,t.complete?o():(t.onload=o,t.onerror=function(){Ao[e]=null,o()})})}function it(e){var t,n="";do t=e%26,n=String.fromCharCode(97+t)+n,e=Math.floor(e/26);while(e>0);return n}function ot(e,t,n){var i,o;Eo=Object.create(Eo),Eo[e.tagName.toLowerCase()]={element:e,style:t},i=ct(t,"text-decoration"),i&&"none"!=i&&(o=ct(t,"color"),i.split(/\s+/g).forEach(function(e){Eo[e]||(Eo[e]=o)})),lt(t)&&(Eo._stackingContext={element:e,group:n})}function rt(){Eo=Object.getPrototypeOf(Eo)}function at(e){if(null!=Eo._clipbox){var t=e.bbox(Eo._matrix);Eo._clipbox=Eo._clipbox?hn.intersect(Eo._clipbox,t):t}}function st(){var e=Eo._clipbox;return null==e||(e?0===e.width()||0===e.height():void 0)}function lt(e){function t(t){return ct(e,t)}if("none"!=t("transform")||"static"!=t("position")||"auto"!=t("z-index")||t("opacity")<1)return!0}function dt(e,t){return window.getComputedStyle(e,t||null)}function ct(e,t,n){var i=e.getPropertyValue(t);return null!=i&&""!==i||(To.webkit?i=e.getPropertyValue("-webkit-"+t):To.mozilla?i=e.getPropertyValue("-moz-"+t):To.opera?i=e.getPropertyValue("-o-"+t):Mo&&(i=e.getPropertyValue("-ms-"+t))),arguments.length>2&&(null==i||""===i)?n:i}function ut(e,t,n,i){e.setProperty(t,n,i),To.webkit?e.setProperty("-webkit-"+t,n,i):To.mozilla?e.setProperty("-moz-"+t,n,i):To.opera?e.setProperty("-o-"+t,n,i):Mo&&(e.setProperty("-ms-"+t,n,i),t="ms"+t.replace(/(^|-)([a-z])/g,function(e,t,n){return t+n.toUpperCase()}),e[t]=n)}function ht(e,t){return t="border-"+t,{width:parseFloat(ct(e,t+"-width")),style:ct(e,t+"-style"),color:et(ct(e,t+"-color"),!0)}}function pt(e,t){var n=e.style.cssText,i=t();return e.style.cssText=n,i}function ft(e,t){var n=ct(e,"border-"+t+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),xt({x:n[0],y:n[1]})}function mt(e){var t=e.getBoundingClientRect();return t=gt(t,"border-*-width",e),t=gt(t,"padding-*",e)}function gt(e,t,n){var i,o,r,a,s;return"string"==typeof t?(i=dt(n),o=parseFloat(ct(i,t.replace("*","top"))),r=parseFloat(ct(i,t.replace("*","right"))),a=parseFloat(ct(i,t.replace("*","bottom"))),s=parseFloat(ct(i,t.replace("*","left")))):"number"==typeof t&&(o=r=a=s=t),{top:e.top+o,right:e.right-r,bottom:e.bottom-a,left:e.left+s,width:e.right-e.left-r-s,height:e.bottom-e.top-a-o}}function vt(e){var t,n,i=ct(e,"transform");return"none"==i?null:(t=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(i),t?(n=ct(e,"transform-origin"),t=t[1].split(/\s*,\s*/g).map(parseFloat),n=n.split(/\s+/g).map(parseFloat),{matrix:t,origin:n}):void 0)}function _t(e){return 180*e/Math.PI%360}function bt(e){var t=parseFloat(e);return/grad$/.test(e)?Math.PI*t/200:/rad$/.test(e)?t:/turn$/.test(e)?Math.PI*t*2:/deg$/.test(e)?Math.PI*t/180:void 0}function wt(e,t){return t=new dn(t[0],t[1],t[2],t[3],t[4],t[5]),e.transform(t),t}function kt(e,t){e.clip(t)}function yt(e,t,n,i){for(var o=new bn([t,n],i).curvePoints(),r=1;r<o.length;)e.curveTo(o[r++],o[r++],o[r++])}function xt(e){return(e.x<=0||e.y<=0)&&(e.x=e.y=0),e}function Ct(e,t,n,i,o){var r=Math.max(0,t.x),a=Math.max(0,t.y),s=Math.max(0,n.x),l=Math.max(0,n.y),d=Math.max(0,i.x),c=Math.max(0,i.y),u=Math.max(0,o.x),h=Math.max(0,o.y),p=Math.min(e.width/(r+s),e.height/(l+c),e.width/(d+u),e.height/(h+a));return p<1&&(r*=p,a*=p,s*=p,l*=p,d*=p,c*=p,u*=p,h*=p),{tl:{x:r,y:a},tr:{x:s,y:l},br:{x:d,y:c},bl:{x:u,y:h}}}function St(e,t,n){var i,o,r,a,s,l,d,c,u=dt(e),h=ft(u,"top-left"),p=ft(u,"top-right"),f=ft(u,"bottom-left"),m=ft(u,"bottom-right");return"padding"!=n&&"content"!=n||(i=ht(u,"top"),o=ht(u,"right"),r=ht(u,"bottom"),a=ht(u,"left"),h.x-=a.width,h.y-=i.width,p.x-=o.width,p.y-=i.width,m.x-=o.width,m.y-=r.width,f.x-=a.width,f.y-=r.width,"content"==n&&(s=parseFloat(ct(u,"padding-top")),l=parseFloat(ct(u,"padding-right")),d=parseFloat(ct(u,"padding-bottom")),c=parseFloat(ct(u,"padding-left")),h.x-=c,h.y-=s,p.x-=l,p.y-=s,m.x-=l,m.y-=d,f.x-=c,f.y-=d)),"number"==typeof n&&(h.x-=n,h.y-=n,p.x-=n,p.y-=n,m.x-=n,m.y-=n,f.x-=n,f.y-=n),Tt(t,h,p,m,f)}function Tt(e,t,n,i,o){var r=Ct(e,t,n,i,o),a=r.tl,s=r.tr,l=r.br,d=r.bl,c=new Qn({fill:null,stroke:null});return c.moveTo(e.left,e.top+a.y),a.x&&yt(c,e.left+a.x,e.top+a.y,{startAngle:-180,endAngle:-90,radiusX:a.x,radiusY:a.y}),c.lineTo(e.right-s.x,e.top),s.x&&yt(c,e.right-s.x,e.top+s.y,{startAngle:-90,endAngle:0,radiusX:s.x,radiusY:s.y}),c.lineTo(e.right,e.bottom-l.y),l.x&&yt(c,e.right-l.x,e.bottom-l.y,{startAngle:0,endAngle:90,radiusX:l.x,radiusY:l.y}),c.lineTo(e.left+d.x,e.bottom),d.x&&yt(c,e.left+d.x,e.bottom-d.y,{startAngle:90,endAngle:180,radiusX:d.x,radiusY:d.y}),c.close()}function Dt(e,t){var i=parseFloat(e)+"";switch(t){case"decimal-leading-zero":return i.length<2&&(i="0"+i),i;case"lower-roman":return n(e).toLowerCase();case"upper-roman":return n(e).toUpperCase();case"lower-latin":case"lower-alpha":return it(e-1);case"upper-latin":case"upper-alpha":return it(e-1).toUpperCase();default:return i}}function At(e,t){function n(e,t,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),Ye(e).map(function(e){return Dt(e,t)}).join(n)):Dt(Ke(e)||0,t)}var i,o=Bo(t,/^\s+/),r=[];return o.forEach(function(t){var o;(i=/^\s*(["'])(.*)\1\s*$/.exec(t))?r.push(i[2].replace(/\\([0-9a-f]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})):(i=/^\s*counter\((.*?)\)\s*$/.exec(t))?(o=Bo(i[1]),r.push(n(o[0],o[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(t))?(o=Bo(i[1]),r.push(n(o[0],o[2],o[1]))):r.push((i=/^\s*attr\((.*?)\)\s*$/.exec(t))?e.getAttribute(i[1])||"":t)}),r.join("")}function Et(e){var t,n;if(e.cssText)return e.cssText;for(t=[],n=0;n<e.length;++n)t.push(e[n]+": "+ct(e,e[n]));return t.join(";\n")}function It(e,t){function n(t,n){var o,r=dt(e,t),a=r.content;Je(r),a&&"normal"!=a&&"none"!=a&&"0px"!=r.width&&(o=e.ownerDocument.createElement(Do),o.style.cssText=Et(r),o.textContent=At(e,a),e.insertBefore(o,n),i.push(o))}var i,o;return e.tagName==Do?void Mt(e,t):(i=[],n(":before",e.firstChild),n(":after",null),void(i.length>0?(o=e.className,e.className+=" kendo-pdf-hide-pseudo-elements",Mt(e,t),e.className=o,i.forEach(function(t){e.removeChild(t)})):Mt(e,t)))}function Mt(e,t){function i(t){var n,i,o,r,a,s;if(/^td$/i.test(e.tagName)&&(n=Eo.table,n&&"collapse"==ct(n.style,"border-collapse"))){if(i=ht(n.style,"left").width,o=ht(n.style,"top").width,0===i&&0===o)return t;if(r=n.element.getBoundingClientRect(),a=n.element.rows[0].cells[0],s=a.getBoundingClientRect(),s.top==r.top||s.left==r.left)return Ne(t).map(function(e){return{left:e.left+i,top:e.top+o,right:e.right+i,bottom:e.bottom+o,height:e.height,width:e.width}})}return t}function o(e,n,i,o,r,a,s,l){function d(t,n,o){var r=Math.PI/2*t/(t+i),a={x:n.x-t,y:n.y-i},s=new Qn({fill:{color:e},stroke:null}).moveTo(0,0);wt(s,o),yt(s,0,n.y,{startAngle:-90,endAngle:-_t(r),radiusX:n.x,radiusY:n.y}),a.x>0&&a.y>0?(s.lineTo(a.x*Math.cos(r),n.y-a.y*Math.sin(r)),yt(s,0,n.y,{startAngle:-_t(r),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?s.lineTo(a.x,i).lineTo(0,i):s.lineTo(a.x,i).lineTo(a.x,0),u.append(s.close())}if(!(i<=0)){var c,u=new oi;wt(u,l),t.append(u),xt(a),xt(s),c=new Qn({fill:{color:e},stroke:null}),u.append(c),c.moveTo(a.x?Math.max(a.x,o):0,0).lineTo(n-(s.x?Math.max(s.x,r):0),0).lineTo(n-Math.max(s.x,r),i).lineTo(Math.max(a.x,o),i).close(),a.x&&d(o,a,[-1,0,0,1,a.x,0]),s.x&&d(r,s,[1,0,0,1,n-s.x,0])}}function r(e){var n,i,o=new oi;for(kt(o,Tt(e,D,A,I,E)),t.append(o),R&&(n=new Qn({fill:{color:R.toCssRgba()},stroke:null}),n.moveTo(e.left,e.top).lineTo(e.right,e.top).lineTo(e.right,e.bottom).lineTo(e.left,e.bottom).close(),o.append(n)),i=d.length;--i>=0;)a(o,e,d[i],c[i%c.length],u[i%u.length],h[i%h.length],p[i%p.length])}function a(t,n,i,o,r,a,s){function l(t,n,i,l,d){function c(){for(;g.origin.x>n.left;)g.origin.x-=i}function u(){for(;g.origin.y>n.top;)g.origin.y-=l}function h(){for(;g.origin.x<n.right;)d(t,g.clone()),g.origin.x+=i}var p,f,m,g,v,_=i/l,b=n;switch("content-box"==a?(b=gt(b,"border-*-width",e),b=gt(b,"padding-*",e)):"padding-box"==a&&(b=gt(b,"border-*-width",e)),/^\s*auto(\s+auto)?\s*$/.test(s)||("contain"==s?(p=Math.min(b.width/i,b.height/l),i*=p,l*=p):"cover"==s?(p=Math.max(b.width/i,b.height/l),i*=p,l*=p):(f=s.split(/\s+/g),i=/%$/.test(f[0])?b.width*parseFloat(f[0])/100:parseFloat(f[0]),l=1==f.length||"auto"==f[1]?i/_:/%$/.test(f[1])?b.height*parseFloat(f[1])/100:parseFloat(f[1]))),m=r+""){case"bottom":m="50% 100%";break;case"top":m="50% 0";break;case"left":m="0 50%";break;case"right":m="100% 50%";break;case"center":m="50% 50%"}if(m=m.split(/\s+/),1==m.length&&(m[1]="50%"),m[0]=/%$/.test(m[0])?parseFloat(m[0])/100*(b.width-i):parseFloat(m[0]),m[1]=/%$/.test(m[1])?parseFloat(m[1])/100*(b.height-l):parseFloat(m[1]),g=new hn([b.left+m[0],b.top+m[1]],[i,l]),"no-repeat"==o)d(t,g);else if("repeat-x"==o)c(),h();else if("repeat-y"==o)for(u();g.origin.y<n.bottom;)d(t,g.clone()),g.origin.y+=l;else if("repeat"==o)for(c(),u(),v=g.origin.clone();g.origin.y<n.bottom;)g.origin.x=v.x,h(),g.origin.y+=l}if(i&&"none"!=i)if("url"==i.type){if(/^url\(\"data:image\/svg/i.test(i.url))return;var d=Ao[i.url];d&&d.width>0&&d.height>0&&l(t,n,d.width,d.height,function(e,t){e.append(new ni(i.url,t))})}else{if("linear"!=i.type)return;l(t,n,n.width,n.height,Rt(i))}}function s(){function i(n){pt(e,function(){e.style.position="relative";var i=e.ownerDocument.createElement(Do);i.style.position="absolute",i.style.boxSizing="border-box","outside"==r?(i.style.width="6em",i.style.left="-6.8em",i.style.textAlign="right"):i.style.left="0px",n(i),e.insertBefore(i,e.firstChild),Ut(i,t),e.removeChild(i)})}function o(t){var n,i=e.parentNode.children,o=e.getAttribute("kendo-split-index");if(null!=o)return t(0|o,i.length);for(n=0;n<i.length;++n)if(i[n]===e)return t(n,i.length)}var r,a=ct(y,"list-style-type");if("none"!=a)switch(r=ct(y,"list-style-position"),a){case"circle":case"disc":case"square":i(function(e){e.style.fontSize="60%",e.style.lineHeight="200%",e.style.paddingRight="0.5em",e.style.fontFamily="DejaVu Serif",e.innerHTML={disc:"●",circle:"◯",square:"■"}[a]});break;case"decimal":case"decimal-leading-zero":i(function(e){o(function(t){++t,"decimal-leading-zero"==a&&t<10&&(t="0"+t),e.innerHTML=t+"."})});break;case"lower-roman":case"upper-roman":i(function(e){o(function(t){t=n(t+1),"upper-roman"==a&&(t=t.toUpperCase()),e.innerHTML=t+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":i(function(e){o(function(t){t=it(t),/^upper/i.test(a)&&(t=t.toUpperCase()),e.innerHTML=t+"."})})}}function l(n,i,a){function s(e){return{x:e.y,y:e.x}}var l,d,c,u,h,p,f,m;if(0!==n.width&&0!==n.height&&(r(n),l=T.width>0&&(i&&"ltr"==M||a&&"rtl"==M),d=C.width>0&&(a&&"ltr"==M||i&&"rtl"==M),0!==x.width||0!==T.width||0!==C.width||0!==S.width)){if(x.color==C.color&&x.color==S.color&&x.color==T.color&&x.width==C.width&&x.width==S.width&&x.width==T.width&&l&&d)return n=gt(n,x.width/2),c=St(e,n,x.width/2),c.options.stroke={color:x.color,width:x.width},void t.append(c);if(0===D.x&&0===A.x&&0===I.x&&0===E.x&&x.width<2&&T.width<2&&C.width<2&&S.width<2)return x.width>0&&t.append(new Qn({stroke:{width:x.width,color:x.color}}).moveTo(n.left,n.top+x.width/2).lineTo(n.right,n.top+x.width/2)),S.width>0&&t.append(new Qn({stroke:{width:S.width,color:S.color}}).moveTo(n.left,n.bottom-S.width/2).lineTo(n.right,n.bottom-S.width/2)),l&&t.append(new Qn({stroke:{width:T.width,color:T.color}}).moveTo(n.left+T.width/2,n.top).lineTo(n.left+T.width/2,n.bottom)),void(d&&t.append(new Qn({stroke:{width:C.width,color:C.color}}).moveTo(n.right-C.width/2,n.top).lineTo(n.right-C.width/2,n.bottom)));u=Ct(n,D,A,I,E),h=u.tl,p=u.tr,f=u.br,m=u.bl,o(x.color,n.width,x.width,T.width,C.width,h,p,[1,0,0,1,n.left,n.top]),o(S.color,n.width,S.width,C.width,T.width,f,m,[-1,0,0,-1,n.right,n.bottom]),o(T.color,n.height,T.width,S.width,x.width,s(m),s(h),[0,-1,1,0,n.left,n.bottom]),o(C.color,n.height,C.width,x.width,S.width,s(p),s(f),[0,1,-1,0,n.right,n.top])}}var d,c,u,h,p,f,m,g,v,_,b,w,k,y=dt(e),x=ht(y,"top"),C=ht(y,"right"),S=ht(y,"bottom"),T=ht(y,"left"),D=ft(y,"top-left"),A=ft(y,"top-right"),E=ft(y,"bottom-left"),I=ft(y,"bottom-right"),M=ct(y,"direction"),R=ct(y,"background-color");if(R=et(R),d=zo(ct(y,"background-image")),c=Bo(ct(y,"background-repeat")),u=Bo(ct(y,"background-position")),h=Bo(ct(y,"background-origin")),p=Bo(ct(y,"background-size")),Mo&&(f=y.textOverflow,"ellipsis"==f&&(m=e.style.textOverflow,e.style.textOverflow="clip")),To.msie&&To.version<10&&(u=Bo(e.currentStyle.backgroundPosition)),g=gt(e.getBoundingClientRect(),"border-*-width",e),function(){var e,n,i,o,r,a,s,l=ct(y,"clip"),d=/^\s*rect\((.*)\)\s*$/.exec(l);d&&(e=d[1].split(/[ ,]+/g),n="auto"==e[0]?g.top:parseFloat(e[0])+g.top,i="auto"==e[1]?g.right:parseFloat(e[1])+g.left,o="auto"==e[2]?g.bottom:parseFloat(e[2])+g.top,r="auto"==e[3]?g.left:parseFloat(e[3])+g.left,a=new oi,s=(new Qn).moveTo(r,n).lineTo(i,n).lineTo(i,o).lineTo(r,o).close(),kt(a,s),t.append(a),t=a,at(s))}(),w=ct(y,"display"),"table-row"==w)for(v=[],_=0,b=e.children;_<b.length;++_)v.push(b[_].getBoundingClientRect());else v=e.getClientRects(),1==v.length&&(v=[e.getBoundingClientRect()]);for(v=i(v),_=0;_<v.length;++_)l(v[_],0===_,_==v.length-1);return"A"==e.tagName&&e.href&&!/^#?$/.test(e.getAttribute("href"))&&(Eo._avoidLinks&&Fo(e,Eo._avoidLinks)||(k=document.createRange(),k.selectNodeContents(e),Ne(k.getClientRects()).forEach(function(n){var i=new oi;i._pdfLink={url:e.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},t.append(i)}))),v.length>0&&"list-item"==w&&!e.getAttribute("kendo-no-bullet")&&s(v[0]),function(){function n(){var n=St(e,g,"padding"),i=new oi;kt(i,n),t.append(i),t=i,at(n);
}Bt(e)?n():/^(hidden|auto|scroll)/.test(ct(y,"overflow"))?n():/^(hidden|auto|scroll)/.test(ct(y,"overflow-x"))?n():/^(hidden|auto|scroll)/.test(ct(y,"overflow-y"))&&n()}(),Ft(e,t)||Ot(e,t),Mo&&"ellipsis"==f&&(e.style.textOverflow=m),t}function Rt(e){return function(t,n){var i,o,r,a,s,l,d,c,u,h,p,f,m,g=n.width(),v=n.height();switch(e.type){case"linear":switch(i=null!=e.angle?e.angle:Math.PI,e.to){case"top":i=0;break;case"left":i=-Math.PI/2;break;case"bottom":i=Math.PI;break;case"right":i=Math.PI/2;break;case"top left":case"left top":i=-Math.atan2(v,g);break;case"top right":case"right top":i=Math.atan2(v,g);break;case"bottom left":case"left bottom":i=Math.PI+Math.atan2(v,g);break;case"bottom right":case"right bottom":i=Math.PI-Math.atan2(v,g)}e.reverse&&(i-=Math.PI),i%=2*Math.PI,i<0&&(i+=2*Math.PI),o=Math.abs(g*Math.sin(i))+Math.abs(v*Math.cos(i)),r=Math.atan(g*Math.tan(i)/v),a=Math.sin(r),s=Math.cos(r),l=Math.abs(a)+Math.abs(s),d=l/2*a,c=l/2*s,i>Math.PI/2&&i<=3*Math.PI/2&&(d=-d,c=-c),u=[],h=0,p=e.stops.map(function(t,n){var i,r=t.percent;return r?r=parseFloat(r)/100:t.length?r=parseFloat(t.length)/o:0===n?r=0:n==e.stops.length-1&&(r=1),i={color:t.color.toCssRgba(),offset:r},null!=r?(h=r,u.forEach(function(e,t){var n=e.stop;n.offset=e.left+(h-e.left)*(t+1)/(u.length+1)}),u=[]):u.push({left:h,stop:i}),i}),f=[.5-d,.5+c],m=[.5+d,.5-c],t.append(Qn.fromRect(n).stroke(null).fill(new pi({start:f,end:m,stops:p,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}function Ft(e,t){var n,i,o,r;return e._kendoExportVisual?n=e._kendoExportVisual():window.kendo&&window.kendo.jQuery&&e.getAttribute(window.kendo.attr("role"))&&(i=window.kendo.widgetInstance(window.kendo.jQuery(e)),i&&(i.exportDOMVisual||i.exportVisual)&&(n=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())),!!n&&(o=new oi,o.children.push(n),r=e.getBoundingClientRect(),o.transform(F().translate(r.left,r.top)),t.append(o),!0)}function Pt(e,t,n){var i=mt(e),o=new hn([i.left,i.top],[i.width,i.height]),r=new ni(t,o);kt(r,St(e,i,"content")),n.append(r)}function zt(e,t){var n=dt(e),i=dt(t),o=parseFloat(ct(n,"z-index")),r=parseFloat(ct(i,"z-index")),a=ct(n,"position"),s=ct(i,"position");return isNaN(o)&&isNaN(r)?/static|absolute/.test(a)&&/static|absolute/.test(s)?0:"static"==a?-1:"static"==s?1:0:isNaN(o)?0===r?0:r>0?-1:1:isNaN(r)?0===o?0:o>0?1:-1:parseFloat(o)-parseFloat(r)}function Bt(e){return/^(?:textarea|select|input)$/i.test(e.tagName)}function Lt(e){return e.selectedOptions&&e.selectedOptions.length>0?e.selectedOptions[0]:e.options[e.selectedIndex]}function Ht(e,t){var n=dt(e),i=ct(n,"color"),o=e.getBoundingClientRect();"checkbox"==e.type?(t.append(Qn.fromRect(new hn([o.left+1,o.top+1],[o.width-2,o.height-2])).stroke(i,1)),e.checked&&t.append((new Qn).stroke(i,1.2).moveTo(o.left+.22*o.width,o.top+.55*o.height).lineTo(o.left+.45*o.width,o.top+.75*o.height).lineTo(o.left+.78*o.width,o.top+.22*o.width))):(t.append(new Fn(new fn([(o.left+o.right)/2,(o.top+o.bottom)/2],Math.min(o.width-2,o.height-2)/2)).stroke(i,1)),e.checked&&t.append(new Fn(new fn([(o.left+o.right)/2,(o.top+o.bottom)/2],Math.min(o.width-8,o.height-8)/2)).fill(i).stroke(null)))}function Nt(e,t){var n,i,o,r,a,s=e.tagName.toLowerCase();if("input"==s&&("checkbox"==e.type||"radio"==e.type))return Ht(e,t);if(n=e.parentNode,i=e.ownerDocument,o=i.createElement(Do),o.style.cssText=Et(dt(e)),"input"==s&&(o.style.whiteSpace="pre"),"select"!=s&&"textarea"!=s||(o.style.overflow="auto"),"select"==s)if(e.multiple)for(a=0;a<e.options.length;++a)r=i.createElement(Do),r.style.cssText=Et(dt(e.options[a])),r.style.display="block",r.textContent=e.options[a].textContent,o.appendChild(r);else r=Lt(e),r&&(o.textContent=r.textContent);else o.textContent=e.value;n.insertBefore(o,e),o.scrollLeft=e.scrollLeft,o.scrollTop=e.scrollTop,e.style.display="none",Ot(o,t),e.style.display="",n.removeChild(o)}function Ot(e,t){var n,i,o,r,a,s,l;switch(Eo._stackingContext.element===e&&(Eo._stackingContext.group=t),e.tagName.toLowerCase()){case"img":Pt(e,e.src,t);break;case"canvas":try{Pt(e,e.toDataURL("image/png"),t)}catch(d){}break;case"textarea":case"input":case"select":Nt(e,t);break;default:for(n=[],i=[],o=[],r=e.firstChild;r;r=r.nextSibling)switch(r.nodeType){case 3:/\S/.test(r.data)&&Vt(e,r,t);break;case 1:a=dt(r),s=ct(a,"float"),l=ct(a,"position"),"static"!=l?o.push(r):"none"!=s?i.push(r):n.push(r)}p(n,zt).forEach(function(e){Ut(e,t)}),p(i,zt).forEach(function(e){Ut(e,t)}),p(o,zt).forEach(function(e){Ut(e,t)})}}function Vt(e,t,n){function i(e){var t,n,i,o,r;if(Mo||To.chrome){for(t=e.getClientRects(),n={top:1/0,right:-(1/0),bottom:-(1/0),left:1/0},i=!1,o=0;o<t.length;++o)r=t[o],r.width<=1||r.bottom===y||(n.left=Math.min(r.left,n.left),n.top=Math.min(r.top,n.top),n.right=Math.max(r.right,n.right),n.bottom=Math.max(r.bottom,n.bottom),i=!0);return i?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):e.getBoundingClientRect()}return e.getBoundingClientRect()}function o(){var e,n,o,a,s,u,h,p=d,f=l.substr(d).search(/\S/);if(d+=f,f<0||d>=c)return!0;if(m.setStart(t,d),m.setEnd(t,d+1),e=i(m),n=!1,(v||_>1)&&(f=l.substr(d).search(/\s/),f>=0&&(m.setEnd(t,d+f),o=i(m),o.bottom==e.bottom&&(e=o,n=!0,d+=f))),!n){if(f=function g(n,o,r){m.setEnd(t,o);var a=i(m);return a.bottom!=e.bottom&&n<o?g(n,n+o>>1,o):a.right!=e.right?(e=a,o<r?g(o,o+r>>1,r):o):o}(d,Math.min(c,d+k),c),f==d)return!0;if(d=f,f=(""+m).search(/\s+$/),0===f)return!1;f>0&&(m.setEnd(t,m.startOffset+f),e=i(m))}if(Mo&&(e=m.getClientRects()[0]),a=""+m,/^(?:pre|pre-wrap)$/i.test(b)){if(/\t/.test(a)){for(s=0,f=p;f<m.startOffset;++f)u=l.charCodeAt(f),9==u?s+=8-s%8:10==u||13==u?s=0:s++;for(;(f=a.search("\t"))>=0;)h="        ".substr(0,8-(s+f)%8),a=a.substr(0,f)+h+a.substr(f+1)}}else a=a.replace(/\s+/g," ");n||(y=e.bottom),r(a,e)}function r(e,t){var i,o,r;switch(Mo&&!isNaN(h)&&(i=Ho(p),o=(t.top+t.bottom-i)/2,t={top:o,right:t.right,bottom:o+i,left:t.left,height:i,width:t.right-t.left}),w){case"uppercase":e=e.toUpperCase();break;case"lowercase":e=e.toLowerCase();break;case"capitalize":e=e.replace(/(?:^|\s)\S/g,function(e){return e.toUpperCase()})}r=new Ro(e,new hn([t.left,t.top],[t.width,t.height]),{font:p,fill:{color:f}}),n.append(r)}function a(e){function t(t,i){var o,r;t&&(o=u/12,r=new Qn({stroke:{width:o,color:t}}),i-=o,r.moveTo(e.left,i).lineTo(e.right,i),n.append(r))}t(x,e.bottom),t(C,e.bottom-e.height/2.7),t(S,e.top)}var s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T;if(!st()&&(s=dt(e),!(parseFloat(ct(s,"text-indent"))<-500)&&(l=t.data,d=0,c=l.search(/\S\s*$/)+1,c&&(u=ct(s,"font-size"),h=ct(s,"line-height"),p=[ct(s,"font-style"),ct(s,"font-variant"),ct(s,"font-weight"),u,ct(s,"font-family")].join(" "),u=parseFloat(u),h=parseFloat(h),0!==u)))){for(f=ct(s,"color"),m=e.ownerDocument.createRange(),g=ct(s,"text-align"),v="justify"==g,_=ct(s,"column-count",1),b=ct(s,"white-space"),w=ct(s,"text-transform"),k=e.getBoundingClientRect().width/u*5,0===k&&(k=500),y=null,x=Eo.underline,C=Eo["line-through"],S=Eo.overline,T=x||C||S;!o(););T&&(m.selectNode(t),Ne(m.getClientRects()).forEach(a))}}function Wt(e,t,n){var i,o,r,a,s,l;for("auto"!=n?(i=Eo._stackingContext.group,n=parseFloat(n)):(i=t,n=0),o=i.children,r=0;r<o.length&&!(null!=o[r]._dom_zIndex&&o[r]._dom_zIndex>n);++r);return a=new oi,i.insert(r,a),a._dom_zIndex=n,i!==t&&Eo._clipbox&&(s=Eo._matrix.invert(),l=Eo._clipbox.transformCopy(s),kt(a,Qn.fromRect(l))),a}function Ut(e,t){var n,i,o,r,a,s,l=dt(e);Je(l),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(e.tagName)||null!=Eo._clipbox&&(n=parseFloat(ct(l,"opacity")),i=ct(l,"visibility"),o=ct(l,"display"),0!==n&&"hidden"!=i&&"none"!=o&&(r=vt(l),s=ct(l,"z-index"),(r||n<1)&&"auto"==s&&(s=0),a=Wt(e,t,s),n<1&&a.opacity(n*a.opacity()),ot(e,l,a),r?pt(e,function(){var t,n,i,o;ut(e.style,"transform","none","important"),ut(e.style,"transition","none","important"),"static"==ct(l,"position")&&ut(e.style,"position","relative","important"),t=e.getBoundingClientRect(),n=t.left+r.origin[0],i=t.top+r.origin[1],o=[1,0,0,1,-n,-i],o=jt(o,r.matrix),o=jt(o,[1,0,0,1,n,i]),o=wt(a,o),Eo._matrix=Eo._matrix.multiplyCopy(o),It(e,a)}):It(e,a),rt()))}function jt(e,t){var n=e[0],i=e[1],o=e[2],r=e[3],a=e[4],s=e[5],l=t[0],d=t[1],c=t[2],u=t[3],h=t[4],p=t[5];return[n*l+i*c,n*d+i*u,o*l+r*c,o*d+r*u,a*l+s*c+h,a*d+s*u+p]}var qt,Gt,$t,Kt,Yt,Qt,Xt,Zt,Jt,en,tn,nn,on,rn,an,sn,ln,dn,cn,un,hn,pn,fn,mn,gn,vn,_n,bn,wn,kn,yn,xn,Cn,Sn,Tn,Dn,An,En,In,Mn,Rn,Fn,Pn,zn,Bn,Ln,Hn,Nn,On,Vn,Wn,Un,jn,qn,Gn,$n,Kn,Yn,Qn,Xn,Zn,Jn,ei,ti,ni,ii,oi,ri,ai,si,li,di,ci,ui,hi,pi,fi,mi,gi,vi,_i,bi,wi,ki,yi,xi,Ci,Si,Ti,Di,Ai,Ei,Ii,Mi,Ri,Fi,Pi,zi,Bi,Li,Hi,Ni,Oi,Vi,Wi,Ui,ji,qi,Gi,$i,Ki,Yi,Qi,Xi,Zi,Ji,eo,to,no,io,oo,ro,ao,so,lo,co,uo,ho,po,fo,mo,go,vo,_o,bo,wo,ko,yo,xo,Co,So,To,Do,Ao,Eo,Io,Mo,Ro,Fo,Po,zo,Bo,Lo,Ho,No;window.kendo=window.kendo||{},qt=kendo.drawing,Gt=qt.util,$t=kendo.Class,Kt=kendo.util,Yt=kendo.support,Qt=Yt.browser,Xt=Gt.createPromise,Zt=Gt.promiseAll,Jt={extend:function(e){var t,n=this;for(t in this)"extend"!==t&&(e[t]=n[t])},observers:function(){return this._observers=this._observers||[]},addObserver:function(e){return this._observers?this._observers.push(e):this._observers=[e],this},removeObserver:function(e){var t=this.observers(),n=t.indexOf(e);return n!==-1&&t.splice(n,1),this},trigger:function(e,t){var n,i,o=this._observers;if(o&&!this._suspended)for(n=0;n<o.length;n++)i=o[n],i[e]&&i[e](t);return this},optionsChange:function(e){void 0===e&&(e={}),e.element=this,this.trigger("optionsChange",e)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},_observerField:function(e,t){this[e]&&this[e].removeObserver(this),this[e]=t,t.addObserver(this)}},en={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},tn="undefined",nn=1,on=Math.PI/180,rn=Number.MAX_VALUE,an=-Number.MAX_VALUE,sn=String.fromCharCode,ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",dn=$t.extend({init:function(e,t,n,i,o,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),this.a=e,this.b=t,this.c=n,this.d=i,this.e=o,this.f=r},multiplyCopy:function(e){return new dn(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)},invert:function(){var e=this,t=e.a,n=e.b,i=e.c,o=e.d,r=e.e,a=e.f,s=t*o-n*i;return 0===s?null:new dn(o/s,-n/s,-i/s,t/s,(i*a-o*r)/s,(n*r-t*a)/s)},clone:function(){return new dn(this.a,this.b,this.c,this.d,this.e,this.f)},equals:function(e){return!!e&&(this.a===e.a&&this.b===e.b&&this.c===e.c&&this.d===e.d&&this.e===e.e&&this.f===e.f)},round:function(e){return this.a=g(this.a,e),this.b=g(this.b,e),this.c=g(this.c,e),this.d=g(this.d,e),this.e=g(this.e,e),this.f=g(this.f,e),this},toArray:function(e){var t,n=[this.a,this.b,this.c,this.d,this.e,this.f];if(i(e))for(t=0;t<n.length;t++)n[t]=g(n[t],e);return n},toString:function(e,t){return void 0===t&&(t=","),this.toArray(e).join(t)}}),dn.translate=function(e,t){return new dn(1,0,0,1,e,t)},dn.unit=function(){return new dn(1,0,0,1,0,0)},dn.rotate=function(e,t,n){var i=new dn;return i.a=Math.cos(f(e)),i.b=Math.sin(f(e)),i.c=-i.b,i.d=i.a,i.e=t-t*i.a+n*i.b||0,i.f=n-n*i.a-t*i.b||0,i},dn.scale=function(e,t){return new dn(e,0,0,t,0,0)},dn.IDENTITY=dn.unit(),cn=$t.extend({init:function(e,t){this.x=e||0,this.y=t||0},equals:function(e){return e&&e.x===this.x&&e.y===this.y},clone:function(){return new cn(this.x,this.y)},rotate:function(e,t){var n=cn.create(t)||cn.ZERO;return this.transform(dn.rotate(e,n.x,n.y))},translate:function(e,t){return this.x+=e,this.y+=t,this.geometryChange(),this},translateWith:function(e){return this.translate(e.x,e.y)},move:function(e,t){return this.x=this.y=0,this.translate(e,t)},scale:function(e,t){return void 0===t&&(t=e),this.x*=e,this.y*=t,this.geometryChange(),this},scaleCopy:function(e,t){return this.clone().scale(e,t)},transform:function(e){var t=A(e),n=this,i=n.x,o=n.y;return this.x=t.a*i+t.c*o+t.e,this.y=t.b*i+t.d*o+t.f,this.geometryChange(),this},transformCopy:function(e){var t=this.clone();return e&&t.transform(e),t},distanceTo:function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},round:function(e){return this.x=g(this.x,e),this.y=g(this.y,e),this.geometryChange(),this},toArray:function(e){var t=i(e),n=t?g(this.x,e):this.x,o=t?g(this.y,e):this.y;return[n,o]},toString:function(e,t){var n,o,r;return void 0===t&&(t=" "),n=this,o=n.x,r=n.y,i(e)&&(o=g(o,e),r=g(r,e)),o+t+r}}),cn.create=function(e,t){if(i(e))return e instanceof cn?e:1===arguments.length&&2===e.length?new cn(e[0],e[1]):new cn(e,t)},cn.min=function(){var e,t,n=arguments,i=rn,o=rn;for(e=0;e<arguments.length;e++)t=n[e],i=Math.min(t.x,i),o=Math.min(t.y,o);return new cn(i,o)},cn.max=function(){var e,t,n=arguments,i=an,o=an;for(e=0;e<arguments.length;e++)t=n[e],i=Math.max(t.x,i),o=Math.max(t.y,o);return new cn(i,o)},cn.minPoint=function(){return new cn(an,an)},cn.maxPoint=function(){return new cn(rn,rn)},Object.defineProperties&&Object.defineProperties(cn,{ZERO:{get:function(){return new cn(0,0)}}}),D(cn.prototype,["x","y"]),Jt.extend(cn.prototype),un=$t.extend({init:function(e,t){this.width=e||0,this.height=t||0},equals:function(e){return e&&e.width===this.width&&e.height===this.height},clone:function(){return new un(this.width,this.height)},toArray:function(e){var t=i(e),n=t?g(this.width,e):this.width,o=t?g(this.height,e):this.height;return[n,o]}}),un.create=function(e,t){if(i(e))return e instanceof un?e:1===arguments.length&&2===e.length?new un(e[0],e[1]):new un(e,t)},Object.defineProperties&&Object.defineProperties(un,{ZERO:{get:function(){return new un(0,0)}}}),D(un.prototype,["width","height"]),Jt.extend(un.prototype),hn=$t.extend({init:function(e,t){void 0===e&&(e=new cn),void 0===t&&(t=new un),this.setOrigin(e),this.setSize(t)},clone:function(){return new hn(this.origin.clone(),this.size.clone())},equals:function(e){return e&&e.origin.equals(this.origin)&&e.size.equals(this.size)},setOrigin:function(e){return this._observerField("origin",cn.create(e)),this.geometryChange(),this},getOrigin:function(){return this.origin},setSize:function(e){return this._observerField("size",un.create(e)),this.geometryChange(),this},getSize:function(){return this.size},width:function(){return this.size.width},height:function(){return this.size.height},topLeft:function(){return this.origin.clone()},bottomRight:function(){return this.origin.clone().translate(this.width(),this.height())},topRight:function(){return this.origin.clone().translate(this.width(),0)},bottomLeft:function(){return this.origin.clone().translate(0,this.height())},center:function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},bbox:function(e){var t=this.topLeft().transformCopy(e),n=this.topRight().transformCopy(e),i=this.bottomRight().transformCopy(e),o=this.bottomLeft().transformCopy(e);return hn.fromPoints(t,n,i,o)},transformCopy:function(e){return hn.fromPoints(this.topLeft().transform(e),this.bottomRight().transform(e))},expand:function(e,t){return void 0===t&&(t=e),this.size.width+=2*e,this.size.height+=2*t,this.origin.translate(-e,-t),this},expandCopy:function(e,t){return this.clone().expand(e,t)},containsPoint:function(e){var t=this.origin,n=this.bottomRight();return!(e.x<t.x||e.y<t.y||n.x<e.x||n.y<e.y)},_isOnPath:function(e,t){var n=this.expandCopy(t,t),i=this.expandCopy(-t,-t);return n.containsPoint(e)&&!i.containsPoint(e)}}),hn.fromPoints=function(){var e=cn.min.apply(null,arguments),t=cn.max.apply(null,arguments),n=new un(t.x-e.x,t.y-e.y);return new hn(e,n)},hn.union=function(e,t){return hn.fromPoints(cn.min(e.topLeft(),t.topLeft()),cn.max(e.bottomRight(),t.bottomRight()))},hn.intersect=function(e,t){var n={left:e.topLeft().x,top:e.topLeft().y,right:e.bottomRight().x,bottom:e.bottomRight().y},i={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y};if(n.left<=i.right&&i.left<=n.right&&n.top<=i.bottom&&i.top<=n.bottom)return hn.fromPoints(new cn(Math.max(n.left,i.left),Math.max(n.top,i.top)),new cn(Math.min(n.right,i.right),Math.min(n.bottom,i.bottom)))},Jt.extend(hn.prototype),pn=Math.PI/2,fn=$t.extend({init:function(e,t){void 0===e&&(e=new cn),void 0===t&&(t=0),this.setCenter(e),this.setRadius(t)},setCenter:function(e){return this._observerField("center",cn.create(e)),this.geometryChange(),this},getCenter:function(){return this.center},equals:function(e){return e&&e.center.equals(this.center)&&e.radius===this.radius},clone:function(){return new fn(this.center.clone(),this.radius)},pointAt:function(e){return this._pointAt(f(e))},bbox:function(e){var t,n,i,o,r=this,a=E(this.center,this.radius,this.radius,e),s=cn.maxPoint(),l=cn.minPoint();for(t=0;t<4;t++)n=r._pointAt(a.x+t*pn).transformCopy(e),i=r._pointAt(a.y+t*pn).transformCopy(e),o=new cn(n.x,i.y),s=cn.min(s,o),l=cn.max(l,o);return hn.fromPoints(s,l)},_pointAt:function(e){var t=this,n=t.center,i=t.radius;return new cn(n.x+i*Math.cos(e),n.y+i*Math.sin(e))},containsPoint:function(e){var t=this,n=t.center,i=t.radius,o=Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)<=Math.pow(i,2);return o},_isOnPath:function(e,t){var n=this,i=n.center,o=n.radius,r=i.distanceTo(e);return o-t<=r&&r<=o+t}}),D(fn.prototype,["radius"]),Jt.extend(fn.prototype),mn=10,gn=$t.extend({init:function(e){void 0===e&&(e=dn.unit()),this._matrix=e},clone:function(){return new gn(this._matrix.clone())},equals:function(e){return e&&e._matrix.equals(this._matrix)},translate:function(e,t){return this._matrix=this._matrix.multiplyCopy(dn.translate(e,t)),this._optionsChange(),this},scale:function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=null);var i=n;return i&&(i=cn.create(i),this._matrix=this._matrix.multiplyCopy(dn.translate(i.x,i.y))),this._matrix=this._matrix.multiplyCopy(dn.scale(e,t)),i&&(this._matrix=this._matrix.multiplyCopy(dn.translate(-i.x,-i.y))),this._optionsChange(),this},rotate:function(e,t){var n=cn.create(t)||cn.ZERO;return this._matrix=this._matrix.multiplyCopy(dn.rotate(e,n.x,n.y)),this._optionsChange(),this},multiply:function(e){var t=A(e);return this._matrix=this._matrix.multiplyCopy(t),this._optionsChange(),this},matrix:function(e){return e?(this._matrix=e,this._optionsChange(),this):this._matrix},_optionsChange:function(){this.optionsChange({field:"transform",value:this})}}),Jt.extend(gn.prototype),vn=45,_n=Math.pow,bn=$t.extend({init:function(e,t){void 0===e&&(e=new cn),void 0===t&&(t={}),this.setCenter(e),this.radiusX=t.radiusX,this.radiusY=t.radiusY||t.radiusX,this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.anticlockwise=t.anticlockwise||!1,this.xRotation=t.xRotation},clone:function(){return new bn(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},setCenter:function(e){return this._observerField("center",cn.create(e)),this.geometryChange(),this},getCenter:function(){return this.center},pointAt:function(e){var t=this.center,n=f(e);return new cn(t.x+this.radiusX*Math.cos(n),t.y+this.radiusY*Math.sin(n))},curvePoints:function(){var e,t,n,i,o=this,r=this.startAngle,a=this.anticlockwise?-1:1,s=[this.pointAt(r)],l=this._arcInterval(),d=l.endAngle-l.startAngle,c=Math.ceil(d/vn),u=d/c,h=r;for(this.xRotation&&(e=F().rotate(this.xRotation,this.center)),t=1;t<=c;t++)n=h+a*u,i=o._intervalCurvePoints(h,n,e),s.push(i.cp1,i.cp2,i.p2),h=n;return s},bbox:function(e){for(var t,n,i=this,o=this._arcInterval(),a=o.startAngle,s=o.endAngle,l=E(this.center,this.radiusX,this.radiusY,e),d=r(l.x),c=r(l.y),u=this.pointAt(s).transformCopy(e),h=B(d,a),p=B(c,a),f=this.pointAt(a).transformCopy(e),m=cn.min(f,u),g=cn.max(f,u);h<s||p<s;)t=void 0,h<s&&(t=i.pointAt(h).transformCopy(e),h+=90),n=void 0,p<s&&(n=i.pointAt(p).transformCopy(e),p+=90),f=new cn(t.x,n.y),m=cn.min(m,f),g=cn.max(g,f);return hn.fromPoints(m,g)},_arcInterval:function(){var e,t=this,n=t.startAngle,i=t.endAngle,o=t.anticlockwise;return o&&(e=n,n=i,i=e),(n>i||o&&n===i)&&(i+=360),{startAngle:n,endAngle:i}},_intervalCurvePoints:function(e,t,n){var i=this.pointAt(e),o=this.pointAt(t),r=this._derivativeAt(e),a=this._derivativeAt(t),s=(f(t)-f(e))/3,l=new cn(i.x+s*r.x,i.y+s*r.y),d=new cn(o.x-s*a.x,o.y-s*a.y);return n&&(i.transform(n),o.transform(n),l.transform(n),d.transform(n)),{p1:i,cp1:l,cp2:d,p2:o}},_derivativeAt:function(e){var t=f(e);return new cn(-this.radiusX*Math.sin(t),this.radiusY*Math.cos(t))},containsPoint:function(e){var t,n,i,o=this._arcInterval(),r=o.endAngle-o.startAngle,a=this,s=a.center,l=a.radiusX,d=a.radiusY,c=s.distanceTo(e),u=Math.atan2(e.y-s.y,e.x-s.x),h=l*d/Math.sqrt(_n(l,2)*_n(Math.sin(u),2)+_n(d,2)*_n(Math.cos(u),2)),p=this.pointAt(this.startAngle).round(mn),f=this.pointAt(this.endAngle).round(mn),m=R(s,e.round(mn),p,f);return r<180?t=m&&M(s.distanceTo(m),c)&&M(c,h):(n=P(s.x,s.y,l,d,e.x,e.y),360!==n&&(n=(360+n)%360),i=o.startAngle<=n&&n<=o.endAngle,t=i&&M(c,h)||!i&&(!m||m.equals(e))),t},_isOnPath:function(e,t){var n,i=this._arcInterval(),o=this.center,r=P(o.x,o.y,this.radiusX,this.radiusY,e.x,e.y);return 360!==r&&(r=(360+r)%360),n=i.startAngle<=r&&r<=i.endAngle,n&&this.pointAt(r).distanceTo(e)<=t}}),bn.fromPoints=function(e,t,n,i,o,r,a){var s=z({x1:e.x,y1:e.y,x2:t.x,y2:t.y,rx:n,ry:i,largeArc:o,swipe:r,rotation:a});return new bn(s.center,{startAngle:s.startAngle,endAngle:s.endAngle,radiusX:s.radiusX,radiusY:s.radiusY,xRotation:s.xRotation,anticlockwise:0===r})},D(bn.prototype,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),Jt.extend(bn.prototype),wn=$t.extend({init:function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.real=e,this.img=t},add:function(e){return new wn(g(this.real+e.real,mn),g(this.img+e.img,mn))},addConstant:function(e){return new wn(this.real+e,this.img)},negate:function(){return new wn((-this.real),(-this.img))},multiply:function(e){return new wn(this.real*e.real-this.img*e.img,this.real*e.img+this.img*e.real)},multiplyConstant:function(e){return new wn(this.real*e,this.img*e)},nthRoot:function(e){var t=Math.atan2(this.img,this.real),n=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),i=Math.pow(n,1/e);return new wn(i*Math.cos(t/e),i*Math.sin(t/e))},equals:function(e){return this.real===e.real&&this.img===e.img},isReal:function(){return 0===this.img}}),kn=$t.extend({init:function(e,t,n){this.anchor(e||new cn),this.controlIn(t),this.controlOut(n)},bboxTo:function(e,t){var n,i=this.anchor().transformCopy(t),o=e.anchor().transformCopy(t);return n=this.controlOut()&&e.controlIn()?this._curveBoundingBox(i,this.controlOut().transformCopy(t),e.controlIn().transformCopy(t),o):this._lineBoundingBox(i,o)},_lineBoundingBox:function(e,t){return hn.fromPoints(e,t)},_curveBoundingBox:function(e,t,n,i){var o=[e,t,n,i],r=this._curveExtremesFor(o,"x"),a=this._curveExtremesFor(o,"y"),s=K([r.min,r.max,e.x,i.x]),l=K([a.min,a.max,e.y,i.y]);return hn.fromPoints(new cn(s.min,l.min),new cn(s.max,l.max))},_curveExtremesFor:function(e,t){var n=this._curveExtremes(e[0][t],e[1][t],e[2][t],e[3][t]);return{min:O(n.min,t,e),max:O(n.max,t,e)}},_curveExtremes:function(e,t,n,i){var o,r,a=e-3*t+3*n-i,s=-2*(e-2*t+n),l=e-t,d=Math.sqrt(s*s-4*a*l),c=0,u=1;return 0===a?0!==s&&(c=u=-l/s):isNaN(d)||(c=(-s+d)/(2*a),u=(-s-d)/(2*a)),o=Math.max(Math.min(c,u),0),(o<0||o>1)&&(o=0),r=Math.min(Math.max(c,u),1),(r>1||r<0)&&(r=1),{min:o,max:r}},_intersectionsTo:function(e,t){var n;return n=this.controlOut()&&e.controlIn()?G([this.anchor(),this.controlOut(),e.controlIn(),e.anchor()],t,this.bboxTo(e)):$(this.anchor(),e.anchor(),t)},_isOnCurveTo:function(e,t,n,i){var o,r,a,s,l,d,c,u=this.bboxTo(e).expand(n,n);if(u.containsPoint(t))return o=this.anchor(),r=this.controlOut(),a=e.controlIn(),s=e.anchor(),"start"===i&&o.distanceTo(t)<=n?!N(o,r,t):"end"===i&&s.distanceTo(t)<=n?!N(s,a,t):(l=[o,r,a,s],!(!q(l,t,"x","y",n)&&!q(l,t,"y","x",n))||(d=F().rotate(45,t),c=[o.transformCopy(d),r.transformCopy(d),a.transformCopy(d),s.transformCopy(d)],q(c,t,"x","y",n)||q(c,t,"y","x",n)))},_isOnLineTo:function(e,t,n){var i=this.anchor(),o=e.anchor(),a=r(Math.atan2(o.y-i.y,o.x-i.x)),s=new hn([i.x,i.y-n/2],[i.distanceTo(o),n]);return s.containsPoint(t.transformCopy(F().rotate(-a,i)))},_isOnPathTo:function(e,t,n,i){var o;return o=this.controlOut()&&e.controlIn()?this._isOnCurveTo(e,t,n/2,i):this._isOnLineTo(e,t,n)}}),H(kn.prototype,["anchor","controlIn","controlOut"]),Jt.extend(kn.prototype),yn={Circle:fn,Arc:bn,Rect:hn,Point:cn,Segment:kn,Matrix:dn,Size:un,toMatrix:A,Transformation:gn,transform:F},xn=/matrix\((.*)\)/,Cn={append:t,arabicToRoman:n,createPromise:Xt,defined:i,definitionId:o,deg:r,encodeBase64:s,eventCoordinates:l,eventElement:d,isTransparent:c,last:u,limitValue:h,mergeSort:p,promiseAll:Zt,rad:f,round:g,valueOrDefault:v,bindEvents:_,elementOffset:b,elementSize:y,elementStyles:w,unbindEvents:x,elementPadding:C,elementScale:X,DEG_TO_RAD:on,MAX_NUM:rn,MIN_NUM:an},Sn={}.toString,Tn=$t.extend({init:function(e,t){var n,i,o=this;void 0===t&&(t=""),this.prefix=t;for(n in e)i=e[n],i=o._wrap(i,n),o[n]=i},get:function(e){for(var t,n=e.split("."),i=this;n.length&&i;)t=n.shift(),i=i[t];return i},set:function(e,t){var n=this.get(e);n!==t&&(this._set(e,this._wrap(t,e)),this.optionsChange({field:this.prefix+e,value:t}))},_set:function(e,t){var n,i,o,r=this,a=e.indexOf(".")>=0,s=this,l=e;if(a){for(n=l.split("."),i=this.prefix;n.length>1;)l=n.shift(),i+=l+".",o=s[l],o||(o=new Tn({},i),o.addObserver(r),s[l]=o),s=o;l=n[0]}s._clear(l),s[l]=t},_clear:function(e){var t=this[e];t&&t.removeObserver&&t.removeObserver(this)},_wrap:function(e,t){var n=Sn.call(e),o=e;return null!==o&&i(o)&&"[object Object]"===n&&(e instanceof Tn||e instanceof $t||(o=new Tn(o,this.prefix+t+".")),o.addObserver(this)),o}}),Jt.extend(Tn.prototype),Dn=$t.extend({init:function(e){this._initOptions(e)},_initOptions:function(e){var t,n;void 0===e&&(e={}),t=e.clip,n=e.transform,n&&(e.transform=F(n)),t&&!t.id&&(t.id=o()),this.options=new Tn(e),this.options.addObserver(this)},transform:function(e){return i(e)?void this.options.set("transform",F(e)):this.options.get("transform")},parentTransform:function(){for(var e,t,n=this;n.parent;)n=n.parent,t=n.transform(),t&&(e=t.matrix().multiplyCopy(e||dn.unit()));if(e)return F(e)},currentTransform:function(e){var t,n,i,o;if(void 0===e&&(e=this.parentTransform()),t=this.transform(),n=A(t),i=A(e),o=n&&i?i.multiplyCopy(n):n||i)return F(o)},visible:function(e){return i(e)?(this.options.set("visible",e),this):this.options.get("visible")!==!1},clip:function(e){var t=this.options;return i(e)?(e&&!e.id&&(e.id=o()),t.set("clip",e),this):t.get("clip")},opacity:function(e){return i(e)?(this.options.set("opacity",e),this):v(this.options.get("opacity"),1)},clippedBBox:function(e){var t,n=this._clippedBBox(e);if(n)return t=this.clip(),t?hn.intersect(n,t.bbox(e)):n},containsPoint:function(e,t){var n,i;return!!this.visible()&&(n=this.currentTransform(t),i=e,n&&(i=e.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(i)||this._isOnPath&&this._hasStroke()&&this._isOnPath(i))},_hasFill:function(){var e=this.options.fill;return e&&!c(e.color)},_hasStroke:function(){var e=this.options.stroke;return e&&e.width>0&&!c(e.color)},_clippedBBox:function(e){return this.bbox(e)}}),Dn.prototype.nodeType="Element",Jt.extend(Dn.prototype),An="Gradient",En={extend:function(e){e.fill=this.fill,e.stroke=this.stroke},fill:function(e,t){var n,o=this.options;return i(e)?(e&&e.nodeType!==An?(n={color:e},i(t)&&(n.opacity=t),o.set("fill",n)):o.set("fill",e),this):o.get("fill")},stroke:function(e,t,n){return i(e)?(this.options.set("stroke.color",e),i(t)&&this.options.set("stroke.width",t),i(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")}},In=""+dn.IDENTITY,Mn={extend:function(e){e.bbox=this.bbox,e.geometryChange=this.geometryChange},bbox:function(e){var t,n,i=A(this.currentTransform(e)),o=i?""+i:In;return this._bboxCache&&this._matrixHash===o?t=this._bboxCache.clone():(t=this._bbox(i),this._bboxCache=t?t.clone():null,this._matrixHash=o),n=this.options.get("stroke.width"),n&&t&&t.expand(n/2),t},geometryChange:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}},Rn="#000",Fn=Dn.extend({init:function(e,t){void 0===e&&(e=new fn),void 0===t&&(t={}),Dn.fn.init.call(this,t),this.geometry(e),i(this.options.stroke)||this.stroke(Rn)},rawBBox:function(){return this._geometry.bbox()},_bbox:function(e){return this._geometry.bbox(e)},_containsPoint:function(e){return this.geometry().containsPoint(e)},_isOnPath:function(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}}),Fn.prototype.nodeType="Circle",En.extend(Fn.prototype),Mn.extend(Fn.prototype),J(Fn.prototype,["geometry"]),Pn=[].push,zn=[].pop,Bn=[].splice,Ln=[].shift,Hn=[].slice,Nn=[].unshift,On=$t.extend({init:function(e){void 0===e&&(e=[]),this.length=0,this._splice(0,e.length,e)},elements:function(e){return e?(this._splice(0,this.length,e),this._change(),this):this.slice(0)},push:function(){var e=arguments,t=Pn.apply(this,e);return this._add(e),t},slice:function(){return Hn.call(this)},pop:function(){var e=this.length,t=zn.apply(this);return e&&this._remove([t]),t},splice:function(e,t){var n=Hn.call(arguments,2),i=this._splice(e,t,n);return this._change(),i},shift:function(){var e=this.length,t=Ln.apply(this);return e&&this._remove([t]),t},unshift:function(){var e=arguments,t=Nn.apply(this,e);return this._add(e),t},indexOf:function(e){var t,n=this,i=this.length;for(t=0;t<i;t++)if(n[t]===e)return t;return-1},_splice:function(e,t,n){var i=Bn.apply(this,[e,t].concat(n));return this._clearObserver(i),this._setObserver(n),i},_add:function(e){this._setObserver(e),this._change()},_remove:function(e){this._clearObserver(e),this._change()},_setObserver:function(e){var t,n=this;for(t=0;t<e.length;t++)e[t].addObserver(n)},_clearObserver:function(e){var t,n=this;for(t=0;t<e.length;t++)e[t].removeObserver(n)},_change:function(){}}),Jt.extend(On.prototype),Vn=On.extend({_change:function(){this.geometryChange()}}),Wn=Dn.extend({init:function(e){Dn.fn.init.call(this,e),this.paths=new Vn,this.paths.addObserver(this),i(this.options.stroke)||this.stroke("#000")},moveTo:function(e,t){var n=new Qn;return n.moveTo(e,t),this.paths.push(n),this},lineTo:function(e,t){return this.paths.length>0&&u(this.paths).lineTo(e,t),this},curveTo:function(e,t,n){return this.paths.length>0&&u(this.paths).curveTo(e,t,n),this},arc:function(e,t,n,i,o){return this.paths.length>0&&u(this.paths).arc(e,t,n,i,o),this},arcTo:function(e,t,n,i,o,r){return this.paths.length>0&&u(this.paths).arcTo(e,t,n,i,o,r),this},close:function(){return this.paths.length>0&&u(this.paths).close(),this},_bbox:function(e){return ee(this.paths,!0,e)},rawBBox:function(){return ee(this.paths,!1)},_containsPoint:function(e){var t,n=this.paths;for(t=0;t<n.length;t++)if(n[t]._containsPoint(e))return!0;return!1},_isOnPath:function(e){var t,n=this.paths,i=this.options.stroke.width;for(t=0;t<n.length;t++)if(n[t]._isOnPath(e,i))return!0;return!1},_clippedBBox:function(e){return te(this.paths,this.currentTransform(e))}}),Wn.prototype.nodeType="MultiPath",En.extend(Wn.prototype),Mn.extend(Wn.prototype),Un={l:function(e,t){var n,i,o=t.parameters,r=t.position;for(n=0;n<o.length;n+=2)i=new cn(o[n],o[n+1]),t.isRelative&&i.translateWith(r),e.lineTo(i.x,i.y),r.x=i.x,r.y=i.y},c:function(e,t){var n,i,o,r,a=t.parameters,s=t.position;for(n=0;n<a.length;n+=6)i=new cn(a[n],a[n+1]),o=new cn(a[n+2],a[n+3]),r=new cn(a[n+4],a[n+5]),t.isRelative&&(o.translateWith(s),i.translateWith(s),r.translateWith(s)),e.curveTo(i,o,r),s.x=r.x,s.y=r.y},v:function(e,t){var n=t.isRelative?0:t.position.x;ne(t.parameters,!0,n),this.l(e,t)},h:function(e,t){
var n=t.isRelative?0:t.position.y;ne(t.parameters,!1,n),this.l(e,t)},a:function(e,t){var n,i,o,r,a,s,l,d=t.parameters,c=t.position;for(n=0;n<d.length;n+=7)i=d[n],o=d[n+1],r=d[n+2],a=d[n+3],s=d[n+4],l=new cn(d[n+5],d[n+6]),t.isRelative&&l.translateWith(c),c.x===l.x&&c.y===l.y||(e.arcTo(l,i,o,a,s,r),c.x=l.x,c.y=l.y)},s:function(e,t){var n,i,o,r,a,s=t.parameters,l=t.position,d=t.previousCommand;for("s"!==d&&"c"!==d||(n=u(u(e.paths).segments).controlIn()),i=0;i<s.length;i+=4)o=new cn(s[i],s[i+1]),r=new cn(s[i+2],s[i+3]),a=void 0,t.isRelative&&(o.translateWith(l),r.translateWith(l)),a=n?ie(n,l):l.clone(),n=o,e.curveTo(a,o,r),l.x=r.x,l.y=r.y},q:function(e,t){var n,i,o,r,a=t.parameters,s=t.position;for(n=0;n<a.length;n+=4)i=new cn(a[n],a[n+1]),o=new cn(a[n+2],a[n+3]),t.isRelative&&(i.translateWith(s),o.translateWith(s)),r=oe(s,i,o),e.curveTo(r.controlOut,r.controlIn,o),s.x=o.x,s.y=o.y},t:function(e,t){var n,i,o,r,a,s=t.parameters,l=t.position,d=t.previousCommand;for("q"!==d&&"t"!==d||(i=u(u(e.paths).segments),n=i.controlIn().clone().translateWith(l.scaleCopy(-1/3)).scale(1.5)),o=0;o<s.length;o+=2)r=new cn(s[o],s[o+1]),t.isRelative&&r.translateWith(l),n=n?ie(n,l):l.clone(),a=oe(l,n,r),e.curveTo(a.controlOut,a.controlIn,r),l.x=r.x,l.y=r.y}},jn=1/3,qn=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,Gn=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,$n="m",Kn="z",Yn=$t.extend({parse:function(e,t){var n,i=new Wn(t),o=new cn;return e.replace(qn,function(e,t,r,a){var s=t.toLowerCase(),l=s===t,d=re(r.trim());if(s===$n&&(l?(o.x+=d[0],o.y+=d[1]):(o.x=d[0],o.y=d[1]),i.moveTo(o.x,o.y),d.length>2&&(s="l",d.splice(0,2))),Un[s])Un[s](i,{parameters:d,position:o,isRelative:l,previousCommand:n}),a&&a.toLowerCase()===Kn&&i.close();else if(s!==$n)throw Error("Error while parsing SVG path. Unsupported command: "+s);n=s}),i}}),Yn.current=new Yn,Qn=Dn.extend({init:function(e){Dn.fn.init.call(this,e),this.segments=new Vn,this.segments.addObserver(this),i(this.options.stroke)||(this.stroke("#000"),i(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))},moveTo:function(e,t){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(e,t),this},lineTo:function(e,t){var n=i(t)?new cn(e,t):e,o=new kn(n);return this.segments.push(o),this},curveTo:function(e,t,n){var i,o;return this.segments.length>0&&(i=u(this.segments),o=new kn(n,t),this.suspend(),i.controlOut(e),this.resume(),this.segments.push(o)),this},arc:function(e,t,n,i,o){var r,a,s,l,d;return this.segments.length>0&&(r=u(this.segments),a=r.anchor(),s=f(e),l=new cn(a.x-n*Math.cos(s),a.y-i*Math.sin(s)),d=new bn(l,{startAngle:e,endAngle:t,radiusX:n,radiusY:i,anticlockwise:o}),this._addArcSegments(d)),this},arcTo:function(e,t,n,i,o,r){var a,s,l;return this.segments.length>0&&(a=u(this.segments),s=a.anchor(),l=bn.fromPoints(s,e,t,n,i,o,r),this._addArcSegments(l)),this},_addArcSegments:function(e){var t,n,i=this;for(this.suspend(),t=e.curvePoints(),n=1;n<t.length;n+=3)i.curveTo(t[n],t[n+1],t[n+2]);this.resume(),this.geometryChange()},close:function(){return this.options.closed=!0,this.geometryChange(),this},rawBBox:function(){return this._bbox()},_containsPoint:function(e){var t,n,i,o=this.segments,r=o.length,a=0;for(i=1;i<r;i++)t=o[i-1],n=o[i],a+=t._intersectionsTo(n,e);return!this.options.closed&&o[0].anchor().equals(o[r-1].anchor())||(a+=$(o[0].anchor(),o[r-1].anchor(),e)),a%2!==0},_isOnPath:function(e,t){var n,i=this.segments,o=i.length,r=t||this.options.stroke.width;if(o>1){if(i[0]._isOnPathTo(i[1],e,r,"start"))return!0;for(n=2;n<=o-2;n++)if(i[n-1]._isOnPathTo(i[n],e,r))return!0;if(i[o-2]._isOnPathTo(i[o-1],e,r,"end"))return!0}return!1},_bbox:function(e){var t,n,i,o,r=this.segments,a=r.length;if(1===a)n=r[0].anchor().transformCopy(e),t=new hn(n,un.ZERO);else if(a>0)for(i=1;i<a;i++)o=r[i-1].bboxTo(r[i],e),t=t?hn.union(t,o):o;return t}}),Qn.fromRect=function(e,t){return new Qn(t).moveTo(e.topLeft()).lineTo(e.topRight()).lineTo(e.bottomRight()).lineTo(e.bottomLeft()).close()},Qn.fromPoints=function(e,t){var n,i,o;if(e){for(n=new Qn(t),i=0;i<e.length;i++)o=cn.create(e[i]),o&&(0===i?n.moveTo(o):n.lineTo(o));return n}},Qn.fromArc=function(e,t){var n=new Qn(t),i=e.startAngle,o=e.pointAt(i);return n.moveTo(o.x,o.y),n.arc(i,e.endAngle,e.radiusX,e.radiusY,e.anticlockwise),n},Qn.prototype.nodeType="Path",En.extend(Qn.prototype),Mn.extend(Qn.prototype),Qn.parse=function(e,t){return Yn.current.parse(e,t)},Xn="#000",Zn=Dn.extend({init:function(e,t){void 0===e&&(e=new bn),void 0===t&&(t={}),Dn.fn.init.call(this,t),this.geometry(e),i(this.options.stroke)||this.stroke(Xn)},_bbox:function(e){return this._geometry.bbox(e)},rawBBox:function(){return this.geometry().bbox()},toPath:function(){var e,t=new Qn,n=this.geometry().curvePoints();if(n.length>0)for(t.moveTo(n[0].x,n[0].y),e=1;e<n.length;e+=3)t.curveTo(n[e],n[e+1],n[e+2]);return t},_containsPoint:function(e){return this.geometry().containsPoint(e)},_isOnPath:function(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}}),Zn.prototype.nodeType="Arc",En.extend(Zn.prototype),Mn.extend(Zn.prototype),J(Zn.prototype,["geometry"]),Jn="12px sans-serif",ei="#000",ti=Dn.extend({init:function(e,t,n){void 0===t&&(t=new cn),void 0===n&&(n={}),Dn.fn.init.call(this,n),this.content(e),this.position(t),this.options.font||(this.options.font=Jn),i(this.options.fill)||this.fill(ei)},content:function(e){return i(e)?(this.options.set("content",e),this):this.options.get("content")},measure:function(){var e=Kt.measureText(this.content(),{font:this.options.get("font")});return e},rect:function(){var e=this.measure(),t=this.position().clone();return new hn(t,[e.width,e.height])},bbox:function(e){var t=A(this.currentTransform(e));return this.rect().bbox(t)},rawBBox:function(){return this.rect().bbox()},_containsPoint:function(e){return this.rect().containsPoint(e)}}),ti.prototype.nodeType="Text",En.extend(ti.prototype),H(ti.prototype,["position"]),ni=Dn.extend({init:function(e,t,n){void 0===t&&(t=new hn),void 0===n&&(n={}),Dn.fn.init.call(this,n),this.src(e),this.rect(t)},src:function(e){return i(e)?(this.options.set("src",e),this):this.options.get("src")},bbox:function(e){var t=A(this.currentTransform(e));return this._rect.bbox(t)},rawBBox:function(){return this._rect.bbox()},_containsPoint:function(e){return this._rect.containsPoint(e)},_hasFill:function(){return this.src()}}),ni.prototype.nodeType="Image",J(ni.prototype,["rect"]),ii={extend:function(e,t){e.traverse=function(e){var n,i,o=this[t];for(n=0;n<o.length;n++)i=o[n],i.traverse?i.traverse(e):e(i);return this}}},oi=Dn.extend({init:function(e){Dn.fn.init.call(this,e),this.children=[]},childrenChange:function(e,t,n){this.trigger("childrenChange",{action:e,items:t,index:n})},append:function(){return t(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},insert:function(e,t){return this.children.splice(e,0,t),t.parent=this,this.childrenChange("add",[t],e),this},insertAt:function(e,t){return this.insert(t,e)},remove:function(e){var t=this.children.indexOf(e);return t>=0&&(this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)),this},removeAt:function(e){if(0<=e&&e<this.children.length){var t=this.children[e];this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)}return this},clear:function(){var e=this.children;return this.children=[],this._reparent(e,null),this.childrenChange("remove",e,0),this},bbox:function(e){return ee(this.children,!0,this.currentTransform(e))},rawBBox:function(){return ee(this.children,!1)},_clippedBBox:function(e){return te(this.children,this.currentTransform(e))},currentTransform:function(e){return Dn.prototype.currentTransform.call(this,e)||null},containsPoint:function(e,t){var n,i,o;if(this.visible())for(n=this.children,i=this.currentTransform(t),o=0;o<n.length;o++)if(n[o].containsPoint(e,i))return!0;return!1},_reparent:function(e,t){var n,i,o,r=this;for(n=0;n<e.length;n++)i=e[n],o=i.parent,o&&o!==r&&o.remove&&o.remove(i),i.parent=t}}),oi.prototype.nodeType="Group",ii.extend(oi.prototype,"children"),ri={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},ai=function(e,t){e.forEach(t)},si=function(e,t){var n,i=e.length;for(n=i-1;n>=0;n--)t(e[n],n)},li=oi.extend({init:function(t,n){oi.fn.init.call(this,e.extend({},ri,n)),this._rect=t,this._fieldMap={}},rect:function(e){return e?(this._rect=e,this):this._rect},_initMap:function(){var e=this.options,t=this._fieldMap;"horizontal"===e.orientation?(t.sizeField="width",t.groupsSizeField="height",t.groupAxis="x",t.groupsAxis="y"):(t.sizeField="height",t.groupsSizeField="width",t.groupAxis="y",t.groupsAxis="x"),e.reverse?(this.forEach=si,this.justifyAlign=le):(this.forEach=ai,this.justifyAlign=se)},reflow:function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C=this;if(this._rect&&0!==this.children.length){for(this._initMap(),this.options.transform&&this.transform(null),e=this.options,t=this._rect,n=this._initGroups(),i=n.groups,o=n.groupsSize,r=this._fieldMap,a=r.sizeField,s=r.groupsSizeField,l=r.groupAxis,d=r.groupsAxis,c=new cn,u=new cn,h=new un,p=se(o,t,e.alignContent,d,s),v=function(t,n){var i=m.elements[n];u[l]=f,u[d]=se(t.size[s],g,e.alignItems,d,s),ae(u,t,i),f+=t.size[a]+e.spacing},_=0;_<i.length;_++)m=i[_],c[l]=f=C.justifyAlign(m.size,t,e.justifyContent,l,a),c[d]=p,h[a]=m.size,h[s]=m.lineSize,g=new hn(c,h),C.forEach(m.bboxes,v),p+=m.lineSize+e.lineSpacing;!e.wrap&&m.size>t.size[a]&&(b=t.size[a]/g.size[a],w=g.topLeft().scale(b,b),k=g.size[s]*b,y=se(k,t,e.alignContent,d,s),x=F(),"x"===l?x.translate(t.origin.x-w.x,y-w.y):x.translate(y-w.x,t.origin.y-w.y),x.scale(b,b),this.transform(x))}},_initGroups:function(){var e,t,n,i=this,o=this,r=o.options,a=o.children,s=r.lineSpacing,l=r.wrap,d=r.spacing,c=this._fieldMap.sizeField,u=this._newGroup(),h=[],p=function(){h.push(u),f+=u.lineSize+s},f=-s;for(e=0;e<a.length;e++)t=a[e],n=a[e].clippedBBox(),t.visible()&&n&&(l&&u.size+n.size[c]+d>i._rect.size[c]?0===u.bboxes.length?(i._addToGroup(u,n,t),p(),u=i._newGroup()):(p(),u=i._newGroup(),i._addToGroup(u,n,t)):i._addToGroup(u,n,t));return u.bboxes.length&&p(),{groups:h,groupsSize:f}},_addToGroup:function(e,t,n){e.size+=t.size[this._fieldMap.sizeField]+this.options.spacing,e.lineSize=Math.max(t.size[this._fieldMap.groupsSizeField],e.lineSize),e.bboxes.push(t),e.elements.push(n)},_newGroup:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}),di=Dn.extend({init:function(e,t){void 0===e&&(e=new hn),void 0===t&&(t={}),Dn.fn.init.call(this,t),this.geometry(e),i(this.options.stroke)||this.stroke("#000")},_bbox:function(e){return this._geometry.bbox(e)},rawBBox:function(){return this._geometry.bbox()},_containsPoint:function(e){return this._geometry.containsPoint(e)},_isOnPath:function(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}}),di.prototype.nodeType="Rect",En.extend(di.prototype),Mn.extend(di.prototype),J(di.prototype,["geometry"]),ci=On.extend({_change:function(){this.optionsChange({field:"stops"})}}),ui=$t.extend({init:function(e,t,n){this.options=new Tn({offset:e,color:t,opacity:i(n)?n:1}),this.options.addObserver(this)}}),ui.create=function(e){if(i(e)){var t;return t=e instanceof ui?e:e.length>1?new ui(e[0],e[1],e[2]):new ui(e.offset,e.color,e.opacity)}},ye(ui.prototype,["offset","color","opacity"]),Jt.extend(ui.prototype),hi=$t.extend({init:function(e){void 0===e&&(e={}),this.stops=new ci(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=o()},userSpace:function(e){return i(e)?(this._userSpace=e,this.optionsChange(),this):this._userSpace},_createStops:function(e){var t,n;for(void 0===e&&(e=[]),t=[],n=0;n<e.length;n++)t.push(ui.create(e[n]));return t},addStop:function(e,t,n){this.stops.push(new ui(e,t,n))},removeStop:function(e){var t=this.stops.indexOf(e);t>=0&&this.stops.splice(t,1)}}),hi.prototype.nodeType="Gradient",Jt.extend(hi.prototype),e.extend(hi.prototype,{optionsChange:function(e){this.trigger("optionsChange",{field:"gradient"+(e?"."+e.field:""),value:this})},geometryChange:function(){this.optionsChange()}}),pi=hi.extend({init:function(e){void 0===e&&(e={}),hi.fn.init.call(this,e),this.start(e.start||new cn),this.end(e.end||new cn(1,0))}}),H(pi.prototype,["start","end"]),fi=hi.extend({init:function(e){void 0===e&&(e={}),hi.fn.init.call(this,e),this.center(e.center||new cn),this._radius=i(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill},radius:function(e){return i(e)?(this._radius=e,this.geometryChange(),this):this._radius},fallbackFill:function(e){return i(e)?(this._fallbackFill=e,this.optionsChange(),this):this._fallbackFill}}),H(fi.prototype,["center"]),mi={swing:xe,linear:Ce,easeOutElastic:Se},gi=$t.extend({init:function(){this._items=[]},register:function(e,t){this._items.push({name:e,type:t})},create:function(e,t){var n,i,o,r=this._items;if(t&&t.type)for(i=t.type.toLowerCase(),o=0;o<r.length;o++)if(r[o].name.toLowerCase()===i){n=r[o];break}if(n)return new n.type(e,t)}}),gi.current=new gi,vi=Date.now||function(){return(new Date).getTime()},_i=$t.extend({init:function(t,n){this.options=e.extend({},this.options,n),this.element=t},setup:function(){},step:function(){},play:function(){var e,t,n,i=this,o=this.options,r=o.duration,a=o.delay;void 0===a&&(a=0),e=mi[o.easing],t=vi()+a,n=t+r,0===r?(this.step(1),this.abort()):setTimeout(function(){var o=function(){var a,s,l,d;i._stopped||(a=vi(),s=h(a-t,0,r),l=s/r,d=e(l,s,0,1,r),i.step(d),a<n?kendo.animationFrame(o):i.abort())};o()},a)},abort:function(){this._stopped=!0},destroy:function(){this.abort()}}),_i.prototype.options={duration:500,easing:"swing"},_i.create=function(e,t,n){return gi.current.create(e,t,n)},bi=$t.extend({init:function(){this._items=[]},register:function(e,t,n){var i=this._items,o=i[0],r={name:e,type:t,order:n};!o||n<o.order?i.unshift(r):i.push(r)},create:function(e,t){var n,i,o=this._items,r=o[0];if(t&&t.type)for(n=t.type.toLowerCase(),i=0;i<o.length;i++)if(o[i].name===n){r=o[i];break}return r?new r.type(e,t):void kendo.logToConsole("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: "+navigator.userAgent)}}),bi.current=new bi,wi=["click","mouseenter","mouseleave","mousemove","resize"],ki=kendo.Observable.extend({init:function(t,n){kendo.Observable.fn.init.call(this),this.options=e.extend({},n),this.element=t,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new oi,y(t,this.options),this.bind(wi,this.options),this._enableTracking()},draw:function(e){this._visual.children.push(e)},clear:function(){this._visual.children=[]},destroy:function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()},eventTarget:function(e){for(var t,n=this,i=d(e);!t&&i&&(t=i._kendoNode,i!==n.element);)i=i.parentElement;if(t)return t.srcElement},exportVisual:function(){return this._visual},getSize:function(){return y(this.element)},currentSize:function(e){return e?void(this._size=e):this._size},setSize:function(e){y(this.element,e),this.currentSize(e),this._resize()},resize:function(e){var t=this.getSize(),n=this.currentSize();(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this.currentSize(t),this._resize(t,e),this.trigger("resize",t))},size:function(e){return e?void this.setSize(e):this.getSize()},suspendTracking:function(){this._suspendedTracking=!0},resumeTracking:function(){this._suspendedTracking=!1},_enableTracking:function(){},_resize:function(){},_handler:function(e){var t=this;return function(n){var i=t.eventTarget(n);i&&!t._suspendedTracking&&t.trigger(e,{element:i,originalEvent:n,type:e})}},_elementOffset:function(){var e=this.element,t=C(e),n=b(e),i=n.left,o=n.top;return{left:i+t.left,top:o+t.top}},_surfacePoint:function(e){var t=this._elementOffset(),n=l(e),i=n.x-t.left,o=n.y-t.top,r=X(this.element).invert(),a=new cn(i,o).transform(r);return a}}),ki.create=function(e,t){return bi.current.create(e,t)},ki.support={},yi=$t.extend({init:function(e){this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())},destroy:function(){var e,t,n=this;for(this.srcElement&&this.srcElement.removeObserver(this),e=this.childNodes,t=0;t<e.length;t++)n.childNodes[t].destroy();this.parent=null},load:function(){},observe:function(){this.srcElement&&this.srcElement.addObserver(this)},append:function(e){this.childNodes.push(e),e.parent=this},insertAt:function(e,t){this.childNodes.splice(t,0,e),e.parent=this},remove:function(e,t){var n,i=this,o=e+t;for(n=e;n<o;n++)i.childNodes[n].removeSelf();this.childNodes.splice(e,t)},removeSelf:function(){this.clear(),this.destroy()},clear:function(){this.remove(0,this.childNodes.length)},invalidate:function(){this.parent&&this.parent.invalidate()},geometryChange:function(){this.invalidate()},optionsChange:function(){this.invalidate()},childrenChange:function(e){"add"===e.action?this.load(e.items,e.index):"remove"===e.action&&this.remove(e.index,e.items.length),this.invalidate()}}),xi={},Ci="http://www.w3.org/2000/svg",Si="none",Ti=function(e,t){e.innerHTML=t},"undefined"!=typeof document&&(Di="<svg xmlns='"+Ci+"'></svg>",Ai=document.createElement("div"),Ei="undefined"!=typeof DOMParser,Ai.innerHTML=Di,Ei&&Ai.firstChild.namespaceURI!==Ci&&(Ti=function(e,t){var n=new DOMParser,i=n.parseFromString(t,"text/xml"),o=document.adoptNode(i.documentElement);e.innerHTML="",e.appendChild(o)})),Ii=Ti,Mi="transform",Ri={clip:"clip-path",fill:"fill"},Fi=yi.extend({init:function(e,t){yi.fn.init.call(this,e),this.definitions={},this.options=t},destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),yi.fn.destroy.call(this)},load:function(e,t){var n,o,r,a,s,l=this;for(n=0;n<e.length;n++)o=e[n],r=o.children,a=new xi[o.nodeType](o,l.options),i(t)?l.insertAt(a,t):l.append(a),a.createDefinitions(),r&&r.length>0&&a.load(r),s=l.element,s&&a.attachTo(s,t)},root:function(){for(var e=this;e.parent;)e=e.parent;return e},attachTo:function(e,t){var n,o=document.createElement("div");Ii(o,"<svg xmlns='"+Ci+"' version='1.1'>"+this.render()+"</svg>"),n=o.firstChild.firstChild,n&&(i(t)?e.insertBefore(n,e.childNodes[t]||null):e.appendChild(n),this.setElement(n))},setElement:function(e){var t,n,i;for(this.element&&(this.element._kendoNode=null),this.element=e,this.element._kendoNode=this,t=this.childNodes,n=0;n<t.length;n++)i=e.childNodes[n],t[n].setElement(i)},clear:function(){var e,t;for(this.clearDefinitions(),this.element&&(this.element.innerHTML=""),e=this.childNodes,t=0;t<e.length;t++)e[t].destroy();this.childNodes=[]},removeSelf:function(){if(this.element){var e=this.element.parentNode;e&&e.removeChild(this.element),this.element=null}yi.fn.removeSelf.call(this)},template:function(){return this.renderChildren()},render:function(){return this.template()},renderChildren:function(){var e,t=this.childNodes,n="";for(e=0;e<t.length;e++)n+=t[e].render();return n},optionsChange:function(e){var t=e.field,n=e.value;"visible"===t?this.css("display",n?"":Si):Ri[t]&&Ee(t,n)?this.updateDefinition(t,n):"opacity"===t?this.attr("opacity",n):"cursor"===t?this.css("cursor",n):"id"===t&&(n?this.attr("id",n):this.removeAttr("id")),yi.fn.optionsChange.call(this,e)},attr:function(e,t){this.element&&this.element.setAttribute(e,t)},allAttr:function(e){var t,n=this;for(t=0;t<e.length;t++)n.attr(e[t][0],e[t][1])},css:function(e,t){this.element&&(this.element.style[e]=t)},allCss:function(e){var t,n=this;for(t=0;t<e.length;t++)n.css(e[t][0],e[t][1])},removeAttr:function(e){this.element&&this.element.removeAttribute(e)},mapTransform:function(e){var t=[];return e&&t.push([Mi,"matrix("+e.matrix().toString(6)+")"]),t},renderTransform:function(){return De(this.mapTransform(this.srcElement.transform()))},transformChange:function(e){e?this.allAttr(this.mapTransform(e)):this.removeAttr(Mi)},mapStyle:function(){var e=this.srcElement.options,t=[["cursor",e.cursor]];return e.visible===!1&&t.push(["display",Si]),t},renderStyle:function(){return Te("style",Ae(this.mapStyle(!0)))},renderOpacity:function(){return Te("opacity",this.srcElement.options.opacity)},renderId:function(){return Te("id",this.srcElement.options.id)},createDefinitions:function(){var e,t,n,i,o=this.srcElement,r=this.definitions;if(o){e=o.options;for(n in Ri)i=e.get(n),i&&Ee(n,i)&&(r[n]=i,t=!0);t&&this.definitionChange({action:"add",definitions:r})}},definitionChange:function(e){this.parent&&this.parent.definitionChange(e)},updateDefinition:function(e,t){var n=this.definitions,i=n[e],o=Ri[e],r={};i&&(r[e]=i,this.definitionChange({action:"remove",definitions:r}),delete n[e]),t?(r[e]=t,this.definitionChange({action:"add",definitions:r}),n[e]=t,this.attr(o,this.refUrl(t.id))):i&&this.removeAttr(o)},clearDefinitions:function(){var e=this.definitions;this.definitionChange({action:"remove",definitions:e}),this.definitions={}},renderDefinitions:function(){return De(this.mapDefinitions())},mapDefinitions:function(){var e,t=this,n=this.definitions,i=[];for(e in n)i.push([Ri[e],t.refUrl(n[e].id)]);return i},refUrl:function(e){var t=(this.options||{}).skipBaseHref,n=this.baseUrl().replace(/'/g,"\\'"),i=t?"":n;return"url("+i+"#"+e+")"},baseUrl:function(){return Ie()}}),Pi=Fi.extend({template:function(){return"<stop "+this.renderOffset()+" "+this.renderStyle()+" />"},renderOffset:function(){return Te("offset",this.srcElement.offset())},mapStyle:function(){var e=this.srcElement;return[["stop-color",e.color()],["stop-opacity",e.opacity()]]},optionsChange:function(e){"offset"===e.field?this.attr(e.field,e.value):"color"!==e.field&&"opacity"!==e.field||this.css("stop-"+e.field,e.value)}}),zi=Fi.extend({init:function(e){Fi.fn.init.call(this,e),this.id=e.id,this.loadStops()},loadStops:function(){var e,t,n=this,i=this.srcElement.stops,o=this.element;for(e=0;e<i.length;e++)t=new Pi(i[e]),n.append(t),o&&t.attachTo(o)},optionsChange:function(e){"gradient.stops"===e.field?(yi.prototype.clear.call(this),this.loadStops()):"gradient"===e.field&&this.allAttr(this.mapCoordinates())},renderCoordinates:function(){return De(this.mapCoordinates())},mapSpace:function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}}),Bi=zi.extend({template:function(){return"<linearGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</linearGradient>"},mapCoordinates:function(){var e=this.srcElement,t=e.start(),n=e.end(),i=[["x1",t.x],["y1",t.y],["x2",n.x],["y2",n.y],this.mapSpace()];return i}}),Li=zi.extend({template:function(){return"<radialGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</radialGradient>"},mapCoordinates:function(){var e=this.srcElement,t=e.center(),n=e.radius(),i=[["cx",t.x],["cy",t.y],["r",n],this.mapSpace()];return i}}),Hi=Fi.extend({init:function(e){Fi.fn.init.call(this),this.srcElement=e,this.id=e.id,this.load([e])},template:function(){return"<clipPath id='"+this.id+"'>"+this.renderChildren()+"</clipPath>"}}),Ni=Fi.extend({init:function(){Fi.fn.init.call(this),this.definitionMap={}},attachTo:function(e){this.element=e},template:function(){return"<defs>"+this.renderChildren()+"</defs>"},definitionChange:function(e){var t=e.definitions,n=e.action;"add"===n?this.addDefinitions(t):"remove"===n&&this.removeDefinitions(t)},createDefinition:function(e,t){var n;return"clip"===e?n=Hi:"fill"===e&&(t instanceof pi?n=Bi:t instanceof fi&&(n=Li)),new n(t)},addDefinitions:function(e){var t,n=this;for(t in e)n.addDefinition(t,e[t])},addDefinition:function(e,t){var n,i=this,o=i.element,r=i.definitionMap,a=t.id,s=r[a];s?s.count++:(n=this.createDefinition(e,t),r[a]={element:n,count:1},this.append(n),o&&n.attachTo(this.element))},removeDefinitions:function(e){var t,n=this;for(t in e)n.removeDefinition(e[t])},removeDefinition:function(e){var t=this.definitionMap,n=e.id,i=t[n];i&&(i.count--,0===i.count&&(this.remove(this.childNodes.indexOf(i.element),1),delete t[n]))}}),Oi=Fi.extend({init:function(e){Fi.fn.init.call(this),this.options=e,this.defs=new Ni},attachTo:function(e){this.element=e,this.defs.attachTo(e.firstElementChild)},clear:function(){yi.prototype.clear.call(this)},template:function(){return this.defs.render()+this.renderChildren()},definitionChange:function(e){this.defs.definitionChange(e)}}),Vi="rtl",Wi=ki.extend({init:function(t,n){ki.fn.init.call(this,t,n),this._root=new Oi(e.extend({rtl:w(t,"direction").direction===Vi},this.options)),Ii(this.element,this._template()),this._rootElement=this.element.firstElementChild,Me(this._rootElement),this._root.attachTo(this._rootElement),_(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()},destroy:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,x(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),ki.fn.destroy.call(this)},translate:function(e){var t=Math.round(e.x)+" "+Math.round(e.y)+" "+this._size.width+" "+this._size.height;this._offset=e,this._rootElement.setAttribute("viewBox",t)},draw:function(e){ki.fn.draw.call(this,e),this._root.load([e])},clear:function(){ki.fn.clear.call(this),this._root.clear()},svg:function(){return"<?xml version='1.0' ?>"+this._template()},exportVisual:function(){var e,t=this,n=t._visual,i=t._offset;return i&&(e=new oi,e.children.push(n),e.transform(F().translate(-i.x,-i.y)),n=e),n},_resize:function(){this._offset&&this.translate(this._offset)},_template:function(){return"<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='"+Ci+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+this._root.render()+"</svg>"}}),Wi.prototype.type="svg","undefined"!=typeof document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(ki.support.svg=!0,bi.current.register("svg",Wi,10)),Ui=Fi.extend({template:function(){return"<g"+(this.renderId()+this.renderTransform()+this.renderStyle()+this.renderOpacity()+this.renderDefinitions())+">"+this.renderChildren()+"</g>"},optionsChange:function(e){"transform"===e.field&&this.transformChange(e.value),Fi.fn.optionsChange.call(this,e)}}),xi.Group=Ui,ji={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},qi="solid",Gi="butt",$i={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},Ki=" ",Yi=Fi.extend({geometryChange:function(){this.attr("d",this.renderData()),this.invalidate()},optionsChange:function(e){switch(e.field){case"fill":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(e.value);break;default:var t=$i[e.field];t&&this.attr(t,e.value)}Fi.fn.optionsChange.call(this,e)},content:function(){this.element&&(this.element.textContent=this.srcElement.content())},renderData:function(){return this.printPath(this.srcElement)},printPath:function(e){var t,n,i,o,r,a=this,s=e.segments,l=s.length;if(l>0){for(t=[],o=1;o<l;o++)r=a.segmentType(s[o-1],s[o]),r!==i&&(i=r,t.push(r)),t.push("L"===r?a.printPoints(s[o].anchor()):a.printPoints(s[o-1].controlOut(),s[o].controlIn(),s[o].anchor()));return n="M"+this.printPoints(s[0].anchor())+Ki+t.join(Ki),e.options.closed&&(n+="Z"),n}},printPoints:function(){var e,t=arguments,n=t.length,i=[];for(e=0;e<n;e++)i.push(t[e].toString(3));return i.join(" ")},segmentType:function(e,t){return e.controlOut()&&t.controlIn()?"C":"L"},mapStroke:function(e){var t=[];return e&&!c(e.color)?(t.push(["stroke",e.color]),t.push(["stroke-width",e.width]),t.push(["stroke-linecap",this.renderLinecap(e)]),t.push(["stroke-linejoin",e.lineJoin]),i(e.opacity)&&t.push(["stroke-opacity",e.opacity]),i(e.dashType)&&t.push(["stroke-dasharray",this.renderDashType(e)])):t.push(["stroke",Si]),t},renderStroke:function(){return De(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(e){var t,n,i,o=e.dashType,r=e.width;if(void 0===r&&(r=1),o&&o!==qi){for(t=ji[o.toLowerCase()],n=[],i=0;i<t.length;i++)n.push(t[i]*r);return n.join(" ")}},renderLinecap:function(e){var t=e.dashType,n=e.lineCap;return t&&"solid"!==t?Gi:n},mapFill:function(e){var t=[];return e&&"Gradient"===e.nodeType||(e&&!c(e.color)?(t.push(["fill",e.color]),i(e.opacity)&&t.push(["fill-opacity",e.opacity])):t.push(["fill",Si])),t},renderFill:function(){return De(this.mapFill(this.srcElement.options.fill))},template:function(){return"<path "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" "+Te("d",this.renderData())+this.renderStroke()+this.renderFill()+this.renderDefinitions()+this.renderTransform()+"></path>"}}),xi.Path=Yi,Qi=Yi.extend({renderData:function(){return this.printPath(this.srcElement.toPath())}}),xi.Arc=Qi,Xi=Yi.extend({geometryChange:function(){var e=this.center();this.attr("cx",e.x),this.attr("cy",e.y),this.attr("r",this.radius()),this.invalidate()},center:function(){return this.srcElement.geometry().center},radius:function(){return this.srcElement.geometry().radius},template:function(){return"<circle "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+"cx='"+this.center().x+"' cy='"+this.center().y+"' r='"+this.radius()+"'"+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+this.renderTransform()+" ></circle>"}}),xi.Circle=Xi,Zi=Yi.extend({geometryChange:function(){var e=this.srcElement.geometry();this.attr("x",e.origin.x),this.attr("y",e.origin.y),this.attr("width",e.size.width),this.attr("height",e.size.height),this.invalidate()},size:function(){return this.srcElement.geometry().size},origin:function(){return this.srcElement.geometry().origin},template:function(){return"<rect "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" x='"+this.origin().x+"' y='"+this.origin().y+"' width='"+this.size().width+"' height='"+this.size().height+"' "+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+" "+this.renderTransform()+" />"}}),xi.Rect=Zi,Ji=Yi.extend({geometryChange:function(){this.allAttr(this.mapPosition()),this.invalidate()},optionsChange:function(e){"src"===e.field&&this.allAttr(this.mapSource()),Yi.fn.optionsChange.call(this,e)},mapPosition:function(){var e=this.srcElement.rect(),t=e.topLeft();return[["x",t.x],["y",t.y],["width",e.width()+"px"],["height",e.height()+"px"]]},renderPosition:function(){return De(this.mapPosition())},mapSource:function(e){var t=this.srcElement.src();return e&&(t=kendo.htmlEncode(t)),[["xlink:href",t]]},renderSource:function(){return De(this.mapSource(!0))},template:function(){return"<image preserveAspectRatio='none' "+this.renderId()+" "+this.renderStyle()+" "+this.renderTransform()+" "+this.renderOpacity()+this.renderPosition()+" "+this.renderSource()+" "+this.renderDefinitions()+"></image>"}}),xi.Image=Ji,eo=/&(?:[a-zA-Z]+|#\d+);/g,"undefined"!=typeof document&&(Re._element=document.createElement("span")),to=Yi.extend({geometryChange:function(){var e=this.pos();this.attr("x",e.x),this.attr("y",e.y),this.invalidate()},optionsChange:function(e){"font"===e.field?(this.attr("style",Ae(this.mapStyle())),this.geometryChange()):"content"===e.field&&Yi.fn.content.call(this,this.srcElement.content()),Yi.fn.optionsChange.call(this,e)},mapStyle:function(e){var t=Yi.fn.mapStyle.call(this,e),n=this.srcElement.options.font;return e&&(n=kendo.htmlEncode(n)),t.push(["font",n],["white-space","pre"]),t},pos:function(){var e=this.srcElement.position(),t=this.srcElement.measure();return e.clone().setY(e.y+t.baseline)},renderContent:function(){
var e=this.srcElement.content();return e=Re(e),e=kendo.htmlEncode(e),Kt.normalizeText(e)},renderTextAnchor:function(){var e;return!(this.options||{}).rtl||Qt.msie||Qt.edge||(e="end"),Te("text-anchor",e)},template:function(){return"<text "+this.renderId()+" "+this.renderTextAnchor()+" "+this.renderStyle()+" "+this.renderOpacity()+"x='"+this.pos().x+"' y='"+this.pos().y+"' "+this.renderStroke()+" "+this.renderTransform()+" "+this.renderDefinitions()+this.renderFill()+">"+this.renderContent()+"</text>"}}),xi.Text=to,no=Yi.extend({renderData:function(){var e,t,n=this,i=this.srcElement.paths;if(i.length>0){for(e=[],t=0;t<i.length;t++)e.push(n.printPath(i[t]));return e.join(" ")}}}),xi.MultiPath=no,io={Surface:Wi,RootNode:Oi,Node:Fi,GroupNode:Ui,ArcNode:Qi,CircleNode:Xi,RectNode:Zi,ImageNode:Ji,TextNode:to,PathNode:Yi,MultiPathNode:no,DefinitionNode:Ni,ClipNode:Hi,GradientStopNode:Pi,LinearGradientNode:Bi,RadialGradientNode:Li,exportGroup:Fe},oo={},ro=yi.extend({init:function(e){yi.fn.init.call(this,e),e&&this.initClip()},initClip:function(){var e=this.srcElement.clip();e&&(this.clip=e,e.addObserver(this))},clear:function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),yi.fn.clear.call(this)},clearClip:function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},setClip:function(e){this.clip&&(e.beginPath(),Pe(e,this.clip),e.clip())},optionsChange:function(e){"clip"===e.field&&(this.clearClip(),this.initClip()),yi.fn.optionsChange.call(this,e)},setTransform:function(e){if(this.srcElement){var t=this.srcElement.transform();t&&e.transform.apply(e,t.matrix().toArray(6))}},loadElements:function(e,t,n){var o,r,a,s,l=this;for(o=0;o<e.length;o++)r=e[o],a=r.children,s=new oo[r.nodeType](r,n),a&&a.length>0&&s.load(a,t,n),i(t)?l.insertAt(s,t):l.append(s)},load:function(e,t,n){this.loadElements(e,t,n),this.invalidate()},setOpacity:function(e){if(this.srcElement){var t=this.srcElement.opacity();i(t)&&this.globalAlpha(e,t)}},globalAlpha:function(e,t){var n=t;n&&e.globalAlpha&&(n*=e.globalAlpha),e.globalAlpha=n},visible:function(){var e=this.srcElement;return!e||e&&e.options.visible!==!1}}),ao=ro.extend({renderTo:function(e){var t,n,i;if(this.visible()){for(e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),t=this.childNodes,n=0;n<t.length;n++)i=t[n],i.visible()&&i.renderTo(e);e.restore()}}}),ii.extend(ao.prototype,"childNodes"),oo.Group=ao,so=1e3/60,lo=ao.extend({init:function(e,t){ao.fn.init.call(this),this.canvas=e,this.size=t,this.ctx=e.getContext("2d");var n=this._invalidate.bind(this);this.invalidate=kendo.throttle(function(){kendo.animationFrame(n)},so)},destroy:function(){ao.fn.destroy.call(this),this.canvas=null,this.ctx=null},load:function(e,t,n){this.loadElements(e,t,n),this._invalidate()},_rescale:function(e){var t=this,n=t.canvas,i=t.size;n.width=i.width*e,n.height=i.height*e,this.ctx.scale(e,e)},_devicePixelRatio:function(){return"number"===window.devicePixelRatio?window.devicePixelRatio:1},_invalidate:function(e){var t,n;this.ctx&&(t=e&&e.fixedScale,n=t?1:this._devicePixelRatio(),this._rescale(n),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))}}),ii.extend(lo.prototype,"childNodes"),co=$t.extend({init:function(){this.shapes=[]},_add:function(e,t){this.shapes.push({bbox:t,shape:e}),e._quadNode=this},pointShapes:function(e){var t,n=this.shapes,i=n.length,o=[];for(t=0;t<i;t++)n[t].bbox.containsPoint(e)&&o.push(n[t].shape);return o},insert:function(e,t){this._add(e,t)},remove:function(e){var t,n=this.shapes,i=n.length;for(t=0;t<i;t++)if(n[t].shape===e){n.splice(t,1);break}}}),uo=co.extend({init:function(e){co.fn.init.call(this),this.children=[],this.rect=e},inBounds:function(e){var t=this.rect,n=t.bottomRight(),i=e.bottomRight(),o=t.origin.x<=e.origin.x&&t.origin.y<=e.origin.y&&i.x<=n.x&&i.y<=n.y;return o},pointShapes:function(e){var n,i=this.children,o=i.length,r=co.fn.pointShapes.call(this,e);for(n=0;n<o;n++)t(r,i[n].pointShapes(e));return r},insert:function(e,t){var n,i=this.children,o=!1;if(this.inBounds(t)){if(this.shapes.length<4)this._add(e,t);else{for(i.length||this._initChildren(),n=0;n<i.length;n++)if(i[n].insert(e,t)){o=!0;break}o||this._add(e,t)}o=!0}return o},_initChildren:function(){var e=this,t=e.rect,n=e.children,i=t.center(),o=t.width()/2,r=t.height()/2;n.push(new uo(new hn([t.origin.x,t.origin.y],[o,r])),new uo(new hn([i.x,t.origin.y],[o,r])),new uo(new hn([t.origin.x,i.y],[o,r])),new uo(new hn([i.x,i.y],[o,r])))}}),ho=3e3,po=1e4,fo=75,mo=$t.extend({init:function(){this.initRoots()},initRoots:function(){this.rootMap={},this.root=new co,this.rootElements=[]},clear:function(){var e,t=this,n=this.rootElements;for(e=0;e<n.length;e++)t.remove(n[e]);this.initRoots()},pointShape:function(e){var t,n=(this.rootMap[Math.floor(e.x/ho)]||{})[Math.floor(e.y/ho)],i=this.root.pointShapes(e);for(n&&(i=i.concat(n.pointShapes(e))),this.assignZindex(i),i.sort(ze),t=0;t<i.length;t++)if(i[t].containsPoint(e))return i[t]},assignZindex:function(e){var t,n,i,o,r,a=this;for(t=0;t<e.length;t++){for(n=e[t],i=0,o=Math.pow(po,fo),r=[];n;)r.push(n),n=n.parent;for(;r.length;)n=r.pop(),i+=((n.parent?n.parent.children:a.rootElements).indexOf(n)+1)*o,o/=po;e[t]._zIndex=i}},optionsChange:function(e){"transform"!==e.field&&"stroke.width"!==e.field||this.bboxChange(e.element)},geometryChange:function(e){this.bboxChange(e.element)},bboxChange:function(e){var t,n=this;if("Group"===e.nodeType)for(t=0;t<e.children.length;t++)n.bboxChange(e.children[t]);else e._quadNode&&e._quadNode.remove(e),this._insertShape(e)},add:function(e){var n=Array.isArray(e)?e.slice(0):[e];t(this.rootElements,n),this._insert(n)},childrenChange:function(e){var t,n=this;if("remove"===e.action)for(t=0;t<e.items.length;t++)n.remove(e.items[t]);else this._insert(Array.prototype.slice.call(e.items,0))},_insert:function(e){for(var n,i=this;e.length>0;)n=e.pop(),n.addObserver(i),"Group"===n.nodeType?t(e,n.children):i._insertShape(n)},_insertShape:function(e){var t,n,i,o,r=e.bbox();r&&(t=this.getSectors(r),n=t[0][0],i=t[1][0],this.inRoot(t)?this.root.insert(e,r):(o=this.rootMap,o[n]||(o[n]={}),o[n][i]||(o[n][i]=new uo(new hn([n*ho,i*ho],[ho,ho]))),o[n][i].insert(e,r)))},remove:function(e){var t,n,i=this;if(e.removeObserver(this),"Group"===e.nodeType)for(t=e.children,n=0;n<t.length;n++)i.remove(t[n]);else e._quadNode&&(e._quadNode.remove(e),delete e._quadNode)},inRoot:function(e){return e[0].length>1||e[1].length>1},getSectors:function(e){var t,n,i=e.bottomRight(),o=Math.floor(i.x/ho),r=Math.floor(i.y/ho),a=[[],[]];for(t=Math.floor(e.origin.x/ho);t<=o;t++)a[0].push(t);for(n=Math.floor(e.origin.y/ho);n<=r;n++)a[1].push(n);return a}}),go=$t.extend({init:function(e){e.bind("mouseenter",this._mouseenter.bind(this)),e.bind("mouseleave",this._mouseleave.bind(this)),this.element=e.element},clear:function(){this._resetCursor()},destroy:function(){this._resetCursor(),delete this.element},_mouseenter:function(e){var t=this._shapeCursor(e);t?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(t)):this._resetCursor()},_mouseleave:function(){this._resetCursor()},_shapeCursor:function(e){for(var t=e.element;t&&!i(t.options.cursor);)t=t.parent;if(t)return t.options.cursor},_getCursor:function(){if(this.element)return this.element.style.cursor},_setCursor:function(e){this.element&&(this.element.style.cursor=e,this._current=e)},_resetCursor:function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}),vo=ki.extend({init:function(e,t){var n,i;ki.fn.init.call(this,e,t),this.element.innerHTML=this._template(this),n=this.element.firstElementChild,i=y(e),n.width=i.width,n.height=i.height,this._rootElement=n,this._root=new lo(n,i),this._mouseTrackHandler=this._trackMouse.bind(this),_(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})},destroy:function(){ki.fn.destroy.call(this),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),x(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})},draw:function(e){ki.fn.draw.call(this,e),this._root.load([e],void 0,this.options.cors),this._searchTree&&this._searchTree.add([e])},clear:function(){ki.fn.clear.call(this),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()},eventTarget:function(e){var t,n;if(this._searchTree)return t=this._surfacePoint(e),n=this._searchTree.pointShape(t)},image:function(){var e,t,n=this,i=n._root,o=n._rootElement,r=[];return i.traverse(function(e){e.loading&&r.push(e.loading)}),e=Xt(),t=function(){i._invalidate({fixedScale:!0});try{var t=o.toDataURL();e.resolve(t)}catch(n){e.reject(n)}},Zt(r).then(t,t),e},suspendTracking:function(){ki.fn.suspendTracking.call(this),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)},resumeTracking:function(){var e,t,n;if(ki.fn.resumeTracking.call(this),!this._searchTree){for(this._searchTree=new mo,e=this._root.childNodes,t=[],n=0;n<e.length;n++)t.push(e[n].srcElement);this._searchTree.add(t)}},_resize:function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()},_template:function(){return"<canvas style='width: 100%; height: 100%;'></canvas>"},_enableTracking:function(){this._searchTree=new mo,this._cursor=new go(this),ki.fn._enableTracking.call(this)},_trackMouse:function(e){var t,n;this._suspendedTracking||(t=this.eventTarget(e),"click"!==e.type?(n=this._currentShape,n&&n!==t&&this.trigger("mouseleave",{element:n,originalEvent:e,type:"mouseleave"}),t&&n!==t&&this.trigger("mouseenter",{element:t,originalEvent:e,type:"mouseenter"}),this.trigger("mousemove",{element:t,originalEvent:e,type:"mousemove"}),this._currentShape=t):t&&this.trigger("click",{element:t,originalEvent:e,type:"click"}))}}),vo.prototype.type="canvas","undefined"!=typeof document&&document.createElement("canvas").getContext&&(ki.support.canvas=!0,bi.current.register("canvas",vo,20)),_o=ro.extend({renderTo:function(e){e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),this.renderPoints(e,this.srcElement),this.setLineDash(e),this.setLineCap(e),this.setLineJoin(e),this.setFill(e),this.setStroke(e),e.restore()},setFill:function(e){var t=this.srcElement.options.fill,n=!1;return t&&("Gradient"===t.nodeType?(this.setGradientFill(e,t),n=!0):c(t.color)||(e.fillStyle=t.color,e.save(),this.globalAlpha(e,t.opacity),e.fill(),e.restore(),n=!0)),n},setGradientFill:function(e,t){var n,i,o,r,a=this.srcElement.rawBBox();t instanceof pi?(i=t.start(),o=t.end(),n=e.createLinearGradient(i.x,i.y,o.x,o.y)):t instanceof fi&&(r=t.center(),n=e.createRadialGradient(r.x,r.y,0,r.x,r.y,t.radius())),Be(n,t.stops),e.save(),t.userSpace()||e.transform(a.width(),0,0,a.height(),a.origin.x,a.origin.y),e.fillStyle=n,e.fill(),e.restore()},setStroke:function(e){var t=this.srcElement.options.stroke;if(t&&!c(t.color)&&t.width>0)return e.strokeStyle=t.color,e.lineWidth=v(t.width,1),e.save(),this.globalAlpha(e,t.opacity),e.stroke(),e.restore(),!0},dashType:function(){var e=this.srcElement.options.stroke;if(e&&e.dashType)return e.dashType.toLowerCase()},setLineDash:function(e){var t,n=this.dashType();n&&n!==qi&&(t=ji[n],e.setLineDash?e.setLineDash(t):(e.mozDash=t,e.webkitLineDash=t))},setLineCap:function(e){var t=this.dashType(),n=this.srcElement.options.stroke;t&&t!==qi?e.lineCap=Gi:n&&n.lineCap&&(e.lineCap=n.lineCap)},setLineJoin:function(e){var t=this.srcElement.options.stroke;t&&t.lineJoin&&(e.lineJoin=t.lineJoin)},renderPoints:function(e,t){Pe(e,t)}}),oo.Path=_o,bo=_o.extend({renderPoints:function(e){var t=this.srcElement.toPath();Pe(e,t)}}),oo.Arc=bo,wo=_o.extend({renderPoints:function(e){var t=this.srcElement.geometry(),n=t.center,i=t.radius;e.arc(n.x,n.y,i,0,2*Math.PI)}}),oo.Circle=wo,ko=_o.extend({renderPoints:function(e){var t=this.srcElement.geometry(),n=t.origin,i=t.size;e.rect(n.x,n.y,i.width,i.height)}}),oo.Rect=ko,yo=_o.extend({init:function(e,t){_o.fn.init.call(this,e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=Xt();var n=this.img=new Image;t&&!/^data:/i.test(e.src())&&(n.crossOrigin=t),n.src=e.src(),n.complete?this.onLoad():(n.onload=this.onLoad,n.onerror=this.onError)},renderTo:function(e){"resolved"===this.loading.state()&&(e.save(),this.setTransform(e),this.setClip(e),this.drawImage(e),e.restore())},optionsChange:function(e){"src"===e.field?(this.loading=Xt(),this.img.src=this.srcElement.src()):_o.fn.optionsChange.call(this,e)},onLoad:function(){this.loading.resolve(),this.invalidate()},onError:function(){this.loading.reject(Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},drawImage:function(e){var t=this.srcElement.rect(),n=t.topLeft();e.drawImage(this.img,n.x,n.y,t.width(),t.height())}}),oo.Image=yo,xo=_o.extend({renderTo:function(e){var t=this.srcElement,n=t.position(),i=t.measure();e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),e.font=t.options.font,e.textAlign="left",this.setFill(e)&&e.fillText(t.content(),n.x,n.y+i.baseline),this.setStroke(e)&&(this.setLineDash(e),e.strokeText(t.content(),n.x,n.y+i.baseline)),e.restore()}}),oo.Text=xo,Co=_o.extend({renderPoints:function(e){var t,n=this.srcElement.paths;for(t=0;t<n.length;t++)Pe(e,n[t])}}),oo.MultiPath=Co,So={Surface:vo,RootNode:lo,Node:ro,GroupNode:ao,ArcNode:bo,CircleNode:wo,RectNode:ko,ImageNode:yo,TextNode:xo,PathNode:_o,MultiPathNode:Co},To=Qt||{},Do="KENDO-PSEUDO-ELEMENT",Ao={},Eo={},Eo._root=Eo,Io="undefined"!=typeof window,Mo=!!Io&&(To.msie||To.edge),Ro=ti.extend({init:function(e,t,n){ti.fn.init.call(this,e,t.getOrigin(),n),this._pdfRect=t},rect:function(){return this._pdfRect},rawBBox:function(){return this._pdfRect}}),Fo="undefined"!=typeof Element&&Element.prototype&&function(e){return e.matches?function(e,t){return e.matches(t)}:e.webkitMatchesSelector?function(e,t){return e.webkitMatchesSelector(t)}:e.mozMatchesSelector?function(e,t){return e.mozMatchesSelector(t)}:e.msMatchesSelector?function(e,t){return e.msMatchesSelector(t)}:function(e){return[].indexOf.call(document.querySelectorAll(e),this)!==-1}}(Element.prototype),Po=function(e){return e?function t(n){var i,o,r,a,s=n.cloneNode(!1);if(1==n.nodeType){i=e(n),o=e(s),a=i.data();for(r in a)o.data(r,a[r]);for(/^canvas$/i.test(n.tagName)?s.getContext("2d").drawImage(n,0,0):/^(?:input|select|textarea|option)$/i.test(n.tagName)&&(s.removeAttribute("id"),s.removeAttribute("name"),/^textarea$/i.test(n.tagName)||(s.value=n.value),s.checked=n.checked,s.selected=n.selected),r=n.firstChild;r;r=r.nextSibling)s.appendChild(t(r))}return s}:function(e){var t,n=function o(e){var t,n=e.cloneNode(!1);for(e._kendoExportVisual&&(n._kendoExportVisual=e._kendoExportVisual),t=e.firstChild;t;t=t.nextSibling)n.appendChild(o(t));return n}(e),i=e.querySelectorAll("canvas");return i.length&&Ne(n.querySelectorAll("canvas")).forEach(function(e,t){e.getContext("2d").drawImage(i[t],0,0)}),t=e.querySelectorAll("input, select, textarea, option"),Ne(n.querySelectorAll("input, select, textarea, option")).forEach(function(e,n){e.removeAttribute("id"),e.removeAttribute("name"),/^textarea$/i.test(e.tagName)||(e.value=t[n].value),e.checked=t[n].checked,e.selected=t[n].selected}),n}}("undefined"!=typeof window&&window.kendo&&window.kendo.jQuery),qe.getFontFaces=Ge,qe.drawText=function(e){var t=new oi;return Eo._clipbox=!1,Eo._matrix=dn.unit(),Eo._stackingContext={element:e,group:t},ot(e,dt(e),t),3==e.firstChild.nodeType?Vt(e,e.firstChild,t):Mt(e,t),rt(),t},zo=function(){function e(e){function p(){var t=a.exec(e);t&&(e=e.substr(t[1].length))}function f(t){p();var n=t.exec(e);if(n)return e=e.substr(n[1].length),n[1]}function m(){var t,o,r,a=kendo.parseColor(e,!0);if(a)return r=/^#[0-9a-f]+/i.exec(e)||/^rgba?\(.*?\)/i.exec(e)||/^..*?\b/.exec(e),e=e.substr(r[0].length),a=a.toRGB(),(t=f(i))||(o=f(n)),{color:a,length:t,percent:o}}function g(t){var i,a,c,u,h,p,g=[],v=!1;if(f(s)){for(i=f(r),"0"==i&&(i="0deg"),i?(i=bt(i),f(d)):(a=f(o),"to"==a?a=f(o):a&&/^-/.test(t)&&(v=!0),c=f(o),f(d)),/-moz-/.test(t)&&null==i&&null==a&&(u=f(n),h=f(n),v=!0,"0%"==u?a="left":"100%"==u&&(a="right"),"0%"==h?c="top":"100%"==h&&(c="bottom"),f(d));e&&!f(l)&&(p=m());)g.push(p),f(d);return{type:"linear",angle:i,to:a&&c?a+" "+c:a?a:c?c:null,stops:g,reverse:v}}}function v(){if(f(s)){var e=f(u);return e=e.replace(/^['"]+|["']+$/g,""),f(l),{type:"url",url:e}}}var _,b=e;return $e(h,b)?h[b]:((_=f(t))?_=g(_):(_=f(c))&&(_=v()),h[b]=_||{type:"none"})}var t=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,n=/^([-0-9.]+%)/,i=/^([-0-9.]+px)/,o=/^(left|right|top|bottom|to|center)\W/,r=/^([-0-9.]+(deg|grad|rad|turn)|0)/,a=/^(\s+)/,s=/^(\()/,l=/^(\))/,d=/^(,)/,c=/^(url)\(/,u=/^(.*?)\)/,h={},p={};return function(t){return $e(p,t)?p[t]:p[t]=Bo(t).map(e)}}(),Bo=function(){var e={};return function(t,n){function i(e){return u=e.exec(t.substr(l))}function o(e){return e.replace(/^\s+|\s+$/g,"")}var r,a,s,l,d,c,u;if(n||(n=/^\s*,\s*/),r=t+n,$e(e,r))return e[r];for(a=[],s=0,l=0,d=0,c=!1;l<t.length;)!c&&i(/^[\(\[\{]/)?(d++,l++):!c&&i(/^[\)\]\}]/)?(d--,l++):!c&&i(/^[\"\']/)?(c=u[0],l++):"'"==c&&i(/^\\\'/)?l+=2:'"'==c&&i(/^\\\"/)?l+=2:"'"==c&&i(/^\'/)?(c=!1,l++):'"'==c&&i(/^\"/)?(c=!1,l++):i(n)?(!c&&!d&&l>s&&(a.push(o(t.substring(s,l))),s=l+u[0].length),l+=u[0].length):l++;return s<l&&a.push(o(t.substring(s,l))),e[r]=a}}(),Lo=function(e){return function(t){var n,i=e[t];return i||((n=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(t))?i=e[t]=n[2]:(n=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(t))&&(i=e[t]=n[2])),i}}(Object.create?Object.create(null):{}),Ho=function(e){return function(t){var n=e[t];return null==n&&(n=e[t]=Kt.measureText("Mapq",{font:t}).height),n}}(Object.create?Object.create(null):{}),No={svg:io,canvas:So,util:Cn,PathParser:Yn,Surface:ki,BaseNode:yi,SurfaceFactory:bi,OptionsStore:Tn,exportImage:Le,exportSVG:He,QuadNode:uo,ShapesQuadTree:mo,ObserversMixin:Jt,Element:Dn,Circle:Fn,Arc:Zn,Path:Qn,MultiPath:Wn,Text:ti,Image:ni,Group:oi,Layout:li,Rect:di,align:ce,vAlign:ue,stack:fe,vStack:me,wrap:_e,vWrap:be,fit:we,LinearGradient:pi,RadialGradient:fi,GradientStop:ui,Gradient:hi,Animation:_i,AnimationFactory:gi,drawDOM:qe},kendo.deepExtend(kendo,{drawing:No,geometry:yn}),kendo.drawing.Segment=kendo.geometry.Segment,kendo.dataviz.drawing=kendo.drawing,kendo.dataviz.geometry=kendo.geometry,kendo.drawing.util.measureText=kendo.util.measureText,kendo.drawing.util.objectKey=kendo.util.objectKey,kendo.drawing.Color=kendo.Color,kendo.util.encodeBase64=kendo.drawing.util.encodeBase64}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.popup.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t,n){return!(!t||!n)&&(t===n||e.contains(t,n))}var i,o,r,a,s=window.kendo,l=s.ui,d=l.Widget,c=s.Class,u=s.support,h=s.getOffset,p=s._outerWidth,f=s._outerHeight,m="open",g="close",v="deactivate",_="activate",b="center",w="left",k="right",y="top",x="bottom",C="absolute",S="hidden",T="body",D="location",A="position",E="visible",I="effects",M="k-state-active",R="k-state-border",F=/k-state-border-(\w+)/,P=".k-picker-wrap, .k-dropdown-wrap, .k-link",z="down",B=e(document.documentElement),L=e.proxy,H=e(window),N="scroll",O=u.transitions.css,V=O+"transform",W=e.extend,U=".kendoPopup",j=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=d.extend({init:function(t,n){var i,o=this;n=n||{},n.isRtl&&(n.origin=n.origin||x+" "+k,n.position=n.position||y+" "+k),d.fn.init.call(o,t,n),t=o.element,n=o.options,o.collisions=n.collision?n.collision.split(" "):[],o.downEvent=s.applyEventMap(z,s.guid()),1===o.collisions.length&&o.collisions.push(o.collisions[0]),i=e(o.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),n.appendTo=e(e(n.appendTo)[0]||i[0]||document.body),o.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!n.isRtl).css({position:C}).appendTo(n.appendTo).attr("aria-hidden",!0).on("mouseenter"+U,function(){o._hovered=!0}).on("wheel"+U,function(t){var n=e(t.target).find(".k-list"),i=n.parent();n.length&&n.is(":visible")&&(0===i.scrollTop()&&t.originalEvent.deltaY<0||i.scrollTop()===i.prop("scrollHeight")-i.prop("offsetHeight")&&t.originalEvent.deltaY>0)&&t.preventDefault()}).on("mouseleave"+U,function(){o._hovered=!1}),o.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),W(n.animation.open,{complete:function(){o.wrapper.css({overflow:E}),o._activated=!0,o._trigger(_)}}),W(n.animation.close,{complete:function(){o._animationClose()}}),o._mousedownProxy=function(e){o._mousedown(e)},o._resizeProxy=u.mobileOS.android?function(e){setTimeout(function(){o._resize(e)},600)}:function(e){o._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+U,e.proxy(o.toggle,o))},events:[m,_,g,v],options:{name:"Popup",toggleEvent:"click",origin:x+" "+w,position:y+" "+w,anchor:T,appendTo:null,collision:"flip fit",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}}},_animationClose:function(){var e=this,t=e.wrapper.data(D);e.wrapper.hide(),t&&e.wrapper.css(t),e.options.anchor!=T&&e._hideDirClass(),e._closing=!1,e._trigger(v)},destroy:function(){var t,n=this,i=n.options,o=n.element.off(U);d.fn.destroy.call(n),i.toggleTarget&&e(i.toggleTarget).off(U),i.modal||(B.off(n.downEvent,n._mousedownProxy),n._toggleResize(!1)),s.destroy(n.element.children()),o.removeData(),i.appendTo[0]===document.body&&(t=o.parent(".k-animation-container"),t[0]?t.remove():o.remove())},open:function(n,i){var o,r,a=this,l={isFixed:!isNaN(parseInt(i,10)),x:n,y:i},d=a.element,c=a.options,h=e(c.anchor),p=d[0]&&d.hasClass("km-widget");if(!a.visible()){if(c.copyAnchorStyles&&(p&&"font-size"==j[0]&&j.shift(),d.css(s.getComputedStyles(h[0],j))),d.data("animating")||a._trigger(m))return;a._activated=!1,c.modal||(B.off(a.downEvent,a._mousedownProxy).on(a.downEvent,a._mousedownProxy),a._toggleResize(!1),a._toggleResize(!0)),a.wrapper=r=s.wrap(d,c.autosize).css({overflow:S,display:"block",position:C}).attr("aria-hidden",!1),u.mobileOS.android&&r.css(V,"translatez(0)"),r.css(A),e(c.appendTo)[0]==document.body&&r.css(y,"-10000px"),a.flipped=a._position(l),o=a._openAnimation(),c.anchor!=T&&a._showDirClass(o),d.is(":visible")||d.data("olddisplay")!==t||(d.show(),d.data("olddisplay",d.css("display")),d.hide()),d.data(I,o.effects).kendoStop(!0).kendoAnimate(o).attr("aria-hidden",!1)}},_location:function(t){var n,i,o=this,r=o.element,a=o.options,l=e(a.anchor),d=r[0]&&r.hasClass("km-widget");return a.copyAnchorStyles&&(d&&"font-size"==j[0]&&j.shift(),r.css(s.getComputedStyles(l[0],j))),o.wrapper=n=s.wrap(r,a.autosize).css({overflow:S,display:"block",position:C}),u.mobileOS.android&&n.css(V,"translatez(0)"),n.css(A),e(a.appendTo)[0]==document.body&&n.css(y,"-10000px"),o._position(t||{}),i=n.offset(),{width:s._outerWidth(n),height:s._outerHeight(n),left:i.left,top:i.top}},_openAnimation:function(){var e=W(!0,{},this.options.animation.open);return e.effects=s.parseEffects(e.effects,this.flipped),e},_hideDirClass:function(){var t=e(this.options.anchor),n=((t.attr("class")||"").match(F)||["","down"])[1],i=R+"-"+n;t.removeClass(i).children(P).removeClass(M).removeClass(i),this.element.removeClass(R+"-"+s.directions[n].reverse)},_showDirClass:function(t){var n=t.effects.slideIn?t.effects.slideIn.direction:"down",i=R+"-"+n;e(this.options.anchor).addClass(i).children(P).addClass(M).addClass(i),this.element.addClass(R+"-"+s.directions[n].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var e=this;e[e.visible()?g:m]()},visible:function(){return this.element.is(":"+E)},close:function(n){var i,o,r,a,l=this,d=l.options;if(l.visible()){if(i=l.wrapper[0]?l.wrapper:s.wrap(l.element).hide(),l._toggleResize(!1),l._closing||l._trigger(g))return l._toggleResize(!0),t;l.element.find(".k-popup").each(function(){var t=e(this),i=t.data("kendoPopup");i&&i.close(n)}),B.off(l.downEvent,l._mousedownProxy),n?o={hide:!0,effects:{}}:(o=W(!0,{},d.animation.close),r=l.element.data(I),a=o.effects,!a&&!s.size(a)&&r&&s.size(r)&&(o.effects=r,o.reverse=!0),l._closing=!0),l.element.kendoStop(!0).attr("aria-hidden",!0),i.css({overflow:S}).attr("aria-hidden",!0),l.element.kendoAnimate(o),n&&l._animationClose()}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;u.resize.indexOf(e.type)!==-1?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position(),t._resizeTimeout=null},50)):(!t._hovered||t._activated&&t.element.hasClass("k-list-container"))&&t.close()},_toggleResize:function(e){var t=e?"on":"off",n=u.resize;u.mobileOS.ios||u.mobileOS.android||u.browser.safari||(n+=" "+N),e&&!this.scrollableParents&&(this.scrollableParents=this._scrollableParents()),this.scrollableParents&&this.scrollableParents.length&&this.scrollableParents[t](N,this._resizeProxy),H[t](n,this._resizeProxy)},_mousedown:function(t){var i=this,o=i.element[0],r=i.options,a=e(r.anchor)[0],l=r.toggleTarget,d=s.eventTarget(t),c=e(d).closest(".k-popup"),u=c.parent().parent(".km-shim").length;c=c[0],!u&&c&&c!==i.element[0]||"popover"!==e(t.target).closest("a").data("rel")&&(n(o,d)||n(a,d)||l&&n(e(l)[0],d)||i.close())},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},_flip:function(e,t,n,i,o,r,a){var s=0;return a=a||t,r!==o&&r!==b&&o!==b&&(e+a>i&&(s+=-(n+t)),e+s<0&&(s+=n+t)),s},_scrollableParents:function(){return e(this.options.anchor).parentsUntil("body").filter(function(e,t){return s.isScrollable(t)})},_position:function(t){var n,i,o,r,a,l,d,c,m,g,v,_,b,w,k,y,x,S=this,T=S.element,E=S.wrapper,I=S.options,M=e(I.viewport),R=u.zoomLevel(),F=!!(M[0]==window&&window.innerWidth&&R<=1.02),P=e(I.anchor),z=I.origin.toLowerCase().split(" "),B=I.position.toLowerCase().split(" "),L=S.collisions,H=10002,N=0,O=document.documentElement;if(a=I.viewport===window?{top:window.pageYOffset||document.documentElement.scrollTop||0,left:window.pageXOffset||document.documentElement.scrollLeft||0}:M.offset(),F?(l=window.innerWidth,d=window.innerHeight):(l=M.width(),d=M.height()),F&&O.scrollHeight-O.clientHeight>0&&(c=I.isRtl?-1:1,l-=c*s.support.scrollbar()),n=P.parents().filter(E.siblings()),n[0])if(o=Math.max(+n.css("zIndex"),0))H=o+10;else for(i=P.parentsUntil(n),r=i.length;N<r;N++)o=+e(i[N]).css("zIndex"),o&&H<o&&(H=o+10);return E.css("zIndex",H),E.css(t&&t.isFixed?{left:t.x,top:t.y}:S._align(z,B)),m=h(E,A,P[0]===E.offsetParent()[0]),g=h(E),v=P.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),v.length&&(m=h(E,A,!0),g=h(E)),g.top-=a.top,g.left-=a.left,S.wrapper.data(D)||E.data(D,W({},m)),_=W({},g),b=W({},m),w=I.adjustSize,"fit"===L[0]&&(b.top+=S._fit(_.top,f(E)+w.height,d/R)),"fit"===L[1]&&(b.left+=S._fit(_.left,p(E)+w.width,l/R)),k=W({},b),y=f(T),x=f(E),!E.height()&&y&&(x+=y),"flip"===L[0]&&(b.top+=S._flip(_.top,y,f(P),d/R,z[0],B[0],x)),"flip"===L[1]&&(b.left+=S._flip(_.left,p(T),p(P),l/R,z[1],B[1],p(E))),T.css(A,C),E.css(b),b.left!=k.left||b.top!=k.top},_align:function(t,n){var i,o=this,r=o.wrapper,a=e(o.options.anchor),s=t[0],l=t[1],d=n[0],c=n[1],u=h(a),m=e(o.options.appendTo),g=p(r),v=f(r)||f(r.children().first()),_=p(a),w=f(a),y=u.top,C=u.left,S=Math.round;return m[0]!=document.body&&(i=h(m),y-=i.top,C-=i.left),s===x&&(y+=w),s===b&&(y+=S(w/2)),d===x&&(y-=v),d===b&&(y-=S(v/2)),l===k&&(C+=_),l===b&&(C+=S(_/2)),c===k&&(C-=g),c===b&&(C-=S(g/2)),{top:y,left:C}}});l.plugin(q),i=s.support.stableSort,o="kendoTabKeyTrap",r="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], *[contenteditable]",a=c.extend({init:function(t){this.element=e(t),this.element.autoApplyNS(o)},trap:function(){this.element.on("keydown",L(this._keepInTrap,this))},removeTrap:function(){this.element.kendoDestroy(o)},destroy:function(){this.element.kendoDestroy(o),this.element=t},shouldTrap:function(){return!0},_keepInTrap:function(e){var t,n,i;9===e.which&&this.shouldTrap()&&!e.isDefaultPrevented()&&(t=this._focusableElements(),n=this._sortFocusableElements(t),i=this._nextFocusable(e,n),this._focus(i),e.preventDefault())},_focusableElements:function(){var t=this.element.find(r).filter(function(t,n){return n.tabIndex>=0&&e(n).is(":visible")&&!e(n).is("[disabled]")});return this.element.is("[tabindex]")&&t.push(this.element[0]),t},_sortFocusableElements:function(e){var t,n;return i?t=e.sort(function(e,t){return e.tabIndex-t.tabIndex}):(n="__k_index",e.each(function(e,t){t.setAttribute(n,e)}),t=e.sort(function(e,t){return e.tabIndex===t.tabIndex?parseInt(e.getAttribute(n),10)-parseInt(t.getAttribute(n),10):e.tabIndex-t.tabIndex}),e.removeAttr(n)),t},_nextFocusable:function(e,t){var n=t.length,i=t.index(e.target);return t.get((i+(e.shiftKey?-1:1))%n)},_focus:function(e){return"IFRAME"==e.nodeName?(e.contentWindow.document.body.focus(),t):(e.focus(),"INPUT"==e.nodeName&&e.setSelectionRange&&this._haveSelectionRange(e)&&e.setSelectionRange(0,e.value.length),t)},_haveSelectionRange:function(e){var t=e.type.toLowerCase();return"text"===t||"search"===t||"url"===t||"tel"===t||"password"===t}}),l.Popup.TabKeyTrap=a}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("drawing/surface-tooltip.min",["kendo.popup.min","drawing/kendo-drawing.min"],e)}(function(){!function(e){var t=".kendo",n=window.kendo,i=n.deepExtend,o=n.drawing.util,r=o.defined,a=o.limitValue,s=o.eventCoordinates,l=n._outerWidth,d=n._outerHeight,c=e.proxy,u='<div class="k-tooltip"><div class="k-tooltip-content"></div></div>',h='<div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close">close</a></div>',p=n.Class.extend({init:function(t,n){this.element=e(u),this.content=this.element.children(".k-tooltip-content"),n=n||{},this.options=i({},this.options,this._tooltipOptions(n)),this.popupOptions={appendTo:n.appendTo,animation:n.animation,copyAnchorStyles:!1,collision:"fit fit"},this._openPopupHandler=e.proxy(this._openPopup,this),this.surface=t,this._bindEvents()},options:{position:"top",showOn:"mouseenter",offset:7,autoHide:!0,hideDelay:0,showAfter:100},_bindEvents:function(){this._showHandler=c(this._showEvent,this),this._surfaceLeaveHandler=c(this._surfaceLeave,this),this._mouseleaveHandler=c(this._mouseleave,this),this._mousemoveHandler=c(this._mousemove,this),this.surface.bind("click",this._showHandler),this.surface.bind("mouseenter",this._showHandler),this.surface.bind("mouseleave",this._mouseleaveHandler),this.surface.bind("mousemove",this._mousemoveHandler),this.surface.element.on("mouseleave"+t,this._surfaceLeaveHandler),this.element.on("click"+t,".k-tooltip-button",c(this._hideClick,this)),this.element.on("mouseleave"+t,c(this._tooltipLeave,this))},getPopup:function(){return this.popup||(this.popup=new n.ui.Popup(this.element,this.popupOptions)),this.popup},destroy:function(){var e=this.popup;this.surface.unbind("click",this._showHandler),this.surface.unbind("mouseenter",this._showHandler),this.surface.unbind("mouseleave",this._mouseleaveHandler),this.surface.unbind("mousemove",this._mousemoveHandler),this.surface.element.off("mouseleave"+t,this._surfaceLeaveHandler),this.element.off("click"+t),this.element.off("mouseleave"+t),e&&(e.destroy(),delete this.popup),delete this.popupOptions,clearTimeout(this._timeout),delete this.element,delete this.content,delete this.surface},_tooltipOptions:function(e){return e=e||{},{position:e.position,showOn:e.showOn,offset:e.offset,autoHide:e.autoHide,width:e.width,height:e.height,content:e.content,shared:e.shared,hideDelay:e.hideDelay,showAfter:e.showAfter};
},_tooltipShape:function(e){for(;e&&!e.options.tooltip;)e=e.parent;return e},_updateContent:function(e,t,i){var o=i.content;if(n.isFunction(o)&&(o=o({element:t,target:e})),o)return this.content.html(o),!0},_position:function(e,t,n,i){var o,r=t.position,l=t.offset||0,d=this.surface,c=d._instance._elementOffset(),u=d.getSize(),h=d._instance._offset,p=e.bbox(),f=n.width,m=n.height,g=0,v=0;return p.origin.translate(c.left,c.top),h&&p.origin.translate(-h.x,-h.y),"cursor"==r&&i?(o=s(i),g=o.x-f/2,v=o.y-m-l):"left"==r?(g=p.origin.x-f-l,v=p.center().y-m/2):"right"==r?(g=p.bottomRight().x+l,v=p.center().y-m/2):"bottom"==r?(g=p.center().x-f/2,v=p.bottomRight().y+l):(g=p.center().x-f/2,v=p.origin.y-m-l),{left:a(g,c.left,c.left+u.width),top:a(v,c.top,c.top+u.height)}},show:function(e,t){this._show(e,e,i({},this.options,this._tooltipOptions(e.options.tooltip),t))},hide:function(){var e=this.popup,t=this._current;delete this._current,clearTimeout(this._showTimeout),e&&e.visible()&&t&&!this.surface.trigger("tooltipClose",{element:t.shape,target:t.target,popup:e})&&e.close()},_hideClick:function(e){e.preventDefault(),this.hide()},_show:function(e,t,n,i,o){var r,a,s=this._current;clearTimeout(this._timeout),s&&(s.shape===t&&n.shared||s.target===e)||(clearTimeout(this._showTimeout),r=this.getPopup(),!this.surface.trigger("tooltipOpen",{element:t,target:e,popup:r})&&this._updateContent(e,t,n)&&(this._autoHide(n),a=this._measure(n),r.visible()&&r.close(!0),this._current={options:n,elementSize:a,shape:t,target:e,position:this._position(n.shared?t:e,n,a,i)},o?this._showTimeout=setTimeout(this._openPopupHandler,n.showAfter||0):this._openPopup()))},_openPopup:function(){var e=this._current,t=e.position;this.getPopup().open(t.left,t.top)},_autoHide:function(t){t.autoHide&&this._closeButton&&(this.element.removeClass("k-tooltip-closable"),this._closeButton.remove(),delete this._closeButton),t.autoHide||this._closeButton||(this.element.addClass("k-tooltip-closable"),this._closeButton=e(h).appendTo(this.element))},_showEvent:function(e){var t,n=this._tooltipShape(e.element);n&&(t=i({},this.options,this._tooltipOptions(n.options.tooltip)),t&&t.showOn==e.type&&this._show(e.element,n,t,e.originalEvent,!0))},_measure:function(e){var t,n,i,o=this.getPopup();return this.element.css({width:"auto",height:"auto"}),i=o.visible(),i||o.wrapper.show(),this.element.css({width:r(e.width)?e.width:"auto",height:r(e.height)?e.height:"auto"}),t=l(this.element),n=d(this.element),i||o.wrapper.hide(),{width:t,height:n}},_mouseleave:function(e){var t,n;this.popup&&!this._popupRelatedTarget(e.originalEvent)&&(t=this,n=t._current,n&&n.options.autoHide&&(t._timeout=setTimeout(function(){clearTimeout(t._showTimeout),t.hide()},n.options.hideDelay||0)))},_mousemove:function(e){var t,n,i=this._current;i&&e.element&&(t=i.options,"cursor"==t.position&&(n=this._position(e.element,t,i.elementSize,e.originalEvent),i.position=n,this.getPopup().wrapper.css({left:n.left,top:n.top})))},_surfaceLeave:function(e){this.popup&&!this._popupRelatedTarget(e)&&(clearTimeout(this._showTimeout),this.hide())},_popupRelatedTarget:function(t){return t.relatedTarget&&e(t.relatedTarget).closest(this.popup.wrapper).length},_tooltipLeave:function(){var e=this,t=e._current;t&&t.options.autoHide&&(e._timeout=setTimeout(function(){e.hide()},t.options.hideDelay||0))}});n.drawing.SurfaceTooltip=p}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("drawing/surface.min",["drawing/kendo-drawing.min","drawing/surface-tooltip.min"],e)}(function(){!function(e){function t(e){this._instance.translate(e)}var n,i=window.kendo,o=i.drawing,r=o.Surface,a=i.ui.Widget,s=i.deepExtend,l=e.proxy;i.support.svg=r.support.svg,i.support.canvas=r.support.canvas,n=a.extend({init:function(e,n){a.fn.init.call(this,e,{}),this.options=s({},this.options,n),this._instance=r.create(this.element[0],n),this._instance.translate&&(this.translate=t),this._triggerInstanceHandler=l(this._triggerInstanceEvent,this),this._bindHandler("click"),this._bindHandler("mouseenter"),this._bindHandler("mouseleave"),this._bindHandler("mousemove"),this._enableTracking()},options:{name:"Surface",tooltip:{}},events:["click","mouseenter","mouseleave","mousemove","resize","tooltipOpen","tooltipClose"],_triggerInstanceEvent:function(e){this.trigger(e.type,e)},_bindHandler:function(e){this._instance.bind(e,this._triggerInstanceHandler)},draw:function(e){this._instance.draw(e)},clear:function(){this._instance&&this._instance.clear(),this.hideTooltip()},destroy:function(){this._instance&&(this._instance.destroy(),delete this._instance),this._tooltip&&(this._tooltip.destroy(),delete this._tooltip),a.fn.destroy.call(this)},exportVisual:function(){return this._instance.exportVisual()},eventTarget:function(e){return this._instance.eventTarget(e)},showTooltip:function(e,t){this._tooltip&&this._tooltip.show(e,t)},hideTooltip:function(){this._tooltip&&this._tooltip.hide()},suspendTracking:function(){this._instance.suspendTracking(),this.hideTooltip()},resumeTracking:function(){this._instance.resumeTracking()},getSize:function(){return{width:this.element.width(),height:this.element.height()}},setSize:function(e){this.element.css({width:e.width,height:e.height}),this._size=e,this._instance.currentSize(e),this._resize()},_resize:function(){this._instance.currentSize(this._size),this._instance._resize()},_enableTracking:function(){i.ui.Popup&&(this._tooltip=new o.SurfaceTooltip(this,this.options.tooltip||{}))}}),i.ui.plugin(n),n.create=function(e,t){return new n(e,t)},i.drawing.Surface=n}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("drawing/html.min",["drawing/kendo-drawing.min"],e)}(function(){!function(e){var t=window.kendo,n=t.drawing,i=n.drawDOM;n.drawDOM=function(t,n){return i(e(t)[0],n)},n.drawDOM.drawText=i.drawText,n.drawDOM.getFontFaces=i.getFontFaces}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.drawing.min",["drawing/util.min","drawing/kendo-drawing.min","drawing/surface-tooltip.min","drawing/surface.min","drawing/html.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.validator.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){var n,i=d.ui.validator.ruleResolvers||{},o={};for(n in i)e.extend(!0,o,i[n].resolve(t));return o}function i(e){return e.replace(/&amp/g,"&amp;").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}function o(e){return e=(e+"").split("."),e.length>1?e[1].length:0}function r(t){return e(e.parseHTML?e.parseHTML(t):t)}function a(t,n){var i,o,r,a,s=e();for(r=0,a=t.length;r<a;r++)i=t[r],p.test(i.className)&&(o=i.getAttribute(d.attr("for")),o===n&&(s=s.add(i)));return s}var s,l,d=window.kendo,c=d.ui.Widget,u=".kendoValidator",h="k-invalid-msg",p=RegExp(h,"i"),f="k-invalid",m="k-valid",g="k-validation-summary",v="k-text-error",_="k-messagebox k-messagebox-error",b="aria-invalid",w="aria-describedby",k=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/i,y=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,x=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])",C=":checkbox:not([disabled],[readonly])",S="[type=number],[type=range]",T="blur",D="name",A="form",E="novalidate",I="validate",M="change",R="validateInput",F=e.proxy,P=function(e,t){return"string"==typeof t&&(t=RegExp("^(?:"+t+")$")),t.test(e)},z=function(e,t,n){var i=e.val();return!e.filter(t).length||""===i||P(i,n)},B=function(e,t){return!!e.length&&null!=e[0].attributes[t]};d.ui.validator||(d.ui.validator={rules:{},messages:{},allowSubmit:e.noop,validateOnInit:e.noop}),s='<ul>#for(var i = 0; i < errors.length; i += 1){#<li><a data-field="#=errors[i].field#" href="\\#">#= errors[i].message #</a></li># } #</ul>',l=c.extend({init:function(t,i){var o=this,r=n(t),a="["+d.attr("validate")+"!=false]";i=i||{},i.rules=e.extend({},d.ui.validator.rules,r.rules,i.rules),i.messages=e.extend({},d.ui.validator.messages,r.messages,i.messages),c.fn.init.call(o,t,i),o._errorTemplate=d.template(o.options.errorTemplate),o._summaryTemplate=d.template(o.options.validationSummary.template||s),o.element.is(A)&&o.element.attr(E,E),o._inputSelector=x+a,o._checkboxSelector=C+a,o._errors={},o._attachEvents(),o._isValidated=!1,o._validateOnInit()&&o.validate()},events:[I,M,R],options:{name:"Validator",errorTemplate:'<span class="k-form-error">#= message #</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date",dateCompare:"End date should be greater than or equal to the start date"},rules:{required:function(e){var t=e.filter("[type=checkbox]").length&&!e.is(":checked"),n=e.val();return!(B(e,"required")&&(!n||""===n||0===n.length||t))},pattern:function(e){return!e.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length||""===e.val()||P(e.val(),e.attr("pattern"))},min:function(e){if(e.filter(S+",["+d.attr("type")+"=number]").filter("[min]").length&&""!==e.val()){var t=parseFloat(e.attr("min"))||0,n=d.parseFloat(e.val());return t<=n}return!0},max:function(e){if(e.filter(S+",["+d.attr("type")+"=number]").filter("[max]").length&&""!==e.val()){var t=parseFloat(e.attr("max"))||0,n=d.parseFloat(e.val());return t>=n}return!0},step:function(e){if(e.filter(S+",["+d.attr("type")+"=number]").filter("[step]").length&&""!==e.val()){var t,n=parseFloat(e.attr("min"))||0,i=parseFloat(e.attr("step"))||1,r=parseFloat(e.val()),a=o(i);return a?(t=Math.pow(10,a),Math.floor((r-n)*t)%(i*t)/Math.pow(100,a)===0):(r-n)%i===0}return!0},email:function(e){return z(e,"[type=email],["+d.attr("type")+"=email]",k)},url:function(e){return z(e,"[type=url],["+d.attr("type")+"=url]",y)},date:function(e){return!e.filter("[type^=date],["+d.attr("type")+"=date]").length||""===e.val()||null!==d.parseDate(e.val(),e.attr(d.attr("format")))}},validateOnBlur:!0,validationSummary:!1},_allowSubmit:function(){return d.ui.validator.allowSubmit(this.element,this.errors())},_validateOnInit:function(){return d.ui.validator.validateOnInit(this.element)},destroy:function(){c.fn.destroy.call(this),this.element.off(u),this.validationSummary&&(this.validationSummary.off(u),this.validationSummary=null)},value:function(){return!!this._isValidated&&0===this.errors().length},_submit:function(e){return!(!this.validate()&&!this._allowSubmit())||(e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),!1)},_checkElement:function(e){var t=this.value();this.validateInput(e),this.value()!==t&&this.trigger(M)},_attachEvents:function(){var t=this;t.element.is(A)&&t.element.on("submit"+u,F(t._submit,t)),t.options.validateOnBlur&&(t.element.is(x)?(t.element.on(T+u,function(){t._checkElement(t.element)}),t.element.is(C)&&t.element.on("click"+u,function(){t._checkElement(t.element)})):(t.element.on(T+u,t._inputSelector,function(){t._checkElement(e(this))}),t.element.on("click"+u,t._checkboxSelector,function(){t._checkElement(e(this))})))},validate:function(){var e,t,n,i,o=!1,r=this.value();if(this._errors={},this.element.is(x))o=this.validateInput(this.element);else{for(i=!1,e=this.element.find(this._inputSelector),t=0,n=e.length;t<n;t++)this.validateInput(e.eq(t))||(i=!0);o=!i}return this.options.validationSummary&&!r&&this.showValidationSummary(),this.trigger(I,{valid:o,errors:this.errors()}),r!==o&&this.trigger(M),o},validateInput:function(t){var n,o,a,s,l,c,u,p,g,_,w,k,y,x,C,S,T;return t=e(t),this._isValidated=!0,n=this,o=n._errorTemplate,a=n._checkValidity(t),s=a.valid,l="."+h,c=t.attr(D)||"",u=n._findMessageContainer(c).add(t.next(l).filter(function(){var t=e(this);return!t.filter("["+d.attr("for")+"]").length||t.attr(d.attr("for"))===c})).addClass("k-hidden"),p=s?"":n._extractMessage(t,a.key),g=s?"":r(o({message:i(p),field:c})),_=!t.attr(b),t.removeAttr(b),s?delete n._errors[c]:(n._errors[c]=p,w=u.attr("id"),n._decorateMessageContainer(g,c),w&&g.attr("id",w),0!==u.length?u.replaceWith(g):(k=d.widgetInstance(t),y=t.parent().get(0),x=t.next().get(0),g.insertAfter(y&&"LABEL"===y.nodeName?y:x&&"LABEL"===x.nodeName?x:k&&k.wrapper?k.wrapper:t)),g.removeClass("k-hidden"),t.attr(b,!0)),_!==s&&this.trigger(R,{valid:s,input:t,error:p,field:c}),t.toggleClass(f,!s),t.toggleClass(m,s),d.widgetInstance(t)&&(C=d.widgetInstance(t)._inputWrapper,S=d.widgetInstance(t)._inputLabel,C&&(C.toggleClass(f,!s),C.toggleClass(m,s)),S&&S.toggleClass(v,!s)),_!==s&&(T=g?g.attr("id"):u.attr("id"),n._associateMessageContainer(t,T),this.options.validationSummary&&this.options.validateOnBlur&&this.showValidationSummary()),s},hideMessages:function(){var e=this,t="."+h,n=e.element;e._disassociateMessageContainers(),n.is(x)?n.next(t).addClass("k-hidden"):n.find(t).addClass("k-hidden")},reset:function(){var e=this,t=e.element.find("."+f),n=e.element.find("."+v);e._errors=[],e.hideMessages(),e.hideValidationSummary(),t.removeAttr(b),t.removeClass(f),n.removeClass(v)},_findMessageContainer:function(t){var n,i,o,r=d.ui.validator.messageLocators,s=e();for(i=0,o=this.element.length;i<o;i++)s=s.add(a(this.element[i].getElementsByTagName("*"),t));for(n in r)s=s.add(r[n].locate(this.element,t));return s},_decorateMessageContainer:function(e,t){var n,i=d.ui.validator.messageLocators;e.addClass(h).attr(d.attr("for"),t||""),e.attr("id")||e.attr("id",t+"-error");for(n in i)i[n].decorate(e,t)},_extractMessage:function(e,t){var n,i=this,o=i.options.messages[t],r=e.attr(D);return d.ui.Validator.prototype.options.messages[t]||(n=d.isFunction(o)?o(e):o),o=d.isFunction(o)?o(e):o,d.format(e.attr(d.attr(t+"-msg"))||e.attr("validationMessage")||n||o||e.attr("title")||"",r,e.attr(t)||e.attr(d.attr(t)))},_checkValidity:function(e){var t,n=this.options.rules;for(t in n)if(!n[t].call(this,e))return{valid:!1,key:t};return{valid:!0}},errors:function(){var e,t=[],n=this._errors;for(e in n)t.push(n[e]);return t},setOptions:function(e){e.validationSummary&&this.hideValidationSummary(),d.deepExtend(this.options,e),this.destroy(),this.init(this.element,this.options),this._setEvents(this.options)},_getInputNames:function(){var t,n,i,o=this,r=o.element.find(o._inputSelector),a=[];for(t=0,n=r.length;t<n;t++)i=e(r[t]),B(i,D)&&a.push(i.attr(D));return a},_associateMessageContainer:function(e,t){var n=d.getWidgetFocusableElement(e);n&&t&&d.toggleAttribute(n,w,t)},_disassociateMessageContainers:function(){var t,n,i,o=this,r=o.element.find("."+f).addBack();for(i=0;i<r.length;i+=1)t=e(r[i]),t.is("input")&&(n=o._findMessageContainer(t.attr(D)).add(t.next("."+h)).attr("id"),o._associateMessageContainer(t,n))},_errorsByName:function(){var e,t,n=this,i=n._getInputNames(),o=[];for(e=0;e<i.length;e+=1)t=i[e],n._errors[t]&&o.push({field:t,message:n._errors[t]});return o},_renderSummary:function(){var t,n=this,i=this.options.validationSummary,o=this.element,r=o.prev();return t=i.container?e(i.container):r&&r.hasClass(g)?r:e("<div />").insertBefore(n.element),t.addClass([g,_].join(" ")),t.attr("role","alert"),t.on("click"+u,F(n._summaryClick,n)),t},_summaryClick:function(t){t.preventDefault();var n,i=this,o=e(t.target),r=i.element.find("[name='"+o.data("field")+"']");r.length&&(n=d.getWidgetFocusableElement(r),n&&n.focus())},showValidationSummary:function(){var e,t=this,n=t.validationSummary,i=t._errorsByName();n||(n=t.validationSummary=t._renderSummary()),e=r(t._summaryTemplate({errors:i})),n.html(e),n.toggleClass("k-hidden",!i.length)},hideValidationSummary:function(){var e=this,t=e.validationSummary;t&&t.addClass("k-hidden")}}),d.ui.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.userevents.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t){var n=e.x.location,i=e.y.location,o=t.x.location,r=t.y.location,a=n-o,s=i-r;return{center:{x:(n+o)/2,y:(i+r)/2},distance:Math.sqrt(a*a+s*s)}}function i(e){var t,n,i,o=[],r=e.originalEvent,s=e.currentTarget,l=0;if(e.api)o.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e,type:"api"});else if(e.type.match(/touch/))for(n=r?r.changedTouches:[],t=n.length;l<t;l++)i=n[l],o.push({location:i,event:e,target:i.target,currentTarget:s,id:i.identifier,type:"touch"});else o.push(a.pointers||a.msPointers?{location:r,event:e,target:e.target,currentTarget:s,id:r.pointerId,type:"pointer"}:{id:1,event:e,target:e.target,currentTarget:s,location:e,type:"mouse"});return o}function o(e){for(var t=r.eventMap.up.split(" "),n=0,i=t.length;n<i;n++)e(t[n])}var r=window.kendo,a=r.support,s=r.Class,l=r.Observable,d=e.now,c=e.extend,u=a.mobileOS,h=u&&u.android,p=800,f=300,m=a.browser.msie?5:0,g="press",v="hold",_="select",b="start",w="move",k="end",y="cancel",x="tap",C="doubleTap",S="release",T="gesturestart",D="gesturechange",A="gestureend",E="gesturetap",I={api:0,touch:0,mouse:9,pointer:9},M=!a.touch||a.mouseAndTouchPresent,R=s.extend({init:function(e,t){var n=this;n.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=d()},move:function(e){var t=this,n=e["page"+t.axis],i=d(),o=i-t.timeStamp||1;!n&&h||(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/o,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e["page"+n],t.client=e["client"+n],t.screen=e["screen"+n]}}),F=s.extend({init:function(e,t,n){c(this,{x:new R("X",n.location),y:new R("Y",n.location),type:n.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||I[n.type],userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,pressEvent:n,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(e.proxy(this,"_hold"),this.userEvents.minHold),this._trigger(g,this.pressEvent)},_tap:function(e){var t=this;t.userEvents._clicks++,1==t.userEvents._clicks&&(t._clickTimeout=setTimeout(function(){1==t.userEvents._clicks?t._trigger(x,e):t._trigger(C,e),t.userEvents._clicks=0},f))},_hold:function(){this._trigger(v,this.pressEvent)},move:function(e){var t=this,n="api"!==e.type&&t.userEvents._shouldNotMove;if(!t._finished&&!n){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(P.current&&P.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(w,e)}},end:function(e){this.endTime=d(),this._finished||(this._finished=!0,this._trigger(S,e),this._moved?this._trigger(k,e):this.useClickAsTap||(this.supportDoubleTap?this._tap(e):this._trigger(x,e)),clearTimeout(this._holdTimeout),this.dispose())},dispose:function(){var t=this.userEvents,n=t.touches;this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),n.splice(e.inArray(this,n),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){clearTimeout(this._holdTimeout),this.startTime=d(),this._moved=!0,this._trigger(b,e)},_trigger:function(e,t){var n=this,i=t.event,o={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,o)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return Math.sqrt(e*e+t*t)<=this.threshold}}),P=l.extend({init:function(t,n){var i,s,d,u,h=this,f=r.guid();n=n||{},i=h.filter=n.filter,h.threshold=n.threshold||m,h.minHold=n.minHold||p,h.touches=[],h._maxTouches=n.multiTouch?2:1,h.allowSelection=n.allowSelection,h.captureUpIfMoved=n.captureUpIfMoved,h.useClickAsTap=!n.fastTap&&!a.delayedClick(),h.eventNS=f,h._clicks=0,h.supportDoubleTap=n.supportDoubleTap,t=e(t).handler(h),l.fn.init.call(h),c(h,{element:t,surface:e(n.global&&M?t[0].ownerDocument.documentElement:n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),h.surface.handler(h).on(r.applyEventMap("move",f),"_move").on(r.applyEventMap("up cancel",f),"_end"),t.on(r.applyEventMap("down",f),i,"_start"),h.useClickAsTap&&t.on(r.applyEventMap("click",f),i,"_click"),(a.pointers||a.msPointers)&&(a.browser.version<11?(s="pinch-zoom double-tap-zoom",t.css("-ms-touch-action",n.touchAction&&"none"!=n.touchAction?s+" "+n.touchAction:s)):t.css("touch-action",n.touchAction||"none")),n.preventDragEvent&&t.on(r.applyEventMap("dragstart",f),r.preventDefault),t.on(r.applyEventMap("mousedown",f),i,{root:t},"_select"),h.captureUpIfMoved&&a.eventCapture&&(d=h.surface[0],u=e.proxy(h.preventIfMoving,h),o(function(e){d.addEventListener(e,u,!0)})),h.bind([g,v,x,C,b,w,k,S,y,T,D,A,E,_],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e,t=this;t._destroyed||(t._destroyed=!0,t.captureUpIfMoved&&a.eventCapture&&(e=t.surface[0],o(function(n){e.removeEventListener(n,t.preventIfMoving)})),t.element.kendoDestroy(t.eventNS),t.surface.kendoDestroy(t.eventNS),t.element.removeData("handler"),t.surface.removeData("handler"),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget)},capture:function(){P.current=this},cancel:function(){this._disposeAll(),this.trigger(y)},notify:function(e,t){var i=this,o=i.touches;if(this._isMultiTouch()){switch(e){case w:e=D;break;case k:e=A;break;case x:e=E}c(t,{touches:o},n(o[0],o[1]))}return this.trigger(e,c(t,{type:e}))},press:function(e,t,n){this._apiCall("_start",e,t,n)},move:function(e,t){this._apiCall("_move",e,t)},end:function(e,t){this._apiCall("_end",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){this.allowSelection&&!this.trigger(_,{event:e})||e.preventDefault()},_start:function(t){var n,o,r=this,a=0,s=r.filter,l=i(t),d=l.length,c=t.which;if(!(c&&c>1||r._maxTouchesReached()))for(P.current=null,r.currentTarget=t.currentTarget,r.stopPropagation&&t.stopPropagation();a<d&&!r._maxTouchesReached();a++)o=l[a],n=s?e(o.currentTarget):r.element,n.length&&(o=new F(r,n,o),r.touches.push(o),o.press(),r._isMultiTouch()&&r.notify("gesturestart",{}))},_move:function(e){this._eachTouch("move",e)},_end:function(e){this._eachTouch("end",e)},_click:function(t){var n={touch:{initialTouch:t.target,target:e(t.currentTarget),endTime:d(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:e(t.currentTarget),event:t,type:"tap"};this.trigger("tap",n)&&t.preventDefault()},_eachTouch:function(e,t){var n,o,r,a,s=this,l={},d=i(t),c=s.touches;for(n=0;n<c.length;n++)o=c[n],l[o.id]=o;for(n=0;n<d.length;n++)r=d[n],a=l[r.id],a&&a[e](r)},_apiCall:function(t,n,i,o){this[t]({api:!0,pageX:n,pageY:i,clientX:n,clientY:i,target:e(o||this.element)[0],stopPropagation:e.noop,preventDefault:e.noop})}});P.defaultThreshold=function(e){m=e},P.minHold=function(e){p=e},r.getTouches=i,r.touchDelta=n,r.UserEvents=P}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.draganddrop.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e,t){return parseInt(e.css(t),10)||0}function o(e,t){return Math.min(Math.max(e,t.min),t.max)}function r(e,t){var n=A(e),o=_._outerWidth,r=_._outerHeight,a=n.left+i(e,"borderLeftWidth")+i(e,"paddingLeft"),s=n.top+i(e,"borderTopWidth")+i(e,"paddingTop"),l=a+e.width()-o(t,!0),d=s+e.height()-r(t,!0);return{x:{min:a,max:l},y:{min:s,max:d}}}function a(n,i,o){for(var r,a,s=0,l=i&&i.length,d=o&&o.length;n&&n.parentNode;){for(s=0;s<l;s++)if(r=i[s],r.element[0]===n)return{target:r,targetElement:n};for(s=0;s<d;s++)if(a=o[s],e.contains(a.element[0],n)&&b.matchesSelector.call(n,a.options.filter))return{target:a,targetElement:n};n=n.parentNode}return t}function s(e,t){var n,i=t.options.group,o=e[i];if(x.fn.destroy.call(t),o.length>1){for(n=0;n<o.length;n++)if(o[n]==t){o.splice(n,1);break}}else o.length=0,delete e[i]}function l(e){var t,n,i,o=d()[0];return e[0]===o?(n=o.scrollTop,i=o.scrollLeft,{top:n,left:i,bottom:n+k.height(),right:i+k.width()}):(t=e.offset(),t.bottom=t.top+e.height(),t.right=t.left+e.width(),t)}function d(){return e(_.support.browser.edge||_.support.browser.safari?w.body:w.documentElement)}function c(t){var n,i=d();if(!t||t===w.body||t===w.documentElement)return i;for(n=e(t)[0];n&&!_.isScrollable(n)&&n!==w.body;)n=n.parentNode;return n===w.body?i:e(n)}function u(e,t,n){var i={x:0,y:0},o=50;return e-n.left<o?i.x=-(o-(e-n.left)):n.right-e<o&&(i.x=o-(n.right-e)),t-n.top<o?i.y=-(o-(t-n.top)):n.bottom-t<o&&(i.y=o-(n.bottom-t)),i}var h,p,f,m,g,v,_=window.kendo,b=_.support,w=window.document,k=e(window),y=_.Class,x=_.ui.Widget,C=_.Observable,S=_.UserEvents,T=e.proxy,D=e.extend,A=_.getOffset,E={},I={},M={},R=_.elementUnderCursor,F="keyup",P="change",z="dragstart",B="hold",L="drag",H="dragend",N="dragcancel",O="hintDestroyed",V="dragenter",W="dragleave",U="drop",j=C.extend({init:function(t,n){var i=this,o=t[0];i.capture=!1,o.addEventListener?(e.each(_.eventMap.down.split(" "),function(){o.addEventListener(this,T(i._press,i),!0)}),e.each(_.eventMap.up.split(" "),function(){o.addEventListener(this,T(i._release,i),!0)})):(e.each(_.eventMap.down.split(" "),function(){o.attachEvent(this,T(i._press,i))}),e.each(_.eventMap.up.split(" "),function(){o.attachEvent(this,T(i._release,i))})),C.fn.init.call(i),i.bind(["press","release"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(e){var t=this;t.trigger("press"),t.capture&&e.preventDefault()},_release:function(e){var t=this;t.trigger("release"),t.capture&&(e.preventDefault(),t.cancelCapture())}}),q=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.forcedEnabled=!1,e.extend(n,t),n.scale=1,n.horizontal?(n.measure="offsetWidth",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="offsetHeight",n.scrollSize="scrollHeight",n.axis="y")},makeVirtual:function(){e.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},virtualSize:function(e,t){this._virtualMin===e&&this._virtualMax===t||(this._virtualMin=e,this._virtualMax=t,this.update())},outOfBounds:function(e){return e>this.max||e<this.min},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(e){this.scale=e},update:function(e){var t=this,n=t.virtual?t._virtualMax:t.getTotal(),i=n*t.scale,o=t.getSize();(0!==n||t.forcedEnabled)&&(t.max=t.virtual?-t._virtualMin:0,t.size=o,t.total=i,t.min=Math.min(t.max,o-i),t.minScale=o/n,t.centerOffset=(i-o)/2,t.enabled=t.forcedEnabled||i>o,e||t.trigger(P,t))}}),G=C.extend({init:function(e){var t=this;C.fn.init.call(t),t.x=new q(D({horizontal:!0},e)),t.y=new q(D({horizontal:!1},e)),t.container=e.container,t.forcedMinScale=e.minScale,t.maxScale=e.maxScale||100,t.bind(P,e)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.min(e.x.minScale,e.y.minScale),e.fitScale=Math.max(e.x.minScale,e.y.minScale),e.trigger(P)}}),$=C.extend({init:function(e){var t=this;D(t,e),C.fn.init.call(t)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,o=t.movable,r=o[i]+e;n.enabled&&((r<n.min&&e<0||r>n.max&&e>0)&&(e*=t.resistance),o.translateAxis(i,e),t.trigger(P,t))}}),K=y.extend({init:function(t){var n,i,o,r,a=this;D(a,{elastic:!0},t),o=a.elastic?.5:0,r=a.movable,a.x=n=new $({axis:"x",dimension:a.dimensions.x,resistance:o,movable:r}),a.y=i=new $({axis:"y",dimension:a.dimensions.y,resistance:o,movable:r}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(e){a.gesture=e,a.offset=a.dimensions.container.offset()},press:function(t){e(t.event.target).closest("a").is("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(e){var t,o,s,l=a.gesture,d=l.center,c=e.center,u=e.distance/l.distance,h=a.dimensions.minScale,p=a.dimensions.maxScale;r.scale<=h&&u<1&&(u+=.8*(1-u)),r.scale*u>=p&&(u=p/r.scale),o=r.x+a.offset.left,s=r.y+a.offset.top,t={x:(o-d.x)*u+c.x-o,y:(s-d.y)*u+c.y-s},r.scaleWith(u),n.dragMove(t.x),i.dragMove(t.y),a.dimensions.rescale(r.scale),a.gesture=e,e.preventDefault()},move:function(e){e.event.target.tagName.match(/textarea|input/i)||(n.dimension.enabled||i.dimension.enabled?(n.dragMove(e.x.delta),i.dragMove(e.y.delta),e.preventDefault()):e.touch.skip())},end:function(e){e.preventDefault()}})}}),Y=b.transitions.prefix+"Transform";p=b.hasHW3D?function(e,t,n){return"translate3d("+e+"px,"+t+"px,0) scale("+n+")"}:function(e,t,n){return"translate("+e+"px,"+t+"px) scale("+n+")"},f=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(p(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){D(this,e),this.refresh()},refresh:function(){var e,t=this,n=t.x,i=t.y;t.round&&(n=Math.round(n),i=Math.round(i)),e=p(n,i,t.scale),e!=t.coordinates&&(_.support.browser.msie&&_.support.browser.version<10?(t.element[0].style.position="absolute",t.element[0].style.left=t.x+"px",t.element[0].style.top=t.y+"px"):t.element[0].style[Y]=e,t._saveCoordinates(e),t.trigger(P))},_saveCoordinates:function(e){this.coordinates=e}}),m=x.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in I?I[n].push(i):I[n]=[i]},events:[V,W,U],options:{name:"DropTarget",group:"default"},destroy:function(){s(I,this)},_trigger:function(e,t){var n=this,i=E[n.options.group];if(i)return n.trigger(e,D({},t.event,{draggable:i,dropTarget:t.dropTarget}))},_over:function(e){this._trigger(V,e)},_out:function(e){this._trigger(W,e)},_drop:function(e){var t=this,n=E[t.options.group];n&&(n.dropped=!t._trigger(U,e))}}),m.destroyGroup=function(e){var t,n=I[e]||M[e];if(n){for(t=0;t<n.length;t++)x.fn.destroy.call(n[t]);n.length=0,
delete I[e],delete M[e]}},m._cache=I,g=m.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in M?M[n].push(i):M[n]=[i]},destroy:function(){s(M,this)},options:{name:"DropTargetArea",group:"default",filter:null}}),v=x.extend({init:function(e,t){var n=this;x.fn.init.call(n,e,t),n._activated=!1,n.userEvents=new S(n.element,{global:!0,allowSelection:!0,filter:n.options.filter,threshold:n.options.distance,start:T(n._start,n),hold:T(n._hold,n),move:T(n._drag,n),end:T(n._end,n),cancel:T(n._cancel,n),select:T(n._select,n)}),_.support.touch&&n.element.find(n.options.filter).css("touch-action","none"),n._afterEndHandler=T(n._afterEnd,n),n._captureEscape=T(n._captureEscape,n)},events:[B,z,L,H,N,O],options:{name:"Draggable",distance:_.support.touch?0:5,group:"default",cursorOffset:null,axis:null,container:null,filter:null,ignore:null,holdToDrag:!1,autoScroll:!1,dropped:!1},cancelHold:function(){this._activated=!1},_captureEscape:function(e){var t=this;e.keyCode===_.keys.ESC&&(t._trigger(N,{event:e}),t.userEvents.cancel())},_updateHint:function(t){var n,i=this,r=i.options,a=i.boundaries,s=r.axis,l=i.options.cursorOffset;l?n={left:t.x.location+l.left,top:t.y.location+l.top}:(i.hintOffset.left+=t.x.delta,i.hintOffset.top+=t.y.delta,n=e.extend({},i.hintOffset)),a&&(n.top=o(n.top,a.y),n.left=o(n.left,a.x)),"x"===s?delete n.top:"y"===s&&delete n.left,i.hint.css(n)},_shouldIgnoreTarget:function(t){var n=this.options.ignore;return n&&e(t).is(n)},_select:function(e){this._shouldIgnoreTarget(e.event.target)||e.preventDefault()},_start:function(n){var i,o=this,a=o.options,s=a.container?e(a.container):null,l=a.hint;return this._shouldIgnoreTarget(n.touch.initialTouch)||a.holdToDrag&&!o._activated?(o.userEvents.cancel(),t):(o.currentTarget=n.target,o.currentTargetOffset=A(o.currentTarget),l&&(o.hint&&o.hint.stop(!0,!0).remove(),o.hint=_.isFunction(l)?e(l.call(o,o.currentTarget)):l,i=A(o.currentTarget),o.hintOffset=i,o.hint.css({position:"absolute",zIndex:2e4,left:i.left,top:i.top}).appendTo(w.body),o.angular("compile",function(){o.hint.removeAttr("ng-repeat");for(var t=e(n.target);!t.data("$$kendoScope")&&t.length;)t=t.parent();return{elements:o.hint.get(),scopeFrom:t.data("$$kendoScope")}})),E[a.group]=o,o.dropped=!1,s&&(o.boundaries=r(s,o.hint)),e(w).on(F,o._captureEscape),o._trigger(z,n)&&(o.userEvents.cancel(),o._afterEnd()),o.userEvents.capture(),t)},_hold:function(e){this.currentTarget=e.target,this._trigger(B,e)?this.userEvents.cancel():this._activated=!0},_drag:function(t){var n,i;t.preventDefault(),n=this._elementUnderCursor(t),this.options.autoScroll&&this._cursorElement!==n&&(this._scrollableParent=c(n),this._cursorElement=n),this._lastEvent=t,this._processMovement(t,n),this.options.autoScroll&&this._scrollableParent[0]&&(i=u(t.x.location,t.y.location,l(this._scrollableParent)),this._scrollCompenstation=e.extend({},this.hintOffset),this._scrollVelocity=i,0===i.y&&0===i.x?(clearInterval(this._scrollInterval),this._scrollInterval=null):this._scrollInterval||(this._scrollInterval=setInterval(e.proxy(this,"_autoScroll"),50))),this.hint&&this._updateHint(t)},_processMovement:function(n,i){this._withDropTarget(i,function(i,o){if(!i)return h&&(h._trigger(W,D(n,{dropTarget:e(h.targetElement)})),h=null),t;if(h){if(o===h.targetElement)return;h._trigger(W,D(n,{dropTarget:e(h.targetElement)}))}i._trigger(V,D(n,{dropTarget:e(o)})),h=D(i,{targetElement:o})}),this._trigger(L,D(n,{dropTarget:h,elementUnderCursor:i}))},_autoScroll:function(){var e,t,n,i,o,r,a,s,l=this._scrollableParent[0],c=this._scrollVelocity,u=this._scrollCompenstation;l&&(e=this._elementUnderCursor(this._lastEvent),this._processMovement(this._lastEvent,e),i=l===d()[0],i?(t=w.body.scrollHeight>k.height(),n=w.body.scrollWidth>k.width()):(t=l.offsetHeight<=l.scrollHeight,n=l.offsetWidth<=l.scrollWidth),o=l.scrollTop+c.y,r=t&&o>0&&o<l.scrollHeight,a=l.scrollLeft+c.x,s=n&&a>0&&a<l.scrollWidth,r&&(l.scrollTop+=c.y),s&&(l.scrollLeft+=c.x),this.hint&&i&&(s||r)&&(r&&(u.top+=c.y),s&&(u.left+=c.x),this.hint.css(u)))},_end:function(t){this._withDropTarget(this._elementUnderCursor(t),function(n,i){n&&(n._drop(D({},t,{dropTarget:e(i)})),h=null)}),this._cancel(this._trigger(H,t))},_cancel:function(e){var t=this;t._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),t._activated=!1,t.hint&&!t.dropped?setTimeout(function(){t.hint.stop(!0,!0),e?t._afterEndHandler():t.hint.animate(t.currentTargetOffset,"fast",t._afterEndHandler)},0):t._afterEnd()},_trigger:function(e,t){var n=this;return n.trigger(e,D({},t.event,{x:t.x,y:t.y,currentTarget:n.currentTarget,initialTarget:t.touch?t.touch.initialTouch:null,dropTarget:t.dropTarget,elementUnderCursor:t.elementUnderCursor}))},_elementUnderCursor:function(e){var t=R(e),i=this.hint;return i&&n(i[0],t)&&(i.hide(),t=R(e),t||(t=R(e)),i.show()),t},_withDropTarget:function(e,t){var n,i=this.options.group,o=I[i],r=M[i];(o&&o.length||r&&r.length)&&(n=a(e,o,r),n?t(n.target,n.targetElement):t())},destroy:function(){var e=this;x.fn.destroy.call(e),e._afterEnd(),e.userEvents.destroy(),this._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),e.currentTarget=null},_afterEnd:function(){var t=this;t.hint&&t.hint.remove(),delete E[t.options.group],t.trigger("destroy"),t.trigger(O),e(w).off(F,t._captureEscape)}}),_.ui.plugin(m),_.ui.plugin(g),_.ui.plugin(v),_.TapCapture=j,_.containerBoundaries=r,D(_.ui,{Pane:K,PaneDimensions:G,Movable:f}),_.ui.Draggable.utils={autoScrollVelocity:u,scrollableViewPort:l,findScrollableParent:c}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.scroller.min",["kendo.fx.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=n.effects,r=i.ui,a=e.proxy,s=e.extend,l=r.Widget,d=n.Class,c=n.ui.Movable,u=n.ui.Pane,h=n.ui.PaneDimensions,p=o.Transition,f=o.Animation,m=Math.abs,g=500,v=.7,_=.96,b=10,w=55,k=.5,y=5,x="km-scroller-release",C="km-scroller-refresh",S="pull",T="change",D="resize",A="scroll",E=2,I=f.extend({init:function(e){var t=this;f.fn.init.call(t),s(t,e),t.userEvents.bind("gestureend",a(t.start,t)),t.tapCapture.bind("press",a(t.cancel,t))},enabled:function(){return this.movable.scale<this.dimensions.minScale},done:function(){return this.dimensions.minScale-this.movable.scale<.01},tick:function(){var e=this.movable;e.scaleWith(1.1),this.dimensions.rescale(e.scale)},onEnd:function(){var e=this.movable;e.scaleTo(this.dimensions.minScale),this.dimensions.rescale(e.scale)}}),M=f.extend({init:function(e){var t=this;f.fn.init.call(t),s(t,e,{transition:new p({axis:e.axis,movable:e.movable,onEnd:function(){t._end()}})}),t.tapCapture.bind("press",function(){t.cancel()}),t.userEvents.bind("end",a(t.start,t)),t.userEvents.bind("gestureend",a(t.start,t)),t.userEvents.bind("tap",a(t.onEnd,t))},onCancel:function(){this.transition.cancel()},freeze:function(e){var t=this;t.cancel(),t._moveTo(e)},onEnd:function(){var e=this;e.paneAxis.outOfBounds()?e._snapBack():e._end()},done:function(){return m(this.velocity)<1},start:function(e){var t,n=this;n.dimension.enabled&&(n.paneAxis.outOfBounds()?n.transition._started?(n.transition.cancel(),n.velocity=Math.min(e.touch[n.axis].velocity*n.velocityMultiplier,w),f.fn.start.call(n)):n._snapBack():(t=e.touch.id===E?0:e.touch[n.axis].velocity,n.velocity=Math.max(Math.min(t*n.velocityMultiplier,w),-w),n.tapCapture.captureNext(),f.fn.start.call(n)))},tick:function(){var e=this,t=e.dimension,n=e.paneAxis.outOfBounds()?k:e.friction,i=e.velocity*=n,o=e.movable[e.axis]+i;!e.elastic&&t.outOfBounds(o)&&(o=Math.max(Math.min(o,t.max),t.min),e.velocity=0),e.movable.moveAxis(e.axis,o)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_snapBack:function(){var e=this,t=e.dimension,n=e.movable[e.axis]>t.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:g,ease:p.easeOutExpo})}}),R=f.extend({init:function(e){var t=this;n.effects.Animation.fn.init.call(this),s(t,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return m(this.offset.y)<y&&m(this.offset.x)<y},onEnd:function(){this.moveTo(this.destination),this.callback&&this.callback.call()},setCoordinates:function(e,t){this.offset={},this.origin=e,this.destination=t},setCallback:function(e){e&&n.isFunction(e)?this.callback=e:e=t},_updateCoordinates:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}),F=d.extend({init:function(t){var n=this,i="x"===t.axis,o=e('<div class="km-touch-scrollbar km-'+(i?"horizontal":"vertical")+'-scrollbar" />');s(n,t,{element:o,elementSize:0,movable:new c(o),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:i?"width":"height"}),n.scrollMovable.bind(T,a(n.refresh,n)),n.container.append(o),t.alwaysVisible&&n.show()},refresh:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,o=e.scrollMovable,r=i/n.total,a=Math.round(-o[t]*r),s=Math.round(i*r);r>=1?this.element.css("display","none"):this.element.css("display",""),a+s>i?s=i-a:a<0&&(s+=a,a=0),e.elementSize!=s&&(e.element.css(e.size,s+"px"),e.elementSize=s),e.movable.moveAxis(t,a)},show:function(){this.element.css({opacity:v,visibility:"visible"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})}}),P=l.extend({init:function(i,o){var r,d,p,f,g,v,_,b,w,k=this;return l.fn.init.call(k,i,o),i=k.element,(k._native=k.options.useNative&&n.support.hasNativeScrolling)?(i.addClass("km-native-scroller").prepend('<div class="km-scroll-header"/>'),s(k,{scrollElement:i,fixedContainer:i.children().first()}),t):(i.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>'),r=i.children().eq(1),d=new n.TapCapture(i),p=new c(r),f=new h({element:r,container:i,forcedEnabled:k.options.zoom}),g=this.options.avoidScrolling,v=new n.UserEvents(i,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:k.options.zoom,supportDoubleTap:k.options.supportDoubleTap,start:function(t){f.refresh();var n=m(t.x.velocity),i=m(t.y.velocity),o=2*n>=i,r=e.contains(k.fixedContainer[0],t.event.target),a=2*i>=n;!r&&!g(t)&&k.enabled&&(f.x.enabled&&o||f.y.enabled&&a)?v.capture():v.cancel()}}),_=new u({movable:p,dimensions:f,userEvents:v,elastic:k.options.elastic}),b=new I({movable:p,dimensions:f,userEvents:v,tapCapture:d}),w=new R({moveTo:function(e){k.scrollTo(e.x,e.y)}}),p.bind(T,function(){k.scrollTop=-p.y,k.scrollLeft=-p.x,k.trigger(A,{scrollTop:k.scrollTop,scrollLeft:k.scrollLeft})}),k.options.mousewheelScrolling&&i.on("DOMMouseScroll mousewheel",a(this,"_wheelScroll")),s(k,{movable:p,dimensions:f,zoomSnapBack:b,animatedScroller:w,userEvents:v,pane:_,tapCapture:d,pulled:!1,enabled:!0,scrollElement:r,scrollTop:0,scrollLeft:0,fixedContainer:i.children().first()}),k._initAxis("x"),k._initAxis("y"),k._wheelEnd=function(){k._wheel=!1,k.userEvents.end(0,k._wheelY)},f.refresh(),k.options.pullToRefresh&&k._initPullToRefresh(),t)},_wheelScroll:function(e){if(!e.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var t=n.wheelDeltaY(e);t&&(this._wheelY+=t,this.userEvents.move(0,this._wheelY)),e.preventDefault()}},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,t){this.dimensions.y.virtualSize(e,t)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}},events:[S,A,D],_resize:function(){this._native||this.contentResized()},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.pullToRefresh&&t._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},contentResized:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},zoomOut:function(){var e=this.dimensions;e.refresh(),this._scale(e.fitScale),this.movable.moveTo(e.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(e,t){this._native?(n.scrollLeft(this.scrollElement,m(e)),this.scrollElement.scrollTop(m(t))):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:t}))},animatedScrollTo:function(e,t,n){var i,o;this._native?this.scrollTo(e,t):(i={x:this.movable.x,y:this.movable.y},o={x:e,y:t},this.animatedScroller.setCoordinates(i,o),this.animatedScroller.setCallback(n),this.animatedScroller.start())},pullHandled:function(){var e=this;e.refreshHint.removeClass(C),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd(),e.userEvents.cancel()},destroy:function(){l.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(e){this.dimensions.rescale(e),this.movable.scaleTo(e)},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=n.template(e.options.messages.pullTemplate),e.releaseTemplate=n.template(e.options.messages.releaseTemplate),e.refreshTemplate=n.template(e.options.messages.refreshTemplate),e.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span><span class="km-template">'+e.pullTemplate({})+"</span></span>"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(".km-template"),e.pane.y.bind("change",a(e._paneChange,e)),e.userEvents.bind("end",a(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x).addClass(C),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger("pull"))},_paneChange:function(){var e=this;e.movable.y/k>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(C).addClass(x),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t=this,n=t.movable,i=t.dimensions[e],o=t.tapCapture,r=t.pane[e],a=new F({axis:e,movable:n,dimension:i,container:t.element,alwaysVisible:t.options.visibleScrollHints});i.bind(T,function(){a.refresh()}),r.bind(T,function(){a.show()}),t[e+"inertia"]=new M({axis:e,paneAxis:r,movable:n,tapCapture:o,userEvents:t.userEvents,dimension:i,elastic:t.options.elastic,friction:t.options.friction||_,velocityMultiplier:t.options.velocityMultiplier||b,end:function(){a.hide(),t.trigger("scrollEnd",{axis:e,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft})}})}});r.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.groupable.min",["kendo.core.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n._outerWidth,r=n.attr,a=e.extend,s=e.each,l=e.proxy,d=!1,c="dir",u="field",h="title",p="asc",f="desc",m="group-sort",g=".kendoGroupable",v="change",_=n.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-i-sort-${(data.dir || "asc") == "asc" ? "asc-sm" : "desc-sm"}" title="(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})"></span>${data.title ? data.title: data.field}</a><a href="\\#" data-role="button" class="k-button k-button-icon k-flat"><span class="k-icon k-i-close"></span></a></div>',{useWithBlock:!1}),b=function(t){var i=t.attr(n.attr("title"));return i&&(i=n.htmlEncode(i)),e('<div class="k-header k-group-clue k-drag-clue" />').html(i||t.attr(n.attr("field"))).prepend('<span class="k-icon k-drag-status k-i-cancel"></span>')},w=e('<div class="k-grouping-dropclue"/>'),k=i.extend({init:function(s,u){var h,_,k=this,y=n.guid(),x=l(k._intializePositions,k),C=k._dropCuePositions=[];i.fn.init.call(k,s,u),d=n.support.isRtl(s),_=d?"right":"left",k.draggable=h=k.options.draggable||new n.ui.Draggable(k.element,{filter:k.options.draggableElements,hint:b,group:y}),k.groupContainer=e(k.options.groupContainer,k.element).kendoDropTarget({group:h.options.group,dragenter:function(e){k._canDrag(e.draggable.currentTarget)&&(e.draggable.hint.find(".k-drag-status").removeClass("k-i-cancel").addClass("k-i-plus"),w.css(_,0).appendTo(k.groupContainer))},dragleave:function(e){e.draggable.hint.find(".k-drag-status").removeClass("k-i-plus").addClass("k-i-cancel"),w.remove()},drop:function(t){var i,o=t.draggable.currentTarget,r=o.attr(n.attr("field")),s=o.attr(n.attr("title")),l=k.indicator(r),c=k._dropCuePositions,u=c[c.length-1],h=a({},k.options.sort,o.data(m)),p=h.dir;(o.hasClass("k-group-indicator")||k._canDrag(o))&&(u?(i=k._dropCuePosition(n.getOffset(w).left+parseInt(u.element.css("marginLeft"),10)*(d?-1:1)+parseInt(u.element.css("marginRight"),10)),i&&k._canDrop(e(l),i.element,i.left)&&(i.before?i.element.before(l||k.buildIndicator(r,s,p)):i.element.after(l||k.buildIndicator(r,s,p)),k._setIndicatorSortOptions(r,h),k._change())):(k.groupContainer.empty(),k.groupContainer.append(k.buildIndicator(r,s,p)),k._setIndicatorSortOptions(r,h),k._change()))}}).kendoDraggable({filter:"div.k-group-indicator",hint:b,group:h.options.group,dragcancel:l(k._dragCancel,k),dragstart:function(e){var t=e.currentTarget,n=parseInt(t.css("marginLeft"),10),i=t.position(),r=d?i.left-n:i.left+o(t);x(),w.css("left",r).appendTo(k.groupContainer),this.hint.find(".k-drag-status").removeClass("k-i-cancel").addClass("k-i-plus")},dragend:function(){k._dragEnd(this)},drag:l(k._drag,k)}).on("click"+g,".k-button",function(t){t.preventDefault(),k._removeIndicator(e(this).parent())}).on("click"+g,".k-link",function(t){var n=e(this).parent(),i=n.attr(r(c))===p?f:p;n.attr(r(c),i),k._change(),t.preventDefault()}),h.bind(["dragend","dragcancel","dragstart","drag"],{dragend:function(){k._dragEnd(this)},dragcancel:l(k._dragCancel,k),dragstart:function(e){var n,i,r;return k.options.allowDrag||k._canDrag(e.currentTarget)?(x(),C.length?(n=C[C.length-1].element,i=parseInt(n.css("marginRight"),10),r=n.position().left+o(n)+i):r=0,t):(e.preventDefault(),t)},drag:l(k._drag,k)}),k.dataSource=k.options.dataSource,k.dataSource&&k._refreshHandler?k.dataSource.unbind(v,k._refreshHandler):k._refreshHandler=l(k.refresh,k),k.dataSource&&(k.dataSource.bind("change",k._refreshHandler),k.refresh())},refresh:function(){var t,n=this,i=n.dataSource,o=i.group()||[],l=r(u),d=r(h);n.groupContainer&&(n.groupContainer.empty(),s(o,function(i,o){var r=o.field,s=o.dir,c=n.element.find(n.options.filter).filter(function(){return e(this).attr(l)===r});t=n.buildIndicator(r,c.attr(d),s),n.groupContainer.append(t),n._setIndicatorSortOptions(r,a({},n.options.sort,{dir:s,compare:o.compare}))})),n._invalidateGroupContainer()},destroy:function(){var e=this;i.fn.destroy.call(e),e.groupContainer.off(g),e.groupContainer.data("kendoDropTarget")&&e.groupContainer.data("kendoDropTarget").destroy(),e.groupContainer.data("kendoDraggable")&&e.groupContainer.data("kendoDraggable").destroy(),e.options.draggable||e.draggable.destroy(),e.dataSource&&e._refreshHandler&&(e.dataSource.unbind("change",e._refreshHandler),e._refreshHandler=null),e.groupContainer=e.element=e.draggable=null},events:["change"],options:{name:"Groupable",filter:"th",draggableElements:"th",messages:{empty:"Drag a column header and drop it here to group by that column"},sort:{dir:p,compare:null}},indicator:function(t){var i=e(".k-group-indicator",this.groupContainer);return e.grep(i,function(i){return e(i).attr(n.attr("field"))===t})[0]},buildIndicator:function(e,t,i){var o=this,r=_({ns:n.ns,field:e.replace(/"/g,"'"),title:t,dir:i||(o.options.sort||{}).dir||p});return r},_setIndicatorSortOptions:function(t,n){var i=e(this.indicator(t));i.data(m,n)},aggregates:function(){var t,i,o,r=this;return r.element.find(r.options.filter).map(function(){var r=e(this),a=r.attr(n.attr("aggregates")),s=r.attr(n.attr("field"));if(a&&""!==a)for(t=a.split(","),a=[],i=0,o=t.length;i<o;i++)a.push({field:s,aggregate:t[i]});return a}).toArray()},descriptors:function(){var t,i=this,o=e(".k-group-indicator",i.groupContainer),r=i.aggregates();return e.map(o,function(o){var a,s;return o=e(o),t=o.attr(n.attr("field")),a=i.options.sort||{},s=o.data(m)||{},{field:t,dir:o.attr(n.attr("dir")),aggregates:r||[],compare:s.compare||a.compare}})},_removeIndicator:function(e){var t=this;e.off(),e.removeData(),e.remove(),t._invalidateGroupContainer(),t._change()},_change:function(){var e,n=this;if(n.dataSource){if(e=n.descriptors(),n.trigger("change",{groups:e}))return n.refresh(),t;n.dataSource.group(e)}},_dropCuePosition:function(t){var n,i,r,a,s,l=this._dropCuePositions;if(w.is(":visible")&&0!==l.length)return t=Math.ceil(t),n=l[l.length-1],i=n.left,r=n.right,a=parseInt(n.element.css("marginLeft"),10),s=parseInt(n.element.css("marginRight"),10),t>=r&&!d||t<i&&d?t={left:n.element.position().left+(d?-a:o(n.element)+s),element:n.element,before:!1}:(t=e.grep(l,function(e){return e.left<=t&&t<=e.right||d&&t>e.right})[0],t&&(t={left:d?t.element.position().left+o(t.element)+s:t.element.position().left-a,element:t.element,before:!0})),t},_drag:function(e){var t=this._dropCuePosition(e.x.location);t&&w.css({left:t.left,right:"auto"})},_canDrag:function(e){var t=e.attr(n.attr("field"));return"false"!=e.attr(n.attr("groupable"))&&t&&(e.hasClass("k-group-indicator")||!this.indicator(t))},_canDrop:function(e,t,n){var i=e.next(),o=e[0]!==t[0]&&(!i[0]||t[0]!==i[0]||!d&&n>i.position().left||d&&n<i.position().left);return o},_dragEnd:function(t){var i=this,o=t.currentTarget.attr(n.attr("field")),r=i.indicator(o);t!==i.options.draggable&&!t.dropped&&r&&i._removeIndicator(e(r)),i._dragCancel()},_dragCancel:function(){w.remove(),this._dropCuePositions=[]},_intializePositions:function(){var t,i=this,r=e(".k-group-indicator",i.groupContainer);i._dropCuePositions=e.map(r,function(i){return i=e(i),t=n.getOffset(i).left,{left:parseInt(t,10),right:parseInt(t+o(i),10),element:i}})},_invalidateGroupContainer:function(){var e=this.groupContainer;e&&e.is(":empty")&&e.html(this.options.messages.empty)}});n.ui.plugin(k)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.reorderable.min",["kendo.core.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(t,n){t=e(t),n?t.find(".k-drag-status").removeClass("k-i-plus").addClass("k-i-cancel"):t.find(".k-drag-status").removeClass("k-i-cancel").addClass("k-i-plus")}var i=window.kendo,o=i._outerWidth,r=i._outerHeight,a=i.getOffset,s=i.ui.Widget,l="change",d="k-reorderable",c=s.extend({init:function(t,c){var u,h=this,p=i.guid()+"-reorderable";s.fn.init.call(h,t,c),t=h.element.addClass(d),c=h.options,h.draggable=u=c.draggable||new i.ui.Draggable(t,{group:p,autoScroll:!0,filter:c.filter,hint:c.hint}),h.reorderDropCue=e('<div class="k-reorder-cue"></div></div>'),t.find(u.options.filter).kendoDropTarget({group:u.options.group,dragenter:function(e){var t,i,s,l;h._draggable&&(t=this.element,s=!h._dropTargetAllowed(t)||h._isLastDraggable(),n(e.draggable.hint,s),s||(i=a(t),l=i.left,c.inSameContainer&&!c.inSameContainer({source:t,target:h._draggable,sourceIndex:h._index(t),targetIndex:h._index(h._draggable)})?h._dropTarget=t:h._index(t)>h._index(h._draggable)&&(l+=o(t)),h.reorderDropCue.css({height:r(t),top:i.top,left:l}).appendTo(document.body)))},dragleave:function(e){n(e.draggable.hint,!0),h.reorderDropCue.remove(),h._dropTarget=null},drop:function(){var e,t;h._dropTarget=null,h._draggable&&(e=this.element,t=h._draggable,h._dropTargetAllowed(e)&&!h._isLastDraggable()&&h.trigger(l,{element:h._draggable,target:e,oldIndex:h._index(t),newIndex:h._index(e),position:a(h.reorderDropCue).left>a(e).left?"after":"before"}))}}),u.bind(["dragcancel","dragend","dragstart","drag"],{dragcancel:function(){h.reorderDropCue.remove(),h._draggable=null,h._elements=null},dragend:function(){h.reorderDropCue.remove(),h._draggable=null,h._elements=null},dragstart:function(e){h._draggable=e.currentTarget,h._elements=h.element.find(h.draggable.options.filter)},drag:function(e){var t,n;h._dropTarget&&!this.hint.find(".k-drag-status").hasClass("k-i-cancel")&&(t=a(h._dropTarget).left,n=o(h._dropTarget),h.reorderDropCue.css(e.pageX>t+n/2?{left:t+n}:{left:t}))}})},options:{name:"Reorderable",filter:"*"},events:[l],_isLastDraggable:function(){var e,t=this.options.inSameContainer,n=this._draggable[0],i=this._elements.get(),o=!1;if(!t)return!1;for(;!o&&i.length>0;)e=i.pop(),o=n!==e&&t({source:n,target:e,sourceIndex:this._index(n),targetIndex:this._index(e)});return!o},_dropTargetAllowed:function(e){var t=this.options.inSameContainer,n=this.options.dragOverContainers,i=this._draggable;return i[0]!==e[0]&&(!t||!n||(!!t({source:i,target:e,sourceIndex:this._index(i),targetIndex:this._index(e)})||n(this._index(i),this._index(e))))},_index:function(e){return this._elements.index(e)},destroy:function(){var t=this;s.fn.destroy.call(t),t.element.find(t.draggable.options.filter).each(function(){var t=e(this);t.data("kendoDropTarget")&&t.data("kendoDropTarget").destroy()}),t.draggable&&(t.draggable.destroy(),t.draggable.element=t.draggable=null),t.elements=t.reorderDropCue=t._elements=t._draggable=null}});i.ui.plugin(c)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.resizable.min",["kendo.core.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r=e.proxy,a=n.isFunction,s=e.extend,l="horizontal",d="vertical",c="start",u="resize",h="resizeend",p=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e,t),n.orientation=n.options.orientation.toLowerCase()!=d?l:d,n._positionMouse=n.orientation==l?"x":"y",n._position=n.orientation==l?"left":"top",n._sizingDom=n.orientation==l?"outerWidth":"outerHeight",n.draggable=new i.Draggable(t.draggableElement||e,{distance:1,filter:t.handle,drag:r(n._resize,n),dragcancel:r(n._cancel,n),dragstart:r(n._start,n),dragend:r(n._stop,n)}),n.userEvents=n.draggable.userEvents},events:[u,h,c],options:{name:"Resizable",orientation:l},resize:function(){},_max:function(e){var n=this,i=n.hint?n.hint[n._sizingDom]():0,o=n.options.max;return a(o)?o(e):o!==t?n._initialElementPosition+o-i:o},_min:function(e){var n=this,i=n.options.min;return a(i)?i(e):i!==t?n._initialElementPosition+i:i},_start:function(t){var n=this,i=n.options.hint,o=e(t.currentTarget);n._initialElementPosition=o.position()[n._position],n._initialMousePosition=t[n._positionMouse].startLocation,i&&(n.hint=a(i)?e(i(o)):i,n.hint.css({position:"absolute"}).css(n._position,n._initialElementPosition).appendTo(n.element)),n.trigger(c,t),n._maxPosition=n._max(t),n._minPosition=n._min(t),e(document.body).css("cursor",o.css("cursor"))},_resize:function(e){var n,i=this,o=i._maxPosition,r=i._minPosition,a=i._initialElementPosition+(e[i._positionMouse].location-i._initialMousePosition);n=r!==t?Math.max(r,a):a,i.position=n=o!==t?Math.min(o,n):n,i.hint&&i.hint.toggleClass(i.options.invalidClass||"",n==o||n==r).css(i._position,n),i.resizing=!0,i.trigger(u,s(e,{position:n}))},_stop:function(t){var n=this;n.hint&&n.hint.remove(),n.resizing=!1,n.trigger(h,s(t,{position:n.position})),e(document.body).css("cursor","")},_cancel:function(e){var n=this;n.hint&&(n.position=t,n.hint.css(n._position,n._initialElementPosition),n._stop(e))},destroy:function(){var e=this;o.fn.destroy.call(e),e.draggable&&e.draggable.destroy()},press:function(e){if(e){var t=e.position(),n=this;n.userEvents.press(t.left,t.top,e[0]),n.targetPosition=t,n.target=e}},move:function(e){var n=this,i=n._position,o=n.targetPosition,r=n.position;r===t&&(r=o[i]),o[i]=r+e,n.userEvents.move(o.left,o.top)},end:function(){this.userEvents.end(),this.target=this.position=t}});n.ui.plugin(p)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.sortable.min",["kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e){return e.clone()}function o(e){return e.clone().removeAttr("id").css("visibility","hidden")}var r=window.kendo,a=r.ui.Widget,s=r._outerWidth,l=r._outerHeight,d="start",c="beforeMove",u="move",h="end",p="change",f="cancel",m="sort",g="remove",v="receive",_=">*",b=-1,w=a.extend({init:function(e,t){var n=this;a.fn.init.call(n,e,t),n.options.placeholder||(n.options.placeholder=o),n.options.hint||(n.options.hint=i),n.draggable=n._createDraggable()},events:[d,c,u,h,p,f],options:{name:"Sortable",hint:null,placeholder:null,filter:_,holdToDrag:!1,disabled:null,container:null,connectWith:null,handler:null,cursorOffset:null,axis:null,ignore:null,autoScroll:!1,cursor:"auto",moveOnDragEnter:!1},destroy:function(){this.draggable.destroy(),a.fn.destroy.call(this)},_createDraggable:function(){var t=this,n=t.element,i=t.options;return new r.ui.Draggable(n,{filter:i.filter,hint:r.isFunction(i.hint)?i.hint:e(i.hint),holdToDrag:i.holdToDrag,container:i.container?e(i.container):null,cursorOffset:i.cursorOffset,axis:i.axis,ignore:i.ignore,autoScroll:i.autoScroll,dragstart:e.proxy(t._dragstart,t),dragcancel:e.proxy(t._dragcancel,t),drag:e.proxy(t._drag,t),dragend:e.proxy(t._dragend,t)})},_dragstart:function(t){var n=this.draggedElement=t.currentTarget,i=this.options.disabled,o=this.options.handler,a=this.options.placeholder,s=this.placeholder=e(r.isFunction(a)?a.call(this,n):a);i&&n.is(i)?t.preventDefault():o&&!e(t.initialTarget).is(o)?t.preventDefault():this.trigger(d,{item:n,draggableEvent:t})?t.preventDefault():(n.css("display","none"),n.before(s),this._setCursor())},_dragcancel:function(){this._cancel(),this.trigger(f,{item:this.draggedElement}),this._resetCursor()},_drag:function(n){var i,o,r,a,s,l=this.draggedElement,d=this._findTarget(n),c={left:n.x.location,top:n.y.location},u={x:n.x.delta,y:n.y.delta},h=this.options.axis,p=this.options.moveOnDragEnter,f={item:l,list:this,draggableEvent:n};if("x"===h||"y"===h)return this._movementByAxis(h,c,u[h],f),t;if(d){if(i=this._getElementCenter(d.element),o={left:Math.round(c.left-i.left),top:Math.round(c.top-i.top)},e.extend(f,{target:d.element}),d.appendToBottom)return this._movePlaceholder(d,null,f),t;if(d.appendAfterHidden&&this._movePlaceholder(d,"next",f),this._isFloating(d.element)?u.x<0&&p||!p&&o.left<0?r="prev":(u.x>0&&p||!p&&o.left>0)&&(r="next"):u.y<0&&p||!p&&o.top<0?r="prev":(u.y>0&&p||!p&&o.top>0)&&(r="next"),r){for(s="prev"===r?jQuery.fn.prev:jQuery.fn.next,a=s.call(d.element);a.length&&!a.is(":visible");)a=s.call(a);a[0]!=this.placeholder[0]&&this._movePlaceholder(d,r,f)}}},_dragend:function(n){var i,o,r,a,s=this.placeholder,l=this.draggedElement,d=this.indexOf(l),c=this.indexOf(s),u=this.options.connectWith;return this._resetCursor(),r={action:m,item:l,oldIndex:d,newIndex:c,draggableEvent:n},c>=0?o=this.trigger(h,r):(i=s.parents(u).getKendoSortable(),r.action=g,a=e.extend({},r,{action:v,oldIndex:b,newIndex:i.indexOf(s)}),o=!(!this.trigger(h,r)&&!i.trigger(h,a))),o||c===d?(this._cancel(),t):(s.replaceWith(l),l.show(),this.draggable.dropped=!0,r={action:this.indexOf(l)!=b?m:g,item:l,oldIndex:d,newIndex:this.indexOf(l),draggableEvent:n},this.trigger(p,r),
i&&(a=e.extend({},r,{action:v,oldIndex:b,newIndex:i.indexOf(l)}),i.trigger(p,a)),t)},_findTarget:function(n){var i,o,r=this._findElementUnderCursor(n),a=this.options.connectWith;return e.contains(this.element[0],r)?(i=this.items(),o=i.filter(r)[0]||i.has(r)[0],o?{element:e(o),sortable:this}:null):this.element[0]==r&&this._isEmpty()?{element:this.element,sortable:this,appendToBottom:!0}:this.element[0]==r&&this._isLastHidden()?(o=this.items().eq(0),{element:o,sortable:this,appendAfterHidden:!0}):a?this._searchConnectedTargets(r,n):t},_findElementUnderCursor:function(e){var t=r.elementUnderCursor(e),i=e.sender;return n(i.hint[0],t)&&(i.hint.hide(),t=r.elementUnderCursor(e),t||(t=r.elementUnderCursor(e)),i.hint.show()),t},_searchConnectedTargets:function(t,n){var i,o,r,a,s=e(this.options.connectWith);for(a=0;a<s.length;a++)if(i=s.eq(a).getKendoSortable(),e.contains(s[a],t)){if(i)return o=i.items(),r=o.filter(t)[0]||o.has(t)[0],r?(i.placeholder=this.placeholder,{element:e(r),sortable:i}):null}else if(s[a]==t){if(i&&i._isEmpty())return{element:s.eq(a),sortable:i,appendToBottom:!0};if(this._isCursorAfterLast(i,n))return r=i.items().last(),{element:r,sortable:i}}},_isCursorAfterLast:function(e,t){var n,i,o=e.items().last(),a={left:t.x.location,top:t.y.location};return n=r.getOffset(o),n.top+=l(o),n.left+=s(o),i=this._isFloating(o)?n.left-a.left:n.top-a.top,i<0},_movementByAxis:function(t,n,i,o){var r,a="x"===t?n.left:n.top,s=i<0?this.placeholder.prev():this.placeholder.next(),l=this.items();s.length&&!s.is(":visible")&&(s=i<0?s.prev():s.next()),l.filter(s).length&&(e.extend(o,{target:s}),r=this._getElementCenter(s),r&&(r="x"===t?r.left:r.top),s.length&&i<0&&a-r<0?this._movePlaceholder({element:s,sortable:this},"prev",o):s.length&&i>0&&a-r>0&&this._movePlaceholder({element:s,sortable:this},"next",o))},_movePlaceholder:function(e,t,n){var i=this.placeholder;e.sortable.trigger(c,n)||(t?"prev"===t?e.element.before(i):"next"===t&&e.element.after(i):e.element.append(i),e.sortable.trigger(u,n))},_setCursor:function(){var t,n=this.options.cursor;n&&"auto"!==n&&(t=e(document.body),this._originalCursorType=t.css("cursor"),t.css({cursor:n}),this._cursorStylesheet||(this._cursorStylesheet=e("<style>* { cursor: "+n+" !important; }</style>")),this._cursorStylesheet.appendTo(t))},_resetCursor:function(){this._originalCursorType&&(e(document.body).css("cursor",this._originalCursorType),this._originalCursorType=null,this._cursorStylesheet.remove())},_getElementCenter:function(e){var t=e.length?r.getOffset(e):null;return t&&(t.top+=l(e)/2,t.left+=s(e)/2),t},_isFloating:function(e){var t=/left|right/.test(e.css("float")),n=/inline|table-cell/.test(e.css("display")),i=/flex/.test(e.parent().css("display"))&&(/row|row-reverse/.test(e.parent().css("flex-direction"))||!e.parent().css("flex-direction"));return t||n||i},_cancel:function(){this.draggedElement.show(),this.placeholder.remove(),this.draggable.dropped=!0},_items:function(){var e,t=this.options.filter;return e=t?this.element.find(t):this.element.children()},indexOf:function(e){var t=this._items(),n=this.placeholder,i=this.draggedElement;return n&&e[0]==n[0]?t.not(i).index(e):t.not(n).index(e)},items:function(){var e=this.placeholder,t=this._items();return e&&(t=t.not(e)),t},_isEmpty:function(){return!this.items().length},_isLastHidden:function(){return 1===this.items().length&&this.items().is(":hidden")}});r.ui.plugin(w)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.selectable.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e,t){if(!e.is(":visible"))return!1;var n=o.getOffset(e),i=t.left+t.width,r=t.top+t.height;return n.right=n.left+o._outerWidth(e),n.bottom=n.top+o._outerHeight(e),!(n.left>i||n.right<t.left||n.top>r||n.bottom<t.top)}var i,o=window.kendo,r=o.ui.Widget,a=e.proxy,s=Math.abs,l="aria-selected",d="k-state-selected",c="k-state-selecting",u="k-selectable",h="change",p=".kendoSelectable",f="unselect",m="k-state-unselecting",g="input,a,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up,label.k-checkbox-label.k-no-text,.k-icon.k-i-collapse,.k-icon.k-i-expand,span.k-numeric-wrap,.k-focusable",v=o.support.browser.msie,_=!1;!function(e){!function(){e('<div class="parent"><span></span></div>').on("click",">*",function(){_=!0}).find("span").trigger("click").end().off()}()}(e),i=r.extend({init:function(t,n){var i,s=this;r.fn.init.call(s,t,n),s._marquee=e("<div class='k-marquee'><div class='k-marquee-color'></div></div>"),s._lastActive=null,s.element.addClass(u),s.relatedTarget=s.options.relatedTarget,i=s.options.multiple,this.options.aria&&i&&s.element.attr("aria-multiselectable",!0),s.userEvents=new o.UserEvents(s.element,{global:!0,allowSelection:!0,filter:(_?"":"."+u+" ")+s.options.filter,tap:a(s._tap,s),touchAction:i?"none":"pan-x pan-y"}),i&&s.userEvents.bind("start",a(s._start,s)).bind("move",a(s._move,s)).bind("end",a(s._end,s)).bind("select",a(s._select,s))},events:[h,f],options:{name:"Selectable",filter:">*",inputSelectors:g,multiple:!1,relatedTarget:e.noop},_isElement:function(e){var t,n=this.element,i=n.length,o=!1;for(e=e[0],t=0;t<i;t++)if(n[t]===e){o=!0;break}return o},_tap:function(t){var n,i=e(t.target),o=this,r=t.event.ctrlKey||t.event.metaKey,a=o.options.multiple,s=a&&t.event.shiftKey,l=t.event.which,c=t.event.button;!o._isElement(i.closest("."+u))||l&&3==l||c&&2==c||this._allowSelection(t.event.target)&&(n=i.hasClass(d),a&&r||o.clear(),i=i.add(o.relatedTarget(i)),s?o.selectRange(o._firstSelectee(),i,t):(n&&r?(o._unselect(i),o._notify(h,t)):o.value(i,t),o._lastActive=o._downTarget=i))},_start:function(n){var i,o=this,r=e(n.target),a=r.hasClass(d),s=n.event.ctrlKey||n.event.metaKey;if(this._allowSelection(n.event.target)){if(o._downTarget=r,!o._isElement(r.closest("."+u)))return o.userEvents.cancel(),t;o.options.useAllItems?o._items=o.element.find(o.options.filter):(i=r.closest(o.element),o._items=i.find(o.options.filter)),n.sender.capture(),o._marquee.appendTo(document.body).css({left:n.x.client+1,top:n.y.client+1,width:0,height:0}),s||o.clear(),r=r.add(o.relatedTarget(r)),a&&(o._selectElement(r,!0),s&&r.addClass(m))}},_move:function(e){var t=this,n={left:e.x.startLocation>e.x.location?e.x.location:e.x.startLocation,top:e.y.startLocation>e.y.location?e.y.location:e.y.startLocation,width:s(e.x.initialDelta),height:s(e.y.initialDelta)};t._marquee.css(n),t._invalidateSelectables(n,e.event.ctrlKey||e.event.metaKey),e.preventDefault()},_end:function(e){var t,n=this;n._marquee.remove(),n._unselect(n.element.find(n.options.filter+"."+m)).removeClass(m),t=n.element.find(n.options.filter+"."+c),t=t.add(n.relatedTarget(t)),n.value(t,e),n._lastActive=n._downTarget,n._items=null},_invalidateSelectables:function(e,t){var i,o,r,a,s=this._downTarget[0],l=this._items;for(i=0,o=l.length;i<o;i++)a=l.eq(i),r=a.add(this.relatedTarget(a)),n(a,e)?a.hasClass(d)?t&&s!==a[0]&&r.removeClass(d).addClass(m):a.hasClass(c)||a.hasClass(m)||r.addClass(c):a.hasClass(c)?r.removeClass(c):t&&a.hasClass(m)&&r.removeClass(m).addClass(d)},value:function(e,n){var i=this,o=a(i._selectElement,i);return e?(e.each(function(){o(this)}),i._notify(h,n),t):i.element.find(i.options.filter+"."+d)},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter)[0])},_selectElement:function(t,n){var i=e(t),o=!n&&this._notify("select",{element:t});i.removeClass(c),o||(i.addClass(d),this.options.aria&&i.attr(l,!0))},_notify:function(e,t){return t=t||{},this.trigger(e,t)},_unselect:function(e){if(!this.trigger(f,{element:e}))return e.removeClass(d),this.options.aria&&e.attr(l,!1),e},_select:function(t){this._allowSelection(t.event.target)&&(!v||v&&!e(o._activeElement()).is(this.options.inputSelectors))&&t.preventDefault()},_allowSelection:function(t){return!e(t).is(this.options.inputSelectors)||(this.userEvents.cancel(),this._downTarget=null,!1)},resetTouchEvents:function(){this.userEvents.cancel()},clear:function(){var e=this.element.find(this.options.filter+"."+d);this._unselect(e)},selectRange:function(t,n,i){var o,r,a,s=this;for(s.clear(),s.element.length>1&&(a=s.options.continuousItems()),a&&a.length||(a=s.element.find(s.options.filter)),t=e.inArray(e(t)[0],a),n=e.inArray(e(n)[0],a),t>n&&(r=t,t=n,n=r),s.options.useAllItems||(n+=s.element.length-1),o=t;o<=n;o++)s._selectElement(a[o]);s._notify(h,i)},destroy:function(){var e=this;r.fn.destroy.call(e),e.element.off(p),e.userEvents.destroy(),e._marquee=e._lastActive=e.element=e.userEvents=null}}),i.parseOptions=function(e){var t="string"==typeof e&&e.toLowerCase();return{multiple:t&&t.indexOf("multiple")>-1,cell:t&&t.indexOf("cell")>-1}},o.ui.plugin(i)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("chat/messageBox.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=e.proxy,a=".",s=".kendoChat",l=n.keys,d='<svg version="1.1" ixmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><path d="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z"/></svg>',c='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><g>   <path d="M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"/>   <path d="M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"/>   <path d="M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"/></g></svg>',u={input:"k-input",button:"k-button",buttonFlat:"k-flat",buttonIcon:"k-button-icon",buttonSend:"k-button-send",buttonToggle:"k-button-toggle",iconAdd:"k-icon k-i-add",hidden:"k-hidden"},h=i.extend({init:function(e,t){i.fn.init.call(this,e,t),this._wrapper(),this._attachEvents(),this._typing=!1},events:[],options:{messages:{placeholder:"Type a message...",toggleButton:"Toggle toolbar",sendButton:"Send message"}},destroy:function(){i.fn.destroy.call(this),this.input&&(this.input.off(s),this.input.remove(),this.input=null),this.element.off(s),this.element.empty()},_wrapper:function(){var t=h.styles,i=this.options,o=i.messages,r="inputId_"+n.guid();e("<label>").addClass(t.hidden).html(o.placeholder).attr("for",r).appendTo(this.element),this.input=e("<input type='text'>").addClass(t.input).attr("id",r).attr("placeholder",o.placeholder).appendTo(this.element),i.toolbar&&i.toolbar.toggleable&&i.toolbar.buttons&&i.toolbar.buttons.length&&e("<button>").addClass(t.button).addClass(t.buttonFlat).addClass(t.buttonIcon).addClass(t.buttonToggle).attr("type","button").append(e(c)).appendTo(this.element).attr("title",o.toggleButton).attr("aria-label",o.toggleButton),e("<button>").addClass(t.button).addClass(t.buttonFlat).addClass(t.buttonIcon).addClass(t.buttonSend).append(e(d)).appendTo(this.element).attr("title",o.sendButton).attr("aria-label",o.sendButton)},_attachEvents:function(){var e=h.styles;this.input.on("keydown"+s,r(this._keydown,this)).on("input"+s,r(this._input,this)).on("focusout"+s,r(this._inputFocusout,this)),this.element.on("click"+s,a+e.buttonSend,r(this._buttonClick,this)),this.element.on("click"+s,a+e.buttonToggle,r(this._toggleToolbar,this))},_input:function(){var e=this.input.val(),t=e.length>0;this._triggerTyping(t)},_keydown:function(e){var t=e.keyCode;switch(t){case l.ENTER:e.preventDefault(),this._sendMessage()}},_buttonClick:function(e){e.preventDefault(),this._sendMessage()},_sendMessage:function(){var e,t=this.input.val();t.length&&(this._triggerTyping(!1),e={text:t},this.trigger("sendMessage",e),this.input.val(""))},_inputFocusout:function(){this._triggerTyping(!1)},_triggerTyping:function(e){e?this._typing||(this.trigger("typingStart",{}),this._typing=!0):this._typing&&(this.trigger("typingEnd",{}),this._typing=!1)},_toggleToolbar:function(e){this.trigger("toggleToolbar",{originalEvent:e})}});o(!0,h,{styles:u}),o(n,{chat:{ChatMessageBox:h}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("chat/toolbar.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=e.proxy,a=".",s=".kendoChat",l="kButtonName",d="chatToolbarScrollLeft",c="chatToolbarScrollRight",u=":visible",h={effects:"expand:vertical",duration:200},p={expand:{show:!0},collapse:{hide:!0}},f={button:"k-button",buttonFlat:"k-flat",buttonList:"k-button-list",scrollButton:"k-scroll-button",scrollButtonLeft:"k-scroll-button-left",scrollButtonRight:"k-scroll-button-right",scrollButtonLeftIcon:"k-icon k-i-arrow-chevron-left",scrollButtonRightIcon:"k-icon k-i-arrow-chevron-right",buttonIcon:"k-button-icon"},m=i.extend({init:function(e,t){var n,a;t=o({},t,{name:"ChatToolbar"}),n=t.toolbar,a=n.buttons&&n.buttons.length,i.fn.init.call(this,e,t),a&&this._createButtonList(),a&&n.scrollable&&this.buttonsWidth()>this.element.width()&&this._initScrolling(),this._setupAnimation(),a&&n.toggleable&&this.toggle(!0),this.element.on("click"+s,r(this._onClick,this))},events:["click"],destroy:function(){i.fn.destroy.call(this),this.element.off(s),this.element.empty()},_createButtonList:function(){var t,n,i=this,o=m.styles,r=i.options.toolbar.buttons,a=e("<div class='"+o.buttonList+"'></div>");for(t=0;t<r.length;t++)n=i._createButton(r[t]),a.append(n);a.appendTo(this.element),this.buttonList=a},_createButton:function(t){var n=m.styles,i=e("<button>");return"string"==typeof t&&(t={name:t}),i.attr(t.attr||{}).attr("title",t.text||t.name).attr("aria-label",t.text||t.name).attr("type","button").addClass(t.name).data(l,t.name).addClass(n.button),t.iconClass&&(i.addClass(n.buttonIcon),i.prepend("<span class='"+t.iconClass+"'></span>")),i},_onClick:function(t){var n=m.styles,i=e(t.target).closest(a+n.button);i.is(a+n.scrollButton)&&!this._scrolling&&this._scroll(i.data(l)),i.data(l)&&this.trigger("click",{button:i[0],name:i.data(l),originalEvent:t})},_initScrolling:function(){var e=m.styles;this.scrollButtonLeft=this._createButton({name:d,iconClass:e.scrollButtonLeftIcon,attr:{"class":e.scrollButton+" "+e.scrollButtonLeft}}),this.scrollButtonRight=this._createButton({name:c,iconClass:e.scrollButtonRightIcon,attr:{"class":e.scrollButton+" "+e.scrollButtonRight}}),this.element.prepend(this.scrollButtonLeft),this.element.append(this.scrollButtonRight),this._refreshScrollButtons(),this.element.on("keydown"+s,r(this._refreshScrollButtons,this))},_scroll:function(e){var t=this,i=t.buttonWidth(),o=this.maxScrollSize(),r=e===d?i*-1:i,a=this.currentScrollLeft(),s=a+r;s=Math.min(Math.max(s,0),o),e!==d&&e!==c||(n.scrollLeft(t.buttonList,s),t._refreshScrollButtons(s))},_refreshScrollButtons:function(e){var n=this.maxScrollSize(),i=e===t||isNaN(parseInt(e,10))?this.currentScrollLeft():e;(this.scrollButtonLeft||this.scrollButtonRight)&&(this.scrollButtonLeft.toggle(0!==i),this.scrollButtonRight.toggle(i!==n))},_setupAnimation:function(){var e=this.options.toolbar.animation,t=o({},h),n=o({reverse:!0,hide:!0},h);e=e===!1?o(!0,{},p):o(!0,{expand:t,collapse:n},e),this.options.toolbar.animation=e},_animationComplete:function(){this._refreshScrollButtons()},currentScrollLeft:function(){return Math.round(n.scrollLeft(this.buttonList))},maxScrollSize:function(){return Math.round(this.buttonList[0].scrollWidth-this.buttonList[0].clientWidth)},buttons:function(){var e=m.styles;return this.buttonList?this.buttonList.children(a+e.button):null},buttonWidth:function(){return Math.round(this.buttons().last().outerWidth(!0))},buttonsWidth:function(){var e=0;return this.buttons()&&(e=this.buttonWidth()*this.buttons().length),e},toggle:function(e){var t=this.options.toolbar.animation;e&&(t=o(!0,{},p)),t.expand.complete=r(this._animationComplete,this),t.collapse.complete=r(this._animationComplete,this),this.element.is(u)?this.element.kendoStop().kendoAnimate(t.collapse):this.element.kendoStop().kendoAnimate(t.expand)}});o(!0,m,{styles:f}),o(n.chat,{ChatToolBar:m})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("chat/view.min",["kendo.core.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n,i,o,r,a=window.kendo,s=a.ui.Widget,l=e.extend,d=e.proxy,c=".",u=" ",h=".kendoChat",p=a.template('<div #:text# class="#=styles.messageGroup# #= url ? "" : styles.noAvatar #"><p class="#=styles.author#">#:text#</p># if (url) { #<img src="#=url#" alt="#:text#" class="#=styles.avatar#"># } #</div>'),f=a.template('<div me class="#=styles.messageGroup# #=styles.self# #= url ? "" : styles.noAvatar #"># if (url) { #<img src="#=url#" alt="#:text#" class="#=styles.avatar#"># } #</div>'),m=a.template('<div class="#=styles.message#"><time class="#=styles.messageTime#">#= kendo.toString(kendo.parseDate(timestamp), "HH:mm:ss") #</time><div class="#=styles.bubble#">#:text#</div></div>'),g=a.template('<div class="#=styles.messageListContent# #=styles.typingIndicatorBubble#"><p class="#=styles.author#">#:text#</p><div class="#=styles.message#"><div class="#=styles.bubble#"><div class="#=styles.typingIndicator#"><span></span><span></span><span></span></div></div></div></div>'),v=a.template('<div class="#=styles.suggestedActions#"># for (var i = 0; i < suggestedActions.length; i++) { #<span class="#=styles.suggestedAction#" data-value="#:suggestedActions[i].value#">#:suggestedActions[i].title#</span># } #</div>'),_=a.template('<div class="#=styles.card# #=styles.cardRich#"># if (typeof images !== "undefined" && images.length > 0) { #<img src="#:images[0].url#" alt="#:images[0].alt#" class="#=styles.cardImage#" /># } #<div class="#=styles.cardBody#"># if (typeof title !== "undefined") { #<h5 class="#=styles.cardTitle#">#:title#</h5># } ## if (typeof subtitle !== "undefined") { #<h6 class="#=styles.cardSubtitle#">#:subtitle#</h6># } ## if (typeof text !== "undefined") { #<p>#:text#</p># } #</div># if (typeof buttons !== "undefined" && buttons.length > 0) { #<div class="#=styles.cardActions# #=styles.cardActionsVertical#"># for (var i = 0; i < buttons.length; i++) { #<span class="#=styles.cardAction#"><span class="#=styles.button# #=styles.buttonPrimary#" data-value="#:buttons[i].value#">#:buttons[i].title#</span></span># } #</div># } #</div>');l(a.chat,{Templates:{},Components:{}}),a.chat.registerTemplate=function(e,t){a.chat.Templates[e]=a.template(t)},a.chat.getTemplate=function(e){return a.chat.Templates[e]||m},a.chat.registerTemplate("text",m),a.chat.registerTemplate("message",m),a.chat.registerTemplate("typing",g),a.chat.registerTemplate("suggestedAction",v),a.chat.registerTemplate("heroCard",_),a.chat.registerTemplate("application/vnd.microsoft.card.hero",_),a.chat.registerComponent=function(e,t){a.chat.Components[e]=t},a.chat.getComponent=function(e){return a.chat.Components[e]||null},n=a.chat.Component=a.Class.extend({init:function(t,n){this.element=e("<div></div>"),this.options=t,this.view=n},destroy:function(){a.destroy(this.element)}}),i=n.extend({init:function(e,t){n.fn.init.call(this,e,t),this.element.kendoCalendar({change:function(){t.trigger("suggestedAction",{text:a.toString(this.value(),"d"),type:"message"})}})},destroy:function(){}}),a.chat.registerComponent("calendar",i),o={wrapper:"k-widget k-chat",messageList:"k-avatars",messageListContent:"k-message-list-content",messageTime:"k-message-time",messageGroup:"k-message-group",message:"k-message",only:"k-only",first:"k-first",middle:"k-middle",last:"k-last",author:"k-author",avatar:"k-avatar",noAvatar:"k-no-avatar",self:"k-alt",button:"k-button",iconButton:"k-button-icon",buttonPrimary:"k-flat k-primary",scrollButtonIcon:"k-icon",scrollButtonIconLeft:"k-i-arrow-chevron-left",scrollButtonIconRight:"k-i-arrow-chevron-right",typingIndicator:"k-typing-indicator",typingIndicatorBubble:"k-typing-indicator-bubble",bubble:"k-bubble",suggestedActions:"k-quick-replies",suggestedAction:"k-quick-reply",cardWrapper:"k-card-container",cardDeckScrollWrap:"k-card-deck-scrollwrap",cardDeck:"k-card-deck",cardList:"k-card-list",card:"k-card",cardRich:"k-card-type-rich",cardBody:"k-card-body",cardImage:"k-card-image",cardTitle:"k-card-title",cardSubtitle:"k-card-subtitle",cardActions:"k-card-actions",cardActionsVertical:"k-card-actions-vertical",cardAction:"k-card-action",selected:"k-state-selected"},r=a.chat.ChatView=s.extend({init:function(e,t){s.fn.init.call(this,e,t),this._list(),this._lastSender=null,this.typingParticipants=[],this._attachEvents(),this._scrollable()},events:[],options:{messages:{isTyping:" is typing.",areTyping:" are typing.",and:" and "}},destroy:function(){s.fn.destroy.call(this),this._scrollDraggable&&this._scrollDraggable.destroy(),this.element.empty(),this.element.off(h),this.list=null,this._lastSender=null},_list:function(){var t=r.styles;this.element.addClass(t.messageList).attr("aria-live","polite"),this.list=e("<div>").addClass(t.messageListContent).appendTo(this.element)},_attachEvents:function(){var e=r.styles;this.element.on("click"+h,d(this._listClick,this)).on("click"+h,c+e.message,d(this._messageClick,this)).on("click"+h,c+e.suggestedAction,d(this._suggestedActionClick,this)).on("click"+h,c+e.cardAction+u+c+e.button,d(this._cardActionClick,this))},_scrollable:function(){var e=r.styles;this.element.on("click"+h,c+e.cardDeckScrollWrap+u+c+e.button,d(this._scrollButtonClick,this))},_scrollButtonClick:function(t){var n=r.styles,i=e(t.currentTarget),o=0!==i.find(c+n.scrollButtonIconLeft).length,s=i.siblings(c+n.cardDeck),l=s.find(c+n.card).last(),d=l.outerWidth(!0);o?a.scrollLeft(s,a.scrollLeft(s)-d):a.scrollLeft(s,a.scrollLeft(s)+d)},getTemplate:function(e){return a.chat.getTemplate(e)},getComponent:function(e){return a.chat.getComponent(e)},renderMessage:function(e,t){e.timestamp||(e.timestamp=new Date),e.text||(e.text="");var n=this._renderTemplate(e.type,e);this._renderBubble(e.type,n,t),"typing"==e.type?this.typingParticipants.length>0&&this._removeTypingParticipant(t):this._lastSender=t.id},renderSuggestedActions:function(e){this._removeSuggestedActions();var t=this._renderTemplate("suggestedAction",{suggestedActions:e});this.list.append(t),this._scrollToBottom()},renderAttachments:function(e){var t,n,i=this._renderAttachmentWrapper(e.attachmentLayout),o="carousel"===e.attachmentLayout?i.find(c+r.styles.cardDeck):i,a=e.attachments;if(a.length){for(t=0;t<a.length;t++)n=this._renderTemplate(a[t].contentType,a[t].content),o.append(n);this._removeSuggestedActions(),this._removeTypingIndicator(),this.list.append(i),this._lastSender=null}},renderComponent:function(e){var t=this.getComponent(e),n=new t({},this);this.list.append(n.element),this._scrollToBottom()},_renderAttachmentWrapper:function(t){var n,i,o=r.styles,a=e("<div>");return"carousel"===t?(a.addClass(o.cardDeckScrollWrap),n=this._renderScrollButton(o.scrollButtonIconLeft),a.append(n),a.append(e("<div>").addClass(o.cardDeck)),i=this._renderScrollButton(o.scrollButtonIconRight),a.append(i)):a.addClass(o.cardList),a},_renderScrollButton:function(t){var n=r.styles;return e("<button>").addClass(n.button).addClass(n.iconButton).append(e("<span>").addClass(n.scrollButtonIcon).addClass(t))},_removeSuggestedActions:function(){this.list.find(c+r.styles.suggestedActions).remove()},_listClick:function(t){var n=r.styles,i=e(t.target);i.hasClass(n.message)||i.parents(c+n.message).length||this._clearSelection()},_messageClick:function(t){this._clearSelection(),e(t.currentTarget).addClass(r.styles.selected)},_suggestedActionClick:function(t){var n=e(t.target).data("value")||"";this.trigger("actionClick",{text:n}),this._removeSuggestedActions()},_cardActionClick:function(t){var n=e(t.target).data("value")||"";this.trigger("actionClick",{text:n})},_renderBubble:function(e,t,n){this._removeSuggestedActions(),this._removeTypingIndicator();var i=this._getMessageGroup(n,e);this._appendToGroup(i,t,e),this._scrollToBottom()},_renderTemplate:function(t,n){var i,o,a,s,d=this.getComponent(t);return d?(o=new d(n,this),i=o.element):(a=this.getTemplate(t),s=l(!0,{},n,{styles:r.styles}),i=e(a(s))),i},_getMessageGroup:function(t,n){var i,o=r.styles,a=this._getMessageGroupTemplate(t,n),s="typing"==n?this.element:this.list;return t.id===this._lastSender&&null!==this._lastSender&&"typing"!==n&&(i=this.list.find(c+o.messageGroup).last(),i.length)?i:e(a({text:t.name,url:t.iconUrl,styles:o})).appendTo(s)},_getMessageGroupTemplate:function(e,t){var n=e.id===this.options.user.id,i=n?f:p;return"typing"==t&&(i=g),i},_appendToGroup:function(e,t,n){var i=r.styles,o=e.find(c+i.message),a=o.length,s=this.element.find(c+i.typingIndicator);s.length&&"typing"==n||(t.addClass(0===a?i.only:i.last),o.filter(c+i.only).removeClass(i.only).addClass(i.first),o.filter(c+i.last).removeClass(i.last).addClass(i.middle),e.append(t))},_renderTypingIndicator:function(t){var n,i,r=this.element.find(c+o.typingIndicatorBubble);this._addTypingParticipant(t),r.length?(i=this._composeTypingParticipantsText(this.typingParticipants),n=r.find(c+o.author).first(),n.text(i)):e(g({text:t.name+this.options.messages.isTyping,styles:o})).appendTo(this.element),this._scrollToBottom()},_addTypingParticipant:function(e){var t,n=!1;for(t=0;t<this.typingParticipants.length;t+=1)if(this.typingParticipants[t].id==e.id){n=!0;break}n||this.typingParticipants.push(e)},_removeTypingParticipant:function(e){var t,n,i,r=this.element.find(c+o.typingIndicatorBubble);if(r.length){for(i=0;i<this.typingParticipants.length;i+=1)this.typingParticipants[i].id==e.id&&this.typingParticipants.splice(i,1);n=this._composeTypingParticipantsText(this.typingParticipants),""===n?r.remove():(t=r.find(c+o.author).first(),t.text(n))}},_composeTypingParticipantsText:function(e){var t=this.options.messages,n=1==e.length?t.isTyping:t.areTyping,i="";return 0===e.length?i:i=this.typingParticipants.map(function(e){return e.name}).join(", ").replace(/,(?!.*,)/gim,t.and.trimRight())+n},_removeTypingIndicator:function(){var e=this.element.find(c+o.typingIndicatorBubble);e.length&&(this.typingParticipants=[],e.remove())},_clearSelection:function(){var e=r.styles.selected;this.element.find(c+e).removeClass(e)},_scrollToBottom:function(){this.element.scrollTop(this.element.prop("scrollHeight"))}}),l(!0,r,{styles:o})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.chat.min",["chat/messageBox.min","chat/toolbar.min","chat/view.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=".",a={wrapper:"k-widget k-chat",canvas:"k-chat-canvas",viewWrapper:"k-message-list",messageBoxWrapper:"k-message-box",toolbarBoxWrapper:"k-toolbar-box"},s=i.extend({init:function(e,t,o){i.fn.init.call(this,e,t),o&&(this._events=o),this._user(),this._wrapper(),this._view(),this._messageBox(),t&&t.toolbar&&t.toolbar.buttons&&this._toolbar(),n.notify(this)},events:["typingStart","typingEnd","post","sendMessage","actionClick","toolClick"],options:{user:{name:"User",iconUrl:""},name:"Chat",messages:{placeholder:"Type a message...",toggleButton:"Toggle toolbar",sendButton:"Send message"},toolbar:!1},setOptions:function(t){this._setEvents(t),e.extend(!0,this.options,t),this.toolbar&&"toolbar"in t&&(this.toolbar.destroy(),this.toolbar=null),this.messageBox&&(this.messageBox.unbind(),this.messageBox.destroy(),this.messageBox=null),this._messageBox(),"toolbar"in t&&(this._resetToolbarButtons(t),this._toolbar())},_resetToolbarButtons:function(e){var t=this.wrapper.find(r+a.toolbarBoxWrapper);t.is(":visible")||t.show(),e.toolbar&&"object"==typeof e.toolbar&&"buttons"in e.toolbar&&(this.options.toolbar.buttons=e.toolbar.buttons)},destroy:function(){this.view&&(this.view.unbind(),this.view.destroy(),this.view=null),this.messageBox&&(this.messageBox.unbind(),this.messageBox.destroy(),this.messageBox=null),this.toolbar&&(this.toolbar.destroy(),this.toolbar=null),i.fn.destroy.call(this)},_user:function(){this.options.user.id=n.guid()},getUser:function(){return o(!0,{},this.options.user)},_wrapper:function(){var e=s.styles,t=this.options,n=t.height,i=t.width,o="<div class='"+e.viewWrapper+"'></div><div class='"+e.messageBoxWrapper+"'></div><div class='"+e.toolbarBoxWrapper+"' role='toolbar' style='display:none;'></div>";this.wrapper=this.element.addClass(e.wrapper).append(o),t.toolbar&&t.toolbar.buttons&&t.toolbar.buttons.length&&this.wrapper.find(r+e.toolbarBoxWrapper).show(),n&&this.wrapper.height(n),i&&this.wrapper.css("max-width",i)},_view:function(){var e=this,t=s.styles,i=o(!0,{},this.options),a=this.wrapper.find(r+t.viewWrapper+"");this.view=new n.chat.ChatView(a,i),this.view.bind("actionClick",function(t){e.trigger("actionClick",t),e.postMessage(t.text)})},_messageBox:function(){var e=this,t=s.styles,i=o(!0,{},this.options),a=this.wrapper.find(r+t.messageBoxWrapper+"");this.messageBox=new n.chat.ChatMessageBox(a,i),this.messageBox.bind("typingStart",function(t){e.trigger("typingStart",t)}).bind("typingEnd",function(t){e.trigger("typingEnd",t)}).bind("sendMessage",function(t){e.trigger("sendMessage",t),e.postMessage(t.text)}).bind("toggleToolbar",function(){e.toggleToolbar()})},_toolbar:function(){var e=this,i=s.styles,a=o(!0,{},e.options),l=e.wrapper.find(r+i.toolbarBoxWrapper+"");a.toolbar.scrollable===t&&(this.options.toolbar.scrollable=a.toolbar.scrollable=!0),a.toolbar.toggleable===t&&(this.options.toolbar.toggleable=a.toolbar.toggleable=!1),e.toolbar=new n.chat.ChatToolBar(l,a),e.toolbar.bind("click",function(t){e.trigger("toolClick",{sender:e,name:t.name,button:t.button,messageBox:e.messageBox.input[0],originalEvent:t.originalEvent})})},postMessage:function(e){var t=o(!0,{},{text:e,type:"message",timestamp:new Date,from:this.getUser()});this.trigger("post",t),this.renderMessage(t,t.from)},renderMessage:function(e,t){this.view.renderMessage(e,t)},renderSuggestedActions:function(e){this.view.renderSuggestedActions(e)},renderAttachments:function(e,t){this.view.renderAttachments(e,t)},toggleToolbar:function(e){this.toolbar.toggle(e)},renderUserTypingIndicator:function(e){this.view._renderTypingIndicator(e)},clearUserTypingIndicator:function(e){this.view._removeTypingParticipant(e)},removeTypingIndicator:function(){this.view._removeTypingIndicator()}});n.ui.plugin(s),o(!0,s,{styles:a})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.badge.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,r="k-hidden",a="<span class='k-badge-icon k-icon k-i-#= icon #'></span>",s="<span class='k-badge-icon k-svg-icon'>#= icon #</span>",l=i.extend({init:function(e,t){var o=this;i.fn.init.call(o,e,t),o._content(),o._appearance(),n.notify(o)},destroy:function(){var e=this;i.fn.destroy.call(e)},options:{name:"Badge",cutoutBorder:!1,data:{},fill:"solid",icon:"",max:1/0,position:"inline",align:"",sizes:{small:"sm",medium:"md",large:"lg"},size:"medium",shape:"rounded",template:null,text:"",themeColor:"secondary",visible:!0,_classNames:[]},_content:function(){var e=this,i=e.options.text,o=e.options.template,r=e.options.data,a=e.options.icon;return null!==o?(e._text=i,e._template=n.template(o).bind(e),e.element.html(e._template(r)),t):""!==a?(e.icon(a),t):""!==i?(e.text(i),t):(e.text(e.element.html()),t)},_appearance:function(){var e=this;e._themeColor=e.options.themeColor,e._shape=e.options.shape,e._sizes=e.options.sizes,e._size=e.options.size,e._fill=e.options.fill,e._cutoutBorder=e.options.cutoutBorder,e._align=e.options.align,e._position=e.options.position,
e._visible=e.options.visible,e._updateClassNames()},_updateClassNames:function(){var e=this,n=["k-badge"],i=e.options._classNames,o=e._themeColor,a=e._shape,s=e._sizes,l=e._size,d=s[l]===t?l:s[l],c=e._fill,u=e._cutoutBorder,h=e._align,p=e._position,f=e._visible;e.element.removeClass(function(t,n){0===n.indexOf("k-")&&i.indexOf(n)===-1&&e.element.removeClass(n)}),"string"==typeof c&&""!==c&&n.push("k-badge-"+c),"string"==typeof o&&""!==o&&n.push("k-badge-"+o),"string"==typeof l&&""!==l&&n.push("k-badge-"+d),"string"==typeof a&&""!==a&&n.push("k-badge-"+a),"boolean"==typeof u&&u===!0&&n.push("k-badge-border-cutout"),"string"==typeof p&&""!==p&&n.push("k-badge-"+p),"string"==typeof p&&""!==p&&"inline"!==p&&"string"==typeof h&&2==h.split(" ").length&&n.push("k-"+h.replace(" ","-")),f===!1&&n.push(r),e.element.addClass(n.join(" "))},setOptions:function(e){var t=this;t.element.removeClass(function(e,n){n.indexOf("k-")>=0&&t.element.removeClass(n)}),i.fn.setOptions.call(t,e),t._content(),t._appearance()},text:function(e){var n=this,i=n.options.max;return 0===arguments.length||e===t?n._text:(n._text=e,e===!0||e===!1||null===e?(n.element.html(""),t):"string"==typeof e?(n.element.html(e),t):"number"==typeof e?(n.element.html(e>i?i+"+":e),t):"object"==typeof e&&"toString"in e?(n.element.html(""+e),t):t)},icon:function(e){var i,o=this;return 0===arguments.length||e===t?o._icon:(o._icon=e,0===e.indexOf("<svg")?(i=n.template(s),o.element.html(i({icon:e})),t):(i=n.template(a),o.element.html(i({icon:e})),t))},themeColor:function(e){var n=this;return 0===arguments.length||e===t?n._themeColor:(n._themeColor=e,n._updateClassNames(),t)},shape:function(e){var n=this;return 0===arguments.length||e===t?n._shape:(n._shape=e,n._updateClassNames(),t)},hide:function(){var e=this;e._visible=!1,e._updateClassNames()},show:function(){var e=this;e._visible=!0,e._updateClassNames()}});o.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.button.min",["kendo.core.min","kendo.badge.min"],e)}(function(){return function(e,t){var n,i=window.kendo,o=i.ui.Widget,r=i.ui,a=e.proxy,s=i.keys,l="click",d=i.support.mousedown,c=i.support.mouseup,u="mouseout",h="k-button",p="k-button-icon",f="k-button-icontext",m=".kendoButton",g="disabled",v="k-state-disabled",_="k-state-focused",b="k-state-active",w={icon:"",iconClass:"",spriteCssClass:"",imageUrl:"",badge:null};i.setDefaults("button",w),n=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e,t),e=n.wrapper=n.element,t=n.options,e.addClass(h).attr("role","button"),t.enable=t.enable&&t.enabled&&!e.attr(g),n.enable(t.enable),t.enable&&n._tabindex(),n._badge(),n.iconElement(),e.on(l+m,a(n._click,n)).on("focus"+m,a(n._focus,n)).on("blur"+m,a(n._blur,n)).on("keydown"+m,a(n._keydown,n)).on("keyup"+m,a(n._removeActive,n)).on(d+m,a(n._addActive,n)).on(c+m+" "+u+m,a(n._removeActive,n)),i.notify(n)},destroy:function(){var e=this;e.wrapper.off(m),e.badge&&e.badge.destroy(),o.fn.destroy.call(e)},events:[l],options:{name:"Button",enable:!0,enabled:!0,icon:"",iconClass:"",spriteCssClass:"",imageUrl:"",badge:null},_isNativeButton:function(){return"button"==this.element.prop("tagName").toLowerCase()},_click:function(e){this.options.enable&&this.trigger(l,{event:e})&&e.preventDefault()},_focus:function(){this.options.enable&&this.element.addClass(_)},_blur:function(){var e=this;e.element.removeClass(_),setTimeout(function(){e.element.removeClass(b)})},_keydown:function(e){var t=this;e.keyCode!=s.ENTER&&e.keyCode!=s.SPACEBAR||(t._addActive(),t._isNativeButton()||(e.keyCode==s.SPACEBAR&&e.preventDefault(),t._click(e)))},_removeActive:function(){this.element.removeClass(b)},_addActive:function(){this.options.enable&&this.element.addClass(b)},iconElement:function(){var t,n,o,r=this,a=r.element,s=r.options,l=s.icon,d=s.iconClass,c=s.spriteCssClass,u=s.imageUrl;(c||u||l||d)&&(o=!0,a.contents().filter(function(){return!e(this).hasClass("k-sprite")&&!e(this).hasClass("k-icon")&&!e(this).hasClass("k-image")}).each(function(e,t){(1==t.nodeType||3==t.nodeType&&i.trim(t.nodeValue).length>0)&&(o=!1)}),a.addClass(o?p:f)),u?(n=a.children("img.k-image").first(),n[0]||(n=e('<img alt="icon" class="k-image" />').prependTo(a)),n.attr("src",u)):l||d?(t=a.children("span.k-icon").first(),t[0]||(t=e("<span></span>").prependTo(a)),t.attr("class",l?"k-icon k-i-"+l:d)):c&&(t=a.children("span.k-sprite").first(),t[0]||(t=e('<span class="k-sprite"></span>').prependTo(a)),t.addClass(c))},enable:function(e){var n=this,i=n.element;e===t&&(e=!0),e=!!e,n.options.enable=e,i.toggleClass(v,!e).attr("aria-disabled",!e).attr(g,!e),e&&n._tabindex();try{i.blur()}catch(o){}},_badge:function(){var n,i=this,o=i.options.badge;null!==o&&o!==t&&(o.constructor!==Object&&(o={text:o}),o.position!==t&&""!==o.position||(o.position="edge",o.align!==t&&""!==o.align||(o.align="top end")),o._classNames=["k-button-badge"],i.element.addClass("k-badge-container"),n=e("<span />").appendTo(i.element),i.badge=new r.Badge(n,o))}}),n.fn.hasOwnProperty("defaults")===!1&&Object.defineProperty(n.fn,"defaults",{get:function(){return i.defaults.button}}),i.ui.plugin(n)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.buttongroup.min",["kendo.core.min","kendo.badge.min"],e)}(function(){return function(e,t){function n(n,i){var r;null!==n&&n!==t&&(n.constructor!==Object&&(n={text:n}),n.position!==t&&""!==n.position||(n.position="edge",n.align!==t&&""!==n.align||(n.align="top end")),n._classNames=["k-button-badge"],i.addClass("k-badge-container"),r=e("<span />").appendTo(i),i.badge=new o.Badge(r,n))}var i=window.kendo,o=i.ui,r=o.Widget,a=i.keys,s=e.proxy,l=i.template,d=".kendoButtonGroup",c="k-widget",u="k-button-group",h="k-button",p="k-button-icontext",f="k-button-icon",m="k-state-active",g="k-state-disabled",v="select",_="click",b="keydown",w="focus",k="focusout",y="mousedown",x=i.support.browser.msie,C={item:l('<span #= item.enabled === false ? "disabled" : "" # >#= icon(iconClass) ##= image(item) ##= text #</span>'),image:l('<img alt="icon" src="#=data.imageUrl#" />'),icon:l('<span class="#=data#"></span>'),empty:l("")},S=r.extend({init:function(t,n){var i=this;r.fn.init.call(i,t,n),i.wrapper=i.element,i.options.items&&i._renderItems(i.options.items),i.selectedIndices=[],i.element.addClass(c+" "+u).attr("role","group").attr("tabindex",i.element.attr("tabindex")||"0").children().each(function(){var t=e(this);i._updateClasses.bind(i)(t)}),i._enable=!0,i.options.enable&&i.options.enabled||(i._enable=!1,i.element.attr("aria-disabled",!0).addClass(g)),i.select(i.options.index),i._attachEvents()},events:[v],options:{name:"ButtonGroup",selection:"single",index:-1,enable:!0,enabled:!0},current:function(){return this.element.find("."+m)},_attachEvents:function(){var e=this;e.element.on(_+d,"."+h,s(e._click,e)).on(w+d,s(e._focus,e)).on(k+d,s(e._focusout,e)).on(b+d,s(e._keyDown,e)).on(y+d,s(e._mouseDown,e))},_renderItems:function(t){var o=this;t.forEach(function(t){var r=e(C.item({image:t.imageUrl?C.image:C.empty,icon:t.imageUrl||!t.iconClass&&!t.icon?C.empty:C.icon,iconClass:t.iconClass||"k-icon k-i-"+t.icon,item:t,text:t.text?t.encoded===!1?t.text:i.htmlEncode(t.text):""}));t.attributes&&r.attr(t.attributes),t.selected&&r.addClass(m),(t.iconClass||t.icon||t.imageUrl)&&r.addClass(t.text?"k-button-icontext":"k-button-icon"),t.badge&&n(t.badge,r),r.appendTo(o.element)})},_mouseDown:function(e){var t=e.clientX,n=e.clientY,i=document.elementFromPoint(t,n);i!==this.element[0]&&(this.preventFocus=!0,this.preventFocusOut=!0),x&&this._focus()},_focus:function(){var n=e(this.element);return n.removeAttr("tabindex"),n.find("[role='button']").attr("tabindex","0"),this.preventFocus?(this.preventFocus=!1,t):(n.find("."+m).length?n.find("."+m).first().focus():n.children().first().focus(),t)},_focusout:function(){var e=this,n=e.wrapper;return this.preventFocusOut?(this.preventFocusOut=!1,t):(setTimeout(function(){n[0].contains(document.activeElement)||(n.attr("tabindex","0"),n.find("[role='button']").removeAttr("tabindex"))}),t)},_keyDown:function(t){var n,o=this,r=e(o.element),s=r.find("."+h),l=r.find(":focus"),d=s.index(l),c=i.support.isRtl(o.element);t.keyCode===a.LEFT&&!c||t.keyCode===a.RIGHT&&c?(n=0===d?s.eq(s.length-1):e(s[d-1]),n.focus(),t.preventDefault()):t.keyCode===a.LEFT&&c||t.keyCode===a.RIGHT&&!c?(n=d+1===s.length?s.eq(0):e(s[d+1]),n.focus(),t.preventDefault()):t.keyCode!==a.ENTER&&t.keyCode!==a.SPACEBAR||(o._select(l),t.preventDefault())},select:function(n){var i,o=this,r=-1;n!==t&&n!==-1&&("number"==typeof n?(r=n,n=o.element.children().eq(n)):n.nodeType&&(n=e(n),r=n.index()),"multiple"===o.options.selection?(i="true"===n.attr("aria-pressed"),n.attr("aria-pressed",!i).toggleClass(m),o.selectedIndices.indexOf(r)===-1?o.selectedIndices.push(r):o.selectedIndices.splice(o.selectedIndices.indexOf(r),1)):(o.selectedIndices=[],o.current().attr("aria-pressed",!1).removeClass(m),n.attr("aria-pressed",!0).addClass(m),o.selectedIndices.push(r)))},badge:function(e,o){var r,a=this.element,s=isNaN(e)?a.find(e):a.children().eq(e),l=o||0===o;if(s.length){if(r=s.children(".k-badge").eq(0).data("kendoBadge"),!r&&l)return n({text:i.htmlEncode(o)},s),i.htmlEncode(o);if(l)r.text(i.htmlEncode(o));else if(o===!1)return r.element.empty().remove(),r.destroy(),t;return r?r.text():null}},enable:function(e){t===e&&(e=!0),this.element.attr("aria-disabled",!e).toggleClass(g,!e),this._enable=this.options.enable=e},destroy:function(){var t=this;t.element.off(d),t.element.find(".k-badge").each(function(){e(this).data("kendoBadge").destroy()}),r.fn.destroy.call(t)},_updateClasses:function(t){var o=i.attrValue(t,"icon"),r=i.attrValue(t,"badge"),a=t.find("img").addClass("k-image"),s=!0;t.attr("aria-pressed",!1).attr("role","button").addClass(h),(t.is("[disabled]")||t.hasClass(g))&&t.addClass(g).attr("aria-disabled",!0).removeAttr("disabled"),t.is("."+m)&&(t.removeClass(m),(!t.hasClass(g)&&"single"===this.options.selection||"multiple"===this.options.selection)&&this.select(t[0])),!a[0]&&o&&t.prepend(e(C.icon("k-icon k-i-"+o))),t.contents().filter(function(){return!e(this).hasClass("k-icon")&&!e(this).hasClass("k-image")}).each(function(){(1==this.nodeType||3==this.nodeType&&i.trim(this.nodeValue).length>0)&&(s=!1)}),(a[0]||o)&&t.addClass(s?f:p),(r||0===r)&&n(r,t)},_click:function(t){var n=e(t.target).closest("."+h);t.isDefaultPrevented()||(t.target.focus(),this._select(n))},_select:function(e){var t=e;this._enable&&!t.is("."+g)&&(this.select(e[0]),this.trigger(v,{indices:this.selectedIndices}))}});o.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.breadcrumb.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=e.isPlainObject,a=e.proxy,s=".kendoBreadcrumb",l="aria-hidden",d="aria-label",c="click",u="focus",h="blur",p="keydown",f="change",m=".",g={widget:"k-widget k-breadcrumb",overlay:"k-breadcrumb-container",textbox:"k-textbox",link:"k-breadcrumb-link",item:"k-breadcrumb-item",delimiter:"k-breadcrumb-delimiter-icon",rootItem:"k-breadcrumb-root-item",rootLink:"k-breadcrumb-root-link",overflowIcon:"k-breadcrumb-overflow-icon",focused:"k-state-focused",hidden:"k-hidden",inputWrapper:"k-breadcrumb-input-container"},v=i.extend({init:function(e,t){var o=this;t=t||{},i.fn.init.call(o,e,t),o._wrapper(),t.editable&&(o._editable(),o._tabindex()),o.wrapper.on(c+s,"a:not(.k-state-disabled)",a(o._click,o)),t.value||t.bindToLocation||!t.items?o._value():t.items&&o.items(t.items),o._resizeHandler=n.onResize(function(){o.resize(!0)})},options:{editable:!1,navigational:!1,bindToLocation:!1,items:null,name:"Breadcrumb",gap:0,rootIcon:"home",delimiterIcon:"arrow-chevron-right",messages:{rootTitle:"Go to root"}},events:[f,c],destroy:function(){var e=this;i.fn.destroy.call(e),n.unbindResize(e._resizeHandler),e.wrapper.add(e.wrapper.find("input")).add(e.wrapper.find("a")).off(s)},items:function(e){var n=this;return e===t?n.options.items:(n.options.items=e,n._segments=e,n.refresh(),t)},_update:function(e){var t=this;e!==t.value()&&(t._generateSegments(e),t.refresh(),t.trigger(f,{sender:this,value:e}))},_generateSegments:function(e){var n,i,o=this,r=o.options,a=r.items,s=o._split(e);if(!a)return o.options.items=o._segments=s,t;for(o._segments=[],i=0;i<s.length;i++)n=o._path(a.slice(0,i+1)),o._segments.push(""!==n&&e.indexOf(n)>-1&&a[i]&&a[i].text===s[i]?a[i]:s[i])},_click:function(t){var n=this,i=n.options,o=e(t.target).closest(m+g.item),r=o.prevAll().addBack(),a=n._getItems(r),s=n._path(a),l=n._segments[o.index()];i.navigational||t.preventDefault(),n.trigger(c,{sender:n,originalEvent:t,isRoot:"rootitem"===l.type,item:l})||n._update(s)},_getItems:function(t){var n=this;return e.map(t,function(t){return n._segments[e(t).index()]||t.innerText})},_edit:function(){var e=this,t=e.input;e.oldValue=e.value(),e.inputWrapper.css("height",e.wrapper.height()),e.overlay.hide(),e.input.val(e.value()),e.input.attr(l,!1),e.inputWrapper.show(),setTimeout(function(){t.select()})},_blur:function(e){var t=this,n=t.input,i=t.inputWrapper,o=t.wrapper,r=t.overlay,a=n.val().replace(/\/{2,}/g,"/");r.is(":visible")||(e&&(a=t.oldValue),n.attr(l,!0),i.hide(),r.show(),n.val(""),t._update(a),o.removeClass(g.focused))},_keydown:function(e){var t=this,i=e.keyCode,o=i===n.keys.ENTER,r=i===n.keys.ESC;(o||r)&&(t._blur(r),setTimeout(function(){t.overlay.find("a:first").focus()}))},isNavigational:function(e){var t=e.hasClass(g.textbox)||e.closest(m+g.item);return e[0]!==this.wrapper[0]&&(t&&!e.hasClass("k-breadcrumb-last-item"))},_wrapperKeydown:function(t){var i=this,o=e(t.target),r=i.isNavigational(o);t.keyCode!==n.keys.ENTER||r||i._edit()},_wrapperClick:function(t){var n=this,i=e(t.target),o=n.isNavigational(i);o||this._edit()},_wrapperFocus:function(t){e(t.target).addClass(g.focused)},_wrapperBlur:function(t){e(t.target).removeClass(g.focused)},_wrapper:function(){var t=this,n=this.element,i=n.is("input");t.wrapper=i?n.wrap(e("<nav />")).parent():n,i?(t.element.wrap(e("<div />").addClass(g.inputWrapper)).addClass(g.textbox).parent().hide(),t.inputWrapper=t.wrapper.find(m+g.inputWrapper)):t.inputWrapper=t.wrapper.append(e("<div />").addClass(g.inputWrapper)).find(m+g.inputWrapper).hide(),t.wrapper.addClass(g.widget),t.wrapper.attr(d,"Breadcrumb"),t.overlay=t.wrapper.append(e("<ol />").addClass(g.overlay)).find(m+g.overlay)},_editable:function(){var t=this,n=t.element,i=n.is("input");t.input=i?t.element:e("<input />"),t.inputWrapper.append(t.input),t.input.addClass(g.textbox).attr(l,!0),t.input.on(h+s,a(t._blur,t,!1)).on(p+s,a(t._keydown,t)),t.wrapper.on(u+s,a(t._wrapperFocus,t)).on(h+s,a(t._wrapperBlur,t)).on(p+s,a(t._wrapperKeydown,t)).on(c+s,a(t._wrapperClick,t))},_value:function(){var e=this,t=e.options;e.value(t.value?t.value:t.bindToLocation?window.location.href.replace(/http(s?):\/\//,"").replace(/\/$/,""):"")},_split:function(e){return e.split("/").filter(function(e,t){return!(t>0&&""===e)})},isRtl:function(){return n.support.isRtl(this.wrapper)},refresh:function(){var i,a,s,l,d=this,c=d.options,u=c.messages,h=d.options.delimiterIcon,p="",f="",m=""===d.value(),v=d._segments;for("arrow-chevron-right"==h&&d.isRtl()&&(h="arrow-chevron-left"),a=0,s=v.length;a<s;a++)i=v[a],l=a===v.length-1,i!==t&&(p?f+=i.text||i||"":f="/","string"==typeof i?(i={type:p?"item":"rootitem",href:c.navigational?f:"#",text:i,showIcon:!p,showText:!!p,icon:p?"":c.rootIcon,itemClass:p?"":"k-breadcrumb-root-item",linkClass:p?"":g.rootLink,delimiterIcon:h,renderDelimiter:!l&&!m,lastSegment:l,iconClass:""},d._segments.splice(a,1,i)):r(i)&&(i=o({},i,{type:i.type?i.type.toLowerCase():"item"}),i=o({},i,{text:i.text||"",title:i.text||"",icon:i.icon||("rootitem"===i.type?c.rootIcon:""),iconClass:i.iconClass||"",lastSegment:l,renderDelimiter:!l&&v.length>1,href:c.navigational?i.href:"#",delimiterIcon:h,itemClass:i.itemClass||"",linkClass:i.linkClass||"",showIcon:i.showIcon===t?"rootitem"===i.type&&"item"!==i.type:i.showIcon,showText:i.showText===t?"item"===i.type&&"rootitem"!==i.type:i.showText}),"rootitem"===i.type&&(i.itemClass+=" k-breadcrumb-root-item",i.linkClass+=" "+g.rootLink)),"rootitem"===i.type&&""===i.text&&(i.title=u.rootTitle),f+=f.match(/\/$/)?"":"/",p+=n.template(this.itemTemplate)(i));this.overlay.empty().append(e(p)),this.resize(!0)},itemTemplate:'<li class="k-breadcrumb-item #:itemClass# #if(lastSegment){#k-breadcrumb-last-item#}#"><a href="#:href#" class="#:linkClass# #if(type !== "rootitem"){# k-breadcrumb-link#}##if(showText && showIcon){# k-breadcrumb-icontext-link#}##if(showIcon && !showText){# k-breadcrumb-icon-link#}##if(lastSegment && type !== "rootitem"){# k-state-disabled#}#"#if(lastSegment){# aria-current="page"#}# title="#:text || title#">#if(showIcon) {#<span class="#if(icon){#k-icon k-i-#:icon##}# #:iconClass#"></span>#}##if(showText) {##:text##}#</a>#if(renderDelimiter) {#<span class="k-breadcrumb-delimiter-icon k-icon k-i-#:delimiterIcon#" aria-hidden="true"></span>#}##if(type === "rootitem" && renderDelimiter) {#<span class="k-breadcrumb-delimiter-icon k-hidden k-icon k-i-#:delimiterIcon#" aria-hidden="true"></span>#}#</li>',_displayOverflowIcons:function(e){var t=this,n=t.wrapper.find(m+g.rootItem);e?n.find(m+g.delimiter).addClass(g.overflowIcon).removeClass(g.hidden):n.find(m+g.overflowIcon).removeClass(g.overflowIcon).last().addClass(g.hidden)},_shrinkItems:function(){var t,i,o=this,r=o.wrapper,a=o.overlay,s=o.overlay.find(m+g.item+":visible:not(.k-breadcrumb-root-item)"),l=r.width()-o.options.gap;if(1!=s.length)for(i=0;i<s.length;i+=1)if(t=e(s[i]),n._outerWidth(a)>=l){if(i==s.length-1)break;t.hide(),o._displayOverflowIcons(!0)}},_showItem:function(e,t,i){return!!(e.length&&i>t+n._outerWidth(e,!0))&&(e.show(),!0)},_stretchItems:function(){var t,i,o,r=this,a=r.wrapper,s=r.overlay,l=r.overlay.find(m+g.item+":hidden:not(.k-breadcrumb-root-item)"),d=a.width()-r.options.gap;for(l.length||r._displayOverflowIcons(!1),o=l.length-1;o>=0&&(t=e(l[o]),i=n._outerWidth(s),!(i>d)&&this._showItem(t,i,d));o--);},_resize:function(){this._shrinkItems(),this._stretchItems()},getSize:function(){return n.dimensions(this.wrapper)},value:function(e){var n=this;return e!==t?(n._generateSegments(e),n.refresh(),t):n._path(n._segments)},_path:function(t){return e.map(t,function(e){var t=r(e)?e.text:e;return"/"===t?"":t}).join("/")}});n.ui.plugin(v)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.switch.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=".kendoSwitch",r=i.Widget,a=n.support,s="change",l={widget:"k-switch k-widget",container:"k-switch-container",handle:"k-switch-handle",checked:"k-switch-on",checkedLabel:"k-switch-label-on",unchecked:"k-switch-off",uncheckedLabel:"k-switch-label-off",disabled:"k-state-disabled",readonly:"k-state-readonly",active:"k-state-active"},d="disabled",c="aria-disabled",u="readonly",h="aria-readonly",p="aria-checked",f="checked",m=a.click+o,g=a.pointers?"pointerup":"touchend",v="keydown"+o,_="_label",b=e.proxy,w=n.template('<span class="#=styles.widget#" role="switch"></span>'),k=n.template("<span class='#=styles.container#'><span class='#=styles.checkedLabel#'>#=checked#</span><span class='#=styles.uncheckedLabel#'>#=unchecked#</span><span class='#=styles.handle#'></span></span>"),y=r.extend({init:function(t,i){var o,a=this;r.fn.init.call(a,t,i),i=a.options,t=a.element[0],t.type="checkbox",o=e(w({styles:l})),a.wrapper=a.element.wrap(o).parent(),a.wrapper.append(e(k({styles:l,checked:i.messages.checked,unchecked:i.messages.unchecked}))).addClass(t.className).removeClass("input-validation-error"),a.wrapper.on(m,b(a._click,a)).on(g,b(a._touchEnd,a)).on(v,b(a._keydown,a)),a.options.enabled&&a._tabindex(),a._initSettings(),a._aria(),n.notify(a,n.ui)},setOptions:function(n){var i,o,r=this,a=n.messages;r.options=e.extend(r.options,n),a&&a.checked!==t&&(i=r.wrapper.find("."+l.checkedLabel),i.text(a.checked)),a&&a.unchecked!==t&&(o=r.wrapper.find("."+l.uncheckedLabel),o.text(a.unchecked)),n.width&&r.wrapper.css({width:n.width}),n.enabled!==t&&r.enable(n.enabled),n.readonly!==t&&r.readonly(n.readonly),r.check(n.checked)},_initSettings:function(){var e=this,t=e.element[0],n=e.options;n.width&&e.wrapper.css({width:n.width}),null===n.checked&&(n.checked=t.checked),e.check(n.checked),n.enabled=n.enabled&&!e.element.attr(d),e.enable(n.enabled),n.readonly=n.readonly||!!e.element.attr(u),e.readonly(n.readonly)},_aria:function(){var t,i=this,o=i.element,r=i.wrapper,a=o.attr("id"),s=e('label[for="'+a+'"]'),l=o.attr("aria-label"),d=o.attr("aria-labelledby");l?r.attr("aria-label",l):d?r.attr("aria-labelledby",d):s.length&&(t=s.attr("id"),t||(t=(a||n.guid())+_,s.attr("id",t)),r.attr("aria-labelledby",t))},events:[s],options:{name:"Switch",messages:{checked:"On",unchecked:"Off"},width:null,checked:null,enabled:!0,readonly:!1},check:function(e){var n=this,i=n.element[0];return e===t?i.checked:(i.checked!==e&&(n.options.checked=i.checked=e),n.wrapper.attr(p,e).toggleClass(l.checked,e).toggleClass(l.unchecked,!e),e?n.element.attr(f,f):n.element.removeAttr(f),t)},value:function(e){return"string"==typeof e&&(e="true"===e),this.check.apply(this,[e])},destroy:function(){r.fn.destroy.call(this),this.wrapper.off(o)},toggle:function(){var e=this;e.check(!e.element[0].checked)},enable:function(e){var n=this.element,i=this.wrapper;t===e&&(e=!0),this.options.enabled=e,e?(n.removeAttr(d),i.removeAttr(c)):(n.attr(d,d),i.attr(c,!0)),i.toggleClass(l.disabled,!e)},readonly:function(e){var n=this,i=n.element,o=n.wrapper;t===e&&(e=!0),n.options.readonly=e,e?(i.attr(u,!0),o.attr(h,!0)):(i.removeAttr(u),o.removeAttr(h)),o.toggleClass(l.readonly,e)},_check:function(){var e=this,n=e.element[0].checked=!e.element[0].checked;return e.wrapper.focus(),!e.options.enabled||e.options.readonly||e.trigger(s,{checked:n})?(e.element[0].checked=!n,t):(e.check(n),t)},_keydown:function(e){e.keyCode===n.keys.SPACEBAR&&(this._check(),e.preventDefault())},_isTouch:function(e){return/touch/.test(e.type)||e.originalEvent&&/touch/.test(e.originalEvent.pointerType)},_click:function(e){this._isTouch(e)||1!==e.which||this._check()},_touchEnd:function(e){this._isTouch(e)&&(this._check(),e.preventDefault())}});i.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pager.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(e,t,n,i,o){return e({idx:t,text:n,ns:c.ns,numeric:i,title:o||""})}function i(e,t,n,i){return e({idx:t,text:n||t,selected:i||!1})}function o(e,t,n){return T({className:e.substring(1),text:t,wrapClassName:n||""})}function r(e,t,n,i){e.find(t).parent().attr(c.attr("page"),n).attr("tabindex",-1).toggleClass("k-state-disabled",i)}function a(e,t){r(e,f,1,t<=1)}function s(e,t){r(e,g,Math.max(1,t-1),t<=1)}function l(e,t,n){r(e,v,Math.min(n,t+1),t>=n)}function d(e,t,n){r(e,m,n,t>=n)}var c=window.kendo,u=c.ui,h=u.Widget,p=e.proxy,f=".k-i-arrow-end-left",m=".k-i-arrow-end-right",g=".k-i-arrow-60-left",v=".k-i-arrow-60-right",_="k-pager-md k-pager-sm",b="change",w=".kendoPager",k="click",y="keydown",x="disabled",C="down",S=Number.MAX_VALUE,T=c.template('<a href="\\#" aria-label="#=text#" title="#=text#" class="k-link k-pager-nav #= wrapClassName #"><span class="k-icon #= className #"></span></a>'),D=h.extend({init:function(t,n){var i,r,u,_,x=this,S=null;h.fn.init.call(x,t,n),n=x.options,x._createDataSource(n),x.linkTemplate=c.template(x.options.linkTemplate),x.selectTemplate=c.template(x.options.selectTemplate),x.currentPageTemplate=c.template(x.options.currentPageTemplate),x.numericSelectItemTemplate=c.template(x.options.numericSelectItemTemplate),i=x.page(),r=x.totalPages(),x._refreshHandler=p(x.refresh,x),x.dataSource.bind(b,x._refreshHandler),x.downEvent=c.applyEventMap(C,c.guid()),n.previousNext&&(x.element.find(f).length||(x.element.append(o(f,n.messages.first,"k-pager-first")),a(x.element,i,r)),x.element.find(g).length||(x.element.append(o(g,n.messages.previous)),s(x.element,i,r))),n.numeric&&(x._numericWrap||(x._numericWrap=x.element.find(".k-pager-numbers-wrap"),0===x._numericWrap.length&&(x._numericWrap=e("<div class='k-pager-numbers-wrap' />").appendTo(x.element))),x._numericSelect||(x._numericSelect=x._numericWrap.find(".k-dropdown"),0===x._numericSelect.length&&(x._numericSelect=e("<select class='k-dropdown' />").appendTo(x._numericWrap))),x.list||(x.list=x._numericWrap.find(".k-pager-numbers"),0===x.list.length&&(x.list=e('<ul class="k-pager-numbers" />').appendTo(x._numericWrap))),n.dataSource&&!n.dataSource.total()&&(x._numericSelect.empty().append("<option value='0' />"),x.list.empty().append(x.selectTemplate({text:0})))),n.input&&(x.element.find(".k-pager-input").length||x.element.append('<span class="k-pager-input k-label">'+n.messages.page+'<input class="k-textbox">'+c.format(n.messages.of,r)+"</span>"),x.element.on(y+w,".k-pager-input input",p(x._keydown,x))),n.previousNext&&(x.element.find(v).length||(x.element.append(o(v,n.messages.next)),l(x.element,i,r)),x.element.find(m).length||(x.element.append(o(m,n.messages.last,"k-pager-last")),d(x.element,i,r))),n.pageSizes&&(x.element.find(".k-pager-sizes").length||(u=n.pageSizes.length?n.pageSizes:["all",5,10,20],_=e.map(u,function(e){return e.toLowerCase&&"all"===e.toLowerCase()?"<option value='all'>"+n.messages.allPages+"</option>":"<option>"+e+"</option>"}),e('<span class="k-pager-sizes k-label"><select></select>'+n.messages.itemsPerPage+"</span>").appendTo(x.element).find("select").html(_.join("")).end().appendTo(x.element)),x.element.find(".k-pager-sizes select").val(x.pageSize()),c.ui.DropDownList&&x.element.find(".k-pager-sizes select").show().kendoDropDownList(),x.element.on(b+w,".k-pager-sizes select",p(x._change,x))),n.refresh&&(x.element.find(".k-pager-refresh").length||x.element.append('<a href="#" class="k-pager-refresh k-link" title="'+n.messages.refresh+'" aria-label="'+n.messages.refresh+'"><span class="k-icon k-i-reload"></span></a>'),x.element.on(k+w,".k-pager-refresh",p(x._refreshClick,x))),n.info&&(x.element.find(".k-pager-info").length||x.element.append('<span class="k-pager-info k-label" />')),x.element.on(k+w,"a",p(x._click,x)).on(b+w,"select.k-dropdown",p(x._numericSelectChange,x)).addClass("k-pager-wrap k-widget k-floatwrap"),n.autoBind&&x.refresh(),x._resizeHandler=p(x.resize,x,!0),e(window).on("resize"+w,x._resizeHandler),S=x._getWidthSizeClass(x.element.outerWidth()),S&&x.element.addClass(S),c.notify(x)},destroy:function(){var t=this;h.fn.destroy.call(t),t.element.off(w),t.dataSource.unbind(b,t._refreshHandler),t._refreshHandler=null,e(window).off("resize"+w,this._resizeHandler),c.destroy(t.element),t.element=t.list=null},events:[b],options:{name:"Pager",selectTemplate:'<li><span class="k-link k-state-selected">#=text#</span></li>',currentPageTemplate:'<li class="k-current-page"><span class="k-link k-pager-nav">#=text#</span></li>',linkTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#" #if (title !== "") {# title="#=title#" #}#>#=text#</a></li>',numericItemTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#" #if (title !== "") {# title="#=title#" #}#>#=text#</a></li>',numericSelectItemTemplate:'<option value="#= idx #" #if (selected) {# selected="selected" #}#>#= text #</option>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,responsive:!0,messages:{allPages:"All",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",morePages:"More pages"}},setDataSource:function(e){var t=this;t.dataSource.unbind(b,t._refreshHandler),t.dataSource=t.options.dataSource=e,e.bind(b,t._refreshHandler),t.options.autoBind&&e.fetch()},_resize:function(e){var t,n;e.width&&(t=this._getWidthSizeClass(e.width),n=this.element,t?n.hasClass(t)||(n.removeClass(_),n.addClass(t)):n.removeClass(_))},_createDataSource:function(e){this.dataSource=c.data.DataSource.create(e.dataSource)},refresh:function(t){var o,r,u,h,p,f,m=this,g=1,v=m.page(),_="",b="",w=m.options,k=m.pageSize(),y=m._collapsedTotal(),C=m.dataSource._isGroupPaged()?m.dataSource.groupsTotal(!0):m.dataSource.total(),T=m.totalPages(),D=m.linkTemplate,A=m.numericSelectItemTemplate,E=w.buttonCount;if(!t||"itemchange"!=t.action){if(w.numeric){for(v>E&&(u=v%E,g=0===u?v-E+1:v-u+1),r=Math.min(g+E-1,T),g>1&&(_+=n(D,g-1,"...",!1,w.messages.morePages),b+=i(A,g-1,w.messages.morePages)),o=g;o<=r;o++)_+=n(o==v?m.selectTemplate:D,o,o,!0),b+=i(A,o,o,o==v);r<T&&(_+=n(D,o,"...",!1,w.messages.morePages),b+=i(A,o,w.messages.morePages)),""===_&&(_=m.selectTemplate({text:0}),b=e("<option value='0' />")),m.list.html(_),m._numericSelect.html(b)}w.info&&(_=C>0?c.format(w.messages.display,m.dataSource.options.endless?1:Math.min((v-1)*(m.dataSource.pageSize()||0)+1,y),Math.min(v*k,y),C):w.messages.empty,m.element.find(".k-pager-info").html(_)),w.input&&m.element.find(".k-pager-input").html(m.options.messages.page+'<input class="k-textbox" aria-label="'+v+'">'+c.format(w.messages.of,T)).find("input").val(v).attr(x,C<1).toggleClass("k-state-disabled",C<1),w.previousNext&&(a(m.element,v,T),s(m.element,v,T),l(m.element,v,T),d(m.element,v,T)),w.pageSizes&&(h=m.element.find(".k-pager-sizes option[value='all']").length>0,p=h&&(k===this.dataSource.total()||k==S),f=k,p&&(k="all",f=w.messages.allPages),m.element.find(".k-pager-sizes select").val(k).attr("aria-label",k).filter("["+c.attr("role")+"=dropdownlist]").kendoDropDownList("value",k).kendoDropDownList("text",f))}},_collapsedTotal:function(){return this.dataSource.total()},_keydown:function(e){if(e.keyCode===c.keys.ENTER){var t=this.element.find(".k-pager-input").find("input"),n=parseInt(t.val(),10);(isNaN(n)||n<1||n>this.totalPages())&&(n=this.page()),t.val(n),this.page(n)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var n=e.currentTarget.value,i=parseInt(n,10),o=this.dataSource;isNaN(i)?"all"==(n+"").toLowerCase()&&(o._pageSize=t,o._take=t,o._skip=0,o.fetch()):o.pageSize(i)},_numericSelectChange:function(e){var t=e.currentTarget,n=t.value,i=parseInt(n,10);t.blur(),this.page(i)},_click:function(t){var n=e(t.currentTarget);t.preventDefault(),n.is(".k-state-disabled")||this.page(parseInt(n.attr(c.attr("page")),10))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/(this.pageSize()||1))},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e?(this.trigger("pageChange",{index:e})||(this.dataSource.page(e),this.trigger(b,{index:e})),t):this.dataSource.total()>0?this.dataSource.page():0},_getWidthSizeClass:function(e){var t=this,n=_.split(" ");return t.options.responsive?e<=480?n[1]:e<=600?n[0]:null:null}});u.plugin(D)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.notification.min",["kendo.core.min","kendo.popup.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.proxy,r=e.extend,a=window.setTimeout,s="click",l="show",d="hide",c="k-notification",u=".k-notification-wrap .k-i-close",h="k-hiding",p="info",f="success",m="warning",g="error",v="top",_="left",b="bottom",w="right",k="up",y=".kendoNotification",x='<div class="k-widget k-popup k-notification"></div>',C='<div class="k-notification-wrap"><span class="k-icon k-i-#=typeIcon#" title="#=typeIcon#"></span><div class="k-notification-content">#=content#</div><span class="k-icon k-i-close" title="Hide"></span></div>',S=C.replace("#=content#","#:content#"),T=i.extend({
init:function(t,o){var r=this;i.fn.init.call(r,t,o),o=r.options,o.appendTo&&e(o.appendTo).is(t)||r.element.hide(),r._compileTemplates(o.templates),r._guid="_"+n.guid(),r._isRtl=n.support.isRtl(t),r._compileStacking(o.stacking,o.position.top,o.position.left),n.notify(r)},events:[l,d],options:{name:"Notification",position:{pinned:!0,top:null,left:null,bottom:20,right:20},stacking:"default",hideOnClick:!0,button:!1,allowHideAfter:0,autoHideAfter:5e3,appendTo:null,width:null,height:null,templates:[],animation:{open:{effects:"fade:in",duration:300},close:{effects:"fade:out",duration:600,hide:!0}}},_compileTemplates:function(t){var i=this,o=n.template;i._compiled={},e.each(t,function(t,n){i._compiled[n.type]=o(n.template||e("#"+n.templateId).html())}),i._defaultCompiled=o(C),i._safeCompiled=o(S)},_getCompiled:function(e,t){var n=t?this._safeCompiled:this._defaultCompiled;return e?this._compiled[e]||n:n},_compileStacking:function(e,t,n){var i,o,r=this,a={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},s=null!==n?_:w;switch(e){case"down":i=b+" "+s,o=v+" "+s,delete a.paddingBottom;break;case w:i=v+" "+w,o=v+" "+_,delete a.paddingRight;break;case _:i=v+" "+_,o=v+" "+w,delete a.paddingLeft;break;case k:i=v+" "+s,o=b+" "+s,delete a.paddingTop;break;default:null!==t?(i=b+" "+s,o=v+" "+s,delete a.paddingBottom):(i=v+" "+s,o=b+" "+s,delete a.paddingTop)}r._popupOrigin=i,r._popupPosition=o,r._popupPaddings=a},_attachPopupEvents:function(e,t){function n(e){e.on(s+y,function(){o._hidePopup(t)})}var i,o=this,r=e.allowHideAfter,l=!isNaN(r)&&r>0;e.hideOnClick?t.bind("activate",function(){l?a(function(){n(t.element)},r):n(t.element)}):e.button&&(i=t.element.find(u),l?a(function(){n(i)},r):n(i))},_showPopup:function(t,i){var o,s,l=this,d=i.autoHideAfter,c=i.position.left,p=i.position.top;s=e("."+l._guid+":not(."+h+")").last(),o=new n.ui.Popup(t,{anchor:s[0]?s:document.body,origin:l._popupOrigin,position:l._popupPosition,animation:i.animation,copyAnchorStyles:!1,modal:!0,collision:"",isRtl:l._isRtl,close:function(){l._triggerHide(this.element)},deactivate:function(e){e.sender.element.off(y),e.sender.element.find(u).off(y),e.sender.destroy()}}),l._attachPopupEvents(i,o),t.removeClass("k-group k-reset"),s[0]?o.open():(null===c&&(c=e(window).width()-t.outerWidth()-i.position.right),null===p&&(p=e(window).height()-t.outerHeight()-i.position.bottom),o.open(c,p)),o.wrapper.addClass(l._guid).css(r({margin:0,zIndex:10050},l._popupPaddings)),i.position.pinned?(o.wrapper.css("position","fixed"),s[0]&&l._togglePin(o.wrapper,!0)):s[0]||l._togglePin(o.wrapper,!1),d>0&&a(function(){l._hidePopup(o)},d)},_hidePopup:function(e){e.wrapper.addClass(h),e.close()},_togglePin:function(t,n){var i=e(window),o=n?-1:1;t.css({top:parseInt(t.css(v),10)+o*i.scrollTop(),left:parseInt(t.css(_),10)+o*i.scrollLeft()})},_attachStaticEvents:function(e,t){function n(e){e.on(s+y,o(i._hideStatic,i,t))}var i=this,r=e.allowHideAfter,l=!isNaN(r)&&r>0;e.hideOnClick?l?a(function(){n(t)},r):n(t):e.button&&(l?a(function(){n(t.find(u))},r):n(t.find(u)))},_showStatic:function(t,n){var i,o=this,r=n.autoHideAfter,s=n.animation,l=n.stacking==k||n.stacking==_?"prependTo":"appendTo";t.removeClass("k-popup").addClass(o._guid)[l](n.appendTo).hide().kendoAnimate(s.open||!1),i=o.getNotifications(),i.each(function(t,i){o._attachStaticEvents(n,e(i)),r>0&&a(function(){o._hideStatic(e(i))},r)})},_hideStatic:function(e){e.kendoAnimate(r(this.options.animation.close||!1,{complete:function(){e.off(y).find(u).off(y),e.remove()}})),this._triggerHide(e)},_triggerHide:function(e){this.trigger(d,{element:e}),this.angular("cleanup",function(){return{elements:e}})},show:function(i,o,a){var s,d,u=this,h=u.options,f=e(x);return o||(o=p),null!==i&&i!==t&&""!==i&&(n.isFunction(i)&&(i=i()),d={typeIcon:o,content:""},s=e.isPlainObject(i)?r(d,i):r(d,{content:i}),f.addClass(c+"-"+o).toggleClass(c+"-button",h.button).toggleClass(c+"-closable",h.button).attr("data-role","alert").css({width:h.width,height:h.height}).append(u._getCompiled(o,a)(s)),u.angular("compile",function(){return{elements:f,data:[{dataItem:s}]}}),e(h.appendTo)[0]?u._showStatic(f,h):u._showPopup(f,h),u.trigger(l,{element:f})),u},showText:function(e,t){this.show(e,t,!0)},info:function(e){return this.show(e,p)},success:function(e){return this.show(e,f)},warning:function(e){return this.show(e,m)},error:function(e){return this.show(e,g)},hide:function(){var t=this,n=t.getNotifications();return n.each(t.options.appendTo?function(n,i){t._hideStatic(e(i))}:function(n,i){var o=e(i).data("kendoPopup");o&&t._hidePopup(o)}),t},getNotifications:function(){var t=this,n=e("."+t._guid+":not(."+h+")");return t.options.appendTo?n:n.children("."+c)},setOptions:function(e){var n,o=this;i.fn.setOptions.call(o,e),n=o.options,e.templates!==t&&o._compileTemplates(n.templates),e.stacking===t&&e.position===t||o._compileStacking(n.stacking,n.position.top,n.position.left)},destroy:function(){i.fn.destroy.call(this),this.getNotifications().off(y).find(u).off(y)}});n.ui.plugin(T)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.tooltip.min",["kendo.core.min","kendo.popup.min","kendo.fx.min"],e)}(function(){return function(e,t){function n(e){for(;e.length&&!i(e);)e=e.parent()}function i(e){var t=e.data(a.ns+"title");if(t)return e.attr("title",t),e.removeData(a.ns+"title"),!0}function o(e){var t=e.attr("title");if(t)return e.data(a.ns+"title",t),e.attr("title",""),!0}function r(e){for(;e.length&&!e.is("body")&&!o(e);)e=e.parent()}var a=window.kendo,s=a.ui.Widget,l=a.ui.Popup,d=a.isFunction,c=e.isPlainObject,u=e.extend,h=e.proxy,p=e(document),f=a.isLocalUrl,m="_tt_active",g="aria-describedby",v="show",_="hide",b="error",w="contentLoad",k="requestStart",y="k-content-frame",x='<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#"><div class="k-tooltip-content"></div>#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close" title="Close"></a></div> #}##if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>',C=a.template("<iframe frameborder='0' class='"+y+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),S=".kendoTooltip",T={bottom:{origin:"bottom center",position:"top center"},top:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"},center:{position:"center center",origin:"center center"}},D={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},A={bottom:"n",top:"s",left:"e",right:"w",center:"n"},E={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}},I=function(e){return e.target.data(a.ns+"title")},M=s.extend({init:function(e,t){var n,i=this;s.fn.init.call(i,e,t),n=i.options.position.match(/left|right/)?"horizontal":"vertical",i.dimensions=E[n],i._documentKeyDownHandler=h(i._documentKeyDown,i),a.support.touch&&this._isShownOnMouseEnter()&&i.element.on(a.support.mousedown+S,i.options.filter,h(i._showOn,i)),i.element.on(i.options.showOn+S,i.options.filter,h(i._showOn,i)),(this._isShownOnMouseEnter()||this._isShownOnClick())&&i.element.on("mouseenter"+S,i.options.filter,h(i._mouseenter,i)),this.options.autoHide&&this._isShownOnMouseEnter()&&i.element.on("mouseleave"+S,i.options.filter,h(i._mouseleave,i)),this.options.autoHide&&this._isShownOnFocus()&&i.element.on("blur"+S,i.options.filter,h(i._blur,i)),a.support.touch&&i.element.on(a.support.mousedown+S,i.options.filter,h(i._mouseenter,i))},options:{name:"Tooltip",filter:"",content:I,showAfter:100,hideAfter:100,callout:!0,offset:0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{duration:40,hide:!0}}},events:[v,_,w,b,k],_isShownOnFocus:function(){return this.options.showOn&&this.options.showOn.match(/focus/)},_isShownOnMouseEnter:function(){return this.options.showOn&&this.options.showOn.match(/mouseenter/)},_isShownOnClick:function(){return this.options.showOn&&this.options.showOn.match(/click/)},_mouseenter:function(t){r(e(t.currentTarget))},_showOn:function(t){var n=this,i=e(t.currentTarget);n._isShownOnClick()&&!n._isShownOnMouseEnter()?n._show(i):n._isShownOnFocus()?(r(i),n._show(i)):(clearTimeout(n.timeout),n.timeout=setTimeout(function(){n._show(i)},n.options.showAfter))},_appendContent:function(e){var t,n=this,i=n.options.content,o=n.content,r=n.options.iframe;c(i)&&i.url?("iframe"in n.options||(r=!f(i.url)),n.trigger(k,{options:i,target:e}),r?(o.hide(),t=o.find("."+y)[0],t?t.src=i.url||t.src:o.html(C({content:i})),o.find("."+y).off("load"+S).on("load"+S,function(){n.trigger(w),o.show()})):(o.empty(),a.ui.progress(o,!0),n._ajaxRequest(i))):i&&d(i)?(i=i({sender:this,target:e}),o.html(i||"")):o.html(i),n.angular("compile",function(){return{elements:o}})},_ajaxRequest:function(e){var t=this;jQuery.ajax(u({type:"GET",dataType:"html",cache:!1,error:function(e,n){a.ui.progress(t.content,!1),t.trigger(b,{status:n,xhr:e})},success:h(function(e){a.ui.progress(t.content,!1),t.content.html(e),t.trigger(w)},t)},e))},_documentKeyDown:function(e){e.keyCode===a.keys.ESC&&this.hide()},refresh:function(){var e=this,t=e.popup;t&&t.options.anchor&&e._appendContent(t.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(e){e=e||this.element,r(e),this._show(e)},_show:function(e){var t=this,i=t.target();t.popup||t._initPopup(),i&&i[0]!=e[0]&&(t.popup.close(),t.popup.element.kendoStop(!0,!0)),i&&i[0]==e[0]||(t._appendContent(e),t.popup.options.anchor=e),t.popup.one("deactivate",function(){n(e),e.removeAttr(g),this.element.removeAttr("id").attr("aria-hidden",!0),p.off("keydown"+S,t._documentKeyDownHandler)}),t.popup._hovered=!0,t.popup.open()},_initPopup:function(){var n=this,i=n.options,o=e(a.template(x)({callout:i.callout&&"center"!==i.position,dir:A[i.position],autoHide:i.autoHide}));n.popup=new l(o,u({autosize:!0,activate:function(){var e=this.options.anchor,o=e[0].id||n.element[0].id;o&&(e.attr(g,o+m),this.element.attr("id",o+m)),i.callout?n._positionCallout():n._offset(n.options.position,n.options.offset),this.element.removeAttr("aria-hidden"),p.on("keydown"+S,n._documentKeyDownHandler),n.trigger(v),n.popup._hovered=t},close:function(){n.trigger(_)},copyAnchorStyles:!1,animation:i.animation},T[i.position])),o.css({width:i.width,height:i.height}),n.content=o.find(".k-tooltip-content"),n.arrow=o.find(".k-callout"),i.autoHide&&this._isShownOnMouseEnter()?o.on("mouseleave"+S,h(n._mouseleave,n)):o.on("click"+S,".k-tooltip-button",h(n._closeButtonClick,n))},_closeButtonClick:function(e){e.preventDefault(),this.hide()},_mouseleave:function(e){var t=this;clearTimeout(t.timeout),t.timeout=setTimeout(function(){t._closePopup(e.currentTarget)},t.options.hideAfter)},_blur:function(e){this._closePopup(e.currentTarget)},_closePopup:function(t){this.popup&&!this.popup._hovered?this.popup.close():n(e(t))},target:function(){return this.popup?this.popup.options.anchor:null},_positionCallout:function(){var t=this,n=t.options.position,i=t.dimensions,o=i.offset,r=t.popup,a=r.options.anchor,s=e(a).offset(),l=e(r.element).offset(),d=A[r.flipped?D[n]:n],c=s[o]-l[o]+e(a)[i.size]()/2;t._offset(n,t.options.offset),t.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+d).css(o,c)},destroy:function(){var e=this.popup;e&&(e.element.off(S),e.destroy()),clearTimeout(this.timeout),this.element.off(S),p.off("keydown"+S,this._documentKeyDownHandler),s.fn.destroy.call(this)},_offset:function(e,t){var n=this,i="top"==e||"left"==e,o=n.popup.flipped,r=i&&o||!i&&!o?1:-1,s=i?"margin-"+e:"margin-"+D[e],l=a._outerWidth(n.arrow)/2+t;n.popup.wrapper.css(s,l*r+"px")}});a.ui.plugin(M)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.list.min",["kendo.data.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e,n){return e!==t&&""!==e&&null!==e&&("boolean"===n?("boolean"!=typeof e&&(e="true"===(""+e).toLowerCase()),e=!!e):"number"===n?e=+e:"string"===n&&(e=""+e)),e}function i(e){return e[e.length-1]}function o(e){var t=e.selectedIndex;return t>-1?e.options[t]:{}}function r(e,t){var n,i,o,r,a=t.length,s=e.length,l=[],d=[];if(s)for(o=0;o<s;o++){for(n=e[o],i=!1,r=0;r<a;r++)if(n===t[r]){i=!0,l.push({index:o,item:n});break}i||d.push(n)}return{changed:l,unchanged:d}}function a(t){return!(!t||e.isEmptyObject(t))&&!(t.filters&&!t.filters.length)}function s(t,n){var i,o=!1;return t.filters&&(i=e.grep(t.filters,function(e){return o=s(e,n),e.filters?e.filters.length:e.field!=n}),o||t.filters.length===i.length||(o=!0),t.filters=i),o}var l,d,c=window.kendo,u=c.ui,h=c._outerHeight,p=/^\d+(\.\d+)?%$/i,f=u.Widget,m=c.keys,g=c.support,v=c.htmlEncode,_=c._activeElement,b=c._outerWidth,w=c.data.ObservableArray,k="id",y="change",x="k-state-focused",C="k-state-hover",S="k-i-loading",T=".k-group-header",D=".k-item",A="_label",E="open",I="close",M="cascade",R="select",F="selected",P="requestStart",z="requestEnd",B="blur",L="focus",H="focusout",N=e.extend,O=e.proxy,V=e.isArray,W=g.browser,U="k-hidden",j="width",q=W.msie,G=q&&W.version<9,$=/"/g,K={ComboBox:["DropDownList","MultiColumnComboBox"],DropDownList:["ComboBox","MultiColumnComboBox"],MultiColumnComboBox:["ComboBox","DropDownList"]},Y=c.ui.DataBoundWidget.extend({init:function(t,n){var i,o=this,r=o.ns;f.fn.init.call(o,t,n),t=o.element,n=o.options,o._isSelect=t.is(R),o._isSelect&&o.element[0].length&&(n.dataSource||(n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value")),o.ul=e('<ul unselectable="on" class="k-list k-reset"/>').attr({tabIndex:-1,"aria-hidden":!0}),o.list=e("<div class='k-list-container'/>").append(o.ul).on("mousedown"+r,O(o._listMousedown,o)),i=t.attr(k),i||(i=c.guid()),o.list.attr(k,i+"-list"),o.ul.attr(k,i+"_listbox"),n.columns&&n.columns.length&&(o.ul.removeClass("k-list").addClass("k-grid-list"),o._columnsHeader()),o._header(),o._noData(),o._footer(),o._accessors(),o._initValue()},options:{valuePrimitive:!1,footerTemplate:"",headerTemplate:"",noDataTemplate:!0,messages:{noData:"No data found.",clear:"clear"}},setOptions:function(e){f.fn.setOptions.call(this,e),e&&e.enable!==t&&(e.enabled=e.enable),e.columns&&e.columns.length&&this._columnsHeader(),this._header(),this._noData(),this._footer(),this._renderFooter(),this._renderNoData()},focus:function(){this._focused.focus()},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},_header:function(){var n,i=this,o=e(i.header),r=i.options.headerTemplate;return this._angularElement(o,"cleanup"),c.destroy(o),o.remove(),r?(n="function"!=typeof r?c.template(r):r,o=e(n({})),i.header=o[0]?o:null,i.list.prepend(o),this._angularElement(i.header,"compile"),t):(i.header=null,t)},_columnsHeader:function(){var t,n,i,o,r,a,s,l,d,u,h,f=this,m=e(f.columnsHeader);for(this._angularElement(m,"cleanup"),c.destroy(m),m.remove(),t="<div class='k-grid-header'><div class='k-grid-header-wrap'><table role='presentation'>",n="<colgroup>",i="<tr>",o=0;o<this.options.columns.length;o++)r=this.options.columns[o],a=r.title||r.field||"",s=r.headerTemplate||a,l="function"!=typeof s?c.template(s):s,d=r.width,u=parseInt(d,10),h="",d&&!isNaN(u)&&(h+="style='width:",h+=u,h+=p.test(d)?"%":"px",h+=";'"),n+="<col "+h+"/>",i+="<th class='k-header'>",i+=l(r),i+="</th>";n+="</colgroup>",i+="</tr>",t+=n,t+=i,t+="</table></div></div>",f.columnsHeader=m=e(t),f.list.prepend(m),this._angularElement(f.columnsHeader,"compile")},_noData:function(){var n=this,i=e(n.noData),o=n.options.noDataTemplate===!0?n.options.messages.noData:n.options.noDataTemplate;return n.angular("cleanup",function(){return{elements:i}}),c.destroy(i),i.remove(),o?(n.noData=e('<div class="k-nodata" style="display:none"><div></div></div>').appendTo(n.list),n.noDataTemplate="function"!=typeof o?c.template(o):o,t):(n.noData=null,t)},_footer:function(){var n=this,i=e(n.footer),o=n.options.footerTemplate;return this._angularElement(i,"cleanup"),c.destroy(i),i.remove(),o?(n.footer=e('<div class="k-footer"></div>').appendTo(n.list),n.footerTemplate="function"!=typeof o?c.template(o):o,t):(n.footer=null,t)},_listOptions:function(t){var n=this,i=n.options,o=i.virtual,r={change:O(n._listChange,n)},a=O(n._listBound,n);return o="object"==typeof o?o:{},t=e.extend({autoBind:!1,selectable:!0,dataSource:n.dataSource,click:O(n._click,n),activate:O(n._activateItem,n),columns:i.columns,deactivate:O(n._deactivateItem,n),dataBinding:function(){n.trigger("dataBinding")},dataBound:a,height:i.height,dataValueField:i.dataValueField,dataTextField:i.dataTextField,groupTemplate:i.groupTemplate,fixedGroupTemplate:i.fixedGroupTemplate,template:i.template},t,o,r),t.template||(t.template="#:"+c.expr(t.dataTextField,"data")+"#"),i.$angular&&(t.$angular=i.$angular),t},_initList:function(){var e=this,t=e._listOptions({selectedItemChange:O(e._listChange,e)});e.listView=e.options.virtual?new c.ui.VirtualList(e.ul,t):new c.ui.StaticList(e.ul,t),e.listView.bind("listBound",O(e._listBound,e)),e._setListValue()},_setListValue:function(e){e=e||this.options.value,e!==t&&this.listView.value(e).done(O(this._updateSelectionState,this))},_updateSelectionState:e.noop,_listMousedown:function(e){this.filterInput&&this.filterInput[0]===e.target||e.preventDefault()},_isFilterEnabled:function(){var e=this.options.filter;return e&&"none"!==e},_hideClear:function(){var e=this;e._clear&&e._clear.addClass(U)},_showClear:function(){this._clear&&this._clear.removeClass(U)},_clearValue:function(){this._clearText(),this._accessor(""),this.listView.value([]),this._isSelect&&(this._customOption=t),this._isFilterEnabled()&&!this.options.enforceMinLength&&(this._filter({word:"",open:!1}),this.options.highlightFirst&&this.listView.focus(0)),this._change()},_clearText:function(){this.text("")},_clearFilter:function(){this.options.virtual||this.listView.bound(!1),this._filterSource()},_filterSource:function(e,t){var n,i,o=this,r=o.options,l=r.filterFields&&e&&e.logic&&e.filters&&e.filters.length,d=o.dataSource,c=N({},d.filter()||{}),u=e||c.filters&&c.filters.length&&!e,h=s(c,r.dataTextField);if(this._clearFilterExpressions(c),!e&&!h||!o.trigger("filtering",{filter:e}))return n={filters:[],logic:"and"},l?n.filters.push(e):this._pushFilterExpression(n,e),a(c)&&(n.logic===c.logic?n.filters=n.filters.concat(c.filters):n.filters.push(c)),o._cascading&&this.listView.setDSFilter(n),i=N({},{page:u?1:d.page(),pageSize:u?d.options.pageSize:d.pageSize(),sort:d.sort(),filter:d.filter(),group:d.group(),aggregate:d.aggregate()},{filter:n}),d[t?"read":"query"](d._mergeState(i))},_pushFilterExpression:function(e,t){a(t)&&""!==t.value&&e.filters.push(t)},_clearFilterExpressions:function(e){var t,n;if(e.filters){for(n=0;n<e.filters.length;n++)"fromFilter"in e.filters[n]&&(t=n);isNaN(t)||e.filters.splice(t,1)}},_angularElement:function(e,t){e&&this.angular(t,function(){return{elements:e}})},_renderNoData:function(){var e=this,t=e.noData;t&&(this._angularElement(t,"cleanup"),t.children(":first").html(e.noDataTemplate({instance:e})),this._angularElement(t,"compile"))},_toggleNoData:function(t){e(this.noData).toggle(t)},_toggleHeader:function(e){var t=this.listView.content.prev(T);t.toggle(e)},_renderFooter:function(){var e=this,t=e.footer;t&&(this._angularElement(t,"cleanup"),t.html(e.footerTemplate({instance:e})),this._angularElement(t,"compile"))},_allowOpening:function(){return this.options.noDataTemplate||this.dataSource.flatView().length},_initValue:function(){var e=this,t=e.options.value;null!==t?e.element.val(t):(t=e._accessor(),e.options.value=t),e._old=t},_ignoreCase:function(){var e,t=this,n=t.dataSource.reader.model;n&&n.fields&&(e=n.fields[t.options.dataTextField],e&&e.type&&"string"!==e.type&&(t.options.ignoreCase=!1))},_focus:function(e){return this.listView.focus(e)},_filter:function(e){var t,n,i=this,o=i.options,r=e.word,a=o.filterFields,s=o.dataTextField;if(a&&a.length)for(t={logic:"or",filters:[],fromFilter:!0},n=0;n<a.length;n++)this._pushFilterExpression(t,i._buildExpression(r,a[n]));else t=i._buildExpression(r,s);i._open=e.open,i._filterSource(t)},_buildExpression:function(e,t){var n=this,i=n.options,o=i.ignoreCase,r=n.dataSource.options.accentFoldingFiltering;return{value:o?r?e.toLocaleLowerCase(r):e.toLowerCase():e,field:t,operator:i.filter,ignoreCase:o}},_clearButton:function(){var t=this,n=t.options.messages.clear;t._clear||(t._clear=e('<span unselectable="on" class="k-icon k-clear-value k-i-close" title="'+n+'"></span>').attr({role:"button",tabIndex:-1})),t.options.clearButton||t._clear.remove(),this._hideClear()},search:function(e){var t=this.options;e="string"==typeof e?e:this._inputValue(),clearTimeout(this._typingTimeout),(!t.enforceMinLength&&!e.length||e.length>=t.minLength)&&(this._state="filter",this.listView&&(this.listView._emptySearch=!c.trim(e).length),this._isFilterEnabled()?this._filter({word:e,open:!0}):this._searchByWord(e))},current:function(e){return this._focus(e)},items:function(){return this.ul[0].children},destroy:function(){var e=this,t=e.ns;f.fn.destroy.call(e),e._unbindDataSource(),e.listView.destroy(),e.list.off(t),e.popup.destroy(),e._form&&e._form.off("reset",e._resetHandler)},dataItem:function(n){var i=this;if(n===t)return i.listView.selectedDataItems()[0];if("number"!=typeof n){if(i.options.virtual)return i.dataSource.getByUid(e(n).data("uid"));n=e(i.items()).index(n)}return i.dataSource.flatView()[n]},_activateItem:function(){var e=this.listView.focus();e&&this._focused.add(this.filterInput).attr("aria-activedescendant",e.attr("id"))},_deactivateItem:function(){this._focused.add(this.filterInput).removeAttr("aria-activedescendant")},_accessors:function(){var e=this,t=e.element,n=e.options,i=c.getter,o=t.attr(c.attr("text-field")),r=t.attr(c.attr("value-field"));!n.dataTextField&&o&&(n.dataTextField=o),!n.dataValueField&&r&&(n.dataValueField=r),e._text=i(n.dataTextField),e._value=i(n.dataValueField)},_aria:function(e){var n=this,i=n.options,o=n._focused.add(n.filterInput);i.suggest!==t&&o.attr("aria-autocomplete",i.suggest?"both":"list"),e=e?e+" "+n.ul[0].id:n.ul[0].id,o.attr("aria-owns",e),n.ul.attr("aria-live",n._isFilterEnabled()?"polite":"off"),n._ariaLabel()},_ariaLabel:function(){var t,n=this,i=n._focused,o=n.element,r=o.attr("id"),a=e('label[for="'+r+'"]'),s=o.attr("aria-label"),l=o.attr("aria-labelledby");i!==o&&(s?i.attr("aria-label",s):l?i.attr("aria-labelledby",l):a.length&&(t=a.attr("id")||n._generateLabelId(a,r||c.guid()),i.attr("aria-labelledby",t)))},_generateLabelId:function(e,t){var n=t+A;return e.attr("id",n),n},_blur:function(){var e=this;e._change(),e.close(),e._userTriggered=!1},_change:function(){var e,i=this,o=i.selectedIndex,r=i.options.value,a=i.value();i._isSelect&&!i.listView.bound()&&r&&(a=r),a!==n(i._old,typeof a)&&a!==n(i._oldText,typeof a)?e=!0:i._valueBeforeCascade!==t&&i._valueBeforeCascade!==n(i._old,typeof i._valueBeforeCascade)&&i._userTriggered?e=!0:o===t||o===i._oldIndex||i.listView.isFiltered()||(e=!0),e&&(i._valueBeforeCascade=i._old=null===i._old||""===i._old||""===a?a:i.dataItem()?i.options.dataValueField?i.dataItem()[i.options.dataValueField]:i.dataItem():null,i._oldIndex=o,i._oldText=i.text&&i.text(),i._typing||i.element.trigger(y),i.trigger(y)),i.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,n=e.options,i=e.element.is("[disabled]");n.enable!==t&&(n.enabled=n.enable),!n.enabled||i?e.enable(!1):e.readonly(e.element.is("[readonly]"))},_dataValue:function(e){var n=this._value(e);return n===t&&(n=this._text(e)),n},_offsetHeight:function(){var t=0,n=this.listView.content.prevAll(":visible");return n.each(function(){var n=e(this);t+=h(n,!0)}),t},_height:function(n){var i,o,r,a=this,s=a.list,l=a.options.height,d=a.popup.visible();if(n||a.options.noDataTemplate){if(o=s.add(s.parent(".k-animation-container")).show(),!s.is(":visible"))return o.hide(),t;l=a.listView.content[0].scrollHeight>l?l:"auto",o.height(l),"auto"!==l&&(i=a._offsetHeight(),r=h(e(a.footer))||0,l=l-i-r),a.listView.content.height(l),d||o.hide()}return l},_openHandler:function(e){this._adjustListWidth(),this.trigger(E)?e.preventDefault():(this._focused.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_adjustListWidth:function(){var e,t,n=this,i=n.list,o=i[0].style.width,r=n.wrapper;if(i.data(j)||!o)return e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=parseFloat(e&&e.width)||b(r),e&&W.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),o="border-box"!==i.css("box-sizing")?t-(b(i)-i.width()):t,i.css({fontFamily:r.css("font-family"),width:n.options.autoWidth?"auto":o,minWidth:o,whiteSpace:n.options.autoWidth?"nowrap":"normal"}).data(j,o),!0},_closeHandler:function(e){this.trigger(I)?e.preventDefault():(this._focused.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_focusItem:function(){var e=this.listView,n=!e.focus(),o=i(e.select());o===t&&this.options.highlightFirst&&n&&(o=0),o!==t?e.focus(o):n&&e.scrollToIndex(0)},_calculateGroupPadding:function(e){var t=this.ul.children(".k-first:first"),n=this.listView.content.prev(T),i=0,o="right";n[0]&&"none"!==n[0].style.display&&("auto"!==e&&(i=c.support.scrollbar()),this.element.parents(".k-rtl").length&&(o="left"),i+=parseFloat(t.css("border-"+o+"-width"),10)+parseFloat(t.children(".k-group").css("padding-"+o),10),n.css("padding-"+o,i))},_calculatePopupHeight:function(e){var t=this._height(this.dataSource.flatView().length||e);this._calculateGroupPadding(t),this._calculateColumnsHeaderPadding(t)},_calculateColumnsHeaderPadding:function(e){var t,n,i;this.options.columns&&this.options.columns.length&&(t=this,n=g.isRtl(t.wrapper),i=c.support.scrollbar(),t.columnsHeader.css(n?"padding-left":"padding-right","auto"!==e?i:0))},_refreshScroll:function(){var e=this.listView,t=e.element.height()>e.content.height();this.options.autoWidth&&e.content.css({overflowX:"hidden",overflowY:t?"scroll":"auto"})},_resizePopup:function(e){this.options.virtual||(this.popup.element.is(":visible")?this._calculatePopupHeight(e):(this.popup.one("open",function(e){return O(function(){this._calculatePopupHeight(e)},this)}.call(this,e)),this.popup.one("activate",O(this._refreshScroll,this))))},_popup:function(){var e=this;e.popup=new u.Popup(e.list,N({},e.options.popup,{anchor:e.wrapper,open:O(e._openHandler,e),close:O(e._closeHandler,e),animation:e.options.animation,isRtl:g.isRtl(e.wrapper),autosize:e.options.autoWidth}))},_makeUnselectable:function(){G&&this.list.find("*").not(".k-textbox").attr("unselectable","on")},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_toggle:function(e,n){var i=this,o=g.mobileOS&&(g.touch||g.MSPointers||g.pointers);e=e!==t?e:!i.popup.visible(),n||o||i._focused[0]===_()||(i._prevent=!0,i._focused.focus(),i._prevent=!1),i[e?E:I]()},_triggerCascade:function(){var e=this;e._cascadeTriggered&&e.value()===n(e._cascadedValue,typeof e.value())||(e._cascadedValue=e.value(),e._cascadeTriggered=!0,e.trigger(M,{userTriggered:e._userTriggered}))},_triggerChange:function(){this._valueBeforeCascade!==this.value()&&this.trigger(y)},_unbindDataSource:function(){var e=this;e.dataSource.unbind(P,e._requestStartHandler).unbind(z,e._requestEndHandler).unbind("error",e._errorHandler)},requireValueMapper:function(e,t){var n=(e.value instanceof Array?e.value.length:e.value)||(t instanceof Array?t.length:t);if(n&&e.virtual&&"function"!=typeof e.virtual.valueMapper)throw Error("ValueMapper is not provided while the value is being set. See http://docs.telerik.com/kendo-ui/controls/editors/combobox/virtualization#the-valuemapper-function")}});N(Y,{inArray:function(e,t){var n,i,o=t.children;if(!e||e.parentNode!==t)return-1;for(n=0,i=o.length;n<i;n++)if(e===o[n])return n;return-1},unifyType:n}),c.ui.List=Y,u.Select=Y.extend({init:function(e,t){Y.fn.init.call(this,e,t),this._initial=this.element.val()},setDataSource:function(e){var t,n=this;n.options.dataSource=e,n._dataSource(),n.listView.bound()&&(n._initialIndex=null,n.listView._current=null),n.listView.setDataSource(n.dataSource),n.options.autoBind&&n.dataSource.fetch(),t=n._parentWidget(),t&&n._cascadeSelect(t)},close:function(){this.popup.close()},select:function(e){var n=this;return e===t?n.selectedIndex:n._select(e).done(function(){n._cascadeValue=n._old=n._accessor(),n._oldIndex=n.selectedIndex})},_accessor:function(e,t){return this[this._isSelect?"_accessorSelect":"_accessorInput"](e,t)},_accessorInput:function(e){var n=this.element[0];return e===t?n.value:(null===e&&(e=""),n.value=e,t)},_accessorSelect:function(e,n){var i,r=this.element[0];return e===t?o(r).value||"":(o(r).selected=!1,n===t&&(n=-1),i=null!==e&&""!==e,i&&n==-1?this._custom(e):e?r.value=e:r.selectedIndex=n,t)},_syncValueAndText:function(){return!0},_custom:function(t){var n=this,i=n.element,o=n._customOption;o||(o=e("<option/>"),n._customOption=o,i.append(o)),o.text(t),o[0].selected=!0},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrowIcon.removeClass(S),e._focused.attr("aria-busy",!1),e._busy=null,e._showClear()},_showBusy:function(e){var t=this;e.isDefaultPrevented()||(t._request=!0,t._busy||(t._busy=setTimeout(function(){t._arrowIcon&&(t._focused.attr("aria-busy",!0),t._arrowIcon.addClass(S),t._hideClear())},100)))},_requestEnd:function(){this._request=!1,this._hideBusy()},_dataSource:function(){var t,n=this,i=n.element,o=n.options,r=o.dataSource||{};r=e.isArray(r)?{data:r}:r,n._isSelect&&(t=i[0].selectedIndex,t>-1&&(o.index=t),r.select=i,r.fields=[{field:o.dataTextField},{field:o.dataValueField}]),n.dataSource?n._unbindDataSource():(n._requestStartHandler=O(n._showBusy,n),n._requestEndHandler=O(n._requestEnd,n),n._errorHandler=O(n._hideBusy,n)),n.dataSource=c.data.DataSource.create(r).bind(P,n._requestStartHandler).bind(z,n._requestEndHandler).bind("error",n._errorHandler)},_firstItem:function(){this.listView.focusFirst()},_lastItem:function(){this.listView.focusLast()},_nextItem:function(){return this.listView.focusNext()},_prevItem:function(){return this.listView.focusPrev()},_getNormalizedDataItem:function(e){var t,n=this,i=n.listView,o="number"==typeof e,r=n.optionLabel&&n.optionLabel.length;return t=o?r?--e:e:i.getElementIndex(e),i.dataItemByIndex(t)},_getNormalizedSelectCandidate:function(e){var t=this,n=t.optionLabel&&t.optionLabel.length,i="number"==typeof e,o=e;return n&&i&&o++,o},_move:function(e){var t,n,i,o,r,a,s,l,d,c=this,u=c.listView,h=e.keyCode,p=h===m.DOWN,f=c.options.virtual;if(h===m.UP||p){if(e.altKey)c.toggle(p);else{if(!u.bound()&&!c.ul[0].firstChild)return c._fetch||(c.dataSource.one(y,function(){c._fetch=!1,c._move(e)}),c._fetch=!0,c._filterSource()),e.preventDefault(),!0;i=c._focus(),c._fetch||i&&!i.hasClass("k-state-selected")||(p?(o=c._nextItem(),(f&&o<=0||!c._focus()&&!o)&&c._lastItem()):(o=c._prevItem(),(f&&o>=u.dataSource.total()-1||!c._focus()&&!o)&&c._firstItem())),r=c._getNormalizedSelectCandidate(c._get(c._focus())||o||0),c._select(r,!0).done(function(){var e=function(){c.popup.visible()||c._blur(),c._cascadedValue=null===c._cascadedValue?c.value():c.dataItem()?c.dataItem()[c.options.dataValueField]||c.dataItem():null};c.trigger(R,{dataItem:c._getNormalizedDataItem(r),item:c._focus()})?c._select(i).done(e):e()})}e.preventDefault(),n=!0}else if(h===m.ENTER||h===m.TAB){if(c.popup.visible()&&e.preventDefault(),i=c._focus(),t=c.dataItem(),c.popup.visible()||t&&c.text()===c._text(t)||(i=null),a=c.filterInput&&c.filterInput[0]===_(),i){if(t=u.dataItemByIndex(u.getElementIndex(i)),l=!0,t&&(l=c._value(t)!==Y.unifyType(c.value(),typeof c._value(t))),l&&c.trigger(R,{dataItem:t,item:i}))return;s=c._select(i)}else c.input&&((c._syncValueAndText()||c._isSelect)&&c._accessor(c.input.val()),
c.listView.value(c.input.val()));c._focusElement&&c._focusElement(c.wrapper),a&&h===m.TAB?c.wrapper.focusout():s&&"function"==typeof s.done?s.done(function(){c._blur()}):c._blur(),c.close(),n=!0}else h===m.ESC?(c.popup.visible()&&e.preventDefault(),c.close(),n=!0):!c.popup.visible()||h!==m.PAGEDOWN&&h!==m.PAGEUP||(e.preventDefault(),d=h===m.PAGEDOWN?1:-1,u.scrollWith(d*u.screenHeight()),n=!0);return n},_fetchData:function(){var e=this,t=!!e.dataSource.view().length;e._request||e.options.cascadeFrom||e.listView.bound()||e._fetch||t||(e._fetch=!0,e.dataSource.fetch().done(function(){e._fetch=!1}))},_options:function(e,n,i){var r,a,s,l,d=this,c=d.element,u=c[0],h=e.length,p="",f=0;for(n&&(p=n);f<h;f++)r="<option",a=e[f],s=d._text(a),l=d._value(a),l!==t&&(l+="",l.indexOf('"')!==-1&&(l=l.replace($,"&quot;")),r+=' value="'+l+'"'),r+=">",s!==t&&(r+=v(s)),r+="</option>",p+=r;c.html(p),i!==t&&(u.value=i,u.value&&!i&&(u.selectedIndex=-1)),u.selectedIndex!==-1&&(r=o(u),r&&r.setAttribute(F,F))},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=o.on("reset",t._resetHandler))},_parentWidget:function(){var t,n,i,o=this.options.name;if(this.options.cascadeFrom){if(t=e("#"+this.options.cascadeFrom),n=t.data("kendo"+o),!n)for(i=0;i<K[o].length&&!(n=t.data("kendo"+K[o][i]));i+=1);return n}},_cascade:function(){var e,t=this,n=t.options,i=n.cascadeFrom;if(i){if(e=t._parentWidget(),!e)return;t._cascadeHandlerProxy=O(t._cascadeHandler,t),t._cascadeFilterRequests=[],n.autoBind=!1,e.bind("set",function(){t.one("set",function(e){t._selectedValue=e.value||t._accessor()})}),e.first(M,t._cascadeHandlerProxy),e.listView.bound()?(t._toggleCascadeOnFocus(),t._cascadeSelect(e)):(e.one("dataBound",function(){t._toggleCascadeOnFocus(),e.popup.visible()&&e._focused.focus()}),e.value()||t.enable(!1))}},_toggleCascadeOnFocus:function(){var e=this,t=e._parentWidget(),n=q&&t instanceof u.DropDownList?B:H;t._focused.add(t.filterInput).bind(L,function(){t.unbind(M,e._cascadeHandlerProxy),t.first(y,e._cascadeHandlerProxy)}),t._focused.add(t.filterInput).bind(n,function(){t.unbind(y,e._cascadeHandlerProxy),t.first(M,e._cascadeHandlerProxy)})},_cascadeHandler:function(e){var t=this._parentWidget(),n=this.value();this._userTriggered=e.userTriggered||t._userTriggered,this.listView.bound()&&this._clearSelection(t,!0),this._cascadeSelect(t,n)},_cascadeChange:function(e){var t=this,i=t._accessor()||t._selectedValue;t._cascadeFilterRequests.length||(t._selectedValue=null),t._userTriggered?t._clearSelection(e,!0):i?(i!==n(t.listView.value()[0],typeof i)&&t.value(i),t.dataSource.view()[0]&&t.selectedIndex!==-1||t._clearSelection(e,!0)):t.dataSource.flatView().length&&t.select(t.options.index),t.enable(),t._triggerCascade(),t._triggerChange(),t._userTriggered=!1},_cascadeSelect:function(e,n){var i,o,r=this,a=e.dataItem(),l=a?a[r.options.cascadeFromParentField]||e._value(a):null,d=r.options.cascadeFromField||e.options.dataValueField;r._valueBeforeCascade=n!==t?n:r.value(),l||0===l?(i=r.dataSource.filter()||{},s(i,d),o=function(){var t=r._cascadeFilterRequests.shift();t&&r.unbind("dataBound",t),t=r._cascadeFilterRequests[0],t&&r.first("dataBound",t),r._cascadeChange(e)},r._cascadeFilterRequests.push(o),1===r._cascadeFilterRequests.length&&r.first("dataBound",o),r._cascading=!0,r._filterSource({field:d,operator:"eq",value:l}),r._cascading=!1):(r.enable(!1),r._clearSelection(e),r._triggerCascade(),r._triggerChange(),r._userTriggered=!1)}}),l=".StaticList",d=c.ui.DataBoundWidget.extend({init:function(t,n){f.fn.init.call(this,t,n),this.element.attr("role","listbox").on("click"+l,"li",O(this._click,this)).on("mouseenter"+l,"li",function(){e(this).addClass(C)}).on("mouseleave"+l,"li",function(){e(this).removeClass(C)}),g.touch&&this._touchHandlers(),"multiple"===this.options.selectable&&this.element.attr("aria-multiselectable",!0),this.content=this.element.wrap("<div class='k-list-scroller' unselectable='on'></div>").parent(),this.header=this.content.before('<div class="k-group-header" style="display:none"></div>').prev(),this.bound(!1),this._optionID=c.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var i=this.options.value;i&&(this._values=e.isArray(i)?i.slice(0):[i]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._onScroll=O(function(){var e=this;clearTimeout(e._scrollId),e._scrollId=setTimeout(function(){e._renderHeader()},50)},this)},options:{name:"StaticList",dataValueField:null,valuePrimitive:!1,selectable:!0,template:null,groupTemplate:null,fixedGroupTemplate:null},events:["click",y,"activate","deactivate","dataBinding","dataBound","selectedItemChange"],setDataSource:function(t){var n,i=this,o=t||{};o=e.isArray(o)?{data:o}:o,o=c.data.DataSource.create(o),i.dataSource?(i.dataSource.unbind(y,i._refreshHandler),n=i.value(),i.value([]),i.bound(!1),i.value(n)):i._refreshHandler=O(i.refresh,i),i.setDSFilter(o.filter()),i.dataSource=o.bind(y,i._refreshHandler),i._fixedHeader()},_touchHandlers:function(){var t,n,i=this,o=function(e){return(e.originalEvent||e).changedTouches[0].pageY};i.element.on("touchstart"+l,function(e){t=o(e)}),i.element.on("touchend"+l,function(r){r.isDefaultPrevented()||(n=o(r),Math.abs(n-t)<10&&(i._touchTriggered=!0,i._triggerClick(e(r.target).closest(D).get(0))))})},skip:function(){return this.dataSource.skip()},setOptions:function(e){f.fn.setOptions.call(this,e),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(l),this._refreshHandler&&this.dataSource.unbind(y,this._refreshHandler),clearTimeout(this._scrollId),f.fn.destroy.call(this)},dataItemByIndex:function(e){return this.dataSource.flatView()[e]},screenHeight:function(){return this.content[0].clientHeight},scrollToIndex:function(e){var t=this.element[0].children[e];t&&this.scroll(t)},scrollWith:function(e){this.content.scrollTop(this.content.scrollTop()+e)},scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.content[0],n=e.offsetTop,i=e.offsetHeight,o=t.scrollTop,r=t.clientHeight,a=n+i;o>n?o=n:a>o+r&&(o=a-r),t.scrollTop=o}},selectedDataItems:function(e){return e===t?this._dataItems.slice():(this._dataItems=e,this._values=this._getValues(e),t)},_getValues:function(t){var n=this._valueGetter;return e.map(t,function(e){return n(e)})},focusNext:function(){var e=this.focus();e=e?e.next():0,this.focus(e)},focusPrev:function(){var e=this.focus();e=e?e.prev():this.element[0].children.length-1,this.focus(e)},focusFirst:function(){this.focus(this.element[0].children[0])},focusLast:function(){this.focus(i(this.element[0].children))},focus:function(n){var o,r=this,a=r._optionID;return n===t?r._current:(n=i(r._get(n)),n=e(this.element[0].children[n]),r._current&&(r._current.removeClass(x).removeAttr(k),r.trigger("deactivate")),o=!!n[0],o&&(n.addClass(x),r.scroll(n),n.attr("id",a)),r._current=o?n:null,r.trigger("activate"),t)},focusIndex:function(){return this.focus()?this.focus().index():t},skipUpdate:function(e){this._skipUpdate=e},select:function(n){var o,r,a,s=this,l=s.options.selectable,d="multiple"!==l&&l!==!1,c=s._selectedIndices,u=[this.element.find(".k-state-selected").index()],h=[],p=[];return n===t?c.slice():(n=s._get(n),1===n.length&&n[0]===-1&&(n=[]),r=e.Deferred().resolve(),a=s.isFiltered(),a&&!d&&s._deselectFiltered(n)?r:d&&!a&&e.inArray(i(n),c)!==-1&&e.inArray(i(n),u)!==-1?(s._dataItems.length&&s._view.length&&(s._dataItems=[s._view[c[0]].item]),r):(o=s._deselect(n),p=o.removed,n=o.indices,n.length&&(d&&(n=[i(n)]),h=s._select(n)),(h.length||p.length)&&(s._valueComparer=null,s.trigger(y,{added:h,removed:p})),r))},removeAt:function(e){return this._selectedIndices.splice(e,1),this._values.splice(e,1),this._valueComparer=null,{position:e,dataItem:this._dataItems.splice(e,1)[0]}},setValue:function(t){t=e.isArray(t)||t instanceof w?t.slice(0):[t],this._values=t,this._valueComparer=null},value:function(n){var i,o=this,r=o._valueDeferred;return n===t?o._values.slice():(o.setValue(n),r&&"resolved"!==r.state()||(o._valueDeferred=r=e.Deferred()),o.bound()&&(i=o._valueIndices(o._values),"multiple"===o.options.selectable&&o.select(-1),o.select(i),r.resolve()),o._skipUpdate=!1,r)},items:function(){return this.element.children(D)},_click:function(e){return this._touchTriggered?(this._touchTriggered=!1,t):(e.isDefaultPrevented()||this._triggerClick(e.currentTarget),t)},_triggerClick:function(t){this.trigger("click",{item:e(t)})||this.select(t)},_valueExpr:function(e,t){var i,o,r=this,a=0,s=[];if(!r._valueComparer||r._valueType!==e){for(r._valueType=e;a<t.length;a++)s.push(n(t[a],e));i="for (var idx = 0; idx < "+s.length+"; idx++) { if (current === values[idx]) {   return idx; }} return -1;",o=Function("current","values",i),r._valueComparer=function(e){return o(e,s)}}return r._valueComparer},_dataItemPosition:function(e,t){var n=this._valueGetter(e),i=this._valueExpr(typeof n,t);return i(n)},_getter:function(){this._valueGetter=c.getter(this.options.dataValueField)},_deselect:function(t){var n,i,o,r,a,s=this,l=s.element[0].children,d=s.options.selectable,c=s._selectedIndices,u=s._dataItems,h=s._values,p=[],f=0,m=0;if(t=t.slice(),d!==!0&&t.length){if("multiple"===d)for(;f<t.length;f++)if(i=t[f],e(l[i]).hasClass("k-state-selected"))for(n=0;n<c.length;n++)if(o=c[n],o===i){e(l[o]).removeClass("k-state-selected").attr("aria-selected",!1),r=this._view[i].item,a=this._dataItemPosition(r,this._values),p.push({position:a,dataItem:r}),u.splice(n,1),c.splice(n,1),t.splice(f,1),h.splice(n,1),m+=1,f-=1,n-=1;break}}else{for(;f<c.length;f++)e(l[c[f]]).removeClass("k-state-selected").attr("aria-selected",!1),p.push({position:f,dataItem:u[f]});s._values=[],s._dataItems=[],s._selectedIndices=[]}return{indices:t,removed:p}},_deselectFiltered:function(t){for(var n,i,o,r=this.element[0].children,a=[],s=0;s<t.length;s++)i=t[s],n=this._view[i].item,o=this._dataItemPosition(n,this._values),o>-1&&(a.push(this.removeAt(o)),e(r[i]).removeClass("k-state-selected"));return!!a.length&&(this.trigger(y,{added:[],removed:a}),!0)},_select:function(t){var n,o,r=this,a=r.element[0].children,s=r._view,l=[],d=0;for(i(t)!==-1&&r.focus(t);d<t.length;d++)o=t[d],n=s[o],o!==-1&&n&&(n=n.item,r._selectedIndices.push(o),r._dataItems.push(n),r._values.push(r._valueGetter(n)),e(a[o]).addClass("k-state-selected").attr("aria-selected",!0),l.push({dataItem:n}));return l},getElementIndex:function(t){return e(t).data("offset-index")},_get:function(e){return"number"==typeof e?e=[e]:V(e)||(e=this.getElementIndex(e),e=[e!==t?e:-1]),e},_template:function(){var e=this,t=e.options,n=t.template;return n?(n=c.template(n),n=function(e){return'<li tabindex="-1" role="option" unselectable="on" class="k-item">'+n(e)+"</li>"}):n=c.template('<li tabindex="-1" role="option" unselectable="on" class="k-item">${'+c.expr(t.dataTextField,"data")+"}</li>",{useWithBlock:!1}),n},_templates:function(){var e,t,n,i,o,r=this.options,a={template:r.template,groupTemplate:r.groupTemplate,fixedGroupTemplate:r.fixedGroupTemplate};if(r.columns)for(t=0;t<r.columns.length;t++)n=r.columns[t],i=n.field?""+n.field:"text",a["column"+t]=n.template||"#: "+i+"#";for(o in a)e=a[o],e&&"function"!=typeof e&&(a[o]=c.template(e));this.templates=a},_normalizeIndices:function(e){for(var n=[],i=0;i<e.length;i++)e[i]!==t&&n.push(e[i]);return n},_valueIndices:function(e,t){var n,i=this._view,o=0;if(t=t?t.slice():[],!e.length)return[];for(;o<i.length;o++)n=this._dataItemPosition(i[o].item,e),n!==-1&&(t[n]=o);return this._normalizeIndices(t)},_firstVisibleItem:function(){for(var t=this.element[0],n=this.content[0],i=n.scrollTop,o=e(t.children[0]).height(),r=Math.floor(i/o)||0,a=t.children[r]||t.lastChild,s=a.offsetTop<i;a;)if(s){if(a.offsetTop+o>i||!a.nextSibling)break;a=a.nextSibling}else{if(a.offsetTop<=i||!a.previousSibling)break;a=a.previousSibling}return this._view[e(a).data("offset-index")]},_fixedHeader:function(){this.isGrouped()&&this.templates.fixedGroupTemplate?(this.header.show(),this.content.scroll(this._onScroll)):(this.header.hide(),this.content.off("scroll",this._onScroll))},_renderHeader:function(){var e,t=this.templates.fixedGroupTemplate;t&&(e=this._firstVisibleItem(),e&&(""+e.group).length&&this.header.html(t(e.group)))},_renderItem:function(e){var t='<li tabindex="-1" role="option" unselectable="on" class="k-item',n=e.item,i=0!==e.index,o=e.selected,r=this.isGrouped(),a=this.options.columns&&this.options.columns.length;return i&&e.newGroup&&(t+=" k-first"),e.isLastGroupedItem&&a&&(t+=" k-last"),o&&(t+=" k-state-selected"),t+='" aria-selected="'+(o?"true":"false")+'" data-offset-index="'+e.index+'">',t+=a?this._renderColumns(n):this.templates.template(n),i&&e.newGroup?t+=a?'<div class="k-cell k-group-cell"><span>'+this.templates.groupTemplate(e.group)+"</span></div>":'<div class="k-group">'+this.templates.groupTemplate(e.group)+"</div>":r&&a&&(t+="<div class='k-cell k-spacer-cell'></div>"),t+"</li>"},_renderColumns:function(e){var t,n,i,o,r="";for(t=0;t<this.options.columns.length;t++)n=this.options.columns[t].width,i=parseInt(n,10),o="",n&&!isNaN(i)&&(o+="style='width:",o+=i,o+=p.test(n)?"%":"px",o+=";'"),r+="<span class='k-cell' "+o+">",r+=this.templates["column"+t](e),r+="</span>";return r},_render:function(){var e,t,n,i,o="",r=0,a=0,s=[],l=this.dataSource.view(),d=this.value(),c=this.isGrouped();if(c)for(r=0;r<l.length;r++)for(t=l[r],n=!0,i=0;i<t.items.length;i++)e={selected:this._selected(t.items[i],d),item:t.items[i],group:t.value,newGroup:n,isLastGroupedItem:i===t.items.length-1,index:a},s[a]=e,a+=1,o+=this._renderItem(e),n=!1;else for(r=0;r<l.length;r++)e={selected:this._selected(l[r],d),item:l[r],index:r},s[r]=e,o+=this._renderItem(e);this._view=s,this.element[0].innerHTML=o,c&&s.length&&this._renderHeader()},_selected:function(e,t){var n=!this.isFiltered()||"multiple"===this.options.selectable;return n&&this._dataItemPosition(e,t)!==-1},setDSFilter:function(e){this._lastDSFilter=N({},e)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!c.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},refresh:function(e){var t,n=this,i=e&&e.action,o=n.options.skipUpdateOnBind,a="itemchange"===i;n.trigger("dataBinding"),n._angularItems("cleanup"),n._fixedHeader(),n._render(),n.bound(!0),a||"remove"===i?(t=r(n._dataItems,e.items),t.changed.length&&(a?n.trigger("selectedItemChange",{items:t.changed}):n.value(n._getValues(t.unchanged)))):n.isFiltered()||n._skipUpdate||n._emptySearch?(n.focus(0),n._skipUpdate&&(n._skipUpdate=!1,n._selectedIndices=n._valueIndices(n._values,n._selectedIndices))):o||i&&"add"!==i||n.value(n._values),n._valueDeferred&&n._valueDeferred.resolve(),n._angularItems("compile"),n.trigger("dataBound")},bound:function(e){return e===t?this._bound:(this._bound=e,t)},isGrouped:function(){return(this.dataSource.group()||[]).length}}),u.plugin(d)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.calendar.min",["kendo.core.min","kendo.selectable.min"],e)}(function(){return function(e,t){function n(e,t,n,i){var o,r=e.getFullYear(),a=t.getFullYear(),s=n.getFullYear();return r-=r%i,o=r+(i-1),r<a&&(r=a),o>s&&(o=s),r+"-"+o}function i(e){var t,n=0,i=e.min,o=e.max,r=e.start,a=e.setter,l=e.build,d=e.weekNumberBuild,c=e.cells||12,u=e.isWeekColumnVisible,h=e.perRow||4,p=e.otherMonth,m=e.lastDayOfMonth,g=e.weekNumber||q,v=e.content||W,_=e.empty||U,b=e.otherMonthCellTemplate||j,w=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';for(u&&(w+=g(d(r)));n<c;n++)n>0&&n%h===0&&(w+='</tr><tr role="row">',u&&(w+=g(p||+r<=+m?d(r):{weekNumber:"&nbsp;"}))),r=f(r.getFullYear(),r.getMonth(),r.getDate()),P(r,0),t=l(r,n,e.disableDates),w+=t.cssClass.indexOf(ce)===-1||p?s(r,i,o)?v(t):_(t):b(t),a(r,1);return w+"</tr></tbody></table>"}function o(e,t,n){var i=e.getFullYear(),o=t.getFullYear(),r=o,a=0;return n&&(o-=o%n,r=o-o%n+n-1),i>r?a=1:i<o&&(a=-1),a}function r(){var e=new Fe;return new Fe(e.getFullYear(),e.getMonth(),e.getDate())}function a(e,t,n){var i=r();return e&&(i=new Fe((+e))),t>i?i=new Fe((+t)):n<i&&(i=new Fe((+n))),i}function s(e,t,n){return+e>=+t&&+e<=+n}function l(e,t){return e.slice(t).concat(e.slice(0,t))}function d(e,t,n){t=t instanceof Fe?t.getFullYear():e.getFullYear()+n*t,e.setFullYear(t)}function c(e,t){var n,i,o;return+t<+e&&(n=+e,D.views[0].setDate(e,t),D.views[0].setDate(t,new Date(n))),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),Math.ceil((+o-+i)/A.date.MS_PER_DAY)}function u(e,t,n,i){var o,r;for(o=0;o<=t;o++)r=new Date(n.getTime()),r=new Date(r.setDate(r.getDate()+o)),i(r)||e.push(r)}function h(t){var n=e(this).hasClass("k-state-disabled");n||e(this).toggleClass(se,ke.indexOf(t.type)>-1||t.type==be)}function p(e){e.preventDefault()}function f(e,t,n){var i=new Fe(e,t,n);return i.setFullYear(e,t,n),i}function m(e){return N(e).calendars.standard}function g(e){var n=Pe[e.start],i=Pe[e.depth],o=N(e.culture);e.format=L(e.format||o.calendars.standard.patterns.d),isNaN(n)&&(n=0,e.start=ne),(i===t||i>n)&&(e.depth=ne),null===e.dates&&(e.dates=[])}function v(e){$&&e.find("*").attr("unselectable","on")}function _(e,t){e.addClass("k-"+t)}function b(e,t){for(var n=0,i=t.length;n<i;n++)if(e===+t[n])return!0;return!1}function w(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function k(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function y(t){return A.isFunction(t)?t:e.isArray(t)?C(t):e.noop}function x(e){var t,n=[];for(t=0;t<e.length;t++)n.push(e[t].setHours(0,0,0,0));return n}function C(t){var n,i,o,r,a,s=[],l=["su","mo","tu","we","th","fr","sa"],d="if (found) { return true } else {return false}";if(t[0]instanceof Fe)s=x(t),n="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.setHours(0, 0, 0, 0),["+s+"]) > -1;"+d;else{for(o=0;o<t.length;o++)r=t[o].slice(0,2).toLowerCase(),a=e.inArray(r,l),a>-1&&s.push(a);n="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.getDay(),["+s+"]) > -1;"+d}return i=Function("date",n)}function S(e,t){return e instanceof Date&&t instanceof Date&&(e=e.getTime(),t=t.getTime()),e===t}function T(t){var n=e(t).attr(A.attr(ae)).split("/");return n=f(n[0],n[1],n[2])}var D,A=window.kendo,E=A.support,I=A.ui,M=I.Widget,R=A.keys,F=A.parseDate,P=A.date.adjustDST,z=A.date.weekInYear,B=A.ui.Selectable,L=A._extractFormat,H=A.template,N=A.getCulture,O=A.support.transitions,V=O?O.css+"transform-origin":"",W=H('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),U=H('<td role="gridcell" class="k-out-of-range"><a class="k-link"></a></td>',{useWithBlock:!1}),j=H('<td role="gridcell" class="k-out-of-range">&nbsp;</td>',{useWithBlock:!1}),q=H('<td class="k-alt">#= data.weekNumber #</td>',{useWithBlock:!1}),G=A.support.browser,$=G.msie&&G.version<9,K=A._outerWidth,Y=".kendoCalendar",Q="click"+Y,X="keydown"+Y,Z="id",J="min",ee="left",te="slideIn",ne="month",ie="century",oe="change",re="navigate",ae="value",se="k-state-hover",le="k-state-disabled",de="k-state-focused",ce="k-other-month",ue=' class="'+ce+'"',he="k-out-of-range",pe="k-nav-today",fe="td:has(.k-link)",me="td:has(.k-link):not(."+le+"):not(."+he+")",ge="td:not(:has(.k-link))",ve="k-state-selected",_e="blur"+Y,be="focus",we=be+Y,ke=E.touch?"touchstart":"mouseenter",ye=E.touch?"touchstart"+Y:"mouseenter"+Y,xe=E.touch?"touchend"+Y+" touchmove"+Y:"mouseleave"+Y,Ce=6e4,Se=864e5,Te="_prevArrow",De="_nextArrow",Ae="aria-disabled",Ee="aria-selected",Ie="aria-label",Me=e.proxy,Re=e.extend,Fe=Date,Pe={month:0,year:1,decade:2,century:3},ze=".k-header, .k-calendar-header",Be='<div class="k-header"><a href="\\#" #=actionAttr#="prev" role="button" class="k-link k-nav-prev" '+Ie+'="Previous"><span class="k-icon k-i-arrow-60-left"></span></a><a href="\\#" #=actionAttr#="nav-up" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="\\#" #=actionAttr#="next" role="button" class="k-link k-nav-next" '+Ie+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></div>',Le='<div class="k-calendar-header"><a href="\\#" #=actionAttr#="nav-up" role="button" aria-live="assertive" aria-atomic="true" class="k-button k-title"></a><span class="k-calendar-nav"><a #=actionAttr#="prev" class="k-button k-button-icon k-prev-view"><span class="k-icon k-i-arrow-60-left"></span></a><a #=actionAttr#="today" class="k-today">#=messages.today#</a><a #=actionAttr#="next" class="k-button k-button-icon k-next-view"><span class="k-icon k-i-arrow-60-right"></span></a></span></div>',He=M.extend({init:function(t,n){var i,o,s=this;n=n||{},n.componentType=n.componentType||"classic",M.fn.init.call(s,t,n),t=s.wrapper=s.element,n=s.options,n.url=A.unescape(n.url),s.options.disableDates=y(s.options.disableDates),s._templates(),s._selectable(),s._header(),s._viewWrapper(),s.options.hasFooter&&s._footer(s.footer),o=t.addClass("k-widget k-calendar "+(n.weekNumber?" k-week-number":"")).on(ye+" "+xe,fe,h).on(X,"table.k-content",Me(s._move,s)).on(Q+" touchend",fe,function(t){var i=t.currentTarget.firstChild,o=T(i);i.href.indexOf("#")!=-1&&t.preventDefault(),"month"==s._view.name&&s.options.disableDates(o)||"month"==s._view.name&&"single"!=n.selectable||s._click(e(i))}).on("mouseup"+Y,"table.k-content, .k-footer",function(){s._focusView(s.options.focusOnNav!==!1)}).attr(Z),o&&(s._cellID=o+"_cell_selected"),s._isMultipleSelection()&&s.options.weekNumber&&t.on(Q,ge,function(t){var n=e(t.currentTarget).closest("tr").find(me).first(),i=s.selectable._lastActive=e(t.currentTarget).closest("tr").find(me).last();s.selectable.selectRange(n,i,{event:t}),s._current=s._value=T(i.find("a")),s._class(de,s._current)}),g(n),i=F(n.value,n.format,n.culture),s._selectDates=[],s._index=Pe[n.start],s._current=new Fe((+a(i,n.min,n.max))),s._addClassProxy=function(){if(s._active=!0,s._cell.hasClass(le)){var e=s._view.toDateString(r());s._cell=s._cellByDate(e)}s._cell.addClass(de)},s._removeClassProxy=function(){s._active=!1,s._cell.removeClass(de)},s.value(i),s._isMultipleSelection()&&n.selectDates.length>0&&s.selectDates(n.selectDates),A.notify(s)},options:{name:"Calendar",value:null,min:new Fe(1900,0,1),max:new Fe(2099,11,31),dates:[],disableDates:null,url:"",culture:"",footer:"",format:"",month:{},weekNumber:!1,selectable:"single",selectDates:[],start:ne,depth:ne,animation:{horizontal:{effects:te,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}},messages:{weekColumnHeader:"",today:"Today"},componentType:"classic"},events:[oe,re],componentTypes:{classic:{header:{template:Be},hasFooter:!0,linksSelector:".k-link",contentClasses:"k-content"},modern:{header:{template:Le},hasFooter:!1,linksSelector:".k-button",contentClasses:"k-content k-calendar-content"}},setOptions:function(e){var t=this;g(e),e.disableDates=y(e.disableDates),t._destroySelectable(),M.fn.setOptions.call(t,e),t._templates(),t._selectable(),t._viewWrapper(),t.options.hasFooter?t._footer(t.footer):t.element.find(".k-footer").hide(),t._index=Pe[t.options.start],t.navigate(),e.weekNumber&&t.element.addClass("k-week-number")},destroy:function(){var e=this,t=e._today;e.element.off(Y),e._title.off(Y),e[Te].off(Y),e[De].off(Y),e._destroySelectable(),A.destroy(e._table),t&&A.destroy(t.off(Y)),M.fn.destroy.call(e)},current:function(){return this._current},view:function(){return this._view},focus:function(e){e=e||this._table,this._bindTable(e),e.trigger("focus")},min:function(e){return this._option(J,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(Te,-1)},navigateToFuture:function(){this._navigate(De,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(le)||e.navigate(e._current,++t)},navigateDown:function(e){var n=this,i=n._index,o=n.options.depth;if(e)return i===Pe[o]?(S(n._value,n._current)&&S(n._value,e)||(n.value(e),n.trigger(oe)),t):(n.navigate(e,--i),t)},navigate:function(n,i){var o,r,s,l,d,c,u,h,p,f,m,g,b,w,k,y,x;i=isNaN(i)?Pe[i]:i,o=this,r=o.options,s=r.culture,l=r.min,d=r.max,c=o._title,u=o._table,h=o._oldTable,p=o._current,f=n&&+n>+p,m=i!==t&&i!==o._index,y=o.element.children(".k-calendar-view"),n||(n=p),o._current=n=new Fe((+a(n,l,d))),i===t?i=o._index:o._index=i,o._view=b=D.views[i],w=b.compare,k=i===Pe[ie],c.toggleClass(le,k).attr(Ae,k),k=w(n,l)<1,o[Te].toggleClass(le,k).attr(Ae,k),o[Te].hasClass(le)&&o[Te].removeClass(se),k=w(n,d)>-1,o[De].toggleClass(le,k).attr(Ae,k),o[De].hasClass(le)&&o[De].removeClass(se),u&&h&&h.data("animating")&&(h.kendoStop(!0,!0),u.kendoStop(!0,!0)),o._oldTable=u,u&&!o._changeView||(c.html(b.title(n,l,d,s)),o._table=g=e(b.content(Re({min:l,max:d,date:n,url:r.url,dates:r.dates,format:r.format,otherMonth:!0,culture:s,disableDates:r.disableDates,isWeekColumnVisible:r.weekNumber,messages:r.messages,contentClasses:o.options.contentClasses},o[b.name]))),_(g,b.name),v(g),x=u&&u.data("start")===g.data("start"),o._animate({from:u,to:g,vertical:m,future:f,replace:x}),"modern"===o.options.componentType&&(y.removeClass("k-calendar-monthview k-calendar-yearview k-calendar-decadeview k-calendar-centuryview"),y.addClass("k-calendar-"+b.name+"view")),o.trigger(re),o._focus(n)),i===Pe[r.depth]&&o._selectDates.length>0&&o._visualizeSelectedDatesInView(),"single"===o.options.selectable&&i===Pe[r.depth]&&o._value&&!o.options.disableDates(o._value)&&o._class("k-state-selected",o._value),o._class(de,n),!u&&o._cell&&o._cell.removeClass(de),o._changeView=!0},selectDates:function(n){var i,o,r=this;return n===t?r._selectDates:(o=n.map(function(e){return e.getTime()}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return new Date(e)}),i=e.grep(o,function(e){if(e)return+r._validateValue(new Date(e.setHours(0,0,0,0)))===+e}),r._selectDates=i.length>0?i:0===o.length?o:r._selectDates,r._visualizeSelectedDatesInView(),t)},value:function(e){var n,i=this,o=i._view,r=i._view;return e===t?i._value:(e=i._validateValue(e),e&&i._isMultipleSelection()&&(n=new Date((+e)),n.setHours(0,0,0,0),i._selectDates=[n],i.selectable._lastActive=null),o&&null===e&&i._cell?i._cell.removeClass(ve):(i._changeView=!e||r&&0!==r.compare(e,i._current),i.navigate(e)),t)},_validateValue:function(e){var n=this,i=n.options,o=i.min,r=i.max;return null===e&&(n._current=f(n._current.getFullYear(),n._current.getMonth(),n._current.getDate())),e=F(e,i.format,i.culture),null!==e&&(e=new Fe((+e)),s(e,o,r)||(e=null)),null!==e&&n.options.disableDates(new Date((+e)))?n._value===t&&(n._value=null):n._value=e,n._value},_visualizeSelectedDatesInView:function(){var t,n=this,i={};e.each(n._selectDates,function(e,t){i[A.calendar.views[0].toDateString(t)]=t}),n.selectable.clear(),t=n._table.find(fe).filter(function(t,n){return i[e(n.firstChild).attr(A.attr(ae))]}),t.length>0&&n.selectable._selectElement(t,!0)},_isMultipleSelection:function(){var e=this;return"multiple"===e.options.selectable},_selectable:function(){var e,t,n=this;n._isMultipleSelection()&&(e=n.options.selectable,t=B.parseOptions(e),t.multiple&&n.element.attr("aria-multiselectable","true"),n.selectable=new B(n.wrapper,{aria:!0,inputSelectors:"input,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",multiple:t.multiple,filter:"table.k-month:eq(0) "+me,change:Me(n._onSelect,n),relatedTarget:Me(n._onRelatedTarget,n)}))},_onRelatedTarget:function(e){var t=this;t.selectable.options.multiple&&e.is(me)&&(t._current=T(e.find("a")),t._class(de,T(e.find("a"))))},_onSelect:function(n){var i=this,o=n,r=B.parseOptions(i.options.selectable);return r.multiple?(o.event.ctrlKey||o.event.metaKey?e(o.event.currentTarget).is(me)?i._toggleSelection(e(o.event.currentTarget)):(i._cellsBySelector(me).each(function(t,n){var o=T(e(n).find("a"));i._deselect(o)}),i._addSelectedCellsToArray()):o.event.shiftKey?i._rangeSelection(i._cell):e(o.event.currentTarget).is(fe)?i.value(T(e(o.event.currentTarget).find("a"))):(i._selectDates=[],i._addSelectedCellsToArray()),i.trigger(oe),t):(e(o.event.currentTarget).is("td")&&!e(o.event.currentTarget).hasClass("k-state-selected")?e(o.event.currentTarget).addClass("k-state-selected"):i._click(e(o.event.currentTarget).find("a")),t)},_destroySelectable:function(){var e=this;e.selectable&&(e.selectable.destroy(),e.selectable=null)},_toggleSelection:function(e){var t=this,n=T(e.find("a"));e.hasClass("k-state-selected")?t._selectDates.push(n):t._deselect(n)},_rangeSelection:function(e,t){var n,i=this,o=t||T(i.selectable.value().first().find("a")),r=T(e.find("a"));i.selectable._lastActive||i._value?o=i.selectable._lastActive?T(i.selectable._lastActive.find("a")):new Date((+i._value)):i.selectable._lastActive=t?i._cellByDate(i._view.toDateString(t),me):i.selectable.value().first(),i._selectDates=[],n=c(o,r),u(i._selectDates,n,o,i.options.disableDates),i._visualizeSelectedDatesInView()},_cellsBySelector:function(e){var t=this;return t._table.find(e)},_addSelectedCellsToArray:function(){var t=this;t.selectable.value().each(function(n,i){var o=T(e(i.firstChild));t.options.disableDates(o)||t._selectDates.push(o)})},_deselect:function(e){var t=this,n=t._selectDates.map(Number).indexOf(+e);n!=-1&&t._selectDates.splice(n,1)},_dateInView:function(e){var t=this,n=T(t._cellsBySelector(me+":first").find("a")),i=T(t._cellsBySelector(me+":last").find("a"));return+e<=+i&&+e>=+n},_isNavigatable:function(e,t){var n,i,o=this,r=o.options.disableDates;return"month"==o._view.name?!r(e):(i=o.wrapper.find("."+de).index(),n=o.wrapper.find(".k-content td:eq("+(i+t)+")"),n.is(me)||!r(e))},_move:function(n){var i,o,r,l,d,c=this,u=c.options,h=n.keyCode,p=c._view,m=c._index,g=c.options.min,v=c.options.max,_=new Fe((+c._current)),b=A.support.isRtl(c.wrapper),w=c.options.disableDates;return n.target===c._table[0]&&(c._active=!0),h==R.RIGHT&&!b||h==R.LEFT&&b?(i=1,o=!0):h==R.LEFT&&!b||h==R.RIGHT&&b?(i=-1,o=!0):h==R.UP?(i=0===m?-7:-4,o=!0):h==R.DOWN?(i=0===m?7:4,o=!0):h==R.SPACEBAR?(i=0,o=!0):h!=R.HOME&&h!=R.END||(r=h==R.HOME?"first":"last",l=p[r](_),_=new Fe(l.getFullYear(),l.getMonth(),l.getDate(),_.getHours(),_.getMinutes(),_.getSeconds(),_.getMilliseconds()),_.setFullYear(l.getFullYear()),o=!0),n.ctrlKey||n.metaKey?h==R.RIGHT&&!b||h==R.LEFT&&b?(c.navigateToFuture(),o=!0):h==R.LEFT&&!b||h==R.RIGHT&&b?(c.navigateToPast(),o=!0):h==R.UP?(c.navigateUp(),o=!0):h==R.DOWN?(c._click(e(c._cell[0].firstChild)),o=!0):h!=R.ENTER&&h!=R.SPACEBAR||!c._isMultipleSelection()||(c._keyboardToggleSelection(n),d=T(e(c._cell[0]).find("a")),c._class(de,d)):n.shiftKey?(i!==t||r)&&(r||p.setDate(_,i),s(_,g,v)||(_=a(_,u.min,u.max)),w(_)&&(_=c._nextNavigatable(_,i)),g=f(g.getFullYear(),g.getMonth(),g.getDate()),c._isMultipleSelection()?c._keyboardRangeSelection(n,_):c._focus(_)):(h==R.ENTER||h==R.SPACEBAR?("month"==p.name&&c._isMultipleSelection()?(c.value(T(e(c._cell.find("a")))),c.selectable._lastActive=e(c._cell[0]),c.trigger(oe)):c._click(e(c._cell[0].firstChild)),o=!0):h==R.PAGEUP?(o=!0,c.navigateToPast()):h==R.PAGEDOWN&&(o=!0,c.navigateToFuture()),(i||r)&&(r||p.setDate(_,i),g=f(g.getFullYear(),g.getMonth(),g.getDate()),s(_,g,v)||(_=a(_,u.min,u.max)),c._isNavigatable(_,i)||(_=c._nextNavigatable(_,i)),c._isMultipleSelection()?c._dateInView(_)?(c._current=_,c._class(de,_)):c.navigate(_):c._focus(_))),o&&n.preventDefault(),c._current},_keyboardRangeSelection:function(e,n){var i,o,r=this;return r._dateInView(n)?(r.selectable.options.filter=r.wrapper.find("table").length>1&&+n>+r._current?"table.k-month:eq(1) "+me:"table.k-month:eq(0) "+me,r._class(de,n),r._current=n,r._rangeSelection(r._cellByDate(r._view.toDateString(n),me),n),r.trigger(oe),r.selectable.options.filter="table.k-month:eq(0) "+me,
t):(r._selectDates=[],i=r.selectable._lastActive?T(r.selectable._lastActive.find("a")):n,o=c(i,new Date((+n))),u(r._selectDates,o,i,r.options.disableDates),r.navigate(n),r._current=n,r.selectable._lastActive=r.selectable._lastActive||r._cellByDate(r._view.toDateString(n),me),r.trigger(oe),t)},_keyboardToggleSelection:function(t){var n=this;t.currentTarget=n._cell[0],n.selectable._lastActive=e(n._cell[0]),e(n._cell[0]).hasClass(ve)?(n.selectable._unselect(e(n._cell[0])),n.selectable.trigger(oe,{event:t})):n.selectable.value(e(n._cell[0]),{event:t})},_nextNavigatable:function(e,t){var n=this,i=!0,o=n._view,r=n.options.min,a=n.options.max,l=n.options.disableDates,d=new Date(e.getTime());for(o.setDate(d,-t);i;){if(o.setDate(e,t),!s(e,r,a)){e=d;break}i=l(e)}return e},_animate:function(e){var t=this,n=e.from,i=e.to,o=t._active,r=t.element.children(".k-calendar-view");n?n.parent().data("animating")?(n.off(Y),n.parent().kendoStop(!0,!0).remove(),n.remove(),r.append(i),t._focusView(o)):!n.is(":visible")||t.options.animation===!1||e.replace?(i.insertAfter(n),n.off(Y).remove(),t._focusView(o)):t[e.vertical?"_vertical":"_horizontal"](n,i,e.future):(r.append(i),t._bindTable(i))},_horizontal:function(e,t,n){var i=this,o=i._active,r=i.options.animation.horizontal,a=r.effects,s=K(e);a&&a.indexOf(te)!=-1&&(e.add(t).css({width:s}),e.wrap("<div/>"),i._focusView(o,e),e.parent().css({position:"relative",width:2*s,"float":ee,"margin-left":n?0:-s}),t[n?"insertAfter":"insertBefore"](e),Re(r,{effects:te+":"+(n?"right":ee),complete:function(){e.off(Y).remove(),i._oldTable=null,t.unwrap(),i._focusView(o)}}),e.parent().kendoStop(!0,!0).kendoAnimate(r))},_vertical:function(e,t){var n,i,o=this,r=o.options.animation.vertical,a=r.effects,s=o._active;a&&a.indexOf("zoom")!=-1&&(t.insertBefore(e),e.css({position:"absolute",width:t.width()}),V&&(n=o._cellByDate(o._view.toDateString(o._current)),i=n.position(),i=i.left+parseInt(n.width()/2,10)+"px "+(i.top+parseInt(n.height()/2,10)+"px"),t.css(V,i)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(Y).remove(),o._oldTable=null,o._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(r))},_cellByDate:function(t,n){return this._table.find(n?n:"td:not(."+ce+")").filter(function(){return e(this.firstChild).attr(A.attr(ae))===t})},_class:function(e,t){var n,i=this,o=i._cellID,r=i._cell,a=i._view.toDateString(t);r&&r.length&&(r[0].removeAttribute(Ee),r[0].removeAttribute(Ie),r[0].removeAttribute(Z)),t&&"month"==i._view.name&&(n=i.options.disableDates(t)),i._cellsBySelector(i._isMultipleSelection()?fe:"td:not(."+ce+")").removeClass(e),r=i._cellByDate(a,"multiple"==i.options.selectable?fe:"td:not(."+ce+")").attr(Ee,!0),(e===de&&!i._active&&i.options.focusOnNav!==!1||n)&&(e=""),r.addClass(e),r[0]&&(i._cell=r),o&&(r.attr(Z,o),i._table[0].removeAttribute("aria-activedescendant"),i._table.attr("aria-activedescendant",o))},_bindTable:function(e){e.on(we,this._addClassProxy).on(_e,this._removeClassProxy)},_click:function(e){var t=this,n=t.options,i=new Date((+t._current)),o=T(e);P(o,0),"month"==t._view.name&&t.options.disableDates(o)&&(o=t._value),t._view.setDate(i,o),t.navigateDown(a(i,n.min,n.max))},_focus:function(e){var t=this,n=t._view;0!==n.compare(e,t._current)?t.navigate(e):(t._current=e,t._class(de,e))},_focusView:function(e,t){e&&this.focus(t)},_viewWrapper:function(){var t=this,n=t.element,i=n.children(".k-calendar-view");i[0]||(i=e("<div class='k-calendar-view' />").insertAfter(n.find(ze)))},_footer:function(n){var i=this,o=r(),a=i.element,s=a.find(".k-footer");return n?(s[0]||(s=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(a)),i._today=s.show().find(".k-link").html(n(o)).attr("title",A.toString(o,"D",i.options.culture)),i._toggle(),t):(i._toggle(!1),s.hide(),t)},_header:function(){var t=this,n=t.element,i=t.options.linksSelector;n.find(ze)[0]||n.html(A.template(t.options.header.template)(e.extend(!0,{},t.options,{actionAttr:A.attr("action")}))),n.find(i).on(ye+" "+xe+" "+we+" "+_e,h).on(Q+" touchend"+Y,function(){return!1}),t._title=n.find("["+A.attr("action")+'="nav-up"]').on(Q+" touchend"+Y,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[Te]=n.find("["+A.attr("action")+'="prev"]').on(Q+" touchend"+Y,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[De]=n.find("["+A.attr("action")+'="next"]').on(Q+" touchend"+Y,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()}),n.find("["+A.attr("action")+'="today"]').on(Q+" touchend"+Y,Me(t._todayClick,t))},_navigate:function(e,t){var n,i=this,o=i._index+1,r=new Fe((+i._current));i._isMultipleSelection()&&(n=i._table.find("td:not(.k-other-month):not(.k-out-of-range)").has(".k-link").first(),r=T(n.find("a")),i._current=new Date((+r))),e=i[e],e.hasClass(le)||(o>3?r.setFullYear(r.getFullYear()+100*t):D.views[o].setDate(r,t),i.navigate(r))},_option:function(e,n){var i,o=this,r=o.options,a=o._value||o._current;return n===t?r[e]:(n=F(n,r.format,r.culture),n&&(r[e]=new Fe((+n)),i=e===J?n>a:a>n,(i||k(a,n))&&(i&&(o._value=null),o._changeView=!0),o._changeView||(o._changeView=!(!r.month.content&&!r.month.empty)),o.navigate(o._value),o._toggle()),t)},_toggle:function(e){var n=this,i=n.options,o=n.options.disableDates(r()),a=n._today;e===t&&(e=s(r(),i.min,i.max)),a&&(a.off(Q),e&&!o?a.addClass(pe).removeClass(le).on(Q,Me(n._todayClick,n)):a.removeClass(pe).addClass(le).on(Q,p))},_todayClick:function(e){var t=this,n=Pe[t.options.depth],i=t.options.disableDates,o=r();e.preventDefault(),i(o)||(0===t._view.compare(t._current,o)&&t._index==n&&(t._changeView=!1),t._isMultipleSelection()&&(t._selectDates=[o],t.selectable._lastActive=null),t._value=o,t.navigate(o,n),t.trigger(oe))},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month,o=i.content,r=i.weekNumber,a=i.empty,s='#= kendo.toString(data,"D","'+t.culture+'") #';e.month={content:H('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+A.attr(ae)+'="#=data.dateString#" title="#=data.title#">'+(o||"#=data.value#")+"</a></td>",{useWithBlock:!!o}),empty:H('<td role="gridcell">'+(a||"&nbsp;")+"</td>",{useWithBlock:!!a}),weekNumber:H('<td class="k-alt">'+(r||"#= data.weekNumber #")+"</td>",{useWithBlock:!!r})},n&&n!==!0&&(s=n),e.footer=n!==!1?H(s,{useWithBlock:!1}):null}});I.plugin(He),D={firstDayOfMonth:function(e){return f(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||A.culture().calendar;var n=t.firstDay,i=new Fe(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());for(i.setFullYear(e.getFullYear());i.getDay()!=n;)D.setTime(i,-1*Se);return i},setTime:function(e,t){var n=e.getTimezoneOffset(),i=new Fe(e.getTime()+t),o=i.getTimezoneOffset()-n;e.setTime(i.getTime()+o*Ce)},views:[{name:ne,title:function(e,t,n,i){return m(i).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){var t=this,n=0,o=e.min,a=e.max,s=e.date,d=e.dates,c=e.format,u=e.culture,h=e.url,p=e.showHeader,g=e.otherMonth,v=e.isWeekColumnVisible,_=h&&d[0],w=m(u),k=w.firstDay,y=w.days,x=l(y.names,k),C=l(y.namesShort,k),S=D.firstVisibleDay(s,w),T=t.first(s),E=t.last(s),I=t.toDateString,M=r(),R=e.contentClasses,F='<table tabindex="0" role="grid" class="'+R+'" cellspacing="0" data-start="'+I(S)+'">';for(F+=p?'<caption class="k-month-header">'+this.title(s,o,a,u)+'</caption><thead><tr role="row">':'<thead><tr role="row">',v&&(F+='<th scope="col" class="k-alt">'+e.messages.weekColumnHeader+"</th>");n<7;n++)F+='<th scope="col" title="'+x[n]+'">'+C[n]+"</th>";return P(M,0),M=+M,i({cells:42,perRow:7,html:F+='</tr></thead><tbody><tr role="row">',start:S,isWeekColumnVisible:v,weekNumber:e.weekNumber,min:f(o.getFullYear(),o.getMonth(),o.getDate()),max:f(a.getFullYear(),a.getMonth(),a.getDate()),otherMonth:g,content:e.content,lastDayOfMonth:E,empty:e.empty,setter:t.setDate,disableDates:e.disableDates,build:function(e,t,n){var i=[],o=e.getDay(),r="",a="#";return(e<T||e>E)&&i.push(ce),n(e)&&i.push(le),+e===M&&i.push("k-today"),0!==o&&6!==o||i.push("k-weekend"),_&&b(+e,d)&&(a=h.replace("{0}",A.toString(e,c,u)),r=" k-action-link"),{date:e,dates:d,ns:A.ns,title:A.toString(e,"D",u),value:e.getDate(),dateString:I(e),cssClass:i[0]?' class="'+i.join(" ")+'"':"",linkClass:r,url:a}},weekNumberBuild:function(e){return{weekNumber:z(e,A.culture().calendar.firstDay),currentDate:e}}})},first:function(e){return D.firstDayOfMonth(e)},last:function(e){var t=f(e.getFullYear(),e.getMonth()+1,0),n=D.firstDayOfMonth(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t},compare:function(e,t){var n,i=e.getMonth(),o=e.getFullYear(),r=t.getMonth(),a=t.getFullYear();return n=o>a?1:o<a?-1:i==r?0:i>r?1:-1},setDate:function(e,t){var n=e.getHours();t instanceof Fe?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):D.setTime(e,t*Se),P(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=m(e.culture).months.namesAbbr,n=this.toDateString,o=e.min,r=e.max,a="";return e.showHeader&&(a+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',a+=this.title(e.date),a+='</caption><tbody><tr role="row">'),i({min:f(o.getFullYear(),o.getMonth(),1),max:f(r.getFullYear(),r.getMonth(),1),start:f(e.date.getFullYear(),0,1),html:a,setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:A.ns,dateString:n(e),cssClass:""}}})},first:function(e){return f(e.getFullYear(),0,e.getDate())},last:function(e){return f(e.getFullYear(),11,e.getDate())},compare:function(e,t){return o(e,t)},setDate:function(e,t){var n,i=e.getHours();t instanceof Fe?(n=t.getMonth(),e.setFullYear(t.getFullYear(),n,e.getDate()),n!==e.getMonth()&&e.setDate(0)):(n=e.getMonth()+t,e.setMonth(n),n>11&&(n-=12),n>0&&e.getMonth()!=n&&e.setDate(0)),P(e,i)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"}},{name:"decade",title:function(e,t,i){return n(e,t,i,10)},content:function(e){var t=e.date.getFullYear(),n=this.toDateString,o="";return e.showHeader&&(o+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',o+=this.title(e.date,e.min,e.max),o+='</caption><tbody><tr role="row">'),i({start:f(t-t%10-1,0,1),min:f(e.min.getFullYear(),0,1),max:f(e.max.getFullYear(),0,1),otherMonth:e.otherMonth,html:o,setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:A.ns,dateString:n(e),cssClass:0===t||11==t?ue:""}}})},first:function(e){var t=e.getFullYear();return f(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return f(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return o(e,t,10)},setDate:function(e,t){d(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"}},{name:ie,title:function(e,t,i){return n(e,t,i,100)},content:function(e){var t=e.date.getFullYear(),n=e.min.getFullYear(),o=e.max.getFullYear(),r=this.toDateString,a=n,s=o,l="";return a-=a%10,s-=s%10,s-a<10&&(s=a+9),e.showHeader&&(l+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',l+=this.title(e.date,e.min,e.max),l+='</caption><tbody><tr role="row">'),i({start:f(t-t%100-10,0,1),min:f(a,0,1),max:f(s,0,1),otherMonth:e.otherMonth,html:l,setter:this.setDate,build:function(e,t){var i=e.getFullYear(),a=i+9;return i<n&&(i=n),a>o&&(a=o),{ns:A.ns,value:i+" - "+a,dateString:r(e),cssClass:0===t||11==t?ue:""}}})},first:function(e){var t=e.getFullYear();return f(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return f(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return o(e,t,100)},setDate:function(e,t){d(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"}}]},D.isEqualDatePart=w,D.isEqualDate=S,D.makeUnselectable=v,D.restrictValue=a,D.isInRange=s,D.addClassToViewContainer=_,D.normalize=g,D.viewsEnum=Pe,D.disabled=y,D.toDateObject=T,D.getToday=r,D.createDate=f,A.calendar=D}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dateinput.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t,n,i){var o,r,a,s,l=e[i+e.length-n.length];if(e=e.substring(0,i+e.length-n.length),n=n.substring(0,i),o=[],e===n&&i>0)return o.push([t[i-1],n[i-1]]),o;if(0===e.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){for(a="",r=n.length;r<e.length;r++)t[r]!==a&&w.indexOf(t[r])>=0&&(a=t[r],o.push([a,""]));return o}if(" "===n[n.length-1]||n[n.length-1]===l)return[[t[i-1]," "]];if(0===n.indexOf(e)||w.indexOf(t[i-1])===-1){for(s=t[0],r=Math.max(0,e.length-1);r<t.length;r++)if(w.indexOf(t[r])>=0){s=t[r];break}return[[s,n[i-1]]]}return[[t[i-1],n[i-1]]]}var i,o=window,r=o.kendo,a=r.caret,s=r.ui,l=s.Widget,d=r.keys,c=".kendoDateInput",u=e.proxy,h={}.toString,p=(r.support.propertyChangeEvent?"propertychange.kendoDateInput input":"input")+c,f="k-state-disabled",m="k-state-default",g="k-state-invalid",v="disabled",_="readonly",b="change",w="dMyHhmftsz",k=l.extend({init:function(t,n){var i,o,a=this;l.fn.init.call(a,t,n),t=a.element,n=a.options,n.format=r._extractFormat(n.format||r.getCulture(n.culture).calendars.standard.patterns.d),n.min=r.parseDate(t.attr("min"))||r.parseDate(n.min),n.max=r.parseDate(t.attr("max"))||r.parseDate(n.max),i=(t.parent().attr("class")||"").indexOf("k-picker-wrap")>=0,i?a.wrapper=t.parent():(a.wrapper=t.wrap("<span class='k-widget k-dateinput'></span>").parent(),a.wrapper.addClass(t[0].className).removeClass("input-validation-error"),a.wrapper[0].style.cssText=t[0].style.cssText,t.css({width:"100%",height:t[0].style.height})),a._inputWrapper=e(a.wrapper[0]),e("<span class='k-icon k-i-warning'></span>").insertAfter(t),a._form(),a.element.addClass(i?" ":"k-textbox").attr("autocomplete","off").on("focusout"+c,function(){a._change()});try{t[0].setAttribute("type","text")}catch(s){t[0].type="text"}o=t.is("[disabled]")||e(a.element).parents("fieldset").is(":disabled"),o?a.enable(!1):a.readonly(t.is("[readonly]")),a.value(a.options.value||t.val()),r.notify(a)},options:{name:"DateInput",culture:"",value:"",format:"",min:new Date(1900,0,1),max:new Date(2099,11,31),messages:{year:"year",month:"month",day:"day",weekday:"day of the week",hour:"hours",minute:"minutes",second:"seconds",dayperiod:"AM/PM"}},events:[b],min:function(e){return e===t?this.options.min:(this.options.min=e,t)},max:function(e){return e===t?this.options.max:(this.options.max=e,t)},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),this._unbindInput(),this._bindInput(),this._updateElementValue()},destroy:function(){var e=this;e.element.off(c),e._formElement&&e._formElement.off("reset",e._resetHandler),l.fn.destroy.call(e)},value:function(e){return e===t?this._dateTime.getDateObject():(null===e&&(e=""),"[object Date]"!==h.call(e)&&(e=r.parseDate(e,this.options.format,this.options.culture)),e&&!e.getTime()&&(e=null),this._dateTime=new i(e,this.options.format,this.options.culture,this.options.messages),this._updateElementValue(),this._oldValue=e,t)},_updateElementValue:function(){var e=this._dateTime.toPair(this.options.format,this.options.culture,this.options.messages);this.element.val(e[0]),this._oldText=e[0],this._format=e[1]},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},_bindInput:function(){var e=this;e.element.on("focusout"+c,function(){e._change()}).on("paste"+c,u(e._paste,e)).on("keydown"+c,u(e._keydown,e)).on(p,u(e._input,e)).on("mouseup"+c,u(e._mouseUp,e)).on("DOMMouseScroll"+c+" mousewheel"+c,u(e._scroll,e))},_unbindInput:function(){this.element.off("keydown"+c).off("paste"+c).off("focusout"+c).off(p).off("mouseup"+c).off("DOMMouseScroll"+c+" mousewheel"+c)},_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly,r=t.wrapper;t._unbindInput(),o||i?(i&&(r.addClass(f).removeClass(m),n.attr(v,i),n&&n.length&&n[0].removeAttribute(_)),o&&n.attr(_,o)):(r.addClass(m).removeClass(f),n&&n.length&&(n[0].removeAttribute(v),n[0].removeAttribute(_)),t._bindInput())},_change:function(){var e=this,t=e._oldValue,n=e.value();n&&e.min()&&n<e.min()&&(e.value(e.min()),n=e.value()),n&&e.max()&&n>e.max()&&(e.value(e.max()),n=e.value()),(t&&n&&n.getTime()!==t.getTime()||t&&!n||!t&&n)&&(e._oldValue=n,e.trigger(b),e.element.trigger(b))},_input:function(){var e,t,i,o,s,l,d,c=this,u=c.element[0],h=!1;if(r._activeElement()===u){if(e=n(this._oldText,this._format,this.element[0].value,a(this.element[0])[0]),t=1===e.length&&" "===e[0][1],!t)for(i=0;i<e.length;i++)o=this._dateTime.parsePart(e[i][0],e[i][1]),h=h||!o;this._updateElementValue(),e.length&&" "!==e[0][0]&&(this._selectSegment(e[0][0]),t||(s=e[0][0],setTimeout(function(){c._selectSegment(s)}))),t&&(l={keyCode:39,preventDefault:function(){}},this._keydown(l)),h&&(clearTimeout(c._blinkInvalidTimeout),d=g,c.wrapper.addClass(g),c._blinkInvalidTimeout=setTimeout(function(){c.wrapper.removeClass(d)},100))}},_mouseUp:function(){var e=a(this.element[0]);e[0]===e[1]&&this._selectNearestSegment()},_scroll:function(e){if(r._activeElement()===this.element[0]&&!this.element.is("[readonly]")){e=window.event||e;var t={keyCode:37,preventDefault:function(){}};t.keyCode=e.shiftKey?(e.wheelDelta||-e.detail)>0?37:39:(e.wheelDelta||-e.detail)>0?38:40,this._keydown(t),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()}},_form:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form"),r=n[0].value;!r&&t.options.value&&(r=t.options.value),o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(r)})},t._formElement=o.on("reset",t._resetHandler))},_paste:function(e){e.preventDefault()},_keydown:function(e){var t,n,i,o,s,l,c,u=e.keyCode;if(37==u||39==u)for(e.preventDefault(),t=a(this.element[0]),t[0]!=t[1]&&this._selectNearestSegment(),n=37==u?-1:1,i=n==-1?a(this.element[0])[0]-1:a(this.element[0])[1]+1;i>=0&&i<this._format.length;){if(w.indexOf(this._format[i])>=0){this._selectSegment(this._format[i]);break}i+=n}38!=u&&40!=u||(e.preventDefault(),t=a(this.element[0]),o=this._format[t[0]],w.indexOf(o)>=0&&(s=1,"m"==o&&(s=this.options.interval||1),this._dateTime.modifyPart(o,38==u?1*s:s*-1),this._updateElementValue(),this._selectSegment(o),this.element.trigger(b))),r.support.browser.msie&&r.support.browser.version<10&&(l=e.keyCode?e.keyCode:e.which,8!==l&&46!==l||(c=this,setTimeout(function(){c._input()},0))),u===d.ENTER&&this._change()},_selectNearestSegment:function(){var e,n,i=a(this.element[0]),o=i[0];for(e=o,n=o-1;e<this._format.length||n>=0;e++,n--){if(e<this._format.length&&w.indexOf(this._format[e])!==-1)return this._selectSegment(this._format[e]),t;if(n>=0&&w.indexOf(this._format[n])!==-1)return this._selectSegment(this._format[n]),t}},_selectSegment:function(e){var t,n=-1,i=0;for(t=0;t<this._format.length;t++)this._format[t]===e&&(i=t+1,n===-1&&(n=t));n<0&&(n=0),a(this.element,n,i)}});s.plugin(k),i=function(e,n,i,o){function a(e,t,n){return e+="",t=t||2,n=t-e.length,n?y[t].substring(0,n)+e:e}function s(e){return D=e,A}function l(e,t){switch(e){case"y":h=t;break;case"M":p=t,t||(u.setMonth(0),b="");break;case"d":f=t;break;case"H":case"h":m=t,t||(w="");break;case"m":g=t;break;case"s":v=t;break;default:return}}var d,c,u=null,h=!0,p=!0,f=!0,m=!0,g=!0,v=!0,_=!0,b="",w="",k={},y=["","0","00","000","0000"],x=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,C=null,S=null,T=null,D=!1,A=function(e){var n,i,o,r,s;switch(e){case"d":o=f?u.getDate():k.day;break;case"dd":o=f?a(u.getDate()):k.day;break;case"ddd":o=f&&p&&h?T.namesAbbr[u.getDay()]:k.weekday;break;case"dddd":o=f&&p&&h?T.names[u.getDay()]:k.weekday;break;case"M":o=p?u.getMonth()+1:k.month;break;case"MM":o=p?a(u.getMonth()+1):k.month;break;case"MMM":o=p?C.namesAbbr[u.getMonth()]:k.month;break;case"MMMM":o=p?C.names[u.getMonth()]:k.month;break;case"yy":o=h?a(u.getFullYear()%100):k.year;break;case"yyyy":o=h?a(u.getFullYear(),4):k.year;break;case"h":o=m?u.getHours()%12||12:k.hour;break;case"hh":o=m?a(u.getHours()%12||12):k.hour;break;case"H":o=m?u.getHours():k.hour;break;case"HH":o=m?a(u.getHours()):k.hour;break;case"m":o=g?u.getMinutes():k.minute;break;case"mm":o=g?a(u.getMinutes()):k.minute;break;case"s":o=v?u.getSeconds():k.second;break;case"ss":o=v?a(u.getSeconds()):k.second;break;case"f":o=_?Math.floor(u.getMilliseconds()/100):_;break;case"ff":o=u.getMilliseconds(),o>99&&(o=Math.floor(o/10)),o=_?a(o):e;break;case"fff":o=_?a(u.getMilliseconds(),3):e;break;case"tt":o=m?u.getHours()<12?S.AM[0]:S.PM[0]:k.dayperiod;break;case"zzz":n=u.getTimezoneOffset(),i=n<0,o=(""+Math.abs(n/60)).split(".")[0],n=Math.abs(n)-60*o,o=(i?"+":"-")+a(o),o+=":"+a(n);break;case"z":case"zz":o=u.getTimezoneOffset()/60,i=o<0,o=(""+Math.abs(o)).split(".")[0],o=(i?"+":"-")+("zz"===e?a(o):o)}if(o=o!==t?o:e.slice(1,e.length-1),D){for(o=""+o,r="","ddd"==e&&(e="EEE"),"dddd"==e&&(e="EEEE"),s=0;s<o.length;s++)r+=e[0];return r}return o};if(this.setValue=function(e){f=e},this.getValue=function(){return f},this.modifyPart=function(e,t){var n,i=new Date(u&&u.getTime?u.getTime():u);switch(e){case"y":i.setFullYear(i.getFullYear()+t);break;case"M":n=i.getMonth()+t,i.setMonth(n),i.getMonth()%12!==(n+12)%12&&(i.setDate(1),i.setMonth(n));break;case"d":case"E":i.setDate(i.getDate()+t);break;case"H":case"h":i.setHours(i.getHours()+t);break;case"m":i.setMinutes(i.getMinutes()+t);break;case"s":i.setSeconds(i.getSeconds()+t);break;case"t":i.setHours((i.getHours()+12)%24)}i.getFullYear()>0&&(l(e,!0),u=i)},this.parsePart=function(e,t){var n,i,o,r,a,s,d,c,_,k;if(!t)return l(e,!1),!0;switch(n=new Date(u&&u.getTime?u.getTime():u),i=new Date(n.getFullYear(),n.getMonth()+1,0).getDate(),e){case"d":if(r=(f?10*n.getDate():0)+parseInt(t,10),isNaN(r))return;for(;r>i;)r=parseInt((""+r).slice(1),10);if(r<1)f=!1;else{if(n.setDate(r),n.getMonth()!==u.getMonth())return;f=!0}break;case"M":if(a=(p?10*(n.getMonth()+1):0)+parseInt(t,10),isNaN(a)){for(s=S.months.names,b+=t.toLowerCase();b.length>0;){for(d=0;d<s.length;d++)if(0===s[d].toLowerCase().indexOf(b))return n.setMonth(d),p=!0,u=n,!0;b=b.substring(1,b.length)}return!1}for(;a>12;)a=parseInt((""+a).slice(1),10);a<1?p=!1:(n.setMonth(a-1),n.getMonth()!==a-1&&(n.setDate(1),n.setMonth(a-1)),p=!0);break;case"y":if(c=(h?10*n.getFullYear():0)+parseInt(t,10),isNaN(c))return;for(;c>9999;)c=parseInt((""+c).slice(1),10);c<1?h=!1:(n.setFullYear(c),h=!0);break;case"h":if(o=(m?10*(n.getHours()%12||12):0)+parseInt(t,10),isNaN(o))return;for(;o>12;)o=parseInt((""+o).slice(1),10);n.setHours(12*Math.floor(n.getHours()/12)+o%12),m=!0;break;case"H":if(o=(m?10*n.getHours():0)+parseInt(t,10),isNaN(o))return;for(;o>23;)o=parseInt((""+o).slice(1),10);n.setHours(o),m=!0;break;case"m":if(_=(g?10*n.getMinutes():0)+parseInt(t,10),isNaN(_))return;for(;_>59;)_=parseInt((""+_).slice(1),10);n.setMinutes(_),g=!0;break;case"s":if(k=(v?10*n.getSeconds():0)+parseInt(t,10),isNaN(k))return;for(;k>59;)k=parseInt((""+k).slice(1),10);n.setSeconds(k),v=!0;break;case"t":if(m){for(w+=t.toLowerCase();w.length>0;){if(0===S.AM[0].toLowerCase().indexOf(w)&&n.getHours()>=12||0===S.PM[0].toLowerCase().indexOf(w)&&n.getHours()<12)return n.setHours((n.getHours()+12)%24),u=n,!0;w=w.substring(1,w.length)}return!1}}return u=n,!0},this.toPair=function(e,t,n){return e?(t=r.getCulture(t),S=t.calendars.standard,e=S.patterns[e]||e,T=S.days,C=S.months,k=n,[e.replace(x,s(!1)),e.replace(x,s(!0))]):["",""]},this.getDateObject=function(){return h&&p&&f&&m&&g&&v&&_?new Date(u.getTime()):null},e)u=new Date(e.getTime());else for(u=new Date,d=this.toPair(n,i,o)[1],c=0;c<d.length;c++)l(d[c],!1)}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.datepicker.min",["kendo.calendar.min","kendo.popup.min","kendo.dateinput.min"],e)}(function(){return function(e,t){function n(t){var n=t.parseFormats,i=t.format;H.normalize(t),n=e.isArray(n)?n:[n],n.length||n.push("yyyy-MM-dd"),e.inArray(i,n)===-1&&n.splice(0,0,t.format),t.parseFormats=n}function i(e){e.preventDefault()}var o,r=window.kendo,a=r.ui,s=a.Widget,l=r.parseDate,d=r.keys,c=r.support,u=r.template,h=r._activeElement,p="<div />",f="<span />",m=".kendoDatePicker",g="click"+m,v=c.mouseAndTouchPresent?r.applyEventMap("up",m.slice(1)):g,_="open",b="close",w="change",k="disabled",y="readonly",x="k-state-default",C="k-state-focused",S="k-state-selected",T="k-state-disabled",D="k-state-hover",A="mouseenter"+m+" mouseleave"+m,E="mousedown"+m,I="id",M="min",R="max",F="month",P="aria-disabled",z="aria-readonly",B="aria-expanded",L="aria-hidden",H=r.calendar,N=H.isInRange,O=H.restrictValue,V=H.isEqualDatePart,W=e.extend,U=e.proxy,j=Date,q=function(t){var n,i=this,o=document.body,s=e(p).attr(L,"true").addClass("k-calendar-container");i.options=t=t||{},n=t.id,t.omitPopup?s=t.dateDiv:(s.appendTo(o),i.popup=new a.Popup(s,W(t.popup,t,{name:"Popup",isRtl:r.support.isRtl(t.anchor)}))),n&&(n+="_dateview",s.attr(I,n),i._dateViewID=n),i.div=s,i.value(t.value)};q.prototype={_calendar:function(){var t,n=this,o=n.calendar,s=n.options;o||(t=e(p).attr(I,r.guid()).appendTo(s.omitPopup?s.dateDiv:n.popup.element).on(E,i).on(g,"td:has(.k-link)",U(n._click,n)),n.calendar=o=new a.Calendar(t,{componentType:s.componentType}),n._setOptions(s),r.calendar.makeUnselectable(o.element),o.navigate(n._value||n._current,s.start),n.value(n._value))},_setOptions:function(e){this.calendar.setOptions({focusOnNav:!1,change:e.change,culture:e.culture,dates:e.dates,depth:e.depth,footer:e.footer,format:e.format,max:e.max,min:e.min,month:e.month,weekNumber:e.weekNumber,start:e.start,disableDates:e.disableDates})},setOptions:function(e){var t=this.options,n=e.disableDates;n&&(e.disableDates=H.disabled(n)),this.options=W(t,e,{change:t.change,close:t.close,open:t.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup&&this.popup.destroy()},open:function(){var e,t=this;t._calendar(),e=t.popup._hovered,t.popup._hovered=!0,t.popup.open(),setTimeout(function(){t.popup._hovered=e},1)},close:function(){this.popup.close()},min:function(e){this._option(M,e)},max:function(e){this._option(R,e)},toggle:function(){var e=this;e[e.popup.visible()?b:_]()},move:function(e){var t=this,n=e.keyCode,i=t.calendar,o=e.ctrlKey&&n==d.DOWN||n==d.ENTER,r=!1;if(e.altKey)n==d.DOWN?(t.open(),e.preventDefault(),r=!0):n==d.UP&&(t.close(),e.preventDefault(),r=!0);else if(t.popup&&t.popup.visible()){if(n==d.ESC||o&&i._cell.hasClass(S))return t.close(),e.preventDefault(),!0;n!=d.SPACEBAR&&(t._current=i._move(e)),r=!0}return r},current:function(e){this._current=e,this.calendar&&this.calendar._focus(e)},value:function(e){var t=this,n=t.calendar,i=t.options,o=i.disableDates;o&&o(e)&&(e=null),t._value=e,t._current=new j((+O(e,i.min,i.max))),n&&n.value(e)},_click:function(e){e.currentTarget.className.indexOf(S)!==-1&&(this.calendar.trigger("change"),this.close())},_option:function(e,t){var n=this,i=n.calendar;n.options[e]=t,i&&i[e](t)}},q.normalize=n,r.DateView=q,o=s.extend({init:function(t,i){var o,a,d=this;s.fn.init.call(d,t,i),t=d.element,i=d.options,i.disableDates=r.calendar.disabled(i.disableDates),i.min=l(t.attr("min"))||l(i.min),i.max=l(t.attr("max"))||l(i.max),n(i),d._initialOptions=W({},i),d._wrapper(),d.dateView=new q(W({},i,{id:t.attr(I),anchor:d.wrapper,change:function(){d._change(this.value()),d.close()},close:function(e){d.trigger(b)?e.preventDefault():(t.attr(B,!1),a.attr(L,!0))},open:function(e){var n,i=d.options;d.trigger(_)?e.preventDefault():(d.element.val()!==d._oldText&&(n=l(t.val(),i.parseFormats,i.culture),d.dateView[n?"current":"value"](n)),t.attr(B,!0),a.attr(L,!1),d._updateARIA(n))}})),a=d.dateView.div,d._icon();try{t[0].setAttribute("type","text")}catch(c){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":d.dateView._dateViewID,autocomplete:"off"}),d._reset(),d._template(),o=t.is("[disabled]")||e(d.element).parents("fieldset").is(":disabled"),o?d.enable(!1):d.readonly(t.is("[readonly]")),d._createDateInput(i),d._old=d._update(i.value||d.element.val()),d._oldText=t.val(),r.notify(d)},events:[_,b,w],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:F,depth:F,animation:{},month:{},dates:[],disableDates:null,ARIATemplate:'Current focused date is #=kendo.toString(data.current, "D")#',dateInput:!1,weekNumber:!1,componentType:"classic"},setOptions:function(e){var t=this,i=t._value;s.fn.setOptions.call(t,e),e=t.options,e.min=l(e.min),e.max=l(e.max),n(e),t.dateView.setOptions(e),t._createDateInput(e),t._dateInput||t.element.val(r.toString(i,e.format,e.culture)),i&&t._updateARIA(i)},_editable:function(e){var t=this,n=t._dateIcon.off(m),o=t.element.off(m),r=t._inputWrapper.off(m),a=e.readonly,s=e.disable;a||s?(r.addClass(s?T:x).removeClass(s?x:T),o.attr(k,s).attr(y,a).attr(P,s).attr(z,a)):(r.addClass(x).removeClass(T).on(A,t._toggleHover),o&&o.length&&(o[0].removeAttribute(k),o[0].removeAttribute(y)),o.attr(P,!1).attr(P,!1).on("keydown"+m,U(t._keydown,t)).on("focusout"+m,U(t._blur,t)).on("focus"+m,function(){t._inputWrapper.addClass(C)}),n.on(v,U(t._click,t)).on(E,i))},readonly:function(e){this._editable({readonly:e===t||e,disable:!1}),this._dateInput&&this._dateInput._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)}),this._dateInput&&this._dateInput._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;s.fn.destroy.call(e),e.dateView.destroy(),e.element.off(m),e._dateIcon.off(m),e._inputWrapper.off(m),e._form&&e._form.off("reset",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(M,e)},max:function(e){return this._option(R,e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.element.val(),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(D,"mouseenter"===t.type)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&(e._change(t),t||e.dateView.current(r.calendar.getToday())),e._inputWrapper.removeClass(C)},_click:function(e){var t=this;t.dateView.toggle(),t._focusElement(e.type)},_focusElement:function(e){var t=this.element;c.touch&&(!c.mouseAndTouchPresent||(e||"").match(/touch/i))||t[0]===h()||t.trigger("focus")},_change:function(e){var t,n,i,o=this,a=o.element.val();e=o._update(e),t=!r.calendar.isEqualDate(o._old,e),n=t&&!o._typing,i=a!==o.element.val(),(n||i)&&o.element.trigger(w),t&&(o._old=e,o._oldText=o.element.val(),o.trigger(w)),o._typing=!1},_keydown:function(e){var t=this,n=t.dateView,i=t.element.val(),o=!1;n.popup.visible()||e.keyCode!=d.ENTER||i===t._oldText?(o=n.move(e),t._updateARIA(n._current),o?t._dateInput&&e.stopImmediatePropagation&&e.stopImmediatePropagation():t._typing=!0):t._change(i)},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-calendar"></span></span>').insertAfter(i)),n._dateIcon=t.attr({role:"button","aria-controls":n.dateView._dateViewID})},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=l(n,o.parseFormats,o.culture),n&&(o[e]=new j((+n)),i.dateView[e](n)),t)},_update:function(e){var t,n=this,i=n.options,o=i.min,a=i.max,s=n._value,d=l(e,i.parseFormats,i.culture),c=null===d&&null===s||d instanceof Date&&s instanceof Date;return i.disableDates(d)&&(d=null,n._old||n.element.val()||(e=null)),+d===+s&&c?(t=r.toString(d,i.format,i.culture),t!==e&&n.element.val(null===d?e:t),d):(null!==d&&V(d,o)?d=O(d,o,a):N(d,o,a)||(d=null),n._value=d,n.dateView.value(d),n._dateInput&&d?n._dateInput.value(d||e):n.element.val(r.toString(d||e,i.format,i.culture)),
n._updateARIA(d),d)},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datepicker"),t[0]||(t=i.wrap(f).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(f).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datepicker").addClass(i[0].className).removeClass("input-validation-error"),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=t.options,a=o.disableDates,s=o.parseFormats.length?o.parseFormats:null,l=t._initialOptions.value,d=i?e("#"+i):n.closest("form"),c=n[0].defaultValue;l&&a&&a(l)&&(l=null),c&&r.parseDate(c,s,o.culture)||!l||n.attr("value",r.toString(l,o.format,o.culture)),d[0]&&(t._resetHandler=function(){t.value(l||n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=d.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=u(this.options.ARIATemplate)},_createDateInput:function(e){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),e.dateInput&&(this._dateInput=new a.DateInput(this.element,{culture:e.culture,format:e.format,min:e.min,max:e.max}))},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element&&n.element.length&&n.element[0].removeAttribute("aria-activedescendant"),i&&(t=i._cell,t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr("aria-activedescendant",t.attr("id")))}}),a.plugin(o)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.drawer.min",["kendo.userevents.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r="show",a="hide",s="itemClick",l="push",d="overlay",c="left",u="right",h=n.ui.Widget.extend({init:function(t,i){var r,a,s=this;o.fn.init.call(this,t,i),i=s.options,s._element(t),s._wrapper(t),s.position(),s._mode(),i.mini&&s._miniMode(),s._initDrawerItems(),i.mini&&i.mode!=l&&s._setBodyOffset(),r=this.userEvents=new n.UserEvents(i.mode!=l?e(document.body):this.drawerContainer,{fastTap:!0,allowSelection:!0}),a=function(t){e.contains(s.drawerItemsWrapper[0],t.event.target)&&s._itemClick(t),s.visible&&!s.trigger("hide",{sender:this})&&(s.hide(),t.preventDefault())},this.options.swipeToOpen?(r.bind("start",function(e){s._start(e)}),r.bind("move",function(e){s._update(e)}),r.bind("end",function(e){s._end(e)}),r.bind("tap",a)):r.bind("press",a),i.minHeight&&i.mode==l&&s.drawerContainer.css("min-height",i.minHeight)},_element:function(){var t=this,n=t.element,i=t.options,o=t.contentElement=n.children().first();t.drawerElement=e(i.template),o.addClass("k-drawer-content"),n.addClass("k-widget k-drawer")},_wrapper:function(){var t=this.options,n=this.drawerElement,i=this.element,o=this.contentElement,r=this.drawerItemsWrapper=n.wrapAll("<div class='k-drawer-items'></div>").parent(),a=this.drawerWrapper=r.wrap("<div class='k-drawer-wrapper'></div>").parent(),s=this.drawerContainer=i.wrap("<div class='k-drawer-container'></div>").parent();t.mini?t.mini.width&&a.width(t.mini.width):a.width(0),t.mode===l?s.append(o):t.mode===d&&(s.after(o),e(document.body).prepend(s)),i.append(a)},_setBodyOffset:function(){var t=this.element.outerWidth();this.leftPositioned?e(document.body).css("padding-left",t):e(document.body).css("padding-right",t)},_initDrawerItems:function(){var e=this.drawerItemsWrapper,t=e.find("[data-role='drawer-item']"),n=e.find("[data-role='drawer-separator']");t.addClass("k-drawer-item"),n.addClass("k-drawer-item k-drawer-separator"),this._selectedItemIndex>=0&&(t.removeClass("k-state-selected"),t.eq(this._selectedItemIndex).addClass("k-state-selected"))},_mode:function(){var t,n=this.options,i=this.drawerContainer;n.mode==l?i.addClass("k-drawer-"+l):(i.addClass("k-drawer-"+d),t=this.overlayContainer=e('<div class="k-overlay"></div>'),t.hide(),i.prepend(t))},_miniMode:function(){var t=this.options,n=this.drawerContainer,i=t.mini.width,o=this._miniTemplate=t.mini.template&&e(t.mini.template),r=this.drawerItemsWrapper,a=this.drawerWrapper;n.addClass("k-drawer-mini"),o&&r.html(o),i&&a.width(i),this.minWidth=t.mini.width||this.drawerWrapper.width()},show:function(){var e=this.drawerWrapper,t=this.drawerContainer,n=this.options,i=t.hasClass("k-drawer-expanded"),o=this._miniTemplate,r=this.drawerElement,a=this.drawerItemsWrapper;i||(t.addClass("k-drawer-expanded"),this.visible=!0),o&&(a.html(r),this._initDrawerItems(),this._selectItem()),e.width(n.width),n.mode===d&&(this.overlayContainer.show(),this.visible=!0)},hide:function(){var e=this,t=e.drawerWrapper,n=e.drawerContainer,i=this.options,o=this.drawerItemsWrapper,r=this._miniTemplate,a=i.mini&&i.mini.width;this._miniTemplate&&(o.html(r),e._initDrawerItems(),this._selectItem()),t.width(i.mini?a?a:"":0),this.visible&&(n.removeClass("k-drawer-expanded"),this.visible=!1),i.mode===d&&this.overlayContainer.hide()},position:function(e){var t=this,n=t.options,i=e||n.position,o=t.drawerContainer;i==u?(o.removeClass("k-drawer-"+c),o.addClass("k-drawer-"+u)):(o.removeClass("k-drawer-"+u),o.addClass("k-drawer-"+c)),this.leftPositioned=i===c},_start:function(e){var i=this,o=this.options,r=this.drawerWrapper,a=this.drawerItemsWrapper,s=e.sender;return Math.abs(e.x.velocity)<Math.abs(e.y.velocity)||n.triggeredByInput(e.event)?(s.cancel(),t):(this.drawerMini&&a.html(i.drawerElement),r.css("transition","none"),o.mode!=l&&this.overlayContainer.show(),t)},_update:function(e){var t=this.options,n=t.mode;n==l?this._push(e):this._overlay(e)},_end:function(e){var t,n=e.x.velocity,i=this.options,o=this.drawerWrapper,r=o.width(),a=r>i.width/2,s=.8;o.css("transition","all .3s ease-out"),t=this.leftPositioned?n>-s&&(n>s||a):n<s&&(n<-s||a),t?this.trigger("show",{sender:this})?(e.preventDefault(),this.hide()):this.show():this.trigger("hide",{sender:this})?(e.preventDefault(),this.show()):this.hide()},_overlay:function(e){var t=this.options,n=t.mini&&t.mini.width||this.minWidth||0,i=this.drawerWrapper,o=i.width(),r=o+(this.leftPositioned?e.x.delta:-e.x.delta),a=Math.min(Math.max(r,n),t.width);e.event.preventDefault(),e.event.stopPropagation(),i.width(a)},_push:function(e){var t=this.options,n=t.mini&&t.mini.width||this.minWidth||0,i=this.drawerWrapper,o=i.width(),r=o+(this.leftPositioned?e.x.delta:-e.x.delta),a=Math.min(Math.max(r,n),t.width);e.event.preventDefault(),e.event.stopPropagation(),i.width(a)},_selectItem:function(e){var n;return e?(e.addClass("k-state-selected"),this.trigger("itemClick",{item:e,sender:this}),this._selectedItemIndex=e.index(),t):(n=this._selectedItemIndex,n&&this.drawerItemsWrapper.find("[data-role='drawer-item']").eq(n).addClass("k-state-selected"),t)},_itemClick:function(t){var n,i=this;e(t.event.target).find(".k-drawer-item").length>0?n=e(t.event.target).find(".k-drawer-item"):e(t.event.target).closest(".k-drawer-item").length>0?n=e(t.event.target).closest(".k-drawer-item"):e(t.event.target).hasClass(".k-drawer-item")&&(n=e(t.event.target)),i.drawerItemsWrapper.find(".k-drawer-item").removeClass("k-state-selected"),i._selectItem(n)},destroy:function(){var t=this.options;t.mode!=l&&(this.leftPositioned?e(document.body).css("padding-left",0):e(document.body).css("padding-right",0)),o.fn.destroy.call(this),this.userEvents.destroy(),n.destroy(this.element),this.element=this.drawerWrapper=this.drawerElement=this.drawerContainer=this.drawerItemsWrapper=this._miniTemplate=null},options:{name:"Drawer",position:c,mode:"overlay",swipeToOpen:!0,width:280,mini:!1,template:""},events:[a,r,s]});n.ui.plugin(h)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.multiviewcalendar.min",["kendo.core.min","kendo.selectable.min","kendo.calendar.min"],e)}(function(){return function(e,t){function n(t){var n=e(this).hasClass("k-state-disabled");n||e(this).toggleClass(N,K.indexOf(t.type)>-1||t.type==$)}function i(e,t,n,i){var o,r;for(o=0;o<=t;o++)r=new Date(n.getTime()),r=new Date(r.setDate(r.getDate()+o)),i(r)||e.push(r)}function o(e,t){var n,i,o;return+t<+e&&(n=+e,s.views[0].setDate(e,t),s.views[0].setDate(t,new Date(n))),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),Math.ceil((+o-+i)/a.date.MS_PER_DAY)}function r(e,n,i){var o;return"month"===n?(o=new ie(e.getFullYear(),e.getMonth()+i,e.getDate()),o.setFullYear(e.getFullYear()),(Math.abs(o.getMonth()-e.getMonth())>i||i>10)&&(o.setMonth(e.getMonth()+i),o=s.views[0].last(o)),o):"year"===n?(o=new ie(1,e.getMonth(),e.getDate()),o.setFullYear(e.getFullYear()+i),Math.abs(o.getFullYear()-e.getFullYear())>i&&(o=new ie(1,e.getMonth(),1),o.setFullYear(e.getFullYear()+i),o=s.views[1].last(o)),o):"decade"===n?(o=new ie(1,e.getMonth(),e.getDate()),o.setFullYear(e.getFullYear()+10*i),Math.abs(o.getFullYear()-e.getFullYear())>10*i&&(o=new ie(1,e.getMonth(),1),o.setFullYear(e.getFullYear()+10*i),o=s.views[2].last(o)),o):"century"===n?(o=new ie(1,e.getMonth(),e.getDate()),o.setFullYear(e.getFullYear()+100*i),Math.abs(o.getFullYear()-e.getFullYear())>100*i&&(o=new ie(1,e.getMonth(),1),o.setFullYear(e.getFullYear()+100*i),o=s.views[3].last(o)),o):t}var a=window.kendo,s=a.calendar,l=a.support,d=s.isInRange,c=s.toDateObject,u=s.createDate,h=s.isEqualDate,p=s.getToday,f=a.keys,m=a.ui,g=m.Widget,v=m.Selectable,_=a.template,b=l.mobileOS,w=".kendoMultiViewCalendar",k="click",y="keydown",x="id",C="min",S="month",T=".",D="century",A="decade",E="change",I="navigate",M="value",R="k-state-focused",F="k-state-selected",P="k-range-mid",z="k-range-split-end",B="k-range-split-start",L="k-range-start",H="k-range-end",N="k-state-hover",O="k-state-disabled",V="k-nav-today",W="k-other-month",U="k-out-of-range",j="td:has(.k-link):not(."+U+")",q="td:has(.k-link):not(."+O+"):not(."+U+")",G="blur",$="focus",K=l.touch?"touchstart":"mouseenter",Y=l.touch?"touchend"+w+" touchmove"+w:"mouseleave"+w,Q="_prevArrow",X="_nextArrow",Z="aria-selected",J="input,a,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",ee="aria-disabled",te="aria-label",ne=e.proxy,ie=Date,oe={month:0,year:1,decade:2,century:3},re=g.extend({init:function(e,t){var n=this;g.fn.init.call(n,e,t),n.userEvents=new a.UserEvents(n.element,{global:!0,allowSelection:!0,filter:n.options.filter,tap:ne(n._tap,n),touchAction:"none"})},events:[E],options:{name:"RangeSelectable",filter:">*",inputSelectors:J,multiple:!1,dragToSelect:!0,relatedTarget:e.noop},destroy:function(){var e=this;g.fn.destroy.call(e),e.userEvents.destroy(),e._lastActive=e.element=e.userEvents=e._start=e._end=null},_allowSelection:function(t){return!e(t).is(this.options.inputSelectors)||(this.userEvents.cancel(),!1)},start:function(e){return e===t?this._start:(e.addClass(L+" "+F),this._start=e,t)},end:function(e){return e===t?this._start:(e.addClass(H+" "+F),this._end=e,t)},mid:function(t){var n=this.element.find("table.k-month");t.addClass(P),n.each(function(){var t=e(this),n=t.find(q+":last"),i=t.find(q+":first");n.hasClass(P)&&n.addClass(z),i.hasClass(P)&&i.addClass(B)})},clear:function(e){this.element.find(j).removeClass(H+" "+F+" "+L+" "+P+" "+z+" "+B),e&&(this._start=this._end=null)},selectFrom:function(t){var n=this,i=n.element.find(j),o=e.inArray(e(t)[0],i);n.clear(),n.start(t),i=i.filter(function(e){return e>o}),n.mid(i)},selectTo:function(t){var n=this,i=n.element.find(j),o=e.inArray(e(t)[0],i);n.clear(),i=i.filter(function(e){return e<o}),n.mid(i),n.end(e(t))},range:function(n,i){var o,r,a,s,l=this;return n===t?{start:l._start,end:l._end}:(o=l.element.find(j),r=e.inArray(e(n)[0],o),a=e.inArray(e(i)[0],o),r>a&&(s=i,i=n,n=s,s=r,r=a,a=s),l.clear(),n.addClass(L+" "+F),l._start=n,o=o.filter(function(e){return e>r&&e<a}),l.mid(o),l.end(e(i)),t)},change:function(){this.trigger(E)},_tap:function(n){var i,o,r,a=e(n.target),s=this;if(s._lastActive=a,!s._start)return s.start(a),s.trigger(E),t;if(s._start&&!s._end)return i=s.element.find(j),o=e.inArray(e(s._start)[0],i),r=e.inArray(e(a)[0],i),+c(e(s._start).find("a"))>+c(e(a).find("a"))?(s.clear(),s.start(a),s.trigger(E),t):(i=i.filter(function(e){return e>o&&e<r}),s.mid(i),s.end(e(a)),s.trigger(E),t);if(s._start&&s._end){if(a.hasClass(P))return s._toggling?s.range(s._start,a):s.range(a,s._end),s._toggling=!s._toggling,s.trigger(E),t;s._toggling=!1,s._end=null,s.clear(),s.start(a),s.trigger(E)}}}),ae=g.extend({init:function(t,n){var i,o,r=this;g.fn.init.call(r,t,n),t=r.wrapper=r.element,n=r.options,r.options.disableDates=s.disabled(r.options.disableDates),o=a.getCulture(n.culture),n.format=a._extractFormat(n.format||o.calendars.standard.patterns.d),r._templates(),r._header(),r._wrapper(),i=t.addClass("k-widget k-calendar k-calendar-range"+(n.weekNumber?" k-week-number":"")).on(y+w,"table.k-content",ne(r._move,r)).on(G+w,"table",ne(r._blur,r)).on(k+w,q,function(t){var n=t.currentTarget.firstChild;n.href.indexOf("#")!=-1&&t.preventDefault(),r._click(e(n))}).on(K+w,q,ne(r._mouseEnter,r)).on(Y,q,function(){e(this).removeClass(N)}).attr(x),i&&(r._cellID=i+"_cell_selected"),r._calendarWidth=r.element.width(),r._range=n.range,r._initViews({viewName:n.start,value:n.value}),r._selectable(),r._footer(r.footer),r._selectDates=[],r.value(n.value),"multiple"==n.selectable&&(r._selectDates=n.selectDates.length?n.selectDates:r._selectDates,r._restoreSelection()),"range"==n.selectable&&r.selectRange(r._range),a.notify(r)},options:{name:"MultiViewCalendar",value:null,min:new ie(1900,0,1),max:new ie(2099,11,31),dates:[],disableDates:null,culture:"",footer:"",format:"",month:{},range:{start:null,end:null},weekNumber:!1,views:2,showViewHeader:!1,selectable:"single",selectDates:[],start:S,depth:S,messages:{weekColumnHeader:""}},events:[E,I],setOptions:function(e){var t,n=this;for(s.normalize(e),e.disableDates=s.disabled(e.disableDates),g.fn.setOptions.call(n,e),n._selectable(),n._templates(),n._footer(n.footer),t=0;t<n._views.length;t++)n._views[t].off(w).remove();n._initViews({viewName:e.start,value:e.value}),n._range=e.range||{start:null,end:null},n._restoreSelection()},destroy:function(){var e,t=this;if(t._cell=null,t._currentView=null,t._current=null,t._views)for(e=0;e<t._views.length;e++)t._views[e].off(w).remove();t.element.off(w),t.header&&(t.header.off(w),t._title=null,t.header=null),t.selectable&&(t.selectable.destroy(),t.selectable=null),t.rangeSelectable&&(t.rangeSelectable.destroy(),t.rangeSelectable=null),t._today&&a.destroy(t._today.off(w)),t._views=null,g.fn.destroy.call(t)},current:function(){return this._current},focus:function(){var e;this._cell?this._cell.closest("table").trigger("focus"):this._current&&this._dateInViews(this._current)?(this._cell=this._cellByDate(this._current),this._cell.closest("table").trigger("focus")):(e=this.element.find("table").first().trigger("focus"),this._cell=e.find(q+":first"),this._current=c(this._cell.find("a"))),this._cell.addClass(R)},min:function(e){return this._option(C,e)},max:function(e){return this._option("max",e)},view:function(){return this._currentView},navigateToPast:function(){this._navigate(Q,-1)},navigateToFuture:function(){this._navigate(X,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(O)||e.navigate(e._current,++t)},navigateDown:function(e){var n=this,i=n._index,o=n.options.depth;if(e)return i===oe[o]?(h(n._value,n._current)&&h(n._value,e)||(n.value(e),n.trigger(E)),t):(n.navigate(e,--i),t)},navigate:function(e,n){var i,o,r,a,l;for(n=isNaN(n)?s.views[s.viewsEnum[n]]:s.views[n],i=this,o=i.options,r=o.min,a=o.max,i._current=e?e:e=new ie((+s.restrictValue(e,r,a))),n===t&&(n=i._currentView),i._currentView=n,l=0;l<i._views.length;l++)i._views[l].off(w).remove();i._initViews({viewName:n.name,value:e}),i._restoreSelection()},_updateHeader:function(){var t,n,i,o,a=this,s=a._currentView,l=a._title,c=a._firstViewValue,u=a.options,h=a._visibleRange(),p=u.culture,f=u.min,m=u.max;s.name===A||s.name===D?(t=r(c,s.name,u.views-1),d(t,f,m)||(t=m),l.html(s.first(c).getFullYear()+" - "+s.last(t).getFullYear())):l.html(s.title(c,f,m,p)+" - "+s.title(r(c,s.name,u.views-1),f,m,p)),n=s.name===D,l.toggleClass(O,n).attr(ee,n),i=s.compare(h.start,a.options.min)<1,o=s.compare(h.end,a.options.max)>-1,i&&o?a._navContainer&&(a._navContainer.remove(),a._navContainer=null):(a._navContainer||(a._navContainer=e('<span class="k-calendar-nav"><a href="#" role="button" class="k-button k-button-icon k-prev-view" '+te+'="Previous"><span class="k-icon k-i-arrow-60-left"></span></a><a href="#" role="button" class="k-button k-button-icon k-next-view" '+te+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></span>').appendTo(a.header),a[Q]=a._navContainer.find(".k-prev-view"),a[X]=a._navContainer.find(".k-next-view")),a[Q].toggleClass(O,i).attr(ee,i),a[Q].hasClass(O)&&a[Q].removeClass(N),a[X].toggleClass(O,o).attr(ee,o),a[X].hasClass(O)&&a[X].removeClass(N))},_mouseEnter:function(t){var n,i,o,r,a=this,s=e(t.currentTarget);if(s.addClass(N),a.rangeSelectable&&"month"===a._currentView.name&&(n=a.selectRange(),n.start&&!n.end)){if(a._dateInViews(a.selectRange().start)){if(i=a.element.find(a.rangeSelectable.options.filter),o=e.inArray(e(a.rangeSelectable._start)[0],i),r=e.inArray(e(s)[0],i),o>r)return;a.rangeSelectable.range(a.rangeSelectable._start,s)}else+c(a.element.find(j+":first").find("a"))>+n.start&&a.rangeSelectable.selectTo(s);a.rangeSelectable._end=null}},_move:function(n,i){var o,r,s,l,h,p,m=this,g=m.options,v=n.keyCode,_=m._index,b=g.min,w=g.max,k=m.element.find(T+R),y=k.closest("table"),x=new ie((+(m._current||c(k.find("a"))))),C=a.support.isRtl(m.wrapper),S=!1;if(v==f.RIGHT&&!C||v==f.LEFT&&C?(o=1,r=!0):v==f.LEFT&&!C||v==f.RIGHT&&C?(o=-1,r=!0):v==f.UP?(o=0===_?-7:-4,r=!0):v==f.DOWN?(o=0===_?7:4,r=!0):v==f.SPACEBAR?(o=0,r=!0):v==f.HOME?(r=!0,l=y.find(q).eq(0),l.hasClass(R)?(y=y.prev(),y.length?m._focusCell(y.find(q).eq(0)):(S=m[Q]&&!m[Q].hasClass(O),m._navigate(Q,-1,i),m._focusCell(m.element.find("table:first "+q+":first")))):m._focusCell(l)):v==f.END&&(r=!0,l=y.find(q).last(),l.hasClass(R)?(y=y.next(),y.length?m._focusCell(y.find(q).last()):(S=m[X]&&!m[X].hasClass(O),m._navigate(X,1,i),m._focusCell(m.element.find("table:last "+q+":last")))):m._focusCell(l)),n.ctrlKey||n.metaKey)v==f.RIGHT&&!C||v==f.LEFT&&C?(S=m[X]&&!m[X].hasClass(O),m._navigate(X,1,i),r=!0):v==f.LEFT&&!C||v==f.RIGHT&&C?(S=m[Q]&&!m[Q].hasClass(O),m._navigate(Q,-1,i),r=!0):v==f.UP?(S=!m._title.hasClass(O),m.navigateUp(),m._focusCell(m._cellByDate(m._current),!i),r=!0):v==f.DOWN?("month"===m._currentView.name?m.value(x):(m.navigateDown(x),m._focusCell(m._cellByDate(m._current),!i),S=!0),r=!0):v!=f.ENTER&&v!=f.SPACEBAR||"multiple"===g.selectable&&m._toggleSelection(n);else if(n.shiftKey&&"single"!==g.selectable){if(o!==t||s){if(s||m._currentView.setDate(x,o),"month"!==m._currentView.name)return;g.disableDates(x)&&(x=m._nextNavigatable(x,o)),b=u(b.getFullYear(),b.getMonth(),b.getDate()),d(x,b,w)&&(m._dateInViews(x)||(o>0?(S=m[X]&&!m[X].hasClass(O),m._navigate(X,1,i)):(S=m[Q]&&!m[Q].hasClass(O),m._navigate(Q,-1,i))),l=m._cellByDate(x),m._current=x,m.selectable&&(m._selectRange(c((m.selectable._lastActive||k).find("a")),x),m.selectable._lastActive||(m.selectable._lastActive=k),m.trigger(E),m._focusCell(l)),m.rangeSelectable&&(h=c((m.rangeSelectable._lastActive||k).find("a")),m._dateInViews(h)?(m.rangeSelectable._lastActive=m.rangeSelectable._end&&m.rangeSelectable._end.is(T+R)?m.rangeSelectable._start:m._cellByDate(h),m.rangeSelectable.range(m.rangeSelectable._lastActive,l)):+h>+x?(m.rangeSelectable._end=m.rangeSelectable._lastActive,m.rangeSelectable.selectFrom(l)):m.rangeSelectable.selectTo(l),m.rangeSelectable.change(),m._focusCell(l)))}}else v==f.ENTER||v==f.SPACEBAR?("month"===m._currentView.name?(m.selectable&&(m.selectable._lastActive=m._cellByDate(x)),m.value(x),m.rangeSelectable&&m.rangeSelectable.change()):m._click(e(m._cell[0].firstChild),i),r=!0):v!=f.PAGEUP&&v!=f.PAGEDOWN||(r=!0,p=y.find(q).index(k),y=v==f.PAGEUP?y.prev():y.next(),y.length||(v==f.PAGEUP?(S=m[Q]&&!m[Q].hasClass(O),m.navigateToPast(),y=m.element.find("table:first")):(S=m[X]&&!m[X].hasClass(O),m.navigateToFuture(),y=m.element.find("table:last"))),l=y.find(q).eq(p),m._focusCell(l.length?l:y.find(q).last())),(o||s)&&(s||m._currentView.setDate(x,o),b=u(b.getFullYear(),b.getMonth(),b.getDate()),d(x,b,w)&&(m.selectable&&g.disableDates(x)&&(x=m._nextNavigatable(x,o)),m._dateInViews(x)||(o>0?(S=m[X]&&!m[X].hasClass(O),m._navigate(X,1,i)):(S=m[Q]&&!m[Q].hasClass(O),m._navigate(X,-1,i))),l=m._cellByDate(x),m._current=x,m._focusCell(l,!i)));return S&&m.trigger(I),r&&n.preventDefault(),m._current},_visualizeSelectedDatesInView:function(){var t,n=this,i={};e.each(n._selectDates,function(e,t){i[a.calendar.views[0].toDateString(t)]=t}),n.selectable.clear(),t=n.element.find("table").find(j).filter(function(t,n){return i[e(n.firstChild).attr(a.attr(M))]}),t.length>0&&n.selectable._selectElement(t,!0)},_nextNavigatable:function(e,t){var n=this,i=!0,o=n._currentView,r=n.options.min,a=n.options.max,s=n.options.disableDates,l=new Date(e.getTime());for(o.setDate(l,-t);i;){if(o.setDate(e,t),!d(e,r,a)){e=l;break}i=s(e)}return e},_toggleSelection:function(t){var n=this;n.selectable._lastActive=e(n._cell[0]),e(n._cell[0]).hasClass(F)?(n.selectable._unselect(e(n._cell[0])),n.selectable.trigger(E,{event:t})):n.selectable.value(e(n._cell[0]),{event:t})},_option:function(e,n){var i,o=this,r=o.options,s=o._value||o._current;return n===t?r[e]:(n=a.parseDate(n,r.format,r.culture),n&&(r[e]=new ie((+n)),i=e===C?n>s:s>n,i&&(o._value=null),o.navigate(o._value),o._toggle()),t)},_cellByDate:function(t){return t instanceof Date&&(t=this._currentView.toDateString(t)),this.element.find("table").find("td:not(."+W+")").filter(function(){return e(this.firstChild).attr(a.attr(M))===t})},_selectable:function(){var e=this,t=e.options.selectable;e.selectable&&(e.selectable.destroy(),e.selectable=null),e.rangeSelectable&&(e.rangeSelectable.destroy(),e.rangeSelectable=null),"range"===t.toLowerCase()?e.rangeSelectable=new re(e.wrapper,{filter:"table.k-month "+q,change:ne(e._rangeSelection,e)}):e.selectable=new v(e.wrapper,{aria:!0,dragToSelect:!1,inputSelectors:"input,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",multiple:v.parseOptions(t).multiple,filter:"table.k-content "+q,change:ne(e._selection,e),relatedTarget:ne(e._onRelatedTarget,e),unselect:ne(e._unselecting,e)})},_onRelatedTarget:function(e){var t=this;t.selectable.options.multiple&&e.is(q)&&e.length>1&&t._focusCell(e.first(),!0)},_getFirstViewDate:function(e){var t,n,i,o=this,a=o.options,s=[],l=new Date((+o._current));for(i=0;i<a.views;i++){if(t=e.first(l),n=e.last(l),+n>+a.max){+t<=+a.max&&s.push({start:t,end:new Date((+a.max))});break}s.push({start:t,end:n}),l=new Date((+r(n,e.name,1)))}for(l=new Date((+o._current)),i=0;i<a.views;i++){if(t=e.first(l),n=e.last(l),+t<+a.min){+n>=+a.min&&s.push({start:new Date((+a.min)),end:n});break}s.push({start:t,end:n}),l=new Date((+r(t,e.name,-1)))}for(t=s[0].start,i=0;i<a.views+1&&s[i];i++)+t>+s[i].start&&(t=s[i].start);return new Date((+t))},_canRenderNextView:function(e){var t=e.getFullYear(),n=e.getMonth(),i=e.getDate(),o=this.options.max,r=o.getFullYear(),a=o.getMonth();return t<r||(t===r&&n<a||(t===r&&n===a&&i<o.getDate()||t===r&&n===a&&i===o.getDate()))},_initViews:function(t){var n,i,o=this,a=o.options,l=s.viewsEnum[t.viewName],d=s.views[l];for(o._current=new ie((+s.restrictValue(t.value,a.min,a.max))),o._views=[],o._index=l,n=o._getFirstViewDate(d),n.setDate(1),o._firstViewValue=new Date((+n)),i=0;i<a.views&&(n=i?r(n,d.name,1):n,n.setDate(1),o._canRenderNextView(n));i++)o._table=e(d.content(e.extend({min:a.min,max:a.max,date:n,url:a.url,dates:a.dates,format:a.format,culture:a.culture,disableDates:a.disableDates,showHeader:a.showViewHeader,isWeekColumnVisible:a.weekNumber,otherMonth:a.otherMonth,messages:a.messages,contentClasses:"k-content"},o[d.name]))),o._table.appendTo(o.tablesWrapper).addClass("k-"+d.name),o._views.push(o._table);o._currentView=d,o.tablesWrapper.attr("class","k-calendar-view k-calendar-"+d.name+"view"),o._updateHeader()},_rangeSelection:function(e){var t,n,i=this,o=e.sender.range();o.start&&(t=c(o.start.find("a"))),o.end&&(n=c(o.end.find("a"))),i._range={start:t,end:n},i._preventChange||i.trigger(E)},_selection:function(t){var n,i=this,o=t.sender.value(),r=t.event,a=e(r&&r.currentTarget),s=a.is("td");"single"===i.options.selectable&&i._validateValue(o[0]?c(o.first().find("a")):t.sender._lastActive?c(t.sender._lastActive.find("a")):i.value()),"multiple"==i.options.selectable&&(s&&(n=c(a.find("a"))),r&&r.ctrlKey?s?a.hasClass(F)?i._selectDates.push(n):i._deselect(n):(i.element.find("table "+q).each(function(t,n){var o=c(e(n).find("a"));i._deselect(o)}),i._addSelectedCellsToArray()):r&&r.shiftKey?i._selectRange(c(t.sender._lastActive?t.sender._lastActive.find("a"):o.first().find("a")),n):s?(i._selectDates=[],i._selectDates.push(n)):(i._selectDates=[],i._addSelectedCellsToArray())),i._preventChange||i.trigger(E)},_addSelectedCellsToArray:function(){var t=this;t.selectable.value().each(function(n,i){var o=c(e(i.firstChild));t.options.disableDates(o)||t._selectDates.push(o)})},_deselect:function(e){var t=this,n=t._selectDates.map(Number).indexOf(+e);n!=-1&&t._selectDates.splice(n,1)},_unselecting:function(e){var t=this,n=e.element;"single"===t.options.selectable&&!b&&n.hasClass(R)&&e.preventDefault()},_visibleRange:function(){var e=this.element.find(".k-calendar-view table"),t=c(e.first().find(j+":first").find("a")),n=c(e.last().find(j+":last").find("a"));return{start:t,end:n}},_dateInViews:function(e){var t=this,n=t.element.find(".k-calendar-view table"),i=c(n.first().find(j+":first").find("a")),o=c(n.last().find(j+":last").find("a"));return+e<=+o&&+e>=+i},_fillRange:function(e,t){var n,r=this;r._selectDates=[],n=o(e,t),i(r._selectDates,n,e,r.options.disableDates)},_selectRange:function(e,t){var n,i=this;+t<+e&&(n=t,t=e,e=n),i._fillRange(e,t),i._visualizeSelectedDatesInView()},_header:function(){var t,i=this,o=i.element,r=o.find(".k-calendar-header");r.length||(r=e('<div class="k-calendar-header"><a href="#" role="button" class="k-button k-title" aria-live="assertive" aria-atomic="true"></a><span class="k-calendar-nav"><a href="#" role="button" class="k-button k-button-icon k-prev-view" '+te+'="Previous"><span class="k-icon k-i-arrow-60-left"></span></a><a href="#" role="button" class="k-button k-button-icon k-next-view" '+te+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></span></div>').prependTo(o)),i.header=r,r.on(K+w+" "+Y+" "+$+w+" "+G+w,".k-button",n).on("click",function(){return!1}).on(k+w,".k-button.k-title",function(){i.navigateUp(),i._focusCell(i._cellByDate(i._current),!0),i.trigger(I)}).on(k+w,".k-button.k-prev-view",function(e){e.preventDefault(),i.navigateToPast(),i.trigger(I)}).on(k+w,".k-button.k-next-view",function(e){e.preventDefault(),i.navigateToFuture(),i.trigger(I)}),t=r.find(".k-button"),i._title=t.filter(".k-title"),i._navContainer=r.find(".k-calendar-nav"),i[Q]=t.filter(".k-prev-view"),i[X]=t.filter(".k-next-view")},_wrapper:function(){this.tablesWrapper=e('<div class="k-calendar-view" />').insertAfter(this.element[0].firstChild)},_templates:function(){var e=this,t=e.options,n=t.month,i=n.content,o=n.weekNumber,r=n.empty;e.month={content:_('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+a.attr(M)+'="#=data.dateString#" title="#=data.title#">'+(i||"#=data.value#")+"</a></td>",{useWithBlock:!!i}),empty:_('<td role="gridcell"'+(r?">":' class="k-out-of-range">')+(r||"<a class='k-link'></a>")+"</td>",{useWithBlock:!!r}),weekNumber:_('<td class="k-alt">'+(o||"#= data.weekNumber #")+"</td>",{useWithBlock:!!o})}},_footer:function(){var n=this,i=n.options,o=i.footer!==!1?a.template(n.options.footer||'#= kendo.toString(data,"D","'+i.culture+'") #',{useWithBlock:!1}):null,r=p(),s=n.element,l=s.find(".k-footer");return o?(l[0]||(l=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(s)),n._today=l.show().find(".k-link").html(o(r)).attr("title",a.toString(r,"D",n.options.culture)),n._toggle(),t):(n._toggle(!1),l.hide(),t)},_navigate:function(e,t,n){var i,o=this,r=o._index+1,a=new ie((+o._current)),l=new ie((+o._current));e=o[e],i=o._cellByDate(a).closest("table").index(),t>0?i=1-i:i+=1,e&&e.hasClass(O)||(r>3?a.setFullYear(a.getFullYear()+100*(t*i)):s.views[r].setDate(a,t*i),o.navigate(a),o._dateInViews(l)?(o._focusCell(o._cellByDate(l),!n),o._current=l):(r>3?l.setFullYear(l.getFullYear()+100*t):s.views[r].setDate(l,t),o._focusCell(o._cellByDate(l),!n),o._current=l))},_toggle:function(e){var n=this,i=n.options,o="range"!==i.selectable&&n.options.disableDates(p()),r=n._today;e===t&&(e=d(p(),i.min,i.max)),r&&(r.off(k+w),e&&!o?r.addClass(V).removeClass(O).on(k+w,ne(n._todayClick,n)):r.removeClass(V).addClass(O).on(k+w,function(e){e.preventDefault()}))},_click:function(e,t){var n=this,i=n.options,o=new Date((+n._current)),r=c(e);a.date.adjustDST(r,0),n._currentView.setDate(o,r),n._current=r,n._currentView.name!==i.depth?(n.navigateDown(s.restrictValue(o,i.min,i.max)),n._focusCell(n._cellByDate(n._current),!t),n.trigger(I)):n._focusCell(e.closest("td"),!t)},_blur:function(){var e=this;e._cell&&e._cell.removeClass(R)},_focus:function(t){var n=this,i=e(t.currentTarget),o=n._cell;o&&e.contains(i[0],o[0])||(o=i.find(q+":first")),n._focusCell(o)},_focusCell:function(e,t){var n=this,i=n._cellID,o=e.closest("table");n._cell&&n._cell.length&&(n._cell[0].removeAttribute(Z),n._cell[0].removeAttribute(te),n._cell.removeClass(R),n._cell[0].removeAttribute(x),n._cell.closest("table")[0].removeAttribute("aria-activedescendant")),n._cell=e,t&&o.trigger("focus"),i&&(e.attr(x,i),o.attr("aria-activedescendant",i)),e.attr(Z,!0).addClass(R),e.length&&"month"==n._currentView.name&&(n._current=c(e.find("a")))},_todayClick:function(e){var t=this,n=t.options.disableDates,i=p(),o=!1;e.preventDefault(),n(i)||(t._value=i,"multiple"===t.options.selectable&&(t._selectDates=[i]),"range"===t.options.selectable&&(t.rangeSelectable.clear(!0),t._range={start:i,end:null}),"month"==t._currentView.name&&t._dateInViews(i)||(o=!0),t.navigate(i,t.options.depth),"single"===t.options.selectable&&(t.selectable._lastActive=null),o&&t.trigger(I),t.trigger(E))},_validateValue:function(e){var n=this,i=n.options,o=i.min,r=i.max;return e=a.parseDate(e,i.format,i.culture),null!==e&&(e=new ie((+e)),d(e,o,r)||(e=null)),null!==e&&n.options.disableDates(new Date((+e)))?n._value===t&&(n._value=null):n._value=e,n._value},clearSelection:function(){var e=this;e.selectable&&e.element.find(T+F).removeClass(F),e.rangeSelectable&&e.rangeSelectable.clear(!0)},_restoreSelection:function(){var e,n=this,i=n.options.selectable;if(n._currentView.name===n.options.depth){if(n._preventChange=!0,"range"===i){if(e=n.selectRange(),!e||!e.start)return n._preventChange=!1,t;n.selectRange(e)}"single"===i&&n.value()&&n.selectable.value(n._cellByDate(n.value())),"multiple"===i&&n._visualizeSelectedDatesInView(),n._preventChange=!1}},value:function(e){var n,i=this;return e===t?i._value:(e=i._validateValue(e),i.clearSelection(),e&&!i._dateInViews(e)&&i.navigate(e),null!==e&&i._currentView.name===S&&(n=i._cellByDate(e),i.selectable&&i.selectable.value(n),i.rangeSelectable&&(i.rangeSelectable.start(n),i.rangeSelectable._lastActive=n)),t)},selectDates:function(n){var i,o,r=this;return n===t?r._selectDates:(o=n.map(function(e){return e.getTime()}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return new Date(e)}),i=e.grep(o,function(e){if(e)return+r._validateValue(new Date(e.setHours(0,0,0,0)))===+e}),r._selectDates=i.length>0?i:0===o.length?o:r._selectDates,r._visualizeSelectedDatesInView(),t)},selectRange:function(e){var n,i,o,r=this;return e===t?r._range:(r._range=e,e.start&&(o=r._visibleRange(),n=r._dateInViews(e.start),
i=e.end&&r._dateInViews(e.end),!n&&i&&r.rangeSelectable.selectTo(r._cellByDate(e.end)),n&&i&&r.rangeSelectable.range(r._cellByDate(e.start),r._cellByDate(e.end)),e.end&&n&&!i&&r.rangeSelectable.selectFrom(r._cellByDate(e.start)),!e.end&&n&&r.rangeSelectable.start(r._cellByDate(e.start)),+o.start>+e.start&&+o.end<+e.end&&r.rangeSelectable.mid(r.element.find(q))),t)}});a.ui.plugin(ae)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.virtuallist.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(e){return e[e.length-1]}function i(e){return e instanceof Array?e:[e]}function o(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function r(e,t,n){return Math.ceil(e*t/n)}function a(e,t,n){var i=document.createElement(n||"div");return t&&(i.className=t),e.appendChild(i),i}function s(){var t,n=e('<div class="k-popup"><ul class="k-list"><li class="k-item"><li></ul></div>');return n.css({position:"absolute",left:"-200000px",visibility:"hidden"}),n.appendTo(document.body),t=parseFloat(b.getComputedStyles(n.find(".k-item")[0],["line-height"])["line-height"]),n.remove(),t}function l(e,t,n){return{down:e*n,up:e*(t-1-n)}}function d(e,t){var n=(e.listScreens-1-e.threshold)*t,i=e.threshold*t;return function(e,t,o){return t>o?t-e.top<n:0===e.top||t-e.top>i}}function c(e,t){return function(n){return t(e.scrollTop,n)}}function u(e){return function(t,n){return e(t.items,t.index,n),t}}function h(e,t){b.support.browser.msie&&b.support.browser.version<10?e.style.top=t+"px":(e.style.webkitTransform="translateY("+t+"px)",e.style.transform="translateY("+t+"px)")}function p(t,n){return function(i,o){for(var r=0,a=i.length;r<a;r++)t(i[r],o[r],n),o[r].item&&this.trigger(O,{item:e(i[r]),data:o[r].item,ns:b.ui})}}function f(e,t){var n;return t>0?(n=e.splice(0,t),e.push.apply(e,n)):(n=e.splice(t,-t),e.unshift.apply(e,n)),n}function m(n,i,o){var r=o.template;n=e(n),i.item||(r=o.placeholderTemplate),0===i.index&&this.header&&i.group&&this.header.html(o.fixedGroupTemplate(i.group)),this.angular("cleanup",function(){return{elements:[n]}}),n.attr("data-uid",i.item?i.item.uid:"").attr("data-offset-index",i.index),n.html(this.options.columns&&this.options.columns.length&&i.item?g(this.options,i.item,o):r(i.item||{})),n.toggleClass(z,i.current),n.toggleClass(P,i.selected),n.toggleClass("k-first",i.newGroup),n.toggleClass("k-last",i.isLastGroupedItem),n.toggleClass("k-loading-item",!i.item),0!==i.index&&i.newGroup&&e("<div class="+F+"></div>").appendTo(n).html(o.groupTemplate(i.group)),i.top!==t&&h(n[0],i.top),this.angular("compile",function(){return{elements:[n],data:[{dataItem:i.item,group:i.group,newGroup:i.newGroup}]}})}function g(e,t,n){var i,o,r,a,s="";for(i=0;i<e.columns.length;i++)o=e.columns[i].width,r=parseInt(o,10),a="",o&&(a+="style='width:",a+=r,a+=C.test(o)?"%":"px",a+=";'"),s+="<span class='k-cell' "+a+">",s+=n["column"+i](t),s+="</span>";return s}function v(e,t){var n,i,o,r,a=t.length,s=e.length,l=[],d=[];if(s)for(o=0;o<s;o++){for(n=e[o],i=!1,r=0;r<a;r++)if(n===t[r]){i=!0,l.push({index:o,item:n});break}i||d.push(n)}return{changed:l,unchanged:d}}function _(e){return e&&"resolved"!==e.state()}var b=window.kendo,w=b.ui,k=w.Widget,y=w.DataBoundWidget,x=e.proxy,C=/^\d+(\.\d+)?%$/i,S="k-virtual-wrap",T="k-virtual-list",D="k-virtual-content",A="k-list",E="k-group-header",I="k-virtual-item",M="k-item",R="k-height-container",F="k-group",P="k-state-selected",z="k-state-focused",B="k-state-hover",L="change",H="click",N="listBound",O="itemChange",V="activate",W="deactivate",U=".VirtualList",j=y.extend({init:function(t,n){var o=this;o.bound(!1),o._fetching=!1,k.fn.init.call(o,t,n),o.options.itemHeight||(o.options.itemHeight=s()),n=o.options,o.element.addClass(A+" "+T).attr("role","listbox"),o.content=o.element.wrap("<div unselectable='on' class='"+D+"'></div>").parent(),o.wrapper=o.content.wrap("<div class='"+S+"'></div>").parent(),o.header=o.content.before("<div class='"+E+"'></div>").prev(),n.columns&&n.columns.length&&o.element.removeClass(A),o.element.on("mouseenter"+U,"li:not(.k-loading-item)",function(){e(this).addClass(B)}).on("mouseleave"+U,"li",function(){e(this).removeClass(B)}),o._values=i(o.options.value),o._selectedDataItems=[],o._selectedIndexes=[],o._rangesList={},o._promisesList=[],o._optionID=b.guid(),o._templates(),o.setDataSource(n.dataSource),o.content.on("scroll"+U,b.throttle(function(){o._renderItems(),o._triggerListBound()},n.delay)),o._selectable()},options:{name:"VirtualList",autoBind:!0,delay:100,height:null,listScreens:4,threshold:.5,itemHeight:null,oppositeBuffer:1,type:"flat",selectable:!1,value:[],dataValueField:null,template:"#:data#",placeholderTemplate:"loading...",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",mapValueTo:"index",valueMapper:null},events:[L,H,N,O,V,W],setOptions:function(e){k.fn.setOptions.call(this,e),this._selectProxy&&this.options.selectable===!1?this.element.off(H,"."+I,this._selectProxy):!this._selectProxy&&this.options.selectable&&this._selectable(),this._templates(),this.refresh()},items:function(){return e(this._items)},destroy:function(){this.wrapper.off(U),this.dataSource.unbind(L,this._refreshHandler),k.fn.destroy.call(this)},setDataSource:function(t){var n,i=this,o=t||{};o=e.isArray(o)?{data:o}:o,o=b.data.DataSource.create(o),i.dataSource?(i.dataSource.unbind(L,i._refreshHandler),i._clean(),i.bound(!1),i._deferValueSet=!0,n=i.value(),i.value([]),i.mute(function(){i.value(n)})):i._refreshHandler=e.proxy(i.refresh,i),i.dataSource=o.bind(L,i._refreshHandler),i.setDSFilter(o.filter()),0!==o.view().length?i.refresh():i.options.autoBind&&o.fetch()},skip:function(){return this.dataSource.currentRangeStart()},_triggerListBound:function(){var e=this,t=e.skip();e.bound()&&!e._selectingValue&&e._skip!==t&&(e._skip=t,e.trigger(N))},_getValues:function(t){var n=this._valueGetter;return e.map(t,function(e){return n(e)})},_highlightSelectedItems:function(){var e,t;for(e=0;e<this._selectedDataItems.length;e++)t=this._getElementByDataItem(this._selectedDataItems[e]),t.length&&t.addClass(P)},refresh:function(e){var t,n=this,i=e&&e.action,o="itemchange"===i,r=this.isFiltered();n._mute||(n._deferValueSet=!1,n._fetching?(n._renderItems&&n._renderItems(!0),n._triggerListBound()):(r&&n.focus(0),n._createList(),i||!n._values.length||r||n.options.skipUpdateOnBind||n._emptySearch?(n.bound(!0),n._highlightSelectedItems(),n._triggerListBound()):(n._selectingValue=!0,n.bound(!0),n.value(n._values,!0).done(function(){n._selectingValue=!1,n._triggerListBound()}))),(o||"remove"===i)&&(t=v(n._selectedDataItems,e.items),t.changed.length&&(o?n.trigger("selectedItemChange",{items:t.changed}):n.value(n._getValues(t.unchanged)))),n._fetching=!1)},removeAt:function(e){return this._selectedIndexes.splice(e,1),this._values.splice(e,1),{position:e,dataItem:this._selectedDataItems.splice(e,1)[0]}},setValue:function(e){this._values=i(e)},value:function(n,o){var r,a=this;return n===t?a._values.slice():(null===n&&(n=[]),n=i(n),a._valueDeferred&&"resolved"!==a._valueDeferred.state()||(a._valueDeferred=e.Deferred()),r="multiple"===a.options.selectable&&a.select().length&&n.length,!r&&n.length||a.select(-1),a._values=n,(a.bound()&&!a._mute&&!a._deferValueSet||o)&&a._prefetchByValue(n),a._valueDeferred)},_checkValuesOrder:function(e){if(this._removedAddedIndexes&&this._removedAddedIndexes.length===e.length){var t=this._removedAddedIndexes.slice();return this._removedAddedIndexes=null,t}return e},_prefetchByValue:function(e){var n,i,r,a=this,s=a._dataView,l=a._valueGetter,d=a.options.mapValueTo,c=!1,u=[];for(i=0;i<e.length;i++)for(r=0;r<s.length;r++)n=s[r].item,n&&(c=o(n)?e[i]===n:e[i]===l(n),c&&u.push(s[r].index));return u.length===e.length?(a._values=[],a.select(u),t):("function"==typeof a.options.valueMapper?a.options.valueMapper({value:"multiple"===this.options.selectable?e:e[0],success:function(e){"index"===d?a.mapValueToIndex(e):"dataItem"===d&&a.mapValueToDataItem(e)}}):a.value()[0]?(a._selectingValue=!1,a._triggerListBound()):a.select([-1]),t)},mapValueToIndex:function(e){if(e=e===t||e===-1||null===e?[]:i(e),e.length){var n=this._deselect([]).removed;n.length&&this._triggerChange(n,[])}else e=[-1];this.select(e)},mapValueToDataItem:function(n){var o,r,a,s;if(n=n===t||null===n?[]:i(n),n.length){for(o=e.map(this._selectedDataItems,function(e,t){return{index:t,dataItem:e}}),r=e.map(n,function(e,t){return{index:t,dataItem:e}}),this._selectedDataItems=n,this._selectedIndexes=[],a=0;a<this._selectedDataItems.length;a++)s=this._getElementByDataItem(this._selectedDataItems[a]),this._selectedIndexes.push(this._getIndecies(s)[0]),s.addClass(P);this._triggerChange(o,r),this._valueDeferred&&this._valueDeferred.resolve()}else this.select([-1])},deferredRange:function(t){var n=this.dataSource,i=this.itemCount,o=this._rangesList,r=e.Deferred(),a=[],s=Math.floor(t/i)*i,l=Math.ceil(t/i)*i,d=l===s?[l]:[s,l];return e.each(d,function(t,r){var s,l=r+i,d=o[r];d&&d.end===l?s=d.deferred:(s=e.Deferred(),o[r]={end:l,deferred:s},n._multiplePrefetch(r,i,function(){s.resolve()})),a.push(s)}),e.when.apply(e,a).then(function(){r.resolve()}),r},prefetch:function(t){var n=this,i=this.itemCount,o=!n._promisesList.length;return _(n._activeDeferred)||(n._activeDeferred=e.Deferred(),n._promisesList=[]),e.each(t,function(e,t){n._promisesList.push(n.deferredRange(n._getSkip(t,i)))}),o&&e.when.apply(e,n._promisesList).done(function(){n._promisesList=[],n._activeDeferred.resolve()}),n._activeDeferred},_findDataItem:function(e,t){var n,i;if("group"===this.options.type)for(i=0;i<e.length;i++){if(n=e[i].items,!(n.length<=t))return n[t];t-=n.length}return e[t]},_getRange:function(e,t){return this.dataSource._findRange(e,Math.min(e+t,this.dataSource.total()))},dataItemByIndex:function(t){var n=this,i=n.itemCount,o=n._getSkip(t,i),r=this._getRange(o,i);return n._getRange(o,i).length?("group"===n.options.type&&(b.ui.progress(e(n.wrapper),!0),n.mute(function(){n.dataSource.range(o,i,function(){b.ui.progress(e(n.wrapper),!1)}),r=n.dataSource.view()})),n._findDataItem(r,[t-o])):null},selectedDataItems:function(){return this._selectedDataItems.slice()},scrollWith:function(e){this.content.scrollTop(this.content.scrollTop()+e)},scrollTo:function(e){this.content.scrollTop(e)},scrollToIndex:function(e){this.scrollTo(e*this.options.itemHeight)},focus:function(i){var o,r,a,s,l,d,c=this.options.itemHeight,u=this._optionID,h=!0;if(i===t)return s=this.element.find("."+z),s.length?s:null;if("function"==typeof i)for(a=this.dataSource.flatView(),l=0;l<a.length;l++)if(i(a[l])){i=l;break}return i instanceof Array&&(i=n(i)),isNaN(i)?(o=e(i),r=parseInt(e(o).attr("data-offset-index"),10)):(r=i,o=this._getElementByIndex(r)),r===-1?(this.element.find("."+z).removeClass(z),this._focusedIndex=t,t):(o.length?(o.hasClass(z)&&(h=!1),this._focusedIndex!==t&&(s=this._getElementByIndex(this._focusedIndex),s.removeClass(z).removeAttr("id"),h&&this.trigger(W)),this._focusedIndex=r,o.addClass(z).attr("id",u),d=this._getElementLocation(r),"top"===d?this.scrollTo(r*c):"bottom"===d?this.scrollTo(r*c+c-this._screenHeight):"outScreen"===d&&this.scrollTo(r*c),h&&this.trigger(V)):(this._focusedIndex=r,this.items().removeClass(z),this.scrollToIndex(r)),t)},focusIndex:function(){return this._focusedIndex},focusFirst:function(){this.scrollTo(0),this.focus(0)},focusLast:function(){var e=this.dataSource.total();this.scrollTo(this.heightContainer.offsetHeight),this.focus(e-1)},focusPrev:function(){var e,t=this._focusedIndex;return!isNaN(t)&&t>0?(t-=1,this.focus(t),e=this.focus(),e&&e.hasClass("k-loading-item")&&(t+=1,this.focus(t)),t):(t=this.dataSource.total()-1,this.focus(t),t)},focusNext:function(){var e,t=this._focusedIndex,n=this.dataSource.total()-1;return!isNaN(t)&&t<n?(t+=1,this.focus(t),e=this.focus(),e&&e.hasClass("k-loading-item")&&(t-=1,this.focus(t)),t):(t=0,this.focus(t),t)},_triggerChange:function(e,t){e=e||[],t=t||[],(e.length||t.length)&&this.trigger(L,{removed:e,added:t})},select:function(i){var o,r,a,s,l,d,c=this,u="multiple"!==c.options.selectable,h=_(c._activeDeferred),p=this.isFiltered(),f=[];return i===t?c._selectedIndexes.slice():(c._selectDeferred&&"resolved"!==c._selectDeferred.state()||(c._selectDeferred=e.Deferred()),o=c._getIndecies(i),a=u&&!p&&n(o)===n(this._selectedIndexes),f=c._deselectCurrentValues(o),f.length||!o.length||a?(c._triggerChange(f),c._valueDeferred&&c._valueDeferred.resolve().promise(),c._selectDeferred.resolve().promise()):(1===o.length&&o[0]===-1&&(o=[]),r=o,l=c._deselect(o),f=l.removed,o=l.indices,u&&(h=!1,o.length&&(o=[n(o)])),d=function(){var e=c._select(o);(r.length===o.length||u)&&c.focus(o),c._triggerChange(f,e),c._valueDeferred&&c._valueDeferred.resolve(),c._selectDeferred.resolve()},s=c.prefetch(o),h||(s?s.done(d):d()),c._selectDeferred.promise()))},bound:function(e){return e===t?this._listCreated:(this._listCreated=e,t)},mute:function(e){this._mute=!0,x(e(),this),this._mute=!1},setDSFilter:function(t){this._lastDSFilter=e.extend({},t)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!b.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},skipUpdate:e.noop,_getElementByIndex:function(t){return this.items().filter(function(n,i){return t===parseInt(e(i).attr("data-offset-index"),10)})},_getElementByDataItem:function(t){var n,i,r,a=this._dataView,s=this._valueGetter;for(r=0;r<a.length;r++)if(i=a[r].item&&o(a[r].item)?a[r].item===t:a[r].item&&t&&s(a[r].item)==s(t)){n=a[r];break}return n?this._getElementByIndex(n.index):e()},_clean:function(){this.result=t,this._lastScrollTop=t,this._skip=t,e(this.heightContainer).remove(),this.heightContainer=t,this.element.empty()},_height:function(){var e=!!this.dataSource.view().length,t=this.options.height,n=this.options.itemHeight,i=this.dataSource.total();return e?t/n>i&&(t=i*n):t=0,t},setScreenHeight:function(){var e=this._height();this.content.height(e),this._screenHeight=e},screenHeight:function(){return this._screenHeight},_getElementLocation:function(e){var t,n=this.content.scrollTop(),i=this._screenHeight,o=this.options.itemHeight,r=e*o,a=r+o,s=n+i;return t=r===n-o||a>n&&r<n?"top":r===s||r<s&&s<a?"bottom":r>=n&&r<=n+(i-o)?"inScreen":"outScreen"},_templates:function(){var e,t,n,i,o=this.options,r={template:o.template,placeholderTemplate:o.placeholderTemplate,groupTemplate:o.groupTemplate,fixedGroupTemplate:o.fixedGroupTemplate};if(o.columns)for(e=0;e<o.columns.length;e++)t=o.columns[e],n=t.field?""+t.field:"text",r["column"+e]=t.template||"#: "+n+"#";for(i in r)"function"!=typeof r[i]&&(r[i]=b.template(r[i]||""));this.templates=r},_generateItems:function(e,t){for(var n,i=[],o=this.options.itemHeight+"px";t-- >0;)n=document.createElement("li"),n.tabIndex=-1,n.className=I+" "+M,n.setAttribute("role","option"),n.style.height=o,n.style.minHeight=o,e.appendChild(n),i.push(n);return i},_saveInitialRanges:function(){var t,n=this.dataSource._ranges,i=e.Deferred();for(i.resolve(),this._rangesList={},t=0;t<n.length;t++)this._rangesList[n[t].start]={end:n[t].end,deferred:i}},_createList:function(){var t=this,n=t.content.get(0),i=t.options,o=t.dataSource;t.bound()&&t._clean(),t._saveInitialRanges(),t._buildValueGetter(),t.setScreenHeight(),t.itemCount=r(t._screenHeight,i.listScreens,i.itemHeight),t.itemCount>o.total()&&(t.itemCount=o.total()),t._items=t._generateItems(t.element[0],t.itemCount),t._setHeight(i.itemHeight*o.total()),t.options.type=(o.group()||[]).length?"group":"flat","flat"===t.options.type?t.header.hide():t.header.show(),t.getter=t._getter(function(){t._renderItems(!0)}),t._onScroll=function(e,n){var i=t._listItems(t.getter);return t._fixedHeader(e,i(e,n))},t._renderItems=t._whenChanged(c(n,t._onScroll),u(t._reorderList(t._items,e.proxy(m,t)))),t._renderItems(),t._calculateGroupPadding(t._screenHeight),t._calculateColumnsHeaderPadding()},_setHeight:function(e){var t,n,i=this.heightContainer;if(i?t=i.offsetHeight:i=this.heightContainer=a(this.content[0],R),e!==t)for(i.innerHTML="";e>0;)n=Math.min(e,25e4),a(i).style.height=n+"px",e-=n},_getter:function(){var e=null,t=this.dataSource,n=t.skip(),i=this.options.type,o=this.itemCount,r={};return t.pageSize()<o&&this.mute(function(){t.pageSize(o)}),function(a,s){var l,d,c,u,h,p,f,m,g=this;if(t.inRange(s,o)){if(n!==s&&this.mute(function(){t.range(s,o),n=s}),"group"===i){if(!r[s])for(d=r[s]=[],c=t.view(),u=0,h=c.length;u<h;u++)for(p=c[u],f=0,m=p.items.length;f<m;f++)d.push({item:p.items[f],group:p.value});l=r[s][a-s]}else l=t.view()[a-s];return l}return e!==s&&(e=s,n=s,g._getterDeferred&&g._getterDeferred.reject(),g._getterDeferred=g.deferredRange(s),g._getterDeferred.then(function(){var e=g._indexConstraint(g.content[0].scrollTop);g._getterDeferred=null,s<=e&&e<=s+o&&(g._fetching=!0,t.range(s,o))})),null}},_fixedHeader:function(e,t){var n,i,o=this.currentVisibleGroup,r=this.options.itemHeight,a=Math.floor((e-t.top)/r),s=t.items[a];return s&&s.item&&(n=s.group,n!==o&&(i=n||"",this.header.html(this.templates.fixedGroupTemplate(i)),this.currentVisibleGroup=n)),t},_itemMapper:function(e,t,n){var i,r,a=this.options.type,s=this.options.itemHeight,l=this._focusedIndex,d=!1,c=!1,u=!1,h=null,p=!1,f=this._valueGetter;if("group"===a&&(e&&(u=0===t||this._currentGroup!==!1&&this._currentGroup!==e.group,this._currentGroup=e.group),h=e?e.group:null,e=e?e.item:null),"dataItem"===this.options.mapValueTo&&this._selectedDataItems.length&&e){for(i=0;i<this._selectedDataItems.length;i++)if(p=f(this._selectedDataItems[i])===f(e)){d=!0;break}}else if(!this.isFiltered()&&n.length&&e)for(r=0;r<n.length;r++)if(p=o(e)?n[r]===e:n[r]===f(e)){n.splice(r,1),d=!0;break}return l===t&&(c=!0),{item:e?e:null,group:h,newGroup:u,selected:d,current:c,index:t,top:t*s}},_range:function(e){var t,n,i,o=this.itemCount,r=this._values.slice(),a=[];for(this._view={},this._currentGroup=!1,n=e,i=e+o;n<i;n++)t=this._itemMapper(this.getter(n,e),n,r),a[a.length-1]&&(a[a.length-1].isLastGroupedItem=t.newGroup),a.push(t),this._view[t.index]=t;return this._dataView=a,a},_getDataItemsCollection:function(e,t){var n=this._range(this._listIndex(e,t));return{index:n.length?n[0].index:0,top:n.length?n[0].top:0,items:n}},_listItems:function(){var t=this._screenHeight,n=this.options,i=d(n,t);return e.proxy(function(e,t){var n=this.result,o=this._lastScrollTop;return!t&&n&&i(n,e,o)||(n=this._getDataItemsCollection(e,o)),this._lastScrollTop=e,this.result=n,n},this)},_whenChanged:function(e,t){var n;return function(i){var o=e(i);o!==n&&(n=o,t(o,i))}},_reorderList:function(t,n){var i=this,o=t.length,r=-(1/0);return n=e.proxy(p(n,this.templates),this),function(e,a,s){var l,d,c=a-r;s||Math.abs(c)>=o?(l=t,d=e):(l=f(t,c),d=c>0?e.slice(-c):e.slice(0,-c)),n(l,d,i.bound()),r=a}},_bufferSizes:function(){var e=this.options;return l(this._screenHeight,e.listScreens,e.oppositeBuffer)},_indexConstraint:function(e){var t=this.itemCount,n=this.options.itemHeight,i=this.dataSource.total();return Math.min(Math.max(i-t,0),Math.max(0,Math.floor(e/n)))},_listIndex:function(e,t){var n,i=this._bufferSizes();return n=e-(e>t?i.down:i.up),this._indexConstraint(n)},_selectable:function(){this.options.selectable&&(this._selectProxy=e.proxy(this,"_clickHandler"),this.element.on(H+U,"."+I,this._selectProxy))},getElementIndex:function(e){return e instanceof jQuery?parseInt(e.attr("data-offset-index"),10):t},_getIndecies:function(e){var t,n,i,o=[];if("function"==typeof e)for(t=this.dataSource.flatView(),n=0;n<t.length;n++)if(e(t[n])){o.push(n);break}return"number"==typeof e&&o.push(e),i=this.getElementIndex(e),isNaN(i)||o.push(i),e instanceof Array&&(o=e),o},_deselect:function(n){var i,r,a,s,l,d,c,u=[],h=this._selectedIndexes,p=this._selectedDataItems,f=0,m=this.options.selectable,g=0,v=this._valueGetter,_=null;if(n=n.slice(),m!==!0&&n.length){if("multiple"===m)for(d=0;d<n.length;d++){if(_=null,f=e.inArray(n[d],h),r=this.dataItemByIndex(n[d]),f===-1&&r)for(c=0;c<p.length;c++)s=o(r)?p[c]===r:v(p[c])===v(r),s&&(a=this._getElementByIndex(n[d]),_=this._deselectSingleItem(a,c,n[d],g));else i=h[f],i!==t&&(a=this._getElementByIndex(i),_=this._deselectSingleItem(a,f,i,g));_&&(n.splice(d,1),u.push(_),g++,d--)}}else{for(l=0;l<h.length;l++)h[l]!==t?this._getElementByIndex(h[l]).removeClass(P):p[l]&&this._getElementByDataItem(p[l]).removeClass(P),u.push({index:h[l],position:l,dataItem:p[l]});this._values=[],this._selectedDataItems=[],this._selectedIndexes=[]}return{indices:n,removed:u}},_deselectSingleItem:function(e,t,n,i){var o;if(e.hasClass("k-state-selected"))return e.removeClass(P),this._values.splice(t,1),this._selectedIndexes.splice(t,1),o=this._selectedDataItems.splice(t,1)[0],{index:n,position:t+i,dataItem:o}},_deselectCurrentValues:function(t){var n,i,o,r,a=this.element[0].children,s=this._values,l=[],d=0;if("multiple"!==this.options.selectable||!this.isFiltered())return[];if(t[0]===-1)return e(a).removeClass("k-state-selected"),l=e.map(this._selectedDataItems.slice(0),function(e,t){return{dataItem:e,position:t}}),this._selectedIndexes=[],this._selectedDataItems=[],this._values=[],l;for(;d<t.length;d++){for(o=-1,i=t[d],this.dataItemByIndex(i)&&(n=this._valueGetter(this.dataItemByIndex(i))),r=0;r<s.length;r++)if(n==s[r]){o=r;break}o>-1&&(l.push(this.removeAt(o)),e(a[i]).removeClass("k-state-selected"))}return l},_getSkip:function(e,t){var n=e<t?1:Math.floor(e/t)+1;return(n-1)*t},_select:function(t){var n,i,r=this,a="multiple"!==this.options.selectable,s=this.dataSource,l=this.itemCount,d=this._valueGetter,c=[];return a&&(r._selectedIndexes=[],r._selectedDataItems=[],r._values=[]),i=s.skip(),e.each(t,function(e,t){var a=r._getSkip(t,l);r.mute(function(){s.range(a,l),n=r._findDataItem(s.view(),[t-a]),r._selectedIndexes.push(t),r._selectedDataItems.push(n),r._values.push(o(n)?n:d(n)),c.push({index:t,dataItem:n}),r._getElementByIndex(t).addClass(P),s.range(i,l)})}),r._values=r._checkValuesOrder(r._values),c},_clickHandler:function(t){var n=e(t.currentTarget);!t.isDefaultPrevented()&&n.attr("data-uid")&&this.trigger(H,{item:n})},_buildValueGetter:function(){this._valueGetter=b.getter(this.options.dataValueField)},_calculateGroupPadding:function(e){var t=this.items().first(),n=this.header,i=0;n[0]&&"none"!==n[0].style.display&&("auto"!==e&&(i=b.support.scrollbar()),i+=parseFloat(t.css("border-right-width"),10)+parseFloat(t.children(".k-group").css("right"),10),n.css("padding-right",i))},_calculateColumnsHeaderPadding:function(){var e,t,n,i;this.options.columns&&this.options.columns.length&&(e=b.support.isRtl(this.wrapper),t=b.support.scrollbar(),n=this.content.parent().parent().find(".k-grid-header"),i=this.dataSource.total(),n.css(e?"padding-left":"padding-right",i?t:0))}});b.ui.VirtualList=j,b.ui.plugin(j)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.autocomplete.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],e)}(function(){return function(e,t){function n(e,t,n){return n?t.substring(0,e).split(n).length-1:0}function i(e,t,i){return t.split(i)[n(e,t,i)]}function o(e,t,i,o,r){var a=t.split(o);return a.splice(n(e,t,o),1,i),o&&""!==a[a.length-1]&&a.push(""),a.join(r)}var r=window.kendo,a=r.support,s=r.caret,l=r._activeElement,d=a.placeholder,c=r.ui,u=c.List,h=r.keys,p=r.data.DataSource,f="aria-disabled",m="aria-readonly",g="change",v="k-state-default",_="disabled",b="readonly",w="k-state-focused",k="k-state-selected",y="k-state-disabled",x="off",C="k-state-hover",S=".kendoAutoComplete",T="mouseenter"+S+" mouseleave"+S,D=e.proxy,A=u.extend({init:function(t,n){var i,o,a=this;a.ns=S,n=e.isArray(n)?{dataSource:n}:n,u.fn.init.call(a,t,n),t=a.element,n=a.options,n.placeholder=n.placeholder||t.attr("placeholder"),d&&t.attr("placeholder",n.placeholder),a._wrapper(),a._loader(),a._clearButton(),a._dataSource(),a._ignoreCase(),t[0].type="text",i=a.wrapper,a._popup(),t.addClass("k-input").on("keydown"+S,D(a._keydown,a)).on("keypress"+S,D(a._keypress,a)).on("input"+S,D(a._search,a)).on("paste"+S,D(a._search,a)).on("focus"+S,function(){a._prev=a._accessor(),a._oldText=a._prev,a._placeholder(!1),i.addClass(w)}).on("focusout"+S,function(){a._change(),a._placeholder(),a.close(),i.removeClass(w)}).attr({autocomplete:x,role:"textbox","aria-haspopup":!0}),a._clear.on("click"+S+" touchend"+S,D(a._clearValue,a)),a._enable(),a._old=a._accessor(),t[0].id&&t.attr("aria-owns",a.ul[0].id),a._aria(),a._placeholder(),a._initList(),o=e(a.element).parents("fieldset").is(":disabled"),o&&a.enable(!1),a.listView.bind("click",function(e){e.preventDefault()}),a._resetFocusItemHandler=e.proxy(a._resetFocusItem,a),r.notify(a),a._toggleCloseVisibility()},options:{name:"AutoComplete",enabled:!0,suggest:!1,template:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",dataTextField:"",minLength:1,enforceMinLength:!1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{},virtual:!1,value:null,clearButton:!0,autoWidth:!1,popup:null},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=D(e._showBusy,e),e._errorHandler=D(e._hideBusy,e)),e.dataSource=p.create(e.options.dataSource).bind("progress",e._progressHandler).bind("error",e._errorHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.listView.setDataSource(this.dataSource)},events:["open","close",g,"select","filtering","dataBinding","dataBound"],setOptions:function(e){var t=this._listOptions(e);u.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria(),this._clearButton()},_listOptions:function(t){var n=u.fn._listOptions.call(this,e.extend(t,{skipUpdateOnBind:!0}));return n.dataValueField=n.dataTextField,n.selectedItemChange=null,n},_editable:function(e){var t=this,n=t.element,i=t.wrapper.off(S),o=e.readonly,r=e.disable;o||r?(i.addClass(r?y:v).removeClass(r?v:y),n.attr(_,r).attr(b,o).attr(f,r).attr(m,o)):(i.addClass(v).removeClass(y).on(T,t._toggleHover),n.removeAttr(_).removeAttr(b).attr(f,!1).attr(m,!1))},close:function(){var e=this,t=e.listView.focus();t&&t.removeClass(k),e.popup.close()},destroy:function(){var e=this;e.element.off(S),e._clear.off(S),e.wrapper.off(S),u.fn.destroy.call(e)},refresh:function(){this.listView.refresh()},select:function(e){this._select(e)},search:function(t){var n,o=this,r=o.options,a=r.ignoreCase,l=o._separator(),d=o.dataSource.options.accentFoldingFiltering;t=t||o._accessor(),clearTimeout(o._typingTimeout),l&&(t=i(s(o.element)[0],t,l)),n=t.length,(!r.enforceMinLength&&!n||n>=r.minLength)&&(o._open=!0,o._mute(function(){this.listView.value([])}),o._filterSource({value:a?d?t.toLocaleLowerCase(d):t.toLowerCase():t,operator:r.filter,field:r.dataTextField,ignoreCase:a}),o.one("close",e.proxy(o._unifySeparators,o))),o._toggleCloseVisibility()},suggest:function(e){var i,o=this,r=o._last,a=o._accessor(),d=o.element[0],c=s(d)[0],p=o._separator(),f=a.split(p),m=n(c,a,p),g=c,v=o.dataSource.options.accentFoldingFiltering;return r==h.BACKSPACE||r==h.DELETE?(o._last=t,t):(e=e||"","string"!=typeof e&&(e[0]&&(e=o.dataSource.view()[u.inArray(e[0],o.ul[0])]),e=e?o._text(e):""),c<=0&&(c=(v?a.toLocaleLowerCase(v):a.toLowerCase()).indexOf(v?e.toLocaleLowerCase(v):e.toLowerCase())+1),i=a.substring(0,c).lastIndexOf(p),i=i>-1?c-(i+p.length):c,a=f[m].substring(0,i),e&&(e=""+e,i=(v?e.toLocaleLowerCase(v):e.toLowerCase()).indexOf(v?a.toLocaleLowerCase(v):a.toLowerCase()),i>-1&&(e=e.substring(i+a.length),g=c+e.length,a+=e),p&&""!==f[f.length-1]&&f.push("")),f[m]=a,o._accessor(f.join(p||"")),d===l()&&s(d,c,g),t)},value:function(e){return e===t?this._accessor():(this.listView.value(e),this._accessor(e),this._old=this._accessor(),this._oldText=this._accessor(),this._toggleCloseVisibility(),t)},_click:function(e){var n=e.item,i=this,o=i.element,r=i.listView.dataItemByIndex(i.listView.getElementIndex(n));return e.preventDefault(),i._active=!0,i.trigger("select",{dataItem:r,item:n})?(i.close(),t):(i._oldText=o.val(),i._select(n).done(function(){i._blur(),s(o,o.val().length)}),t)},_clearText:e.noop,_resetFocusItem:function(){var e=this.options.highlightFirst?0:-1;this.options.virtual&&this.listView.scrollTo(0),this.listView.focus(e)},_listBound:function(){var e,n=this,i=n.popup,o=n.options,r=n.dataSource.flatView(),a=r.length,s=n.dataSource._group.length,d=n.element[0]===l();n._renderFooter(),n._renderNoData(),n._toggleNoData(!a),n._toggleHeader(!!s&&!!a),n._resizePopup(),i.position(),a&&o.suggest&&d&&n._inputValue()&&n.suggest(r[0]),n._open&&(n._open=!1,e=n._allowOpening()?"open":"close",n._typingTimeout&&!d&&(e="close"),a&&(n._resetFocusItem(),o.virtual&&n.popup.unbind("activate",n._resetFocusItemHandler).one("activate",n._resetFocusItemHandler)),i[e](),n._typingTimeout=t),n._touchScroller&&n._touchScroller.reset(),n._hideBusy(),n._makeUnselectable(),n.trigger("dataBound")},_mute:function(e){this._muted=!0,e.call(this),this._muted=!1},_listChange:function(){var e=this._active||this.element[0]===l();e&&!this._muted&&this._selectValue(this.listView.selectedDataItems()[0])},_selectValue:function(e){var t=this._separator(),n="";e&&(n=this._text(e)),null===n&&(n=""),t&&(n=o(s(this.element)[0],this._accessor(),n,t,this._defaultSeparator())),this._prev=n,this._accessor(n),this._placeholder()},_unifySeparators:function(){return this._accessor(this.value().split(this._separator()).join(this._defaultSeparator())),this},_preselect:function(e,t){this._inputValue(t),this._accessor(e),this._old=this.oldText=this._accessor(),this.listView.setValue(e),this._placeholder()},_change:function(){var e=this,t=e._unifySeparators().value(),n=t!==u.unifyType(e._old,typeof t),i=n&&!e._typing,o=e._oldText!==t;e._old=t,e._oldText=t,(i||o)&&e.element.trigger(g),n&&e.trigger(g),e.typing=!1,e._toggleCloseVisibility()},_accessor:function(e){var n=this,i=n.element[0];return e===t?(e=i.value,i.className.indexOf("k-readonly")>-1&&e===n.options.placeholder?"":e):(i.value=null===e?"":e,n._placeholder(),t)},_keydown:function(e){var t,n,i=this,o=e.keyCode,r=i.listView,a=i.popup.visible(),s=r.focus();if(i._last=o,o===h.DOWN)a?this._move(s?"focusNext":"focusFirst"):i.value()&&i._filterSource({value:i.ignoreCase?i.value().toLowerCase():i.value(),operator:i.options.filter,field:i.options.dataTextField,ignoreCase:i.ignoreCase}).done(function(){i._allowOpening()&&(i._resetFocusItem(),i.popup.open())}),e.preventDefault();else if(o===h.UP)a&&this._move(s?"focusPrev":"focusLast"),e.preventDefault();else if(o===h.HOME)this._move("focusFirst");else if(o===h.END)this._move("focusLast");else if(o===h.ENTER||o===h.TAB){if(o===h.ENTER&&a&&e.preventDefault(),a&&s){if(t=r.dataItemByIndex(r.getElementIndex(s)),i.trigger("select",{dataItem:t,item:s}))return;this._select(s)}this._blur()}else o===h.ESC?(a?e.preventDefault():i._clearValue(),i.close()):!i.popup.visible()||o!==h.PAGEDOWN&&o!==h.PAGEUP?(i.popup._hovered=!0,i._search()):(e.preventDefault(),n=o===h.PAGEDOWN?1:-1,r.scrollWith(n*r.screenHeight()))},_keypress:function(){this._oldText=this.element.val(),this._typing=!0},_move:function(e){this.listView[e](),this.options.suggest&&this.suggest(this.listView.focus())},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._loading.hide(),e.element.attr("aria-busy",!1),e._busy=null,e._showClear()},_showBusy:function(){var e=this;e._busy||(e._busy=setTimeout(function(){e.element.attr("aria-busy",!0),e._loading.show(),e._hideClear()},100))},_placeholder:function(e){if(!d){var n,i=this,o=i.element,r=i.options.placeholder;if(r){if(n=o.val(),e===t&&(e=!n),e||(r=n!==r?n:""),n===i._old&&!e)return;o.toggleClass("k-readonly",e).val(r),r||o[0]!==document.activeElement||s(o[0],0,0)}}},_separator:function(){var e=this.options.separator;return e instanceof Array?RegExp(e.join("|"),"gi"):e},_defaultSeparator:function(){var e=this.options.separator;return e instanceof Array?e[0]:e},_inputValue:function(){return this.element.val()},_search:function(){
var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){e._prev!==e._accessor()&&(e._prev=e._accessor(),e.search())},e.options.delay)},_select:function(e){var t=this;return t._active=!0,t.listView.select(e).done(function(){t._active=!1})},_loader:function(){this._loading=e('<span class="k-icon k-i-loading" style="display:none"></span>').insertAfter(this.element)},_clearButton:function(){u.fn._clearButton.call(this),this.options.clearButton&&(this._clear.insertAfter(this.element),this.wrapper.addClass("k-autocomplete-clearable"))},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_toggleCloseVisibility:function(){this.value()?this._showClear():this._hideClear()},_wrapper:function(){var t,n=this,i=n.element,o=i[0];t=i.parent(),t.is("span.k-widget")||(t=i.wrap("<span />").parent()),t.attr("tabindex",-1),t.attr("role","presentation"),t[0].style.cssText=o.style.cssText,i.css({width:"",height:o.style.height}),n._focused=n.element,n.wrapper=t.addClass("k-widget k-autocomplete").addClass(o.className).removeClass("input-validation-error"),n._inputWrapper=e(t[0])},_clearValue:function(){u.fn._clearValue.call(this),this.element.focus()}});c.plugin(A)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dropdownlist.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],e)}(function(){return function(e,t){function n(e,t,n){for(var i,o=0,r=t.length-1;o<r;++o)i=t[o],i in e||(e[i]={}),e=e[i];e[t[r]]=n}function i(e,t){return e>=t&&(e-=t),e}function o(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}var r=window.kendo,a=r.ui,s=a.List,l=a.Select,d=r.support,c=r._activeElement,u=r.data.ObservableObject,h=r.keys,p=".kendoDropDownList",f=p+"FocusEvent",m="disabled",g="readonly",v="change",_="k-state-focused",b="k-state-default",w="k-state-disabled",k="aria-disabled",y="aria-readonly",x="click"+p+" touchend"+p,C="mouseenter"+p+" mouseleave"+p,S="tabindex",T="filter",D="accept",A="The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel",E=e.proxy,I=l.extend({init:function(n,i){var o,a,s,d=this,c=i&&i.index;d.ns=p,i=e.isArray(i)?{dataSource:i}:i,l.fn.init.call(d,n,i),i=d.options,n=d.element.on("focus"+p,E(d._focusHandler,d)),d._focusInputHandler=e.proxy(d._focusInput,d),d.optionLabel=e(),d._optionLabel(),d._inputTemplate(),d._reset(),d._prev="",d._word="",d._wrapper(),d._tabindex(),d.wrapper.data(S,d.wrapper.attr(S)),d._span(),d._popup(),d._mobile(),d._dataSource(),d._ignoreCase(),d._filterHeader(),d._aria(),d.wrapper.attr("aria-live","polite"),d._enable(),d._attachFocusHandlers(),d._oldIndex=d.selectedIndex=-1,c!==t&&(i.index=c),d._initialIndex=i.index,d.requireValueMapper(d.options),d._initList(),d._cascade(),d.one("set",function(e){!e.sender.listView.bound()&&d.hasOptionLabel()&&d._textAccessor(d._optionLabelText())}),i.autoBind?d.dataSource.fetch():d.selectedIndex===-1&&(a=i.text||"",a||(o=i.optionLabel,o&&0===i.index?a=o:d._isSelect&&(a=n.children(":selected").text())),d._textAccessor(a)),s=e(d.element).parents("fieldset").is(":disabled"),s&&d.enable(!1),d.listView.bind("click",function(e){e.preventDefault()}),r.notify(d)},options:{name:"DropDownList",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",cascadeFromField:"",cascadeFromParentField:"",ignoreCase:!0,animation:{},filter:"none",minLength:1,enforceMinLength:!1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",autoWidth:!1,popup:null},events:["open","close",v,"select","filtering","dataBinding","dataBound","cascade","set","kendoKeydown"],setOptions:function(e){l.fn.setOptions.call(this,e),this.listView.setOptions(this._listOptions(e)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var e=this;l.fn.destroy.call(e),e.wrapper.off(p),e.wrapper.off(f),e.element.off(p),e._inputWrapper.off(p),e._arrow.off(),e._arrow=null,e._arrowIcon=null,e.optionLabel.off(),e.filterInput&&e.filterInput.off(f)},open:function(){var e=this,t=!!e.dataSource.filter()&&e.dataSource.filter().filters.length>0;e.popup.visible()||(e.listView.bound()&&e._state!==D?e._allowOpening()&&(e._focusFilter=!0,e.popup.one("activate",e._focusInputHandler),e.popup._hovered=!0,e.popup.open(),e._resizeFilterInput(),e._focusItem()):(e._open=!0,e._state="rebind",e.filterInput&&(e.filterInput.val(""),e._prev=""),e.filterInput&&1!==e.options.minLength&&!t?(e.refresh(),e.popup.one("activate",e._focusInputHandler),e.popup.open(),e._resizeFilterInput()):e._filterSource()))},_focusInput:function(){this._focusElement(this.filterInput)},_resizeFilterInput:function(){var e,t,n=this.filterInput,i=this._prevent;n&&(e=this.filterInput[0]===c(),t=r.caret(this.filterInput[0])[0],this._prevent=!0,n.css("display","none").css("width",this.popup.element.css("width")).css("display","inline-block"),e&&(n.focus(),r.caret(n[0],t)),this._prevent=i)},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||l.fn._allowOpening.call(this)},toggle:function(e){this._toggle(e,!0)},current:function(e){var n;return e===t?(n=this.listView.focus(),!n&&0===this.selectedIndex&&this.hasOptionLabel()?this.optionLabel:n):(this._focus(e),t)},dataItem:function(n){var i=this,o=null;if(null===n)return n;if(n===t)o=i.listView.selectedDataItems()[0];else{if("number"!=typeof n){if(i.options.virtual)return i.dataSource.getByUid(e(n).data("uid"));n=n.hasClass("k-list-optionlabel")?-1:e(i.items()).index(n)}else i.hasOptionLabel()&&(n-=1);o=i.dataSource.flatView()[n]}return o||(o=i._optionLabelDataItem()),o},refresh:function(){this.listView.refresh()},text:function(e){var n,i=this,o=i.options.ignoreCase;return e=null===e?"":e,e===t?i._textAccessor():"string"!=typeof e?(i._textAccessor(e),t):(n=o?e.toLowerCase():e,i._select(function(e){return e=i._text(e),o&&(e=(e+"").toLowerCase()),e===n}).done(function(){i._textAccessor(i.dataItem()||e)}),t)},_clearFilter:function(){e(this.filterInput).val(""),l.fn._clearFilter.call(this)},value:function(e){var n=this,i=n.listView,o=n.dataSource;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?"":e):(n.requireValueMapper(n.options,e),!e&&n.hasOptionLabel()||(n._initialIndex=null),this.trigger("set",{value:e}),n._request&&n.options.cascadeFrom&&n.listView.bound()?(n._valueSetter&&o.unbind(v,n._valueSetter),n._valueSetter=E(function(){n.value(e)},n),o.one(v,n._valueSetter),t):(n._isFilterEnabled()&&i.bound()&&i.isFiltered()?n._clearFilter():n._fetchData(),i.value(e).done(function(){n._old=n._valueBeforeCascade=n._accessor(),n._oldIndex=n.selectedIndex}),t))},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var n=this,i=n.options,o=i.optionLabel,a=i.optionLabelTemplate;return o?(a||(a="#:",a+="string"==typeof o?"data":r.expr(i.dataTextField,"data"),a+="#"),"function"!=typeof a&&(a=r.template(a)),n.optionLabelTemplate=a,n.hasOptionLabel()||(n.optionLabel=e('<div class="k-list-optionlabel"></div>').prependTo(n.list)),n.optionLabel.html(a(o)).off().on(x,E(n._click,n)).on(C,n._toggleHover),n.angular("compile",function(){return{elements:n.optionLabel,data:[{dataItem:n._optionLabelDataItem()}]}}),t):(n.optionLabel.off().remove(),n.optionLabel=e(),t)},_optionLabelText:function(){var e=this.options.optionLabel;return"string"==typeof e?e:this._text(e)},_optionLabelDataItem:function(){var n=this,i=n.options.optionLabel;return n.hasOptionLabel()?e.isPlainObject(i)?new u(i):n._assignInstance(n._optionLabelText(),""):t},_buildOptions:function(e){var n,i,o,r=this;r._isSelect&&(n=r.listView.value()[0],i=r._optionLabelDataItem(),o=i&&r._value(i),n!==t&&null!==n||(n=""),i&&(o!==t&&null!==o||(o=""),i='<option value="'+o+'">'+r._text(i)+"</option>"),r._options(e,i,n),n!==s.unifyType(r._accessor(),typeof n)&&(r._customOption=null,r._custom(n)))},_listBound:function(){var e,t=this,n=t._initialIndex,i=t._state===T,o=t.dataSource.flatView();t._presetValue=!1,t._renderFooter(),t._renderNoData(),t._toggleNoData(!o.length),t._resizePopup(!0),t.popup.position(),t._buildOptions(o),t._makeUnselectable(),i||(t._open&&t.toggle(t._allowOpening()),t._open=!1,t._fetch||(o.length?(!t.listView.value().length&&n>-1&&null!==n&&t.select(n),t._initialIndex=null,e=t.listView.selectedDataItems()[0],e&&t.text()!==t._text(e)&&t._selectValue(e)):t._textAccessor()!==t._optionLabelText()&&(t.listView.value(""),t._selectValue(null),t._oldIndex=t.selectedIndex))),t._hideBusy(),t.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&this._oldIndex===-1)&&(this._oldIndex=this.selectedIndex)},_filterPaste:function(){this._search()},_attachFocusHandlers:function(){var e=this,t=e.wrapper;t.on("focusin"+f,E(e._focusinHandler,e)).on("focusout"+f,E(e._focusoutHandler,e)),e.filterInput&&e.filterInput.on("focusin"+f,E(e._focusinHandler,e)).on("focusout"+f,E(e._focusoutHandler,e))},_focusHandler:function(){this.wrapper.focus()},_focusinHandler:function(){this._inputWrapper.addClass(_),this._prevent=!1},_focusoutHandler:function(){var e=this,t=window.self!==window.top;e._prevent||(clearTimeout(e._typingTimeout),d.mobileOS.ios&&t?e._change():e._blur(),e._inputWrapper.removeClass(_),e._prevent=!0,e._open=!1,e.element.blur())},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(e){e.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._prevent=!1,this._toggle()},_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly,a=t.wrapper.add(t.filterInput).off(p),s=t._inputWrapper.off(C);o||i?i?(a.removeAttr(S),s.addClass(w).removeClass(b)):s.addClass(b).removeClass(w):(n.removeAttr(m).removeAttr(g),s.addClass(b).removeClass(w).on(C,t._toggleHover),a.attr(S,a.data(S)).attr(k,!1).attr(y,!1).on("keydown"+p,t,E(t._keydown,t)).on(r.support.mousedown+p,E(t._wrapperMousedown,t)).on("paste"+p,E(t._filterPaste,t)),t.wrapper.on("click"+p,E(t._wrapperClick,t)),t.filterInput?a.on("input"+p,E(t._search,t)):a.on("keypress"+p,E(t._keypress,t))),n.attr(m,i).attr(g,o),a.attr(k,i).attr(y,o)},_keydown:function(e){var n,i,o,r=this,a=e.keyCode,s=e.altKey,l=r.popup.visible();if(r.filterInput&&(n=r.filterInput[0]===c()),a===h.LEFT?(a=h.UP,i=!0):a===h.RIGHT&&(a=h.DOWN,i=!0),!i||!n){if(e.keyCode=a,(s&&a===h.UP||a===h.ESC)&&r._focusElement(r.wrapper),r._state===T&&a===h.ESC&&(r._clearFilter(),r._open=!1,r._state=D),a===h.ENTER&&r._typingTimeout&&r.filterInput&&l)return e.preventDefault(),t;if(a!==h.SPACEBAR||n||(r.toggle(!l),e.preventDefault()),i=r._move(e),!i){if((!l||!r.filterInput)&&(o=r._focus(),a===h.HOME?(i=!0,r._firstItem()):a===h.END&&(i=!0,r._lastItem()),i)){if(r.trigger("select",{dataItem:r._getElementDataItem(r._focus()),item:r._focus()}))return r._focus(o),t;r._select(r._focus(),!0).done(function(){l||r._blur()}),e.preventDefault()}s||i||!r.filterInput||r._search()}}},_matchText:function(e,n){var i=this.options.ignoreCase;return e!==t&&null!==e&&(e+="",i&&(e=e.toLowerCase()),0===e.indexOf(n))},_shuffleData:function(e,t){var n=this._optionLabelDataItem();return n&&(e=[n].concat(e)),e.slice(t).concat(e.slice(0,t))},_selectNext:function(){var e,t,n,r=this,a=r.dataSource.flatView(),s=a.length+(r.hasOptionLabel()?1:0),l=o(r._word,r._last),d=r.selectedIndex;for(d===-1?d=0:(d+=l?1:0,d=i(d,s)),a=a.toJSON?a.toJSON():a.slice(),a=r._shuffleData(a,d),n=0;n<s&&(t=r._text(a[n]),!l||!r._matchText(t,r._last))&&!r._matchText(t,r._word);n++);n!==s&&(e=r._focus(),r._select(i(d+n,s)).done(function(){var t=function(){r.popup.visible()||r._change()};r.trigger("select",{dataItem:r._getElementDataItem(r._focus()),item:r._focus()})?r._select(e).done(t):t()}))},_keypress:function(e){var t,n=this;0!==e.which&&e.keyCode!==r.keys.ENTER&&(t=String.fromCharCode(e.charCode||e.keyCode),n.options.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n._word+=t,n._last=t,n._search())},_popupOpen:function(){var e=this.popup;e.wrapper=r.wrap(e.element),e.element.closest(".km-root")[0]&&(e.wrapper.addClass("km-popup km-widget"),this.wrapper.addClass("km-widget"))},_popup:function(){l.fn._popup.call(this),this.popup.one("open",E(this._popupOpen,this))},_getElementDataItem:function(e){return e&&e[0]?e[0]===this.optionLabel[0]?this._optionLabelDataItem():this.listView.dataItemByIndex(this.listView.getElementIndex(e)):null},_click:function(n){var i=this,o=n.item||e(n.currentTarget);return n.preventDefault(),i.trigger("select",{dataItem:i._getElementDataItem(o),item:o})?(i.close(),t):(i._userTriggered=!0,i._select(o).done(function(){i._blur(),i._focusElement(i.wrapper)}),t)},_focusElement:function(e){var t=c(),n=this.wrapper,i=this.filterInput,o=e===i?n:i,r=d.mobileOS&&(d.touch||d.MSPointers||d.pointers);i&&i[0]===e[0]&&r||i&&(o[0]===t||this._focusFilter)&&(this._focusFilter=!1,this._prevent=!0,this._focused=e.focus())},_searchByWord:function(e){var t,n;e&&(t=this,n=t.options.ignoreCase,n&&(e=e.toLowerCase()),t._select(function(n){return t._matchText(t._text(n),e)}))},_inputValue:function(){return this.text()},_search:function(){var e=this,n=e.dataSource;if(clearTimeout(e._typingTimeout),e._isFilterEnabled())e._typingTimeout=setTimeout(function(){var t=e.filterInput.val();e._prev!==t&&(e._prev=t,e.search(t),e._resizeFilterInput()),e._typingTimeout=null},e.options.delay);else{if(e._typingTimeout=setTimeout(function(){e._word=""},e.options.delay),!e.listView.bound())return n.fetch().done(function(){e._selectNext()}),t;e._selectNext()}},_get:function(t){var n,i,o,r="function"==typeof t,a=r?e():e(t);if(this.hasOptionLabel()&&("number"==typeof t?t>-1&&(t-=1):a.hasClass("k-list-optionlabel")&&(t=-1)),r){for(n=this.dataSource.flatView(),o=0;o<n.length;o++)if(t(n[o])){t=o,i=!0;break}i||(t=-1)}return t},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){var e;return this.optionLabel.hasClass("k-state-focused")?(this._resetOptionLabel(),this.listView.focusFirst(),e=1):e=this.listView.focusNext(),e},_prevItem:function(){var e;if(!this.optionLabel.hasClass("k-state-focused"))return e=this.listView.focusPrev(),this.listView.focus()||this.options.virtual||this._focus(this.optionLabel),e},_focusItem:function(){var e=this.options,n=this.listView,i=n.focus(),o=n.select();o=o[o.length-1],o===t&&e.highlightFirst&&!i&&(o=0),o!==t?n.focus(o):!e.optionLabel||e.virtual&&"dataItem"===e.virtual.mapValueTo?n.scrollToIndex(0):(this._focus(this.optionLabel),this._select(this.optionLabel),this.listView.content.scrollTop(0))},_resetOptionLabel:function(e){this.optionLabel.removeClass("k-state-focused"+(e||"")).removeAttr("id")},_focus:function(e){var n=this.listView,i=this.optionLabel;return e===t?(e=n.focus(),!e&&i.hasClass("k-state-focused")&&(e=i),e):(this._resetOptionLabel(),e=this._get(e),n.focus(e),e===-1&&(i.addClass("k-state-focused").attr("id",n._optionID),this._focused.add(this.filterInput).removeAttr("aria-activedescendant").attr("aria-activedescendant",n._optionID)),t)},_select:function(e,t){var n=this;return e=n._get(e),n.listView.select(e).done(function(){t||n._state!==T||(n._state=D),e===-1&&n._selectValue(null)})},_selectValue:function(e){var n=this,i=n.options.optionLabel,o=n.listView.select(),r="",a="";o=o[o.length-1],o===t&&(o=-1),this._resetOptionLabel(" k-state-selected"),e||0===e?(a=e,r=n._dataValue(e),i&&(o+=1)):i&&(n._focus(n.optionLabel.addClass("k-state-selected")),a=n._optionLabelText(),r="string"==typeof i?"":n._value(i),o=0),n.selectedIndex=o,null===r&&(r=""),n._textAccessor(a),n._accessor(r,o),n._triggerCascade()},_mobile:function(){var e=this,t=e.popup,n=d.mobileOS,i=t.element.parents(".km-root").eq(0);i.length&&n&&(t.options.animation.open.effects=n.android||n.meego?"fadeIn":n.ios||n.wp?"slideIn:up":t.options.animation.open.effects)},_filterHeader:function(){var t;this.filterInput&&(this.filterInput.off(p).parent().remove(),this.filterInput=null),this._isFilterEnabled()&&(t='<span class="k-icon k-i-zoom"></span>',this.filterInput=e('<input class="k-textbox"/>').attr({placeholder:this.element.attr("placeholder"),title:this.element.attr("title"),role:"listbox","aria-haspopup":!0,"aria-expanded":!1}),this.list.prepend(e('<span class="k-list-filter" />').append(this.filterInput.add(t))))},_span:function(){var t,n=this,i=n.wrapper,o="span.k-input";t=i.find(o),t[0]||(i.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input">&nbsp;</span><span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-arrow-60-down"></span></span></span>').append(n.element),t=i.find(o)),n.span=t,n._inputWrapper=e(i[0].firstChild),n._arrow=i.find(".k-select"),n._arrowIcon=n._arrow.find(".k-icon")},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent(),e[0].style.cssText=i.style.cssText,e[0].title=i.title),t._focused=t.wrapper=e.addClass("k-widget k-dropdown").addClass(i.className).removeClass("input-validation-error").css("display","").attr({accesskey:n.attr("accesskey"),unselectable:"on",role:"listbox","aria-haspopup":!0,"aria-expanded":!1}),n.hide().removeAttr("accesskey")},_clearSelection:function(e){this.select(e.value()?0:-1)},_inputTemplate:function(){var t=this,n=t.options.valueTemplate;if(n=n?r.template(n):e.proxy(r.template("#:this._text(data)#",{useWithBlock:!1}),t),t.valueTemplate=n,t.hasOptionLabel()&&!t.options.optionLabelTemplate)try{t.valueTemplate(t._optionLabelDataItem())}catch(i){throw Error(A)}},_textAccessor:function(n){var i,o=null,r=this.valueTemplate,a=this._optionLabelText(),s=this.span;if(n===t)return s.text();e.isPlainObject(n)||n instanceof u?o=n:a&&a===n&&(o=this.options.optionLabel),o||(o=this._assignInstance(n,this._accessor())),this.hasOptionLabel()&&(o!==a&&this._text(o)!==a||(r=this.optionLabelTemplate,"string"!=typeof this.options.optionLabel||this.options.optionLabelTemplate||(o=a))),i=function(){return{elements:s.get(),data:[{dataItem:o}]}},this.angular("cleanup",i);try{s.html(r(o))}catch(l){s.html("")}this.angular("compile",i)},_preselect:function(e,t){e||t||(t=this._optionLabelText()),this._accessor(e),this._textAccessor(t),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(e,t){var i=this.options.dataTextField,o={};return i?(n(o,i.split("."),e),n(o,this.options.dataValueField.split("."),t),o=new u(o)):o=e,o}});a.plugin(I)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.treeview.draganddrop.min",["kendo.data.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=e.proxy,r=e.extend,a="visibility",s="k-state-hover",l="input,a:not(.k-in),textarea,.k-multiselect-wrap,select,button,a.k-button>.k-icon,button.k-button>.k-icon,span.k-icon.k-i-arrow-60-right,span.k-icon.k-i-arrow-45-down-right",d="<div class='k-drop-hint k-drop-hint-h'><div class='k-drop-hint-start'></div><div class='k-drop-hint-line'></div></div>";i.HierarchicalDragAndDrop=n.Class.extend({init:function(t,a){this.element=t,this.hovered=t,this.options=r({dragstart:e.noop,drag:e.noop,drop:e.noop,dragend:e.noop},a),this._draggable=new i.Draggable(t,{ignore:l,filter:a.filter,autoScroll:a.autoScroll,cursorOffset:{left:10,top:n.support.mobileOS?-40/n.support.zoomLevel():10},hint:o(this._hint,this),dragstart:o(this.dragstart,this),dragcancel:o(this.dragcancel,this),drag:o(this.drag,this),dragend:o(this.dragend,this),$angular:a.$angular})},_hint:function(e){return"<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>"+this.options.hintText(e)+"</div>"},_removeTouchHover:function(){n.support.touch&&this.hovered&&(this.hovered.find("."+s).removeClass(s),this.hovered=!1)},_hintStatus:function(e){var i=this._draggable.hint.find(".k-drag-status")[0];return e?(i.className="k-icon k-drag-status "+e,t):n.trim(i.className.replace(/(p|k)-(icon|drag-status)/g,""))},dragstart:function(t){this.source=t.currentTarget.closest(this.options.itemSelector),this.options.dragstart(this.source)&&t.preventDefault(),this.dropHint=this.options.reorderable?e(d).css(a,"hidden").appendTo(this.element):e()},drag:function(t){var i,o,r,l,d,c,u,h,p,f,m,g=this.options,v=this.source,_=this.dropTarget=e(n.eventTarget(t)),b=_.closest(g.allowedContainers);b.length?v[0]==_[0]||g.contains(v[0],_[0])?m="k-i-cancel":(m="k-i-insert-middle",p=g.itemFromTarget(_),i=p.item,i.length?(this._removeTouchHover(),o=n._outerHeight(i),l=p.content,g.reorderable?(d=o/(l.length>0?4:2),r=n.getOffset(i).top,c=t.y.location<r+d,u=r+o-d<t.y.location,h=l.length&&!c&&!u):(h=!0,c=!1,u=!1),this.hovered=!!h&&b,this.dropHint.css(a,h?"hidden":"visible"),this._lastHover&&this._lastHover[0]!=l[0]&&this._lastHover.removeClass(s),this._lastHover=l.toggleClass(s,h),h?m="k-i-plus":(f=i.position(),f.top+=c?0:o,this.dropHint.css(f)[c?"prependTo":"appendTo"](g.dropHintContainer(i)),c&&p.first&&(m="k-i-insert-up"),u&&p.last&&(m="k-i-insert-down"))):_[0]!=this.dropHint[0]&&(this._lastHover&&this._lastHover.removeClass(s),m=e.contains(this.element[0],b[0])?"k-i-cancel":"k-i-plus")):(m="k-i-cancel",this._removeTouchHover()),this.options.drag({originalEvent:t.originalEvent,source:v,target:_,pageY:t.y.location,pageX:t.x.location,status:m.substring(2),setStatus:function(e){m=e}}),0!==m.indexOf("k-i-insert")&&this.dropHint.css(a,"hidden"),this._hintStatus(m)},dragcancel:function(){this.dropHint.remove()},dragend:function(e){var n,i,o,r="over",l=this.source,d=this.dropHint,c=this.dropTarget;return"visible"==d.css(a)?(r=this.options.dropPositionFrom(d),n=d.closest(this.options.itemSelector)):c&&(n=c.closest(this.options.itemSelector),n.length||(n=c.closest(this.options.allowedContainers))),i={originalEvent:e.originalEvent,source:l[0],destination:n[0],valid:"k-i-cancel"!=this._hintStatus(),setValid:function(e){this.valid=e},dropTarget:c[0],position:r},o=this.options.drop(i),d.remove(),this._removeTouchHover(),this._lastHover&&this._lastHover.removeClass(s),!i.valid||o?(this._draggable.dropped=i.valid,t):(this._draggable.dropped=!0,this.options.dragend({originalEvent:e.originalEvent,source:l,destination:n,position:r}),t)},destroy:function(){this._lastHover=this.hovered=null,this._draggable.destroy()}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.treeview.min",["kendo.data.min","kendo.treeview.draganddrop.min"],e)}(function(){return function(e,t){function n(e){return function(t){var n=t.children(".k-animation-container");return n.length||(n=t),n.children(e)}}function i(e){return p.template(e,{useWithBlock:!1})}function o(e){return e.find(".k-checkbox-wrapper:first input[type=checkbox]")}function r(e){return function(t,n){n=n.closest(j);var i,o=n.parent();return o.parent().is("li")&&(i=o.parent()),this._dataSourceMove(t,o,i,function(t,i){var o=this.dataItem(n),r=o?o.parent().indexOf(o):n.index();return this._insert(t.data(),i,r+e)})}}function a(e,t){for(var n;e&&"ul"!=e.nodeName.toLowerCase();)n=e,e=e.nextSibling,3==n.nodeType&&(n.nodeValue=p.trim(n.nodeValue)),h.test(n.className)?t.insertBefore(n,t.firstChild):t.appendChild(n)}function s(t){var n=t.children("div"),i=t.children("ul"),o=n.children(".k-icon"),r=t.children("input[type=checkbox]"),s=n.children(".k-in");t.hasClass("k-treeview")||(n.length||(n=e("<div />").prependTo(t)),!o.length&&i.length?o=e("<span class='k-icon' />").prependTo(n):i.length&&i.children().length||(o.remove(),i.remove()),r.length&&e("<span class='k-checkbox-wrapper' />").appendTo(n).append(r),s.length||(s=t.children("a").eq(0).addClass("k-in k-link"),s.length||(s=e("<span class='k-in' />")),s.appendTo(n),n.length&&a(n[0].nextSibling,s[0])))}var l,d,c,u,h,p=window.kendo,f=p.ui,m=p.data,g=e.extend,v=p.template,_=e.isArray,b=f.Widget,w=m.HierarchicalDataSource,k=e.proxy,y=p.keys,x=".kendoTreeView",C=".kendoTreeViewTemp",S="select",T="check",D="navigate",A="expand",E="change",I="error",M="checked",R="indeterminate",F="collapse",P="dragstart",z="drag",B="drop",L="dragend",H="dataBound",N="click",O="undefined",V="k-state-hover",W="k-treeview",U=":visible",j=".k-item",q="string",G="aria-checked",$="aria-selected",K="aria-disabled",Y="aria-expanded",Q="k-state-disabled",X={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},Z=function(e){return e instanceof p.jQuery||window.jQuery&&e instanceof window.jQuery},J=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&typeof e.nodeName===q};d=n(".k-group"),c=n(".k-group,.k-content"),u=function(e){return e.children("div").children(".k-icon")},h=/k-sprite/,l=p.ui.DataBoundWidget.extend({init:function(e,t){var n,i=this,o=!1,r=t&&!!t.dataSource;_(t)&&(t={dataSource:t}),t&&typeof t.loadOnDemand==O&&_(t.dataSource)&&(t.loadOnDemand=!1),b.prototype.init.call(i,e,t),e=i.element,t=i.options,i._dataSourceUids={},n=e.is("ul")&&e||e.hasClass(W)&&e.children("ul"),o=!r&&n.length,o&&(t.dataSource.list=n),i._animation(),i._accessors(),i._templates(),e.hasClass(W)?(i.wrapper=e,i.root=e.children("ul").eq(0)):(i._wrapper(),n&&(i.root=e,i._group(i.wrapper))),i._tabindex(),i.wrapper.attr("role","tree"),i._dataSource(o),i._attachEvents(),i._dragging(),o?i._syncHtmlAndDataSource():t.autoBind&&(i._progress(!0),i.dataSource.fetch()),t.checkboxes&&t.checkboxes.checkChildren&&i.updateIndeterminate(),i.element[0].id&&(i._ariaId=p.format("{0}_tv_active",i.element[0].id)),p.notify(i)},_attachEvents:function(){var t=this,n=".k-in:not(.k-state-selected,.k-state-disabled)",i="mouseenter";t.wrapper.on(i+x,".k-in.k-state-selected",function(e){e.preventDefault()}).on(i+x,n,function(){e(this).addClass(V)}).on("mouseleave"+x,n,function(){e(this).removeClass(V)}).on(N+x,n,k(t._click,t)).on("dblclick"+x,".k-in:not(.k-state-disabled)",k(t._toggleButtonClick,t)).on(N+x,".k-i-expand,.k-i-collapse",k(t._toggleButtonClick,t)).on("keydown"+x,k(t._keydown,t)).on("keypress"+x,k(t._keypress,t)).on("focus"+x,k(t._focus,t)).on("blur"+x,k(t._blur,t)).on("mousedown"+x,".k-in,.k-checkbox-wrapper :checkbox,.k-i-expand,.k-i-collapse",k(t._mousedown,t)).on("change"+x,".k-checkbox-wrapper :checkbox",k(t._checkboxChange,t)).on("click"+x,".checkbox-span",k(t._checkboxLabelClick,t)).on("click"+x,".k-request-retry",k(t._retryRequest,t)).on("click"+x,".k-link.k-state-disabled",function(e){e.preventDefault()}).on("click"+x,function(n){var i=e(n.target);i.is(":kendoFocusable")||i.find("input,select,textarea,button,object").is(":kendoFocusable")||t.focus()})},_checkboxLabelClick:function(t){var n=e(t.target.previousSibling);n.is("[disabled]")||(n.prop("checked",!n.prop("checked")),n.trigger("change"))},_syncHtmlAndDataSource:function(e,t){e=e||this.root,t=t||this.dataSource;var n,i,r,a,s,l=t.view(),d=p.attr("uid"),c=p.attr("expanded"),u=this.options.checkboxes,h=e.children("li");for(n=0;n<h.length;n++)r=l[n],a=r.uid,i=h.eq(n),i.attr("role","treeitem").attr(d,a).attr($,i.hasClass("k-state-selected")),r.expanded="true"===i.attr(c),u&&(s=o(i),r.checked=s.prop(M),s.attr("id","_"+a),s.next(".k-checkbox-label").attr("for","_"+a)),this._syncHtmlAndDataSource(i.children("ul"),r.children)},_animation:function(){var e=this.options,t=e.animation,n=t.collapse&&"effects"in t.collapse,i=g({},t.expand,t.collapse);n||(i=g(i,{reverse:!0})),t===!1&&(t={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),t.collapse=g(i,{hide:!0}),e.animation=t},_dragging:function(){var t,n=this.options.dragAndDrop,i=this.dragging;n&&!i?(t=this,this.dragging=new f.HierarchicalDragAndDrop(this.element,{reorderable:!0,$angular:this.options.$angular,autoScroll:this.options.autoScroll,filter:"div:not(.k-state-disabled) .k-in",allowedContainers:".k-treeview",itemSelector:".k-treeview .k-item",hintText:k(this._hintText,this),contains:function(t,n){return e.contains(t,n)},dropHintContainer:function(e){return e},itemFromTarget:function(e){var t=e.closest(".k-top,.k-mid,.k-bot");return{item:t,content:e.closest(".k-in"),first:t.hasClass("k-top"),last:t.hasClass("k-bot")}},dropPositionFrom:function(e){return e.prevAll(".k-in").length>0?"after":"before"},dragstart:function(e){return t.trigger(P,{sourceNode:e[0]})},drag:function(e){t.trigger(z,{originalEvent:e.originalEvent,sourceNode:e.source[0],dropTarget:e.target[0],pageY:e.pageY,pageX:e.pageX,statusClass:e.status,setStatusClass:e.setStatus})},drop:function(n){var i=e(n.dropTarget),o=i.closest("a");return o&&o.attr("href")&&t._tempPreventNavigation(o),t.trigger(B,{originalEvent:n.originalEvent,sourceNode:n.source,destinationNode:n.destination,valid:n.valid,setValid:function(e){this.valid=e,n.setValid(e)},dropTarget:n.dropTarget,dropPosition:n.position})},dragend:function(e){function n(n){t.options.checkboxes&&t.options.checkboxes.checkChildren&&t.updateIndeterminate(),t.trigger(L,{originalEvent:e.originalEvent,sourceNode:n&&n[0],destinationNode:o[0],dropPosition:r})}var i=e.source,o=e.destination,r=e.position;"over"==r?t.append(i,o,n):("before"==r?i=t.insertBefore(i,o):"after"==r&&(i=t.insertAfter(i,o)),n(i))}})):!n&&i&&(i.destroy(),this.dragging=null)},_tempPreventNavigation:function(e){e.on(N+x+C,function(t){t.preventDefault(),e.off(N+x+C)})},_hintText:function(e){return this.templates.dragClue({item:this.dataItem(e),treeview:this.options})},_templates:function(){var e=this,t=e.options,n=k(e._fieldAccessor,e);t.template&&typeof t.template==q?t.template=v(t.template):t.template||(t.template=i("# var text = "+n("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {##= text ## } else { ##: text ## } #")),e._checkboxes(),e.templates={setAttributes:function(e){var t,n="",i=e.attr||{};for(t in i)i.hasOwnProperty(t)&&"class"!==t&&(n+=t+'="'+i[t]+'" ');return n},wrapperCssClass:function(e,t){var n="k-item",i=t.index;return e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},cssClass:function(e,t){var n="",i=t.index,o=e.length-1;return e.firstLevel&&0===i&&(n+="k-top "),n+=0===i&&i!=o?"k-top":i==o?"k-bot":"k-mid"},textClass:function(e,t){var n="k-in";return t&&(n+=" k-link"),e.enabled===!1&&(n+=" k-state-disabled"),e.selected===!0&&(n+=" k-state-selected"),n},toggleButtonClass:function(e){var t="k-icon";return t+=e.expanded!==!0?" k-i-expand":" k-i-collapse"},groupAttributes:function(e){var t="";return e.firstLevel||(t="role='group'"),t+(e.expanded!==!0?" style='display:none'":"")},groupCssClass:function(e){var t="k-group";return e.firstLevel&&(t+=" k-treeview-lines"),t},dragClue:i("#= data.treeview.template(data) #"),group:i("<ul class='#= data.r.groupCssClass(data.group) #'#= data.r.groupAttributes(data.group) #>#= data.renderItems(data) #</ul>"),itemContent:i("# var imageUrl = "+n("imageUrl")+"(data.item); ## var spriteCssClass = "+n("spriteCssClass")+"(data.item); ## if (imageUrl) { #<img class='k-image' alt='' src='#= imageUrl #'># } ## if (spriteCssClass) { #<span class='k-sprite #= spriteCssClass #'></span># } ##= data.treeview.template(data) #"),itemElement:i("# var item = data.item, r = data.r; ## var url = "+n("url")+"(item); #<div class='#= r.cssClass(data.group, item) #'># if (item.hasChildren) { #<span class='#= r.toggleButtonClass(item) #'></span># } ## if (data.treeview.checkboxes) { #<span class='k-checkbox-wrapper' role='presentation'>#= data.treeview.checkboxes.template(data) #</span># } ## var tag = url ? 'a' : 'span'; ## var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #<#=tag# class='#= r.textClass(item, !!url) #'#= textAttr #>#= r.itemContent(data) #</#=tag#></div>"),
item:i("# var item = data.item, r = data.r; #<li role='treeitem' class='#= r.wrapperCssClass(data.group, item) #'"+p.attr("uid")+'=\'#= item.uid #\' #= r.setAttributes(item.toJSON ? item.toJSON() : item) # # if (data.treeview.checkboxes) { #aria-checked=\'#= item.checked ? "true" : "false" #\' # } #aria-selected=\'#= item.selected ? "true" : "false" #\' #=item.enabled === false ? "aria-disabled=\'true\'" : \'\'#aria-expanded=\'#= item.expanded ? "true" : "false" #\' data-expanded=\'#= item.expanded ? "true" : "false" #\' >#= r.itemElement(data) #</li>'),loading:i("<div class='k-icon k-i-loading'></div> #: data.messages.loading #"),retry:i("#: data.messages.requestFailed # <button class='k-button k-request-retry'>#: data.messages.retry #</button>")}},items:function(){return this.element.find(".k-item > div:first-child")},setDataSource:function(t){var n=this.options;n.dataSource=t,this._dataSourceUids={},this._dataSource(),n.checkboxes&&n.checkboxes.checkChildren&&this.dataSource.one("change",e.proxy(this.updateIndeterminate,this,null)),this.options.autoBind&&this.dataSource.fetch()},_bindDataSource:function(){this._refreshHandler=k(this.refresh,this),this._errorHandler=k(this._error,this),this.dataSource.bind(E,this._refreshHandler),this.dataSource.bind(I,this._errorHandler)},_unbindDataSource:function(){var e=this.dataSource;e&&(e.unbind(E,this._refreshHandler),e.unbind(I,this._errorHandler))},_dataSource:function(e){function t(e){for(var n=0;n<e.length;n++)e[n]._initChildren(),e[n].children.fetch(),t(e[n].children.view())}var n=this,i=n.options,o=i.dataSource;o=_(o)?{data:o}:o,n._unbindDataSource(),o.fields||(o.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),n.dataSource=o=w.create(o),e&&(o.fetch(),t(o.view())),n._bindDataSource()},events:[P,z,B,L,H,A,F,S,E,D,T],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:100}},messages:{loading:"Loading...",requestFailed:"Request failed.",retry:"Retry"},dragAndDrop:!1,checkboxes:!1,autoBind:!0,autoScroll:!1,loadOnDemand:!0,template:"",dataTextField:null},_accessors:function(){var e,t,n,i=this,o=i.options,r=i.element;for(e in X)t=o[X[e]],n=r.attr(p.attr(e+"-field")),!t&&n&&(t=n),t||(t=e),_(t)||(t=[t]),o[X[e]]=t},_fieldAccessor:function(t){var n=this.options[X[t]],i=n.length,o="(function(item) {";return 0===i?o+="return item['"+t+"'];":(o+="var levels = ["+e.map(n,function(e){return"function(d){ return "+p.expr(e)+"}"}).join(",")+"];",o+="return levels[Math.min(item.level(), "+i+"-1)](item)"),o+="})"},setOptions:function(e){b.fn.setOptions.call(this,e),this._animation(),this._dragging(),this._templates()},_trigger:function(e,t){return this.trigger(e,{node:t.closest(j)[0]})},_setChecked:function(t,n){if(t&&e.isFunction(t.view))for(var i=0,o=t.view();i<o.length;i++)o[i].enabled!==!1&&this._setCheckedValue(o[i],n),o[i].children&&this._setChecked(o[i].children,n)},_setCheckedValue:function(e,t){e[M]=t},_setIndeterminate:function(e){var t,n,i,r=d(e),a=!0;if(r.length&&(t=o(r.children()),n=t.length)){if(n>1){for(i=1;i<n;i++)if(t[i].checked!=t[i-1].checked||t[i].indeterminate||t[i-1].indeterminate){a=!1;break}}else a=!t[0].indeterminate;return e.attr(G,a?t[0].checked:"mixed"),o(e).data(R,!a).prop(R,!a).prop(M,a&&t[0].checked)}},updateIndeterminate:function(e){var t,n,i,o;if(e=e||this.wrapper,t=d(e).children(),t.length){for(n=0;n<t.length;n++)this.updateIndeterminate(t.eq(n));if(e.is(".k-treeview"))return;i=this._setIndeterminate(e),o=this.dataItem(e),i&&i.prop(M)?o.checked=!0:o&&delete o.checked}},_bubbleIndeterminate:function(e,t){if(e.length){t||this.updateIndeterminate(e);var n,i=this.parent(e);i.length&&(this._setIndeterminate(i),n=i.children("div").find(".k-checkbox-wrapper input[type=checkbox]"),this._skip=!0,n.prop(R)===!1?this.dataItem(i).set(M,n.prop(M)):this.dataItem(i).set(M,!1),this._skip=!1,this._bubbleIndeterminate(i,!0))}},_checkboxChange:function(t){var n=this,i=e(t.target),o=i.prop(M),r=i.closest(j),a=this.dataItem(r);this._preventChange||(a.checked!=o&&(a.set(M,o),r.attr(G,o),this._trigger(T,r)),i.is(":focus")&&(n._trigger(D,r),n.focus()))},_toggleButtonClick:function(t){var n=e(t.currentTarget).closest(j);n.is("[aria-disabled='true']")||this.toggle(n)},_mousedown:function(t){var n=this,i=e(t.currentTarget),o=e(t.currentTarget).closest(j),r=p.support.browser;o.is("[aria-disabled='true']")||((r.msie||r.edge)&&i.is(":checkbox")&&(i.prop(R)?(n._preventChange=!1,i.prop(M,!i.prop(M)),i.trigger(E),i.on(N+x,function(e){e.preventDefault()}),n._preventChange=!0):(i.off(N+x),n._preventChange=!1)),n._clickTarget=o,n.current(o))},_focusable:function(e){return e&&e.length&&e.is(":visible")&&!e.find(".k-in:first").hasClass(Q)},_focus:function(){var t=this.select(),n=this._clickTarget;p.support.touch||(n&&n.length&&(t=n),this._focusable(t)||(t=this.current()),this._focusable(t)||(t=this._nextVisible(e())),this.current(t))},focus:function(){var e,t=this.wrapper,n=t[0],i=[],o=[],r=document.documentElement;do n=n.parentNode,n.scrollHeight>n.clientHeight&&(i.push(n),o.push(n.scrollTop));while(n!=r);for(p.focusElement(t),e=0;e<i.length;e++)i[e].scrollTop=o[e]},_blur:function(){this.current().find(".k-in:first").removeClass("k-state-focused")},_enabled:function(e){return!e.children("div").children(".k-in").hasClass(Q)},parent:function(t){var n,i,o=/\bk-treeview\b/,r=/\bk-item\b/;typeof t==q&&(t=this.element.find(t)),J(t)||(t=t[0]),i=r.test(t.className);do t=t.parentNode,r.test(t.className)&&(i?n=t:i=!0);while(!o.test(t.className)&&!n);return e(n)},_nextVisible:function(e){function t(e){for(;e.length&&!e.next().length;)e=i.parent(e);return e.next().length?e.next():e}var n,i=this,o=i._expanded(e);return e.length&&e.is(":visible")?o?(n=d(e).children().first(),n.length||(n=t(e))):n=t(e):n=i.root.children().eq(0),n},_previousVisible:function(e){var t,n,i=this;if(!e.length||e.prev().length)for(n=e.length?e.prev():i.root.children().last();i._expanded(n)&&(t=d(n).children().last(),t.length);)n=t;else n=i.parent(e)||e;return n},_keydown:function(n){var i,o=this,r=n.keyCode,a=o.current(),s=o._expanded(a),l=a.find(".k-checkbox-wrapper:first :checkbox"),d=p.support.isRtl(o.element);n.target==n.currentTarget&&(!d&&r==y.RIGHT||d&&r==y.LEFT?s?i=o._nextVisible(a):a.find(".k-in:first").hasClass(Q)||o.expand(a):!d&&r==y.LEFT||d&&r==y.RIGHT?s&&!a.find(".k-in:first").hasClass(Q)?o.collapse(a):(i=o.parent(a),o._enabled(i)||(i=t)):r==y.DOWN?i=o._nextVisible(a):r==y.UP?i=o._previousVisible(a):r==y.HOME?i=o._nextVisible(e()):r==y.END?i=o._previousVisible(e()):r!=y.ENTER||a.find(".k-in:first").hasClass(Q)?r==y.SPACEBAR&&l.length&&(a.find(".k-in:first").hasClass(Q)||(l.prop(M,!l.prop(M)).data(R,!1).prop(R,!1),o._checkboxChange({target:l})),i=a):a.find(".k-in:first").hasClass("k-state-selected")||o._trigger(S,a)||o.select(a),i&&(n.preventDefault(),a[0]!=i[0]&&(o._trigger(D,i),o.current(i))))},_keypress:function(e){var t,n=this,i=300,o=n.current().get(0),r=e.key,a=1===r.length;a&&(n._match||(n._match=""),n._match+=r,clearTimeout(n._matchTimer),n._matchTimer=setTimeout(function(){n._match=""},i),t=o&&n._matchNextByText(Array.prototype.indexOf.call(n.element.find(".k-item"),o),n._match),t.length||(t=n._matchNextByText(-1,n._match)),t.get(0)&&t.get(0)!==o&&(n._trigger(D,t),n.current(t)))},_matchNextByText:function(t,n){var i=this.element,o=i.find(".k-in").filter(function(i,o){return i>t&&e(o).is(":visible")&&0===e(o).text().toLowerCase().indexOf(n)});return o.eq(0).closest(j)},_click:function(t){var n,i=this,o=e(t.currentTarget),r=c(o.closest(j)),a=o.attr("href");n=a?"#"==a||a.indexOf("#"+this.element.id+"-")>=0:r.length&&!r.children().length,n&&t.preventDefault(),o.hasClass(".k-state-selected")||i._trigger(S,o)||i.select(o)},_wrapper:function(){var e,t,n=this,i=n.element,o="k-widget k-treeview";i.is("ul")?(e=i.wrap("<div />").parent(),t=i):(e=i,t=e.children("ul").eq(0)),n.wrapper=e.addClass(o),n.root=t},_getSelectedNode:function(){return this.element.find(".k-state-selected").closest(j)},_group:function(e){var t=this,n=e.hasClass(W),i={firstLevel:n,expanded:n||t._expanded(e)},o=e.children("ul");o.addClass(t.templates.groupCssClass(i)).css("display",i.expanded?"":"none"),n||o.attr("role","group"),t._nodes(o,i)},_nodes:function(t,n){var i,o=this,r=t.children("li");n=g({length:r.length},n),r.each(function(t,r){r=e(r),i={index:t,expanded:o._expanded(r)},s(r),o._updateNodeClasses(r,n,i),o._group(r)})},_checkboxes:function(){var e,t=this.options,n=t.checkboxes;n&&(e="<input type='checkbox' tabindex='-1' #= (item.enabled === false) ? 'disabled' : '' # #= item.checked ? 'checked' : '' #",n.name&&(e+=" name='"+n.name+"'"),e+=" id='_#= item.uid #' class='k-checkbox' /><span class='k-checkbox-label checkbox-span'></span>",n=g({template:e},t.checkboxes),typeof n.template==q&&(n.template=v(n.template)),t.checkboxes=n)},_updateNodeClasses:function(e,t,n){var i,o,r=e.children("div"),a=e.children("ul"),s=this.templates;e.hasClass("k-treeview")||(n=n||{},n.expanded=typeof n.expanded!=O?n.expanded:this._expanded(e),n.index=typeof n.index!=O?n.index:e.index(),n.enabled=typeof n.enabled!=O?n.enabled:!r.children(".k-in").hasClass("k-state-disabled"),t=t||{},t.firstLevel=typeof t.firstLevel!=O?t.firstLevel:e.parent().parent().hasClass(W),t.length=typeof t.length!=O?t.length:e.parent().children().length,e.removeClass("k-first k-last").addClass(s.wrapperCssClass(t,n)),r.removeClass("k-top k-mid k-bot").addClass(s.cssClass(t,n)),i=r.children(".k-in"),o=i[0]&&"a"==i[0].nodeName.toLowerCase(),i.removeClass("k-in k-link k-state-default k-state-disabled").addClass(s.textClass(n,o)),(a.length||"true"==e.attr("data-hasChildren"))&&(r.children(".k-icon").removeClass("k-i-expand k-i-collapse").addClass(s.toggleButtonClass(n)),a.addClass("k-group")))},_processNodes:function(t,n){var i,o=this,r=o.element.find(t);for(i=0;i<r.length;i++)n.call(o,i,e(r[i]).closest(j))},dataItem:function(t){var n=e(t).closest(j).attr(p.attr("uid")),i=this.dataSource;return i&&i.getByUid(n)},_dataItem:function(t){var n=e(t).closest(j).attr(p.attr("uid")),i=this.dataSource;return i&&this._dataSourceUids[n]},_insertNode:function(t,n,i,o,r){var a,l,c,u,h,f,m=this,g=d(i),v=g.children().length+1,_={firstLevel:i.hasClass(W),expanded:!r,length:v},b="",w=function(e,t){e.appendTo(t)};for(c=0;c<t.length;c++)u=t[c],u.index=n+c,b+=m._renderItem({group:_,item:u});if(l=e(b),l.length){for(m.angular("compile",function(){return{elements:l.get(),data:t.map(function(e){return{dataItem:e}})}}),g.length||(g=e(m._renderGroup({group:_})).appendTo(i)),o(l,g),i.hasClass("k-item")&&(s(i),m._updateNodeClasses(i,_,{expanded:!r})),h=l.prev().first(),f=l.next().last(),m._updateNodeClasses(h,{},{expanded:"true"==h.attr(p.attr("expanded"))}),m._updateNodeClasses(f,{},{expanded:"true"==f.attr(p.attr("expanded"))}),c=0;c<t.length;c++)u=t[c],u.hasChildren&&(a=u.children.data(),a.length&&m._insertNode(a,u.index,l.eq(c),w,!u.expanded));return l}},_updateNodes:function(t,n){function i(e,t){e.is(".k-group")&&e.find(".k-item:not([aria-disabled])").attr(G,t),e.find(".k-checkbox-wrapper input[type=checkbox]:not([disabled])").prop(M,t).data(R,!1).prop(R,!1)}var o,r,a,s,l,d,u,h=this,p={treeview:h.options,item:s},m="expanded"!=n&&"checked"!=n;if("selected"==n)s=t[0],r=h.findByUid(s.uid).find(".k-in:first").removeClass("k-state-hover").toggleClass("k-state-selected",s[n]).end(),s[n]&&h.current(r),r.attr($,!!s[n]);else{for(u=e.map(t,function(e){return h.findByUid(e.uid).children("div")}),m&&h.angular("cleanup",function(){return{elements:u}}),o=0;o<t.length;o++)p.item=s=t[o],a=u[o],r=a.parent(),m&&a.children(".k-in").html(h.templates.itemContent(p)),n==M?(l=s[n],i(a,l),r.attr(G,l),h.options.checkboxes.checkChildren&&(i(r.children(".k-group"),l),h._setChecked(s.children,l),h._bubbleIndeterminate(r))):"expanded"==n?h._toggle(r,s,s[n]):"enabled"==n&&(r.find(".k-checkbox-wrapper input[type=checkbox]").prop("disabled",!s[n]),d=!c(r).is(U),r.removeAttr(K),s[n]||(s.selected&&s.set("selected",!1),s.expanded&&s.set("expanded",!1),d=!0,r.attr($,!1).attr(K,!0)),h._updateNodeClasses(r,{},{enabled:s[n],expanded:!d})),a.length&&(s._events&&s._events.change&&s._events.change.splice(1),this.trigger("itemChange",{item:a,data:s,ns:f}));m&&h.angular("compile",function(){return{elements:u,data:e.map(t,function(e){return[{dataItem:e}]})}})}},_appendItems:function(e,t,n){var i,o,r,a=d(n),s=a.children(),l=!this._expanded(n);this.element===n?(i=this.dataSource.data(),o=this.dataSource.view(),r=o.length<i.length?o:i,e=r.indexOf(t[0])):t.length&&(e=t[0].parent().indexOf(t[0])),typeof e==O&&(e=s.length),this._insertNode(t,e,n,function(t,n){e>=s.length?t.appendTo(n):t.insertBefore(s.eq(e))},l),l||(this._updateNodeClasses(n,{},{expanded:!l}),d(n).css("display","block"))},_refreshChildren:function(e,t,n){var i,o,r,a=this.options,l=a.loadOnDemand,c=a.checkboxes&&a.checkboxes.checkChildren;if(d(e).empty(),t.length)for(this._appendItems(n,t,e),o=d(e).children(),l&&c&&this._bubbleIndeterminate(o.last()),i=0;i<o.length;i++)r=o.eq(i),this.trigger("itemChange",{item:r.children("div"),data:t[i],ns:f});else s(e)},_refreshRoot:function(t){var n,i,o,r=this._renderGroup({items:t,group:{firstLevel:!0,expanded:!0}});for(this.root.length?(this._angularItems("cleanup"),n=e(r),this.root.attr("class",n.attr("class")).html(n.html())):this.root=this.wrapper.html(r).children("ul"),i=this.root.children(".k-item"),o=0;o<t.length;o++)this.trigger("itemChange",{item:i.eq(o),data:t[o],ns:f});this._angularItems("compile")},refresh:function(e){var n,i,o=e.node,r=e.action,a=e.items,s=this.wrapper,l=this.options,d=l.loadOnDemand,c=l.checkboxes&&l.checkboxes.checkChildren;if(!this._skip){for(n=0;n<a.length;n++)this._dataSourceUids[a[n].uid]=a[n];if(e.field){if(!a[0]||!a[0].level)return;return this._updateNodes(a,e.field)}if(o&&(s=this.findByUid(o.uid),this._progress(s,!1)),c&&"remove"!=r){for(i=!1,n=0;n<a.length;n++)if("checked"in a[n]){i=!0;break}if(!i&&o&&o.checked)for(n=0;n<a.length;n++)a[n].checked=!0}if("add"==r?this._appendItems(e.index,a,s):"remove"==r?this._remove(this.findByUid(a[0].uid),!1):"itemchange"==r?this._updateNodes(a):"itemloaded"==r?this._refreshChildren(s,a,e.index):this._refreshRoot(a),"remove"!=r)for(n=0;n<a.length;n++)(!d||a[n].expanded||a[n]._loaded)&&a[n].load();this.trigger(H,{node:o?s:t}),this.dataSource.filter()&&this.options.checkboxes.checkChildren&&this.updateIndeterminate(s)}},_error:function(e){var t=e.node&&this.findByUid(e.node.uid),n=this.templates.retry({messages:this.options.messages});t?(this._progress(t,!1),this._expanded(t,!1),u(t).addClass("k-i-reload"),e.node.loaded(!1)):(this._progress(!1),this.element.html(n))},_retryRequest:function(e){e.preventDefault(),this.dataSource.fetch()},expand:function(e){this._processNodes(e,function(e,t){this.toggle(t,!0)})},collapse:function(e){this._processNodes(e,function(e,t){this.toggle(t,!1)})},enable:function(e,t){"boolean"==typeof e?(t=e,e=this.items()):t=2!=arguments.length||!!t,this._processNodes(e,function(e,n){this.dataItem(n).set("enabled",t)})},current:function(n){var i=this,o=i._current,r=i.element,a=i._ariaId;return arguments.length>0&&n&&n.length?(o&&(o[0].id===a&&o.removeAttr("id"),o.find(".k-in:first").removeClass("k-state-focused")),o=i._current=e(n,r).closest(j),o.find(".k-in:first").addClass("k-state-focused"),a=o[0].id||a,a&&(i.wrapper.removeAttr("aria-activedescendant"),o.attr("id",a),i.wrapper.attr("aria-activedescendant",a)),t):(o||(o=i._nextVisible(e())),o)},select:function(n){var i=this,o=i.element;return arguments.length?(n=e(n,o).closest(j),o.find(".k-state-selected").each(function(){var t=i.dataItem(this);t?(t.set("selected",!1),delete t.selected):e(this).removeClass("k-state-selected")}),n.length&&(i.dataItem(n).set("selected",!0),i._clickTarget=n),i.trigger(E),t):o.find(".k-state-selected").closest(j)},_toggle:function(e,t,n){var i,o=this.options,r=c(e),a=n?"expand":"collapse";r.data("animating")||(i=t&&t.loaded(),n&&!i?(o.loadOnDemand&&this._progress(e,!0),r.remove(),t.load()):(this._updateNodeClasses(e,{},{expanded:n}),n||r.css("height",r.height()).css("height"),r.kendoStop(!0,!0).kendoAnimate(g({reset:!0},o.animation[a],{complete:function(){n&&r.css("height","")}}))))},toggle:function(t,n){t=e(t),u(t).is(".k-i-expand, .k-i-collapse")&&(1==arguments.length&&(n=!this._expanded(t)),this._expanded(t,n))},destroy:function(){var e=this;b.fn.destroy.call(e),e.wrapper.off(x),e.wrapper.find(".k-checkbox-wrapper :checkbox").off(x),e._unbindDataSource(),e.dragging&&e.dragging.destroy(),e._dataSourceUids={},p.destroy(e.element),e.root=e.wrapper=e.element=null},_expanded:function(e,n,i){var o,r=p.attr("expanded"),a=n,s=a?"expand":"collapse";return 1==arguments.length?(o=this._dataItem(e),"true"===e.attr(r)||o&&o.expanded):(o=this.dataItem(e),c(e).data("animating")||!i&&this._trigger(s,e)||(a?(e.attr(r,"true"),e.attr(Y,"true")):(e.removeAttr(r),e.attr(Y,"false")),o&&(o.set("expanded",a),a=o.expanded)),t)},_progress:function(e,t){var n=this.element,i=this.templates.loading({messages:this.options.messages});1==arguments.length?(t=e,t?n.html(i):n.empty()):u(e).toggleClass("k-i-loading",t).removeClass("k-i-reload")},text:function(e,n){var i=this.dataItem(e),o=this.options[X.text],r=i.level(),a=o.length,s=o[Math.min(r,a-1)];return n?(i.set(s,n),t):i[s]},_objectOrSelf:function(t){return e(t).closest("[data-role=treeview]").data("kendoTreeView")||this},_dataSourceMove:function(t,n,i,o){var r,a=this._objectOrSelf(i||n),s=a.dataSource,l=e.Deferred().resolve().promise();return i&&i[0]!=a.element[0]&&(r=a.dataItem(i),r.loaded()||(a._progress(i,!0),l=r.load()),i!=this.root&&(s=r.children,s&&s instanceof w||(r._initChildren(),r.loaded(!0),s=r.children))),t=this._toObservableData(t),o.call(a,s,t,l)},_toObservableData:function(t){var n,i,o=t;return(Z(t)||J(t))&&(n=this._objectOrSelf(t).dataSource,i=e(t).attr(p.attr("uid")),o=n.getByUid(i),o&&(o=n.remove(o))),o},_insert:function(e,t,n){t instanceof p.data.ObservableArray?t=t.toJSON():_(t)||(t=[t]);var i=e.parent();return i&&i._initChildren&&(i.hasChildren=!0,i._initChildren()),e.splice.apply(e,[n,0].concat(t)),this.findByUid(e[n].uid)},insertAfter:r(1),insertBefore:r(0),append:function(t,n,i){var o=this.root;if(!(n&&t instanceof jQuery&&n[0]===t[0]))return n=n&&n.length?n:null,n&&(o=d(n)),this._dataSourceMove(t,o,n,function(t,o,r){function a(){n&&l._expanded(n,!0,!0);var e=t.data(),i=Math.max(e.length,0);return l._insert(e,o,i)}var s,l=this;return r.done(function(){s=a(),(i=i||e.noop)(s)}),s||null})},_remove:function(t,n){var i,o,r,a=this;return t=e(t,a.element),this.angular("cleanup",function(){return{elements:t.get()}}),i=t.parent().parent(),o=t.prev(),r=t.next(),t[n?"detach":"remove"](),i.hasClass("k-item")&&(s(i),a._updateNodeClasses(i)),a._updateNodeClasses(o),a._updateNodeClasses(r),t},remove:function(e){var t=this.dataItem(e);t&&this.dataSource.remove(t)},detach:function(e){return this._remove(e,!0)},findByText:function(t){return e(this.element).find(".k-in").filter(function(n,i){return e(i).text()==t}).closest(j)},findByUid:function(t){var n,i,o=this.element.find(".k-item"),r=p.attr("uid");for(i=0;i<o.length;i++)if(o[i].getAttribute(r)==t){n=o[i];break}return e(n)},expandPath:function(t,n){function i(){a.shift(),a.length?o(a[0]).then(i):s.call(r)}function o(t){var n,i=e.Deferred(),o=r.dataSource.get(t),a=p.attr("expanded");return o?(n=r.findByUid(o.uid),o.loaded()?(o.set("expanded",!0),n.attr(a,!0),n.attr(Y,!0),i.resolve()):(r._progress(n,!0),o.load().then(function(){o.set("expanded",!0),n.attr(a,!0),n.attr(Y,!0),i.resolve()}))):i.resolve(),i.promise()}var r=this,a=t.slice(0),s=n||e.noop;o(a[0]).then(i)},_parentIds:function(e){for(var t=e&&e.parentNode(),n=[];t&&t.parentNode;)n.unshift(t.id),t=t.parentNode();return n},expandTo:function(e){e instanceof p.data.Node||(e=this.dataSource.get(e));var t=this._parentIds(e);this.expandPath(t)},_renderItem:function(e){return e.group||(e.group={}),e.treeview=this.options,e.r=this.templates,this.templates.item(e)},_renderGroup:function(e){var t=this;return e.renderItems=function(e){var n="",i=0,o=e.items,r=o?o.length:0,a=e.group;for(a.length=r;i<r;i++)e.group=a,e.item=o[i],e.item.index=i,n+=t._renderItem(e);return n},e.r=t.templates,t.templates.group(e)}}),f.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dropdowntree/treeview.min",["kendo.treeview.min"],e)}(function(){return function(e,t){function n(e){return function(t){var n=t.children(".k-animation-container");return n.length||(n=t),n.children(e)}}var i=window.kendo,o=i.ui,r=i.keys,a="k-state-disabled",s="select",l="checked",d=e.proxy,c="dataBound",u="click",h=".kendoTreeView",p="indeterminate",f="navigate",m=o.TreeView,g=n(".k-group"),v=m.extend({init:function(e,t,n){var i=this;i.dropdowntree=n,i._nodesToLoad=0,m.fn.init.call(i,e,t),i.dropdowntree._isMultipleSelection()&&i.wrapper.on(u+h,".k-in.k-state-selected",d(i._clickSelectedItem,i))},_checkOnSelect:function(e){if(!e.isDefaultPrevented()){var t=this.dataItem(e.node);t.set("checked",!t.checked)}},_setCheckedValue:function(e,t){e.set(l,t)},_click:function(e){var t=this;t.dropdowntree._isMultipleSelection()&&t.one("select",t._checkOnSelect),m.fn._click.call(t,e)},_clickSelectedItem:function(t){var n=this,i=e(t.currentTarget);n.one("select",n._checkOnSelect),n._trigger(s,i)||n.dataItem(i).set("selected",!1)},defaultrefresh:function(e){var n,i,o=this,r=e.node,a=e.action,s=e.items,l=this.wrapper,d=this.options,u=d.loadOnDemand,h=d.checkboxes&&d.checkboxes.checkChildren;if(!this._skip){if(e.field){if(!s[0]||!s[0].level)return;return this._updateNodes(s,e.field)}if(r&&(l=this.findByUid(r.uid),this._progress(l,!1)),h&&"remove"!=a){for(i=!1,n=0;n<s.length;n++)if("checked"in s[n]){i=!0;break}if(!i&&r&&r.checked)for(n=0;n<s.length;n++)s[n].checked=!0}if("add"==a?this._appendItems(e.index,s,l):"remove"==a?this._remove(this.findByUid(s[0].uid),!1):"itemchange"==a?this._updateNodes(s):"itemloaded"==a?(this._nodesToLoad--,this._refreshChildren(l,s,e.index)):this._refreshRoot(s),"remove"!=a)for(n=0;n<s.length;n++)u&&!s[n].expanded||(s[n].hasChildren&&o._nodesToLoad++,s[n].load());0===this._nodesToLoad&&this.dropdowntree.trigger("allNodesAreLoaded"),this.trigger(c,{node:r?l:t}),this.dropdowntree._treeViewDataBound({node:r?l:t,sender:this}),this.options.checkboxes.checkChildren&&this.updateIndeterminate()}},_previousVisible:function(e){var t,n,i=this;if(!e.length||e.prev().length)for(n=e.length?e.prev():i.root.children().last();i._expanded(n)&&(t=g(n).children().last(),t.length);)n=t;else n=i.parent(e)||e,n.length||(i.dropdowntree.checkAll&&i.dropdowntree.checkAll.is(":visible")?i.dropdowntree.checkAll.find(".k-checkbox").focus():i.dropdowntree.filterInput?i.dropdowntree.filterInput.focus():i.dropdowntree.wrapper.focus());return n},_keydown:function(n){var o,d=this,c=n.keyCode,u=d.current(),h=d._expanded(u),m=u.find(".k-checkbox-wrapper:first :checkbox"),g=i.support.isRtl(d.element);n.target==n.currentTarget&&(!g&&c==r.RIGHT||g&&c==r.LEFT?h?o=d._nextVisible(u):u.find(".k-in:first").hasClass(a)||d.expand(u):!g&&c==r.LEFT||g&&c==r.RIGHT?h&&!u.find(".k-in:first").hasClass(a)?d.collapse(u):(o=d.parent(u),d._enabled(o)||(o=t)):c==r.DOWN?o=d._nextVisible(u):c!=r.UP||n.altKey?c==r.HOME?o=d._nextVisible(e()):c==r.END?o=d._previousVisible(e()):c!=r.ENTER||u.find(".k-in:first").hasClass(a)?c==r.SPACEBAR&&m.length&&!u.find(".k-in:first").hasClass(a)?(m.prop(l,!m.prop(l)).data(p,!1).prop(p,!1),d._checkboxChange({target:m}),o=u):n.altKey&&c===r.UP||c===r.ESC?d._closePopup():c===r.TAB&&(n.preventDefault(),d._closePopup()):u.find(".k-in:first").hasClass("k-state-selected")||d._trigger(s,u)||d.select(u):o=d._previousVisible(u),o&&(n.preventDefault(),u[0]!=o[0]&&(d._trigger(f,o),d.current(o))))},_closePopup:function(){this.dropdowntree.close(),this.dropdowntree.wrapper.focus()},refresh:function(e){this.defaultrefresh(e),this.dropdowntree.options.skipUpdateOnBind||("itemchange"===e.action?this.dropdowntree._isMultipleSelection()?"checked"===e.field&&this.dropdowntree._checkValue(e.items[0]):"checked"!==e.field&&"expanded"!==e.field&&e.items[0].selected&&this.dropdowntree._selectValue(e.items[0]):this.dropdowntree.refresh(e))}});i.ui._dropdowntree=v}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dropdowntree.min",["dropdowntree/treeview.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e,t,n){for(var i,o=0,r=t.length-1;o<r;++o)i=t[o],i in e||(e[i]={}),e=e[i];e[t[r]]=n}var i,o,r=window.kendo,a=r.ui,s=a.Widget,l=a._dropdowntree,d=r.data.ObservableArray,c=r.data.ObservableObject,u=e.extend,h=r._activeElement,p=".kendoDropDownTree",f=r.keys,m=r.support,g="k-hidden",v="width",_=m.browser,b=r._outerWidth,w=".",k="disabled",y="readonly",x="k-state-disabled",C="aria-disabled",S="aria-readonly",T="k-state-hover",D="k-state-focused",A="mouseenter"+p+" mouseleave"+p,E="tabindex",I="click",M="open",R="close",F="change",P=/"/g,z=e.proxy,B=r.ui.Widget.extend({init:function(t,n){var i,o,a;this.ns=p,r.ui.Widget.fn.init.call(this,t,n),this._selection=this._getSelection(),this._focusInputHandler=e.proxy(this._focusInput,this),this._initial=this.element.val(),this._values=[],i=this.options.value,null!==i&&i.length||(this._noInitialValue=!0),this._isNullorUndefined(i)||(this._valueMethodCalled=!0,this._values=e.isArray(i)?i.slice(0):[i]),this._inputTemplate(),this._accessors(),this._setTreeViewOptions(this.options),this._dataSource(),this._selection._initWrapper(),this._placeholder(!0),this._tabindex(),this.wrapper.data(E,this.wrapper.attr(E)),this.tree=e("<div/>").attr({tabIndex:-1,"aria-hidden":!0}),this.list=e("<div class='k-list-container'/>").append(this.tree),this._header(),this._noData(),this._footer(),this._reset(),this._popup(),this.popup.one("open",z(this._popupOpen,this)),this._clearButton(),this._filterHeader(),this._treeview(),this._renderFooter(),this._checkAll(),this._enable(),this._toggleCloseVisibility(),this.options.autoBind||(o=n.text||"",this._isNullorUndefined(n.value)?o?this._textAccessor(o):n.placeholder&&this._placeholder(!0):this._preselect(n.value)),a=e(this.element).parents("fieldset").is(":disabled"),a&&this.enable(!1),this._valueMethodCalled=!1,r.notify(this)},_preselect:function(e,t){this._selection._preselect(e,t)},_setTreeViewOptions:function(t){var n={autoBind:t.autoBind,checkboxes:t.checkboxes,dataImageUrlField:t.dataImageUrlField,dataSpriteCssClassField:t.dataSpriteCssClassField,dataTextField:t.dataTextField,dataUrlField:t.dataUrlField,loadOnDemand:t.loadOnDemand};this.options.treeview=e.extend({},n,this.options.treeview),t.template&&(this.options.treeview.template=t.template)},_dataSource:function(){var t=this.options.dataSource;this.dataSource=r.data.HierarchicalDataSource.create(t),t&&e.extend(this.options.treeview,{dataSource:this.dataSource})},_popupOpen:function(){var e=this.popup;e.wrapper=r.wrap(e.element)},_getSelection:function(){return this._isMultipleSelection()?new a.DropDownTree.MultipleSelection(this):new a.DropDownTree.SingleSelection(this)},setDataSource:function(e){this._isDataSourceSet=!0,this._tags&&(this._noInitialValue=!0,this.setValue([]),this._tags.empty(),this.span.show(),this._multipleTags.empty()),this.dataSource=e,this.treeview.setDataSource(e),this._isDataSourceSet=!1},_isMultipleSelection:function(){return this.options&&(this.options.treeview.checkboxes||this.options.checkboxes)},options:{name:"DropDownTree",animation:{},autoBind:!0,autoClose:!0,autoWidth:!1,clearButton:!0,dataTextField:"",dataValueField:"",dataImageUrlField:"",dataSpriteCssClassField:"",dataUrlField:"",delay:500,enabled:!0,enforceMinLength:!1,filter:"none",height:200,ignoreCase:!0,index:0,loadOnDemand:!1,messages:{singleTag:"item(s) selected",clear:"clear",deleteTag:"delete",noData:"No data found."},minLength:1,checkboxes:!1,noDataTemplate:!0,placeholder:"",checkAll:!1,checkAllTemplate:"Check all",tagMode:"multiple",template:null,text:null,treeview:{},valuePrimitive:!1,footerTemplate:"",headerTemplate:"",value:null,valueTemplate:null,popup:null},events:["open","close","dataBound",F,"select","filtering"],focus:function(){this.wrapper.focus()},dataItem:function(e){return this.treeview.dataItem(e)},readonly:function(e){this._editable({readonly:e===t||e,disable:!1}),this._toggleCloseVisibility()},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)}),this._toggleCloseVisibility()},toggle:function(e){this._toggle(e)},open:function(){var e=this.popup;this.options.autoBind||this.dataSource.data().length||(this.treeview._progress(!0),this._isFilterEnabled()?this._search():this.dataSource.fetch()),!e.visible()&&this._allowOpening()&&(this._isMultipleSelection()&&e.element.addClass("k-multiple-selection"),e.element.addClass("k-popup-dropdowntree"),e.one("activate",this._focusInputHandler),e._hovered=!0,e.open())},close:function(){this.popup.close()},search:function(t){var n,i=this.options;if(clearTimeout(this._typingTimeout),!i.enforceMinLength&&!t.length||t.length>=i.minLength){if(n=this._getFilter(t),this.trigger("filtering",{filter:n})||e.isArray(this.options.dataTextField))return;this._filtering=!0,this.treeview.dataSource.filter(n)}},_getFilter:function(e){return{field:this.options.dataTextField,operator:this.options.filter,value:e,ignoreCase:this.options.ignoreCase}},refresh:function(){var t=this.treeview.dataSource.flatView();this._renderFooter(),this._renderNoData(),this.filterInput&&this.checkAll&&this.checkAll.toggle(!this.filterInput.val().length),this.tree.toggle(!!t.length),e(this.noData).toggle(!t.length)},setOptions:function(e){s.fn.setOptions.call(this,e),this._setTreeViewOptions(e),this._dataSource(),this.options.treeview&&this.treeview.setOptions(this.options.treeview),e.height&&this.tree&&this.tree.css("max-height",e.height),this._header(),this._noData(),this._footer(),this._renderFooter(),this._renderNoData(),this.span&&(this._isMultipleSelection()||this.span.hasClass("k-readonly"))&&this._placeholder(!0),this._inputTemplate(),this._accessors(),this._filterHeader(),this._checkAll(),this._enable(),e&&(e.enable||e.enabled)&&this.enable(!0),this._clearButton()},destroy:function(){r.ui.Widget.fn.destroy.call(this),this.treeview&&this.treeview.destroy(),this.popup.destroy(),this.wrapper.off(p),this._clear.off(p),this._inputWrapper.off(p),this.filterInput&&this.filterInput.off(p),this.tagList&&this.tagList.off(p),r.unbind(this.tagList),this.options.checkAll&&this.checkAll&&this.checkAll.off(p),this._form&&this._form.off("reset",this._resetHandler)},setValue:function(t){t=e.isArray(t)||t instanceof d?t.slice(0):[t],this._values=t},items:function(){return this.treeview.items()},value:function(e){var n=this;if(e)if(n.filterInput&&n.dataSource._filter)n._filtering=!0,n.dataSource.filter({});else if(!n.dataSource.data().length||!n.treeview.dataSource.data().length)return n.dataSource.fetch(function(){n.options.loadOnDemand?n._selection._setValue(e):n.one("allNodesAreLoaded",function(){n._selection._setValue(e)})}),t;return n._selection._setValue(e)},text:function(e){var n,i=this.options.ignoreCase;return e=null===e?"":e,e===t||this._isMultipleSelection()?this._textAccessor():"string"!=typeof e?(this._textAccessor(e),t):(n=i?e:e.toLowerCase(),this._selectItemByText(n),this._textAccessor(n),t)},_header:function(){var n,i=this,o=e(i.header),a=i.options.headerTemplate;return this._angularElement(o,"cleanup"),r.destroy(o),o.remove(),a?(n="function"!=typeof a?r.template(a):a,o=e(n({})),i.header=o[0]?o:null,i.list.prepend(o),this._angularElement(i.header,"compile"),t):(i.header=null,t)},_noData:function(){var n=this,i=e(n.noData),o=n.options.noDataTemplate===!0?n.options.messages.noData:n.options.noDataTemplate;return n.angular("cleanup",function(){return{elements:i}}),r.destroy(i),i.remove(),o?(n.noData=e('<div class="k-nodata" style="display:none"><div></div></div>').appendTo(n.list),
n.noDataTemplate="function"!=typeof o?r.template(o):o,t):(n.noData=null,t)},_renderNoData:function(){var e=this,t=e.noData;t&&(this._angularElement(t,"cleanup"),t.children(":first").html(e.noDataTemplate({instance:e})),this._angularElement(t,"compile"))},_footer:function(){var n=this,i=e(n.footer),o=n.options.footerTemplate;return this._angularElement(i,"cleanup"),r.destroy(i),i.remove(),o?(n.footer=e('<div class="k-footer"></div>').appendTo(n.list),n.footerTemplate="function"!=typeof o?r.template(o):o,t):(n.footer=null,t)},_renderFooter:function(){var e=this,t=e.footer;t&&(this._angularElement(t,"cleanup"),t.html(e.footerTemplate({instance:e})),this._angularElement(t,"compile"))},_enable:function(){var e=this,n=e.options,i=e.element.is("[disabled]");n.enable!==t&&(n.enabled=n.enable),!n.enabled||i?e.enable(!1):e.readonly(e.element.is("[readonly]"))},_adjustListWidth:function(){var e,t,n=this,i=n.list,o=i[0].style.width,r=n.wrapper;if(i.data(v)||!o)return e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=parseFloat(e&&e.width)||b(r),e&&_.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),o="border-box"!==i.css("box-sizing")?t-(b(i)-i.width()):t,i.css({fontFamily:r.css("font-family"),width:n.options.autoWidth?"auto":o,minWidth:o,whiteSpace:n.options.autoWidth?"nowrap":"normal"}).data(v,o),!0},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=o.on("reset",t._resetHandler))},_popup:function(){var e=this;e.popup=new a.Popup(e.list,u({},e.options.popup,{anchor:e.wrapper,open:z(e._openHandler,e),close:z(e._closeHandler,e),animation:e.options.animation,isRtl:m.isRtl(e.wrapper),autosize:e.options.autoWidth}))},_angularElement:function(e,t){e&&this.angular(t,function(){return{elements:e}})},_allowOpening:function(){return this.options.noDataTemplate||this.treeview.dataSource.flatView().length},_placeholder:function(e){this.span&&this.span.toggleClass("k-readonly",e).text(e?this.options.placeholder:"")},_currentValue:function(e){var t=this._value(e);return t||0===t||(t=e),t},_checkValue:function(n){var i,o,r,a,s="",l=-1,d=this.value(),u="multiple"===this.options.tagMode;if((n||0===n)&&(n.level&&(n._level=n.level()),s=this._currentValue(n),l=d.indexOf(s)),n.checked){if(i=e.grep(this._tags,function(e){return e.uid===n._tagUid}),i.length)return;o=new c(n.toJSON()),n._tagUid=o.uid,this._tags.push(o),1===this._tags.length&&(this.span.hide(),u||this._multipleTags.push(o)),l===-1&&(d.push(s),this.setValue(d))}else{if(r=this._tags.find(function(e){return e.uid===n._tagUid}),a=this._tags.indexOf(r),a===-1)return this._treeViewCheckAllCheck(n),t;this._tags.splice(a,1),0===this._tags.length&&(this.span.show(),u||this._multipleTags.splice(0,1)),l!==-1&&(d.splice(l,1),this.setValue(d))}this._treeViewCheckAllCheck(n),this._preventChangeTrigger||this._valueMethodCalled||this._noInitialValue||this.trigger(F),this.options.autoClose&&this.popup.visible()&&(this.close(),this.wrapper.focus()),this.popup.position(),this._toggleCloseVisibility(),this._updateSelectedOptions()},_updateSelectedOptions:function(){var e,t,n,i,o;if("select"===this.element[0].tagName.toLowerCase()){if(e=this._tags,t="",n=null,i=null,e.length)for(o=0;o<e.length;o++)n=e[o],i=this._value(n),t+=this._option(i,this._text(n),!0);this.element.html(t)}},_option:function(e,n,i){var o="<option";return e!==t&&(e+="",e.indexOf('"')!==-1&&(e=e.replace(P,"&quot;")),o+=' value="'+e+'"'),i&&(o+=" selected"),o+=">",n!==t&&(o+=r.htmlEncode(n)),o+="</option>"},_selectValue:function(e){var t="",n="";(e||0===e)&&(e.level&&(e._level=e.level()),n=this._text(e)||e,t=this._currentValue(e)),null===t&&(t=""),this.setValue(t),this._textAccessor(n,e),this._accessor(t),this._preventChangeTrigger||this._valueMethodCalled||this.trigger(F),this._valueMethodCalled=!1,this.options.autoClose&&this.popup.visible()&&(this.close(),this.wrapper.focus()),this.popup.position(),this._toggleCloseVisibility()},_clearClick:function(e){e.stopPropagation(),this.wrapper.focus(),this._clearTextAndValue()},_clearTextAndValue:function(){this.setValue([]),this._clearInput(),this._clearText(),this._selection._clearValue(),this.popup.position(),this._toggleCloseVisibility()},_clearText:function(){this.options.placeholder?this._placeholder(!0):this.span&&this.span.html("")},_inputTemplate:function(){var t=this.options.valueTemplate;t=t?r.template(t):e.proxy(r.template("#:this._text(data)#",{useWithBlock:!1}),this),this.valueTemplate=t},_assignInstance:function(e,t){var i=this.options.dataTextField,o={};return i?(n(o,i.split(w),e),n(o,this.options.dataValueField.split(w),t),o=new c(o)):o=e,o},_textAccessor:function(n,i){var o,r=this.valueTemplate,a=this.span;if(n===t)return a.text();a.removeClass("k-readonly"),!i&&(e.isPlainObject(n)||n instanceof c)&&(i=n),i||(i=this._assignInstance(n,this._accessor())),o=function(){return{elements:a.get(),data:[{dataItem:i}]}},this.angular("cleanup",o);try{a.html(r(i))}catch(s){a&&a.html("")}this.angular("compile",o)},_accessors:function(){var t=this.element,n=this.options,i=r.getter,o=t.attr(r.attr("text-field")),a=t.attr(r.attr("value-field")),s=function(t){var n,o;return e.isArray(t)?(n=t.length,o=e.map(t,function(e){return function(t){return t[e]}}),function(e){var t=e._level;if(t||0===t)return o[Math.min(t,n-1)](e)}):i(t)};!n.dataTextField&&o&&(n.dataTextField=o),!n.dataValueField&&a&&(n.dataValueField=a),n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value",this._text=s(n.dataTextField),this._value=s(n.dataValueField)},_accessor:function(e,t){return this._accessorInput(e,t)},_accessorInput:function(e){var n=this.element[0];return e===t?n.value:(null===e&&(e=""),n.value=e,t)},_clearInput:function(){var e=this.element[0];e.value=""},_clearButton:function(){var t=this.options.messages.clear;this._clear||(this._clear=e('<span unselectable="on" class="k-icon k-clear-value k-i-close" title="'+t+'"></span>').attr({role:"button",tabIndex:-1})),this.options.clearButton?(this._clear.insertAfter(this.span),this.wrapper.addClass("k-dropdowntree-clearable")):this.options.clearButton||this._clear.remove()},_toggleCloseVisibility:function(){var e=this.element.attr(y),t=this.value()&&!this._isMultipleSelection()||this.value().length,n=this.element.val()&&this.element.val()!==this.options.placeholder;e||!t&&!n?this._hideClear():this._showClear()},_showClear:function(){this._clear&&this._clear.removeClass(g)},_hideClear:function(){this._clear&&this._clear.addClass(g)},_openHandler:function(e){this._adjustListWidth(),this.trigger(M)?e.preventDefault():(this.wrapper.attr("aria-expanded",!0),this.tree.attr("aria-hidden",!1).attr("role","tree"))},_closeHandler:function(e){this.trigger(R)?e.preventDefault():(this.wrapper.attr("aria-expanded",!1),this.tree.attr("aria-hidden",!0))},_treeview:function(){var e=this;e.options.height&&e.tree.css("max-height",e.options.height),e.tree.attr("id",r.guid()),e.treeview=new l(e.tree,u({},e.options.treeview),e),e.dataSource=e.treeview.dataSource,e.treeview.bind("select",function(t){e.trigger("select",t)})},_treeViewDataBound:function(e){var n,i,o;return e.node&&this._prev&&this._prev.length&&e.sender.expand(e.node),this._filtering?(e.node||(this._filtering=!1),this._isMultipleSelection()||this._deselectItem(e),t):(this.treeview||(this.treeview=e.sender),e.node?(i=e.sender.dataItem(e.node),i&&(o=i.children.data(),this._checkLoadedItems(o))):(n=e.sender.dataSource.data(),this._checkLoadedItems(n),this._noInitialValue&&(this._noInitialValue=!1)),this.trigger("dataBound",e),t)},_deselectItem:function(e){var t,n,i=[];for(e.node?(t=e.sender.dataItem(e.node),t&&(i=t.children.data())):i=e.sender.dataSource.data(),n=0;n<i.length;n++)i[n].selected&&!this._valueComparer(i[n],this.value())&&i[n].set("selected",!1)},_checkLoadedItems:function(e){var t,n=this.value();if(e)for(t=0;t<e.length;t++)this._selection._checkLoadedItem(e[t],n)},_treeViewCheckAllCheck:function(e){this.options.checkAll&&this.checkAll&&(this._getAllChecked(),e.checked?this._checkCheckAll():this._uncheckCheckAll())},_checkCheckAll:function(){var e=this.checkAll.find(".k-checkbox");this._allItemsAreChecked?e.prop("checked",!0).prop("indeterminate",!1):e.prop("indeterminate",!0)},_uncheckCheckAll:function(){var e=this.checkAll.find(".k-checkbox");this._allItemsAreUnchecked?e.prop("checked",!1).prop("indeterminate",!1):e.prop("indeterminate",!0)},_filterHeader:function(){var t;this.filterInput&&(this.filterInput.off(p).parent().remove(),this.filterInput=null),this._isFilterEnabled()&&(this._disableCheckChildren(),t='<span class="k-icon k-i-zoom"></span>',this.filterInput=e('<input class="k-textbox"/>').attr({placeholder:this.element.attr("placeholder"),title:this.element.attr("title"),role:"listbox","aria-haspopup":!0,"aria-expanded":!1}),this.filterInput.on("input",z(this._filterChange,this)),e('<span class="k-list-filter" />').insertBefore(this.tree).append(this.filterInput.add(t)))},_filterChange:function(){this.filterInput&&this._search()},_disableCheckChildren:function(){this._isMultipleSelection()&&this.options.treeview.checkboxes&&this.options.treeview.checkboxes.checkChildren&&(this.options.treeview.checkboxes.checkChildren=!1)},_checkAll:function(){this.checkAll&&(this.checkAll.find(".k-checkbox-label, .k-checkbox").off(p),this.checkAll.remove(),this.checkAll=null),this._isMultipleSelection()&&this.options.checkAll&&(this.checkAll=e('<div class="k-check-all"><input type="checkbox" class="k-checkbox"/><span class="k-checkbox-label">Check All</span></div>').insertBefore(this.tree),this.checkAll.find(".k-checkbox-label").html(r.template(this.options.checkAllTemplate)({instance:this})),this.checkAll.find(".k-checkbox-label").on(I+p,z(this._clickCheckAll,this)),this.checkAll.find(".k-checkbox").on("change"+p,z(this._changeCheckAll,this)).on("keydown"+p,z(this._keydownCheckAll,this)),this._disabledCheckedItems=[],this._disabledUnCheckedItems=[],this._getAllChecked(),this._allItemsAreUnchecked||this._checkCheckAll())},_changeCheckAll:function(){var e=this.checkAll.find(".k-checkbox"),t=e.prop("checked");this._updateCheckAll(t)},_updateCheckAll:function(e){var t=this.checkAll.find(".k-checkbox");this._toggleCheckAllItems(e),t.prop("checked",e),this._disabledCheckedItems.length&&this._disabledUnCheckedItems.length?t.prop("indeterminate",!0):this._disabledCheckedItems.length?t.prop("indeterminate",!e):this._disabledUnCheckedItems.length?t.prop("indeterminate",e):t.prop("indeterminate",!1),this._disabledCheckedItems=[],this._disabledUnCheckedItems=[]},_keydownCheckAll:function(e){var n=e.keyCode,i=e.altKey;return i&&n===f.UP||n===f.ESC||n===f.TAB?(this.close(),this.wrapper.focus(),e.preventDefault(),t):(n===f.UP&&(this.filterInput?this.filterInput.focus():this.wrapper.focus(),e.preventDefault()),n===f.DOWN&&(this.tree&&this.tree.is(":visible")&&this.tree.focus(),e.preventDefault()),n===f.SPACEBAR&&(_.msie||_.edge)&&(this._clickCheckAll(),e.preventDefault()),t)},_clickCheckAll:function(){var e=this.checkAll.find(".k-checkbox"),t=e.prop("checked");this._updateCheckAll(!t),e.focus()},_dfs:function(e,t,n){for(var i=0;i<e.length&&this[t](e[i],n);i++)this._traverceChildren(e[i],t,n)},_uncheckItemByUid:function(e){this._dfs(this.dataSource.data(),"_uncheckItemEqualsUid",e)},_uncheckItemEqualsUid:function(e,t){return e.enabled===!1||e._tagUid!=t||(e.set("checked",!1),!1)},_selectItemByText:function(e){this._dfs(this.dataSource.data(),"_itemEqualsText",e)},_itemEqualsText:function(e,t){return e.enabled===!1||this._text(e)!==t||(this.treeview.select(this.treeview.findByUid(e.uid)),this._selectValue(e),!1)},_selectItemByValue:function(e){this._dfs(this.dataSource.data(),"_itemEqualsValue",e)},_itemEqualsValue:function(e,t){return e.enabled===!1||!this._valueComparer(e,t)||(this.treeview.select(this.treeview.findByUid(e.uid)),!1)},_checkItemByValue:function(e){var t,n=this.treeview.dataItems();for(t=0;t<e.length;t++)this._dfs(n,"_checkItemEqualsValue",e[t])},_checkItemEqualsValue:function(e,t){return e.enabled===!1||!this._valueComparer(e,t)||(e.set("checked",!0),!1)},_valueComparer:function(e,t){var n,i,o=this._value(e);return this._isNullorUndefined(o)?(n=this._text(e),!!n&&(this._text(t)?n==this._text(t):n==t)):!this._isNullorUndefined(t)&&(i=this._value(t),i?o==i:o==t)},_isNullorUndefined:function(e){return e===t||null===e},_getAllChecked:function(){return this._allCheckedItems=[],this._allItemsAreChecked=!0,this._allItemsAreUnchecked=!0,this._dfs(this.dataSource.data(),"_getAllCheckedItems"),this._allCheckedItems},_getAllCheckedItems:function(e){return this._allItemsAreChecked&&(this._allItemsAreChecked=e.checked),this._allItemsAreUnchecked&&(this._allItemsAreUnchecked=!e.checked),e.checked&&this._allCheckedItems.push(e),!0},_traverceChildren:function(e,t,n){var i=e._childrenOptions&&e._childrenOptions.schema?e._childrenOptions.schema.data:null,o=e[i]||e.items||e.children;o&&this._dfs(o,t,n)},_toggleCheckAllItems:function(e){this._dfs(this.dataSource.data(),"_checkAllCheckItem",e)},_checkAllCheckItem:function(e,t){return e.enabled===!1?e.checked?this._disabledCheckedItems.push(e):this._disabledUnCheckedItems.push(e):e.set("checked",t),!0},_isFilterEnabled:function(){var e=this.options.filter;return e&&"none"!==e},_editable:function(t){var n=this,i=n.element,o=t.disable,r=t.readonly,a=n.wrapper.add(n.filterInput).off(p),s=n._inputWrapper.off(A);n._isMultipleSelection()&&n.tagList.off(I+p),r||o?o?(a.removeAttr(E),s.addClass(x)):(a.attr(E,a.data(E)),s.removeClass(x),a.on("focusin"+p,z(n._focusinHandler,n)).on("focusout"+p,z(n._focusoutHandler,n))):(i.removeAttr(k).removeAttr(y),s.removeClass(x).on(A,n._toggleHover),n._clear.on("click"+p,z(n._clearClick,n)),a.attr(E,a.data(E)).attr(C,!1).attr(S,!1).on("keydown"+p,z(n._keydown,n)).on("focusin"+p,z(n._focusinHandler,n)).on("focusout"+p,z(n._focusoutHandler,n)),n.wrapper.on(I+p,z(n._wrapperClick,n)),this._isMultipleSelection()&&(n.tagList.on(I+p,"li.k-button",function(t){e(t.currentTarget).addClass(D)}),n.tagList.on(I+p,".k-select",function(e){n._removeTagClick(e)}))),i.attr(k,o).attr(y,r),a.attr(C,o).attr(S,r)},_focusinHandler:function(){this._inputWrapper.addClass(D),this._prevent=!1},_focusoutHandler:function(){var e=this;this._isMultipleSelection()&&this.tagList.find(w+D).removeClass(D),e._prevent||(this._inputWrapper.removeClass(D),e._prevent=!0,e.element.blur())},_toggle:function(e){e=e!==t?e:!this.popup.visible(),this[e?M:R]()},_wrapperClick:function(e){e.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._prevent=!1,this._toggle()},_toggleHover:function(t){e(t.currentTarget).toggleClass(T,"mouseenter"===t.type)},_focusInput:function(){this.filterInput?this.filterInput.focus():this.checkAll?this.checkAll.find(".k-checkbox").focus():this.tree.is(":visible")&&this.tree.focus()},_keydown:function(e){var n,i,o,r,a=e.keyCode,s=e.altKey,l=this.popup.visible();if(this.filterInput&&(n=this.filterInput[0]===h()),this.wrapper&&(i=this.wrapper[0]===h()),i){if(a===f.ESC)return this._clearTextAndValue(),e.preventDefault(),t;if(this._isMultipleSelection()){if(a===f.LEFT)return this._focusPrevTag(),e.preventDefault(),t;if(a===f.RIGHT)return this._focusNextTag(),e.preventDefault(),t;if(a===f.HOME)return this._focusFirstTag(),e.preventDefault(),t;if(a===f.END)return this._focusLastTag(),e.preventDefault(),t;if(a===f.DELETE)return o=this.tagList.find(w+D).first(),o.length&&(r=this._tags[o.index()],this._removeTag(r)),e.preventDefault(),t;if(a===f.BACKSPACE)return o=this.tagList.find(w+D).first(),o.length?(r=this._tags[o.index()],this._removeTag(r)):(o=this._focusLastTag(),o.length&&(r=this._tags[o.index()],this._removeTag(r))),e.preventDefault(),t}}return n&&(a===f.ESC&&this._clearFilter(),a!==f.UP||s||(this.wrapper.focus(),e.preventDefault()),_.msie&&_.version<10&&(a!==f.BACKSPACE&&a!==f.DELETE||this._search()),a===f.TAB)?(this.close(),this.wrapper.focus(),e.preventDefault(),t):s&&a===f.UP||a===f.ESC?(this.close(),this.wrapper.focus(),e.preventDefault(),t):a===f.ENTER&&this._typingTimeout&&this.filterInput&&l?(e.preventDefault(),t):(a!==f.SPACEBAR||n||(this._toggle(!l),e.preventDefault()),s&&a===f.DOWN&&!l&&(this.open(),e.preventDefault()),a===f.DOWN&&l&&(this.filterInput&&!n?this.filterInput.focus():this.checkAll&&this.checkAll.is(":visible")?this.checkAll.find("input").focus():this.tree.is(":visible")&&this.tree.focus(),e.preventDefault()),a===f.TAB&&l&&(this.close(),this.wrapper.focus(),e.preventDefault()),t)},_focusPrevTag:function(){var e,t=this.tagList.find(w+D);t.length?(e=this.wrapper.attr("aria-activedescendant"),t.first().removeClass(D).removeAttr("id").prev().addClass(D).attr("id",e),this.wrapper.attr("aria-activedescendant",e)):this._focusLastTag()},_focusNextTag:function(){var e,t=this.tagList.find(w+D);t.length?(e=this.wrapper.attr("aria-activedescendant"),t.first().removeClass(D).removeAttr("id").next().addClass(D).attr("id",e),this.wrapper.attr("aria-activedescendant",e)):this._focusFirstTag()},_focusFirstTag:function(){var e,t=this.wrapper.attr("aria-activedescendant");return this._clearDisabledTag(),e=this.tagList.children("li").first().addClass(D).attr("id",t),this.wrapper.attr("aria-activedescendant",t),e},_focusLastTag:function(){var e,t=this.wrapper.attr("aria-activedescendant");return this._clearDisabledTag(),e=this.tagList.children("li").last().addClass(D).attr("id",t),this.wrapper.attr("aria-activedescendant",t),e},_clearDisabledTag:function(){this.tagList.find(w+D).removeClass(D).removeAttr("id")},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){var t=e.filterInput.val();e._prev!==t&&(e._prev=t,e.search(t)),e._typingTimeout=null},e.options.delay)},_clearFilter:function(){this.filterInput.val().length&&(this.filterInput.val(""),this._prev="",this._filtering=!0,this.treeview.dataSource.filter({}))},_removeTagClick:function(t){t.stopPropagation();var n=this._tags[e(t.currentTarget.parentElement).index()];this._removeTag(n)},_removeTag:function(e){if(e){var t=e.uid;this._uncheckItemByUid(t)}}});a.plugin(B),i=r.Class.extend({init:function(e){this._dropdowntree=e},_initWrapper:function(){this._wrapper(),this._span()},_preselect:function(e){var t=this._dropdowntree;t._selectValue(e)},_wrapper:function(){var e,t=this._dropdowntree,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent(),e[0].style.cssText=i.style.cssText,e[0].title=i.title),t._focused=t.wrapper=e.addClass("k-widget k-dropdowntree").addClass(i.className).removeClass("input-validation-error").css("display","").attr({accesskey:n.attr("accesskey"),unselectable:"on",role:"listbox","aria-haspopup":!0,"aria-expanded":!1}),n.hide().removeAttr("accesskey")},_span:function(){var t,n=this._dropdowntree,i=n.wrapper,o="span.k-input";t=i.find(o),t[0]||(i.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input">&nbsp;</span><span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-arrow-60-down"></span></span></span>').append(n.element),t=i.find(o)),n.span=t,n._inputWrapper=e(i[0].firstChild),n._arrow=i.find(".k-select"),n._arrowIcon=n._arrow.find(".k-icon")},_setValue:function(e){var n,i=this._dropdowntree;return e===t||null===e?(n=i._values.slice()[0],e="object"==typeof n?n:i._accessor()||n,e===t||null===e?"":e):(i._valueMethodCalled=!0,0===e.length?(i._clearTextAndValue(),i._valueMethodCalled=!1,t):(i._selectItemByValue(e),i._toggleCloseVisibility(),t))},_clearValue:function(){var e=this._dropdowntree,t=e.treeview.select();e.treeview.dataItem(t)&&(e.treeview.dataItem(t).set("selected",!1),e._valueMethodCalled||e.trigger(F))},_checkLoadedItem:function(e,t){var n=this._dropdowntree;n._isNullorUndefined(t)||""===t?!t&&e.selected&&n.treeview.select(n.treeview.findByUid(e.uid)):n._valueComparer(e,t)?(n._preventChangeTrigger=!0,e.set("selected",!0),n._preventChangeTrigger=!1):e.selected&&n.treeview.select(n.treeview.findByUid(e.uid))}}),o=r.Class.extend({init:function(e){this._dropdowntree=e},_initWrapper:function(){var t=this._dropdowntree;this._tagTemplate(),t.element.attr("multiple","multiple").hide(),this._wrapper(),t._tags=new d([]),t._multipleTags=new d([]),this._tagList(),t.span=e('<span unselectable="on" class="k-input">&nbsp;</span>').insertAfter(t.tagList),t._inputWrapper=e(t.wrapper[0].firstChild)},_preselect:function(t,n){var i=this._dropdowntree,o=n||i.options.value;e.isArray(t)||t instanceof r.data.ObservableArray||(t=[t]),(e.isPlainObject(t[0])||t[0]instanceof r.data.ObservableObject||!i.options.dataValueField)&&(i.dataSource.data(t),i.value(o))},_tagTemplate:function(){var e=this._dropdowntree,t=e.options,n=t.valueTemplate,i="multiple"===t.tagMode,o=t.messages.singleTag;n=n?r.template(n):e.valueTemplate,e.valueTemplate=function(t){return i?'<li class="k-button '+(t.enabled===!1?"k-state-disabled":"")+'" unselectable="on" role="option" '+(t.enabled===!1?'aria-disabled="true"':"")+'><span unselectable="on">'+n(t)+'</span><span title="'+e.options.messages.deleteTag+'" aria-label="'+e.options.messages.deleteTag+'" class="k-select"><span class="k-icon k-i-close"></span></span></li>':'<li class="k-button" unselectable="on" role="option"><span unselectable="on" data-bind="text: tags.length"></span><span unselectable="on">&nbsp;'+o+"</span></li>"}},_wrapper:function(){var t=this._dropdowntree,n=t.element,i=n.parent("span.k-dropdowntree");i[0]||(i=n.wrap('<div class="k-widget k-dropdowntree" unselectable="on" />').parent(),i[0].style.cssText=n[0].style.cssText,i[0].title=n[0].title,e('<div class="k-multiselect-wrap k-floatwrap" unselectable="on" />').insertBefore(n)),t.wrapper=i.addClass(n[0].className).css("display","").attr({role:"listbox","aria-activedescendant":r.guid(),"aria-haspopup":!0,"aria-expanded":!1}),t._innerWrapper=e(i[0].firstChild)},_tagList:function(){var t,n,i,o=this._dropdowntree,a=o._innerWrapper.children("ul");a[0]||(t="multiple"===o.options.tagMode,n=t?"tags":"multipleTag",a=e('<ul role="listbox" unselectable="on" data-template="tagTemplate" data-bind="source: '+n+'" class="k-reset"/>').appendTo(o._innerWrapper)),o.tagList=a,o.tagList.attr("id",r.guid()+"_tagList"),o.wrapper.attr("aria-owns",o.tagList.attr("id")),i=r.observable({multipleTag:o._multipleTags,tags:o._tags,tagTemplate:o.valueTemplate}),r.bind(o.tagList,i),o.tagList.attr("data-stop",!0)},_setValue:function(e){var n=this._dropdowntree,i=n._values;return e===t||null===e?n._values.slice():(n.setValue(e),n._valueMethodCalled=!0,e.length?(this._removeValues(i,e),n._checkItemByValue(e)):n._clearTextAndValue(),n._valueMethodCalled=!1,n._toggleCloseVisibility(),t)},_removeValues:function(e,t){var n,i,o=this._dropdowntree,r=this._getNewValues(e,t);for(n=0;n<r.length;n++)for(i=0;i<o._tags.length;i++)o._valueComparer(o._tags[i],r[n])&&o._uncheckItemByUid(o._tags[i].uid)},_getNewValues:function(e,t){var n,i=[];for(n=0;n<e.length;n++)t.indexOf(e[n])===-1&&i.push(e[n]);return i},_clearValue:function(){var e,t,n=this._dropdowntree,i=n._tags.slice();for(e=0;e<i.length;e++)t=i[e].uid,n._preventChangeTrigger=!0,n._uncheckItemByUid(t);i.length&&(n._preventChangeTrigger=!1,n._valueMethodCalled||n.trigger(F))},_checkLoadedItem:function(e,n){var i=this._dropdowntree;return i._noInitialValue&&e.checked?(i._checkValue(e),t):(!n.length&&!this._isDataSourceSet||(n.indexOf(i._currentValue(e))!==-1||n.indexOf(e))===-1||this._findTag(i._currentValue(e))||(e.checked?i._checkValue(e):(i._preventChangeTrigger=!0,e.set("checked",!0),i._preventChangeTrigger=!1)),t)},_findTag:function(e){var t=this._dropdowntree;return t._tags.find(function(n){return t._valueComparer(n,e)})}}),r.ui.DropDownTree.SingleSelection=i,r.ui.DropDownTree.MultipleSelection=o}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.combobox.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.List,r=i.Select,a=n.caret,s=n.support,l=s.placeholder,d=n._activeElement,c=n.keys,u=".kendoComboBox",h=u+"FocusEvent",p="click"+u,f="mousedown"+u,m="disabled",g="readonly",v="change",_="k-i-loading",b="k-state-default",w="k-state-focused",k="k-state-disabled",y="aria-disabled",x="aria-readonly",C="off",S="filter",T="accept",D="rebind",A="mouseenter"+u+" mouseleave"+u,E=e.proxy,I=/(\r\n|\n|\r)/gm,M=r.extend({init:function(t,i){var o,a,s=this;s.ns=u,i=e.isArray(i)?{dataSource:i}:i,r.fn.init.call(s,t,i),i=s.options,t=s.element.on("focus"+u,E(s._focusHandler,s)),i.placeholder=i.placeholder||t.attr("placeholder"),s._reset(),s._wrapper(),s._input(),s._clearButton(),s._tabindex(s.input),s._popup(),s._dataSource(),s._ignoreCase(),s._enable(),s._attachFocusEvents(),s._oldIndex=s.selectedIndex=-1,s._aria(),s._initialIndex=i.index,s.requireValueMapper(s.options),s._initList(),s._cascade(),i.autoBind?s._filterSource():(o=i.text,!o&&s._isSelect&&(o=t.children(":selected").text()),o&&s._setText(o)),o||s._placeholder(),a=e(s.element).parents("fieldset").is(":disabled"),a&&s.enable(!1),n.notify(s),s._toggleCloseVisibility()},options:{name:"ComboBox",enabled:!0,index:-1,text:null,value:null,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:1,enforceMinLength:!1,height:200,highlightFirst:!0,filter:"none",placeholder:"",suggest:!1,cascadeFrom:"",cascadeFromField:"",cascadeFromParentField:"",ignoreCase:!0,animation:{},virtual:!1,template:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",clearButton:!0,syncValueAndText:!0,autoWidth:!1,popup:null},events:["open","close",v,"select","filtering","dataBinding","dataBound","cascade","set"],setOptions:function(e){var t=this._listOptions(e);r.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria(),this._clearButton()},destroy:function(){var e=this;e.input.off(u),e.input.off(h),e.element.off(u),e.wrapper.off(u),e._inputWrapper.off(u),clearTimeout(e._pasteTimeout),e._arrow.off(p+" "+f),e._clear.off(p+" "+f),r.fn.destroy.call(e)},_change:function(){var e=this,n=e.text(),i=n&&n!==e._oldText&&n!==e.options.placeholder,o=e.selectedIndex,a=o===-1;return!e.options.syncValueAndText&&!e.value()&&a&&i?(e._old="",e._oldIndex=o,e._oldText=n,e._typing||e.element.trigger(v),e.trigger(v),e._typing=!1,t):(r.fn._change.call(e),e._toggleCloseVisibility(),t)},_attachFocusEvents:function(){var e=this;e.input.on("focus"+h,E(e._inputFocus,e)).on("focusout"+h,E(e._inputFocusout,e))},_focusHandler:function(e){e.target===this.element[0]&&this.input.focus()},_arrowClick:function(){this._toggle()},_inputFocus:function(){this._inputWrapper.addClass(w),this._placeholder(!1)},_inputFocusout:function(){var e,n,i=this,o=i.value();return i._userTriggered=!0,i._inputWrapper.removeClass(w),clearTimeout(i._typingTimeout),i._typingTimeout=null,i.text(i.text()),e=i._focus(),n=this.listView.dataItemByIndex(this.listView.getElementIndex(e)),o!==i.value()&&i.trigger("select",{dataItem:n,item:e})?(i.value(o),t):(i._placeholder(),i._valueBeforeCascade=i._old,i._blur(),i.element.blur(),t)},_inputPaste:function(){var e=this;clearTimeout(e._pasteTimeout),e._pasteTimeout=null,e._pasteTimeout=setTimeout(function(){e.search()})},_editable:function(e){var t=this,n=e.disable,i=e.readonly,o=t._inputWrapper.off(u),r=t.element.add(t.input.off(u)),a=t._arrow.off(p+" "+f),s=t._clear;i||n?(o.addClass(n?k:b).removeClass(n?b:k),r.attr(m,n).attr(g,i).attr(y,n).attr(x,i)):(o.addClass(b).removeClass(k).on(A,t._toggleHover),r.removeAttr(m).removeAttr(g).attr(y,!1).attr(x,!1),a.on(p,E(t._arrowClick,t)).on(f,function(e){e.preventDefault()}),s.on(p+" touchend"+u,E(t._clearValue,t)),t.input.on("keydown"+u,E(t._keydown,t)).on("input"+u,E(t._search,t)).on("paste"+u,E(t._inputPaste,t)),t.wrapper.on(p+u,E(t._focusHandler,t))),t._toggleCloseVisibility()},open:function(){var e=this,t=e._state,n=!!e.dataSource.filter()&&e.dataSource.filter().filters.length>0,i=!e.ul.find(e.listView.focus()).length;e.popup.visible()||(!e.listView.bound()&&t!==S||t===T?(e._open=!0,e._state=D,1!==e.options.minLength&&!n||n&&e.value()&&e.selectedIndex===-1?(e.refresh(),e._openPopup(),this.options.virtual||e.listView.bound(!1)):e._filterSource()):e._allowOpening()&&(e.popup._hovered=!0,e._openPopup(),e.options.virtual?e._focusItem():i&&e.options.highlightFirst&&e.listView.focus(0)))},_scrollToFocusedItem:function(){var e=this.listView;e.scrollToIndex(e.getElementIndex(e.focus()))},_openPopup:function(){this.popup.one("activate",E(this._scrollToFocusedItem,this)),this.popup.open()},_updateSelectionState:function(){var e=this,n=e.options.text,i=e.options.value;e.listView.isFiltered()||(e.selectedIndex===-1?(n!==t&&null!==n||(n=i),e._accessor(i),e.input.val(n||e.input.val()),e._placeholder()):e._oldIndex===-1&&(e._oldIndex=e.selectedIndex))},_buildOptions:function(e){var n,i=this;i._isSelect&&(n=i._customOption,i._state===D&&(i._state=""),i._customOption=t,i._options(e,"",i.value()),n&&n[0].selected&&!i.listView._emptySearch&&i._custom(n.val()))},_updateSelection:function(){var n,i=this,o=i.listView,r=i._initialIndex,a=null!==r&&r>-1,s=i._state===S;return s?(e(o.focus()).removeClass("k-state-selected"),t):(i._fetch||(o.value().length||(a?i.select(r):i._accessor()&&o.value(i._accessor())),i._initialIndex=null,n=o.selectedDataItems()[0],n&&(i._value(n)!==i.value()?i._custom(i._value(n)):i._value(n)!==i.element[0].value&&i._accessor(i._value(n)),i.text()&&i.text()!==i._text(n)&&i._selectValue(n))),t)},_updateItemFocus:function(){var e=this.listView;this.options.highlightFirst?e.focus()||e.focusIndex()||e.focus(0):e.focus(-1)},_listBound:function(){var e=this,n=e.input[0]===d(),i=e.dataSource.flatView(),o=e.listView.skip(),r=i.length,a=e.dataSource._group?e.dataSource._group.length:0,s=o===t||0===o;e._presetValue=!1,e._renderFooter(),e._renderNoData(),e._toggleNoData(!r),e._toggleHeader(!!a&&!!r),e._resizePopup(),e.popup.position(),e._buildOptions(i),e._makeUnselectable(),e._updateSelection(),i.length&&s&&(e._updateItemFocus(),e.options.suggest&&n&&e.input.val()&&e.suggest(i[0])),e._open&&(e._open=!1,e._typingTimeout&&!n?e.popup.close():e.toggle(e._allowOpening()),e._typingTimeout=null),e._hideBusy(),e.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),this._presetValue&&(this._oldIndex=this.selectedIndex)},_get:function(e){var t,n,i;if("function"==typeof e){for(t=this.dataSource.flatView(),i=0;i<t.length;i++)if(e(t[i])){e=i,n=!0;break}n||(e=-1)}return e},_select:function(e,t){var n=this;return e=n._get(e),e===-1&&(n.input[0].value="",n._accessor("")),n.listView.select(e).done(function(){t||n._state!==S||(n._state=T),n._toggleCloseVisibility()})},_selectValue:function(e){var n=this.listView.select(),i="",o="";n=n[n.length-1],n===t&&(n=-1),this.selectedIndex=n,this.listView.isFiltered()&&n!==-1&&(this._valueBeforeCascade=this._old),n!==-1||e?((e||0===e)&&(i=this._dataValue(e),o=this._text(e)),null===i&&(i="")):(this.options.syncValueAndText?(o=this.options.dataTextField===this.options.dataValueField?this._accessor():this.input[0].value,i=o):o=this.text(),this.listView.focus(-1)),this._setDomInputValue(o),this._accessor(i!==t?i:o,n),this._placeholder(),this._triggerCascade()},_setDomInputValue:function(e){var t,n,i=this,o=a(this.input);o&&o.length&&(t=o[0]),this._prev=this.input[0].value=e,t&&this.selectedIndex===-1&&(n=s.mobileOS,n.wp||n.android?setTimeout(function(){i.input[0].setSelectionRange(t,t)},0):this.input[0].setSelectionRange(t,t))},refresh:function(){this.listView.refresh()},_toggleCloseVisibility:function(){var e=this.element.is(":disabled")||this.element.is("[readonly]");this.text()&&!e?this._showClear():this._hideClear()},suggest:function(e){var n,i=this,r=i.input[0],s=i.text(),l=a(r)[0],u=i._last,h=i.dataSource.options.accentFoldingFiltering;
return u==c.BACKSPACE||u==c.DELETE?(i._last=t,t):(e=e||"","string"!=typeof e&&(e[0]&&(e=i.dataSource.view()[o.inArray(e[0],i.ul[0])]),e=e?i._text(e):""),l<=0&&(l=(h?s.toLocaleLowerCase(h):s.toLowerCase()).indexOf(h?e.toLocaleLowerCase(h):e.toLowerCase())+1),e?(e=""+e,n=(h?e.toLocaleLowerCase(h):e.toLowerCase()).indexOf(h?s.toLocaleLowerCase(h):s.toLowerCase()),n>-1&&(s+=e.substring(n+s.length))):s=s.substring(0,l),s.length===l&&e||(r.value=s,r===d()&&a(r,l,s.length)),t)},text:function(e){var n,i,r,a,s,l;return e=null===e?"":e,n=this,i=n.input[0],r=n.options.ignoreCase,a=e,e===t?i.value:n.options.autoBind!==!1||n.listView.bound()?(s=n.dataItem(),s&&n._text(s).replace&&n._text(s).replace(I,"")===e&&(l=n._value(s),l===o.unifyType(n._old,typeof l))?(n._triggerCascade(),t):(r&&(a=a.toLowerCase()),n.dataItem()&&n._text(n.dataItem())===e||(n._select(function(e){return e=n._text(e),r&&(e=(e+"").toLowerCase()),e===a}).done(function(){n.selectedIndex<0&&(i.value=e,n.options.syncValueAndText&&n._accessor(e),n._cascadeTriggered=!0,n._triggerCascade()),n._prev=i.value}),n._toggleCloseVisibility()),t)):(n._setText(e),t)},toggle:function(e){this._toggle(e,!0)},value:function(e){var n=this,i=n.options,o=n.listView;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?"":e):(n.requireValueMapper(n.options,e),n.trigger("set",{value:e}),(e!==i.value||n.input.val()!==i.text||n.options.cascadeFrom)&&(n._accessor(e),n._isFilterEnabled()&&o.bound()&&o.isFiltered()?n._clearFilter():n._fetchData(),o.value(e).done(function(){n.selectedIndex!==-1||o._selectedDataItems&&o._selectedDataItems.length||(n._accessor(e),n.input.val(e),n._placeholder(!0)),n._old=n._userTriggered?n._accessor():n._valueBeforeCascade=n._accessor(),n._oldIndex=n.selectedIndex,n._prev=n._oldText=n.input.val(),n._state===S&&(n._state=T),n._toggleCloseVisibility()})),t)},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrowIcon.removeClass(_),e._focused.attr("aria-busy",!1),e._busy=null,e._toggleCloseVisibility()},_click:function(e){var n=this,i=e.item,r=n.listView.dataItemByIndex(n.listView.getElementIndex(i)),a=!0;return e.preventDefault(),r&&(a=n._value(r)!==o.unifyType(n.value(),typeof n._value(r)),a||n.input.val(n._text(r))),a&&n.trigger("select",{dataItem:r,item:i})?(n.close(),t):(n._userTriggered=!0,n._select(i).done(function(){n._blur()}),t)},_syncValueAndText:function(){return this.options.syncValueAndText},_inputValue:function(){return this.text()},_searchByWord:function(e){var n,i=this,o=i.options,r=i.dataSource,a=o.ignoreCase,s=function(n){var o=i._text(n);if(o!==t)return o+="",(""===o||""!==e)&&(a&&(o=o.toLowerCase()),0===o.indexOf(e))};return a&&(e=e.toLowerCase()),i.ul[0].firstChild?(this.listView.focus(this._get(s)),n=this.listView.focus(),n&&(o.suggest&&i.suggest(n),this.open()),this.options.highlightFirst&&!e&&this.listView.focusFirst(),t):(r.one(v,function(){r.view()[0]&&i.search(e)}).fetch(),t)},_input:function(){var t,n,i=this,o=i.element.removeClass("k-input")[0],r=o.accessKey,a=i.wrapper,s="input.k-input",d=o.name||"";d&&(d='name="'+d+'_input" '),t=a.find(s),t[0]||(a.append('<span tabindex="-1" unselectable="on" class="k-dropdown-wrap k-state-default"><input '+d+'class="k-input" type="text" autocomplete="'+C+'"/><span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-arrow-60-down"></span></span></span>').append(i.element),t=a.find(s)),t[0].style.cssText=o.style.cssText,t[0].title=o.title,n=parseInt(this.element.prop("maxlength")||this.element.attr("maxlength"),10),n>-1&&(t[0].maxLength=n),t.addClass(o.className).css({width:"",height:o.style.height}).attr({role:"combobox","aria-expanded":!1}).show(),l&&t.attr("placeholder",i.options.placeholder),r&&(o.accessKey="",t[0].accessKey=r),i._focused=i.input=t,i._inputWrapper=e(a[0].firstChild),i._arrow=a.find(".k-select").attr({role:"button",tabIndex:-1}),i._arrowIcon=i._arrow.find(".k-icon"),o.id&&i._arrow.attr("aria-controls",i.ul[0].id)},_clearButton:function(){o.fn._clearButton.call(this),this.options.clearButton&&(this._clear.insertAfter(this.input),this.wrapper.addClass("k-combobox-clearable"))},_keydown:function(e){var t,n,i,r=this,a=e.keyCode;if(r._last=a,clearTimeout(r._typingTimeout),r._typingTimeout=null,a===c.HOME)r._firstItem();else if(a===c.END)r._lastItem();else if(a===c.ENTER||a===c.TAB&&r.popup.visible())if(t=r.listView.focus(),n=r.dataItem(),i=!0,r.popup.visible()||n&&r.text()===r._text(n)||(t=null),t){if(r.popup.visible()&&e.preventDefault(),n=r.listView.dataItemByIndex(r.listView.getElementIndex(t)),n&&(i=r._value(n)!==o.unifyType(r.value(),typeof r._value(n))),i&&r.trigger("select",{dataItem:n,item:t}))return;r._userTriggered=!0,r._select(t).done(function(){r._blur(),r._valueBeforeCascade=r._old=r.value()})}else(r._syncValueAndText()||r._isSelect)&&r._accessor(r.input.val()),r.options.highlightFirst?(r.listView.value(r.input.val()),r._blur()):r._oldText=r.text();else a==c.TAB||r._move(e)?a===c.ESC&&!r.popup.visible()&&r.text()&&r._clearValue():r._search()},_placeholder:function(e){if(!l){var n,i=this,o=i.input,r=i.options.placeholder;if(r){if(n=i.value(),e===t&&(e=!n),o.toggleClass("k-readonly",e),!e){if(n)return;r=""}o.val(r),r||o[0]!==d()||a(o[0],0,0)}}},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){var t=e.text();""!==t&&e._prev!==t?(e._prev=t,"none"===e.options.filter&&e.options.virtual&&e.listView.select(-1),e.search(t),e._toggleCloseVisibility()):""===t&&""!==e._prev&&(e._clearValue(),e.search("")),e._typingTimeout=null},e.options.delay)},_setText:function(e){this.input.val(e),this._prev=e},_wrapper:function(){var e=this,t=e.element,n=t.parent();n.is("span.k-widget")||(n=t.hide().wrap("<span />").parent(),n[0].style.cssText=t[0].style.cssText),e.wrapper=n.addClass("k-widget k-combobox").addClass(t[0].className).removeClass("input-validation-error").css("display","")},_clearSelection:function(e,t){var n=this,i=e.value(),o=i&&e.selectedIndex===-1;this.selectedIndex==-1&&this.value()||(t||!i||o)&&(n.options.value="",n.value(""))},_preselect:function(e,t){this.input.val(t),this._accessor(e),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._placeholder(),this._initialIndex=null,this._presetValue=!0,this._toggleCloseVisibility()},_clearText:function(){this._old=this.value(),this.text("")},_clearValue:function(){r.fn._clearValue.call(this),this.input.focus()}});i.plugin(M)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.multiselect.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],e)}(function(){return function(e,t){function n(e,t){var n;if(null===e&&null!==t||null!==e&&null===t)return!1;if(n=e.length,n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0}var i=window.kendo,o=i.ui,r=o.List,a=e.extend({A:65},i.keys),s=i._activeElement,l=i.data.ObservableArray,d=e.proxy,c="id",u="li",h="accept",p="filter",f="rebind",m="open",g="close",v="change",_="progress",b="select",w="deselect",k="aria-disabled",y="aria-readonly",x="k-state-focused",C="k-state-selected",S="k-hidden",T="k-state-hover",D="k-state-disabled",A="k-no-click",E="disabled",I="readonly",M="off",R=".kendoMultiSelect",F="click"+R,P="keydown"+R,z="mouseenter"+R,B="mouseleave"+R,L=z+" "+B,H=/"/g,N=e.isArray,O=["font-family","font-size","font-stretch","font-style","font-weight","letter-spacing","text-transform","line-height"],V=r.extend({init:function(t,n){var o,a,s=this;s.ns=R,r.fn.init.call(s,t,n),s._optionsMap={},s._customOptions={},s._wrapper(),s._tagList(),s._input(),s._textContainer(),s._loader(),s._clearButton(),s._tabindex(s.input),t=s.element.attr("multiple","multiple").hide(),n=s.options,n.placeholder||(n.placeholder=t.data("placeholder")),o=t.attr(c),o&&(s._tagID=o+"_tag_active",o+="_taglist",s.tagList.attr(c,o),s.input.attr("aria-describedby",o)),s._initialOpen=!0,s._ariaLabel(),s._ariaSetLive(),s._dataSource(),s._ignoreCase(),s._popup(),s._tagTemplate(),s.requireValueMapper(s.options),s._initList(),s._reset(),s._enable(),s._placeholder(),n.autoBind?s.dataSource.fetch():n.value&&s._preselect(n.value),a=e(s.element).parents("fieldset").is(":disabled"),a&&s.enable(!1),s._ariaSetSize(s.value().length),i.notify(s),s._toggleCloseVisibility()},options:{name:"MultiSelect",tagMode:"multiple",enabled:!0,autoBind:!0,autoClose:!0,highlightFirst:!0,dataTextField:"",dataValueField:"",filter:"startswith",ignoreCase:!0,minLength:1,messages:{singleTag:"item(s) selected",clear:"clear",deleteTag:"delete",noData:"No data found."},enforceMinLength:!1,delay:100,value:null,maxSelectedItems:null,placeholder:"",height:200,animation:{},virtual:!1,itemTemplate:"",tagTemplate:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",clearButton:!0,autoWidth:!1,popup:null},events:[m,g,v,b,w,"filtering","dataBinding","dataBound"],setDataSource:function(e){this.options.dataSource=e,this._state="",this._dataSource(),this.persistTagList=!1,this.listView.setDataSource(this.dataSource),this.options.autoBind&&this.dataSource.fetch()},setOptions:function(e){var t=this._listOptions(e);r.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria(this.tagList.attr(c)),this._tagTemplate(),this._placeholder(),this._clearButton()},currentTag:function(e){var n=this;return e===t?n._currentTag:(n._currentTag&&(n._currentTag.removeClass(x).removeAttr(c),n._currentTag.find(".k-select").attr("aria-hidden",!0),n.input.removeAttr("aria-activedescendant")),e&&(e.addClass(x).attr(c,n._tagID),e.find(".k-select").removeAttr("aria-hidden"),n.input.attr("aria-activedescendant",n._tagID)),n._currentTag=e,t)},dataItems:function(){return this.listView.selectedDataItems()},destroy:function(){var e=this,t=e.ns;clearTimeout(e._busy),clearTimeout(e._typingTimeout),e.wrapper.off(t),e.tagList.off(t),e.input.off(t),e._clear.off(t),r.fn.destroy.call(e)},_activateItem:function(){this.popup.visible()&&r.fn._activateItem.call(this),this.currentTag(null)},_listOptions:function(t){var n=this,o=r.fn._listOptions.call(n,e.extend(t,{selectedItemChange:d(n._selectedItemChange,n),selectable:"multiple"})),a=this.options.itemTemplate||this.options.template,s=o.itemTemplate||a||o.template;return s||(s="#:"+i.expr(o.dataTextField,"data")+"#"),o.template=s,o},_setListValue:function(){r.fn._setListValue.call(this,this._initialValues.slice(0))},_listChange:function(e){var n,i=this.dataSource.flatView(),o=this._optionsMap,r=this._value;for(this._state===f&&(this._state=""),n=0;n<e.added.length;n++)if(o[r(e.added[n].dataItem)]===t){this._render(i);break}this._selectValue(e.added,e.removed)},_selectedItemChange:function(e){var t,n,i=e.items;for(n=0;n<i.length;n++)t=i[n],this.tagList.children().eq(t.index).children("span:first").html(this.tagTextTemplate(t.item))},_wrapperMousedown:function(t){var n=this,o="input"!==t.target.nodeName.toLowerCase(),r=e(t.target),a=r.hasClass("k-select")||r.hasClass("k-icon");a&&(a=!r.closest(".k-select").children(".k-i-arrow-60-down").length),!o||a&&i.support.mobileOS||!t.cancelable||t.preventDefault(),a||(n.input[0]!==s()&&o&&n.input.focus(),1===n.options.minLength&&n.open())},_inputFocus:function(){this._placeholder(!1),this.wrapper.addClass(x)},_inputFocusout:function(){var e=this;clearTimeout(e._typingTimeout),e.wrapper.removeClass(x),e._placeholder(!e.listView.selectedDataItems()[0],!0),e.close(),e._state===p&&(e._state=h,e.listView.skipUpdate(!0)),e.listView.bound()&&e.listView.isFiltered()&&(e.persistTagList=!0,e._clearFilter()),e.element.blur()},_removeTag:function(e,n){var i,o,r,a=this,s=a._state,l=e.index(),d=a.listView,c=d.value()[l],u=a.listView.selectedDataItems()[l],f=a._customOptions[c],m=d.element[0].children;return a.trigger(w,{dataItem:u,item:e})?(a._close(),t):(f!==t||s!==h&&s!==p||(f=a._optionsMap[c]),r=function(){a.currentTag(null),n&&a._change(),a._close()},f===t&&d.select().length?(a.persistTagList=!1,d.select(d.select()[l]).done(r)):(i=a.element[0].children[f],i&&(i.selected=!1),d.removeAt(l),o=m[f],o&&m[f].classList.remove("k-state-selected"),"single"!==a.options.tagMode?e.remove():a._updateTagListHTML(),r()),t)},_tagListClick:function(t){t.preventDefault(),t.stopPropagation();var n=e(t.currentTarget);n.children(".k-i-arrow-60-down").length||this._removeTag(n.closest(u),!0)},_clearValue:function(){var t=this;"single"===t.options.tagMode?t._clearSingleTagValue():t.tagList.children().each(function(n,i){t._removeTag(e(i),!1)}),t.input.val(""),t._search(),t._change(),t.focus(),t._hideClear(),t._state===p&&(t._state=h)},_clearSingleTagValue:function(){var e,n=this,i=n.dataItems(),o=n.tagList.children(),r=n.persistTagList;for(e=0;e<i.length;e+=1)if(n.trigger(w,{dataItem:i[e],item:o.first()}))return n._close(),t;r&&(n.persistTagList=!1),n.listView.value([]),n.persistTagList=r},_focusHandler:function(){this.input.focus()},_editable:function(t){var n=this,i=t.disable,o=t.readonly,r=n.wrapper.off(R),a=n.tagList.off(R),s=n.element.add(n.input.off(R));o||i?(r.toggleClass(D,i).toggleClass(A,o),s.attr(E,i).attr(I,o).attr(k,i).attr(y,o)):(r.removeClass(D).removeClass(A).on(L,n._toggleHover).on("mousedown"+R+" touchend"+R,d(n._wrapperMousedown,n)).on(F,d(n._focusHandler,n)),n.input.on(P,d(n._keydown,n)).on("paste"+R,d(n._search,n)).on("input"+R,d(n._search,n)).on("focus"+R,d(n._inputFocus,n)).on("focusout"+R,d(n._inputFocusout,n)),n._clear.on(F+" touchend"+R,d(n._clearValue,n)),s.removeAttr(E).removeAttr(I).attr(k,!1).attr(y,!1),a.on(z,u,function(){e(this).addClass(T)}).on(B,u,function(){e(this).removeClass(T)}).on(F+" touchend"+R,"li.k-button .k-select",d(n._tagListClick,n)))},_close:function(){var e=this;e.options.autoClose?e.close():e.popup.position()},_filterSource:function(e,t){t||(t=this._retrieveData),this._retrieveData=!1,r.fn._filterSource.call(this,e,t)},close:function(){this._activeItem=null,this.input.removeAttr("aria-activedescendant"),this.popup.close()},open:function(){var t=this;t._request&&(t._retrieveData=!1),t._retrieveData||!t.listView.bound()||t._state===h?(t._open=!0,t._state=f,t.listView.skipUpdate(!0),t.persistTagList=!(t._initialOpen&&!t.listView.bound()),t._filterSource(),t._focusItem()):t._allowOpening()&&(!t._initialOpen||t.options.autoBind||t.options.virtual||!t.options.value||e.isPlainObject(t.options.value[0])||t.value(t.value()||t._initialValues),t.popup._hovered=!0,t._initialOpen=!1,t.popup.open(),t._focusItem())},toggle:function(e){e=e!==t?e:!this.popup.visible(),this[e?m:g]()},refresh:function(){this.listView.refresh()},_listBound:function(){var e=this,n=e.dataSource.flatView(),i=e.listView.skip();e._render(n),e._renderFooter(),e._renderNoData(),e._toggleNoData(!n.length),e._resizePopup(),e._open&&(e._open=!1,e.toggle(e._allowOpening())),e.popup.position(),!e.options.highlightFirst||i!==t&&0!==i||e.listView.focusFirst(),e._touchScroller&&e._touchScroller.reset(),e._hideBusy(),e._makeUnselectable(),e.trigger("dataBound")},_inputValue:function(){var e=this,t=e.input.val();return e.options.placeholder===t&&(t=""),t},value:function(e){var n=this,i=n.listView,o=i.value().slice(),r=n.options.maxSelectedItems,a=i.bound()&&i.isFiltered();return e===t?o:(n.persistTagList=!1,n.requireValueMapper(n.options,e),e=n._normalizeValues(e),null!==r&&e.length>r&&(e=e.slice(0,r)),a&&n._clearFilter(),i.value(e),n._old=n._valueBeforeCascade=e.slice(),a||n._fetchData(),n._ariaSetSize(n.value().length),n._toggleCloseVisibility(),t)},_preselect:function(t,n){var o=this;N(t)||t instanceof i.data.ObservableArray||(t=[t]),(e.isPlainObject(t[0])||t[0]instanceof i.data.ObservableObject||!o.options.dataValueField)&&(o.dataSource.data(t),o.value(n||o._initialValues),o._retrieveData=!0)},_setOption:function(e,t){var n=this.element[0].children[this._optionsMap[e]];n&&(n.selected=t)},_fetchData:function(){var e=this,t=!!e.dataSource.view().length,n=0===e.listView.value().length;n||e._request||(e._retrieveData||!e._fetch&&!t)&&(e._fetch=!0,e._retrieveData=!1,e.dataSource.read().done(function(){e._fetch=!1}))},_isBound:function(){return this.listView.bound()&&!this._retrieveData},_dataSource:function(){var e=this,t=e.element,n=e.options,o=n.dataSource||{};o=N(o)?{data:o}:o,o.select=t,o.fields=[{field:n.dataTextField},{field:n.dataValueField}],e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=d(e._showBusy,e),e._errorHandler=d(e._hideBusy,e)),e.dataSource=i.data.DataSource.create(o).bind(_,e._progressHandler).bind("error",e._errorHandler)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initialValues),t._placeholder()})},t._form=o.on("reset",t._resetHandler))},_initValue:function(){var e=this.options.value||this.element.val();this._old=this._initialValues=this._normalizeValues(e)},_normalizeValues:function(t){var n=this;return null===t?t=[]:t&&e.isPlainObject(t)?t=[n._value(t)]:t&&e.isPlainObject(t[0])?t=e.map(t,function(e){return n._value(e)}):N(t)||t instanceof l?N(t)&&(t=t.slice()):t=[t],t},_change:function(){var e=this,t=e.value();n(t,e._old)||(e._old=t.slice(),e.trigger(v),e.element.trigger(v)),e.popup.position(),e._ariaSetSize(t.length),e._toggleCloseVisibility()},_click:function(e){var t=this,n=e.item;e.preventDefault(),t._select(n).done(function(){t._activeItem=n,t._change(),t._close()})},_getActiveItem:function(){return this._activeItem||e(this.listView.items()[this._getSelectedIndices().length-1])||this.listView.focus()},_getSelectedIndices:function(){return this.listView._selectedIndices||this.listView._selectedIndexes},_keydown:function(n){var o,r,s,l,d=this,c=n.keyCode,u=d._currentTag,p=d.listView,f=d.input.val(),m=i.support.isRtl(d.wrapper),g=d.popup.visible(),v=0;if(c!==a.ENTER&&(this._multipleSelection=!1),c===a.DOWN){if(n.preventDefault(),!g)return d.open(),p.focus()||p.focusFirst(),t;p.focus()?(!d._activeItem&&n.shiftKey&&(d._activeItem=p.focus(),v=-1),o=p.getElementIndex(d._getActiveItem().first()),p.focusNext(),p.focus()?n.shiftKey&&(this._multipleSelection=!0,d._selectRange(o,p.getElementIndex(p.focus().first())+v)):p.focusLast()):p.focusFirst()}else if(c===a.UP)g&&(!d._activeItem&&n.shiftKey&&(d._activeItem=p.focus(),v=1),o=p.getElementIndex(d._getActiveItem().first()),p.focusPrev(),p.focus()?n.shiftKey&&(this._multipleSelection=!0,d._selectRange(o,p.getElementIndex(p.focus().first())+v)):d.close()),n.preventDefault();else if(c===a.LEFT&&!m||c===a.RIGHT&&m)f||(u=u?u.prev():e(d.tagList[0].lastChild),u[0]&&d.currentTag(u));else if(c===a.RIGHT&&!m||c===a.LEFT&&m)!f&&u&&(u=u.next(),d.currentTag(u[0]?u:null));else if(n.ctrlKey&&!n.altKey&&c===a.A&&g&&!d.options.virtual)this._multipleSelection=!0,this._getSelectedIndices().length===p.items().length&&(d._activeItem=null),p.items().length&&d._selectRange(0,p.items().length-1);else if(c===a.ENTER&&g){if(!p.focus())return;if(n.preventDefault(),this._multipleSelection&&(this._multipleSelection=!1,p.focus().hasClass(C)))return d._close(),t;d._select(p.focus()).done(function(){d._change(),d._close()})}else if(c===a.SPACEBAR&&n.ctrlKey&&g)d._activeItem&&p.focus()&&p.focus()[0]===d._activeItem[0]&&(d._activeItem=null),e(p.focus()).hasClass(C)||(d._activeItem=p.focus()),d._select(p.focus()).done(function(){d._change()}),n.preventDefault();else if(c===a.SPACEBAR&&n.shiftKey&&g)r=p.getElementIndex(d._getActiveItem()),s=p.getElementIndex(p.focus()),r!==t&&s!==t&&d._selectRange(r,s),n.preventDefault();else if(c===a.ESC)g?n.preventDefault():(d.tagList.children().each(function(t,n){d._removeTag(e(n),!1)}),d._change()),d.close();else if(c===a.HOME)g?p.focus()?(n.ctrlKey&&n.shiftKey&&!d.options.virtual&&d._selectRange(p.getElementIndex(p.focus()[0]),0),p.focusFirst()):d.close():f||(u=d.tagList[0].firstChild,u&&d.currentTag(e(u)));else if(c===a.END)g?p.focus()?(n.ctrlKey&&n.shiftKey&&!d.options.virtual&&d._selectRange(p.getElementIndex(p.focus()[0]),p.element.children().length-1),p.focusLast()):d.close():f||(u=d.tagList[0].lastChild,u&&d.currentTag(e(u)));else if(c!==a.DELETE&&c!==a.BACKSPACE||f)!d.popup.visible()||c!==a.PAGEDOWN&&c!==a.PAGEUP?(clearTimeout(d._typingTimeout),setTimeout(function(){d._scale()}),d._search()):(n.preventDefault(),l=c===a.PAGEDOWN?1:-1,p.scrollWith(l*p.screenHeight()));else{if(d._state=h,"single"===d.options.tagMode)return d._clearSingleTagValue(),d._change(),d._close(),t;c!==a.BACKSPACE||u||(u=e(d.tagList[0].lastChild)),u&&u[0]&&d._removeTag(u,!0)}},_hideBusy:function(){var e=this;clearTimeout(e._busy),e.input.attr("aria-busy",!1),e._loading.addClass(S),e._request=!1,e._busy=null,e._toggleCloseVisibility()},_showBusyHandler:function(){this.input.attr("aria-busy",!0),this._loading.removeClass(S),this._hideClear()},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(d(e._showBusyHandler,e),100))},_placeholder:function(e,n){var o=this,r=o.input,a=s(),l=o.options.placeholder,d=r.val(),c=r[0]===a,u=d.length;c&&!o.options.autoClose&&d!==l||(u=0,d=""),e===t&&(e=!1,r[0]!==a&&(e=!o.listView.selectedDataItems()[0])),o._prev=d,r.toggleClass("k-readonly",e).val(e?l:d),c&&!n&&i.caret(r[0],u,u),o._scale()},_scale:function(){var e,t=this,n=t.wrapper.find(".k-multiselect-wrap"),i=n.width(),o=t._span.text(t.input.val());n.is(":visible")?e=o.width()+25:(o.appendTo(document.documentElement),i=e=o.width()+25,o.appendTo(n)),t.input.width(e>i?i:e)},_option:function(e,n,o){var r="<option";return e!==t&&(e+="",e.indexOf('"')!==-1&&(e=e.replace(H,"&quot;")),r+=' value="'+e+'"'),o&&(r+=" selected"),r+=">",n!==t&&(r+=i.htmlEncode(n)),r+="</option>"},_render:function(e){var t,n,i,o,r,a,s=this.listView.selectedDataItems(),l=this.listView.value(),d=e.length,c="";for(l.length!==s.length&&(s=this._buildSelectedItems(l)),r={},a={},o=0;o<d;o++)n=e[o],i=this._value(n),t=this._selectedItemIndex(i,s),t!==-1&&s.splice(t,1),a[i]=o,c+=this._option(i,this._text(n),t!==-1);if(s.length)for(o=0;o<s.length;o++)n=s[o],i=this._value(n),r[i]=d,a[i]=d,d+=1,c+=this._option(i,this._text(n),!0);this._customOptions=r,this._optionsMap=a,this.element.html(c)},_buildSelectedItems:function(e){var t,n,i=this.options.dataValueField,o=this.options.dataTextField,r=[];for(n=0;n<e.length;n++)t={},t[i]=e[n],t[o]=e[n],r.push(t);return r},_selectedItemIndex:function(e,t){for(var n=this._value,i=0;i<t.length;i++)if(e===n(t[i]))return i;return-1},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){var t=e._inputValue();e._prev!==t&&(e._prev=t,e.search(t),e._toggleCloseVisibility())},e.options.delay)},_toggleCloseVisibility:function(){this.value().length||this.input.val()&&this.input.val()!==this.options.placeholder?this._showClear():this._hideClear()},_allowOpening:function(){return this._allowSelection()&&r.fn._allowOpening.call(this)},_allowSelection:function(){var e=this.options.maxSelectedItems;return null===e||e>this.listView.value().length},_angularTagItems:function(t){var n=this;n.angular(t,function(){return{elements:n.tagList[0].children,data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})},updatePersistTagList:function(e,t){this.persistTagList.added&&this.persistTagList.added.length===t.length&&this.persistTagList.removed&&this.persistTagList.removed.length===e.length?this.persistTagList=!1:(this.listView._removedAddedIndexes=this._old.slice(),this.persistTagList={added:e,removed:t})},_selectValue:function(e,n){var i,o,r,a=this,s=a.dataSource.total(),l=a.tagList,d=a._value;if(this.persistTagList)return this.updatePersistTagList(e,n),t;if(a._angularTagItems("cleanup"),"multiple"===a.options.tagMode){for(r=n.length-1;r>-1;r--)i=n[r],l.children().length&&(l[0].removeChild(l[0].children[i.position]),a._setOption(d(i.dataItem),!1));for(r=0;r<e.length;r++)o=e[r],l.append(a.tagTemplate(o.dataItem)),a._setOption(d(o.dataItem),!0);a._updateTagListAria()}else{for((!a._maxTotal||a._maxTotal<s)&&(a._maxTotal=s),this._updateTagListHTML(),r=n.length-1;r>-1;r--)a._setOption(d(n[r].dataItem),!1);for(r=0;r<e.length;r++)a._setOption(d(e[r].dataItem),!0)}a._angularTagItems("compile"),a._placeholder()},_updateTagListHTML:function(){var e=this,t=e.value(),n=e.dataSource.total(),i=e.tagList;i.html(""),t.length&&i.append(e.tagTemplate({values:t,dataItems:e.dataItems(),maxTotal:e._maxTotal,currentTotal:n})),e._updateTagListAria()},_updateTagListAria:function(){var e=this,t=e.tagList;t.attr("role",t.children().length?"listbox":"presentation")},_select:function(t){var n,i,o,r,a=e.Deferred().resolve();return t?(n=this,i=n.listView,o=i.dataItemByIndex(i.getElementIndex(t)),r=t.hasClass("k-state-selected"),n._state===f&&(n._state=""),n._allowSelection()||r?n.trigger(r?w:b,{dataItem:o,item:t})?(n._close(),a):(n.persistTagList=!1,i.select(t).done(function(){n._placeholder(),n._state===p&&(n._state=h,i.skipUpdate(!0))})):a):a},_selectRange:function(n,i){var o,r,a=this,s=this.listView,l=this.options.maxSelectedItems,d=this._getSelectedIndices().slice(),c=[],u=function(t){s.select(t).done(function(){t.forEach(function(t){var n=s.dataItemByIndex(t),i=s.element.children()[t],o=e(i).hasClass("k-state-selected");a.trigger(o?b:w,{dataItem:n,item:e(i)})}),a._change()})};if(d.length-1===i-n)return u(d);if(n<i)for(o=n;o<=i;o++)c.push(o);else for(o=n;o>=i;o--)c.push(o);for(null!==l&&c.length>l&&(c=c.slice(0,l)),o=0;o<c.length;o++)r=c[o],this._getSelectedIndices().indexOf(r)==-1?d.push(r):d.splice(d.indexOf(r),1);return d.length?(a.persistTagList=!1,u(d)):t},_input:function(){var t=this,n=t.element,i=n[0].accessKey,o=t._inputWrapper.children("input.k-input");o[0]||(o=e('<input class="k-input" style="width: 25px" />').appendTo(t._inputWrapper)),n.removeAttr("accesskey"),t._focused=t.input=o.attr({accesskey:i,autocomplete:M,role:"textbox",title:n[0].title,"aria-expanded":!1,"aria-haspopup":"true","aria-autocomplete":"list"})},_tagList:function(){var t=this,n=t._inputWrapper.children("ul");n[0]||(n=e('<ul unselectable="on" class="k-reset"/>').appendTo(t._inputWrapper)),t.tagList=n},_tagTemplate:function(){var e,t=this,n=t.options,o=n.tagTemplate,r=n.dataSource,a="multiple"===n.tagMode,s=n.messages.singleTag;t.element[0].length&&!r&&(n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value"),e=a?i.template("#:"+i.expr(n.dataTextField,"data")+"#",{useWithBlock:!1}):i.template("#:values.length# "+s),t.tagTextTemplate=o=o?i.template(o):e,t.tagTemplate=function(e){return'<li role="option" aria-selected="true" class="k-button" unselectable="on"><span unselectable="on">'+o(e)+'</span><span aria-hidden="true" unselectable="on" aria-label="'+(a?'delete" title="'+t.options.messages.deleteTag+'" aria-label="'+t.options.messages.deleteTag:"open")+'" class="k-select"><span class="k-icon '+(a?"k-i-close":"k-i-arrow-60-down")+'"></span></span></li>'}},_loader:function(){this._loading=e('<span class="k-icon k-i-loading '+S+'"></span>').insertAfter(this.input)},_clearButton:function(){r.fn._clearButton.call(this),this.options.clearButton&&(this._clear.insertAfter(this.input),this.wrapper.addClass("k-multiselect-clearable"))},_textContainer:function(){var t=i.getComputedStyles(this.input[0],O);t.position="absolute",t.visibility="hidden",t.top=-3333,t.left=-3333,this._span=e("<span/>").css(t).appendTo(this.wrapper)},_wrapper:function(){var t=this,n=t.element,i=n.parent("span.k-multiselect");i[0]||(i=n.wrap('<div class="k-widget k-multiselect" unselectable="on" />').parent(),i[0].style.cssText=n[0].style.cssText,i[0].title=n[0].title,e('<div class="k-multiselect-wrap k-floatwrap" unselectable="on" />').insertBefore(n)),t.wrapper=i.addClass(n[0].className).removeClass("input-validation-error").css("display",""),t._inputWrapper=e(i[0].firstChild)},_ariaSetSize:function(e){var t=this,n=t.tagList.children();e&&n.length&&n.attr("aria-setsize",e)},_ariaSetLive:function(){var e=this;e.ul.attr("aria-live",e._isFilterEnabled()?"polite":"off")}});o.plugin(V)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.multicolumncombobox.min",["kendo.combobox.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.ComboBox,r=/^\d+(\.\d+)?%$/i,a="k-dropdowngrid",s="k-dropdowngrid-popup k-popup-flush",l=o.extend({init:function(e,t){o.fn.init.call(this,e,t),this.list.addClass(s),this._allColumnsWidthsAreSet(this.options)?this.list.width(this._calculateDropDownWidth(this.options)):this.options.dropDownWidth&&this.list.width(this.options.dropDownWidth)},options:{name:"MultiColumnComboBox",ns:".kendoMultiColumnComboBox",columns:[],dropDownWidth:null,filterFields:[]},setOptions:function(e){o.fn.setOptions.call(this,e),this._allColumnsWidthsAreSet(e)?this.list.width(this._calculateDropDownWidth(e)):this.options.dropDownWidth&&this.list.width(this.options.dropDownWidth)},_allColumnsWidthsAreSet:function(e){var t,n,i=e.columns;if(!i||!i.length)return!1;for(t=0;t<i.length;t++)if(n=i[t].width,!n||isNaN(parseInt(n,10))||r.test(n))return!1;return!0},_calculateDropDownWidth:function(e){var t,i,o=e.columns,r=n.support.scrollbar();for(t=0;t<o.length;t++)i=o[t].width,r+=parseInt(i,10);return r},_wrapper:function(){o.fn._wrapper.call(this),this.wrapper.addClass(a)}});i.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.slider.min",["kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(e,t,n){var i=n?" k-slider-horizontal":" k-slider-vertical",o=e.style?e.style:t.attr("style"),r=t.attr("class")?" "+t.attr("class"):"",a="";return"bottomRight"==e.tickPlacement?a=" k-slider-bottomright":"topLeft"==e.tickPlacement&&(a=" k-slider-topleft"),o=o?" style='"+o+"'":"","<div class='k-widget k-slider"+i+r+"'"+o+"><div class='k-slider-wrap"+(e.showButtons?" k-slider-buttons":"")+a+"'></div></div>"}function i(e,t,n,i){var o="";return o=n?!i&&"increase"==t||i&&"increase"!=t?"k-i-arrow-60-right":"k-i-arrow-60-left":"increase"==t?"k-i-arrow-60-up":"k-i-arrow-60-down","<a class='k-button k-button-"+t+"' title='"+e[t+"ButtonTitle"]+"' aria-label='"+e[t+"ButtonTitle"]+"'><span class='k-icon "+o+"'></span></a>"}function o(e,t){var n,i="<ul class='k-reset k-slider-items'>",o=S.floor(c(t/e.smallStep))+1;for(n=0;n<o;n++)i+="<li class='k-tick' role='presentation'>&nbsp;</li>";return i+="</ul>"}function r(e,t){var n=t.is("input")?1:2,i=2==n?e.leftDragHandleTitle:e.dragHandleTitle;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='"+i+"' role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(n>1?e.selectionStart||e.min:e.value||e.min)+"'></a>"+(n>1?"<a href='#' class='k-draghandle' title='"+e.rightDragHandleTitle+"'role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(e.selectionEnd||e.max)+"'></a>":"")+"</div>"}function a(e){return function(t){return t+e}}function s(e){return function(){return e}}function l(e){return(e+"").replace(".",m.cultures.current.numberFormat["."])}function d(e){var t=""+e,n=0;return t=t.split("."),t[1]&&(n=t[1].length),n=n>10?10:n}function c(e){var t,n;return e=parseFloat(e,10),t=d(e),n=S.pow(10,t||0),S.round(e*n)/n}function u(e,n){var i=y(e.getAttribute(n));return null===i&&(i=t),i}function h(e){return typeof e!==Q}function p(e){return 1e4*e}var f,m=window.kendo,g=m.ui.Widget,v=m.ui.Draggable,_=m._outerWidth,b=m._outerHeight,w=e.extend,k=m.format,y=m.parseFloat,x=e.proxy,C=e.isArray,S=Math,T=m.support,D=T.pointers,A=T.msPointers,E="change",I="slide",M=".slider",R="touchstart"+M+" mousedown"+M,F=D?"pointerdown"+M:A?"MSPointerDown"+M:R,P="touchend"+M+" mouseup"+M,z=D?"pointerup":A?"MSPointerUp"+M:P,B="moveSelection",L="keydown"+M,H="click"+M,N="mouseover"+M,O="focus"+M,V="blur"+M,W=".k-draghandle",U=".k-slider-track",j=".k-tick",q="k-state-selected",G="k-state-focused",$="k-state-default",K="k-state-disabled",Y="disabled",Q="undefined",X="tabindex",Z=m.getTouches,J=g.extend({init:function(e,t){
var n,i=this;if(g.fn.init.call(i,e,t),t=i.options,i._isHorizontal="horizontal"==t.orientation,i._isRtl=i._isHorizontal&&m.support.isRtl(e),i._position=i._isHorizontal?"left":"bottom",i._sizeFn=i._isHorizontal?"width":"height",i._outerSize=i._isHorizontal?_:b,t.tooltip.format=t.tooltip.enabled?t.tooltip.format||"{0}":"{0}",t.smallStep<=0)throw Error("Kendo UI Slider smallStep must be a positive number.");i._createHtml(),i.wrapper=i.element.closest(".k-slider"),i._trackDiv=i.wrapper.find(U),i._setTrackDivWidth(),i._maxSelection=i._trackDiv[i._sizeFn](),i._sliderItemsInit(),i._reset(),i._tabindex(i.wrapper.find(W)),i[t.enabled?"enable":"disable"](),n=m.support.isRtl(i.wrapper)?-1:1,i._keyMap={37:a(-1*n*t.smallStep),40:a(-t.smallStep),39:a(1*n*t.smallStep),38:a(+t.smallStep),35:s(t.max),36:s(t.min),33:a(+t.largeStep),34:a(-t.largeStep)},m.notify(i)},events:[E,I],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_distance:function(){return c(this.options.max-this.options.min)},_resize:function(){this._setTrackDivWidth(),this.wrapper.find(".k-slider-items").remove(),this._maxSelection=this._trackDiv[this._sizeFn](),this._sliderItemsInit(),this._refresh(),this.options.enabled&&this.enable(!0)},_sliderItemsInit:function(){var t=this,n=t.options,i=t._maxSelection/((n.max-n.min)/n.smallStep),r=t._calculateItemsWidth(S.floor(p(t._distance())/p(n.smallStep)));"none"!=n.tickPlacement&&i>=2&&(e(this.element).parent().find(".k-slider-items").remove(),t._trackDiv.before(o(n,t._distance())),t._setItemsWidth(r),t._setItemsTitle()),t._calculateSteps(r),"none"!=n.tickPlacement&&i>=2&&n.largeStep>=n.smallStep&&t._setItemsLargeTick()},getSize:function(){return m.dimensions(this.wrapper)},_setTrackDivWidth:function(){var e=this,t=2*parseFloat(e._trackDiv.css(e._isRtl?"right":e._position),10);e._trackDiv[e._sizeFn](e.wrapper[e._sizeFn]()-2-t)},_setItemsWidth:function(t){var n,i=this,o=i.options,r=0,a=t.length-1,s=i.wrapper.find(j),l=0,d=2,c=s.length,u=0;for(n=0;n<c-2;n++)e(s[n+1])[i._sizeFn](t[n]);if(i._isHorizontal?(e(s[r]).addClass("k-first")[i._sizeFn](t[a-1]),e(s[a]).addClass("k-last")[i._sizeFn](t[a])):(e(s[a]).addClass("k-first")[i._sizeFn](t[a]),e(s[r]).addClass("k-last")[i._sizeFn](t[a-1])),i._distance()%o.smallStep!==0&&!i._isHorizontal){for(n=0;n<t.length;n++)u+=t[n];l=i._maxSelection-u,l+=parseFloat(i._trackDiv.css(i._position),10)+d,i.wrapper.find(".k-slider-items").css("padding-top",l)}},_setItemsTitle:function(){for(var t=this,n=t.options,i=t.wrapper.find(j),o=n.min,r=i.length,a=t._isHorizontal&&!t._isRtl?0:r-1,s=t._isHorizontal&&!t._isRtl?r:-1,l=t._isHorizontal&&!t._isRtl?1:-1;a-s!==0;a+=l)e(i[a]).attr("title",k(n.tooltip.format,c(o))),o+=n.smallStep},_setItemsLargeTick:function(){var t,n,i,o=this,r=o.options,a=o.wrapper.find(j),s=0;if(p(r.largeStep)%p(r.smallStep)===0||o._distance()/r.largeStep>=3)for(o._isHorizontal||o._isRtl||(a=e.makeArray(a).reverse()),s=0;s<a.length;s++)t=e(a[s]),n=o._values[s],i=c(p(n-this.options.min)),i%p(r.smallStep)===0&&i%p(r.largeStep)===0&&(t.addClass("k-tick-large").html("<span class='k-label'>"+t.attr("title")+"</span>"),0!==s&&s!==a.length-1&&t.css("line-height",t[o._sizeFn]()+"px"))},_calculateItemsWidth:function(e){var t,n,i,o=this,r=o.options,a=parseFloat(o._trackDiv.css(o._sizeFn))+1,s=o._distance(),l=p(s)/p(r.smallStep),d=a/p(s);for(l-e>0&&(a-=p(s)%p(r.smallStep)*d),t=a/e,n=[],i=0;i<e-1;i++)n[i]=t;return n[e-1]=n[e]=t/2,o._roundWidths(n)},_roundWidths:function(e){var t,n=0,i=e.length;for(t=0;t<i;t++)n+=e[t]-S.floor(e[t]),e[t]=S.floor(e[t]);return n=S.round(n),this._addAdditionalSize(n,e)},_addAdditionalSize:function(e,t){if(0===e)return t;var n,i=parseFloat(t.length-1)/parseFloat(1==e?e:e-1);for(n=0;n<e;n++)t[parseInt(S.round(i*n),10)]+=1;return t},_calculateSteps:function(e){var t,n=this,i=n.options,o=i.min,r=0,a=n._distance(),s=S.ceil(p(a)/p(i.smallStep)),l=1;if(s+=p(a)/p(i.smallStep)%1===0?1:0,e.splice(0,0,2*e[s-2]),e.splice(s-1,1,2*e.pop()),n._pixelSteps=[r],n._values=[o],0!==s){for(;l<s;)r+=(e[l-1]+e[l])/2,n._pixelSteps[l]=r,o+=i.smallStep,n._values[l]=c(o),l++;t=p(a)%p(i.smallStep)===0?s-1:s,n._pixelSteps[t]=n._maxSelection,n._values[t]=i.max,n._isRtl&&(n._pixelSteps.reverse(),n._values.reverse())}},_getValueFromPosition:function(e,t){var n,i=this,o=i.options,r=S.max(o.smallStep*(i._maxSelection/i._distance()),0),a=0,s=r/2;if(i._isHorizontal?(a=e-t.startPoint,i._isRtl&&(a=i._maxSelection-a)):a=t.startPoint-e,i._maxSelection-(parseInt(i._maxSelection%r,10)-3)/2<a)return o.max;for(n=0;n<i._pixelSteps.length;n++)if(S.abs(i._pixelSteps[n]-a)-1<=s)return c(i._values[n])},_getFormattedValue:function(e,t){var n,i,o,r=this,a="",s=r.options.tooltip;return C(e)?(i=e[0],o=e[1]):t&&t.type&&(i=t.selectionStart,o=t.selectionEnd),t&&(n=t.tooltipTemplate),!n&&s.template&&(n=m.template(s.template)),C(e)||t&&t.type?n?a=n({selectionStart:i,selectionEnd:o}):(i=k(s.format,i),o=k(s.format,o),a=i+" - "+o):(t&&(t.val=e),a=n?n({value:e}):k(s.format,e)),a},_getDraggableArea:function(){var e=this,t=m.getOffset(e._trackDiv);return{startPoint:e._isHorizontal?t.left:t.top+e._maxSelection,endPoint:e._isHorizontal?t.left+e._maxSelection:t.top}},_createHtml:function(){var e=this,t=e.element,o=e.options,a=t.find("input");2==a.length?(a.eq(0).prop("value",l(o.selectionStart)),a.eq(1).prop("value",l(o.selectionEnd))):t.prop("value",l(o.value)),t.wrap(n(o,t,e._isHorizontal)).hide(),o.showButtons&&t.before(i(o,"increase",e._isHorizontal,e._isRtl)).before(i(o,"decrease",e._isHorizontal,e._isRtl)),t.before(r(o,t))},_focus:function(t){var n=this,i=t.target,o=n.value(),r=n._drag;r||(i==n.wrapper.find(W).eq(0)[0]?(r=n._firstHandleDrag,n._activeHandle=0):(r=n._lastHandleDrag,n._activeHandle=1),o=o[n._activeHandle]),e(i).addClass(G+" "+q),r&&(n._activeHandleDrag=r,r.selectionStart=n.options.selectionStart,r.selectionEnd=n.options.selectionEnd,r._updateTooltip(o))},_focusWithMouse:function(t){t=e(t);var n=this,i=t.is(W)?t.index():0;window.setTimeout(function(){n.wrapper.find(W)[2==i?1:0].focus()},1),n._setTooltipTimeout()},_blur:function(t){var n=this,i=n._activeHandleDrag;e(t.target).removeClass(G+" "+q),i&&(i._removeTooltip(),delete n._activeHandleDrag,delete n._activeHandle)},_setTooltipTimeout:function(){var e=this;e._tooltipTimeout=window.setTimeout(function(){var t=e._drag||e._activeHandleDrag;t&&t._removeTooltip()},300)},_clearTooltipTimeout:function(){var e,t=this;window.clearTimeout(this._tooltipTimeout),e=t._drag||t._activeHandleDrag,e&&e.tooltipDiv&&e.tooltipDiv.stop(!0,!1).css("opacity",1)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._form=o.on("reset",x(t._formResetHandler,t)))},min:function(e){return e?(this.setOptions({min:e}),t):this.options.min},max:function(e){return e?(this.setOptions({max:e}),t):this.options.max},setOptions:function(e){g.fn.setOptions.call(this,e),this._sliderItemsInit(),this._refresh()},destroy:function(){this._form&&this._form.off("reset",this._formResetHandler),g.fn.destroy.call(this)}}),ee=J.extend({init:function(n,i){var o,r=this;n.type="text",i=w({},{value:u(n,"value"),min:u(n,"min"),max:u(n,"max"),smallStep:u(n,"step")},i),n=e(n),i&&i.enabled===t&&(i.enabled=!n.is("[disabled]")),J.fn.init.call(r,n,i),i=r.options,h(i.value)&&null!==i.value||(i.value=i.min,n.prop("value",l(i.min))),i.value=S.max(S.min(i.value,i.max),i.min),o=r.wrapper.find(W),this._selection=new ee.Selection(o,r,i),r._drag=new ee.Drag(o,"",r,i)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",dragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},value:null},enable:function(n){var i,o,r,a=this,s=a.options;a.disable(),n!==!1&&(a.wrapper.removeClass(K).addClass($),a.wrapper.find("input").removeAttr(Y),i=function(n){var i,o,r,s=Z(n)[0];if(s){if(i=a._isHorizontal?s.location.pageX:s.location.pageY,o=a._getDraggableArea(),r=e(n.target),r.hasClass("k-draghandle"))return r.addClass(G+" "+q),t;a._update(a._getValueFromPosition(i,o)),a._focusWithMouse(n.target),a._drag.dragstart(n),n.preventDefault()}},a.wrapper.find(j+", "+U).on(F,i).end().on(F,function(){e(document.documentElement).one("selectstart",m.preventDefault)}).on(z,function(){a._drag._end()}),a.wrapper.find(W).attr(X,0).on(P,function(){a._setTooltipTimeout()}).on(H,function(e){a._focusWithMouse(e.target),e.preventDefault()}).on(O,x(a._focus,a)).on(V,x(a._blur,a)),o=x(function(e){var t=a._nextValueByIndex(a._valueIndex+1*e);a._setValueInRange(t),a._drag._updateTooltip(t)},a),s.showButtons&&(r=x(function(e,t){this._clearTooltipTimeout(),(1===e.which||T.touch&&0===e.which)&&(o(t),this.timeout=setTimeout(x(function(){this.timer=setInterval(function(){o(t)},60)},this),200))},a),a.wrapper.find(".k-button").on(P,x(function(e){this._clearTimer(),a._focusWithMouse(e.target)},a)).on(N,function(t){e(t.currentTarget).addClass("k-state-hover")}).on("mouseout"+M,x(function(t){e(t.currentTarget).removeClass("k-state-hover"),this._clearTimer()},a)).eq(0).on(R,x(function(e){r(e,1)},a)).click(!1).end().eq(1).on(R,x(function(e){r(e,-1)},a)).click(m.preventDefault)),a.wrapper.find(W).off(L,!1).on(L,x(this._keydown,a)),s.enabled=!0)},disable:function(){var t=this;t.wrapper.removeClass($).addClass(K),e(t.element).prop(Y,Y),t.wrapper.find(".k-button").off(R).on(R,function(t){t.preventDefault(),e(this).addClass("k-state-active")}).off(P).on(P,function(t){t.preventDefault(),e(this).removeClass("k-state-active")}).off("mouseleave"+M).on("mouseleave"+M,m.preventDefault).off(N).on(N,m.preventDefault),t.wrapper.find(j+", "+U).off(F).off(z),t.wrapper.find(W).attr(X,-1).off(P).off(L).off(H).off(O).off(V),t.options.enabled=!1},_update:function(e){var t=this,n=t.value()!=e;t.value(e),n&&t.trigger(E,{value:t.options.value})},value:function(e){var n=this,i=n.options;return e=c(e),isNaN(e)?i.value:(e>=i.min&&e<=i.max&&i.value!=e&&(n.element.prop("value",l(e)),i.value=e,n._refreshAriaAttr(e),n._refresh()),t)},_refresh:function(){this.trigger(B,{value:this.options.value})},_refreshAriaAttr:function(e){var t,n=this,i=n._drag;t=i&&i._tooltipDiv?i._tooltipDiv.text():n._getFormattedValue(e,null),this.wrapper.find(W).attr("aria-valuenow",e).attr("aria-valuetext",t)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(e){var t=this;e.keyCode in t._keyMap&&(t._clearTooltipTimeout(),t._setValueInRange(t._keyMap[e.keyCode](t.options.value)),t._drag._updateTooltip(t.value()),e.preventDefault())},_setValueInRange:function(e){var n=this,i=n.options;return e=c(e),isNaN(e)?(n._update(i.min),t):(e=S.max(S.min(e,i.max),i.min),n._update(e),t)},_nextValueByIndex:function(e){var t=this._values.length;return this._isRtl&&(e=t-1-e),this._values[S.max(0,S.min(e,t-1))]},_formResetHandler:function(){var e=this,t=e.options.min;setTimeout(function(){var n=e.element[0].value;e.value(""===n||isNaN(n)?t:n)})},destroy:function(){var e=this;J.fn.destroy.call(e),e.wrapper.off(M).find(".k-button").off(M).end().find(W).off(M).end().find(j+", "+U).off(M).end(),e._drag.draggable.destroy(),e._drag._removeTooltip(!0)}});ee.Selection=function(e,t,n){function i(i){var o=i-n.min,r=t._valueIndex=S.ceil(c(o/n.smallStep)),a=parseInt(t._pixelSteps[r],10),s=t._trackDiv.find(".k-slider-selection"),l=parseInt(t._outerSize(e)/2,10),d=t._isRtl?2:0;s[t._sizeFn](t._isRtl?t._maxSelection-a:a),e.css(t._position,a-l-d)}i(n.value),t.bind([I,B],function(e){i(parseFloat(e.value,10))}),t.bind(E,function(e){i(parseFloat(e.sender.value(),10))})},ee.Drag=function(e,t,n,i){var o=this;o.owner=n,o.options=i,o.element=e,o.type=t,o.draggable=new v(e,{distance:0,dragstart:x(o._dragstart,o),drag:x(o.drag,o),dragend:x(o.dragend,o),dragcancel:x(o.dragcancel,o)}),e.click(!1),e.on("dragstart",function(e){e.preventDefault()})},ee.Drag.prototype={dragstart:function(e){this.owner._activeDragHandle=this,this.draggable.userEvents.cancel(),this._dragstart(e),this.dragend()},_dragstart:function(n){var i=this,o=i.owner,r=i.options;return r.enabled?(this.owner._activeDragHandle=this,o.element.off(N),o.wrapper.find("."+G).removeClass(G+" "+q),i.element.addClass(G+" "+q),e(document.documentElement).css("cursor","pointer"),i.dragableArea=o._getDraggableArea(),i.step=S.max(r.smallStep*(o._maxSelection/o._distance()),0),i.type?(i.selectionStart=r.selectionStart,i.selectionEnd=r.selectionEnd,o._setZIndex(i.type)):i.oldVal=i.val=r.value,i._removeTooltip(!0),i._createTooltip(),t):(n.preventDefault(),t)},_createTooltip:function(){var t,n,i=this,o=i.owner,r=i.options.tooltip,a="",s=e(window);r.enabled&&(r.template&&(t=i.tooltipTemplate=m.template(r.template)),e(".k-slider-tooltip").remove(),i.tooltipDiv=e("<div class='k-tooltip k-slider-tooltip'><!-- --></div>").appendTo(document.body),a=o._getFormattedValue(i.val||o.value(),i),i.type||(n="k-callout-"+(o._isHorizontal?"s":"e"),i.tooltipInnerDiv="<div class='k-callout "+n+"'><!-- --></div>",a+=i.tooltipInnerDiv),i.tooltipDiv.html(a),i._scrollOffset={top:s.scrollTop(),left:m.scrollLeft(s)},i.moveTooltip())},drag:function(e){var t,n=this,i=n.owner,o=e.x.location,r=e.y.location,a=n.dragableArea.startPoint,s=n.dragableArea.endPoint;e.preventDefault(),n.val=i._isHorizontal?i._isRtl?n.constrainValue(o,a,s,o<s):n.constrainValue(o,a,s,o>=s):n.constrainValue(r,s,a,r<=s),n.oldVal!=n.val&&(n.oldVal=n.val,n.type?("firstHandle"==n.type?n.selectionStart=n.val<n.selectionEnd?n.val:n.selectionEnd=n.val:n.val>n.selectionStart?n.selectionEnd=n.val:n.selectionStart=n.selectionEnd=n.val,t={values:[n.selectionStart,n.selectionEnd],value:[n.selectionStart,n.selectionEnd]}):t={value:n.val},i.trigger(I,t)),n._updateTooltip(n.val)},_updateTooltip:function(e){var t=this,n=t.options,i=n.tooltip,o="";i.enabled&&(t.tooltipDiv||t._createTooltip(),o=t.owner._getFormattedValue(c(e),t),t.type||(o+=t.tooltipInnerDiv),t.tooltipDiv.html(o),t.moveTooltip())},dragcancel:function(){return this.owner._refresh(),e(document.documentElement).css("cursor",""),this._end()},dragend:function(){var t=this,n=t.owner;return e(document.documentElement).css("cursor",""),t.type?n._update(t.selectionStart,t.selectionEnd):(n._update(t.val),t.draggable.userEvents._disposeAll()),t.draggable.userEvents.cancel(),t._end()},_end:function(){var e=this,t=e.owner;return t._focusWithMouse(e.element),t.element.on(N),!1},_removeTooltip:function(t){var n=this,i=n.owner;n.tooltipDiv&&i.options.tooltip.enabled&&i.options.enabled&&(t?(n.tooltipDiv.remove(),n.tooltipDiv=null):n.tooltipDiv.fadeOut("slow",function(){e(this).remove(),n.tooltipDiv=null}))},moveTooltip:function(){var t,n,i,o,r=this,a=r.owner,s=0,l=0,d=r.element,c=m.getOffset(d),u=8,h=e(window),p=r.tooltipDiv.find(".k-callout"),f=_(r.tooltipDiv),g=b(r.tooltipDiv);r.type?(t=a.wrapper.find(W),c=m.getOffset(t.eq(0)),n=m.getOffset(t.eq(1)),a._isHorizontal?(s=n.top,l=c.left+(n.left-c.left)/2):(s=c.top+(n.top-c.top)/2,l=n.left),o=_(t.eq(0))+2*u):(s=c.top,l=c.left,o=_(d)+2*u),a._isHorizontal?(l-=parseInt((f-a._outerSize(d))/2,10),s-=g+u+(p.length?p.height():0)):(s-=parseInt((g-a._outerSize(d))/2,10),l-=f+u+(p.length?p.width():0)),a._isHorizontal?(i=r._flip(s,g,o,b(h)+r._scrollOffset.top),s+=i,l+=r._fit(l,f,_(h)+r._scrollOffset.left)):(i=r._flip(l,f,o,_(h)+r._scrollOffset.left),s+=r._fit(s,g,b(h)+r._scrollOffset.top),l+=i),i>0&&p&&(p.removeClass(),p.addClass("k-callout k-callout-"+(a._isHorizontal?"n":"w"))),r.tooltipDiv.css({top:s,left:l})},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},_flip:function(e,t,n,i){var o=0;return e+t>i&&(o+=-(n+t)),e+o<0&&(o+=n+t),o},constrainValue:function(e,t,n,i){var o=this,r=0;return r=t<e&&e<n?o.owner._getValueFromPosition(e,o.dragableArea):i?o.options.max:o.options.min}},m.ui.plugin(ee),f=J.extend({init:function(n,i){var o,r=this,a=e(n).find("input"),s=a.eq(0)[0],d=a.eq(1)[0];s.type="text",d.type="text",i&&i.showButtons&&(window.console&&window.console.warn("showbuttons option is not supported for the range slider, ignoring"),i.showButtons=!1),i=w({},{selectionStart:u(s,"value"),min:u(s,"min"),max:u(s,"max"),smallStep:u(s,"step")},{selectionEnd:u(d,"value"),min:u(d,"min"),max:u(d,"max"),smallStep:u(d,"step")},i),i&&i.enabled===t&&(i.enabled=!a.is("[disabled]")),J.fn.init.call(r,n,i),i=r.options,h(i.selectionStart)&&null!==i.selectionStart||(i.selectionStart=i.min,a.eq(0).prop("value",l(i.min))),h(i.selectionEnd)&&null!==i.selectionEnd||(i.selectionEnd=i.max,a.eq(1).prop("value",l(i.max))),o=r.wrapper.find(W),this._selection=new f.Selection(o,r,i),r._firstHandleDrag=new ee.Drag(o.eq(0),"firstHandle",r,i),r._lastHandleDrag=new ee.Drag(o.eq(1),"lastHandle",r,i)},options:{name:"RangeSlider",leftDragHandleTitle:"drag",rightDragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},selectionStart:null,selectionEnd:null},enable:function(n){var i,o=this,r=o.options;o.disable(),n!==!1&&(o.wrapper.removeClass(K).addClass($),o.wrapper.find("input").removeAttr(Y),i=function(n){var i,a,s,l,d,c,u,h=Z(n)[0];if(h){if(i=o._isHorizontal?h.location.pageX:h.location.pageY,a=o._getDraggableArea(),s=o._getValueFromPosition(i,a),l=e(n.target),l.hasClass("k-draghandle"))return o.wrapper.find("."+G).removeClass(G+" "+q),l.addClass(G+" "+q),t;s<r.selectionStart?(d=s,c=r.selectionEnd,u=o._firstHandleDrag):s>o.selectionEnd?(d=r.selectionStart,c=s,u=o._lastHandleDrag):s-r.selectionStart<=r.selectionEnd-s?(d=s,c=r.selectionEnd,u=o._firstHandleDrag):(d=r.selectionStart,c=s,u=o._lastHandleDrag),u.dragstart(n),o._setValueInRange(d,c),o._focusWithMouse(u.element)}},o.wrapper.find(j+", "+U).on(F,i).end().on(F,function(){e(document.documentElement).one("selectstart",m.preventDefault)}).on(z,function(){o._activeDragHandle&&o._activeDragHandle._end()}),o.wrapper.find(W).attr(X,0).on(P,function(){o._setTooltipTimeout()}).on(H,function(e){o._focusWithMouse(e.target),e.preventDefault()}).on(O,x(o._focus,o)).on(V,x(o._blur,o)),o.wrapper.find(W).off(L,m.preventDefault).eq(0).on(L,x(function(e){this._keydown(e,"firstHandle")},o)).end().eq(1).on(L,x(function(e){this._keydown(e,"lastHandle")},o)),o.options.enabled=!0)},disable:function(){var e=this;e.wrapper.removeClass($).addClass(K),e.wrapper.find("input").prop(Y,Y),e.wrapper.find(j+", "+U).off(F).off(z),e.wrapper.find(W).attr(X,-1).off(P).off(L).off(H).off(O).off(V),e.options.enabled=!1},_keydown:function(e,t){var n,i,o,r=this,a=r.options.selectionStart,s=r.options.selectionEnd;e.keyCode in r._keyMap&&(r._clearTooltipTimeout(),"firstHandle"==t?(o=r._activeHandleDrag=r._firstHandleDrag,a=r._keyMap[e.keyCode](a),a>s&&(s=a)):(o=r._activeHandleDrag=r._lastHandleDrag,s=r._keyMap[e.keyCode](s),a>s&&(a=s)),r._setValueInRange(c(a),c(s)),n=Math.max(a,r.options.selectionStart),i=Math.min(s,r.options.selectionEnd),o.selectionEnd=Math.max(i,r.options.selectionStart),o.selectionStart=Math.min(n,r.options.selectionEnd),o._updateTooltip(r.value()[r._activeHandle]),e.preventDefault())},_update:function(e,t){var n=this,i=n.value(),o=i[0]!=e||i[1]!=t;n.value([e,t]),o&&n.trigger(E,{values:[e,t],value:[e,t]})},value:function(e){return e&&e.length?this._value(e[0],e[1]):this._value()},_value:function(e,n){var i=this,o=i.options,r=o.selectionStart,a=o.selectionEnd;return isNaN(e)&&isNaN(n)?[r,a]:(e=c(e),n=c(n),e>=o.min&&e<=o.max&&n>=o.min&&n<=o.max&&e<=n&&(r==e&&a==n||(i.element.find("input").eq(0).prop("value",l(e)).end().eq(1).prop("value",l(n)),o.selectionStart=e,o.selectionEnd=n,i._refresh(),i._refreshAriaAttr(e,n))),t)},values:function(e,t){return C(e)?this._value(e[0],e[1]):this._value(e,t)},_refresh:function(){var e=this,t=e.options;e.trigger(B,{values:[t.selectionStart,t.selectionEnd],value:[t.selectionStart,t.selectionEnd]}),t.selectionStart==t.max&&t.selectionEnd==t.max&&e._setZIndex("firstHandle")},_refreshAriaAttr:function(e,t){var n,i=this,o=i.wrapper.find(W),r=i._activeHandleDrag;n=i._getFormattedValue([e,t],r),o.eq(0).attr("aria-valuenow",e),o.eq(1).attr("aria-valuenow",t),o.attr("aria-valuetext",n)},_setValueInRange:function(e,t){var n=this.options;e=S.max(S.min(e,n.max),n.min),t=S.max(S.min(t,n.max),n.min),e==n.max&&t==n.max&&this._setZIndex("firstHandle"),this._update(S.min(e,t),S.max(e,t))},_setZIndex:function(t){this.wrapper.find(W).each(function(n){e(this).css("z-index","firstHandle"==t?1-n:n)})},_formResetHandler:function(){var e=this,t=e.options;setTimeout(function(){var n=e.element.find("input"),i=n[0].value,o=n[1].value;e.values(""===i||isNaN(i)?t.min:i,""===o||isNaN(o)?t.max:o)})},destroy:function(){var e=this;J.fn.destroy.call(e),e.wrapper.off(M).find(j+", "+U).off(M).end().find(W).off(M),e._firstHandleDrag.draggable.destroy(),e._lastHandleDrag.draggable.destroy()}}),f.Selection=function(e,t,n){function i(i){i=i||[];var r=i[0]-n.min,a=i[1]-n.min,s=S.ceil(c(r/n.smallStep)),l=S.ceil(c(a/n.smallStep)),d=t._pixelSteps[s],u=t._pixelSteps[l],h=parseInt(t._outerSize(e.eq(0))/2,10),p=t._isRtl?2:0;e.eq(0).css(t._position,d-h-p).end().eq(1).css(t._position,u-h-p),o(d,u)}function o(e,n){var i,o,r=t._trackDiv.find(".k-slider-selection");i=S.abs(e-n),r[t._sizeFn](i),t._isRtl?(o=S.max(e,n),r.css("right",t._maxSelection-o-1)):(o=S.min(e,n),r.css(t._position,o-1))}i(t.value()),t.bind([E,I,B],function(e){i(e.values)})},m.ui.plugin(f)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.colorpicker.min",["kendo.core.min","kendo.color.min","kendo.popup.min","kendo.slider.min","kendo.userevents.min","kendo.button.min"],e)}(function(){return function(e,t,n){function i(e,t,n){n=c(n),n&&!n.equals(e.color())&&("change"==t&&(e._value=n),n=1!=n.a?n.toCssRgba():n.toCss(),e.trigger(t,{value:n}))}function o(e,t,n){var i,o;return e=Array.prototype.slice.call(e),i=e.length,o=e.indexOf(t),o<0?n<0?e[i-1]:e[0]:(o+=n,o<0?o+=i:o%=i,e[o])}function r(e){e.preventDefault()}function a(e,t){return function(){return e.apply(t,arguments)}}var s=window.kendo,l=s.ui,d=l.Widget,c=s.parseColor,u=s.Color,h=s.keys,p="background-color",f="k-state-selected",m="000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",g="FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000",v="#ffffff",_={apply:"Apply",cancel:"Cancel",noColor:"no color",clearColor:"Clear color",previewInput:"Color Hexadecimal Code"},b=".kendoColorTools",w="click"+b,k="keydown"+b,y="k-state-disabled",x=s.support.browser,C=x.msie&&x.version<9,S=d.extend({init:function(e,t){var n,i=this;d.fn.init.call(i,e,t),e=i.element,t=i.options,i._value=t.value=c(t.value),i._tabIndex=e.attr("tabIndex")||0,n=i._ariaId=t.ariaId,n&&e.attr("aria-labelledby",n),t._standalone&&(i._triggerSelect=i._triggerChange)},options:{name:"ColorSelector",value:null,_standalone:!0},events:["change","select","cancel"],color:function(e){return e!==n&&(this._value=c(e),this._updateUI(this._value)),this._value},value:function(e){return e=this.color(e),e&&(e=this.options.opacity?e.toCssRgba():e.toCss()),e||null},enable:function(e){0===arguments.length&&(e=!0),this.wrapper.toggleClass(y,!e),this._onEnable(e)},_select:function(e,t){var n=this._value;e=this.color(e),t||(this.element.trigger("change"),e.equals(n)?this._standalone||this.trigger("cancel"):this.trigger("change",{value:this.value()}))},_triggerSelect:function(e){i(this,"select",e)},_triggerChange:function(e){i(this,"change",e)},destroy:function(){this.element&&this.element.off(b),this.wrapper&&this.wrapper.off(b).find("*").off(b),this.wrapper=null,d.fn.destroy.call(this)},_updateUI:e.noop,_selectOnHide:function(){return null},_cancel:function(){this.trigger("cancel")}}),T=S.extend({init:function(t,n){var i,o,r,l,d=this;if(S.fn.init.call(d,t,n),t=d.wrapper=d.element,n=d.options,i=n.palette,"websafe"==i?(i=g,n.columns=18):"basic"==i&&(i=m),"string"==typeof i&&(i=i.split(",")),e.isArray(i)&&(i=e.map(i,function(e){return c(e)})),d._selectedID=(n.ariaId||s.guid())+"_selected",t.addClass("k-widget k-colorpalette").attr("role","grid").attr("aria-readonly","true").append(e(d._template({colors:i,columns:n.columns,tileSize:n.tileSize,value:d._value,id:n.ariaId}))).on(w,".k-item",function(t){d._select(e(t.currentTarget).css(p))}).attr("tabIndex",d._tabIndex).on(k,a(d._keydown,d)),o=n.tileSize){if(/number|string/.test(typeof o))r=l=parseFloat(o);else{if("object"!=typeof o)throw Error("Unsupported value for the 'tileSize' argument");r=parseFloat(o.width),l=parseFloat(o.height)}t.find(".k-item").css({width:r,height:l})}},focus:function(){this.wrapper&&!this.wrapper.is("[unselectable='on']")&&this.wrapper.focus()},options:{name:"ColorPalette",columns:10,tileSize:null,palette:"basic"},_onEnable:function(e){e?this.wrapper.attr("tabIndex",this._tabIndex):this.wrapper.removeAttr("tabIndex")},_keydown:function(t){var n,i,a=this.wrapper,s=a.find(".k-item"),l=s.filter("."+f).get(0),d=t.keyCode;if(d==h.LEFT?n=o(s,l,-1):d==h.RIGHT?n=o(s,l,1):d==h.DOWN?n=o(s,l,this.options.columns):d==h.UP?n=o(s,l,-this.options.columns):d==h.ENTER?(r(t),l&&this._select(e(l).css(p))):d==h.ESC&&this._cancel(),n){r(t),this._current(n);try{i=c(n.css(p)),this._triggerSelect(i)}catch(u){}}},_current:function(t){this.wrapper.find("."+f).removeClass(f).attr("aria-selected",!1).removeAttr("id"),e(t).addClass(f).attr("aria-selected",!0).attr("id",this._selectedID),this.element.removeAttr("aria-activedescendant").attr("aria-activedescendant",this._selectedID)},_updateUI:function(t){var n=null;this.wrapper.find(".k-item").each(function(){var i=c(e(this).css(p));if(i&&i.equals(t))return n=this,!1}),this._current(n)},_template:s.template('<table class="k-palette k-reset" role="presentation"><tr role="row"># for (var i = 0; i < colors.length; ++i) { ## var selected = colors[i].equals(value); ## if (i && i % columns == 0) { # </tr><tr role="row"> # } #<td role="gridcell" unselectable="on" style="background-color:#= colors[i].toCss() #"#= selected ? " aria-selected=true" : "" # #=(id && i === 0) ? "id=\\""+id+"\\" " : "" # class="k-item#= selected ? " '+f+'" : "" #" aria-label="#= colors[i].toCss() #"></td># } #</tr></table>')}),D=S.extend({init:function(t,n){var i=this;S.fn.init.call(i,t,n),n=i.options,n.messages=n.options?e.extend(i.options.messages,n.options.messages):i.options.messages,t=i.element,i.wrapper=t.addClass("k-widget k-flatcolorpicker").append(i._template(n)),i._hueElements=e(".k-hsv-rectangle, .k-alpha-slider .k-slider-track",t),i._selectedColor=e(".k-selected-color-display",t),i._colorAsText=e("input.k-color-value",t),i._sliders(),i._hsvArea(),i._updateUI(i._value||c("#f00")),t.find("input.k-color-value").on(k,function(t){var n,o,r=this;if(t.keyCode==h.ENTER)try{n=c(r.value),o=i.color(),i._select(n,n.equals(o))}catch(a){e(r).addClass("k-state-error")}else i.options.autoupdate&&setTimeout(function(){var e=c(r.value,!0);e&&i._updateUI(e,!0)},10)}).end().on(w,".k-controls button.apply",function(){i.options._clearedColor?i.trigger("change"):i._select(i._getHSV())}).on(w,".k-controls button.cancel",function(){i._updateUI(i.color()),i._cancel()}),C&&i._applyIEFilter()},destroy:function(){this._hsvEvents.destroy(),this._hueSlider.destroy(),this._opacitySlider&&this._opacitySlider.destroy(),this._hueSlider=this._opacitySlider=this._hsvRect=this._hsvHandle=this._hueElements=this._selectedColor=this._colorAsText=null,S.fn.destroy.call(this)},options:{name:"FlatColorPicker",opacity:!1,buttons:!1,input:!0,preview:!0,clearButton:!1,autoupdate:!0,messages:_},_applyIEFilter:function(){var e=this.element.find(".k-hue-slider .k-slider-track")[0],t=e.currentStyle.backgroundImage;t=t.replace(/^url\([\'\"]?|[\'\"]?\)$/g,""),e.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t+"', sizingMethod='scale')"},_sliders:function(){function e(e){n._updateUI(n._getHSV(e.value,null,null,null))}function t(e){n._updateUI(n._getHSV(null,null,null,e.value/100))}var n=this,i=n.element,o=i.find(".k-hue-slider"),r=i.find(".k-alpha-slider");o.attr("aria-label","hue saturation"),n._hueSlider=o.kendoSlider({min:0,max:360,tickPlacement:"none",showButtons:!1,slide:e,change:e}).data("kendoSlider"),r.attr("aria-label","opacity"),n._opacitySlider=r.kendoSlider({min:0,max:100,tickPlacement:"none",showButtons:!1,slide:t,change:t}).data("kendoSlider")},_hsvArea:function(){function e(e,n){var i=this.offset,o=e-i.left,r=n-i.top,a=this.width,s=this.height;o=o<0?0:o>a?a:o,r=r<0?0:r>s?s:r,t._svChange(o/a,1-r/s)}var t=this,n=t.element,i=n.find(".k-hsv-rectangle"),o=i.find(".k-draghandle").attr("tabIndex",0).on(k,a(t._keydown,t));t._hsvEvents=new s.UserEvents(i,{global:!0,press:function(t){this.offset=s.getOffset(i),this.width=i.width(),this.height=i.height(),o.focus(),e.call(this,t.x.location,t.y.location)},start:function(){i.addClass("k-dragging"),o.focus()},move:function(t){t.preventDefault(),e.call(this,t.x.location,t.y.location)},end:function(){i.removeClass("k-dragging")}}),t._hsvRect=i,t._hsvHandle=o},_onEnable:function(e){this._hueSlider.enable(e),this._opacitySlider&&this._opacitySlider.enable(e),this.wrapper.find("input").attr("disabled",!e);var t=this._hsvRect.find(".k-draghandle");e?t.attr("tabIndex",this._tabIndex):t.removeAttr("tabIndex")},_keydown:function(e){function t(t,n){var o=i._getHSV();o[t]+=n*(e.shiftKey?.01:.05),o[t]<0&&(o[t]=0),o[t]>1&&(o[t]=1),i._updateUI(o),r(e)}function n(t){var n=i._getHSV();n.h+=t*(e.shiftKey?1:5),n.h<0&&(n.h=0),n.h>359&&(n.h=359),i._updateUI(n),r(e)}var i=this;switch(e.keyCode){case h.LEFT:e.ctrlKey?n(-1):t("s",-1);break;case h.RIGHT:e.ctrlKey?n(1):t("s",1);break;case h.UP:t(e.ctrlKey&&i._opacitySlider?"a":"v",1);break;case h.DOWN:t(e.ctrlKey&&i._opacitySlider?"a":"v",-1);break;case h.ENTER:i._select(i._getHSV());break;case h.F2:i.wrapper.find("input.k-color-value").focus().select();break;case h.ESC:i._cancel()}},focus:function(){this._hsvHandle.focus()},_getHSV:function(e,t,n,i){var o=this._hsvRect,r=o.width(),a=o.height(),s=this._hsvHandle.position();return null==e&&(e=this._hueSlider.value()),null==t&&(t=s.left/r),null==n&&(n=1-s.top/a),null==i&&(i=this._opacitySlider?this._opacitySlider.value()/100:1),u.fromHSV(e,t,n,i)},_svChange:function(e,t){var n=this._getHSV(null,e,t,null);this._updateUI(n)},_updateUI:function(e,t){var n=this,i=n._hsvRect;e&&(this._colorAsText.attr("title",n.options.messages.previewInput),this._colorAsText.removeClass("k-state-error"),n._selectedColor.css(p,e.toDisplay()),t||n._colorAsText.val(n._opacitySlider?e.toCssRgba():e.toCss()),n._triggerSelect(e),e=e.toHSV(),n._hsvHandle.css({left:e.s*i.width()+"px",top:(1-e.v)*i.height()+"px"}),n._hueElements.css(p,u.fromHSV(e.h,1,1,1).toCss()),n._hueSlider.value(e.h),n._opacitySlider&&n._opacitySlider.value(100*e.a));
},_selectOnHide:function(){return this.options.buttons?null:this._getHSV()},_template:s.template('# if (preview) { #<div class="k-selected-color"><div class="k-selected-color-display"><div class="k-color-input"><input class="k-color-value" # if (clearButton && !_standalone) { #placeholder="#: messages.noColor #" # } ##= !data.input ? \'style="visibility: hidden;"\' : "" #># if (clearButton && !_standalone) { #<span class="k-clear-color k-button k-flat" title="#: messages.clearColor #"></span># } #</div></div></div># } ## if (clearButton && !_standalone && !preview) { #<div class="k-clear-color-container"><span class="k-clear-color k-button k-flat">#: messages.clearColor #</span></div># } #<div class="k-hsv-rectangle"><div class="k-hsv-gradient"></div><div class="k-draghandle"></div></div><div class="k-sliders-wrap k-vbox"><input class="k-hue-slider" /># if (opacity) { #<input class="k-alpha-slider k-transparency-slider" /># } #</div># if (buttons) { #<div unselectable="on" class="k-controls"><button class="k-button k-primary apply">#: messages.apply #</button> <button class="k-button cancel">#: messages.cancel #</button></div># } #')}),A=d.extend({init:function(t,n){var i,o,r,a,s,l=this;d.fn.init.call(l,t,n),n=l.options,t=l.element,i=t.attr("value")||t.val(),i=i?c(i,!0):c(n.value,!0),l._value=n.value=i,o=l.wrapper=e(l._template(n)),t.hide().after(o),l._inputWrapper=e(l.wrapper[0].firstChild),t.is("input")&&(t.appendTo(o),r=t.closest("label"),a=t.attr("id"),a&&(r=r.add('label[for="'+a+'"]')),r.click(function(e){l.open(),e.preventDefault()})),l._tabIndex=t.attr("tabIndex")||0,l.enable(!t.attr("disabled")),s=t.attr("accesskey"),s&&(t.attr("accesskey",null),o.attr("accesskey",s)),l.bind("activate",function(e){e.isDefaultPrevented()||l.toggle()}),l._updateUI(i)},destroy:function(){this.wrapper.off(b).find("*").off(b),this._popup&&(this._selector.destroy(),this._popup.destroy()),this._selector=this._popup=this.wrapper=null,d.fn.destroy.call(this)},enable:function(e){var t=this,n=t.wrapper,i=n.children(".k-picker-wrap"),o=i.find(".k-select");0===arguments.length&&(e=!0),t.element.attr("disabled",!e),n.attr("aria-disabled",!e),o.off(b).on("mousedown"+b,r),n.addClass("k-state-disabled").removeAttr("tabIndex").add("*",n).off(b),e?n.removeClass("k-state-disabled").attr("tabIndex",t._tabIndex).on("mouseenter"+b,function(){i.addClass("k-state-hover")}).on("mouseleave"+b,function(){i.removeClass("k-state-hover")}).on("focus"+b,function(){i.addClass("k-state-focused")}).on("blur"+b,function(){i.removeClass("k-state-focused")}).on(k,a(t._keydown,t)).on(w,".k-select",a(t.toggle,t)).on(w,t.options.toolIcon?".k-tool-icon":".k-selected-color",function(){t.trigger("activate")}):t.close()},_template:s.template('<span role="textbox" aria-haspopup="true" class="k-widget k-colorpicker"><span class="k-picker-wrap k-state-default"># if (toolIcon) { #<span class="k-icon k-tool-icon #= toolIcon #"><span class="k-selected-color"></span></span># } else { #<span class="k-selected-color"><span class="k-icon k-i-line" style="display: none;"></span></span># } #<span class="k-select" unselectable="on" aria-label="select"><span class="k-icon k-i-arrow-60-down"></span></span></span></span>'),options:{name:"ColorPicker",palette:null,columns:10,toolIcon:null,value:null,messages:_,opacity:!1,buttons:!0,preview:!0,clearButton:!1,ARIATemplate:'Current selected color is #=data || ""#'},events:["activate","change","select","open","close"],open:function(){this.element.prop("disabled")||this._getPopup().open()},close:function(){var e=this._selector&&this._selector.options||{};e._closing=!0,this._getPopup().close(),delete e._closing},toggle:function(){this.element.prop("disabled")||this._getPopup().toggle()},_noColorIcon:function(){return this.wrapper.find(".k-picker-wrap > .k-selected-color > .k-icon.k-i-line")},color:S.fn.color,value:S.fn.value,_select:S.fn._select,_triggerSelect:S.fn._triggerSelect,_isInputTypeColor:function(){var e=this.element[0];return/^input$/i.test(e.tagName)&&/^color$/i.test(e.type)},_updateUI:function(e){var t="";e&&(t=this._isInputTypeColor()||1==e.a?e.toCss():e.toCssRgba(),this.element.val(t)),this._ariaTemplate||(this._ariaTemplate=s.template(this.options.ARIATemplate)),this.wrapper.attr("aria-label",this._ariaTemplate(t)),this._triggerSelect(e),this.wrapper.find(".k-selected-color").css(p,e?e.toDisplay():v),this._noColorIcon()[t?"hide":"show"]()},_keydown:function(e){var t=e.keyCode;this._getPopup().visible()?(t==h.ESC?this._selector._cancel():this._selector._keydown(e),r(e)):t!=h.ENTER&&t!=h.DOWN||(this.open(),r(e))},_getPopup:function(){var t,i,o,r,a=this,l=a._popup;return l||(t=a.options,i=t.palette?T:D,t._standalone=!1,delete t.select,delete t.change,delete t.cancel,o=s.guid(),r=a._selector=new i(e('<div id="'+o+'"></div>').appendTo(document.body),t),a.wrapper.attr("aria-owns",o),a._popup=l=r.wrapper.kendoPopup({anchor:a.wrapper,adjustSize:{width:5,height:0}}).data("kendoPopup"),r.element.find(".k-clear-color").kendoButton({icon:"reset-color",click:function(e){r.options._clearedColor=!0,a.value(null),a.element.val(null),a._updateUI(null),r._colorAsText.val(""),r._hsvHandle.css({top:"0px",left:"0px"}),r._selectedColor.css(p,v),a.trigger("change",{value:a.value()}),e.preventDefault()}}),r.bind({select:function(e){a._updateUI(c(e.value)),delete r.options._clearedColor},change:function(){r.options._clearedColor||a._select(r.color()),a.close()},cancel:function(){r.options._clearedColor&&!a.value()&&r.value()&&a._select(r.color(),!0),a.close()}}),l.bind({close:function(e){var t,i,o,s;return a.trigger("close")?(e.preventDefault(),n):(a.wrapper.children(".k-picker-wrap").removeClass("k-state-focused"),t=r._selectOnHide(),i=r.value(),o=a.value(),s=r.options,t?s._clearedColor&&!o||a._select(t):(setTimeout(function(){a.wrapper&&!a.wrapper.is("[unselectable='on']")&&a.wrapper.focus()}),!s._closing&&s._clearedColor&&!o&&i?a._select(i,!0):a._updateUI(a.color())),n)},open:function(e){a.trigger("open")?e.preventDefault():a.wrapper.children(".k-picker-wrap").addClass("k-state-focused")},activate:function(){r._select(a.color(),!0),r.focus(),a.wrapper.children(".k-picker-wrap").addClass("k-state-focused")}})),l}});l.plugin(T),l.plugin(D),l.plugin(A)}(jQuery,parseInt),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.floatinglabel.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,r=".kendoFloatingLabel",a="k-floating-label-container",s="k-state-empty",l="k-state-focused",d="k-state-disabled",c="k-no-click",u=e.proxy,h=i.extend({init:function(o,r){var s=this;i.fn.init.call(s,o,r),r=e.extend(!0,{},r),s.refresh(),s._editable({readonly:s.options.widget.options.readonly!==t&&s.options.widget.options.readonly,disable:s.options.widget.options.enable!==t&&!s.options.widget.options.enable}),s.element.addClass(a),n.notify(s)},options:{name:"FloatingLabel",widget:null},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},refresh:function(){var e=this,t=e.element;t.removeClass(s).removeClass(l),e.options.widget.element.val()||t.addClass(s),document.activeElement===e.options.widget.element[0]&&t.addClass(l)},destroy:function(){var e=this;e.element.off(r),i.fn.destroy.call(e)},_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly;n.off(r),o||i?n.toggleClass(d,i).toggleClass(c,o):(n.removeClass(d).removeClass(c),n.on("focusin"+r,u(t.refresh,t)),n.on("focusout"+r,u(t.refresh,t)))}});o.plugin(h)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.numerictextbox.min",["kendo.core.min","kendo.userevents.min","kendo.floatinglabel.min"],e)}(function(){return function(e,t){function n(e,t){var n="k-i-arrow-"+("increase"===e?"60-up":"60-down");return'<span unselectable="on" class="k-link k-link-'+e+'" aria-label="'+t+'" title="'+t+'"><span unselectable="on" class="'+A+" "+n+'"></span></span>'}function i(e,t){var n=(""+parseFloat(e,10)).split(D);return n[1]&&(n[1]=n[1].substring(0,t)),n.join(D)}var o=window.kendo,r=o.caret,a=o.keys,s=o.ui,l=s.Widget,d=o._activeElement,c=o._extractFormat,u=o.parseFloat,h=o.support.placeholder,p=o.getCulture,f="change",m="disabled",g="readonly",v="k-input",_="spin",b=".kendoNumericTextBox",w="touchend",k="mouseleave"+b,y="mouseenter"+b+" "+k,x="k-state-default",C="k-state-focused",S="k-state-hover",T="focus",D=".",A="k-icon",E="k-label k-input-label",I="k-state-selected",M="k-state-disabled",R="k-state-invalid",F="aria-disabled",P=/^(-)?(\d*)$/,z=null,B=e.proxy,L=e.isPlainObject,H=e.extend,N=l.extend({init:function(n,i){var r,a,s,d,u,h,p=this,f=i&&i.step!==t;l.fn.init.call(p,n,i),i=p.options,n=p.element.on("focusout"+b,B(p._focusout,p)).attr("role","spinbutton"),i.placeholder=i.placeholder||n.attr("placeholder"),r=p.min(n.attr("min")),a=p.max(n.attr("max")),s=p._parse(n.attr("step")),i.min===z&&r!==z&&(i.min=r),i.max===z&&a!==z&&(i.max=a),f||s===z||(i.step=s),p._initialOptions=H({},i),h=n.attr("type"),p._reset(),p._wrapper(),p._arrows(),p._validation(),p._input(),o.support.mobileOS?p._text.on(w+b+" "+T+b,function(){o.support.browser.edge?p._text.one(T+b,function(){p._toggleText(!1),n.focus()}):(p._toggleText(!1),n.focus()),p.selectValue()}):p._text.on(T+b,B(p._click,p)),n.attr("aria-valuemin",i.min!==z?i.min*i.factor:i.min).attr("aria-valuemax",i.max!==z?i.max*i.factor:i.max),i.format=c(i.format),d=i.value,d==z&&(d="number"==h?parseFloat(n.val()):n.val()),p.value(d),u=!i.enable||n.is("[disabled]")||e(p.element).parents("fieldset").is(":disabled"),u?p.enable(!1):p.readonly(n.is("[readonly]")),p.angular("compile",function(){return{elements:p._text.get()}}),p._label(),o.notify(p)},options:{name:"NumericTextBox",decimals:z,enable:!0,restrictDecimals:!1,min:z,max:z,value:z,step:1,round:!0,culture:"",format:"n",spinners:!0,placeholder:"",factor:1,upArrowText:"Increase value",downArrowText:"Decrease value",label:null},events:[f,_],_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly,r=t._text.add(n),a=t._inputWrapper.off(y);t._toggleText(!0),t._upArrowEventHandler.unbind("press"),t._downArrowEventHandler.unbind("press"),n.off("keydown"+b).off("keyup"+b).off("input"+b).off("paste"+b),t._inputLabel&&t._inputLabel.off(b),o||i?(a.addClass(i?M:x).removeClass(i?x:M),r.attr(m,i).attr(g,o).attr(F,i)):(a.addClass(x).removeClass(M).on(y,t._toggleHover),r.removeAttr(m).removeAttr(g).attr(F,!1),t._upArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(I)}),t._downArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(I)}),t.element.on("keydown"+b,B(t._keydown,t)).on("keyup"+b,B(t._keyup,t)).on("paste"+b,B(t._paste,t)).on("input"+b,B(t._inputHandler,t)),t._inputLabel&&t._inputLabel.on("click"+b,B(t.focus,t)))},readonly:function(e){var n=this;this._editable({readonly:e===t||e,disable:!1}),n.floatingLabel&&n.floatingLabel.readonly(e===t||e)},enable:function(e){var n=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),n.floatingLabel&&n.floatingLabel.enable(e=e===t||e)},setOptions:function(e){var n=this;l.fn.setOptions.call(n,e),n._arrowsWrap.toggle(n.options.spinners),n._inputWrapper.toggleClass("k-expand-padding",!n.options.spinners),n._text.prop("placeholder",n.options.placeholder),n._placeholder(n.options.placeholder),n.element.attr({"aria-valuemin":n.options.min!==z?n.options.min*n.options.factor:n.options.min,"aria-valuemax":n.options.max!==z?n.options.max*n.options.factor:n.options.max}),n.options.format=c(n.options.format),e.value!==t&&n.value(e.value)},destroy:function(){var e=this;e._inputLabel&&(e._inputLabel.off(b),e.floatingLabel&&e.floatingLabel.destroy()),e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(b),e._upArrowEventHandler.destroy(),e._downArrowEventHandler.destroy(),e._form&&e._form.off("reset",e._resetHandler),l.fn.destroy.call(e)},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},step:function(e){return this._option("step",e)},value:function(e){var n,i=this;return e===t?i._value:(e=i._parse(e),n=i._adjust(e),e===n&&(i._update(e),i._old=i._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,n=t.options,i=n.min,o=n.max;return e===z?e:(i!==z&&e<i?e=i:o!==z&&e>o&&(e=o),e)},_arrows:function(){var t,i=this,r=function(){clearTimeout(i._spinning),t.removeClass(I)},a=i.options,s=a.spinners,l=i.element;t=l.siblings("."+A),t[0]||(t=e(n("increase",a.upArrowText)+n("decrease",a.downArrowText)).insertAfter(l),i._arrowsWrap=t.wrapAll('<span class="k-select"/>').parent()),s||(t.parent().toggle(s),i._inputWrapper.addClass("k-expand-padding")),i._upArrow=t.eq(0),i._upArrowEventHandler=new o.UserEvents(i._upArrow,{release:r}),i._downArrow=t.eq(1),i._downArrowEventHandler=new o.UserEvents(i._downArrow,{release:r})},_validation:function(){var t=this,n=t.element;t._validationIcon=e("<span class='"+A+" k-i-warning'></span>").hide().insertAfter(n)},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var n,i,o,a=e.target,s=r(a)[0],l=a.value.substring(0,s),d=t._format(t.options.format),c=d[","],u=0;c&&(i=RegExp("\\"+c,"g"),o=RegExp("(^(-)$)|(^(-)?([\\d\\"+c+"]+)(\\"+d[D]+")?(\\d+)?)")),o&&(n=o.exec(l)),n&&(u=n[0].replace(i,"").length,l.indexOf("(")!=-1&&t._value<0&&u++),t._focusin(),r(t.element[0],u),t.selectValue()})},selectValue:function(){this.options.selectOnFocus&&this.element[0].select()},_change:function(e){var t=this,n=t.options.factor;n&&1!==n&&(e=o.parseFloat(e),null!==e&&(e/=n)),t._update(e),e=t._value,t._old!=e&&(t._old=e,t._typing||t.element.trigger(f),t.trigger(f)),t._typing=!1},_culture:function(e){return e||p(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(C),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(C).removeClass(S),e._blur(),e._removeInvalidState()},_format:function(e,t){var n=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?n=n.currency:e.indexOf("p")>-1&&(n=n.percent),n},_input:function(){var t,n=this,i=n.options,o="k-formatted-value",r=n.element.addClass(v).show()[0],a=r.accessKey,s=n.wrapper;t=s.find(D+o),t[0]||(t=e('<input type="text"/>').insertBefore(r).addClass(o).attr("aria-hidden","true"));try{r.setAttribute("type","text")}catch(l){r.type="text"}t[0].title=r.title,t[0].tabIndex=r.tabIndex,t[0].style.cssText=r.style.cssText,t.prop("placeholder",i.placeholder),a&&(t.attr("accesskey",a),r.accessKey=""),n._text=t.addClass(r.className).attr({role:"spinbutton","aria-valuemin":i.min!==z?i.min*i.factor:i.min,"aria-valuemax":i.max!==z?i.max*i.factor:i.max,autocomplete:"off"})},_keydown:function(e){var n=this,i=e.keyCode;return i===a.NUMPAD_DOT&&(n._numPadDot=!0),i==a.DOWN?(n._step(-1),t):i==a.UP?(n._step(1),t):i==a.ENTER?(n._change(n.element.val()),t):(i!=a.TAB&&(n._typing=!0),n._cachedCaret=r(n.element),t)},_keyup:function(){this._removeInvalidState()},_inputHandler:function(){var e=this.element,t=e.val(),n=this.options.min,i=this._format(this.options.format),o=i[D],a=null!==n&&n>=0&&"-"===t.charAt(0);this._numPadDot&&o!==D&&(t=t.replace(D,o),this.element.val(t),this._numPadDot=!1),this._numericRegex(i).test(t)&&!a?this._oldText=t:(this._blinkInvalidState(),this.element.val(this._oldText),this._cachedCaret&&(r(e,this._cachedCaret[0]),this._cachedCaret=null))},_blinkInvalidState:function(){var e=this;e._addInvalidState(),clearTimeout(e._invalidStateTimeout),e._invalidStateTimeout=setTimeout(B(e._removeInvalidState,e),100)},_addInvalidState:function(){var e=this;e._inputWrapper.addClass(R),e._validationIcon.show()},_removeInvalidState:function(){var e=this;e._inputWrapper.removeClass(R),e._validationIcon.hide(),e._invalidStateTimeout=null},_numericRegex:function(e){var t=this,n=e[D],i=t.options.decimals,o="*";return n===D&&(n="\\"+n),i===z&&(i=e.decimals),0===i&&t.options.restrictDecimals?P:(t.options.restrictDecimals&&(o="{0,"+i+"}"),t._separator!==n&&(t._separator=n,t._floatRegExp=RegExp("^(-)?(((\\d+("+n+"\\d"+o+")?)|("+n+"\\d"+o+")))?$")),t._floatRegExp)},_paste:function(e){var t=this,n=e.target,i=n.value,o=t._format(t.options.format);setTimeout(function(){var e=t._parse(n.value);e===z?t._update(i):(n.value=(""+e).replace(D,o[D]),t._adjust(e)===e&&t._numericRegex(o).test(n.value)||t._update(i))})},_option:function(e,n){var i=this,o=i.element,r=i.options;return n===t?r[e]:(n=i._parse(n),(n||"step"!==e)&&(r[e]=n,o.add(i._text).attr("aria-value"+e,n),o.attr(e,n)),t)},_spin:function(e,t){var n=this;t=t||500,clearTimeout(n._spinning),n._spinning=setTimeout(function(){n._spin(e,50)},t),n._step(e)},_step:function(e){var t=this,n=t.element,i=t._value,o=t._parse(n.val())||0,r=t.options.decimals||2;d()!=n[0]&&t._focusin(),t.options.factor&&o&&(o/=t.options.factor),o=+(o+t.options.step*e).toFixed(r),o=t._adjust(o),t._update(o),t._typing=!1,i!==o&&t.trigger(_)},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),t.element.toggle(!e)},_parse:function(e,t){return u(e,this._culture(t),this.options.format)},_round:function(e,t){var n=this.options.round?o._round:i;return n(e,t)},_update:function(e){var t,n=this,i=n.options,r=i.factor,a=i.format,s=i.decimals,l=n._culture(),d=n._format(a,l);s===z&&(s=d.decimals),e=n._parse(e,l),t=e!==z,t&&(e=parseFloat(n._round(e,s),10)),n._value=e=n._adjust(e),n._placeholder(o.toString(e,a,l)),t?(r&&(e=parseFloat(n._round(e*r,s),10)),e=""+e,e.indexOf("e")!==-1&&(e=n._round(+e,s)),e=e.replace(D,d[D])):e=null,n.element.val(e),n._oldText=e,n.element.add(n._text).attr("aria-valuenow",e)},_placeholder:function(e){var t=this._text;t.val(e),h||e||t.val(this.options.placeholder),t.attr("title",this.element.attr("title")||t.val())},_label:function(){var n,i,r=this,a=r.element,s=r.options,l=a.attr("id");null!==s.label&&(n=!!L(s.label)&&s.label.floating,i=L(s.label)?s.label.content:s.label,n&&(r._floatingLabelContainer=r.wrapper.wrap("<span></span>").parent(),r.floatingLabel=new o.ui.FloatingLabel(r._floatingLabelContainer,{widget:r})),o.isFunction(i)&&(i=i.call(r)),i||(i=""),l||(l=s.name+"_"+o.guid(),a.attr("id",l)),r._inputLabel=e("<label class='"+E+"' for='"+l+"'>"+i+"</label>'").insertBefore(r.wrapper),r.element.attr("disabled")===t&&r.element.attr("readonly")===t&&r._inputLabel.on("click"+b,B(r.focus,r)))},_wrapper:function(){var t,n=this,i=n.element,o=i[0];t=i.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=i.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=o.style.cssText,o.style.width="",n.wrapper=t.addClass("k-widget k-numerictextbox").addClass(o.className).removeClass("input-validation-error").css("display",""),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=o.on("reset",t._resetHandler))}});s.plugin(N)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.filtermenu.min",["kendo.datepicker.min","kendo.numerictextbox.min","kendo.dropdownlist.min","kendo.binder.min"],e)}(function(){return function(e,t){function n(t,i){t.filters&&(t.filters=e.grep(t.filters,function(e){return n(e,i),e.filters?e.filters.length:e.field!=i}))}function i(e){var t,n,i,o,r,a;if(e&&e.length)for(a=[],t=0,n=e.length;t<n;t++)i=e[t],r=""!==i.text?i.text||i.value||i:i.text,o=null==i.value?i.text||i:i.value,a[t]={text:r,value:o};return a}function o(t,n){return e.grep(t,function(t){return t.filters?(t.filters=e.grep(t.filters,function(e){return e.field!=n}),t.filters.length):t.field!=n})}function r(t,n){t.filters&&(t.filters=e.grep(t.filters,function(e){return r(e,n),e.filters?e.filters.length:e.field==n&&"eq"==e.operator}))}function a(n){return"and"==n.logic&&n.filters.length>1?[]:n.filters?e.map(n.filters,function(e){return a(e)}):n.value!==t?[n.value]:[]}function s(e,n){for(var i,o,r=d.getter(n,!0),a=[],s=0,l={};s<e.length;)i=e[s++],o=r(i),o===t||l.hasOwnProperty(o)||(a.push(i),l[o]=!0);return a}function l(e,t){return function(n){var i=e(n);return s(i,t)}}var d=window.kendo,c=d.ui,u=e.proxy,h=d.support,p=h.browser.chrome?"disabled":"off",f="kendoPopup",m="init",g="open",v="refresh",_="change",b=".kendoFilterMenu",w="Is equal to",k="Is not equal to",y={number:"numerictextbox",date:"datepicker"},x={string:"text",number:"number",date:"date"},C=d.isFunction,S=c.Widget,T='<div class="k-filter-menu-container"><div class="k-filter-help-text">#=messages.info#</div><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value"/>#=messages.isTrue#</label><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value"/>#=messages.isFalse#</label><div class="k-action-buttons"><button type="submit" title="#=messages.filter#" class="k-button k-primary">#=messages.filter#</button><button type="reset" title="#=messages.clear#" class="k-button">#=messages.clear#</button></div></div>',D='<div class="k-filter-menu-container"><div class="k-filter-help-text">#=messages.info#</div><label><input class="k-textbox" data-#=ns#bind="value: filters[0].value" name="filters[0].value"/></label><div class="k-action-buttons"><button type="submit" title="#=messages.filter#" class="k-button k-primary">#=messages.filter#</button><button type="reset" title="#=messages.clear#" class="k-button">#=messages.clear#</button></div></div>',A='<div class="k-filter-menu-container"><div class="k-filter-help-text">#=messages.info#</div><select title="#=messages.operator#" data-#=ns#bind="value: filters[0].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select title="#=messages.value#" data-#=ns#bind="value:filters[0].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values).replace(/\'/g,"&\\#39;")#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#" data-#=ns#value-primitive="true"></select>#}else{#<input title="#=messages.value#" data-#=ns#bind="value:filters[0].value" class="k-textbox" type="text" #=role ? "data-" + ns + "role=\'" + role + "\'" : ""# />#}##if(extra){#<select title="#=messages.logic#" class="k-filter-and" data-#=ns#bind="value: logic" data-#=ns#role="dropdownlist"><option value="and">#=messages.and#</option><option value="or">#=messages.or#</option></select><select title="#=messages.additionalOperator#" data-#=ns#bind="value: filters[1].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select title="#=messages.additionalValue#" data-#=ns#bind="value:filters[1].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values).replace(/\'/g,"&\\#39;")#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#" data-#=ns#value-primitive="true"></select>#}else{#<input title="#=messages.additionalValue#" data-#=ns#bind="value: filters[1].value" class="k-textbox" type="text" #=role ? "data-" + ns + "role=\'" + role + "\'" : ""#/>#}##}#<div class="k-action-buttons"><button type="submit" title="#=messages.filter#" class="k-button k-primary">#=messages.filter#</button><button type="reset" title="#=messages.clear#" class="k-button">#=messages.clear#</button></div></div>',E='<div data-#=ns#role="view" class="k-grid-filter-menu"><div data-#=ns#role="header" class="k-header"><a href="\\#" class="k-header-cancel k-link" title="#=messages.cancel#" aria-label="#=messages.cancel#"><span class="k-icon k-i-arrow-chevron-left"></span></a>#=messages.filter# #=messages.into# #=title#<a href="\\#" class="k-header-done k-link" title="#=messages.done#" aria-label="#=messages.done#"><span class="k-icon k-i-check"></span></a></div><form title="#=messages.title#" class="k-filter-menu"><ul class="k-reset"><li><span class="k-list-title k-filter-help-text">#=messages.info#</span><ul class="k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-filter-operator-text">#=messages.operator#</span><span class="k-listgroup-form-field-wrapper"><select id="operator_#=filterMenuGuid#" title="#=messages.operator#" class="k-filter-operator" data-#=ns#bind="value: filters[0].operator" autocomplete="'+p+'" >#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select></span></label></li><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-filter-input-text">#=messages.value#</span><span class="k-listgroup-form-field-wrapper">#if(values){#<select id="value_#=filterMenuGuid#" title="#=messages.value#" data-#=ns#bind="value:filters[0].value" autocomplete="'+p+'" ><option value="">#=messages.selectValue#</option>#for(var val in values){#<option value="#=values[val].value#">#=values[val].text#</option>#}#</select>#}else{#<input id="value_#=filterMenuGuid#" title="#=messages.value#" data-#=ns#bind="value:filters[0].value" class="k-value-input" type="#=inputType#" autocomplete="'+p+'" />#}#</span></label></li></ul>#if(extra){#<ul class="k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-filter-logic-and-text">#=messages.and#</span><span class="k-listgroup-form-field-wrapper"><input id="and_#=filterMenuGuid#" title="#=messages.and#" type="radio" name="logic"data-#=ns#bind="checked: logic" value="and" autocomplete="'+p+'" /></span></label></li><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-filter-logic-or-text">#=messages.or#</span><span class="k-listgroup-form-field-wrapper"><input id="or_#=filterMenuGuid#" title="#=messages.or#" type="radio" name="logic" data-#=ns#bind="checked: logic" value="or" autocomplete="'+p+'" /></span></label></li></ul><ul class="k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-filter-operator-text">#=messages.additionalOperator#</span><span class="k-listgroup-form-field-wrapper"><select id="additionalOperator_#=filterMenuGuid#" title="#=messages.additionalOperator#" class="k-filter-operator" data-#=ns#bind="value: filters[1].operator" autocomplete="'+p+'" >#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select></span></label></li><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-filter-input-text">#=messages.additionalValue#</span><span class="k-listgroup-form-field-wrapper">#if(values){#<select id="additionalValue_#=filterMenuGuid#" title="#=messages.additionalValue#" data-#=ns#bind="value:filters[1].value" autocomplete="'+p+'" ><option value="">#=messages.selectValue#</option>#for(var val in values){#<option value="#=values[val].value#">#=values[val].text#</option>#}#</select>#}else{#<input id="additionalValue_#=filterMenuGuid#" title="#=messages.additionalValue#" data-#=ns#bind="value:filters[1].value" class="k-value-input" type="#=inputType#" autocomplete="'+p+'" />#}#</span></label></li></ul>#}#</li><li class="k-item k-clear-wrap"><span class="k-list-title">&nbsp;</span><ul class="k-listgroup k-listgroup-flush"><li class="k-listgroup-item"><span class="k-link k-label k-clear" title="#=messages.clear#" aria-label="#=messages.clear#">#=messages.clear#</span></li></ul></li></ul></form></div>',I='<div data-#=ns#role="view" class="k-grid-filter-menu"><div data-#=ns#role="header" class="k-header"><a href="\\#" class="k-header-cancel k-link" title="#=messages.cancel#" aria-label="#=messages.cancel#"><span class="k-icon k-i-arrow-chevron-left"></span></a>#=messages.filter# #=messages.into# #=title#<a href="\\#" class="k-header-done k-link" title="#=messages.done#" aria-label="#=messages.done#"><span class="k-icon k-i-check"></span></a></div><form title="#=messages.title#" class="k-filter-menu"><ul class="k-reset"><li><span class="k-list-title k-filter-help-text">#=messages.info#</span><ul class="k-listgroup k-listgroup-flush k-multicheck-bool-wrap"><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span class="k-listgroup-form-field-label k-item-title">#=messages.isTrue#</span><span class="k-listgroup-form-field-wrapper"></span><input id="true_#=filterMenuGuid#" title="#=messages.isTrue#" type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value" autocomplete="'+p+'" /></span></label></li><li class="k-item k-listgroup-item"><label class="k-listgroup-form-row k-label"><span for="false_#=filterMenuGuid#" class="k-listgroup-form-field-label k-item-title">#=messages.isFalse#</span><span class="k-listgroup-form-field-wrapper"><input id="false_#=filterMenuGuid#" title="#=messages.isFalse#" type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value" autocomplete="'+p+'" /></span></label></li></ul></li><li class="k-item k-clear-wrap"><span class="k-list-title">&nbsp;</span><ul class="k-listgroup k-listgroup-flush"><li class="k-listgroup-item"><span class="k-link k-label k-clear" title="#=messages.clear#" aria-label="#=messages.clear#">#=messages.clear#</span></li></ul></li></ul></form></div>',M=S.extend({init:function(t,n){var i,o,r,a,s=this,l="string";S.fn.init.call(s,t,n),i=s.operators=n.operators||{},t=s.element,n=s.options,n.appendToElement||(r=t.addClass("k-with-icon k-filterable").find(".k-grid-filter"),r[0]||(r=t.prepend('<a class="k-grid-filter" href="#" title="'+n.messages.filter+'" aria-label="'+n.messages.filter+'"><span class="k-icon k-i-filter"></span></a>').find(".k-grid-filter")),r.attr("tabindex",-1).on("click"+b,u(s._click,s))),s.link=r||e(),s.dataSource=F.create(n.dataSource),s.field=n.field||t.attr(d.attr("field")),s.model=s.dataSource.reader.model,s._parse=function(e){return null!=e?e+"":e},s.model&&s.model.fields&&(a=s.model.fields[s.field],a&&(l=a.type||"string",a.parse&&(s._parse=u(a.parse,a)))),n.values&&(l="enums"),s.type=l,i=i[l]||n.operators[l];for(o in i)break;s._defaultFilter=function(){return{field:s.field,operator:o||"eq",value:""}},s._refreshHandler=u(s.refresh,s),s.dataSource.bind(_,s._refreshHandler),n.appendToElement?s._init():s.refresh()},_init:function(){var t,n=this,i=n.options.ui,o=C(i);n.pane=n.options.pane,n.pane&&(n._isMobile=!0),o||(t=i||y[n.type]),n._isMobile?n._createMobileForm(t):n._createForm(t),n.form.on("submit"+b,u(n._submit,n)).on("reset"+b,u(n._reset,n)),o&&n.form.find(".k-textbox").removeClass("k-textbox").each(function(){i(e(this))}),n.form.find("["+d.attr("role")+"=numerictextbox]").removeClass("k-textbox").end().find("["+d.attr("role")+"=datetimepicker]").removeClass("k-textbox").end().find("["+d.attr("role")+"=timepicker]").removeClass("k-textbox").end().find("["+d.attr("role")+"=datepicker]").removeClass("k-textbox"),n.refresh(),n.trigger(m,{field:n.field,container:n.form}),d.cycleForm(n.form)},_createForm:function(t){var n=this,o=n.options,r=n.operators||{},a=n.type,s=C(n.options.ui);r=r[a]||o.operators[a],n.form=e('<form title="'+n.options.messages.title+'" class="k-filter-menu"/>').html(d.template("boolean"===a?s?D:T:A)({field:n.field,format:o.format,ns:d.ns,messages:o.messages,
extra:o.extra,operators:r,type:a,role:t,values:i(o.values)})),o.appendToElement?(n.element.append(n.form),n.popup=n.element.closest(".k-popup").data(f)):n.popup=n.form[f]({anchor:n.link,copyAnchorStyles:!1,open:u(n._open,n),activate:u(n._activate,n),close:function(){n.options.closeCallback&&n.options.closeCallback(n.element)}}).data(f),n.form.on("keydown"+b,u(n._keydown,n))},_createMobileForm:function(t){var n=this,o=n.options,r=n.operators||{},a=d.guid(),s=n.type;r=r[s]||o.operators[s],n.form=e("<div />").html(d.template("boolean"===s?I:E)({field:n.field,title:o.title||n.field,format:o.format,ns:d.ns,messages:o.messages,extra:o.extra,operators:r,filterMenuGuid:a,type:s,role:t,inputType:x[s],values:i(o.values)})),n.view=n.pane.append(n.form.html()),n.form=n.view.element.find("form"),n.view.element.on("click",".k-header-done",function(e){n.form.submit(),e.preventDefault()}).on("click",".k-header-cancel",function(e){n._closeForm(),e.preventDefault()}).on("click",".k-clear",function(e){n._mobileClear(),e.preventDefault()}),n.view.bind("showStart",function(){n.refresh()})},refresh:function(){var e=this,t=e.dataSource.filter()||{filters:[],logic:"and"},n=[e._defaultFilter()],i=e._defaultFilter().operator;(e.options.extra||"isnull"!==i&&"isnullorempty"!==i&&"isnotnullorempty"!==i&&"isnotnull"!==i&&"isempty"!==i&&"isnotempty"!==i)&&n.push(e._defaultFilter()),e.filterModel=d.observable({logic:"and",filters:n}),e.form&&d.bind(e.form.children().first(),e.filterModel),e._bind(t)?e.link.addClass("k-state-active"):e.link.removeClass("k-state-active")},destroy:function(){var e=this;S.fn.destroy.call(e),e.form&&(d.unbind(e.form),d.destroy(e.form),e.form.unbind(b),e.popup&&(e.popup.destroy(),e.popup=null),e.form=null),e.view&&(e.view.purge(),e.view=null),e.link.unbind(b),e._refreshHandler&&(e.dataSource.unbind(_,e._refreshHandler),e.dataSource=null),e.element=e.link=e._refreshHandler=e.filterModel=null},_bind:function(e){var t,n,i,o,r=this,a=e.filters,s=!1,l=0,d=r.filterModel;for(t=0,n=a.length;t<n;t++)o=a[t],o.field==r.field?(d.set("logic",e.logic),i=d.filters[l],i||(d.filters.push({field:r.field}),i=d.filters[l]),i.set("value",r._parse(o.value)),i.set("operator",o.operator),l++,s=!0):o.filters&&(s=s||r._bind(o));return s},_stripFilters:function(t){return e.grep(t,function(e){return""!==e.value&&null!=e.value||"isnull"===e.operator||"isnotnull"===e.operator||"isempty"===e.operator||"isnotempty"===e.operator||"isnullorempty"==e.operator||"isnotnullorempty"==e.operator})},_merge:function(e){var t,i,o,r=this,a=e.logic||"and",s=this._stripFilters(e.filters),l=r.dataSource.filter()||{filters:[],logic:"and"};for(n(l,r.field),i=0,o=s.length;i<o;i++)t=s[i],t.value=r._parse(t.value);return s.length&&(l.filters.length?(e.filters=s,"and"!==l.logic&&(l.filters=[{logic:l.logic,filters:l.filters}],l.logic="and"),l.filters.push(s.length>1?e:s[0])):(l.filters=s,l.logic=a)),l},filter:function(e){var t=this._stripFilters(e.filters);t.length&&this.trigger("change",{filter:{logic:e.logic,filters:t},field:this.field})||(e=this._merge(e),e.filters.length&&this.dataSource.filter(e))},clear:function(e){var t=this;e=e||t.dataSource.filter()||{filters:[]},this.trigger("change",{filter:null,field:t.field})||t._removeFilter(e)},_mobileClear:function(){var t,n,i,o,r,a=this,s=a.view.element;"boolean"===a.type?(t=s.find("[type='radio']:checked"),n=t.val(),t.val(""),t.trigger("change"),t.val(n),t.prop("checked",!1)):(i=s.find("select"),i.each(function(t,n){var i=e(n);i.val(i.find("option:first").val()),i.trigger("change")}),"string"!==a.type&&"date"!==a.type&&"number"!==a.type||(o=s.find(".k-value-input"),o.each(function(t,n){var i=e(n);i.val(""),i.trigger("change")})),a.options.extra&&(r=s.find("[name=logic]").first(),r.prop("checked",!0),r.trigger("change")))},_removeFilter:function(t){var n=this;t.filters=e.grep(t.filters,function(e){return e.filters?(e.filters=o(e.filters,n.field),e.filters.length):e.field!=n.field}),t.filters.length||(t=null),n.dataSource.filter(t)},_submit:function(t){var n,i,o;t.preventDefault(),t.stopPropagation(),n=this.filterModel.toJSON(),i=e.grep(n.filters,function(e){return""!==e.value&&null!==e.value}),this._checkForNullOrEmptyFilter(n)||i&&i.length?this.filter(n):(o=this.dataSource.filter(),o&&(o.filters.push(n),n=o),this.clear(n)),this._closeForm()},_checkForNullOrEmptyFilter:function(e){var t,n,i;return!!(e&&e.filters&&e.filters.length)&&(t=!1,n=!1,e.filters[0]&&(i=e.filters[0].operator,t="isnull"==i||"isnotnull"==i||"isnotempty"==i||"isempty"==i||"isnullorempty"==i||"isnotnullorempty"==i),e.filters[1]&&(i=e.filters[1].operator,n="isnull"==i||"isnotnull"==i||"isnotempty"==i||"isempty"==i||"isnullorempty"==i||"isnotnullorempty"==i),!this.options.extra&&t||this.options.extra&&(t||n))},_reset:function(){this.clear(),this.options.search&&this.container&&this.container.find("label").parent().show(),this._closeForm()},_closeForm:function(){this._isMobile?this.pane.navigate("",this.options.animations.right):this.popup.close()},_click:function(e){e.preventDefault(),e.stopPropagation(),this.popup||this.pane||this._init(),this._isMobile?this.pane.navigate(this.view,this.options.animations.left):this.popup.toggle()},_open:function(){var t;e(".k-filter-menu").not(this.form).each(function(){t=e(this).data(f),t&&t.close()})},_activate:function(){this.form.find(":kendoFocusable:first").focus(),this.trigger(g,{field:this.field,container:this.form})},_keydown:function(e){e.keyCode==d.keys.ESC&&this.popup.close()},events:[m,"change",g],options:{name:"FilterMenu",extra:!0,appendToElement:!1,type:"string",operators:{string:{eq:w,neq:k,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with",isnull:"Is null",isnotnull:"Is not null",isempty:"Is empty",isnotempty:"Is not empty",isnullorempty:"Has no value",isnotnullorempty:"Has value"},number:{eq:w,neq:k,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than",isnull:"Is null",isnotnull:"Is not null"},date:{eq:w,neq:k,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before",isnull:"Is null",isnotnull:"Is not null"},enums:{eq:w,neq:k,isnull:"Is null",isnotnull:"Is not null"}},messages:{info:"Show items with value that:",title:"Show items with value that:",isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear",and:"And",or:"Or",selectValue:"-Select value-",operator:"Operator",value:"Value",additionalValue:"Additional value",additionalOperator:"Additional operator",logic:"Filters logic",cancel:"Cancel",done:"Done",into:"in"},animations:{left:"slide",right:"slide:right"}}}),R=".kendoFilterMultiCheck",F=d.data.DataSource,P='<div data-#=ns#role="view" class="k-grid-filter-menu"><div data-#=ns#role="header" class="k-header"><a href="\\#" class="k-header-cancel k-link" title="#=messages.cancel#" aria-label="#=messages.cancel#"><span class="k-icon k-i-arrow-chevron-left"></span></a>#=messages.filter# #=messages.into# #=title#<a href="\\#" class="k-header-done k-link" title="#=messages.done#" aria-label="#=messages.done#"><span class="k-icon k-i-check"></span></a></div><form class="k-filter-menu"><ul class="k-reset">#if(search){#<li class="k-textbox k-space-right"><input placeholder="#=messages.search#" title="#=messages.search#" autocomplete="'+p+'"  /><span class="k-icon k-i-zoom"></span></li>#}#<li class="k-filter-tools"><span style="#=checkAll ? "" : "visibility: hidden;" #" class="k-label k-select-all" title="#=messages.checkAll#" aria-label="#=messages.checkAll#">#=messages.checkAll#</span><span class="k-label k-clear-all" title="#=messages.clearAll#" aria-label="#=messages.clearAll#">#=messages.clearAll#</span></li>#if(messages.selectedItemsFormat){#<li><div class="k-filter-selected-items"></div></li>#}#<li><ul class="k-multicheck-wrap k-listgroup k-listgroup-flush"></ul></li></ul></form></div>',z=S.extend({init:function(t,n){var i,o;S.fn.init.call(this,t,n),n=this.options,this.element=e(t),i=this.field=this.options.field||this.element.attr(d.attr("field")),o=n.checkSource,this._foreignKeyValues()?(this.checkSource=F.create(n.values),this.checkSource.fetch()):n.forceUnique?(o=e.extend(!0,{},n.dataSource.options),delete o.pageSize,this.checkSource=F.create(o),this.checkSource.reader.data=l(this.checkSource.reader.data,this.field)):this.checkSource=F.create(o),this.dataSource=n.dataSource,this.model=this.dataSource.reader.model,this._parse=function(e){return e+""},this.model&&this.model.fields&&(i=this.model.fields[this.field],i&&("number"==i.type?this._parse=function(e){return"string"==typeof e&&("null"===e.toLowerCase()||this._foreignKeyValues()&&""===e)?null:parseFloat(e)}:i.parse&&(this._parse=u(i.parse,i)),this.type=i.type||"string")),n.appendToElement?this._init():this._createLink(),this._refreshHandler=u(this.refresh,this),this.dataSource.bind(_,this._refreshHandler)},_createLink:function(){var e=this.element,t=e.addClass("k-with-icon k-filterable").find(".k-grid-filter");t[0]||(t=e.prepend('<a class="k-grid-filter" href="#" title="'+this.options.messages.filter+'" aria-label="'+this.options.messages.filter+'"><span class="k-icon k-i-filter"></span></a>').find(".k-grid-filter")),this._link=t.attr("tabindex",-1).on("click"+b,u(this._click,this))},_init:function(){var e=this,t=this.options.forceUnique,n=this.options;this.pane=n.pane,this.pane&&(this._isMobile=!0),this._createForm(),this._foreignKeyValues()?this.refresh():t&&!this.checkSource.options.serverPaging&&this.dataSource.data().length?(this.checkSource.data(s(this.dataSource.data(),this.field)),this.refresh()):(this._attachProgress(),this.checkSource.fetch(function(){e.refresh.call(e)})),this.options.forceUnique||(this.checkChangeHandler=function(){e.container.empty(),e.refresh()},this.checkSource.bind(_,this.checkChangeHandler)),this.form.on("keydown"+R,u(this._keydown,this)).on("submit"+R,u(this._filter,this)).on("reset"+R,u(this._reset,this)),this.trigger(m,{field:this.field,container:this.form})},_attachProgress:function(){var e=this;this._progressHandler=function(){c.progress(e.container,!0)},this._progressHideHandler=function(){c.progress(e.container,!1)},this.checkSource.bind("progress",this._progressHandler).bind("change",this._progressHideHandler)},_input:function(){var e=this;e._clearTypingTimeout(),e._typingTimeout=setTimeout(function(){e.search()},100)},_clearTypingTimeout:function(){this._typingTimeout&&(clearTimeout(this._typingTimeout),this._typingTimeout=null)},search:function(){var e,t,n,i=this.options.ignoreCase,o=this.searchTextBox[0].value,r=this.container.find("label");for(i&&(o=o.toLowerCase()),e=0,this.options.checkAll&&r.length&&(this._isMobile?this.view.element.find(".k-select-all")[0].style.visibility=o?"hidden":"":(r[0].parentNode.style.display=o?"none":"",e++));e<r.length;)t=r[e],n=t.textContent||t.innerText,i&&(n=n.toLowerCase()),t.parentNode.style.display=n.indexOf(o)>=0?"":"none",e++},_activate:function(){this.form.find(":kendoFocusable:first").focus(),this.trigger(g,{field:this.field,container:this.form})},_createForm:function(){var t,n=this.options,i="",o=this;this._isMobile||(i+="<div class='k-filter-menu-container'>",n.search&&(i+="<div class='k-textbox k-space-right'><input placeholder='"+n.messages.search+"'/><span class='k-icon k-i-zoom'></span></div>"),i+="<ul class='k-reset k-multicheck-wrap'></ul>",n.messages.selectedItemsFormat&&(i+="<div class='k-filter-selected-items'>"+d.format(n.messages.selectedItemsFormat,0)+"</div>"),i+="<div class='k-action-buttons'>",i+="<button type='submit' class='k-button k-primary'>"+n.messages.filter+"</button>",i+="<button type='reset' class='k-button'>"+n.messages.clear+"</button>",i+="</div>",i+="</div>",this.form=e('<form class="k-filter-menu"/>').html(i),this.container=this.form.find(".k-multicheck-wrap")),this._isMobile?(o.form=e("<div />").html(d.template(P)({field:o.field,title:n.title||o.field,ns:d.ns,messages:n.messages,search:n.search,checkAll:n.checkAll})),o.view=o.pane.append(o.form.html()),o.form=o.view.element.find("form"),t=this.view.element,this.container=t.find(".k-multicheck-wrap"),t.on("click",".k-header-done",function(e){o.form.submit(),e.preventDefault()}).on("click",".k-header-cancel",function(e){o._closeForm(),e.preventDefault()}).on("click",".k-clear-all",function(e){o._mobileCheckAll(!1),e.preventDefault()}).on("click",".k-select-all",function(e){o._mobileCheckAll(!0),e.preventDefault()}),o.view.bind("showStart",function(){o.refresh()})):n.appendToElement?(this.popup=this.element.closest(".k-popup").data(f),this.element.append(this.form)):o.popup=o.form.kendoPopup({anchor:o._link,copyAnchorStyles:!1,open:u(o._open,o),activate:u(o._activate,o),close:function(){o.options.closeCallback&&o.options.closeCallback(o.element)}}).data(f),n.search&&(this.searchTextBox=this.form.find(".k-textbox > input"),this.searchTextBox.on("input",u(this._input,this)))},createCheckAllItem:function(){var t=this.options,n=d.template(t.itemTemplate({field:"all",mobile:this._isMobile})),i=e(n({all:t.messages.checkAll}));this.container.prepend(i),this.checkBoxAll=i.find(":checkbox").eq(0).addClass("k-check-all"),this.checkAllHandler=u(this.checkAll,this),this.checkBoxAll.on(_+R,this.checkAllHandler)},updateCheckAllState:function(){if(this.options.messages.selectedItemsFormat&&this.form.find(".k-filter-selected-items").text(d.format(this.options.messages.selectedItemsFormat,this.container.find(":checked:not(.k-check-all)").length)),this.checkBoxAll){var e=this.container.find(":checkbox:not(.k-check-all)").length==this.container.find(":checked:not(.k-check-all)").length;this.checkBoxAll.prop("checked",e)}},refresh:function(e){var t=this.options.forceUnique,n=this.dataSource,i=this.getFilterArray();this._link&&this._link.toggleClass("k-state-active",0!==i.length),this.form&&(e&&t&&e.sender===n&&!n.options.serverPaging&&("itemchange"==e.action||"add"==e.action||"remove"==e.action||n.options.autoSync&&"sync"===e.action)&&!this._foreignKeyValues()&&(this.checkSource.data(s(this.dataSource.data(),this.field)),this.container.empty()),this.container.is(":empty")&&this.createCheckBoxes(),this.checkValues(i),this.trigger(v))},getFilterArray:function(){var t,n=e.extend(!0,{},{filters:[],logic:"and"},this.dataSource.filter());return r(n,this.field),t=a(n)},createCheckBoxes:function(){var e,t,n,i=this.options,o={field:this.field,format:i.format,mobile:this._isMobile,type:this.type};this.options.forceUnique?this._foreignKeyValues()?(e=this.checkSource.data(),o.valueField="value",o.field="text"):e=this.checkSource._isServerGrouped()?s(this.checkSource._flatData(this.checkSource.data()),this.field):this.checkSource.data():e=this.checkSource.view(),t=d.template(i.itemTemplate(o)),n=d.render(t,e),i.checkAll&&!this._isMobile&&this.createCheckAllItem(),this.container.on(_+R,":checkbox",u(this.updateCheckAllState,this)),this.container.append(n)},checkAll:function(){var e=this.checkBoxAll.is(":checked");this.container.find(":checkbox").prop("checked",e)},checkValues:function(t){var n=this;e(e.grep(this.container.find(":checkbox").prop("checked",!1),function(i){var o,r,a=!1;if(!e(i).is(".k-check-all"))for(o=n._parse(e(i).val()),r=0;r<t.length;r++)if(a="date"==n.type?t[r]&&o?t[r].getTime()==o.getTime():null===t[r]&&null===o:t[r]==o)return a})).prop("checked",!0),this.updateCheckAllState()},_mobileCheckAll:function(t){var n=this,i=n.container.find(":checkbox");i.each(function(n,i){var o=e(i);o.prop("checked",t),o.trigger("change")})},_filter:function(t){var n,i;t.preventDefault(),t.stopPropagation(),n={logic:"or"},i=this,n.filters=e.map(this.form.find(":checkbox:checked:not(.k-check-all)"),function(t){return{value:e(t).val(),operator:"eq",field:i.field}}),this.trigger("change",{filter:n,field:i.field})||(n=this._merge(n),n.filters.length?this.dataSource.filter(n):i._removeFilter(i.dataSource.filter()||{filters:[]}),this._closeForm())},_stripFilters:function(t){return e.grep(t,function(e){return null!=e.value})},_foreignKeyValues:function(){var e=this.options;return e.values&&!e.checkSource},destroy:function(){var e=this;S.fn.destroy.call(e),e.form&&(d.unbind(e.form),d.destroy(e.form),e.form.unbind(R),e.popup&&(e.popup.destroy(),e.popup=null),e.form=null,e.container&&(e.container.unbind(R),e.container=null),e.checkBoxAll&&e.checkBoxAll.unbind(R)),e.view&&(e.view.purge(),e.view=null),e._link&&e._link.unbind(b),e._refreshHandler&&(e.dataSource.unbind(_,e._refreshHandler),e.dataSource=null),e.checkChangeHandler&&e.checkSource.unbind(_,e.checkChangeHandler),e._progressHandler&&e.checkSource.unbind("progress",e._progressHandler),e._progressHideHandler&&e.checkSource.unbind("change",e._progressHideHandler),this._clearTypingTimeout(),this.searchTextBox=null,e.element=e.checkSource=e.container=e.checkBoxAll=e._link=e._refreshHandler=e.checkAllHandler=null},options:{name:"FilterMultiCheck",itemTemplate:function(e){var n=e.field,i=e.format,o=e.valueField,r=e.mobile,a="";return o===t&&(o=n),"date"==e.type&&(a=":yyyy-MM-ddTHH:mm:sszzz"),r?"<li class='k-item k-listgroup-item'><label class='k-label k-listgroup-form-row'><span class='k-listgroup-form-field-label k-item-title '>#:kendo.format('"+(i?i:"{0}")+"', "+n+")#</span><span class=\"k-listgroup-form-field-wrapper\"><input type='checkbox' value='#:kendo.format('{0"+a+"}',"+o+")#'/></span></label></li>":"<li class='k-item'><label class='k-label'><input type='checkbox' value='#:kendo.format('{0"+a+"}',"+o+")#'/><span>#:kendo.format('"+(i?i:"{0}")+"', "+n+")#</span></label></li>"},checkAll:!0,search:!1,ignoreCase:!0,appendToElement:!1,messages:{checkAll:"Select All",clearAll:"Clear All",clear:"Clear",filter:"Filter",search:"Search",cancel:"Cancel",selectedItemsFormat:"{0} items selected",done:"Done",into:"in"},forceUnique:!0,animations:{left:"slide",right:"slide:right"}},events:[m,v,"change",g]});e.extend(z.fn,{_click:M.fn._click,_keydown:M.fn._keydown,_reset:M.fn._reset,_closeForm:M.fn._closeForm,_removeFilter:M.fn._removeFilter,clear:M.fn.clear,_merge:M.fn._merge}),c.plugin(M),c.plugin(z)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.menu.min",["kendo.popup.min","kendo.data.min"],e)}(function(){return function(e,t){function n(e,t){return e=e.split(" ")[!t+0]||e,e.replace("top","up").replace("bottom","down")}function i(e,t,n){e=e.split(" ")[!t+0]||e;var i={origin:["bottom",n?"right":"left"],position:["top",n?"right":"left"]},o=/left|right/.test(e);return o?(i.origin=["top",e],i.position[1]=S.directions[e].reverse):(i.origin[0]=e,i.position[0]=S.directions[e].reverse),i.origin=i.origin.join(" "),i.position=i.position.join(" "),i}function o(t,n){try{return e.contains(t,n)}catch(i){return!1}}function r(t){t=e(t),t.addClass("k-item k-menu-item").children(U).addClass(J),t.children("a").addClass(G).children(U).addClass(J),t.filter(":not([disabled])").addClass(xe),t.filter(".k-separator").removeClass("k-menu-item").addClass("k-menu-separator").empty().append("&nbsp;"),t.filter("li[disabled]").addClass(Te).removeAttr("disabled").attr("aria-disabled",!0),t.filter("[role]").length||t.attr("role","menuitem"),t.children($).length||t.contents().filter(function(){return!(this.nodeName.match(V)||3==this.nodeType&&!S.trim(this.nodeValue))}).wrapAll("<span class='"+G+"'/>"),a(t),l(t)}function a(t){t=e(t),t.find("> .k-link > [class*=k-i-arrow-60]:not(.k-sprite)").remove(),t.filter(":has(.k-menu-group)").children(".k-link:not(:has([class*=k-i-arrow]:not(.k-sprite)))").each(function(){var t=e(this),n=s(t);t.append("<span class='k-menu-expand-arrow k-icon "+n+"' />")})}function s(e){var t,n=e.parent().parent(),i=S.support.isRtl(n);return t=n.hasClass(q+"-horizontal")?"k-i-arrow-60-down":i?"k-i-arrow-60-left":"k-i-arrow-60-right"}function l(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(Z),t.filter(".k-last:not(:last-child)").removeClass(Y),t.filter(":first-child").addClass(Z),t.filter(":last-child").addClass(Y)}function d(e){var t,n;if(e&&e.length)for(t in e)n=e.eq(t),n.find("ul").length?n.attr("aria-haspopup",!0):n.removeAttr("aria-haspopup")}function c(e){if(!e.hasClass(q))return e.parentsUntil("."+q,"li")}function u(t,n){var i=p(n);i&&h(t,i),n.items&&e(t).children("ul").children("li").each(function(e){u(this,n.items[e])})}function h(t,n){e(t).children(".k-link").data({selectHandler:n})}function p(e){var t=e.select,n=S.isFunction;return t&&n(t)?t:null}function f(e){return e?"li[data-groupparent='"+e+"']":"li[data-groupparent]"}function m(e){var t=e?"[data-group='"+e+"']":"[data-group]";return"ul"+t+",div"+t}function g(t,n){var i=t.find(f()),o=[];return i.each(function(i,r){var a,s;for(r=e(r),a=r.data(we),s=t;a;)s=n.find(m(a)+":visible"),s.length&&o.push(s),r=s.find(f()),a=r.data(we)}),o}function v(t,n){var i=t.data(be);return i?n.find(f(i)):e([])}function _(t,n){var i=t.data(we);return i?n.children(Ie).children(m(i)):e([])}function b(t,n){var i,o,r=[],a=function(e){for(;e.parentNode&&!n.is(e.parentNode);)r.push(e.parentNode),e=e.parentNode},s=t[0]||t;for(a(s),i=r[r.length-1];e(i).is(Ie)&&(o=e(i).children("ul"),s=v(o,n)[0]);)r.push(s),a(s),i=r[r.length-1];return r}function w(e){var t=0;return e.wheelDelta&&(t=-e.wheelDelta/120,t=t>0?Math.ceil(t):Math.floor(t)),e.detail&&(t=Math.round(e.detail/3)),t}function k(e,t){for(var n=0,i=e.parentNode;i&&!isNaN(i[t]);)n+=i[t],i=i.parentNode;return n}function y(e){return se&&e.originalEvent&&e.originalEvent.pointerType in We}function x(e){var t=e.originalEvent;return A&&/touch/i.test(t.type||"")}function C(e){e.contents().filter(function(){return"LI"!=this.nodeName}).remove()}var S=window.kendo,T=S.ui,D=S._activeElement,A=S.support.touch&&S.support.mobileOS,E=e.isArray,I=S.data.HierarchicalDataSource,M="mousedown",R="click",F=30,P=50,z=e.extend,B=e.proxy,L=e.each,H=S.template,N=S.keys,O=T.Widget,V=/^(ul|a|div)$/i,W=".kendoMenu",U="img",j="open",q="k-menu",G="k-link k-menu-link",$=".k-link",K=".k-menu-expand-arrow",Y="k-last",Q="close",X="timer",Z="k-first",J="k-image",ee="select",te="zIndex",ne="activate",ie="deactivate",oe="touchstart"+W+" MSPointerDown"+W+" pointerdown"+W,re=S.support.pointers,ae=S.support.msPointers,se=ae||re,le="change",de="error",ce=S.support.touch?"touchstart":"",ue=re?"pointerover":ae?"MSPointerOver":"mouseenter",he=re?"pointerout":ae?"MSPointerOut":"mouseleave",pe="DOMMouseScroll"+W+" mousewheel"+W,fe=S.support.resize+W,me="scrollWidth",ge="scrollHeight",ve="offsetWidth",_e="offsetHeight",be="group",we="groupparent",ke=e(document.documentElement),ye="kendoPopup",xe="k-state-default",Ce="k-state-hover",Se="k-state-focused",Te="k-state-disabled",De="k-state-selected",Ae=".k-menu",Ee=".k-menu-group",Ie=".k-animation-container",Me=Ee+","+Ie,Re=":not(.k-list) > .k-item",Fe=".k-item.k-state-disabled",Pe=".k-item",ze=".k-item:not(.k-state-disabled)",Be=".k-item:not(.k-state-disabled) > .k-link",Le=":not(.k-item.k-separator)",He=Pe+Le+":eq(0)",Ne=Pe+Le+":last",Oe="div:not(.k-animation-container,.k-list-container)",Ve=".k-menu-scroll-button",We={2:1,touch:1},Ue="string",je="dataBound",qe={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField",imageAttr:"dataImageAttrField",content:"dataContentField"},Ge={wrapperCssClass:function(e,t){var n="k-item k-menu-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),t.attr&&t.attr.hasOwnProperty("class")&&(n+=" "+t.attr["class"]),t.selected&&(n+=" "+De),n},itemCssAttributes:function(e){var t,n="",i=e.attr||{};for(t in i)i.hasOwnProperty(t)&&"class"!==t&&(n+=t+'="'+i[t]+'" ');return n},imageCssAttributes:function(e){var t,n="",i=e&&e.toJSON?e.toJSON():{};i["class"]?i["class"]+=" "+J:i["class"]=J;for(t in i)i.hasOwnProperty(t)&&(n+=t+'="'+i[t]+'" ');return n},contentCssAttributes:function(e){var t,n="",i=e.contentAttr||{},o="k-content k-group k-menu-group";i["class"]?i["class"]+=" "+o:i["class"]=o;for(t in i)i.hasOwnProperty(t)&&(n+=t+'="'+i[t]+'" ');return n},textClass:function(){return G},arrowClass:function(e,t){var n="k-menu-expand-arrow k-icon";return n+=t.horizontal?" k-i-arrow-60-down":" k-i-arrow-60-right"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-menu-group"},content:function(e){return e.content?e.content:"&nbsp;"}},$e=S.ui.DataBoundWidget.extend({init:function(e,t){var n=this;O.fn.init.call(n,e,t),e=n.wrapper=n.element,t=n.options,n._accessors(),n._templates(),n._dataSource(),n._updateClasses(),n._animations(t),n.nextItemZIndex=100,n._tabindex(),n._initOverflow(t),n._attachMenuEventsHandlers(),t.openOnClick&&(n.clicked=!1),e.attr("role","menubar"),e[0].id&&(n._ariaId=S.format("{0}_mn_active",e[0].id)),S.notify(n)},events:[j,Q,ne,ie,ee,je],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100,scrollable:!1,popupCollision:t},_initData:function(){var e=this;e.dataSource&&(e.angular("cleanup",function(){return{elements:e.element.children()}}),e.element.empty(),e.append(e.dataSource.view(),e.element),e.angular("compile",function(){return{elements:e.element.children()}}))},_attachMenuEventsHandlers:function(){var t=this,n=t.element,i=t.options,o=t._overflowWrapper();(o||n).on(oe,Pe,B(t._focusHandler,t)).on(R+W,Fe,!1).on(R+W,Pe,B(t._click,t)).on(oe+" "+M+W,".k-content",B(t._preventClose,t)).on(ue+W,ze,B(t._mouseenter,t)).on(he+W,ze,B(t._mouseleave,t)).on(M+W,ze,B(t._mousedown,t)).on(ce+W+" "+ue+W+" "+he+W+" "+M+W+" "+R+W,Be,B(t._toggleHover,t)),n.on("keydown"+W,B(t._keydown,t)).on("focus"+W,B(t._focus,t)).on("focus"+W,".k-content",B(t._focus,t)).on("blur"+W,B(t._removeHoverItem,t)).on("blur"+W,"[tabindex]",B(t._checkActiveElement,t)),o&&o.on(he+W,Me,B(t._mouseleavePopup,t)).on(ue+W,Me,B(t._mouseenterPopup,t)),i.openOnClick&&(t._documentClickHandler=B(t._documentClick,t),e(document).click(t._documentClickHandler))},_detachMenuEventsHandlers:function(){var t=this,n=t._overflowWrapper();n&&n.off(W),t.element.off(W),t._documentClickHandler&&e(document).unbind("click",t._documentClickHandler)},_initOverflow:function(t){var n,i,o,r,a=this,s="horizontal"==t.orientation;t.scrollable&&(a._openedPopups={},a._scrollWrapper=a.element.wrap("<div class='k-menu-scroll-wrapper "+t.orientation+"'></div>").parent(),s&&C(a.element),n=e(a.templates.scrollButton({direction:s?"left":"up"})),i=e(a.templates.scrollButton({direction:s?"right":"down"})),n.add(i).appendTo(a._scrollWrapper),a._initScrolling(a.element,n,i,s),o=a.element.outerWidth(),r=a.element[0].style.width,r="auto"===r?"":r,s&&e(window).on(fe,S.throttle(function(){a._setOverflowWrapperWidth(o,r),a._toggleScrollButtons(a.element,n,i,s)},100)),a._setOverflowWrapperWidth(o,r),a._toggleScrollButtons(a.element,n,i,s))},_overflowWrapper:function(){return this._scrollWrapper||this._popupsWrapper},_setOverflowWrapperWidth:function(e,t){var n,i,o,r,a=this,s=a._scrollWrapper.css("width");a._scrollWrapper.css({width:""}),n=a._scrollWrapper.outerWidth(),a._scrollWrapper.css({width:s}),i=a.element.outerWidth(),o=a.element[0].offsetWidth-a.element[0].clientWidth,i!=n&&n>0&&(r=t?Math.min(e,n):n,a.element.width(r-o),a._scrollWrapper.width(r))},_reinitOverflow:function(e){var t=this,n=e.scrollable&&!t.options.scrollable||!e.scrollable&&t.options.scrollable||e.scrollable&&t.options.scrollable&&e.scrollable.distance!=t.options.scrollable.distance||e.orientation!=t.options.orientation;n&&(t._detachMenuEventsHandlers(),t._destroyOverflow(),t._initOverflow(e),t._attachMenuEventsHandlers())},_destroyOverflow:function(){var n=this,i=n._overflowWrapper();i&&(i.off(W),i.find(Ve).off(W).remove(),i.children(Ie).each(function(t,n){var o,r=e(n).children(Ee);r.off(pe),o=v(r,i),o.length&&o.append(n)}),i.find(f()).removeAttr("data-groupparent"),i.find(m()).removeAttr("data-group"),n.element.off(pe),e(window).off(fe),i.contents().unwrap(),n._scrollWrapper=n._popupsWrapper=n._openedPopups=t)},_initScrolling:function(t,n,i,o){var r=this,a=r.options.scrollable,s=e.isNumeric(a.distance)?a.distance:P,l=s/2,d="-="+s,c="+="+s,u="-="+2*s,h="+="+2*s,p=!1,f=!1,m=function(e){var a=o?{scrollLeft:e}:{scrollTop:e};t.finish().animate(a,"fast","linear",function(){p&&m(e)}),r._toggleScrollButtons(t,n,i,o)},g=function(e){p||f||(m(e.data.direction),p=!0)},v=function(a){var s=o?{scrollLeft:a.data.direction}:{scrollTop:a.data.direction};f=x(a)||y(a),t.stop().animate(s,"fast","linear",function(){f?(r._toggleScrollButtons(t,n,i,o),p=!0):e(a.currentTarget).trigger(ue)}),p=!1,a.stopPropagation(),a.preventDefault()};n.on(ue+W,{direction:d},g).on(S.eventMap.down+W,{direction:u},v),i.on(ue+W,{direction:c},g).on(S.eventMap.down+W,{direction:h},v),n.add(i).on(he+W,function(){t.stop(),p=!1,r._toggleScrollButtons(t,n,i,o)}),t.on(pe,function(e){var a,s,d,c;e.ctrlKey||e.shiftKey||e.altKey||(a=w(e.originalEvent),s=Math.abs(a)*l,d=(a>0?"+=":"-=")+s,c=o?{scrollLeft:d}:{scrollTop:d},r._closeChildPopups(t),t.finish().animate(c,"fast","linear",function(){r._toggleScrollButtons(t,n,i,o)}),e.preventDefault())})},_toggleScrollButtons:function(e,t,n,i){var o=i?S.scrollLeft(e):e.scrollTop(),r=i?me:ge,a=i?ve:_e;t.toggle(0!==o),n.toggle(o<e[0][r]-e[0][a]-1)},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=z(!0,t,e.animation),"dataSource"in e&&this._dataSource(e),this._updateClasses(),this._reinitOverflow(e),O.fn.setOptions.call(this,e)},destroy:function(){var e=this;O.fn.destroy.call(e),e._detachMenuEventsHandlers(),e._destroyOverflow(),S.destroy(e.element)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},attemptGetItem:function(t){var n,i;return t=t||this.element,n=this.element.find(t),i=this._overflowWrapper(),n.length||t===this.element?n:i?i.find(t):e()},append:function(e,t){t=this.attemptGetItem(t);var n=this._insert(e,t,t.length?this._childPopupElement(t):null);return L(n.items,function(t){n.group.append(this),a(this),u(this,e[t]||e)}),a(t),l(n.group.find(".k-first, .k-last").add(n.items)),d(c(n.group)),this},insertBefore:function(e,t){t=this.attemptGetItem(t);var n=this._insert(e,t,t.parent());return L(n.items,function(n){t.before(this),a(this),l(this),u(this,e[n]||e)}),l(t),this},insertAfter:function(e,t){t=this.attemptGetItem(t);var n=this._insert(e,t,t.parent());return L(n.items,function(n){t.after(this),a(this),l(this),u(this,e[n]||e)}),l(t),this},_insert:function(t,n,i){var o,a,s,l,d=this;return n&&n.length||(i=d.element),s=e.isPlainObject(t)||t instanceof S.data.ObservableObject,l={firstLevel:i.hasClass(q),horizontal:i.hasClass(q+"-horizontal"),expanded:!0,length:i.children().length},n&&!i.length&&(i=e(d.renderGroup({group:l,options:d.options})).appendTo(n)),s||E(t)||t instanceof S.data.ObservableArray?o=e(e.map(s?[t]:t,function(t,n){return"string"==typeof t?e(t).get():e(d.renderItem({group:l,item:z(t,{index:n})})).get()})):(o="string"==typeof t&&"<"!=t.charAt(0)?d.element.find(t):e(t),a=o.find("> ul").addClass("k-menu-group").attr("role","menu"),o=o.filter("li"),o.add(a.find("> li")).each(function(){r(this)})),{items:o,group:i}},remove:function(e){var t,n,i,o,r;return e=this.attemptGetItem(e),t=this,n=e.parentsUntil(t.element,Re),i=e.parent("ul:not(.k-menu)"),e.remove(),i&&!i.children(Re).length&&(o=c(i),r=i.parent(Ie),r.length?r.remove():i.remove(),d(o)),n.length&&(n=n.eq(0),a(n),l(n)),t},_openAfterLoad:function(e,t){var n=this;t.loaded()?(n.open(e),n._loading=!1):t.one(le,function(){e.find(K).removeClass("k-i-loading"),n._loading&&(n.open(e),n._loading=!1)})},open:function(o){var r,a,s,l=this,d=l.options,c="horizontal"==d.orientation,u=d.direction,h=S.support.isRtl(l.wrapper),p=l._overflowWrapper();return o=(p||l.element).find(o),r=l.dataSource&&l.dataSource.getByUid(o.data(S.ns+"uid")),r&&r.hasChildren&&!r.loaded()&&!l._loading?(l._loading=!0,o.find(K).addClass("k-i-loading"),r.load(),
l._openAfterLoad(o,r),t):(/^(top|bottom|default)$/.test(u)&&(u=h?c?(u+" left").replace("default","bottom"):"left":c?(u+" right").replace("default","bottom"):"right"),a=">.k-popup:visible,>.k-animation-container>.k-popup:visible",s=function(){var t=e(this).data(ye);t&&l.close(e(this).closest("li.k-item"),!0)},o.siblings().find(a).each(s),p&&o.find(a).each(s),l.options.openOnClick&&(l.clicked=!0),o.each(function(){var o=e(this);clearTimeout(o.data(X)),o.data(X,setTimeout(function(){var r,a,s,m,g,v,_,b,w,k,y=o.find(".k-menu-group:first:hidden");!y[0]&&p&&(a=l._getPopup(o),y=a&&a.element),y.is(":visible")||y[0]&&l._triggerEvent({item:o[0],type:j})===!1&&(!y.find(".k-menu-group")[0]&&y.children(".k-item").length>1?(s=e(window).height(),m=function(){y.css({maxHeight:s-(S._outerHeight(y)-y.height())-S.getShadows(y).bottom,overflow:"auto"})},S.support.browser.msie&&S.support.browser.version<=7?setTimeout(m,0):m()):y.css({maxHeight:"",overflow:""}),o.data(te,o.css(te)),g=l.nextItemZIndex++,o.css(te,g),l.options.scrollable&&o.parent().siblings(Ve).css({zIndex:++g}),r=y.data(ye),v=o.parent().hasClass(q),_=v&&c,b=i(u,v,h),w=d.animation.open.effects,k=w!==t?w:"slideIn:"+n(u,v),r?(r=y.data(ye),r.options.origin=b.origin,r.options.position=b.position,r.options.animation.open.effects=k):r=y.kendoPopup({activate:function(){l._triggerEvent({item:this.wrapper.parent(),type:ne})},deactivate:function(e){l._closing=!1,e.sender.element.removeData("targetTransform").css({opacity:""}),l._triggerEvent({item:this.wrapper.parent(),type:ie})},origin:b.origin,position:b.position,collision:d.popupCollision!==t?d.popupCollision:_?"fit":"fit flip",anchor:o,appendTo:p||o,animation:{open:z(!0,{effects:k},d.animation.open),close:d.animation.close},open:B(l._popupOpen,l),close:function(e){var t,n;l._closing=!0,t=e.sender.wrapper.parent(),p&&(n=e.sender.element.data(be),n&&(t=(p||l.element).find(f(n))),e.sender.wrapper.children(Ve).hide()),l._triggerEvent({item:t[0],type:Q})?e.preventDefault():(t.css(te,t.data(te)),t.removeData(te),l.options.scrollable&&t.parent().siblings(Ve).css({zIndex:""}),(A||se||S.support.mouseAndTouchPresent)&&(t.removeClass(Ce),l._removeHoverItem()))}}).data(ye),y.removeAttr("aria-hidden"),l._configurePopupOverflow(r,o),r._hovered=!0,r.open(),l._initPopupScrolling(r))},l.options.hoverDelay))}),l)},_configurePopupOverflow:function(e,t){var n,i=this;i.options.scrollable&&(i._wrapPopupElement(e),t.attr("data-groupparent")||(n=(new Date).getTime(),t.attr("data-groupparent",n),e.element.attr("data-group",n)))},_wrapPopupElement:function(e){e.element.parent().is(Ie)||(e.wrapper=S.wrap(e.element,e.options.autosize).css({overflow:"hidden",display:"block",position:"absolute"}))},_initPopupScrolling:function(e,t,n){var i=this;i.options.scrollable&&e.element[0].scrollHeight>e.element[0].offsetHeight&&i._initPopupScrollButtons(e,t,n)},_initPopupScrollButtons:function(t,n,i){var o=this,r=t.wrapper.children(Ve),a=o.options.animation,s=(a&&a.open&&a.open.duration||0)+F;setTimeout(function(){var a,s;r.length||(a=e(o.templates.scrollButton({direction:n?"left":"up"})),s=e(o.templates.scrollButton({direction:n?"right":"down"})),r=a.add(s).appendTo(t.wrapper),o._initScrolling(t.element,a,s,n),i||r.on(ue+W,function(){var n=o._overflowWrapper();e(g(t.element,n)).each(function(e,t){var i=n.find(f(t.data(be)));o.close(i)})}).on(he+W,function(){setTimeout(function(){e.isEmptyObject(o._openedPopups)&&o._closeParentPopups(t.element)},F)})),o._toggleScrollButtons(t.element,r.first(),r.last(),n)},s)},_popupOpen:function(e){this._keyTriggered||e.sender.element.children("."+Se).removeClass(Se),this.options.scrollable&&this._setPopupHeight(e.sender)},_setPopupHeight:function(t,n){var i,o,r,a,s,l,d,c,u,h=t.element,p=h.add(h.parent(Ie));p.height(h.hasClass(q)&&this._initialHeight||""),i=t._location(n),o=e(window).height(),r=i.height,a=n?0:Math.max(i.top,0),s=n?0:k(this._overflowWrapper()[0],"scrollTop"),l=window.innerHeight-o,d=o-S.getShadows(h).bottom+l,c=d+s>r+a,c||(u=Math.min(d,d-a+s),p.css({overflow:"hidden",height:u+"px"}))},close:function(t,n){var i,o,r=this,a=r._overflowWrapper(),s=a||r.element;return t=s.find(t),t.length||(t=s.find(">.k-item")),i=function(t){var n=!1;return e.isEmptyObject(r._openedPopups)?n:(e(g(t,a)).each(function(e,t){return n=!!r._openedPopups[""+t.data(be)],!n}),n)},o=function(e){var t=e.data(we);return!a||!t||!r._openedPopups[""+t]},t.each(function(){var s=e(this);!n&&r._isRootItem(s)&&(r.clicked=!1),clearTimeout(s.data(X)),s.data(X,setTimeout(function(){var e=r._getPopup(s);if(e&&(o(s)||r._forceClose)){if(!r._forceClose&&i(e.element))return;e.close(),e.element.attr("aria-hidden",!0),a&&r._forceClose&&t.last().is(s[0])&&delete r._forceClose}},r.options.hoverDelay))}),r},_getPopup:function(e){var t,n,i=this,o=e.find(".k-menu-group:not(.k-list-container):not(.k-calendar-container):first:visible").data(ye),r=i._overflowWrapper();return!o&&r&&(t=e.data(we),t&&(n=r.find(m(t)),o=n.data(ye))),o},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(xe,n).toggleClass(Te,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(S.eventTarget(t)||t.target).closest(Re),i=t.type==ue||M.indexOf(t.type)!==-1;n.siblings().removeClass(Ce),n.parents("li."+Te).length||n.toggleClass(Ce,i||"mousedown"==t.type||"pointerover"==t.type||t.type==ce),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(t){var n=this,i=e(t?t.currentTarget:this._hoverItem()),r=n._findRootParent(i)[0];this._closurePrevented||setTimeout(function(){document.hasFocus()&&(o(r,S._activeElement())||!t||o(r,t.currentTarget))||n.close(r)},0),this._closurePrevented=!1},_removeHoverItem:function(){var e=this._hoverItem();e&&e.hasClass(Se)&&(e.removeClass(Se),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element,n=".k-menu-init div ul";t.removeClass("k-menu-horizontal k-menu-vertical"),t.addClass("k-widget k-reset k-header k-menu-init "+q).addClass(q+"-"+this.options.orientation),t.find("li > ul").filter(function(){return!S.support.matchesSelector.call(this,n)}).addClass("k-group k-menu-group").attr("role","menu").attr("aria-hidden",t.is(":visible")).parent("li").attr("aria-haspopup","true").end().find("li > div").addClass("k-content").attr("tabindex","-1"),e=t.find("> li,.k-menu-group > li"),t.removeClass("k-menu-init"),e.each(function(){r(this)})},_mouseenter:function(t){var n=this,i=e(t.currentTarget),r=n._itemHasChildren(i),a=i.data(we)||i.parent().data(be),s=y(t);a&&(n._openedPopups[""+a]=!0),n._closing||t.delegateTarget!=i.parents(Ae)[0]&&t.delegateTarget!=i.parents(".k-menu-scroll-wrapper,.k-popups-wrapper")[0]||(n._keyTriggered=!1,n.options.openOnClick.rootMenuItems&&n._isRootItem(i.closest(Re))||n.options.openOnClick.subMenuItems&&!n._isRootItem(i.closest(Re))||(!(n.options.openOnClick===!1||n.options.openOnClick.rootMenuItems===!1&&n._isRootItem(i.closest(Re))||n.options.openOnClick.subMenuItems===!1&&!n._isRootItem(i.closest(Re))||n.clicked)||A||s&&n._isRootItem(i.closest(Re))||!o(t.currentTarget,t.relatedTarget)&&r&&n.open(i),(n.options.openOnClick===!0&&n.clicked||A)&&i.siblings().each(B(function(e,t){n.close(t,!0)},n))))},_mousedown:function(t){var n=this,i=e(t.currentTarget);(n.options.openOnClick.subMenuItems&&!n._isRootItem(i)||A)&&i.siblings().each(B(function(e,t){n.close(t,!0)},n))},_mouseleave:function(n){var i=this,r=e(n.currentTarget),a=r.data(we),s=r.children(Ie).length||r.children(Ee).length||a,l=e(window);return a&&delete i._openedPopups[""+a],r.parentsUntil(Ie,".k-list-container,.k-calendar-container")[0]?(n.stopImmediatePropagation(),t):i.options.openOnClick!==!1&&(i.options.openOnClick.rootMenuItems||!i._isRootItem(r))&&(i.options.openOnClick.subMenuItems||i._isRootItem(r))||A||y(n)||o(n.currentTarget,n.relatedTarget||n.target)||!s||o(n.currentTarget,S._activeElement())?((S.support.browser.msie&&!n.toElement&&!n.relatedTarget&&!y(n)||n.clientX<0||n.clientY<0||n.clientY>l.height()||n.clientX>l.width())&&i.close(r),t):(i.close(r,!0),i._loading=!1,t)},_mouseenterPopup:function(t){var n,i=this,o=e(t.currentTarget);o.parent().is(Ie)||(o=o.children("ul"),n=o.data(be),n&&(i._openedPopups[""+n]=!0))},_mouseleavePopup:function(t){var n=this,i=e(t.currentTarget);!y(t)&&i.is(Ie)&&n._closePopups(i.children("ul"))},_closePopups:function(t){var n,i=this,o=i._overflowWrapper(),r=t.data(be);r&&(delete i._openedPopups[""+r],n=o.find(f(r)),setTimeout(function(){if(i.options.openOnClick)i._closeChildPopups(t);else if(e.isEmptyObject(i._openedPopups)){var o=i._innerPopup(t);i._closeParentPopups(o)}else i.close(n,!0)},0))},_closeChildPopups:function(t){var n=this,i=n._overflowWrapper();e(g(t,i)).each(function(){var e=i.find(f(this.data(be)));n.close(e,!0)})},_innerPopup:function(e){var t=this._overflowWrapper(),n=g(e,t);return n[n.length-1]||e},_closeParentPopups:function(e){var t=this,n=t._overflowWrapper(),i=e.data(be),o=n.find(f(i));for(i=o.parent().data(be),t.close(o,!0);i&&!t._openedPopups[i]&&!o.parent().is(Ae);)o=n.find(f(i)),t.close(o,!0),i=o.parent().data(be)},_click:function(n){var i,o,r,a,s,l,d=this,c=d.options,u=e(S.eventTarget(n)),h=u[0],p=u[0]?u[0].nodeName.toUpperCase():"",f="INPUT"==p||"SELECT"==p||"BUTTON"==p||"LABEL"==p,g=u.closest($),v=u.closest(Re),_=v[0],b=g.attr("href"),w=u.attr("href"),k=e("<a href='#' />").attr("href"),x=!!b&&b!==k,C=x&&!!b.match(/^#/),T=!!w&&w!==k,D=d._overflowWrapper();if(!h||h.parentNode){for(e(u).hasClass("k-menu-expand-arrow")&&(this._lastClickedElement=h.parentElement);h&&h.parentNode!=_;)h=h.parentNode;if(!e(h).is(Oe)){if(v.hasClass(Te))return n.preventDefault(),t;if(n.handled||!d._triggerSelect(u,_)||f||n.preventDefault(),n.handled=!0,o=v.children(Me),D&&(s=v.data(we),s&&(o=D.find(m(s)))),r=o.is(":visible"),a=c.openOnClick&&r&&d._isRootItem(v),c.closeOnClick&&(!x||C)&&(!o.length||a))return v.removeClass(Ce).css("height"),d._oldHoverItem=d._findRootParent(v),l=d._parentsUntil(g,d.element,Re),d._forceClose=!!D,d.close(l),d.clicked=!1,"MSPointerUp".indexOf(n.type)!=-1&&n.preventDefault(),t;x&&n.enterKey&&g[0].click(),(d._isRootItem(v)&&c.openOnClick!==!1||c.openOnClick.subMenuItems||S.support.touch||y(n)&&d._isRootItem(v.closest(Re)))&&(x||f||T||n.preventDefault(),d.clicked=!0,i=o.is(":visible")?Q:j,(c.closeOnClick||i!=Q)&&d[i](v))}}},_parentsUntil:function(n,i,o){var r,a,s=this._overflowWrapper();return s?(r=b(n,s),a=[],e(r).each(function(){var n=e(this);return!n.is(i)&&(n.is(o)&&a.push(this),t)}),e(a)):n.parentsUntil(i,o)},_triggerSelect:function(e,t){var n,i,o,r;return e=e.is(".k-link")?e:e.closest(".k-link"),n=e.data("selectHandler"),n&&(i=this._getEventData(e),n.call(this,i)),o=i&&i.isDefaultPrevented(),r=this._triggerEvent({item:t,type:ee}),o||r},_getEventData:function(e){var t={sender:this,target:e,_defaultPrevented:!1,preventDefault:function(){this._defaultPrevented=!0},isDefaultPrevented:function(){return this._defaultPrevented}};return t},_documentClick:function(n){var i=this,r=e(n.target).hasClass("k-menu-expand-arrow")?i._lastClickedElement:n.target;return o((i._overflowWrapper()||i.element)[0],r)?(i._lastClickedElement=t,t):(i.clicked=!1,t)},_focus:function(n){var i=this,o=n.target,r=i._hoverItem(),a=D();return o==i.wrapper[0]||e(o).is(":kendoFocusable")?(a===n.currentTarget&&(r.length?i._moveHover([],r):i._oldHoverItem||i._moveHover([],i.wrapper.children().first())),t):(n.stopPropagation(),e(o).closest(".k-content").closest(".k-menu-group").closest(".k-item").addClass(Se),i.wrapper.focus(),t)},_keydown:function(e){var n,i,o,r=this,a=e.keyCode,s=r._oldHoverItem,l=S.support.isRtl(r.wrapper);if(e.target==e.currentTarget||a==N.ESC){if(s||(s=r._oldHoverItem=r._hoverItem()),i=r._itemBelongsToVertival(s),o=r._itemHasChildren(s),r._keyTriggered=!0,a==N.RIGHT)n=r[l?"_itemLeft":"_itemRight"](s,i,o);else if(a==N.LEFT)n=r[l?"_itemRight":"_itemLeft"](s,i,o);else if(a==N.DOWN)n=r._itemDown(s,i,o);else if(a==N.UP)n=r._itemUp(s,i,o);else if(a==N.HOME)r._moveHover(s,s.parent().children().first()),e.preventDefault();else if(a==N.END)r._moveHover(s,s.parent().children().last()),e.preventDefault();else if(a==N.ESC)n=r._itemEsc(s,i);else if(a==N.ENTER||a==N.SPACEBAR)n=s.children(".k-link"),n.length>0&&(r._click({target:n[0],preventDefault:function(){},enterKey:!0}),o&&!s.hasClass(Te)?(r.open(s),r._moveHover(s,r._childPopupElement(s).children().first())):r._moveHover(s,r._findRootParent(s)));else if(a==N.TAB)return n=r._findRootParent(s),r._moveHover(s,n),r._checkActiveElement(),t;n&&n[0]&&(e.preventDefault(),e.stopPropagation())}},_hoverItem:function(){return this.wrapper.find(".k-item.k-state-hover,.k-item.k-state-focused").filter(":visible")},_itemBelongsToVertival:function(e){var t=this.wrapper.hasClass("k-menu-vertical");return e.length?e.parent().hasClass("k-menu-group")||t:t},_itemHasChildren:function(e){return!!(e&&e.length&&e[0].nodeType)&&(e.children(".k-menu-group, div.k-animation-container").length>0||!!e.data(we)&&!!this._overflowWrapper().children(m(e.data(we))))},_moveHover:function(t,n){var i=this,o=i._ariaId;t.length&&n.length&&t.removeClass(Se),n.length&&(n[0].id&&(o=n[0].id),n.addClass(Se),i._oldHoverItem=n,o&&(i.element.removeAttr("aria-activedescendant"),e("#"+o).removeAttr("id"),n.attr("id",o),i.element.attr("aria-activedescendant",o)),i._scrollToItem(n))},_findRootParent:function(e){return this._isRootItem(e)?e:this._parentsUntil(e,Ae,"li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass(q)},_itemRight:function(e,t,n){var i,o,r,a,s=this;return t?n&&!e.hasClass(Te)?(s.open(e),i=s._childPopupElement(e).children().first()):"horizontal"==s.options.orientation&&(o=s._findRootParent(e),r=s._overflowWrapper(),r&&(a=_(o,r),s._closeChildPopups(a)),s.close(o),i=o.nextAll(He)):(i=e.nextAll(He),i.length||(i=e.prevAll(Ne)),s.close(e)),i&&!i.length?i=s.wrapper.children(".k-item").first():i||(i=[]),s._moveHover(e,i),i},_itemLeft:function(e,t){var n,i,o=this;return t?(n=e.parent().closest(".k-item"),i=o._overflowWrapper(),!n.length&&i&&(n=v(e.parent(),i)),o.close(n),o._isRootItem(n)&&"horizontal"==o.options.orientation&&(n=n.prevAll(He))):(n=e.prevAll(He),n.length||(n=e.nextAll(Ne)),o.close(e)),n.length||(n=o.wrapper.children(".k-item").last()),o._moveHover(e,n),n},_itemDown:function(e,t,n){var i,o=this;if(t)i=e.nextAll(He);else{if(!n||e.hasClass(Te))return;o.open(e),i=o._childPopupElement(e).children().first()}return!i.length&&e.length?i=e.parent().children().first():e.length||(i=o.wrapper.children(".k-item").first()),o._moveHover(e,i),i},_itemUp:function(e,t){var n,i=this;if(t)return n=e.prevAll(He),!n.length&&e.length?n=e.parent().children().last():e.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_scrollToItem:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p=this;p.options.scrollable&&e&&e.length&&(t=e.parent(),n=!!t.hasClass(q)&&"horizontal"==p.options.orientation,i=n?"scrollLeft":"scrollTop",o=n?S._outerWidth:S._outerHeight,r=t[i](),a=o(e),s=e[0][n?"offsetLeft":"offsetTop"],l=o(t),d=t.siblings(Ve),c=d.length?o(d.first()):0,r+l<s+a+c?u=s+a-l+c:r>s-c&&(u=s-c),isNaN(u)||(h={},h[i]=u,t.finish().animate(h,"fast","linear",function(){p._toggleScrollButtons(t,d.first(),d.last(),n)})))},_itemEsc:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._moveHover(e,n),n):e},_childPopupElement:function(e){var t=e.find(".k-menu-group"),n=this._overflowWrapper();return!t.length&&n&&(t=_(e,n)),t},_triggerEvent:function(e){var t=this;return t.trigger(e.type,{type:e.type,item:e.item})},_focusHandler:function(t){var n=this,i=e(S.eventTarget(t)).closest(Re);i.hasClass(Te)||setTimeout(function(){n._moveHover([],i),i.children(".k-content")[0]&&i.parent().closest(".k-item").removeClass(Se)},200)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})},_dataSource:function(e){var t=this,n=e?e.dataSource:t.options.dataSource;n&&(n=E(n)?{data:n}:n,t._unbindDataSource(),n.fields||(n.fields=[{field:"uid"},{field:"text"},{field:"url"},{field:"cssClass"},{field:"spriteCssClass"},{field:"imageUrl"},{field:"imageAttr"},{field:"attr"},{field:"contentAttr"},{field:"content"},{field:"encoded"},{field:"items"},{field:"select"}]),t.dataSource=I.create(n),t._bindDataSource(),t.dataSource.fetch())},_bindDataSource:function(){this._refreshHandler=B(this.refresh,this),this._errorHandler=B(this._error,this),this.dataSource.bind(le,this._refreshHandler),this.dataSource.bind(de,this._errorHandler)},_unbindDataSource:function(){var e=this.dataSource;e&&(e.unbind(le,this._refreshHandler),e.unbind(de,this._errorHandler))},_error:function(){},findByUid:function(e){var t=this._overflowWrapper()||this.element;return t.find("["+S.attr("uid")+"="+e+"]")},refresh:function(t){var n=this,i=t.node,o=t.action,r=i?n.findByUid(i.uid):n.element,a=t.items,s=t.index,l=e.proxy(n._updateItem,n),d=e.proxy(n._removeItem,n);"add"==o?n._appendItems(a,s,r):"remove"==o?a.forEach(d):"itemchange"==o?a.forEach(l):"itemloaded"===o?n.append(t.items,r):this._initData(),this.trigger(je,{item:r,dataItem:i})},_appendItems:function(e,t,n){var i=this,o=n.find(Pe).eq(t);o.length?i.insertBefore(e,o):i.append(e,n)},_removeItem:function(e){var t=this,n=t.findByUid(e.uid);t.remove(n)},_updateItem:function(e){var t=this,n=t.findByUid(e.uid),i=n.next(),o=e.parentNode();t.remove(n),i.length?t.insertBefore(e,i):t.append(e,o&&t.findByUid(o.uid))},_accessors:function(){var e,t,n,i=this,o=i.options,r=i.element;for(e in qe)t=o[qe[e]],n=r.attr(S.attr(e+"-field")),!t&&n&&(t=n),t||(t=e),E(t)||(t=[t]),o[qe[e]]=t},_fieldAccessor:function(t){var n=this.options[qe[t]]||[],i=n.length,o="(function(item) {";return 0===i?o+="return item['"+t+"'];":(o+="var levels = ["+e.map(n,function(e){return"function(d){ return "+S.expr(e)+"}"}).join(",")+"];",o+="if(item.level){return levels[Math.min(item.level(), "+i+"-1)](item);}else",o+="{return levels["+i+"-1](item)}"),o+="})"},_templates:function(){var e=this,t=e.options,n=B(e._fieldAccessor,e);t.template&&typeof t.template==Ue?t.template=H(t.template):t.template||(t.template=H("# var text = "+n("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {##= text ## } else { ##: text ## } #")),e.templates={content:H("#var contentHtml = "+n("content")+"(item);#<div #= contentCssAttributes(item.toJSON ? item.toJSON() : item) # tabindex='-1'>#= contentHtml || '' #</div>"),group:H("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:H("# var url = "+n("url")+"(item); ## var imageUrl = "+n("imageUrl")+"(item); ## var imgAttributes = "+n("imageAttr")+"(item);## var tag = url ? 'a' : 'span' #<#= tag # class='#= textClass(item) #' #if(url){#href='#= url #'#}#># if (imageUrl) { #<img #= imageCssAttributes(imgAttributes) #  alt='' src='#= imageUrl #' /># } ##= sprite(item) ##= data.menu.options.template(data) ##= arrow(data) #</#= tag #>"),item:H("#var contentHtml = "+n("content")+"(item);#<li class='#= wrapperCssClass(group, item) #' #= itemCssAttributes(item.toJSON ? item.toJSON() : item) # role='menuitem'  #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#"+S.attr("uid")+"='#= item.uid #' >#= itemWrapper(data) ##if (item.hasChildren || item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl || contentHtml) { ##= renderContent(data) ## } #</li>"),scrollButton:H("<span class='k-button k-button-icon k-menu-scroll-button k-scroll-#= direction #' unselectable='on'><span class='k-icon k-i-arrow-60-#= direction #'></span></span>"),arrow:H("<span class='#= arrowClass(item, group) #'></span>"),sprite:H("# var spriteCssClass = "+n("spriteCssClass")+"(data); if(spriteCssClass) {#<span class='k-sprite #= spriteCssClass #'></span>#}#"),empty:H("")}},renderItem:function(e){var t,n,i=this;return e=z({menu:i,group:{}},e),t=i.templates.empty,n=e.item,i.templates.item(z(e,{sprite:i.templates.sprite,itemWrapper:i.templates.itemWrapper,renderContent:i.renderContent,arrow:n.items||n.content||n[i.options.dataContentField[0]]?i.templates.arrow:t,subGroup:i.renderGroup},Ge))},renderGroup:function(e){var t=this,n=t.templates||e.menu.templates;return n.group(z({renderItems:function(e){for(var t="",n=0,i=e.items,o=i?i.length:0,r=z({length:o},e.group);n<o;n++)t+=e.menu.renderItem(z(e,{group:r,item:z({index:n},i[n])}));return t}},e,Ge))},renderContent:function(e){return e.menu.templates.content(z(e,Ge))}}),Ke=$e.extend({init:function(t,n){var i=this;$e.fn.init.call(i,t,n),i._marker=S.guid().substring(0,8),i.target=e(i.options.target),i._popup(),i._wire()},_initOverflow:function(t){var n=this;t.scrollable&&!n._overflowWrapper()&&(n._openedPopups={},n._popupsWrapper=(n.element.parent().is(Ie)?n.element.parent():n.element).wrap("<div class='k-popups-wrapper "+t.orientation+"'></div>").parent(),"horizontal"==n.options.orientation&&C(n.element),t.appendTo&&(t.appendTo=e(t.appendTo),t.appendTo.append(n._popupsWrapper)),n._initialHeight=n.element[0].style.height,n._initialWidth=n.element[0].style.width)},options:{name:"ContextMenu",filter:null,showOn:"contextmenu",orientation:"vertical",alignToAnchor:!1,copyAnchorStyles:!0,target:"body"},events:[j,Q,ne,ie,ee],setOptions:function(t){var n=this;$e.fn.setOptions.call(n,t),n.target.off(n.showOn+W+n._marker,n._showProxy),n.userEvents&&n.userEvents.destroy(),n.target=e(n.options.target),t.orientation&&n.popup.wrapper[0]&&n.popup.element.unwrap(),n._wire(),$e.fn.setOptions.call(this,t)},destroy:function(){var e=this;e.target.off(e.options.showOn+W+e._marker),ke.off(S.support.mousedown+W+e._marker,e._closeProxy),e.userEvents&&e.userEvents.destroy(),$e.fn.destroy.call(e)},open:function(n,i){var r,a,s=this;return n=e(n)[0],o(s.element[0],e(n)[0])||s._itemHasChildren(e(n))?$e.fn.open.call(s,n):s._triggerEvent({item:s.element,type:j})===!1&&(s.popup.visible()&&s.options.filter&&(s.popup.close(!0),s.popup.element.kendoStop(!0)),i!==t?(r=s._overflowWrapper(),r&&(a=r.offset(),n-=a.left,i-=a.top),s.popup.wrapper.hide(),s._configurePopupScrolling(n,i),s.popup.open(n,i)):(s.popup.options.anchor=(n?n:s.popup.anchor)||s.target,s.popup.element.kendoStop(!0),s._configurePopupScrolling(),s.popup.open()),ke.off(s.popup.downEvent,s.popup._mousedownProxy),ke.on(S.support.mousedown+W+s._marker,s._closeProxy)),s},_configurePopupScrolling:function(e,n){var i=this,o=i.popup,r="horizontal"==i.options.orientation;i.options.scrollable&&(i._wrapPopupElement(o),o.element.parent().css({position:"",height:""}),o.element.css({visibility:"hidden",display:"",position:""}),r?i._setPopupWidth(o,isNaN(e)?t:{isFixed:!0,x:e,y:n}):i._setPopupHeight(o,isNaN(e)?t:{isFixed:!0,x:e,y:n}),o.element.css({visibility:"",display:"none",position:"absolute"}),i._initPopupScrollButtons(o,r,!0),o.element.siblings(Ve).hide())},_setPopupWidth:function(t,n){var i,o,r,a,s,l,d,c,u=t.element,h=u.add(u.parent(Ie));h.width(this._initialWidth||""),i=t._location(n),o=e(window).width(),r=i.width,a=Math.max(i.left,0),s=n?0:k(this._overflowWrapper()[0],"scrollLeft"),l=S.getShadows(u),d=o-l.left-l.right,c=d+s>r+a,c||h.css({overflow:"hidden",width:d-a+s+"px"})},close:function(){var t=this;o(t.element[0],e(arguments[0])[0])||t._itemHasChildren(arguments[0])?$e.fn.close.call(t,arguments[0]):t.popup.visible()&&t._triggerEvent({item:t.element,type:Q})===!1&&(t.popup.close(),ke.off(S.support.mousedown+W+t._marker,t._closeProxy),t.unbind(ee,t._closeTimeoutProxy))},_showHandler:function(t){var n,i=t,r=this,a=r.options,s=e(S.support.mobileOS?i.target:i.currentTarget);t.event&&(i=t.event,i.pageX=t.x.location,i.pageY=t.y.location),o(r.element[0],t.relatedTarget||t.target)||(r._eventOrigin=i,i.preventDefault(),i.stopImmediatePropagation(),r.element.find("."+Se).removeClass(Se),(a.filter&&s.is(a.filter)||!a.filter)&&(a.alignToAnchor?(r.popup.options.anchor=i.currentTarget,r.open(i.currentTarget)):(r.popup.options.anchor=i.currentTarget,r._targetChild?(n=r.target.offset(),r.open(i.pageX-n.left,i.pageY-n.top)):r.open(i.pageX,i.pageY))))},_closeHandler:function(t){var n,i=this,r=e(t.relatedTarget||t.target),a=r.closest(i.target.selector)[0]==i.target[0],s=r.closest(Pe),l=i._itemHasChildren(s),d=i._overflowWrapper(),c=o(i.element[0],r[0])||d&&o(d[0],r[0]);i._eventOrigin=t,n=3!==t.which,i.popup.visible()&&(n&&a||!a)&&(i.options.closeOnClick&&!l&&c||!c)&&(c?(this.unbind(ee,this._closeTimeoutProxy),i.bind(ee,i._closeTimeoutProxy)):i.close())},_wire:function(){var e=this,t=e.options,n=e.target;e._preventProxy=null,e._showProxy=B(e._showHandler,e),e._closeProxy=B(e._closeHandler,e),e._closeTimeoutProxy=B(e.close,e),n[0]&&(S.support.mobileOS&&"contextmenu"==t.showOn&&(e.userEvents=new S.UserEvents(n,{filter:t.filter,allowSelection:!1}),e._preventProxy=function(){return!1},e.userEvents.bind("hold",e._showProxy)),t.filter?n.on(t.showOn+W+e._marker,t.filter,e._preventProxy||e._showProxy):n.on(t.showOn+W+e._marker,e._preventProxy||e._showProxy))},_triggerEvent:function(n){var i=this,o=e(i.popup.options.anchor)[0],r=i._eventOrigin;return i._eventOrigin=t,i.trigger(n.type,z({type:n.type,item:n.item||this.element[0],target:o},r?{event:r}:{}))},_popup:function(){var t=this,n=t._overflowWrapper();t._triggerProxy=B(t._triggerEvent,t),t.popup=t.element.addClass("k-context-menu").kendoPopup({autosize:"horizontal"===t.options.orientation,anchor:t.target||"body",copyAnchorStyles:t.options.copyAnchorStyles,collision:t.options.popupCollision||"fit",animation:t.options.animation,activate:t._triggerProxy,deactivate:t._triggerProxy,appendTo:n||t.options.appendTo,close:n?function(t){e(g(t.sender.element,n)).each(function(e,t){var n=t.data(ye);n&&n.close(!0)})}:e.noop}).data(ye),t._targetChild=o(t.target[0],t.popup.element[0])}});T.plugin($e),T.plugin(Ke)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.columnmenu.min",["kendo.popup.min","kendo.filtermenu.min","kendo.menu.min"],e)}(function(){return function(e,t){function n(e){return d.trim(e).replace(/&nbsp;/gi,"")}function i(e,t){var n,i,o,r={};for(n=0,i=e.length;n<i;n++)o=e[n],r[o[t]]=o;return r}function o(e){var t,n=[];for(t=0;t<e.length;t++)e[t].columns?n=n.concat(o(e[t].columns)):n.push(e[t]);return n}function r(e,t){return"["+d.attr(e)+"='"+(t||"").replace(/'/g,'"')+"']"}function a(e,t,n){e>0?t.insertAfter(n.children().eq(e-1)):n.prepend(t)}function s(e){var t,n,i={};for(n=0;n<e.length;n++)t=JSON.stringify(e[n]),i[t]?i[t].push(n):i[t]=[n];return i}function l(e,t){var n,i,o,r,a,s,l=d.attr("index"),c=d.attr("field"),u={};for(s=0;s<e.length;s++)i=t.eq(s),o=parseInt(i.attr(l),10),r=i.attr(c),a=i.attr("title"),n=r?r:a,u[n]?u[n].push(o):u[n]=[o];return u}var d=window.kendo,c=d.ui,u=e.proxy,h=e.extend,p=e.grep,f=e.map,m=e.inArray,g="k-state-selected",v="asc",_="desc",b="change",w="init",k="open",y="select",x="stick",C="unstick",S="kendoPopup",T="kendoFilterMenu",D="kendoMenu",A=".kendoColumnMenu",E=c.Widget,I=E.extend({init:function(t,n){var i,o=this;E.fn.init.call(o,t,n),t=o.element,n=o.options,o.owner=n.owner,o.dataSource=n.dataSource,o.field=t.attr(d.attr("field")),o.title=t.attr(d.attr("title")),i=t.find(".k-header-column-menu"),i[0]||(i=t.addClass("k-with-icon").prepend('<a class="k-header-column-menu" href="#" title="'+n.messages.settings+'" aria-label="'+n.messages.settings+'"><span class="k-icon k-i-more-vertical"></span></a>').find(".k-header-column-menu")),o.link=i.attr("tabindex",-1).on("click"+A,u(o._click,o)),o.wrapper=e('<div class="k-column-menu"/>'),o._refreshHandler=u(o.refresh,o),o.dataSource.bind(b,o._refreshHandler)},_init:function(){var e=this;e.pane=e.options.pane,e.pane&&(e._isMobile=!0),e._isMobile?e._createMobileMenu():e._createMenu(),e.owner._muteAngularRebind(function(){e._angularItems("compile")}),e._sort(),e._columns(),e._filter(),e._lockColumns(),e._stickyColumns(),e.trigger(w,{field:e.field,container:e.wrapper})},events:[w,k,"sort","filtering",x,C],options:{name:"ColumnMenu",messages:{sortAscending:"Sort Ascending",sortDescending:"Sort Descending",filter:"Filter",column:"Column",columns:"Columns",columnVisibility:"Column Visibility",clear:"Clear",cancel:"Cancel",done:"Done",settings:"Edit Column Settings",lock:"Lock Column",unlock:"Unlock Column",stick:"Stick Column",unstick:"Unstick Column",setColumnPosition:"Set Column Position"},filter:"",columns:!0,sortable:!0,filterable:!0,animations:{left:"slide"},encodeTitles:!1},_createMenu:function(){var e=this,t=e.options;e.wrapper.html(d.template(M)({uid:d.guid(),ns:d.ns,messages:t.messages,sortable:t.sortable,filterable:t.filterable,columns:e._ownerColumns(),showColumns:t.columns,hasLockableColumns:t.hasLockableColumns,hasStickableColumns:t.hasStickableColumns,encodeTitles:t.encodeTitles})),e.popup=e.wrapper[S]({anchor:e.link,copyAnchorStyles:!1,open:u(e._open,e),activate:u(e._activate,e),deactivate:u(e._deactivate,e),close:function(){e.menu._closing=!0,e.options.closeCallback&&e.options.closeCallback(e.element)}}).data(S),e.menu=e.wrapper.children()[D]({orientation:"vertical",closeOnClick:!1,open:function(){e._updateMenuItems()}}).data(D)},_deactivate:function(){this.menu._closing=!1},_createMobileMenu:function(){var e,t=this,n=t.options,i=d.template(R)({ns:d.ns,field:t.field,title:t.title||t.field,messages:n.messages,sortable:n.sortable,filterable:n.filterable,columns:t._ownerColumns(),showColumns:n.columns,hasLockableColumns:n.hasLockableColumns,hasStickableColumns:n.hasStickableColumns});t.view=t.pane.append(i),t.view.state={columns:{}},t.wrapper=t.view.element.find(".k-column-menu"),t.menu=new F(t.wrapper.children(),{pane:t.pane,columnMenu:t}),t.menu.element.on("transitionend"+A,function(e){e.stopPropagation()}),e=t.view.wrapper&&t.view.wrapper[0]?t.view.wrapper:t.view.element,e.on("click",".k-header-done",function(e){e.preventDefault(),t.menu._applyChanges(),t.menu._cancelChanges(!1),t.close()}),e.on("click",".k-header-cancel",function(e){e.preventDefault(),t.menu._cancelChanges(!0),t.close()}),t.view.bind("showStart",function(){var e=t.view||{columns:{}};t.options.hasLockableColumns&&t._updateLockedColumns(),t.options.hasStickableColumns&&t._updateStickyColumns(),e.element.find(".k-sort-asc.k-state-selected").length?e.state.initialSort="asc":e.element.find(".k-sort-desc.k-state-selected").length&&(e.state.initialSort="desc")})},_angularItems:function(t){var n=this;n.angular(t,function(){var t=n.wrapper.find(".k-columns-item input["+d.attr("field")+"]").map(function(){return e(this).closest("li")}),i=f(n._ownerColumns(),function(e){return{column:e._originalObject}});return{elements:t,data:i}})},destroy:function(){var e=this;e._angularItems("cleanup"),E.fn.destroy.call(e),e.filterMenu&&e.filterMenu.destroy(),e._refreshHandler&&e.dataSource.unbind(b,e._refreshHandler),e.options.columns&&e.owner&&(e._updateColumnsMenuHandler&&(e.owner.unbind("columnShow",e._updateColumnsMenuHandler),e.owner.unbind("columnHide",e._updateColumnsMenuHandler)),e._updateColumnsLockedStateHandler&&(e.owner.unbind("columnLock",e._updateColumnsLockedStateHandler),e.owner.unbind("columnUnlock",e._updateColumnsLockedStateHandler))),e.menu&&(e.menu.element.off(A),e.menu.destroy()),e.wrapper.off(A),e.popup&&e.popup.destroy(),e.view&&e.view.purge(),e.link.off(A),e.owner=null,e.wrapper=null,e.element=null},close:function(){this.menu.close(),this.popup&&(this.popup.close(),this.popup.element.off("keydown"+A))},_click:function(e){var t,n=this;e.preventDefault(),e.stopPropagation(),t=this.options,t.filter&&this.element.is(!t.filter)||(this.popup||this.pane?n._updateMenuItems():this._init(),this._isMobile?this.pane.navigate(this.view,this.options.animations.left):this.popup.toggle())},_updateMenuItems:function(){var e=this;e.options.columns&&(e._setMenuItemsVisibility(),e.options.columns.sort?e._updateDataIndexes():e._reorderMenuItems())},_setMenuItemsVisibility:function(){
var e=this;e._eachRenderedMenuItem(function(e,t,n){t.matchesMedia===!1?n.hide():n.show()})},_reorderMenuItems:function(){var e=this;e._eachRenderedMenuItem(function(e,t,n,i){n[0]&&n.index()!==e&&a(e,n,i)}),e._updateDataIndexes()},_updateDataIndexes:function(){var t=this,n=t._isMobile&&t.view?e(t.view.element).find(".k-columns-item").children("ul"):e(t.wrapper).find(".k-menu-group").first(),i=t._ownerColumns(!0).map(function(e){return e.title||e.field});n.find("span."+(this._isMobile?"k-listgroup-form-field-wrapper":"k-menu-link")+" input").each(function(n){var o,r;t.options.columns.sort?(o=t._ownerColumns(),r=i.indexOf(o[n].title),e(this).attr(d.attr("index"),r)):e(this).attr(d.attr("index"),n)})},_eachRenderedMenuItem:function(t){var i,a,d,c,u,h,f,m=this,g=p(o(m.owner.columns),function(e){var t=!0,i=n(e.title||"");return e.menu!==!1&&(e.field||i.length)||(t=!1),t}).map(function(e){return{field:e.field,title:e.title,matchesMedia:e.matchesMedia}}),v=m._isMobile&&m.view?e(m.view.element).find(".k-columns-item").children("ul"):e(m.wrapper).find(".k-menu-group").first(),_=v.find("span."+(this._isMobile?"k-listgroup-form-field-wrapper":"k-menu-link")),b=l(_,v.find("input[type=checkbox]")),w=s(g);for(h=0;h<g.length;h++){for(c=g[h],d=c.field?c.field:c.title,a=e.inArray(h,w[JSON.stringify(c)]),u=e(),f=0;f<b[d].length;f++)u=u.add(_.eq(b[d][f]));i=u.find(r("field",d)).closest("li").eq(a),t(h,c,i,v)}},_open:function(){var t=this;e(".k-column-menu").not(t.wrapper).each(function(){e(this).data(S).close()}),t.popup.element.on("keydown"+A,function(e){e.keyCode==d.keys.ESC&&t.close()}),t.options.hasLockableColumns&&t._updateLockedColumns(),t.options.hasStickableColumns&&t._updateStickyColumns()},_activate:function(){this.menu.element.focus(),this.trigger(k,{field:this.field,container:this.wrapper})},_ownerColumns:function(e){var t,i=o(this.owner.columns),r=p(i,function(e){var t=!0,i=n(e.title||"");return e.menu!==!1&&(e.field||i.length)||(t=!1),t}),a=this.options.columns.sort;return t=f(r,function(e){return{originalField:e.field,field:e.field||e.title,title:e.title||e.field,hidden:e.hidden,matchesMedia:e.matchesMedia,index:m(e,i),locked:!!e.locked,_originalObject:e,uid:e.headerAttributes.id}}),a&&!e&&t.sort(function(e,t){return e.title<t.title?"asc"===a?-1:1:e.title>t.title?"asc"===a?1:-1:0}),t},_sort:function(){var t=this;t.options.sortable&&(t.refresh(),t.menu.bind(y,function(n){var i,o=e(n.item);o.hasClass("k-sort-asc")?i=v:o.hasClass("k-sort-desc")&&(i=_),i&&(o.parent().find(".k-sort-"+(i==v?_:v)).removeClass(g),t._sortDataSource(o,i),t._isMobile||t.close())}))},_sortDataSource:function(e,n){var i,o,r=this,a=r.options.sortable,s=null===a.compare?t:a.compare,l=r.dataSource,d=l.sort()||[],c=e.hasClass(g)&&a&&a.allowUnsort!==!1;if(n=c?t:n,!r.trigger("sort",{sort:{field:r.field,dir:n,compare:s}})){if(c?e.removeClass(g):e.addClass(g),"multiple"===a.mode){for(i=0,o=d.length;i<o;i++)if(d[i].field===r.field){d.splice(i,1);break}d.push({field:r.field,dir:n,compare:s})}else d=[{field:r.field,dir:n,compare:s}];l.sort(d)}},_columns:function(){var t=this;t.options.columns&&(t._updateColumnsMenu(),t._updateColumnsMenuHandler=u(t._updateColumnsMenu,t),t.owner.bind(["columnHide","columnShow"],t._updateColumnsMenuHandler),t._updateColumnsLockedStateHandler=u(t._updateColumnsLockedState,t),t.owner.bind(["columnUnlock","columnLock"],t._updateColumnsLockedStateHandler),t.menu.bind(y,function(i){var r,a,s=e(i.item),l=d.attr("index"),c={},u=0,h=p(o(t.owner.columns),function(e,t){var i=!0,o=n(e.title||"");return e.menu!==!1&&(e.field||o.length)||(i=!1),i&&(c[t]=u,u++),i});t._isMobile&&i.preventDefault(),s.parent().closest("li.k-columns-item")[0]&&(r=s.find(":checkbox"),r.attr("disabled")||(a=h[parseInt(r.attr(l),10)],a.hidden===!0?t.owner.showColumn(a):t.owner.hideColumn(a)))}))},_updateColumnsMenu:function(){var e,t,i,r,a,s,l,c=d.attr("field"),u=d.attr("locked"),h=d.attr("uid"),f={},m=0,g=0,v=p(o(this.owner.columns),function(e,t){var i=!0,o=n(e.title||"");return e.menu!==!1&&(e.field||o.length)||(i=!1),i&&(f[t]=m,m++),i}),_=p(this._ownerColumns(),function(e){return!e.hidden&&e.matchesMedia!==!1}),b=p(_,function(e){return e.originalField}),w=p(b,function(e){return e.locked===!0}).length,k=p(b,function(e){return e.locked!==!0}).length,y=p(this.owner.columns,function(e){return e.menu===!1}),x=p(y,function(e){return e.hidden});for(this.wrapper.find("[role='menuitemcheckbox']").attr("aria-checked",!1),s=this.wrapper.find(".k-columns-item input["+c+"]").prop("disabled",!1).prop("checked",!1),e=0,t=s.length;e<t;e++)i=s.eq(e),a="true"===i.attr(u),r=!1,l=i.data("kendoSwitch"),g=v.map(function(e){return e.headerAttributes.id}).indexOf(i.attr(h)),r=!v[g].hidden&&v[g].matchesMedia!==!1,i.prop("checked",r),l&&(l.enable(!0),l.check(r)),i.closest("[role='menuitemcheckbox']").attr("aria-checked",r),r&&(1==w&&a&&(i.prop("disabled",!0),l&&l.enable(!1)),0!==y.length&&y.length!==x.length||1!=k||a||(i.prop("disabled",!0),l&&l.enable(!1)))},_updateColumnsLockedState:function(){var e,t,n,o,r=d.attr("field"),a=d.attr("locked"),s=i(this._ownerColumns(),"field"),l=this.wrapper.find(".k-columns-item input[type=checkbox]");for(e=0,t=l.length;e<t;e++)n=l.eq(e),o=s[n.attr(r)],o&&n.attr(a,o.locked);this._updateColumnsMenu()},_filter:function(){var t=this,n=T,i=t.options;i.filterable!==!1&&(i.filterable.multi&&(n="kendoFilterMultiCheck",i.filterable.dataSource&&(i.filterable.checkSource=i.filterable.dataSource,delete i.filterable.dataSource)),t.filterMenu=t.wrapper.find(".k-filterable")[n](h(!0,{},{appendToElement:!0,dataSource:i.dataSource,values:i.values,field:t.field,title:t.title,change:function(e){t.trigger("filtering",{filter:e.filter,field:e.field})&&e.preventDefault()}},i.filterable)).data(n),t._isMobile&&t.menu.bind(y,function(n){var i=e(n.item);i.hasClass("k-filter-item")&&t.pane.navigate(t.filterMenu.view,t.options.animations.left)}))},_lockColumns:function(){var t=this;t.menu.bind(y,function(n){var i=e(n.item);i.hasClass("k-lock")?(t.owner.lockColumn(t.field),t._isMobile||t.close()):i.hasClass("k-unlock")&&(t.owner.unlockColumn(t.field),t._isMobile||t.close())})},_stickyColumns:function(){var t=this;t.menu.bind(y,function(n){var i=e(n.item),o=t.field,r=t.owner.columns,a=p(r,function(e){return e.field==o||e.title==o})[0];i.hasClass("k-stick")?(t.owner.stickColumn(t.field),t.trigger(x,{column:a}),t._isMobile||t.close()):i.hasClass("k-unstick")&&(t.owner.unstickColumn(t.field),t.trigger(C,{column:a}),t._isMobile||t.close())})},_updateLockedColumns:function(){var e,t,n,i,o,r=this.field,a=this.owner.columns,s=p(a,function(e){return e.field==r||e.title==r})[0];s&&(e=s.locked===!0,t=p(a,function(t){return!t.hidden&&(t.locked&&e||!t.locked&&!e)}).length,n=s.lockable===!1,i=this.wrapper.find(".k-lock").removeClass("k-state-disabled"),o=this.wrapper.find(".k-unlock").removeClass("k-state-disabled"),(e||1==t||n)&&i.addClass("k-state-disabled"),e&&1!=t&&!n||o.addClass("k-state-disabled"),this._updateColumnsLockedState())},_updateStickyColumns:function(){var e,t,n,i,o,r,a=this.field,s=this.owner.columns,l=p(s,function(e){return e.field==a||e.title==a})[0];l&&(e=l.sticky===!0,t=l.stickable===!0,n=l.locked===!0,i=p(s,function(e){return!e.hidden&&(e.locked&&n||!e.locked&&!n)}).length,o=this.wrapper.find(".k-stick").removeClass("k-state-disabled"),r=this.wrapper.find(".k-unstick").removeClass("k-state-disabled"),(e||!t||n&&1===i)&&o.addClass("k-state-disabled"),e&&t||r.addClass("k-state-disabled"))},refresh:function(){var e,t,n,i=this,o=i.options.dataSource.sort()||[],r=i.field;for(i.wrapper.find(".k-sort-asc, .k-sort-desc").removeClass(g),t=0,n=o.length;t<n;t++)e=o[t],r==e.field&&i.wrapper.find(".k-sort-"+e.dir).addClass(g);i.link[i._filterExist(i.dataSource.filter())?"addClass":"removeClass"]("k-state-active")},_filterExist:function(e){var t,n,i,o=!1;if(e){for(e=e.filters,n=0,i=e.length;n<i;n++)t=e[n],t.field==this.field?o=!0:t.filters&&(o=o||this._filterExist(t));return o}}}),M='<ul id="#=uid#">#if(sortable){#<li class="k-item k-menu-item k-sort-asc"><span class="k-link k-menu-link"><span class="k-icon k-i-sort-asc-sm"></span>${messages.sortAscending}</span></li><li class="k-item k-menu-item k-sort-desc"><span class="k-link k-menu-link"><span class="k-icon k-i-sort-desc-sm"></span>${messages.sortDescending}</span></li>#if(showColumns || filterable){#<li class="k-separator k-menu-separator" role="presentation"></li>#}##}##if(showColumns){#<li class="k-item k-menu-item k-columns-item" aria-haspopup="true"><span class="k-link k-menu-link"><span class="k-icon k-i-columns"></span>${messages.columns}</span><ul>#for (var idx = 0; idx < columns.length; idx++) {#<li role="menuitemcheckbox" aria-checked="false" #=columns[idx].matchesMedia === false ? "style=\'display:none;\'" : ""#><input type="checkbox" title="#=encodeTitles ? kendo.htmlEncode(columns[idx].title) : columns[idx].title#" data-#=ns#field="#=columns[idx].field.replace(/"/g,"&\\#34;")#" data-#=ns#index="#=columns[idx].index#" data-#=ns#locked="#=columns[idx].locked#" data-#=ns#uid="#=columns[idx].uid#"/>#=encodeTitles ? kendo.htmlEncode(columns[idx].title) : columns[idx].title#</li>#}#</ul></li>#if(filterable || hasLockableColumns || hasStickableColumns){#<li class="k-separator k-menu-separator" role="presentation"></li>#}##}##if(filterable){#<li class="k-item k-menu-item k-filter-item" aria-haspopup="true"><span class="k-link k-menu-link"><span class="k-icon k-i-filter"></span>${messages.filter}</span><ul><li><div class="k-filterable"></div></li></ul></li>#if(hasLockableColumns || hasStickableColumns){#<li class="k-separator k-menu-separator" role="presentation"></li>#}##}##if(hasLockableColumns || hasStickableColumns){#<li class="k-item k-menu-item k-position-item" aria-haspopup="true"><span class="k-link k-menu-link"><span class="k-icon k-i-set-column-position"></span>${messages.setColumnPosition}</span><ul>#if(hasLockableColumns){#<li class="k-item k-menu-item k-lock"><span class="k-link k-menu-link"><span class="k-icon k-i-lock"></span>${messages.lock}</span></li><li class="k-item k-menu-item k-unlock"><span class="k-link k-menu-link"><span class="k-icon k-i-unlock"></span>${messages.unlock}</span></li>#if(hasStickableColumns){#<li class="k-separator k-menu-separator" role="presentation"></li>#}##}##if(hasStickableColumns){#<li class="k-item k-menu-item k-stick"><span class="k-link k-menu-link"><span class="k-icon k-i-stick"></span>${messages.stick}</span></li><li class="k-item k-menu-item k-unstick"><span class="k-link k-menu-link"><span class="k-icon k-i-unstick"></span>${messages.unstick}</span></li>#}#</ul></li>#}#</ul>',R='<div data-#=ns#role="view" class="k-grid-column-menu"><div data-#=ns#role="header" class="k-header"><a href="\\#" class="k-header-cancel k-link" title="#=messages.cancel#" aria-label="#=messages.cancel#"><span class="k-icon k-i-arrow-chevron-left"></span></a>${messages.settings}<a href="\\#" class="k-header-done k-link" title="#=messages.done#" aria-label="#=messages.done#"><span class="k-icon k-i-check"></span></a></div><div class="k-column-menu"><ul class="k-reset"><li><span class="k-list-title">#=messages.column#: ${title}</span><ul class="k-listgroup k-listgroup-flush">#if(sortable){#<li id="#=kendo.guid()#" class="k-item k-listgroup-item k-sort-asc"><span class="k-link"><span class="k-icon k-i-sort-asc-sm"></span><span class="k-item-title">${messages.sortAscending}</span></span></li><li id="#=kendo.guid()#" class="k-item k-listgroup-item k-sort-desc"><span class="k-link"><span class="k-icon k-i-sort-desc-sm"></span><span class="k-item-title">${messages.sortDescending}</span></span></li>#}##if(hasLockableColumns){#<li id="#=kendo.guid()#" class="k-item k-listgroup-item k-lock"><span class="k-link"><span class="k-icon k-i-lock"></span><span class="k-item-title">${messages.lock}</span></span></li><li id="#=kendo.guid()#" class="k-item k-listgroup-item k-unlock"><span class="k-link"><span class="k-icon k-i-unlock"></span><span class="k-item-title">${messages.unlock}</span></span></li>#}##if(hasStickableColumns){#<li id="#=kendo.guid()#" class="k-item k-listgroup-item k-stick"><span class="k-link"><span class="k-icon k-i-stick"></span><span class="k-item-title">${messages.stick}</span></span></li><li id="#=kendo.guid()#" class="k-item k-listgroup-item k-unstick"><span class="k-link"><span class="k-icon k-i-unstick"></span><span class="k-item-title">${messages.unstick}</span></span></li>#}##if(filterable){#<li id="#=kendo.guid()#" class="k-item k-listgroup-item k-filter-item"><span class="k-link k-filterable"><span class="k-icon k-i-filter"></span><span class="k-item-title">${messages.filter}</span><span class="k-select"><span class="k-icon k-i-arrow-chevron-right"></span></span></span></li>#}#</ul></li>#if(showColumns){#<li class="k-columns-item"><span class="k-list-title">${messages.columnVisibility}</span><ul class="k-listgroup k-listgroup-flush">#for (var idx = 0; idx < columns.length; idx++) {#<li id="#=kendo.guid()#" class="k-item k-listgroup-item"><span class="k-listgroup-form-row"><span class="k-listgroup-form-field-label k-item-title">#=columns[idx].title#</span><span class="k-listgroup-form-field-wrapper"><input type="checkbox" title="#=columns[idx].title#"  data-#=ns#field="#=columns[idx].field.replace(/"/g,"&\\#34;")#" data-#=ns#index="#=columns[idx].index#" data-#=ns#uid="#=columns[idx].uid#" data-#=ns#locked="#=columns[idx].locked#" /></span></span></li>#}#</ul></li>#}#<li class="k-item k-clear-wrap"><span class="k-list-title">&nbsp;</span><ul class="k-listgroup k-listgroup-flush"><li class="k-listgroup-item"><span class="k-link k-label k-clear" title="#=messages.clear#" aria-label="#=messages.clear#">#=messages.clear#</span></li></ul></li></ul></div></div>',F=E.extend({init:function(e,t){var n=this;E.fn.init.call(n,e,t),n._createCheckBoxes(),n.element.on("click"+A,"li.k-item:not(.k-separator):not(.k-state-disabled):not(:has(.k-switch))","_click")},events:[y],_click:function(n){var i=this;return e(n.target).is("[type=checkbox]")||n.preventDefault(),e(n.target).hasClass("k-clear")?(i._cancelChanges(!0),t):e(n.target).hasClass("k-filterable")?(i._cancelChanges(!0),i.trigger(y,{item:n.currentTarget}),t):(i._updateSelectedItems(n.currentTarget),t)},_updateSelectedItems:function(t){var n,i,o,r=this,a=e(t),s=r.options.columnMenu.view.state||{columns:{}},l=a.prop("id");a.hasClass("k-filter-item")||(s[l]=!s[l],(a.hasClass("k-sort-asc")||a.hasClass("k-sort-desc"))&&(a.hasClass("k-sort-asc")?(n="asc",i=r.element.find(".k-sort-desc")):(n="desc",i=r.element.find(".k-sort-asc")),o=i.prop("id"),n!==s.initialSort||a.hasClass("k-state-selected")||(s[l]=!1),s[o]&&(s[o]=!1),i.removeClass(g)),a.hasClass(g)?a.removeClass(g):a.addClass(g))},_cancelChanges:function(e){var t,n,i,o,r=this,a=r.options.columnMenu,s=a.view,l=s.state||{columns:{}},d=l.columns;if(r.element.find("."+g).removeClass(g),a.refresh(),e){t=[];for(n in d)d.hasOwnProperty(n)&&d[n]===!0&&(i=s.element.find("#"+n),t.push(i[0]));for(o=t.length-1;o>=0;o--)r.trigger(y,{item:t[o]});a.options.hasLockableColumns&&a._updateLockedColumns(),a.options.hasStickableColumns&&a._updateStickyColumns()}r.options.columnMenu.view.state={columns:{}}},_applyChanges:function(){var e,t,n=this,i=n.options.columnMenu.view,o=i.state||{columns:{}};for(e in o)o.hasOwnProperty(e)&&"initialSort"!==e&&"columns"!==e&&o[e]===!0&&(t=i.element.find("#"+e),t.hasClass(g)?t.removeClass(g):t.addClass(g),n.trigger(y,{item:t[0]}))},_createCheckBoxes:function(){var e=this;e.element.find(".k-columns-item").find("[type='checkbox']").kendoSwitch({messages:{checked:"",unchecked:""},change:function(t){var n=t.sender.element.closest(".k-item"),i=e.options.columnMenu.view.state||{columns:{}},o=n.prop("id");i.columns[o]=!i.columns[o],e.trigger(y,{item:n})}})},_destroyCheckBoxes:function(){var e,t,n=this,i=n.element.find(".k-columns-item").find("[type='checkbox']");for(t=0;t<i.length;t++)e=i.eq(t).data("kendoSwitch"),e&&e.destroy()},close:function(){this.options.pane.navigate("")},destroy:function(){var e=this;E.fn.destroy.call(e),e.element.off(A),e._destroyCheckBoxes()}});c.plugin(I)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.columnsorter.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(n){var i=n.find("tr:not(.k-filter-row)"),r=o.attr("index"),a=i.find("th["+r+"]:visible");return a.sort(function(n,i){var o,a;return n=e(n),i=e(i),o=n.attr(r),a=i.attr(r),o===t&&(o=e(n).index()),a===t&&(a=e(i).index()),o=parseInt(o,10),a=parseInt(a,10),o>a?1:o<a?-1:0}),a}function i(e){var t=null;return e.is("th")&&(t=e.closest("table"),t.parent().hasClass("k-grid-header-wrap")?t=t.closest(".k-grid").find(".k-grid-content > table"):t.parent().hasClass("k-grid-header-locked")&&(t=t.closest(".k-grid").find(".k-grid-content-locked > table"))),t}var o=window.kendo,r=o.ui,a=r.Widget,s="dir",l="asc",d="single",c="field",u="desc",h=".kendoColumnSorter",p=".k-link",f="aria-sort",m=e.proxy,g=a.extend({init:function(e,t){var n,i=this;a.fn.init.call(i,e,t),i._refreshHandler=m(i.refresh,i),i.dataSource=i.options.dataSource.bind("change",i._refreshHandler),i.directions=i.options.initialDirection===l?[l,u]:[u,l],n=i.element.find(p),n[0]||(n=i.element.wrapInner('<a class="k-link" href="#"/>').find(p)),i.link=n,i.element.on("click"+h,m(i._click,i))},options:{name:"ColumnSorter",mode:d,allowUnsort:!0,compare:null,filter:"",initialDirection:l,showIndexes:!1},events:["change"],destroy:function(){var e=this;a.fn.destroy.call(e),e.element.off(h),e.dataSource.unbind("change",e._refreshHandler),e._refreshHandler=e.element=e.link=e.dataSource=null},refresh:function(r){if(!r||"itemchange"!==r.action&&"sync"!==r.action){var a,d,h,p,m,g=this,v=g.dataSource.sort()||[],_=g.element,b=_.attr(o.attr(c)),w=(g.dataSource._sortFields||{})[b];_.removeAttr(o.attr(s)),_.removeAttr(f),w&&(a=w.dir,_.attr(o.attr(s),a),m=w.index),_.is("th")&&w&&(d=i(_),d&&(_.attr(o.attr("index"))?(h=n(_.closest("table")),p=h.index(_)):p=_.parent().children(":visible").index(_),d.find("col:not(.k-group-col):not(.k-hierarchy-col)").eq(p).toggleClass("k-sorted",a!==t))),_.toggleClass("k-sorted",a!==t),_.find(".k-i-sort-asc-sm,.k-i-sort-desc-sm,.k-sort-order").remove(),a===l?(e('<span class="k-icon k-i-sort-asc-sm" />').appendTo(g.link),_.attr(f,"ascending")):a===u&&(e('<span class="k-icon k-i-sort-desc-sm" />').appendTo(g.link),_.attr(f,"descending")),g.options.showIndexes&&v.length>1&&m&&e('<span class="k-sort-order" />').html(m).appendTo(g.link)}},_toggleSortDirection:function(e){var n=this.directions;return e===n[n.length-1]&&this.options.allowUnsort?t:n[0]===e?n[1]:n[0]},_click:function(e){var n,i,r=this,a=r.element,l=a.attr(o.attr(c)),u=a.attr(o.attr(s)),h=r.options,p=null===r.options.compare?t:r.options.compare,f=r.dataSource.sort()||[];if(e.preventDefault(),(!h.filter||a.is(h.filter))&&(u=this._toggleSortDirection(u),!this.trigger("change",{sort:{field:l,dir:u,compare:p}}))){if(h.mode===d)f=[{field:l,dir:u,compare:p}];else if("multiple"===h.mode){for(n=0,i=f.length;n<i;n++)if(f[n].field===l){f.splice(n,1);break}f.push({field:l,dir:u,compare:p})}this.dataSource.options.endless&&(this.dataSource.options.endless=null,a.closest(".k-grid").getKendoGrid()._endlessPageSize=r.dataSource.options.pageSize,this.dataSource.pageSize(r.dataSource.options.pageSize)),this.dataSource.sort(f)}}});r.plugin(g)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.editable.min",["kendo.dropdownlist.min","kendo.datepicker.min","kendo.numerictextbox.min","kendo.validator.min","kendo.binder.min"],e)}(function(){return function(e,t){function n(t){return t=null!=t?t:"",t.type||e.type(t)||"string"}function i(t){t.find(":input:not(:button, .k-combobox .k-input, ["+c.attr("role")+"=listbox], ["+c.attr("role")+"=upload], ["+c.attr("skip")+"], [type=file])").each(function(){var t=c.attr("bind"),n=this.getAttribute(t)||"",i="checkbox"===this.type||"radio"===this.type?"checked:":"value:",o=this.name;n.indexOf(i)===-1&&o&&(n+=(n.length?",":"")+i+o,e(this).attr(t,n))})}function o(e){var t,i,o,r,a,s,l=(e.model.fields||e.model)[e.field],d=n(l),u=l?l.validation:{},h=l?l.attributes:{},p=c.attr("type"),f=c.attr("bind"),w={id:e.id||e.field,name:e.field,title:e.title?e.title:e.field};for(t in u)i=u[t],v(t,C)>=0?w[p]=t:m(i)||(o=c.getCulture(),"number"==typeof i&&o.name.length?(r=o.numberFormat,a=(""+i).replace(_,r[_]),w[t]=a):w[t]=g(i)?i.value||t:i),w[c.attr(t+"-msg")]=i.message,w.autocomplete=b;for(s in h)w[s]=h[s];return v(d,C)>=0&&(w[p]=d),w[f]=("boolean"===d?"checked:":"value:")+e.field,w}function r(e,t){var n=e.attr("id");return n&&(t.id=n,e.removeAttr("id")),t}function a(e){var t,n,i,o,r,a;if(e&&e.length)for(a=[],t=0,n=e.length;t<n;t++)i=e[t],r=i.text||i.value||i,o=null==i.value?i.text||i:i.value,a[t]={text:r,value:o};return a}function s(e,t){var n;if(e.length)return n="DropDownTree"===e&&t&&t.checkboxes||"MultiSelect"===e?"<select />":"Editor"===e?"<textarea />":"<input />"}function l(e,t){var n,i,o=e?e.validation||{}:{};for(n in o)i=o[n],g(i)&&i.value&&(i=i.value),m(i)&&(t[n]=i)}function d(t,n,i){var o=!!i&&(i.shouldRenderHidden||!1);o&&(t.val(!0),n.append(e("<input type='hidden' name='"+i.field+"' value='false' data-skip='true' data-validate='false'/>")))}var c=window.kendo,u=c.ui,h=u.Widget,p=e.extend,f=c.support.browser.msie&&c.support.browser.version<9,m=c.isFunction,g=e.isPlainObject,v=e.inArray,_=".",b="off",w=/("|\%|'|\[|\]|\$|\.|\,|\:|\;|\+|\*|\&|\!|\#|\(|\)|<|>|\=|\?|\@|\^|\{|\}|\~|\/|\||`)/g,k='<div class="k-tooltip k-tooltip-error k-validator-tooltip"><span class="k-tooltip-icon k-icon k-i-warning"></span><span class="k-tooltip-content">#= message #</span><span class="k-callout k-callout-n"></span></div>',y="change",x="equalSet",C=["url","email","number","date","boolean"],S=["AutoComplete","ColorPicker","ComboBox","DateInput","DatePicker","DateTimePicker","DropDownTree","Editor","MaskedTextBox","MultiColumnComboBox","MultiSelect","NumericTextBox","Rating","Slider","Switch","TimePicker","DropDownList"],T={number:function(t,n){var i=o(n);e('<input type="text"/>').attr(i).appendTo(t).kendoNumericTextBox({format:n.format}),e("<span "+c.attr("for")+'="'+n.field+'" class="k-invalid-msg k-hidden"/>').appendTo(t)},date:function(t,n){var i=o(n),r=n.format;r&&(r=c._extractFormat(r)),i[c.attr("format")]=r,e('<input type="text"/>').attr(i).appendTo(t).kendoDatePicker({format:n.format}),e("<span "+c.attr("for")+'="'+n.field+'" class="k-invalid-msg k-hidden"/>').appendTo(t)},string:function(t,n){var i=o(n);e('<input type="text" />').attr(i).addClass("k-textbox").appendTo(t)},"boolean":function(t,n){var i=o(n),r=e('<input type="checkbox" />').attr(i).addClass("k-checkbox").appendTo(t);d(r,t,n)},values:function(t,n){var i=o(n),r=c.stringify(a(n.values));e("<select "+c.attr("text-field")+'="text"'+c.attr("value-field")+'="value"'+c.attr("source")+"='"+(r?r.replace(/\'/g,"&apos;"):r)+"'"+c.attr("role")+'="dropdownlist"/>').attr(i).appendTo(t),e("<span "+c.attr("for")+'="'+n.field+'" class="k-invalid-msg  k-hidden"/>').appendTo(t)},kendoEditor:function(t,n){var i=o(n),r=n.editor,a="kendo"+r,l=n.editorOptions,c=s(r,l),u=e(c).attr(i).appendTo(t)[a](l);d(u,t,n)}},D={number:function(t,n){var i=o(n);i=r(t,i),e('<input type="number"/>').attr(i).appendTo(t)},date:function(t,n){var i=o(n);i=r(t,i),e('<input type="date"/>').attr(i).appendTo(t)},string:function(t,n){var i=o(n);i=r(t,i),e('<input type="text" />').attr(i).appendTo(t)},"boolean":function(t,n){var i=o(n);i=r(t,i),e('<input type="checkbox" />').attr(i).appendTo(t)},values:function(t,n){var i,a=o(n),s=n.values,l=e("<select />");a=r(t,a);for(i in s)e('<option value="'+s[i].value+'">'+s[i].text+"</option>").appendTo(l);l.attr(a).appendTo(t)}},A=h.extend({init:function(t,n){var i=this;n.target&&(n.$angular=n.target.options.$angular,n.target.pane&&(i._isMobile=!0)),h.fn.init.call(i,t,n),i._validateProxy=e.proxy(i._validate,i),i.refresh()},events:[y],options:{name:"Editable",editors:T,mobileEditors:D,clearContainer:!0,validateOnBlur:!0,validationSummary:!1,errorTemplate:k,skipFocus:!1},editor:function(t,i){var o=this,r=o._isMobile?D:o.options.editors,a=g(t),s=a?t.field:t,l=o.options.model||{},d=a&&t.values,u=d?"values":n(i),h=a&&t.editor,f=a&&e.inArray(t.editor,S)!==-1,m=h?t.editor:r[u],v=o.element.find("["+c.attr("container-for")+"="+s.replace(w,"\\$1")+"]");m=m?m:r.string,f?m=r.kendoEditor:h&&"string"==typeof t.editor&&(m=function(e){e.append(t.editor)}),v=v.length?v:o.element,m(v,p(!0,{},a?t:{field:s},{model:l}))},_validate:function(t){var n,i=this,o=t.value,r=i._validationEventInProgress,a={},s=c.attr("bind"),l=t.field.replace(w,"\\$1"),d=RegExp("(value|checked)\\s*:\\s*"+l+"\\s*(,|$)");a[t.field]=t.value,n=e(":input["+s+'*="'+l+'"]',i.element).filter("["+c.attr("validate")+"!='false']").filter(function(){return d.test(e(this).attr(s))}),n.length>1&&(n=n.filter(function(){var t=e(this);return!t.is(":radio")||t.val()==o}));try{i._validationEventInProgress=!0,(!i.validatable.validateInput(n)||!r&&i.trigger(y,{values:a}))&&t.preventDefault()}finally{i._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){var e=this;e.angular("cleanup",function(){return{elements:e.element}}),h.fn.destroy.call(e),e.options.model.unbind("set",e._validateProxy),e.options.model.unbind(x,e._validateProxy),c.unbind(e.element),e.validatable&&e.validatable.destroy(),c.destroy(e.element),e.element.removeData("kendoValidator"),e.element.is("["+c.attr("role")+"=editable]")&&e.element.removeAttr(c.attr("role"))},refresh:function(){var n,o,r,a,s,d,u,h,p=this,m=p.options.fields||[],v=p.options.clearContainer?p.element.empty():p.element,_=p.options.model||{},b={};for(e.isArray(m)||(m=[m]),n=0,o=m.length;n<o;n++)r=m[n],a=g(r),s=a?r.field:r,d=(_.fields||_)[s],l(d,b),p.editor(r,d);if(p.options.target&&p.angular("compile",function(){return{elements:v,data:v.map(function(){return{dataItem:_}})}}),!o){u=_.fields||_;for(s in u)l(u[s],b)}i(v),p.validatable&&p.validatable.destroy(),c.bind(v,p.options.model),p.options.validateOnBlur&&(p.options.model.unbind("set",p._validateProxy).bind("set",p._validateProxy),p.options.model.unbind(x,p._validateProxy).bind(x,p._validateProxy)),p.validatable=new c.ui.Validator(v,{validateOnBlur:p.options.validateOnBlur,validationSummary:p.options.validationSummary,errorTemplate:p.options.errorTemplate||t,rules:b}),p.options.skipFocus||(h=v.find(":kendoFocusable").eq(0).focus(),f&&h.focus())}});u.plugin(A)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.window.min",["kendo.draganddrop.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e){return t!==e}function i(e,t){return parseInt(e.css(t),10)||0}function o(e,t,n){var i;return i=e&&isNaN(e)&&(""+e).indexOf("px")<0?e:Math.max(Math.min(parseInt(e,10),n===1/0?n:parseInt(n,10)),t===-(1/0)?t:parseInt(t,10))}function r(){return!this.type||this.type.toLowerCase().indexOf("script")>=0}function a(t){for(var n,i,o={top:t.offsetTop,left:t.offsetLeft},r=t.offsetParent;r;)o.top+=r.offsetTop,o.left+=r.offsetLeft,n=e(r).css("overflowX"),i=e(r).css("overflowY"),"auto"!==i&&"scroll"!==i||(o.top-=r.scrollTop),"auto"!==n&&"scroll"!==n||(o.left-=r.scrollLeft),r=r.offsetParent;return o}function s(e){var t=this;t.owner=e,t._preventDragging=!1,t._draggable=new h(e.wrapper,{filter:">"+E,group:e.wrapper.id+"-resizing",dragstart:v(t.dragstart,t),drag:v(t.drag,t),dragend:v(t.dragend,t)}),t._draggable.userEvents.bind("press",v(t.addOverlay,t)),t._draggable.userEvents.bind("release",v(t.removeOverlay,t))}function l(e,t){var n=this;n.owner=e,n._preventDragging=!1,n._draggable=new h(e.wrapper,{filter:t,group:e.wrapper.id+"-moving",dragstart:v(n.dragstart,n),drag:v(n.drag,n),dragend:v(n.dragend,n),dragcancel:v(n.dragcancel,n)}),n._draggable.userEvents.stopPropagation=!1}var d=window.kendo,c=d.ui.Widget,u=d.ui.Popup.TabKeyTrap,h=d.ui.Draggable,p=e.isPlainObject,f=d._activeElement,m=d._outerWidth,g=d._outerHeight,v=e.proxy,_=e.extend,b=e.each,w=d.template,k="body",y=".kendoWindow",x=".kendoWindowModal",C=".k-window",S=".k-window-title",T=S+"bar",D=".k-window-content",A=".k-dialog-content",E=".k-resize-handle",I=".k-overlay",M="k-content-frame",R="k-i-loading",F="k-state-hover",P="k-state-focused",z="k-window-maximized",B=":visible",L="hidden",H="cursor",N="open",O="activate",V="deactivate",W="close",U="refresh",j="minimize",q="maximize",G="resizeStart",$="resize",K="resizeEnd",Y="dragstart",Q="dragend",X="kendoKeydown",Z="error",J="overflow",ee="original-overflow-rule",te="zIndex",ne=".k-window-actions .k-i-window-minimize,.k-window-actions .k-i-window-maximize",ie=".k-i-pin",oe=".k-i-unpin",re=ie+","+oe,ae=".k-window-titlebar .k-window-action",se=".k-window-titlebar .k-i-refresh",le="WindowEventsHandled",de=/^0[a-z]*$/i,ce=d.isLocalUrl,ue={small:"k-window-sm",medium:"k-window-md",large:"k-window-lg"},he=c.extend({init:function(i,o){var a,s,l,h,f,m,g,_,b,w=this,k={},x=!1,E=o&&o.actions&&!o.actions.length;c.fn.init.call(w,i,o),o=w.options,h=o.position,i=w.element,f=o.content,_=e(window),E&&(o.actions=[]),w.appendTo=e(o.appendTo),w.containment=o.draggable.containment?e(o.draggable.containment).first():null,f&&!p(f)&&(f=o.content={url:f}),i.find("script").filter(r).remove(),i.parent().is(w.appendTo)||w.containment||h.top!==t&&h.left!==t||(i.is(B)?(k=i.offset(),x=!0):(s=i.css("visibility"),l=i.css("display"),i.css({visibility:L,display:""}),k=i.offset(),i.css({visibility:s,display:l})),h.top===t&&(h.top=k.top),h.left===t&&(h.left=k.left)),n(o.visible)&&null!==o.visible||(o.visible=i.is(B)),a=w.wrapper=i.closest(C),i.is(".k-window-content")&&a[0]||(i.addClass("k-window-content"),w._createWindow(i,o),a=w.wrapper=i.closest(C),w.title(w.options.title),w._dimensions()),w.minTop=w.minLeft=-(1/0),w.maxTop=w.maxLeft=1/0,w._position(),f&&w.refresh(f),o.visible&&w.toFront(),m=a.children(D),o.visible&&o.modal&&w._overlay(a.is(B)).css({opacity:.5}),a.on("mouseenter"+y,ae,v(w._buttonEnter,w)).on("mouseleave"+y,ae,v(w._buttonLeave,w)).on("click"+y,"> "+ae,v(w._windowActionHandler,w)).on("keydown"+y,w,v(w._keydown,w)).on("focus"+y,v(w._focus,w)).on("blur"+y,v(w._blur,w)),m.on("keydown"+y,w,v(w._keydownContent,w)),g=m.find("."+M)[0],g&&!_.data(le)&&(_.on("blur"+y,function(){var t,n=e(document.activeElement).parent(D);n.length&&(t=d.widgetInstance(n),t._focus())}),_.on("focus"+y,function(){e(D).not(A).each(function(t,n){d.widgetInstance(e(n))._blur()})}),_.data(le,!0)),this._resizable(),this._draggable(),o.pinned&&this.wrapper.is(":visible")&&w.pin(),b=i.attr("id"),b&&(b+="_wnd_title",a.children(T).children(S).attr("id",b),m.attr({role:"dialog","aria-labelledby":b})),a.add(a.children(".k-resize-handle,"+T)).on("mousedown"+y,v(w.toFront,w)),w.touchScroller=d.touchScroller(i),w._resizeHandler=v(w._onDocumentResize,w),w._marker=d.guid().substring(0,8),e(window).on("resize"+y+w._marker,w._resizeHandler),o.visible&&(w.trigger(N),w.trigger(O)),d.notify(w),this.options.modal&&(this._tabKeyTrap=new u(a),this._tabKeyTrap.trap(),this._tabKeyTrap.shouldTrap=function(){return a.data("isFront")})},_buttonEnter:function(t){e(t.currentTarget).addClass(F)},_buttonLeave:function(t){e(t.currentTarget).removeClass(F)},_focus:function(){this.wrapper.addClass(P)},_blur:function(){this.wrapper.removeClass(P)},_dimensions:function(){var e,t,n=this.wrapper,r=this.options,a=r.width,s=r.height,l=r.maxHeight,d=r.size,c=["minWidth","minHeight","maxWidth","maxHeight"],u="content-box"==n.css("box-sizing"),h=u?i(n,"border-left-width")+i(n,"border-right-width"):0,p=u?i(n,"border-top-width")+i(n,"border-bottom-width"):0,f=u?i(n,"padding-top"):0;for(this.containment&&!this._isPinned&&(this._updateBoundaries(),r.maxHeight=Math.min(this.containment.height-(p+f),l),r.maxWidth=Math.min(this.containment.width-h,r.maxWidth)),e=0;e<c.length;e++)t=r[c[e]]||"",t!=1/0&&n.css(c[e],t);
l!=1/0&&this.element.css("maxHeight",l),n.width(a?o(a,r.minWidth,r.maxWidth):""),n.height(s?o(s,r.minHeight,r.maxHeight):""),r.visible||n.hide(),d&&ue[d]&&n.addClass(ue[d])},_position:function(){var e,t,n=this.wrapper,i=this.options.position;this._updateBoundaries(),this.containment&&(i.top=i.top||0,i.left=i.left||0,e=(""+i.top).indexOf("%")>0?parseInt(this.containment.height*(parseFloat(i.top)/100),10):i.top,t=(""+i.left).indexOf("%")>0?parseInt(this.containment.width*(parseFloat(i.left)/100),10):i.left,i.top=o(e,this.minTop,this.maxTop),i.left=o(t,this.minLeft,this.maxLeft)),0===i.top&&(i.top=""+i.top),0===i.left&&(i.left=""+i.left),n.css({top:i.top||"",left:i.left||""})},_updateBoundaries:function(){var e=this.containment;return e?(e.width=e.innerWidth(),e.height=e.innerHeight(),parseInt(e.width,10)>e[0].clientWidth&&(e.width-=d.support.scrollbar()),parseInt(e.height,10)>e[0].clientHeight&&(e.height-=d.support.scrollbar()),e.position=a(e[0]),this._isPinned?(this.minTop=this.minLeft=-(1/0),this.maxTop=this.maxLeft=1/0):(this.minTop=e.scrollTop(),this.minLeft=e.scrollLeft(),this.maxLeft=this.minLeft+e.width-m(this.wrapper,!0),this.maxTop=this.minTop+e.height-g(this.wrapper,!0)),t):null},_animationOptions:function(e){var t=this.options.animation,n={open:{effects:{}},close:{hide:!0,effects:{}}};return t&&t[e]||n[e]},_resize:function(){d.resize(this.element.children())},_resizable:function(){var t=this.options.resizable,n=this.wrapper;this.resizing&&(n.off("dblclick"+y).children(E).remove(),this.resizing.destroy(),this.resizing=null),t&&(n.on("dblclick"+y,T,v(function(t){e(t.target).closest(".k-window-action").length||this.toggleMaximization()},this)),b("n e s w se sw ne nw".split(" "),function(e,t){n.append(pe.resizeHandle(t))}),this.resizing=new s(this)),n=null},_draggable:function(){var e=this.options.draggable;this.dragging&&(this.dragging.destroy(),this.dragging=null),e&&(this.dragging=new l(this,e.dragHandle||T))},_actions:function(){var t=this.options,n=t.actions,i=t.pinned,o=this.wrapper.children(T),r=o.find(".k-window-actions"),a=["maximize","minimize"];n=e.map(n,function(e){return e=i&&"pin"===e.toLowerCase()?"unpin":e,{name:a.indexOf(e.toLowerCase())>-1?"window-"+e:e}}),r.html(d.render(pe.action,n))},setOptions:function(e){var n,i,o=this,r=o.options.size,a=JSON.parse(JSON.stringify(e));_(e.position,o.options.position),_(e.position,a.position),c.fn.setOptions.call(o,e),n=o.options.scrollable!==!1,o.restore(),t!==e.title&&o.title(e.title),o.wrapper.removeClass(ue[r]),o._dimensions(),o._position(),o._resizable(),o._draggable(),o._actions(),t!==e.modal&&(i=o.options.visible!==!1,o._enableDocumentScrolling(),o._overlay(e.modal&&i)),o.element.css(J,n?"":"hidden")},events:[N,O,V,W,j,q,U,G,$,K,Y,Q,X,Z],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],autoFocus:!0,modal:!1,size:"auto",resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0,pinned:!1,scrollable:!0,position:{},content:null,visible:null,height:null,width:null,appendTo:"body",isMaximized:!1,isMinimized:!1},_closable:function(){return e.inArray("close",e.map(this.options.actions,function(e){return e.toLowerCase()}))>-1},_keydownContent:function(e){var t=this,n=d.keys,i=e.keyCode;i==n.ESC&&t._closable()&&(e.stopPropagation(),t._close(!1))},_keydown:function(e){var t,n,r,a,s,l,c=this,u=c.options,h=d.keys,p=e.keyCode,f=c.wrapper,m=10,g=u.isMaximized,v=u.isMinimized;p==h.ESC&&c._closable()&&(e.stopPropagation(),c._close(!1)),e.target!=e.currentTarget||c._closing||(e.altKey&&82==p&&c.refresh(),e.altKey&&80==p&&(c.options.pinned?c.unpin():c.pin()),e.altKey&&p==h.UP?v?(c.restore(),c.wrapper.focus()):g||(c.maximize(),c.wrapper.focus()):e.altKey&&p==h.DOWN&&(v||g?g&&c.restore():(c.minimize(),c.wrapper.focus())),t=d.getOffset(f),c.containment&&!c._isPinned&&(t=c.options.position),!u.draggable||e.ctrlKey||e.altKey||g||(c._updateBoundaries(),p==h.UP?(t.top=o(t.top-m,c.minTop,c.maxTop),n=f.css("top",t.top)):p==h.DOWN?(t.top=o(t.top+m,c.minTop,c.maxTop),n=f.css("top",t.top)):p==h.LEFT?(t.left=o(t.left-m,c.minLeft,c.maxLeft),n=f.css("left",t.left)):p==h.RIGHT&&(t.left=o(t.left+m,c.minLeft,c.maxLeft),n=f.css("left",t.left))),u.resizable&&e.ctrlKey&&!g&&!v&&(p==h.UP?(n=!0,a=f.height()-m):p==h.DOWN&&(n=!0,a=c.containment&&!c._isPinned?Math.min(f.height()+m,c.containment.height-t.top-i(f,"padding-top")-i(f,"borderBottomWidth")-i(f,"borderTopWidth")):f.height()+m),p==h.LEFT?(n=!0,r=f.width()-m):p==h.RIGHT&&(n=!0,r=c.containment&&!c._isPinned?Math.min(f.width()+m,c.containment.width-t.left-i(f,"borderLeftWidth")-i(f,"borderRightWidth")):f.width()+m),n&&(s=o(r,u.minWidth,u.maxWidth),l=o(a,u.minHeight,u.maxHeight),isNaN(s)||(f.width(s),c.options.width=s+"px"),isNaN(l)||(f.height(l),c.options.height=l+"px"),c.resize())),n&&e.preventDefault())},_overlay:function(t){var n=this.containment?this.containment.children(I):this.appendTo.children(I),i=this.wrapper;return n.length||(n=e("<div class='k-overlay' />")),n.insertBefore(i[0]).toggle(t).css(te,parseInt(i.css(te),10)-1),this.options.modal.preventScroll&&!this.containment&&this._stopDocumentScrolling(),n},_actionForIcon:function(e){var t=/\bk-i(-\w+)+\b/.exec(e[0].className)[0];return{"k-i-close":"_close","k-i-window-maximize":"maximize","k-i-window-minimize":"minimize","k-i-window-restore":"restore","k-i-refresh":"refresh","k-i-pin":"pin","k-i-unpin":"unpin"}[t]},_windowActionHandler:function(n){var i,o;if(!this._closing)return i=e(n.target).closest(".k-window-action").find(".k-icon"),o=this._actionForIcon(i),o?(n.preventDefault(),this[o](),!1):t},_modals:function(){var t=this,n=e(C).filter(function(){var n=e(this),i=t._object(n),o=i&&i.options;return o&&o.modal&&o.visible&&o.appendTo===t.options.appendTo&&n.is(B)}).sort(function(t,n){return+e(t).css("zIndex")-+e(n).css("zIndex")});return t=null,n},_object:function(e){var n=e.children(D),i=d.widgetInstance(n);return i?i:t},center:function(){var t,n,o=this,r=o.options.position,a=o.wrapper,s=e(window),l=0,d=0;return o.options.isMaximized?o:(o.options.pinned&&!o._isPinned&&o.pin(),o.options.pinned||(l=s.scrollTop(),d=s.scrollLeft()),this.containment&&!o.options.pinned?(t=this.minTop+(this.maxTop-this.minTop)/2,n=this.minLeft+(this.maxLeft-this.minLeft)/2):(o._scrollIsAppended=!0,n=d+Math.max(0,(s.width()-a.width())/2),t=l+Math.max(0,(s.height()-a.height()-i(a,"paddingTop"))/2)),a.css({left:n,top:t}),r.top=t,r.left=n,o)},title:function(n){var i,o,r,a,s=this,l=!0,c=s.wrapper,u=c.children(T),h=u.children(S);return arguments.length?(e.isPlainObject(n)?(i=t!==n.text?n.text:"",l=n.encoded!==!1):i=n,i===!1?(c.addClass("k-window-titleless"),c.css("padding-top",0),u.remove()):(u.length?h.html(l?d.htmlEncode(i):i):(c.prepend(pe.titlebar({title:l?d.htmlEncode(i):i})),s._actions(),u=c.children(T)),a=c.css("visibility"),r=c.css("display"),a===L?(c.css({display:""}),o=parseInt(g(u),10),c.css({display:r})):(c.css({visibility:L,display:""}),o=parseInt(g(u),10),c.css({visibility:a,display:r})),c.css("padding-top",o),u.css("margin-top",-o)),s.options.title=i,s):h.html()},content:function(e,t){var i=this.wrapper.children(D),o=i.children(".km-scroll-container");return i=o[0]?o:i,n(e)?(this.angular("cleanup",function(){return{elements:i.children()}}),d.destroy(this.element.children()),i.empty().html(e),this.angular("compile",function(){var e,n=[];for(e=i.length;--e>=0;)n.push({dataItem:t});return{elements:i.children(),data:n}}),this):i.html()},open:function(){var t,n,i,o=this,r=o.wrapper,a=o.options,s=this._animationOptions("open"),l=r.children(D),c=this.containment&&!o._isPinned,u=c?this.containment:e(document);return o.trigger(N)||(o._closing&&r.kendoStop(!0,!0),o._closing=!1,o.toFront(),a.autoFocus&&o.wrapper.focus(),a.visible=!0,a.modal&&(n=!!o._modals().length,t=o._overlay(n),t.kendoStop(!0,!0),s.duration&&d.effects.Fade&&!n?(i=d.fx(t).fadeIn(),i.duration(s.duration||0),i.endValue(.5),i.play()):t.css("opacity",.5),t.show(),e(window).on("focus"+x,function(){r.data("isFront")&&!e(document.activeElement).closest(r).length&&o.wrapper.focus()})),r.is(B)||(l.css(J,L),o.wrapper.find(ae).addClass("k-flat"),r.show().kendoStop().kendoAnimate({effects:s.effects,duration:s.duration,complete:v(this._activate,this)}))),a.isMaximized&&(o._containerScrollTop=u.scrollTop(),o._containerScrollLeft=u.scrollLeft(),o._stopDocumentScrolling()),this.options.pinned&&!this._isPinned&&this.pin(),o},_activate:function(){var e=this.options.scrollable!==!1;this.options.autoFocus&&this.wrapper.focus(),this.element.css(J,e?"":"hidden"),d.resize(this.element.children()),this.trigger(O)},_removeOverlay:function(n){var i,o=this._modals(),r=this.options,a=r.modal&&!o.length,s=r.modal?this._overlay(!0):e(t),l=this._animationOptions("close");a?(!n&&l.duration&&d.effects.Fade?(i=d.fx(s).fadeOut(),i.duration(l.duration||0),i.startValue(.5),i.play()):this._overlay(!1).remove(),r.modal.preventScroll&&this._enableDocumentScrolling()):o.length&&(this._object(o.last())._overlay(!0),r.modal.preventScroll&&this._stopDocumentScrolling())},_close:function(t){var n,i=this,o=i.wrapper,r=i.options,a=this._animationOptions("open"),s=this._animationOptions("close"),l=this.containment&&!i._isPinned,d=l?this.containment:e(document);i._closing||(n=i.trigger(W,{userTriggered:!t}),i._closing=!n,o.is(B)&&!n&&(r.visible=!1,e(C).each(function(t,n){var i=e(n).children(D);n!=o&&i.find("> ."+M).length>0&&i.children(I).remove()}),this._removeOverlay(),i.wrapper.find(ae).removeClass("k-flat"),o.kendoStop().kendoAnimate({effects:s.effects||a.effects,reverse:s.reverse===!0,duration:s.duration,complete:v(this._deactivate,this)}),e(window).off(x)),i.options.isMaximized&&(i._enableDocumentScrolling(),i._containerScrollTop&&i._containerScrollTop>0&&d.scrollTop(i._containerScrollTop),i._containerScrollLeft&&i._containerScrollLeft>0&&d.scrollLeft(i._containerScrollLeft)),i.options.iframe&&i.wrapper.blur())},_deactivate:function(){var e,t=this;t.wrapper.hide().css("opacity",""),t.trigger(V),t.options.modal&&(e=t._object(t._modals().last()),e&&e.toFront())},close:function(){return this._close(!0),this},_actionable:function(t){return e(t).is(ae+","+ae+" .k-icon,:input,a")},_shouldFocus:function(t){var n=f(),i=this.wrapper;return this.options.autoFocus&&!e(n).is(i)&&!this._actionable(t)&&(!i.find(n).length||!i.find(t).length)},toFront:function(t){var n,i,o=this,r=o.wrapper,a=r[0],s=o.containment&&!o._isPinned,l=+r.css(te),d=l,c=t&&t.target||null;return e(C).each(function(t,n){var i=e(n),o=i.css(te),s=i.children(D);isNaN(o)||(l=Math.max(+o,l)),r.data("isFront",n==a),n!=a&&s.find("> ."+M).length>0&&s.append(pe.overlay)}),(!r[0].style.zIndex||d<l)&&r.css(te,l+2),o.element.find("> .k-overlay").remove(),o._shouldFocus(c)&&(setTimeout(function(){o.wrapper.focus()}),n=s?o.containment.scrollTop():e(window).scrollTop(),i=parseInt(r.position().top,10),!o.options.pinned&&i>0&&i<n&&(n>0?e(window).scrollTop(i):r.css("top",n))),r=null,o},toggleMaximization:function(){return this._closing?this:this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var t,n=this,i=n.options,r=i.minHeight,a=n.restoreOptions,s=n.containment&&!n._isPinned?n.containment:e(document);return i.isMaximized||i.isMinimized?(r&&r!=1/0&&n.wrapper.css("min-height",r),a&&!i.isMaximized&&(a.height=o(a.height,n.options.minHeight,n.options.maxHeight),t=i.position.top+parseInt(a.height,10)>n.maxTop,t&&(i.position.top=o(i.position.top,n.minTop,n.maxTop-parseInt(a.height,10)),_(a,{left:i.position.left,top:i.position.top}))),n.wrapper.css({position:i.pinned?"fixed":"absolute",left:a.left,top:a.top,width:a.width,height:a.height}).removeClass(z).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-window-restore").parent().remove().end().end().find(ne).parent().show().end().end().find(re).parent().show(),i.isMaximized?n.wrapper.find(".k-i-window-maximize").parent().focus():i.isMinimized&&n.wrapper.find(".k-i-window-minimize").parent().focus(),n.options.width=a.width,n.options.height=a.height,n.options.modal.preventScroll||n._enableDocumentScrolling(),n._containerScrollTop&&n._containerScrollTop>0&&s.scrollTop(n._containerScrollTop),n._containerScrollLeft&&n._containerScrollLeft>0&&s.scrollLeft(n._containerScrollLeft),i.isMaximized=i.isMinimized=!1,n.wrapper.removeAttr("aria-labelled-by"),n.resize(),n):n},_sizingAction:function(e,t){var n=this,i=n.wrapper,o=i[0].style,r=n.options;return r.isMaximized||r.isMinimized?n:(n.restoreOptions={width:o.width,height:o.height},i.children(E).hide().end().children(T).find(ne).parent().hide().eq(0).before(pe.action({name:"window-restore"})),t.call(n),n.wrapper.children(T).find(re).parent().toggle("maximize"!==e),n.trigger(e),i.find(".k-i-window-restore").parent().focus(),n)},maximize:function(){return this._sizingAction("maximize",function(){var t=this,n=t.wrapper,i=this.containment&&!t._isPinned,o=n.position(),r=e(document);_(t.restoreOptions,{left:o.left+(i?this.containment.scrollLeft():0),top:o.top+(i?this.containment.scrollTop():0)}),this._containerScrollTop=i?this.containment.scrollTop():r.scrollTop(),this._containerScrollLeft=i?this.containment.scrollLeft():r.scrollLeft(),t._stopDocumentScrolling(),n.css({top:i?this.containment.scrollTop():0,left:i?this.containment.scrollLeft():0,position:i?"absolute":"fixed"}).addClass(z),t.options.isMaximized=!0,t._onDocumentResize()}),this},_stopDocumentScrolling:function(){var n,i,o=this,r=o.containment;return r&&!o._isPinned?(o._storeOverflowRule(r),r.css(J,L),o.wrapper.css({maxWidth:r.innerWidth(),maxHeight:r.innerHeight()}),t):(n=e("body"),o._storeOverflowRule(n),n.css(J,L),i=e("html"),o._storeOverflowRule(i),i.css(J,L),t)},_enableDocumentScrolling:function(){var n=this,i=n.containment;return i&&!n._isPinned?(n._restoreOverflowRule(i),n.wrapper.css({maxWidth:i.width,maxHeight:i.height}),t):(n._restoreOverflowRule(e(document.body)),n._restoreOverflowRule(e("html")),t)},_storeOverflowRule:function(e){if(!this._isOverflowStored(e)){var t=e.get(0).style.overflow;"string"==typeof t&&e.data(ee,t)}},_isOverflowStored:function(e){return"string"==typeof e.data(ee)},_restoreOverflowRule:function(e){var n=e.data(ee);null!==n&&n!==t?(e.css(J,n),e.removeData(ee)):e.css(J,"")},isMaximized:function(){return this.options.isMaximized},minimize:function(){return this._sizingAction("minimize",function(){var e=this;e.wrapper.css({height:"",minHeight:""}),e.element.hide(),e.options.isMinimized=!0}),this.wrapper.attr("aria-labelled-by",this.element.attr("aria-labelled-by")),this._updateBoundaries(),this},isMinimized:function(){return this.options.isMinimized},pin:function(){var t=this,n=e(window),o=t.wrapper,r=t.options,s=r.position,l=this.containment?a(o[0]).top+i(this.containment,"borderTopWidth"):i(o,"top"),d=this.containment?a(o[0]).left+i(this.containment,"borderLeftWidth"):i(o,"left");t.options.isMaximized||(s.top=l,s.left=d,!t._scrollIsAppended||this.containment&&"fixed"===this.containment.css("position")||(s.top-=n.scrollTop(),s.left-=n.scrollLeft(),t._scrollIsAppended=!1),o.css(_(s,{position:"fixed"})),o.children(T).find(ie).addClass("k-i-unpin").removeClass("k-i-pin"),t._isPinned=!0,t.options.pinned=!0,this.containment&&(r.maxWidth=r.maxHeight=1/0,o.css({maxWidth:"",maxHeight:""})))},unpin:function(){var t=this,n=e(window),r=t.wrapper,a=t.options,s=t.options.position,l=t.containment,d=parseInt(r.css("top"),10)+n.scrollTop(),c=parseInt(r.css("left"),10)+n.scrollLeft();t.options.isMaximized||(t._isPinned=!1,t._scrollIsAppended=!0,t.options.pinned=!1,l&&(t._updateBoundaries(),a.maxWidth=Math.min(l.width,a.maxWidth),a.maxHeight=Math.min(l.height-i(r,"padding-top"),a.maxHeight),r.css({maxWidth:a.maxWidth,maxHeight:a.maxHeight}),d=d<l.position.top?t.minTop:d>l.position.top+l.height?t.maxTop:d+l.scrollTop()-(l.position.top+i(l,"border-top-width")),c=c<l.position.left?t.minLeft:c>l.position.left+l.width?t.maxLeft:c+l.scrollLeft()-(l.position.left+i(l,"border-left-width"))),s.top=o(d,t.minTop,t.maxTop),s.left=o(c,t.minLeft,t.maxLeft),r.css(_(s,{position:""})),r.children(T).find(oe).addClass("k-i-pin").removeClass("k-i-unpin"))},_onDocumentResize:function(){var t,n,o,r,a,s=this,l=s.wrapper,c=e(window),u=d.support.zoomLevel(),h="content-box"==l.css("box-sizing");s.options.isMaximized&&(o=h?i(l,"border-left-width")+i(l,"border-right-width"):0,r=h?i(l,"border-top-width")+i(l,"border-bottom-width"):0,a=h?i(l,"padding-top"):0,s.containment&&!s._isPinned?(t=s.containment.innerWidth()-o,n=s.containment.innerHeight()-(r+a)):(t=c.width()/u-o,n=c.height()/u-(r+a)),l.css({width:t,height:n}),s.options.width=t,s.options.height=n,s.resize())},refresh:function(t){var i,o,r,a=this,s=a.options,l=e(a.element);return p(t)||(t={url:t}),t=_({},s.content,t),o=n(s.iframe)?s.iframe:t.iframe,r=t.url,r?(n(o)||(o=!ce(r)),o?(i=l.find("."+M)[0],i?i.src=r||i.src:l.html(pe.contentFrame(_({},s,{content:t}))),l.find("."+M).unbind("load"+y).on("load"+y,v(this._triggerRefresh,this))):a._ajaxRequest(t)):(t.template&&a.content(w(t.template)({})),a.trigger(U)),l.toggleClass("k-window-iframecontent",!!o),a},_triggerRefresh:function(){this.trigger(U)},_ajaxComplete:function(){clearTimeout(this._loadingIconTimeout),this.wrapper.find(se).removeClass(R)},_ajaxError:function(e,t){this.trigger(Z,{status:t,xhr:e})},_ajaxSuccess:function(e){return function(t){var n=t;e&&(n=w(e)(t||{})),this.content(n,t),this.element.prop("scrollTop",0),this.trigger(U)}},_showLoading:function(){this.wrapper.find(se).addClass(R)},_ajaxRequest:function(t){this._loadingIconTimeout=setTimeout(v(this._showLoading,this),100),e.ajax(_({type:"GET",dataType:"html",cache:!1,error:v(this._ajaxError,this),complete:v(this._ajaxComplete,this),success:v(this._ajaxSuccess(t.template),this)},t))},_destroy:function(){this.resizing&&this.resizing.destroy(),this.dragging&&this.dragging.destroy(),this.wrapper.off(y).children(D).off(y).end().find(".k-resize-handle,.k-window-titlebar").off(y),e(window).off("resize"+y+this._marker),e(window).off(x),e(window).off(y),clearTimeout(this._loadingIconTimeout),c.fn.destroy.call(this),this.unbind(t),d.destroy(this.wrapper),this._removeOverlay(!0)},destroy:function(){this._destroy(),this.wrapper.empty().remove(),this.wrapper=this.appendTo=this.element=e()},_createWindow:function(){var t,n,i=this.element,o=this.options,r=d.support.isRtl(i);o.scrollable===!1&&i.css("overflow","hidden"),n=e(pe.wrapper(o)),t=i.find("iframe:not(.k-content-frame)").map(function(){var e=this.getAttribute("src");return this.src="",e}),n.toggleClass("k-rtl",r).attr("tabindex",0).append(i).find("iframe:not(.k-content-frame)").each(function(e){this.src=t[e]}),this.containment?this.containment.prepend(n):this.appendTo&&n.appendTo(this.appendTo),n.find(".k-window-title").css(r?"left":"right",m(n.find(".k-window-actions"))+10),i.css("visibility","").show(),i.find("[data-role=editor]").each(function(){var t=e(this).data("kendoEditor");t&&t.refresh()}),n=i=null}}),pe={wrapper:w("<div class='k-widget k-window'></div>"),action:w("<a role='button' href='\\#' class='k-button k-flat k-button-icon k-window-action' aria-label='#= name #'><span class='k-icon k-i-#= name.toLowerCase() #'></span></a>"),titlebar:w("<div class='k-window-titlebar'><span class='k-window-title'>#= title #</span><div class='k-window-actions'></div></div>"),overlay:"<div class='k-overlay'></div>",contentFrame:w("<iframe frameborder='0' title='#= title #' class='"+M+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),resizeHandle:w("<div class='k-resize-handle k-resize-#= data #'></div>")};s.prototype={addOverlay:function(){this.owner.wrapper.append(pe.overlay)},removeOverlay:function(){this.owner.wrapper.find(I).remove()},dragstart:function(t){var n,i,o,r,s,l,c,u=this,h=u.owner,p=h.wrapper;u._preventDragging=h.trigger(G),u._preventDragging||(u.elementPadding=parseInt(p.css("padding-top"),10),u.initialPosition=d.getOffset(p,"position"),u.resizeDirection=t.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),u.initialSize={width:p.width(),height:p.height()},h._updateBoundaries(),u.containerOffset=h.containment?h.containment.position:d.getOffset(h.appendTo,"position"),n=p.offsetParent(),n.is("html")?u.containerOffset.top=u.containerOffset.left=0:(i=n.css("margin-top"),o=n.css("margin-left"),r=!de.test(i)||!de.test(o),r&&(s=a(p[0]),l=s.left-u.containerOffset.left-u.initialPosition.left,c=s.top-u.containerOffset.top-u.initialPosition.top,u._relativeElMarginLeft=l>1?l:0,u._relativeElMarginTop=c>1?c:0,u.initialPosition.left+=u._relativeElMarginLeft,u.initialPosition.top+=u._relativeElMarginTop)),p.children(E).not(t.currentTarget).hide(),e(k).css(H,t.currentTarget.css(H)))},drag:function(t){var n,i,r,a,s,l,c,u,h,p,f,m,g,v,_,b,w,k,y,x;this._preventDragging||(n=this,i=n.owner,r=i.wrapper,a=i.options,s=a.position,l=n.resizeDirection,c=n.containerOffset,u=n.initialPosition,h=n.initialSize,p=i.containment&&!i._isPinned,f=d.support.isRtl(i.containment),m=p&&f&&i.containment.innerWidth()>i.containment.width?d.support.scrollbar():0,g=p?{top:i.containment.scrollTop(),left:i.containment.scrollLeft()}:{top:0,left:0},k=Math.max(t.x.location,0),y=Math.max(t.y.location,0),l.indexOf("e")>=0?(v=i.containment&&k-h.width>=i.maxLeft-g.left+c.left+m?i.maxLeft+m-u.left+h.width-g.left:k-u.left-c.left,r.width(o(v,a.minWidth,a.maxWidth))):l.indexOf("w")>=0&&(w=u.left+h.width+c.left,v=o(w-k,a.minWidth,a.maxWidth),s.left=w-v-c.left-m-(n._relativeElMarginLeft||0)+g.left,i.containment&&s.left<=i.minLeft&&(s.left=i.minLeft,v=o(w-m-s.left-c.left+g.left,a.minWidth,a.maxWidth)),r.css({left:s.left,width:v})),x=y,i.options.pinned&&(x-=e(window).scrollTop()),l.indexOf("s")>=0?(_=x-u.top-n.elementPadding-c.top,x-h.height-n.elementPadding>=i.maxTop+c.top-g.top&&(_=i.maxTop-u.top+h.height-g.top),r.height(o(_,a.minHeight,a.maxHeight))):l.indexOf("n")>=0&&(b=u.top+h.height+c.top,_=o(b-x,a.minHeight,a.maxHeight),s.top=b-_-c.top-(n._relativeElMarginTop||0)+g.top,s.top<=i.minTop&&i.containment&&(s.top=i.minTop,_=o(b-s.top-c.top+g.top,a.minHeight,a.maxHeight)),r.css({top:s.top,height:_})),v&&(i.options.width=v+"px"),_&&(i.options.height=_+"px"),i.resize())},dragend:function(t){if(!this._preventDragging){var n=this,i=n.owner,o=i.wrapper;return o.children(E).not(t.currentTarget).show(),e(k).css(H,""),i.touchScroller&&i.touchScroller.reset(),27==t.keyCode&&o.css(n.initialPosition).css(n.initialSize),i.trigger(K),!1}},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},l.prototype={dragstart:function(t){var n=this.owner,i=n.options.draggable,o=n.element,r=o.find(".k-window-actions"),a=d.getOffset(n.appendTo);this._preventDragging=n.trigger(Y)||!i,this._preventDragging||n.isMaximized()||(n.initialWindowPosition=d.getOffset(n.wrapper,"position"),n.initialPointerPosition={left:n.options.position.left,top:n.options.position.top},n.startPosition={left:t.x.client-n.initialWindowPosition.left,top:t.y.client-n.initialWindowPosition.top},n._updateBoundaries(),n.containment||(n.minLeft=r.length>0?m(r)+parseInt(r.css("right"),10)-m(o):20-m(o),n.minLeft-=a.left,n.minTop=-a.top),n.wrapper.append(pe.overlay).children(E).hide(),e(k).css(H,t.currentTarget.css(H)))},drag:function(t){var n,i,r=this.owner,a=r.options.position,s=r.options.draggable.axis;this._preventDragging||r.isMaximized()||(s&&"x"!==s.toLowerCase()||(n=t.x.client-r.startPosition.left,r.containment&&!r._isPinned&&(n+=r.containment.scrollLeft()),a.left=o(n,r.minLeft,r.maxLeft)),s&&"y"!==s.toLowerCase()||(i=t.y.client-r.startPosition.top,r.containment&&!r._isPinned&&(i+=r.containment.scrollTop()),a.top=o(i,r.minTop,r.maxTop)),d.support.transforms?e(r.wrapper).css("transform","translate("+(a.left-r.initialPointerPosition.left)+"px, "+(a.top-r.initialPointerPosition.top)+"px)"):e(r.wrapper).css(a))},_finishDrag:function(){var t=this.owner;t.wrapper.children(E).toggle(!t.options.isMinimized).end().find(I).remove(),e(k).css(H,"")},dragcancel:function(e){this._preventDragging||(this._finishDrag(),e.currentTarget.closest(C).css(this.owner.initialWindowPosition))},dragend:function(){var t=this.owner;if(!this._preventDragging&&!t.isMaximized())return e(t.wrapper).css(t.options.position).css("transform",""),this._finishDrag(),t.trigger(Q),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},d.ui.plugin(he)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pane.min",["kendo.view.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.roleSelector,o=n.ui,r=o.Widget,a=n.ViewEngine,s=n.View,l=e.extend,d="navigate",c="viewShow",u="sameViewRequested",h=n.support.mobileOS,p=h.ios&&!h.appMode&&h.flatVersion>=700,f="#:back",m=".",g={pane:"k-pane",paneWrapper:"k-pane-wrapper",collapsiblePane:"k-collapsible-pane",vertical:"k-vertical"},v=r.extend({init:function(e,t){var i=this;r.fn.init.call(i,e,t),t=i.options,e=i.element,e.addClass(g.pane),i.options.collapsible&&e.addClass(g.collapsiblePane),this.history=[],this.historyCallback=function(e,t,n){var o=i.transition;return i.transition=null,p&&n&&(o="none"),i.viewEngine.showView(e,o,t)},this._historyNavigate=function(e){if(e===f){if(1===i.history.length)return;i.history.pop(),e=i.history[i.history.length-1]}else e instanceof s&&(e=""),i.history.push(e);i.historyCallback(e,n.parseQueryStringParams(e))},this._historyReplace=function(e){var t=n.parseQueryStringParams(e);i.history[i.history.length-1]=e,i.historyCallback(e,t)},i.viewEngine=new a(l({},{container:e,transition:t.transition,modelScope:t.modelScope,rootNeeded:!t.initial,serverNavigation:t.serverNavigation,remoteViewURLPrefix:t.root||"",layout:t.layout,$angular:t.$angular,showStart:function(){i.closeActiveDialogs()},after:function(){},viewShow:function(e){i.trigger(c,e)},loadStart:function(){},loadComplete:function(){},sameViewRequested:function(){i.trigger(u)},viewTypeDetermined:function(e){e.remote&&i.options.serverNavigation||i.trigger(d,{url:e.url})}},this.options.viewEngine)),this._setPortraitWidth(),n.onResize(function(){i._setPortraitWidth()})},closeActiveDialogs:function(){var t=this.element.find(i("actionsheet popover modalview")).filter(":visible");t.each(function(){n.widgetInstance(e(this),o).close()})},navigateToInitial:function(){var e=this.options.initial;return e&&this.navigate(e),e},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,modelScope:window},events:[d,c,u],append:function(e){return this.viewEngine.append(e)},destroy:function(){var e=this;r.fn.destroy.call(e),e.viewEngine&&e.viewEngine.destroy()},navigate:function(e,t){e instanceof s&&(e=e.id),this.transition=t,this._historyNavigate(e)},replace:function(e,t){e instanceof s&&(e=e.id),this.transition=t,this._historyReplace(e)},view:function(){return this.viewEngine.view()},_setPortraitWidth:function(){var e,t=this.options.portraitWidth;t&&(e=n.mobile.application.element.is(m+g.vertical)?t:"auto",this.element.css("width",e))}});v.wrap=function(e,t){var o,r;return e.is(i("view"))||(e=e.wrap("<div data-"+n.ns+'role="view" data-stretch="true"></div>').parent()),o=e.wrap('<div class="'+g.paneWrapper+' k-widget"><div></div></div>').parent(),r=new v(o,t),r.navigate(""),r},n.Pane=v}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.progressbar.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r="horizontal",a="vertical",s=0,l=100,d=0,c=5,u="k-progressbar",h="k-progressbar-reverse",p="k-progressbar-indeterminate",f="k-complete",m="k-state-selected",g="k-progress-status",v="k-progress-end",_="k-state-selected",b="k-state-default",w="k-state-disabled",k={VALUE:"value",PERCENT:"percent",CHUNK:"chunk"},y="change",x="complete",C="boolean",S=Math,T=e.extend,D=e.proxy,A=100,E=400,I=3,M={progressStatus:"<span class='k-progress-status-wrap "+v+"'><span class='k-progress-status'></span></span>"},R=o.extend({init:function(e,t){var n=this;o.fn.init.call(this,e,t),t=n.options,n._progressProperty=t.orientation===r?"width":"height",n._fields(),t.value=n._validateValue(t.value),n._validateType(t.type),n._wrapper(),n._progressAnimation(),t.value!==t.min&&t.value!==!1&&n._updateProgress()},setOptions:function(e){var t=this;o.fn.setOptions.call(t,e),e.hasOwnProperty("reverse")&&t.wrapper.toggleClass("k-progressbar-reverse",e.reverse),e.hasOwnProperty("enable")&&t.enable(e.enable),t._progressAnimation(),t._validateValue(),t._updateProgress()},events:[y,x],options:{name:"ProgressBar",orientation:r,reverse:!1,min:s,max:l,value:d,enable:!0,type:k.VALUE,chunkCount:c,showStatus:!0,animation:{}},_fields:function(){var t=this;t._isStarted=!1,t.progressWrapper=t.progressStatus=e()},_validateType:function(t){var i=!1;if(e.each(k,function(e,n){if(n===t)return i=!0,!1}),!i)throw Error(n.format("Invalid ProgressBar type '{0}'",t))},_wrapper:function(){var e,t=this,n=t.wrapper=t.element,i=t.options,o=i.orientation;n.addClass("k-widget "+u),n.addClass(u+"-"+(o===r?r:a)),i.enable===!1&&n.addClass(w),i.reverse&&n.addClass(h),i.value===!1&&n.addClass(p),i.type===k.CHUNK?t._addChunkProgressWrapper():i.showStatus&&(t.progressStatus=t.wrapper.prepend(M.progressStatus).find("."+g),e=i.value!==!1?i.value:i.min,t.progressStatus.text(i.type===k.VALUE?e:t._calculatePercentage(e).toFixed()+"%"))},value:function(e){return this._value(e)},_value:function(e){var n,i=this,o=i.options;return e===t?o.value:(typeof e!==C?(e=i._roundValue(e),isNaN(e)||(n=i._validateValue(e),n!==o.value&&(i.wrapper.removeClass(p),o.value=n,i._isStarted=!0,i._updateProgress()))):e||(i.wrapper.addClass(p),o.value=!1),t)},_roundValue:function(e){e=parseFloat(e);var t=S.pow(10,I);return n._round(e*t)/t},_validateValue:function(e){var t=this,n=t.options;if(e!==!1){if(e<=n.min||e===!0)return n.min;if(e>=n.max)return n.max}else if(e===!1)return!1;return isNaN(t._roundValue(e))?n.min:e},_updateProgress:function(){var e=this,t=e.options,n=e._calculatePercentage();t.type===k.CHUNK?(e._updateChunks(n),e._onProgressUpdateAlways(t.value)):e._updateProgressWrapper(n)},_updateChunks:function(e){var t,n=this,i=n.options,o=i.chunkCount,s=parseInt(A/o*100,10)/100,l=parseInt(100*e,10)/100,d=S.floor(l/s);t=n.wrapper.find(i.orientation===r&&!i.reverse||i.orientation===a&&i.reverse?"li.k-item:lt("+d+")":"li.k-item:gt(-"+(d+1)+")"),n.wrapper.find("."+_).removeClass(_).addClass(b),t.removeClass(b).addClass(_)},_updateProgressWrapper:function(e){var t=this,n=t.options,i=t.wrapper.find("."+m),o=t._isStarted?t._animation.duration:0,r={};0===i.length&&t._addRegularProgressWrapper(),r[t._progressProperty]=e+"%",t.progressWrapper.animate(r,{duration:o,start:D(t._onProgressAnimateStart,t),progress:D(t._onProgressAnimate,t),complete:D(t._onProgressAnimateComplete,t,n.value),always:D(t._onProgressUpdateAlways,t,n.value)})},_onProgressAnimateStart:function(){this.progressWrapper.show()},_onProgressAnimate:function(e){var t,n=this,i=n.options,o=parseFloat(e.elem.style[n._progressProperty],10);i.showStatus&&(t=1e4/parseFloat(n.progressWrapper[0].style[n._progressProperty]),n.progressWrapper.find(".k-progress-status-wrap").css(n._progressProperty,t+"%")),i.type!==k.CHUNK&&o<=98&&n.progressWrapper.removeClass(f)},_onProgressAnimateComplete:function(e){var t,n=this,i=n.options,o=parseFloat(n.progressWrapper[0].style[n._progressProperty]);i.type!==k.CHUNK&&o>98&&n.progressWrapper.addClass(f),i.showStatus&&(t=i.type===k.VALUE?e:i.type==k.PERCENT?n._calculatePercentage(e).toFixed()+"%":S.floor(n._calculatePercentage(e))+"%",n.progressStatus.text(t)),e===i.min&&n.progressWrapper.hide()},_onProgressUpdateAlways:function(e){var t=this,n=t.options;t._isStarted&&t.trigger(y,{value:e}),e===n.max&&t._isStarted&&t.trigger(x,{value:n.max})},enable:function(e){var n=this,i=n.options;
i.enable=t===e||e,n.wrapper.toggleClass(w,!i.enable)},destroy:function(){var e=this;o.fn.destroy.call(e)},_addChunkProgressWrapper:function(){var e,t=this,n=t.options,i=t.wrapper,o=A/n.chunkCount,r="";for(n.chunkCount<=1&&(n.chunkCount=1),r+="<ul class='k-reset'>",e=n.chunkCount-1;e>=0;e--)r+="<li class='k-item k-state-default'></li>";r+="</ul>",i.append(r).find(".k-item").css(t._progressProperty,o+"%").first().addClass("k-first").end().last().addClass("k-last"),t._normalizeChunkSize()},_normalizeChunkSize:function(){var e=this,t=e.options,n=e.wrapper.find(".k-item:last"),i=parseFloat(n[0].style[e._progressProperty]),o=A-t.chunkCount*i;o>0&&n.css(e._progressProperty,i+o+"%")},_addRegularProgressWrapper:function(){var t=this;t.progressWrapper=e("<div class='"+m+"'></div>").appendTo(t.wrapper),t.options.showStatus&&(t.progressWrapper.append(M.progressStatus),t.progressStatus=t.wrapper.find("."+g))},_calculateChunkSize:function(){var e=this,t=e.options.chunkCount,n=e.wrapper.find("ul.k-reset");return(parseInt(n.css(e._progressProperty),10)-(t-1))/t},_calculatePercentage:function(e){var n=this,i=n.options,o=e!==t?e:i.value,r=i.min,a=i.max;return n._onePercent=S.abs((a-r)/100),S.abs((o-r)/n._onePercent)},_progressAnimation:function(){var e=this,t=e.options,n=t.animation;e._animation=n===!1?{duration:0}:T({duration:E},t.animation)}});n.ui.plugin(R)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdf/pako.min",["kendo.core.min"],e)}(function(){return function(){kendo.pdf=kendo.pdf||{},kendo.pdf.supportsDeflate=function(){return window.pako&&"function"==typeof window.pako.deflate},kendo.pdf.deflate=function(e){return window.pako.deflate(e)}}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdf/core.min",["pdf/pako.min","kendo.core.min","kendo.color.min","kendo.drawing.min"],e)}(function(){return function(e){function t(e){function t(){return S>=T}function n(){return S<T?e[S++]:0}function i(t){w(S),e[S++]=255&t,S>T&&(T=S)}function o(){return n()<<8|n()}function r(e){i(e>>8),i(e)}function a(){var e=o();return e>=32768?e-65536:e}function s(e){r(e<0?e+65536:e)}function l(){return 65536*o()+o()}function d(e){r(e>>>16&65535),r(65535&e)}function c(){var e=l();return e>=2147483648?e-4294967296:e}function u(e){d(e<0?e+4294967296:e)}function h(){return l()/65536}function p(e){d(Math.round(65536*e))}function f(){return c()/65536}function m(e){u(Math.round(65536*e))}function g(e){return b(e,n)}function v(e){return String.fromCharCode.apply(String,g(e))}function _(e){for(var t=0;t<e.length;++t)i(e.charCodeAt(t))}function b(e,t){for(var n=Array(e),i=0;i<e;++i)n[i]=t();return n}var w,k,y,x,C,S=0,T=0;return null==e?e=Fe?new Uint8Array(256):[]:T=e.length,w=Fe?function(t){if(t>=e.length){var n=new Uint8Array(Math.max(t+256,2*e.length));n.set(e,0),e=n}}:function(){},k=Fe?function(){return new Uint8Array(e.buffer,0,T)}:function(){return e},y=Fe?function(t){if("string"==typeof t)return _(t);var n=t.length;w(S+n),e.set(t,S),S+=n,S>T&&(T=S)}:function(e){if("string"==typeof e)return _(e);for(var t=0;t<e.length;++t)i(e[t])},x=Fe?function(t,n){if(e.buffer.slice)return new Uint8Array(e.buffer.slice(t,t+n));var i=new Uint8Array(n);return i.set(new Uint8Array(e.buffer,t,n)),i}:function(t,n){return e.slice(t,t+n)},C={eof:t,readByte:n,writeByte:i,readShort:o,writeShort:r,readLong:l,writeLong:d,readFixed:h,writeFixed:p,readShort_:a,writeShort_:s,readLong_:c,writeLong_:u,readFixed_:f,writeFixed_:m,read:g,write:y,readString:v,writeString:_,times:b,get:k,slice:x,offset:function(e){return null!=e?(S=e,C):S},skip:function(e){S+=e},toString:function(){throw Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return T},saveExcursion:function(e){var t=S;try{return e()}finally{S=t}},writeBase64:function(e){window.atob?_(window.atob(e)):y(Pe.decode(e))},base64:function(){return Pe.encode(k())}}}function n(e){for(var t,n,i=[],o=0,r=e.length;o<r;)t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<r?(n=e.charCodeAt(o++),56320==(64512&n)?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--)):i.push(t);return i}function i(e){return e.map(function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}).join("")}function o(e){var t,n=window.atob(e),i=new Uint8Array(n.length);for(t=0;t<n.length;t++)i[t]=n.charCodeAt(t);return i}function r(e){var t,n=new Uint8Array(e.length);for(t=0;t<e.length;t++)n[t]=e[t];return n}function a(e){return window.atob?o(e):r(Pe.decode(e))}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){return Object.keys(e).sort(function(e,t){return e-t}).map(parseFloat)}function d(e){var t,n,i;for(this.raw=e,this.scalerType=e.readLong(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),t=this.tables={},n=0;n<this.tableCount;++n)i={tag:e.readString(4),checksum:e.readLong(),offset:e.readLong(),length:e.readLong()},t[i.tag]=i}function c(e){function t(e,t){this.definition=t,this.length=t.length,this.offset=t.offset,this.file=e,this.rawData=e.raw,this.parse(e.raw)}t.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)};for(var n in e)s(e,n)&&(t[n]=t.prototype[n]=e[n]);return t}function u(){var e,t="",n=qe+"";for(e=0;e<n.length;++e)t+=String.fromCharCode(n.charCodeAt(e)-48+65);return++qe,t}function h(e){this.font=e,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=u()+"+"+this.font.psName}function p(e,n){var i,o,r,a,s=this,l=s.contents=t(e);if("ttcf"==l.readString(4)){if(o=function(){l.offset(i),s.parse()},!n)throw Error("Must specify a name for TTC files");for(l.readLong(),r=l.readLong(),a=0;a<r;++a)if(i=l.readLong(),l.saveExcursion(o),s.psName==n)return;throw Error("Font "+n+" not found in collection")}l.offset(0),s.parse()}function f(e){return Ge(e>>8)+Ge(255&e)}function m(e){var t,n,i,o,r="";for(t=0;t<e.length;t++)n=e.charCodeAt(t),n<65535?r+=f(n):(i=(n-65536>>10)+55296,o=(n-65536&1023)+56320,r+=f(i),r+=f(o));return r}function g(){function e(){var t,n,o,r=arguments;for(t=0;t<arguments.length;++t){if(n=r[t],void 0===n)throw Error("Cannot output undefined to PDF");if(n instanceof z)n.beforeRender(e),n.render(e);else if(nt(n))E(n,e);else if(A(n))I(n,e);else if("number"==typeof n){if(isNaN(n))throw Error("Cannot output NaN to PDF");o=n.toFixed(7),o.indexOf(".")>=0&&(o=o.replace(/\.?0+$/,"")),"-0"==o&&(o="0"),i.writeString(o)}else/string|boolean/.test(typeof n)?i.writeString(n+""):"function"==typeof n.get?i.write(n.get()):"object"==typeof n&&(n?e(new st(n)):i.writeString("null"))}}var n=0,i=t();return e.writeData=function(e){i.write(e)},e.withIndent=function(t){++n,t(e),--n},e.indent=function(){e(Ye,S("",2*n,"  ")),e.apply(null,arguments)},e.offset=function(){return i.offset()},e.toString=function(){throw Error("FIX CALLER")},e.get=function(){return i.get()},e.stream=function(){return i},e}function v(e,t){var n=e.beforeRender,i=e.render;e.beforeRender=function(){},e.render=function(e){e(t," 0 R")},e.renderFull=function(o){e._offset=o.offset(),o(t," 0 obj "),n.call(e,o),i.call(e,o),o(" endobj")}}function _(e){var t,n,i;if("function"!=typeof e&&(t=e,e=function(e,n){return e in t?t[e]:n}),n=e("paperSize",Xe.a4),!n)return{};if("string"==typeof n&&(n=Xe[n.toLowerCase()],null==n))throw Error("Unknown paper size");return n[0]=P(n[0]),n[1]=P(n[1]),e("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]),i=e("margin"),i&&("string"==typeof i||"number"==typeof i?(i=P(i,0),i={left:i,top:i,right:i,bottom:i}):i={left:P(i.left,0),top:P(i.top,0),right:P(i.right,0),bottom:P(i.bottom,0)},e("addMargin")&&(n[0]+=i.left+i.right,n[1]+=i.top+i.bottom)),{paperSize:n,margin:i}}function b(e){function t(t,n){return e&&null!=e[t]?e[t]:n}var n,i,o,r,a=this,s=g(),l=0,d=[];a.getOption=t,a.attach=function(e){return d.indexOf(e)<0&&(v(e,++l),d.push(e)),e},a.pages=[],a.FONTS={},a.IMAGES={},a.GRAD_COL_FUNCTIONS={},a.GRAD_OPC_FUNCTIONS={},a.GRAD_COL={},a.GRAD_OPC={},n=a.attach(new dt),i=a.attach(new ct),t("autoPrint")&&(o={},o.JavaScript=new st({Names:[new it("JS"),a.attach(new st({S:L("JavaScript"),JS:new it("print(true);")}))]}),n.props.Names=new st(o)),n.setPages(i),r=a.attach(new st({Producer:new it(t("producer","Kendo UI PDF Generator"),(!0)),Title:new it(t("title",""),(!0)),Author:new it(t("author",""),(!0)),Subject:new it(t("subject",""),(!0)),Keywords:new it(t("keywords",""),(!0)),Creator:new it(t("creator","Kendo UI PDF Generator"),(!0)),CreationDate:t("date",new Date)})),a.addPage=function(e){var t,n,o,r=_(function(t,n){return e&&null!=e[t]?e[t]:n}),s=r.paperSize,l=r.margin,d=s[0],c=s[1];return l&&(d-=l.left+l.right,c-=l.top+l.bottom),t=new lt(g(),null,(!0)),n={Contents:a.attach(t),Parent:i,MediaBox:[0,0,s[0],s[1]]},o=new mt(a,n),o._content=t,i.addPage(a.attach(o)),o.transform(1,0,0,-1,0,s[1]),l&&(o.translate(l.left,l.top),o.rect(0,0,d,c),o.clip()),a.pages.push(o),o},a.render=function(){var e,t;for(s("%PDF-1.4",Ye,"%ÂÁÚÏÎ",Ye,Ye),e=0;e<d.length;++e)d[e].renderFull(s),s(Ye,Ye);for(t=s.offset(),s("xref",Ye,0," ",d.length+1,Ye),s("0000000000 65535 f ",Ye),e=0;e<d.length;++e)s(T(d[e]._offset,10)," 00000 n ",Ye);return s(Ye),s("trailer",Ye),s(new st({Size:d.length+1,Root:n,Info:r}),Ye,Ye),s("startxref",Ye,t,Ye),s("%%EOF",Ye),s.stream().offset(0)}}function w(e,t){function n(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",e):window.console.log("Cannot load URL: %s",e)),t(null)}var i,o;return Ke.msie&&(i=/^data:.*?;base64,/i.exec(e))?void t(a(e.substr(i[0].length))):(o=new XMLHttpRequest,o.open("GET",e,!0),Fe&&(o.responseType="arraybuffer"),o.onload=function(){200==o.status||304==o.status?t(Fe?new Uint8Array(o.response):new window.VBArray(o.responseBody).toArray()):n()},o.onerror=n,void o.send(null))}function k(e,t){var n=Ze[e];n?t(n):w(e,function(n){if(null==n)throw Error("Cannot load font from "+e);var i=new p(n);Ze[e]=i,t(i)})}function y(){Je={}}function x(e,n,i,o){function r(e){h.src=e,h.complete&&!Ke.msie?l():(h.onload=l,h.onerror=s)}function a(){var r,a,l,c,u,p,f,m,g,v,_;n||(n={width:h.width,height:h.height}),r=document.createElement("canvas"),r.width=n.width,r.height=n.height,a=r.getContext("2d"),a.drawImage(h,0,0,n.width,n.height);try{l=a.getImageData(0,0,n.width,n.height)}catch(b){return void s()}finally{d&&URL.revokeObjectURL(d)}for(c=!1,u=t(),p=t(),f=l.data,m=0;m<f.length;)u.writeByte(f[m++]),u.writeByte(f[m++]),u.writeByte(f[m++]),g=f[m++],g<255&&(c=!0),p.writeByte(g);c||o.keepPNG?h=new N(n.width,n.height,u,p):(v=r.toDataURL("image/jpeg",o.jpegQuality),v=v.substr(v.indexOf(";base64,")+8),_=t(),_.writeBase64(v),h=new H(_)),i(Je[e]=h)}function s(){i(Je[e]="ERROR")}function l(){if(n&&(n.width>=h.width||n.height>=h.height)&&(n=null),!n&&c&&/^image\/jpe?g$/i.test(c.type)){var o=new FileReader;o.onload=function(){try{var n=new H(t(new Uint8Array(this.result)));URL.revokeObjectURL(d),i(Je[e]=n)}catch(o){a()}},o.readAsArrayBuffer(c)}else a()}var d,c,u,h=Je[e];h?i(h):(h=new Image,/^data:/i.test(e)||(h.crossOrigin="Anonymous"),Fe&&!/^data:/i.test(e)?(u=new XMLHttpRequest,u.onload=function(){c=u.response,d=URL.createObjectURL(c),r(d)},u.onerror=s,u.open("GET",e,!0),u.responseType="blob",u.send()):r(e))}function C(e){return function(t,n){function i(){0===--o&&n()}var o=t.length,r=o;if(0===o)return n();for(;r-- >0;)e(t[r],i)}}function S(e,t,n){for(;e.length<t;)e=n+e;return e}function T(e,t){return S(e+"",t,"0")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function A(e){return e instanceof Date}function E(e,t){t("["),e.length>0&&t.withIndent(function(){for(var n=0;n<e.length;++n)n>0&&n%8===0?t.indent(e[n]):t(" ",e[n])}),t(" ]")}function I(e,t){t("(D:",T(e.getUTCFullYear(),4),T(e.getUTCMonth()+1,2),T(e.getUTCDate(),2),T(e.getUTCHours(),2),T(e.getUTCMinutes(),2),T(e.getUTCSeconds(),2),"Z)")}function M(e){return e*(72/25.4)}function R(e){return M(10*e)}function F(e){return 72*e}function P(e,t){var n,i;if("number"==typeof e)return e;if("string"==typeof e&&(n=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(e),n&&(i=parseFloat(n[1]),!isNaN(i))))return"pt"==n[2]?i:{mm:M,cm:R,"in":F}[n[2]](i);if(null!=t)return t;throw Error("Can't parse unit: "+e)}function z(){}function B(e,t,n){n||(n=z),e.prototype=new n;for(var i in t)D(t,i)&&(e.prototype[i]=t[i]);return e}function L(e){return D(at,e)?at[e]:at[e]=new rt(e)}function H(e){var t,n,i,o,r,a,s,l,d;if(e.offset(0),r=e.readShort(),65496!=r)throw Error("Invalid JPEG image");for(;!e.eof();){if(a=e.readByte(),255!=a)throw Error("Invalid JPEG image");if(s=e.readByte(),l=e.readShort(),ut.indexOf(s)>=0){o=e.readByte(),n=e.readShort(),t=e.readShort(),i=e.readByte();break}e.skip(l-2)}if(null==i)throw Error("Invalid JPEG image");switch(d={Type:L("XObject"),Subtype:L("Image"),Width:t,Height:n,BitsPerComponent:o,Filter:L("DCTDecode")},i){case 1:d.ColorSpace=L("DeviceGray");break;case 3:d.ColorSpace=L("DeviceRGB");break;case 4:d.ColorSpace=L("DeviceCMYK"),d.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){e.offset(0);var t=new lt(e,d);return t._resourceName=L("I"+ ++Qe),t}}function N(e,t,n,i){this.asStream=function(o){var r=new lt(i,{Type:L("XObject"),Subtype:L("Image"),Width:e,Height:t,BitsPerComponent:8,ColorSpace:L("DeviceGray")},(!0)),a=new lt(n,{Type:L("XObject"),Subtype:L("Image"),Width:e,Height:t,BitsPerComponent:8,ColorSpace:L("DeviceRGB"),SMask:o.attach(r)},(!0));return a._resourceName=L("I"+ ++Qe),a}}function O(e){return e.map(function(e){return nt(e)?O(e):"number"==typeof e?(Math.round(1e3*e)/1e3).toFixed(3):e}).join(" ")}function V(e,t,n,i,o,r,a){var s=O([t,n,i,o,r,a]),l=e.GRAD_COL_FUNCTIONS[s];return l||(l=e.GRAD_COL_FUNCTIONS[s]=e.attach(new st({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[t,n,i],C1:[o,r,a]}))),l}function W(e,t,n){var i=O([t,n]),o=e.GRAD_OPC_FUNCTIONS[i];return o||(o=e.GRAD_OPC_FUNCTIONS[i]=e.attach(new st({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[t],C1:[n]}))),o}function U(e,t){function n(e){return 1==e.length?e[0]:{FunctionType:3,Functions:e,Domain:[0,1],Bounds:u,Encode:h}}var i,o,r,a,s,l=!1,d=[],c=[],u=[],h=[];for(i=1;i<t.length;++i)o=t[i-1],r=t[i],a=o.color,s=r.color,c.push(V(e,a.r,a.g,a.b,s.r,s.g,s.b)),(a.a<1||s.a<1)&&(l=!0),u.push(r.offset),h.push(0,1);if(l)for(i=1;i<t.length;++i)o=t[i-1],r=t[i],a=o.color,s=r.color,d.push(W(e,a.a,s.a));return u.pop(),{hasAlpha:l,colors:n(c),opacities:l?n(d):null}}function j(e,t,n,i,o,r){var a,s,l;return r||(l=[t].concat(i),n.forEach(function(e){l.push(e.offset,e.color.r,e.color.g,e.color.b)}),s=O(l),a=e.GRAD_COL[s]),a||(a=new st({Type:L("Shading"),ShadingType:t?3:2,ColorSpace:L("DeviceRGB"),Coords:i,Domain:[0,1],Function:o,Extend:[!0,!0]}),e.attach(a),a._resourceName="S"+ ++Qe,s&&(e.GRAD_COL[s]=a)),a}function q(e,t,n,i,o,r){var a,s,l;return r||(l=[t].concat(i),n.forEach(function(e){l.push(e.offset,e.color.a)}),s=O(l),a=e.GRAD_OPC[s]),a||(a=new st({Type:L("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:L("Mask"),S:L("Luminosity"),G:e.attach(new lt("/a0 gs /s0 sh",{Type:L("XObject"),Subtype:L("Form"),FormType:1,BBox:r?[r.left,r.top+r.height,r.left+r.width,r.top]:[0,1,1,0],Group:{Type:L("Group"),S:L("Transparency"),CS:L("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:L("DeviceGray"),Coords:i,Domain:[0,1],ShadingType:t?3:2,Function:o,Extend:[!0,!0]}}}}))}}),e.attach(a),a._resourceName="O"+ ++Qe,s&&(e.GRAD_OPC[s]=a)),a}function G(e,t,n){var i="radial"==t.type,o=U(e,t.stops),r=i?[t.start.x,t.start.y,t.start.r,t.end.x,t.end.y,t.end.r]:[t.start.x,t.start.y,t.end.x,t.end.y],a=j(e,i,t.stops,r,o.colors,t.userSpace&&n),s=o.hasAlpha?q(e,i,t.stops,r,o.opacities,t.userSpace&&n):null;return{hasAlpha:o.hasAlpha,shading:a,opacity:s}}function K(e){return e.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function Y(e){var t,n=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i,i=n.exec(e);return i?(t=i[8]?parseInt(i[8],10):12,{italic:i[2]&&"italic"==i[2].toLowerCase(),variant:i[4],bold:i[6]&&/bold|700/i.test(i[6]),fontSize:t,lineHeight:i[12]?"normal"==i[12]?t:parseInt(i[12],10):null,fontFamily:i[14].split(/\s*,\s*/g).map(K)}):{fontSize:12,fontFamily:"sans-serif"}}function Q(e){function t(t){return e.bold&&(t+="|bold"),e.italic&&(t+="|italic"),t.toLowerCase()}var n,i,o,r=e.fontFamily;if(r instanceof Array)for(o=0;o<r.length&&(n=t(r[o]),!(i=gt[n]));++o);else i=gt[r.toLowerCase()];for(;"function"==typeof i;)i=i();return i||(i="Times-Roman"),i}function X(e,t){e=e.toLowerCase(),gt[e]=function(){return gt[t]},gt[e+"|bold"]=function(){return gt[t+"|bold"]},gt[e+"|italic"]=function(){return gt[t+"|italic"]},gt[e+"|bold|italic"]=function(){return gt[t+"|bold|italic"]}}function Z(e,t){if(1==arguments.length)for(var n in e)D(e,n)&&Z(n,e[n]);else switch(e=e.toLowerCase(),gt[e]=t,e){case"dejavu sans":gt["sans-serif"]=t;break;case"dejavu sans|bold":gt["sans-serif|bold"]=t;break;case"dejavu sans|italic":gt["sans-serif|italic"]=t;break;case"dejavu sans|bold|italic":gt["sans-serif|bold|italic"]=t;break;case"dejavu serif":gt.serif=t;break;case"dejavu serif|bold":gt["serif|bold"]=t;break;case"dejavu serif|italic":gt["serif|italic"]=t;break;case"dejavu serif|bold|italic":gt["serif|bold|italic"]=t;break;case"dejavu mono":gt.monospace=t;break;case"dejavu mono|bold":gt["monospace|bold"]=t;break;case"dejavu mono|italic":gt["monospace|italic"]=t;break;case"dejavu mono|bold|italic":gt["monospace|bold|italic"]=t}}function J(e,t){var n=e[0],i=e[1],o=e[2],r=e[3],a=e[4],s=e[5],l=t[0],d=t[1],c=t[2],u=t[3],h=t[4],p=t[5];return[n*l+i*c,n*d+i*u,o*l+r*c,o*d+r*u,a*l+s*c+h,a*d+s*u+p]}function ee(e){return 1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]}function te(e,t){function n(e,t,n){return n||(n=s),n.pdf&&null!=n.pdf[e]?n.pdf[e]:t}function i(){function i(e){var t,i,o,a,s,l=e.options,d=Ce(e),c=d.bbox;e=d.root,t=n("paperSize",n("paperSize","auto"),l),i=!1,"auto"==t&&(c?(o=c.getSize(),t=[o.width,o.height],i=!0,a=c.getOrigin(),d=new Ie.Group,d.transform(new Re.Matrix(1,0,0,1,(-a.x),(-a.y))),d.append(e),e=d):t="A4"),s=r.addPage({paperSize:t,margin:n("margin",n("margin"),l),addMargin:i,landscape:n("landscape",n("landscape",!1),l)}),ae(e,s,r)}if(!(--o>0)){var r=new b({producer:n("producer"),title:n("title"),author:n("author"),subject:n("subject"),keywords:n("keywords"),creator:n("creator"),date:n("date"),autoPrint:n("autoPrint")});l?e.children.forEach(i):i(e),t(r.render(),r)}}var o,r=[],a={},s=e.options,l=n("multiPage"),d=n("imgDPI");d&&y(),e.traverse(function(e){re({Image:function(e){var t,n,i=e.src();d?(t=e.bbox().size,n=a[i],t={width:Math.ceil(t.width*d/72),height:Math.ceil(t.height*d/72)},n&&(t.width=Math.max(n.width,t.width),t.height=Math.max(n.height,t.height)),a[i]=t):a[i]=null},Text:function(e){var t=Y(e.options.font),n=Q(t);r.indexOf(n)<0&&r.push(n)}},e)}),o=2,et(r,i),tt(a,i,{jpegQuality:n("jpegQuality",.92),keepPNG:n("keepPNG",!1)})}function ne(e,t){te(e,function(e){t("data:application/pdf;base64,"+e.base64())})}function ie(e,t){te(e,function(e){t(new window.Blob([e.get()],{type:"application/pdf"}))})}function oe(t,n,i,o){window.Blob&&!Ae.safari?ie(t,function(t){e.saveAs({dataURI:t,fileName:n}),o&&o(t)}):ne(t,function(t){e.saveAs({dataURI:t,fileName:n,proxyURL:i}),o&&o(t)})}function re(e,t){var n=e[t.nodeType];return n?n.call.apply(n,arguments):t}function ae(e,t,n){var i,o,r;e.options._pdfDebug&&t.comment("BEGIN: "+e.options._pdfDebug),i=e.transform(),o=e.opacity(),t.save(),null!=o&&o<1&&t.setOpacity(o),se(e,t,n),le(e,t,n),i&&(r=i.matrix(),t.transform(r.a,r.b,r.c,r.d,r.e,r.f)),de(e,t,n),re({Path:me,MultiPath:ge,Circle:ve,Arc:_e,Text:be,Image:ke,Group:we,Rect:ye},e,t,n),t.restore(),e.options._pdfDebug&&t.comment("END: "+e.options._pdfDebug)}function se(e,t){var n,i,o,r,a,s,l=e.stroke&&e.stroke();if(l){if(n=l.color){if(n=xe(n),null==n)return;t.setStrokeColor(n.r,n.g,n.b),1!=n.a&&t.setStrokeOpacity(n.a)}if(i=l.width,null!=i){if(0===i)return;t.setLineWidth(i)}o=l.dashType,o&&t.setDashPattern(bt[o],0),r=l.lineCap,r&&t.setLineCap(wt[r]),a=l.lineJoin,a&&t.setLineJoin(kt[a]),s=l.opacity,null!=s&&t.setStrokeOpacity(s)}}function le(e,t){var n,i,o=e.fill&&e.fill();if(o&&!(o instanceof Ie.Gradient)){if(n=o.color){if(n=xe(n),null==n)return;t.setFillColor(n.r,n.g,n.b),1!=n.a&&t.setFillOpacity(n.a)}i=o.opacity,null!=i&&t.setFillOpacity(i)}}function de(e,t,n){var i=e.clip();i&&(fe(i,t,n),t.clip())}function ce(e){return e&&(e instanceof Ie.Gradient||e.color&&!/^(none|transparent)$/i.test(e.color)&&(null==e.width||e.width>0)&&(null==e.opacity||e.opacity>0))}function ue(e,t,n,i){var o,r,a,s,l,d,c,u,h=e.fill();if(h instanceof Ie.Gradient)return i?t.clipStroke():t.clip(),o=h instanceof Ie.RadialGradient,o?(r={x:h.center().x,y:h.center().y,r:0},a={x:h.center().x,y:h.center().y,r:h.radius()}):(r={x:h.start().x,y:h.start().y},a={x:h.end().x,y:h.end().y}),s=h.stops.elements().map(function(e){var t,n=e.offset();return n=/%$/.test(n)?parseFloat(n)/100:parseFloat(n),t=xe(e.color()),t.a*=e.opacity(),{offset:n,color:t}}),s.unshift(s[0]),s.push(s[s.length-1]),l={userSpace:h.userSpace(),type:o?"radial":"linear",start:r,end:a,stops:s},d=e.rawBBox(),c=d.topLeft(),u=d.getSize(),d={left:c.x,top:c.y,width:u.width,height:u.height},t.gradient(l,d),!0}function he(e,t,n){ce(e.fill())&&ce(e.stroke())?ue(e,t,n,!0)||t.fillStroke():ce(e.fill())?ue(e,t,n,!1)||t.fill():ce(e.stroke())?t.stroke():t.nop()}function pe(e,t){var n,i,o,r=e.segments;if(4==r.length&&e.options.closed){for(n=[],i=0;i<r.length;++i){if(r[i].controlIn())return!1;n[i]=r[i].anchor()}if(o=n[0].y==n[1].y&&n[1].x==n[2].x&&n[2].y==n[3].y&&n[3].x==n[0].x||n[0].x==n[1].x&&n[1].y==n[2].y&&n[2].x==n[3].x&&n[3].y==n[0].y)return t.rect(n[0].x,n[0].y,n[2].x-n[0].x,n[2].y-n[0].y),!0}}function fe(e,t,n){var i,o,r,a,s,l,d=e.segments;if(0!==d.length&&!pe(e,t,n)){for(o=0;o<d.length;++o)r=d[o],a=r.anchor(),i?(s=i.controlOut(),l=r.controlIn(),s&&l?t.bezier(s.x,s.y,l.x,l.y,a.x,a.y):t.lineTo(a.x,a.y)):t.moveTo(a.x,a.y),i=r;e.options.closed&&t.close()}}function me(e,t,n){fe(e,t,n),he(e,t,n)}function ge(e,t,n){var i,o=e.paths;for(i=0;i<o.length;++i)fe(o[i],t,n);he(e,t,n)}function ve(e,t,n){var i=e.geometry();t.circle(i.center.x,i.center.y,i.radius),he(e,t,n)}function _e(e,t,n){var i,o=e.geometry().curvePoints();for(t.moveTo(o[0].x,o[0].y),i=1;i<o.length;)t.bezier(o[i].x,o[i++].y,o[i].x,o[i++].y,o[i].x,o[i++].y);he(e,t,n)}function be(e,t){var n,i=Y(e.options.font),o=e._position;e.fill()&&e.stroke()?n=_t.fillAndStroke:e.fill()?n=_t.fill:e.stroke()&&(n=_t.stroke),t.transform(1,0,0,-1,o.x,o.y+i.fontSize),t.beginText(),t.setFont(Q(i),i.fontSize),t.setTextRenderingMode(n),t.showText(e.content(),e._pdfRect?e._pdfRect.width():null),t.endText()}function we(e,t,n){var i,o;for(e._pdfLink&&t.addLink(e._pdfLink.url,e._pdfLink),i=e.children,o=0;o<i.length;++o)ae(i[o],t,n)}function ke(e,t){var n,i,o,r=e.src();r&&(n=e.rect(),i=n.getOrigin(),o=n.getSize(),t.transform(o.width,0,0,-o.height,i.x,i.y+o.height),t.drawImage(r))}function ye(e,t,n){var i=e.geometry();t.rect(i.origin.x,i.origin.y,i.size.width,i.size.height),he(e,t,n)}function xe(t){var n=e.parseColor(t,!0);return n?n.toRGB():null}function Ce(e){function t(e){return s=!0,e}function n(e){return e.visible()&&e.opacity()>0&&(ce(e.fill())||ce(e.stroke()))}function i(e){var t,n,i=[];for(t=0;t<e.length;++t)n=a(e[t]),null!=n&&i.push(n);return i}function o(e,t){var n,i=l,o=d;e.transform()&&(d=d.multiplyCopy(e.transform().matrix())),n=e.clip(),n&&(n=n.bbox(),n&&(n=n.bbox(d),l=l?Re.Rect.intersect(l,n):n));try{return t()}finally{l=i,d=o}}function r(e){if(null==l)return!1;var t=e.rawBBox().bbox(d);return l&&t&&(t=Re.Rect.intersect(t,l)),t}function a(a){return o(a,function(){if(!(a instanceof Ie.Group||a instanceof Ie.MultiPath)){var o=r(a);if(!o)return t(null);c=c?Re.Rect.union(c,o):o}return re({Path:function(e){return 0!==e.segments.length&&n(e)?e:t(null)},MultiPath:function(e){if(!n(e))return t(null);var o=new Ie.MultiPath(e.options);return o.paths=i(e.paths),0===o.paths.length?t(null):o},Circle:function(e){return n(e)?e:t(null)},Arc:function(e){return n(e)?e:t(null)},Text:function(e){return/\S/.test(e.content())&&n(e)?e:t(null)},Image:function(e){return e.visible()&&e.opacity()>0?e:t(null)},Group:function(n){if(!(n.visible()&&n.opacity()>0))return t(null);var o=new Ie.Group(n.options);return o.children=i(n.children),o._pdfLink=n._pdfLink,n===e||0!==o.children.length||n._pdfLink?o:t(null)},Rect:function(e){return n(e)?e:t(null)}},a)})}var s,l=!1,d=Re.Matrix.unit(),c=null;do s=!1,e=a(e);while(e&&s);return{root:e,bbox:c}}function Se(e,t){var n,i=Me.createPromise();for(n in t)"margin"==n&&e.options.pdf&&e.options.pdf._ignoreMargin||e.options.set("pdf."+n,t[n]);return ne(e,i.resolve),i}function Te(e,t){var n,i=Me.createPromise();for(n in t)"margin"==n&&e.options.pdf&&e.options.pdf._ignoreMargin||e.options.set("pdf."+n,t[n]);return window.Blob&&!Ae.safari?ie(e,i.resolve):ne(e,i.resolve),i}var De,Ae,Ee,Ie,Me,Re,Fe,Pe,ze,Be,Le,He,Ne,Oe,Ve,We,Ue,je,qe,Ge,$e,Ke,Ye,Qe,Xe,Ze,Je,et,tt,nt,it,ot,rt,at,st,lt,dt,ct,ut,ht,pt,ft,mt,gt,vt,_t,bt,wt,kt;window.kendo.pdf=window.kendo.pdf||{},De=e.support,Ae=De.browser,Ee=e.pdf,Ie=e.drawing,Me=Ie.util,Re=e.geometry,Fe="undefined"!=typeof Uint8Array&&e.support.browser&&(!e.support.browser.msie||e.support.browser.version>9),Pe=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){for(var n,i,o,r,a,s,l,d=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),c=0,u=d.length,h=[];c<u;)n=e.indexOf(d.charAt(c++)),i=e.indexOf(d.charAt(c++)),o=e.indexOf(d.charAt(c++)),r=e.indexOf(d.charAt(c++)),a=n<<2|i>>>4,s=(15&i)<<4|o>>>2,l=(3&o)<<6|r,h.push(a),64!=o&&h.push(s),64!=r&&h.push(l);return h},encode:function(t){for(var n,i,o,r,a,s,l,d=0,c=t.length,u="";d<c;)n=t[d++],i=t[d++],o=t[d++],r=n>>>2,a=(3&n)<<4|i>>>4,s=(15&i)<<2|o>>>6,l=63&o,d-c==2?s=l=64:d-c==1&&(l=64),u+=e.charAt(r)+e.charAt(a)+e.charAt(s)+e.charAt(l);return u}}}(),d.prototype={readTable:function(e,t){var n=this.tables[e];if(!n)throw Error("Table "+e+" not found in directory");return this[e]=n.table=new t(this,n)},render:function(e){var n,i,o,r,a,l,d,c,u=this,h=Object.keys(e).length,p=Math.pow(2,Math.floor(Math.log(h)/Math.LN2)),f=16*p,m=Math.floor(Math.log(p)/Math.LN2),g=16*h-f,v=t();v.writeLong(this.scalerType),v.writeShort(h),v.writeShort(f),v.writeShort(m),v.writeShort(g),n=16*h,i=v.offset()+n,o=null,r=t();for(a in e)if(s(e,a))for(l=e[a],v.writeString(a),v.writeLong(u.checksum(l)),v.writeLong(i),v.writeLong(l.length),r.write(l),"head"==a&&(o=i),i+=l.length;i%4;)r.writeByte(0),i++;return v.write(r.get()),d=this.checksum(v.get()),c=2981146554-d,v.offset(o+8),v.writeLong(c),v.get()},checksum:function(e){e=t(e);for(var n=0;!e.eof();)n+=e.readLong();return 4294967295&n}},ze=c({parse:function(e){e.offset(this.offset),this.version=e.readLong(),this.revision=e.readLong(),this.checkSumAdjustment=e.readLong(),this.magicNumber=e.readLong(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.read(8),this.modified=e.read(8),this.xMin=e.readShort_(),this.yMin=e.readShort_(),this.xMax=e.readShort_(),this.yMax=e.readShort_(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort_(),this.indexToLocFormat=e.readShort_(),this.glyphDataFormat=e.readShort_()},render:function(e){var n=t();return n.writeLong(this.version),n.writeLong(this.revision),n.writeLong(0),n.writeLong(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.write(this.created),n.write(this.modified),n.writeShort_(this.xMin),n.writeShort_(this.yMin),n.writeShort_(this.xMax),n.writeShort_(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort_(this.fontDirectionHint),n.writeShort_(e),n.writeShort_(this.glyphDataFormat),n.get()}}),Be=c({parse:function(e){e.offset(this.offset);var t=this.file.head.indexToLocFormat;this.offsets=0===t?e.times(this.length/2,function(){return 2*e.readShort()}):e.times(this.length/4,e.readLong)},offsetOf:function(e){return this.offsets[e]},lengthOf:function(e){return this.offsets[e+1]-this.offsets[e]},render:function(e){var n,i=t(),o=e[e.length-1]>65535;for(n=0;n<e.length;++n)o?i.writeLong(e[n]):i.writeShort(e[n]/2);return{format:o?1:0,table:i.get()}}}),Le=c({parse:function(e){e.offset(this.offset),this.version=e.readLong(),this.ascent=e.readShort_(),this.descent=e.readShort_(),this.lineGap=e.readShort_(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort_(),this.minRightSideBearing=e.readShort_(),this.xMaxExtent=e.readShort_(),this.caretSlopeRise=e.readShort_(),this.caretSlopeRun=e.readShort_(),this.caretOffset=e.readShort_(),e.skip(8),this.metricDataFormat=e.readShort_(),this.numOfLongHorMetrics=e.readShort()},render:function(e){var n=t();return n.writeLong(this.version),n.writeShort_(this.ascent),n.writeShort_(this.descent),n.writeShort_(this.lineGap),n.writeShort(this.advanceWidthMax),n.writeShort_(this.minLeftSideBearing),n.writeShort_(this.minRightSideBearing),n.writeShort_(this.xMaxExtent),n.writeShort_(this.caretSlopeRise),n.writeShort_(this.caretSlopeRun),n.writeShort_(this.caretOffset),n.write([0,0,0,0,0,0,0,0]),n.writeShort_(this.metricDataFormat),n.writeShort(e.length),n.get()}}),He=c({parse:function(e){e.offset(this.offset),this.version=e.readLong(),this.numGlyphs=e.readShort(),this.maxPoints=e.readShort(),this.maxContours=e.readShort(),this.maxComponentPoints=e.readShort(),this.maxComponentContours=e.readShort(),this.maxZones=e.readShort(),this.maxTwilightPoints=e.readShort(),this.maxStorage=e.readShort(),this.maxFunctionDefs=e.readShort(),this.maxInstructionDefs=e.readShort(),this.maxStackElements=e.readShort(),this.maxSizeOfInstructions=e.readShort(),this.maxComponentElements=e.readShort(),this.maxComponentDepth=e.readShort()},render:function(e){var n=t();return n.writeLong(this.version),n.writeShort(e.length),n.writeShort(this.maxPoints),n.writeShort(this.maxContours),n.writeShort(this.maxComponentPoints),n.writeShort(this.maxComponentContours),n.writeShort(this.maxZones),n.writeShort(this.maxTwilightPoints),n.writeShort(this.maxStorage),n.writeShort(this.maxFunctionDefs),n.writeShort(this.maxInstructionDefs),n.writeShort(this.maxStackElements),n.writeShort(this.maxSizeOfInstructions),n.writeShort(this.maxComponentElements),n.writeShort(this.maxComponentDepth),n.get()}}),Ne=c({parse:function(e){var t,n,i;e.offset(this.offset),t=this.file,n=t.hhea,this.metrics=e.times(n.numOfLongHorMetrics,function(){return{advance:e.readShort(),lsb:e.readShort_()}}),i=t.maxp.numGlyphs-t.hhea.numOfLongHorMetrics,this.leftSideBearings=e.times(i,e.readShort_)},forGlyph:function(e){var t=this.metrics,n=t.length;return e<n?t[e]:{advance:t[n-1].advance,lsb:this.leftSideBearings[e-n]}},render:function(e){var n,i,o=this,r=t();for(n=0;n<e.length;++n)i=o.forGlyph(e[n]),r.writeShort(i.advance),r.writeShort_(i.lsb);return r.get()}}),Oe=function(){function e(e){this.raw=e}function n(e){var t,n,s;for(this.raw=e,t=this.glyphIds=[],n=this.idOffsets=[];;){if(s=e.readShort(),n.push(e.offset()),t.push(e.readShort()),!(s&r))break;e.skip(s&i?4:2),s&l?e.skip(8):s&a?e.skip(4):s&o&&e.skip(2)}}var i,o,r,a,l;return e.prototype={compound:!1,render:function(){return this.raw.get()}},i=1,o=8,r=32,a=64,l=128,n.prototype={compound:!0,render:function(e){var n,i,o=this,r=t(this.raw.get());for(n=0;n<this.glyphIds.length;++n)i=o.glyphIds[n],r.offset(o.idOffsets[n]),r.writeShort(e[i]);return r.get()}},c({parse:function(){this.cache={}},glyphFor:function(i){var o,r,a,l,d,c,u,h,p,f,m,g=this.cache;return s(g,i)?g[i]:(o=this.file.loca,r=o.lengthOf(i),0===r?g[i]=null:(a=this.rawData,l=this.offset+o.offsetOf(i),d=t(a.slice(l,r)),c=d.readShort_(),u=d.readShort_(),h=d.readShort_(),p=d.readShort_(),f=d.readShort_(),m=g[i]=c==-1?new n(d):new e(d),m.numberOfContours=c,m.xMin=u,m.yMin=h,m.xMax=p,m.yMax=f,
m))},render:function(e,n,i){var o,r,a,s=t(),l=[];for(o=0;o<n.length;++o)r=n[o],a=e[r],l.push(s.offset()),a&&s.write(a.render(i));return l.push(s.offset()),{table:s.get(),offsets:l}}})}(),Ve=function(){function e(e,t){this.text=e,this.length=e.length,this.platformID=t.platformID,this.platformSpecificID=t.platformSpecificID,this.languageID=t.languageID,this.nameID=t.nameID}return c({parse:function(t){var n,i,o,r,a,s,l;for(t.offset(this.offset),t.readShort(),n=t.readShort(),i=this.offset+t.readShort(),o=t.times(n,function(){return{platformID:t.readShort(),platformSpecificID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:t.readShort()+i}}),r=this.strings={},a=0;a<o.length;++a)s=o[a],t.offset(s.offset),l=t.readString(s.length),r[s.nameID]||(r[s.nameID]=[]),r[s.nameID].push(new e(l,s));this.postscriptEntry=r[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},render:function(n){var i,o,r,a,l,d,c=this,u=this.strings,h=0;for(i in u)s(u,i)&&(h+=u[i].length);o=t(),r=t(),o.writeShort(0),o.writeShort(h),o.writeShort(6+12*h);for(i in u)if(s(u,i))for(a=6==i?[new e(n,c.postscriptEntry)]:u[i],l=0;l<a.length;++l)d=a[l],o.writeShort(d.platformID),o.writeShort(d.platformSpecificID),o.writeShort(d.languageID),o.writeShort(d.nameID),o.writeShort(d.length),o.writeShort(r.offset()),r.writeString(d.text);return o.write(r.get()),o.get()}})}(),We=function(){var e=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return c({parse:function(e){var t,n,i=this;switch(e.offset(this.offset),this.format=e.readLong(),this.italicAngle=e.readFixed_(),this.underlinePosition=e.readShort_(),this.underlineThickness=e.readShort_(),this.isFixedPitch=e.readLong(),this.minMemType42=e.readLong(),this.maxMemType42=e.readLong(),this.minMemType1=e.readLong(),this.maxMemType1=e.readLong(),this.format){case 65536:case 196608:break;case 131072:for(t=e.readShort(),this.glyphNameIndex=e.times(t,e.readShort),this.names=[],n=this.offset+this.length;e.offset()<n;)i.names.push(e.readString(e.readByte()));break;case 151552:t=e.readShort(),this.offsets=e.read(t);break;case 262144:this.map=e.times(this.file.maxp.numGlyphs,e.readShort)}},glyphFor:function(t){switch(this.format){case 65536:return e[t]||".notdef";case 131072:var n=this.glyphNameIndex[t];return n<e.length?e[n]:this.names[n-e.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[t]||65535}},render:function(n){var i,o,r,a,s,l,d,c=this;if(196608==this.format)return this.raw();for(i=t(this.rawData.slice(this.offset,32)),i.writeLong(131072),i.offset(32),o=[],r=[],a=0;a<n.length;++a)s=n[a],l=c.glyphFor(s),d=e.indexOf(l),d>=0?o.push(d):(o.push(e.length+r.length),r.push(l));for(i.writeShort(n.length),a=0;a<o.length;++a)i.writeShort(o[a]);for(a=0;a<r.length;++a)i.writeByte(r[a].length),i.writeString(r[a]);return i.get()}})}(),Ue=function(){function e(e,t,n){var i=this;i.platformID=e.readShort(),i.platformSpecificID=e.readShort(),i.offset=t+e.readLong(),e.saveExcursion(function(){var t,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b;switch(e.offset(i.offset),i.format=e.readShort()){case 0:for(i.length=e.readShort(),i.language=e.readShort(),o=0;o<256;++o)n[o]=e.readByte();break;case 4:for(i.length=e.readShort(),i.language=e.readShort(),r=e.readShort()/2,e.skip(6),a=e.times(r,e.readShort),e.skip(2),s=e.times(r,e.readShort),l=e.times(r,e.readShort_),d=e.times(r,e.readShort),c=(i.length+i.offset-e.offset())/2,u=e.times(c,e.readShort),o=0;o<r;++o)for(h=s[o],p=a[o],t=h;t<=p;++t)0===d[o]?f=t+l[o]:(m=d[o]/2-(r-o)+(t-h),f=u[m]||0,0!==f&&(f+=l[o])),n[t]=65535&f;break;case 6:for(i.length=e.readShort(),i.language=e.readShort(),t=e.readShort(),g=e.readShort();g-- >0;)n[t++]=e.readShort();break;case 12:for(e.readShort(),i.length=e.readLong(),i.language=e.readLong(),v=e.readLong();v-- >0;)for(t=e.readLong(),_=e.readLong(),b=e.readLong();t<=_;)n[t++]=b++;break;default:window.console&&window.console.error("Unhandled CMAP format: "+i.format)}})}function n(e,n){function i(t){return n[e[t]]}var o,r,a,s,d,c,u,h,p,f,m,g,v,_,b,w,k,y=l(e),x=[],C=[],S=null,T=null;for(o=0;o<y.length;++o)r=y[o],a=i(r),s=a-r,null!=S&&s===T||(S&&C.push(S),x.push(r),T=s),S=r;for(S&&C.push(S),C.push(65535),x.push(65535),d=x.length,c=2*d,u=2*Math.pow(2,Math.floor(Math.log(d)/Math.LN2)),h=Math.log(u/2)/Math.LN2,p=c-u,f=[],m=[],g=[],o=0;o<d;++o){if(v=x[o],_=C[o],65535==v){f.push(0),m.push(0);break}if(b=i(v),v-b>=32768)for(f.push(0),m.push(2*(g.length+d-o)),w=v;w<=_;++w)g.push(i(w));else f.push(b-v),m.push(0)}return k=t(),k.writeShort(3),k.writeShort(1),k.writeLong(12),k.writeShort(4),k.writeShort(16+8*d+2*g.length),k.writeShort(0),k.writeShort(c),k.writeShort(u),k.writeShort(h),k.writeShort(p),C.forEach(k.writeShort),k.writeShort(0),x.forEach(k.writeShort),f.forEach(k.writeShort_),m.forEach(k.writeShort),g.forEach(k.writeShort),k.get()}return c({parse:function(t){var n,i=this,o=i.offset;t.offset(o),i.codeMap={},i.version=t.readShort(),n=t.readShort(),i.tables=t.times(n,function(){return new e(t,o,i.codeMap)})},render:function(e,i){var o=t();return o.writeShort(0),o.writeShort(1),o.write(n(e,i)),o.get()}})}(),je=c({parse:function(e){e.offset(this.offset),this.version=e.readShort(),this.averageCharWidth=e.readShort_(),this.weightClass=e.readShort(),this.widthClass=e.readShort(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort_(),this.ySubscriptYSize=e.readShort_(),this.ySubscriptXOffset=e.readShort_(),this.ySubscriptYOffset=e.readShort_(),this.ySuperscriptXSize=e.readShort_(),this.ySuperscriptYSize=e.readShort_(),this.ySuperscriptXOffset=e.readShort_(),this.ySuperscriptYOffset=e.readShort_(),this.yStrikeoutSize=e.readShort_(),this.yStrikeoutPosition=e.readShort_(),this.familyClass=e.readShort_(),this.panose=e.times(10,e.readByte),this.charRange=e.times(4,e.readLong),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort_(),this.descent=e.readShort_(),this.lineGap=e.readShort_(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=e.times(2,e.readLong),this.version>1&&(this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()))},render:function(){return this.raw()}}),qe=1e5,h.prototype={use:function(e){var t,i,o,r=this;return"string"==typeof e?n(e).reduce(function(e,t){return e+String.fromCharCode(r.use(t))},""):(t=r.unicodes[e],t||(t=r.next++,r.subset[t]=e,r.unicodes[e]=t,i=r.font.cmap.codeMap[e],i&&(r.ncid2ogid[t]=i,null==r.ogid2ngid[i]&&(o=r.nextGid++,r.ogid2ngid[i]=o,r.ngid2ogid[o]=i))),t)},encodeText:function(e){return this.use(e)},glyphIds:function(){return l(this.ogid2ngid)},glyphsFor:function(e,t){var n,i,o,r=this;for(t||(t={}),n=0;n<e.length;++n)i=e[n],t[i]||(o=t[i]=r.font.glyf.glyphFor(i),o&&o.compound&&r.glyphsFor(o.glyphIds,t));return t},render:function(){var e,t,n,i,o,r,a,d,c=this,u=this.glyphsFor(this.glyphIds());for(e in u)s(u,e)&&(e=parseInt(e,10),null==c.ogid2ngid[e]&&(t=c.nextGid++,c.ogid2ngid[e]=t,c.ngid2ogid[t]=e));return n=l(this.ngid2ogid),i=n.map(function(e){return this.ngid2ogid[e]},this),o=this.font,r=o.glyf.render(u,i,this.ogid2ngid),a=o.loca.render(r.offsets),this.lastChar=this.next-1,d={cmap:Ue.render(this.ncid2ogid,this.ogid2ngid),glyf:r.table,loca:a.table,hmtx:o.hmtx.render(i),hhea:o.hhea.render(i),maxp:o.maxp.render(i),post:o.post.render(i),name:o.name.render(this.psName),head:o.head.render(a.format),"OS/2":o.os2.render()},this.font.directory.render(d)},cidToGidMap:function(){var e,n,i,o=this,r=t(),a=0;for(e=this.firstChar;e<this.next;++e){for(;a<e;)r.writeShort(0),a++;n=o.ncid2ogid[e],n?(i=o.ogid2ngid[n],r.writeShort(i)):r.writeShort(0),a++}return r.get()}},p.prototype={parse:function(){var e=this.directory=new d(this.contents);this.head=e.readTable("head",ze),this.loca=e.readTable("loca",Be),this.hhea=e.readTable("hhea",Le),this.maxp=e.readTable("maxp",He),this.hmtx=e.readTable("hmtx",Ne),this.glyf=e.readTable("glyf",Oe),this.name=e.readTable("name",Ve),this.post=e.readTable("post",We),this.cmap=e.readTable("cmap",Ue),this.os2=e.readTable("OS/2",je),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},widthOfGlyph:function(e){return this.hmtx.forGlyph(e).advance*this.scale},makeSubset:function(){return new h(this)}},Ge=String.fromCharCode,$e="þÿ",Ke=e.support.browser,Ye="\n",Qe=0,Xe={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]},Ze={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0},Je={},et=C(k),tt=function(e,t,n){function i(){0===--r&&t()}n=$.extend({jpegQuality:.92,keepPNG:!1},n);var o=Object.keys(e),r=o.length;return 0===r?t():void o.forEach(function(t){x(t,e[t],i,n)})},b.prototype={loadFonts:et,loadImages:tt,getFont:function(e){var t=this.FONTS[e];if(!t){if(t=Ze[e],!t)throw Error("Font "+e+" has not been loaded");t=this.attach(t===!0?new ht(e):new pt(this,t)),this.FONTS[e]=t}return t},getImage:function(e){var t=this.IMAGES[e];if(!t){if(t=Je[e],!t)throw Error("Image "+e+" has not been loaded");if("ERROR"===t)return null;t=this.IMAGES[e]=this.attach(t.asStream(this))}return t},getOpacityGS:function(e,t){var n,i,o,r=parseFloat(e).toFixed(3);return e=parseFloat(r),r+=t?"S":"F",n=this._opacityGSCache||(this._opacityGSCache={}),i=n[r],i||(o={Type:L("ExtGState")},t?o.CA=e:o.ca=e,i=this.attach(new st(o)),i._resourceName=L("GS"+ ++Qe),n[r]=i),i},dict:function(e){return new st(e)},name:function(e){return L(e)},stream:function(e,t){return new lt(t,e)}},nt=Array.isArray||function(e){return e instanceof Array},z.prototype.beforeRender=function(){},it=B(function(e,t){this.value=e,this.utf16be=!!t},{render:function(e){var t,n,i,o=this.value;if(this.utf16be)o=$e+m(o),o=o.replace(/([\(\)\\])/g,"\\$1"),e("(",o,")");else{for(t=[40],n=0;n<o.length;++n)i=255&o.charCodeAt(n),40!=i&&41!=i&&92!=i||t.push(92),t.push(i);t.push(41),e.writeData(t)}},toString:function(){return this.value}}),ot=B(function(e){this.value=e},{render:function(e){var t,n=this;for(e("<"),t=0;t<this.value.length;++t)e(T(n.value.charCodeAt(t).toString(16),4));e(">")}},it),rt=B(function(e){this.name=e},{render:function(e){e("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(e){return"#"+T(e.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),at={},rt.get=L,st=B(function(e){this.props=e},{render:function(e){var t=this.props,n=!0;e("<<"),e.withIndent(function(){for(var i in t)D(t,i)&&!/^_/.test(i)&&(n=!1,e.indent(L(i)," ",t[i]))}),n||e.indent(),e(">>")}}),lt=B(function(e,n,i){if("string"==typeof e){var o=t();o.write(e),e=o}this.data=e,this.props=n||{},this.compress=i},{render:function(e){var t=this.data.get(),n=this.props;this.compress&&Ee.supportsDeflate()&&(n.Filter?n.Filter instanceof Array||(n.Filter=[n.Filter]):n.Filter=[],n.Filter.unshift(L("FlateDecode")),t=Ee.deflate(t)),n.Length=t.length,e(new st(n)," stream",Ye),e.writeData(t),e(Ye,"endstream")}}),dt=B(function(){this.props={Type:L("Catalog")}},{setPages:function(e){this.props.Pages=e}},st),ct=B(function(){this.props={Type:L("Pages"),Kids:[],Count:0}},{addPage:function(e){this.props.Kids.push(e),this.props.Count++}},st),ut=[192,193,194,195,197,198,199,201,202,203,205,206,207],ht=B(function(e){this.props={Type:L("Font"),Subtype:L("Type1"),BaseFont:L(e)},this._resourceName=L("F"+ ++Qe)},{encodeText:function(e){return new it(e+"")}},st),pt=B(function(e,t,n){var i,o;n=this.props=n||{},n.Type=L("Font"),n.Subtype=L("Type0"),n.Encoding=L("Identity-H"),this._pdf=e,this._font=t,this._sub=t.makeSubset(),this._resourceName=L("F"+ ++Qe),i=t.head,this.name=t.psName,o=this.scale=t.scale,this.bbox=[i.xMin*o,i.yMin*o,i.xMax*o,i.yMax*o],this.italicAngle=t.post.italicAngle,this.ascent=t.ascent*o,this.descent=t.descent*o,this.lineGap=t.lineGap*o,this.capHeight=t.os2.capHeight||this.ascent,this.xHeight=t.os2.xHeight||0,this.stemV=0,this.familyClass=(t.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(t.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(e){return new ot(this._sub.encodeText(e+""))},getTextWidth:function(e,t){var n,i,o=this,r=0,a=this._font.cmap.codeMap;for(n=0;n<t.length;++n)i=a[t.charCodeAt(n)],r+=o._font.widthOfGlyph(i||0);return r*e/1e3},beforeRender:function(){var e,n,i,o,r=this,a=r._sub,s=a.render(),l=new lt(t(s),{Length1:s.length},(!0)),d=r._pdf.attach(new st({Type:L("FontDescriptor"),FontName:L(r._sub.psName),FontBBox:r.bbox,Flags:r.flags,StemV:r.stemV,ItalicAngle:r.italicAngle,Ascent:r.ascent,Descent:r.descent,CapHeight:r.capHeight,XHeight:r.xHeight,FontFile2:r._pdf.attach(l)})),c=a.ncid2ogid,u=a.firstChar,h=a.lastChar,p=[];!function f(e,t){if(e<=h){var n=c[e];null==n?f(e+1):(t||p.push(e,t=[]),t.push(r._font.widthOfGlyph(n)),f(e+1,t))}}(u),e=new st({Type:L("Font"),Subtype:L("CIDFontType2"),BaseFont:L(r._sub.psName),CIDSystemInfo:new st({Registry:new it("Adobe"),Ordering:new it("Identity"),Supplement:0}),FontDescriptor:d,FirstChar:u,LastChar:h,DW:Math.round(r._font.widthOfGlyph(0)),W:p,CIDToGIDMap:r._pdf.attach(r._makeCidToGidMap())}),n=r.props,n.BaseFont=L(r._sub.psName),n.DescendantFonts=[r._pdf.attach(e)],i=new ft(u,h,a.subset),o=new lt(g(),null,(!0)),o.data(i),n.ToUnicode=r._pdf.attach(o)},_makeCidToGidMap:function(){return new lt(t(this._sub.cidToGidMap()),null,(!0))}},st),ft=B(function(e,t,n){this.firstChar=e,this.lastChar=t,this.map=n},{render:function(e){e.indent("/CIDInit /ProcSet findresource begin"),e.indent("12 dict begin"),e.indent("begincmap"),e.indent("/CIDSystemInfo <<"),e.indent("  /Registry (Adobe)"),e.indent("  /Ordering (UCS)"),e.indent("  /Supplement 0"),e.indent(">> def"),e.indent("/CMapName /Adobe-Identity-UCS def"),e.indent("/CMapType 2 def"),e.indent("1 begincodespacerange"),e.indent("  <0000><ffff>"),e.indent("endcodespacerange");var t=this;e.indent(t.lastChar-t.firstChar+1," beginbfchar"),e.withIndent(function(){var n,o,r,a;for(n=t.firstChar;n<=t.lastChar;++n){for(o=t.map[n],r=i([o]),e.indent("<",T(n.toString(16),4),">","<"),a=0;a<r.length;++a)e(T(r.charCodeAt(a).toString(16),4));e(">")}}),e.indent("endbfchar"),e.indent("endcmap"),e.indent("CMapName currentdict /CMap defineresource pop"),e.indent("end"),e.indent("end")}}),mt=B(function(e,t){this._pdf=e,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],t=this.props=t||{},t.Type=L("Page"),t.ProcSet=[L("PDF"),L("Text"),L("ImageB"),L("ImageC"),L("ImageI")],t.Resources=new st({Font:new st(this._fontResources),ExtGState:new st(this._gsResources),XObject:new st(this._xResources),Pattern:new st(this._patResources),Shading:new st(this._shResources)}),t.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(e,t,n,i,o,r){ee(arguments)||(this._matrix=J(arguments,this._matrix),this._out(e," ",t," ",n," ",i," ",o," ",r," cm"),this._out(Ye))},translate:function(e,t){this.transform(1,0,0,1,e,t)},scale:function(e,t){this.transform(e,0,0,t,0,0)},rotate:function(e){var t=Math.cos(e),n=Math.sin(e);this.transform(t,n,-n,t,0,0)},beginText:function(){this._textMode=!0,this._out("BT",Ye)},endText:function(){this._textMode=!1,this._out("ET",Ye)},_requireTextMode:function(){if(!this._textMode)throw Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw Error("No font selected; call page.setFont() first")},setFont:function(e,t){this._requireTextMode(),null==e?e=this._font:e instanceof pt||(e=this._pdf.getFont(e)),null==t&&(t=this._fontSize),this._fontResources[e._resourceName]=e,this._font=e,this._fontSize=t,this._out(e._resourceName," ",t," Tf",Ye)},setTextLeading:function(e){this._requireTextMode(),this._out(e," TL",Ye)},setTextRenderingMode:function(e){this._requireTextMode(),this._out(e," Tr",Ye)},showText:function(e,t){var n,i;this._requireFont(),e.length>1&&t&&this._font instanceof pt&&(n=this._font.getTextWidth(this._fontSize,e),i=t/n*100,this._out(i," Tz ")),this._out(this._font.encodeText(e)," Tj",Ye)},showTextNL:function(e){this._requireFont(),this._out(this._font.encodeText(e)," '",Ye)},addLink:function(e,t){var n=this._toPage({x:t.left,y:t.bottom}),i=this._toPage({x:t.right,y:t.top});this._annotations.push(new st({Type:L("Annot"),Subtype:L("Link"),Rect:[n.x,n.y,i.x,i.y],Border:[0,0,0],A:new st({Type:L("Action"),S:L("URI"),URI:new it(e)})}))},setStrokeColor:function(e,t,n){this._out(e," ",t," ",n," RG",Ye)},setOpacity:function(e){this.setFillOpacity(e),this.setStrokeOpacity(e),this._opacity*=e},setStrokeOpacity:function(e){if(e<1){var t=this._pdf.getOpacityGS(this._opacity*e,!0);this._gsResources[t._resourceName]=t,this._out(t._resourceName," gs",Ye)}},setFillColor:function(e,t,n){this._out(e," ",t," ",n," rg",Ye)},setFillOpacity:function(e){if(e<1){var t=this._pdf.getOpacityGS(this._opacity*e,!1);this._gsResources[t._resourceName]=t,this._out(t._resourceName," gs",Ye)}},gradient:function(e,t){var n,i,o;this.save(),this.rect(t.left,t.top,t.width,t.height),this.clip(),e.userSpace||this.transform(t.width,0,0,t.height,t.left,t.top),n=G(this._pdf,e,t),i=n.shading._resourceName,this._shResources[i]=n.shading,n.hasAlpha&&(o=n.opacity._resourceName,this._gsResources[o]=n.opacity,this._out("/"+o+" gs ")),this._out("/"+i+" sh",Ye),this.restore()},setDashPattern:function(e,t){this._out(e," ",t," d",Ye)},setLineWidth:function(e){this._out(e," w",Ye)},setLineCap:function(e){this._out(e," J",Ye)},setLineJoin:function(e){this._out(e," j",Ye)},setMitterLimit:function(e){this._out(e," M",Ye)},save:function(){this._contextStack.push(this._context()),this._out("q",Ye)},restore:function(){this._out("Q",Ye),this._context(this._contextStack.pop())},moveTo:function(e,t){this._out(e," ",t," m",Ye)},lineTo:function(e,t){this._out(e," ",t," l",Ye)},bezier:function(e,t,n,i,o,r){this._out(e," ",t," ",n," ",i," ",o," ",r," c",Ye)},bezier1:function(e,t,n,i){this._out(e," ",t," ",n," ",i," y",Ye)},bezier2:function(e,t,n,i){this._out(e," ",t," ",n," ",i," v",Ye)},close:function(){this._out("h",Ye)},rect:function(e,t,n,i){this._out(e," ",t," ",n," ",i," re",Ye)},ellipse:function(e,t,n,i){function o(t){return e+t}function r(e){return t+e}var a=.5522847498307936;this.moveTo(o(0),r(i)),this.bezier(o(n*a),r(i),o(n),r(i*a),o(n),r(0)),this.bezier(o(n),r(-i*a),o(n*a),r(-i),o(0),r(-i)),this.bezier(o(-n*a),r(-i),o(-n),r(-i*a),o(-n),r(0)),this.bezier(o(-n),r(i*a),o(-n*a),r(i),o(0),r(i))},circle:function(e,t,n){this.ellipse(e,t,n,n)},stroke:function(){this._out("S",Ye)},nop:function(){this._out("n",Ye)},clip:function(){this._out("W n",Ye)},clipStroke:function(){this._out("W S",Ye)},closeStroke:function(){this._out("s",Ye)},fill:function(){this._out("f",Ye)},fillStroke:function(){this._out("B",Ye)},drawImage:function(e){var t=this._pdf.getImage(e);t&&(this._xResources[t._resourceName]=t,this._out(t._resourceName," Do",Ye))},comment:function(e){var t=this;e.split(/\r?\n/g).forEach(function(e){t._out("% ",e,Ye)})},_context:function(e){return null==e?{opacity:this._opacity,matrix:this._matrix}:(this._opacity=e.opacity,void(this._matrix=e.matrix))},_toPage:function(e){var t=this._matrix,n=t[0],i=t[1],o=t[2],r=t[3],a=t[4],s=t[5];return{x:n*e.x+o*e.y+a,y:i*e.x+r*e.y+s}}},st),gt={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"},X("Times New Roman","serif"),X("Courier New","monospace"),X("Arial","sans-serif"),X("Helvetica","sans-serif"),X("Verdana","sans-serif"),X("Tahoma","sans-serif"),X("Georgia","sans-serif"),X("Monaco","monospace"),X("Andale Mono","monospace"),vt={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7},_t=vt,bt={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},wt={butt:0,round:1,square:2},kt={miter:0,round:1,bevel:2},e.deepExtend(e.pdf,{Document:b,BinaryStream:t,defineFont:Z,parseFontDef:Y,getFontURL:Q,loadFonts:et,loadImages:tt,getPaperOptions:_,clearImageCache:y,TEXT_RENDERING_MODE:vt,exportPDF:Se,exportPDFToBlob:Te,saveAs:oe,toDataURL:ne,toBlob:ie,render:te}),e.drawing.exportPDF=e.pdf.exportPDF,e.drawing.pdf=e.pdf}(kendo),kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdf/mixins.min",["pdf/core.min"],e)}(function(){return function(e,t){kendo.PDFMixin={extend:function(e){e.events.push("pdfExport"),e.options.pdf=this.options,e.saveAsPDF=this.saveAsPDF,e._drawPDF=this._drawPDF,e._drawPDFShadow=this._drawPDFShadow},options:{fileName:"Export.pdf",proxyURL:"",paperSize:"auto",allPages:!1,landscape:!1,margin:null,title:null,author:null,subject:null,keywords:null,creator:"Kendo UI PDF Generator v."+kendo.version,date:null},saveAsPDF:function(){var t,n=new e.Deferred,i=n.promise(),o={promise:i};if(!this.trigger("pdfExport",o))return t=this.options.pdf,t.multiPage=t.multiPage||t.allPages,this._drawPDF(n).then(function(e){return kendo.drawing.exportPDF(e,t)}).done(function(e){kendo.saveAs({dataURI:e,fileName:t.fileName,proxyURL:t.proxyURL,forceProxy:t.forceProxy,proxyTarget:t.proxyTarget}),n.resolve()}).fail(function(e){n.reject(e)}),i},_drawPDF:function(t){var n=new e.Deferred;return kendo.drawing.drawDOM(this.wrapper).done(function(e){var i={page:e,pageNumber:1,progress:1,totalPages:1};t.notify(i),n.resolve(i.page)}).fail(function(e){n.reject(e)}),n},_drawPDFShadow:function(t,n){var i,o,r;return t=t||{},i=this.wrapper,o=e("<div class='k-pdf-export-shadow'>"),t.width&&o.css({width:t.width,overflow:"visible"}),i.before(o),o.append(t.content||i.clone(!0,!0)),r=e.Deferred(),setTimeout(function(){var e=kendo.drawing.drawDOM(o,n);e.always(function(){o.remove()}).then(function(){r.resolve.apply(r,arguments)}).fail(function(){r.reject.apply(r,arguments)}).progress(function(){r.progress.apply(r,arguments)})},15),r.promise()}}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pdf.min",["kendo.core.min","kendo.drawing.min","pdf/core.min","pdf/mixins.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dialog.min",["kendo.core.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e){return t!==e}function i(e,t,n){return Math.max(Math.min(parseInt(e,10),n===1/0?n:parseInt(n,10)),parseInt(t,10))}function o(e){return e.keyCode==_.ENTER||e.keyCode==_.SPACEBAR}var r,a,s,l,d,c,u,h,p=window.kendo,f=p.ui.Widget,m=p.ui.Popup.TabKeyTrap,g=e.proxy,v=p.template,_=p.keys,b=e.isFunction,w="kendoWindow",k=".k-dialog",y=".k-window",x=".k-dialog-close",C="k-window-content k-dialog-content",S=".k-window-content",T="k-scroll",D="k-dialog-titleless",A=".k-dialog-title",E=A+"bar",I=".k-dialog-buttongroup",M=".k-button",R="k-alert",F="k-confirm",P="k-prompt",z=".k-textbox",B=".k-overlay",L=":visible",H="zIndex",N="body",O="initOpen",V="touchstart",W="touchmove",U="open",j="close",q="show",G="hide",$={small:"k-window-sm",medium:"k-window-md",large:"k-window-lg"},K="hidden",Y="overflow",Q="original-overflow-rule",X="tap-y",Z={okText:"OK",cancel:"Cancel",promptInput:"Input"},J=Math.ceil,ee=":not(link,meta,script,style)",te=f.extend({init:function(e,t){var n=this;f.fn.init.call(n,e,t),n._init(n.element,n.options),p.notify(n)},_init:function(i,o){var a,s=this;s._centerCallback=g(s._center,s),s.appendTo=e(N),n(o.visible)&&null!==o.visible||(o.visible=i.is(L)),s.wrapperTemplate===t&&(s.wrapperTemplate=r.wrapper),s._createDialog(),a=s.wrapper=i.closest(k),o._defaultFocus===t&&(s._defaultFocus=i[0]),s._tabindex(i),s._dimensions(),this._tabKeyTrap=new m(a),s.options.visible?s._triggerOpen():s.wrapper.hide()},setOptions:function(n){var i,o=this,r=o.options.size;n=e.extend(o.options,n),f.fn.setOptions.call(o,n),n.title!==t&&o.title(n.title),n.content&&(p.destroy(o.element.children()),o.element.html(n.content)),n.actions&&(o.wrapper.children(I).remove(),o._createActionbar(o.wrapper)),o.wrapper.show(),o._closable(o.wrapper),o.wrapper.removeClass($[r]),o._dimensions(),n.visible?o._triggerOpen():o.wrapper.hide(),t!==n.modal&&(i=o.options.visible!==!1,o._enableDocumentScrolling(),o._overlay(n.modal&&i))},_dimensions:function(){var e,t,n=this,o=n.wrapper,r=n.options,a=r.width,s=r.height,l=r.size,d=["minWidth","minHeight","maxWidth","maxHeight"];for(e=0;e<d.length;e++)t=r[d[e]],t&&t!=1/0&&o.css(d[e],t);this._setElementMaxHeight(),a&&((""+a).indexOf("%")>0?o.width(a):o.outerWidth(i(a,r.minWidth,r.maxWidth))),s&&((""+s).indexOf("%")>0?o.height(s):o.outerHeight(i(s,r.minHeight,r.maxHeight)),this._setElementHeight()),l&&$[l]&&o.addClass($[l])},_setElementMaxHeight:function(){var e,t=this,n=t.element,i=t.options.maxHeight;i!=1/0&&(e=parseFloat(i,10)-t._uiHeight(),e>0&&n.css({maxHeight:J(e)+"px"}))},_setElementHeight:function(){var e=this,t=e.element,n=e.wrapper.outerHeight(!0),i=parseFloat(n,10)-e._uiHeight();i<0&&(i=0),t.css({height:J(i)+"px"}),this._applyScrollClassName(t)},_applyScrollClassName:function(e){var t=e.get(0).scrollHeight>e.outerHeight();t?e.addClass(T):e.removeClass(T)},_uiHeight:function(){var e=this,t=e.wrapper,n=t.children(I),i=n[0]&&n[0].offsetHeight||0,o=t.children(E),r=o[0]&&o[0].offsetHeight||0;return i+r},_overlay:function(t){var n=this.appendTo.children(B),i=this.wrapper;return n.length||(n=e(r.overlay)),n.insertBefore(i[0]).toggle(t).css(H,parseInt(i.css(H),10)-1),t?this._waiAriaOverlay():this._removeWaiAriaOverlay(),this.options.modal.preventScroll&&this._stopDocumentScrolling(),n},_waiAriaOverlay:function(){var t=this.wrapper;this._overlayedNodes=t.prevAll(ee).add(t.nextAll(ee)).each(function(){var t=e(this);t.data("ariaHidden",t.attr("aria-hidden")),t.attr("aria-hidden","true")})},_removeWaiAriaOverlay:function(){return this._overlayedNodes&&this._overlayedNodes.each(function(){var t=e(this),n=t.data("ariaHidden");n?t.attr("aria-hidden",n):t.removeAttr("aria-hidden")})},_closeClick:function(e){e.preventDefault(),this.close(!1)},_closeKeyHandler:function(e){(o(e)||e.keyCode==_.ESC)&&this.close(!1)},_keydown:function(e){var t=this,n=t.options,i=e.keyCode;i==_.ESC&&!t._closing&&n.closable&&t.close(!1)},_createDialog:function(){var t=this,n=t.element,i=t.options,o=p.support.isRtl(n),a=e(r.titlebar(i)),s=(n.id||p.guid())+"_title",l=e(t.wrapperTemplate(i));l.toggleClass("k-rtl",o),n.addClass(C),t.appendTo.append(l),i.title!==!1?(l.append(a),a.attr("id",s),l.attr("aria-labelledby",s)):l.addClass(D),t._closable(l),l.append(n),i.content&&(p.destroy(n.children()),n.html(i.content)),i.actions.length&&t._createActionbar(l)},_closable:function(e){var t=this,n=t.options,i=e.children(E),o=i.find(".k-window-actions"),a=o.length?o.find(".k-dialog-close"):e.find(".k-dialog-close");a.remove(),n.closable!==!1&&(n.title!==!1&&o.length?o.append(r.close(n)):e.prepend(r.close(n)),e.autoApplyNS(w),t.element.autoApplyNS(w),e.find(x).on("click",g(t._closeClick,t)).on("keydown",g(t._closeKeyHandler,t)),t.element.on("keydown",g(t._keydown,t)))},_createActionbar:function(t){var n="stretched"===this.options.buttonLayout,i=n?"stretched":"normal",o=e(r.actionbar({buttonLayout:i}));this._addButtons(o),t.append(o)},_addButtons:function(t){var n,i,o,a=this,s=g(a._actionClick,a),l=g(a._actionKeyHandler,a),d=a.options.actions,c=d.length;for(o=0;o<c;o++)n=d[o],i=a._mergeTextWithOptions(n),e(r.action(n)).autoApplyNS(w).html(i).appendTo(t).addClass(n.cssClass).data("action",n.action).on("click",s).on("keydown",l)},_mergeTextWithOptions:function(e){var t=e.text;return t?v(t)(this.options):""},_tabindex:function(e){var t,n=this,i=n.wrapper,o=i.find(x),r=i.find(I+" "+M);f.fn._tabindex.call(this,e),t=e.attr("tabindex"),o.attr("tabIndex",t),r.attr("tabIndex",t)},_actionClick:function(e){this.wrapper.is(L)&&this._runActionBtn(e.currentTarget)},_actionKeyHandler:function(e){o(e)?(e.preventDefault(),this._runActionBtn(e.currentTarget)):e.keyCode==_.ESC&&this.close(!1)},_runActionBtn:function(t){var n,i,o=this;o._closing||(n=e(t).data("action"),i=b(n)&&n({sender:o})===!1,i||o.close(!1))},_triggerOpen:function(){var e=this,t=e.options,n=e.wrapper;e.toFront(),e._triggerInitOpen(),e.trigger(U),t.modal&&(e._overlay(n.is(L)).css({opacity:.5}),e._focusDialog())},open:function(){var e,t,n,i=this,o=i.wrapper,r=this._animationOptions(U),a=i.options;return this._triggerInitOpen(),i.trigger(U)||(i._closing&&o.kendoStop(!0,!0),i._closing=!1,i.toFront(),a.visible=!0,a.modal&&(t=!!i._modals().length,e=i._overlay(t),e.kendoStop(!0,!0),r.duration&&p.effects.Fade&&!t?(n=p.fx(e).fadeIn(),
n.duration(r.duration||0),n.endValue(.5),n.play()):e.css("opacity",.5),e.show()),o.show().kendoStop().kendoAnimate({effects:r.effects,duration:r.duration,complete:g(i._openAnimationEnd,i)}),o.show()),i},_animationOptions:function(e){var t=this.options.animation,n={open:{effects:{}},close:{hide:!0,effects:{}}};return t&&t[e]||n[e]},_openAnimationEnd:function(){this.options.modal&&this._focusDialog(),this.trigger(q)},_triggerInitOpen:function(){n(this._initOpenTriggered)||(this._initOpenTriggered=!0,this.trigger(O))},toFront:function(){var t=this,n=t.wrapper,i=+n.css(H),o=i;return t.center(),e(y).each(function(t,n){var o=e(n),r=o.css(H);isNaN(r)||(i=Math.max(+r,i))}),(!n[0].style.zIndex||o<i)&&n.css(H,i+2),t.element.find("> .k-overlay").remove(),n=null,t},close:function(e){return arguments.length||(e=!0),this._close(e),this._stopCenterOnResize(),this},_close:function(e){var t=this,n=t.wrapper,i=t.options,o=this._animationOptions("open"),r=this._animationOptions("close");if(n.is(L)&&!t.trigger(j,{userTriggered:!e})){if(t._closing)return;t._closing=!0,i.visible=!1,this._removeOverlay(),n.kendoStop().kendoAnimate({effects:r.effects||o.effects,reverse:r.reverse===!0,duration:r.duration,complete:g(this._closeAnimationEnd,this)})}return t},center:function(){this._center(),this._centerOnResize()},_center:function(){var t=this,n=t.wrapper,i=e(window),o=0,r=0,a=r+Math.max(0,(i.width()-n.width())/2),s=o+Math.max(0,(i.height()-n.height()-parseInt(n.css("paddingTop"),10))/2);return n.css({left:a,top:s}),t},_centerOnResize:function(){this._trackResize||(p.onResize(this._centerCallback),this._trackResize=!0)},_stopCenterOnResize:function(){p.unbindResize(this._centerCallback),this._trackResize=!1},_removeOverlay:function(){var e=this._modals(),t=this.options,n=t.modal&&!e.length;n?(this._overlay(!1).remove(),t.modal.preventScroll&&this._enableDocumentScrolling()):e.length&&(this._object(e.last())._overlay(!0),t.modal.preventScroll&&this._stopDocumentScrolling())},_stopDocumentScrolling:function(){var t,n,i=this,o=e("body");i._storeOverflowRule(o),o.css(Y,K),t=e("html"),n=t[0],i._storeOverflowRule(t),t.css(Y,K),p.support.mobileOS.ios&&(n.addEventListener(V,i._touchStart,{passive:!1}),n.addEventListener(W,i._touchMove,{passive:!1}))},_touchStart:function(t){e(this).data(X,t.changedTouches[0].pageY)},_touchMove:function(t){var n=t.target,i=e(t.target),o=t.changedTouches[0].pageY-e(this).data(X)>0,r=i.is(S)&&o&&0===i.scrollTop()||!o&&i.scrollTop()===n.scrollHeight-n.clientHeight;i.is(S)&&!r||t.preventDefault()},_enableDocumentScrolling:function(){var t=this,n=e(document.body),i=e("html"),o=i[0];t._restoreOverflowRule(n),t._restoreOverflowRule(i),p.support.mobileOS.ios&&(i.removeData(X),o.removeEventListener(V,t._touchStart,{passive:!1}),o.removeEventListener(W,t._touchMove,{passive:!1}))},_storeOverflowRule:function(e){if(!this._isOverflowStored(e)){var t=e.get(0).style.overflow;"string"==typeof t&&e.data(Q,t)}},_isOverflowStored:function(e){return"string"==typeof e.data(Q)},_restoreOverflowRule:function(e){var n=e.data(Q);null!==n&&n!==t?(e.css(Y,n),e.removeData(Q)):e.css(Y,"")},_closeAnimationEnd:function(){var e,t=this;t._closing=!1,t.wrapper.hide().css("opacity",""),t.trigger(G),t.options.modal&&(e=t._object(t._modals().last()),e&&e.toFront())},_modals:function(){var t=this,n=e(y).filter(function(){var n=e(this),i=t._object(n),o=i&&i.options;return o&&o.modal&&t.options.appendTo==o.appendTo&&o.visible&&n.is(L)}).sort(function(t,n){return+e(t).css("zIndex")-+e(n).css("zIndex")});return t=null,n},_object:function(e){var n=e.children(S),i=p.widgetInstance(n);return i?i:t},destroy:function(){var t=this;t._destroy(),f.fn.destroy.call(t),p.destroy(t.wrapper),t.wrapper.remove(),t.wrapper=t.element=e()},_destroy:function(){var e=this,t="."+w;e.wrapper.off(t),e.element.off(t),e.wrapper.find(x+","+I+" > "+M).off(t),e._stopCenterOnResize()},title:function(t){var n=this,i=n.wrapper,o=n.options,a=i.children(E),s=a.children(A),l=p.htmlEncode(t);return arguments.length?(t===!1?(a.remove(),i.addClass(D)):(a.length||(a=e(r.titlebar(o)).prependTo(i),s=a.children(A),i.removeClass(D)),s.html(l)),n.options.title=l,n):s.html()},content:function(e,t){var i=this,o=i.wrapper.children(S);return n(e)?(this.angular("cleanup",function(){return{elements:o.children()}}),p.destroy(o.children()),o.html(e),this.angular("compile",function(){var e,n=[];for(e=o.length;--e>=0;)n.push({dataItem:t});return{elements:o.children(),data:n}}),i.options.content=e,i):o.html()},_focusDialog:function(){this._defaultFocus&&this._focus(this._defaultFocus),this._tabKeyTrap.trap()},_focus:function(e){e&&e.focus()},events:[O,U,j,q,G],options:{title:"",buttonLayout:"stretched",actions:[],modal:!0,size:"auto",width:null,height:null,minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,content:null,visible:null,appendTo:N,closable:!0}}),ne=te.extend({options:{name:"Dialog",messages:{close:"Close"}}});p.ui.plugin(ne),a=te.extend({_init:function(e,t){var n=this;n.wrapperTemplate=r.alertWrapper,t._defaultFocus=null,n._ensureContentId(e),te.fn._init.call(n,e,t),n.bind(G,g(n.destroy,n)),n._ariaDescribedBy(),n._initFocus()},_ensureContentId:function(t){var n=e(t);n.attr("id")||n.attr("id",p.guid()+"_k-popup")},_ariaDescribedBy:function(){this.wrapper.attr("aria-describedby",this.element.attr("id"))},_initFocus:function(){var e=this.options;this._defaultFocus=this._chooseEntryFocus(),this._defaultFocus&&e.visible&&e.modal&&this._focusDialog()},_chooseEntryFocus:function(){return this.wrapper.find(I+" > "+M)[0]},options:{title:window.location.host,closable:!1,messages:Z}}),s=a.extend({_init:function(e,t){var n=this;a.fn._init.call(n,e,t),n.wrapper.addClass(R)},options:{name:"Alert",modal:!0,actions:[{text:"#: messages.okText #"}]}}),p.ui.plugin(s),l=function(t){return e(r.alert).kendoAlert({content:t}).data("kendoAlert").open()},d=a.extend({_init:function(t,n){var i=this;a.fn._init.call(i,t,n),i.wrapper.addClass(F),i.result=e.Deferred()},options:{name:"Confirm",modal:!0,actions:[{text:"#: messages.okText #",primary:!0,action:function(e){e.sender.result.resolve()}},{text:"#: messages.cancel #",action:function(e){e.sender.result.reject()}}]}}),p.ui.plugin(d),c=function(t){var n=e(r.confirm).kendoConfirm({content:t}).data("kendoConfirm").open();return n.result},u=a.extend({_init:function(t,n){var i=this;a.fn._init.call(i,t,n),i.wrapper.addClass(P),i._createPrompt(),i.result=e.Deferred()},_createPrompt:function(){var t=this.options.value,n=e(r.promptInputContainer(this.options)).insertAfter(this.element);t&&n.children(z).val(t),this._defaultFocus=this._chooseEntryFocus(),this._focusDialog()},_chooseEntryFocus:function(){return this.wrapper.find(z)[0]},options:{name:"Prompt",modal:!0,value:"",actions:[{text:"#: messages.okText #",primary:!0,action:function(e){var t=e.sender,n=t.wrapper.find(z).val();t.result.resolve(n)}},{text:"#: messages.cancel #",action:function(e){var t=e.sender,n=t.wrapper.find(z).val();e.sender.result.reject(n)}}]}}),p.ui.plugin(u),h=function(t,n){var i=e(r.prompt).kendoPrompt({content:t,value:n}).data("kendoPrompt").open();return i.result},r={wrapper:v("<div class='k-widget k-window k-dialog' role='dialog'></div>"),action:v("<button type='button' class='k-button# if (data.primary) { # k-primary# } role='button' #'></button>"),titlebar:v("<div class='k-window-titlebar k-dialog-titlebar'><span class='k-window-title k-dialog-title'>#: title #</span><div class='k-window-actions k-dialog-actions'></div></div>"),close:v("<a role='button' href='\\#' class='k-button k-flat k-button-icon k-window-action k-dialog-action k-dialog-close' title='#: messages.close #' aria-label='#: messages.close #' tabindex='-1'><span class='k-icon k-i-close'></span></a>"),actionbar:v("<div class='k-dialog-buttongroup k-dialog-button-layout-#: buttonLayout #' role='toolbar'></div>"),overlay:"<div class='k-overlay'></div>",alertWrapper:v("<div class='k-widget k-window k-dialog' role='alertdialog'></div>"),alert:"<div></div>",confirm:"<div></div>",prompt:"<div></div>",promptInputContainer:v("<div class='k-prompt-container'><input type='text' class='k-textbox' title='#: messages.promptInput #' aria-label='#: messages.promptInput #' /></div>")},p.alert=l,p.confirm=c,p.prompt=h}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.grid.min",["kendo.data.min","kendo.columnsorter.min","kendo.editable.min","kendo.window.min","kendo.filtermenu.min","kendo.columnmenu.min","kendo.groupable.min","kendo.pager.min","kendo.selectable.min","kendo.sortable.min","kendo.reorderable.min","kendo.resizable.min","kendo.ooxml.min","kendo.excel.min","kendo.pane.min","kendo.progressbar.min","kendo.pdf.min","kendo.dialog.min","kendo.pane.min","kendo.switch.min"],e)}(function(){return function(e,t){function n(e,t){return"["+qe.attr(e)+"="+t+"]"}function i(e){return Array(e+1).join('<td class="k-group-cell">&nbsp;</td>')}function o(e){var t,n=" ";if(e){if(typeof e===Tn)return e;for(t in e)""!==e[t]&&(n+=t+'="'+e[t]+'"')}return n}function r(t,n){e("th, th .k-grid-filter, th .k-link",t).add(document.body).css("cursor",n)}function a(t,n,i,o,r){var a,s=n;for(n=e(),r=r||1,a=0;a<r;a++)n=n.add(t.eq(s+a));"number"==typeof i?n[o?"insertBefore":"insertAfter"](t.eq(i)):n.appendTo(i)}function s(t,n,i){return e(t).add(n).find(i)}function l(e,t,n){var i,o,r,a;for(n=rt(n)?n:[n],i=0,o=n.length;i<o;i++)r=n[i],tt(r)&&r.click&&(a=r.name||r.text,t.on(kn+Tt,"a.k-grid-"+(a||"").replace(/\s/g,""),{commandName:a},lt(r.click,e)))}function d(e,t,n,i,o){return it(e,function(e){var r,a;return e=typeof e===Tn?{field:e}:e,e.parentIds=o,b(e)&&!n||(e.attributes=le(e.attributes),e.footerAttributes=le(e.footerAttributes),e.headerAttributes=le(e.headerAttributes),r=!0),a=qe.guid(),i&&!e.locked&&(e.locked=i),e.headerAttributes=nt({headers:o},e.headerAttributes),e.headerAttributes.id?a=e.headerAttributes.id:e.headerAttributes=nt({id:a},e.headerAttributes),e.columns&&(e.columns=d(e.columns,t,r,e.locked,o?o+" "+a:a)),nt({encoded:t,hidden:r,locked:i},e)})}function c(e,t){var n=[];return u(e,t,n),n[n.length-1]}function u(e,t,n){var i,o;for(n=n||[],i=0;i<t.length;i++){if(e===t[i])return!0;if(t[i].columns){if(o=n.length,n.push(t[i]),u(e,t[i].columns,n))return!0;n.splice(o,n.length-o)}}return!1}function h(e,t){p(e,t,t)}function p(e,t,n){var i=n?ce:le;e.hidden=!t,e.attributes=i(e.attributes),e.footerAttributes=i(e.footerAttributes),e.headerAttributes=i(e.headerAttributes)}function f(e,t){m(e);var n=e._hideByMedia;p(e,t,n?e.matchesMedia:t)}function m(e){e.matchesMedia=g(e)}function g(e){return e&&(y(e.media)||!y(e.media)&&qe.matchesMedia(e.media))}function v(){return"none"!==this.style.display}function _(t){return"none"!==e(t)[0].style.display}function b(e){return w([e]).length>0}function w(e){return ot(e,function(e){var t=!e.hidden&&e.matchesMedia!==!1;return t&&e.columns&&(t=w(e.columns).length>0),t})}function k(e){var t,n,i=[];for(n=0;n<e.length;n++){if(t=e[n],!y(t.media)){if(!y(t.minScreenWidth))throw Error("Using 'media' and 'minScreenWidth' options at the same time is not supported.");i.push(t)}t.columns&&(i=i.concat(k(t.columns)))}return i}function y(e){return t===e}function x(t){return e(t).map(function(){return this.toArray()})}function C(e,t,n){var i=D($(t)),o=D(K(t)),r=e.rowSpan;e.rowSpan=n?i>o?r-(i-o)||1:r+(o-i):i>o?r+(i-o):r-(o-i)||1}function S(t,n,i,o,r,a,s,l){var d,c,u=D(t),h=D([n]);u>h&&(d=Array(s+1).join('<th class="k-group-cell k-header" scope="col">&nbsp;</th>'),c=a.children(":not(.k-filter-row)"),e(Array(u-h+1).join("<tr>"+d+"</tr>")).insertAfter(c.last())),O(a,u-h),A(i,o,r,a,l)}function T(t,n,i){var o,r,a,s,l,d,c,u;for(i=i||0,a=n,n=ne(n),s={},l=t.find(">tr:not(.k-filter-row)"),d=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},c=0,u=n.length;c<u;c++)o=E(n[c],a),s[o.row]||(s[o.row]=l.eq(o.row).find(".k-header").filter(d)),r=s[o.row].eq(o.cell),r.attr(qe.attr("index"),i+c);return n.length}function D(e){var t,n,i=1,o=0;for(t=0;t<e.length;t++)e[t].columns&&(n=D(e[t].columns),n>o&&(o=n));return i+o}function A(t,n,i,o,r){var a,s,l=R(t[0],n),d=i.find(">tr:not(.k-filter-row):eq("+l.row+")>th.k-header"),c=e(),u=l.cell;for(a=0;a<t.length;a++)c=c.add(d.eq(u+a));for(o.find(">tr:not(.k-filter-row)").eq(l.row)[r](c),s=[],a=0;a<t.length;a++)t[a].columns&&(s=s.concat(t[a].columns));s.length&&A(s,n,i,o,r)}function E(e,t,n,i){var o,r;for(n=n||0,i=i||{},i[n]=i[n]||0,r=0;r<t.length;r++){if(t[r]==e){o={cell:i[n],row:n};break}if(t[r].columns&&(o=E(e,t[r].columns,n+1,i)))break;i[n]++}return o}function I(e,t,n,i){var o,r,a=!!n.locked;do o=e[t],t+=i?1:-1,r=!!o.locked;while(o&&t>-1&&t<e.length&&o!=n&&!o.columns&&r===a);return o}function M(e,t,n,i,o){var r,a,s,l,d;return t.columns?(t=t.columns,t[i?0:t.length-1]):(r=c(t,e),a=r?r.columns:e,s=at(t,a),0===s&&i?s++:s==a.length-1&&!i||!n.locked&&!t.columns&&!i?s--:(s>0||0===s&&!i)&&s++,l=at(n,a),t=I(a,s,n,l>s),d=at(t,o),(!t.columns||d&&d!==a.length-1)&&t&&t!=n&&t.columns?M(e,t,n,i,o):null)}function R(e,t,n,i){var o,r;for(n=n||0,i=i||{},i[n]=i[n]||0,r=0;r<t.length;r++){if(t[r]==e){o={cell:i[n],row:n};break}if(t[r].columns&&(o=R(e,t[r].columns,n+1,i)))break;t[r].hidden||i[n]++}return o}function F(e){var t=z($(e));return t.concat(z(K(e)))}function P(e,t,n,i){var o=e[n],r=e[i],a=c(o,t);return t=a?a.columns:t,at(r,t)}function z(e){var t,n=[],i=[];for(t=0;t<e.length;t++)n.push(e[t]),e[t].columns&&(i=i.concat(e[t].columns));return i.length&&(n=n.concat(z(i))),n}function B(e){var t,n,i=0;for(n=0;n<e.length;n++)t=e[n],t.columns?i+=B(t.columns):t.hidden&&i++;return i}function L(e){var t,n,i=0;for(t=0,n=e.length;t<n;t++)e[t].hidden||(i+=parseInt(e[t].width,10));return i}function H(e){var t,n,i,o=0;for(n=0,i=e.length;n<i;n++)t=e[n].style.width,t&&t.indexOf("%")==-1&&(o+=parseInt(t,10));return o}function N(e,t){var n,i,o=e.find("tr:not(.k-filter-row) th:not(.k-group-cell,.k-hierarchy-cell)");for(i=0;i<o.length;i++)n=o[i].rowSpan,n>1&&(o[i].rowSpan=n-t||1)}function O(e,t){var n,i=e.find("tr:not(.k-filter-row) th:not(.k-group-cell,.k-hierarchy-cell)");for(n=0;n<i.length;n++)i[n].rowSpan+=t}function V(t){var n,i=t.find("tr:not(.k-filter-row)"),o=i.filter(function(){return!e(this).children().length}).remove().length,r=i.find("th:not(.k-group-cell,.k-hierarchy-cell)");for(n=0;n<r.length;n++)r[n].rowSpan>1&&(r[n].rowSpan-=o);return i.length-o}function W(e,t,n,i,o){var r,a,s,l=[];for(r=0,s=e.length;r<s;r++)a=n[i]||[],a.push(t.eq(o+r)),n[i]=a,e[r].columns&&(l=l.concat(e[r].columns));l.length&&W(l,t,n,i+1,o+e.length)}function U(e,t,n){e.css({left:t,right:n})}function j(e,t,n){e[t]=e[t]||{},e[t][n]=e[t][n]||""}function q(e,t,n,i){j(e,t,n),""!==e[t][n]?e[t][n]+=" "+i:e[t][n]=i}function G(e,t,n,i){j(e,t,n),e[t][n]=e[t][n].replace(i,"")}function $(e){return ot(e,function(e){return e.locked})}function K(e){return ot(e,function(e){return!e.locked})}function Y(e){return ot(e,function(e){return e.sticky&&!e.locked})}function Q(e){return ot(e,function(e){return e.sticky&&!e.locked&&b(e)})}function X(e){return ot(e,function(e){return!e.locked&&b(e)})}function Z(e){return ot(e,function(e){return e.locked&&b(e)})}function J(e){var t,n=[];for(t=0;t<e.length;t++)e[t].hidden||(e[t].columns?n=n.concat(J(e[t].columns)):n.push(e[t]));return n}function ee(e){var t,n=[];for(t=0;t<e.length;t++)e[t].columns&&(n=n.concat(e[t].columns));return n}function te(e){var t=ee(e);return t=t.filter(function(e){return!e.hidden})}function ne(e){var t,n=[];for(t=0;t<e.length;t++)e[t].columns?n=n.concat(ne(e[t].columns)):n.push(e[t]);return n}function ie(e){var t,n=[];for(e=ne(e),t=0;t<e.length;t++)"string"==typeof e[t]?n.push(e[t]):e[t].field&&n.push(e[t].field);return n}function oe(n){var i,o=n.find(">tr:not(.k-filter-row)"),r=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},a=e();return o.length>1&&(a=o.find("th").filter(r).filter(function(){return this.rowSpan>1})),a=a.add(o.last().find("th").filter(r)),i=qe.attr("index"),a.sort(function(n,o){var r,a;return n=e(n),o=e(o),r=n.attr(i),a=o.attr(i),r===t&&(r=e(n).index()),a===t&&(a=e(o).index()),r=parseInt(r,10),a=parseInt(a,10),r>a?1:r<a?-1:0}),a}function re(t){var n,i,o,r,a,s,l,d=t.closest("table"),c=e().add(t),u=t.closest("tr"),h=d.find("tr:not(.k-filter-row)"),p=h.index(u);if(p>0){for(n=h.eq(p-1),i=n.find("th:not(.k-group-cell,.k-hierarchy-cell)").filter(function(){return!e(this).attr("rowspan")}),o=0,r=u.find("th:not(.k-group-cell,.k-hierarchy-cell)").index(t),a=t.prevAll(":not(.k-group-cell,.k-hierarchy-cell)").filter(function(){return this.colSpan>1}),s=0;s<a.length;s++)o+=a[s].colSpan||1;for(r+=Math.max(o-1,0),o=0,s=0;s<i.length;s++)if(l=i.eq(s),o+=l.attr("data-colspan")?l[0].getAttribute("data-colspan"):1,r>=s&&r<o){c=re(l).add(c);break}}return c}function ae(t){var n,i,o,r,a,s,l,d=t.closest("thead"),c=e().add(t),u=t.closest("tr"),h=d.find("tr:not(.k-filter-row)"),p=h.index(u)+t[0].rowSpan,f=qe.attr("colspan");if(p<=h.length-1){for(n=u.next(),i=t.prevAll(":not(.k-group-cell,.k-hierarchy-cell)"),i=i.filter(function(){return!this.rowSpan||1===this.rowSpan}),r=0,o=0;o<i.length;o++)r+=parseInt(i.eq(o).attr(f),10)||1;for(a=n.find("th:not(.k-group-cell,.k-hierarchy-cell)"),s=parseInt(t.attr(f),10)||1,o=0;o<s;)n=a.eq(o+r),c=c.add(ae(n)),l=parseInt(n.attr(f),10),l>1&&(s-=l-1),o++}return c}function se(t,n,i,o){var r,a=t;return o&&t.empty(),Ye?t[0].innerHTML=i:(r=document.createElement("div"),r.innerHTML="<table><tbody>"+i+"</tbody></table>",t=r.firstChild.firstChild,n[0].replaceChild(t,a[0]),t=e(t)),t}function le(e){e=e||{};var t=e.style;return t?(t=t.replace(/display:[^;]*/i,"display:none"),t.match(/display:/i)||(t=t.replace(/(.*)?/i,"display:none;$1"))):t="display:none",nt({},e,{style:t})}function de(e){e=e||{};var t=e.style||"";return t.indexOf("display:none")!==-1}function ce(e){e=e||{};var t=e.style;return t&&(e.style=t.replace(/(display\s*:\s*none\s*;?)*/gi,"")),e}function ue(t,n,i,o){var r,a=t.find(">colgroup"),s=it(n,function(e){return r=e.width,r&&0!==parseInt(r,10)?qe.format('<col style="width:{0}"/>',typeof r===Tn?r:r+"px"):"<col />"});(i||a.find(".k-hierarchy-col").length)&&s.splice(0,0,'<col class="k-hierarchy-col" />'),a.length&&a.remove(),a=e(Array(o+1).join('<col class="k-group-col">')+s.join("")),a.is("colgroup")||(a=e("<colgroup/>").append(a)),t.prepend(a),ni.msie&&8==ni.version&&(t.css("display","inline-table"),window.setTimeout(function(){t.css("display","")},1))}function he(e,t){var n,i,o=0,r=e.find("th:not(.k-group-cell)");for(n=0,i=t.length;n<i;n++)t[n].locked&&(r.eq(n).insertBefore(r.eq(o)),r=e.find("th:not(.k-group-cell)"),o++)}function pe(e){var t,n,i,o={};for(n=0,i=e.length;n<i;n++)t=e[n],o[t.value]=t.text;return o}function fe(e,t,n,i){var o=n&&n.length&&tt(n[0])&&"value"in n[0],r=o?pe(n)[e]:e;return r=null!=r?r:"",t?qe.format(t,r):i===!1?r:qe.htmlEncode(r)}function me(e,t,n){for(var i,o=0,r=e[o];r;){if(i=!!n||"none"!==r.style.display,i&&!Qn.test(r.className)&&--t<0){r.style.display=n?"":"none";break}r=e[++o]}}function ge(t,n){for(var i,o,r=0,a=t.length;r<a;r+=1)o=t.eq(r),o.is(".k-grouping-row,.k-detail-row")?(i=o.children(":not(.k-group-cell):first,.k-detail-cell").last(),i.attr("colspan",parseInt(i.attr("colspan"),10)-1)):(o.hasClass("k-grid-edit-row")&&(i=o.children(".k-edit-container")[0])&&(i=e(i),i.attr("colspan",parseInt(i.attr("colspan"),10)-1),i.find("col").eq(n).remove(),o=i.find("tr:first")),me(o[0].cells,n,!1))}function ve(e){var t,n,i=[];for(n=0;n<e.length&&(t=e[n],"field"in t&&"value"in t&&"items"in t);n++)i.push(t),t.hasSubgroups&&(i=i.concat(ve(t.items)));return i}function _e(e){var t,n,i=[];for(n=0;n<e.length&&(t=e[n],"field"in t&&"value"in t&&"items"in t);n++)t.hasSubgroups&&(i=i.concat(_e(t.items))),i.push(t.aggregates);return i}function be(t,n){for(var i,o,r,a=0,s=t.length;a<s;a+=1)o=t.eq(a),o.is(".k-grouping-row,.k-detail-row")?(i=o.children(":not(.k-group-cell):first,.k-detail-cell").last(),i.attr("colspan",parseInt(i.attr("colspan"),10)+1)):(o.hasClass("k-grid-edit-row")&&(i=o.children(".k-edit-container")[0])&&(i=e(i),i.attr("colspan",parseInt(i.attr("colspan"),10)+1),ue(i.find(">form>table"),w(r),!1,0),o=i.find("tr:first")),me(o[0].cells,n,!0))}function we(e,t,n){n=n||1;var i,o,r;for(o=0,r=e.length;o<r;o++)i=e.eq(o).children().last(),i.attr("colspan",parseInt(i.attr("colspan"),10)+n),i=t.eq(o).children().last(),i.attr("colspan",parseInt(i.attr("colspan"),10)-n)}function ke(e){var t,n,i=0,o=e.find(">colgroup>col");for(t=0,n=o.length;t<n;t+=1)i+=parseInt(o[t].style.width,10);return i}function ye(e,t){var n,i,o,r;e=e[0],t=t[0],e.rows.length!==t.rows.length&&(n=e.offsetHeight,i=t.offsetHeight,n>i?(o=t.rows[t.rows.length-1],Xn.test(o.className)&&(o=t.rows[t.rows.length-2]),r=n-i):(o=e.rows[e.rows.length-1],Xn.test(o.className)&&(o=e.rows[e.rows.length-2]),r=i-n),o.style.height=o.offsetHeight+r+"px")}function xe(e,t){var n,i=e.offsetHeight,o=t.offsetHeight;i>o?n=i+"px":i<o&&(n=o+"px"),n&&(e.style.height=t.style.height=n)}function Ce(e,t){var n,i,o;if(typeof e===Tn&&e===t)return e;if(tt(e)&&e.name===t)return e;if(rt(e))for(n=0,i=e.length;n<i;n++)if(o=e[n],typeof o===Tn&&o===t||o.name===t)return o;return null}function Se(t,n){if(n===!0){t=e(t);var i=qe.scrollLeft(t.parent());qe.focusElement(t),qe.scrollLeft(t.parent(),i)}else e(t).one("focusin",function(e){e.preventDefault()}).focus()}function Te(e,n){return e.options.groupable&&(n.groupable||n.groupable===t)}function De(t,n){return!!e.grep(t,function(e){return e.field===n}).length}function Ae(e,t){return!(!e.field||e.selectable)&&(!(t.editable&&!t.editable(e.field))&&!(e.editable&&!e.editable(t)))}function Ee(t){return e(t).is(":button,a,:input,a>.k-icon,textarea,span.k-select,span.k-icon,span.k-link,label.k-checkbox-label,.k-input,.k-multiselect-wrap,.k-picker-wrap,.k-picker-wrap>.k-selected-color,.k-tool-icon,.k-dropdown")}function Ie(n){var i=e(n.currentTarget),o=i.is("th"),r=this.table.add(this.lockedTable),a=this.thead.parent().add(e(">table",this.lockedHeader)),s=Ee(n.target),l=e(n.target).is(".k-checkbox"),d=e(n.target),c=i.closest("table")[0];return s&&i.find(qe.roleSelector("filtercell")).length?(this._setCurrent(i),t):(c!==r[0]&&c!==r[1]&&c!==a[0]&&c!==a[1]||d.is("a.k-i-expand, a.k-i-collapse")||(this.options.navigatable&&this._setCurrent(i,!1,l),!o&&s||setTimeout(function(){oi&&e(qe._activeElement()).hasClass("k-widget")||!e(qe._activeElement()).is(tn)&&Ee(qe._activeElement())&&e.contains(c,qe._activeElement())||Se(c,!0)}),o&&!qe.support.touch&&n.preventDefault()),t)}function Me(e,t){if(!t)return 0;var n=0;return qe.support.browser.webkit&&(n=e.width()),n}function Re(e){var n;return"string"==typeof e?(n=e.toLowerCase(),"true"===n?{rows:!0}:{rows:n.indexOf("rows")>-1,columns:n.indexOf("columns")>-1}):e===!0?{rows:!0}:t}function Fe(t,n){var i,o;return!!t&&(n=e(n),!!(n[0]&&ut(t[0],n[0])&&(i=n.offset().top-t.offset().top,o=n.outerHeight()/2,(i>=0||ht.abs(i)<=o)&&ht.floor(i+o)<=t.height())))}function Pe(e){return e&&(e.hasClass("k-edit-cell")||e.parent().hasClass("k-grid-edit-row"))}function ze(e){return'<td colspan="#=data.colspan +'+e+'#"><p class="k-reset"><a class="k-icon k-i-collapse" href="\\#" tabindex="-1" '+Gn+'="'+jn+'"></a>#=data.text#</p></td>'}function Be(e){return'<td colspan="'+e+'"><p class="k-reset">&nbsp;</p></td>'}function Le(e,t,n,o,r,a){return'<tr role="row"'+(a?'data-group-uid="'+r+'"':"")+'class="k-grouping-row">'+i(t)+'<td colspan="'+e+'" aria-expanded="'+!!o+'"><p class="k-reset"><a class="k-icon '+(o?"k-i-collapse":"k-i-expand")+'" href="#" tabindex="-1" '+Gn+'="'+(o?jn:qn)+'"></a>'+n+"</p></td></tr>"}function He(e){return'<tr role="row" class="k-grouping-row"><td colspan="'+e+'" aria-expanded="true"><p class="k-reset">&nbsp;</p></td></tr>'}function Ne(t,n){t=e(t)[0],t.style.display=n?"":"none"}function Oe(e,t){var n=/&/g,i=/</g,o=/"/g,r=/'/g,a=/>/g;return(""+e).replace(n,"&amp;").replace(i,"&lt;").replace(a,"&gt;").replace(o,function(e){return t?"\\"+e:"&quot;"}).replace(r,"&#39;")}var Ve,We,Ue,je,qe=window.kendo,Ge=qe.ui,$e=qe.data.DataSource,Ke=qe.data.ObservableObject,Ye=qe.support.tbodyInnerHtml,Qe=qe._activeElement,Xe=Ge.Widget,Ze=qe._outerWidth,Je=qe._outerHeight,et=qe.keys,tt=e.isPlainObject,nt=e.extend,it=e.map,ot=e.grep,rt=e.isArray,at=e.inArray,st=Array.prototype.push,lt=e.proxy,dt=qe.isFunction,ct=e.isEmptyObject,ut=e.contains,ht=Math,pt=".",ft="progress",mt="error",gt="k-hierarchy-cell",vt=":not(.k-group-cell):not(["+qe.attr("virtual")+"]):not(.k-hierarchy-cell:not(:has(.k-icon.k-i-collapse,.k-icon.k-i-expand))):visible",_t="tbody>tr:not(.k-grouping-row):not(.k-detail-row):not(.k-group-footer) > td:not(.k-group-cell):not(.k-hierarchy-cell)",bt="tr:not(.k-footer-template):visible",wt=":not(.k-group-cell):not(.k-detail-cell):not(.k-hierarchy-cell):visible",kt="tr:not(.k-grouping-row):not(.k-detail-row):not(.k-footer-template):not(.k-group-footer):visible",yt=kt+":first",xt=kt+":last",Ct=bt+":first>"+wt+":first",St="th.k-header:not(.k-group-cell):not(.k-hierarchy-cell)",Tt=".kendoGrid",Dt="k-grid-content-locked",At="k-group-cell",Et="edit",It="beforeEdit",Mt="save",Rt="remove",Ft="detailInit",Pt="filterMenuInit",zt="columnMenuInit",Bt="filterMenuOpen",Lt="columnMenuOpen",Ht="cellClose",Nt="change",Ot="columnHide",Vt="columnShow",Wt="saveChanges",Ut="dataBound",jt="detailExpand",qt="detailCollapse",Gt="itemchange",$t="page",Kt="paging",Yt="scroll",Qt="sync",Xt="k-state-focused",Zt=":kendoFocusable",Jt="k-state-selected",en="k-checkbox",tn="input[data-role='checkbox']."+en,nn="k-grid-norecords",on="k-link",rn="k-icon",an="k-sort-order",sn="k-header-column-menu",ln="k-grid-filter",dn="k-grid-content-sticky",cn="k-grid-header-sticky",un="k-grid-footer-sticky",hn="k-grid-no-left-border",pn="resize",fn="columnResize",mn="columnReorder",gn="columnLock",vn="columnUnlock",_n="columnStick",bn="columnUnstick",wn="navigate",kn="click",yn="mousedown",xn="height",Cn="tabIndex",Sn="function",Tn="string",Dn="bottom",An="container-for",En="field",In="input",Mn="incell",Rn="inline",Fn="uid",Pn=1,zn="colSpan",Bn="overflow",Ln="hidden",Hn="sort",Nn="group-sort",On="Are you sure you want to delete this record?",Vn="No records available.",Wn="Delete",Un="Cancel",jn="Collapse",qn="Expand",Gn="aria-label",$n=/(\}|\#)/gi,Kn=/#/gi,Yn="[\\x20\\t\\r\\n\\f]",Qn=RegExp("(^|"+Yn+")(k-group-cell|k-hierarchy-cell)("+Yn+"|$)"),Xn=RegExp("(^|"+Yn+")(k-filter-row)("+Yn+"|$)"),Zn='# if (iconClass) {#<a role="button" class="k-button k-button-icontext #=className#" #=attr# href="\\#"><span class="#=iconClass#"></span>#=text#</a># } else { #<a role="button" class="k-button k-button-icontext #=className#" #=attr# href="\\#">#=text#</a># } #',Jn='<input class="'+en+'" data-role="checkbox" aria-label="Select row" aria-checked="false" type="checkbox">',ei='<input class="'+en+'" data-role="checkbox" aria-label="Select all rows" aria-checked="false" type="checkbox">',ti=!1,ni=qe.support.browser,ii=ni.msie&&7==ni.version,oi=ni.msie&&8==ni.version,ri=ni.msie&&11===ni.version,ai=/Mac OS/.test(navigator.userAgent),si={content:"k-content",widget:"k-widget",scrollContainer:"k-scroll-container"};Ge.Pager&&(Ve=Ge.Pager.extend({init:function(e,t){Ge.Pager.fn.init.call(this,e,nt(!0,{},t)),this.dataSource.options.useRanges=!0,this.dataSource._omitPrefetch=!0},options:{name:"GroupsPager"},totalPages:function(){var e=this;return Math.ceil((e._collapsedTotal()||0)/(e.pageSize()||1))},_collapsedTotal:function(){var e=this.dataSource;return e?e.groupsTotal(!0)||0:0}})),We=Xe.extend({init:function(e,t){var n=this;Xe.fn.init.call(n,e,t),n._refreshHandler=lt(n.refresh,n),n.setDataSource(t.dataSource),n.wrap()},setDataSource:function(e){var t=this;t.dataSource&&t.dataSource.unbind(Nt,t._refreshHandler),t.dataSource=e,t.dataSource.bind(Nt,t._refreshHandler),t.dataSource.options.useRanges=!0},options:{name:"VirtualScrollable",itemHeight:e.noop,prefetch:!0,maxScrollHeight:25e4},events:[Kt,$t,Yt],destroy:function(){var e=this;Xe.fn.destroy.call(e),e.dataSource.unbind(Nt,e._refreshHandler),e.wrapper.add(e.verticalScrollbar).off(Tt),clearTimeout(e._timeout),e._scrollingTimeout&&clearTimeout(e._scrollingTimeout),e.drag&&(e.drag.destroy(),e.drag=null),e.wrapper=e.element=e.verticalScrollbar=null,e._refreshHandler=null},wrap:function(){var t,n=this,i=qe.support.scrollbar()+1,o=n.element;o.css({width:"auto",overflow:"hidden"}).css(ti?"padding-left":"padding-right",i),n.content=o.children().first(),t=n.wrapper=n.content.wrap('<div class="k-virtual-scrollable-wrap"/>').parent().bind("DOMMouseScroll"+Tt+" mousewheel"+Tt,lt(n._wheelScroll,n)),n._wrapper(),(qe.support.kineticScrollNeeded||qe.support.touch)&&(n.wrapper.css("touch-action","none"),n.drag=new qe.UserEvents(n.wrapper,{global:!0,allowSelection:!0,start:function(e){e.sender.capture()},move:function(e){n.verticalScrollbar.scrollTop(n.verticalScrollbar.scrollTop()-e.y.delta),qe.scrollLeft(t,qe.scrollLeft(t)-e.x.delta),e.preventDefault()}})),n.verticalScrollbar=e('<div class="k-scrollbar k-scrollbar-vertical" />').css({width:i}).appendTo(o).bind("scroll"+Tt,lt(n._scroll,n))},_wrapper:function(){var e=this;ri&&(e.wrapper.css({"overflow-y":Yt}),e.element.css(ti?"padding-left":"padding-right",0))},_wheelScroll:function(e){if(!e.ctrlKey){var t=this.verticalScrollbar,n=t.scrollTop(),i=qe.wheelDeltaY(e);!i||i>0&&0===n||i<0&&n+t[0].clientHeight==t[0].scrollHeight||(e.preventDefault(),this.verticalScrollbar.scrollTop(n+-i))}},_scroll:function(e){var n=this,i=!n.options.prefetch,o=e.currentTarget.scrollTop,r=n.dataSource,a=n.itemHeight,s=r.skip()||0,l=n._rangeStart||s,d=n.element.innerHeight(),c=!!(n._scrollbarTop&&n._scrollbarTop>o),u=ht.max(ht.floor(o/a),0),h=c?ht.ceil(d/a):ht.floor(d/a),p=ht.max(u+h,0);return n._preventScroll?(n._preventScroll=!1,t):(n._prevScrollTop=n._scrollTop,n._scrollTop=o-l*a,n._scrollbarTop=o,n._scrolling=i,n._fetch(u,p,c)||(n.wrapper[0].scrollTop=n._scrollTop),n.trigger(Yt),i&&(n._scrollingTimeout&&clearTimeout(n._scrollingTimeout),n._scrollingTimeout=setTimeout(function(){n._scrolling=!1,n._page(n._rangeStart,n.dataSource.take())},100)),t)},scrollToTop:function(){this._scrollTo(0)},scrollToBottom:function(){var e=this.verticalScrollbar;this._scrollTo(e[0].scrollHeight-e.height())},_scrollWrapperToTop:function(){this.wrapper.scrollTop(0)},_scrollWrapperToBottom:function(){this.wrapper.scrollTop(this.wrapper[0].scrollHeight)},_scrollWrapperOnColumnResize:function(){var e=this,t=this.wrapper,n=t.scrollTop();t[0].scrollWidth>t[0].clientWidth?(!e._wrapperScrolled&&n||e._isScrolledToBottom())&&(t.scrollTop(n+qe.support.scrollbar()),e._scrollTop=t.scrollTop(),e._wrapperScrolled=!0):e._wrapperScrolled&&(e._isWrapperScrolledToBottom()||(t.scrollTop(n-qe.support.scrollbar()),e._scrollTop=t.scrollTop()),e._wrapperScrolled=!1)},_scrollTo:function(e){var t=this,n=t.verticalScrollbar;n.scrollTop()!==e&&(t._preventScroll=!0),t.wrapper.scrollTop(e),t._scrollTop=t.wrapper.scrollTop(),n.scrollTop(e),t._scrollbarTop=n.scrollTop()},_isScrolledToTop:function(){return 0===this.verticalScrollbar.scrollTop()},_isScrolledToBottom:function(){var e=this.verticalScrollbar,t=e.scrollTop();return t>0&&t>=parseInt(e[0].scrollHeight-e.height(),10)},_isWrapperScrolledToBottom:function(){var e=this.wrapper;return e.scrollTop()>=parseInt(e[0].scrollHeight-e.height(),10)},itemIndex:function(e){var t=this._rangeStart||this.dataSource.skip()||0;return t+e},position:function(e){var t,n=this._rangeStart||this.dataSource.skip()||0,i=this.dataSource.pageSize();return t=e>n?e-n:n-e-1,t>i?i:t},scrollIntoView:function(e){var t=this.wrapper[0],n=t.clientHeight,i=this._isScrolledToBottom()?t.scrollTop:this._scrollTop||t.scrollTop,o=e[0].offsetTop,r=e[0].offsetHeight;i>o?this.verticalScrollbar[0].scrollTop-=n/2:o+r>=i+n&&(this.verticalScrollbar[0].scrollTop+=n/2)},_fetch:function(t,n,i){var o=this,r=o.dataSource,a=o.itemHeight,s=r.take(),l=o._rangeStart||r.skip()||0,d=ht.floor(t/s)*s,c=!1,u=.33,h=o.verticalScrollbar,p=ni.webkit?1:0,f=r._isGroupPaged()?r.groupsTotal(!0):r.total();return t<l?(c=!0,l=ht.max(0,n-s),o._scrollTop=h.scrollTop()-l*a,
o._page(l,s)):n>=l+s&&!i?(c=!0,l=ht.min(t,f-s),o._scrollTop=h.scrollTop()>=h[0].scrollHeight-h[0].offsetHeight-p?o.wrapper[0].scrollHeight-o.wrapper[0].offsetHeight:o.dataSource._isGroupPaged()&&t>=f-s?o.wrapper[0].scrollHeight-o.wrapper[0].offsetHeight-(o._scrollTop-o._prevScrollTop):a,o._page(l,s)):!o._fetching&&o.options.prefetch&&(t<d+s-s*u&&t>s&&r.prefetch(d-s,s,e.noop),n>d+s*u&&r.prefetch(d+s,s,e.noop)),c},fetching:function(){return this._fetching},_page:function(t,n,i){var o=this,r=!o.options.prefetch,a=o.dataSource,s=a._isGroupPaged();i=dt(i)?i:e.noop,o.trigger(Kt,{skip:t,take:n})||(clearTimeout(o._timeout),o._fetching=!0,o._rangeStart=t,s&&a._groupRangeExists(t,t+n)||!s&&a.inRange(t,n)?(qe.ui.progress(e(o.wrapper).parent(),!0),a.range(t,n,function(){qe.ui.progress(e(o.wrapper).parent(),!1),i(),o.trigger($t)},"page")):(r||qe.ui.progress(o.wrapper.parent(),!0),o._timeout=setTimeout(function(){o._scrolling||(r&&qe.ui.progress(o.wrapper.parent(),!0),a.range(t,n,function(){qe.ui.progress(o.wrapper.parent(),!1),i(),o.trigger($t)}))},100)))},repaintScrollbar:function(e){var n,i=this,o="",r=i.options.maxScrollHeight,a=i.dataSource,s=qe.support.kineticScrollNeeded?0:qe.support.scrollbar(),l=i.wrapper[0],d=i._isScrolledToBottom(),c=i.itemHeight=i.options.itemHeight()||0,u=l.scrollWidth>l.offsetWidth?s:0,h=(a._isGroupPaged()?a.groupsTotal(!0):a.total())*c+u;for(n=0;n<ht.floor(h/r);n++)o+='<div style="width:1px;height:'+r+'px"></div>';h%r&&(o+='<div style="width:1px;height:'+h%r+'px"></div>'),i.verticalScrollbar.html(o),!d||i._isScrolledToBottom()||i.dataSource._isGroupPaged()||i.scrollToBottom(),t!==i._scrollTop&&e&&(l.scrollTop=i._scrollTop,i._scrollWrapperOnColumnResize())},refresh:function(e){var n=this,i=n.dataSource,o=n._rangeStart,r=(e||{}).action,a=n._isScrolledToBottom()||!r||r!==Gt&&r!==Rt&&r!==Qt;qe.ui.progress(n.wrapper.parent(),!1),clearTimeout(n._timeout),n.repaintScrollbar(a),n.drag&&n.drag.cancel(),t===o||n._fetching||((!r||r!==Qt&&r!==Gt&&"expandGroup"!==r)&&(n._rangeStart=i.skip()),1!==i.page()||r&&(r===Qt||r===Gt||"expandGroup"===r||"collapseGroup"===r)||(n.verticalScrollbar[0].scrollTop=0)),n._fetching=!1}}),Ue={create:{text:"Add new record",className:"k-grid-add",iconClass:"k-icon k-i-plus"},cancel:{text:"Cancel changes",className:"k-grid-cancel-changes",iconClass:"k-icon k-i-cancel"},save:{text:"Save changes",className:"k-grid-save-changes",iconClass:"k-icon k-i-check"},destroy:{text:"Delete",className:"k-grid-delete",iconClass:"k-icon k-i-close"},edit:{text:"Edit",className:"k-grid-edit",iconClass:"k-icon k-i-edit"},update:{text:"Update",className:"k-primary k-grid-update",iconClass:"k-icon k-i-check"},canceledit:{text:"Cancel",className:"k-grid-cancel",iconClass:"k-icon k-i-cancel"},excel:{text:"Export to Excel",className:"k-grid-excel",iconClass:"k-icon k-i-file-excel"},pdf:{text:"Export to PDF",className:"k-grid-pdf",iconClass:"k-icon k-i-file-pdf"},search:{text:"Search...",className:"k-grid-search"}},je=qe.ui.DataBoundWidget.extend({init:function(t,n,i){var o=this;n=rt(n)?{dataSource:n}:n,Xe.fn.init.call(o,t,n),i&&(o._events=i),ti=qe.support.isRtl(t),o._element(),o._aria(),o._columns(e.extend(!0,[],o.options.columns)),o._foreignKeyPromises?e.when.apply(null,o._foreignKeyPromises).then(function(){o._foreignKeyPromises=null,o._continueInit()}):o._continueInit()},_continueInit:function(){var t=this;t._dataSource(),t._stickyColumns(),t._tbody(),t._thead(),t._groupable(),t._toolbar(),t._pageable(),t._setContentHeight(),t._templates(),t._navigatable(),t._selectable(),t._clipboard(),t._details(),t._editable(),t._attachCustomCommandsEvent(),t._adaptiveColumns(),t._minScreenSupport(),t.options.autoBind?t.dataSource.fetch():(t._group=t._groups()>0,t._footer()),t.lockedContent&&(t.wrapper.addClass("k-grid-lockedcolumns"),t._resizeHandler=function(){t.resize()},e(window).on("resize"+Tt,t._resizeHandler)),qe.notify(t)},events:[Nt,"dataBinding","cancel",Ut,jt,qt,Ft,Pt,Bt,zt,Lt,Et,It,Mt,Rt,Wt,Ht,fn,mn,Vt,Ot,gn,vn,_n,bn,wn,"page","sort","filter","group","groupExpand","groupCollapse","kendoKeydown"],setDataSource:function(e){var t,n=this,i=n.options.scrollable;n.options.dataSource=e,n._dataSource(),n._pageable(),n._thead(),i&&(i.virtual?(t=n.content.find(">.k-virtual-scrollable-wrap"),qe.scrollLeft(t,Me(t,ti))):(t=n.tbody,qe.scrollLeft(n.content,Me(t,ti)))),n.options.groupable&&n._groupable(),n.virtualScrollable&&n.virtualScrollable.setDataSource(n.options.dataSource),n.options.navigatable&&n._navigatable(),n.options.selectable&&n._selectable(),n.options.autoBind&&n.dataSource.fetch()},options:{name:"Grid",columns:[],toolbar:null,autoBind:!0,filterable:!1,scrollable:!0,sortable:!1,selectable:!1,allowCopy:!1,navigatable:!1,pageable:!1,persistSelection:!1,editable:!1,encodeTitles:!1,groupable:!1,rowTemplate:"",altRowTemplate:"",search:!1,noRecords:!1,dataSource:{},height:null,resizable:!1,reorderable:!1,columnMenu:!1,detailTemplate:null,columnResizeHandleWidth:3,mobile:"",messages:{editable:{cancelDelete:Un,confirmation:On,confirmDelete:Wn},commands:{create:Ue.create.text,cancel:Ue.cancel.text,save:Ue.save.text,destroy:Ue.destroy.text,edit:Ue.edit.text,update:Ue.update.text,canceledit:Ue.canceledit.text,excel:Ue.excel.text,pdf:Ue.pdf.text,search:Ue.search.text},noRecords:Vn,expandCollapseColumnHeader:"",groupHeader:"Press ctrl + space to group",ungroupHeader:"Press ctrl + space to ungroup"},width:null},destroy:function(){var t,n=this;n._angularItems("cleanup"),n._destroyColumnAttachments(),Xe.fn.destroy.call(n),this._navigatableTables&&(this._navigatableTables.off(Tt),this._navigatableTables=null),n._resizeHandler&&e(window).off("resize"+Tt,n._resizeHandler),n.pager&&n.pager.element&&n.pager.destroy(),n.timer&&clearTimeout(n.timer),n._progressTimeOut&&clearTimeout(n._progressTimeOut),n._collapseGroupsTimeOut&&clearTimeout(n._collapseGroupsTimeOut),n._endlessFetchTimeOut&&clearTimeout(n._endlessFetchTimeOut),n.pager=null,n._destroyGroupable(),n.options.reorderable&&n.wrapper.data("kendoReorderable").destroy(),n.selectable&&n.selectable.element&&(n.selectable.destroy(),n.clearArea(),n._selectedIds=null,n.copyHandler&&(n.wrapper.off("keydown",n.copyHandler),n.unbind(n.copyHandler)),n.updateClipBoardState&&(n.unbind(n.updateClipBoardState),n.updateClipBoardState=null),n.clearAreaHandler&&n.wrapper.off("keyup",n.clearAreaHandler)),n.selectable=null,n.resizable&&(n.resizable.destroy(),n._resizeUserEvents&&(n._resizeHandleDocumentClickHandler&&e(document).off("click",n._resizeHandleDocumentClickHandler),n._resizeUserEvents.destroy(),n._resizeUserEvents=null),n.resizable=null),n._destroyVirtualScrollable(),n.editableUserEvents&&(n.editableUserEvents.destroy(),n.editableUserEvents=null),n._lockedContentUserEvents&&(n._lockedContentUserEvents.destroy(),n._lockedContentUserEvents=null),n._destroyEditable(),n.dataSource&&(n.dataSource.unbind(Nt,n._refreshHandler).unbind(ft,n._progressHandler).unbind(mt,n._errorHandler).unbind(Hn,n._clearSortClasses),n._refreshHandler=n._progressHandler=n._errorHandler=n._clearSortClasses=null),t=n.element.add(n.wrapper).add(n.table).add(n.thead).add(n.wrapper.find(">.k-grid-toolbar")),n.content&&(t=t.add(n.content).add(n.content.find(">.k-virtual-scrollable-wrap"))),n.lockedHeader&&n._removeLockedContainers(),n.pane&&n.pane.destroy(),n._isMobile&&(n.wrapper.off("transitionend"+Tt),n.wrapper.off("contextmenu"+Tt)),n.minScreenResizeHandler&&e(window).off("resize",n.minScreenResizeHandler),n._detachColumnMediaResizeHandler(),n._draggableInstance&&n._draggableInstance.element&&n._draggableInstance.destroy(),n._draggableInstance=null,t.off(Tt),qe.destroy(n.wrapper),n.rowTemplate=n.altRowTemplate=n.lockedRowTemplate=n.lockedAltRowTemplate=n.detailTemplate=n.footerTemplate=n.groupFooterTemplate=n.lockedGroupFooterTemplate=n.noRecordsTemplate=null,n.scrollables=n.thead=n.tbody=n.element=n.table=n.content=n.footer=n.wrapper=n.lockedTable=n.lockedContent=n.lockedHeader=n.lockedFooter=n._groupableClickHandler=n._groupRows=n._setContentWidthHandler=null},getOptions:function(){var n,i,o,r=this.options;return r.dataSource=null,n=nt(!0,{},this.options),n.columns=qe.deepExtend([],this.columns),i=this.dataSource,o=i.options.data&&i._data,i.options.data=null,n.dataSource=e.extend(!0,{},i.options),i.options.data=o,n.dataSource.data=o,n.dataSource.page=i.page(),n.dataSource.filter=e.extend(!0,{},i.filter()),n.dataSource.pageSize=i.pageSize(),n.dataSource.sort=i.sort(),n.dataSource.group=i.group(),n.dataSource.aggregate=i.aggregate(),n.dataSource.transport&&(n.dataSource.transport.dataSource=null),n.pageable&&n.pageable.pageSize&&(n.pageable.pageSize=i.pageSize()),n.$angular=t,n},setOptions:function(e){var t,n,i,o,r=this.getOptions();qe.deepExtend(r,e),e.dataSource?e.dataSource.filter&&(r.dataSource.filter=e.dataSource.filter):r.dataSource=this.dataSource,t=this.wrapper,n=this._events,i=this.element,this.destroy(),this.options=null,this._isMobile&&(o=t.closest(qe.roleSelector("pane")).parent(),o.after(t),o.remove(),t.removeClass("k-grid-mobile")),t[0]!==i[0]&&(t.before(i),t.remove()),i.empty(),this.init(i,r,n),this._setEvents(r)},items:function(){return this.lockedContent?this._items(this.tbody).add(this._items(this.lockedTable.children("tbody"))):this._items(this.tbody)},_items:function(t,n){return t.children().filter(function(){var t=e(this);return!(t.hasClass(n?"k-detail-row":"k-grouping-row")||t.hasClass("k-detail-row")||t.hasClass("k-group-footer"))})},dataItems:function(){var e,t,n,i=qe.ui.DataBoundWidget.fn.dataItems.call(this);if(this.lockedContent){for(e=i.length,t=Array(2*e),n=e;--n>=0;)t[n]=t[n+e]=i[n];i=t}return i},_destroyColumnAttachments:function(){var t=this;t.resizeHandle=null,t.thead&&(this.angular("cleanup",function(){return{elements:t.thead.get()}}),t.thead.add(t.lockedHeader).find("th").each(function(){var t=e(this),n=t.data("kendoFilterMenu"),i=t.data("kendoColumnSorter"),o=t.data("kendoColumnMenu");n&&n.destroy(),i&&i.destroy(),o&&o.destroy()}))},_attachCustomCommandsEvent:function(){var e,t,n,i=this,o=ne(i.columns||[]);for(t=0,n=o.length;t<n;t++)e=o[t].command,e&&l(i,i.wrapper,e)},_aria:function(){var e=this.element.attr("id")||"aria";e&&(this._cellId=e+"_active_cell")},_element:function(){var t=this,n=t.element;n.is("table")||(n=t.options.scrollable?t.element.find("> .k-grid-content > table"):t.element.children("table"),n.length||(n=e("<table />").appendTo(t.element))),ii&&n.attr("cellspacing",0),t.table=n.attr("role",t._hasDetails()?"treegrid":"grid"),t._wrapper()},_createResizeHandle:function(t,n){var i,o,r,a,s,l,d,c,u,h,p=this,f=p.options.columnResizeHandleWidth,m=p.options.scrollable,g=p.resizeHandle,v=3*f/2,_=0;g&&p.lockedContent&&g.data("th")[0]!==n[0]&&(g.off(Tt).remove(),g=null),g||(g=p.resizeHandle=e('<div class="k-resize-handle"><div class="k-resize-handle-inner"></div></div>'),t.append(g)),c=qe.scrollLeft(t),ti&&(ni.mozilla||ni.webkit&&ni.version>=85)&&(c*=-1),d=parseFloat(t.css("borderLeftWidth")),u=n.offset().left+c-parseFloat(n.css("marginLeft"))-(t.offset().left+d),ti?m&&(_=u<=c?v:0,i=n.closest(".k-grid-header-wrap, .k-grid-header-locked"),l=i[0].scrollWidth-i[0].offsetWidth,s=parseFloat(i.css("marginLeft")),o=ni.msie?2*qe.scrollLeft(i)+d-s-_:0,r=-_,a=ni.mozilla?d-s-_:0,u-=r+a+o):u+=n[0].offsetWidth,h=n.offset().top-parseFloat(n.css("marginTop"))-(t.offset().top+parseFloat(t.css("borderTopWidth"))),g.css({top:h,left:u-v,height:Je(n),width:3*f-_}).data("th",n).show(),g.off("dblclick"+Tt).on("dblclick"+Tt,function(){p._autoFitLeafColumn(parseInt(n.attr(qe.attr("index")),10))})},_positionColumnResizeHandle:function(){var n=this,i=n.lockedHeader?n.lockedHeader.find("thead:first"):e();n.thead.add(i).on("mousemove"+Tt,"tr:not(.k-filter-row) > th",function(i){var o=t!==i.buttons?i.buttons:i.which||i.button,r=e(this);r.hasClass("k-group-cell")||r.hasClass("k-hierarchy-cell")||t!==o&&0!==o||r[0].hasAttribute(qe.attr(zn))||n._createResizeHandle(r.closest("div"),r)})},_resizeHandleDocumentClick:function(t){e(t.target).closest(".k-column-active").length||(e(document).off(t),this._resetResizeHandleHeader(),this._hideResizeHandle())},_resetResizeHandleHeader:function(){var t;this.resizeHandle&&(t=e(this.resizeHandle).data("th"),t&&(t.find(pt+on).find(pt+rn).show(),t.find(pt+an).show(),t.find(pt+sn).show(),t.find(pt+ln).show()))},_hideResizeHandle:function(){this.resizeHandle&&(this.resizeHandle.data("th").removeClass("k-column-active"),this.lockedContent&&!this._isMobile?(this.resizeHandle.off(Tt).remove(),this.resizeHandle=null):this.resizeHandle.hide())},_positionColumnResizeHandleTouch:function(){var t=this,n=t.lockedHeader?t.lockedHeader.find("thead:first"):e();t._resizeUserEvents=new qe.UserEvents(n.add(t.thead),{filter:"th:not(.k-group-cell):not(.k-hierarchy-cell)",threshold:10,minHold:500,hold:function(n){var i=e(n.target);n.preventDefault(),t.resizeHandle&&(t.resizeHandle.data("th").removeClass("k-column-active"),t._resetResizeHandleHeader()),i.addClass("k-column-active"),i.find(pt+on).find(pt+rn).hide(),i.find(pt+an).hide(),i.find(pt+sn).hide(),i.find(pt+ln).hide(),t._createResizeHandle(i.closest("div"),i),t._resizeHandleDocumentClickHandler||(t._resizeHandleDocumentClickHandler=lt(t._resizeHandleDocumentClick,t)),e(document).on("click",t._resizeHandleDocumentClickHandler)}})},resizeColumn:function(n,i){var o,r,a,s,l=this,d=!!n.locked,c=!!n.hidden,u=this.options,h=qe.support.mobileOS?0:qe.support.scrollbar(),p=d?at(n,Z(J(l.columns))):at(n,X(J(l.columns))),f=d?l.lockedTable:l.table,m=l.footer||e(),g=d?l.lockedHeader.find("table"):l.thead.closest("table"),v=n.minResizableWidth||10,_=Ze(d?f.find("tbody"):l.tbody);return c?(n.width=i>v?i:v,t):(l.footer&&l.lockedContent&&(m=l.footer.children(d?".k-grid-footer-locked":".k-grid-footer-wrap")),o=u.scrollable?g.find("col:not(.k-group-col,.k-hierarchy-col):eq("+p+")").add(f.children("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+p+")")).add(m.find("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+p+")")):f.find("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+p+")"),u.scrollable?(r=!1,a=l.wrapper.width()-h,s=i=i>v?i:v,d&&_-i+s>a&&(s=i+(a-_-2*h),s<0&&(s=i),r=!0),s>10&&s>=v&&(o.css("width",s),_&&(s=r?a-2*h:_+(i-n.width),f.add(g).add(m).css("width",s),d||(l._footerWidth=s))),l._scrollVirtualWrapperOnColumnResize()):i>10&&i>=v&&o.css("width",i),n.width=i,l._applyLockedContainersWidth(),l._syncLockedContentHeight(),l._syncLockedHeaderHeight(),l._updateStickyColumns(),t)},_resizable:function(){var t,n,i,o,a,s,l,d,c=this,u=c.options,h=this._isMobile,p=qe.support.mobileOS?0:qe.support.scrollbar();u.resizable&&(t=u.scrollable?c.wrapper.find(".k-grid-header-wrap:first"):c.wrapper,h?c._positionColumnResizeHandleTouch(t):c._positionColumnResizeHandle(t),c.resizable&&c.resizable.destroy(),c.resizable=new Ge.Resizable(t.add(c.lockedHeader),{handle:(u.scrollable?"":">")+".k-resize-handle",hint:function(t){return e('<div class="k-grid-resize-indicator" />').css({height:Je(t.data("th"))+c.tbody.attr("clientHeight")})},start:function(t){var p,f,m,g,v;d=e(t.currentTarget).data("th"),h&&c._hideResizeHandle(),p=d.closest("table"),f=e.inArray(d[0],oe(d.closest("thead")).filter(":visible")),s=p.parent().hasClass("k-grid-header-locked"),m=s?c.lockedTable:c.table,g=c.footer||e(),c.footer&&c.lockedContent&&(g=c.footer.children(s?".k-grid-footer-locked":".k-grid-footer-wrap")),r(c.wrapper,"col-resize"),l=u.scrollable?p.find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+f+")").add(m.children("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+f+")")).add(g.find("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+f+")")):m.children("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+f+")"),v=e.map(c.columns,function(e){return!e.hidden&&(s&&e.locked||!s&&!e.locked)?e:null}),n=t.x.location,i=Ze(d),o=ne(v)[f].minResizableWidth||10,a=Ze(s?m.children("tbody"):c.tbody),ni.webkit&&c.wrapper.addClass("k-grid-column-resizing")},resize:function(t){var r,h,f,m,g,v,_=ti?-1:1,b=i+t.x.location*_-n*_;u.scrollable?(s&&c.lockedFooter?r=c.lockedFooter.children("table"):c.footer&&(r=c.footer.find(">.k-grid-footer-wrap>table")),r&&r[0]||(r=e()),h=d.closest("table"),f=s?c.lockedTable:c.table,m=!1,g=c.wrapper.width()-p,v=b,s&&a-i+v>g&&(v=i+(g-a-2*p),v<0&&(v=b),m=!0),v>10&&v>=o&&(l.css("width",v),a&&(v=m?g-2*p:a+t.x.location*_-n*_,f.add(h).add(r).css("width",v),s||(c._footerWidth=v))),c._scrollVirtualWrapperOnColumnResize()):b>10&&b>=o&&l.css("width",b)},resizeend:function(){var e,t,n,o=Ze(d);r(c.wrapper,""),ni.webkit&&c.wrapper.removeClass("k-grid-column-resizing"),i!=o&&(t=c.lockedHeader?c.lockedHeader.find("thead:first tr:first").add(c.thead.find("tr:first")):d.parent(),n=d.attr(qe.attr("index")),n||(n=t.find("th:not(.k-group-cell):not(.k-hierarchy-cell)").index(d)),e=ne(c.columns)[n],e.width=o,c.trigger(fn,{column:e,oldWidth:i,newWidth:o}),c._applyLockedContainersWidth(),c._syncLockedContentHeight(),c._syncLockedHeaderHeight(),c._updateStickyColumns()),c._resetResizeHandleHeader(),c._hideResizeHandle(),d=null}}))},_draggable:function(){var t,n=this;n.options.reorderable&&(n._draggableInstance&&n._draggableInstance.destroy(),t=n.wrapper.children(".k-grid-header"),n._draggableInstance=n.wrapper.kendoDraggable({group:qe.guid(),autoScroll:!0,filter:n.content?".k-grid-header:first "+St:"table:first>.k-grid-header "+St,dragstart:function(){t.children(".k-grid-header-wrap").unbind("scroll"+Tt+"scrolling").bind("scroll"+Tt+"scrolling",function(e){n.virtualScrollable?qe.scrollLeft(n.content.find(">.k-virtual-scrollable-wrap"),this.scrollLeft):qe.scrollLeft(n.scrollables.not(e.currentTarget),this.scrollLeft)})},dragend:function(){n._resetResizeHandleHeader(),t.children(".k-grid-header-wrap").unbind("scroll"+Tt+"scrolling")},drag:function(){n._hideResizeHandle()},hint:function(t){var n=t.attr(qe.attr("title"));return n&&(n=qe.htmlEncode(n)),e('<div class="k-header k-reorder-clue k-drag-clue" />').html(n||t.attr(qe.attr("field"))||t.text()).prepend('<span class="k-icon k-drag-status k-i-cancel"></span>')}}).data("kendoDraggable"))},_reorderable:function(){var t=this;t.options.reorderable&&(t.wrapper.data("kendoReorderable")&&t.wrapper.data("kendoReorderable").destroy(),t.wrapper.kendoReorderable({draggable:t._draggableInstance,dragOverContainers:function(e,n){var i=F(t.columns);return i[e].lockable!==!1&&P(i,t.columns,e,n)>-1},inSameContainer:function(n){return e(n.source).parent()[0]===e(n.target).parent()[0]&&P(F(t.columns),t.columns,n.sourceIndex,n.targetIndex)>-1},change:function(e){var n=F(t.columns),i=n[e.oldIndex],o=P(n,t.columns,e.oldIndex,e.newIndex);t.trigger(mn,{newIndex:o,oldIndex:at(i,n),column:i}),t.reorderColumn(o,i,"before"===e.position)}}))},_reorderHeader:function(e,t,n,i){var o,r,l,d,c,u=this,h=E(e[0],u.columns),p=E(t,u.columns),f=[];for(l=0;l<e.length;l++)e[l].columns&&(f=f.concat(e[l].columns));r=i?s(i,i,"tr:eq("+h.row+")>th.k-header:not(.k-group-cell,.k-hierarchy-cell)"):s(u.lockedHeader,u.thead,"tr:eq("+h.row+")>th.k-header:not(.k-group-cell,.k-hierarchy-cell)"),d=$(e).length,c=$([t]).length,f.length?(d>0&&0===c?(o="prepend",S(e,t,f,u.columns,u.lockedHeader.find("thead"),u.thead,this._groups(),o)):0===d&&c>0&&(o=0!==p.cell||!e[0].columns||t.columns||u._group?"append":"prepend",S(e,t,f,K(u.columns),u.thead,u.lockedHeader.find("thead"),this._groups(),o)),(t.columns||h.cell-p.cell>1||p.cell-h.cell>1)&&(t=M(u.columns,t,e[0],n,u.columns),t&&(d>0&&0===c?u._reorderHeader(f,t,n,u.thead):0===d&&c>0?u._reorderHeader(f,t,n,u.lockedHead):u._reorderHeader(f,t,n)))):d!==c&&C(r[h.cell],u.columns,d),a(r,h.cell,p.cell,n,e.length)},_reorderContent:function(t,n,i){var o,r,l,d,c,u,h=this,p=e(),f=t[0],m=w(t),g=at(f,ne(h.columns)),v=at(n,ne(h.columns)),_=at(m[0],J(h.columns)),b=at(n,J(h.columns)),k=$(h.columns).length,y=!!n.locked,x=h.footer||h.wrapper.find(".k-grid-footer"),C=o=b;for(n.hidden&&(l=y?$(h.columns):K(h.columns),w(l).length>0?(C=o=b=this._findClosestVisibleColumnIndex(l,v),r=w(l.slice(v)).length>0):y?(b=h.lockedTable.find("colgroup"),C=h.lockedHeader.find("colgroup"),o=e(h.lockedFooter).find(">table>colgroup")):(b=h.tbody.prev(),C=h.thead.prev(),o=x.find(".k-grid-footer-wrap").find(">table>colgroup"))),h._hasFilterRow()&&a(h.wrapper.find(".k-filter-row th:not(.k-group-cell,.k-hierarchy-cell)"),g,v,i,t.length),_>=0&&a(s(h.lockedHeader,h.thead.prev(),"col:not(.k-group-col,.k-hierarchy-col)"),_,C,r?r:i,m.length),h.options.scrollable&&_>=0&&!h._hasVirtualColumns()&&a(s(h.lockedTable,h.tbody.prev(),"col:not(.k-group-col,.k-hierarchy-col)"),_,b,r?r:i,m.length),x&&x.length&&(_>=0&&a(s(h.lockedFooter,x.find(".k-grid-footer-wrap"),">table>colgroup>col:not(.k-group-col,.k-hierarchy-col)"),_,o,r?r:i,m.length),a(x.find(".k-footer-template>td:not(.k-group-cell,.k-hierarchy-cell)"),g,v,i,t.length)),d=h.tbody.children(":not(.k-grouping-row,.k-detail-row)"),h.lockedTable&&(k>v?k<=g&&we(h.lockedTable.find(">tbody>tr.k-grouping-row"),h.table.find(">tbody>tr.k-grouping-row"),t.length):k>g&&we(h.table.find(">tbody>tr.k-grouping-row"),h.lockedTable.find(">tbody>tr.k-grouping-row"),t.length),p=h.lockedTable.find(">tbody>tr:not(.k-grouping-row,.k-detail-row)")),c=0,u=d.length;c<u;c+=1)a(s(p[c],d[c],">td:not(.k-group-cell,.k-hierarchy-cell)"),g,v,i,t.length)},_findClosestVisibleColumnIndex:function(e,t){var n=w(e.slice(t)).length>0?e.slice(t):e.slice(0,t+1).reverse(),i=w(n)[0];return at(i,w(this.columns))},_autoFitLeafColumn:function(e){this.autoFitColumn(ne(this.columns)[e])},autoFitColumn:function(t){var n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,_,w,k,y,x,C,S,T=this,D=T.options,A=T.columns,E=T.lockedHeader?oe(T.lockedHeader.find(">table>thead")).filter(v).length:0,I="col:not(.k-group-col):not(.k-hierarchy-col)",M="td:visible:not(.k-group-cell):not(.k-hierarchy-cell)";if(t="number"==typeof t?A[t]:tt(t)?ot(z(A),function(e){return e===t})[0]:ot(z(A),function(e){return e.field===t})[0],t&&b(t)){for(s=t.minResizableWidth,n=at(t,ne(A)),r=t.locked,o=r?T.lockedHeader.children("table"):T.thead.parent(),i=o.find("[data-index='"+n+"']"),c=i.find("a.k-header-column-menu, a.k-grid-filter"),h=r?T.lockedTable:T.table,p=T.footer||e(),T.footer&&T.lockedContent&&(p=T.footer.children(r?".k-grid-footer-locked":".k-grid-footer-wrap")),f=p.find("table").first(),T.lockedHeader&&!r&&(n-=E),m=0;m<A.length&&A[m]!==t;m++)A[m].hidden&&n--;if(D.scrollable?(a=o.find(I).eq(n).add(h.children("colgroup").find(I).eq(n)).add(f.find("colgroup").find(I).eq(n)),r||(l=h.parent(),d=qe.scrollLeft(l))):a=h.children("colgroup").find(I).eq(n),g=o.add(h).add(f),ni.safari&&i.css("white-space","initial"),_=Ze(i),a.width(""),g.css("table-layout","fixed"),a.width("auto"),g.addClass("k-autofitting"),g.css("table-layout",""),u=c.length?Ze(c)+Ze(i):Ze(i),w=Math.ceil(Math.max(u,Ze(h.find("tr:not(.k-grouping-row)").eq(0).children(M).eq(n)),Ze(f.find("tr").eq(0).children(M).eq(n))))+1,s&&s>w&&(w=s),a.width(w),t.width=w,ni.safari&&i.css("white-space",""),D.scrollable){for(k=o.find("col"),x=0,C=0,S=k.length;C<S;C+=1)if(y=k[C].style.width,y&&y.indexOf("%")==-1)x+=parseInt(y,10);else{if(!k.eq(C).hasClass("k-group-col")){x=0;break}x+=parseInt(k.eq(C).width(),10)}x&&g.each(function(){this.style.width=x+"px"})}ni.msie&&8==ni.version&&(g.css("display","inline-table"),setTimeout(function(){g.css("display","table")},1)),g.removeClass("k-autofitting"),d&&qe.scrollLeft(l,d),T.trigger(fn,{column:t,oldWidth:_,newWidth:w}),T._applyLockedContainersWidth(),T._syncLockedContentHeight(),T._syncLockedHeaderHeight(),T._updateStickyColumns()}},reorderColumn:function(e,n,i){var o,r,a=this,s=c(n,a.columns),l=s?s.columns:a.columns,d=at(n,l),u=l[e],h=a.virtualScroll||{},p=!!u.locked,f=$(a.columns).length,m=ot(ne(a.columns),function(e){return e.groupHeaderColumnTemplate});d!==e&&(!n.locked&&p&&1==K(a.columns).length||n.locked&&!p&&1==f||(a._hideResizeHandle(),i===t&&(i=e<d),r=[n],a._reorderHeader(r,u,i),a.lockedHeader&&(V(a.thead),V(a.lockedHeader)),u.columns&&(u=ne(u.columns),u=u[i?0:u.length-1]),n.columns&&(r=ne(n.columns)),a._reorderContent(r,u,i),o=!!n.locked,o=o!=p,n.locked=p,l.splice(i?e:e+1,0,n),l.splice(d<e?d:d+1,1),a._updateLockedCols(),a._updateCols(),a._templates(),a._updateColumnCellIndex(),a._updateColumnSorters(),m.length>0&&a._renderGroupRows(),a._updateTablesWidth(),a._applyLockedContainersWidth(),a._syncLockedHeaderHeight(),a._syncLockedContentHeight(),a._updateFirstColumnClass(),a._updateStickyColumns(),h.columns&&a.refresh(),o&&(p?a.trigger(gn,{column:n}):a.trigger(vn,{column:n}))))},_updateColumnCellIndex:function(){var e,t=0;this.lockedHeader&&(e=this.lockedHeader.find("thead"),t=T(e,$(this.columns))),T(this.thead,K(this.columns),t)},lockColumn:function(e){var t,n=this.columns;e="number"==typeof e?n[e]:ot(n,function(t){return t.field===e})[0],!e||e.locked||e.hidden||(e.sticky&&this.unstickColumn(n.indexOf(e)),t=$(n).length-1,this.reorderColumn(t,e,!1))},unlockColumn:function(e){var t,n=this.columns;e="number"==typeof e?n[e]:ot(n,function(t){return t.field===e})[0],e&&e.locked&&!e.hidden&&(t=$(n).length,this.reorderColumn(t,e,!0))},stickColumn:function(e){var t=this.columns;e="number"==typeof e?t[e]:ot(t,function(t){return t.field===e})[0],!e||e.sticky||e.hidden||e.locked&&(this.unlockColumn(t.indexOf(e)),e.locked)||(e.sticky=!0,this._updateStickyColumns())},unstickColumn:function(e){var t=this.columns;e="number"==typeof e?t[e]:ot(t,function(t){return t.field===e})[0],e&&e.sticky&&!e.locked&&!e.hidden&&(this._removeStickyAttributes([e]),this._removeStickyStyles(Y(t)),e.sticky=!1,this._updateStickyColumns())},cellIndex:function(t){var n=0;return this.lockedTable&&!e.contains(this.lockedTable[0],t[0])&&(n=ne($(this.columns)).length),e(t).parent().children("td:not(.k-group-cell,.k-hierarchy-cell)").index(t)+n},_modelForContainer:function(t){t=e(t),t.is("tr")||"popup"===this._editMode()||(t=t.closest("tr"));var n=t.attr(qe.attr("uid"));return this.dataSource.getByUid(n)},_calculateColumnIndex:function(t){var n=this.cellIndex(t),i=0;return this._hasVirtualColumns()&&(i=parseInt(e(t).closest("tr").find("td:first").attr("colspan"),10),i=i>1?i-1:0),n+i},_editable:function(){var t,n=this,i=n.options.editable,o=function(){var t=Qe(),i=n._editContainer;i&&i[0]&&!e.contains(i[0],t)&&i[0]!==t&&!e(t).closest(".k-animation-container").length&&(n.editable.end()?n.closeCell():n._scrollVirtualWrapper())};i&&(this.wrapper.addClass("k-editable"),t=n._editMode(),"incell"===t?(n.table.add(n.lockedTable).on("mousedown"+Tt,bt+">"+wt,function(t){var i=e(t.target);"incell"===n._editMode()&&i.hasClass("k-checkbox")&&i.prev().attr(qe.attr("bind"))&&t.preventDefault()}),i.update!==!1&&(ai&&n.wrapper.on(kn+Tt,".k-edit-cell > input[type='checkbox']",function(t){e(t.target).focus()}).on(kn+Tt,".k-edit-cell",function(t){e(t.target).is("input")||e(t.currentTarget).find("input[type='checkbox']").focus()}).on(yn+Tt,"tr:not(.k-grouping-row) > td",function(t){var i=n._editContainer;n._mousedownOnEditCell=!(!i||!i[0]||!e.contains(i[0],t.target)&&i[0]!==t.target)}),n.editableUserEvents=new qe.UserEvents(n.wrapper,{filter:"tr:not(.k-grouping-row) > td",allowSelection:!0,tap:function(t){var i=e(t.target),o=n.lockedTable&&i.closest("table")[0]===n.lockedTable[0];n._mousedownOnEditCell=!1,i.hasClass("k-hierarchy-cell")||i.hasClass("k-detail-cell")||i.hasClass("k-group-cell")||i.hasClass("k-edit-cell")||i.has("a.k-grid-delete").length||i.has("button.k-grid-delete").length||i.closest("tbody")[0]!==n.tbody[0]&&!o||e(t.target).is(":input")||(n.editable?n.editable.end()?(e(Qe()).blur(),n.closeCell(),n.editCell(i)):n._scrollVirtualWrapper():n.editCell(i))}}),n.wrapper.on("focusin"+Tt,function(){e.contains(this,Qe())||(clearTimeout(n.timer),n.timer=null)}).on("focusout"+Tt,function(e){var t=!0;(ai&&n._mousedownOnEditCell||n._virtualColScroll)&&(t=!1),n._mousedownOnEditCell=!1,t&&(n.timer=setTimeout(function(){o(e)},1))}))):i.update!==!1&&(n.wrapper.on(kn+Tt,"tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit",function(t){t.preventDefault(),n.editRow(e(this).closest("tr"))}),n._isVirtualInlineEditable()&&n.wrapper.on("focusout"+Tt,"tr:not(.k-grouping-row) > td",function(){n.editable&&!n.editable.end()&&n._scrollVirtualWrapper()})),i.destroy!==!1?n.wrapper.on(kn+Tt,"tbody>tr:not(.k-detail-row,.k-grouping-row):visible .k-grid-delete",function(t){t.preventDefault(),t.stopPropagation(),n.removeRow(e(this).closest("tr"))}):n.wrapper.on(kn+Tt,"tbody>tr:not(.k-detail-row,.k-grouping-row):visible button.k-grid-delete",function(e){e.stopPropagation(),n._confirmation()||e.preventDefault()}))},editCell:function(t){var n,i,o,r;if(t=e(t),n=this,i=ne(n.columns)[n._calculateColumnIndex(t)],o=n._modelForContainer(t),n.closeCell(),o&&Ae(i,o)&&!i.command){if(n.trigger(It,{model:o}))return;n._attachModelChange(o),n._editContainer=t,n._shouldClearEditableState&&n._clearEditableState(),n.editable=t.addClass("k-edit-cell").kendoEditable({fields:{field:i.field,format:i.format,editor:i.editor,values:i.values},model:o,target:n,change:function(e){n.trigger(Mt,{values:e.values,container:t,model:o})&&e.preventDefault()},skipFocus:!(!n._isVirtualIncellEditable()&&!n._hasVirtualColumns()||!n._editableState)}).data("kendoEditable"),r=t.parent().addClass("k-grid-edit-row"),n.lockedContent&&(xe(r[0],n._relatedRow(r).addClass("k-grid-edit-row")[0]),n._syncLockedScroll()),n.trigger(Et,{container:t,model:o})}},_adjustLockedHorizontalScrollBar:function(){var e=this.table,t=e.parent(),n=e[0].offsetWidth>t[0].clientWidth?qe.support.scrollbar():0;this.lockedContent.height(t[0].offsetHeight-n)},_syncLockedScroll:function(){this.lockedContent[0].scrollTop=this.content[0].scrollTop,this.virtualScrollable&&(this.lockedContent[0].scrollTop=this.wrapper.find(".k-virtual-scrollable-wrap")[0].scrollTop)},_syncLockedContentHeight:function(){this.lockedTable&&(this.touchScroller||this._adjustLockedHorizontalScrollBar(),this._adjustRowsHeight(this.table,this.lockedTable))},_syncLockedHeaderHeight:function(){var e,t;this.lockedHeader&&(e=this.lockedHeader.children("table"),t=this.thead.parent(),this._adjustRowsHeight(e,t),ye(e,t))},_syncLockedFooterHeight:function(){this.lockedFooter&&this.footer&&this.footer.length&&this._adjustRowsHeight(this.lockedFooter.children("table"),this.footer.find(".k-grid-footer-wrap > table"))},_destroyEditable:function(){var e=this,t=function(){if(e.editable){var t=e.editView?e.editView.element:e._editContainer;t&&(t.off(kn+Tt,"a.k-grid-cancel",e._editCancelClickHandler),t.off(kn+Tt,"a.k-grid-update",e._editUpdateClickHandler)),e._detachModelChange(),e.editable.destroy(),e.editable=null,e._editContainer=null,e._destroyEditView(),e._editableIsClosing=null}};e.editable&&("popup"!==e._editMode()||e._isMobile?t():e._editableIsClosing?e._editContainer.data("kendoWindow").bind("deactivate",t):(e._editableIsClosing=!0,e._editContainer.data("kendoWindow").bind("deactivate",t).close())),e._confirmDialog&&(e._confirmDialog.close(),e._confirmDialog.destroy(),e._confirmDialog=null)},_destroyEditView:function(){this.editView&&(this.editView.purge(),this.editView=null,this.pane.navigate(""))},_attachModelChange:function(e){var t=this;t._modelChangeHandler=function(e){t._modelChange({field:e.field,model:this})},e.bind("change",t._modelChangeHandler)},_detachModelChange:function(){var e=this,t=e._editContainer,n=e._modelForContainer(t);n&&n.unbind(Nt,e._modelChangeHandler)},closeCell:function(e){var t,n,i,o=this,r=o._editContainer;r&&(i=o._modelForContainer(r),e&&o.trigger("cancel",{container:r,model:i})||(o.trigger(Ht,{type:e?"cancel":"save",model:i,container:r}),r.removeClass("k-edit-cell"),t=ne(o.columns)[o._calculateColumnIndex(r)],n=r.parent().removeClass("k-grid-edit-row"),o.lockedContent&&o._relatedRow(n).removeClass("k-grid-edit-row"),o._destroyEditable(),o._displayCell(r,t,i),o._shouldClearEditableState&&o._clearEditableState(),o.trigger("itemChange",{item:n,data:i,ns:Ge}),o.lockedContent&&xe(n.css("height","")[0],o._relatedRow(n).css("height","")[0])))},_displayCell:function(e,t,n){var i=this,o={storage:{},
count:0},r=nt({},qe.Template,i.options.templateSettings),a=qe.template(i._cellTmpl(t,o),r);o.count>0&&(a=lt(a,o.storage)),e.empty().html(a(n)),i.angular("compile",function(){return{elements:e,data:[{dataItem:n}]}})},removeRow:function(e){this._confirmation(e)&&this._removeRow(e)},_removeRow:function(t){var n,i,o,r,a=this,s=a._editMode();"incell"!==s&&a.cancelRow(),t=e(t),a.lockedContent&&(t=t.add(a._relatedRow(t))),t=t.hide(),a.dataSource._isGroupPaged()&&a._removeGroupIfEmpty(t),n=a._modelForContainer(t),n&&!a.trigger(Rt,{row:t,model:n})?(r=a.dataSource.options.schema,a._selectedIds&&r&&r.model&&(i=dt(a.dataSource.options.schema.model)?a.dataSource.options.schema.model.fn.idField:a.dataSource.options.schema.model.id,o=n[i],delete a._selectedIds[o]),a.dataSource.remove(n),"inline"!==s&&"popup"!==s||a.dataSource.sync()):"incell"===s&&a._destroyEditable()},_editMode:function(){var e="incell",t=this.options.editable;return t!==!0&&(e="string"==typeof t?t:t.mode||e),e},editRow:function(t){var n,i,o,r=this;t instanceof Ke?n=t:(t=e(t),n=r._modelForContainer(t)),i=r._editMode(),r.cancelRow(),n&&(t=r.tbody.children("["+qe.attr("uid")+"="+n.uid+"]"),r._attachModelChange(n),"popup"===i?r._createPopupEditor(n):"inline"===i?r._createInlineEditor(t,n):"incell"===i&&e(t).children(vt).each(function(){var t=e(this),i=ne(r.columns)[r._calculateColumnIndex(t)];if(n=r._modelForContainer(t),n&&(!n.editable||n.editable(i.field))&&i.field&&!i.selectable)return r.editCell(t),!1}),o=r.editView?r.editView.element:r._editContainer,o&&(this._editCancelClickHandler||(this._editCancelClickHandler=lt(this._editCancelClick,this)),o.on(kn+Tt,"a.k-grid-cancel",this._editCancelClickHandler),this._editUpdateClickHandler||(this._editUpdateClickHandler=lt(this._editUpdateClick,this)),o.on(kn+Tt,"a.k-grid-update",this._editUpdateClickHandler)))},_editUpdateClick:function(e){e.preventDefault(),e.stopPropagation(),this.saveRow()},_editCancelClick:function(t){var n,i=this,o=i.options.navigatable,r=i.editable.options.model,a=i.editView?i.editView.element:i._editContainer;t.preventDefault(),t.stopPropagation(),i.trigger("cancel",{container:a,model:r})||(n=i.items().index(e(i.current()).parent()),i.cancelRow(),o&&(i._setCurrent(i.items().eq(n).children().filter(wt).first()),Se(i.table,!0)))},_createPopupEditor:function(n){var i,o,r,a,s,l,d,c,u,h,p,f,m,g=this,v="<div "+qe.attr("uid")+'="'+n.uid+'" class="k-popup-edit-form"><'+(g._isMobile?'ul class="k-edit-form-container k-listgroup k-listgroup-flush">':'div class="k-edit-form-container">'),_=[],b=ne(g.columns),w=qe.guid(),k=g.options.editable,y=k.template,x=tt(k)?k.window:{},C=nt({},qe.Template,g.options.templateSettings);if(!g.trigger(It,{model:n})){if(x=x||{},y)for(typeof y===Tn&&(y=qe.unescape(y)),v+=qe.template(y,C)(n),r=0,a=b.length;r<a;r++)i=b[r],i.command&&(h=Ce(i.command,"edit"),h&&(o=h));else for(r=0,a=b.length;r<a;r++)i=b[r],i.selectable||(i.command?i.command&&(h=Ce(i.command,"edit"),h&&(o=h)):g._isMobile?(v+='<li class="k-item k-listgroup-item">',Ae(i,n)?(_.push({field:i.field,title:i.title,format:i.format,editor:i.editor,values:i.values}),v+='<label class="k-label k-listgroup-form-row">',v+='<span class="k-item-title k-listgroup-form-field-label">'+(i.title&&(g.options.encodeTitles?Oe(i.title,!0):i.title)||i.field||"")+"</span>",v+='<div class="k-listgroup-form-field-wrapper" id="'+i.field+"_"+w+'" '+qe.attr("container-for")+'="'+i.field+'"></div>',v+="</label>"):(f={storage:{},count:0},s=qe.template(g._cellTmpl(i,f),C),f.count>0&&(s=lt(s,f.storage)),v+='<label class="k-label k-listgroup-form-row k-no-click">',v+='<span class="k-item-title k-listgroup-form-field-label">'+(i.title&&(g.options.encodeTitles?Oe(i.title,!0):i.title)||i.field||"")+"</span>",v+='<span class="k-no-editor k-listgroup-form-field-wrapper">'+s(n)+"</span>",v+="</label>"),v+="</li>"):(v+='<div class="k-edit-label"><label for="'+i.field+'">'+(i.title&&(g.options.encodeTitles?Oe(i.title):i.title)||i.field||"")+"</label></div>",Ae(i,n)?(_.push({field:i.field,title:i.title,format:i.format,editor:i.editor,values:i.values}),v+="<div "+qe.attr("container-for")+'="'+i.field+'" class="k-edit-field"></div>'):(f={storage:{},count:0},s=qe.template(g._cellTmpl(i,f),C),f.count>0&&(s=lt(s,f.storage)),v+='<div class="k-edit-field k-no-editor">'+s(n)+"</div>")));o&&tt(o)&&(tt(o.text)&&(l=o.text.update,d=o.text.cancel),tt(o.iconClass)&&(c=o.iconClass.update,u=o.iconClass.cancel),o.attr&&(p=o.attr)),g._isMobile?(v+="</ul></div>",g.editView=g.pane.append("<div data-"+qe.ns+'role="view" class="k-grid-edit-form"><div data-'+qe.ns+'role="header" class="k-header"><a href="\\#" class="k-header-cancel k-link k-grid-cancel" title="#=messages.cancel#" aria-label="#=messages.cancel#"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+(g.options.messages.commands.edit||"Edit")+'<a href="\\#" class="k-header-done k-link k-grid-update" title="#=messages.done#" aria-label="#=messages.done#"><span class="k-icon k-i-check"></span></a></div><div data-'+qe.ns+'role="content" class="'+si.content+'">'+v+"</div></div>"),m=g._editContainer=g.editView.element.find(".k-popup-edit-form")):(v+='<div class="k-edit-buttons k-state-default">',v+=g._createButton({name:"update",text:l,attr:p,iconClass:c})+g._createButton({name:"canceledit",text:d,attr:p,iconClass:u}),v+="</div></div></div>",m=g._editContainer=e(v).appendTo(g.wrapper).eq(0).kendoWindow(nt({modal:!0,resizable:!1,draggable:!0,title:g.options.messages.commands.edit||"Edit",visible:!1,close:function(i){if(i.userTriggered){if(i.sender.element.focus(),g.trigger("cancel",{container:m,model:n}))return i.preventDefault(),t;var o=g.items().index(e(g.current()).parent());g._editableIsClosing=!0,g.cancelRow(),g.options.navigatable&&(g._setCurrent(g.items().eq(o).children().filter(wt).first()),Se(g.table,!0))}}},x))),g.editable=g._editContainer.kendoEditable({fields:_,model:n,clearContainer:!1,target:g}).data("kendoEditable"),g._openPopUpEditor(),g.trigger(Et,{container:m,model:n})}},_openPopUpEditor:function(){var e=this,t=e._editContainer?e._editContainer.data("kendoWindow"):null,n=(e.options.editable||{}).window||{};this._isMobile?this.pane.navigate(this.editView,this._editAnimation):t&&(n.position||t.center(),t.open())},_createInlineEditor:function(t,n){var i,o,r,a=this,s=[];a.trigger(It,{model:n})||(a.lockedContent&&(t=t.add(a._relatedRow(t))),t.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){if(o=e(this),i=ne(a.columns)[a._calculateColumnIndex(o)],!i.command&&Ae(i,n))s.push({field:i.field,title:i.title,format:i.format,editor:i.editor,values:i.values}),o.attr(qe.attr("container-for"),i.field),o.empty();else if(i.command&&(r=Ce(i.command,"edit"))){o.empty();var t,l,d,c,u;tt(r)&&(tt(r.text)&&(t=r.text.update,l=r.text.cancel),tt(r.iconClass)&&(d=r.iconClass.update,c=r.iconClass.cancel),r.attr&&(u=r.attr)),e(a._createButton({name:"update",text:t,attr:u,iconClass:d})+a._createButton({name:"canceledit",text:l,attr:u,iconClass:c})).appendTo(o)}}),a._editContainer=t,a._editContainer.addClass("k-grid-edit-row"),a._shouldClearEditableState&&a._clearEditableState(),a.editable=new qe.ui.Editable(a._editContainer,{target:a,fields:s,model:n,skipFocus:a._isVirtualInlineEditable()&&a._editableState&&!!a._editableState.field||a._hasVirtualColumns(),clearContainer:!1}),t.length>1&&(xe(t[0],t[1]),a._applyLockedContainersWidth()),a.trigger(Et,{container:t,model:n}))},cancelRow:function(e){var t,n=this,i=n._editContainer;if(i){if(t=n._modelForContainer(i),!t||e&&n.trigger("cancel",{container:i,model:t}))return;n._destroyEditable(),n.dataSource.cancelChanges(t),n._clearEditableState(),n._displayRow("popup"!==n._editMode()?i:n.tbody.find("["+qe.attr("uid")+"="+t.uid+"]"))}},saveRow:function(){var t,n=this,i=this._editContainer,o=this._modelForContainer(i),r=e.Deferred();return i&&this.editable?(t=n.editable&&n.editable.end(),!t||this.trigger(Mt,{container:i,model:o})?(t||n._scrollVirtualWrapper(),r.reject().promise()):(n._clearEditableState(),this.dataSource.sync())):r.resolve().promise()},_displayRow:function(t){var n,i,o,r,a,s=this,l=s._modelForContainer(t),d=t.hasClass("k-state-selected"),c=t.hasClass("k-alt");l&&(s.lockedContent&&(n=e((c?s.lockedAltRowTemplate:s.lockedRowTemplate)(l)),s._relatedRow(t.last()).replaceWith(n)),s.angular("cleanup",function(){return{elements:t.get()}}),i=e((c?s.altRowTemplate:s.rowTemplate)(l)),t.is(":visible")||i.hide(),t.replaceWith(i),s.trigger("itemChange",{item:i,data:l,ns:Ge}),n&&n.length&&s.trigger("itemChange",{item:n,data:l,ns:Ge}),r=i,a=[{dataItem:l}],n&&n.length&&(r=i.add(n),a.push({dataItem:l})),s.angular("compile",function(){return{elements:r.get(),data:a}}),d&&(s.options.selectable||s._checkBoxSelection)&&s.select(i.add(n)),n&&xe(i[0],n[0]),o=i.next(),o.hasClass("k-detail-row")&&o.is(":visible")&&i.find(".k-hierarchy-cell .k-icon").removeClass("k-i-expand").addClass("k-i-collapse"))},_showMessage:function(t,n){var i,o=this;return o._isMobile?(i=o._confirmDialog=new qe.ui.Confirm(e("<div />").appendTo(document.body),{modal:{preventScroll:!0},closable:!1,title:!1,content:t.title,messages:{okText:t.confirmDelete,cancel:t.cancelDelete},open:function(){o.content.data(Bn,o.content.css(Bn)),o.content.css(Bn,Ln)},close:function(){o.content.css(Bn,o.content.data(Bn))}}),i.result.done(function(){o._removeRow(n)}).fail(function(){var e=o._confirmDialog;e&&(e.close(),e.destroy())}),!1):window.confirm(t.title)},_confirmation:function(e){var t=this,n=t.options.editable,i=n===!0||typeof n===Tn?t.options.messages.editable.confirmation:n.confirmation;return tt(n)&&typeof n.mode===Tn&&typeof i!==Sn&&typeof i!==Tn&&i!==!1&&(i=t.options.messages.editable.confirmation),i===!1||null==i||(typeof i===Sn&&(i=i(t._modelForContainer(e))),t._showMessage({confirmDelete:n.confirmDelete||t.options.messages.editable.confirmDelete,cancelDelete:n.cancelDelete||t.options.messages.editable.cancelDelete,title:i===!0?t.options.messages.editable.confirmation:i},e))},cancelChanges:function(){var e=this;e.dataSource.cancelChanges(),e._isVirtualEditable()&&e._virtualPageToTop(function(){e.virtualScrollable.scrollToTop()})},saveChanges:function(){var e=this,t=e.editable&&e.editable.end();!t&&e.editable||e.trigger(Wt)?t||e._scrollVirtualWrapper():e.dataSource.sync()},addRow:function(){var e,t,n=this,i=n.dataSource,o=n._editMode(),r=n.options.editable.createAt||"",a=i.pageSize(),s=i.view()||[],l=r.toLowerCase()===Dn,d=n._isVirtualEditable();n.editable&&n.editable.end()||!n.editable?("incell"!=o&&n.cancelRow(),e=i.indexOf(s[0]),l&&(e+=s.length,a&&!i.options.serverPaging&&a<=s.length&&(e-=1)),e<0&&(e=i.page()>i.totalPages()?(i.page()-1)*a:0),n.options.navigatable&&"incell"==o&&n._removeCurrent(),d?n._virtualAddRow():(t=i.insert(e,{}),n._editModel(t))):n._scrollVirtualWrapper()},_editModel:function(e){var t,n,i,o,r=this,a=r.options.editable.createAt||"",s=r._editMode();e&&(t=e.uid,n=r.lockedContent?r.lockedTable:r.table,i=n.find("tr["+qe.attr("uid")+"="+t+"]"),o=i.children("td:not(.k-group-cell,.k-hierarchy-cell)").eq(r._firstEditableColumnIndex(i)),"inline"===s&&i.length?r.editRow(i):"popup"===s?r.editRow(e):o.length&&r.editCell(o),"bottom"==a.toLowerCase()&&r.lockedContent&&(r.lockedContent[0].scrollTop=r.content[0].scrollTop=r.table[0].offsetHeight))},_virtualAddRow:function(){var e=this,t=(e.options.editable.createAt||"").toLowerCase()===Dn;e._clearEditableState(),t?e._virtualAddRowAtBottom():e._virtualAddRowAtTop()},_virtualAddRowAtTop:function(){var e,t=this,n=t.dataSource,i=t.virtualScrollable;1===n.page()?(e=n.insert(0,{}),t._editModel(e),i.scrollToTop()):t._virtualPageToTop(function(){e=n.insert(0,{}),t._editModel(e),i.scrollToTop()})},_virtualAddRowAtBottom:function(){var e,t=this,n=t.dataSource,i=t.virtualScrollable,o=n.total();n.at(o-1)instanceof Ke?(e=n.insert(o,{}),t._virtualPageToBottom(function(){t._editModel(e),i.scrollToBottom()})):t._virtualPageToBottom(function(){e=n.insert(o,{}),t._editModel(e),i.scrollToBottom()})},_virtualPageToTop:function(e){var t=this;t._virtualPage(0,t.dataSource.take(),function(){e()})},_virtualPageToBottom:function(e){var t=this,n=t.dataSource,i=n.take(),o=n.total(),r=o>i?o-i:0;t._virtualPage(r,i,function(){e()})},_virtualPage:function(e,t,n){var i=this;i._isVirtualEditable()&&(i.virtualScrollable._preventScroll=!0,i.virtualScrollable._page(e,t,n))},_firstEditableColumnIndex:function(e){var t,n,i,o=this,r=ne(o.columns),a=o._modelForContainer(e);for(n=0,i=r.length;n<i;n++)if(t=r[n],a&&(!a.editable||a.editable(t.field))&&!t.command&&t.field&&t.hidden!==!0)return n;return-1},_toolbar:function(){var t,n=this,i=n.wrapper,o=n.options.toolbar,r=n.options.editable;o&&(t=n.wrapper.find(".k-grid-toolbar"),t.length||(dt(o)||(o=typeof o===Tn?o:n._toolbarTmpl(o).replace(Kn,"\\#"),o=lt(qe.template(o),n)),t=e('<div class="k-header k-grid-toolbar" />').html(o({})).prependTo(i),n.angular("compile",function(){return{elements:t.get()}})),r&&r.create!==!1&&t.on(kn+Tt,".k-grid-add",function(e){e.preventDefault(),n.addRow()}).on(kn+Tt,".k-grid-cancel-changes",function(e){e.preventDefault(),n.cancelChanges()}).on(kn+Tt,".k-grid-save-changes",function(e){e.preventDefault(),n.saveChanges()}),t.on(kn+Tt,".k-grid-excel",function(e){e.preventDefault(),n.saveAsExcel()}),t.on(kn+Tt,".k-grid-pdf",function(e){e.preventDefault(),n.saveAsPDF()}),t.on(In+Tt,".k-grid-search input",function(e){var t=e.currentTarget;clearTimeout(n._searchTimeOut),n._searchTimeOut=setTimeout(function(){var e,i,o,r,a;if(n._searchTimeOut=null,e=n.options,i=e.search?e.search.fields:null,o={filters:[],logic:"or"},r=t.value,i||(i=ie(e.columns)),n.dataSource.options.endless&&(n.dataSource.options.endless=null,n._endlessPageSize=n.dataSource.options.pageSize),r)for(a=0;a<i.length;a++)o.filters.push({field:i[a],operator:"contains",value:r});else o={};n.dataSource.filter(o)},300)}))},_toolbarTmpl:function(e){var t,n,i,o=this,r="",a="",s=o.options.messages.commands;if(rt(e))for(t=0,n=e.length;t<n;t++)i="string"==typeof e[t]?e[t].toLowerCase():(e[t].name||"").toLowerCase(),"search"===i?("string"!=typeof e[t]&&(a=e[t].text),a=a||s.search,r+="<span class='k-textbox k-grid-search k-display-flex'>",r+="<input autocomplete='off' placeholder='"+a+"' title='"+a+"' class='k-input' />",r+="<span class='k-input-icon'><span class='k-icon k-i-search'></span></span>",r+="</span>"):r+=o._createButton(e[t]);return r},_createButton:function(e){var n,i=e.template||Zn,r=typeof e===Tn?e:e.name||e.text,a=Ue[r]?Ue[r].className:"k-grid-"+(r||"").replace(/\s/g,""),s={className:a,text:r,attr:"",iconClass:""},l=this.options.messages.commands;if(!(r||tt(e)&&e.template))throw Error("Custom commands should have name specified");return tt(e)?(e=nt(!0,{},e),e.className&&at(s.className,e.className.split(" "))<0?e.className+=" "+s.className:e.className===t&&(e.className=s.className),"edit"===r&&(e=nt(!0,{},e),e.text=tt(e.text)?e.text.edit:e.text,e.iconClass=tt(e.iconClass)?e.iconClass.edit:e.iconClass),e.attr&&(tt(e.attr)&&(e.attr=o(e.attr)),typeof e.attr===Tn&&(n=e.attr.match(/class="(.+?)"/),n&&at(n[1],e.className.split(" "))<0&&(e.className+=" "+n[1]))),s=nt(!0,s,Ue[r],{text:l[r]},e)):s=nt(!0,s,Ue[r],{text:l[r]}),qe.template(i)(s)},_hasFooters:function(){return!!this.footerTemplate||!!this.groupFooterTemplate||this.footer&&this.footer.length>0||this.wrapper.find(".k-grid-footer").length>0},_groupable:function(){var t=this;t._groupableClickHandler?t.table.add(t.lockedTable).off(kn+Tt,t._groupableClickHandler):t._groupableClickHandler=function(n){var i=e(this),o=i.closest("tr"),r=t._groupRows?t._groupRows[t.wrapper.find(".k-grouping-row").index(o)]:{};i.hasClass("k-i-collapse")?t.trigger("groupCollapse",{group:r,element:o})||t.collapseGroup(o):t.trigger("groupExpand",{group:r,element:o})||t.expandGroup(o),n.preventDefault(),n.stopPropagation()},t._isLocked()?t.lockedTable.on(kn+Tt,".k-grouping-row .k-i-expand, .k-grouping-row .k-i-collapse",t._groupableClickHandler):t.table.on(kn+Tt,".k-grouping-row .k-i-expand, .k-grouping-row .k-i-collapse",t._groupableClickHandler),t._attachGroupable()},_attachGroupable:function(){var t=this,n=t.wrapper,i=t.options.groupable,o=St+"["+qe.attr("field")+"]",r=t.content?".k-grid-header:first "+o:"table:first>.k-grid-header "+o;i&&i.enabled!==!1&&(n.has("div.k-grouping-header")[0]||e("<div>&nbsp;</div>").addClass("k-grouping-header").prependTo(n),t.groupable&&t._destroyGroupable(),ni.chrome&&(n.find("div.k-grouping-header").css("touch-action","none"),n.find(r).css("touch-action","none")),t.groupable=new Ge.Groupable(n,nt({},i,{draggable:t._draggableInstance,groupContainer:">div.k-grouping-header",dataSource:t.dataSource,draggableElements:r,filter:r,allowDrag:t.options.reorderable,change:function(e){t.trigger("group",{groups:e.groups})?e.preventDefault():(t._clearEditableState(),t.dataSource.options.endless&&(t.dataSource.options.endless=null,t._endlessPageSize=t.dataSource.options.pageSize,t.dataSource._skip=0,t.dataSource._pageSize=t.dataSource._take=t._endlessPageSize,t.dataSource._page=1))}})),t._addGroupableOptionsToHeader())},_addGroupableOptionsToHeader:function(){var e,t,n,i=this,o=z(i.columns),r={},a="",s=i._headerCells(),l="";for(n=0;n<o.length;n++)a=o[n].field,r[o[n].field]=o[n];for(n=0;n<s.length;n++)e=s.eq(n),l=e.attr(qe.attr(En)),t=r[l],t&&t.groupable&&t.groupable.sort&&e.data(Nn,t.groupable.sort)},_destroyGroupable:function(){var e=this;e.groupable&&e.groupable.element&&e.groupable.element.kendoGroupable("destroy"),e.groupable=null,e._removeGroupableOptionsFromHeader()},_removeGroupableOptionsFromHeader:function(){var e,t=this,n=t._headerCells();for(e=0;e<n.length;e++)n.eq(e).removeData(Nn)},_continuousItems:function(t,n){var i,o,r,a,s,l,d,c;if(this.lockedContent){for(i=this,o=i.table.add(i.lockedTable),r=e(t,o[0]),a=e(t,o[1]),s=n?$(i.columns).length:1,l=n?i.columns.length-s:1,d=[],c=0;c<r.length;c+=s)st.apply(d,r.slice(c,c+s)),st.apply(d,a.splice(0,l));return d}},_selectable:function(){var n,i,o,r,a=this,s=[],l=a._isLocked(),d=a.options.selectable;d&&(a.selectable&&a.selectable.destroy(),a._selectedIds={},d=qe.ui.Selectable.parseOptions(d),n=d.multiple,i=d.cell,a._hasDetails()&&(s[s.length]=".k-detail-row"),(a.options.groupable||a._hasFooters()||a._groups())&&(s[s.length]=".k-grouping-row,.k-group-footer"),s=s.join(","),""!==s&&(s=":not("+s+")"),o=a.table,l&&(o=o.add(a.lockedTable)),r=">"+(i?_t:"tbody>tr"+s),a.selectable=new qe.ui.Selectable(o,{filter:r,aria:!0,multiple:n,change:function(){var e;i||a._persistSelectedRows(),a._checkBoxSelection&&(e=a.selectable.value(),a._uncheckCheckBoxes(),a._checkRows(e),a._toggleHeaderCheckState(e.length&&e.length===a.items().length?!0:!1)),a.trigger(Nt)},useAllItems:l&&n&&i,relatedTarget:function(t){var n,o,r,s;if(!i&&l){for(o=e(),r=0,s=t.length;r<s;r++)n=a._relatedRow(t[r]),at(n[0],t)<0&&(o=o.add(n));return o}},continuousItems:function(){return a._continuousItems(r,i)}}),a.options.navigatable&&o.on("keydown"+Tt,function(r){var s=a.current(),d=r.target;if(s)if(r.keyCode===et.SPACEBAR&&!r.shiftKey&&e.inArray(d,o)>-1&&!s.is(".k-edit-cell,.k-header")&&s.parent().is(":not(.k-grouping-row,.k-detail-row,.k-group-footer)")){if(r.preventDefault(),r.stopPropagation(),s=i?s:s.parent(),l&&!i&&(s=s.add(a._relatedRow(s))),n)if(r.ctrlKey){if(s.hasClass(Jt))return a._deselectCheckRows(s),t}else a.selectable.clear();else a.selectable.clear();i||(a.selectable._lastActive=s),a.selectable.value(s)}else!i&&(e(d).is("td")||e(d).is("table")&&at(d,this._navigatableTables))&&(r.shiftKey&&r.keyCode==et.LEFT||r.shiftKey&&r.keyCode==et.RIGHT||r.shiftKey&&r.keyCode==et.UP||r.shiftKey&&r.keyCode==et.DOWN||r.keyCode===et.SPACEBAR&&r.shiftKey)&&(r.preventDefault(),r.stopPropagation(),s=s.parent(),l&&(s=s.add(a._relatedRow(s))),n?(a.selectable._lastActive||(a.selectable._lastActive=s),a.selectable.selectRange(a.selectable._firstSelectee(),s)):(a.selectable.clear(),a.selectable.value(s)))}))},_clipboard:function(){var e,t=this.options,n=t.selectable;n&&t.allowCopy&&(e=this,t.navigatable||e.table.add(e.lockedTable).attr("tabindex",0).on("mousedown"+Tt+" keydown"+Tt,".k-detail-cell",function(e){e.target!==e.currentTarget&&e.stopImmediatePropagation()}).on("mousedown"+Tt,bt+">"+wt,lt(Ie,e)),e.copyHandler=lt(e.copySelection,e),e.updateClipBoardState=function(){e.areaClipBoard&&e.areaClipBoard.val(e.getTSV()).focus().select()},e.bind("change",e.updateClipBoardState),e.wrapper.on("keydown",e.copyHandler),e.clearAreaHandler=lt(e.clearArea,e),e.wrapper.on("keyup",e.clearAreaHandler))},copySelection:function(t){t instanceof jQuery.Event&&!t.ctrlKey&&!t.metaKey||e(t.target).is("input:visible,textarea:visible")||window.getSelection&&""+window.getSelection()||document.selection&&document.selection.createRange().text||(this.areaClipBoard||(this.areaClipBoard=e("<textarea />").css({position:"fixed",top:"50%",left:"50%",opacity:0,width:0,height:0}).appendTo(this.wrapper)),this.areaClipBoard.val(this.getTSV()).focus().select())},getTSV:function(){var t,n,i,o,r,a,s=this,l=s.select(),d="\t",c=s.options.allowCopy,u=!0;return e.isPlainObject(c)&&c.delimeter&&(d=c.delimeter),t="",l.length&&(l.eq(0).is("tr")&&(l=l.find("td:not(.k-group-cell)")),u&&l.filter(":visible"),n=[],i=this.columns.length,o=s._isLocked()&&$(s.columns).length,r=!0,e.each(l,function(t,a){var l,d,c,h;a=e(a),l=a.closest("tr"),d=l.index(),c=a.index(),u&&(c-=a.prevAll(":hidden").length),o&&r&&(r=e.contains(s.lockedTable[0],a[0])),s._groups()&&r&&(c-=s._groups()),c=r?c:c+o,i>c&&(i=c),h=a.text(),n[d]||(n[d]=[]),n[d][c]=h}),a=n.length,n=e.each(n,function(e,t){t&&(n[e]=t.slice(i),a>e&&(a=e))}),e.each(n.slice(a),function(e,n){t+=n?n.join(d)+"\r\n":"\r\n"})),t},clearArea:function(t){var n;this.areaClipBoard&&t&&t.target===this.areaClipBoard[0]&&(n=this.options.navigatable?e(this.current()).closest("table"):this.table,Se(n,!0)),this.areaClipBoard&&(this.areaClipBoard.remove(),this.areaClipBoard=null)},_adaptiveColumns:function(){var e=this;e._anyColumnHasMediaQuery()&&(e._setColumnsMediaVisibility(e.columns),e._attachColumnMediaResizeHandler())},_anyColumnHasMediaQuery:function(){return this._columnsWithMediaQuery().length},_columnsWithMediaQuery:function(){return k(this.columns)},_attachColumnMediaResizeHandler:function(){var t=this;t._detachColumnMediaResizeHandler(),t._columnMediaResizeHandler=lt(t._onColumnMediaResize,t),e(window).on(pn+Tt,t._columnMediaResizeHandler)},_detachColumnMediaResizeHandler:function(){var t=this;t._columnMediaResizeHandler&&e(window).off(pn+Tt,t._columnMediaResizeHandler)},_onColumnMediaResize:function(){var e=this;e._setColumnsMediaVisibility(e.columns),e._setContentMediaWidth()},_setColumnsMediaVisibility:function(e){var t,n=e||[];for(t=0;t<n.length;t++)this._setColumnMediaVisibility(n[t])},_setColumnMediaVisibility:function(e){var t=this;y(e.media)?t._setColumnsMediaVisibility(e.columns):g(e)?(t._showColumnByMedia(e),e.hidden||t._setColumnsMediaVisibility(e.columns)):t._hideColumnByMedia(e)},_showColumnByMedia:function(e){e.hidden||this.showColumn(e),m(e)},_hideColumnByMedia:function(e){var t=e.hidden;t||(e._hideByMedia=!0,this.hideColumn(e),e._hideByMedia=!1,e.hidden=t),m(e)},_setContentMediaWidth:function(){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g=this,b=g.options,w=g._isLocked();if(b.scrollable&&b.resizable&&(w&&g.lockedFooter?t=g.lockedFooter.children("table"):g.footer&&(t=g.footer.find(">.k-grid-footer-wrap>table")),t&&t[0]||(t=e()),n=w?g.wrapper.find(".k-grid-header-locked").find("table"):g.wrapper.find(".k-grid-header").find("table"),i=w?g.lockedTable:g.table,o=n.find("th"),r=n.find("colgroup"),a=o.length,s=o.filter(v).length,l=o.length-s,d=0,""!==n[0].style.width&&parseFloat(n[0].style.width)!==d)){for(c=n.css("width"),u=0;u<a;u++)_(o[u])&&(p=Math.max(u,u-l),f=r.children()[p],m=f?f.style.width:"",""!==m?h=parseFloat(m):(n.css("width","auto"),h=Ze(o.eq(u)),n.css("width",c)),d+=h);i.css("width",d-1),n.css("width",d),t.css("width",d),g._updateStickyColumns()}},_minScreenSupport:function(){var t=this.hideMinScreenCols();t&&(this.minScreenResizeHandler=lt(this.hideMinScreenCols,this),e(window).on("resize",this.minScreenResizeHandler))},hideMinScreenCols:function(){var e=this.columns,t=window.innerWidth>0?window.innerWidth:screen.width;return this._iterateMinScreenCols(e,t)},_iterateMinScreenCols:function(e,n){var i,o,r,a=!1;for(i=0;i<e.length;i++)o=e[i],r=o.minScreenWidth,r!==t&&null!==r&&(a=!0,r>n?this.hideColumn(o):this.showColumn(o)),!o.hidden&&o.columns&&(a=this._iterateMinScreenCols(o.columns,n)||a);return a},_stickyColumns:function(){var e=this;e._anyStickyColumns()&&e._setStickyColumns(!1)},_updateStickyColumns:function(){var e=this,t=ot(ne(e.columns),function(e){return e.groupHeaderColumnTemplate});e._anyStickyColumns()&&(e._setStickyColumns(!0),e._templates(),t.length>0&&e._renderGroupRows())},_anyStickyColumns:function(){var e=this;return Y(e.columns).length},_setStickyColumns:function(e){var t=this,n=Y(t.columns),i=Q(t.columns),o=t._calculateStickyWidths(i);t._removeStickyAttributes(n),t._setStickyClassAttributes(n),t._setStickyStyleAttributes(i,o,e),e&&t._setStickyStyles(i,o)},_calculateStickyWidths:function(e,t,n){var i,o,r,a,s,l=this,d=ti?"right":"left",c=ti?"left":"right",u={left:Array(e.length).fill(t?t:0),right:Array(e.length).fill(n?n:0)};for(i=0;i<e.length-1;i++)o=e[i],r=l._sumColumnWidth(o),a=r+u[d][i],u[d][i+1]=a;for(i=e.length-1;i>0;i--)o=e[i],r=l._sumColumnWidth(o),s=r+u[c][i],u[c][i-1]=s;return u},_setStickyClassAttributes:function(e,t){var n,i,o=this;for(n=0;n<e.length;n++)i=e[n],i.columns&&(!t&&n&&(t=n),o._setStickyClassAttributes(ee([i]),t)),t&&q(i,"headerAttributes","class",hn),q(i,"attributes","class",dn),q(i,"headerAttributes","class",cn),q(i,"footerAttributes","class",un)},_setStickyStyleAttributes:function(e,t,n){var i,o,r,a,s,l,d,c=this;for(i=0;i<e.length;i++)o=e[i],r=t.left[i],a=t.right[i],s="left: "+r+"px; right: "+a+"px;",o.columns&&(l=te([o]),d=c._calculateStickyWidths(l,r,a),c._setStickyStyleAttributes(l,d,n),n&&c._setStickyStyles(l,d)),q(o,"attributes","style",s),q(o,"headerAttributes","style",s),q(o,"footerAttributes","style",s),o.stickyStyle=s},_removeStickyAttributes:function(e){var t,n,i=this,o=RegExp("(\\s*"+dn+")*","ig"),r=RegExp("(\\s*"+cn+")*","ig"),a=RegExp("(\\s*"+un+")*","ig"),s=RegExp("(\\s*"+hn+")*","ig"),l=RegExp("(\\s*left\\s*:\\s*\\d*px;?)*","ig"),d=RegExp("(\\s*right\\s*:\\s*\\d*px;?)*","ig");for(t=0;t<e.length;t++)n=e[t],n.columns&&i._removeStickyAttributes(ee([n])),G(n,"attributes","class",o),G(n,"attributes","style",l),G(n,"attributes","style",d),G(n,"headerAttributes","class",r),G(n,"headerAttributes","class",s),G(n,"headerAttributes","style",l),G(n,"headerAttributes","style",d),G(n,"footerAttributes","class",a),G(n,"footerAttributes","style",l),G(n,"footerAttributes","style",d)},_setStickyStyles:function(t,n){var i,o,r,a,s,l,d,c,u,h,p,f=this,m=ne(K(f.columns)),g=f.tbody.children(":not(.k-detail-row)");for(i=0;i<t.length;i++)if(a=t[i],l=n.left[i],d=n.right[i],s=m.indexOf(a),c=f._getColumnHeader(a),c.addClass(cn),a.headerAttributes["class"]&&a.headerAttributes["class"].indexOf(hn)!==-1&&c.addClass(hn),U(c,l,d),!a.columns)for(f.footer&&(u=f.footer.find(".k-grid-footer-wrap tr.k-footer-template").children().filter(":not(.k-group-cell,.k-hierarchy-cell)").eq(s),u.addClass(un),U(u,l,d)),o=0;o<g.length;o++)r=e(g[o]),r.hasClass("k-grouping-row")?(h=r.find("."+a.groupHeaderColumnTemplateClass),h.addClass(dn),U(h,l,d)):(p=r.children().filter(":not(.k-group-cell,.k-hierarchy-cell)").eq(s),p.addClass(dn),U(p,l,d))},_removeStickyStyles:function(t){var n,i,o,r,a,s,l,d,c,u=this,h=ne(K(u.columns)),p=u.tbody.children(":not(.k-detail-row)");for(n=0;n<t.length;n++)if(r=t[n],a=h.indexOf(r),s=u._getColumnHeader(r),s.removeClass(cn),s.removeClass(hn),U(s,"",""),r.columns)u._removeStickyStyles(r.columns);else for(r.footerTemplate&&u.footer&&(l=u.footer.find(".k-grid-footer-wrap tr.k-footer-template").children().filter(":not(.k-group-cell,.k-hierarchy-cell)").eq(a),l.removeClass(un),U(l,"","")),i=0;i<p.length;i++)o=e(p[i]),o.hasClass("k-grouping-row")?(d=o.find("."+r.groupHeaderColumnTemplateClass),d.removeClass(dn),U(d,"","")):(c=o.children().filter(":not(.k-group-cell,.k-hierarchy-cell)").eq(a),c.removeClass(dn),U(c,"",""))},_getColumnHeader:function(t){var n=this,i=e(e("#"+t.headerAttributes.id).length?"#"+t.headerAttributes.id:"#"+n._cellId);return i},_sumColumnWidth:function(e){var t=this,n=0;return n=t._sumCurrentWidths(e.columns?ne([e]):[e])},_sumCurrentWidths:function(e){var t,n,i,o=this,r=0,a=0,s=e.length;for(i=0;i<s;i++)t=e[i],n=o._getColumnHeader(t),!t.hidden&&g(t)&&(a=n.is(":visible")?n.outerWidth():t.width,r+=a?parseInt(a,10):0);return r},_relatedRow:function(t){var n,i,o=this.lockedTable;return t=e(t),o?(n=t.closest(this.table.add(this.lockedTable)),i=n.find(">tbody>tr").index(t),n=n[0]===this.table[0]?o:this.table,n.find(">tbody>tr").eq(i)):t},_relatedCell:function(t){var n,i,o=this.lockedTable;return t=e(t),o?(n=t.closest(this.table.add(this.lockedTable)),i=n.find(">tbody>tr>td").index(t),n=n[0]===this.table[0]?o:this.table,n.find(">tbody>tr>td").index(i)):t},clearSelection:function(){var e=this;return e.selectable&&!e._checkBoxSelection&&e.selectable.clear(),e._checkBoxSelection?(e._deselectCheckRows(e.select()),t):(e.options.persistSelection?e._persistSelectedRows():e._selectedIds={},e.trigger(Nt),t)},select:function(e){var n=this,i=n.selectable,o=qe.ui.Selectable.parseOptions(this.options.selectable),r=o.cell;return e=n.table.add(n.lockedTable).find(e),e.length?(i&&!i.options.multiple&&(i.clear(),e=e.first()),n._isLocked()&&(e=e.add(e.map(function(){return r?n._relatedCell(this):n._relatedRow(this)}))),i&&!n._checkBoxSelection?i.value(e):(n._checkRows(e),n.select().length===n.items().length&&n._toggleHeaderCheckState(!0),r||n._persistSelectedRows(),n.trigger(Nt)),t):i?i.value():n.items().filter("."+Jt)},_toggleHeaderCheckState:function(e){var t=this;e?t.thead.add(t.lockedHeader).find("tr "+tn).prop("checked",!0).attr("aria-checked",!0).attr("aria-label","Deselect all rows"):t.thead.add(t.lockedHeader).find("tr "+tn).prop("checked",!1).attr("aria-checked",!1).attr("aria-label","Select all rows")},_uncheckCheckBoxes:function(){var e=this,t=e.table.add(e.lockedTable);t.find("tbody "+tn).attr("aria-checked",!1).prop("checked",!1).attr("aria-label","Select row")},_deselectCheckRows:function(t){var n=this;t=n.table.add(n.lockedTable).find(t),n._isLocked()&&(t=t.add(t.map(function(){return n._relatedRow(this)}))),t.each(function(){e(this).removeClass(Jt).find(tn).attr("aria-checked",!1).prop("checked",!1).attr("aria-label","Select row")}),n._toggleHeaderCheckState(!1),n._persistSelectedRows(),n.trigger(Nt)},_checkRows:function(t){t.each(function(){e(this).addClass(Jt).find(tn).prop("checked",!0).attr("aria-label","Deselect row").attr("aria-checked",!0)})},_persistSelectedRows:function(){var e,t,n,i,o=this,r=o.items(),a=o.dataSource.options,s=a.schema,l={};if(s&&s.model&&o._data&&(n=dt(s.model)?s.model.fn.idField:s.model.id))for(o.select().each(function(){t=o.dataItem(this),l[t[n]]=!0}),i=0;i<r.length;i++)t=o.dataItem(r[i]),e=t[n],l[e]?o._selectedIds[e]=!0:delete o._selectedIds[e]},selectedKeyNames:function(){var e,t=this,n=[];for(e in t._selectedIds)n.push(e);return n.sort(),n},_updateCurrentAttr:function(t,n){var i,o=e(t).data("headerId");e(t).removeClass(Xt).closest("table").removeAttr("aria-activedescendant"),o?(o=o.replace(this._cellId,""),e(t).attr("id",o)):e(t).removeAttr("id"),i=n.attr("id"),i!=this._cellId&&n.data("headerId",i),n.attr("id",this._cellId).addClass(Xt).closest("table").attr("aria-activedescendant",this._cellId),this._current=n},_scrollCurrent:function(){var t,n,i,o,r,a,s=this._current,l=this.options.scrollable;s&&l&&(t=s.parent(),n=t.closest("table").parent(),i=n.is(".k-grid-content-locked,.k-grid-header-locked"),o=n.is(".k-grid-content-locked,.k-grid-content,.k-virtual-scrollable-wrap"),r=e(this.content).find(">.k-virtual-scrollable-wrap").addBack().last()[0],o&&(this.virtualScroll?(a=Math.max(at(t[0],this._items(t.parent())),0),this.virtualScroll.rows?(this._rowVirtualIndex=this.virtualScrollable.itemIndex(a),
this.virtualScrollable.scrollIntoView(t)):(this._rowVirtualIndex=a,this._scrollTo(this._relatedRow(t)[0],r))):this._scrollTo(this._relatedRow(t)[0],r)),this.lockedContent&&(this.lockedContent[0].scrollTop=r.scrollTop),i||this._scrollTo(s[0],r))},current:function(e){return this._setCurrent(e,!0)},_setCurrent:function(t,n,i){var o,r,a,s=this._current;return t=e(t),t.length&&(s&&s[0]===t[0]||(o=t.parent(),r=o.children(vt),a=parseInt(o.children().first().attr("colspan"),10),this._hasVirtualColumns()&&(this._virtualCellIndex=(a>1?a:0)+r.index(t)),this._updateCurrentAttr(s,t),i||this._scrollCurrent(),n||this.trigger(wn,{element:t}))),t&&t.length&&(this._lastCellIndex=t.parent().children(vt).index(t)),this._current},_removeCurrent:function(){this._current&&(this._current.removeClass(Xt),this._current=null)},_scrollTo:function(t,n){var i=t.tagName.toLowerCase(),o="td"===i||"th"===i,r=e(t).closest("table")[0],a=t[o?"offsetWidth":"offsetHeight"],s=n[o?"scrollLeft":"scrollTop"],l=n[o?"clientWidth":"clientHeight"],d="relative"===e(t).css("position")&&ti&&o?Math.abs(r.offsetLeft-t.offsetLeft):t[o?"offsetLeft":"offsetTop"],c=d+a,u=0,h=0,p=0;ti&&o&&(ni.msie||ni.edge?h=r.offsetLeft:(ni.mozilla||ni.webkit&&ni.version>85)&&(p=r.offsetLeft-qe.support.scrollbar())),s=Math.abs(s+h-p),u=s>d?d:c>s+l?a<=l?c-l:d:s,u=Math.abs(u+h)+p,n[o?"scrollLeft":"scrollTop"]=u},_navigatable:function(){var t,n,i,o=this;o.options.navigatable&&(t=o.table.add(o.lockedTable),n=o.thead.parent().add(e(">table",o.lockedHeader)),i=t,o.options.scrollable&&(i=i.add(n),n.attr(Cn,-1)),this._navigatableTables=i,i.off("mousedown"+Tt+" focus"+Tt+" focusout"+Tt+" keydown"+Tt),n.on("keydown"+Tt,lt(o._openHeaderMenu,o)).find("a.k-link").attr("tabIndex",-1),t.attr(Cn,ht.max(t.attr(Cn)||0,0)).on("keydown"+Tt,".k-detail-cell",function(e){e.target!==e.currentTarget&&e.stopImmediatePropagation()}),i.on(qe.support.touch?"touchstart"+Tt:"mousedown"+Tt,bt+">"+wt,lt(Ie,o)).on("focus"+Tt,lt(o._tableFocus,o)).on("focusout"+Tt,lt(o._tableBlur,o)).on("keydown"+Tt,o,lt(o._tableKeyDown,o)))},_openHeaderMenu:function(e){e.altKey&&e.keyCode==et.DOWN&&(this.current().find(".k-grid-filter, .k-header-column-menu").click(),e.stopImmediatePropagation())},_setTabIndex:function(e){this._navigatableTables.attr(Cn,-1),e.attr(Cn,0)},_tableFocus:function(t){var n=this.current(),i=e(t.currentTarget);n&&n.is(":visible")?n.addClass(Xt):this._virtualColScroll?this._setCurrent(i.find(Ct),!0,!0):this._setCurrent(i.find(Ct)),this._setTabIndex(i)},_tableBlur:function(){var e=this.current();e&&e.removeClass(Xt)},_findCellIndex:function(e,t,n){var i,o;if(n)for(o=t;o>=0&&(i=o,e[o].hidden);o--);else for(o=t;o<e.length&&(i=o,e[o].hidden);o++);return i},_scrollToColumn:function(e,n){var i,o,r,a,s;if(this._virtualCellIndex===t)return!1;for(i=this,o=i._virtualCellIndex,r=ne(K(i.columns)),a=0,e==(ti?et.LEFT:et.RIGHT)&&o!==r.length-1?o=i._findCellIndex(r,o+1):e==(ti?et.RIGHT:et.LEFT)&&o?o=i._findCellIndex(r,o-1,!0):e==et.HOME?o=i._findCellIndex(r,0):e==et.END&&(o=i._findCellIndex(r,r.length-1,!0)),s=0;s<o;s++)a+=r[s].width;return i._virtualCellIndex=o,n&&(n.preventDefault(),n.stopPropagation()),qe.scrollLeft(i.content,a),!0},_tableKeyDown:function(n){var i,o=this.current(),r=this.virtualScroll||{},a=this.virtualScrollable&&this.virtualScrollable.fetching(),s=e(n.target),l=!n.isDefaultPrevented()&&!s.is(":button,a,:input,a>.k-icon");return a?(n.preventDefault(),t):((!r.columns||o&&document.body.contains(o[0])||!this._scrollToColumn(n.keyCode,n))&&(o||(o=e(this.lockedTable).add(this.options.scrollable?this.table:this.tbody).find(Ct)),o.length&&(i=!1,l&&n.keyCode==et.UP&&(i=this._moveUp(o,n.shiftKey)),l&&n.keyCode==et.DOWN&&(i=this._moveDown(o,n.shiftKey)),l&&n.keyCode==(ti?et.LEFT:et.RIGHT)&&(i=this._moveRight(o,n.altKey,n.shiftKey,n.ctrlKey,n.currentTarget)),l&&n.keyCode==(ti?et.RIGHT:et.LEFT)&&(i=this._moveLeft(o,n.altKey,n.shiftKey,n.ctrlKey,n.currentTarget)),l&&n.keyCode==et.PAGEDOWN&&(i=this._handlePageDown()),l&&n.keyCode==et.PAGEUP&&(i=this._handlePageUp()),l&&n.keyCode==et.HOME&&(i=this._handleHome(o,n.ctrlKey)),l&&n.keyCode==et.END&&(i=this._handleEnd(o,n.ctrlKey)),l&&n.keyCode==et.SPACEBAR&&(i=this._handleSpaceKey(o,n.ctrlKey)),n.keyCode!=et.ENTER&&n.keyCode!=et.F2||(i=this._handleEnterKey(o,n.currentTarget,s)),n.keyCode==et.ESC&&(i=this._handleEscKey(o,n.currentTarget)),n.keyCode==et.TAB&&(i=this._handleTabKey(o,n.currentTarget,n.shiftKey)),i&&(n.preventDefault(),n.stopPropagation()))),t)},_moveLeft:function(t,n,i,o,r){var a,s,l=t.parent(),d=l.parent();return n?this.collapseRow(l):o&&t.is(".k-header")&&this.options.reorderable?this._moveColumn(t,!0):(s=d.find(bt).index(l),a=this._prevHorizontalCell(d,t,s),a[0]||(i?this.lockedTable?(a=this._relatedRow(l),e.contains(this.lockedTable[0],l[0])&&(a=a.prevAll(kt+":first")),a=a.children(vt+":last")):a=this._tabNext(t,r,!0):(d=this._horizontalContainer(d),a=this._prevHorizontalCell(d,t,s),a[0]!==t[0]&&Se(d.parent(),!0))),this._setCurrent(a)),!0},_moveRight:function(t,n,i,o,r){var a,s,l=t.parent(),d=l.parent();return n?this.expandRow(l):o&&t.is(".k-header")&&this.options.reorderable?this._moveColumn(t,!1):(s=d.find(bt).index(l),a=this._nextHorizontalCell(d,t,s),a[0]||(i?this.lockedTable?(a=this._relatedRow(l),e.contains(this.table[0],l[0])&&(a=a.nextAll(kt+":first")),a=a.children(vt+":first")):a=this._tabNext(t,r,!1):(d=this._horizontalContainer(d,!0),a=this._nextHorizontalCell(d,t,s),a[0]!==t[0]&&Se(d.parent(),!0))),this._setCurrent(a)),!0},_moveUp:function(e,t){var n,i,o=e.parent().parent();return t?(n=e.parent(),n=n.prevAll(kt+":first"),n=e.parent().is(kt)?n.children().eq(e.index()):n.children(vt+":last")):(n=this._prevVerticalCell(o,e),n[0]||(this._lastCellIndex=0,o=this._verticalContainer(o,!0),n=this._prevVerticalCell(o,e),n[0]&&Se(o.parent(),!0))),i=this._lastCellIndex||0,this._setCurrent(n),this._lastCellIndex=i,!0},_moveDown:function(e,t){var n,i,o=e.parent().parent();return t?(n=e.parent(),n=n.nextAll(kt+":first"),n=e.parent().is(kt)?n.children().eq(e.index()):n.children(vt+":first")):(n=this._nextVerticalCell(o,e),n[0]||(this._lastCellIndex=0,o=this._verticalContainer(o),n=this._nextVerticalCell(o,e),n[0]&&Se(o.parent(),!0))),i=this._lastCellIndex||0,this._setCurrent(n),this._lastCellIndex=i,!0},_moveColumn:function(t,n){var i=this.wrapper.data().kendoReorderable.element.find(this._draggableInstance.options.filter+":visible"),o=w(F(this.columns)),r=i.index(e(t)),a=n?-1:1,s=o[r],l=P(o,this.columns,r,r+a);l>=0&&(this.reorderColumn(l,s,n),this.trigger(mn,{newIndex:l,oldIndex:r,column:s}))},_handleHome:function(e,n){var i,o=e.parent(),r=o.parent(),a=this.lockedTable&&this.lockedTable.children("tbody")[0]===r[0],s=r[0]===this.tbody[0];return this._hasVirtualColumns()?(this._scrollToColumn(qe.keys.HOME),!0):(n?i=this.lockedTable?this.lockedTable.find(yt+">"+wt+":first"):this.table.find(yt+">"+wt+":first"):(s||a)&&(s&&this.lockedTable&&(o=this._relatedRow(o)),i=o.children(vt+":first")),i&&i.length?(this._setCurrent(i),!0):t)},_handleEnd:function(e,n){var i,o=e.parent(),r=o.parent(),a=this.lockedTable&&this.lockedTable.children("tbody")[0]===r[0],s=r[0]===this.tbody[0];return this._hasVirtualColumns()?(this._scrollToColumn(qe.keys.END),!0):(n?i=this.table.find(xt+">"+wt+":last"):(s||a)&&(!s&&this.lockedTable&&(o=this._relatedRow(o)),i=o.children(vt+":last")),i&&i.length?(this._setCurrent(i),!0):t)},_handlePageDown:function(){return!!this.options.pageable&&(this.dataSource.page(this.dataSource.page()+1),!0)},_handlePageUp:function(){return!!this.options.pageable&&(this.dataSource.page(this.dataSource.page()-1),!0)},_handleTabKey:function(t,n,i){var o,r=this.options.editable&&"incell"==this._editMode();return!(!r||t.is("th"))&&(o=e(Qe()).closest(".k-edit-cell"),o[0]&&o[0]!==t[0]&&(t=o),o=this._tabNext(t,n,i),o[0]!==t[0]&&(!!o.length&&(this._handleEditing(t,o,o.closest("table")),!0)))},_handleEscKey:function(t,n){var i,o=Qe(),r="incell"==this._editMode();return Pe(t)?(r?this.closeCell(!0):(i=e(t).parent().index(),o&&o.blur(),this.cancelRow(!0),i>=0&&this._setCurrent(this.items().eq(i).children(wt).first())),ni.msie&&ni.version<9&&document.body.focus(),Se(n,!0),!0):!!t.has(o).length&&(Se(n,!0),!0)},_toggleCurrent:function(e,t,n){var i=e.parent();return i.is(".k-grouping-row")?(i.find(".k-icon:first").click(),!0):!(t||!n)&&(i.find(".k-icon:first").click(),!0)},_handleSpaceKey:function(t,n){var i,o,r,a,s=this;if(n&&s.groupable&&t.hasClass("k-header"))return i=s.groupable.descriptors(),o=t.attr(qe.attr("field")),r=s.groupable.aggregates(),a=t.attr(qe.attr("title"))||o,s.groupable._canDrag(t)?(i.push({field:o,dir:"asc",aggregates:r||[]}),a+=" "+s.options.messages.ungroupHeader):(i=e.grep(i,function(e){return e.field!==o}),a+=" "+s.options.messages.groupHeader),t.attr("aria-label",a),s.dataSource.group(i),!0},_handleEnterKey:function(t,n,i){var o,r,a=this.options.editable&&this.options.editable.update!==!1,s=i.closest("[role=gridcell]"),l=this._hasDetails();return i.is("table")||e.contains(t[0],i[0])||(t=s),t.is("th")?(o=t.find(".k-link"),o.length?o.click():t.find(tn).focus(),!0):!!this._toggleCurrent(t,a,l)||(r=t.find(":kendoFocusable:first"),r[0]&&!t.hasClass("k-edit-cell")&&t.hasClass("k-state-focused")?(r.focus(),!0):!(!a||i.is(":button,.k-button,textarea"))&&(s[0]||(s=t),this._handleEditing(s,!1,n),!0))},_nextHorizontalCell:function(e,t,n){var i,o,r,a=t.nextAll(vt);return a.length||(i=e.find(bt),o=i.index(t.parent()),o!=-1)?a.first():t.hasClass("k-header")?(r=[],W([$(this.columns)[0]],ae(i.eq(0).children(":visible").first()),r,0,0),r[n]?r[n][0]:t):t.parent().hasClass("k-filter-row")?i.last().children(vt).first():i.eq(n).children(vt).first()},_prevHorizontalCell:function(e,t,n){var i,o,r,a,s=t.prevAll(vt);return s.length||(i=e.find(bt),o=i.index(t.parent()),o!=-1)?s.first():t.hasClass("k-header")?(r=[],a=$(this.columns),W([a[a.length-1]],ae(i.eq(0).children().last()),r,0,0),r[n]?r[n][0]:t):t.parent().hasClass("k-filter-row")?i.last().children(vt).last():i.eq(n).children(vt).last()},_currentDataIndex:function(e,n){var i,o=n.attr("data-index");return o?(i=$(this.columns).length,i&&!e.closest("div").hasClass("k-grid-content-locked")[0]?o-i:o):t},_prevVerticalCell:function(t,n){var i,o=n.parent(),r=t.children(bt),a=r.index(o),s=this._currentDataIndex(t,n);if(s||n.hasClass("k-header"))return i=re(n),i.eq(i.length-2);if(s=Math.max(o.children(vt).index(n),this._lastCellIndex||0),o.hasClass("k-filter-row"))return oe(t).filter(v).eq(s);if(a==-1){if(this._hasVirtualColumns()&&(s=this._virtualCellIndex),o=t.find("tr.k-filter-row:visible"),!o[0])return(this._hasDetails()||n.parent().find(".k-hierarchy-cell").length)&&s&&s--,oe(t).filter(v).eq(s)}else o=0===a?e():r.eq(a-1);return i=o.children(vt),i.eq(i.length>s?s:0)},_nextVerticalCell:function(e,n){var i,o,r,a,s,l,d,c=n.parent(),u=e.children(bt),h=u.index(c),p=this._currentDataIndex(e,n),f=this.virtualScroll||{};if(h!=-1&&p===t&&n.hasClass("k-header"))return ae(n).eq(1);if(p=p?parseInt(p,10):c.children(vt).index(n),p=Math.max(p,this._lastCellIndex||0),h==-1?(c=u.eq(0),f.columns&&(o=parseInt(c.children().first().attr("colspan"),10),p=this._virtualCellIndex-(o>1?o:0)),(this._hasDetails()||c.find(".k-hierarchy-cell").length)&&p++):c=u.eq(h+n[0].rowSpan),r=p,this._currentDataIndex(e,n)!==t)for(a=c.children(":not(.k-group-cell):not(.k-hierarchy-cell)"),s=a.filter(":hidden"),l=0,d=s.length;l<d;l++)a.index(s[l])<p&&r--;return p=r,i=c.children(vt),i.eq(i.length>p?p:0)},_verticalContainer:function(e,t){var n=e.parent(),i=this._navigatableTables.length,o=Math.floor(i/2),r=at(n[0],this._navigatableTables);return t&&(o*=-1),r+=o,(r>=0||r<i)&&(n=this._navigatableTables.eq(r)),n.find(t?">thead":">tbody")},_horizontalContainer:function(e,t){var n,i,o=this._navigatableTables.length;return o<=2?e:(n=e.parent(),i=at(n[0],this._navigatableTables),i+=t?1:-1,!t||2!=i&&i!=o?!t&&(1==i||i<0)?e:this._navigatableTables.eq(i).find("thead, tbody"):e)},_tabNext:function(e,t,n){var i=!0,o=n?e.prevAll(vt+":first"):e.nextAll(":visible:first");if(!o.length){if(o=e.parent(),this.lockedTable&&(i=n&&t==this.lockedTable[0]||!n&&t==this.table[0],o=this._relatedRow(o)),i){if(this._hasVirtualColumns())return e;o=o[n?"prevAll":"nextAll"]("tr:not(.k-grouping-row):not(.k-detail-row):visible:first")}o=o.children(vt+(n?":last":":first"))}return o},_handleEditing:function(n,i,o){var r,a,s=this,l=e(Qe()),d=s._editMode(),c=ni.msie,u=c&&ni.version<9,h=s._editContainer,p=s.options.editable&&s.options.editable.update!==!1;if(o=e(o),a="incell"==d?n.hasClass("k-edit-cell"):n.parent().hasClass("k-grid-edit-row"),s.editable){if(e.contains(h[0],l[0])&&(ni.opera||u?l.blur().change().triggerHandler("blur"):(l.blur(),c&&l.blur())),!s.editable)return Se(o),t;if(!s.editable.end())return s._setCurrent("incell"==d?h:h.children().filter(vt).first()),r=h.find(":kendoFocusable:first")[0],r&&r.focus(),t;"incell"==d?s.closeCell():(s.saveRow(),a=!0)}i&&s._setCurrent(i),u&&document.body.focus(),Se(o,!0),p&&(!a&&!i||i)&&(d===Mn?e(s.current()).hasClass(gt)||s.editCell(s.current()):s.editRow(s.current().parent()))},_wrapper:function(){var e=this,t=e.table,n=e.options.height,i=e.options.width,o=e.element;o.is("div")||(o=o.wrap("<div/>").parent()),e.wrapper=o.addClass("k-grid k-widget k-grid-display-block"),n&&(e.wrapper.css(xn,n),t.css(xn,"auto")),i&&e.wrapper.css("width",i),e._initMobile()},_initMobile:function(){var e,t=this.options,n=this;this._isMobile=t.mobile===!0&&qe.support.mobileOS||"phone"===t.mobile||"tablet"===t.mobile,this._isMobile&&(e=this.wrapper.addClass("k-grid-mobile").wrap("<div data-"+qe.ns+'stretch="true" data-'+qe.ns+'role="view" data-'+qe.ns+'init-widgets="false"></div>').parent(),this.pane=this._createPane(e),this.view=this.pane.view(),t.height?this.pane.element.parent().css(xn,t.height):this.pane.element.parent().css(xn,this.wrapper[0].style.height),this._editAnimation="slide",n.wrapper.on("transitionend"+Tt,function(e){e.stopPropagation()}),n.wrapper.on("contextmenu"+Tt,"th a",function(e){return e.preventDefault(),!1}),this.view.bind("showStart",function(){n._isLocked()&&(n._updateTablesWidth(),n._applyLockedContainersWidth(),n._syncLockedContentHeight(),n._syncLockedHeaderHeight(),n._syncLockedFooterHeight())}))},_createPane:function(e){var t=qe.Pane.wrap(e,{viewEngine:{viewOptions:{renderOnInit:!0,wrap:!1,wrapInSections:!0,detachOnHide:!1,detachOnDestroy:!1}}});return t},_tbody:function(){var t,n=this,i=n.table;t=i.find(">tbody"),t.length||(t=e("<tbody/>").appendTo(i)),n.tbody=t.attr("role","rowgroup")},_scrollable:function(){var t,n,i,o,r,a,s,l=this,d=l.options,c=d.scrollable,u=c!==!0&&c.virtual,h=u?Re(c.virtual):null,p=!qe.support.kineticScrollNeeded||h.rows?qe.support.scrollbar():0;c&&(t=l.wrapper.children(".k-grid-header"),t[0]||(t=e('<div class="k-grid-header" />').insertBefore(l.table)),t.css(ti?"padding-left":"padding-right",c.virtual?p+1:p),n=e('<table role="grid" />'),ii&&n.attr("cellspacing",0),n.width(l.table[0].style.width),n.append(l.thead),t.empty().append(e('<div class="k-grid-header-wrap k-auto-scrollable" />').append(n)),l.content=l.table.parent(),l.virtualScroll=h,l.content.is(".k-virtual-scrollable-wrap, "+pt+si.scrollContainer)&&(l.content=l.content.parent()),l.content.is(".k-grid-content, .k-virtual-scrollable-wrap")||(l.content=l.table.wrap('<div class="k-grid-content k-auto-scrollable" />').parent()),h&&h.rows&&!l.virtualScrollable&&l._createVirtualScrollable(),h&&h.columns&&l.table.css({width:L(J(X(l.columns)))}),i=t.children(".k-grid-header-wrap"),l.scrollables=i.add(l.content),o=l.wrapper.find(".k-grid-footer"),o.length&&(l.scrollables=l.scrollables.add(o.children(".k-grid-footer-wrap"))),i.unbind("scroll"+Tt).bind("scroll"+Tt,function(e){l._scrollLeft!==this.scrollLeft&&qe.scrollLeft(l.scrollables.not(e.currentTarget),this.scrollLeft)}),h&&h.rows?l.content.find(">.k-virtual-scrollable-wrap").unbind("scroll"+Tt).bind("scroll"+Tt,function(){var e=this.scrollLeft!=l._scrollLeft;l._scrollLeft=this.scrollLeft,qe.scrollLeft(l.scrollables,this.scrollLeft),l.lockedContent&&(l.lockedContent[0].scrollTop=this.scrollTop),h.columns&&e&&l.refresh()}):(r=c.endless,a=l.dataSource.options.pageSize,r&&(l._endlessPageSize=a),l.content.unbind("scroll"+Tt).bind("scroll"+Tt,function(e){var t=this.scrollLeft!=l._scrollLeft;l._scrollLeft=this.scrollLeft,qe.scrollLeft(l.scrollables.not(e.currentTarget),l._scrollLeft),l.lockedContent&&e.currentTarget==l.content[0]&&(l.lockedContent[0].scrollTop=this.scrollTop),r&&this.scrollTop+this.clientHeight-this.scrollHeight>=-10&&!l._endlessFetchInProgress&&l._endlessPageSize<l.dataSource.total()&&(l._skipRerenderItemsCount=l._endlessPageSize,l._endlessPageSize=l._endlessPageSize+a,l.dataSource.options.endless=!0,l._endlessFetchInProgress=!0,l.dataSource.pageSize(l._endlessPageSize)),h&&h.columns&&t&&(l._virtualColScroll=!0,l._cacheEditableState(),l.refresh(),l._restoreEditableState(),l._virtualColScroll=!1)}),s=l.content.data("kendoTouchScroller"),s&&s.destroy(),s=qe.touchScroller(l.content),s&&s.movable&&(l.touchScroller=s,s.movable.bind("change",function(e){qe.scrollLeft(l.scrollables,-e.sender.x),l.lockedContent&&l.lockedContent.scrollTop(-e.sender.y)}),l.one(Ut,function(e){e.sender.wrapper.addClass("k-grid-backface")}))))},_createVirtualScrollable:function(){var e=this;e.virtualScrollable&&e.virtualScrollable.destroy(),e.virtualScrollable=new We(e.content,{dataSource:e.dataSource,itemHeight:function(){return e._averageRowHeight()},page:function(){e._restoreEditableState()},scroll:function(){e._focusEditable()}}),e.virtualScrollable.bind(Kt,lt(e._onVirtualPaging,e))},_onVirtualPaging:function(){var e=this;e._cacheEditableState(),e._isVirtualIncellEditable()&&(e._shouldClearEditableState=!1,e.closeCell(),e._shouldClearEditableState=!0)},_isVirtualEditable:function(){return this._isVirtualIncellEditable()||this._isVirtualInlineEditable()||this._isVirtualPopupEditable()},_isVirtualInlineEditable:function(){return this.virtualScrollable&&this._editMode()===Rn},_isVirtualIncellEditable:function(){return this.virtualScrollable&&this._editMode()===Mn},_isVirtualPopupEditable:function(){return this.virtualScrollable&&"popup"===this._editMode()},_hasVirtualColumns:function(){return!!(this.virtualScroll||{}).columns},_scrollVirtualWrapper:function(){var e=this,t=e.virtualScrollable;(e._isVirtualInlineEditable()||e._isVirtualIncellEditable())&&(t._isScrolledToBottom()?t._scrollWrapperToBottom():t._isScrolledToTop()&&t._scrollWrapperToTop())},_scrollVirtualWrapperOnColumnResize:function(){var e=this.virtualScrollable;e&&e._scrollWrapperOnColumnResize()},_restoreEditableState:function(){var t,i,o=this,r=o._editableState||{},a=r.model,s=o.dataSource,l=o._isVirtualInlineEditable(),d=o._isVirtualIncellEditable(),c=o._hasVirtualColumns();(l||d||c)&&a&&s._getByUid(a.uid,s.view())&&(o._editMode()===Rn?(o._shouldClearEditableState=!1,o.editRow(a),c||o._focusEditable()):o._editMode()===Mn&&(t=o.tbody.children(n(Fn,a.uid)),i=e(t).children(n(En,r.field)),i[0]&&(o._shouldClearEditableState=!1,o.editCell(i),c||o._focusEditable()))),o._shouldClearEditableState=!0},_focusEditable:function(){var e=this,t=(e._editableState||{}).field,i=e._editContainer;i&&i.length&&!ut(i[0],Qe())&&e._canFocusEditable()&&(e._isVirtualInlineEditable()||e._hasVirtualColumns()?i.find(n(An,t)).find(Zt).eq(0).focus():(e._isVirtualIncellEditable()||e._hasVirtualColumns())&&i.find(Zt).eq(0).focus())},_canFocusEditable:function(){var e=this,t=(e._isVirtualIncellEditable()||e._isVirtualInlineEditable()||e._hasVirtualColumns())&&(Fe((e.virtualScrollable||{}).wrapper,e._editContainer)||Fe(e.content,e._editContainer));return t},_cacheEditableState:function(){var t,n,i=this,o=i._editContainer,r=o?i._modelForContainer(o):null,a=i._isVirtualInlineEditable(),s=i._isVirtualIncellEditable(),l=i._hasVirtualColumns();(a||s||l)&&r&&(i._clearEditableState(),t=e(Qe()),o&&t[0]&&ut(o[0],t[0])&&(t.change(),n=qe.widgetInstance(t,qe.ui),n&&dt(n.value)&&t.is(In)&&(n.value(t.val()),n.trigger(Nt))),i._editMode()===Rn?i._editableState={model:r,field:t.closest("["+qe.attr(An)+"]").attr(qe.attr(An))}:i._editMode()===Mn&&(i._editableState={model:r,field:o.attr(qe.attr(En))}))},_clearSortClasses:function(){var e=this;e.content&&e.content.find("col:not(.k-group-col):not(.k-hierarchy-col)").removeClass("k-sorted"),e.lockedContent&&e.lockedContent.find("col:not(.k-group-col):not(.k-hierarchy-col)").removeClass("k-sorted")},_clearEditableState:function(){var e=this;(e.virtualScrollable||e.virtualScroll&&e._hasVirtualColumns())&&(e._editableState=null)},_destroyVirtualScrollable:function(){var e=this;e._clearEditableState(),e.virtualScrollable&&e.virtualScrollable.element&&e.virtualScrollable.destroy(),e.virtualScrollable=null},_renderNoRecordsContent:function(){var t,n=this;n.options.noRecords&&(t=n.table.parent().children("."+nn),t.length&&(n.angular("cleanup",function(){return{elements:t.get()}}),t.remove()),n.dataSource&&n.dataSource.view().length||(t=e(n.noRecordsTemplate({})).insertAfter(n.table),n.angular("compile",function(){return{elements:t.get(),data:[{}]}})))},_setContentWidth:function(t){var n,i=this,o="k-grid-content-expander",r='<div class="'+o+'"></div>',a=i.resizable;i.options.scrollable&&i.wrapper.is(":visible")&&(n=i.table.parent().children("."+o),i._setContentWidthHandler=lt(i._setContentWidth,i),i.dataSource&&i.dataSource.view().length?n[0]&&(n.remove(),a&&a.unbind("resize",i._setContentWidthHandler)):(n[0]||(n=e(r).appendTo(i.table.parent()),a&&a.bind("resize",i._setContentWidthHandler)),i.thead&&(n.width(i.thead.width()),isNaN(parseFloat(t,10))||qe.scrollLeft(i.content,t))),i._applyLockedContainersWidth(),i._syncLockedContentHeight(),i.lockedHeader&&0===i.table[0].clientWidth&&(i.table[0].style.width="1px"))},_applyLockedContainersWidth:function(){if(this.options.scrollable&&this.lockedHeader){var e,t=this.thead.parent(),n=t.parent(),i=this.wrapper[0].clientWidth,o=this._groups(),r=qe.support.scrollbar(),a=this.lockedHeader.find(">table>colgroup>col:not(.k-group-col, .k-hierarchy-col)"),s=t.find(">colgroup>col:not(.k-group-col, .k-hierarchy-col)"),l=H(a),d=H(s);o>0&&(l+=Ze(this.lockedHeader.find(".k-group-cell:first"))*o),l>=i&&(l=i-3*r),this.lockedHeader.add(this.lockedContent).width(l),n[0].style.width=n.parent().width()-l-2+"px",t.add(this.table).width(d),this.virtualScrollable&&!ri&&(i-=r),this.content[0].style.width=i-l-1+"px",this.lockedFooter&&this.lockedFooter.length&&(this.lockedFooter.width(l),e=this.footer.find(".k-grid-footer-wrap"),e[0].style.width=n[0].clientWidth+"px",e.children().first().width(d))}},_setContentHeight:function(){var e,t,n=this,i=n.options,o=n.wrapper.children(".k-grid-header"),r=qe.support.scrollbar(),a=(i.scrollable||{}).height;i.scrollable&&n.wrapper.is(":visible")&&(a&&""===n.content[0].style.height&&(n.content[0].style.height=a),e=n.wrapper.innerHeight(),e-=Je(o),n.pager&&n.pager.element.is(":visible")&&(e-=Je(n.pager.element)),i.groupable&&(e-=Je(n.wrapper.children(".k-grouping-header"))),i.toolbar&&(e-=Je(n.wrapper.children(".k-grid-toolbar"))),n.footerTemplate&&(e-=Je(n.wrapper.children(".k-grid-footer"))),t=function(e){var t,n;return!!e[0].style.height||(t=e.height(),e.height("auto"),n=e.height(),t!=n?(e.height(""),!0):(e.height(""),!1))},t(n.wrapper)&&(e>2*r?(n.lockedContent&&(r=n.table[0].offsetWidth>n.table.parent()[0].clientWidth?r:0,n.lockedContent.height(e-r)),n.content.height(e)):n.content.height(2*r+1)))},_averageRowHeight:function(){var e,t=this,n=t._items(t.tbody,!0).length,i=t._rowHeight;return 0===n?i:(t._rowHeight||(t._rowHeight=i=Je(t.table)/n,t._sum=i,t._measures=1),e=Je(t.table)/n,i!==e&&(t._measures++,t._sum+=e,t._rowHeight=t._sum/t._measures),i)},_dataSource:function(){var e,n=this,i=n.options,o=i.dataSource;o=rt(o)?{data:o}:o,tt(o)&&(nt(o,{table:n.table,fields:n.columns}),e=i.pageable,tt(e)&&e.pageSize!==t&&(o.pageSize=e.pageSize)),n.dataSource&&n._refreshHandler?n.dataSource.unbind(Nt,n._refreshHandler).unbind(ft,n._progressHandler).unbind(mt,n._errorHandler).unbind(Hn,n._sortHandler):(n._refreshHandler=lt(n.refresh,n),n._progressHandler=lt(n._requestStart,n),n._errorHandler=lt(n._error,n),n._sortHandler=lt(n._clearSortClasses,n)),n.dataSource=$e.create(o).bind(Nt,n._refreshHandler).bind(ft,n._progressHandler).bind(mt,n._errorHandler).bind(Hn,n._sortHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_modelChange:function(t){var n,i,o,r,a,s,l,d,c,u,h=this,p=h.tbody,f=t.model,m=h.tbody.find("tr["+qe.attr("uid")+"="+f.uid+"]"),g=m.hasClass("k-alt"),v=h._items(p).index(m),_=h.lockedContent;if(_&&(n=h._relatedRow(m)),m.add(n).children(".k-edit-cell").length&&!h.options.rowTemplate)m.add(n).children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){i=e(this),o=ne(h.columns)[h._calculateColumnIndex(i)],o.field===t.field&&(i.hasClass("k-edit-cell")?i.addClass("k-dirty-cell"):h._displayCell(i,o,f))});else if(!m.hasClass("k-grid-edit-row")){for(s=e().add(m),_&&(r=(g?h.lockedAltRowTemplate:h.lockedRowTemplate)(f),s=s.add(n),n.replaceWith(r)),h.angular("cleanup",function(){return{elements:s.get()}}),r=(g?h.altRowTemplate:h.rowTemplate)(f),m.replaceWith(r),r=h._items(p).eq(v),u=[{dataItem:f}],_&&(m=m.add(n),n=h._relatedRow(r)[0],xe(r[0],n),r=r.add(n),u.push({dataItem:f})),h.angular("compile",function(){return{elements:r.get(),data:u}}),a=h.options.selectable,(a||h._checkBoxSelection)&&m.hasClass("k-state-selected")&&h.select(r),d=s.children(":not(.k-group-cell,.k-hierarchy-cell)"),l=r.children(":not(.k-group-cell,.k-hierarchy-cell)"),v=0,c=h.columns.length;v<c;v++)o=h.columns[v],i=l.eq(v),a&&d.eq(v).hasClass("k-state-selected")&&i.addClass("k-state-selected");h.trigger("itemChange",{item:r,data:f,ns:Ge})}},_pageable:function(){var t,n=this,i=n.options.pageable;i&&(t=n.wrapper.children("div.k-grid-pager"),t.length||(t=e('<div class="k-pager-wrap k-grid-pager"/>')),"top"===i.position?t.prependTo(n.wrapper).addClass("k-grid-pager-top"):t.appendTo(n.wrapper),n.pager&&n.pager.destroy(),n.pager="object"==typeof i&&i instanceof qe.ui.Pager?i:n.dataSource._groupPaging?new Ve(t,nt({},i,{dataSource:n.dataSource})):new qe.ui.Pager(t,nt({},i,{dataSource:n.dataSource})),n.pager.bind("pageChange",function(e){n.trigger("page",{page:e.index})&&e.preventDefault()}),n._togglePagerVisibility())},_footer:function(){var t,n,i,o=this,r=o.dataSource.aggregates(),a="",s=o.footerTemplate,l=o.options,d=o.footer||o.wrapper.find(".k-grid-footer");s?(a=e(o._wrapFooter(s(r))),d.length?(n=a,o.angular("cleanup",function(){return{elements:d.get()}}),d.replaceWith(n),d=o.footer=n):d=o.footer=l.scrollable?l.pageable&&"top"!==l.pageable.position?a.insertBefore(o.wrapper.children("div.k-grid-pager")):a.appendTo(o.wrapper):a.insertBefore(o.tbody),o.angular("compile",function(){return{elements:d.find("td:not(.k-group-cell, .k-hierarchy-cell)").get(),data:it(o.columns,function(e){return{column:e,aggregate:r[e.field]}})}})):d&&!o.footer&&(o.footer=d),d.length&&(l.scrollable&&(t=d.attr("tabindex",-1).children(".k-grid-footer-wrap"),o.scrollables=e(o.scrollables.filter(function(){return!e(this).is(".k-grid-footer-wrap")}).toArray()).add(t)),o._footerWidth&&d.find("table").css("width",o._footerWidth),t&&(i=qe.scrollLeft(o.content),l.scrollable!==!0&&o.virtualScroll&&o.virtualScroll.rows&&(i=qe.scrollLeft(o.wrapper.find(".k-virtual-scrollable-wrap"))),qe.scrollLeft(t,i))),o.lockedContent&&(o._appendLockedColumnFooter(),o._applyLockedContainersWidth(),o._syncLockedFooterHeight())},_wrapFooter:function(t){var n=this,i="",o=qe.support.mobileOS?0:qe.support.scrollbar();return n.options.scrollable?(i=e('<div class="k-grid-footer"><div class="k-grid-footer-wrap"><table'+(ii?' cellspacing="0"':"")+"><tbody>"+t+"</tbody></table></div></div>"),n._appendCols(i.find("table")),i.css(ti?"padding-left":"padding-right",o),i):'<tfoot class="k-grid-footer">'+t+"</tfoot>"},_columnMenu:function(){var e,n,i,o,r,a,s,l,d,c=this,u=ne(c.columns),h=c.options,p=h.columnMenu,f=ot(c.columns,function(e){return e.columns!==t}).length>0,m=ot(c.columns,function(e){return e.lockable!==!1}).length>0,g=ot(c.columns,function(e){return e.stickable===!0}).length>0,v=this._isMobile,_=function(e){c.trigger(zt,{field:e.field,container:e.container})},b=function(e){c.trigger(Lt,{field:e.field,container:e.container})},w=function(e){Se(e.closest("table"),!0)},k=function(e){c.trigger(_n,{column:e.column})},y=function(e){c.trigger(bn,{column:e.column})},x=function(e){c.trigger("sort",{sort:e.sort})?e.preventDefault():(c._clearEditableState(),c.dataSource.options.endless&&(c.dataSource.options.endless=null,c._endlessPageSize=c.dataSource.options.pageSize,c.dataSource.pageSize(c.dataSource.options.pageSize)))},C=function(e){c.trigger("filter",{filter:e.filter,field:e.field})?e.preventDefault():(c._clearEditableState(),c.dataSource.options.endless&&(c.dataSource.options.endless=null,c._endlessPageSize=c.dataSource.options.pageSize,c.dataSource.pageSize(c.dataSource.options.pageSize)))},S=h.$angular;if(p)for("boolean"==typeof p&&(p={}),c._setColumnsMediaVisibility(u),a=oe(c.thead),s=0,l=a.length;s<l;s++)n=u[s],d=a.eq(s),n.command||!n.field&&!d.attr("data-"+qe.ns+"field")||(e=d.data("kendoColumnMenu"),e&&e.destroy(),o=n.sortable!==!1&&p.sortable!==!1&&h.sortable!==!1&&nt({},h.sortable,{compare:(n.sortable||{}).compare}),r=!(!h.filterable||n.filterable===!1||p.filterable===!1)&&nt({pane:c.pane},h.filterable,n.filterable),n.filterable&&n.filterable.dataSource&&(r.forceUnique=!1,r.checkSource=n.filterable.dataSource),r&&(r.format=n.format),i={dataSource:c.dataSource,values:n.values,columns:p.columns,sortable:o,filterable:r,messages:p.messages,owner:c,closeCallback:w,init:_,open:b,stick:k,unstick:y,pane:c.pane,sort:x,filtering:C,filter:v?":not(.k-column-active)":"",hasLockableColumns:$(u).length>0&&m&&!f,hasStickableColumns:g&&!f,encodeTitles:c.options.encodeTitles},S&&(i.$angular=S),d.kendoColumnMenu(i))},_headerCells:function(){return e(this.thead).find("th").filter(function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")})},_filterable:function(){var e,t,n,i,o,r,a,s=this,l=ne(s.columns),d=function(e){s.trigger(Pt,{field:e.field,container:e.container})},c=function(e){Se(e.closest("table"),!0)},u=function(e){s.trigger("filter",{filter:e.filter,field:e.field})?e.preventDefault():(s._clearEditableState(),s.dataSource.options.endless&&(s.dataSource.options.endless=null,s._endlessPageSize=s.dataSource.options.pageSize,s.dataSource.pageSize(s.dataSource.options.pageSize)))},h=function(e){s.trigger(Bt,{field:e.field,container:e.container})},p=s.options.filterable;if(p&&typeof p.mode==Tn&&p.mode.indexOf("menu")==-1&&(p=!1),p&&!s.options.columnMenu)for(t=oe(s.thead),i=0,o=t.length;i<o;i++)n=t.eq(i),l[i].filterable===!1||l[i].command||!l[i].field&&!n.attr("data-"+qe.ns+"field")||(e=n.data("kendoFilterMenu"),e&&e.destroy(),e=n.data("kendoFilterMultiCheck"),e&&e.destroy(),r=l[i].filterable,a=nt({},p,r,{dataSource:s.dataSource,values:l[i].values,format:l[i].format,closeCallback:c,title:l[i].title||l[i].field,init:d,open:h,pane:s.pane,change:u}),r&&r.messages&&(a.messages=nt(!0,{},p.messages,r.messages)),r&&r.dataSource&&(a.forceUnique=!1,a.checkSource=r.dataSource),r&&r.multi?n.kendoFilterMultiCheck(a):n.kendoFilterMenu(a))},_filterRow:function(){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g=this;if(g._hasFilterRow())for(n=g.options.$angular,i=ne(g.columns),o=g.options.filterable,r=g.thead.find(".k-filter-row"),a=function(e){g.trigger("filter",{filter:e.filter,field:e.field})?e.preventDefault():(g._clearEditableState(),g.dataSource.options.endless&&(g.dataSource.options.endless=null,g._endlessPageSize=g.dataSource.options.pageSize,g.dataSource.pageSize(g.dataSource.options.pageSize)))},this._updateHeader(this.dataSource.group().length),s=0;s<i.length;s++)if(d=i[s],c=g.options.filterable.operators,u=!1,h=e("<th/>"),p=d.field,d.hidden&&h.hide(),r.append(h),p&&d.filterable!==!1){if(f=d.filterable&&d.filterable.cell||{},l=g.options.dataSource,l instanceof $e&&(l=g.options.dataSource.options),
m=nt(!0,{},o.messages),d.filterable&&nt(!0,m,d.filterable.messages),f.enabled===!1){h.html("&nbsp;");continue}f.dataSource&&(l=f.dataSource,u=!0),d.filterable&&d.filterable.operators&&(c=d.filterable.operators),t={column:d,dataSource:g.dataSource,suggestDataSource:l,customDataSource:u,field:p,messages:m,values:d.values,template:f.template,delay:f.delay,inputWidth:f.inputWidth,suggestionOperator:f.suggestionOperator,minLength:f.minLength,dataTextField:f.dataTextField,operator:f.operator,operators:c,showOperators:f.showOperators,change:a},n&&(t.$angular=n),e("<span/>").attr(qe.attr("field"),p).appendTo(h).kendoFilterCell(t)}else h.html("&nbsp;")},_sortable:function(){var e,t,n,i,o,r,a=this,s=ne(a.columns),l=a.options.sortable,d=function(e){a.trigger("sort",{sort:e.sort})?e.preventDefault():a._clearEditableState()};if(l){for(i=oe(a.thead),o=0,r=i.length;o<r;o++)e=s[o],e.sortable!==!1&&!e.command&&e.field&&(n=i.eq(o),t=n.data("kendoColumnSorter"),t&&t.destroy(),n.attr("data-"+qe.ns+"field",e.field).kendoColumnSorter(nt({},l,e.sortable,{dataSource:a.dataSource,aria:!0,filter:":not(.k-column-active)",change:d})));i=null}},_columns:function(t){var n,i,o,r=this,a=r.table,s=a.find("col"),l=r.element.find("thead tr"),c=r.options.dataSource;if(t=t.length?t:it(a.find("th:not(.k-group-cell):not(.k-hierarchy-cell)"),function(t,n){t=e(t);var i=t.attr(qe.attr("sortable")),o=t.attr(qe.attr("filterable")),r=t.attr(qe.attr("type")),a=t.attr(qe.attr("groupable")),l=t.attr(qe.attr("field")),d=t.attr(qe.attr("title")),c=t.attr(qe.attr("menu"));return l||(l=t.text().replace(/\s|[^A-z0-9]/g,"")),{field:l,type:r,title:d,sortable:"false"!==i,filterable:"false"!==o,groupable:"false"!==a,menu:c,template:t.attr(qe.attr("template")),width:s.eq(n).css("width")}}),n=!(r.table.find("tbody tr").length>0&&(!c||!c.transport)),r.options.scrollable){if(o=t,i=$(t),t=K(t),i.length>0&&0===t.length)throw Error("There should be at least one non locked column");he(r.element.find("tr:has(th):first"),o),t=i.concat(t)}l.length&&t.length&&r._updateColumnIDs(t,l.first()),r.columns=d(t,n),e.grep(ne(r.columns),function(e){return e.selectable}).length&&(r._selectedIds={},r._checkBoxSelection=!0,r.wrapper.on(kn+Tt,"tbody > tr "+tn,lt(r._checkboxClick,r)),r.wrapper.on(kn+Tt,"thead > tr "+tn,lt(r._headerCheckboxClick,r))),r._foreignKeyBindings(r.columns)},_foreignKeyBindings:function(e){var t,n,i=this,o=e.length;for(n=0;n<o;n++)t=e[n],t.dataSource&&i._fetchForeignKeyValues(t)},_fetchForeignKeyValues:function(t){var n=this,i=e.Deferred();n._hasBoundForeignKey=!0,t.dataSource=$e.create(t.dataSource),n._foreignKeyPromises||(n._foreignKeyPromises=[]),n._foreignKeyPromises.push(i),t.dataSource.fetch().then(function(){var e=t.dataSource.data();t.values=e.map(function(e){return{value:e[t.dataValueField],text:e[t.dataTextField]}}),i.resolve()})},_updateColumnIDs:function(e,t){var n,i,o;if(e.length){for(n=t.find("th:not(.k-group-cell):not(.k-hierarchy-cell)"),o=0;o<e.length;o++)i=n.eq(o).attr("id"),i&&(e[o].headerAttributes=nt(e[o].headerAttributes,{id:i}));this._updateColumnIDs(ee(e),t.next())}},_headerCheckboxClick:function(t){var n=this,i=e(t.target),o=i.prop("checked"),r=i.closest(".k-grid.k-widget").getKendoGrid();n===r&&(o?n.select(r.items()):n.clearSelection())},_checkboxClick:function(t){var n=this,i=e(t.target).closest("tr"),o=!i.hasClass(Jt);n===i.closest(".k-grid.k-widget").getKendoGrid()&&(o?n.select(i):n._deselectCheckRows(i))},_groups:function(){var e=this.dataSource.group();return e?e.length:0},_tmpl:function(e,n,r,a){var s,l,d,c,u,h=this,p=nt({},qe.Template,h.options.templateSettings),f=p.paramName,m=n.length,g={storage:{},count:0},v=h._hasDetails(),_=[],b=h._groups(),w=h.options.navigatable,k=qe.attr("field"),y="";if(!e){for(e="<tr",r&&_.push("k-alt"),_.push("k-master-row"),_.length&&(e+=' class="'+_.join(" ")+'"'),m&&(e+=" "+qe.attr("uid")+'="#='+qe.expr("uid",p.paramName)+'#"'),e+=" role='row'>",b>0&&!a&&(e+=i(b)),v&&(e+='<td class="k-hierarchy-cell" aria-expanded="false"><a class="k-icon k-i-expand" href="\\#" '+Gn+'="'+qn+'" tabindex="-1"></a></td>'),s=0;s<m;s++)d=n[s],l=d.template,c=typeof l,u=d.field,h._editMode()===Mn&&u&&(d.attributes=d.attributes||{},h.virtualScroll&&(d.attributes[k]=u),y=h._dirtyCellTemplate(u,f),d.attributes["class"]=d.attributes["class"]||"",d.attributes["class"].indexOf(y)<0&&(d.attributes["class"]+=y)),d.colSpan&&d.colSpan>0&&de(d.attributes)?d.attributes=ce(d.attributes):!d.colSpan&&d.hidden&&(d.attributes=le(d.attributes)),d.command&&(d.attributes=d.attributes||{},t!==d.attributes["class"]?d.attributes["class"]+=" k-command-cell":d.attributes["class"]="k-command-cell"),e+="<td"+o(d.attributes),w&&(e+=" aria-describedby='"+d.headerAttributes.id+"'"),d.colSpan&&(d.colSpan>1&&(e+=" "+qe.attr("virtual")),e+=" colSpan='"+d.colSpan+"'"),e+=" role='gridcell'>",e+=h._cellTmpl(d,g),e+="</td>";e+="</tr>"}return e=qe.template(e,p),g.count>0?lt(e,g.storage):e},_dirtyCellTemplate:function(e,t){var n;return e&&t?(n="["===e.charAt(0)?qe.expr(e,t+".dirtyFields"):t+".dirtyFields['"+e+"']","#= "+t+" && "+t+".dirty && "+t+".dirtyFields && "+n+" ? ' k-dirty-cell' : '' #"):""},_headerCellText:function(e){var t=this,n=nt({},qe.Template,t.options.templateSettings),i=e.headerTemplate,o=typeof i,r=e.title&&(t.options.encodeTitles?Oe(e.title):e.title)||e.field||"";return o===Sn?r=qe.template(i,n)({}):o===Tn&&(r=i),r},_cellTmpl:function(e,t){var n,i,o=this,r=nt({},qe.Template,o.options.templateSettings),a=e.template,s=r.paramName,l=e.field,d="",c=e.format,u=typeof a,h=e.values;if(e.command){if(rt(e.command)){for(n=0,i=e.command.length;n<i;n++)d+=e.command[n].visible?qe.format("#= {0}(data)? '{1}':'' #",e.command[n].visible,o._createButton(e.command[n]).replace(Kn,"\\#").replace(/'/gi,"\\'")):o._createButton(e.command[n]).replace(Kn,"\\#");return d}return o._createButton(e.command).replace(Kn,"\\#")}return e.selectable?Jn:(d+=o._dirtyIndicatorTemplate(l,s),u===Sn?(t.storage["tmpl"+t.count]=a,d+="#=this.tmpl"+t.count+"("+s+")#",t.count++):u===Tn?d+=a:h&&h.length&&tt(h[0])&&"value"in h[0]&&l?(d+="#var v ="+qe.stringify(pe(h)).replace(Kn,"\\#")+"#",d+="#var f = v[",r.useWithBlock||(d+=s+"."),d+=l+"]#",d+="${f != null ? f : ''}"):(d+=e.encoded?"#:":"#=",c&&(d+='kendo.format("'+c.replace($n,"\\$1")+'",'),l?(l=qe.expr(l,s),d+=l+"==null?'':"+l):d+="''",c&&(d+=")"),d+="#"),d)},_dirtyIndicatorTemplate:function(e,t){var n;return e&&t?(n="["===e.charAt(0)?qe.expr(e,t+".dirtyFields"):t+".dirtyFields['"+e+"']","#= "+t+" && "+t+".dirty && "+t+".dirtyFields && "+n+" ? '<span class=\"k-dirty\"></span>' : '' #"):""},_virtualCols:function(t){var n,i,o,r=this,a=e.map(t,function(e){return e.hidden?0:parseInt(e.width,10)}),s=qe.scrollLeft(r.virtualScrollable?r.content.find(">.k-virtual-scrollable-wrap"):r.content),l=Ze(r.content),d=L(t),c=[],u=0,h=0,p=0,f=0,m=0;for(f=0;f<t.length;f++){if(n=f<a.length-1?a[f+1]:0,!(m+a[f]+2*n<s)){u=1+p;break}a[f]&&p++,m+=a[f]}for(p=0,m=0,i=t.length-1;i>=0;i--){if(!(m+3*a[i]<d-l-s)){for(h=1+p,o=f;o<=i;o++)t[o].locked||(c.push(t[o]),t[o].colSpan&&delete t[o].colSpan);c[0].colSpan=u,c[c.length-1].colSpan=h;break}a[i]&&p++,m+=a[i]}return c[0].hidden&&c[0].colSpan--,r.virtualCols=c,c},_templates:function(){var t=this,n=t.options,i=t.dataSource,o=i.group(),r=t.footer||t.wrapper.find(".k-grid-footer"),a=i.aggregate(),s=ne(t.columns),l=ne($(t.columns)),d=n.scrollable?ne(K(t.columns)):s,c=(t.virtualScroll||{}).columns?t._virtualCols(d):d,u=ot(w(l),function(e,t){return e.groupHeaderColumnTemplate&&0!==t}),h=ot(w(c),function(e){return e.groupHeaderColumnTemplate});if(n.scrollable&&l.length){if(n.rowTemplate||n.altRowTemplate)throw Error("Having both row template and locked columns is not supported");t.rowTemplate=t._tmpl(n.rowTemplate,c,!1,!0),t.altRowTemplate=t._tmpl(n.altRowTemplate||n.rowTemplate,c,!0,!0),t.lockedRowTemplate=t._tmpl(n.rowTemplate,l),t.lockedAltRowTemplate=t._tmpl(n.altRowTemplate||n.rowTemplate,l,!0)}else t.rowTemplate=t._tmpl(n.rowTemplate,c),t.altRowTemplate=t._tmpl(n.altRowTemplate||n.rowTemplate,c,!0);t._hasDetails()&&(t.detailTemplate=t._detailTmpl(n.detailTemplate||"")),(t._group&&!ct(a)||!ct(a)&&!r.length||ot(s,function(e){return e.footerTemplate}).length)&&(t.footerTemplate=t._footerTmpl(s,a,"footerTemplate","k-footer-template")),o&&ot(s,function(e){return e.groupFooterTemplate}).length&&(a=e.map(o,function(e){return e.aggregates}),t.groupFooterTemplate=t._footerTmpl(c,a,"groupFooterTemplate","k-group-footer",l.length),n.scrollable&&l.length&&(t.lockedGroupFooterTemplate=t._footerTmpl(l,a,"groupFooterTemplate","k-group-footer"))),o&&(u.length||h.length)?(a=e.map(o,function(e){return e.aggregates}),t.groupHeaderColumnTemplate=t._groupHeaderTmpl(w(c),a,"groupHeaderColumnTemplate","k-grouping-row",l.length,h),n.scrollable&&l.length&&(t.lockedGroupHeaderColumnTemplate=t._groupHeaderTmpl(w(l),a,"groupHeaderColumnTemplate","k-grouping-row",0,u))):(t.groupHeaderColumnTemplate=null,t.lockedGroupHeaderColumnTemplate=null),t.options.noRecords&&(t.noRecordsTemplate=t._noRecordsTmpl())},_noRecordsTmpl:function(){var t,n,i,o='<div class="{0}">{1}</div>',r='<div class="k-grid-norecords-template"{1}>{0}</div>',a=this.options.scrollable&&!this.wrapper[0].style.height?' style="margin:0 auto;position:static;"':"",s={storage:{},count:0},l=e.extend({},qe.Template,this.options.templateSettings),d=l.paramName,c="";return t=this.options.noRecords.template?this.options.noRecords.template:qe.format(r,this.options.messages.noRecords,a),n=typeof t,"function"===n?(s.storage["tmpl"+s.count]=t,c+="#=this.tmpl"+s.count+"("+d+")#",s.count++):"string"===n&&(c+=t),i=qe.template(qe.format(o,nn,c),l),s.count>0&&(i=e.proxy(i,s.storage)),i},_footerTmpl:function(e,t,n,r,a){var s,l,d,c,u,h=this,p=nt({},qe.Template,h.options.templateSettings),f=p.paramName,m="",g={},v=0,_={},b=h._groups(),w=h.dataSource._emptyAggregates(t);for(m+='<tr class="'+r+'">',b>0&&!a&&(m+=i(b)),h._hasDetails()&&(m+='<td class="k-hierarchy-cell">&nbsp;</td>'),s=0,l=e.length;s<l;s++)u=e[s],d=u[n],c=typeof d,m+="<td"+o(u.footerAttributes)+">",d?(c!==Sn&&(_=w[u.field]?nt({},p,{paramName:f+"['"+u.field+"']"}):{},d=qe.template(d,_)),g["tmpl"+v]=d,m+="#=this.tmpl"+v+"("+f+")#",v++):m+="&nbsp;",m+="</td>";return m+="</tr>",m=qe.template(m,p),v>0?lt(m,g):m},_groupHeaderTmpl:function(e,n,i,o,r,a){var s,l,d,c,u,h,p=this,f=nt({},qe.Template,p.options.templateSettings),m=f.paramName,g="",v={},_=0,b={},w=p.dataSource._emptyAggregates(n),k=a.length?at(a[0],e):-1;if(g+='<tr role="row" class="'+o+'">',r||(g+='# for (var i = 0; i < data.groupCells; i++) { #<td class="k-group-cell">&nbsp;</td># } #'),p._hasDetails()&&(g+='<td class="k-hierarchy-cell">&nbsp;</td>'),k<0)return g+=r?"":ze(e.length),t;if(k<Pn&&a.length<=1&&!r)return g+=r?"":ze(e.length),qe.template(g,f);for(k<Pn?(k=r?0:1,g+=r?"":ze(k)):g+=r?Be(k):ze(k),s=k,l=e.length;s<l;s++)u=e[s],d=u[i],c=typeof d,u.sticky?(h=u.groupHeaderColumnTemplateClass||"",h||(h=u.groupHeaderColumnTemplateClass="group-header-column-template-"+qe.guid()),g+="<td class='"+dn+" "+h+"' style='"+(u.stickyStyle||"")+"'>"):g+="<td>",d?(c!==Sn&&(b=w[u.field]?nt({},f,{paramName:m+"['"+u.field+"']"}):{},d=qe.template(d,b)),v["tmpl"+_]=d,g+="#=this.tmpl"+_+"("+m+")#",_++):g+="&nbsp;",g+="</td>";return g+="</tr>",g=qe.template(g,f),_>0?lt(g,v):g},_detailTmpl:function(e){var t=this,n="",o=nt({},qe.Template,t.options.templateSettings),r=o.paramName,a={},s=0,l=t._groups(),d=w(ne(t.columns)).length,c=typeof e;return n+='<tr class="k-detail-row">',l>0&&(n+=i(l)),n+='<td class="k-hierarchy-cell"></td><td class="k-detail-cell"'+(d?' colspan="'+d+'"':"")+">",c===Sn?(a["tmpl"+s]=e,n+="#=this.tmpl"+s+"("+r+")#",s++):n+=e,n+="</td></tr>",n=qe.template(n,o),s>0?lt(n,a):n},_hasDetails:function(){var e=this;return null!==e.options.detailTemplate||(e._events[Ft]||[]).length},_hasFilterRow:function(){var t=this.options.filterable,n=t&&typeof t.mode==Tn&&t.mode.indexOf("row")!=-1,i=this.columns,o=e.grep(i,function(e){return e.filterable===!1});return i.length&&o.length==i.length&&(n=!1),n},_details:function(){var t=this;if(t.options.scrollable&&t._hasDetails()&&$(t.columns).length)throw Error("Having both detail template and locked columns is not supported");t.table.on(kn+Tt,".k-hierarchy-cell .k-i-expand, .k-hierarchy-cell .k-i-collapse",function(n){var i=e(this);return t._toggleDetails(i),n.preventDefault(),!1})},_toggleDetails:function(t,n){var i,o,r=this,a=t.closest("td.k-hierarchy-cell"),s=t.hasClass("k-i-expand"),l=t.closest("tr.k-master-row"),d=r.detailTemplate,c=r._hasDetails(),u=s?jn:qn,h=!!s;t.toggleClass("k-i-expand",!s).toggleClass("k-i-collapse",s).attr(Gn,u),a.attr("aria-expanded",h),i=l.next(),c&&!i.hasClass("k-detail-row")&&(o=r.dataItem(l),i=e(d(o)).addClass(l.hasClass("k-alt")?"k-alt":"").insertAfter(l),r.angular("compile",function(){return{elements:i.get(),data:[{dataItem:o}]}}),r.trigger(Ft,{masterRow:l,detailRow:i,data:o,detailCell:i.find(".k-detail-cell")})),r.trigger(s?jt:qt,{masterRow:l,detailRow:i}),n?Ne(i,s):i.toggle(s)},dataItem:function(t){if(t=e(t)[0],!t)return null;var n,i,o=this.tbody.children(),r=/k-grouping-row|k-detail-row|k-group-footer/,a=t.sectionRowIndex;for(i=a,n=0;n<a;n++)r.test(o[n].className)&&i--;return this._data[i]},expandRow:function(t,n){var i=e(t).find("> td .k-i-expand");i.length&&this._toggleDetails(i,n)},collapseRow:function(t,n){var i=e(t).find("> td .k-i-collapse");i.length&&this._toggleDetails(i,n)},_createHeaderCells:function(e,n){var i,r,a,s,l,d,c,u=this,h="",p=u.options.messages,f=ne(u.columns),m=u.dataSource.group();for(i=0,s=e.length;i<s;i++)r=e[i].column||e[i],a=u._headerCellText(r),d="",c=at(r,f),r.selectable?(h+="<th scope='col'"+o(r.headerAttributes),n&&!e[i].colSpan&&(h+=" rowspan='"+n+"'"),c>-1&&(h+=qe.attr("index")+"='"+c+"'"),a=r.headerTemplate?a:qe.template(ei)({}),h+=">"+a+"</th>"):r.command?(h+="<th scope='col'"+o(r.headerAttributes),n&&!e[i].colSpan&&(h+=" rowspan='"+n+"'"),c>-1&&(h+=qe.attr("index")+"='"+c+"'"),h+=">"+a+"</th>"):(r.field&&(d=qe.attr("field")+"='"+r.field+"' "),h+="<th scope='col' role='columnheader' "+d,h+=" aria-haspopup='true'",n&&!e[i].colSpan&&(h+=" rowspan='"+n+"'"),e[i].colSpan>1?(h+='colspan="'+(e[i].colSpan-B(r.columns))+'" ',h+=qe.attr("colspan")+"='"+e[i].colSpan+"'"):1===e[i].colSpan&&(h+=qe.attr("colspan")+"='"+e[i].colSpan+"'"),r.title&&(l=r.title&&(u.options.encodeTitles?Oe(r.title,!0):r.title),h+=qe.attr("title")+'="'+l+'" '),r.groupable!==t&&(h+=qe.attr("groupable")+"='"+r.groupable+"' "),Te(u,r)&&(h+="aria-label='"+(l||r.field)+" ",h+=De(m,r.field)?p.ungroupHeader:p.groupHeader,h+="' "),r.aggregates&&r.aggregates.length&&(h+=qe.attr("aggregates")+"='"+r.aggregates+"'"),c>-1&&(h+=qe.attr("index")+"='"+c+"'"),h+=o(r.headerAttributes),h+=">"+a+"</th>");return h},_appendLockedColumnContent:function(){var t,n,i,o,r,a=this.columns,s=this.table.find("colgroup"),l=s.find("col:not(.k-group-col,.k-hierarchy-col)"),d=e(),c=0,u=0;for(t=0,n=a.length;t<n;t++)if(a[t].locked)if(b(a[t])){for(o=1,a[t].columns&&(o=ne(a[t].columns).length-B(a[t].columns)),o=o||1,r=0;r<o;r++)d=d.add(l.eq(t+u+r-c));u+=o-1}else c++;i=e('<div class="k-grid-content-locked"><table'+(ii?' cellspacing="0"':"")+"><colgroup></colgroup><tbody></tbody></table></div>"),s.detach(),i.find("colgroup").append(d),s.insertBefore(this.table.find("tbody")),this.lockedContent=i.insertBefore(this.content),this.lockedTable=i.children("table")},_appendLockedColumnFooter:function(){var t,n,i=this,o=i.footer,r=o.find(".k-footer-template>td"),a=o.find(".k-grid-footer-wrap>table>colgroup>col"),s=e('<div class="k-grid-footer-locked"><table><colgroup></colgroup><tbody><tr class="k-footer-template"></tr></tbody></table></div>'),l=i._groups(),d=e(),c=e();for(d=d.add(r.filter(".k-group-cell")),t=0,n=ne($(i.columns)).length;t<n;t++)d=d.add(r.eq(t+l));for(c=c.add(a.filter(".k-group-col")),t=0,n=w(ne(Z(i.columns))).length;t<n;t++)c=c.add(a.eq(t+l));d.appendTo(s.find("tr")),c.appendTo(s.find("colgroup")),i.lockedFooter=s.prependTo(o)},_appendLockedColumnHeader:function(t){var n,i,o,r,a,s,l,d,c,u,h,p=this,f=this.columns,m=[],g=0,v=e(),_=p._hasFilterRow(),w=0,k=e(),y=0,C=e(),S=p.thead.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),T=p.thead.find("tr:first .k-header:not(.k-group-cell,.k-hierarchy-cell)"),D=p.thead.find(".k-filter-row").find("th:not(.k-group-cell,.k-hierarchy-cell)"),A=0;for(n=0,o=f.length;n<o;n++){if(f[n].locked){if(l=T.eq(n),y=ne(f[n].columns||[]).length,b(f[n])){for(d=null,f[n].columns&&(d=y-B(f[n].columns)),d=d||1,c=0;c<d;c++)v=v.add(S.eq(n+A+c-g));A+=d-1}for(W([f[n]],ae(l),m,0,0),y=y||1,u=0;u<y;u++)k=k.add(D.eq(w+u));w+=y}f[n].columns&&(g+=B(f[n].columns)),b(f[n])||g++}if(m.length){for(i='<div class="k-grid-header-locked" style="width:1px"><table'+(ii?' cellspacing="0"':"")+"><colgroup></colgroup><thead>",i+=Array(m.length+1).join("<tr></tr>"),i+=(_?'<tr class="k-filter-row"></tr>':"")+"</thead></table></div>",s=e(i),S=s.find("colgroup"),S.append(p.thead.prev().find("col.k-group-col").add(v)),r=s.find("thead tr:not(.k-filter-row)"),n=0,o=m.length;n<o;n++)C=x(m[n]),r.eq(n).append(p.thead.find("tr:eq("+n+") .k-group-cell").add(C));return h=V(this.thead),m.length<h&&N(s,h-m.length),a=s.find(".k-filter-row"),a.append(p.thead.find(".k-filter-row .k-group-cell").add(k)),this.lockedHeader=s.prependTo(t),this.thead.find(".k-group-cell").remove(),!0}return!1},_removeLockedContainers:function(){var e=this.lockedHeader.add(this.lockedContent).add(this.lockedFooter);qe.destroy(e),e.off(Tt).remove(),this.lockedHeader=this.lockedContent=this.lockedFooter=null,this.selectable=null},_thead:function(){var t,n,i,o,r,a,s,l,d,c=this,u=c.columns,h=c._hasDetails()&&u.length,p=c._hasFilterRow(),f="",m=c.table.find(">thead"),g=c.element.find("thead:first").length>0,v=c.options.messages.expandCollapseColumnHeader;if(m.length||(m=e("<thead/>").insertBefore(c.tbody)),c.lockedHeader&&c.thead?(n=c.thead.find("tr:has(th):not(.k-filter-row)").html(""),n.remove(),n=e(),c._removeLockedContainers()):n=c.element.find(g?"thead:first tr:has(th):not(.k-filter-row)":"tr:has(th):first"),n.length){for(t=0;t<u.length;t++)o=at(u[t],ne(u)),r=oe(n.parent()).filter("th:not(.k-group-cell):not(.k-hierarchy-cell)").eq(o),u[t].hidden&&o>=0&&(r[0].style.display="none");c._updateHeadersAttr(ee(u))}else if(n=m.children().first(),!n.length){for(i=[{rowSpan:1,cells:[],index:0}],c._prepareColumns(i,u),t=0;t<i.length;t++)f+="<tr>",h&&(f+='<th class="k-hierarchy-cell" scope="col">'+v+"</th>"),f+=c._createHeaderCells(i[t].cells,i[t].rowSpan),f+="</tr>";n=e(f)}p&&(a=e("<tr/>"),a.addClass("k-filter-row"),(h||n.find(".k-hierarchy-cell").length)&&a.prepend('<th class="k-hierarchy-cell" scope="col">&nbsp;</th>'),s=(c.thead||m).find(".k-filter-row"),s.length&&(qe.destroy(s),s.remove()),m.append(a)),n.children().length?h&&!n.find(".k-hierarchy-cell")[0]&&n.prepend('<th class="k-hierarchy-cell" scope="col">'+(v?v:"&nbsp;")+"</th>"):(f="",h&&(f+='<th class="k-hierarchy-cell" scope="col">&nbsp;</th>'),f+=c._createHeaderCells(u),n.html(f)),n.attr("role","row").find("th").addClass("k-header"),c.options.scrollable||m.addClass("k-grid-header"),n.find("script").remove().end().prependTo(m),c.thead&&c._destroyColumnAttachments(),this.angular("cleanup",function(){return{elements:m.find("th"+wt).get()}}),this.angular("compile",function(){return{elements:m.find(St).get(),data:it(u,function(e){return{column:e}})}}),c.thead=m.attr("role","rowgroup"),c._sortable(),c._filterable(),c._filterRow(),c._scrollable(),c._columnMenu(),d=this.options.scrollable&&$(this.columns).length,d&&(l=c._appendLockedColumnHeader(c.thead.closest(".k-grid-header")),c._appendLockedColumnContent(),c.lockedContent.bind("DOMMouseScroll"+Tt+" mousewheel"+Tt,lt(c._wheelScroll,c)),qe.support.touch&&(c._lockedContentUserEvents=new qe.UserEvents(c.lockedContent,{move:function(e){c.content.scrollTop(c.content.scrollTop()+-e.y.delta),e.preventDefault()}})),c._updateLockedCols()),c._updateCols(),c._updateColumnCellIndex(),c._updateFirstColumnClass(),c._resizable(),c._draggable(),c._reorderable(),c._updateHeader(c._groups()),c._updateStickyColumns(),d&&(l&&c._syncLockedHeaderHeight(),c._applyLockedContainersWidth()),c.groupable&&c._attachGroupable()},_retrieveFirstColumn:function(t,n){var i,o=e();if(n.length&&t[0]){for(i=t[0];i.columns&&i.columns.length;)i=i.columns[0],n=n.filter(":not(:first())");o=o.add(n)}return o},_updateFirstColumnClass:function(){var t,n,i=this,o=i.columns||[],r=i._hasDetails()&&o.length;r||i._groups()||(t=i.thead.find(">tr:not(.k-filter-row):not(:first)"),o=K(o),n=i._retrieveFirstColumn(o,t),i._isLocked()&&(t=i.lockedHeader.find("thead>tr:not(.k-filter-row):not(:first)"),o=$(i.columns),n=n.add(i._retrieveFirstColumn(o,t))),n.each(function(){var t=e(this).find("th");t.removeClass("k-first"),t.eq(0).addClass("k-first")}))},_prepareColumns:function(e,t,n,i){var o,r,a=i||e[e.length-1],s=e[a.index+1],l=0;for(o=0;o<t.length;o++)r={column:t[o],colSpan:0},a.cells.push(r),t[o].columns&&t[o].columns.length&&(s||(s={rowSpan:0,cells:[],index:e.length},e.push(s)),r.colSpan=t[o].columns.length,this._prepareColumns(e,t[o].columns,r,s),l+=r.colSpan-1,a.rowSpan=e.length-a.index);n&&(n.colSpan+=l)},_wheelScroll:function(e){var t,n,i;e.ctrlKey||(t=this.content,this.virtualScroll&&this.virtualScroll.rows&&(t=this.virtualScrollable.verticalScrollbar),n=t.scrollTop(),i=qe.wheelDeltaY(e),i&&(t[0].scrollHeight>t[0].clientHeight&&(t[0].scrollTop<t[0].scrollHeight-t[0].clientHeight&&i<0||t[0].scrollTop>0&&i>0)&&e.preventDefault(),t.scrollTop(n+-i)))},_isLocked:function(){return null!=this.lockedHeader},_updateHeaderCols:function(){var e=this.thead.parent().add(this.table);this._isLocked()?ue(e,J(X(this.columns)),this._hasDetails(),0):ue(e,J(w(this.columns)),this._hasDetails(),0)},_updateColumnSorters:function(){var e,t,n,i,o,r=this,a=oe(r.thead),s=ne(r.columns);if(r.options.sortable)for(i=0,o=a.length;i<o;i++)e=s[i],e.sortable!==!1&&!e.command&&e.field&&(t=a.eq(i),n=t.data("kendoColumnSorter"),n&&n.refresh())},_updateHeadersAttr:function(e){var t,n,i;if(e.length){for(t=this,n=0;n<e.length;n++)e[n].headerAttributes&&(i=t.element.find("[id='"+e[n].headerAttributes.id+"']"),i.attr("headers",e[n].headerAttributes.headers));t._updateHeadersAttr(ee(e))}},_updateCols:function(e){e=e||this.thead.parent().add(this.table),this._appendCols(e,this._isLocked())},_updateLockedCols:function(e){this._isLocked()&&(e=e||this.lockedHeader.find("table").add(this.lockedTable),ue(e,J(Z(this.columns)),this._hasDetails(),this._groups()))},_appendCols:function(e,t){t?ue(e,J(X(this.columns)),this._hasDetails(),0):ue(e,J(w(this.columns)),this._hasDetails(),this._groups())},_autoColumns:function(e){if(e&&e.toJSON){var t,n,i=this;e=e.toJSON(),n=!(i.table.find("tbody tr").length>0&&(!i.dataSource||!i.dataSource.transport));for(t in e)i.columns.push({field:t,encoded:n,headerAttributes:{id:qe.guid()}});i._thead(),i._templates()}},_rowsHtml:function(e,t){var n,i,o=this,r="",a=t.rowTemplate,s=t.altRowTemplate;for(n=0,i=e.length;n<i;n++)o._skipRerenderItemsCount>0?o._skipRerenderItemsCount--:r+=n%2?s(e[n]):a(e[n]),o._data.push(e[n]);return r},_groupData:function(e,t,n){var i,o=this,r=o._groupAggregatesDefaultObject||{},a=e.items,s=nt({},r,e.aggregates),l=nt({},{field:e.field,value:e.value,items:a,aggregates:s},e.aggregates[n?n.field:e.field]),d={};if(!t)for(i in s)d[i]=nt({},s[i],{group:{field:e.field,value:e.value,items:a}});return nt({},d,l)},_removeGroupIfEmpty:function(e){var t,n,i,o=this,r=o.dataSource._group.length;for(i=0;i<r;i++)e=e.prev(),t=+e.attr("data-group-item-count"),n=+e.attr("data-sub-group-count"),1!=t&&1!=n||e.hide()},_groupRowHtml:function(e,t,n,i,o,r,a){var s,l,d,c=this,u="",h=e.field,p=ot(ne(c.columns),function(e){return e.field==h})[0]||{},f=w(c.columns)[0],m=f?f.groupHeaderColumnTemplate:null,g=p.groupHeaderTemplate?p.groupHeaderTemplate:m,v=(p.title&&(c.options.encodeTitles?Oe(p.title,!0):p.title)||h)+": "+fe(e.value,p.format,p.values,p.encoded),_=e.currentItems||e.items,b=c._groups(),k=o.groupFooterTemplate,y=o.groupHeaderColumnTemplate,x=!c.dataSource._isGroupPaged()||c.dataSource._groupsState[e.uid];if(c.options.editable&&e.items&&e.items[0]&&e.items[0].isNew&&e.items[0].isNew()&&(x=!0),(o.groupFooterTemplate||o.groupHeaderColumnTemplate||p.groupHeaderTemplate)&&(d=c._groupData(e,!1,!(p.groupHeaderTemplate||!w(c.columns)[0].groupHeaderColumnTemplate)&&w(c.columns)[0])),g&&!r&&(v=typeof g===Sn?g(d):qe.template(g)(d)),c._skipRerenderItemsCount?i(t,n,v,x,e.uid,c.dataSource._isGroupPaged()):y?e.excludeHeader?e.excludeHeader=!1:u+=y(nt({},d,{groupCells:n,colspan:b-n,text:v})):e.excludeHeader?e.excludeHeader=!1:u+=i(t,n,v,x,e.uid,c.dataSource._isGroupPaged()),x)if(e.hasSubgroups)for(s=0,l=_.length;s<l;s++)u+=c._groupRowHtml(_[s],r?t:t-1,n+1,i,o,r,a&&s===_.length-1);else u+=c._rowsHtml(_,o);return k&&(a?at(e.value,c._skippedGroups)||c._skippedGroups.push(e.value):(c._skippedGroups.length&&c._skippedGroups[0]===e.value&&c._skippedGroups.shift(),c._skipRerenderItemsCount||(u+=k(d)))),u},collapseGroup:function(n){var i,o,r,a,s,l,d,c,u,h,p=this,f=n,m=this.options.groupable,g=m.showFooter,v=g?0:1,_=e();if(n=e(n),i=n.find(".k-group-cell").length,this.dataSource._isGroupPaged())return l=n.attr("data-group-uid"),d=p.dataSource._getGroupByUid(l),c=p.dataSource._calculateGroupsTotal([d],!0),p.dataSource._groupsState[l]=!1,u=p.dataSource._calculateGroupsTotal([d],!0),p.dataSource._serverGroupsTotal-=c-u,p._progress(!0),p.dataSource.range(p.dataSource._currentRangeStart,p.dataSource.take(),function(){p._progress(!1)},"collapseGroup"),t;for(this._isLocked()&&(n.closest("div").hasClass("k-grid-content-locked")?_=this.tbody.children("tr:eq("+n.index()+")").nextAll("tr"):(_=n.nextAll("tr"),n=this.lockedTable.find(">tbody>tr:eq("+n.index()+")"))),n.find(".k-i-collapse").addClass("k-i-expand").removeClass("k-i-collapse"),n.find("td[aria-expanded='true']:first").attr("aria-expanded",!1).find("a").attr(Gn,qn),n=n.nextAll("tr"),h=[],r=0,a=n.length;r<a&&(s=n.eq(r),o=s.find(".k-group-cell").length,s.hasClass("k-grouping-row")?v++:s.hasClass("k-group-footer")&&v--,!(o<=i||s.hasClass("k-group-footer")&&v<0));r++)_.length&&h.push(_[r]),h.push(s[0]);e(h).hide(),this.options.scrollable.endless&&this.content&&(clearTimeout(p._collapseGroupsTimeOut),p._collapseGroupsTimeOut=setTimeout(function(){p.content.scroll(),p._groupToCollapse=f}))},expandGroup:function(n){var i,o,r,a,s,l,d,c,u,h,p,f,m,g,v;if(n=e(n),i=this,o=i.options.groupable.showFooter,l=e(),u=[],h=1,r=n.find(".k-group-cell").length,this.dataSource._isGroupPaged())return p=n.attr("data-group-uid"),f=i.dataSource._getGroupByUid(p),m=i.dataSource._calculateGroupsTotal([f],!0),i.dataSource._groupsState[p]=!0,f.items&&f.items.length&&(g=i.dataSource._calculateGroupsTotal([f],!0),i.dataSource._serverGroupsTotal+=g-m),i._progress(!0),i.dataSource.range(i.dataSource._currentRangeStart,i.dataSource.take(),function(){i._progress(!1)},"expandGroup"),t;for(this._isLocked()&&(n.closest("div").hasClass("k-grid-content-locked")?l=this.tbody.children("tr:eq("+n.index()+")").nextAll("tr"):(l=n.nextAll("tr"),n=this.lockedTable.find(">tbody>tr:eq("+n.index()+")"))),n.find(".k-i-expand").addClass("k-i-collapse").removeClass("k-i-expand"),n.find("td[aria-expanded='false']:first").attr("aria-expanded",!0).find("a").attr(Gn,jn),n=n.nextAll("tr"),d=0,c=n.length;d<c&&(a=n.eq(d),s=a.find(".k-group-cell").length,!(s<=r));d++)s!=r+1||a.hasClass("k-detail-row")||(a.show(),l.eq(d).show(),a.hasClass("k-grouping-row")&&a.find(".k-icon").hasClass("k-i-collapse")&&i.expandGroup(a),a.hasClass("k-master-row")&&a.find(".k-icon").hasClass("k-i-collapse")&&(a.next().show(),l.eq(d+1).show())),a.hasClass("k-grouping-row")&&(o&&u.push(a.is(":visible")),h++),a.hasClass("k-group-footer")&&(o&&(v=u.pop(),a.toggle(v),l.eq(d).toggle(v)),1==h?(a.show(),l.eq(d).show()):h--);0===r&&i.options.scrollable.endless&&this._isLocked()&&i._syncLockedContentHeight()},_updateHeader:function(t){var n=this,i=n._isLocked()?n.lockedHeader.find("thead"):n.thead,o=i.find("tr.k-filter-row").find("th.k-group-cell").length,r=i.find("tr:first").find("th.k-group-cell").length,a=i.children("tr:not(:first)").filter(function(){return!e(this).children(":visible").length});t>r?(e(Array(t-r+1).join('<th class="k-group-cell k-header" scope="col">'+n.options.messages.expandCollapseColumnHeader+"</th>")).prependTo(i.children("tr:not(.k-filter-row)")),n.element.is(":visible")&&a.find("th.k-group-cell").hide()):t<r&&i.find("tr").each(function(){e(this).find("th.k-group-cell").filter(":eq("+t+"),:gt("+t+")").remove()}),t>o&&e(Array(t-o+1).join('<th class="k-group-cell k-header" scope="col">&nbsp;</th>')).prependTo(i.find(".k-filter-row"))},_firstDataItem:function(e,t){return e&&t&&(e=e.hasSubgroups?this._firstDataItem(e.items[0],t):e.items[0]),e},_updateTablesWidth:function(){var t,n=this;n._isLocked()&&(t=e(">.k-grid-footer>.k-grid-footer-wrap>table",n.wrapper).add(n.thead.parent()).add(n.table),n._footerWidth=ke(t.eq(0)),t.width(n._footerWidth),t=e(">.k-grid-footer>.k-grid-footer-locked>table",n.wrapper).add(n.lockedHeader.find(">table")).add(n.lockedTable),t.width(ke(t.eq(0))))},hideColumn:function(n){var i,o,r,a,l,d,c,u,h,p,f,m=this,g=0,_=m.footer||m.wrapper.find(".k-grid-footer"),k=m.virtualScroll||{},y=m.columns,x=m.lockedHeader?oe(m.lockedHeader.find(">table>thead")).filter(v).length:0,C=ot(ne(m.columns),function(e){return e.groupHeaderColumnTemplate});if(n="number"==typeof n?y[n]:tt(n)?ot(z(y),function(e){return e===n})[0]:ot(z(y),function(e){return e.field===n})[0],n&&b(n)){if(p=m._columnVisibilitySetter(n),n.columns&&n.columns.length){for(d=R(n,y),p(n,!1),me(s(e(">table>thead",m.lockedHeader),m.thead,">tr:eq("+d.row+")>th"),d.cell,!1),r=0;r<n.columns.length;r++)this.hideColumn(n.columns[r]);return m.trigger(Ot,{column:n}),t}if(h=at(n,w(ne(y))),p(n,!1),m._setParentsVisibility(n,!1),m._templates(),m._updateCols(),m._updateLockedCols(),f=m.thead,c=h,m.lockedHeader&&x>h?f=m.lockedHeader.find(">table>thead"):c-=x,i=oe(f).filter(v).eq(c),i[0].style.display="none",me(s(e(">table>thead",m.lockedHeader),m.thead,">tr.k-filter-row>th"),h,!1),_[0]&&(m._updateCols(_.find(">.k-grid-footer-wrap>table")),m._updateLockedCols(_.find(">.k-grid-footer-locked>table")),me(_.find(".k-footer-template>td"),h,!1)),k.columns&&!n.locked)return m._updateContentWidth(),m.trigger(Ot,{column:n}),t;if(m.lockedTable&&x>h?ge(m.lockedTable.find(">tbody>tr"),h):ge(m.tbody.children(),h-x),m.lockedTable)m._updateTablesWidth(),m._applyLockedContainersWidth(),m._syncLockedContentHeight(),m._syncLockedHeaderHeight(),m._syncLockedFooterHeight();else{for(a=m.thead.prev().find("col"),r=0,u=a.length;r<u;r+=1)if(l=a[r].style.width,a[r].className.indexOf("k-hierarchy-col")>-1)g+=Ze(a[r]);else if(a[r].className.indexOf("k-group-col")>-1)g+=Ze(a[r]);else{if(!l||l.indexOf("%")!=-1){g=0;break}g+=parseInt(l,10)}o=e(">.k-grid-header table:first,>.k-grid-footer table:first",m.wrapper).add(m.table),m._footerWidth=null,g&&(o.each(function(){this.style.width=g+"px"}),m._footerWidth=g,m._setContentWidth()),ni.msie&&8==ni.version&&(o.css("display","inline-table"),setTimeout(function(){o.css("display","table")},1))}m._updateFirstColumnClass(),m._updateStickyColumns(),C.length>0&&m._renderGroupRows(),m.trigger(Ot,{column:n})}},_setParentsVisibility:function(t,n){var i,o,r,a,l,d=this,c=d.columns,h=[],p=d._columnVisibilitySetter(t),f=n?function(e){return w(e.columns).length&&e.hidden}:function(e){return!w(e.columns).length&&!e.hidden};if(u(t,c,h)&&h.length)for(i=h.length-1;i>=0;i--)o=h[i],r=E(o,c),a=s(e(">table>thead",this.lockedHeader),this.thead,">tr:eq("+r.row+")>th:not(.k-group-cell):not(.k-hierarchy-cell)").eq(r.cell),f(o)&&(p(o,n),a[0].style.display=n?"":"none"),a.filter("["+qe.attr("colspan")+"]").length&&(l=parseInt(a.attr(qe.attr("colspan")),10),a[0].colSpan=l-B(o.columns)||1)},_updateContentWidth:function(){var e=this,t=e.table.add(e.thead.parent());t.css({width:L(J(X(e.columns)))}),e.refresh()},showColumn:function(n){var i,o,r,a,l,d,c,u,h,p,f,m,g,v,_=this,w=_.columns,k=_.virtualScroll||{},y=_.footer||_.wrapper.find(".k-grid-footer"),x=_.lockedHeader?oe(_.lockedHeader.find(">table>thead")).length:0,C=ot(ne(_.columns),function(e){
return e.groupHeaderColumnTemplate});if("number"==typeof n?(p=n,n=w[n]):tt(n)?e.each(z(w),function(e,t){if(t===n)return n=t,p=e,!1}):e.each(z(w),function(e,t){if(t.field===n)return n=t,p=e,!1}),n&&!b(n)){if(g=_._columnVisibilitySetter(n),n.columns&&n.columns.length){for(c=E(n,w),f=z(_.options.columns)[p],g(n,!0),me(s(e(">table>thead",_.lockedHeader),_.thead,">tr:eq("+c.row+")>th"),c.cell,!0),i=0;i<n.columns.length;i++)f.columns[i].hidden||this.showColumn(n.columns[i]);return _.trigger(Vt,{column:n}),t}if(m=at(n,ne(w)),g(n,!0),_._setParentsVisibility(n,!0),_._templates(),_._updateCols(),_._updateLockedCols(),v=_.thead,d=m,_.lockedHeader&&x>m?v=_.lockedHeader.find(">table>thead"):d-=x,r=oe(v).eq(d),r[0].style.display="",me(s(e(">table>thead",_.lockedHeader),_.thead,">tr.k-filter-row>th"),m,!0),y[0]&&(_._updateCols(y.find(">.k-grid-footer-wrap>table")),_._updateLockedCols(y.find(">.k-grid-footer-locked>table")),me(y.find(".k-footer-template>td"),m,!0)),k.columns&&!n.locked)return _._updateContentWidth(),_.trigger(Vt,{column:n}),t;if(_.lockedTable&&x>m?be(_.lockedTable.find(">tbody>tr"),m):be(_.tbody.children(),m-x),_.lockedTable)_._updateTablesWidth(),_._applyLockedContainersWidth(),_._syncLockedContentHeight(),_._syncLockedHeaderHeight();else if(a=e(">.k-grid-header table:first,>.k-grid-footer table:first",_.wrapper).add(_.table),n.width){for(l=0,h=_.thead.prev().find("col"),i=0,o=h.length;i<o;i+=1)if(u=h[i].style.width,h[i].className.indexOf("k-hierarchy-col")>-1)l+=Ze(h[i]);else if(h[i].className.indexOf("k-group-col")>-1)l+=Ze(h[i]);else{if(u.indexOf("%")>-1){l=0;break}l+=parseInt(u,10)}_._footerWidth=null,l&&(a.each(function(){this.style.width=l+"px"}),_._footerWidth=l,_._setContentWidth())}else a.width("");_._updateFirstColumnClass(),_._updateStickyColumns(),C.length>0&&_._renderGroupRows(),_.trigger(Vt,{column:n})}},_columnVisibilitySetter:function(e){var t=e||{};return y(t.media)?h:f},_progress:function(e){var t=this.element,n=this.options.scrollable&&this.options.scrollable.endless;this._editContainer&&"popup"===this._editMode()?t=this._editContainer:this.lockedContent||n?t=this.wrapper:this.element.is("table")?t=this.element.parent():this.content&&this.content.length&&(t=this.content),n&&e?qe.ui.progress(t,e,{height:this.content.height(),top:this.content[0].offsetTop,opacity:!0}):qe.ui.progress(t,e)},_resize:function(e,t){this._syncLockedContentHeight(),this._syncLockedHeaderHeight(),this.content&&(this._setContentWidth(),this._setContentHeight()),this.lockedTable&&this._syncLockedScroll(),this.virtualScrollable&&(t||this._rowHeight)&&(t&&(this._rowHeight=null),this.virtualScrollable.repaintScrollbar()),this.pager&&this.pager.element&&this.pager.resize(t)},_isActiveInTable:function(){var t=Qe();return!!t&&(this.table[0]===t||e.contains(this.table[0],t)||this._isLocked()&&(this.lockedTable[0]===t||e.contains(this.lockedTable[0],t)))},refresh:function(t){var n,i,o,r=this,a=r.dataSource.view(),s=r.options.navigatable,l=r.virtualScroll||{},d=e(r.current()),c=!1,u=(r.dataSource.group()||[]).length,h=u+J(w(r.columns)).length;t&&"itemchange"===t.action&&(r.editable||r.options.scrollable.endless)&&("popup"!=this._editMode()||"popup"===this._editMode()&&!r._editableIsClosing)||(l.columns&&r._templates(),t&&"remove"===t.action&&r.editable&&r.editable.options.model&&at(r.editable.options.model,t.items)>-1&&r.editable.options.model.unbind(Nt,r._modelChangeHandler),t=t||{},r.trigger("dataBinding",{action:t.action||"rebind",index:t.index,items:t.items})||(t.action===Qt&&r._isVirtualEditable()&&(r._destroyEditable(),r._clearEditableState()),r._angularItems("cleanup"),r._endlessFetchInProgress||(s&&(r._isActiveInTable()||r._editContainer&&r._editContainer.data("kendoWindow"))&&(c=d.is("th"),n=c?d.parent().children(":not(.k-group-cell)").index(d[0]):Math.max(r.cellIndex(d),0)),r._destroyEditable()),r.options.scrollable&&r.options.scrollable.endless?(clearTimeout(r._progressTimeOut),r._progressTimeOut=setTimeout(function(){r._endlessFetchInProgress||r._progress(!1)},100)):r._progress(!1),r._hideResizeHandle(),r._data=[],r.columns.length||(r._autoColumns(r._firstDataItem(a[0],u)),h=u+r.columns.length),r._group=u>0||r._group,r._group&&(r._templates(),r._updateCols(),r._updateLockedCols(),r._virtualColScroll||r._updateHeader(u),r._group=u>0,r._groupRows=ve(a)),r.content&&(i=qe.scrollLeft(r.content)),o=r._skipRerenderItemsCount,r._renderContent(a,h,u),r.options.scrollable&&r.options.scrollable.endless&&this.lockedContent&&(r._skipRerenderItemsCount=o),r._renderLockedContent(a,h,u),r._virtualColScroll||(r._footer(),r._renderNoRecordsContent(),r._togglePagerVisibility(),r._setContentHeight(),r._setContentWidth(r.content&&i)),r.lockedTable&&(l.rows?r.content.find(">.k-virtual-scrollable-wrap").trigger("scroll"):r.touchScroller?r.touchScroller.movable.trigger("change"):(r.wrapper.one("scroll",function(e){e.stopPropagation()}),r.content.trigger("scroll"))),r._endlessFetchInProgress||r._restoreCurrent(n,c),r.touchScroller&&r.touchScroller.contentResized(),r.selectable&&r.selectable.resetTouchEvents(),r._muteAngularRebind(function(){r._angularItems("compile")}),r._checkBoxSelection&&r._toggleHeaderCheckState(!1),r.options.persistSelection&&(r.selectable&&!qe.ui.Selectable.parseOptions(r.options.selectable).cell||r._checkBoxSelection)&&(r.items().length||r.dataSource._isGroupPaged())&&r._restoreSelection(),r.trigger(Ut)))},_restoreCurrent:function(n,i){var o,r,a,s,l;if(!(n===t||n<0)){if(this._removeCurrent(),i)this._setCurrent(this.thead.find("th:not(.k-group-cell)").eq(n));else{if(o=0,r=this.virtualScroll||{},this._rowVirtualIndex?o=r.rows?this.virtualScrollable.position(this._rowVirtualIndex):this._rowVirtualIndex:n=0,a=e(),this.lockedTable&&(a=this.lockedTable.find(">tbody>tr").eq(o)),a=a.add(this.tbody.children().eq(o)),this._hasVirtualColumns()&&(s=parseInt(a.find("td:first").attr("colspan"),10),n=this._virtualCellIndex-(s>1?s-1:0)),l=a.find(">td:not(.k-group-cell):not(.k-hierarchy-cell)").eq(n),!l.length||n<0)return;this._hasVirtualColumns()?this._setCurrent(l,!0,!0):this._setCurrent(l)}this._current&&Se(this._current.closest("table")[0],!0)}},_restoreSelection:function(){var e,t=this,n=t.items(),i=dt(t.dataSource.options.schema.model)?t.dataSource.options.schema.model.fn.idField:t.dataSource.options.schema.model.id;e=ot(n,function(e){var n=t.dataItem(e)[i];if(t._selectedIds[n])return e}),t.select(e)},_angularItems:function(e){qe.ui.DataBoundWidget.fn._angularItems.call(this,e),"cleanup"!==e||this.dataSource&&this.dataSource.options.endless||this._cleanupDetailItems(),this._angularGroupItems(e),this._angularGroupFooterItems(e)},_cleanupDetailItems:function(){var e=this;e._hasDetails()&&(e.angular("cleanup",function(){return{elements:e.tbody.children(".k-detail-row")}}),e.tbody.find(".k-detail-cell").empty())},_angularGroupItems:function(t){var n=this,i=n.tbody;n.lockedContent&&(i=n.lockedTable.find("tbody")),n._group&&n.angular(t,function(){return{elements:i.children(".k-grouping-row"),data:e.map(ve(n.dataSource.view()),function(e){return{dataItem:e}})}})},_angularGroupFooterItems:function(t){var n=this,i=n.tbody;n.lockedContent&&(i=n.element),n._group&&n.groupFooterTemplate&&n.angular(t,function(){return{elements:i.find(".k-group-footer"),data:e.map(_e(n.dataSource.view()),function(e){return{dataItem:e}})}})},_renderContent:function(e,t,n){var i,o,r,a,s=this,l="",d=null!=s.lockedContent,c=null,u=s.options.scrollable,h={rowTemplate:s.rowTemplate,altRowTemplate:s.altRowTemplate,groupFooterTemplate:s.groupFooterTemplate,groupHeaderColumnTemplate:s.groupHeaderColumnTemplate};if(u&&u.endless&&!s.dataSource.options.endless&&(s._skipRerenderItemsCount=0,s.content&&(s.content[0].scrollTop=0)),c=s._skipRerenderItemsCount>0,t=d?t-J(Z(s.columns)).length:t,n>0)for(t=d?t-n:t,s.detailTemplate&&t++,s.groupFooterTemplate&&(s._groupAggregatesDefaultObject=s.dataSource.aggregates()),s.options.scrollable.endless&&(a=s.dataSource.flatView().length),i=0,o=e.length;i<o;i++)s._skippedGroups||(s._skippedGroups=[]),r=a&&i===e.length-1&&a!==s.dataSource.total(),l+=s._groupRowHtml(e[i],t,0,d?He:Le,h,d,r);else l+=s._rowsHtml(e,h);c?(s.tbody.append(l),clearTimeout(s._endlessFetchTimeOut),s._endlessFetchTimeOut=setTimeout(function(){s._groupToCollapse&&(s.collapseGroup(s._groupToCollapse),s._groupToCollapse=null)}),s._endlessFetchInProgress=null):s.tbody=se(s.tbody,s.table,l,this.options.$angular)},_renderGroupRows:function(){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_=this,b=_._groupRows,k=_.wrapper.find(".k-grouping-row"),y=_._groups(),x=null!=_.lockedContent;k.each(function(k,C){f=e(C),c=f.closest("table").parent(),u=c.is("."+Dt),n=J(u?w($(_.columns)):w(K(_.columns))),m=f.find("."+At).length,x?(t=u?Le:He,i=u?n.length+y-m:n.length):(t=Le,i=n.length+y-m),o=k>=b.length?b[k-b.length]:b[k],r=o.field,a=ot(ne(_.columns),function(e){return e.field==r})[0]||{},v=!(a.groupHeaderTemplate||!w(_.columns)[0].groupHeaderColumnTemplate)&&w(_.columns)[0],s=a.groupHeaderTemplate?a.groupHeaderTemplate:w(_.columns)[0].groupHeaderColumnTemplate,l=(a.title&&(_.options.encodeTitles?Oe(a.title,!0):a.title)||r)+": "+fe(o.value,a.format,a.values,a.encoded),y=y,d=_._groupData(o,!1,v),g=u?_.lockedGroupHeaderColumnTemplate:_.groupHeaderColumnTemplate,s&&(l=typeof s===Sn?s(d):qe.template(s)(d)),h=f.prev().length?f.prev():f.parent(),p=e(g?g(nt({},d,{groupCells:m,colspan:y-m,text:l})):t(i,m,l)),h.is("tbody")?h.prepend(p):h.after(p),f.remove()})},_renderLockedContent:function(e,t,n){var i,o,r,a="",s=null,l={rowTemplate:this.lockedRowTemplate,altRowTemplate:this.lockedAltRowTemplate,groupFooterTemplate:this.lockedGroupFooterTemplate,groupHeaderColumnTemplate:this.lockedGroupHeaderColumnTemplate};if(this.lockedContent){if(r=this.lockedTable,s=this._skipRerenderItemsCount>0,n>0)for(t-=w(ne(K(this.columns))).length,i=0,o=e.length;i<o;i++)a+=this._groupRowHtml(e[i],t,0,Le,l,!1,this.options.scrollable.endless&&i===e.length-1);else a=this._rowsHtml(e,l);s?r.children("tbody").append(a):se(r.children("tbody"),r,a,this.options.$angular),this._syncLockedContentHeight()}},_togglePagerVisibility:function(){this.options.pageable.alwaysVisible===!1&&this.wrapper.find(".k-grid-pager").toggle(this.dataSource.total()>=this.dataSource.pageSize())},_adjustRowsHeight:function(e,t){var n,i,o,r,a=e[0].rows,s=a.length,l=t[0].rows,d=e.add(t),c=d.length,u=[];for(n=0;n<s&&l[n];n++)a[n].style.height&&(a[n].style.height=l[n].style.height="");for(n=0;n<s&&l[n];n++)i=a[n].offsetHeight,o=l[n].offsetHeight,r=0,i>o?r=i:i<o&&(r=o),u.push(r);for(n=0;n<c;n++)d[n].style.display="none";for(n=0;n<s;n++)u[n]&&(a[n].style.height=l[n].style.height=u[n]+1+"px");for(n=0;n<c;n++)d[n].style.display=""}}),qe.ExcelMixin&&qe.ExcelMixin.extend(je.prototype),qe.PDFMixin&&(qe.PDFMixin.extend(je.prototype),je.prototype._drawPDF_autoPageBreak=function(n){function i(){u&&s!==t?(c.one("change",o),c.page(s)):(l.refresh(),o())}function o(){p.appendTo(document.body);var t=e.extend({},l.options.pdf,{_destructive:!0,progress:function(e){n.notify({page:e.page,pageNumber:e.pageNum,progress:.5+e.pageNum/e.totalPages/2,totalPages:e.totalPages})}});qe.drawing.drawDOM(f,t).always(function(){p.remove()}).then(function(e){d.resolve(e)}).fail(function(e){d.reject(e)})}function r(){var e=c.page(),t=u?c.totalPages():1;a.append(h.children("tr:not(.k-detail-row)")),e<t?c.page(e+1):(c.unbind("change",r),i())}var a,s,l=this,d=new e.Deferred,c=l.dataSource,u=l.options.pdf.allPages,h=l.wrapper.find('table[role$="grid"] > tbody').first(),p=e("<div>").css({position:"absolute",left:-1e4,top:-1e4}),f=l.wrapper.clone().css({height:"auto",width:"auto"}).appendTo(p);return f.find(".k-grid-content").css({height:"auto",width:"auto",overflow:"visible"}),f.find('table[role$="grid"], .k-grid-footer table').css({height:"auto",width:"100%",overflow:"visible"}),f.find(".k-grid-pager, .k-grid-toolbar, .k-grouping-header").remove(),f.find(".k-grid-header, .k-grid-footer, .k-auto-scrollable").css({paddingRight:0}),this._initPDFProgress(n),a=f.find('table[role$="grid"] > tbody').first().empty(),s=c.page(),u?(c.bind("change",r),c.page(1)):r(),d.promise()},je.prototype._drawPDF=function(n){function i(){s&&d!==t?(a.unbind("change",o),a.one("change",function(){r.resolve(l)}),a.page(d)):r.resolve(l)}function o(){c._drawPDFShadow({width:c.wrapper.width()},{avoidLinks:c.options.pdf.avoidLinks}).done(function(e){var t=a.page(),o=s?a.totalPages():1,r={page:e,pageNumber:t,progress:t/o,totalPages:o};n.notify(r),l.append(r.page),t<o?a.page(t+1):i()}).fail(function(e){r.reject(e)})}var r,a,s,l,d,c=this;return c.options.pdf.paperSize&&"auto"!=c.options.pdf.paperSize?c._drawPDF_autoPageBreak(n):(r=new e.Deferred,a=c.dataSource,s=c.options.pdf.allPages,this._initPDFProgress(n),l=new qe.drawing.Group,d=a.page(),s?(a.bind("change",o),a.page(1)):o(),r.promise())},je.prototype._initPDFProgress=function(t){var n,i=e("<div class='k-loading-pdf-mask'><div class='k-loading-color'></div></div>");i.prepend(this.wrapper.clone().css({position:"absolute",top:0,left:0})),this.wrapper.append(i),n=e("<div class='k-loading-pdf-progress'>").appendTo(i).kendoProgressBar({type:"chunk",chunkCount:10,min:0,max:1,value:0}).data("kendoProgressBar"),t.progress(function(e){n.value(e.progress)}).always(function(){qe.destroy(i),i.remove()})}),Ge.plugin(je),Ge.plugin(We)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.listview.min",["kendo.data.min","kendo.editable.min","kendo.selectable.min"],e)}(function(){return function(e,t){var n=window.kendo,i="change",o="kendoKeydown",r="cancel",a="dataBound",s="dataBinding",l=n.ui.Widget,d=n.keys,c="",u="> *:not(.k-loading-mask)",h="progress",p="error",f="k-state-focused",m="k-state-selected",g="k-edit-item",v="edit",_="remove",b="save",w="mousedown",k="click",y="touchstart",x=".kendoListView",C=e.proxy,S=n._activeElement,T=n.ui.progress,D=n.data.DataSource,A=n.ui.DataBoundWidget.extend({init:function(t,i){var o=this;i=e.isArray(i)?{dataSource:i}:i,l.fn.init.call(o,t,i),i=o.options,o.wrapper=t=o.element,t[0].id&&(o._itemId=t[0].id+"_lv_active"),o._element(),o._layout(),o._dataSource(),o._templates(),o._navigatable(),o._selectable(),o._pageable(),o._crudHandlers(),o._scrollable(),o.options.autoBind&&o.dataSource.fetch(),n.notify(o)},events:[i,r,s,a,v,_,b,o],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,height:null,template:c,altTemplate:c,editTemplate:c,contentTemplate:"<div data-content='true' />",contentElement:"div",bordered:!0,borders:"",layout:"",flex:{direction:"row",wrap:"nowrap"},grid:{},scrollable:!1},setOptions:function(e){l.fn.setOptions.call(this,e),this._layout(),this._templates(),this.selectable&&(this.selectable.destroy(),this.selectable=null),this._selectable()},_templates:function(){var e=this.options;this.template=n.template(e.template||c),this.altTemplate=n.template(e.altTemplate||e.template),this.editTemplate=n.template(e.editTemplate||c)},_item:function(e){return this.content.children()[e]()},items:function(){return this.content.children(":not(.k-loading-mask)")},dataItem:function(t){var i=n.attr("uid"),o=e(t).closest("["+i+"]").attr(i);return this.dataSource.getByUid(o)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&e.fetch(),"endless"===this.options.scrollable&&this._bindScrollable()},_unbindDataSource:function(){var e=this;e.dataSource.unbind(i,e._refreshHandler).unbind(h,e._progressHandler).unbind(p,e._errorHandler)},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._refreshHandler=C(e.refresh,e),e._progressHandler=C(e._progress,e),e._errorHandler=C(e._error,e)),e.dataSource=D.create(e.options.dataSource).bind(i,e._refreshHandler).bind(h,e._progressHandler).bind(p,e._errorHandler)},_progress:function(e){var t=this.content;T(t,e,{opacity:!0})},_error:function(){T(this.content,!1)},_element:function(){var t=this.options,n=t.height;this.element.addClass("k-widget k-listview"),t.navigatable||t.selectable?this.element.attr("role","listbox"):this.element.attr("role","list"),this.content=t.contentElement?e(document.createElement(t.contentElement)).appendTo(this.element):this.element,n&&this.element.css("height",n)},_layout:function(){var e=this,n=e.options,i=n.flex,o=n.grid,r=e.element,a=["k-widget","k-listview"],s=e.content,l=["k-listview-content"];r.add(s).removeClass(function(e,t){if(t.indexOf("k-")>=0)return!0}),n.bordered===!0&&a.push("k-listview-bordered"),"string"==typeof n.borders&&n.borders!==c&&a.push("k-listview-borders-"+n.borders),"string"==typeof n.contentPadding&&n.contentPadding!==c&&l.push("k-listview-content-padding-"+n.contentPadding),"string"==typeof n.layout&&n.layout!==c&&l.push("k-d-"+n.layout),"flex"===n.layout&&"object"==typeof i&&("string"==typeof i.direction&&""!==i.direction&&l.push("k-flex-"+i.direction),"string"==typeof i.wrap&&""!==i.wrap&&l.push("k-flex-"+i.wrap)),"grid"===n.layout&&"object"==typeof o&&("number"==typeof o.cols?s.css("grid-template-columns","repeat("+o.cols+", 1fr)"):"string"==typeof o.cols&&s.css("grid-template-columns",o.cols),"number"==typeof o.rows?s.css("grid-template-rows","repeat("+o.rows+", "+(o.rowHeight!==t?o.rowHeight:"1fr")+")"):"string"==typeof o.rows&&s.css("grid-template-rows",o.rows),"number"==typeof o.gutter?s.css("grid-gap",o.gutter):"string"==typeof o.gutter&&s.css("grid-gap",o.gutter)),e.element.addClass(a.join(" ")),e.content.addClass(l.join(" "))},refresh:function(e){var i,o,r,l,d,c=this,u=c.dataSource.view(),h="",p=c.template,f=c.altTemplate,m=c.options,g=m.selectable||m.navigatable?"option":"listitem",v=S(),_=c._endlessFetchInProgress,b=_?c._skipRerenderItemsCount:0,w=c.options.scrollable;if(e=e||{},"itemchange"===e.action)return c._hasBindingTarget()||c.editable||(i=e.items[0],r=c.items().filter("["+n.attr("uid")+"="+i.uid+"]"),r.length>0&&(l=r.index(),c.angular("cleanup",function(){return{elements:[r]}}),r.replaceWith(p(i)),r=c.items().eq(l),r.attr(n.attr("uid"),i.uid),c.angular("compile",function(){return{elements:[r],data:[{dataItem:i}]}}),c.trigger("itemChange",{item:r,data:i}))),t;if(!c.trigger(s,{action:e.action||"rebind",items:e.items,index:e.index})){for(c._angularItems("cleanup"),_||c._destroyEditable(),l=b,d=u.length;l<d;l++)h+=l%2?f(u[l]):p(u[l]);for(_?c.content.append(h):c.content.html(h),o=c.items().not(".k-loading-mask"),l=b,d=u.length;l<d;l++)r=o.eq(l),r.attr(n.attr("uid"),u[l].uid).attr("role",g),c.options.selectable&&r.attr("aria-selected","false");c.content[0]===v&&c.options.navigatable&&(c._focusNext?c.current(c.current().next()):w||c.current(o.eq(0))),c._angularItems("compile"),c._progress(!1),c._endlessFetchInProgress=null,c.trigger(a,{action:e.action||"rebind",items:e.items,index:e.index})}},_pageable:function(){var t,i,o=this,r=o.options.pageable;e.isPlainObject(r)&&(i=r.pagerId,t=e.extend({},r,{dataSource:o.dataSource,pagerId:null}),o.pager=new n.ui.Pager(e("#"+i),t))},_selectable:function(){var e,o,r=this,a=r.options.selectable,s=r.options.navigatable;a&&(e=n.ui.Selectable.parseOptions(a).multiple,r.selectable=new n.ui.Selectable(r.element,{aria:!0,multiple:e,filter:r.options.contentElement?".k-listview-content "+u:u,change:function(){r.trigger(i)}}),s&&r.element.on("keydown"+x,function(n){if(n.keyCode===d.SPACEBAR){if(o=r.current(),n.target==n.currentTarget&&n.preventDefault(),e)if(n.ctrlKey){if(o&&o.hasClass(m))return o.removeClass(m),t}else r.selectable.clear();else r.selectable.clear();r.selectable.value(o)}}))},_scrollable:function(){var e=this,t=e.options.scrollable;t&&(e.content.css({"overflow-y":"scroll",position:"relative","-webkit-overflow-scrolling":"touch"}),"endless"===t&&e._bindScrollable())},_bindScrollable:function(){var e=this,t=e._endlessPageSize=e.dataSource.options.pageSize;e.content.off("scroll"+x).on("scroll"+x,function(){this.scrollTop+this.clientHeight-this.scrollHeight>=-15&&!e._endlessFetchInProgress&&e._endlessPageSize<e.dataSource.total()&&(e._skipRerenderItemsCount=e._endlessPageSize,e._endlessPageSize=e._skipRerenderItemsCount+t,e.dataSource.options.endless=!0,e._endlessFetchInProgress=!0,e.dataSource.pageSize(e._endlessPageSize))})},current:function(e){var n=this,i=n.element,o=n._current,r=n._itemId;return e===t?o:(o&&o[0]&&(o[0].id===r&&o.removeAttr("id"),o.removeClass(f),i.removeAttr("aria-activedescendant")),e&&e[0]&&(r=e[0].id||r,n._scrollTo(e[0]),i.attr("aria-activedescendant",r),e.addClass(f).attr("id",r)),n._current=e,t)},_scrollTo:function(t){var n,i,o=this,r=o.content,a=!1,s="scroll";"auto"===r.css("overflow")||r.css("overflow")===s||r.css("overflow-y")===s?n=r[0]:(n=window,a=!0),i=function(i,o){var r=a?e(t).offset()[i.toLowerCase()]:t["offset"+i],l=t["client"+o],d=e(n)[s+i](),c=e(n)[o.toLowerCase()]();r+l>d+c?e(n)[s+i](r+l-c):r<d&&e(n)[s+i](r)},i("Top","Height"),i("Left","Width")},_navigatable:function(){var t=this,i=t.options.navigatable,o=t.element,r=t.content,a=function(i){t.current(e(i.currentTarget)),e(i.target).is(":button, a, :input, a > .k-icon, textarea")||n.focusElement(o)};i&&(t._tabindex(),o.on("focus"+x,function(){var e=t._current;e&&e.is(":visible")||(e=t._item("first")),t.current(e)}).on("focusout"+x,function(){t._current&&t._current.removeClass(f)}).on("keydown"+x,t,function(i){var o,a,s=i.keyCode,l=t.current(),c=e(i.target),u=!c.is(":button, textarea, a, a > .t-icon, input"),h=c.is(":text, :password"),p=n.preventDefault,f=r.find("."+g),m=S(),v=t.options.scrollable;if(!(!u&&!h&&s!==d.ESC||h&&s!==d.ESC&&s!==d.ENTER)&&(s!==d.UP&&s!==d.LEFT||(l&&l[0]&&(l=l.prev()),l&&l[0]?t.current(l):v||t.current(t._item("last")),p(i)),s!==d.DOWN&&s!==d.RIGHT||(v?"endless"!==t.options.scrollable||l.next().length?(l=l.next(),l&&l[0]&&t.current(l)):(t.content[0].scrollTop=t.content[0].scrollHeight,t._focusNext=!0):(l=l.next(),t.current(l&&l[0]?l:t._item("first"))),p(i)),s===d.PAGEUP&&(t.current(null),t.dataSource.page(t.dataSource.page()-1),p(i)),s===d.PAGEDOWN&&(t.current(null),t.dataSource.page(t.dataSource.page()+1),p(i)),s===d.HOME&&(t.current(t._item("first")),p(i)),s===d.END&&(t.current(t._item("last")),p(i)),s===d.ENTER&&(0!==f.length&&(u||h)?(o=t.items().index(f),m&&m.blur(),t.save(),a=function(){t.element.trigger("focus"),t.current(t.items().eq(o))},t.one("dataBound",a)):""!==t.options.editTemplate&&t.edit(l)),s===d.ESC)){if(f=r.find("."+g),0===f.length)return;o=t.items().index(f),t.cancel(),t.element.trigger("focus"),t.current(t.items().eq(o))}}),o.on(w+x+" "+y+x,t.options.contentElement?".k-listview-content "+u:u,C(a,t)))},clearSelection:function(){var e=this;e.selectable.clear(),e.trigger(i)},select:function(n){var i=this,o=i.selectable;return n=e(n),n.length?(o.options.multiple||(o.clear(),n=n.first()),o.value(n),t):o.value()},_destroyEditable:function(){var e=this;e.editable&&(e.editable.destroy(),delete e.editable)},_modelFromElement:function(e){var t=e.attr(n.attr("uid"));return this.dataSource.getByUid(t)},_closeEditable:function(){var e,t,i,o=this,r=o.editable,a=o.options,s=a.selectable||a.navigatable?"option":"listitem",l=o.template;return r&&(r.element.index()%2&&(l=o.altTemplate),o.angular("cleanup",function(){return{elements:[r.element]}}),e=o._modelFromElement(r.element),o._destroyEditable(),i=r.element.index(),r.element.replaceWith(l(e)),t=o.items().eq(i),t.attr(n.attr("uid"),e.uid),t.attr("role",s),o._hasBindingTarget()&&n.bind(t,e),o.angular("compile",function(){return{elements:[t],data:[{dataItem:e}]}})),!0},edit:function(e){var t,i,o=this,r=o._modelFromElement(e),a=r.uid;o.cancel(),e=o.items().filter("["+n.attr("uid")+"="+a+"]"),i=e.index(),e.replaceWith(o.editTemplate(r)),t=o.items().eq(i).addClass(g).attr(n.attr("uid"),r.uid),o.editable=t.kendoEditable({model:r,clearContainer:!1,errorTemplate:!1,target:o}).data("kendoEditable"),o.trigger(v,{model:r,item:t})},save:function(){var e,t,n=this,i=n.editable;i&&(t=i.element,e=n._modelFromElement(t),i.end()&&!n.trigger(b,{model:e,item:t})&&(n._closeEditable(),n.dataSource.sync()))},remove:function(e){var t=this,n=t.dataSource,i=t._modelFromElement(e);t.editable&&(n.cancelChanges(t._modelFromElement(t.editable.element)),t._closeEditable()),t.trigger(_,{model:i,item:e})||(e.hide(),n.remove(i),n.sync())},add:function(){var e,t=this,n=t.dataSource,i=n.indexOf((n.view()||[])[0]);i<0&&(i=0),t.cancel(),e=n.insert(i,{}),t.edit(t.element.find("[data-uid='"+e.uid+"']"))},cancel:function(){var e,t,n=this,i=n.dataSource;n.editable&&(e=n.editable.element,t=n._modelFromElement(e),n.trigger(r,{model:t,container:e})||(i.cancelChanges(t),n._closeEditable()))},_crudHandlers:function(){var t=this,i=w+x,o=y+x,r=k+x;t.content.on(i+" "+o,".k-edit-button",function(i){i.preventDefault();var o=e(this).closest("["+n.attr("uid")+"]");setTimeout(function(){t.edit(o)})}),t.content.on(i+" "+o,".k-delete-button",function(i){i.preventDefault();var o=e(this).closest("["+n.attr("uid")+"]");setTimeout(function(){t.remove(o)})}),t.content.on(r,".k-update-button",function(e){t.save(),e.preventDefault()}),t.content.on(r,".k-cancel-button",function(e){t.cancel(),e.preventDefault()})},destroy:function(){var e=this;l.fn.destroy.call(e),e._unbindDataSource(),e._destroyEditable(),e.element.off(x),e.content.off(x),e._endlessFetchInProgress=e._endlessPageSize=e._skipRerenderItemsCount=e._focusNext=null,e.pager&&e.pager.destroy(),n.destroy(e.element)}});n.ui.plugin(A)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.listbox.min",["kendo.draganddrop.min","kendo.data.min","kendo.selectable.min"],e)}(function(){return function(e,t){function n(t){var n=e.map(t,function(t){return e(t).index()});return n}function i(e){return t===e}function o(e){return e.clone().removeClass(he).removeClass(j).addClass(b.format("{0} {1} {2}",N,Y,q)).width(e.width())}function r(){return e("<li>").addClass(G)}function a(t){return e(t).is(":button,a,:input,a>.k-icon,textarea,span.k-select,span.k-icon,span.k-link,label.k-checkbox-label,.k-input,.k-multiselect-wrap,.k-picker-wrap,.k-picker-wrap>.k-selected-color,.k-tool-icon,.k-dropdown")}var s,l,d,c,u,h,p,f,m,g,v,_,b=window.kendo,w=b.attr,k=b.data,y=b.keys,x=b.template,C=b.ui.Widget,S=k.DataSource,T=b.ui.Selectable,D=b.ui.DataBoundWidget,A=b.Class,E=e.extend,I=e.noop,M=e.proxy,R="-",F=".",P=" ",z="#",B="kendoListBox",L=F+B,H="k-state-disabled",N="k-state-selected",O=".k-item:not(.k-state-disabled)",V=".k-list:not(.k-state-disabled) >"+O,W="k-listbox-toolbar",U="li > a.k-button:not(.k-state-disabled)",j="k-state-focused",q="k-drag-clue",G="k-drop-hint",$="k-reset k-list",K=".k-reset.k-list",Y="k-reset",Q="click"+L,X="keydown"+L,Z="blur"+L,J=b._outerWidth,ee=b._outerHeight,te="change",ne="dataBound",ie="add",oe="remove",re="reorder",ae="moveUp",se="moveDown",le="transferTo",de="transferFrom",ce="transferAllTo",ue="transferAllFrom",he="k-ghost",pe="uid",fe="tabindex",me="command",ge=-1,ve=1,_e="dragstart",be="drag",we="drop",ke="dragend",ye="ul.k-reset.k-list>li.k-item",xe="right",Ce="bottom",Se=[W+R+"left",W+R+xe,W+R+"top",W+R+Ce],Te=D.extend({init:function(e,t){var n=this;C.fn.init.call(n,e,t),n._wrapper(),n._list(),e=n.element.attr("multiple","multiple").hide(),e[0]&&!n.options.dataSource&&(n.options.dataTextField=n.options.dataTextField||"text",n.options.dataValueField=n.options.dataValueField||"value"),n._templates(),n._selectable(),n._dataSource(),n._createToolbar(),n._createDraggable(),n._createNavigatable()},destroy:function(){var e=this;D.fn.destroy.call(e),isNaN(e._listTabIndex)||(e._getList().off(),e._listTabIndex=null),e._unbindDataSource(),e._destroySelectable(),e._destroyToolbar(),e.wrapper.off(L),e._target&&(e._target=null),e._draggable&&(e._draggable.destroy(),e.placeholder=null),b.destroy(e.element)},setOptions:function(e){C.fn.setOptions.call(this,e),this._templates(),this._dataSource()},events:[te,ne,ie,oe,re,_e,be,we,ke],options:{name:"ListBox",autoBind:!0,template:"",dataTextField:"",dataValueField:"",selectable:"single",draggable:null,dropSources:[],connectWith:"",navigatable:!0,toolbar:{position:xe,tools:[]},messages:{tools:{remove:"Delete",moveUp:"Move Up",moveDown:"Move Down",transferTo:"Transfer To",transferFrom:"Transfer From",transferAllTo:"Transfer All To",transferAllFrom:"Transfer All From"}}},add:function(e){var t,n=this,i=e&&e.length?e:[e],o=i.length,r=n._getList();for(n._unbindDataSource(),n._unbindDataChange(),t=0;t<o;t++)n._addItem(i[t],r);n._bindDataChange(),n._bindDataSource(),n._syncElement()},_addItem:function(t,n){var i=this,o=i.templates.itemTemplate({item:t,r:i.templates.itemContent});e(o).attr(w(pe),t.uid).appendTo(n),"string"==typeof t?i.dataSource._data.push(t):i.dataSource.add(t)},_addItemAt:function(t,n){var i=this,o=i.templates.itemTemplate({item:t,r:i.templates.itemContent});i._unbindDataSource(),"string"==typeof t?(i._insertElementAt(o,n),i.dataSource._data.push(t)):(i._insertElementAt(e(o).attr(w(pe),t.uid),n),i.dataSource.add(t)),i._bindDataSource(),i._syncElement()},_insertElementAt:function(t,n){var i=this,o=i._getList();n>0?e(t).insertAfter(o.children().eq(n-1)):e(o).prepend(t)},_createNavigatable:function(){var e=this,t=e.options;t.navigatable&&e._getList().on(Q,O,M(e._click,e)).on(X,M(e._keyDown,e)).on(Z,M(e._blur,e))},_getTabIndex:function(){var e,t=this;return isNaN(t._listTabIndex)?(e=t.element.attr(fe),t._listTabIndex=isNaN(e)?0:e,t.element.removeAttr(fe),t._listTabIndex):t._listTabIndex},_blur:function(){this._target&&(this._target.removeClass(j),this._getList().removeAttr("aria-activedescendant")),this._target=null},_click:function(t){var n=this,i=e(t.currentTarget),o=n._target,r=a(t.target);o&&o.removeClass(j),n._target=i,i.addClass(j),n._getList().attr("aria-activedescendant",i.attr("id")),n._getList()[0]===b._activeElement()||r||n.focus()},_getNavigatableItem:function(e){var t,n=this;return t=n._target?n._target:n.items().filter(O).first(),e===y.UP&&n._target&&(t=n._target.prevAll(O).first()),e===y.DOWN&&n._target&&(t=n._target.nextAll(O).first()),t.length?t:null},_scrollIntoView:function(e){var t,n,i,o,r;e&&(e[0]&&(e=e[0]),t=this._getList().parent()[0],n=e.offsetTop,i=t.scrollTop,o=t.clientHeight,r=n+e.offsetHeight,i>n?i=n:r>i+o&&(i=r-o),t.scrollTop=i)},_keyDown:function(e){var n,i=this,o=e.keyCode,r=i._getNavigatableItem(o);if(i._target&&i._target.removeClass(j),(!e.shiftKey||e.ctrlKey||o!==y.DOWN&&o!==y.UP)&&(i._shiftSelecting=!1),o==y.DELETE)i._executeCommand(oe),i._target&&(i._target.removeClass(j),i._getList().removeAttr("aria-activedescendant"),i._target=null),n=!0;else if(o===y.DOWN||o===y.UP){if(!r)return e.preventDefault(),t;if(e.shiftKey&&!e.ctrlKey)i._shiftSelecting||(i.clearSelection(),i._shiftSelecting=!0),i._target&&r.hasClass("k-state-selected")?(i._target.removeClass(N),i.trigger(te)):i.select("single"==i.options.selectable?r:r.add(i._target));else{if(e.shiftKey&&e.ctrlKey)return i._executeCommand(o===y.DOWN?se:ae),i._scrollIntoView(i._target),e.preventDefault(),t;e.shiftKey||e.ctrlKey||("multiple"===i.options.selectable&&i.clearSelection(),i.select(r))}i._target=r,i._target?(i._target.addClass(j),i._scrollIntoView(i._target),i._getList().attr("aria-activedescendant",i._target.attr("id"))):i._getList().removeAttr("aria-activedescendant"),n=!0}else o==y.SPACEBAR?(e.ctrlKey&&i._target?i._target.hasClass(N)?(i._target.removeClass(N),i.trigger(te)):i.select(i._target):(i.clearSelection(),i.select(i._target)),n=!0):e.ctrlKey&&o==y.RIGHT?(i._executeCommand(e.shiftKey?ce:le),i._target=i.select().length?i.select():null,n=!0):e.ctrlKey&&o==y.LEFT&&(i._executeCommand(e.shiftKey?ue:de),n=!0);n&&e.preventDefault()},focus:function(){b.focusElement(this._getList())},_createDraggable:function(){var t,n=this,i=n.options.draggable;if(i){if(t=i.hint,!n.options.selectable)throw Error("Dragging requires selection to be enabled");t||(t=o),n._draggable=new b.ui.Draggable(n.wrapper,{filter:i.filter?i.filter:ye,hint:b.isFunction(t)?t:e(t),dragstart:M(n._dragstart,n),dragcancel:M(n._clear,n),drag:M(n._drag,n),dragend:M(n._dragend,n)})}},_dragstart:function(n){
var i=this,o=i.draggedElement=n.currentTarget,a=i.options.draggable.placeholder,s=i.dataItem(o),l={dataItems:s,items:e(o),draggableEvent:n};return i.options.draggable.enabled===!1?(n.preventDefault(),t):(a||(a=r),i.placeholder=e(b.isFunction(a)?a.call(i,o):a),o.is(F+H)?n.preventDefault():i.trigger(_e,l)?n.preventDefault():(i.clearSelection(),i.select(o),o.addClass(he)),t)},_clear:function(){this.draggedElement.removeClass(he),this.placeholder.remove()},_findElementUnderCursor:function(t){var n=b.elementUnderCursor(t),i=t.sender;return(e.contains(i.hint[0],n)||i.hint[0]===n)&&(i.hint.hide(),n=b.elementUnderCursor(t),i.hint.show()),n},_findTarget:function(t){var n,i,o=this,r=o._findElementUnderCursor(t),a=e(r),s=o._getList();return e.contains(s[0],r)?(n=o.items(),r=a.is("li")?r:a.closest("li")[0],i=n.filter(r)[0]||n.has(r)[0],i?(i=e(i),i.hasClass(H)?null:{element:i,listBox:o}):null):s[0]==r||s.parent()[0]==r?{element:e(s),appendToBottom:!0,listBox:o}:o._searchConnectedListBox(a)},_getElementCenter:function(e){var t=e.length?b.getOffset(e):null;return t&&(t.top+=ee(e)/2,t.left+=J(e)/2),t},_searchConnectedListBox:function(t){var n,i,o,r,a=t;return r=t.hasClass("k-list-scroller k-selectable")?t:t.closest(".k-list-scroller.k-selectable"),r.length?(n=r.parent().find("[data-role='listbox']").getKendoListBox(),n&&e.inArray(this.element[0].id,n.options.dropSources)!==-1?(i=n.items(),t=t.is("li")?t[0]:t.closest("li")[0],o=i.filter(t)[0]||i.has(t)[0],o?(o=e(o),o.hasClass(H)?null:{element:o,listBox:n}):!i.length||a.hasClass("k-list-scroller k-selectable")||a.hasClass("k-reset k-list")?{element:n._getList(),listBox:n,appendToBottom:!0}:null):null):null},_drag:function(n){var i,o,r,a=this,s=a.draggedElement,l=a._findTarget(n),d={left:n.x.location,top:n.y.location},c=a.dataItem(s),u={dataItems:[c],items:e(s),draggableEvent:n};if(a.trigger(be,u))return n.preventDefault(),t;if(l){if(i=this._getElementCenter(l.element),o={left:Math.round(d.left-i.left),top:Math.round(d.top-i.top)},l.appendToBottom)return a._movePlaceholder(l,null,s),t;o.top<0?r="prev":o.top>0&&(r="next"),r&&l.element[0]!=a.placeholder[0]&&a._movePlaceholder(l,r,s)}else a.placeholder.parent().length&&a.placeholder.remove()},_movePlaceholder:function(t,n,i){var o=this,a=o.placeholder,s=t.listBox.options.draggable;a.parent().length&&(o.placeholder.remove(),o.placeholder=e(s&&s.placeholder?b.isFunction(s.placeholder)?s.placeholder.call(o,i):s.placeholder:r.call(o,i))),n?"prev"===n?t.element.before(o.placeholder):"next"===n&&t.element.after(o.placeholder):t.element.append(o.placeholder)},_dragend:function(n){var i=this,o=i.draggedElement,r=i.items(),a=r.not(i.draggedElement).index(i.placeholder),s=r.not(i.placeholder).index(i.draggedElement),l=i.dataItem(o),d={dataItems:[l],items:e(o)},c=i.placeholder.closest(".k-widget.k-listbox").find("[data-role='listbox']").getKendoListBox();return i.trigger(we,E({},d,{draggableEvent:n}))?(n.preventDefault(),this._clear(),t):(a>=0?a===s||i.trigger(re,E({},d,{offset:a-s}))||(o.removeClass(he),i.reorder(o,a)):c&&(i.trigger(oe,d)||i.remove(e(o)),c.trigger(ie,d)||c._addItemAt(l,c.items().index(i.placeholder))),i._clear(),i._draggable.dropped=!0,i.trigger(ke,E({},d,{draggableEvent:n})),i._updateToolbar(),i._updateAllToolbars(),t)},reorder:function(t,n){var i=this,o=i.dataSource,r=i.dataItem(t),a=o.at(n),s=i.items()[n],l=e(t);r&&s&&a&&(i._removeElement(l),i._insertElementAt(l,n),i._updateToolbar())},remove:function(t){var n,i=this,o=i._getItems(t),r=o.length;for(i._unbindDataSource(),i._unbindDataChange(),n=0;n<r;n++)i._removeItem(e(o[n]));i._bindDataChange(),i._bindDataSource(),i._syncElement(),i._updateToolbar(),i._updateAllToolbars()},_removeItem:function(e){var t,n,i=this,o=i.dataSource,r=i.dataItem(e);if(r&&o){if("string"==typeof r){for(t=o._data,n=0;n<t.length;n++)if(r===t[n]){t[n]=t[t.length-1],t.pop();break}}else o.remove(r);i._removeElement(e)}},_removeElement:function(t){b.destroy(t),e(t).off().remove()},dataItem:function(t){var n=w(pe),i=e(t).attr(n)||e(t).closest("["+n+"]").attr(n);return i?this.dataSource.getByUid(i):e(t).html()},_dataItems:function(t){var n,i=[],o=e(t),r=o.length;for(n=0;n<r;n++)i.push(this.dataItem(o.eq(n)));return i},items:function(){var e=this._getList();return e.children()},select:function(e){var t,n=this,o=n.selectable;return i(e)?o.value():(t=n.items().filter(e).filter(V),o.options.multiple||(o.clear(),t=t.first()),o.value(t))},clearSelection:function(){var e=this,t=e.selectable;t&&t.clear()},enable:function(t,n){var o,r=this,a=!!i(n)||!!n,s=r._getItems(t),l=s.length;for(o=0;o<l;o++)r._enableItem(e(s[o]),a);r._updateAllToolbars()},_enableItem:function(t,n){var i=this,o=i.dataItem(t);o&&(n?e(t).removeClass(H):e(t).addClass(H).removeClass(N))},setDataSource:function(e){var t=this;t.options.dataSource=e,t._dataSource()},_dataSource:function(){var t=this,n=t.options,i=n.dataSource||{};i=e.isArray(i)?{data:i}:i,i.select=t.element,i.fields=[{field:n.dataTextField},{field:n.dataValueField}],t._unbindDataSource(),t.dataSource=S.create(i),t._bindDataSource(),t.options.autoBind&&t.dataSource.fetch()},_bindDataChange:function(){var e=this.dataSource;e._data&&e._changeHandler&&(e._data.bind(te,e._changeHandler),e._data.trigger(te))},_unbindDataChange:function(){var e=this.dataSource;e._data&&e._changeHandler&&e._data.unbind(te,e._changeHandler)},_bindDataSource:function(){var e=this,t=e.dataSource;e._dataChangeHandler=M(e.refresh,e),t&&t.bind(te,e._dataChangeHandler)},_unbindDataSource:function(){var e=this,t=e.dataSource;t&&t.unbind(te,e._dataChangeHandler)},_wrapper:function(){var t=this,n=t.element,i=n.parent("div.k-listbox");i[0]||(i=n.wrap('<div class="k-widget k-listbox" unselectable="on" />').parent(),i[0].style.cssText=n[0].style.cssText,i[0].title=n[0].title,e('<div class="k-list-scroller" />').insertBefore(n)),t.wrapper=i.addClass(n[0].className).css("display",""),t._innerWrapper=e(i[0].firstChild)},_list:function(){var t=this;e("<ul class='"+$+"' role='listbox'></ul>").appendTo(t._innerWrapper),t.options.navigatable&&t._getList().attr(fe,t._getTabIndex())},_templates:function(){var e,t=this,n=this.options;e=n.template&&"string"==typeof n.template?b.template(n.template):n.template?n.template:b.template("${"+b.expr(n.dataTextField,"data")+"}",{useWithBlock:!1}),t.templates={itemTemplate:b.template("# var item = data.item, r = data.r; # <li class='k-item' role='option' aria-selected='false'>#=r(item)#</li>",{useWithBlock:!1}),itemContent:e,toolbar:"<div class='"+W+"'></div>"}},refresh:function(){var e,t=this,n=t.dataSource.view(),i=t.templates.itemTemplate,o="";for(e=0;e<n.length;e++)o+=i({item:n[e],r:t.templates.itemContent});t._getList().html(o),t._setItemIds(),t._createToolbar(),t._syncElement(),t._updateToolbar(),t._updateAllToolbars(),t.trigger(ne)},_syncElement:function(){var e,t="",n=this.dataSource.view();for(e=0;e<n.length;e++)t+=this._option(n[e][this.options.dataValueField]||n[e],n[e][this.options.dataTextField]||n[e],!0);this.element.html(t)},_option:function(e,n){var i="<option";return e!==t&&(e+="",e.indexOf('"')!==-1&&(e=e.replace(/"/g,"&quot;")),i+=' value="'+e+'"'),i+=" selected>",n!==t&&(i+=b.htmlEncode(n)),i+="</option>"},_setItemIds:function(){var e,t=this,n=t.items(),i=t.dataSource.view(),o=i.length;for(e=0;e<o;e++)n.eq(e).attr(w(pe),i[e].uid).attr("id",i[e].uid)},_selectable:function(){var e=this,t=e.options.selectable,n=T.parseOptions(t);n.multiple&&e.element.attr("aria-multiselectable","true"),e.selectable=new T(e._innerWrapper,{aria:!0,multiple:n.multiple,filter:O,change:M(e._onSelect,e)})},_onSelect:function(){var e=this;e._updateToolbar(),e._updateAllToolbars(),e.trigger(te)},_destroySelectable:function(){var e=this;e.selectable&&e.selectable.element&&(e.selectable.destroy(),e.selectable=null)},_getList:function(){return this.wrapper.find(K)},_getItems:function(e){return this.items().filter(e)},_createToolbar:function(){var t,n=this,i=n.options.toolbar,o=i.position||xe,r=o===Ce?"insertAfter":"insertBefore",a=i.tools||[],s=n.options.messages;n._destroyToolbar(),n.wrapper.removeClass(Se.join(P)),a.length&&a.length>0&&(t=e(n.templates.toolbar)[r](n._innerWrapper),n.toolbar=new _(t,E({},i,{listBox:n,messages:s})),n.wrapper.addClass(W+R+o))},_destroyToolbar:function(){var e=this;e.toolbar&&(e.toolbar.destroy(),e.toolbar=null)},_executeCommand:function(e){var t=this,n=s.current.create(e,{listBox:t});n&&(n.execute(),t._updateToolbar(),t._updateAllToolbars())},_updateToolbar:function(){var e=this.toolbar;e&&e._updateToolStates()},_updateAllToolbars:function(){var t,n,i=e("select[data-role='listbox']"),o=i.length;for(n=0;n<o;n++)t=e(i[n]).data(B),t&&t._updateToolbar()}});b.ui.plugin(Te),s=A.extend({init:function(){this._commands=[]},register:function(e,t){this._commands.push({commandName:e,commandType:t})},create:function(e,t){var n,i,o,r=this._commands,a=r.length,s=e?e.toLowerCase():"";for(o=0;o<a;o++)if(i=r[o],i.commandName.toLowerCase()===s){n=i;break}if(n)return new n.commandType(t)}}),s.current=new s,l=A.extend({init:function(e){var t=this;t.options=E({},t.options,e),t.listBox=t.options.listBox},options:{listBox:null},getItems:function(){return e(this.listBox.select())},execute:I,canExecute:I}),d=l.extend({execute:function(){var e=this,t=e.listBox,n=e.getItems();t.trigger(oe,{dataItems:t._dataItems(n),items:n})||t.remove(n)},canExecute:function(){return this.listBox.select().length>0}}),s.current.register(oe,d),c=l.extend({execute:function(){var e=this;e.canExecute()&&e.moveItems()},canExecute:I,moveItems:function(){var t,i=this,o=i.listBox,r=i.options,a=i.getItems(),s=r.offset,l=n(a),d=e.makeArray(a.sort(i.itemComparer)),c=r.moveAction;if(!o.trigger(re,{dataItems:o._dataItems(d),items:e(d),offset:s}))for(;d.length>0&&l.length>0;)t=d[c](),o.reorder(t,l[c]()+s)},options:{offset:0,moveAction:"pop"},itemComparer:function(t,n){var i=e(t).index(),o=e(n).index();return i===o?0:i>o?1:-1}}),u=c.extend({options:{offset:ge,moveAction:"shift"},canExecute:function(){var e=this.getItems(),t=n(e);return t.length>0&&t[0]>0}}),s.current.register(ae,u),h=c.extend({options:{offset:ve,moveAction:"pop"},canExecute:function(){var t=this,i=t.getItems(),o=n(i);return o.length>0&&e(o).last()[0]<t.listBox.items().length-1}}),s.current.register(se,h),p=l.extend({options:{filter:O},execute:function(){var e=this,t=e.getSourceListBox(),n=e.getItems().filter(e.options.filter),i=t?t._dataItems(n):[],o=e.getDestinationListBox(),r=e.getUpdatedSelection(n);o&&n.length>0&&(o.trigger(ie,{dataItems:i,items:n})||o.add(i),t.trigger(oe,{dataItems:i,items:n})||(t.remove(n),e.updateSelection(r)))},getUpdatedSelection:function(t){var n,i,o,r,a,s;return 1!==t.length?null:(n=this,i=n.options.filter,o=n.getSourceListBox(),r=o?o.items().filter(i).last():null,a=e(t).filter(r).length>0,s=a?e(t).prevAll(i)[0]:e(t).nextAll(i)[0],s?s:null)},updateSelection:function(t){var n=this.getSourceListBox();n&&t&&(e(n.select(e(t))),n._scrollIntoView(t))},getSourceListBox:I,getDestinationListBox:I}),f=p.extend({canExecute:function(){var e=this.getSourceListBox();return!!e&&e.select().length>0},getSourceListBox:function(){return this.listBox},getDestinationListBox:function(){var t=this.getSourceListBox();return t&&t.options.connectWith?e(z+t.options.connectWith).data(B):null},getItems:function(){var t=this.getSourceListBox();return t?e(t.select()):e()}}),s.current.register(le,f),m=p.extend({canExecute:function(){var e=this.getSourceListBox();return!!e&&e.select().length>0},getSourceListBox:function(){var t=this.getDestinationListBox();return t&&t.options.connectWith?e(z+t.options.connectWith).data(B):null},getDestinationListBox:function(){return this.listBox},getItems:function(){var t=this.getSourceListBox();return t?e(t.select()):e()}}),s.current.register(de,m),g=f.extend({canExecute:function(){var e=this.getSourceListBox();return!!e&&e.wrapper.find(V).length>0},getItems:function(){var t=this.getSourceListBox();return t?t.items():e()},getUpdatedSelection:I,updateSelection:I}),s.current.register(ce,g),v=m.extend({canExecute:function(){var e=this.getSourceListBox();return!!e&&e.wrapper.find(V).length>0},getItems:function(){var t=this.getSourceListBox();return t?t.items():e()},getUpdatedSelection:I,updateSelection:I}),s.current.register(ue,v),_=A.extend({init:function(t,n){var i=this;i.element=e(t).addClass(W),i.options=E({},i.options,n),i.listBox=i.options.listBox,i._initTemplates(),i._createTools(),i._updateToolStates(),i._attachEventHandlers()},destroy:function(){var e=this;e._detachEventHandlers(),b.destroy(e.element),e.element.remove(),e.element=null},options:{position:xe,tools:[]},_initTemplates:function(){this.templates={tool:x("<li><a href='\\\\#' class='k-button k-button-icon' data-command='#= command #' title='#= text #' aria-label='#= text #' role='button'><span class='k-icon #= iconClass #'></span></a></li>")}},_createTools:function(){var t,n,i=this,o=i.options.tools,r=o.length,a=i.options.messages.tools,s=i._createToolList();for(n=0;n<r;n++)t=E({},_.defaultTools[o[n]],{text:a[o[n]]}),t&&s.append(e(i.templates.tool(t)));i.element.append(s)},_createToolList:function(){return e("<ul class='k-reset' />")},_attachEventHandlers:function(){var e=this;e.element.on(Q,U,M(e._onToolClick,e))},_detachEventHandlers:function(){this.element.off(L).find("*").off(L)},_onToolClick:function(t){t.preventDefault(),this._executeToolCommand(e(t.currentTarget).data(me))},_executeToolCommand:function(e){var t=this,n=t.listBox;n&&n._executeCommand(e)},_updateToolStates:function(){var e,t=this,n=t.options.tools,i=n.length;for(e=0;e<i;e++)t._updateToolState(n[e])},_updateToolState:function(e){var t=this,n=s.current.create(e,{listBox:t.listBox}),i=t.element.find("[data-command='"+e+"']"),o=i[0];o&&n&&n.canExecute&&(n.canExecute()?i.removeClass(H).removeAttr(fe):i.addClass(H).attr(fe,"-1"))}}),_.defaultTools={remove:{command:oe,iconClass:"k-i-x"},moveUp:{command:ae,iconClass:"k-i-arrow-60-up"},moveDown:{command:se,iconClass:"k-i-arrow-60-down"},transferTo:{command:le,iconClass:"k-i-arrow-60-right"},transferFrom:{command:de,iconClass:"k-i-arrow-60-left"},transferAllTo:{command:ce,iconClass:"k-i-arrow-double-60-right"},transferAllFrom:{command:ue,iconClass:"k-i-arrow-double-60-left"}},E(Te,{ToolBar:_})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.loader.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,r="k-hidden",a="aria-label",s="aria-hidden",l={loader:"k-widget k-loader",canvas:"k-loader-canvas",segment:"k-loader-segment"},d={pulsing:{className:"pulsing-2",segments:2},"infinite-spinner":{className:"spinner-3",segments:3},"converging-spinner":{className:"spinner-4",segments:4}},c=i.extend({init:function(e,t){var o=this;i.fn.init.call(o,e,t),o._render(),o._appearance(),n.notify(o)},destroy:function(){var e=this;i.fn.destroy.call(e)},options:{name:"Loader",themeColor:"primary",sizes:{small:"sm",medium:"md",large:"lg"},size:"medium",type:"pulsing",visible:!0,messages:{loading:"Loading"},_classNames:[]},_render:function(){var n,i=this,o=i.element,r=i.options.type,s=d[r]===t?r:d[r],c=[];if(o.empty().attr(a,i.options.messages.loading),s.segments)for(n=0;n<s.segments;n+=1)c.push(e("<span/>").addClass(l.segment));e("<div>").addClass(l.canvas).append(c).appendTo(o)},_appearance:function(){var e=this;e._themeColor=e.options.themeColor,e._sizes=e.options.sizes,e._size=e.options.size,e._type=e.options.type,e._visible=e.options.visible,e._updateClassNames()},_updateClassNames:function(){var n=this,i=[l.loader],o=n.options._classNames,a=n._themeColor,c=n._sizes,u=n._size,h=n._type,p=d[h]===t?h:d[h],f=c[u]===t?u:c[u],m=n._visible;n.element.removeClass(function(e,t){0===t.indexOf("k-")&&o.indexOf(t)===-1&&n.element.removeClass(t)}),"string"==typeof a&&""!==a&&"inherit"!==a&&i.push("k-loader-"+a),"string"==typeof u&&""!==u&&""!==f&&i.push("k-loader-"+f),"string"==typeof h&&""!==h&&i.push("k-loader-"+(e.isPlainObject(p)?p.className:h)),m===!1&&i.push(r),n.element.attr(s,!m),n.element.addClass(i.join(" "))},setOptions:function(e){var t=this;i.fn.setOptions.call(t,e),t._render(),t._appearance()},themeColor:function(e){var n=this;return 0===arguments.length||e===t?n._themeColor:(n._themeColor=e,n._updateClassNames(),t)},hide:function(){var e=this;e._visible=!1,e._updateClassNames()},show:function(){var e=this;e._visible=!0,e._updateClassNames()}});o.plugin(c)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.upload.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){return e.map(i(t),function(e){return e.name}).join(", ")}function i(e){var t=e[0];return t.files?o(t.files):[{name:s(t.value),extension:a(t.value),size:null}]}function o(t){return e.map(t,function(e){return r(e)})}function r(e){var t=e.name||e.fileName;return{name:C.htmlEncode(t),extension:a(t),size:"number"==typeof e.size?e.size:e.fileSize,rawFile:e}}function a(e){var t=e.match(A);return t?t[0]:""}function s(e){var t=e.lastIndexOf("\\");return t!=-1?e.substr(t+1):e}function l(t,n){var i=C.guid();return e.map(t,function(e){return e.uid=n?C.guid():i,e})}function d(e,t){var n,i=c(t.allowedExtensions),o=t.maxFileSize,r=t.minFileSize;for(n=0;n<e.length;n++)u(e[n],i),h(e[n],r,o)}function c(t){var n=e.map(t,function(e){var t="."===e.substring(0,1)?e:"."+e;return t.toLowerCase()});return n}function u(t,n){n.length>0&&n.indexOf(t.extension.toLowerCase())<0&&(t.validationErrors=t.validationErrors||[],e.inArray(j,t.validationErrors)===-1&&t.validationErrors.push(j))}function h(t,n,i){0!==n&&t.size<n&&(t.validationErrors=t.validationErrors||[],e.inArray(U,t.validationErrors)===-1&&t.validationErrors.push(U)),0!==i&&t.size>i&&(t.validationErrors=t.validationErrors||[],e.inArray(W,t.validationErrors)===-1&&t.validationErrors.push(W))}function p(e){var t,n=0;if("number"!=typeof e[0].size)return"";for(t=0;t<e.length;t++)e[t].size&&(n+=e[t].size);return n/=1024,n<1024?n.toFixed(2)+" KB":(n/1024).toFixed(2)+" MB"}function f(t){return!t.multiple&&e(".k-file",t.wrapper).length>1}function m(n,i,o,r){var a,s;return i._supportsRemove()?(a=n.data("fileNames"),s=e.map(a,function(e){return e.name}),r===!1?(i._removeFileEntry(n),t):(i._submitRemove(s,o,function(e,t,o){var r=i.trigger(R,{operation:"remove",files:a,response:e,XMLHttpRequest:o});r||i._removeFileEntry(n)},function(e){f(i)&&i._removeFileEntry(n),i.trigger(F,{operation:"remove",files:a,XMLHttpRequest:e}),D("Server response: "+e.responseText)}),t)):(!f(i)&&r||i._removeFileEntry(n),t)}function g(t,n,i){var o=!1,r="";try{r=e.parseJSON(v(t)),o=!0}catch(a){i()}o&&n(r)}function v(e){return t!==e&&""!==e||(e="{}"),e}function _(e){e.stopPropagation(),e.preventDefault()}function b(e,t,n,i){var o,r;e.on("dragenter"+t,function(e){n(e),r=new Date,o||(o=setInterval(function(){var e=new Date-r;e>100&&(i(),clearInterval(o),o=null)},100))}).on("dragover"+t,function(){r=new Date})}function w(e){return e.is(".k-file-progress, .k-file-success, .k-file-error")}function k(t){return e(t.target).closest(".k-file")}var y,x,C=window.kendo,S=C.ui.Widget,T=C.antiForgeryTokens,D=C.logToConsole,A=/\.([^\.]+)$/,E=".kendoUpload",I="select",M="upload",R="success",F="error",P="complete",z="cancel",B="clear",L="pause",H="resume",N="progress",O="remove",V="validationErrors",W="invalidMaxFileSize",U="invalidMinFileSize",j="invalidFileExtension",q=1e3,G=2e3,$={loading:"k-i-upload",warning:"k-i-warning",success:"k-i-check"},K=S.extend({init:function(t,n){var i,o,r,a=this;S.fn.init.call(a,t,n),a.name=t.name,a.multiple=a.options.multiple,a.directory=a.options.directory,a.localization=a.options.localization,i=a.element,a.wrapper=i.closest(".k-upload"),0===a.wrapper.length&&(a.wrapper=a._wrapInput(i)),a._activeInput(i),a.toggle(a.options.enabled),o=a._ns=E+"-"+C.guid(),i.closest("form").on("submit"+o,e.proxy(a._onParentFormSubmit,a)).on("reset"+o,e.proxy(a._onParentFormReset,a)),a.options.async.saveUrl?(a._module=a._supportsFormData()?new x(a):new y(a),a._async=!0,r=a.options.files,r.length>0&&a._renderInitialFiles(r)):a._module=new Y(a),a._toggleDropZone(),a.wrapper.on("click",".k-upload-action",e.proxy(a._onFileAction,a)).on("click",".k-clear-selected",e.proxy(a._onClearSelected,a)).on("click",".k-upload-selected",e.proxy(a._onUploadSelected,a)),a.element.val()&&a._onInputChange({target:a.element})},events:[I,M,R,F,P,z,B,N,O,L,H],options:{name:"Upload",enabled:!0,multiple:!0,directory:!1,showFileList:!0,template:"",files:[],async:{autoRetryAfter:0,bufferChunkSize:1e7,maxAutoRetries:1,removeVerb:"POST",autoUpload:!0,withCredentials:!0,accept:"*/*; q=0.5, application/json",useArrayBuffer:!1},localization:{select:"Select files...",cancel:"Cancel",retry:"Retry",remove:"Remove",pause:"Pause",resume:"Resume",clearSelectedFiles:"Clear",uploadSelectedFiles:"Upload",dropFilesHere:"Drop files here to upload",invalidFiles:"Invalid file(s). Please check file upload requirements.",statusUploading:"uploading",statusUploaded:"uploaded",statusWarning:"warning",statusFailed:"failed",headerStatusUploading:"Uploading...",headerStatusPaused:"Paused",headerStatusUploaded:"Done",uploadSuccess:"File(s) uploaded successfully.",uploadFail:"File(s) failed to upload.",invalidMaxFileSize:"File size too large.",invalidMinFileSize:"File size too small.",invalidFileExtension:"File type not allowed."},validation:{allowedExtensions:[],maxFileSize:0,minFileSize:0},dropZone:""},setOptions:function(t){var n=this,i=n.element;e(n.options.dropZone).off(n._ns),S.fn.setOptions.call(n,t),n.multiple=n.options.multiple,n.directory=n.options.directory,i.attr("multiple",!!n._supportsMultiple()&&n.multiple),n.directory&&(i.attr("webkitdirectory",n.directory),i.attr("directory",n.directory)),n.toggle(n.options.enabled),n._toggleDropZone()},enable:function(e){e=t===e||e,this.toggle(e)},disable:function(){this.toggle(!1)},toggle:function(e){e=t===e?e:!e,this.wrapper.toggleClass("k-state-disabled",e),this.element.prop("disabled",e)},focus:function(){this.element.focus()},destroy:function(){var t=this,n=e(t.options.dropZone);e(document).add(e(".k-dropzone",t.wrapper)).add(t.wrapper.closest("form")).off(t._ns),n.length>0&&n.off(t._ns),e(t.element).off(E),S.fn.destroy.call(t)},pause:function(t){this._module.onPause({target:e(t,this.wrapper)});var n=t.find(".k-i-pause-sm");n.removeClass("k-i-pause-sm").addClass("k-i-play-sm").attr("title",this.localization.resume),e(n).parent().attr("aria-label",this.localization.resume)},resume:function(t){this._module.onResume({target:e(t,this.wrapper)});var n=t.find(".k-i-play-sm");n.removeClass("k-i-play-sm").addClass("k-i-pause-sm").attr("title",this.localization.pause),e(n).parent().attr("aria-label",this.localization.pause)},upload:function(){var e=this;e._module.onSaveSelected()},getFiles:function(){var t,n,i,o=this,r=[],a=o.wrapper.find(".k-file");for(n=0;n<a.length;n++)if(t=e(a[n]).data("fileNames"))for(i=0;i<t.length;i++)r.push(t[i]);return r},clearAllFiles:function(){var e=this,t=e.wrapper.find(".k-file");t.each(function(t,n){e._removeFileByDomElement(n,!1)})},removeAllFiles:function(){var e=this,t=e.wrapper.find(".k-file");t.each(function(t,n){e._removeFileByDomElement(n,!0)})},removeFileByUid:function(e){this._removeFileByUid(e,!0)},clearFileByUid:function(e){this._removeFileByUid(e,!1)},_removeFileByUid:function(t,n){var i,o=this;"string"==typeof t&&(i=e(".k-file["+C.attr("uid")+'="'+t+'"]',o.wrapper),i.length>0&&o._removeFileByDomElement(i,n))},clearFile:function(e){this._removeFile(e,!1)},removeFile:function(e){this._removeFile(e,!0)},_removeFile:function(t,n){var i,o=this,r=o.wrapper.find(".k-file");"function"==typeof t&&r.each(function(r,a){i=e(a).data("fileNames"),t(i)&&o._removeFileByDomElement(a,n)})},_removeFileByDomElement:function(t,n){var i,o=this,r={target:e(t,o.wrapper)};o.options.async.saveUrl?(e(t).hasClass("k-file-progress")?o._module.onCancel(r):o._module.onRemove(r,{},n),i=e(".k-file",o.wrapper),0===i.length?o._hideHeaderUploadstatus():o._updateHeaderUploadStatus()):o._module.onRemove(r,{},n)},_addInput:function(t){if(t[0].nodeType){var n=this,i=t.clone().val("");i.insertAfter(n.element).data("kendo"+n.options.prefix+n.options.name,n),e(n.element).hide().attr("tabindex","-1").removeAttr("id").off(E),n._activeInput(i),n.element.focus()}},_activeInput:function(t){var n=this,i=n.wrapper;n.element=t,n.directory&&(t.attr("webkitdirectory",n.directory),t.attr("directory",n.directory)),t.attr("multiple",!!n._supportsMultiple()&&n.multiple).attr("autocomplete","off").on("click"+E,function(e){i.hasClass("k-state-disabled")&&e.preventDefault()}).on("focus"+E,function(){e(this).parent().addClass("k-state-focused")}).on("blur"+E,function(){e(this).parent().removeClass("k-state-focused")}).on("change"+E,e.proxy(n._onInputChange,n)).on("keydown"+E,e.proxy(n._onInputKeyDown,n))},_onInputKeyDown:function(e){var t=this,n=t.wrapper.find(".k-upload-action:visible:first");e.keyCode===C.keys.TAB&&n.length>0&&!e.shiftKey&&(e.preventDefault(),n.focus())},_onInputChange:function(t){var n,i=this,o=e(t.target),r=l(i._inputFiles(o),i._isAsyncNonBatch());d(r,i.options.validation),n=i.trigger(I,{files:r}),n?(i._addInput(o),o.remove()):i._module.onSelect({target:o},r)},_readDirectory:function(t){var n=new e.Deferred,i=t.createReader(),o=[],r=function(){i.readEntries(function(e){e.length?(o=o.concat(e),r()):n.resolve(o)},n.reject)};return r(),n.promise()},_readFile:function(e){var t=this,n=e.fullPath;e.file(function(e){e.relativePath=n.slice(1),t.droppedFolderFiles.push(e),t.droppedFolderCounter--,0===t.droppedFolderCounter&&setTimeout(function(){0===t.droppedFolderCounter&&t.droppedFolderFiles.length&&(t._proceedDroppedItems(t.droppedFolderFiles),t.droppedFolderFiles=[])},0)},function(){D("File error.")})},_traverseFileTree:function(e,t){var n=this;t||n.droppedFolderCounter--,this._readDirectory(e).then(function(e){n.droppedFolderCounter+=e.length;for(var t=0;t<e.length;t++)e[t].isFile?n._readFile(e[t]):e[t].isDirectory&&n._traverseFileTree(e[t])})},_onDrop:function(e){var t,n,i,o=e.originalEvent.dataTransfer,r=this,a=o.files;if(_(e),r.options.directoryDrop&&o.items)for(t=o.items.length,r.droppedFolderCounter=0,r.droppedFolderFiles=[],n=0;n<t;n++)o.items[n].webkitGetAsEntry?(i=o.items[n].webkitGetAsEntry(),i.isDirectory?r._traverseFileTree(i,!0):i.isFile&&r.droppedFolderFiles.push(o.files[n])):r._proceedDroppedItems(a);else r._proceedDroppedItems(a)},_proceedDroppedItems:function(t){var n,i=this,r=l(o(t),i._isAsyncNonBatch());t.length>0&&!i.wrapper.hasClass("k-state-disabled")&&(!i.multiple&&r.length>1&&r.splice(1,r.length-1),d(r,i.options.validation),n=i.trigger(I,{files:r}),n||i._module.onSelect({target:e(".k-dropzone",i.wrapper)},r))},_filesContainValidationErrors:function(t){var n=!1;return e(t).each(function(e,t){if(t[V]&&t[V].length>0)return n=!0,!1}),n},_isAsyncNonBatch:function(){return this._async&&!this.options.async.batch||!1},_renderInitialFiles:function(e){var t,n,i=this,o=0;for(e=l(e,!0),o=0;o<e.length;o++)t=e[o],n=i._enqueueFile(t.name,{fileNames:[t]}),n.addClass("k-file-success").data("files",[e[o]]),i._supportsRemove()&&i._fileAction(n,O)},_prepareTemplateData:function(e,t){var n=t.fileNames,i={},o=0,r=0;for(r=0;r<n.length;r++)o+=n[r].size;return i.name=e,i.size=o,i.files=t.fileNames,i},_prepareDefaultSingleFileEntryTemplate:function(t){var n=this,i=t.fileNames[0],o=p(t.fileNames),r=C.getFileGroup(i.extension,!0),a=i[V],s="";return s+=a&&a.length>0?"<li class='k-file k-file-invalid'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-file-invalid-group-wrapper'><span class='k-file-group k-icon k-i-"+r+"'></span><span class='k-file-state'></span></span><span class='k-file-name-size-wrapper'><span class='k-file-name k-file-name-invalid' title='"+i.name+"'>"+i.name+"</span><span class='k-file-validation-message k-text-error'>"+n.localization[a[0]]+"</span></span>":"<li class='k-file'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-file-group-wrapper'><span class='k-file-group k-icon k-i-"+r+"'></span><span class='k-file-state'></span></span><span class='k-file-name-size-wrapper'><span class='k-file-name' title='"+i.name+"'>"+i.name+"</span><span class='k-file-size'>"+o+"</span></span>",s+="<strong class='k-upload-status'></strong>",e(s)},_prepareDefaultMultipleFileEntriesTemplate:function(t){var n,i,o,r=this,a=t.fileNames,s=r._filesContainValidationErrors(a),l=p(a),d="";for(d+=s?"<li class='k-file k-file-invalid'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-multiple-files-invalid-group-wrapper'><span class='k-file-group k-icon k-i-files'></span>":"<li class='k-file'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-multiple-files-group-wrapper'><span class='k-file-group k-icon k-i-files'></span>",d+="<span class='k-file-state'></span></span>",a.sort(function(e,t){return e[V]?-1:t[V]?1:0}),d+="<span class='k-multiple-files-wrapper'>",n=0;n<a.length;n++)i=a[n],o=p([i]),d+="<span class='k-file-name-size-wrapper'>",d+=i[V]&&i[V].length>0?"<span class='k-file-name k-file-name-invalid' title='"+i.name+"'>"+i.name+"</span>":"<span class='k-file-name' title='"+i.name+"'>"+i.name+"</span>",d+="<span class='k-file-size'>"+o+"</span></span>";return d+=s?"<span class='k-file-validation-message k-text-error'>"+r.localization.invalidFiles+"</span>":"<span class='k-file-information'>Total: "+a.length+" files, "+l+"</span>",d+="</span><strong class='k-upload-status'></strong>",e(d)},_enqueueFile:function(t,n){var i,o,r,a,s=this,l=n.fileNames[0].uid,d=e(".k-upload-files",s.wrapper),c=s.options,u=c.template;return 0===d.length&&(d=e("<ul class='k-upload-files k-reset'></ul>").appendTo(s.wrapper),s.options.showFileList||d.hide(),s.wrapper.removeClass("k-upload-empty")),i=e(".k-file",d),u?(r=s._prepareTemplateData(t,n),u=C.template(u),o=e("<li class='k-file'>"+u(r)+"</li>"),o.find(".k-upload-action").addClass("k-button k-button-icon k-flat"),s.angular("compile",function(){return{elements:o,data:[r]}})):o=1===n.fileNames.length?s._prepareDefaultSingleFileEntryTemplate(n):s._prepareDefaultMultipleFileEntriesTemplate(n),o.attr(C.attr("uid"),l).appendTo(d).data(n),s._async||e(".k-progress",o).width("100%"),!s.multiple&&i.length>0&&(a={files:i.data("fileNames"),headers:{}},s.trigger(O,a)||s._module.onRemove({target:e(i,s.wrapper)},a)),o},_removeFileEntry:function(t){var n,i,o,r=this,a=t.closest(".k-upload-files");t.remove(),n=e(".k-file",a),i=e(".k-file-success, .k-file-error",a),o=e(".k-file-invalid",a),i.length!==n.length&&o.length!==n.length||this._hideActionButtons(),0===n.length?(a.remove(),r.wrapper.addClass("k-upload-empty"),r._hideHeaderUploadstatus()):r._updateHeaderUploadStatus()},_fileAction:function(e,t,n){var i,o={remove:"k-i-x",cancel:"k-i-cancel",retry:"k-i-retry",pause:"k-i-pause-sm"},r={remove:"k-i-close",cancel:"k-i-cancel",retry:"k-i-reload-sm",pause:"k-i-pause-sm"};o.hasOwnProperty(t)&&(n||this._clearFileAction(e),this.options.template?(i=e.find(".k-upload-action").first(),i.find(".k-icon").length?i.next(".k-upload-action").length&&i.next(".k-upload-action").addClass("k-button").append("<span class='k-icon "+r[t]+" "+o[t]+"' title='"+this.localization[t]+"'aria-label='"+this.localization[t]+"'></span>").show():i.addClass("k-button").append("<span class='k-icon "+r[t]+" "+o[t]+"' title='"+this.localization[t]+"'aria-label='"+this.localization[t]+"'></span>").show()):(n||e.find(".k-upload-status .k-upload-action").remove(),e.find(".k-upload-status").append(this._renderAction(o[t],this.localization[t],r[t]))))},_fileState:function(t,n){var i=this.localization,o={uploading:{text:i.statusUploading},uploaded:{text:i.statusUploaded},failed:{text:i.statusFailed}},r=o[n];r&&e("span.k-file-state",t).text(r.text)},_renderAction:function(t,n,i){return""!==t?e("<button type='button' class='k-button k-button-icon k-flat k-upload-action' aria-label='"+n+"'><span class='k-icon "+i+" "+t+"' title='"+n+"'></span></button>").on("focus",function(){
e(this).addClass("k-state-focused")}).on("blur",function(){e(this).removeClass("k-state-focused")}):e("<button type='button' class='k-button'>"+n+"</button>")},_clearFileAction:function(t){e(".k-upload-action",t).empty().hide()},_onFileAction:function(t){var n,i,o,r,a,s,l=this;return l.wrapper.hasClass("k-state-disabled")||(n=e(t.target).closest(".k-upload-action"),i=n.find(".k-icon"),o=n.closest(".k-file"),r=o.data("fileNames"),a=l._filesContainValidationErrors(r),s={files:r,headers:{}},l._retryClicked=!1,i.hasClass("k-i-x")?l.trigger(O,s)||l._module.onRemove({target:e(o,l.wrapper)},s,!a):i.hasClass("k-i-cancel")?(l.trigger(z,s),l._module.onCancel({target:e(o,l.wrapper)}),l._checkAllComplete(),l._updateHeaderUploadStatus()):i.hasClass("k-i-pause-sm")?(l.trigger(L,s),l.pause(o),l._updateHeaderUploadStatus()):i.hasClass("k-i-play-sm")?(l.trigger(H,s),l.resume(o)):i.hasClass("k-i-retry")&&(e(".k-i-warning",o).remove(),e(".k-progressbar",o).finish().show(),l._module.onRetry({target:e(o,l.wrapper)}),l._retryClicked=!0)),!1},_onUploadSelected:function(){var e=this,t=e.wrapper;return t.hasClass("k-state-disabled")||this._module.onSaveSelected(),!1},_onClearSelected:function(){var e=this,t=e.wrapper,n={};return t.hasClass("k-state-disabled")||e.trigger(B,n)||e.clearAllFiles(),!1},_onFileProgress:function(t,n){var i;n>100&&(n=100),e(".k-progressbar",t.target).removeClass("k-hidden"),this.options.template?e(".k-progress",t.target).width(n+"%"):(i=e(".k-upload-pct",t.target),0===i.length&&e(".k-upload-status",t.target).prepend("<span class='k-upload-pct'></span>"),100!==n?e(".k-upload-pct",t.target).text(n+"%"):e(".k-upload-pct",t.target).remove(),e(".k-progress",t.target).width(n+"%")),this.trigger(N,{files:k(t).data("fileNames"),percentComplete:n})},_onUploadSuccess:function(e,t,n){var i=this,o=k(e),r=o.data("fileNames"),a=o.find(".k-file-information"),s=o.find(".k-file-size"),l=i.trigger(R,{files:o.data("fileNames"),response:t,operation:"upload",XMLHttpRequest:n});l?i._setUploadErrorState(o):(i._fileState(o,"uploaded"),o.removeClass("k-file-progress").addClass("k-file-success"),a.length>0?a.addClass("k-hidden").after('<span class="k-file-validation-message k-text-success">'+r.length+" "+i.localization.uploadSuccess+"</span>"):s.length>0&&s.addClass("k-hidden").after('<span class="k-file-validation-message k-text-success">'+i.localization.uploadSuccess+"</span>"),i._updateHeaderUploadStatus(),i._supportsRemove()?i._fileAction(o,O):i._clearFileAction(o)),i._hideUploadProgress(o),i._checkAllComplete()},_onUploadError:function(e,t){var n=this,i=n._module,o=k(e),r=o.data("uid");n._setUploadErrorState(o),n.trigger(F,{operation:"upload",files:o.data("fileNames"),XMLHttpRequest:t}),D("Server response: "+t.responseText),n.options.async.chunkSize?i._decreasePosition&&i._decreasePosition(r):n._hideUploadProgress(o),n._checkAllComplete(),this.options.async.autoRetryAfter&&this._autoRetryAfter(o)},_autoRetryAfter:function(e){var t=this,n=this._module.retries;n&&(n[e.data("uid")]||(n[e.data("uid")]=1),n[e.data("uid")]<=this.options.async.maxAutoRetries&&(n[e.data("uid")]++,setTimeout(function(){t._module.performUpload(e)},this.options.async.autoRetryAfter)))},_setUploadErrorState:function(t){var n,i=this,o=t.data("fileNames"),r=t.find(".k-file-information"),a=t.find(".k-file-size");i._fileState(t,"failed"),t.removeClass("k-file-progress").addClass("k-file-error"),r.length>0?r.addClass("k-hidden").after('<span class="k-file-validation-message k-text-error">'+o.length+" "+i.localization.uploadFail+"</span>"):a.length>0&&a.addClass("k-hidden").after('<span class="k-file-validation-message k-text-error">'+i.localization.uploadFail+"</span>"),i._updateUploadProgress(t),n=e(".k-upload-pct",t),n.length>0&&n.remove(),this._updateHeaderUploadStatus(),this._fileAction(t,"retry"),this._fileAction(t,O,!0),i._retryClicked&&t.find(".k-i-retry").parent().focus()},_updateUploadProgress:function(t){var n,i,o,r=this;r.options.async.chunkSize?(n=t.data("uid"),r._module.metaData&&(i=r._module.metaData[n],i&&(o=i.totalChunks?Math.round(i.chunkIndex/i.totalChunks*100):100,r._onFileProgress({target:e(t,r.wrapper)},o)))):e(".k-progress",t).width("100%")},_hideUploadProgress:function(t){e(".k-progressbar",t).delay(q).fadeOut(G,function(){e(this).find(".k-progress").css("width","0%")})},_showActionButtons:function(){var t=this,n=e(".k-action-buttons",t.wrapper),i=e(".k-upload-selected",t.wrapper),o=e(".k-clear-selected",t.wrapper);0===i.length&&(i=t._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected").addClass("k-primary"),o=t._renderAction("",this.localization.clearSelectedFiles).addClass("k-clear-selected")),n.length||(n=e("<div />").addClass("k-action-buttons").append(o,i)),this.wrapper.append(n)},_hideActionButtons:function(){e(".k-action-buttons",this.wrapper).remove()},_showHeaderUploadStatus:function(t){var n=this,i=n.localization,o=e(".k-dropzone",n.wrapper),r=e(".k-upload-status-total",n.wrapper);0!==r.length&&r.remove(),e(".k-dropzone-hint",n.wrapper).addClass("k-hidden"),r='<strong class="k-upload-status k-upload-status-total"><span class="k-icon"></span></strong>',t?(r=e(r).append(i.headerStatusUploading),r.find(".k-icon").addClass($.loading)):(r=e(r).append(i.headerStatusUploaded),r.find(".k-icon").addClass($.warning)),o.length>0?o.append(r):e(".k-upload-button",n.wrapper).after(r)},_updateHeaderUploadStatus:function(){var t,n,i=this,o=e(".k-upload-status-total",this.wrapper),r=e(".k-file",i.wrapper).not(".k-file-success, .k-file-error, .k-file-invalid"),a=e(".k-file-invalid",i.wrapper),s=e(".k-file-error",i.wrapper),l=e(".k-file",i.wrapper).find(".k-i-play-sm");!l.length||l.length!==r.length&&i.options.async.concurrent?(0===r.length||a.length>0||s.length>0)&&(t=e(".k-file.k-file-error, .k-file.k-file-invalid",i.wrapper),o=e(".k-upload-status-total",i.wrapper),n=e(".k-icon",o).removeClass().addClass("k-icon").addClass(0!==t.length?$.warning:$.success),o.html(n).append(i.localization.headerStatusUploaded)):(n=e(".k-icon",o).removeClass().addClass("k-icon").addClass("k-i-pause-sm"),o.html(n).append(i.localization.headerStatusPaused))},_hideHeaderUploadstatus:function(){var t=this,n=t.options.dropZone;e(".k-upload-status-total",this.wrapper).remove(),""===n&&e(".k-dropzone-hint",t.wrapper).removeClass("k-hidden")},_onParentFormSubmit:function(){var n,i=this,o=i.element;t!==this._module.onAbort&&this._module.onAbort(),o.value||(n=e(o),n.attr("disabled","disabled"),window.setTimeout(function(){n.removeAttr("disabled")},0))},_onParentFormReset:function(){e(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return"undefined"!=typeof FormData},_supportsMultiple:function(){var e=this._userAgent().indexOf("Windows")>-1;return!(C.support.browser.opera||C.support.browser.safari&&e)},_supportsDrop:function(){var e=this._userAgent().toLowerCase(),t=/chrome/.test(e),n=!t&&/safari/.test(e),i=n&&/windows/.test(e);return!i&&this._supportsFormData()&&this.options.async.saveUrl},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){var t=this,n=t._ns,i=e(".k-dropzone",t.wrapper).on("dragenter"+n,_).on("dragover"+n,function(e){e.preventDefault()}).on("drop"+n,e.proxy(t._onDrop,t));i.find(".k-dropzone-hint").length||i.append(e("<em class='k-dropzone-hint'>"+t.localization.dropFilesHere+"</em>")),b(i,n,function(){i.closest(".k-upload").hasClass("k-state-disabled")||i.addClass("k-dropzone-hovered")},function(){i.removeClass("k-dropzone-hovered")}),t._bindDocumentDragEventWrappers(i)},_setupCustomDropZone:function(){var t,n=this,i=e(n.options.dropZone);n.wrapper.find(".k-dropzone-hint").length?e(".k-dropzone-hint",n.wrapper).addClass("k-hidden"):e(".k-dropzone",n.wrapper).append(e("<em class='k-dropzone-hint k-hidden'>"+n.localization.dropFilesHere+"</em>")),t=n._ns,i.on("dragenter"+t,_).on("dragover"+t,function(e){e.preventDefault()}).on("drop"+t,e.proxy(n._onDrop,n)),b(i,t,function(t){n.wrapper.hasClass("k-state-disabled")||(i.removeClass("k-dropzone-hovered"),i.addClass("k-dropzone-hovered"),e(t.target).addClass("k-dropzone-hovered"))},function(){i.removeClass("k-dropzone-hovered"),i.find(".k-dropzone-hovered").removeClass("k-dropzone-hovered")}),n._bindDocumentDragEventWrappers(i)},_bindDocumentDragEventWrappers:function(t){var n=this,i=n._ns;b(e(document),i,function(){n.wrapper.hasClass("k-state-disabled")||(t.addClass("k-dropzone-active"),t.closest(".k-upload").removeClass("k-upload-empty"),t.find(".k-dropzone-hint").removeClass("k-hidden"))},function(){t.removeClass("k-dropzone-active"),t.find(".k-dropzone-hint").addClass("k-hidden"),0===e("li.k-file",t.closest(".k-upload")).length&&t.closest(".k-upload").addClass("k-upload-empty")})},_toggleDropZone:function(){var t=this,n=t.options.dropZone;t._supportsDrop()&&(e(n).off(t._ns),e(".k-dropzone",t.wrapper).off(t._ns),""!==n?t._setupCustomDropZone():t._setupDropZone())},_supportsRemove:function(){return!!this.options.async.removeUrl},_submitRemove:function(t,n,i,o){var r=this,a=r.options.async.removeField||"fileNames",s=e.extend(n.data,T());s[a]=t,jQuery.ajax({type:this.options.async.removeVerb,dataType:"json",dataFilter:v,url:this.options.async.removeUrl,traditional:!0,data:s,headers:n.headers,success:i,error:o,xhrFields:{withCredentials:this.options.async.withCredentials}})},_wrapInput:function(e){var t=this,n=t.options;return e.wrap("<div class='k-widget k-upload'><div class='k-dropzone'><div class='k-button k-upload-button' aria-label='"+this.localization.select+"'></div></div></div>"),n.async.saveUrl?e.closest(".k-upload").addClass("k-upload-async"):e.closest(".k-upload").addClass("k-upload-sync"),e.closest(".k-upload").addClass("k-upload-empty"),e.closest(".k-button").append("<span>"+this.localization.select+"</span>"),e.closest(".k-upload")},_checkAllComplete:function(){0===e(".k-file.k-file-progress",this.wrapper).length&&this.trigger(P)},_inputFiles:function(e){return i(e)}}),Y=function(e){this.name="syncUploadModule",this.element=e.wrapper,this.upload=e,this.element.closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};Y.prototype={onSelect:function(t,i){var o,r,a=this.upload,s=e(t.target),l=a._filesContainValidationErrors(i);a._addInput(s),o={fileNames:i},l?s.remove():o.relatedInput=s,r=a._enqueueFile(n(s),o),l&&a._hideUploadProgress(r),a._fileAction(r,O)},onRemove:function(e){var t=k(e),n=t.data("relatedInput");n&&n.remove(),this.upload._removeFileEntry(t)}},y=function(e){this.name="iframeUploadModule",this.element=e.wrapper,this.upload=e,this.iframes=[]},K._frameId=0,y.prototype={onSelect:function(t,n){var i=this.upload,o=e(t.target),r=i._filesContainValidationErrors(n),a=this.prepareUpload(o,n,r);i.options.async.autoUpload?r?(i._fileAction(a,O),i._showHeaderUploadStatus(!1)):this.performUpload(a):(i._fileAction(a,O),r?i._updateHeaderUploadStatus():i._showActionButtons()),r&&i._hideUploadProgress(a)},prepareUpload:function(t,i,o){var r,a,s,l,d=this.upload,c=e(d.element),u=d.options.async.saveField||t.attr("name");return d._addInput(t),t.attr("name",u),o?(t.remove(),a={fileNames:i}):(s=this.createFrame(d.name+"_"+K._frameId++),this.registerFrame(s),l=this.createForm(d.options.async.saveUrl,s.attr("name")).append(c),a={frame:s,relatedInput:c,fileNames:i}),r=d._enqueueFile(n(t),a),s&&s.data({form:l,file:r}),r},performUpload:function(t){var n,i,o,r={files:t.data("fileNames")},a=t.data("frame"),s=this.upload,l=t.find(".k-file-validation-message"),d=t.find(".k-file-information"),c=t.find(".k-file-size");if(s.trigger(M,r))s._removeFileEntry(a.data("file")),this.cleanupFrame(a),this.unregisterFrame(a);else{s._hideActionButtons(),s._showHeaderUploadStatus(!0),a.appendTo(document.body),n=a.data("form").attr("action",s.options.async.saveUrl).appendTo(document.body),r.data=e.extend({},r.data,T());for(i in r.data)o=n.find("input[name='"+i+"']"),0===o.length&&(o=e("<input>",{type:"hidden",name:i}).prependTo(n)),o.val(r.data[i]);s._fileAction(t,z),s._fileState(t,"uploading"),e(t).removeClass("k-file-error").addClass("k-file-progress"),l.length>0&&l.remove(),d.length>0?d.removeClass("k-hidden"):c.length>0&&c.removeClass("k-hidden"),a.one("load",e.proxy(this.onIframeLoad,this)),n[0].submit()}},onSaveSelected:function(){var t=this,n=t.upload;e(".k-file",this.element).each(function(){var i=e(this),o=w(i),r=n._filesContainValidationErrors(i.data("fileNames"));o||r||t.performUpload(i)})},onIframeLoad:function(t){var n,i=e(t.target);try{n=i.contents().text()}catch(o){n="Error trying to get server response: "+o}this.processResponse(i,n)},processResponse:function(t,n){var i=t.data("file"),o=this,r={responseText:n};g(n,function(n){e.extend(r,{statusText:"OK",status:"200"}),o.upload._onFileProgress({target:e(i,o.upload.wrapper)},100),o.upload._onUploadSuccess({target:e(i,o.upload.wrapper)},n,r),o.cleanupFrame(t),o.unregisterFrame(t)},function(){e.extend(r,{statusText:"error",status:"500"}),o.upload._onUploadError({target:e(i,o.upload.wrapper)},r)})},onCancel:function(t){var n=e(t.target).data("frame");this.stopFrameSubmit(n),this.cleanupFrame(n),this.unregisterFrame(n),this.upload._removeFileEntry(n.data("file"))},onRetry:function(e){var t=k(e);this.performUpload(t)},onRemove:function(e,t,n){var i=this,o=i.upload,r=k(e),a=r.data("frame");a?(i.unregisterFrame(a),o._removeFileEntry(r),i.cleanupFrame(a)):r.hasClass("k-file-success")?m(r,o,t,n):o._removeFileEntry(r)},onAbort:function(){var t=this.element,n=this;e.each(this.iframes,function(){e("input",this.data("form")).appendTo(t),n.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(t){return e("<iframe name='"+t+"' id='"+t+"' style='display:none;' />")},createForm:function(t,n){return e("<form enctype='multipart/form-data' method='POST' action='"+t+"' target='"+n+"'/>")},stopFrameSubmit:function(e){t!==e.stop?e.stop():e.document&&e.document.execCommand("Stop")},registerFrame:function(e){this.iframes.push(e)},unregisterFrame:function(t){this.iframes=e.grep(this.iframes,function(e){return e.attr("name")!=t.attr("name")})},cleanupFrame:function(e){var t=e.data("form");e.data("file").data("frame",null),setTimeout(function(){t.remove(),e.remove()},1)}},x=function(e){this.name="formDataUploadModule",this.element=e.wrapper,this.upload=e,this.position={},this.metaData={},this.cancelled={},this.resume={},this.paused={},this.retries={}},x.prototype={onSelect:function(t,n){var i,o,r=this.upload,a=this,s=e(t.target),l=this.prepareUpload(s,n);e.each(l,function(t){i=r._filesContainValidationErrors(e(this.data("fileNames"))),r.options.async.autoUpload?i?(r._fileAction(this,O),r._showHeaderUploadStatus(!1)):r.options.async.chunkSize?(a.prepareChunk(this),o=this.prev(),(r.options.async.concurrent||0===t&&!o.length||0===t&&o.hasClass("k-file-success"))&&a.performUpload(this)):a.performUpload(this):(r._fileAction(this,O),i?r._updateHeaderUploadStatus():(r._showActionButtons(),this.addClass("k-toupload"))),i&&r._hideUploadProgress(this)})},prepareUpload:function(t,n){var i=this.enqueueFiles(n);return t.is("input")&&(e.each(i,function(){e(this).data("relatedInput",t)}),t.data("relatedFileEntries",i),this.upload._addInput(t)),i},enqueueFiles:function(t){var n,i,o,r,a=this.upload,s=t.length,l=[];if(a.options.async.batch===!0)n=e.map(t,function(e){return e.name}).join(", "),(a.directory||a.options.directoryDrop)&&e(t).each(function(){(this.rawFile.webkitRelativePath||this.rawFile.relativePath)&&(this.name=this.rawFile.webkitRelativePath||this.rawFile.relativePath)}),r=a._enqueueFile(n,{fileNames:t}),r.data("files",t),l.push(r);else for(i=0;i<s;i++)o=t[i],n=o.name,(a.directory||a.options.directoryDrop)&&(o.rawFile.webkitRelativePath||o.rawFile.relativePath)&&(o.name=o.rawFile.webkitRelativePath||o.rawFile.relativePath),r=a._enqueueFile(n,{fileNames:[o]}),r.data("files",[o]),l.push(r);return l},performUpload:function(t){var n,i,o=this.upload,r=this.createFormData(),a=this.createXHR(),s={files:t.data("fileNames"),XMLHttpRequest:a},l=t.find(".k-file-validation-message"),d=t.find(".k-file-information"),c=t.find(".k-file-size");if(o.trigger(M,s))this.removeFileEntry(t);else{if(0===t.find(".k-i-cancel").length&&(o.options.async.chunkSize&&o._fileAction(t,L),o._fileAction(t,z,o.options.async.chunkSize)),o.wrapper.find(".k-toupload").length||o._hideActionButtons(),o._showHeaderUploadStatus(!0),s.formData)r=s.formData;else{s.data=e.extend({},s.data,T());for(i in s.data)r.append(i,s.data[i]);n=t.data("files"),n&&this.populateFormData(r,n)}o._fileState(t,"uploading"),e(t).removeClass("k-file-error").addClass("k-file-progress"),l.length>0&&l.remove(),d.length>0?d.removeClass("k-hidden"):c.length>0&&c.removeClass("k-hidden"),o.options.async.useArrayBuffer&&window.FileReader?this._readFile(o.options.async.saveUrl,r,t,a):this.postFormData(o.options.async.saveUrl,r,t,a)}},_readFile:function(n,i,o,r){var a=this,s=a.upload,l=o.data("files")[0],d=new FileReader;d.onload=function(d){try{a.fileArrayBuffer=a.fileArrayBuffer?a._appendBuffer(a.fileArrayBuffer,d.target.result):d.target.result}catch(c){return s._onUploadError({target:e(o,s.wrapper)},r),t}a.position[l.uid]>l.size?(a.postFormData(s.options.async.saveUrl,a.fileArrayBuffer,o,r),a.fileArrayBuffer=null):a._readFile(n,i,o,r)},d.onerror=function(){s._onUploadError({target:e(o,s.wrapper)},r)},d.readAsArrayBuffer(a._getCurrentChunk(l.rawFile,l.uid))},_appendBuffer:function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer},onSaveSelected:function(){var t=this,n=t.upload;e(".k-toupload",this.element).filter(function(){var t=e(this),i=w(t),o=n._filesContainValidationErrors(t.data("fileNames"));return!i&&!o}).each(function(i){var o=e(this),r=o.prev();o.removeClass("k-toupload"),n.options.async.chunkSize?(t.prepareChunk(o),(n.options.async.concurrent||0===i&&!r.length||0===i&&r.hasClass("k-file-success")||r.hasClass("k-file-error"))&&t.performUpload(o)):t.performUpload(o)})},onCancel:function(e){var t=k(e);this.upload.options.async.chunkSize&&(this.cancelled[t.data("uid")]=!0),this.stopUploadRequest(t),this.removeFileEntry(t)},onPause:function(e){var t=k(e),n=t.data("uid"),i=this.upload.options.async;i.chunkSize&&(this.retries[n]=i.maxAutoRetries+1,this.paused[n]=!0,this.resume[n]=!1)},onResume:function(e){var t=k(e),n=t.data("uid");this.upload.options.async.chunkSize&&(delete this.paused[n],this.resume[n]=!0,this.retries[t.data("uid")]=1,this._increaseChunkIndex(n),this.performUpload(t))},onRetry:function(e){var t=k(e),n=this.upload.options.async;n.chunkSize&&(this.retries[t.data("uid")]=n.maxAutoRetries+1,delete this.paused[t.data("uid")]),this.performUpload(t)},onRemove:function(e,t,n){var i=this,o=i.upload,r=k(e),a=this.upload.options.async;a.chunkSize&&(this.retries[r.data("uid")]=a.maxAutoRetries+1),r.hasClass("k-file-success")?m(r,o,t,n):i.removeFileEntry(r)},createXHR:function(){return new XMLHttpRequest},postFormData:function(e,t,n,i){var o,r=this;n.data("request",i),i.addEventListener("load",function(e){r.onRequestSuccess.call(r,e,n)},!1),i.addEventListener(F,function(e){r.onRequestError.call(r,e,n)},!1),i.upload.addEventListener("progress",function(e){r.onRequestProgress.call(r,e,n)},!1),i.open("POST",e,!0),i.withCredentials=this.upload.options.async.withCredentials,o=this.upload.options.async.accept,o&&i.setRequestHeader("Accept",o),i.send(t)},createFormData:function(){return new FormData},populateFormData:function(e,t){var n,i,o,r,a=t.length,s=this.upload;if(s.options.async.chunkSize)o=t[0].uid,n=this._getCurrentChunk(t[0].rawFile,o),e.append(s.options.async.saveField||s.name,n),r=JSON.stringify(this.metaData[o]),e.append("metadata",r);else for(i=0;i<a;i++)e.append(s.options.async.saveField||s.name,t[i].rawFile);return e},onRequestSuccess:function(t,n){function i(){a.upload._onUploadError({target:e(n,a.upload.wrapper)},r)}function o(t){var i=a.upload.options.async.batch,o=a.upload.options.async.chunkSize,s=a.upload.options.async.concurrent,l=t.fileUid;a.paused[l]||a.cancelled[l]||(delete a.retries[l],!o||i||t.uploaded?!o||i||s||!n.next().length||n.next().hasClass("k-toupload")?(a.upload._onFileProgress({target:e(n,a.upload.wrapper)},100),a.upload._onUploadSuccess({target:e(n,a.upload.wrapper)},t,r),a.cleanupFileEntry(n)):(a.upload._onFileProgress({target:e(n,a.upload.wrapper)},100),a._resetChunkIndex(l),a.upload._onUploadSuccess({target:e(n,a.upload.wrapper)},t,r),a.performUpload(n.next())):(a._increaseChunkIndex(l),a.performUpload(n)))}var r=t.target,a=this;r.status>=200&&r.status<=299?g(r.responseText,o,i):i()},onRequestError:function(t,n){var i=t.target;this.upload._onUploadError({target:e(n,this.upload.wrapper)},i)},cleanupFileEntry:function(t){var n=t.data("relatedInput"),i=!0;n&&(e.each(n.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=t[0]&&(i=i&&this.hasClass("k-file-success"))}),i&&n.remove())},removeFileEntry:function(e){var t=this.upload.options.async.chunkSize,n=this.upload.options.async.concurrent,i=this.upload.wrapper.find(".k-upload-selected").length>0;this.cleanupFileEntry(e),!t||n||i||e.next().length&&this.performUpload(e.next()),this.upload._removeFileEntry(e)},onRequestProgress:function(t,n){var i,o=Math.round(100*t.loaded/t.total),r=n.data("uid");this.upload.options.async.chunkSize&&(i=this.metaData[r],o=i&&i.totalChunks?Math.round(i.chunkIndex/i.totalChunks*100):100),this.upload._onFileProgress({target:e(n,this.upload.wrapper)},o)},stopUploadRequest:function(e){e.data("request").abort()},prepareChunk:function(e){var t=e.data("files")[0],n=t.rawFile,i=t.uid,o=this.upload.options.async.chunkSize;this.position[i]=0,this.metaData[i]={chunkIndex:0,contentType:n.type,fileName:n.name,relativePath:t.name,totalFileSize:n.size,totalChunks:Math.ceil(n.size/o),uploadUid:i}},_decreaseChunkIndex:function(e){this.metaData[e].chunkIndex--},_increaseChunkIndex:function(e){this.metaData[e].chunkIndex++},_resetChunkIndex:function(e){this.metaData[e].chunkIndex=0},_decreasePosition:function(e){this.position[e]-=this.upload.options.async.chunkSize},_getCurrentChunk:function(e,t){var n,i=this.position[t],o=this.upload.options.async,r=o.chunkSize||o.bufferChunkSize;return this.position[t]||(this.position[t]=0),this.position[t]+=r,(n=this._getChunker(e))?e[n](i,this.position[t]):e},_getChunker:function(e){return e.slice?"slice":e.mozSlice?"mozSlice":e.webkitSlice?"webkitSlice":null}},C.ui.plugin(K)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.filebrowser.min",["kendo.listview.min","kendo.dropdownlist.min","kendo.upload.min","kendo.breadcrumb.min"],e)}(function(){return function(e,t){function n(e,t,n){var i,o;e.on("dragenter"+y,function(){t(),o=new Date,i||(i=setInterval(function(){var e=new Date-o;e>100&&(n(),clearInterval(i),i=null)},100))}).on("dragover"+y,function(){o=new Date})}function i(e,n){return e!==t&&e.match(/\/$/)||(e=(e||"")+"/"),e+n}function o(e){if(!e)return"";var t=" bytes";return e>=1073741824?(t=" GB",e/=1073741824):e>=1048576?(t=" MB",e/=1048576):e>=1024&&(t=" KB",e/=1024),Math.round(100*e)/100+t}function r(e,t){var n=e[t];return u(n)?n.from||n.field||t:n}var a,s,l,d=window.kendo,c=d.ui.Widget,u=e.isPlainObject,h=e.proxy,p=e.extend,f=d.support.placeholder,m=d.support.browser,g=d.isFunction,v=/(^\/|\/$)/g,_="change",b="apply",w="error",k="click",y=".kendoFileBrowser",x=".kendoSearchBox",C="name",S="size",T="type",D={field:T,dir:"asc"},A=d.template('<div class="k-listview-item k-listview-item-empty"><span class="k-file-preview"><span class="k-file-icon k-icon k-i-none"></span></span><span class="k-file-name">${text}</span></div>'),E='<div class="k-widget k-filebrowser-toolbar k-toolbar k-floatwrap"># if (showCreate) { #<button type="button" class="k-button k-icon-button"><span class="k-icon k-i-folder-add"></span></button># } ## if (showUpload) { # <div class="k-widget k-upload"><div class="k-button k-button-icontext k-upload-button"><span class="k-icon k-i-plus"></span>#=messages.uploadFile#<input type="file" name="file" /></div></div># } ## if (showDelete) { #<button type="button" class="k-button k-button-icon k-state-disabled"><span class="k-icon k-i-close"></span></button># } #<div class="k-tiles-arrange"><label>#=messages.orderBy#: <select></select></label></div><span class="k-toolbar-spacer" /><input data-role="searchbox" /></div>';p(!0,d.data,{schemas:{filebrowser:{data:function(e){return e.items||e||[]},model:{id:"name",fields:{name:"name",size:"size",type:"type"}}}}}),p(!0,d.data,{transports:{filebrowser:d.data.RemoteTransport.extend({init:function(t){d.data.RemoteTransport.fn.init.call(this,e.extend(!0,{},this.options,t))},_call:function(t,n){n.data=e.extend({},n.data,{path:this.options.path()}),g(this.options[t])?this.options[t].call(this,n):d.data.RemoteTransport.fn[t].call(this,n)},read:function(e){this._call("read",e)},create:function(e){this._call("create",e)},destroy:function(e){this._call("destroy",e)},update:function(){},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"}}})}}),a=m.msie&&m.version<8?function(e){return e.offsetTop}:function(t){return t.offsetTop-e(t).height()},s=c.extend({init:function(e,t){var n=this;t=t||{},c.fn.init.call(n,e,t),n.element.addClass("k-filebrowser"),n.element.on(k+y,".k-filebrowser-toolbar button:not(.k-state-disabled):has(.k-i-close)",h(n._deleteClick,n)).on(k+y,".k-filebrowser-toolbar button:not(.k-state-disabled):has(.k-i-folder-add)",h(n._addClick,n)).on("keydown"+y,".k-listview-item.k-state-selected input",h(n._directoryKeyDown,n)).on("blur"+y,".k-listview-item.k-state-selected input",h(n._directoryBlur,n)),n._dataSource(),n.refresh(),n.path(n.options.path)},options:{name:"FileBrowser",messages:{uploadFile:"Upload",orderBy:"Arrange by",orderByName:"Name",orderBySize:"Size",directoryNotFound:"A directory with this name was not found.",emptyFolder:"Empty Folder",deleteFile:'Are you sure you want to delete "{0}"?',invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',dropFilesHere:"drop file here to upload",search:"Search"},transport:{},path:"/",fileTypes:"*.*"},events:[w,_,b],destroy:function(){var e=this;c.fn.destroy.call(e),e.dataSource.unbind(w,e._errorHandler),e.element.add(e.list).add(e.toolbar).off(y),d.destroy(e.element)},value:function(){var e,t=this,n=t._selectedItem(),o=t.options.transport.fileUrl;if(n&&"f"===n.get(T))return e=i(t.path(),n.get(C)).replace(v,""),o&&(e=g(o)?o(e):d.format(o,encodeURIComponent(e))),e},_selectedItem:function(){var e=this.listView,t=e.select();if(t.length)return this.dataSource.getByUid(t.attr(d.attr("uid")))},_toolbar:function(){var t=this,n=d.template(E),i=t.options.messages,o=[{text:i.orderByName,value:"name"},{text:i.orderBySize,value:"size"}];t.toolbar=e(n({messages:i,showUpload:t.options.transport.uploadUrl,showCreate:t.options.transport.create,showDelete:t.options.transport.destroy})).appendTo(t.element).find(".k-upload input").kendoUpload({multiple:!1,localization:{dropFilesHere:i.dropFilesHere},async:{saveUrl:t.options.transport.uploadUrl,autoUpload:!0},upload:h(t._fileUpload,t),error:function(e){t._error({xhr:e.XMLHttpRequest,status:"error"})}}).end(),t.upload=t.toolbar.find(".k-upload input").data("kendoUpload"),t.arrangeBy=t.toolbar.find(".k-tiles-arrange select").kendoDropDownList({dataSource:o,dataTextField:"text",dataValueField:"value",change:function(){t.orderBy(this.value())}}).data("kendoDropDownList"),t.searchBox=t.toolbar.find("input[data-role='searchbox']").kendoSearchBox({label:t.options.messages.search,change:function(){t.search(this.value())}}).data("kendoSearchBox"),t._attachDropzoneEvents()},_attachDropzoneEvents:function(){var t=this;t.options.transport.uploadUrl&&(n(e(document.documentElement),e.proxy(t._dropEnter,t),e.proxy(t._dropLeave,t)),t._scrollHandler=h(t._positionDropzone,t))},_dropEnter:function(){this._positionDropzone(),e(document).on("scroll"+y,this._scrollHandler)},_dropLeave:function(){this._removeDropzone(),e(document).off("scroll"+y,this._scrollHandler)},_positionDropzone:function(){var e=this,t=e.element,n=t.offset();e.toolbar.find(".k-dropzone").addClass("k-filebrowser-dropzone").offset(n).css({width:t[0].clientWidth,height:t[0].clientHeight,lineHeight:t[0].clientHeight+"px"})},_removeDropzone:function(){this.toolbar.find(".k-dropzone").removeClass("k-filebrowser-dropzone").css({width:"",height:"",lineHeight:"",top:"",left:""})},_deleteClick:function(){var e=this,t=e.listView.select(),n=d.format(e.options.messages.deleteFile,t.find(".k-file-name").text());t.length&&e._showMessage(n,"confirm")&&e.listView.remove(t)},_addClick:function(){this.createDirectory()},_getFieldName:function(e){return r(this.dataSource.reader.model.fields,e)},_fileUpload:function(e){var t,n=this,i=n.options,o=i.fileTypes,r=RegExp(("("+o.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i"),a=e.files[0].name,s=e.files[0].size,l=C,c=S;r.test(a)?(e.data={path:n.path()},t=n._createFile(a,s),t?n.upload.one("success",function(e){var i=n._insertFileToList(t);i._override&&(i.set(l,e.response[n._getFieldName(l)]),i.set(c,e.response[n._getFieldName(c)]),n.listView.dataSource.pushUpdate(i)),n._tiles=n.listView.items().filter("["+d.attr("type")+"=f]")}):e.preventDefault()):(e.preventDefault(),n._showMessage(d.format(i.messages.invalidFileType,a,o)))},_findFile:function(e){var t,n,i,o=this.dataSource.data(),r=T,a=C;for(e=e.toLowerCase(),t=0,i=o.length;t<i;t++)if("f"===o[t].get(r)&&o[t].get(a).toLowerCase()===e){n=o[t];break}return n},_createFile:function(e,t){var n=this,i={},o=T,r=n._findFile(e);return r?n._showMessage(d.format(n.options.messages.overwriteFile,e),"confirm")?(r._override=!0,r):null:(i[o]="f",i[C]=e,i[S]=t,i)},_insertFileToList:function(e){var t,n,i,o,r;if(e._override)return e;for(n=this.dataSource,i=n.view(),o=0,r=i.length;o<r;o++)if("f"===i[o].get(T)){t=o;break}return n.insert(++t,e)},createDirectory:function(){var e,t,n=this,i=0,o=T,r=C,a=n.dataSource.data(),s=n._nameDirectory(),l=new n.dataSource.reader.model;for(e=0,t=a.length;e<t;e++)"d"===a[e].get(o)&&(i=e);l.set(o,"d"),l.set(r,s),n.listView.one("dataBound",function(){var e=n.listView.items().filter("["+d.attr("uid")+"="+l.uid+"]");e.length&&this.edit(e),this.element.scrollTop(e.attr("offsetTop")-this.element[0].offsetHeight),setTimeout(function(){n.listView.element.find(".k-edit-item input").select()})}).one("save",function(e){var t=e.model.get(r);t?e.model.set(r,n._nameExists(t,l.uid)?n._nameDirectory():t):e.model.set(r,s)}),n.dataSource.insert(++i,l)},_directoryKeyDown:function(e){13==e.keyCode&&e.currentTarget.blur()},_directoryBlur:function(){this.listView.save()},_nameExists:function(e,t){var n,i,o=this.dataSource.data(),r=T,a=C;for(n=0,i=o.length;n<i;n++)if("d"===o[n].get(r)&&o[n].get(a).toLowerCase()===e.toLowerCase()&&o[n].uid!==t)return!0;return!1},_nameDirectory:function(){var t,n,i,o="New folder",r=this.dataSource.data(),a=[],s=T,l=C;for(n=0,i=r.length;n<i;n++)"d"===r[n].get(s)&&r[n].get(l).toLowerCase().indexOf(o.toLowerCase())>-1&&a.push(r[n].get(l));if(e.inArray(o,a)>-1){n=2;do t=o+" ("+n+")",n++;while(e.inArray(t,a)>-1);o=t}return o},orderBy:function(e){this.dataSource.sort([{field:T,dir:"asc"},{field:e,dir:"asc"}])},search:function(e){this.dataSource.filter({field:C,operator:"contains",value:e})},_content:function(){var t=this;t.list=e('<div class="k-filemanager-listview" />').appendTo(t.element).on("dblclick"+y,".k-listview-item",h(t._dblClick,t)),t.listView=new d.ui.ListView(t.list,{layout:"flex",flex:{direction:"row",wrap:"wrap"},dataSource:t.dataSource,template:t._itemTmpl(),editTemplate:t._editTmpl(),selectable:!0,autoBind:!1,dataBinding:function(e){t.toolbar.find(".k-i-close").parent().addClass("k-state-disabled"),"remove"!==e.action&&"sync"!==e.action||(e.preventDefault(),d.ui.progress(t.listView.content,!1));
},dataBound:function(){t.dataSource.view().length?t._tiles=this.items().filter("["+d.attr("type")+"=f]"):this.content.append(A({text:t.options.messages.emptyFolder}))},change:h(t._listViewChange,t)})},_dblClick:function(t){var n,o=this,r=e(t.currentTarget);r.hasClass("k-edit-item")&&o._directoryBlur(),r.filter("["+d.attr("type")+"=d]").length?(n=o.dataSource.getByUid(r.attr(d.attr("uid"))),n&&(o.path(i(o.path(),n.get(C))),o.breadcrumbs.value("/"+o.path()))):r.filter("["+d.attr("type")+"=f]").length&&o.trigger(b)},_listViewChange:function(){var e=this._selectedItem();e&&(this.toolbar.find(".k-i-close").parent().removeClass("k-state-disabled"),this.trigger(_,{selected:e}))},_dataSource:function(){var e,t=this,n=t.options,i=n.transport,o=p({},D),r={field:C,dir:"asc"},a={type:i.type||"filebrowser",sort:[o,r]};u(i)&&(i.path=h(t.path,t),a.transport=i),u(n.schema)?a.schema=n.schema:i.type&&u(d.data.schemas[i.type])&&(e=d.data.schemas[i.type]),t.dataSource&&t._errorHandler?t.dataSource.unbind(w,t._errorHandler):t._errorHandler=h(t._error,t),t.dataSource=d.data.DataSource.create(a).bind(w,t._errorHandler)},_navigation:function(){var t=this,n=e('<div class="k-floatwrap"><nav></nav></div>').appendTo(this.element);t.breadcrumbs=n.find("nav:first").kendoBreadcrumb({editable:!0,gap:50,value:t.options.path||"/",change:function(){t.path(this.value())}}).data("kendoBreadcrumb")},_error:function(e){var t,n,i=this;i.trigger(w,e)||(t=e.xhr.status,"error"==e.status?"404"==t?i._showMessage(i.options.messages.directoryNotFound):"0"!=t&&i._showMessage("Error! The requested URL returned "+t+" - "+e.xhr.statusText):"timeout"==t&&i._showMessage("Error! Server timeout."),n=i.dataSource,n.hasChanges()&&n.cancelChanges())},_showMessage:function(e,t){return window[t||"alert"](e)},refresh:function(){var e=this;e._navigation(),e._toolbar(),e._content()},_editTmpl:function(){var e='<div class="k-listview-item k-state-selected" '+d.attr("uid")+'="#=uid#" ';return e+=d.attr("type")+'="${'+T+'}">',e+="#if("+T+' == "d") { #',e+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-folder"></span></div>',e+="#}else{#",e+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-loading"></span></div>',e+="#}#",e+="#if("+T+' == "d") { #',e+='<span class="k-file-name"><input class="k-textbox" '+d.attr("bind")+'="value:'+C+'"/></span>',e+="#}#",e+="</div>",h(d.template(e),{sizeFormatter:o})},_itemTmpl:function(){var e='<div class="k-listview-item" '+d.attr("uid")+'="#=uid#" ';return e+=d.attr("type")+'="${'+T+'}">',e+="#if("+T+' == "d") { #',e+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-folder"></span></div>',e+="#}else{#",e+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-file"></span></div>',e+="#}#",e+='<span class="k-file-name">${'+C+"}</span>",e+="#if("+T+' == "f") { # <span class="k-file-size">${this.sizeFormatter('+S+")}</span> #}#",e+="</div>",h(d.template(e),{sizeFormatter:o})},path:function(e){var n=this,i=n._path||"";return e!==t?(n._path=e.replace(v,"")+"/",n.dataSource.read({path:n._path}),t):(i&&(i=i.replace(v,"")),"/"===i||""===i?"":i+"/")}}),l=c.extend({init:function(e,t){var n=this;t=t||{},c.fn.init.call(n,e,t),f&&n.element.attr("placeholder",n.options.label),n._wrapper(),n.element.on("keydown"+x,h(n._keydown,n)).on("change"+x,h(n._updateValue,n)),n.wrapper.on(k+x,"a",h(n._click,n)),f||n.element.on("focus"+x,h(n._focus,n)).on("blur"+x,h(n._blur,n))},options:{name:"SearchBox",label:"Search",value:""},events:[_],destroy:function(){var e=this;e.wrapper.add(e.element).add(e.label).off(x),c.fn.destroy.call(e)},_keydown:function(e){13===e.keyCode&&this._updateValue()},_click:function(e){e.preventDefault(),this._updateValue()},_updateValue:function(){var e=this,t=e.element.val();t!==e.value()&&(e.value(t),e.trigger(_))},_blur:function(){this._updateValue(),this._toggleLabel()},_toggleLabel:function(){f||this.label.toggle(!this.element.val())},_focus:function(){this.label.hide()},_wrapper:function(){var t=this.element,n=t.parents(".k-search-wrap");t[0].style.width="",t.addClass("k-input"),n.length||(n=t.wrap(e('<div class="k-widget k-search-wrap k-textbox"/>')).parent(),f||e('<label style="display:block">'+this.options.label+"</label>").insertBefore(t),e('<a href="#" class="k-icon k-i-zoom k-search"/>').appendTo(n)),this.wrapper=n,this.label=n.find(">label")},value:function(e){var n=this;return e!==t?(n.options.value=e,n.element.val(e),n._toggleLabel(),t):n.options.value}}),d.ui.plugin(s),d.ui.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.imagebrowser.min",["kendo.filebrowser.min"],e)}(function(){return function(e,t){function n(e,n){return e!==t&&e.match(/\/$/)||(e=(e||"")+"/"),e+n}function i(e){if(!e)return"";var t=" bytes";return e>=1073741824?(t=" GB",e/=1073741824):e>=1048576?(t=" MB",e/=1048576):e>=1024&&(t=" KB",e/=1024),Math.round(100*e)/100+t}var o,r,a=window.kendo,s=a.ui.FileBrowser,l=e.isPlainObject,d=e.proxy,c=e.extend,u=a.support.browser,h=a.isFunction,p=/(^\/|\/$)/g,f="error",m=".kendoImageBrowser",g="name",v="size",_="type",b={field:_,dir:"asc"},w=a.template('<div class="k-listview-item k-listview-item-empty"><span class="k-file-preview"><span class="k-file-icon k-icon k-i-none"></span></span><span class="k-file-name">${text}</span></div>');c(!0,a.data,{schemas:{imagebrowser:{data:function(e){return e.items||e||[]},model:{id:"name",fields:{name:"name",size:"size",type:"type"}}}}}),c(!0,a.data,{transports:{imagebrowser:a.data.RemoteTransport.extend({init:function(t){a.data.RemoteTransport.fn.init.call(this,e.extend(!0,{},this.options,t))},_call:function(t,n){n.data=e.extend({},n.data,{path:this.options.path()}),h(this.options[t])?this.options[t].call(this,n):a.data.RemoteTransport.fn[t].call(this,n)},read:function(e){this._call("read",e)},create:function(e){this._call("create",e)},destroy:function(e){this._call("destroy",e)},update:function(){},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"}}})}}),o=u.msie&&u.version<8?function(e){return e.offsetTop}:function(t){return t.offsetTop-e(t).height()},r=s.extend({init:function(e,t){var n=this;t=t||{},s.fn.init.call(n,e,t),n.element.addClass("k-imagebrowser")},options:{name:"ImageBrowser",fileTypes:"*.png,*.gif,*.jpg,*.jpeg"},value:function(){var e,t=this,i=t._selectedItem(),o=t.options.transport.imageUrl;if(i&&"f"===i.get(_))return e=n(t.path(),i.get(g)).replace(p,""),o&&(e=h(o)?o(e):a.format(o,encodeURIComponent(e))),e},_fileUpload:function(e){var n,i=this,o=i.options,r=o.fileTypes,s=RegExp(("("+r.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i"),l=e.files[0].name,d=e.files[0].size,c=g,u=v;s.test(l)?(e.data={path:i.path()},n=i._createFile(l,d),n?(n._uploading=!0,i.upload.one("error",function(){n=t}),i.upload.one("success",function(e){if(n){delete n._uploading;var t=i._insertFileToList(n);t.set(c,e.response[i._getFieldName(c)]),t.set(u,e.response[i._getFieldName(u)]),i._tiles=i.listView.items().filter("["+a.attr("type")+"=f]"),i._scroll()}})):e.preventDefault()):(e.preventDefault(),i._showMessage(a.format(o.messages.invalidFileType,l,r)))},_content:function(){var t=this;t.list=e('<div class="k-filemanager-listview" />').appendTo(t.element).on("dblclick"+m,".k-listview-item",d(t._dblClick,t)),t.listView=new a.ui.ListView(t.list,{layout:"flex",flex:{direction:"row",wrap:"wrap"},dataSource:t.dataSource,template:t._itemTmpl(),editTemplate:t._editTmpl(),selectable:!0,autoBind:!1,dataBinding:function(e){t.toolbar.find(".k-i-close").parent().addClass("k-state-disabled"),"remove"!==e.action&&"sync"!==e.action||(e.preventDefault(),a.ui.progress(t.listView.content,!1))},dataBound:function(){t.dataSource.view().length?(t._tiles=this.items().filter("["+a.attr("type")+"=f]"),t._scroll()):this.content.append(w({text:t.options.messages.emptyFolder}))},change:d(t._listViewChange,t)}),t.listView.content.on("scroll"+m,d(t._scroll,t))},_dataSource:function(){var e,t=this,n=t.options,i=n.transport,o=c({},b),r={field:g,dir:"asc"},s={type:i.type||"imagebrowser",sort:[o,r]};l(i)&&(i.path=d(t.path,t),s.transport=i),l(n.schema)?s.schema=n.schema:i.type&&l(a.data.schemas[i.type])&&(e=a.data.schemas[i.type]),t.dataSource&&t._errorHandler?t.dataSource.unbind(f,t._errorHandler):t._errorHandler=d(t._error,t),t.dataSource=a.data.DataSource.create(s).bind(f,t._errorHandler)},_loadImage:function(t){var n=this,i=e(t),o=n.dataSource.getByUid(i.attr(a.attr("uid"))),r=o.get(g),s=n.options.transport.thumbnailUrl,l=e("<img />",{alt:r}),d="?";o._uploading||(l.hide().on("load"+m,function(){e(this).prev().remove().end().addClass("k-image k-file-image").fadeIn()}),i.find(".k-i-loading").after(l),h(s)?s=s(n.path(),encodeURIComponent(r)):(s.indexOf("?")>=0&&(d="&"),s=s+d+"path="+encodeURIComponent(n.path()+r),o._override&&(s+="&_="+(new Date).getTime(),delete o._override)),l.attr("src",s),t.loaded=!0)},_scroll:function(){var e=this;e.options.transport&&e.options.transport.thumbnailUrl&&(clearTimeout(e._timeout),e._timeout=setTimeout(function(){var t=a._outerHeight(e.listView.content),n=e.listView.content.scrollTop(),i=n+t;e._tiles.each(function(){var t=o(this),r=t+this.offsetHeight;if((t>=n&&t<i||r>=n&&r<i)&&e._loadImage(this),t>i)return!1}),e._tiles=e._tiles.filter(function(){return!this.loaded})},250))},_itemTmpl:function(){var e=this,t='<div class="k-listview-item" '+a.attr("uid")+'="#=uid#" ';return t+=a.attr("type")+'="${'+_+'}">',t+="#if("+_+' == "d") { #',t+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-folder"></span></div>',t+="#}else{#",t+=e.options.transport&&e.options.transport.thumbnailUrl?'<div class="k-file-preview"><span class="k-file-icon k-icon k-i-loading"></span></div>':'<div class="k-file-preview"><span class="k-file-icon k-icon k-i-file"></span></div>',t+="#}#",t+='<span class="k-file-name">${'+g+"}</span>",t+="#if("+_+' == "f") { # <span class="k-file-size">${this.sizeFormatter('+v+")}</span> #}#",t+="</div>",d(a.template(t),{sizeFormatter:i})}}),a.ui.plugin(r)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("util/undoredostack.min",["kendo.core.min"],e)}(function(){!function(e){var t=e.Observable.extend({init:function(t){e.Observable.fn.init.call(this,t),this.clear()},events:["undo","redo"],push:function(e){this.stack=this.stack.slice(0,this.currentCommandIndex+1),this.currentCommandIndex=this.stack.push(e)-1},undo:function(){if(this.canUndo()){var e=this.stack[this.currentCommandIndex--];e.undo(),this.trigger("undo",{command:e})}},redo:function(){if(this.canRedo()){var e=this.stack[++this.currentCommandIndex];e.redo(),this.trigger("redo",{command:e})}},clear:function(){this.stack=[],this.currentCommandIndex=-1},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}});e.deepExtend(e,{util:{UndoRedoStack:t}})}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/main.min",["util/undoredostack.min","kendo.combobox.min","kendo.dropdownlist.min","kendo.window.min","kendo.colorpicker.min"],e)}(function(){!function(e,t){var n,i,o,r,a=window.kendo,s=a.Class,l=a.ui.Widget,d=a.support.mobileOS,c=a.support.browser,u=e.extend,h=e.proxy,p=a.deepExtend,f=a.keys,m="select",g="select.k-select-overlay",v="k-placeholder",_="placeholder",b=200,w="en",k=s.extend({init:function(e){this.options=e},getHtml:function(){var e=this.options;return a.template(e.template,{useWithBlock:!1})(e)}}),y={editorWrapperTemplate:'<table cellspacing="0" cellpadding="0" class="k-widget k-editor" role="presentation"><tbody><tr role="presentation"><td class="k-editor-toolbar-wrap" role="presentation"><ul class="k-toolbar k-editor-toolbar" role="toolbar"></ul></td></tr><tr><td class="k-editable-area"></td></tr></tbody></table>',buttonTemplate:'# var iconCssClass = "k-icon k-i-" + kendo.toHyphens(data.cssClass.replace("k-", ""));## var dataPopup = data.popup ? "data-popup" : "";#<button tabindex="0" role="button" class="k-button k-tool" #= dataPopup # title="#= data.title #" aria-label="#= data.title #"><span class="#= iconCssClass #"></span><span class="k-tool-text k-button-text">#= data.title #</span></button>',tableWizardButtonTemplate:'# var iconCssClass = "k-icon k-i-" + kendo.toHyphens(data.cssClass.replace("k-", ""));## var dataPopup = data.popup ? "data-popup" : "";#<button tabindex="0" role="button" class="k-tool k-button" #= dataPopup # title="#= data.title #" aria-label="#= data.title #"><span class="#= iconCssClass #"></span><span class="k-tool-text">#= data.title #</span></button>',colorPickerTemplate:'<input class="k-colorpicker k-icon k-i-#= data.cssClass.replace("k-", "") #" />',comboBoxTemplate:'<select title="#= data.title #" aria-label="#= data.title #" class="#= data.cssClass #"></select>',dropDownListTemplate:'<span class="k-editor-dropdown"><select title="#= data.title #" aria-label="#= data.title #" class="#= data.cssClass #"></select></span>',separatorTemplate:'<span class="k-separator"></span>',overflowAnchorTemplate:'<button tabindex="0" role="button" class="k-button k-tool k-overflow-anchor" data-popup title="#= data.title #" aria-label="#= data.title #" aria-haspopup="true" aria-expanded="false"><span class="k-icon k-i-more-vertical"></span></button>',formatByName:function(t,n){for(var i=0;i<n.length;i++)if(e.inArray(t,n[i].tags)>=0)return n[i]},getToolCssClass:function(e){var t={superscript:"sup-script",subscript:"sub-script",justifyLeft:"align-left",justifyCenter:"align-center",justifyRight:"align-right",justifyFull:"align-justify",insertUnorderedList:"list-unordered",insertOrderedList:"list-ordered","import":"login",indent:"indent-increase",outdent:"indent-decrease",createLink:"link-horizontal",unlink:"unlink-horizontal",insertImage:"image",insertFile:"file-add",viewHtml:"html",foreColor:"foreground-color",backColor:"paint",createTable:"table-insert",addColumnLeft:"table-column-insert-left",addColumnRight:"table-column-insert-right",addRowAbove:"table-row-insert-above",addRowBelow:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCellsHorizontally:"cells-merge-horizontally",mergeCellsVertically:"cells-merge-vertically",splitCellHorizontally:"cell-split-horizontally",splitCellVertically:"cell-split-vertically",tableWizard:"table-properties",tableWizardInsert:"table-wizard",cleanFormatting:"clear-css",copyFormat:"copy-format",applyFormat:"apply-format"},n=t[e];return n?n:e},registerTool:function(e,t){var n=t.options;n&&n.template&&(n.template.options.cssClass="k-"+y.getToolCssClass(e)),t.name||(t.options.name=e,t.name=e.toLowerCase()),T.defaultTools[e]=t},registerFormat:function(e,t){T.fn.options.formats[e]=t},cacheComments:function(e,t){for(var n in t)e=e.replace(t[n],"{"+n+"}");return e},retrieveComments:function(e,t){for(var n in t)e=e.replace("{"+n+"}",t[n]);return e}},x={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertFile:"Insert file",insertHtml:"Insert HTML",viewHtml:"View HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",formatting:"Format",foreColor:"Color",backColor:"Background color",style:"Styles",emptyFolder:"Empty Folder",editAreaTitle:"Editable area. Press F10 for toolbar.",uploadFile:"Upload",overflowAnchor:"More tools",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found.",imageWebAddress:"Web address",imageAltText:"Alternate text",imageWidth:"Width (px)",imageHeight:"Height (px)",fileWebAddress:"Web address",fileTitle:"Title",fileText:"Text",linkWebAddress:"Web address",linkText:"Text",linkToolTip:"ToolTip",linkOpenInNewWindow:"Open link in new window",dialogUpdate:"Update",dialogInsert:"Insert",dialogOk:"Ok",dialogCancel:"Cancel",cleanFormatting:"Clean formatting",createTable:"Create a table",createTableHint:"Create a {0} x {1} table",addColumnLeft:"Add column on the left",addColumnRight:"Add column on the right",addRowAbove:"Add row above",addRowBelow:"Add row below",deleteRow:"Delete row",deleteColumn:"Delete column",mergeCellsHorizontally:"Merge cells horizontally",mergeCellsVertically:"Merge cells vertically",splitCellHorizontally:"Split cells horizontally",splitCellVertically:"Split cells vertically",tableWizard:"Table Wizard",tableTab:"Table",cellTab:"Cell",accessibilityTab:"Accessibility",caption:"Caption",summary:"Summary",width:"Width",height:"Height",units:"Units",cellSpacing:"Cell Spacing",cellPadding:"Cell Padding",cellMargin:"Cell Margin",alignment:"Alignment",background:"Background",cssClass:"CSS Class",id:"ID",border:"Border",borderStyle:"Border Style",collapseBorders:"Collapse borders",wrapText:"Wrap text",associateCellsWithHeaders:"Associate headers",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignLeftTop:"Align Left Top",alignCenterTop:"Align Center Top",alignRightTop:"Align Right Top",alignLeftMiddle:"Align Left Middle",alignCenterMiddle:"Align Center Middle",alignRightMiddle:"Align Right Middle",alignLeftBottom:"Align Left Bottom",alignCenterBottom:"Align Center Bottom",alignRightBottom:"Align Right Bottom",alignRemove:"Remove Alignment",columns:"Columns",rows:"Rows",selectAllCells:"Select All Cells",exportAs:"Export As","import":"Import",print:"Print",headerRows:"Header Rows",headerColumns:"Header Cols",tableSummaryPlaceholder:"Summary attribute is not HTML5 compatible.",associateNone:"None",associateScope:"Associate using 'scope' attribute",associateIds:"Associate using Ids",copyFormat:"Copy format",applyFormat:"Apply format"},C=!d||d.ios&&d.flatVersion>=500||!d.ios&&t!==document.documentElement.contentEditable,S={basic:["bold","italic","underline"],alignment:["justifyLeft","justifyCenter","justifyRight"],lists:["insertUnorderedList","insertOrderedList"],indenting:["indent","outdent"],formatPainter:["copyFormat","applyFormat"],links:["createLink","unlink"],tables:["tableWizard","createTable","addColumnLeft","addColumnRight","addRowAbove","addRowBelow","deleteRow","deleteColumn","mergeCellsHorizontally","mergeCellsVertically","splitCellHorizontally","splitCellVertically"]},T=l.extend({init:function(n,i){var o,r,s,d,c,f,m,g=this,v=a.ui.editor,_=v.Dom;C&&(l.fn.init.call(g,n,i),g.options=p({},g.options,i),g.options.tools=g.options.tools.slice(),n=g.element,f=n[0],d=_.name(f),this._registerHandler(n.closest("form"),"submit",h(g.update,g,t)),s=u({},g.options),s.editor=g,"textarea"==d?(g._wrapTextarea(),r=g.wrapper.find(".k-editor-toolbar"),f.id&&r.attr("aria-controls",f.id)):(g.element.attr("contenteditable",!0).addClass("k-widget k-editor k-editor-inline"),s.popup=!0,r=e('<ul class="k-toolbar k-editor-toolbar" role="toolbar" />').insertBefore(n)),g.toolbar=new v.Toolbar(r[0],s),g.toolbar.bindTo(g),"textarea"==d&&setTimeout(function(){var e=g.wrapper[0].style.height,t=parseInt(e,10),n=g.wrapper.height();e.indexOf("px")>0&&!isNaN(t)&&n>t&&g.wrapper.height(t-(n-t))}),g._resizable(),g._initializeContentElement(g),g.keyboard=new v.Keyboard([new v.BackspaceHandler(g),new v.TypingHandler(g),new v.SystemHandler(g),new v.SelectAllHandler(g)]),g.clipboard=new v.Clipboard(this),g.undoRedoStack=new a.util.UndoRedoStack,i&&i.value?o=i.value:g.textarea?(o=f.value,g.options.encoded&&f.defaultValue&&f.defaultValue.trim().length&&(o=f.defaultValue),m=v.Serializer.htmlToDom(o,e("<div></div>")[0],g.options.deserialization),c=_.getAllComments(m),o=y.cacheComments(o,c),o=o.replace(/[\r\n\v\f\t ]+/gi," "),o=y.retrieveComments(o,c)):o=f.innerHTML,g.value(o||"\ufeff"),this._registerHandler(document,{mousedown:function(){g._endTyping()},mouseup:function(e){g._mouseup(e)}}),g._initializeImmutables(),g.toolbar.resize(),a.notify(g))},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.tools&&t.toolbar.bindTo(t),this._initializePlaceholder()},_togglePlaceholder:function(t){var n=this,i=n.body,o=e(i),r=n.options.placeholder;n.textarea&&r&&(o.attr("aria-label",function(){return t?r:""}),o.toggleClass(v,t))},_endTyping:function(){var e=this.keyboard;try{e.isTypingInProgress()&&(e.endTyping(!0),this.saveSelection())}catch(t){}},_selectionChange:function(){this._selectionStarted=!1,this.saveSelection(),this.trigger("select",{})},_resizable:function(){var n,i,o=this.options.resizable,r=e.isPlainObject(o)?o.content===t||o.content===!0:o;r&&this.textarea&&(n=e("<div class='k-resize-handle'><span class='k-icon k-i-arrow-45-down-right'></span></div>").insertAfter(this.textarea),this.wrapper.addClass("k-resizable"),this.wrapper.kendoResizable(u({},this.options.resizable,{draggableElement:n,start:function(t){var n=this.editor=e(t.currentTarget).closest(".k-editor");this.initialSize=n.height(),n.find("td:last").append("<div class='k-overlay' />")},resize:function(e){var t=e.y.initialDelta,n=this.initialSize+t,i=this.options.min||0,o=this.options.max||1/0;n=Math.min(o,Math.max(i,n)),this.editor.height(n)},resizeend:function(){this.editor.find(".k-overlay").remove(),this.editor=null}})),a.support.mobileOS.ios&&(i=this.wrapper.getKendoResizable(),i.draggable.options.ignore=g))},_initializeTableResizing:function(){var e=this;a.ui.editor.TableResizing.create(e),e._showTableResizeHandlesProxy=h(e._showTableResizeHandles,e),e.bind(m,e._showTableResizeHandlesProxy)},_destroyTableResizing:function(){var e=this,t=e.tableResizing;t&&(t.destroy(),e.tableResizing=null),e._showTableResizeHandlesProxy&&e.unbind(m,e._showTableResizeHandlesProxy)},_showTableResizeHandles:function(){var e=this,t=e.tableResizing;t&&t.showResizeHandles()},_initializeColumnResizing:function(){a.ui.editor.ColumnResizing.create(this)},_destroyColumnResizing:function(){var e=this;e.columnResizing&&(e.columnResizing.destroy(),e.columnResizing=null)},_initializeRowResizing:function(){a.ui.editor.RowResizing.create(this)},_destroyRowResizing:function(){var e=this;e.rowResizing&&(e.rowResizing.destroy(),e.rowResizing=null)},_wrapTextarea:function(){var t=this,n=t.element,i=n[0].style.width,o=n[0].style.height,r=y.editorWrapperTemplate,a=e(r).insertBefore(n).width(i).height(o),s=a.find(".k-editable-area");n.attr("autocomplete","off").appendTo(s).addClass("k-content k-raw-content").css("display","none"),t.textarea=n,t.wrapper=a},_createContentElement:function(t){var n,i,o,r=this,s=r.textarea,l=r.options.domain,c=l||document.domain,u="",h='javascript:""',p="";return s.hide(),n=e("<iframe />",{title:r.options.messages.editAreaTitle,frameBorder:"0"})[0],e(n).css("display","").addClass("k-content").attr("tabindex",s[0].tabIndex).insertBefore(s),(l||c!=location.hostname)&&(u='<script>document.domain="'+c+'"</script>',h="javascript:document.write('"+u+"')",n.src=h),n.src||(n.src=""),i=n.contentWindow||n,o=i.document||n.contentDocument,e(n).one("load",function(){r.toolbar.decorateFrom(o.body)}),p=document.getElementsByTagName("html")[0].getAttribute("lang")||w,o.open(),o.write("<!DOCTYPE html><html lang='"+p+"'><head><meta charset='utf-8' /><title>Kendo UI Editor content</title><style>html{padding:0;margin:0;height:100%;min-height:100%;cursor:text;}body{padding:0;margin:0;}body{box-sizing:border-box;font-size:12px;font-family:Verdana,Geneva,sans-serif;margin-top:-1px;padding:5px .4em 0;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+(a.support.isRtl(s)?"direction:rtl;":"")+(d.ios?"word-break:keep-all;":"")+"}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}p{margin:0 0 1em;}.k-marker{display:none;}.k-paste-container,.Apple-style-span{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}ul,ol{padding-left:2.5em}span{-ms-high-contrast-adjust:none;}a{color:#00a}code{font-size:1.23em}telerik\\3Ascript{display: none;}.k-table{width:100%;border-spacing:0;margin: 0 0 1em;}.k-table td{min-width:1px;padding:.2em .3em;}.k-table,.k-table td{outline:0;border: 1px dotted #ccc;}.k-table th{outline:0;border: 1px dotted #999;}.k-table p{margin:0;padding:0;}.k-column-resize-handle-wrapper {position: absolute; height: 10px; width:10px; cursor: col-resize; z-index: 2;}.k-column-resize-handle {width: 100%; height: 100%;}.k-column-resize-handle > .k-column-resize-marker {width:2px; height:100%; margin:0 auto; background-color:#00b0ff; display:none; opacity:0.8;}.k-row-resize-handle-wrapper {position: absolute; cursor: row-resize; z-index:2; width: 10px; height: 10px;}.k-row-resize-handle {display: table; width: 100%; height: 100%;}.k-row-resize-marker-wrapper{display: table-cell; height:100%; width:100%; margin:0; padding:0; vertical-align: middle;}.k-row-resize-marker{margin: 0; padding:0; width:100%; height:2px; background-color: #00b0ff; opacity:0.8; display:none;}.k-table-resize-handle-wrapper {position: absolute; background-color: #fff; border: 1px solid #000; z-index: 100; width: 5px; height: 5px;}.k-table-resize-handle {width: 100%; height: 100%;}.k-table-resize-handle.k-resize-east{cursor:e-resize;}.k-table-resize-handle.k-resize-north{cursor:n-resize;}.k-table-resize-handle.k-resize-northeast{cursor:ne-resize;}.k-table-resize-handle.k-resize-northwest{cursor:nw-resize;}.k-table-resize-handle.k-resize-south{cursor:s-resize;}.k-table-resize-handle.k-resize-southeast{cursor:se-resize;}.k-table-resize-handle.k-resize-southwest{cursor:sw-resize;}.k-table-resize-handle.k-resize-west{cursor:w-resize;}.k-table.k-table-resizing{opacity:0.6;}.k-placeholder{color:grey}k\\:script{display:none;}</style>"+u+e.map(t,function(e){return"<link rel='stylesheet' href='"+e+"'>"}).join("")+"</head><body autocorrect='off' contenteditable='true'></body></html>"),o.close(),i},_blur:function(){var e=this.textarea,t=e?e.val():this._oldValue,n=this.options.encoded?this.encodedValue():this.value();this.update(),e&&e.trigger("blur"),n!=t&&(this.trigger("change"),e&&e.trigger("change"))},_spellCorrect:function(e){var n,i=!1;this._registerHandler(e.body,{contextmenu:function(){e.one("select",function(){n=null}),e._spellCorrectTimeout=setTimeout(function(){n=new a.ui.editor.RestorePoint(e.getRange(),e.body),i=!1},10)},input:function(){if(n)return a.support.browser.mozilla&&!i?(i=!0,t):(a.ui.editor._finishUpdate(e,n),t)}})},_registerHandler:function(t,n,i){var o,r,s,l=this,d=".kendoEditor";if(t=e(t),this._handlers||(this._handlers=[]),t.length)if(e.isPlainObject(n))for(s in n)n.hasOwnProperty(s)&&this._registerHandler(t,s,n[s]);else for(o=a.applyEventMap(n).split(" "),r=0;r<o.length;r++)l._handlers.push({element:t,type:o[r]+d,handler:i}),t.on(o[r]+d,i)},_deregisterHandlers:function(){var e,t,n=this._handlers;for(e=0;e<n.length;e++)t=n[e],t.element.off(t.type,t.handler);this._handlers=[]},_initializeContentElement:function(){var n,i,o,r,s,l=this;l.textarea?(l.window=l._createContentElement(l.options.stylesheets),n=l.document=l.window.contentDocument||l.window.document,n.body||(r=n.createElement("body"),r.setAttribute("contenteditable","true"),r.setAttribute("autocorrect","off"),n.getElementsByTagName("html")[0].appendChild(r),s=setInterval(function(){e(l.document).find("body").length>1&&(e(l.document).find("body:last").remove(),window.clearInterval(s))},10)),l.body=n.body,i=l.window,o=n,this._registerHandler(n,"mouseup",h(this._mouseup,this))):(l.window=window,n=l.document=document,l.body=l.element[0],i=l.body,o=l.body,l.toolbar.decorateFrom(l.body)),this._registerHandler(i,"blur",h(this._blur,this)),l._registerHandler(o,"down",h(l._mousedown,l));try{n.execCommand("enableInlineTableEditing",null,!1)}catch(d){}a.support.touch&&this._registerHandler(n,{keydown:function(){a._activeElement()!=n.body&&l.window.focus()}}),this._initializePlaceholder(),this._spellCorrect(l),this._registerHandler(l.document,{"mouseover dragenter":function(t){var n=e(l.body).height(),i=e(l.body.parentElement).height();i>n&&"html"===t.target.nodeName.toLowerCase()&&(l._cachedHeight=""+l.body.style.height,l.body.style.height="100%")},"mouseout dragleave drop contextmenu":function(e){var n=function(){l._cachedHeight!==t&&e.target===l.body&&(l.body.style.height=l._cachedHeight,delete l._cachedHeight)};"contextmenu"===e.type?setTimeout(function(){n()},10):n()}}),this._registerHandler(l.body,{keydown:function(e){var n,i,o,r,a,s,d,c,u,p;return(e.keyCode!==f.BACKSPACE&&e.keyCode!==f.DELETE||"true"===l.body.getAttribute("contenteditable"))&&(e.keyCode===f.F10?(setTimeout(h(l.toolbar.focus,l.toolbar),100),l.toolbar.preventPopupHide=!0,e.preventDefault(),t):(e.keyCode!=f.LEFT&&e.keyCode!=f.RIGHT||(n=l.getRange(),i=e.keyCode==f.LEFT,o=n[i?"startContainer":"endContainer"],r=n[i?"startOffset":"endOffset"],a=i?-1:1,s=r+a,d=i?s:r,3==o.nodeType&&"\ufeff"==o.nodeValue[d]&&(n.setStart(o,s),n.collapse(!0),l.selectRange(n))),c=l.toolbar.tools,u=l.keyboard.toolFromShortcut(c,e),p=u?c[u].options:{},u&&!p.keyPressCommand?(e.preventDefault(),/^(undo|redo)$/.test(u)||l.keyboard.endTyping(!0),l.trigger("keydown",e),l.exec(u),l._runPostContentKeyCommands(e),!1):(l.keyboard.clearTimeout(),l.keyboard.keydown(e),t)))},keypress:function(e){setTimeout(function(){l._runPostContentKeyCommands(e),l._showTableResizeHandles()},0)},keyup:function(t){var n=[f.BACKSPACE,f.TAB,f.PAGEUP,f.PAGEDOWN,f.END,f.HOME,f.LEFT,f.UP,f.RIGHT,f.DOWN,f.INSERT,f.DELETE];(e.inArray(t.keyCode,n)>-1||65==t.keyCode&&t.ctrlKey&&!t.altKey&&!t.shiftKey)&&(window.clearTimeout(this._refreshInterval),this._refreshInterval=window.setTimeout(function(){l._selectionChange()},b)),l.keyboard.keyup(t)},click:function(e){var t,n=a.ui.editor.Dom;"img"===n.name(e.target)&&(t=l.createRange(),t.selectNode(e.target),l.selectRange(t))},"cut copy paste drop dragover":function(e){l.clipboard["on"+e.type](e)},focusin:function(){l.body.hasAttribute("contenteditable")&&(e(this).addClass("k-state-active"),l.toolbar.show(),l._togglePlaceholder(!1))},focusout:function(){setTimeout(function(){var t,n=a._activeElement(),i=l.body,o=l.toolbar;o.options.popup&&(t=o.window.element.get(0),t&&!e.contains(t,n)&&t!=n&&(o.preventPopupHide=!1)),n==i||e.contains(i,n)||e(n).is(".k-editortoolbar-dragHandle")||o.focused()||(e(i).removeClass("k-state-active"),o.hide()),l._togglePlaceholder(!l.value().trim())},10)}}),l._initializeColumnResizing(),l._initializeRowResizing(),l._initializeTableResizing()},_initializePlaceholder:function(){var t,n,i=this,o=i.options.placeholder;i.textarea&&o&&(t="<style id='"+_+"'>."+v+":before { content: '"+o+"'; }</style>",n=e(i.document.head),n.find("#"+_).remove(),n.append(t),i._togglePlaceholder(!i.value().trim()))},_initializeImmutables:function(){var e=this,t=a.ui.editor;e.options.immutables&&(e.immutables=new t.Immutables(e))},_mousedown:function(t){var n,i=this;i._selectionStarted=!0,e(i.body).parents(".k-window").length&&t.stopPropagation(),c.gecko||(n=e(t.target).closest("a[href]"),(2==t.which||1==t.which&&t.ctrlKey)&&n&&n.is("a[href]")&&window.open(n.attr("href"),"_new"),t.target.tagName&&"html"===t.target.tagName.toLowerCase()&&setTimeout(function(){i.body.focus()},0))},_mouseup:function(t){var n=this;a.support.mobileOS.ios&&t&&e(t.target).is(g)||n._selectionStarted&&setTimeout(function(){n._selectionChange()},1)},_runPostContentKeyCommands:function(e){var t,n,i,o,r=this.getRange(),a=this.keyboard.toolsFromShortcut(this.toolbar.tools,e);for(t=0;t<a.length;t++)n=a[t],
i=n.options,i.keyPressCommand&&(o=new i.command({range:r}),o.changesContent()&&(this.keyboard.endTyping(!0),this.exec(n.name)))},refresh:function(){var e,t=this;t.textarea&&(t._destroyResizings(),e=t.value(),t.textarea.val(e),t.wrapper.find("iframe").remove(),t._initializeContentElement(t),t.value(e))},events:["select","change","execute","error","paste","keydown","keyup"],options:{name:"Editor",messages:x,placeholder:"",formats:{},encoded:!0,domain:null,resizable:!1,deserialization:{custom:null},serialization:{entities:!0,semantic:!0,scripts:!1},pasteCleanup:{all:!1,css:!1,custom:null,keepNewLines:!1,msAllFormatting:!1,msConvertLists:!0,msTags:!0,none:!1,span:!1},stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},imageBrowser:null,fileBrowser:null,fontName:[{text:"Arial",value:"Arial, Helvetica, sans-serif"},{text:"Courier New",value:'"Courier New", Courier, monospace'},{text:"Georgia",value:"Georgia, serif"},{text:"Impact",value:"Impact, Charcoal, sans-serif"},{text:"Lucida Console",value:'"Lucida Console", Monaco, monospace'},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif"},{text:"Times New Roman",value:'"Times New Roman", Times, serif'},{text:"Trebuchet MS",value:'"Trebuchet MS", Helvetica, sans-serif'},{text:"Verdana",value:"Verdana, Geneva, sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:[].concat.call(["formatting"],S.basic,S.alignment,S.formatPainter,S.lists,S.indenting,S.links,["insertImage"],S.tables)},destroy:function(){var e=this;l.fn.destroy.call(this),this._endTyping(!0),this._deregisterHandlers(),clearTimeout(this._spellCorrectTimeout),this._focusOutside(),this.toolbar.destroy(),e._destroyUploadWidget(),e._destroyResizings(),a.destroy(this.wrapper)},_destroyResizings:function(){var e=this;e._destroyTableResizing(),a.ui.editor.TableResizing.dispose(e),e._destroyRowResizing(),a.ui.editor.RowResizing.dispose(e),e._destroyColumnResizing(),a.ui.editor.ColumnResizing.dispose(e)},_focusOutside:function(){if(a.support.browser.msie&&this.textarea){var t=e("<input style='position:fixed;left:1px;top:1px;width:1px;height:1px;font-size:0;border:0;opacity:0' />").appendTo(document.body).focus();t.blur().remove()}},_destroyUploadWidget:function(){var e=this;e._uploadWidget&&(e._uploadWidget.destroy(),e._uploadWidget=null)},state:function(e){var t,n,i=T.defaultTools[e],o=i&&(i.options.finder||i.finder),r=a.ui.editor.RangeUtils;return!!o&&(t=this.getRange(),n=r.textNodes(t),!n.length&&t.collapsed&&(n=[t.startContainer]),o.getFormat?o.getFormat(n):o.isFormatted(n))},value:function(e){var n=this.body,i=a.ui.editor,o=this.options,r=i.Serializer.domToXhtml(n,o.serialization);return e===t?r:(e!=r&&(i.Serializer.htmlToDom(e,n,o.deserialization),this.selectionRestorePoint=null,this.update(),this.toolbar.refreshTools()),t)},saveSelection:function(t){t=t||this.getRange();var n=t.commonAncestorContainer,i=this.body;(n==i||e.contains(i,n))&&(this.selectionRestorePoint=new a.ui.editor.RestorePoint(t,i))},_focusBody:function(){var e,t=this.body,n=this.wrapper&&this.wrapper.find("iframe")[0],i=this.document.documentElement,o=a._activeElement();!n&&t.scrollHeight>t.clientHeight?(e=t.scrollTop,t.focus(),t.scrollTop=e):o!=t&&o!=n&&(e=i.scrollTop,t.focus(),i.scrollTop=e)},restoreSelection:function(){this._focusBody(),this.selectionRestorePoint&&this.selectRange(this.selectionRestorePoint.toRange())},focus:function(){this.restoreSelection()},update:function(e){e=e||this.options.encoded?this.encodedValue():this.value(),this.textarea?(this.textarea.val(e),this._togglePlaceholder(!e.trim())):this._oldValue=e},encodedValue:function(){return a.ui.editor.Dom.encode(this.value())},createRange:function(e){return a.ui.editor.RangeUtils.createRange(e||this.document)},getSelection:function(){return a.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(e){this._focusBody();var t=this.getSelection();t.removeAllRanges(),t.addRange(e),this.saveSelection(e)},getRange:function(){var e=this.getSelection(),t=e&&e.rangeCount>0?e.getRangeAt(0):this.createRange(),n=this.document;return t.startContainer!=n||t.endContainer!=n||t.startOffset||t.endOffset||(t.setStart(this.body,0),t.collapse(!0)),t},_containsRange:function(e){var t=a.ui.editor.Dom,n=this.body;return e&&t.isAncestorOrSelf(n,e.startContainer)&&t.isAncestorOrSelf(n,e.endContainer)},_deleteSavedRange:function(){"_range"in this&&delete this._range},selectedHtml:function(){return a.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(t,n){this.focus();var i=new a.ui.editor.InsertHtmlCommand(e.extend({range:this.getRange(),html:t},n));i.editor=this,i.exec()},exec:function(e,n){var i,o,r,a,s=this,l=null;if(!e)throw Error("kendoEditor.exec(): `name` parameter cannot be empty");if("true"!==s.body.getAttribute("contenteditable")&&"print"!==e&&"pdf"!==e&&"exportAs"!==e)return!1;if(e=e.toLowerCase(),s.keyboard.isTypingInProgress()||(s._focusBody(),s.selectRange(s._range||s.getRange())),o=s.toolbar.toolById(e),!o)for(a in T.defaultTools)if(a.toLowerCase()==e){o=T.defaultTools[a];break}if(o){if(i=s.getRange(),o.command&&(l=o.command(u({range:i,body:s.body,immutables:!!s.immutables},n))),r=s.trigger("execute",{name:e,command:l}))return;if(/^(undo|redo)$/i.test(e))s.undoRedoStack[e]();else if(l&&(s.execCommand(l),l.async))return l.change=h(s._selectionChange,s),t;s._selectionChange()}},execCommand:function(e){e.managesUndoRedo||this.undoRedoStack.push(e),e.editor=this,e.exec()}});T.defaultTools={undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},a.ui.plugin(T),n=s.extend({init:function(e){this.options=e},initialize:function(e,t){e.attr({unselectable:"on",title:t.title,"aria-label":t.title})},command:function(e){return new this.options.command(e)},update:e.noop}),n.exec=function(e,t,n){e.exec(t,{value:n})},y.registerTool("separator",new n({template:new k({template:y.separatorTemplate})})),i=c.msie&&c.version<9?"\ufeff":"",o="\ufeff",r=o,(c.msie||c.edge)&&(r=o="&nbsp;"),u(a.ui,{editor:{ToolTemplate:k,EditorUtils:y,Tool:n,_bomFill:i,emptyElementContent:o,emptyTableCellContent:r}}),a.PDFMixin&&(a.PDFMixin.extend(T.prototype),T.prototype._drawPDF=function(){return a.drawing.drawDOM(this.body,this.options.pdf)},T.prototype.saveAsPDF=function(){var t,n=new e.Deferred,i=n.promise(),o={promise:i};if(!this.trigger("pdfExport",o))return t=this.options.pdf,this._drawPDF(n).then(function(e){return a.drawing.exportPDF(e,t)}).done(function(e){a.saveAs({dataURI:e,fileName:t.fileName,proxyURL:t.proxyURL,proxyTarget:t.proxyTarget,forceProxy:t.forceProxy}),n.resolve()}).fail(function(e){n.reject(e)}),i})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/dom.min",["editor/main.min"],e)}(function(){!function(e){function t(e){var t,n,i={};for(t=0,n=e.length;t<n;t++)i[e[t]]=!0;return i}var n,i,o,r,a,s,l,d,c,u,h,p=window.kendo,f=e.map,m=e.extend,g=p.support.browser,v="style",_="float",b="cssFloat",w="styleFloat",k="class",y="k-marker",x=t("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),C="p,div,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,map,menu,noframes,noscript,object,pre,script,table,tbody,td,tfoot,th,thead,tr,header,article,nav,footer,section,aside,main,figure,figcaption".split(","),S=C.concat(["ul","ol","li"]),T=t(S),D=t("area,base,br,col,command,embed,hr,img,input,keygen,link,menuitem,meta,param,source,track,wbr".split(",")),A="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var,data,time,mark,ruby".split(","),E=t(A),I=t("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),M=function(e){1==e.nodeType&&e.normalize()};g.msie&&g.version>=8&&(M=function(e){if(1==e.nodeType&&e.firstChild){var t=e.firstChild,n=t;for(M(n);;){if(n=n.nextSibling,!n)break;M(n),3==n.nodeType&&3==t.nodeType&&(n.nodeValue=t.nodeValue+n.nodeValue,h.remove(t)),t=n}}}),n=/^\s+$/,i=/^[\n\r\t]+$/,o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,r=/\ufeff/g,a=/^(\s+|\ufeff)$/,l="color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height".split(","),d=/[<>\&]/g,c=/[\u00A0-\u2666<>\&]/g,u={34:"quot",38:"amp",39:"apos",60:"lt",62:"gt",160:"nbsp",161:"iexcl",162:"cent",163:"pound",164:"curren",165:"yen",166:"brvbar",167:"sect",168:"uml",169:"copy",170:"ordf",171:"laquo",172:"not",173:"shy",174:"reg",175:"macr",176:"deg",177:"plusmn",178:"sup2",179:"sup3",180:"acute",181:"micro",182:"para",183:"middot",184:"cedil",185:"sup1",186:"ordm",187:"raquo",188:"frac14",189:"frac12",190:"frac34",191:"iquest",192:"Agrave",193:"Aacute",194:"Acirc",195:"Atilde",196:"Auml",197:"Aring",198:"AElig",199:"Ccedil",200:"Egrave",201:"Eacute",202:"Ecirc",203:"Euml",204:"Igrave",205:"Iacute",206:"Icirc",207:"Iuml",208:"ETH",209:"Ntilde",210:"Ograve",211:"Oacute",212:"Ocirc",213:"Otilde",214:"Ouml",215:"times",216:"Oslash",217:"Ugrave",218:"Uacute",219:"Ucirc",220:"Uuml",221:"Yacute",222:"THORN",223:"szlig",224:"agrave",225:"aacute",226:"acirc",227:"atilde",228:"auml",229:"aring",230:"aelig",231:"ccedil",232:"egrave",233:"eacute",234:"ecirc",235:"euml",236:"igrave",237:"iacute",238:"icirc",239:"iuml",240:"eth",241:"ntilde",242:"ograve",243:"oacute",244:"ocirc",245:"otilde",246:"ouml",247:"divide",248:"oslash",249:"ugrave",250:"uacute",251:"ucirc",252:"uuml",253:"yacute",254:"thorn",255:"yuml",402:"fnof",913:"Alpha",914:"Beta",915:"Gamma",916:"Delta",917:"Epsilon",918:"Zeta",919:"Eta",920:"Theta",921:"Iota",922:"Kappa",923:"Lambda",924:"Mu",925:"Nu",926:"Xi",927:"Omicron",928:"Pi",929:"Rho",931:"Sigma",932:"Tau",933:"Upsilon",934:"Phi",935:"Chi",936:"Psi",937:"Omega",945:"alpha",946:"beta",947:"gamma",948:"delta",949:"epsilon",950:"zeta",951:"eta",952:"theta",953:"iota",954:"kappa",955:"lambda",956:"mu",957:"nu",958:"xi",959:"omicron",960:"pi",961:"rho",962:"sigmaf",963:"sigma",964:"tau",965:"upsilon",966:"phi",967:"chi",968:"psi",969:"omega",977:"thetasym",978:"upsih",982:"piv",8226:"bull",8230:"hellip",8242:"prime",8243:"Prime",8254:"oline",8260:"frasl",8472:"weierp",8465:"image",8476:"real",8482:"trade",8501:"alefsym",8592:"larr",8593:"uarr",8594:"rarr",8595:"darr",8596:"harr",8629:"crarr",8656:"lArr",8657:"uArr",8658:"rArr",8659:"dArr",8660:"hArr",8704:"forall",8706:"part",8707:"exist",8709:"empty",8711:"nabla",8712:"isin",8713:"notin",8715:"ni",8719:"prod",8721:"sum",8722:"minus",8727:"lowast",8730:"radic",8733:"prop",8734:"infin",8736:"ang",8743:"and",8744:"or",8745:"cap",8746:"cup",8747:"int",8756:"there4",8764:"sim",8773:"cong",8776:"asymp",8800:"ne",8801:"equiv",8804:"le",8805:"ge",8834:"sub",8835:"sup",8836:"nsub",8838:"sube",8839:"supe",8853:"oplus",8855:"otimes",8869:"perp",8901:"sdot",8968:"lceil",8969:"rceil",8970:"lfloor",8971:"rfloor",9001:"lang",9002:"rang",9674:"loz",9824:"spades",9827:"clubs",9829:"hearts",9830:"diams",338:"OElig",339:"oelig",352:"Scaron",353:"scaron",376:"Yuml",710:"circ",732:"tilde",8194:"ensp",8195:"emsp",8201:"thinsp",8204:"zwnj",8205:"zwj",8206:"lrm",8207:"rlm",8211:"ndash",8212:"mdash",8216:"lsquo",8217:"rsquo",8218:"sbquo",8220:"ldquo",8221:"rdquo",8222:"bdquo",8224:"dagger",8225:"Dagger",8240:"permil",8249:"lsaquo",8250:"rsaquo",8364:"euro"},h={block:T,inline:E,findNodeIndex:function(e,t){var n=0;if(!e)return-1;for(;;){if(e=e.previousSibling,!e)break;t&&3==e.nodeType||n++}return n},isDataNode:function(e){return e&&null!==e.nodeValue&&null!==e.data},isAncestorOf:function(t,n){try{return!h.isDataNode(t)&&(e.contains(t,h.isDataNode(n)?n.parentNode:n)||n.parentNode==t)}catch(i){return!1}},isAncestorOrSelf:function(e,t){return h.isAncestorOf(e,t)||e==t},findClosestAncestor:function(e,t){if(h.isAncestorOf(e,t))for(;t&&t.parentNode!=e;)t=t.parentNode;return t},getAllComments:function(e){for(var t=[],n=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,function(){return NodeFilter.FILTER_ACCEPT},!1),i=n.nextNode();i;)t.push(i.nodeValue),i=n.nextNode();return t},getNodeLength:function(e){return h.isDataNode(e)?e.length:e.childNodes.length},splitDataNode:function(e,t){for(var n,i=e.cloneNode(!1),o="",r=e.nextSibling;r&&3==r.nodeType&&r.nodeValue;)o+=r.nodeValue,n=r,r=r.nextSibling,h.remove(n);e.deleteData(t,e.length),i.deleteData(0,t),i.nodeValue+=o,h.insertAfter(i,e)},attrEquals:function(e,t){var n,i;for(n in t)if(i=e[n],n==_&&(i=e[p.support.cssFloat?b:w]),"object"==typeof i){if(!h.attrEquals(i,t[n]))return!1}else if(i!=t[n])return!1;return!0},blockParentOrBody:function(e){return h.parentOfType(e,S)||e.ownerDocument.body},blockParents:function(t){var n,i,o,r=[];for(n=0,i=t.length;n<i;n++)o=h.parentOfType(t[n],h.blockElements),o&&e.inArray(o,r)<0&&r.push(o);return r},windowFromDocument:function(e){return e.defaultView||e.parentWindow},normalize:M,blockElements:S,nonListBlockElements:C,inlineElements:A,empty:x,fillAttrs:I,nodeTypes:{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},toHex:function(e){var t=o.exec(e);return t?"#"+f(t.slice(1),function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e}).join(""):e},encode:function(e,t){var n=!t||t.entities?c:d;return e.replace(n,function(e){var t=e.charCodeAt(0),n=u[t];return n?"&"+n+";":e})},isBom:function(e){return e&&3===e.nodeType&&/^[\ufeff]+$/.test(e.nodeValue)},stripBom:function(e){return(e||"").replace(r,"")},stripBomNode:function(e){h.isBom(e)&&e.parentNode.removeChild(e)},insignificant:function(e){var t=e.attributes;return"k-marker"==e.className||h.is(e,"br")&&("k-br"==e.className||t._moz_dirty||t._moz_editor_bogus_node)||h.is(e,"span")&&"k-br"==e.className},tableCell:function(e){return h.is(e,"td")||h.is(e,"th")},significantNodes:function(t){return e.grep(t,function(e){var t=h.name(e);return"br"!=t&&(!h.insignificant(e)&&(!h.emptyTextNode(e)&&!(1==e.nodeType&&!x[t]&&h.emptyNode(e))))})},emptyTextNode:function(e){return e&&3==e.nodeType&&a.test(e.nodeValue)},emptyNode:function(e){return 1==e.nodeType&&!h.significantNodes(e.childNodes).length},name:function(e){return e.nodeName.toLowerCase()},significantChildNodes:function(t){return e.grep(t.childNodes,function(e){return 3!=e.nodeType||!h.isWhitespace(e)})},lastTextNode:function(e){var t,n=null;if(3==e.nodeType)return e;for(t=e.lastChild;t;t=t.previousSibling)if(n=h.lastTextNode(t))return n;return n},is:function(e,t){return e&&h.name(e)==t},isMarker:function(e){return e.className==y},isWhitespace:function(e){return n.test(e.nodeValue)},allWhitespaceContent:function(e){for(var t=e.firstChild;t&&h.isWhitespace(t);)t=t.nextSibling;return!t},isEmptyspace:function(e){return i.test(e.nodeValue)},htmlIndentSpace:function(t){var n,o,a,s,l,d;return!(!h.isDataNode(t)||!h.isWhitespace(t))&&(!!i.test(t.nodeValue)||(n=function(e,t){for(;e[t];)if(e=e[t],h.significantNodes([e]).length>0)return e},o=t.parentNode,a=n(t,"previousSibling"),s=n(t,"nextSibling"),r.test(t.nodeValue)?!(!a&&!s):!!e(o).is("tr,tbody,thead,tfoot,table,ol,ul")||!!((h.isBlock(o)||h.is(o,"body"))&&(l=a&&h.isBlock(a),d=s&&h.isBlock(s),!s&&l||!a&&d||l&&d))))},isBlock:function(e){return T[h.name(e)]},isSelfClosing:function(e){return D[h.name(e)]},isEmpty:function(e){return x[h.name(e)]},isInline:function(e){return E[h.name(e)]},isBr:function(e){return"br"==h.name(e)},list:function(e){var t=e?h.name(e):"";return"ul"==t||"ol"==t||"dl"==t},scrollContainer:function(e){var t=h.windowFromDocument(e),n=(t.contentWindow||t).document||t.ownerDocument||t;return n="BackCompat"==n.compatMode?n.body:n.scrollingElement||n.documentElement},scrollTo:function(t,n){var i,o,r,a,s=t.ownerDocument,l=h.windowFromDocument(s),d=l.innerHeight,c=h.scrollContainer(s);h.isDataNode(t)?n?(a=h.create(s,"span",{innerHTML:"&#xfeff;"}),h.insertBefore(a,t),i=e(a)):i=e(t.parentNode):i=e(t),o=i.offset().top,r=i[0].offsetHeight,!n&&r||(r=parseInt(i.css("line-height"),10)||Math.ceil(1.2*parseInt(i.css("font-size"),10))||15),a&&h.remove(a),r+o>c.scrollTop+d&&(c.scrollTop=r+o-d)},persistScrollTop:function(e){s=h.scrollContainer(e).scrollTop},offset:function(e,t){for(var n={top:e.offsetTop,left:e.offsetLeft},i=e.offsetParent;i&&(!t||h.isAncestorOf(t,i));)n.top+=i.offsetTop,n.left+=i.offsetLeft,i=i.offsetParent;return n},restoreScrollTop:function(e){"number"==typeof s&&(h.scrollContainer(e).scrollTop=s,s=void 0)},insertAt:function(e,t,n){e.insertBefore(t,e.childNodes[n]||null)},insertBefore:function(e,t){return t.parentNode?t.parentNode.insertBefore(e,t):t},insertAfter:function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},remove:function(e){e.parentNode&&e.parentNode.removeChild(e)},removeChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},removeTextSiblings:function(e){for(var t=e.parentNode;e.nextSibling&&3==e.nextSibling.nodeType;)t.removeChild(e.nextSibling);for(;e.previousSibling&&3==e.previousSibling.nodeType;)t.removeChild(e.previousSibling)},trim:function(e){var t,n;for(t=e.childNodes.length-1;t>=0;t--)n=e.childNodes[t],h.isDataNode(n)?h.stripBom(n.nodeValue).length||h.remove(n):n.className!=y&&(h.trim(n),(!h.isEmpty(n)&&0===n.childNodes.length||h.isBlock(n)&&h.allWhitespaceContent(n))&&h.remove(n));return e},closest:function(e,t){for("string"==typeof t&&(t=[t]);e&&t.indexOf(h.name(e))<0;)e=e.parentNode;return e},closestBy:function(e,t,n){for(;e&&!t(e);){if(n&&n(e))return null;e=e.parentNode}return e},sibling:function(e,t){do e=e[t];while(e&&1!=e.nodeType);return e},next:function(e){return h.sibling(e,"nextSibling")},prev:function(e){return h.sibling(e,"previousSibling")},parentOfType:function(e,t){do e=e.parentNode;while(e&&!h.ofType(e,t));return e},ofType:function(t,n){return e.inArray(h.name(t),n)>=0},changeTag:function(e,t,n){var i,o,r,a,s,l=h.create(e.ownerDocument,t),d=e.attributes;if(!n)for(i=0,o=d.length;i<o;i++)s=d[i],s.specified&&(r=s.nodeName,a=s.nodeValue,r==k?l.className=a:r==v?l.style.cssText=e.style.cssText:l.setAttribute(r,a));for(;e.firstChild;)l.appendChild(e.firstChild);return h.insertBefore(l,e),h.remove(e),l},editableParent:function(e){for(;e&&(3==e.nodeType||"true"!==e.contentEditable);)e=e.parentNode;return e},wrap:function(e,t){return h.insertBefore(t,e),t.appendChild(e),t},unwrap:function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)},wrapper:function(t){var n=h.closestBy(t,function(e){return e.parentNode&&h.significantNodes(e.parentNode.childNodes).length>1});return e(n).is("body,.k-editor")?void 0:n},create:function(e,t,n){return h.attr(e.createElement(t),n)},createEmptyNode:function(e,t,n){var i=h.attr(e.createElement(t),n);return i.innerHTML="\ufeff",i},attr:function(e,t){t=m({},t),t&&v in t&&(h.style(e,t.style),delete t.style);for(var n in t)null===t[n]?(e.removeAttribute(n),delete t[n]):"className"==n&&(e[n]=t[n]);return m(e,t)},mergeAttributes:function(t,n){t.attributes.length&&e.each(t.attributes,function(){"contenteditable"!==this.name&&e(n).attr(this.name,this.value)})},style:function(t,n){e(t).css(n||{})},unstyle:function(e,t){for(var n in t)n==_&&(n=p.support.cssFloat?b:w),e.style[n]="";""===e.style.cssText&&e.removeAttribute(v)},inlineStyle:function(t,n,i){var o,r=e(h.create(t.ownerDocument,n,i));return t.appendChild(r[0]),o=f(l,function(e){return g.msie&&"line-height"==e&&"1px"==r.css(e)?"line-height:1.5":e+":"+r.css(e)}).join(";"),r.remove(),o},getEffectiveBackground:function(e){var t=e.css("background-color")||"";return t.indexOf("rgba(0, 0, 0, 0")<0&&"transparent"!==t?t:"html"===e[0].tagName.toLowerCase()?"Window":h.getEffectiveBackground(e.parent())},innerText:function(e){var t=e.innerHTML;return t=t.replace(/<!--(.|\s)*?-->/gi,""),t=t.replace(/<\/?[^>]+?\/?>/gm,"")},removeClass:function(e,t){var n,i,o=" "+e.className+" ",r=t.split(" ");for(n=0,i=r.length;n<i;n++)o=o.replace(" "+r[n]+" "," ");o=p.trim(o),o.length?e.className=o:e.removeAttribute(k)},commonAncestor:function(){var e,t,n,i,o,r=arguments.length,a=[],s=1/0,l=null;if(!r)return null;if(1==r)return arguments[0];for(e=0;e<r;e++){for(t=[],n=arguments[e];n;)t.push(n),n=n.parentNode;a.push(t.reverse()),s=Math.min(s,t.length)}if(1==r)return a[0][0];for(e=0;e<s;e++){for(i=a[0][e],o=1;o<r;o++)if(i!=a[o][e])return l;l=i}return l},closestSplittableParent:function(t){var n,i,o;return n=1==t.length?h.parentOfType(t[0],["ul","ol"]):h.commonAncestor.apply(null,t),n||(n=h.parentOfType(t[0],["p","td"])||t[0].ownerDocument.body),h.isInline(n)&&(n=h.blockParentOrBody(n)),i=f(t,h.editableParent),o=h.commonAncestor(i)[0],e.contains(n,o)&&(n=o),n},closestEditable:function(t,n){var i,o=h.editableParent(t);return i=h.ofType(t,n)?t:h.parentOfType(t,n),i&&o&&e.contains(i,o)?i=o:!i&&o&&(i=o),i},closestEditableOfType:function(t,n){var i=h.closestEditable(t,n);if(i&&h.ofType(i,n)&&!e(i).is(".k-editor"))return i},filter:function(e,t,n){var i=function(t){return h.name(t)==e};return h.filterBy(t,i,n)},filterBy:function(e,t,n){for(var i,o=0,r=e.length,a=[];o<r;o++)i=t(e[o]),(i&&!n||!i&&n)&&a.push(e[o]);return a},ensureTrailingBreaks:function(t){var n=e(t).find("p,td,th"),i=n.length,o=0;if(i)for(;o<i;o++)h.ensureTrailingBreak(n[o]);else h.ensureTrailingBreak(t)},removeTrailingBreak:function(t){e(t).find("br[type=_moz],.k-br").remove()},ensureTrailingBreak:function(e){var t,n,i;h.removeTrailingBreak(e),t=e.lastChild,n=t&&h.name(t),(!n||"br"!=n&&"img"!=n||"br"==n&&"k-br"!=t.className)&&(i=e.ownerDocument.createElement("br"),i.className="k-br",e.appendChild(i))},reMapTableColumns:function(e,t){h._mapColIndices(e,t)},clearTableMappings:function(t,n){e(t).find("["+n+"]").removeAttr(n)},_mapColIndices:function(e,t){var n,i,o,r,a,s={};for(n=0;n<e.rows.length;n++)for(i=e.rows[n].cells,o=0,r=0;r<i.length;r++,o++){if(a=i[r],a.rowSpan>1&&this._mapColspan(a,n,o,s),s[n])for(;s[n][o];)o++;a.setAttribute(t,o),a.colSpan>1&&(o=o+a.colSpan-1)}},_mapColspan:function(e,t,n,i){var o,r,a,s=e.rowSpan,l=e.colSpan;for(r=0;r<l;r++)for(o=n+r,a=t+1;a<t+s;a++){if(i[a]||(i[a]={},i[a].length=0),i[t])for(;i[t][o];)o++;i[a][o]=!0,i[a].length++}},associateWithIds:function(e){var t,n,i=this,o=0,r=e.rows,a=r.length,s=[],l=[];if(e.tHead)t=e.tHead.rows,o=t.length;else for(o=i._getNumberOfHeaderRows(e),t=[],n=0;n<o;n++)t.push(r[n]);for(n=0;n<o;n++)s.push([]);for(n=0;n<a;n++)l.push([]);i._generateIdsForColumns(s,t),i._generateIdsForRows(s,l,o,r),i._assignIds(s,l,o,r)},_generateIdsForColumns:function(e,t){var n,i,o,r,a,s,l,d,c,u,h,p=(new Date).getTime(),f=t?t.length:0;for(d=0;d<f;d++)for(n=t[d],i=n.cells,r=0,c=0;c<i.length;c++){for(o=i[c],a="table"+d+c+ ++p,o.setAttribute("id",a),s=o.getAttribute("colspan")||1,l=o.getAttribute("rowspan")||1;e[d][c+r];)r+=1;for(u=0;u<l;u++)for(h=0;h<s;h++)e[d+u][c+r+h]=a}},_generateIdsForRows:function(t,n,i,o){var r,a,s,l,d,c,u,h,p,f,m,g,v,_=this,b=(new Date).getTime(),w=o.length,k=function(e){v.push(e[g])};for(h=i;h<w;h++)for(r=o[h],a=e(r.cells).filter("th"),l=0,p=0;p<a.length;p++){for(s=a[p],d="table"+h+p+ ++b,s.setAttribute("id",d),c=s.getAttribute("colspan")||1,u=s.getAttribute("rowspan")||1;n[h][p+l];)l+=1;for(f=0;f<u;f++)for(m=0;m<c;m++)n[h+f][p+l+m]=d;g=s.getAttribute("col-index"),v=[],t.forEach(k),v=v.filter(_._onlyUnique),s.setAttribute("headers",v.join(" ").trim())}},_assignIds:function(t,n,i,o){var r,a,s,l,d,c,u,h=this,p=o.length,f=function(e){u.push(e[c])};for(l=i;l<p;l++)for(r=o[l],a=e(r.cells).filter("td"),d=0;d<a.length;d++)s=a[d],c=s.getAttribute("col-index"),u=n[l].slice(),t.forEach(f),u=u.filter(h._onlyUnique),s.setAttribute("headers",u.join(" ").trim())},_getNumberOfColumns:function(t){var n,i,o,r=e(t).find("th, td"),a=0;for(i=0;i<r.length;i++)n=r[i],o=+n.getAttribute("col-index")+1,o>a&&(a=o);return a},_getNumberOfHeaderColumns:function(e,t){var n,i,o,r,a,s=e.rows,l=0;for(o=t;o<s.length;o++)for(i=s[o],r=0;r<i.cells.length;r++)a=i.cells[r],this.is(a,"th")&&(n=+a.getAttribute("col-index")+1,n>l&&(l=n));return l},_getNumberOfHeaderRows:function(e){var t,n,i,o,r=e.rows,a=e.tHead,s=a&&e.tHead.rows?e.tHead.rows.length:0;if(0===s)for(n=r[0],o=n.cells&&n.cells.length;n&&o&&this.is(n.cells[0],"th");){for(t=0;t<o;t++)i=n?n.cells[t]:null,this.is(i,"th")||(n=null);n&&(s+=1,n=this.next(n),o=n&&n.cells&&n.cells.length)}return s},_onlyUnique:function(e,t,n){return n.indexOf(e)===t}},p.ui.editor.Dom=h}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/serializer.min",["editor/dom.min"],e)}(function(){!function(e,t){var n,i,o,r,a=window.kendo,s=a.ui.editor,l=s.Dom,d=e.extend,c="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),u=/"/g,h=/<br[^>]*>/i,p=/^\d+(\.\d*)?(px)?$/i,f=/<p>(?:&nbsp;)?<\/p>/i,m=/(\*?[-#\/\*\\\w]+(?:\[[0-9a-z_-]+\])?)\s*:\s*((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/g,g=/^sizzle-\d+/i,v=/^k-script-/i,_=/\s*onerror\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/i,b='<br class="k-br">',w="<span class='k-br'>\ufeff</span>",k=document.createElement("div");k.innerHTML=" <hr>",n=3===k.firstChild.nodeType,k=null,i=e.isFunction,o="td",r={toEditableHtml:function(e){return(e||"").replace(/<!\[CDATA\[(.*)?\]\]>/g,"<!--[CDATA[$1]]-->").replace(/<(\/?)script([^>]*)>/gi,"<$1k:script$2>").replace(/<img([^>]*)>/gi,function(e){return e.replace(_,"")}).replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/gi,"$1").replace(/^<(table|blockquote)/i,b+"<$1").replace(/^[\s]*(&nbsp;|\u00a0)/i,"$1").replace(/<\/(table|blockquote)>$/i,"</$1>"+b)},_toEditableImmutables:function(t){for(var n=s.Immutables.immutable,i=l.emptyTextNode,o=t.firstChild,r=t.lastChild;i(o);)o=o.nextSibling;for(;i(r);)r=r.previousSibling;o&&n(o)&&e(w).prependTo(t),r&&n(r)&&e(w).appendTo(t)},_fillEmptyElements:function(t){e(t).find("p,td").each(function(){var t,n=e(this);if(/^\s*$/g.test(n.text())&&!n.find("img,input").length){for(t=this;t.firstChild&&3!=t.firstChild.nodeType;)t=t.firstChild;1!=t.nodeType||l.empty[l.name(t)]||(t.innerHTML=l.is(t,"td")?a.ui.editor.emptyTableCellContent:a.ui.editor.emptyElementContent)}})},_removeSystemElements:function(t){e(".k-paste-container",t).remove()},_resetOrderedLists:function(e){var t,n,i,o=e.getElementsByTagName("ol");for(t=0;t<o.length;t++)n=o[t],i=n.getAttribute("start"),n.setAttribute("start",1),i?n.setAttribute("start",i):n.removeAttribute(i)},_preventScriptExecution:function(t){e(t).find("*").each(function(){var e,t,n,i,o=this.attributes,r=[];for(t=0,n=o.length;t<n;t++)e=o[t],i=e.nodeName,e.specified&&/^on/i.test(i)&&(this.setAttribute("k-script-"+i,e.value),r.push(i));for(t=0,n=r.length;t<n;t++)this.removeAttribute(r[t])})},htmlToDom:function(t,n,o){var s=a.support.browser,d=s.msie,c=d&&s.version<9,u="originalsrc",h="originalhref",p=o||{},f=p.immutables;return t=r.toEditableHtml(t),c&&(t="<br/>"+t,t=t.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,h+'="$1"'),t=t.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,u+'="$1"')),i(p.custom)&&(t=p.custom(t)||t),n.innerHTML=t,f&&f.deserialize(n),c?(l.remove(n.firstChild),e(n).find("k\\:script,script,link,img,a").each(function(){var e=this;e[h]&&(e.setAttribute("href",e[h]),e.removeAttribute(h)),e[u]&&(e.setAttribute("src",e[u]),e.removeAttribute(u))})):d&&(l.normalize(n),r._resetOrderedLists(n)),r._preventScriptExecution(n),r._fillEmptyElements(n),r._removeSystemElements(n),r._toEditableImmutables(n),e("table",n).addClass("k-table"),n},domToXhtml:function(i,r){function d(t){return e.grep(t,function(e){return"style"!=e.name})}function _(e,t){E.push("<"+t),y(e),E.push(">")}function b(e){var t,n,i,o=a.trim,r=o(e),s=[];for(m.lastIndex=0;;){if(t=m.exec(r),!t)break;n=o(t[1].toLowerCase()),i=o(t[2]),"font-size-adjust"!=n&&"font-stretch"!=n&&(n.indexOf("color")>=0?i=l.toHex(i):n.indexOf("font")>=0?i=i.replace(u,"'"):/\burl\(/g.test(i)&&(i=i.replace(u,"")),s.push({property:n,value:i}))}return s}function w(e){var t,n=b(e);for(t=0;t<n.length;t++)E.push(n[t].property),E.push(":"),E.push(n[t].value),E.push(";")}function k(e){var t,n,i,o,a,s,d=[],c=e.attributes;for(n=0,i=c.length;n<i;n++)t=c[n],o=t.nodeName,a=t.value,s=t.specified,"value"==o&&"value"in e&&e.value?s=!0:"type"==o&&"text"==a?s=!0:"class"!=o||a?g.test(o)?s=!1:"complete"==o?s=!1:"altHtml"==o?s=!1:"start"==o&&l.is(e,"ul")?s=!1:"start"==o&&l.is(e,"ol")&&"1"==a?s=!1:o.indexOf("_moz")>=0?s=!1:v.test(o)?s=!!r.scripts:"data-role"==o&&"resizable"==a&&(l.is(e,"tr")||l.is(e,"td"))&&(s=!1):s=!1,s&&d.push(t);return d}function y(n,i){var o,r,s,d,c,u,h,f;if(i=i||k(n),l.is(n,"img")&&(u=n.style.width,h=n.style.height,f=e(n),u&&p.test(u)&&(f.attr("width",parseInt(u,10)),l.unstyle(n,{width:t})),h&&p.test(h)&&(f.attr("height",parseInt(h,10)),l.unstyle(n,{height:t}))),i.length)for(o=0,r=i.length;o<r;o++)s=i[o],d=s.nodeName,c=s.value,"class"==d&&"k-table"==c||(d=d.replace(v,""),E.push(" "),E.push(d),E.push('="'),"style"==d?w(c||n.style.cssText):E.push("src"==d||"href"==d?a.htmlEncode(n.getAttribute(d,2)):l.fillAttrs[d]?d:c),E.push('"'))}function x(e,t,n){for(var i=e.firstChild;i;i=i.nextSibling)T(i,t,n)}function C(e){return e.nodeValue.replace(/\ufeff/g,"")}function S(e){if(l.isBom(e)){do{if(e=e.parentNode,l.is(e,o)&&1===e.childNodes.length)return!0;if(1!==e.childNodes.length)return!1}while(!l.isBlock(e));return!0}return!1}function T(i,o,a){var d,c,u,h,p,f,m=i.nodeType;if(I&&s.Immutables.immutable(i))E.push(I.serialize(i));else if(1==m){if(d=l.name(i),f=e(i),f.hasClass("k-table-resize-handle-wrapper")||f.hasClass("k-column-resize-handle-wrapper")||f.hasClass("k-row-resize-handle-wrapper"))return;if(!d||l.insignificant(i))return;if(!r.scripts&&("script"==d||"k:script"==d))return;if(c=M[d],c&&(t===c.semantic||r.semantic^c.semantic))return c.start(i),x(i,!1,c.skipEncoding),c.end(i),t;E.push("<"),E.push(d),y(i),l.empty[d]?E.push(" />"):(E.push(">"),x(i,o||l.is(i,"pre")),E.push("</"),E.push(d),E.push(">"))}else if(3==m){if(S(i))return E.push("&nbsp;"),t;h=C(i),!o&&n&&(u=i.parentNode,p=i.previousSibling,p||(p=(l.isInline(u)?u:i).previousSibling),p&&""!==p.innerHTML&&!l.isBlock(p)||(h=h.replace(/^[\r\n\v\f\t ]+/,"")),h=h.replace(/ +/," ")),E.push(a?h:l.encode(h,r))}else 4==m?(E.push("<![CDATA["),E.push(i.data),E.push("]]>")):8==m&&(i.data.indexOf("[CDATA[")<0?(E.push("<!--"),E.push(i.data),E.push("-->")):(E.push("<!"),E.push(i.data),E.push(">")))}function D(e){var t=e.childNodes.length,n=t&&3==e.firstChild.nodeType;return n&&(1==t||2==t&&l.insignificant(e.lastChild))}function A(){e.isFunction(r.custom)&&(E=r.custom(E)||E)}var E=[],I=r&&r.immutables,M={iframe:{start:function(e){_(e,"iframe")},end:function(){E.push("</iframe>")}},"k:script":{start:function(e){_(e,"script")},end:function(){E.push("</script>")},skipEncoding:!0},span:{semantic:!0,start:function(t){var n,i,o=t.style,r=k(t),a=d(r);a.length&&(E.push("<span"),y(t,a),E.push(">")),"underline"==o.textDecoration&&E.push("<u>"),n=[],o.color&&n.push('color="'+l.toHex(o.color)+'"'),o.fontFamily&&n.push('face="'+o.fontFamily+'"'),o.fontSize&&(i=e.inArray(o.fontSize,c),n.push('size="'+i+'"')),n.length&&E.push("<font "+n.join(" ")+">")},end:function(e){var t=e.style;
(t.color||t.fontFamily||t.fontSize)&&E.push("</font>"),"underline"==t.textDecoration&&E.push("</u>"),d(k(e)).length&&E.push("</span>")}},strong:{semantic:!0,start:function(e){_(e,"b")},end:function(){E.push("</b>")}},em:{semantic:!0,start:function(e){_(e,"i")},end:function(){E.push("</i>")}},b:{semantic:!1,start:function(e){_(e,"strong")},end:function(){E.push("</strong>")}},i:{semantic:!1,start:function(e){_(e,"em")},end:function(){E.push("</em>")}},u:{semantic:!1,start:function(t){var n,i,o;E.push("<span"),n=k(t),i=e(n).filter(function(e,t){return"style"==t.name})[0],o={nodeName:"style",value:"text-decoration:underline;"},i&&(o.value=i.value,/text-decoration/i.test(o.value)||(o.value="text-decoration:underline;"+o.value),n.splice(e.inArray(i,n),1)),n.push(o),y(t,n),E.push(">")},end:function(){E.push("</span>")}},font:{semantic:!1,start:function(e){var t,n,i;E.push('<span style="'),t=e.getAttribute("color"),n=c[e.getAttribute("size")],i=e.getAttribute("face"),t&&(E.push("color:"),E.push(l.toHex(t)),E.push(";")),i&&(E.push("font-family:"),E.push(i),E.push(";")),n&&(E.push("font-size:"),E.push(n),E.push(";")),E.push('">')},end:function(){E.push("</span>")}}};return M.script=M["k:script"],r=r||{},t===r.semantic&&(r.semantic=!0),D(i)?(E=l.encode(C(i.firstChild).replace(/[\r\n\v\f\t ]+/," "),r),A(),E):(x(i),E=E.join(""),A(),""===E.replace(h,"").replace(f,"")?"":E)}},d(s,{Serializer:r})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/components.min",["editor/serializer.min"],e)}(function(){!function(e,t){var n=window.kendo,i=n.ui.DropDownList,o=n.ui.editor.Dom,r=i.extend({init:function(t,o){var r=this;i.fn.init.call(r,t,o),n.support.mobileOS.ios&&(this._initSelectOverlay(),this.bind("dataBound",e.proxy(this._initSelectOverlay,this))),r.text(r.options.title),r.element.attr("title",r.options.title),r.wrapper.attr("title",r.options.title),r.bind("open",function(){if(r.options.autoSize){var e,t=r.list;t.css({whiteSpace:"nowrap",width:"auto"}),e=t.width(),e>0?e+=20:e=r._listWidth,t.css("width",e+n.support.scrollbar()),r._listWidth=e}})},options:{name:"SelectBox",index:-1},_initSelectOverlay:function(){var t,i,o,r,a=this,s=a.value(),l=this.dataSource.view(),d="",c=n.htmlEncode;for(i=0;i<l.length;i++)t=l[i],d+="<option value='"+c(t.value)+"'",t.value==s&&(d+=" selected"),d+=">"+c(t.text)+"</option>";o=e("<select class='k-select-overlay'>"+d+"</select>"),r=e(this.element).closest(".k-widget"),r.next(".k-select-overlay").remove(),o.insertAfter(r),o.on("change",function(){a.value(this.value),a.trigger("change")})},value:function(e){var n=this,o=i.fn.value.call(n,e);return e===t?o:(i.fn.value.call(n)||n.text(n.options.title),t)},decorate:function(t){var n,i,r,a,s=this,l=s.dataSource,d=l.data();for(t&&s.list.css("background-color",o.getEffectiveBackground(e(t))),n=0;n<d.length;n++)i=d[n].tag||"span",r=d[n].className,a=o.inlineStyle(t,i,{className:r}),a=a.replace(/"/g,"'"),d[n].style=a+";display:inline-block";l.trigger("change")}});n.ui.plugin(r),n.ui.editor.SelectBox=r}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/range.min",["editor/components.min"],e)}(function(){!function(e){function t(e,t,n,i){var o,r,a,s;if(e==t)return i-n;for(o=t;o&&o.parentNode!=e;)o=o.parentNode;if(o)return y(o)-n;for(o=e;o&&o.parentNode!=t;)o=o.parentNode;if(o)return i-y(o)-1;for(r=k.commonAncestor(e,t),a=e;a&&a.parentNode!=r;)a=a.parentNode;for(a||(a=r),s=t;s&&s.parentNode!=r;)s=s.parentNode;return s||(s=r),a==s?0:y(s)-y(a)}function n(e,n){function i(e){try{return t(e.startContainer,e.endContainer,e.startOffset,e.endOffset)<0}catch(n){return!0}}i(e)&&(n?(e.commonAncestorContainer=e.endContainer=e.startContainer,e.endOffset=e.startOffset):(e.commonAncestorContainer=e.startContainer=e.endContainer,e.startOffset=e.endOffset),e.collapsed=!0)}function i(e){e.collapsed=e.startContainer==e.endContainer&&e.startOffset==e.endOffset;for(var t=e.startContainer;t&&t!=e.endContainer&&!k.isAncestorOf(t,e.endContainer);)t=t.parentNode;e.commonAncestorContainer=t}function o(e){var t=e.duplicate(),n=e.duplicate();return t.collapse(!0),n.collapse(!1),k.commonAncestor(e.parentElement(),t.parentElement(),n.parentElement())}function r(e,t,n){var i,o=t[n?"startContainer":"endContainer"],r=t[n?"startOffset":"endOffset"],a=0,s=x(o),l=s?o:o.childNodes[r]||null,d=s?o.parentNode:o,c=t.ownerDocument,u=c.body.createTextRange();3!=o.nodeType&&4!=o.nodeType||(a=r),d||(d=c.body),"img"==d.nodeName.toLowerCase()?(u.moveToElementText(d),u.collapse(!1),e.setEndPoint(n?"StartToStart":"EndToStart",u)):(i=d.insertBefore(k.create(c,"a"),l),u.moveToElementText(i),k.remove(i),u[n?"moveStart":"moveEnd"]("character",a),u.collapse(!1),e.setEndPoint(n?"StartToStart":"EndToStart",u))}function a(e,t,n,i){var o,r,a,s,l,d,c,u=k.create(t.ownerDocument,"a"),h=e.duplicate(),p=i?"StartToStart":"StartToEnd",f=!1;u.innerHTML="\ufeff",h.collapse(i),r=h.parentElement(),k.isAncestorOrSelf(n,r)||(r=n);do f?r.insertBefore(u,u.previousSibling):(r.appendChild(u),f=!0),h.moveToElementText(u);while((o=h.compareEndPoints(p,e))>0&&u.previousSibling);a=u.nextSibling,o==-1&&x(a)?(h.setEndPoint(i?"EndToStart":"EndToEnd",e),k.remove(u),d=[a,h.text.length]):(s=!i&&u.previousSibling,l=i&&u.nextSibling,x(l)?d=[l,0]:x(s)?d=[s,s.length]:(c=y(u),d=r.nextSibling&&c==r.childNodes.length-1?[r.nextSibling,0]:[r,c]),k.remove(u)),t[i?"setStart":"setEnd"].apply(t,d)}var s,l,d,c,u,h,p,f,m,g=window.kendo,v=g.Class,_=e.extend,b=g.ui.editor,w=g.support.browser,k=b.Dom,y=k.findNodeIndex,x=k.isDataNode,C=k.findClosestAncestor,S=k.getNodeLength,T=k.normalize,D={selectionFromWindow:function(e){return"getSelection"in e?e.getSelection():new l(e.document)},selectionFromRange:function(e){var t=m.documentFromRange(e);return D.selectionFromDocument(t)},selectionFromDocument:function(e){return D.selectionFromWindow(k.windowFromDocument(e))}},A=v.extend({init:function(t){e.extend(this,{ownerDocument:t,startContainer:t,endContainer:t,commonAncestorContainer:t,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(e,t){this.startContainer=e,this.startOffset=t,i(this),n(this,!0)},setEnd:function(e,t){this.endContainer=e,this.endOffset=t,i(this),n(this,!1)},setStartBefore:function(e){this.setStart(e.parentNode,y(e))},setStartAfter:function(e){this.setStart(e.parentNode,y(e)+1)},setEndBefore:function(e){this.setEnd(e.parentNode,y(e))},setEndAfter:function(e){this.setEnd(e.parentNode,y(e)+1)},selectNode:function(e){this.setStartBefore(e),this.setEndAfter(e)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e[1===e.nodeType?"childNodes":"nodeValue"].length)},collapse:function(e){var t=this;e?t.setEnd(t.startContainer,t.startOffset):t.setStart(t.endContainer,t.endOffset)},deleteContents:function(){var e=this,t=e.cloneRange();e.startContainer!=e.commonAncestorContainer&&e.setStartAfter(C(e.commonAncestorContainer,e.startContainer)),e.collapse(!0),function n(e){for(;e.next();)e.hasPartialSubtree()?n(e.getSubtreeIterator()):e.remove()}(new s(t))},cloneContents:function(){var e=m.documentFromRange(this);return function t(n){for(var i,o=e.createDocumentFragment();i=n.next();)i=i.cloneNode(!n.hasPartialSubtree()),n.hasPartialSubtree()&&i.appendChild(t(n.getSubtreeIterator())),o.appendChild(i);return o}(new s(this))},extractContents:function(){var e,t=this,n=t.cloneRange();return t.startContainer!=t.commonAncestorContainer&&t.setStartAfter(C(t.commonAncestorContainer,t.startContainer)),t.collapse(!0),e=m.documentFromRange(t),function i(n){for(var o,r=e.createDocumentFragment();o=n.next();)n.hasPartialSubtree()?(o=o.cloneNode(!1),o.appendChild(i(n.getSubtreeIterator()))):n.remove(t.originalRange),r.appendChild(o);return r}(new s(n))},insertNode:function(e){var t=this;x(t.startContainer)?(t.startOffset!=t.startContainer.nodeValue.length&&k.splitDataNode(t.startContainer,t.startOffset),k.insertAfter(e,t.startContainer)):k.insertAt(t.startContainer,e,t.startOffset),t.setStart(t.startContainer,t.startOffset)},cloneRange:function(){return e.extend(new A(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var e=this.startContainer.nodeName,t=this.endContainer.nodeName;return("#text"==e?this.startContainer.nodeValue:e)+"("+this.startOffset+") : "+("#text"==t?this.endContainer.nodeValue:t)+"("+this.endOffset+")"}});A.fromNode=function(e){return new A(e.ownerDocument)},s=v.extend({init:function(t){if(e.extend(this,{range:t,_current:null,_next:null,_end:null}),!t.collapsed){var n=t.commonAncestorContainer;this._next=t.startContainer!=n||x(t.startContainer)?C(n,t.startContainer):t.startContainer.childNodes[t.startOffset],this._end=t.endContainer!=n||x(t.endContainer)?C(n,t.endContainer).nextSibling:t.endContainer.childNodes[t.endOffset]}},hasNext:function(){return!!this._next},next:function(){var e=this,t=e._current=e._next;return e._next=e._current&&e._current.nextSibling!=e._end?e._current.nextSibling:null,x(e._current)&&(e.range.endContainer==e._current&&(t=t.cloneNode(!0),t.deleteData(e.range.endOffset,t.length-e.range.endOffset)),e.range.startContainer==e._current&&(t=t.cloneNode(!0),t.deleteData(0,e.range.startOffset))),t},traverse:function(e){function t(){return i._current=i._next,i._next=i._current&&i._current.nextSibling!=i._end?i._current.nextSibling:null,i._current}for(var n,i=this;n=t();)i.hasPartialSubtree()?i.getSubtreeIterator().traverse(e):e(n);return n},remove:function(e){var t,n,i,o,r,a=this,s=a.range.startContainer==a._current,l=a.range.endContainer==a._current;x(a._current)&&(s||l)?(t=s?a.range.startOffset:0,n=l?a.range.endOffset:a._current.length,i=n-t,e&&(s||l)&&(a._current==e.startContainer&&t<=e.startOffset&&(e.startOffset-=i),a._current==e.endContainer&&n<=e.endOffset&&(e.endOffset-=i)),a._current.deleteData(t,i)):(o=a._current.parentNode,!e||a.range.startContainer!=o&&a.range.endContainer!=o||(r=y(a._current),o==e.startContainer&&r<=e.startOffset&&(e.startOffset-=1),o==e.endContainer&&r<e.endOffset&&(e.endOffset-=1)),k.remove(a._current))},hasPartialSubtree:function(){return!x(this._current)&&(k.isAncestorOrSelf(this._current,this.range.startContainer)||k.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){return new s(this.getSubRange())},getSubRange:function(){var e=this,t=e.range.cloneRange();return t.selectNodeContents(e._current),k.isAncestorOrSelf(e._current,e.range.startContainer)&&t.setStart(e.range.startContainer,e.range.startOffset),k.isAncestorOrSelf(e._current,e.range.endContainer)&&t.setEnd(e.range.endContainer,e.range.endOffset),t}}),l=v.extend({init:function(e){this.ownerDocument=e,this.rangeCount=1},addRange:function(e){var t=this.ownerDocument.body.createTextRange();r(t,e,!1),r(t,e,!0),t.select()},removeAllRanges:function(){var e=this.ownerDocument.selection;"None"!=e.type&&e.empty()},getRangeAt:function(){var e,t,n,i,r,s,l,d,c=new A(this.ownerDocument),u=this.ownerDocument.selection;try{if(e=u.createRange(),t=e.item?e.item(0):e.parentElement(),t.ownerDocument!=this.ownerDocument)return c}catch(h){return c}if("Control"==u.type)c.selectNode(e.item(0));else if(n=o(e),a(e,c,n,!0),a(e,c,n,!1),9==c.startContainer.nodeType&&c.setStart(c.endContainer,c.startOffset),9==c.endContainer.nodeType&&c.setEnd(c.startContainer,c.endOffset),0===e.compareEndPoints("StartToEnd",e)&&c.collapse(!1),i=c.startContainer,r=c.endContainer,s=this.ownerDocument.body,!(c.collapsed||0!==c.startOffset||c.endOffset!=S(c.endContainer)||i==r&&x(i)&&i.parentNode==s)){for(l=!1,d=!1;0===y(i)&&i==i.parentNode.firstChild&&i!=s;)i=i.parentNode,l=!0;for(;y(r)==S(r.parentNode)-1&&r==r.parentNode.lastChild&&r!=s;)r=r.parentNode,d=!0;i==s&&r==s&&l&&d&&(c.setStart(i,0),c.setEnd(r,S(s)))}return c}}),d=v.extend({init:function(e){this.enumerate=function(){function t(e){if(k.is(e,"img")||3==e.nodeType&&(!k.isEmptyspace(e)||"\ufeff"==e.nodeValue))n.push(e);else for(e=e.firstChild;e;)t(e),e=e.nextSibling}var n=[];return new s(e).traverse(t),n}}}),c=s.extend({hasPartialSubtree:function(){var e=b.Immutables&&b.Immutables.immutable;return e&&!e(this._current)&&s.fn.hasPartialSubtree.call(this)},getSubtreeIterator:function(){return new c(this.getSubRange())}}),u=v.extend({init:function(e){this.enumerate=function(){function t(e){if(i&&!i(e))if(k.is(e,"img")||3==e.nodeType&&(!k.isEmptyspace(e)||"\ufeff"==e.nodeValue))n.push(e);else for(e=e.firstChild;e;)t(e),e=e.nextSibling}var n=[],i=b.Immutables&&b.Immutables.immutable;return new c(e).traverse(t),n}}}),h=v.extend({init:function(e,t,n){var i=this;i.range=e,i.rootNode=m.documentFromRange(e),i.body=t||i.getEditable(e),"body"!=k.name(i.body)&&(i.rootNode=i.body),i.startContainer=i.nodeToPath(e.startContainer),i.endContainer=i.nodeToPath(e.endContainer),i.startOffset=i.offset(e.startContainer,e.startOffset),i.endOffset=i.offset(e.endContainer,e.endOffset),i.immutables=n&&n.immutables,i.immutables&&(i.serializedImmutables=b.Immutables.removeImmutables(i.body)),i.html=i.body.innerHTML,i.immutables&&!i.serializedImmutables.empty&&b.Immutables.restoreImmutables(i.body,i.serializedImmutables)},index:function(e){for(var t,n=0,i=e.nodeType;e=e.previousSibling;)t=e.nodeType,3==t&&i==t||n++,i=t;return n},getEditable:function(e){for(var t=e.commonAncestorContainer;t&&(3==t.nodeType||t.attributes&&(!t.attributes.contentEditable||"false"==t.attributes.contentEditable.nodeValue.toLowerCase()));)t=t.parentNode;return t},restoreHtml:function(){var e=this;k.removeChildren(e.body),e.body.innerHTML=e.html,e.immutables&&!e.serializedImmutables.empty&&b.Immutables.restoreImmutables(e.body,e.serializedImmutables)},offset:function(e,t){if(3==e.nodeType)for(;(e=e.previousSibling)&&3==e.nodeType;)t+=e.nodeValue.length;return t},nodeToPath:function(e){for(var t=[];e!=this.rootNode;)t.push(this.index(e)),e=e.parentNode;return t},toRangePoint:function(e,t,n,i){for(var o=this.rootNode,r=n.length,a=i;r--&&o;)o=o.childNodes[n[r]];for(;o&&3==o.nodeType&&o.nodeValue.length<a;)a-=o.nodeValue.length,o=o.nextSibling;o&&a>=0&&e[t?"setStart":"setEnd"](o,a)},toRange:function(){var e=this,t=e.range.cloneRange();return e.toRangePoint(t,!0,e.startContainer,e.startOffset),e.toRangePoint(t,!1,e.endContainer,e.endOffset),t}}),p=v.extend({init:function(){this.caret=null},addCaret:function(e){var t=this,n=t.caret=k.create(m.documentFromRange(e),"span",{className:"k-marker"});return e.insertNode(n),k.stripBomNode(n.previousSibling),k.stripBomNode(n.nextSibling),e.selectNode(n),n},removeCaret:function(e){var t,n,i,o,r=this,a=r.caret.previousSibling,s=0;a&&(s=x(a)?a.nodeValue.length:y(a)),t=r.caret.parentNode,n=a?y(a):0,k.remove(r.caret),T(t),i=t.childNodes[n],x(i)?e.setStart(i,s):i?(o=k.lastTextNode(i),o?e.setStart(o,o.nodeValue.length):e[a?"setStartAfter":"setStartBefore"](i)):(w.msie||t.innerHTML||(t.innerHTML='<br _moz_dirty="" />'),e.selectNodeContents(t)),e.collapse(!0)},add:function(e,t){var n,i,o=this,r=e.collapsed&&!m.isExpandable(e),a=m.documentFromRange(e);return t&&e.collapsed&&(o.addCaret(e),e=m.expand(e)),n=e.cloneRange(),n.collapse(!1),o.end=k.create(a,"span",{className:"k-marker"}),n.insertNode(o.end),n=e.cloneRange(),n.collapse(!0),o.start=o.end.cloneNode(!0),n.insertNode(o.start),o._removeDeadMarkers(o.start,o.end),r&&(i=a.createTextNode("\ufeff"),k.insertAfter(i.cloneNode(),o.start),k.insertBefore(i,o.end)),T(e.commonAncestorContainer),e.setStartBefore(o.start),e.setEndAfter(o.end),e},_removeDeadMarkers:function(e,t){e.previousSibling&&"\ufeff"==e.previousSibling.nodeValue&&k.remove(e.previousSibling),t.nextSibling&&"\ufeff"==t.nextSibling.nodeValue&&k.remove(t.nextSibling)},_normalizedIndex:function(e){for(var t=y(e),n=e;n.previousSibling;)3==n.nodeType&&3==n.previousSibling.nodeType&&t--,n=n.previousSibling;return t},remove:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p=this,f=p.start,m=p.end;for(T(e.commonAncestorContainer);!f.nextSibling&&f.parentNode;)f=f.parentNode;for(;!m.previousSibling&&m.parentNode;)m=m.parentNode;if(t=f.previousSibling&&3==f.previousSibling.nodeType&&f.nextSibling&&3==f.nextSibling.nodeType,n=m.previousSibling&&3==m.previousSibling.nodeType&&m.nextSibling&&3==m.nextSibling.nodeType,i=t&&n,f=f.nextSibling,m=m.previousSibling,o=f===m&&k.isBom(f),o&&f.length>1&&(f.nodeValue=f.nodeValue.charAt(0)),r=o,a=!1,f==p.end&&(a=!!p.start.previousSibling,f=m=p.start.previousSibling||p.end.nextSibling,r=!0),k.remove(p.start),k.remove(p.end),!f||!m)return e.selectNodeContents(e.commonAncestorContainer),void e.collapse(!0);if(s=r?x(f)?f.nodeValue.length:f.childNodes.length:0,l=x(m)?m.nodeValue.length:m.childNodes.length,3==f.nodeType)for(;f.previousSibling&&3==f.previousSibling.nodeType;)f=f.previousSibling,s+=f.nodeValue.length;if(3==m.nodeType)for(;m.previousSibling&&3==m.previousSibling.nodeType;)m=m.previousSibling,l+=m.nodeValue.length;d=f.parentNode,c=m.parentNode,u=this._normalizedIndex(f),h=this._normalizedIndex(m),T(d),3==f.nodeType&&(f=d.childNodes[u]),T(c),3==m.nodeType&&(m=c.childNodes[h]),r?(3==f.nodeType?e.setStart(f,s):e[a?"setStartAfter":"setStartBefore"](f),e.collapse(!0)):(3==f.nodeType?e.setStart(f,s):e.setStartBefore(f),3==m.nodeType?e.setEnd(m,l):e.setEndAfter(m)),p.caret&&p.removeCaret(e)}}),f=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,m={nodes:function(e){var t=m.textNodes(e);return t.length||(e.selectNodeContents(e.commonAncestorContainer),t=m.textNodes(e),t.length||(t=k.significantChildNodes(e.commonAncestorContainer))),t},textNodes:function(e){return new d(e).enumerate()},editableTextNodes:function(e){var t=[],n=b.Immutables&&b.Immutables.immutableParent;return n&&!n(e.commonAncestorContainer)&&(t=new u(e).enumerate()),t},documentFromRange:function(e){var t=e.startContainer;return 9==t.nodeType?t:t.ownerDocument},createRange:function(e){return w.msie&&w.version<9?new A(e):e.createRange()},selectRange:function(e){var t,n=m.image(e);n&&(e.setStartAfter(n),e.setEndAfter(n)),t=D.selectionFromRange(e),t.removeAllRanges(),t.addRange(e)},stringify:function(e){return g.format("{0}:{1} - {2}:{3}",k.name(e.startContainer),e.startOffset,k.name(e.endContainer),e.endOffset)},split:function(e,t,n){function i(i){var o,r=e.cloneRange();r.collapse(i),r[i?"setStartBefore":"setEndAfter"](t),o=r.extractContents(),n&&(o=k.trim(o)),k[i?"insertBefore":"insertAfter"](o,t)}i(!0),i(!1)},mapAll:function(t,n){var i=[];return new s(t).traverse(function(t){var o=n(t);o&&e.inArray(o,i)<0&&i.push(o)}),i},getAll:function(e,t){var n=t;return"string"==typeof t&&(t=function(e){return k.is(e,n)}),m.mapAll(e,function(e){if(t(e))return e})},getMarkers:function(e){return m.getAll(e,function(e){return"k-marker"==e.className})},image:function(e){var t=m.getAll(e,"img");if(1==t.length)return t[0]},isStartOf:function(e,t){var n,i,o;if(0!==e.startOffset)return!1;for(n=e.cloneRange();0===n.startOffset&&n.startContainer!=t;){for(i=k.findNodeIndex(n.startContainer),o=n.startContainer.parentNode;i>0&&o[i-1]&&k.insignificant(o[i-1]);)i--;n.setStart(o,i)}return 0===n.startOffset&&n.startContainer==t},isEndOf:function(e,t){function n(e){k.insignificant(e)||k.isDataNode(e)&&/^[\ufeff]*$/.test(e.nodeValue)||o.push(e)}var i,o,r=e.cloneRange();return r.collapse(!1),i=r.startContainer,k.isDataNode(i)&&r.startOffset==k.getNodeLength(i)&&(r.setStart(i.parentNode,k.findNodeIndex(i)+1),r.collapse(!0)),r.setEnd(t,k.getNodeLength(t)),o=[],new s(r).traverse(n),!o.length},wrapSelectedElements:function(e){function t(e,t){var n,i=k.getNodeLength(t);if(e==i)return!0;for(n=e;n<i;n++)if(!k.insignificant(t.childNodes[n]))return!1;return!0}for(var n=k.editableParent(e.startContainer),i=k.editableParent(e.endContainer);0===e.startOffset&&e.startContainer!=n;)e.setStart(e.startContainer.parentNode,k.findNodeIndex(e.startContainer));for(;t(e.endOffset,e.endContainer)&&e.endContainer!=i;)e.setEnd(e.endContainer.parentNode,k.findNodeIndex(e.endContainer)+1);return e},expand:function(e){var t,n,i,o,r=e.cloneRange(),a=r.startContainer.childNodes[0===r.startOffset?0:r.startOffset-1],s=r.endContainer.childNodes[r.endOffset];return x(a)&&x(s)?(t=a.nodeValue,n=s.nodeValue,t&&n?(i=t.split("").reverse().join("").search(f),o=n.search(f),i&&o?(o=o==-1?n.length:o,i=i==-1?0:t.length-i,r.setStart(a,i),r.setEnd(s,o),r):r):r):r},isExpandable:function(e){var t,n,i,o,r,a,s=e.startContainer,l=m.documentFromRange(e);return s!=l&&s!=l.body&&(t=e.cloneRange(),!!(n=s.nodeValue)&&(i=n.substring(0,t.startOffset),o=n.substring(t.startOffset),r=0,a=0,i&&(r=i.split("").reverse().join("").search(f)),o&&(a=o.search(f)),r&&a))}},_(b,{SelectionUtils:D,W3CRange:A,RangeIterator:s,W3CSelection:l,RangeEnumerator:d,RestorePoint:h,Marker:p,RangeUtils:m})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/immutables.min",["editor/range.min"],e)}(function(){!function(e,t){var n=window.kendo,i=n.Class,o=n.ui.editor,r=o.Dom,a=n.template,s=o.RangeUtils,l=["ul","ol","tbody","thead","table"],d=["bold","italic","underline","strikethrough","superscript","subscript","forecolor","backcolor","fontname","fontsize","createlink","unlink","autolink","addcolumnleft","addcolumnright","addrowabove","addrowbelow","deleterow","deletecolumn","mergecells","formatting","cleanformatting"],c="k-immutable",u="["+c+"]",h="[contenteditable='false']",p=function(t){return e(t).is("body,.k-editor")},f=function(e){return e.getAttribute&&"false"==e.getAttribute("contenteditable")},m=function(e){return r.closestBy(e,f,p)},g=function(e){var t=m(e.startContainer),n=m(e.endContainer);(t||n)&&(t&&e.setStartBefore(t),n&&e.setEndAfter(n))},v=function(e){if(m(e.commonAncestorContainer))return!0;if(m(e.startContainer)||m(e.endContainer)){var t=s.editableTextNodes(e);if(0===t.length)return!0}return!1},_=function(e){var t,n="",i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(t=e||10;t>0;--t)n+=i.charAt(Math.round(Math.random()*(i.length-1)));return n},b=function(t){var n,i,o,a={empty:!0};return e(t).find(h).each(function(t,s){n=r.name(s),i=_(),o="<"+n+" "+c+"='"+i+"'></"+n+">",a[i]={node:s,style:e(s).attr("style")},a.empty=!1,e(s).replaceWith(o)}),a},w=function(t,n){var i,o;e(t).find(u).each(function(t,r){i=r.getAttribute(c),o=n[i],e(r).replaceWith(o.node),o.style!=e(o.node).attr("style")&&e(o.node).removeAttr("style").attr("style",o.style)})},k=function(e){var t=n.keys;return e===t.BACKSPACE||e==t.DELETE},y=function(e){var n=e?e.options:t;n&&n.finder&&n.finder._initOptions({immutables:!0})},x=i.extend({init:function(t){this.editor=t,this.serializedImmutables={},this.options=e.extend({},t&&t.options&&t.options.immutables);var n=t.toolbar.tools;y(n.justifyLeft),y(n.justifyCenter),y(n.justifyRight),y(n.justifyFull)},serialize:function(e){var t,n=this._toHtml(e);return n.indexOf(c)===-1?(t=this.randomId(),n=n.replace(/>/," "+c+'="'+t+'">')):t=n.match(/k-immutable\s*=\s*['"](.*)['"]/)[1],this.serializedImmutables[t]=e,n},_toHtml:function(e){var t,n=this.options.serialization,i=typeof n;switch(i){case"string":return a(n)(e);case"function":return n(e);default:return t=r.name(e),"<"+t+"></"+t+">"}},deserialize:function(t){var i=this,o=this.options.deserialization;e(u,t).each(function(){var t=this.getAttribute(c),r=i.serializedImmutables[t];n.isFunction(o)&&o(this,r),e(this).replaceWith(r)}),i.serializedImmutables={}},randomId:function(e){return _(e)},keydown:function(e,t){var n=k(e.keyCode),i=n&&this._cancelDeleting(e,t)||!n&&this._cancelTyping(e,t);if(i)return e.preventDefault(),!0},_cancelTyping:function(e,t){var n=this.editor,i=n.keyboard;return t.collapsed&&!i.typingInProgress&&i.isTypingKey(e)&&v(t)},_cancelDeleting:function(e,t){var i,o,a,s,d=n.keys,c=e.keyCode===d.BACKSPACE,u=e.keyCode==d.DELETE;if(!c&&!u)return!1;if(i=!1,t.collapsed){if(v(t))return!0;if(o=this.nextImmutable(t,u),o&&c&&(a=r.closest(t.commonAncestorContainer,"li"),a&&(s=r.closest(o,"li"),s&&s!==a)))return i;if(o&&!r.tableCell(o)){if(r.parentOfType(o,l)===r.parentOfType(t.commonAncestorContainer,l)){for(;o&&1==o.parentNode.childNodes.length;)o=o.parentNode;if(r.tableCell(o))return i;this._removeImmutable(o,t)}i=!0}}return i},nextImmutable:function(e,t){var n,i=e.commonAncestorContainer;if(r.isBom(i)||t&&s.isEndOf(e,i)||!t&&s.isStartOf(e,i)){if(n=this._nextNode(i,t),n&&r.isBlock(n)&&!m(n))for(;n&&n.children&&n.children[t?0:n.children.length-1];)n=n.children[t?0:n.children.length-1];return m(n)}},_removeImmutable:function(e,t){var n=this.editor,i=new o.RestorePoint(t,n.body);r.remove(e),o._finishUpdate(n,i)},_nextNode:function(e,t){for(var n,i=t?"nextSibling":"previousSibling",o=e;o&&!n;)n=o[i],n&&r.isDataNode(n)&&/^\s|[\ufeff]$/.test(n.nodeValue)&&(o=n,n=o[i]),n||(o=o.parentNode);return n}});x.immutable=f,x.immutableParent=m,x.expandImmutablesIn=g,x.immutablesContext=v,x.toolsToBeUpdated=d,x.removeImmutables=b,x.restoreImmutables=w,o.Immutables=x}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/command.min",["editor/immutables.min"],e)}(function(){!function(e){function t(e,t){var n=e.selectionRestorePoint=new a(e.getRange(),e.body),i=new c(t,n);return i.editor=e,e.undoRedoStack.push(i),n}var n=window.kendo,i=n.Class,o=n.ui.editor,r=o.Dom,a=o.RestorePoint,s=o.Marker,l=e.extend,d=i.extend({init:function(e){this.options=e,this.restorePoint=new a(e.range,e.body,{immutables:e.immutables}),this.marker=new s,this.formatter=e.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(e){return this.marker.add(this.getRange(),e)},releaseRange:function(e){this.marker.remove(e),this.editor.selectRange(e)},undo:function(){var e=this.restorePoint;e.restoreHtml(),this.editor.selectRange(e.toRange())},redo:function(){this.exec()},createDialog:function(t,i){var o=this.editor;return e(t).appendTo(document.body).kendoWindow(l({},o.options.dialogOptions,i)).closest(".k-window").toggleClass("k-rtl",n.support.isRtl(o.wrapper)).end()},exec:function(){var e=this.lockRange(!0);this.formatter.editor=this.editor,this.formatter.toggle(e),this.releaseRange(e)},immutables:function(){return this.editor&&this.editor.options.immutables},expandImmutablesIn:function(e){this.immutables()&&(n.ui.editor.Immutables.expandImmutablesIn(e),this.restorePoint=new a(e,this.editor.body))}}),c=i.extend({init:function(e,t){this.body=e.body,this.startRestorePoint=e,this.endRestorePoint=t},redo:function(){r.removeChildren(this.body),this.body.innerHTML=this.endRestorePoint.html,this.editor.selectRange(this.endRestorePoint.toRange())},undo:function(){r.removeChildren(this.body),this.body.innerHTML=this.startRestorePoint.html,this.editor.selectRange(this.startRestorePoint.toRange())}});l(o,{_finishUpdate:t,Command:d,GenericCommand:c})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/toolbar.min",["editor/range.min"],e)}(function(){!function(e,t){var n,i=window.kendo,o=i.ui,r=o.editor,a=o.Widget,s=e.extend,l=e.proxy,d=i.keys,c=".kendoEditor",u=r.EditorUtils,h=r.ToolTemplate,p=r.Tool,f=i._outerWidth,m=i._outerHeight,g="overflowAnchor",v=".k-tool-group:visible .k-tool:not(.k-state-disabled),.k-tool.k-overflow-anchor:visible,.k-tool-group:visible .k-colorpicker:not(input),.k-tool-group:visible .k-selectbox,.k-tool-group:visible .k-dropdown,.k-tool-group:visible .k-combobox .k-input",_={"k-i-sup-script":"superscript","k-i-sub-script":"subscript","k-i-align-left":"justifyLeft","k-i-align-center":"justifyCenter","k-i-align-right":"justifyRight","k-i-align-justify":"justifyFull","k-i-list-unordered":"insertUnorderedList","k-i-list-ordered":"insertOrderedList","k-i-login":"import","k-i-indent-increase":"indent","k-i-indent-decrease":"outdent","k-i-link-horizontal":"createLink","k-i-unlink-horizontal":"unlink","k-i-image":"insertImage","k-i-file-add":"insertFile","k-i-html":"viewHtml","k-i-foreground-color":"foreColor","k-i-paint":"backColor","k-i-table-insert":"createTable","k-i-table-column-insert-left":"addColumnLeft","k-i-table-column-insert-right":"addColumnRight","k-i-table-row-insert-above":"addRowAbove","k-i-table-row-insert-below":"addRowBelow","k-i-table-row-delete":"deleteRow","k-i-table-column-delete":"deleteColumn","k-i-table-properties":"tableWizard","k-i-table-wizard":"tableWizardInsert","k-i-clear-css":"cleanFormatting","k-i-cells-merge-horizontally":"mergeCellsHorizontally","k-i-cells-merge-vertically":"mergeCellsVertically","k-i-cell-split-horizontally":"splitCellHorizontally","k-i-cell-split-vertically":"splitCellVertically","k-i-copy-format":"copyFormat","k-i-apply-format":"applyFormat"},b=p.extend({initialize:function(t,n){var i=n.editor.toolbar;t.attr("aria-controls",n.editor.element.attr("id")).on("click",e.proxy(function(){this.overflowPopup.toggle()},i))},options:{name:g},command:e.noop,update:e.noop,destroy:e.noop});u.registerTool(g,new b({key:"",ctrl:!0,template:new h({template:u.overflowAnchorTemplate})})),n=a.extend({init:function(e,t){var n=this;t=s({},t,{name:"EditorToolbar"}),a.fn.init.call(n,e,t),t.popup&&n._initPopup(),t.resizable&&t.resizable.toolbar&&(n._resizeHandler=i.onResize(function(){n.resize(!0)}),n.element.addClass("k-toolbar-resizable"))},events:["execute"],groups:{basic:["bold","italic","underline","strikethrough"],scripts:["subscript","superscript"],alignment:["justifyLeft","justifyCenter","justifyRight","justifyFull"],links:["insertImage","insertFile","createLink","unlink"],lists:["insertUnorderedList","insertOrderedList","indent","outdent"],tablesInsert:["createTable"],tablesAddDelete:["addColumnLeft","addColumnRight","addRowAbove","addRowBelow","deleteRow","deleteColumn"],tablesMerge:["mergeCellsHorizontally","mergeCellsVertically","splitCellHorizontally","splitCellVertically"],advanced:["viewHtml","cleanFormatting","print","pdf","exportAs","import"],fonts:["fontName","fontSize"],colors:["foreColor","backColor"],formatPainter:["copyFormat","applyFormat"]},overflowFlaseTools:["formatting","fontName","fontSize","foreColor","backColor","insertHtml"],_initPopup:function(){var t=this;this.window=e(this.element).wrap("<div class='editorToolbarWindow' />").parent().prepend("<span class='k-editortoolbar-dragHandle'><span class='k-icon k-i-handler-drag'></span></span>").kendoWindow({title:!1,resizable:!1,draggable:{dragHandle:".k-editortoolbar-dragHandle"},animation:{open:{effects:"fade:in"},close:{effects:"fade:out"}},minHeight:42,visible:!1,autoFocus:!1,actions:[],dragend:function(){this._moved=!0}}).on("mousedown",function(n){e(n.target).is(".k-icon")||(t.preventPopupHide=!0)}).on("focusout",function(){t.options.editor.element.focusout()}).data("kendoWindow")},_toggleOverflowStyles:function(e,t){e.find("> li").toggleClass("k-item",t).find(".k-tool:not(.k-state-disabled), .k-overflow-button").toggleClass("k-overflow-button",t)},_initOverflowPopup:function(t){var n=this,o="<ul class='k-editor-overflow-popup k-overflow-container k-list-container'></ul>";n.overflowPopup=e(o).appendTo("body").kendoPopup({anchor:t,origin:i.support.isRtl(n.element)?"bottom left":"bottom right",position:i.support.isRtl(n.element)?"top left":"top right",copyAnchorStyles:!1,open:function(e){this.element.is(":empty")&&e.preventDefault(),n._toggleOverflowStyles(this.element,!0),t.attr("aria-expanded",!0)},close:function(){t.attr("aria-expanded",!1)},activate:l(n.focusOverflowPopup,n)}).data("kendoPopup")},items:function(){var e,t,n=this.options.resizable&&this.options.resizable.toolbar;return t=this.element.children().find("> *, select"),n&&(e=this.overflowPopup,t=t.add(e.element.children().find("> *"))),t},focused:function(){return this.element.find(".k-state-focused").length>0||this.preventPopupHide||this.overflowPopup&&this.overflowPopup.visible()},toolById:function(e){var t,n=this.tools;for(t in n)if(t.toLowerCase()==e)return n[t]},toolGroupFor:function(t){var n,i=this.groups;
if(this.isCustomTool(t))return"custom";for(n in i)if(e.inArray(t,i[n])>=0)return n},bindTo:function(t){var n=this,i=n.window;n._editor&&n._editor.unbind("select",l(n.resize,n)),n._editor=t,n.options.resizable&&n.options.resizable.toolbar&&t.options.tools.push(g),n.tools=n.expandTools(t.options.tools),n.render(),n.element.find(".k-combobox .k-input").keydown(function(t){var n=e(this).closest(".k-combobox").data("kendoComboBox"),i=t.keyCode;i==d.RIGHT||i==d.LEFT?n.close():i==d.DOWN&&(n.dropDown.isOpened()||(t.stopImmediatePropagation(),n.open()))}),n._attachEvents(),n.items().each(function(){var i,o=n._toolName(this),r="moreVertical"!==o?n.tools[o]:n.tools.overflowAnchor,a=r&&r.options,s=t.options.messages,l=a&&a.tooltip||s[o],d=e(this);r&&r.initialize&&("fontSize"!=o&&"fontName"!=o||(i=s[o+"Inherit"],d.find("input").val(i).end().find("span.k-input").text(i).end()),r.initialize(d,{title:n._appendShortcutSequence(l,r),editor:n._editor}),d.closest(".k-widget",n.element).addClass("k-editor-widget"),d.closest(".k-colorpicker",n.element).next(".k-colorpicker").addClass("k-editor-widget"))}),t.bind("select",l(n.resize,n)),n.update(),i&&i.wrapper.css({top:"",left:"",width:""})},show:function(){var e,t,n,o=this,r=o.window,a=o.options.editor,s=i.support.browser;r&&(e=r.wrapper,t=a.element,e.is(":visible")&&o.window.options.visible||(e[0].style.width||e.width(this._getWindowWidth()),r._moved||(n=t.offset(),e.css({top:Math.max(0,parseInt(n.top,10)-m(e)-parseInt(o.window.element.css("padding-bottom"),10)),left:Math.max(0,parseInt(n.left,10))})),(s.msie||s.edge)&&o._overlaps(t)?setTimeout(function(){r.open()},0):r.open()))},_getWindowWidth:function(){var e=this,t=e.window.wrapper,n=e.options.editor.element;return f(n)-parseInt(t.css("border-left-width"),10)-parseInt(t.css("border-right-width"),10)},_overlaps:function(e){var t=this.window.wrapper,n=t.offset(),i=n.left,o=n.top,r=e.offset(),a=r.left,s=r.top;return!(a+e.width()<i||a>i+t.width()||s+e.height()<o||s>o+t.height())},hide:function(){this.window&&this.window.close()},focus:function(){var e="tabIndex",t=this.element,n=this._editor.element.attr(e);t.attr(e,n||0).focus().find(v).first().focus(),n||0===n||t.removeAttr(e)},focusOverflowPopup:function(){var e="tabIndex",t=this.overflowPopup.element,n=this._editor.element.attr(e);t.closest(".k-animation-container").addClass("k-overflow-wrapper"),t.attr(e,n||0).find(v).first().focus(),n||0===n||t.removeAttr(e)},_appendShortcutSequence:function(e,t){if(!t.key)return e;var n=e+" (";return t.ctrl&&(n+="Ctrl + "),t.shift&&(n+="Shift + "),t.alt&&(n+="Alt + "),n+=t.key+")"},_nativeTools:["insertLineBreak","insertParagraph","redo","undo","autoLink"],tools:{},isCustomTool:function(e){return!(e in i.ui.Editor.defaultTools)},expandTools:function(t){var n,o,a,l,d=this._nativeTools,c=i.deepExtend({},i.ui.Editor.defaultTools),u={};for(o=0;o<t.length;o++)n=t[o],l=n.name,e.isPlainObject(n)?l&&c[l]?(u[l]=s({},c[l]),s(u[l].options,n)):(a=s({cssClass:"k-i-gear",type:"button",title:""},n),a.name||(a.name="custom"),a.cssClass="k-"+a.name,a.template||"button"!=a.type||(a.template=r.EditorUtils.buttonTemplate,a.title=a.title||a.tooltip),u[l]={options:a}):c[n]&&(u[n]=c[n]);for(o=0;o<d.length;o++)u[d[o]]||(u[d[o]]=c[d[o]]);return u},render:function(){function t(t){var n="";return t.getHtml?n=t.getHtml():(e.isFunction(t)||(t=i.template(t)),n=t(r)),i.trim(n)}function n(){h.children().length&&(y&&(h.data("position",k),k++),h.appendTo(_))}function o(t){t!==g?(h=e("<li class='k-tool-group' role='presentation' />"),h.data("overflow",e.inArray(t,x)===-1)):h=e("<li class='k-overflow-tools' />")}var r,a,s,d,c,u,h,p,f=this,m=f.tools,v=f._editor.element,_=f.element.empty(),b=f._editor.options.tools,w=i.support.browser,k=0,y=f.options.resizable&&f.options.resizable.toolbar,x=this.overflowFlaseTools;for(_.empty(),b.length&&(d=b[0].name||b[0]),o(d,x),p=0;p<b.length;p++)d=b[p].name||b[p],r=m[d]&&m[d].options,!r&&e.isPlainObject(d)&&(r=d),a=r&&r.template,"break"==d&&(n(),e("<li class='k-row-break' />").appendTo(f.element),o(d,x)),a&&(u=f.toolGroupFor(d),c==u&&d!=g||(n(),o(d,x),c=u),d==g&&(a.options.title=f.options.messages.overflowAnchor),a=t(a),s=e(a).appendTo(h),"custom"==u&&(n(),o(d,x)),r.exec&&s.hasClass("k-tool")&&s.click(l(r.exec,v[0])));n(),e(f.element).children(":has(> .k-tool)").not(".k-overflow-tools").addClass("k-button-group"),f.options.popup&&w.msie&&w.version<9&&f.window.wrapper.find("*").attr("unselectable","on"),f.updateGroups(),y&&f._initOverflowPopup(f.element.find(".k-overflow-anchor")),f.angular("compile",function(){return{elements:f.element}})},updateGroups:function(){e(this.element).children().not(".k-overflow-tools").each(function(){e(this).children().removeClass("k-group-start k-group-end").first().addClass("k-group-start").end().last().addClass("k-group-end").end()})},decorateFrom:function(t){this.items().filter(".k-decorated").each(function(){var n=e(this).data("kendoSelectBox");n&&n.decorate(t)})},destroy:function(){a.fn.destroy.call(this);var e,t=this.tools;for(e in t)t[e].destroy&&t[e].destroy();this.window&&this.window.destroy(),this._resizeHandler&&i.unbindResize(this._resizeHandler),this.overflowPopup&&this.overflowPopup.destroy()},_attachEvents:function(){var t=this,n=t.overflowPopup?t.overflowPopup.element:e([]);t.attachToolsEvents(t.element.add(n))},attachToolsEvents:function(t){var n=this,o="[role=button].k-tool",r=o+":not(.k-state-disabled)",a=o+".k-state-disabled",s=".k-dropdown",l=".k-colorpicker",u=[o,s,l].join(",");t.off(c).on("mouseenter"+c,r,function(){e(this).addClass("k-state-hover")}).on("mouseleave"+c,r,function(){e(this).removeClass("k-state-hover")}).on("mousedown"+c,u,function(e){e.preventDefault()}).on("keydown"+c,v,function(t){function o(e,t,n){var i=t.find(v),o=i.index(l)+e;return n&&(o=Math.max(0,Math.min(i.length-1,o))),i[o]}var r,a,s,l=this,c=n.options.resizable&&n.options.resizable.toolbar,u=i.support.isRtl(n.element)?-1:1,h=t.keyCode;h==d.RIGHT||h==d.LEFT?a=e(l).is(".k-dropdown")?e(l):o(h==d.RIGHT?1*u:-1*u,n.element,!0):!c||h!=d.UP&&h!=d.DOWN?h==d.HOME?(a=n.element.find(v)[0],t.preventDefault()):h==d.END?(r=n.element.find(v).filter(function(){return"hidden"!==e(this).css("visibility")}),a=r[r.length-1],t.preventDefault()):h==d.ESC?(n.overflowPopup&&n.overflowPopup.visible()&&n.overflowPopup.close(),a=n._editor):h!=d.TAB||t.ctrlKey||t.altKey||(s=c&&e(l.parentElement).hasClass("k-overflow-tool-group")?n.overflowPopup.element:n.element,t.shiftKey?a=o(-1,s):(a=o(1,s),a&&"hidden"!==e(a).closest(".k-overflow-tools").css("visibility")||(a=n._editor))):a=o(h==d.DOWN?1:-1,n.overflowPopup.element,!0),a&&(t.preventDefault(),a.focus()),h!==d.ENTER&&h!==d.SPACEBAR||!e(l).is("button")&&!e(l).is("a")||e(l).attr("href")||n._executeToolCommand(l,t)}).on("click"+c,r,function(e){n._executeToolCommand(this,e)}).on("click"+c,a,function(e){e.preventDefault()})},_executeToolCommand:function(t,n){var i=this,o=e(t);n.preventDefault(),n.stopPropagation(),o.removeClass("k-state-hover"),o.is("[data-popup]")||i._editor.exec(i._toolName(t))},_toolName:function(t){var n,o,r;if(t)return n=t.className,/k-tool\b/i.test(n)&&(n=t.firstChild.className),o=e.grep(n.split(" "),function(e){return!/^k-(widget|tool|tool-icon|icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(e)}),o[0]?(r=o[0],_[r]&&(r=_[r]),r.indexOf("k-i-")>=0?i.toCamelCase(r.substring(r.indexOf("k-i-")+4)):r.substring(r.lastIndexOf("-")+1)):"custom"},refreshTools:function(){var t=this,n=t._editor,i=n.getRange(),o=r.RangeUtils.textNodes(i),a=n.options.immutables,s=t._immutablesContext(i);o=r.Dom.filterBy(o,r.Dom.htmlIndentSpace,!0),o.length||(o=[i.startContainer]),t.items().each(function(){var n,i=t.tools[t._toolName(this)];i&&(n=e(this),i.update&&i.update(n,o),a&&t._updateImmutablesState(i,n,s))}),this.update()},_immutablesContext:function(e){if(this._editor.options.immutables)return e.collapsed?r.Immutables.immutablesContext(e):0===r.RangeUtils.editableTextNodes(e).length},_updateImmutablesState:function(n,i,o){var a,s,l,d,c,u=n.name,h=i,p=n.options.trackImmutables;if(p===t&&(p=e.inArray(u,r.Immutables.toolsToBeUpdated)>-1),p){if(a=o?"none":"",!i.is(".k-tool")){s=i.data();for(l in s)if(l.match(/^kendo[A-Z][a-zA-Z]*/)){d=s[l],h=d.wrapper;break}}h.css("display",a),c=h.closest("li"),0===c.children(":visible").length&&c.css("display",a)}},update:function(){this.updateGroups()},_resize:function(e){var t=e.width,n=this.options.resizable&&this.options.resizable.toolbar,i=this.overflowPopup,o=this.options.editor.element,r=this.window;this.refreshTools(),n&&(r&&(r.wrapper.width(this._getWindowWidth()),r._moved||r.wrapper.css({left:Math.max(0,parseInt(o.offset().left,10))})),i.visible()&&i.close(!0),this._refreshWidths(),this._shrink(t),this._stretch(t),this._toggleOverflowStyles(this.element,!1),this._toggleOverflowStyles(this.overflowPopup.element,!0),this.element.children("li.k-overflow-tools").css("visibility",i.element.is(":empty")?"hidden":"visible"))},_refreshWidths:function(){this.element.children("li").each(function(t,n){var i=e(n);i.data("outerWidth",f(i,!0))})},_shrink:function(e){var t,n,i;if(e<this._groupsWidth())for(n=this._visibleGroups().filter(":not(.k-overflow-tools)"),i=n.length-1;i>=0&&(t=n.eq(i),!(e>this._groupsWidth()));i--)this._hideGroup(t)},_stretch:function(e){var t,n,i;if(e>this._groupsWidth())for(n=this._hiddenGroups(),i=0;i<n.length&&(t=n.eq(i),!(e<this._groupsWidth())&&this._showGroup(t,e));i++);},_hiddenGroups:function(){var t=this.overflowPopup,n=this.element.children("li.k-tool-group").filter(":hidden");return n=n.add(t.element.children("li")),n.sort(function(t,n){return e(t).data("position")>e(n).data("position")?1:-1}),n},_visibleGroups:function(){return this.element.children("li.k-tool-group, li.k-overflow-tools").filter(":visible")},_groupsWidth:function(){var t=0;return this._visibleGroups().each(function(){t+=e(this).data("outerWidth")}),Math.ceil(t)},_hideGroup:function(e){if(e.data("overflow")){var t=this.overflowPopup;e.detach().prependTo(t.element).addClass("k-overflow-tool-group")}else e.addClass("k-hidden")},_showGroup:function(t,n){var i,o,r;return!!t.hasClass("k-state-disabled")||(t.hasClass("k-overflow-tool-group")?r=t.data("outerWidth"):(t.removeClass("k-hidden"),r=f(t,!0),t.addClass("k-hidden")),!!(t.length&&n>this._groupsWidth()+r)&&(t.hasClass("k-overflow-tool-group")?(i=t.data("position"),0===i?t.detach().prependTo(this.element):(o=this.element.children().filter(function(t,n){return e(n).data("position")===i-1}),t.detach().insertAfter(o)),t.removeClass("k-overflow-tool-group")):t.removeClass("k-hidden"),!0))}}),e.extend(r,{Toolbar:n})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/viewhtml.min",["editor/command.min"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=n.ui.editor,r=o.EditorUtils,a=o.Command,s=o.Tool,l=o.ToolTemplate,d=o.Dom,c=a.extend({init:function(e){var t=this;t.options=e,a.fn.init.call(t,e),t.attributes=null,t.async=!0},exec:function(){function i(e){h.deserialization.immutables=u.immutables,u.value(f.find(m).val()),h.deserialization.immutables=t,o(e),l.change&&l.change(),u.trigger("change")}function o(e){e.preventDefault(),f.data("kendoWindow").destroy(),u.immutables&&(u.immutables.serializedImmutables={}),u.focus()}var a,s,l=this,u=l.editor,h=u.options,p=u.options.messages,f=e(n.template(c.template)(p)).appendTo(document.body),m=".k-editor-textarea";h.serialization.immutables=u.immutables,s=d.getAllComments(u.body),a=r.cacheComments(u.value(),s),a=c.indent(a),a=r.retrieveComments(a,s),h.serialization.immutables=t,this.createDialog(f,{title:p.viewHtml,width:600,height:400,resizable:!0,close:o,visible:!1}).find(m).val(a).end().find(".k-dialog-update").click(i).end().find(".k-dialog-close").click(o).end().data("kendoWindow").center().open(),f.find(m).focus()}});i(c,{template:"<div class='k-editor-dialog k-popup-edit-form k-viewhtml-dialog'><textarea class='k-textarea k-editor-textarea'></textarea><div class='k-edit-buttons k-state-default'><button class='k-dialog-update k-button k-primary'>#: dialogUpdate #</button><button class='k-dialog-close k-button'>#: dialogCancel #</button></div></div>",indent:function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}}),n.ui.editor.ViewHtmlCommand=c,o.EditorUtils.registerTool("viewHtml",new s({command:c,template:new l({template:r.buttonTemplate,title:"View HTML"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/format.min",["editor/command.min"],e)}(function(){!function(e){var t=window.kendo,n=e.extend,i=t.ui.editor,o=i.Tool,r=i.Command,a=i.EditorUtils,s=r.extend({init:function(e){e.formatter=e.formatter();var t=e.formatter.finder;t&&a.formatByName("immutable",t.format)&&t._initOptions({immutables:e.immutables}),r.fn.init.call(this,e)}}),l=o.extend({init:function(e){o.fn.init.call(this,e)},command:function(e){var t=this;return new s(n(e,{formatter:t.options.formatter}))},update:function(e,t){var n=this.options.finder.isFormatted(t);e.toggleClass("k-state-selected",n),e.attr("aria-pressed",n)}});e.extend(i,{FormatCommand:s,FormatTool:l})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/inlineformat.min",["editor/plugins/format.min"],e)}(function(){!function(e){var t=window.kendo,n=t.Class,i=t.ui.editor,o=t.ui.Editor.fn.options.formats,r=i.EditorUtils,a=i.Tool,s=i.ToolTemplate,l=i.FormatTool,d=i.Dom,c=i.RangeUtils,u=e.extend,h=i.EditorUtils.registerTool,p=i.EditorUtils.registerFormat,f="mousedown.kendoEditor",m="keydown.kendoEditor",g="k-marker",v=n.extend({init:function(e){this.format=e},numberOfSiblings:function(e){var t,n=0,i=0,o=0,r=e.parentNode;for(t=r.firstChild;t;t=t.nextSibling)t!=e&&(t.className==g?o++:3==t.nodeType?n++:i++);return o>1&&r.firstChild.className==g&&r.lastChild.className==g?0:i+n},findSuitable:function(e,t){var n,i;if(!t&&this.numberOfSiblings(e)>0)return null;for(n=e.parentNode,i=this.format[0].tags;!d.ofType(n,i);){if(this.numberOfSiblings(n)>0)return null;n=n.parentNode}return n},findFormat:function(e){var t,n,i,o,r,a=this.format,s=d.attrEquals;for(t=0,n=a.length;t<n;t++){if(i=e,o=a[t].tags,r=a[t].attr,i&&d.ofType(i,o)&&s(i,r))return i;for(;i;)if(i=d.parentOfType(i,o),i&&s(i,r))return i}return null},isFormatted:function(e){var t,n;for(t=0,n=e.length;t<n;t++)if(this.findFormat(e[t]))return!0;return!1}}),_=n.extend({init:function(e,t){this.finder=new v(e),this.attributes=u({},e[0].attr,t),this.tag=e[0].tags[0]},wrap:function(e){return d.wrap(e,d.create(e.ownerDocument,this.tag,this.attributes))},activate:function(e,t){this.finder.isFormatted(t)?(this.split(e),this.remove(t)):this.apply(t)},toggle:function(e){var t=this.immutables()?c.editableTextNodes:c.textNodes,n=t(e);n.length>0&&this.activate(e,n)},immutables:function(){return this.editor&&this.editor.options.immutables},apply:function(e){var t,n,i,o,r=[];if(e.length>1)for(t=0,n=e.length;t<n;t++)i=e[t],o=this.format(i,!0),r.push(o);else i=e[0],o=this.format(i,!1);this.consolidate(r)},format:function(e,t){var n=this.finder.findSuitable(e),i=this.attributes,o=i?i.style||{}:{};if(n)d.is(n,"font")&&(o.color&&n.removeAttribute("color"),o.fontName&&n.removeAttribute("face"),o.fontSize&&n.removeAttribute("size")),d.attr(n,i);else{for(;!d.isBlock(e.parentNode)&&1==e.parentNode.childNodes.length&&"true"!==e.parentNode.contentEditable&&t;)e=e.parentNode;n=this.wrap(e)}return n},remove:function(e){var t,n,i;for(t=0,n=e.length;t<n;t++)i=this.finder.findFormat(e[t]),i&&(this.attributes&&this.attributes.style?(d.unstyle(i,this.attributes.style),i.style.cssText||i.attributes["class"]||d.unwrap(i)):d.unwrap(i))},split:function(e){var t,n,i=c.textNodes(e),o=i.length;if(o>0)for(t=0;t<o;t++)n=this.finder.findFormat(i[t]),n&&c.split(e,n,!0)},consolidate:function(e){for(var t,n;e.length>1;)if(t=e.pop(),n=e[e.length-1],t.previousSibling&&t.previousSibling.className==g&&n.appendChild(t.previousSibling),t.tagName==n.tagName&&t.previousSibling==n&&t.style.cssText==n.style.cssText&&t.className===n.className){for(;t.firstChild;)n.appendChild(t.firstChild);d.remove(t)}}}),b=v.extend({init:function(e,t){this.format=e,this.greedyProperty=t,v.fn.init.call(this,e)},getInlineCssValue:function(e){var n,i,o,r,a,s,l,c,u,h,p,f,m=e.attributes,g=t.trim;if(m)for(n=0,i=m.length;n<i;n++)if(o=m[n],r=o.nodeName,a=o.nodeValue,o.specified&&"style"==r)for(s=g(a||e.style.cssText).split(";"),c=0,u=s.length;c<u;c++)if(l=s[c],l.length){if(h=l.split(":"),p=g(h[0].toLowerCase()),f=g(h[1]),p!=this.greedyProperty)continue;return p.indexOf("color")>=0?d.toHex(f):f}},getFormatInner:function(t){var n,i,o,r=e(d.isDataNode(t)?t.parentNode:t),a=r.parentsUntil("[contentEditable]").addBack().toArray().reverse();for(n=0,i=a.length;n<i;n++)if(o="className"==this.greedyProperty?a[n].className:this.getInlineCssValue(a[n]))return o;return"inherit"},getFormat:function(e){var t,n,i=this.getFormatInner(e[0]);for(t=1,n=e.length;t<n;t++)if(i!=this.getFormatInner(e[t]))return"";return i},isFormatted:function(e){return""!==this.getFormat(e)}}),w=_.extend({init:function(e,n,i){_.fn.init.call(this,e,n),this.values=n,this.finder=new b(e,i),i&&(this.greedyProperty=t.toCamelCase(i))},activate:function(e,t){var n=this.greedyProperty,i="apply";this.split(e),n&&"inherit"==this.values.style[n]&&(i="remove"),this[i](t)}}),k=l.extend({init:function(e){l.fn.init.call(this,u(e,{finder:new v(e.format),formatter:function(){return new _(e.format)}}))}}),y=a.extend({update:function(e,t){var n=e.data(this.type);n.close(),n.value(this.finder.getFormat(t))}}),x=y.extend({init:function(e){a.fn.init.call(this,e),this.type=t.support.browser.msie||t.support.touch?"kendoDropDownList":"kendoComboBox",this.format=[{tags:["span","font"]}],this.finder=new b(this.format,e.cssAttr)},command:function(e){var t=this.options,n=this.format,o={};return new i.FormatCommand(u(e,{formatter:function(){return o[t.domAttr]=e.value,new w(n,{style:o},t.cssAttr)}}))},initialize:function(e,n){var i,o,r,s=n.editor,l=this.options,d=l.name,c=[];l.defaultValue&&(c=[{text:s.options.messages[l.defaultValue[0].text],value:l.defaultValue[0].value}]),i=c.concat(l.items?l.items:s.options[d]||[]),e.attr({title:n.title}),e[this.type]({dataTextField:"text",dataValueField:"value",dataSource:i,change:function(){s._range=o,a.exec(s,d,this.value())},close:function(){setTimeout(function(){s._deleteSavedRange()},0)},highlightFirst:!1}),e.closest(".k-widget").removeClass("k-"+d).find("*").addBack().attr("unselectable","on"),r=e.data(this.type),r.value("inherit"),r.wrapper.on(f,".k-select,.k-input",function(){var e=s.getRange();o=s._containsRange(e)?e:o}).on(m,function(e){e.keyCode===t.keys.ENTER&&(s._deleteSavedRange(),e.preventDefault())})}}),C=a.extend({init:function(e){a.fn.init.call(this,e),this.format=[{tags:["span","font"]}],this.finder=new b(this.format,e.cssAttr)},options:{palette:"websafe"},update:function(){this._widget.close()},command:function(e){var t=this.options,n=this.format,o={};return new i.FormatCommand(u(e,{formatter:function(){return o[t.domAttr]=e.value,new w(n,{style:o},t.cssAttr)}}))},initialize:function(n,i){var o=this,s=i.editor,l=this.name,d=u({},C.fn.options,this.options),c=d.palette,h=d.columns;n=this._widget=new t.ui.ColorPicker(n,{toolIcon:"k-icon k-i-"+r.getToolCssClass(d.name),palette:c,columns:h,change:function(){var e=n.value();t.support.browser.msie&&o.storedRange&&o._inputFocused&&s.selectRange(o.storedRange),e&&a.exec(s,l,e),delete o.storedRange,delete o._inputFocused,s.focus()},open:function(t){var n=t.sender;o.storedRange=s.getRange(),n._popup.element.on(f,function(t){e(t.target).is("input.k-color-value")||t.preventDefault()}),n._popup.element.is("[unselectable='on']")||n._popup.element.attr({unselectable:"on"}).find("*:not(input)").attr("unselectable","on").end().find("input").on("focus",function(){o._inputFocused=!0})},close:function(e){e.sender._popup.element.off(f),t.support.browser.msie&&o.storedRange&&o._inputFocused&&s.selectRange(o.storedRange)},activate:function(e){e.preventDefault(),"rgba(255, 255, 255, 0)"!==e.sender._value.toCssRgba()&&n.trigger("change")}}),n.wrapper.attr({title:i.title,unselectable:"on"}).find("*:not(input)").attr("unselectable","on"),n.value("transparent")}});u(i,{InlineFormatFinder:v,InlineFormatter:_,DelayedExecutionTool:y,GreedyInlineFormatFinder:b,GreedyInlineFormatter:w,InlineFormatTool:k,FontTool:x,ColorTool:C}),p("bold",[{tags:["strong","b"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),h("bold",new k({key:"B",ctrl:!0,format:o.bold,template:new s({template:r.buttonTemplate,title:"Bold"})})),p("italic",[{tags:["em","i"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),h("italic",new k({key:"I",ctrl:!0,format:o.italic,template:new s({template:r.buttonTemplate,title:"Italic"})})),p("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}},{tags:["u"]}]),h("underline",new k({key:"U",ctrl:!0,format:o.underline,template:new s({template:r.buttonTemplate,title:"Underline"})})),p("strikethrough",[{tags:["del","strike"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),h("strikethrough",new k({format:o.strikethrough,template:new s({template:r.buttonTemplate,title:"Strikethrough"})})),p("superscript",[{tags:["sup"]}]),h("superscript",new k({format:o.superscript,template:new s({template:r.buttonTemplate,title:"Superscript"})})),p("subscript",[{tags:["sub"]}]),h("subscript",new k({format:o.subscript,template:new s({template:r.buttonTemplate,title:"Subscript"})})),h("foreColor",new C({cssAttr:"color",domAttr:"color",name:"foreColor",template:new s({template:r.colorPickerTemplate,title:"Color"})})),h("backColor",new C({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new s({template:r.colorPickerTemplate,title:"Background Color"})})),h("fontName",new x({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName",defaultValue:[{text:"fontNameInherit",value:"inherit"}],template:new s({template:r.comboBoxTemplate,title:"Font Name"})})),h("fontSize",new x({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize",defaultValue:[{text:"fontSizeInherit",value:"inherit"}],template:new s({template:r.comboBoxTemplate,title:"Font Size"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/link.min",["editor/plugins/inlineformat.min"],e)}(function(){!function(e,t){function n(e,t){for(var n=e.length;n--&&!t.test(e[n]););return n}function i(e,t){var n=t.exec(e);return n?n.index:-1}var o=window.kendo,r=o.Class,a=e.extend,s=e.proxy,l=o.ui.editor,d=l.Dom,c=l.RangeUtils,u=l.EditorUtils,h=l.Command,p=l.Tool,f=l.ToolTemplate,m=l.InlineFormatter,g=l.InlineFormatFinder,v=c.textNodes,_=c.editableTextNodes,b=l.EditorUtils.registerTool,w=o.keys,k="http://",y=/^\w*:\/\//,x=/[\w\/\$\-_\*\?]/i,C=r.extend({findSuitable:function(e){return d.parentOfType(e,["a"])}}),S=r.extend({init:function(){this.finder=new C},apply:function(e,t){var n,i,o,r,a,s,l,u=this.immutables?_(e):v(e);if(t.innerText){for(i=c.documentFromRange(e),n=c.getMarkers(e),e.deleteContents(),r=d.create(i,"a",t),e.insertNode(r),a=r.parentNode,"a"==d.name(a)&&d.insertAfter(r,a),d.emptyNode(a)&&d.remove(a),s=r,l=0;l<n.length;l++)d.insertAfter(n[l],s),s=n[l];n.length&&(d.insertBefore(i.createTextNode("\ufeff"),n[1]||n[0]),d.insertAfter(i.createTextNode("\ufeff"),n[1]||n[0]),e.setStartBefore(n[0]),e.setEndAfter(n[n.length-1]))}else o=new m([{tags:["a"]}],t),o.finder=this.finder,o.apply(u)}}),T=h.extend({init:function(e){var t=this;e.formatter={toggle:function(e){var n=t.immutables()?_(e):v(e);new m([{tags:["a"]}]).remove(n)}},this.options=e,h.fn.init.call(this,e)}}),D=h.extend({init:function(e){var t;this.options=e,h.fn.init.call(this,e),this.formatter=new S,e.url?this.exec=function(){this.formatter.immutables=t&&t.immutables(),this.formatter.apply(e.range,{href:e.url,innerText:e.text||e.url,target:e.target})}:(this.attributes=null,this.async=!0)},_dialogTemplate:function(){return o.template("<div class=\"k-editor-dialog k-popup-edit-form\"><div class=\"k-edit-form-container\"><div class='k-edit-label'><label for='k-editor-link-url'>#: messages.linkWebAddress #</label></div><div class='k-edit-field'><input type='text' class='k-textbox' id='k-editor-link-url'></div><div class='k-edit-label k-editor-link-text-row'><label for='k-editor-link-text'>#: messages.linkText #</label></div><div class='k-edit-field k-editor-link-text-row'><input type='text' class='k-textbox' id='k-editor-link-text'></div><div class='k-edit-label'><label for='k-editor-link-title'>#: messages.linkToolTip #</label></div><div class='k-edit-field'><input type='text' class='k-textbox' id='k-editor-link-title'></div><div class='k-edit-label'></div><div class='k-edit-field'><input type='checkbox' class='k-checkbox' id='k-editor-link-target'><label for='k-editor-link-target' class='k-checkbox-label'>#: messages.linkOpenInNewWindow #</label></div><div class='k-edit-buttons k-state-default'><button class=\"k-dialog-insert k-button k-primary\">#: messages.dialogInsert #</button><button class=\"k-dialog-close k-button\">#: messages.dialogCancel #</button></div></div></div>")({messages:this.editor.options.messages})},exec:function(){var t,n,i,o,r=this.editor.options.messages;this._initialText="",this._range=this.lockRange(!0),this.formatter.immutables=this.immutables(),t=v(this._range),n=t.length?this.formatter.finder.findSuitable(t[0]):null,i=t.length&&"img"==d.name(t[0]),o=this.createDialog(this._dialogTemplate(),{title:r.createLink,close:s(this._close,this),visible:!1}),n&&(this._range.selectNodeContents(n),t=v(this._range)),this._initialText=this.linkText(t),o.find(".k-dialog-insert").click(s(this._apply,this)).end().find(".k-dialog-close").click(s(this._close,this)).end().find(".k-edit-field input").keydown(s(this._keydown,this)).end().find("#k-editor-link-url").val(this.linkUrl(n)).end().find("#k-editor-link-text").val(this._initialText).end().find("#k-editor-link-title").val(n?n.title:"").end().find("#k-editor-link-target").attr("checked",!!n&&"_blank"==n.target).end().find(".k-editor-link-text-row").toggle(!i),this._dialog=o.data("kendoWindow").center().open(),e("#k-editor-link-url",o).focus().select()},_keydown:function(e){var t=o.keys;e.keyCode==t.ENTER?this._apply(e):e.keyCode==t.ESC&&this._close(e)},_apply:function(t){var n,i,r,a=this._dialog.element,s=e("#k-editor-link-url",a).val(),l=e("#k-editor-link-text",a);s&&s!=k&&(s.indexOf("@")>0&&!/^(\w+:)|(\/\/)/i.test(s)&&(s="mailto:"+s),this.attributes={href:s},n=e("#k-editor-link-title",a).val(),n&&(this.attributes.title=n),l.is(":visible")&&(i=o.trim(l.val()),i||this._initialText?i&&i!==this._initialText&&(this.attributes.innerText=d.stripBom(i)):this.attributes.innerText=s),r=e("#k-editor-link-target",a).is(":checked"),this.attributes.target=r?"_blank":null,this.formatter.apply(this._range,this.attributes)),this._close(t),this.change&&this.change()},_close:function(e){e.preventDefault(),this._dialog.destroy(),d.windowFromDocument(c.documentFromRange(this._range)).focus(),this.releaseRange(this._range)},linkUrl:function(e){return e?e.getAttribute("href",2):k},linkText:function(e){var t,n="";for(t=0;t<e.length;t++)n+=e[t].nodeValue;return d.stripBom(n||"")},redo:function(){var e=this.lockRange(!0);this.formatter.apply(e,this.attributes),this.releaseRange(e)}}),A=h.extend({init:function(e){h.fn.init.call(this,e),this.formatter=new S},exec:function(){var e,t,n,i=this.detectLink();i&&(e=this.getRange(),t=new o.ui.editor.Marker,n=e.cloneRange(),n.setStart(i.start.node,i.start.offset),n.setEnd(i.end.node,i.end.offset),e=this.lockRange(),t.add(n),this.formatter.apply(n,{href:this._ensureWebProtocol(i.text)}),t.remove(n),this.releaseRange(e))},detectLink:function(){var e,t,n=this.getRange(),i=n.startContainer,o=n.startOffset,r=i.previousSibling;return!r&&(d.isBom(i)&&!i.nextSibling||!o&&d.isDataNode(i))&&(i=i.parentNode,o=0),e=new F({node:i,offset:o,cancelAtNode:function(e){return e&&"a"===d.name(e)}}),t=new I(e),t.detectLink()},changesContent:function(){return!!this.detectLink()},_ensureWebProtocol:function(e){var t=this._hasProtocolPrefix(e);return t?e:this._prefixWithWebProtocol(e)},_hasProtocolPrefix:function(e){return y.test(e)},_prefixWithWebProtocol:function(e){return k+e}}),E=p.extend({init:function(t){this.options=t,this.finder=new g([{tags:["a"]}]),p.fn.init.call(this,e.extend(t,{command:T}))},initialize:function(e,t){p.fn.initialize.call(this,e,t),e.addClass("k-state-disabled")},update:function(e,t){e.toggleClass("k-state-disabled",!this.finder.isFormatted(t)).removeClass("k-state-hover")}}),I=r.extend({init:function(e){this.traverser=e,this.start=M(),this.end=M(),this.text=""},detectLink:function(){var t,n,i,o,r=this.traverser.node,a=this.traverser.offset;if(d.isDataNode(r)){if(t=r.data.substring(0,a),/\s{2}$/.test(d.stripBom(t)))return}else 0===a&&(n=d.closestEditableOfType(r,d.blockElements),n&&n.previousSibling&&this.traverser.init({node:n.previousSibling}));return this.traverser.traverse(e.proxy(this._detectEnd,this)),this.end.blank()||(this.traverser=this.traverser.clone(this.end),this.traverser.traverse(e.proxy(this._detectStart,this)),this._isLinkDetected()||(i=this.traverser.extendOptions(this.start),o=new P(i),o.traverse(e.proxy(this._skipStartPuntuation,this)),this._isLinkDetected()||(this.start=M()))),this.start.blank()?null:{start:this.start,end:this.end,text:this.text}},_isLinkDetected:function(){return y.test(this.text)||/^w{3}\./i.test(this.text)},_detectEnd:function(e,t){var i=n(e,x);if(i>-1)return this.end.node=t,this.end.offset=i+1,!1},_detectStart:function(e,t){var i=n(e,/\s/),o=i+1;if(this.text=e.substring(o)+this.text,this.start.node=t,this.start.offset=o,i>-1)return!1},_skipStartPuntuation:function(e,t,n){var o=i(e,/\w/),r=o;if(o===-1&&(r=e.length),this.text=this.text.substring(r),this.start.node=t,this.start.offset=r+(0|n),o>-1)return!1}}),M=function(){return{node:null,offset:null,blank:function(){return null===this.node&&null===this.offset}}},R=r.extend({init:function(n){this.node=n.node,this.offset=n.offset===t?d.isDataNode(this.node)&&this.node.length||0:n.offset,this.cancelAtNode=n.cancelAtNode||this.cancelAtNode||e.noop},traverse:function(e){e&&(this.cancel=!1,this._traverse(e,this.node,this.offset))},_traverse:function(e,n,i){var o,r,a,s;if(n&&!this.cancel){if(3!==n.nodeType)return r=this.edgeNode(n),this.cancel=this.cancel||this.cancelAtNode(r),this._traverse(e,r);if(o=n.data,i!==t&&(o=this.subText(o,i)),this.cancel=e(o,n,i)===!1,a=this.next(n),!a)for(s=n.parentNode;!a&&d.isInline(s);)a=this.next(s),s=s.parentNode;this.cancel=this.cancel||this.cancelAtNode(a),this._traverse(e,a)}},extendOptions:function(t){return e.extend({node:this.node,offset:this.offset,cancelAtNode:this.cancelAtNode},t||{})},edgeNode:function(e){},next:function(e){},subText:function(e,t){}}),F=R.extend({subText:function(e,t){return e.substring(0,t)},next:function(e){return e.previousSibling},edgeNode:function(e){return e.lastChild},clone:function(e){var t=this.extendOptions(e);return new F(t)}}),P=R.extend({subText:function(e,t){return e.substring(t)},next:function(e){return e.nextSibling},edgeNode:function(e){return e.firstChild},clone:function(e){var t=this.extendOptions(e);return new P(t)}});a(o.ui.editor,{LinkFormatFinder:C,LinkFormatter:S,UnlinkCommand:T,LinkCommand:D,AutoLinkCommand:A,UnlinkTool:E,DomTextLinkDetection:I,LeftDomTextTraverser:F,RightDomTextTraverser:P}),b("createLink",new p({key:"K",ctrl:!0,command:D,template:new f({template:u.buttonTemplate,title:"Create Link"})})),b("unlink",new E({key:"K",ctrl:!0,shift:!0,template:new f({template:u.buttonTemplate,title:"Remove Link"})})),b("autoLink",new p({key:[w.ENTER,w.SPACEBAR],keyPressCommand:!0,command:A
}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/formatblock.min",["editor/plugins/format.min"],e)}(function(){!function(e){var t,n=window.kendo,i=n.Class,o=e.extend,r=n.ui.editor,a=n.ui.Editor.fn.options.formats,s=r.Dom,l=r.ToolTemplate,d=r.FormatTool,c=r.EditorUtils,u=c.registerTool,h=c.registerFormat,p=r.RangeUtils,f=i.extend({init:function(e){this.format=e},contains:function(e,t){var n,i,o;for(n=0,i=t.length;n<i;n++)if(o=t[n],!o||!s.isAncestorOrSelf(e,o))return!1;return!0},findSuitable:function(t){var n,i,o,r,a=this.format,l=[];for(n=0,i=t.length;n<i;n++){for(r=a.length-1;r>=0&&!(o=s.ofType(t[n],a[r].tags)?t[n]:s.closestEditableOfType(t[n],a[r].tags));r--);if(!o||"true"===o.contentEditable)return[];e.inArray(o,l)<0&&l.push(o)}for(this._resolveListsItems(l),n=0,i=l.length;n<i;n++)if(this.contains(l[n],l))return[l[n]];return l},_resolveListsItems:function(e){var t,n,i;for(t=0;t<e.length;t++)n=e[t],i=s.is(n,"li")?n:s.wrapper(n),i=i&&s.list(i)?i.children[0]:i,s.is(i,"li")&&(n=e[t]=i)},findFormat:function(e){var t,n,i,o,a,l,d=this.format,c=s.editableParent(e),u=this.options&&this.options.immutables,h=r.Immutables;for(t=0,n=d.length;t<n;t++){if(i=e,o=d[t].tags,a=d[t].attr,u&&o&&"immutable"==o[0]&&(l=h.immutableParent(i),l&&s.attrEquals(l,a)))return i;for(;i&&s.isAncestorOf(c,i);){if(s.ofType(i,o)&&s.attrEquals(i,a))return i;i=i.parentNode}}return null},getFormat:function(e){var t,n,i=this,o=function(e){return i.findFormat(s.isDataNode(e)?e.parentNode:e)},r=o(e[0]);if(!r)return"";for(t=1,n=e.length;t<n;t++)if(r!=o(e[t]))return"";return r.nodeName.toLowerCase()},isFormatted:function(e){for(var t=0,n=e.length;t<n;t++)if(!this.findFormat(e[t]))return!1;return!0}}),m=i.extend({init:function(e,t){this.format=e,this.values=t,this.finder=new f(e)},wrap:function(e,t,n){var i,o,r,a,l,d=1==n.length?s.blockParentOrBody(n[0]):s.commonAncestor.apply(null,n);for(s.isInline(d)&&(d=s.blockParentOrBody(d)),i=s.significantChildNodes(d),o=s.findNodeIndex(i[0]),r=s.create(d.ownerDocument,e,t),a=0;a<i.length;a++)l=i[a],s.isBlock(l)?(s.attr(l,t),r.childNodes.length&&(s.insertBefore(r,l),r=r.cloneNode(!1)),o=s.findNodeIndex(l)+1):r.appendChild(l);r.firstChild&&s.insertAt(d,r,o)},apply:function(t){function n(e){return o({},e&&e.attr,f)}var i,r,a,l,d,u,h,p,f=this.values;if(this._handleImmutables(t,!0),r=s.filter("img",t),a=c.formatByName("img",this.format),l=n(a),e.each(r,function(){s.attr(this,l)}),r.length!=t.length)if(d=s.filter("img",t,!0),u=this.finder.findSuitable(d),u.length)for(h=0,p=u.length;h<p;h++)i=c.formatByName(s.name(u[h]),this.format),s.attr(u[h],n(i));else i=this.format[0],this.wrap(i.tags[0],n(i),d)},_handleImmutables:function(e,t){var n,i,o,a,l;if(this.immutables()&&(n=c.formatByName("immutable",this.format)))for(i=r.Immutables,o=e.length-1,a=o;a>=0;a--)l=i.immutableParent(e[a]),l&&(l!==e[a+1]&&(t?s.attr(l,n.attr):s.unstyle(l,n.attr.style)),e.splice(a,1))},immutables:function(){return this.editor&&this.editor.options.immutables},remove:function(e){var t,n,i,o,r;for(this._handleImmutables(e,!1),t=0,n=e.length;t<n;t++)i=this.finder.findFormat(e[t]),i&&(r=s.name(i),o=c.formatByName(r,this.format),o.attr.style&&s.unstyle(i,o.attr.style),o.attr.className&&s.removeClass(i,o.attr.className))},toggle:function(e){var t=this,n=s.filterBy(p.nodes(e),s.htmlIndentSpace,!0);t.finder.isFormatted(n)?t.remove(n):t.apply(n)}}),g=i.extend({init:function(e,t){var n=this;n.format=e,n.values=t,n.finder=new f(e)},apply:function(e){var t,n,i,o,a,l,d,c,u,h,p=this.format,f=s.blockParents(e),g=p[0].tags[0];if(f.length)for(t=0,n=f.length;t<n;t++)c=f[t],u=this.immutables()&&r.Immutables.immutableParent(c),u||(d=s.name(c),"li"==d?(i=c.parentNode,o=new r.ListFormatter(i.nodeName.toLowerCase(),g),a=this.editor.createRange(),a.selectNode(f[t]),o.toggle(a)):g&&("td"==d||c.attributes.contentEditable)?new m(p,this.values).apply(c.childNodes):(l=s.changeTag(c,g),s.attr(l,p[0].attr)));else h=new m(p,this.values),h.editor=this.editor,h.apply(e)},toggle:function(e){var t=p.textNodes(e);t.length||(e.selectNodeContents(e.commonAncestorContainer),t=p.textNodes(e),t.length||(t=s.significantChildNodes(e.commonAncestorContainer))),this.apply(t)},immutables:function(){return this.editor&&this.editor.options.immutables}}),v=d.extend({init:function(e){d.fn.init.call(this,o(e,{finder:new f(e.format),formatter:function(){return new m(e.format)}}))}});o(r,{BlockFormatFinder:f,BlockFormatter:m,GreedyBlockFormatter:g,BlockFormatTool:v}),t=["ul","ol","li"],h("justifyLeft",[{tags:s.nonListBlockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left",display:"",marginLeft:"",marginRight:""}}},{tags:["immutable"],attr:{style:{"float":"left",display:"",marginLeft:"",marginRight:""}}},{tags:t,attr:{style:{textAlign:"left",listStylePosition:""}}}]),u("justifyLeft",new v({format:a.justifyLeft,template:new l({template:c.buttonTemplate,title:"Justify Left"})})),h("justifyCenter",[{tags:s.nonListBlockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto","float":""}}},{tags:["immutable"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto","float":""}}},{tags:t,attr:{style:{textAlign:"center",listStylePosition:"inside"}}}]),u("justifyCenter",new v({format:a.justifyCenter,template:new l({template:c.buttonTemplate,title:"Justify Center"})})),h("justifyRight",[{tags:s.nonListBlockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right",display:"",marginLeft:"",marginRight:""}}},{tags:["immutable"],attr:{style:{"float":"right",display:"",marginLeft:"",marginRight:""}}},{tags:t,attr:{style:{textAlign:"right",listStylePosition:"inside"}}}]),u("justifyRight",new v({format:a.justifyRight,template:new l({template:c.buttonTemplate,title:"Justify Right"})})),h("justifyFull",[{tags:s.nonListBlockElements,attr:{style:{textAlign:"justify"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto","float":""}}},{tags:["immutable"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto","float":""}}},{tags:t,attr:{style:{textAlign:"justify",listStylePosition:""}}}]),u("justifyFull",new v({format:a.justifyFull,template:new l({template:c.buttonTemplate,title:"Justify Full"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/lists.min",["editor/plugins/formatblock.min"],e)}(function(){!function(e){var t=window.kendo,n=t.Class,i=e.extend,o=t.ui.editor,r=o.Dom,a=o.RangeUtils,s=o.EditorUtils,l=o.Command,d=o.ToolTemplate,c=o.FormatTool,u=o.BlockFormatFinder,h=a.textNodes,p=o.EditorUtils.registerTool,f=u.extend({init:function(e){this.tag=e;var t=this.tags=["ul"==e?"ol":"ul",e];u.fn.init.call(this,[{tags:t}])},isFormatted:function(e){var t,n,i=[];for(n=0;n<e.length;n++)t=this.findFormat(e[n]),t&&r.name(t)==this.tag&&i.push(t);if(i.length<1)return!1;if(i.length!=e.length)return!1;for(n=0;n<i.length&&i[n].parentNode==t.parentNode;n++)if(i[n]!=t)return!1;return!0},findSuitable:function(e){var t=this.findFormat(e[0]);return t&&r.name(t)==this.tag?t:null}}),m=n.extend({init:function(e,t){var n=this;n.finder=new f(e),n.tag=e,n.unwrapTag=t},isList:function(e){return r.list(e)},immutables:function(){return this.editor&&!!this.editor.options.immutables},wrap:function(t,n){var i,a,s=r.create(t.ownerDocument,"li"),l=this.immutables()?o.Immutables.immutable:e.noop;for(i=0;i<n.length;i++)if(a=n[i],r.is(a,"li"))t.appendChild(a);else if(this.isList(a))for(;a.firstChild;)t.appendChild(a.firstChild);else if(r.is(a,"td")){for(;a.firstChild;)s.appendChild(a.firstChild);t.appendChild(s),a.appendChild(t),t=t.cloneNode(!1),s=s.cloneNode(!1)}else s.appendChild(a),r.isBlock(a)&&(t.appendChild(s),l(a)||r.unwrap(a),s=s.cloneNode(!1));s.firstChild&&t.appendChild(s)},containsAny:function(e,t){for(var n=0;n<t.length;n++)if(r.isAncestorOrSelf(e,t[n]))return!0;return!1},suitable:function(e,t){if("k-marker"==e.className){var n=e.nextSibling;if(n&&r.isBlock(n))return!1;if(n=e.previousSibling,n&&r.isBlock(n))return!1}return this.containsAny(e,t)||r.isInline(e)||3==e.nodeType},_parentLists:function(t){var n=r.closestEditable(t);return e(t).parentsUntil(n,"ul,ol")},split:function(e){var t,n,i,o,s,l,d=h(e);if(d.length)for(t=r.parentOfType(d[0],["li"]),n=r.parentOfType(d[d.length-1],["li"]),e.setStartBefore(t),e.setEndAfter(n),o=0,s=d.length;o<s;o++)l=this.finder.findFormat(d[o]),l&&(i=this._parentLists(l),i.length?a.split(e,i.last()[0],!0):a.split(e,l,!0))},merge:function(e,t){for(var n,i=t.previousSibling;i&&("k-marker"==i.className||3==i.nodeType&&r.isWhitespace(i));)i=i.previousSibling;if(i&&r.name(i)==e){for(;t.firstChild;)i.appendChild(t.firstChild);r.remove(t),t=i}for(n=t.nextSibling;n&&("k-marker"==n.className||3==n.nodeType&&r.isWhitespace(n));)n=n.nextSibling;if(n&&r.name(n)==e){for(;t.lastChild;)n.insertBefore(t.lastChild,n.firstChild);r.remove(t)}},breakable:function(e){return e!=e.ownerDocument.body&&!/table|tbody|thead|tr|td/.test(r.name(e))&&!e.attributes.contentEditable},applyOnSection:function(t,n){function i(){u.push(this)}var o,a,s,l,d=this.tag,c=r.closestSplittableParent(n),u=[],h=this.finder.findSuitable(n);for(h||(h=new f("ul"==d?"ol":"ul").findSuitable(n)),/table|tbody|thead/.test(r.name(c))?o=e.map(n,function(e){return r.parentOfType(e,["td"])}):(o=r.significantChildNodes(c),e.grep(o,r.isBlock).length&&(o=e.grep(o,e.proxy(function(e){return this.containsAny(e,n)},this))),o.length||(o=n)),a=0;a<o.length;a++)s=o[a],l=(!h||!r.isAncestorOrSelf(h,s))&&this.suitable(s,n),l&&(h&&this.isList(s)?(e.each(s.children,i),r.remove(s)):u.push(s));for(u.length==o.length&&this.breakable(c)&&(u=[c]),h||(h=r.create(c.ownerDocument,d),r.isBlock(u[0])&&r.mergeAttributes(u[0],h),r.insertBefore(h,u[0])),this.wrap(h,u);r.isBom(h.nextSibling);)r.remove(h.nextSibling);r.is(h,d)||r.changeTag(h,d),this.merge(d,h)},apply:function(t){function n(){i&&c.push({section:i,nodes:a})}var i,a,s,l,d=0,c=[],u=t.length,h=this.immutables()?o.Immutables.immutableParent:e.noop;for(d=0;d<u;d++)l=h(t[d])||t[d],s=r.closestEditable(l,["td","th","body"]),i&&s==i?a.push(l):(n(),a=[l],i=s);for(n(),d=0;d<c.length;d++)this.applyOnSection(c[d].section,c[d].nodes)},unwrap:function(e){var t,n,i,o,a=e.ownerDocument.createDocumentFragment(),s=this.unwrapTag;for(n=e.firstChild;n;n=n.nextSibling){for(i=r.create(e.ownerDocument,s||"p");n.firstChild;)o=n.firstChild,r.isBlock(o)?(i.firstChild&&(a.appendChild(i),i=r.create(e.ownerDocument,s||"p")),a.appendChild(o)):i.appendChild(o);i.firstChild&&a.appendChild(i)}t=this._parentLists(e),t[0]?(r.insertAfter(a,t.last()[0]),t.last().remove()):r.insertAfter(a,e),r.remove(e)},remove:function(e){var t,n,i;for(n=0,i=e.length;n<i;n++)t=this.finder.findFormat(e[n]),t&&this.unwrap(t)},toggle:function(e){var t,n=this,i=h(e),o=e.commonAncestorContainer;i.length||(e.selectNodeContents(o),i=h(e),i.length||(t=o.ownerDocument.createTextNode(""),e.startContainer.appendChild(t),i=[t],e.selectNode(t.parentNode))),i=r.filterBy(i,r.htmlIndentSpace,!0),n.finder.isFormatted(i)?(n.split(e),n.remove(i)):n.apply(i)}}),g=l.extend({init:function(e){e.formatter=new m(e.tag),l.fn.init.call(this,e)}}),v=c.extend({init:function(e){this.options=e,c.fn.init.call(this,i(e,{finder:new f(e.tag)}))},command:function(e){return new g(i(e,{tag:this.options.tag}))}});i(o,{ListFormatFinder:f,ListFormatter:m,ListCommand:g,ListTool:v}),p("insertUnorderedList",new v({tag:"ul",template:new d({template:s.buttonTemplate,title:"Insert unordered list"})})),p("insertOrderedList",new v({tag:"ol",template:new d({template:s.buttonTemplate,title:"Insert ordered list"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/formatting.min",["editor/plugins/inlineformat.min"],e)}(function(){!function(e){function t(e){var t,o,r=l.closestEditableOfType(e,["li"]);r&&(t=new i.ListFormatter(l.name(r.parentNode)),o=n.ui.editor.W3CRange.fromNode(e),o.selectNode(r),t.toggle(o))}var n=window.kendo,i=n.ui.editor,o=i.Tool,r=i.ToolTemplate,a=i.DelayedExecutionTool,s=i.Command,l=i.Dom,d=i.EditorUtils,c=i.RangeUtils,u=d.registerTool,h=a.extend({init:function(e){var t=this;o.fn.init.call(t,n.deepExtend({},t.options,e)),t.type="kendoSelectBox",t.finder={getFormat:function(){return""}}},options:{items:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],width:110},toFormattingItem:function(e){var t,n=e.value;return n?e.tag||e.className?e:(t=n.indexOf("."),0===t?e.className=n.substring(1):t==-1?e.tag=n:(e.tag=n.substring(0,t),e.className=n.substring(t+1)),e):e},command:function(t){var n=this,o=t.value;return o=this.toFormattingItem(o),new i.FormatCommand({range:t.range,formatter:function(){var t,r=(o.tag||o.context||"span").split(","),a=[{tags:r,attr:{className:o.className||""}}];return t=e.inArray(r[0],l.inlineElements)>=0?new i.GreedyInlineFormatter(a):new i.GreedyBlockFormatter(a),t.editor=n.editor,t}})},initialize:function(e,t){var i,r=t.editor,a=this.options,s=a.name,l=this;l.editor=r,e.width(a.width),i=e.kendoSelectBox({dataTextField:"text",dataValueField:"value",dataSource:a.items||r.options[s],title:r.options.messages[s],autoSize:!0,change:function(){var e=this.dataItem();e&&o.exec(r,s,e.toJSON())},dataBound:function(){var e,t=this.dataSource.data();for(e=0;e<t.length;e++)t[e]=l.toFormattingItem(t[e])},highlightFirst:!1,template:n.template('<span unselectable="on" style="display:block;#=(data.style||"")#">#:data.text#</span>')}).data("kendoSelectBox"),e.attr("title",t.title),i.wrapper.attr("title",t.title),e.addClass("k-decorated").closest(".k-widget").removeClass("k-"+s).find("*").addBack().attr("unselectable","on")},getFormattingValue:function(t,n){var i,o,r,a,s,l,d;for(i=0;i<t.length;i++)if(o=t[i],r=o.tag||o.context||"",a=o.className?"."+o.className:"",s=r+a,l=e(n[0]).closest(s)[0]){if(1==n.length)return o.value;for(d=1;d<n.length&&e(n[d]).closest(s)[0];d++)if(d==n.length-1)return o.value}return""},update:function(t,n){var i,o,r,s,d,c=e(t).data(this.type);if(c&&(i=c.dataSource,o=i.data(),d=l.commonAncestor.apply(null,n),d==l.closestEditable(d)||this._ancestor!=d)){for(this._ancestor=d,r=0;r<o.length;r++)s=o[r].context,o[r].visible=!s||!!e(d).closest(s).length;i.filter([{field:"visible",operator:"eq",value:!0}]),a.fn.update.call(this,t,n),c.value(this.getFormattingValue(i.view(),n)),c.wrapper.toggleClass("k-state-disabled",!i.view().length)}},destroy:function(){this._ancestor=null}}),p=s.extend({exec:function(){var e,t,n,i=this.lockRange(!0);for(this.tagsToClean=this.options.remove||"strong,em,span,sup,sub,del,b,i,u,font".split(","),c.wrapSelectedElements(i),e=c.mapAll(i,function(e){return e}),t=e.length-1;t>=0;t--)n=e[t],this.immutableParent(n)||this.clean(n);this.releaseRange(i)},clean:function(n){var o,r,a,s,d;if(n&&!l.isMarker(n)){if(o=l.name(n),"ul"==o||"ol"==o)for(r=new i.ListFormatter(o),a=n.previousSibling,s=n.nextSibling,r.unwrap(n);a&&a!=s;a=a.nextSibling)this.clean(a);else if("blockquote"==o)l.changeTag(n,"p");else if(1!=n.nodeType||l.insignificant(n))t(n);else{for(d=n.childNodes.length-1;d>=0;d--)this.clean(n.childNodes[d]);n.removeAttribute("style"),n.removeAttribute("class")}e.inArray(o,this.tagsToClean)>-1&&l.unwrap(n)}},immutableParent:function(e){return this.immutables()&&i.Immutables.immutableParent(e)}});e.extend(i,{FormattingTool:h,CleanFormatCommand:p}),u("formatting",new h({template:new r({template:d.dropDownListTemplate,title:"Format"})})),u("cleanFormatting",new o({command:p,template:new r({template:d.buttonTemplate,title:"Clean formatting"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/image.min",["kendo.imagebrowser.min","editor/command.min"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=n.ui.editor,r=o.EditorUtils,a=o.Dom,s=r.registerTool,l=o.ToolTemplate,d=o.RangeUtils,c=o.Command,u=n.keys,h="#k-editor-image-url",p="#k-editor-image-title",f="#k-editor-image-width",m="#k-editor-image-height",g=c.extend({init:function(e){var t=this;c.fn.init.call(t,e),t.async=!0,t.attributes={}},insertImage:function(e,t){var n,i=this.attributes,o=d.documentFromRange(t);if(i.src&&"http://"!=i.src){if(n=function(){setTimeout(function(){i.width||e.removeAttribute("width"),i.height||e.removeAttribute("height"),e.removeAttribute("complete")})},!e)return e=a.create(o,"img",i),e.onload=e.onerror=n,t.deleteContents(),t.insertNode(e),e.nextSibling||a.insertAfter(o.createTextNode("\ufeff"),e),n(),t.setStartAfter(e),t.setEndAfter(e),d.selectRange(t),!0;e.onload=e.onerror=n,a.attr(e,i),n()}return!1},_dialogTemplate:function(e){return n.template('<div class="k-editor-dialog k-popup-edit-form"><div class="k-edit-form-container"><div class="k-edit-form-content"># if (showBrowser) { #<div class="k-filebrowser k-imagebrowser"></div># } #<div class=\'k-edit-label\'><label for="k-editor-image-url">#: messages.imageWebAddress #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-image-url"></div><div class=\'k-edit-label\'><label for="k-editor-image-title">#: messages.imageAltText #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-image-title"></div><div class=\'k-edit-label\'><label for="k-editor-image-width">#: messages.imageWidth #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-image-width"></div><div class=\'k-edit-label\'><label for="k-editor-image-height">#: messages.imageHeight #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-image-height"></div></div><div class="k-edit-buttons k-state-default"><button class="k-dialog-insert k-button k-primary">#: messages.dialogInsert #</button><button class="k-dialog-close k-button">#: messages.dialogCancel #</button></div></div></div>')({messages:this.editor.options.messages,showBrowser:e})},redo:function(){var e=this,t=e.lockRange();e.insertImage(d.image(t),t)||e.releaseRange(t)},exec:function(){function e(e){var t=s.element,n=parseInt(t.find(f).val(),10),i=parseInt(t.find(m).val(),10);g.attributes={src:t.find(h).val().replace(/ /g,"%20"),alt:t.find(p).val()},g.attributes.width=null,g.attributes.height=null,!isNaN(n)&&n>0&&(g.attributes.width=n),!isNaN(i)&&i>0&&(g.attributes.height=i),_=g.insertImage(b,v),o(e),g.change&&g.change()}function o(e){e.preventDefault(),s.destroy(),a.windowFromDocument(d.documentFromRange(v)).focus(),_||g.releaseRange(v)}function r(t){t.keyCode==u.ENTER?e(t):t.keyCode==u.ESC&&o(t)}var s,l,c,g=this,v=g.lockRange(),_=!1,b=d.image(v),w=b&&b.getAttribute("width")||"",k=b&&b.getAttribute("height")||"",y=n.support.browser.msie,x=g.editor.options,C=x.messages,S=x.imageBrowser,T=!!(n.ui.ImageBrowser&&S&&S.transport&&S.transport.read!==t),D={title:C.insertImage,visible:!1,resizable:T};this.expandImmutablesIn(v),D.close=o,T&&(D.width=750),s=this.createDialog(g._dialogTemplate(T),D).toggleClass("k-filebrowser-dialog",T).find(".k-dialog-insert").click(e).end().find(".k-dialog-close").click(o).end().find(".k-edit-field input").keydown(r).end().find(h).val(b?b.getAttribute("src",2):"http://").end().find(p).val(b?b.alt:"").end().find(f).val(w).end().find(m).val(k).end().data("kendoWindow"),l=s.element,T&&(this._imageBrowser=new n.ui.ImageBrowser(l.find(".k-imagebrowser"),i({},S)),this._imageBrowser.bind("change",function(e){"f"===e.selected.get("type")&&l.find(h).val(this.value())}),this._imageBrowser.bind("apply",e)),y&&(c=l.closest(".k-window").height(),l.css("max-height",c)),s.center().open(),l.find(h).focus().select()}});n.ui.editor.ImageCommand=g,s("insertImage",new o.Tool({command:g,template:new l({template:r.buttonTemplate,title:"Insert Image"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/import.min",["editor/main.min"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.ui.editor,a=r.EditorUtils,s=r.Command,l=r.Tool,d=a.registerTool,c=r.ToolTemplate,u='<div contenteditable="false" class="k-loading-mask" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;"><div class="k-loading-image"></div><div class="k-loading-color"></div></div>',h=s.extend({exec:function(){(this.editor._uploadWidget||this._initializeUploadWidget()).element.click()},_initializeUploadWidget:function(){var t=this,n=t.editor,i=n.options["import"],r=e('<input id="editorImport" name="files" type="file" />').kendoUpload({success:o(t._onUploadSuccess,t),progress:o(t._onUploadProgress,t),select:o(t._onUploadSelect,t),error:o(t._onUploadError,t),complete:o(t._onUploadComplete,t),showFileList:!1,multiple:!1,async:{saveUrl:i.proxyUrl,autoUpload:!0,saveField:"file"},validation:{allowedExtensions:i.allowedExtensions,maxFileSize:i.maxFileSize}}).getKendoUpload();return n._uploadWidget=r,r},_onUploadComplete:function(e){this._trigger("complete",e),e.sender.clearAllFiles(),this._removeLoadingOverlay()},_onUploadSuccess:function(e){this.editor.value(e.response.html.replace(/<\/?body>/gi,"")),this._trigger("success",e)},_onUploadProgress:function(e){this._trigger("progress",e)},_onUploadSelect:function(e){this._trigger("select",e),e.files[0].validationErrors||this._initLoadingOverlay()},_onUploadError:function(e){this._trigger("error",e)},_trigger:function(e,t){var n=this.editor,i=n.options["import"];"function"==typeof i[e]&&i[e].call(n,t)},_initLoadingOverlay:function(){var t=this.editor.body;r.Dom.is(t,"body")?this._iframeWrapper=this._container=this.editor.wrapper.find("iframe").parent().css({position:"relative"}).append(u):this._container=e(t).append(u),n.ui.progress(this._container,!0)},_removeLoadingOverlay:function(){n.ui.progress(this._container,!1),e(this._iframeWrapper).css({position:""}),delete this._container,delete this._iframeWrapper}});i(r,{ImportCommand:h}),d("import",new l({command:h,template:new c({template:a.buttonTemplate,title:"Import"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/insert.min",["editor/command.min"],e)}(function(){!function(e){var t=window.kendo,n=t.ui.editor,i=n.Command,o=n.GenericCommand,r=n.EditorUtils,a=r.registerTool,s=n.Tool,l=n.ToolTemplate,d=n.RestorePoint,c=e.extend,u=i.extend({init:function(e){i.fn.init.call(this,e),this.managesUndoRedo=!0},exec:function(){var e,t=this.editor,n=this.options,i=n.range,r=t.body,a=new d(i,r),s=n.html||n.value||"";t.selectRange(i),t.clipboard.paste(s,n),n.postProcess&&n.postProcess(t,t.getRange()),e=new o(a,new d(t.getRange(),r)),e.editor=t,t.undoRedoStack.push(e),t.focus()}}),h=s.extend({initialize:function(e,t){var i=t.editor,o=this.options,r=o.items?o.items:i.options.insertHtml;this._selectBox=new n.SelectBox(e,{dataSource:r,dataTextField:"text",dataValueField:"value",change:function(){s.exec(i,"insertHtml",this.value())},title:i.options.messages.insertHtml,highlightFirst:!1}),e.attr("title",t.title),this._selectBox.wrapper.attr("title",t.title)},command:function(e){return new u(e)},update:function(e){var t=e.data("kendoSelectBox")||e.find("select").data("kendoSelectBox");t.close(),t.value(t.options.title)}});c(n,{InsertHtmlCommand:u,InsertHtmlTool:h}),a("insertHtml",new h({template:new l({template:r.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/export.min",["editor/main.min"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.ui.editor,a=r.EditorUtils,s=r.Command,l=r.Tool,d=a.registerTool,c=r.ToolTemplate,u=[{text:"Docx",value:"docx"},{text:"Rtf",value:"rtf"},{text:"Pdf",value:"pdf"},{text:"Html",value:"html"},{text:"Plain Text",value:"txt"}],h=s.extend({init:function(e){var t=this;t.options=e,s.fn.init.call(t,e),t.attributes=null,t.exportType=e.exportType},exec:function(){var e=this,t=this.lockRange(!0);e.postToProxy(),e.releaseRange(t)},postToProxy:function(){this.generateForm().appendTo("body").submit().remove()},generateForm:function(){var t=this,n=t.editor.options.exportAs,i=e("<form>").attr({action:n&&n.proxyURL||"",method:"POST"});return i.append([t.valueInput(),t.exportTypeInput(),t.fileNameInput()]),i},valueInput:function(){var t=this.editor;return e("<input>").attr({value:t.encodedValue(),name:"value",type:"hidden"})},exportTypeInput:function(){var t=this;return e("<input>").attr({value:t.exportType,name:"exportType",type:"hidden"})},fileNameInput:function(){var t=this.editor,n=t.options.exportAs,i=n&&n.fileName||t.element.attr("id")||"editor";return e("<input>").attr({value:i,name:"fileName",type:"hidden"})}}),p=l.extend({init:function(e){var t=this;l.fn.init.call(t,n.deepExtend({},t.options,e)),t.type="kendoSelectBox"},options:{items:u,width:115},command:function(e){var t=e.value;return new r.ExportAsCommand({range:e.range,exportType:t.exportType})},initialize:function(e,t){var i,r=this,a=t.editor,s=r.options,l=s.name,d=o(r.changeHandler,r),c=s.items||a.options[l];c.unshift({text:a.options.messages[l],value:""}),r.editor=a,e.width(s.width),i=e.kendoSelectBox({dataTextField:"text",dataValueField:"value",dataSource:c,autoSize:!0,change:d,open:function(e){var t=e.sender;t.items()[0].style.display="none",t.unbind("open")},highlightFirst:!1,template:n.template('<span unselectable="on" style="display:block;#=(data.style||"")#">#:data.text#</span>')}).data("kendoSelectBox"),e.attr("title",t.title),i.wrapper.attr("title",t.title),e.addClass("k-decorated").closest(".k-widget").removeClass("k-"+l).find("*").addBack().attr("unselectable","on")},changeHandler:function(e){var t=e.sender,n=t.dataItem(),i=n&&n.value;this._exec(i),t.value("")},_exec:function(e){e&&l.exec(this.editor,this.options.name,{exportType:e})},destroy:function(){this._ancestor=null}});i(r,{ExportAsTool:p,ExportAsCommand:h}),d("exportAs",new p({template:new c({template:a.dropDownListTemplate,title:"Export As"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/indent.min",["editor/plugins/formatblock.min"],e)}(function(){!function(e,t){function n(n,i){var o="rtl"==e(n).css("direction"),r=o?"Right":"Left",a="td"!=s.name(n)?"margin"+r:"padding"+r;return i===t?n.style[a]||0:(i>0?n.style[a]=i+"px":(n.style[a]="",n.style.cssText||n.removeAttribute("style")),t)}var i=window.kendo,o=i.Class,r=e.extend,a=i.ui.editor,s=a.Dom,l=a.EditorUtils,d=l.registerTool,c=a.Command,u=a.Tool,h=a.ToolTemplate,p=a.RangeUtils,f=s.blockElements,m=a.BlockFormatFinder,g=a.BlockFormatter,v=o.extend({init:function(){this.finder=new m([{tags:s.blockElements}])},apply:function(t){var i,o,r,a,l,d,c,u,h,p,f,m;if(t=s.filterBy(t,s.htmlIndentSpace,!0),i=this.finder.findSuitable(t),o=[],i=this.mapImmutables(i),i.length){for(r=0,a=i.length;r<a;r++)s.is(i[r],"li")?e(i[r]).index()?e.inArray(i[r].parentNode,o)<0&&o.push(i[r]):o.push(i[r].parentNode):o.push(i[r]);for(;o.length;)if(l=o.shift(),s.is(l,"li"))if(d=l.parentNode,c=e(l).prev("li"),u=c.find("ul,ol").last(),h=e(l).children("ul,ol")[0],h&&c[0])u[0]?(u.append(l),u.append(e(h).children()),s.remove(h)):(c.append(h),h.insertBefore(l,h.firstChild));else for(h=c.children("ul,ol")[0],h||(h=s.create(l.ownerDocument,s.name(d)),c.append(h));l&&l.parentNode==d;)h.appendChild(l),l=o.shift();else for(p=parseInt(n(l),10)+30,n(l,p),f=0;f<o.length;f++)e.contains(l,o[f])&&o.splice(f,1)}else m=new g([{tags:["p"]}],{style:{marginLeft:30}}),m.apply(t)},mapImmutables:function(t){if(this.immutables){var n=[];return e.map(t,function(t){var i=a.Immutables.immutableParent(t);if(i){if(e.inArray(i,n)!==-1)return null;n.push(i)}return i||t})}return t},remove:function(t){t=s.filterBy(t,s.htmlIndentSpace,!0);var i,o,r,a,l,d,c,u,h=this.finder.findSuitable(t);for(h=this.mapImmutables(h),o=0,r=h.length;o<r;o++){if(c=e(h[o]),c.is("li")){if(a=c.parent(),l=a.parent(),l.is("li,ul,ol")&&!n(a[0])){if(i&&e.contains(i,l[0]))continue;d=c.nextAll("li"),d.length&&e(a[0].cloneNode(!1)).appendTo(c).append(d),l.is("li")?c.insertAfter(l):c.appendTo(l),a.children("li").length||a.remove();continue}if(i==a[0])continue;i=a[0]}else i=h[o];u=parseInt(n(i),10)-30,n(i,u)}}}),_=c.extend({init:function(t){var n=this;t.formatter={toggle:e.proxy(function(e){var t=new v;t.immutables=this.editor&&this.editor.options.immutables,t.apply(p.nodes(e))},n)},c.fn.init.call(this,t)}}),b=c.extend({init:function(t){var n=this;t.formatter={toggle:e.proxy(function(e){var t=new v;t.immutables=this.editor&&this.editor.options.immutables,t.remove(p.nodes(e))},n)},c.fn.init.call(this,t)}}),w=u.extend({init:function(e){u.fn.init.call(this,e),this.finder=new m([{tags:f}])},initialize:function(t,n){u.fn.initialize.call(this,t,n),e.extend(this.options,{immutables:n.editor&&n.editor.options.immutables}),t.addClass("k-state-disabled")},update:function(i,o){var r,l,d,c,u,h,p=this.finder.findSuitable(o);for(d=0,c=p.length;d<c;d++)if(u=p[d],this.options.immutables&&(h=a.Immutables.immutableParent(u),h&&(u=h)),r=n(u),r||(l=e(u).parents("ul,ol").length,r=s.is(u,"li")&&(l>1||n(u.parentNode))||s.ofType(u,["ul","ol"])&&l>0),r)return i.removeClass("k-state-disabled"),t;i.addClass("k-state-disabled").removeClass("k-state-hover")}});r(a,{IndentFormatter:v,IndentCommand:_,OutdentCommand:b,OutdentTool:w}),d("indent",new u({command:_,template:new h({template:l.buttonTemplate,title:"Indent"})})),d("outdent",new w({command:b,template:new h({template:l.buttonTemplate,title:"Outdent"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/linebreak.min",["editor/plugins/formatblock.min"],e)}(function(){!function(e){var t=window.kendo,n=e.extend,i=t.ui.editor,o=i.Dom,r=i.Command,a=i.Tool,s=i.BlockFormatter,l=o.normalize,d=i.RangeUtils,c=i.EditorUtils.registerTool,u=r.extend({init:function(e){this.options=e,r.fn.init.call(this,e)},_insertMarker:function(e,t){var n,i=o.create(e,"a");return i.className="k-marker",t.insertNode(i),i.parentNode||(n=t.commonAncestorContainer,n.innerHTML="",n.appendChild(i)),l(i.parentNode),i},_moveFocus:function(e,t){var n,i;if(o.isEmpty(t))e.setStartBefore(t);else{if(e.selectNodeContents(t),n=d.textNodes(e)[0],!n){for(;t.childNodes.length&&!o.is(t.firstChild,"br");)t=t.firstChild;n=t}o.isEmpty(n)?e.setStartBefore(n):(o.emptyNode(n)&&(n.innerHTML="\ufeff"),i=n.firstChild||n,o.isDataNode(i)?e.setStart(i,0):e.setStartBefore(i))}},shouldTrim:function(e){var t="p,h1,h2,h3,h4,h5,h6".split(","),n=o.parentOfType(e.startContainer,t),i=o.parentOfType(e.endContainer,t);return n&&!i||!n&&i},_blankAfter:function(e){for(;e&&(o.isMarker(e)||""===o.stripBom(e.nodeValue));)e=e.nextSibling;return!e},exec:function(){var t,n,r,a,c,u,h,p,f,m,g,v,_,b,w=this.getRange(),k=d.documentFromRange(w),y=i.emptyElementContent;this.expandImmutablesIn(w),m=this.shouldTrim(w),w.deleteContents(),c=this._insertMarker(k,w),o.stripBomNode(c.previousSibling),o.stripBomNode(c.nextSibling),u=o.closestEditableOfType(c,["li"]),h=o.closestEditableOfType(c,"h1,h2,h3,h4,h5,h6".split(",")),p=o.is(c.parentNode,"table")&&c.parentNode,u?o.emptyNode(u)&&(a=o.create(k,"p"),o.next(u)&&(f=w.cloneRange(),f.selectNode(u),d.split(f,u.parentNode)),g=e("br",u),1==g.length&&g.remove(),v=u.parentNode,_=u.parentNode.children.length,b=_>1&&1==u.childNodes.length&&u.children[0],o.insertAfter(a,v),o.remove(1==_?u.parentNode:u),b&&b!==c?(a.appendChild(b),a.appendChild(c)):a.innerHTML=y,r=a):h&&this._blankAfter(c)?(a=this._insertParagraphAfter(h),o.remove(c),r=a):p&&(a=this._insertParagraphAfter(p),o.remove(c),r=a),r||(u||h||new s([{
tags:["p"]}]).apply([c]),w.selectNode(c),t=o.parentOfType(c,[u?"li":h?o.name(h):"p"]),d.split(w,t,m),n=t.previousSibling,o.is(n,"li")&&n.firstChild&&!o.is(n.firstChild,"br")&&(n=n.firstChild),r=t.nextSibling,this.clean(n,{links:!0}),this.clean(r,{links:!0}),o.is(r,"li")&&r.firstChild&&!o.is(r.firstChild,"br")&&(r=r.firstChild),o.remove(t),l(n)),l(r),this._moveFocus(w,r),w.collapse(!0),o.scrollTo(r,!0),d.selectRange(w)},_insertParagraphAfter:function(e){var t=this.getRange(),n=d.documentFromRange(t),r=i.emptyElementContent,a=o.create(n,"p");return o.insertAfter(a,e),a.innerHTML=r,a},clean:function(t,n){var r,a=t;if(t.firstChild&&o.is(t.firstChild,"br")&&o.remove(t.firstChild),o.isDataNode(t)&&!t.nodeValue&&(t=t.parentNode),t){for(r=!1;t.firstChild&&1==t.firstChild.nodeType;)r=r||o.significantNodes(t.childNodes).length>1,t=t.firstChild;if(o.isEmpty(t)||!/^\s*$/.test(t.innerHTML)||r||(e(a).find(".k-br").remove(),t.innerHTML=i.emptyElementContent),n&&n.links)for(;t!=a;){if(o.is(t,"a")&&o.emptyNode(t)){o.unwrap(t);break}t=t.parentNode}}}}),h=r.extend({init:function(e){this.options=e,r.fn.init.call(this,e)},exec:function(){var e,n,i,r,a,s,c=this.getRange();this.expandImmutablesIn(c),e=o.create(d.documentFromRange(c),"br"),n=c.startContainer,r=t.support.browser,a=r.msie&&r.version<11,s=o.is(n,"table")&&n,c.deleteContents(),s?o.insertAfter(e,s):c.insertNode(e),l(e.parentNode),a||e.nextSibling&&!o.isWhitespace(e.nextSibling)||(i=e.cloneNode(!0),i.className="k-br",o.insertAfter(i,e)),c.setStartAfter(e),c.collapse(!0),o.scrollTo(e.nextSibling||e,!0),d.selectRange(c)}});n(i,{ParagraphCommand:u,NewLineCommand:h}),c("insertLineBreak",new a({key:13,shift:!0,command:h})),c("insertParagraph",new a({key:13,command:u}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/file.min",["kendo.filebrowser.min","editor/plugins/link.min"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=n.ui.editor,r=o.EditorUtils,a=o.Dom,s=r.registerTool,l=o.ToolTemplate,d=o.RangeUtils,c=o.Command,u=o.LinkFormatter,h=d.textNodes,p=n.keys,f="#k-editor-file-url",m="#k-editor-file-text",g="#k-editor-file-title",v=c.extend({init:function(e){var t=this;c.fn.init.call(t,e),t.formatter=new u,t.async=!0,t.attributes={}},insertFile:function(e,t){var n=this.attributes,i=d.documentFromRange(t);if(n.href&&"http://"!=n.href){if(!e)return e=a.create(i,"a",{href:n.href}),e.innerHTML=n.innerHTML,e.title=n.title,t.deleteContents(),t.insertNode(e),e.nextSibling||a.insertAfter(i.createTextNode("\ufeff"),e),t.setStartAfter(e),t.setEndAfter(e),d.selectRange(t),!0;a.attr(e,n)}return!1},_dialogTemplate:function(e){return n.template('<div class="k-editor-dialog k-popup-edit-form"><div class="k-edit-form-container"><div class="k-edit-form-content"># if (showBrowser) { #<div class="k-filebrowser"></div># } #<div class=\'k-edit-label\'><label for="k-editor-file-url">#: messages.fileWebAddress #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-file-url"></div><div class=\'k-edit-label\'><label for="k-editor-file-text">#: messages.fileText #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-file-text"></div><div class=\'k-edit-label\'><label for="k-editor-file-title">#: messages.fileTitle #</label></div><div class=\'k-edit-field\'><input type="text" class="k-textbox" id="k-editor-file-title"></div></div><div class="k-edit-buttons k-state-default"><button class="k-dialog-insert k-button k-primary">#: messages.dialogInsert #</button><button class="k-dialog-close k-button">#: messages.dialogCancel #</button></div></div></div>')({messages:this.editor.options.messages,showBrowser:e})},redo:function(){var e=this,t=e.lockRange();this.formatter.apply(t,this.attributes),e.releaseRange(t)},exec:function(){function e(e){var t=s.element,n=t.find(f).val().replace(/ /g,"%20"),i=t.find(m).val(),r=t.find(g).val();u.attributes={href:n,innerHTML:""!==i?i:n,title:r},b=u.insertFile(w,v),o(e),u.change&&u.change()}function o(e){e.preventDefault(),s.destroy(),a.windowFromDocument(d.documentFromRange(v)).focus(),b||u.releaseRange(v)}function r(t){t.keyCode==p.ENTER?e(t):t.keyCode==p.ESC&&o(t)}var s,l,c,u=this,v=u.lockRange(),_=h(v),b=!1,w=_.length?this.formatter.finder.findSuitable(_[0]):null,k=n.support.browser.msie,y=u.editor.options,x=y.messages,C=y.fileBrowser,S=!!(n.ui.FileBrowser&&C&&C.transport&&C.transport.read!==t),T={title:x.insertFile,visible:!1,resizable:S};this.expandImmutablesIn(v),T.close=o,S&&(T.width=750),s=this.createDialog(u._dialogTemplate(S),T).toggleClass("k-filebrowser-dialog",S).find(".k-dialog-insert").click(e).end().find(".k-dialog-close").click(o).end().find(".k-edit-field input").keydown(r).end().find(f).val(w?w.getAttribute("href",2):"http://").end().find(m).val(w?w.innerText:"").end().find(g).val(w?w.title:"").end().data("kendoWindow"),l=s.element,S&&(u._fileBrowser=new n.ui.FileBrowser(l.find(".k-filebrowser"),i({},C)),u._fileBrowser.bind("change",function(e){"f"===e.selected.get("type")&&l.find(f).val(this.value())}),u._fileBrowser.bind("apply",e)),k&&(c=l.closest(".k-window").height(),l.css("max-height",c)),s.center().open(),l.find(f).focus().select()}});n.ui.editor.FileCommand=v,s("insertFile",new o.Tool({command:v,template:new l({template:r.buttonTemplate,title:"Insert File"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/tables.min",["editor/plugins/formatblock.min","editor/plugins/insert.min"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.ui.editor,a=r.Dom,s=r.EditorUtils,l=r.RangeUtils,d=r.Command,c="kendoEditor",u="k-state-active",h="k-state-selected",p="scope",f="row",m="col",g="rowgroup",v="colgroup",_="colspan",b="rowspan",w="table",k="thead",y="tbody",x="tr",C="td",S="th",T=r.Tool,D=r.ToolTemplate,A=r.InsertHtmlCommand,E=r.BlockFormatFinder,I=r.EditorUtils.registerTool,M=n.getTouches,R=n.template,F="<td style='width:#=width#%;'>#=content#</td>",P=new E([{tags:[w]}]),z=A.extend({init:function(t){var n=e.extend({postProcess:this.postProcess,skipCleaners:!0},t||{});A.fn.init.call(this,n)},_tableHtml:function(e,t){var n,i;return e=e||1,t=t||1,n=R(F)({width:100/t,content:r.emptyTableCellContent}),i=100/e,"<table class='k-table' data-last>"+Array(e+1).join("<tr style='height:"+i+"%;'>"+Array(t+1).join(n)+"</tr>")+"</table>"},postProcess:function(t,n){var i=e("table[data-last]",t.document).removeAttr("data-last");n.setStart(i.find(C)[0],0),n.collapse(!0),t.selectRange(n)},exec:function(){var e=this.options;e.html=this._tableHtml(e.rows,e.columns),A.fn.exec.call(this)}}),B=T.extend({initialize:function(t,n){var i,a,l,d;T.fn.initialize.call(this,t,n),i=e(this.options.popupTemplate).appendTo("body").kendoPopup({anchor:t,copyAnchorStyles:!1,open:o(this._open,this),activate:o(this._activate,this),close:o(this._close,this)}).data("kendoPopup"),t.click(o(this._toggle,this)).keydown(o(this._keydown,this)),a=this._editor=n.editor,this._popup=i,l=new r.TableWizardTool({template:new D({template:s.tableWizardButtonTemplate,title:a.options.messages.tableWizard}),command:r.TableWizardCommand,insertNewTable:!0}),I("tableWizardInsert",l),d=e("<div>"+l.options.template.getHtml()+"</div>"),d.appendTo(i.element),a.toolbar&&a.toolbar.attachToolsEvents(d)},popup:function(){return this._popup},_activate:e.noop,_open:function(){this._popup.options.anchor.addClass(u)},_close:function(){this._popup.options.anchor.removeClass(u)},_keydown:function(e){var t=n.keys,i=e.keyCode;i==t.DOWN&&e.altKey?this._popup.open():i==t.ESC&&this._popup.close()},_toggle:function(t){var n=e(t.target).closest(".k-tool");n.hasClass("k-state-disabled")||this.popup().toggle()},update:function(e){var t=this.popup();t.wrapper&&"block"==t.wrapper.css("display")&&t.close(),e.removeClass("k-state-hover")},destroy:function(){this._popup.destroy()}}),L=B.extend({init:function(t){this.cols=8,this.rows=6,B.fn.init.call(this,e.extend(t,{command:z,popupTemplate:"<div class='k-ct-popup'><div>"+Array(this.cols*this.rows+1).join("<span class='k-ct-cell k-state-disabled'></span>")+"</div><div class='k-status'></div></div>"}))},_activate:function(){function t(t){var n=e(window);return{row:Math.floor((t.clientY+n.scrollTop()-u.top)/o)+1,col:Math.floor((t.clientX+n.scrollLeft()-u.left)/i)+1}}var i,o,r=this,a=r._popup.element,s=a.find(".k-ct-cell"),l=s.eq(0),d=s.eq(s.length-1),u=n.getOffset(l),h=n.getOffset(d),p=r.cols,f=r.rows;a.find("*").addBack().attr("unselectable","on"),h.left+=d[0].offsetWidth,h.top+=d[0].offsetHeight,i=(h.left-u.left)/p,o=(h.top-u.top)/f,a.autoApplyNS(c).on("mousemove",".k-ct-cell",function(e){r._setTableSize(t(e))}).on("mouseleave",".k-ct-cell",function(){r._setTableSize()}).on("down",".k-ct-cell",function(e){e.preventDefault();var n=M(e)[0];r._exec(t(n.location))})},_valid:function(e){return e&&e.row>0&&e.col>0&&e.row<=this.rows&&e.col<=this.cols},_exec:function(e){this._valid(e)&&(this._editor.exec("createTable",{rows:e.row,columns:e.col}),this._popup.close())},_setTableSize:function(t){var i=this._popup.element,o=i.find(".k-status"),r=i.find(".k-ct-cell"),a=this.cols,s=this._editor.options.messages;this._valid(t)?(o.text(n.format(s.createTableHint,t.row,t.col)),r.each(function(n){e(this).toggleClass(h,n%a<t.col&&n/a<t.row)})):(o.text(s.createTable),r.removeClass(h))},_keydown:function(e){var t,i,o,r,a,s,l,d;B.fn._keydown.call(this,e),this._popup.visible()&&(t=n.keys,i=e.keyCode,o=this._popup.element.find(".k-ct-cell"),r=Math.max(o.filter(".k-state-selected").last().index(),0),a=Math.floor(r/this.cols),s=r%this.cols,l=!1,i!=t.DOWN||e.altKey?i==t.UP?(l=!0,a--):i==t.RIGHT?(l=!0,s++):i==t.LEFT&&(l=!0,s--):(l=!0,a++),d={row:Math.max(1,Math.min(this.rows,a+1)),col:Math.max(1,Math.min(this.cols,s+1))},i==t.ENTER?this._exec(d):this._setTableSize(d),l&&(e.preventDefault(),e.stopImmediatePropagation()))},_open:function(){var e=this._editor.options.messages;B.fn._open.call(this),this.popup().element.find(".k-status").text(e.createTable).end().find(".k-ct-cell").removeClass(h)},_close:function(){B.fn._close.call(this),this.popup().element.off("."+c)}}),H=d.extend({_clearColIndexAttr:function(e){a.clearTableMappings(e,"col-index")},_mapColIndices:function(e){a.reMapTableColumns(e,"col-index")},_findRowSpanCell:function(t,n,i){var o,r,a;for(a=n;a>=0;a--)if(o=t.rows[a],r=e(o).find("[col-index="+i+"]"),r.length)return r},_resetTableResizing:function(e){e._destroyResizings(),e._initializeColumnResizing(),e._initializeRowResizing(),e._initializeTableResizing()},_findNextTdInRow:function(e,t){var n,i,o=e.find("td:last-child"),r=parseInt(o.attr("col-index"),10)+o.prop("colSpan")-1;for(i=t;i<=r;i++)if(n=e.find("[col-index="+i+"]"),n.length)return n},_adjustColgroups:function(e,t){for(var n,i,o,r=t.getElementsByTagName(m),s=t.getElementsByTagName(v),l=e.cells,d=l.length;r.length>0;)r[0].remove();for(;s.length>0;)s[0].remove();for(n=d-1;n>=0;n--)o=l[n],o.getAttribute(p)===v?(i=a.createEmptyNode(this.editor.document,v),i.setAttribute("span",o.getAttribute(_)),t.prepend(i)):t.prepend(a.createEmptyNode(this.editor.document,m))},_associateHeaderIds:function(t){a.clearTableMappings(t,"col-index"),a.reMapTableColumns(t,"col-index"),e(t).find("th, td").removeAttr("id headers"),a.associateWithIds(t)},_getNumberOfColumns:function(e){return a._getNumberOfColumns(e,"td, th")}}),N=H.extend({exec:function(){var n,i,o,s,l,d,c,u,h=this.lockRange(!0),m=a.closest(h.endContainer,[C,S]),v=a.closest(m,w),_=this.options.position||"after";if(!v||this.immutables()&&r.Immutables.immutableParent(m))return this.releaseRange(h),t;for(this._mapColIndices(v),i=m.parentNode,l=a.findNodeIndex(i,!0),m.rowSpan>1&&"after"===_&&(i=v.rows[l+m.rowSpan-1]),n=this._getNumberOfColumns(v),s=i.cloneNode(!0),e(s).empty(),u=0;u<n;u+=o.prop("colSpan"))o=e(i).find("[col-index="+u+"]"),o.length?o.prop("rowSpan")>1&&"after"===_&&o?o.attr(b,o.prop("rowSpan")+1):this._appendCell(s,o):(l=a.findNodeIndex(i,!0),o=this._findRowSpanCell(i.parentElement,l,u),d=o.closest(x).index(),d+o.prop("rowSpan")-1===l&&"after"===_?this._appendCell(s,o):o.attr(b,o.prop("rowSpan")+1)),c=e(s).find("[col-index="+u+"]"),c.attr(p)!==g||c.attr(b)||c.attr(p,f);"before"==_?a.insertBefore(s,i):a.insertAfter(s,i),e(v).find("[headers]").length>0&&this._associateHeaderIds(v),this._clearColIndexAttr(v),this.releaseRange(h),this._resetTableResizing(this.editor)},_appendCell:function(e,t){var n;n=t.clone(),n.html(r.emptyTableCellContent),n.removeAttr(b),n.appendTo(e)}}),O=H.extend({exec:function(){var n,i,o,s,l=this.lockRange(!0),d=a.closest(l.endContainer,[C,S]),c=a.closest(d,w),u=c.getElementsByTagName(m),h=c.getElementsByTagName(v),f=c&&c.rows,g=this.options.position||"after";if(!d||this.immutables()&&r.Immutables.immutableParent(d))return this.releaseRange(l),t;for(this._mapColIndices(c),n=parseInt(d.getAttribute("col-index"),10),d.colSpan>1&&"after"===g&&(d.setAttribute("col-index",n+d.colSpan-1),n=n+d.colSpan-1),i=0;i<f.length;i++)o=this._processForColSpan(f[i],n,g,d),o&&(s=o.cloneNode(),s.innerHTML=r.emptyTableCellContent,s.removeAttribute(_),s.getAttribute(p)&&s.getAttribute(p)===v&&s.setAttribute(p,m),"before"==g?a.insertBefore(s,o):a.insertAfter(s,o),this._resizeCells(s,o));(u.length>0||h.length>0)&&this._adjustColgroups(f[0],c),e(c).find("[headers]").length>0&&this._associateHeaderIds(c),this._clearColIndexAttr(c),this.releaseRange(l),this._resetTableResizing(this.editor)},_processForColSpan:function(n,i,o,r){var a,s,l=i-1;if(a=e(n).find("[col-index="+i+"]")[0],a&&a.colSpan>1&&"after"===o&&a!==r)return a.colSpan+=1,t;if(a)return a;for(l;l>=0&&(a=e(n).find("[col-index="+l+"]")[0],!(a&&a.colSpan>1));l--);return a?(s=parseInt(a.getAttribute("col-index"),10)+a.colSpan-1,s===i&&"after"===o?a:(i<=s&&a.setAttribute(_,a.colSpan+1),t)):t},_resizeCells:function(e,t){var n,i,o,r=e.style.width;r&&(n=parseFloat(r),i=r.slice((""+n).length),o=n/2+i,e.style.width=o,t.style.width=o)}}),V=H.extend({exec:function(){var n,i,o,s=this.lockRange(),d=l.mapAll(s,function(t){return e(t).closest(x)[0]}),c=a.closest(s.endContainer,[C,S]),u=d[0],h=c?c.rowSpan:1,p=e(d[0]).index(),f=a.closest(u,w),m=u.parentElement;if(!f||this.immutables()&&r.Immutables.immutableParent(u))return this.releaseRange(s),t;for(i=0;i<h;i++)d.indexOf(m.rows[p+i])<0&&d.push(m.rows[p+i]);if(f.rows.length<=d.length)n=a.next(f),n&&!a.insignificant(n)||(n=a.prev(f)),a.remove(f),this._resetTableResizing(this.editor);else if(m.rows.length<=d.length)n=m.nextSibling,n||(n=m.previousSibling),a.remove(m);else{for(this._mapColIndices(f),o=0;o<d.length;o++)u=d[o],a.removeTextSiblings(u),n=a.next(u)||a.prev(u),n=n.cells[0],this._handleRowSpanCells(f,u),a.remove(u);this._clearColIndexAttr(f)}e(f).find("[headers]").length>0?this._associateHeaderIds(f):a.is(m,k)&&e(f).find("[scope]").length>0&&this._adjustColgroups(m.rows[0],f),n&&(s.setStart(n,0),s.collapse(!0),this.editor.selectRange(s)),this._resetTableResizing(this.editor)},_handleRowSpanCells:function(t,n){var i,o,r,s,l=a.findNodeIndex(n,!0),d=t.rows[0],c=d.cells[d.cells.length-1],u=parseInt(c.getAttribute("col-index"),10)+c.colSpan-1;for(i=0;i<=u;i+=o.prop("colSpan"))o=e(n).find("[col-index="+i+"]"),o.length&&o.prop("rowSpan")>1&&(s=t.rows[l+1],r=e(s).find("[col-index="+(i+1)+"]"),r.length?r.before(o):e(s).append(o),this._reduceRowSpan(o)),o.length||(o=this._findRowSpanCell(n.parentElement,l,i),this._reduceRowSpan(o))},_reduceRowSpan:function(e){var t=e.prop("rowSpan")-1;t<=1?(e.removeAttr(b),e.attr(p)===g&&e.attr(p,f)):e.attr(b,t)}}),W=H.extend({exec:function(){var n,i,o,s,l=this.lockRange(),d=a.closest(l.endContainer,[C,S]),c=a.closest(d,w),u=c&&c.rows,h=a.findNodeIndex(d,!0),p=u&&u[0].cells.length,f=c.getElementsByTagName(m),g=c.getElementsByTagName(v);if(!d||this.immutables()&&r.Immutables.immutableParent(d))return this.releaseRange(l),t;if(1==p||d.colSpan==p)n=a.next(c),n&&!a.insignificant(n)||(n=a.prev(c)),a.remove(c),this._resetTableResizing(this.editor);else{for(a.removeTextSiblings(d),n=a.next(d)||a.prev(d),this._mapColIndices(c),h=parseInt(d.getAttribute("col-index"),10),s=0;s<d.colSpan;s++)for(i=0;i<u.length;i+=o.prop("rowSpan")||1)o=e(u[i]).find("[col-index="+(h+s)+"]"),o.length&&o.prop("colSpan")<=1?o.remove():this._handleColSpanCells(u[i],h+s);this._clearColIndexAttr(c)}(f.length>0||g.length>0)&&this._adjustColgroups(u[0],c),e(c).find("[headers]").length>0&&this._associateHeaderIds(c),n&&(l.setStart(n,0),l.collapse(!0),this.editor.selectRange(l)),this._resetTableResizing(this.editor)},_handleColSpanCells:function(n,i){var o,r,a=e(n).find("[col-index="+i+"]");if(a.length&&a.prop("colSpan")>1)return o=a.clone(!0),a.after(o),this._reduceColSpan(o),o.attr("col-index",parseInt(a.attr("col-index"),10)+1),a.remove(),t;for(r=i;r>=0;r--)if(a=e(n).find("[col-index="+r+"]"),a.length)return this._reduceColSpan(a),a.attr("col-index",parseInt(a.attr("col-index"),10)+1),t},_reduceColSpan:function(e){var t=e.prop("colSpan")-1;t<=1?(e.removeAttr(_),e.attr(p)===v&&e.attr(p,m)):e.attr(_,t)}}),U=H.extend({exec:function(){var n,i,o,s,l,d=this.lockRange(),c=a.closest(d.endContainer,[C,S]);return c?(n=a.closest(c,w),i=c.parentNode,o=a.findNodeIndex(c,!0),s=i.children[o+1],this.immutables()&&r.Immutables.immutableParent(c)?(this.releaseRange(d),t):(this._mapColIndices(n),o=parseInt(e(c).attr("col-index"),10),s=e(i).find("[col-index="+(o+1+this._getColspan(c)-1)+"]").get(0),s&&s.rowSpan===c.rowSpan&&c.tagName===s.tagName?(l=this._getColspan(c)+this._getColspan(s),e(c).prop(_,l).append(a.emptyNode(s)?"":"<br/>"+s.innerHTML),e(c).width(c.offsetWidth),e(s).remove(),c.getAttribute(p)===m&&c.setAttribute(p,v),c.getAttribute(p)===v&&this._adjustColgroups(i,n),e(n).find("[headers]").length>0&&this._associateHeaderIds(n),this._clearColIndexAttr(n),this.releaseRange(d),this._resetTableResizing(this.editor),t):(this._clearColIndexAttr(n),this.releaseRange(d),t))):(this.releaseRange(d),t)},_getColspan:function(e){return parseInt(e.getAttribute(_),10)||1}}),j=H.extend({exec:function(){var n,i,o,s,l,d,c,u=this.lockRange(),h=a.closest(u.endContainer,[C,S]);return h?(n=a.closest(h,x),i=a.closest(h,[k,y]),o=a.closest(h,w),s=a.findNodeIndex(h,!0),l=a.findNodeIndex(n,!0),l+1===i.rows.length?(this.releaseRange(u),t):(d=i.rows[l+this._getRowspan(h)],c=d&&d.children[s],this.immutables()&&r.Immutables.immutableParent(h)?(this.releaseRange(u),t):(this._mapColIndices(o),s=e(h).attr("col-index"),c=e(d).find("[col-index="+s+"]").get(0),c&&c.colSpan===h.colSpan&&h.tagName===c.tagName?(e(h).prop(b,this._getRowspan(h)+this._getRowspan(c)).append(a.emptyNode(c)?"":"<br/>"+c.innerHTML),h.getAttribute(p)===f&&h.setAttribute(p,g),e(c).remove(),e(o).find("[headers]").length>0&&this._associateHeaderIds(o),this._clearColIndexAttr(o),this.releaseRange(u),t):(this._clearColIndexAttr(o),this.releaseRange(u),t)))):(this.releaseRange(u),t)},_getRowspan:function(e){return parseInt(e.getAttribute(b),10)||1}}),q=H.extend({exec:function(){var n=this.lockRange(),i=this.options.type,o="row"===i?_:b,s=a.closest(n.endContainer,[C,S]),l=a.closest(s,[k,y]),d=a.closest(s,w),c=a.createEmptyNode(this.editor.document,s.nodeName.toLowerCase());return!s||this.immutables()&&r.Immutables.immutableParent(s)?(this.releaseRange(n),t):(this._mapColIndices(d),"row"===i&&e(s).is("["+o+"]")?this._splitCellHorizontally(s,l,o,c):"column"===i&&e(s).is("["+o+"]")&&this._splitCellVertically(s,l,o,c),e(s).prop(o.toLowerCase())<=1&&e(s).removeAttr(o),e(d).find("[headers]").length>0&&this._associateHeaderIds(d),this._clearColIndexAttr(d),this.releaseRange(n),t)},_getRowspanValue:function(e){return parseInt(e.getAttribute(b),10)},_getColspanValue:function(e){return parseInt(e.getAttribute(_),10)},_splitCellHorizontally:function(t,n,i,o){var r=t.rowSpan,a=t.colSpan,s=e(o),l=Math.floor(a/2);l>1&&s.attr(_,l),r>1&&s.attr(b,r),e(t).prop(i,a-l).after(s),e(t).width(t.offsetWidth),s.width(s[0].offsetWidth),t.hasAttribute(p)&&(t.getAttribute(p)===v?(s.attr(p,m),t.getAttribute(_)&&"1"!==t.getAttribute(_)||t.setAttribute(p,m),this._adjustColgroups(t.parentNode,n.parentNode)):s.attr(p,t.getAttribute(p)))},_splitCellVertically:function(t,n,i,o){var r=a.closest(t,x),s=parseInt(e(t).attr("col-index"),10),l=a.findNodeIndex(r,!0),d=t.rowSpan,c=t.colSpan,u=Math.floor(d/2),h=e(n).find(x).eq(l+d-u),m=this._findNextTdInRow(h,s+c),v=e(o);u>1&&v.attr(b,u),c>1&&v.attr(_,c),m&&m.length?m.before(v):h.append(v),e(t).prop(i,d-u),t.hasAttribute(p)&&(t.getAttribute(p)===g?(v.attr(p,f),t.getAttribute(b)&&"1"!==t.getAttribute(b)||t.setAttribute(p,f)):v.attr(p,t.getAttribute(p)))}}),G=T.extend({command:function(e){var t={row:{insert:N,"delete":V,merge:U,split:q},column:{insert:O,"delete":W,merge:j,split:q}};return e=i(e,this.options),e.action=e.action||"insert",new t[e.type][e.action](e)},initialize:function(e,t){T.fn.initialize.call(this,e,t),e.addClass("k-state-disabled"),e.attr("disabled","disabled")},update:function(e,t){var n=!P.isFormatted(t);n===!0?(e.parent().addClass("k-hidden k-state-disabled"),e.attr("disabled","disabled"),e.addClass("k-state-disabled")):(e.parent().removeClass("k-hidden k-state-disabled"),e.removeAttr("disabled"),e.removeClass("k-state-disabled"))}});i(n.ui.editor,{PopupTool:B,TableCommand:z,InsertTableTool:L,TableModificationTool:G,InsertRowCommand:N,InsertColumnCommand:O,DeleteRowCommand:V,DeleteColumnCommand:W,MergeCellsHorizontallyCommand:U,MergeCellsVerticallyCommand:j,SplitCellCommand:q}),I("createTable",new L({template:new D({template:s.buttonTemplate,popup:!0,title:"Create table"})})),I("addColumnLeft",new G({type:"column",position:"before",template:new D({template:s.buttonTemplate,title:"Add column on the left"})})),I("addColumnRight",new G({type:"column",template:new D({template:s.buttonTemplate,title:"Add column on the right"})})),I("addRowAbove",new G({type:"row",position:"before",template:new D({template:s.buttonTemplate,title:"Add row above"})})),I("addRowBelow",new G({type:"row",template:new D({template:s.buttonTemplate,title:"Add row below"})})),I("deleteRow",new G({type:"row",action:"delete",template:new D({template:s.buttonTemplate,title:"Delete row"})})),I("deleteColumn",new G({type:"column",action:"delete",template:new D({template:s.buttonTemplate,title:"Delete column"})})),I("mergeCellsHorizontally",new G({type:"row",action:"merge",template:new D({template:s.buttonTemplate,title:"Merge Cell Right"})})),I("mergeCellsVertically",new G({type:"column",action:"merge",template:new D({template:s.buttonTemplate,title:"Merge Cell Down"})})),I("splitCellHorizontally",new G({type:"row",action:"split",template:new D({template:s.buttonTemplate,title:"Split Cell"})})),I("splitCellVertically",new G({type:"column",action:"split",template:new D({template:s.buttonTemplate,title:"Split Cell"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/clipboard.min",["editor/command.min"],e)}(function(){!function(e){var t=window.kendo,n=t.Class,i=t.ui.editor,o=i.RangeUtils,r=i.Dom,a=i.RestorePoint,s=i.Marker,l=t.support.browser,d=e.extend,c=n.extend({init:function(e){this.editor=e;var t=e.options.pasteCleanup;this.cleaners=[new h(t),new p(t),new f(t),new m(t),new v(t),new _(t),new y(t),new x(t)]},htmlToFragment:function(e){var t=this.editor,n=t.document,i=r.create(n,"div"),o=n.createDocumentFragment();for(i.innerHTML=e;i.firstChild;)o.appendChild(i.firstChild);return o},isBlock:function(e){return/<(div|p|ul|ol|table|h[1-6])/i.test(e)},_startModification:function(){var e,t,n=this.editor;if(!this._inProgress)return this._inProgress=!0,e=n.getRange(),t=new a(e,n.body),r.persistScrollTop(n.document),{range:e,restorePoint:t}},_endModification:function(e){i._finishUpdate(this.editor,e.restorePoint),this.editor._selectionChange(),this._inProgress=!1},_contentModification:function(e,t){var n=this,i=n.editor,o=n._startModification();o&&(e.call(n,i,o.range),setTimeout(function(){t.call(n,i,o.range),n._endModification(o)}))},_removeBomNodes:function(e){var t,n=o.textNodes(e);for(t=0;t<n.length;t++)n[t].nodeValue=r.stripBom(n[t].nodeValue)||n[t].nodeValue},_onBeforeCopy:function(e){var t=new s;t.add(e),this._removeBomNodes(e),t.remove(e),this.editor.selectRange(e)},oncopy:function(){this._onBeforeCopy(this.editor.getRange())},oncut:function(){this._onBeforeCopy(this.editor.getRange()),this._contentModification(e.noop,e.noop)},_fileToDataURL:function(t){var n=e.Deferred(),i=new FileReader;return t instanceof window.File||!t.getAsFile||(t=t.getAsFile()),i.onload=e.proxy(n.resolve,n),i.readAsDataURL(t),n.promise()},_triggerPaste:function(e,t){var n={html:e||""};n.html=n.html.replace(/\ufeff/g,""),this.editor.trigger("paste",n),this.paste(n.html,t||{})},_handleImagePaste:function(e){var t,n;if("FileReader"in window&&!(l.msie&&l.version>10))return t=e.clipboardData||e.originalEvent.clipboardData||window.clipboardData||{},n=t.items||t.files,this._insertImages(n)},_insertImages:function(t){var n,i,o;if(t&&(n=e.grep(t,function(e){return/^image\//i.test(e.type)}),i=e.grep(t,function(e){return/^text\/html/i.test(e.type)}),!i.length&&n.length&&(o=this._startModification())))return e.when.apply(e,e.map(n,this._fileToDataURL)).done(e.proxy(function(){var t=Array.prototype.slice.call(arguments),n=e.map(t,function(e){return'<img src="'+e.target.result+'" />'}).join("");this._triggerPaste(n),this._endModification(o)},this)),!0},onpaste:function(n){if("false"!==this.editor.body.contentEditable){if(this._handleImagePaste(n))return void n.preventDefault();this.expandImmutablesIn(),this._contentModification(function(i,o){var a,s,l,d=r.create(i.document,"div",{className:"k-paste-container",innerHTML:"\ufeff"}),c=t.support.browser,u=i.body;this._decoreateClipboardNode(d,u),u.appendChild(d),c.webkit&&this._moveToCaretPosition(d,o),c.msie&&c.version<11?(n.preventDefault(),a=i.createRange(),a.selectNodeContents(d),i.selectRange(a),s=i.document.body.createTextRange(),s.moveToElementText(d),e(u).unbind("paste"),s.execCommand("Paste"),e(u).bind("paste",e.proxy(this.onpaste,this))):(l=i.createRange(),l.selectNodeContents(d),i.selectRange(l)),o.deleteContents()},function(t,n){var i,o="";t.selectRange(n),i=e(t.body).children(".k-paste-container"),i.each(function(){var e=this.lastChild;e&&r.is(e,"br")&&r.remove(e),o+=this.innerHTML}),i.remove(),this._triggerPaste(o,{clean:!0})})}},ondragover:function(e){(l.msie||l.edge)&&(e.stopPropagation(),e.preventDefault())},ondrop:function(e){var t,n;"FileReader"in window&&(t=(e.originalEvent||e).dataTransfer||{},n=t.items||t.files,this._insertImages(n)&&e.preventDefault())},_decoreateClipboardNode:function(t,n){var i,o,r,a;(l.msie||l.webkit)&&(t=e(t),t.css({borderWidth:"0px",width:"0px",height:"0px",overflow:"hidden",margin:"0",padding:"0"}),l.msie&&(i=e(n.ownerDocument.documentElement),t.css({fontVariant:"normal",fontWeight:"normal",lineSpacing:"normal",lineHeight:"normal",textDecoration:"none"}),o=i.css("color"),o&&t.css("color",o),r=i.css("fontFamily"),r&&t.css("fontFamily",r),a=i.css("fontSize"),a&&t.css("fontSize",a)))},_moveToCaretPosition:function(t,n){var i=this,o=i.editor.body,a=r.offset(t,o),s=i._caretOffset(n,o),l=s.left-a.left,d=s.top-a.top,c="translate("+l+"px,"+d+"px)";e(t).css({"-webkit-transform":c,transform:c})},_caretOffset:function(e,t){var n,i,o,a,s,l,d=this.editor,c=r.create(d.document,"span",{innerHTML:"\ufeff"}),u=e.startContainer;return e.collapsed?(i=r.isDataNode(u),i&&(r.isBom(u)||0===e.startOffset)?r.insertBefore(c,u):i&&e.startOffset===u.length?r.insertAfter(c,u):(e.insertNode(c),n=!0)):(u=u===t?u.childNodes[e.startOffset]:u,r.insertBefore(c,u)),o=r.offset(c,t),a=c.previousSibling,s=c.nextSibling,r.remove(c),n&&r.isDataNode(a)&&r.isDataNode(s)&&!r.isBom(a)&&!r.isBom(s)&&(l=a.length,s.data=a.data+s.data,e.setStart(s,l),r.remove(a),e.collapse(!0),d.selectRange(e)),o},expandImmutablesIn:function(e){var n,i,o,r=this.editor;r&&r.options.immutables&&(n=r.body,e=e||r.getRange(),t.ui.editor.Immutables.expandImmutablesIn(e),e.startContainer===n&&0===e.startOffset&&(i=n.ownerDocument,o=i.createTextNode("\ufeff"),n.insertBefore(o,n.childNodes[0]),e.setStartBefore(o)),r.selectRange(e))},splittableParent:function(e,t){var n,i;if(e)return r.closestEditableOfType(t,["p","ul","ol"])||t.parentNode;if(n=t.parentNode,i=t.ownerDocument.body,r.isInline(n))for(;n.parentNode!=i&&!r.isBlock(n.parentNode);)n=n.parentNode;return n},paste:function(t,n){var i,a,l,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C=this.editor;if(this.expandImmutablesIn(),n=d({clean:!1,split:!0},n),!n.skipCleaners)for(i=0,a=this.cleaners.length;i<a;i++)this.cleaners[i].applicable(t)&&(t=this.cleaners[i].clean(t));if(n.clean&&(t=t.replace(/(<br>(\s|&nbsp;)*)+(<\/?(div|p|li|col|t))/gi,"$3"),t=t.replace(/<(a|span)[^>]*><\/\1>/gi,"")),t=t.replace(/<(a|span|font)([^>]*)> <\/\1>/gi,"<$1$2>&nbsp;</$1>"),t=t.replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>"),c=this.isBlock(t),C.focus(),u=C.getRange(),u.deleteContents(),u.startContainer==C.document&&u.selectNodeContents(C.body),h=new s,p=h.addCaret(u),f=this.splittableParent(c,p),m=!1,g=f!=C.body&&!r.is(f,"td"),n.split&&g&&(c||r.isInline(f))&&(u.selectNode(p),o.split(u,f,!0),m=!0),v=this.htmlToFragment(t),v.firstChild&&"k-paste-container"===v.firstChild.className){for(_=[],i=0,a=v.childNodes.length;i<a;i++)_.push(v.childNodes[i].innerHTML);v=this.htmlToFragment(_.join("<br />"))}if(l=v.childNodes,e(l).filter("table").addClass("k-table").end().find("table").addClass("k-table"),e(l).each(function(e,t){r.isBlock(t)&&!r.isSelfClosing(t)&&""===t.innerHTML&&t.appendChild(C.document.createTextNode("\ufeff"))}),u.insertNode(v),f=this.splittableParent(c,p),m){for(;p.parentNode!=f;)r.unwrap(p.parentNode);r.unwrap(p.parentNode)}if(r.normalize(u.commonAncestorContainer),p.style.display="inline",r.restoreScrollTop(C.document),r.scrollTo(p),h.removeCaret(u),b=u.commonAncestorContainer.parentNode,(u.collapsed&&"tbody"==r.name(b)||u.collapsed&&"thead"==r.name(b))&&(u.setStartAfter(e(b).closest("table")[0]),u.collapse(!0)),w=e(u.commonAncestorContainer.parentNode).closest("table"),w.get(0)){for(k=w.parent().contents(),y=k.length-1,x=k.get(y);null!==x.nodeValue&&(" "===x.nodeValue||""===x.nodeValue);)y-=1,x=k.get(y);x!==w.get(0)||w.parents("table").length||r.insertAfter(r.createEmptyNode(C.document,"p"),w[0])}C.selectRange(u)}}),u=n.extend({init:function(e){this.options=e||{},this.replacements=[]},clean:function(e,t){var n,i,o=this,r=t||o.replacements;for(n=0,i=r.length;n<i;n+=2)e=e.replace(r[n],r[n+1]);return e}}),h=u.extend({init:function(e){u.fn.init.call(this,e),this.replacements=[/<(\/?)script([^>]*)>/i,"<$1telerik:script$2>"]},applicable:function(e){return!this.options.none&&/<script[^>]*>/i.test(e)}}),p=u.extend({init:function(e){u.fn.init.call(this,e);var t=" ";this.replacements=[/<span\s+class="Apple-tab-span"[^>]*>\s*<\/span>/gi,t,/\t/gi,t,/&nbsp;&nbsp; &nbsp;/gi,t]},applicable:function(e){return/&nbsp;&nbsp; &nbsp;|class="?Apple-tab-span/i.test(e)}}),f=u.extend({init:function(e){u.fn.init.call(this,e),this.junkReplacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/&quot;/g,"'",/<o:p>&nbsp;<\/o:p>/gi,"&nbsp;",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/gi,"",/<\/o>/g,""],this.replacements=this.junkReplacements.concat([/(?:<br>&nbsp;[\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br>&nbsp;[\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>(?!\n)/g," ",/<table([^>]*)>(\s|&nbsp;)+<t/gi,"<table$1><t",/<tr[^>]*>(\s|&nbsp;)*<\/tr>/gi,"",/<tbody[^>]*>(\s|&nbsp;)*<\/tbody>/gi,"",/<table[^>]*>(\s|&nbsp;)*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*(&nbsp;)+/gi,"",/(&nbsp;|<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/gi,"",/<(\/?)b(\s[^>]*)?>/gi,"<$1strong$2>",/<(\/?)font(\s[^>]*)?>/gi,this.convertFontMatch,/<(\/?)i(\s[^>]*)?>/gi,"<$1em$2>",/style=(["|'])\s*\1/g,"",/(<br[^>]*>)?\n/g,function(e,t){return t?e:" "}]);
},convertFontMatch:function(e,t,n){var i=/face=['"]([^'"]+)['"]/i,o=i.exec(n),r=n&&o&&o[1];return t?"</span>":r?'<span style="font-family:'+r+'">':"<span>"},applicable:function(e){return/class="?Mso/i.test(e)||/style="[^"]*mso-/i.test(e)||/urn:schemas-microsoft-com:office/.test(e)},stripEmptyAnchors:function(e){return e.replace(/<a([^>]*)>\s*<\/a>/gi,function(e,t){return!t||t.indexOf("href")<0?"":e})},listType:function(e,t){var n,i=e.innerHTML,o=r.innerText(e),a=i.match(/^(?:<span [^>]*texhtml[^>]*>)?<span [^>]*(?:Symbol|Wingdings)[^>]*>([^<]+)/i),s=a&&a[1],l=/^[a-z\d]/i.test(s),d=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return a&&(n=!0),i=i.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),!n&&/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(i)||n&&/^.\u00a0+/.test(i)||s&&!l&&t?{tag:"ul",style:this._guessUnorderedListStyle(d(o))}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(i)?{tag:"ol",style:this._guessOrderedListStyle(d(o))}:void 0},_convertToLi:function(e){var t,n=r.name(e);return 1==e.childNodes.length?t=e.firstChild.nodeType===r.nodeTypes.TEXT_NODE?r.innerText(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(r.remove(e.firstChild),3==e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&r.remove(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&r.remove(e.firstChild),t="p"!=n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),r.remove(e),r.create(document,"li",{innerHTML:t})},_guessUnorderedListStyle:function(e){return/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(e)?null:/^o/.test(e)?"circle":"square"},_guessOrderedListStyle:function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},extractListLevels:function(e){var n=/style=['"]?[^'"]*?mso-list:\s?[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi;return e=e.replace(n,function(e,n,i){return t.format('data-list="{0}" data-level="{1}" {2}',n,i,e)})},_createList:function(e,t){return r.create(document,e,{style:{listStyleType:t}})},lists:function(t){var n,i,o,a,s,d,c,u,h,p,f,m,g,v,_,b,w=e(t).find(r.blockElements.join(",")),k=-1,y={},x=["p","h1","h2","h3","h4","h5","h6"],C=!1;for(u=0;u<w.length;u++)h=w[u],g=e(h).data(),v=g.list,n=r.name(h),C=!!e(h).parents("table").length,C||(_=this.listType(h,g),p=_&&_.tag,!p||x.indexOf(n)<0?h.innerHTML?i&&!d&&i.appendChild(h):r.remove(h):l.msie||(f=g.level||parseFloat(h.style.marginLeft||0),b=p+v,y[f]||(y[f]={}),(!o||o<0)&&(o=f,a=v,s=e(t).find("[data-list='"+a+"']:last")[0],c=this._createList(p,_.style),r.insertBefore(c,h),k=f,y[f][b]=c),d=s===h,m=y[f][b],(f>k||!m)&&(m=this._createList(p,_.style),y[f][b]=m,i.appendChild(m)),i=this._convertToLi(h),m.appendChild(i),d?o=k=-1:k=f))},removeAttributes:function(e){for(var t=e.attributes,n=t.length;n--;)"colspan"!=r.name(t[n])&&e.removeAttributeNode(t[n])},createColGroup:function(n){var i=n.cells,o=e(n).closest("table"),r=o.children("colgroup");i.length<2||(r.length&&(i=r.children(),r[0].parentNode.removeChild(r[0])),r=e(e.map(i,function(e){var n=e.width;return n&&0!==parseInt(n,10)?t.format('<col style="width:{0}px;"/>',n):"<col />"}).join("")),r.is("colgroup")||(r=e("<colgroup/>").append(r)),r.prependTo(o))},convertHeaders:function(t){var n,i=t.cells,o=e.map(i,function(t){var n=e(t).children("p").children("strong")[0];if(n&&"strong"==r.name(n))return n});if(o.length==i.length){for(n=0;n<o.length;n++)r.unwrap(o[n]);for(e(t).closest("table").find("colgroup").after("<thead></thead>").end().find("thead").append(t),n=0;n<i.length;n++)r.changeTag(i[n],"th")}},removeParagraphs:function(t){var n,i,o,a,s;for(n=0;n<t.length;n++)for(this.removeAttributes(t[n]),a=e(t[n]),s=a.children("p"),i=0,o=s.length;i<o;i++)i<o-1&&r.insertAfter(r.create(document,"br"),s[i]),r.unwrap(s[i])},removeDefaultColors:function(e){for(var t=0;t<e.length;t++)/^\s*color:\s*[^;]*;?$/i.test(e[t].style.cssText)&&r.unwrap(e[t])},tables:function(t){var n,i,o,r,a,s=e(t).find("table"),l=this;for(r=0;r<s.length;r++){for(n=s[r].rows,o=i=n[0],a=1;a<n.length;a++)n[a].cells.length>o.cells.length&&(o=n[a]);l.createColGroup(o),l.convertHeaders(i),l.removeAttributes(s[r]),l.removeParagraphs(s.eq(r).find("td,th")),l.removeDefaultColors(s.eq(r).find("span"))}},headers:function(t){var n,i=e(t).find("p.MsoTitle");for(n=0;n<i.length;n++)r.changeTag(i[n],"h1")},removeFormatting:function(t){e(t).find("*").each(function(){e(this).css({fontSize:"",fontFamily:""}),this.getAttribute("style")||this.style.cssText||this.removeAttribute("style")})},clean:function(e){var t,n=this,i=this.options;return i.none?(e=u.fn.clean.call(n,e,this.junkReplacements),e=n.stripEmptyAnchors(e)):(e=i.msConvertLists?this.extractListLevels(e):e,e=u.fn.clean.call(n,e),e=n.stripEmptyAnchors(e),t=r.create(document,"div",{innerHTML:e}),n.headers(t),i.msConvertLists&&n.lists(t),n.tables(t),i.msAllFormatting&&n.removeFormatting(t),e=t.innerHTML.replace(/(<[^>]*)\s+class="?[^"\s>]*"?/gi,"$1")),e}}),m=u.extend({init:function(e){u.fn.init.call(this,e),this.replacements=[/\s+class="Apple-style-span[^"]*"/gi,"",/<(div|p|h[1-6])\s+style="[^"]*"/gi,"<$1",/^<div>(.*)<\/div>$/,"$1"]},applicable:function(e){return/class="?Apple-style-span|style="[^"]*-webkit-nbsp-mode/i.test(e)}}),g=u.extend({clean:function(e){var t=r.create(document,"div",{innerHTML:e});return t=this.cleanDom(t),t.innerHTML},cleanDom:function(e){return e}}),v=g.extend({cleanDom:function(t){var n=this.collectTags();return e(t).find(n).each(function(){r.unwrap(this)}),t},collectTags:function(){if(this.options.span)return"span"},applicable:function(){return this.options.span}}),_=g.extend({cleanDom:function(t){var n=this.collectAttr(),i=e(t).find("["+n.join("],[")+"]");return i.removeAttr(n.join(" ")),t},collectAttr:function(){return this.options.css?["class","style"]:[]},applicable:function(){return this.options.css}}),b=function(){this.text="",this.add=function(e){this.text+=e}},w=n.extend({init:function(e){this.separators=e||{text:" ",line:"<br/>"},this.lines=[],this.inlineBlockText=[],this.resetLine()},appendText:function(e){3===e.nodeType&&(e=e.nodeValue),this.textContainer.add(e)},appendInlineBlockText:function(e){this.inlineBlockText.push(e)},flashInlineBlockText:function(){this.inlineBlockText.length&&(this.appendText(this.inlineBlockText.join(" ")),this.inlineBlockText=[])},endLine:function(){this.flashInlineBlockText(),this.resetLine()},html:function(){var e,t,n,i,o,r,a,s,l=this.separators,d="",c=this.lines;for(this.flashInlineBlockText(),e=0,t=c.length,n=t-1;e<t;e++){for(i=c[e],o=0,r=i.length,a=r-1;o<r;o++)s=i[o].text,d+=s,o!==a&&(d+=l.text);e!==n&&(d+=l.line)}return d},resetLine:function(){this.textContainer=new b,this.line=[],this.line.push(this.textContainer),this.lines.push(this.line)}}),k=n.extend({init:function(e){this.callback=e},enumerate:function(e){var t,n;e&&(t=this.callback(e),n=e.firstChild,!t&&n&&this.enumerate(n),this.enumerate(e.nextSibling))}}),y=u.extend({init:function(t){u.fn.init.call(this,t),this.hasText=!1,this.enumerator=new k(e.proxy(this.buildText,this))},clean:function(e){var t=r.create(document,"div",{innerHTML:e});return this.cleanDom(t)},cleanDom:function(e){return this.separators=this.getDefaultSeparators(),this.htmlLines=new w(this.separators),this.enumerator.enumerate(e.firstChild),this.hasText=!1,this.htmlLines.html()},buildText:function(e){if(r.isDataNode(e)){if(r.isEmptyspace(e))return;this.htmlLines.appendText(e.nodeValue.replace("\n",this.separators.line)),this.hasText=!0}else{if(r.isBlock(e)&&this.hasText){var t=this.actions[r.name(e)]||this.actions.block;return t(this,e)}r.isBr(e)&&this.htmlLines.appendText(this.separators.line)}},applicable:function(){var e=this.options;return e.all||e.keepNewLines},getDefaultSeparators:function(){return this.options.all?{text:" ",line:" "}:{text:" ",line:"<br/>"}},actions:{ul:e.noop,ol:e.noop,table:e.noop,thead:e.noop,tbody:e.noop,td:function(e,t){var n=new y({all:!0}),i=n.cleanDom(t);return e.htmlLines.appendInlineBlockText(i),!0},block:function(e){e.htmlLines.endLine()}}}),x=u.extend({clean:function(e){return this.options.custom(e)},applicable:function(){return"function"==typeof this.options.custom}});d(i,{Clipboard:c,Cleaner:u,ScriptCleaner:h,TabCleaner:p,MSWordFormatCleaner:f,WebkitFormatCleaner:m,HtmlTagsCleaner:v,HtmlAttrCleaner:_,HtmlContentCleaner:y,HtmlTextLines:w,CustomCleaner:x})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/keyboard.min",["editor/command.min"],e)}(function(){!function(e){function t(e,t){return t.startContainer===e&&t.endContainer===e&&0===t.startOffset&&t.endOffset==e.childNodes.length}function n(e,t,n){for(var i=e?e[t]:null;i&&!n(i);)i=i[t];return i}var i=window.kendo,o=i.Class,r=i.ui.editor,a=r.RangeUtils,s=r.Dom,l=r.RestorePoint,d=r.Marker,c=i.support.browser,u="<span  class='k-br'>\ufeff</span>",h=e.extend,p=s.nodeTypes,f="previousSibling",m="td,th,caption",g="table,tbody,thead,tfoot,tr",v=g+","+m,_=function(t){return!t.collapsed&&e(t.commonAncestorContainer).is(g)},b=o.extend({remove:function(t){var n,i,o,r,l,c,u,h=this,p=new d;p.add(t,!1),n=a.getAll(t,function(t){return e(t).is(v)}),i=a.documentFromRange(t),o=p.start,r=p.end,l=m.split(","),c=s.parentOfType(o,l),u=s.parentOfType(r,l),h._removeContent(o,c,!0),h._removeContent(r,u,!1),e(n).each(function(t,n){n=e(n),(n.is(m)?n:n.find(m)).each(function(e,t){t.innerHTML="&#65279;"})}),c&&!o.previousSibling&&s.insertBefore(i.createTextNode("\ufeff"),o),u&&!r.nextSibling&&s.insertAfter(i.createTextNode("\ufeff"),r),c?t.setStartBefore(o):n[0]&&(c=e(n[0]),c=c.is(m)?c:c.find(m).first(),c.length&&t.setStart(c.get(0),0)),t.collapse(!0),s.remove(o),s.remove(r)},_removeContent:function(t,n,i){if(n){var o,r=i?"nextSibling":"previousSibling",a=function(t){for(;t&&!t[r];)t=t.parentNode;return t&&e.contains(n,t)?t[r]:null};for(t=a(t);t;)o=a(t),s.remove(t),t=o}}}),w=o.extend({init:function(e){this.editor=e},keydown:function(n){var i,o,a,s,d=this,u=d.editor,p=u.keyboard,f=p.isTypingKey(n),m=h(e.Event(),n);return d.editor.trigger("keydown",m),m.isDefaultPrevented()?(n.preventDefault(),!0):!(m.isDefaultPrevented()||!f||p.isTypingInProgress())&&(i=u.getRange(),o=u.body,d.startRestorePoint=new l(i,o),_(i)&&(a=new b(u),a.remove(i),u.selectRange(i)),c.webkit&&!i.collapsed&&t(o,i)&&(o.innerHTML=""),u.immutables&&r.Immutables.immutablesContext(i)&&(s=new r.BackspaceHandler(u),s.deleteSelection(i)),p.startTyping(function(){d.endRestorePoint=r._finishUpdate(u,d.startRestorePoint)}),!0)},keyup:function(e){var t=this.editor.keyboard;return this.editor.trigger("keyup",e),!!t.isTypingInProgress()&&(t.endTyping(),!0)}}),k=o.extend({init:function(e){this.editor=e},_addCaret:function(e){var t=s.create(this.editor.document,"a");return!i.support.browser.chrome&&e.firstChild&&e.firstChild.nodeType===p.ELEMENT_NODE&&(e=e.firstChild),s.insertAt(e,t,0),s.stripBomNode(t.previousSibling),s.stripBomNode(t.nextSibling),t},_restoreCaret:function(e){var t=this.editor.createRange();!e.nextSibling&&s.isDataNode(e.previousSibling)?t.setStart(e.previousSibling,e.previousSibling.length):t.setStartAfter(e),t.collapse(!0),this.editor.selectRange(t),s.remove(e)},_handleDelete:function(e){var t,n,i=e.endContainer,o=s.closestEditableOfType(i,s.blockElements);return!(!o||!r.RangeUtils.isEndOf(e,o))&&(t=s.next(o),!(!t||"p"!=s.name(t))&&(n=this._addCaret(t),this._merge(o,t),this._restoreCaret(n),!0))},_cleanBomBefore:function(e){for(var t=e.startOffset,n=e.startContainer,i=n.nodeValue,o=0;t-o>=0&&"\ufeff"==i[t-o-1];)o++;o>0&&(n.deleteData(t-o,o),e.setStart(n,Math.max(0,t-o)),e.collapse(!0),this.editor.selectRange(e))},_handleBackspace:function(t){var i,o,a,l,d,c,u,h,p,m,g,v,_,b=t.startContainer,w=s.closestEditableOfType(b,["li"]),k=s.closestEditableOfType(b,"p,h1,h2,h3,h4,h5,h6".split(",")),y=this.editor;if(s.isDataNode(b)){if(t.collapsed&&/^\s[\ufeff]+$/.test(b.nodeValue))return t.setStart(b,0),t.setEnd(b,b.length),y.selectRange(t),!1;this._cleanBomBefore(t)}return i=n(k,f,function(e){return!s.htmlIndentSpace(e)}),t.collapsed&&t.startOffset!==t.endOffset&&t.startOffset<0&&(t.startOffset=0,t.endOffset=0,y.selectRange(t)),o=w&&r.RangeUtils.isStartOf(t,w),a=w&&e(w).index(),l=o&&a>0,l&&(k=w,i=s.prev(w)),k&&i&&s.is(i,"table")&&r.RangeUtils.isStartOf(t,k)?(""===k.innerText&&(k.innerHTML="\ufeff"),!0):r.RangeUtils.isStartOf(t,k)&&parseInt(k.style.marginLeft,10)>0?(y.exec("outdent"),!0):k&&i&&r.RangeUtils.isStartOf(t,k)||l?(d=this._addCaret(k),this._merge(i,k),this._restoreCaret(d),!0):o&&0===a?(c=w.firstChild,c||(w.innerHTML=r.emptyElementContent,c=w.firstChild),u=new r.ListFormatter(s.name(w.parentNode),"p"),t.selectNodeContents(w),u.toggle(t),s.insignificant(c)?t.setStartBefore(c):t.setStart(c,0),y.selectRange(t),!0):(h=b.childNodes[t.startOffset-1],p=t,m=h&&s.closestEditableOfType(h,["a"]),g=n(h||b,f,function(e){return!s.isDataNode(e)||!s.isBom(e)&&e.length>0}),(m||(0===t.startOffset||h)&&s.is(g,"a"))&&(m=m||g,p=y.createRange(),p.setStart(m,m.childNodes.length),p.collapse(!0)),m=m||s.closestEditableOfType(h||p.startContainer,["a"]),v=m&&r.RangeUtils.isEndOf(p,m),v&&(_=new r.UnlinkCommand({range:p,body:y.body,immutables:!!y.immutables}),y.execCommand(_),y._selectionChange()),!1)},_handleSelection:function(t){var n,i,o,a,l,c=t.commonAncestorContainer,u=s.closest(c,"table"),h=r.emptyElementContent,p=this.editor;return _(t)?(i=new b(p),i.remove(t),p.selectRange(t),!0):(o=new d,o.add(t,!1),t.commonAncestorContainer===p.body&&this._surroundFullyContent(o,t),p.immutables&&this._handleImmutables(o),this._surroundFullySelectedAnchor(o,t),t.setStartAfter(o.start),t.setEndBefore(o.end),a=t.startContainer,l=t.endContainer,t.deleteContents(),"li"===l.tagName.toLocaleLowerCase()&&s.emptyNode(l)&&(t.selectNode(l),t.deleteContents()),u&&""===e(u).text()&&(t.selectNode(u),t.deleteContents()),c=t.commonAncestorContainer,"p"===s.name(c)&&""===c.innerHTML&&(c.innerHTML=h,t.setStart(c,0)),this._join(a,l),s.insertAfter(p.document.createTextNode("\ufeff"),o.start),o.remove(t),a=t.startContainer,"tr"==s.name(a)&&(a=a.childNodes[Math.max(0,t.startOffset-1)],t.setStart(a,s.getNodeLength(a))),t.collapse(!0),p.selectRange(t),n=a.parentElement||a.parentNode,s.isDataNode(a)&&!s.emptyNode(n)&&this._cleanBomBefore(t),!0)},_handleImmutables:function(e){var t=r.Immutables.immutableParent,n=t(e.start),i=t(e.start);n&&s.insertBefore(e.start,n),i&&s.insertAfter(e.end,i),n&&s.remove(n),i&&i.parentNode&&s.remove(i)},_surroundFullyContent:function(e,t){var n=t.commonAncestorContainer.children,i=n[0],o=n[n.length-1];this._moveMarker(e,t,i,o)},_surroundFullySelectedAnchor:function(t,n){var i=t.start,o=e(i).closest("a").get(0),r=t.end,a=e(r).closest("a").get(0);this._moveMarker(t,n,o,a)},_moveMarker:function(e,t,n,i){var o=e.start,r=e.end;n&&a.isStartOf(t,n)&&s.insertBefore(o,n),i&&a.isEndOf(t,i)&&s.insertAfter(r,i)},_root:function(e){for(;e&&"body"!=s.name(e)&&e.parentNode&&"body"!=s.name(e.parentNode);)e=e.parentNode;return e},_join:function(e,t){e=this._root(e),t=this._root(t),e!=t&&s.is(t,"p")&&this._merge(e,t)},_merge:function(e,t){for(s.removeTrailingBreak(e);e&&t.firstChild;)1==e.nodeType?(e=s.list(e)?e.children[e.children.length-1]:e,e&&e.appendChild(t.firstChild)):e.nodeType===p.TEXT_NODE?this._mergeWithTextNode(e,t.firstChild):e.parentNode.appendChild(t.firstChild);s.remove(t)},_mergeWithTextNode:function(e,t){e&&e.nodeType===p.TEXT_NODE&&(e.nextSibling&&this._isCaret(e.nextSibling)?s.insertAfter(t,e.nextSibling):s.insertAfter(t,e))},_isCaret:function(t){return e(t).is("a")},keydown:function(e){var t,n,o=this.editor,a=o.getRange(),s=e.keyCode,d=i.keys,c=s===d.BACKSPACE,u=s==d.DELETE;o.immutables&&o.immutables.keydown(e,a)||(!c&&!u||a.collapsed?c?t="_handleBackspace":u&&(t="_handleDelete"):t="_handleSelection",t&&(n=new l(a,o.body),this[t](a)&&(e.preventDefault(),r._finishUpdate(o,n))))},deleteSelection:function(e){this._handleSelection(e)},keyup:e.noop}),y=o.extend({init:function(e){this.editor=e,this.systemCommandIsInProgress=!1},createUndoCommand:function(){this.startRestorePoint=this.endRestorePoint=r._finishUpdate(this.editor,this.startRestorePoint)},changed:function(){return!!this.startRestorePoint&&this.startRestorePoint.html!=this.editor.body.innerHTML},keydown:function(e){var t=this,n=t.editor,i=n.keyboard;return i.isModifierKey(e)?(i.isTypingInProgress()&&i.endTyping(!0),t.startRestorePoint=new l(n.getRange(),n.body),!0):!!i.isSystem(e)&&(t.systemCommandIsInProgress=!0,t.changed()&&(t.systemCommandIsInProgress=!1,t.createUndoCommand()),!0)},keyup:function(){var e=this;return!(!e.systemCommandIsInProgress||!e.changed())&&(e.systemCommandIsInProgress=!1,e.createUndoCommand(),!0)}}),x=o.extend({init:function(e){this.editor=e},keydown:function(e){!c.webkit||e.isDefaultPrevented()||!e.ctrlKey||65!=e.keyCode||e.altKey||e.shiftKey||(this.editor.options.immutables&&this._toSelectableImmutables(),this._selectEditorBody())},_selectEditorBody:function(){var e=this.editor,t=e.getRange();t.selectNodeContents(e.body),setTimeout(function(){e.selectRange(t)})},_toSelectableImmutables:function(){for(var t=this.editor,n=t.body,i=r.Immutables.immutable,o=s.emptyTextNode,a=n.firstChild,l=n.lastChild;o(a);)a=a.nextSibling;for(;o(l);)l=l.previousSibling;a&&i(a)&&e(u).prependTo(n),l&&i(l)&&e(u).appendTo(n)},keyup:e.noop}),C=o.extend({init:function(e){this.handlers=e,this.typingInProgress=!1},isCharacter:function(e){return e>=48&&e<=90||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||229==e},toolFromShortcut:function(t,n){var i,o,r=String.fromCharCode(n.keyCode),a=this._getShortcutModifier(n,navigator.platform);for(i in t)if(o=e.extend({ctrl:!1,alt:!1,shift:!1},t[i].options),(o.key==r||o.key==n.keyCode)&&o.ctrl==a&&o.alt==n.altKey&&o.shift==n.shiftKey)return i},_getShortcutModifier:function(e,t){var n=t.toUpperCase().indexOf("MAC")>=0;return n?e.metaKey:e.ctrlKey},toolsFromShortcut:function(t,n){var i,o,r,a=String.fromCharCode(n.keyCode),s=[],l=function(e){return e==a||e==n.keyCode||e==n.charCode};for(i in t)o=e.extend({ctrl:!1,alt:!1,shift:!1},t[i].options),r=e.isArray(o.key)?e.grep(o.key,l).length>0:l(o.key),r&&o.ctrl==n.ctrlKey&&o.alt==n.altKey&&o.shift==n.shiftKey&&s.push(t[i]);return s},isTypingKey:function(e){var t=e.keyCode;return this.isCharacter(t)&&!e.ctrlKey&&!e.altKey||32==t||13==t||8==t||46==t&&!e.shiftKey&&!e.ctrlKey&&!e.altKey},isModifierKey:function(e){var t=e.keyCode;return 17==t&&!e.shiftKey&&!e.altKey||16==t&&!e.ctrlKey&&!e.altKey||18==t&&!e.ctrlKey&&!e.shiftKey},isSystem:function(e){return 46==e.keyCode&&e.ctrlKey&&!e.altKey&&!e.shiftKey},startTyping:function(e){this.onEndTyping=e,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress&&this.onEndTyping&&this.onEndTyping(),this.typingInProgress=!1},endTyping:function(t){var n=this;n.clearTimeout(),t?n.stopTyping():n.timeout=window.setTimeout(e.proxy(n.stopTyping,n),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(e,t){var n,i=this.handlers;for(n=0;n<i.length&&!i[n][t](e);n++);},keydown:function(e){this.notify(e,"keydown")},keyup:function(e){this.notify(e,"keyup")}});h(r,{TypingHandler:w,SystemHandler:y,BackspaceHandler:k,SelectAllHandler:x,Keyboard:C})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/exportpdf.min",["editor/command.min"],e)}(function(){!function(e){var t=window.kendo,n=t.ui.editor,i=n.Command,o=n.EditorUtils,r=o.registerTool,a=n.Tool,s=n.ToolTemplate,l=e.extend,d=i.extend({init:function(e){this.async=!0,i.fn.init.call(this,e)},exec:function(){var e=this,t=e.lockRange(!0),n=e.editor;n._destroyResizings(),n.saveAsPDF().then(function(){e.releaseRange(t),n._initializeColumnResizing(),n._initializeRowResizing(),n._initializeTableResizing()})}});l(n,{ExportPdfCommand:d}),r("pdf",new a({command:d,template:new s({template:o.buttonTemplate,title:"Export PDF"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/print.min",["editor/command.min"],e)}(function(){!function(e){var t=window.kendo,n=t.ui.editor,i=n.Command,o=n.EditorUtils,r=o.registerTool,a=n.Tool,s=n.ToolTemplate,l=e.extend,d=i.extend({init:function(e){i.fn.init.call(this,e),this.managesUndoRedo=!0},exec:function(){var e=this.editor;t.support.browser.msie?e.document.execCommand("print",!1,null):e.window.print&&e.window.print()}});l(n,{PrintCommand:d}),r("print",new a({command:d,template:new s({template:o.buttonTemplate,title:"Print"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/plugins/formatpainter.min",["editor/command.min"],e)}(function(){!function(e){var t=window.kendo,n=t.ui.editor,i=n.Tool,o=n.Command,r=n.ToolTemplate,a=n.EditorUtils,s=n.Dom,l=n.RangeUtils,d=a.registerTool,c=o.extend({init:function(e){o.fn.init.call(this,e)},exec:function(){var e=this.lockRange(!0);this.inlineStyles=[],this.blockStyles=[],this.collectStyles(e),this.editor.inlineStyles=this.inlineStyles,this.editor.blockStyles=this.blockStyles,this.releaseRange(e)},collectStyles:function(e){var t,n=l.nodes(e);for(t=1===n.length?n[0].parentNode:e.startContainer;t&&!s.is(t,"body")&&"editor"!==t.getAttribute("data-role");)s.isBlock(t)?(this.populateStyles(t,"blockStyles"),t=s.is(t,"li")?t.parentNode:null):(this.populateStyles(t,"inlineStyles"),t=t.parentNode)},populateStyles:function(e,t){var n,i,o,r,a,s=e.style,l=e.attributes,d={tags:[e.tagName],attr:{style:{}}};for(a=0;s&&a<s.length;a++)i=s[a],n=s[i],d.attr.style[i]=n;for(a=0;l&&a<l.length;a++)o=l[a].nodeName,r=l[a].nodeValue,"style"!==o&&("class"===o?d.attr.className=r:d.attr[o]=r);this[t].push(d)}}),u=o.extend({init:function(e){o.fn.init.call(this,e)},exec:function(){var e,t=this.lockRange(!0),n=l.getMarkers(t),i=this.editor,o=i.inlineStyles,r=i.blockStyles;(o&&0!==o.length||r&&0!==r.length)&&(3===n.length&&(this.marker.removeCaret(t),this.marker.caret=null),this.removeEmptyElementsFromRange(t),e=l.nodes(t),this.cleanInlineParents(e),s.normalize(t.commonAncestorContainer),2===n.length?(t.setStartAfter(n[0]),t.setEndBefore(n[1])):(t.setStartBefore(e[0]),t.setEndAfter(e[0])),e=l.nodes(t),e&&r&&r.length&&this.applyBlockStyles(e,r),e&&o&&o.length&&this.applyInlineStyles(e,o),this.releaseRange(t))},removeEmptyElementsFromRange:function(e){var t,n=function(e){return s.isInline(e)&&!e.firstChild&&!s.isMarker(e)},i=l.getAll(e,n);if(i&&i.length>0)for(t=0;t<i.length;t++)i[t].parentNode.removeChild(i[t])},cleanInlineParents:function(e){var t,n,i,o,r,a,l;for(t=0;t<e.length;t++)if(n=e[t],i=n.parentNode,!this.immutableParent(n))for(;i&&s.isInline(i);){for(o=i.childNodes,r=0;r<o.length;r++)a=o[r],s.isMarker(a)||a===n||(l=i.cloneNode(!0),l.innerHTML="",s.wrap(a,l));s.unwrap(i),i=n.parentNode}},applyBlockStyles:function(e,t){var n,i,o,r,a,l,d,c,u,h,p,f,m,g,v,_=t[0].tags[0],b=t[0].attr,w=this.editor.document;for(n=0,i=e.length;n<i;n++)if(o=e[n],!s.isWhitespace(o)&&!this.immutableParent(o))if(a=s.blockParentOrBody(o),"BODY"!==a.tagName&&a.tagName!==_){if("LI"!==a.tagName&&"TD"!==a.tagName&&"TH"!==a.tagName){for(d=[],c=[],u=o.previousSibling,h=o.nextSibling;u;)s.isMarker(u)||d.push(u),u=u.previousSibling;if(d.length)for(p=a.cloneNode(!0),p.innerHTML="",s.insertBefore(p,d[0]),g=0;g<d.length;g++)m=d[g],s.insertAt(p,m,0);for(;h;)s.isMarker(h)||c.push(h),h=h.nextSibling;if(c.length)for(f=a.cloneNode(!0),f.innerHTML="",s.insertBefore(f,c[0]),g=0;g<c.length;g++)m=c[g],f.appendChild(m);s.unwrap(a)}r=s.create(w,_,b),s.wrap(o,r)}else a.tagName===_&&s.attr(a,b);if(a&&2===t.length&&"LI"!==a.tagName&&"LI"===_){for(v=[];s.is(r,"li");)v.push(r),r=s.prev(r);for(l=s.create(w,t[1].tags[0],t[1].attr),s.insertBefore(l,v[v.length-1]),l.appendChild(v[0]),n=1,i=v.length;n<i;n++)s.insertBefore(v[n],l.firstChild)}else a&&2===t.length&&"LI"!==a.tagName&&(l=s.create(w,t[1].tags[0],t[1].attr),s.wrap(r,l))},applyInlineStyles:function(e,t){var n,i,o,r,a,l,d=this.editor.document;for(r=0;r<t.length;r++)n=t[r],i=s.create(d,n.tags[0],n.attr),o&&i.appendChild(o),o=i;if(o)for(r=0;r<e.length;r++)if(l=e[r],!s.isWhitespace(l)&&!this.immutableParent(l)){for(a=o.cloneNode(!0),s.insertBefore(a,l);a.children&&a.children.length;)a=a.children[0];a.appendChild(l)}},immutables:function(){return this.editor&&this.editor.options.immutables},immutableParent:function(e){return this.immutables()&&n.Immutables.immutableParent(e)}}),h=i.extend({init:function(e){i.fn.init.call(this,e)},command:function(e){return new c(e)}}),p=i.extend({init:function(e){i.fn.init.call(this,e)},command:function(e){return new u(e)}});e.extend(n,{CopyFormatCommand:c,ApplyFormatCommand:u,CopyFormatTool:h,ApplyFormatTool:p}),d("copyFormat",new h({template:new r({template:a.buttonTemplate,title:"Copy format"})})),d("applyFormat",new p({template:new r({template:a.buttonTemplate,title:"Apply format"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/resizing/resizing-utils.min",["editor/main.min"],e)}(function(){!function(e,t){function n(e){var t=e.value,n=e.min,i=e.max;return h(u(p(t),p(i)),p(n))}function i(t){return t&&!f(t).is("body")&&t.scrollHeight>t.clientHeight?e.support.scrollbar():0}function o(e,t){return r(e)?p(e):p(e)/t*100}function r(e){return typeof e===k&&b.test(e)}function a(e){return typeof e===k&&w.test(e)}function s(e){return p(e)+v}function l(e){return p(e)+_}var d=window,c=d.Math,u=c.min,h=c.max,p=d.parseFloat,f=e.jQuery,m=f.extend,g=e.ui.editor,v="%",_="px",b=/(\d+)(\.?)(\d*)%/,w=/(\d+)(\.?)(\d*)px/,k="string",y={constrain:n,getScrollBarWidth:i,calculatePercentageRatio:o,inPercentages:r,inPixels:a,toPercentages:s,toPixels:l};m(g,{ResizingUtils:y})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/resizing/table-element-resizing.min",["editor/main.min","kendo.resizable.min","editor/resizing/resizing-utils.min"],e)}(function(){!function(e,t){var n=e.jQuery,i=n.extend,o=n.noop,r=n.proxy,a=e.ui.editor,s=e.Class,l="keydown",d="mousedown",c="mouseenter",u="mouseleave",h="mousemove",p="mouseup",f=",",m=".",g=":last-child",v="table",_=s.extend({init:function(e,t){var o=this;o.options=i({},o.options,t),o.options.tags=n.isArray(o.options.tags)?o.options.tags:[o.options.tags],n(e).is(v)&&(o.element=e,o._attachEventHandlers())},destroy:function(){var e=this,t=e.options.eventNamespace;e.element&&(n(e.element).off(t),e.element=null),n(e.options.rootElement).off(l+t),e._destroyResizeHandle()},options:{tags:[],min:0,rootElement:null,eventNamespace:"",rtl:!1,handle:{dataAttribute:"",height:0,width:0,classNames:{},template:""}},_attachEventHandlers:function(){var e=this,t=e.options;n(e.element).on(h+t.eventNamespace,t.tags.join(f),r(e.detectElementBorderHovering,e))},resizingInProgress:function(){var e=this,t=e._resizable;return!!t&&!!t.resizing},resize:o,detectElementBorderHovering:function(e){var t=this,i=t.options,o=i.handle,r=n(e.currentTarget),a=t.resizeHandle,s=o.dataAttribute;t.resizingInProgress()||(!r.is(g)&&t.elementBorderHovered(r,e)?a?a.data(s)&&a.data(s)!==r[0]&&t.showResizeHandle(r,e):t.showResizeHandle(r,e):a&&t._destroyResizeHandle())},elementBorderHovered:o,showResizeHandle:function(e,t){var n=this;0===t.buttons&&(n._initResizeHandle(),n.setResizeHandlePosition(e),n.setResizeHandleDimensions(),n.setResizeHandleDataAttributes(e[0]),n._attachResizeHandleEventHandlers(),n._initResizable(e),n._hideResizeMarker(),n.resizeHandle.show())},_initResizeHandle:function(){var e=this,t=e.options;e._destroyResizeHandle(),e.resizeHandle=n(t.handle.template).appendTo(t.rootElement)},setResizeHandlePosition:o,setResizeHandleDimensions:o,setResizeHandleDataAttributes:function(e){var t=this;t.resizeHandle.data(t.options.handle.dataAttribute,e)},_attachResizeHandleEventHandlers:function(){var e=this,t=e.options,n=t.eventNamespace,i=t.handle.classNames.marker,o=e.resizeHandle;e.resizeHandle.on(d+n,function(){o.find(m+i).show()}).on(p+n,function(){o.find(m+i).hide()})},_hideResizeMarker:function(){var e=this;e.resizeHandle.find(m+e.options.handle.classNames.marker).hide()},_destroyResizeHandle:function(){var e=this;e.resizeHandle&&(e._destroyResizable(),e.resizeHandle.off(e.options.eventNamespace).remove(),e.resizeHandle=null)},_initResizable:function(t){var n=this;n.resizeHandle&&(n._destroyResizable(),n._resizable=new e.ui.Resizable(t,{draggableElement:n.resizeHandle[0],start:r(n.onResizeStart,n),resize:r(n.onResize,n),resizeend:r(n.onResizeEnd,n)}))},_destroyResizable:function(){var e=this;e._resizable&&(e._resizable.destroy(),e._resizable=null)},onResizeStart:function(){this._disableKeyboard()},onResize:function(e){this.setResizeHandleDragPosition(e)},setResizeHandleDragPosition:o,onResizeEnd:function(e){var t=this;t.resize(e),t._destroyResizeHandle(),t._enableKeyboard()},_enableKeyboard:function(){var e=this.options;n(e.rootElement).off(l+e.eventNamespace)},_disableKeyboard:function(){var e=this.options;n(e.rootElement).on(l+e.eventNamespace,function(e){e.preventDefault()})},_forceResizing:function(e){var t=this._resizable;t&&t.userEvents&&t.userEvents._end(e)}}),b=s.extend({create:function(e,t){var i=this,o=t.name,r=t.eventNamespace;n(e.body).on(c+r,v,function(n){var r=n.currentTarget,a=e[o];n.stopPropagation(),a?a.element===r||a.resizingInProgress()||(i._destroyResizing(e,t),i._initResizing(e,r,t)):i._initResizing(e,r,t)}).on(u+r,v,function(r){var a,s=e[o];r.stopPropagation(),!s||s.resizingInProgress()||s.resizeHandle||(a=n(s.element).parents(v)[0],a&&(i._destroyResizing(e,t),i._initResizing(e,a,t)))}).on(u+r,function(){var n=e[o];n&&!n.resizingInProgress()&&i._destroyResizing(e,t)}).on(p+r,function(r){var a,s=e[o];s&&s.resizingInProgress()&&(a=n(r.target).parents(v)[0],a&&(s._forceResizing(r),i._destroyResizing(e,t),i._initResizing(e,a,t)))})},dispose:function(e,t){n(e.body).off(t.eventNamespace)},_initResizing:function(t,n,i){var o=i.name,r=i.type;t[o]=new r(n,{rtl:e.support.isRtl(t.element),rootElement:t.body})},_destroyResizing:function(e,t){var n=t.name;e[n]&&(e[n].destroy(),e[n]=null)}});b.current=new b,_.create=function(e,t){b.current.create(e,t)},_.dispose=function(e,t){b.current.dispose(e,t)},i(a,{TableElementResizing:_})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/resizing/column-resizing.min",["editor/main.min","editor/resizing/resizing-utils.min","editor/resizing/table-element-resizing.min","editor/dom.min"],e)}(function(){!function(e,t){var n=window,i=n.Math,o=i.abs,r=e.jQuery,a=r.extend,s=e.ui.editor,l=s.Dom,d=s.TableElementResizing,c=s.ResizingUtils,u=c.constrain,h=c.calculatePercentageRatio,p=c.getScrollBarWidth,f=c.inPercentages,m=c.toPercentages,g=c.toPixels,v=e._outerWidth,_=".kendoEditorColumnResizing",b="k-column-resize-handle",w="k-column-resize-marker",k="body",y="tbody",x="thead",C="td",S="th",T="tr",D="col-index",A=",",E="width",I=d.extend({options:{tags:[C,S],min:20,rootElement:null,eventNamespace:_,rtl:!1,handle:{dataAttribute:"column",width:10,height:0,classNames:{handle:b,marker:w},template:'<div class="k-column-resize-handle-wrapper" unselectable="on" contenteditable="false"><div class="'+b+'"><div class="'+w+'"></div></div></div>'}},elementBorderHovered:function(e,t){var n=this,i=n.options,o=i.handle.width,a=e.offset().left+(i.rtl?0:v(e)),s=t.clientX+r(e[0].ownerDocument).scrollLeft();return s>a-o&&s<a+o},setResizeHandlePosition:function(t){var n=this,i=r(n.element.tHead||n.element.tBodies[0]),o=n.options,a=o.rtl,s=o.handle.width,l=r(o.rootElement),d=l.is(k)?0:l.scrollTop(),c=l.is(k)?0:e.scrollLeft(l),u=a?0:v(t),h=a?p(l[0]):0,f=t.offset().left-(l.offset().left+parseFloat(l.css("borderLeftWidth")))-parseFloat(t.css("marginLeft")),m=i.offset().top-(l.offset().top+parseFloat(l.css("borderTopWidth")))-parseFloat(i.css("marginTop")),g=e.support.browser;a&&(g.mozilla||g.webkit&&g.version>=85)&&(c*=-1),n.resizeHandle.css({top:m+d,left:f+u+(c-h)-s/2,
position:"absolute"})},setResizeHandleDimensions:function(){var e=this,t=r(e.element).children(x),n=r(e.element).children(y),i=t.length>0?t.height()+n.height():n.height();e.resizeHandle.css({width:e.options.handle.width,height:i})},setResizeHandleDragPosition:function(t){var n,i=this,o=r(r(t.currentTarget).data(i.options.handle.dataAttribute)),a=i.options,s=r(a.rootElement),l=a.handle?a.handle.width:0,d=a.min,c=a.rtl,h=v(o),f=o.offset().left-(s.offset().left+parseFloat(s.css("borderLeftWidth")))-parseFloat(o.css("marginLeft")),m=v(o.next()),g=r(i.resizeHandle),_=s.is(k)?0:e.scrollLeft(s),b=c?p(s[0]):0,w=g.offset().left-(s.offset().left+parseFloat(s.css("borderLeftWidth")))-parseFloat(g.css("marginLeft")),y=e.support.browser;c&&(y.mozilla||y.webkit&&y.version>=85)&&(_*=-1),n=u({value:w+(_-b)+t.x.delta,min:f+(_-b)-(c?m:0)+d,max:f+h+(_-b)+(c?0:m)-l-d}),g.css({left:n})},resize:function(e){var t,n,i,o,a,s=this,d=r(r(e.currentTarget).data(s.options.handle.dataAttribute)),c=s.options,h=c.rtl?-1:1,p=c.min,f=h*e.x.initialDelta;l.reMapTableColumns(s.element,D),o=parseInt(d.attr(D),10),d.prop("colSpan")>1&&(d=r(s.element).find("["+D+"="+(o+d.prop("colSpan")-1)+"]").eq(0),o=parseInt(d.attr(D),10)),a=r(s.element).find("["+D+"="+(o+1)+"]:not([colspan])"),s._setTableComputedWidth(),s._setColumnsComputedWidth(),i=v(d),n=v(a),t=u({value:i+f,min:p,max:i+n-p}),s._resizeColumn(d[0],t),s._resizeTopAndBottomColumns(d[0],t),s._resizeAdjacentColumns(parseInt(d.attr(D),10),n,i,i-t),l.clearTableMappings(s.element,D)},_setTableComputedWidth:function(){var e=this.element;""===e.style[E]&&(e.style[E]=g(v(r(e))))},_setColumnsComputedWidth:function(){var e,t=this,n=r(t.element.tHead||t.element.tBodies[0]),i=v(n),o=n.children(T).children(C),a=o.length,s=o.map(function(){return v(r(this))});for(e=0;e<a;e++)o[e].style[E]=f(o[e].style[E])?m(h(s[e],i)):g(s[e])},_resizeTopAndBottomColumns:function(e,t){var n,i=this,o=r(e).attr(D),a=r(i.element).children(y+A+x).children(T).children(i.options.tags.join(A)).filter(function(){var t=this;return r(t).attr(D)===o&&t!==e}),s=a.length;for(n=0;n<s;n++)i._resizeColumn(a[n],t)},_resizeColumn:function(e,t){var n=r(this.element.tHead||this.element.tBodies[0]);e.style[E]=f(e.style[E])?m(h(t,v(n))):g(t)},_resizeAdjacentColumns:function(e,t,n,i){var o,a=this,s=r(a.element).children(y+A+x).children(T).children(a.options.tags.join(A)).filter(function(){return parseInt(r(this).attr(D),10)===e+1}),l=s.length;for(o=0;o<l;o++)a._resizeAdjacentColumn(s[o],t,n,i)},_resizeAdjacentColumn:function(e,t,n,i){var r=this,a=r.options.min,s=u({value:t+i,min:a,max:o(n+t-a)});r._resizeColumn(e,s)}});I.create=function(e){d.create(e,{name:"columnResizing",type:I,eventNamespace:_})},I.dispose=function(e){d.dispose(e,{eventNamespace:_})},a(s,{ColumnResizing:I})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/resizing/row-resizing.min",["editor/main.min","editor/resizing/resizing-utils.min","editor/resizing/table-element-resizing.min"],e)}(function(){!function(e,t){var n=window.Math,i=n.abs,o=e.jQuery,r=o.extend,a=e.ui.editor,s=a.TableElementResizing,l=a.ResizingUtils,d=l.getScrollBarWidth,c=l.constrain,u=l.calculatePercentageRatio,h=l.inPercentages,p=l.toPercentages,f=l.toPixels,m=e._outerHeight,g=".kendoEditorRowResizing",v="k-row-resize-handle",_="k-row-resize-marker-wrapper",b="k-row-resize-marker",w="body",k="tr",y="tbody",x="thead",C=",",S="height",T=s.extend({options:{tags:[k],min:20,rootElement:null,eventNamespace:g,rtl:!1,handle:{dataAttribute:"row",width:0,height:10,classNames:{handle:v,marker:b},template:'<div class="k-row-resize-handle-wrapper" unselectable="on" contenteditable="false"><div class="'+v+'"><div class="'+_+'"><div class="'+b+'"></div></div></div></div>'}},elementBorderHovered:function(e,t){var n=this,i=n.options.handle[S],r=e.offset().top+m(e),a=t.clientY+o(e[0].ownerDocument).scrollTop();return a>r-i&&a<r+i},setResizeHandlePosition:function(t){var n=this,i=n.options,r=i.handle[S],a=o(i.rootElement),s=a.is(w)?0:a.scrollTop(),l=a.is(w)?0:e.scrollLeft(a),c=i.rtl?d(a[0]):0,u=t.offset().left-(a.offset().left+parseFloat(a.css("borderLeftWidth")))-parseFloat(t.css("marginLeft")),h=t.offset().top-(a.offset().top+parseFloat(a.css("borderTopWidth")))-parseFloat(t.css("marginTop")),p=e.support.browser;i.rtl&&(p.mozilla||p.webkit&&p.version>=85)&&(l*=-1),n.resizeHandle.css({top:h+m(t)+s-r/2,left:u+(l-c),position:"absolute"})},setResizeHandleDimensions:function(){var e=this,t=o(e.element.tHead||e.element.tBodies[0]);e.resizeHandle.css({width:t.width(),height:e.options.handle[S]})},setResizeHandleDragPosition:function(e){var t=this,n=t.options,i=n.min,r=o(t.element).children(x),a=o(t.element).children(y),s=r.length>0?r:a,l=o(t.resizeHandle),d=o(e.currentTarget).data(n.handle.dataAttribute),u=o(d),h=o(n.rootElement),p=h.is(w)?0:h.scrollTop(),f=s.offset().top-(h.offset().top+parseFloat(h.css("borderTopWidth")))-parseFloat(s.css("marginTop")),g=u.offset().top-(h.offset().top+parseFloat(h.css("borderTopWidth")))-parseFloat(u.css("marginTop")),v=l.offset().top-(Math.max(0,h.offset().top)+parseFloat(h.css("borderTopWidth")))-parseFloat(l.css("marginTop")),_=c({value:v+p+e.y.delta,min:g+p+i,max:f+m(r)+m(a)+p-n.handle[S]-i});l.css({top:_})},resize:function(e){var t=this,n=t.options,r=o(e.currentTarget).data(n.handle.dataAttribute),a=m(o(r)),s=o(t.element),l=m(s),d=s.children(x),u=d.length>0?d.height():0,p=s.children(y),g=p.height(),v=r.style[S],_=c({value:a+e.y.initialDelta,min:n.min,max:i(u+g-n.min)});t._setRowsHeightInPixels(),r.style[S]=f(_),t._setTableHeight(l+(_-a)),h(v)&&t._setRowsHeightInPercentages()},_setRowsHeightInPixels:function(){var e,t=this,n=o(t.element).children(y+C+x).children(k),i=n.length,r=n.map(function(){return m(o(this))});for(e=0;e<i;e++)n[e].style[S]=f(r[e])},_setRowsHeightInPercentages:function(){var e,t=this,n=o(t.element).children(x),i=n.length>0?n.height():0,r=o(t.element).children(y),a=r.height(),s=o(t.element).children(x+C+y).children(k),l=s.length,d=s.map(function(){return m(o(this))});for(e=0;e<l;e++)s[e].style[S]=p(u(d[e],i+a))},_setTableHeight:function(e){var t=this.element;t.style[S]=h(t.style[S])?p(u(e,o(t).parent().height())):f(e)}});T.create=function(e){s.create(e,{name:"rowResizing",type:T,eventNamespace:g})},T.dispose=function(e){s.dispose(e,{eventNamespace:g})},r(a,{RowResizing:T})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/resizing/table-resize-handle.min",["editor/main.min","kendo.draganddrop.min","editor/resizing/resizing-utils.min"],e)}(function(){!function(e,t){var n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C=e.jQuery,S=C.extend,T=C.noop,D=C.proxy,A=e.ui.editor,E=e.Class,I=e.ui.Draggable,M=e.Observable,R=A.ResizingUtils.getScrollBarWidth,F=e._outerWidth,P=e._outerHeight,z=".kendoEditorTableResizeHandle",B="k-table-resize-handle",L="dragStart",H="drag",N="dragEnd",O="halfInside",V="mouseover",W="mouseout",U="body",j="table",q="east",G="north",$="northeast",K="northwest",Y="south",Q="southeast",X="southwest",Z="west",J=".",ee=M.extend({init:function(e){var t=this;M.fn.init.call(t),t.options=S({},t.options,e),t.element=C(t.options.template).appendTo(t.options.appendTo)[0],t._attachEventHandlers(),t._addStyles(),t._initDraggable(),t._initPositioningStrategy(),t._initDraggingStrategy(),C(t.element).data(j,t.options.resizableElement)},destroy:function(){var e=this;C(e.element).off(z).remove(),e.element=null,e._destroyDraggable(),e.unbind()},options:{appendTo:null,direction:Q,resizableElement:null,rtl:!1,template:"<div class='k-table-resize-handle-wrapper' unselectable='on' contenteditable='false'><div class='"+B+"'></div></div>"},events:[L,H,N,V,W],show:function(){this._setPosition()},_setPosition:function(){var e=this,t=e._positioningStrategy.getPosition();C(e.element).css({top:t.top,left:t.left,position:"absolute"})},_attachEventHandlers:function(){var e=this;C(e.element).on(V+z,D(e._onMouseOver,e)).on(W+z,D(e._onMouseOut,e))},_onMouseOver:function(){this.trigger(V)},_onMouseOut:function(){this.trigger(W)},_addStyles:function(){var e=this;C(e.element).children(J+B).addClass("k-resize-"+e.options.direction)},_initPositioningStrategy:function(){var e=this,t=e.options;e._positioningStrategy=n.create({name:t.direction,handle:e.element,resizableElement:t.resizableElement,rootElement:t.rootElement,rtl:t.rtl})},_initDraggable:function(){var e=this,t=e.element;!e._draggable&&t&&(e._draggable=new I(t,{dragstart:D(e._onDragStart,e),drag:D(e._onDrag,e),dragend:D(e._onDragEnd,e)}))},_onDragStart:function(){this.trigger(L)},_onDrag:function(e){var t=this;t.trigger(H,t._draggingStrategy.adjustDragDelta({deltaX:e.x.delta,deltaY:e.y.delta,initialDeltaX:e.x.initialDelta,initialDeltaY:e.y.initialDelta}))},_onDragEnd:function(){this.trigger(N)},_destroyDraggable:function(){var e=this;e._draggable&&(e._draggable.destroy(),e._draggable=null)},_initDraggingStrategy:function(){var e=this;e._draggingStrategy=h.create({name:e.options.direction})}}),te=E.extend({init:function(){this._items=[]},register:function(e,t){this._items.push({name:e,type:t})},create:function(e){var t,n,i,o=this._items,r=o.length,a=e.name?e.name.toLowerCase():"";for(i=0;i<r;i++)if(n=o[i],n.name.toLowerCase()===a){t=n;break}if(t)return new t.type(e)}}),ne=te.extend({});ne.current=new ne,n=E.extend({init:function(e){var t=this;t.options=S({},t.options,e)},options:{handle:null,offset:O,resizableElement:null,rootElement:null,rtl:!1},getPosition:function(){var e=this,t=e.calculatePosition(),n=e.applyHandleOffset(t),i=e.applyScrollOffset(n);return i},calculatePosition:T,applyHandleOffset:function(e){var t=this.options,n=C(t.handle);return t.offset===O?{top:e.top-P(n)/2,left:e.left-F(n)/2}:e},applyScrollOffset:function(t){var n,i=this.options,o=C(i.rootElement),r=i.rtl?R(o[0]):0,a=e.support.browser;return o.is(U)?t:(n=e.scrollLeft(o)||0,i.rtl&&(a.mozilla||a.webkit&&a.version>=85)&&(n*=-1),{top:t.top+(o.scrollTop()||0),left:t.left+n-r})}}),n.create=function(e){return ne.current.create(e)},i=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top+P(e)/2,left:t.left+F(e)}}}),ne.current.register(q,i),o=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top,left:t.left+F(e)/2}}}),ne.current.register(G,o),r=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top,left:t.left+F(e)}}}),ne.current.register($,r),a=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top,left:t.left}}}),ne.current.register(K,a),s=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top+P(e),left:t.left+F(e)/2}}}),ne.current.register(Y,s),l=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top+P(e),left:t.left+F(e)}}}),ne.current.register(Q,l),d=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top+P(e),left:t.left}}}),ne.current.register(X,d),c=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position();return{top:t.top+P(e)/2,left:t.left}}}),ne.current.register(Z,c),u=te.extend({}),u.current=new u,h=E.extend({init:function(e){var t=this;t.options=S({},t.options,e)},options:{deltaX:{adjustment:null,modifier:null},deltaY:{adjustment:null,modifier:null}},adjustDragDelta:function(e){var t=this.options,n=t.deltaX.adjustment*t.deltaX.modifier,i=t.deltaY.adjustment*t.deltaY.modifier;return{deltaX:e.deltaX*n,deltaY:e.deltaY*i,initialDeltaX:e.initialDeltaX*n,initialDeltaY:e.initialDeltaY*i}}}),h.create=function(e){return u.current.create(e)},p=h.extend({options:{deltaX:{adjustment:1,modifier:1},deltaY:{adjustment:0,modifier:0}}}),f=p.extend({options:{deltaX:{modifier:1}}}),u.current.register(q,f),m=p.extend({options:{deltaX:{modifier:-1}}}),u.current.register(Z,m),g=h.extend({options:{deltaX:{adjustment:0,modifier:0},deltaY:{adjustment:1,modifier:1}}}),v=g.extend({options:{deltaY:{modifier:-1}}}),u.current.register(G,v),_=g.extend({options:{deltaY:{modifier:1}}}),u.current.register(Y,_),b=h.extend({options:{deltaX:{adjustment:1,modifier:1},deltaY:{adjustment:1,modifier:1}}}),w=b.extend({options:{deltaX:{modifier:1},deltaY:{modifier:-1}}}),u.current.register($,w),k=b.extend({options:{deltaX:{modifier:-1},deltaY:{modifier:-1}}}),u.current.register(K,k),y=b.extend({options:{deltaX:{modifier:1},deltaY:{modifier:1}}}),u.current.register(Q,y),x=b.extend({options:{deltaX:{modifier:-1},deltaY:{modifier:1}}}),u.current.register(X,x),S(A,{TableResizeHandle:ee})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/resizing/table-resizing.min",["editor/main.min","editor/resizing/table-resize-handle.min","editor/resizing/resizing-utils.min"],e)}(function(){!function(e,t){function n(e){return t===e}var i=window,o=i.Math,r=o.min,a=o.max,s=e.jQuery,l=s.contains,d=s.extend,c=s.proxy,u=e.support.browser,h=e.ui.editor,p=e.Class,f=h.TableResizeHandle,m=h.ResizingUtils,g=m.calculatePercentageRatio,v=m.constrain,_=m.inPercentages,b=m.inPixels,w=m.toPercentages,k=m.toPixels,y=e._outerWidth,x=e._outerHeight,C=".kendoEditorTableResizing",S="k-table-resize-handle-wrapper",T="k-table",D="k-table-resizing",A="dragStart",E="drag",I="dragEnd",M="keydown",R="mousedown",F="mouseover",P="mouseout",z="td",B="tr",L="tbody",H="thead",N="table",O=",",V="width",W="height",U="east",j="north",q="northeast",G="northwest",$="south",K="southeast",Y="southwest",Q="west",X=".",Z=p.extend({init:function(e,t){var n=this;n.options=d({},n.options,t),n.handles=[],s(e).is(N)&&(n.element=e)},destroy:function(){var e=this;s(e.element).off(C),e.element=null,s(e.options.rootElement).off(M+C),e._destroyResizeHandles()},options:{appendHandlesTo:null,rtl:!1,rootElement:null,minWidth:10,minHeight:10,handles:[{direction:G},{direction:j},{direction:q},{direction:U},{direction:K},{direction:$},{direction:Y},{direction:Q}]},resize:function(e){var t=this,n=d({},{deltaX:0,deltaY:0,initialDeltaX:0,initialDeltaY:0},e);t._resizeWidth(n.deltaX,n.initialDeltaX),t._resizeHeight(n.deltaY,n.initialDeltaY),t.showResizeHandles()},_resizeWidth:function(e,t){var i,o,l,d,c=this,u=s(c.element),h=u[0].style[V],p=y(u),f=u.parent().width(),m=c._getMaxDimensionValue(V);0!==e&&(n(c._initialElementWidth)&&(c._initialElementWidth=p),d=v({value:c._initialElementWidth+t,min:c.options.minWidth,max:m}),_(h)?(p+e>f?(o=a(d,f),l=r(d,f)):(o=r(d,f),l=a(d,f)),i=w(g(o,l))):i=k(d),c._setColumnsWidth(),u[0].style[V]=i)},_resizeHeight:function(e,t){var i,o,l,d,c=this,u=s(c.element),h=u[0].style[W],p=x(u),f=u.parent(),m=f.height(),b=c._getMaxDimensionValue(W),y=c.options.minHeight,C=c._hasRowsInPixels();0!==e&&(n(c._initialElementHeight)&&(c._initialElementHeight=p),d=v({value:c._initialElementHeight+t,min:y,max:b}),C&&e<0&&c._setRowsHeightInPercentages(),_(h)?(p+e>m?(o=a(d,m),l=r(d,m)):(o=r(d,m),l=a(d,m)),i=w(g(o,l))):i=k(d),u[0].style[W]=i,C&&e<0&&c._setRowsHeightInPixels())},_getMaxDimensionValue:function(t){var n=this,i=s(n.element),o=t.toLowerCase(),r=n.options.rtl?-1:1,a=s(n.element).parent(),l=a[0],d=a[o](),c=r*(t===V?e.scrollLeft(a):a.scrollTop());return l===i.closest(z)[0]?""!==l.style[o]||_(n.element.style[o])?d+c:1/0:d+c},_setColumnsWidth:function(){function e(e){var t=e.style.width;return""!==t?!!_(t):!!s(e).hasClass(T)}var t,n=this,i=s(n.element),o=i.parent()[0],r=i.closest(z),a=r.closest(B).children(),l=a.length;if(e(i[0])&&o===r[0]&&""===o.style[V])for(t=0;t<l;t++)a[t].style[V]=k(s(a[t]).width())},_hasRowsInPixels:function(){var e,t=this,n=s(t.element).children(H+O+L).children(B);for(e=0;e<n.length;e++)if(""===n[e].style.height||b(n[e].style.height))return!0;return!1},_setRowsHeightInPercentages:function(){var e,t=this,n=s(t.element).children(H),i=n.length>0?n.height():0,o=s(t.element).children(L),r=o.height(),a=s(t.element).children(H+O+L).children(B),l=a.length,d=a.map(function(){return x(s(this))});for(e=0;e<l;e++)a[e].style[W]=w(g(d[e],i+r))},_setRowsHeightInPixels:function(){var e,t=this,n=s(t.element).children(H+O+L).children(B),i=n.length,o=n.map(function(){return x(s(this))});for(e=0;e<i;e++)n[e].style[W]=k(o[e])},showResizeHandles:function(){var e=this;e._initResizeHandles(),e._showResizeHandles()},_initResizeHandles:function(){var e,t=this,n=t.handles,i=t.options,o=t.options.handles,r=o.length;if(!(n&&n.length>0)){for(e=0;e<r;e++)t.handles.push(new f(d({appendTo:i.appendHandlesTo,resizableElement:t.element,rootElement:i.rootElement,rtl:i.rtl},o[e])));t._bindToResizeHandlesEvents()}},_destroyResizeHandles:function(){var e,t=this,n=t.handles?t.handles.length:0;for(e=0;e<n;e++)t.handles[e].destroy()},_showResizeHandles:function(){var e,t=this,n=t.handles||[],i=n.length;for(e=0;e<i;e++)t.handles[e].show()},_bindToResizeHandlesEvents:function(){var e,t,n=this,i=n.handles||[],o=i.length;for(e=0;e<o;e++)t=i[e],t.bind(A,c(n._onResizeHandleDragStart,n)),t.bind(E,c(n._onResizeHandleDrag,n)),t.bind(I,c(n._onResizeHandleDragEnd,n)),t.bind(F,c(n._onResizeHandleMouseOver,n)),t.bind(P,c(n._onResizeHandleMouseOut,n))},_onResizeHandleDragStart:function(){var e=this,t=s(e.element);t.addClass(D),e._initialElementHeight=x(t),e._initialElementWidth=y(t),e._disableKeyboard()},_onResizeHandleDrag:function(e){this.resize(e)},_onResizeHandleDragEnd:function(){var e=this;s(e.element).removeClass(D),e._enableKeyboard()},_enableKeyboard:function(){s(this.options.rootElement).off(M+C)},_disableKeyboard:function(){s(this.options.rootElement).on(M+C,function(e){e.preventDefault()})}}),J=p.extend({create:function(e){var t=this;s(e.body).on(R+C,N,function(n){var i=n.target,o=n.currentTarget,r=e.tableResizing,a=r?r.element:null;if(r){if(a&&o!==a){if(l(o,a)&&a!==i&&l(a,i))return;a!==i&&(e._destroyTableResizing(),t._initResizing(e,o))}}else t._initResizing(e,o);e._showTableResizeHandles()}).on(R+C,function(t){var n=e.tableResizing,i=n?n.element:null,o=t.target,r=s(o).hasClass(S)||s(o).parents(X+S).length>0;!n||i===o||l(i,o)||r||e._destroyTableResizing()})},dispose:function(e){s(e.body).off(C)},_initResizing:function(t,n){u.msie||u.mozilla||(t.tableResizing=new Z(n,{appendHandlesTo:t.body,rtl:e.support.isRtl(t.element),rootElement:t.body}))}});J.current=new J,Z.create=function(e){J.current.create(e)},Z.dispose=function(e){J.current.dispose(e)},d(h,{TableResizing:Z})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/table-wizard/table-wizard-command.min",["editor/plugins/tables.min"],e)}(function(){!function(e,t){var n=window.kendo,i=n.ui.editor,o=i.EditorUtils,r=i.RangeUtils,a=i.Dom,s=o.registerTool,l=i.ToolTemplate,d=i.Command,c=new i.BlockFormatFinder([{tags:["table"]}]),u=new i.BlockFormatFinder([{tags:["td","th"]}]),h=/([a-z]+|%)$/i,p="col",f="row",m="colgroup",g="scope",v="col-index",_="th",b="td",w="thead",k="headers",y="table",x=d.extend({exec:function(){var o=this,r=o.editor,a=o.range=o.lockRange(),s=o._sourceTable=o.options.insertNewTable?t:o._selectedTable(a),l=o._selectedTableCells=s?o._selectedCells(a):t,d={visible:!1,messages:r.options.messages,closeCallback:e.proxy(o.onDialogClose,o),table:o.parseTable(s,l),dialogOptions:r.options.dialogOptions,isRtl:n.support.isRtl(r.wrapper)},c=new i.TableWizardDialog(d);c.open()},onDialogClose:function(e){var t=this;t.releaseRange(t.range),e&&(t.options.insertNewTable?t.insertTable(t.createNewTable(e)):t.updateTable(e,t._sourceTable,t._selectedTableCells))},releaseRange:function(e){var t=this,n=t.editor.document;a.windowFromDocument(n).focus(),d.fn.releaseRange.call(t,e)},insertTable:function(e){var t=this.range;t.insertNode(e),t.collapse(!0),this.editor.selectRange(t),this._ensureFocusableAfterTable(e)},_ensureFocusableAfterTable:function(t){for(var n=e(t).parent().contents(),i=n.length-1,o=n.get(i);null!==o.nodeValue&&(" "===o.nodeValue||""===o.nodeValue);)i-=1,o=n.get(i);o===t&&a.insertAfter(a.createEmptyNode(this.editor.document,"p"),t)},updateTable:function(t,n,i){for(var o,r,s=this,l=e(n.rows).toArray(),d=t.tableProperties,c=d.rows,u=n.tHead,h=s._lastInCollection;i.length>1;)i.pop();o=i.length?h(i).parentNode:h(l),s._deleteTableRows(l,l.length-c),l.length<c&&s._addRows(o,c,l),a.reMapTableColumns(n,v),s._updateColumns(l,d.columns,i,o),s._updateTableProperties(n,d),r=t.cellProperties,i[0]&&a.attr(i[0],{id:r.id||null}),(r.selectAllCells?e(l).children():e(i)).each(function(e,t){s._updateCellProperties(t,r)}),s._updateCaption(n,d),u?s._updateHeadersWithThead(n,t):s._updateHeadersNoThead(n,t),s._updateHeaderAssociates(n,d),a.clearTableMappings(n,v)},_isHeadingRow:function(e){return a.is(e.cells[0],_)&&a.is(e.parentNode,w)},_isHeadingCell:function(e){return a.is(e,_)},cellsWithHeadersAssociated:function(t){var n,i=e(t.rows).children(),o=[],r=function(e){return o.indexOf(e)>-1};return i.each(function(e,t){t.id&&a.is(t,_)&&o.push(t.id)}),n=i.filter(function(e,t){var n,i=t.getAttribute(k);return!!(i&&!a.is(t,_)&&(n=i.split(" "),n&&n.length>0))&&n.some(r)}),!!n.length},_insertCells:function(e,t,n){n=isNaN(n)?-1:n;for(var i,o=0;o<e;o++)i=t.insertCell(n),i.innerHTML="&nbsp;"},_deleteTableRows:function(e,t){for(var n,i,o=0;o<t;o++)n=e.pop(),i=n.parentNode,i.removeChild(n),i.rows.length||a.remove(i)},createNewTable:function(e){var t,n,i=this,o=i.editor.document,r=e.tableProperties,s=a.create(o,y),l=0;return i._updateTableProperties(s,r),i._updateCaption(s,r),r.headerRows&&r.headerRows>0&&(t=s.createTHead(),i._createTableRows(e,t,l,!0),l+=r.headerRows),n=s.createTBody(),i._createTableRows(e,n,l,!1),a.reMapTableColumns(s,v),"ids"===r.cellsWithHeaders?a.associateWithIds(s):"scope"===r.cellsWithHeaders&&i._addScopes(s,r.headerRows,r.headerColumns),a.clearTableMappings(s,v),s},_createTableRows:function(e,t,n,i){var o,r,a,s,l=this,d=e.tableProperties,c=e.cellProperties,u=d.columns,h=i?d.headerRows:d.rows,p=c.selectAllCells,f=d.headerColumns;for(o=n;o<h;o++)for(r=t.insertRow(),a=0;a<u;a++)s=i||f>a?document.createElement(_):document.createElement(b),r.appendChild(s),s.innerHTML="&nbsp;",0===o&&0===a&&c.id&&(s.id=c.id),l._updateCellProperties(s,p||0===o&&0===a?c:{})},_addRows:function(t,n,i){for(var o,r=this,a=e(t).index(),s=t.cells.length,l=n-i.length,d=t.parentNode;l;)o=d.insertRow(a+1),r._insertCells(s-o.cells.length,o),l--},_updateColumns:function(t,n,i,o){var r,a=this,s=a._lastInCollection,l=s(t[0].cells),d=+l.getAttribute(v)+l.colSpan;d>n&&e(t).each(function(e,t){for(var i=s(t.cells),o=+i.getAttribute(v)+i.colSpan;o>n;)i.colSpan&&i.colSpan>1?i.colSpan-=1:t.deleteCell(-1),i=s(t.cells),o=+i.getAttribute(v)+i.colSpan}),d<n&&(r=e(s(i)||s(o.cells)).index(),e(t).each(function(e,t){var i=s(t.cells);a._insertCells(n-+i.getAttribute(v)-i.colSpan,t,r+1)}))},_updateTableProperties:function(t,n){var i=this._getStylesData(n);a.attr(t,{cellSpacing:n.cellSpacing||null,cellPadding:n.cellPadding||null,className:n.className||null,id:n.id||null,summary:n.summary||null,style:i||null}),e(t).addClass("k-table")},_updateCellProperties:function(e,t){var n=this._getStylesData(t);n.padding=t.cellPadding||null,n.margin=t.cellMargin||null,a.attr(e,{style:n||null,className:t.className||null})},_updateCaption:function(e,t){var n,i;e.caption&&!t.captionContent?e.deleteCaption():t.captionContent&&(n=e.createCaption(),n.innerHTML=t.captionContent,i=this._getAlignmentData(t.captionAlignment),a.attr(n,{style:{textAlign:i.textAlign,verticalAlign:i.verticalAlign}}))},_updateHeadersNoThead:function(e,t){var n,i,o,r,s,l=this,d=t.tableProperties,c=e.rows;for(r=0;r<c.length;r++)for(n=c[r],i=n.cells,s=0;s<i.length;s++)o=i[s],!l._isHeadingCell(o)&&(r<d.headerRows||d.headerColumns>o.getAttribute(v))?a.changeTag(o,_,!1):l._isHeadingCell(o)&&r>=d.headerRows&&d.headerColumns<=o.getAttribute(v)&&a.changeTag(o,b,!1)},_updateHeadersWithThead:function(e,t){var n,i,o,r=this,s=t.tableProperties,l=e.tHead,d=0,c=e.tBodies[0];if(c||(c=e.createTBody()),s.headerRows&&s.headerRows>0){for(l||(l=e.createTHead());l.rows.length<s.headerRows;)l.appendChild(c.rows[0]);for(;l.rows.length>s.headerRows;)c.appendChild(l.rows[0]);r._swapToHeaderCells(l)}else if(l){for(;l.rows.length>0;)c.appendChild(l.rows[l.rows.length-1]);e.deleteTHead()}for(;c.rows.length>d;){for(n=c.rows[d],o=0;o<n.cells.length;o++)i=n.cells[o],r._isHeadingCell(i)&&s.headerColumns<=i.getAttribute(v)?a.changeTag(i,b,!1):!r._isHeadingCell(i)&&s.headerColumns>i.getAttribute(v)&&a.changeTag(i,_,!1);d+=1}},_updateHeaderAssociates:function(e,t){var n=this;"ids"===t.cellsWithHeaders?(n.cellsWithHeadersAssociated(e)||n._removeScopes(e),a.associateWithIds(e)):"scope"===t.cellsWithHeaders?(n.cellsWithHeadersAssociated(e)&&n._removeAssociates(e),n._addScopes(e,t.headerRows,t.headerColumns)):n.cellsWithHeadersAssociated(e)?n._removeAssociates(e):n._removeScopes(e)},_addScopes:function(e,t,n){var i,o,r,a,s=e.rows;for(i=0;i<s.length;i++)for(r=s[i],o=0;o<r.cells.length;o++)a=r.cells[o],i<t?a.setAttribute(g,p):a.getAttribute(v)<n&&a.setAttribute(g,f)},_removeScopes:function(t){e(t).find(_).removeAttr(g),e(t).find(p).remove(),e(t).find(m).remove()},_removeAssociates:function(t){e(t).find("th, td").removeAttr("id headers")},_swapToHeaderCells:function(t){var n=e(t).find("td"),i=function(e,t){a.changeTag(t,_,!1)};n.each(i)},_getStylesData:function(e){var t=this._getAlignmentData(e.alignment),n="wrapText"in e?e.wrapText?"":"nowrap":null;return{width:e.width?e.width+e.widthUnit:null,height:e.height?e.height+e.heightUnit:null,textAlign:t.textAlign,verticalAlign:t.verticalAlign,backgroundColor:e.bgColor||"",borderWidth:e.borderWidth,borderStyle:e.borderStyle,borderColor:e.borderColor||"",borderCollapse:e.collapseBorders?"collapse":null,whiteSpace:n}},_getAlignmentData:function(e){var t,n="",i=n;return e&&(e.indexOf(" ")!=-1?(t=e.split(" "),n=t[0],i=t[1]):n=e),{textAlign:n,verticalAlign:i}},parseTable:function(n,i){var o,r,s,l,d,c,u,h,p,f,m,g,_;return n?(o=this,r=n.style,s=n.rows,l=n.caption,d=e(l?l.cloneNode(!0):t),d.find(".k-marker").remove(),c=n.className,c=c.replace(/^k-table\s|\sk-table$/,""),c=c.replace(/\sk-table\s/," "),c=c.replace(/^k-table$/,""),u=o._getAlignment(n,!0),h=l?o._getAlignment(l):t,p=a._getNumberOfHeaderRows(n),f=o.cellsWithHeadersAssociated(n)?"ids":e(n).find("th[scope]").length>0?"scope":"none",a.reMapTableColumns(n,v),m=a._getNumberOfColumns(n),g=a._getNumberOfHeaderColumns(n,p),a.clearTableMappings(n,v),_={tableProperties:{width:r.width||n.width?parseFloat(r.width||n.width):null,height:r.height||n.height?parseFloat(r.height||n.height):null,columns:m,rows:s.length,widthUnit:o._getUnit(r.width),heightUnit:o._getUnit(r.height),cellSpacing:n.cellSpacing,cellPadding:n.cellPadding,alignment:u.textAlign,bgColor:r.backgroundColor||n.bgColor,className:c,id:n.id,borderWidth:r.borderWidth||n.border,borderColor:r.borderColor,borderStyle:r.borderStyle||"",collapseBorders:!!r.borderCollapse,summary:n.summary,captionContent:l?d.html():"",captionAlignment:l&&h.textAlign?h.textAlign+" "+h.verticalAlign:"",headerRows:p,headerColumns:g,cellsWithHeaders:f},selectedCells:[]},_.rows=o.parseTableRows(s,i,_),_):{tableProperties:{},selectedCells:[]}},parseTableRows:function(t,n,i){var o,r,a,s,l,d,c,u=this,h=[];for(d=0;d<t.length;d++)for(o=t[d],r={cells:[]},a=o.cells,h.push(r),c=0;c<a.length;c++)s=a[c],l=u.parseCell(s),e.inArray(s,n)!=-1&&i.selectedCells.push(l),r.cells.push(l);return h},parseCell:function(e){var t,n=this,i=e.style,o=n._getAlignment(e);return o=o.textAlign?o.textAlign+" "+o.verticalAlign:"",t={width:i.width||e.width?parseFloat(i.width||e.width):null,height:i.height||e.height?parseFloat(i.height||e.height):null,widthUnit:n._getUnit(i.width),heightUnit:n._getUnit(i.height),cellMargin:i.margin,cellPadding:i.padding,alignment:o,bgColor:i.backgroundColor||e.bgColor,className:e.className,id:e.id,borderWidth:i.borderWidth||e.border,borderColor:i.borderColor,borderStyle:i.borderStyle,wrapText:"nowrap"!=i.whiteSpace}},_getAlignment:function(e,t){var n,i=e.style,o=i.textAlign||e.align||"";return t?{textAlign:o}:(n=i.verticalAlign||e.vAlign||"",o&&n?{textAlign:o,verticalAlign:n}:!o&&n?{textAlign:"left",verticalAlign:n}:o&&!n?{textAlign:o,verticalAlign:"top"}:{textAlign:"",verticalAlign:""})},_getUnit:function(e){var t=(e||"").match(h);return t?t[0]:"px"},_selectedTable:function(e){var t=a.filterBy(r.nodes(e),a.htmlIndentSpace,!0);return c.findSuitable(t)[0]},_selectedCells:function(e){var t=a.filterBy(r.nodes(e),a.htmlIndentSpace,!0);return u.findSuitable(t)},_lastInCollection:function(e){return e[e.length-1]}}),C=i.Tool.extend({command:function(e){return e.insertNewTable=this.options.insertNewTable,new x(e)}}),S=C.extend({update:function(e,t){var n=!c.isFormatted(t);n===!0?(e.parent().addClass("k-hidden k-state-disabled"),e.attr("disabled","disabled"),e.addClass("k-state-disabled")):(e.parent().removeClass("k-hidden k-state-disabled"),e.removeAttr("disabled"),e.removeClass("k-state-disabled"))}});n.ui.editor.TableWizardTool=C,n.ui.editor.TableWizardCommand=x,s("tableWizard",new S({command:x,insertNewTable:!1,template:new l({template:o.buttonTemplate,title:"Table Wizard"})}))}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.tabstrip.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(t){t.children(b).addClass(E),t.children("a").addClass(C).children(b).addClass(E),t.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(N),t.filter("li[disabled]").addClass(H).attr("aria-disabled","true").removeAttr("disabled"),t.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(O+" "+U),t.attr("role","tab"),t.filter("."+O).attr("aria-selected",!0),t.each(function(){var t=e(this);t.children("."+C).length||t.contents().filter(function(){return!(this.nodeName.match(v)||3==this.nodeType&&!c(this.nodeValue))}).wrapAll("<span UNSELECTABLE='on' class='"+C+"'/>")})}function i(e){var t=e.children(".k-item");t.filter(".k-first:not(:first-child)").removeClass(I),t.filter(".k-last:not(:last-child)").removeClass(S),t.filter(":first-child").addClass(I),t.filter(":last-child").addClass(S)}function o(e,t){return"<span class='k-button k-button-icon k-flat k-tabstrip-"+e+"' unselectable='on'><span class='k-icon "+t+"'></span></span>"}var r=window.kendo,a=r.ui,s=r.keys,l=e.map,d=e.each,c=r.trim,u=e.extend,h=r.isFunction,p=r.template,f=r._outerWidth,m=r._outerHeight,g=a.Widget,v=/^(a|div)$/i,_=".kendoTabStrip",b="img",w="href",k="prev",y="next",x="show",C="k-link",S="k-last",T="click",D="error",A=":empty",E="k-image",I="k-first",M="select",R="activate",F="k-content",P="contentUrl",z="mouseenter",B="mouseleave",L="contentLoad",H="k-state-disabled",N="k-state-default",O="k-state-active",V="k-state-focused",W="k-state-hover",U="k-tab-on-top",j=".k-item:not(."+H+")",q=".k-item",G=".k-tabstrip-items > "+j+":not(."+O+")",$=200,K={content:p("<div class='k-content'#= contentAttributes(data) # role='tabpanel'>#= content(item) #</div>"),itemWrapper:p("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:p("<li class='#= wrapperCssClass(group, item) #' role='tab' #=item.active ? \"aria-selected='true'\" : ''#>#= itemWrapper(data) #</li>"),image:p("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:p("<span class='k-sprite #= spriteCssClass #'></span>"),empty:p("")},Y={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},text:function(e){return e.encoded===!1?e.text:r.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},contentAttributes:function(e){return e.active!==!0?" style='display:none' aria-hidden='true' aria-expanded='false'":"";
},content:function(e){return e.content?e.content:e.contentUrl?"":"&nbsp;"},contentUrl:function(e){return e.contentUrl?r.attr("content-url")+'="'+e.contentUrl+'"':""}},Q=g.extend({init:function(t,n){var i,o,a,s=this;g.fn.init.call(s,t,n),s._animations(s.options),n=s.options,s._contentUrls=n.contentUrls||[],s._wrapper(),s._isRtl=r.support.isRtl(s.wrapper),s._tabindex(),s._updateClasses(),s._dataSource(),n.dataSource&&s.dataSource.fetch(),s._tabPosition(),s._scrollable(),s._contentUrls.length?s.wrapper.find(".k-tabstrip-items > .k-item").each(function(t,n){var i=s._contentUrls[t];"string"==typeof i&&e(n).find(">."+C).data(P,i)}):s._contentUrls.length=s.tabGroup.find("li.k-item").length,s.wrapper.on(z+_+" "+B+_,G,s._toggleHover).on("focus"+_,e.proxy(s._active,s)).on("blur"+_,function(){s._current(null)}),s._keyDownProxy=e.proxy(s._keydown,s),n.navigatable&&s.wrapper.on("keydown"+_,s._keyDownProxy),s.options.value&&(i=s.options.value),s.wrapper.children(".k-tabstrip-items").on(T+_,".k-state-disabled .k-link",!1).on(T+_," > "+j,function(t){var n,i=s.wrapper[0];if(i!==document.activeElement)if(n=r.support.browser.msie)try{i.setActive()}catch(o){i.focus()}else i.focus();s._click(e(t.currentTarget))&&t.preventDefault()}),o=s.tabGroup.children("li."+O),a=s.contentHolder(o.index()),o[0]&&a.length>0&&0===a[0].childNodes.length&&s.activateTab(o.eq(0)),s.element.attr("role","tablist"),s.element[0].id&&(s._ariaId=s.element[0].id+"_ts_active"),s.value(i),r.notify(s)},_active:function(){var e=this.tabGroup.children().filter("."+O);e=e[0]?e:this._endItem("first"),e[0]&&this._current(e)},_endItem:function(e){return this.tabGroup.children(j)[e]()},_getItem:function(e){return this.tabGroup.children(q)[e]()},_item:function(e,t){var n;return n=t===k?"last":"first",e?(e=e[t](),e[0]||(e=this.tabGroup.children(q)[n]()),e.hasClass(H)&&e.addClass(V),(e.hasClass(H)||e.hasClass(O))&&(this._focused=e),e):this._endItem(n)},_current:function(e){var n=this,i=n._focused,o=n._ariaId;return e===t?i:(i&&(n.tabGroup.children("#"+o).removeAttr("id"),i.removeClass(V)),e&&(e.hasClass(O)||e.addClass(V),n.element.removeAttr("aria-activedescendant"),o=e[0].id||o,o&&(e.attr("id",o),n.element.attr("aria-activedescendant",o))),n._focused=e,t)},_keydown:function(e){var n,i=this,o=e.keyCode,r=i._current(),a=i._isRtl,l=/top|bottom/.test(i.options.tabPosition);if(e.target==e.currentTarget&&r){if(o!==s.DOWN||l)if(o!==s.UP||l)if(o===s.RIGHT&&l)n=a?k:y;else if(o===s.LEFT&&l)n=a?y:k;else if(o==s.ENTER||o==s.SPACEBAR)i._click(r),e.preventDefault();else{if(o==s.HOME)return i._click(i._getItem("first")),e.preventDefault(),t;if(o==s.END)return i._click(i._getItem("last")),e.preventDefault(),t}else n=k;else n=y;n&&(i._click(i._item(r,n)),e.preventDefault())}},_dataSource:function(){var t=this;t.dataSource&&t._refreshHandler?t.dataSource.unbind("change",t._refreshHandler):t._refreshHandler=e.proxy(t.refresh,t),t.dataSource=r.data.DataSource.create(t.options.dataSource).bind("change",t._refreshHandler)},setDataSource:function(e){var t=this;t.options.dataSource=e,t._dataSource(),t.dataSource.fetch()},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{effects:{}}})},refresh:function(e){var t,n,i,o,a=this,s=a.options,l=r.getter(s.dataEncodedField),d=r.getter(s.dataTextField),c=r.getter(s.dataContentField),u=r.getter(s.dataContentUrlField),h=r.getter(s.dataImageUrlField),p=r.getter(s.dataUrlField),f=r.getter(s.dataSpriteCssClass),m=[],g=a.dataSource.view();for(e=e||{},i=e.action,i&&(g=e.items),t=0,o=g.length;t<o;t++)n={text:d(g[t])},s.dataEncodedField&&(n.encoded=l(g[t])),s.dataContentField&&(n.content=c(g[t])),s.dataContentUrlField&&(n.contentUrl=u(g[t])),s.dataUrlField&&(n.url=p(g[t])),s.dataImageUrlField&&(n.imageUrl=h(g[t])),s.dataSpriteCssClass&&(n.spriteCssClass=f(g[t])),m[t]=n;if("add"==e.action)e.index<a.tabGroup.children().length?a.insertBefore(m,a.tabGroup.children().eq(e.index)):a.append(m);else if("remove"==e.action)for(t=0;t<g.length;t++)a.remove(e.index);else"itemchange"==e.action?(t=a.dataSource.view().indexOf(g[0]),e.field===s.dataTextField&&a.tabGroup.children().eq(t).find(".k-link").text(g[0].get(e.field)),e.field===s.dataUrlField&&(a._contentUrls[t]=g[0].get(e.field))):(a.trigger("dataBinding"),a.remove("li"),a._contentUrls=[],a.append(m),a.trigger("dataBound"))},value:function(n){var i=this;return n===t?i.select().text():(n!=i.value()&&i.tabGroup.children().each(function(){r.trim(e(this).text())==n&&i.select(this)}),t)},items:function(){return this.tabGroup[0].children},setOptions:function(e){var t=this,n=t.options.animation;t._animations(e),e.contentUrls&&(t._contentUrls=e.contentUrls),e.animation=u(!0,n,e.animation),e.navigatable?t.wrapper.on("keydown"+_,t._keyDownProxy):t.wrapper.off("keydown"+_,t._keyDownProxy),g.fn.setOptions.call(t,e)},events:[M,R,x,D,L,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataEncodedField:"",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",tabPosition:"top",animation:{open:{effects:"expand:vertical fadeIn",duration:200},close:{duration:200}},collapsible:!1,navigatable:!0,contentUrls:!1,scrollable:{distance:$}},destroy:function(){var e=this,t=e.scrollWrap;g.fn.destroy.call(e),e._refreshHandler&&e.dataSource.unbind("change",e._refreshHandler),e.wrapper.off(_),e.wrapper.children(".k-tabstrip-items").off(_),e._scrollableModeActive&&(e._scrollPrevButton.off().remove(),e._scrollNextButton.off().remove()),r.destroy(e.wrapper),t.children(".k-tabstrip").unwrap()},select:function(t){var n=this;return 0===arguments.length?n.tabGroup.children("li."+O):(isNaN(t)||(t=n.tabGroup.children().get(t)),t=n.tabGroup.find(t),e(t).each(function(t,i){i=e(i),i.hasClass(O)||n.trigger(M,{item:i[0],contentElement:n.contentHolder(i.index())[0]})||n.activateTab(i)}),n)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},reload:function(t){var n,i;return t=this.tabGroup.find(t),n=this,i=n._contentUrls,t.each(function(){var t=e(this),o=t.find("."+C).data(P)||i[t.index()],r=n.contentHolder(t.index());o&&n.ajaxRequest(t,r,null,o)}),n},append:function(e){var t=this,n=t._create(e);return d(n.tabs,function(e){var i=n.contents[e];t.tabGroup.append(this),"bottom"==t.options.tabPosition?t.tabGroup.before(i):t._scrollableModeActive?t._scrollPrevButton.before(i):t.wrapper.append(i),t.angular("compile",function(){return{elements:[i]}})}),i(t.tabGroup),t._updateContentElements(),t.resize(!0),t},_appendUrlItem:function(e){this._contentUrls.push(e)},_moveUrlItem:function(e,t){this._contentUrls.splice(t,0,this._contentUrls.splice(e,1)[0])},_removeUrlItem:function(e){this._contentUrls.splice(e,1)},insertBefore:function(t,n){n=e(t).is(e(n))?this.tabGroup.find(n).next():this.tabGroup.find(n);var o=this,r=o._create(t),a=o.element.find("[id='"+n.attr("aria-controls")+"']");return d(r.tabs,function(t){var i=r.contents[t],s=r.newTabsCreated?o._contentUrls.length-(r.tabs.length-t):e(i).index()-1;n.before(this),a.before(i),o._moveUrlItem(s,e(this).index()),o.angular("compile",function(){return{elements:[i]}})}),i(o.tabGroup),o._updateContentElements(r.newTabsCreated),o.resize(!0),o},insertAfter:function(t,n){n=e(t).is(e(n))?this.tabGroup.find(n).prev():this.tabGroup.find(n);var o=this,r=o._create(t),a=o.element.find("[id='"+n.attr("aria-controls")+"']");return d(r.tabs,function(t){var i=r.contents[t],s=r.newTabsCreated?o._contentUrls.length-(r.tabs.length-t):e(i).index()-1;n.after(this),a.after(i),o._moveUrlItem(s,e(this).index()),o.angular("compile",function(){return{elements:[i]}})}),i(o.tabGroup),o._updateContentElements(r.newTabsCreated),o.resize(!0),o},remove:function(t){var n,i=this,o=typeof t;return"string"===o?t=i.tabGroup.find(t):"number"===o&&(t=i.tabGroup.children().eq(t)),n=t.map(function(){var t=e(this).index(),n=i.contentElement(t);return r.destroy(n),i._removeUrlItem(t),n}),t.remove(),n.empty(),n.remove(),i._updateContentElements(),i.resize(!0),i},_create:function(t){var i,o,a,s=this,d=!1;return t=t instanceof r.data.ObservableArray?t.toJSON():t,e.isPlainObject(t)||e.isArray(t)?(t=e.isArray(t)?t:[t],d=!0,i=l(t,function(n,i){return s._appendUrlItem(t[i].contentUrl||null),e(Q.renderItem({group:s.tabGroup,item:u(n,{index:i})}))}),o=l(t,function(t,n){if("string"==typeof t.content||t.contentUrl)return e(Q.renderContent({item:u(t,{index:n})}))})):(i="string"==typeof t&&"<"!=t[0]?s.element.find(t):e(t),o=e(),i.each(function(){if(/k-tabstrip-items/.test(this.parentNode.className)){var t=s.element.find("[id='"+this.getAttribute("aria-controls")+"']");a=t}else a=e("<div class='"+F+"'/>");o=o.add(a)}),n(i)),{tabs:i,contents:o,newTabsCreated:d}},_toggleDisabled:function(t,n){t=this.tabGroup.find(t),t.each(function(){e(this).toggleClass(N,n).toggleClass(H,!n).attr("aria-disabled",!n)})},_updateClasses:function(){var o,r,a,s=this;s.wrapper.addClass("k-widget k-header k-tabstrip"),s.tabGroup=s.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),s.tabGroup[0]||(s.tabGroup=e("<ul class='k-tabstrip-items k-reset'/>").appendTo(s.wrapper)),o=s.tabGroup.find("li").addClass("k-item"),o.length&&(r=o.filter("."+O).index(),a=r>=0?r:t,s.tabGroup.contents().filter(function(){return 3==this.nodeType&&!c(this.nodeValue)}).remove()),r>=0&&o.eq(r).addClass(U),s.contentElements=s.wrapper.children("div"),s.contentElements.addClass(F).eq(a).addClass(O).css({display:"block"}),o.length&&(n(o),i(s.tabGroup),s._updateContentElements(!0))},_elementId:function(e,t){var n,i=e.attr("id"),o=this.element.attr("id");return!i||i.indexOf(o+"-")>-1?(n=(o||r.guid())+"-",n+(t+1)):i},_updateContentElements:function(t){var n=this,i=n._contentUrls,o=n.tabGroup.children(".k-item"),a=n.wrapper.children("div"),s=n._elementId.bind(n);a.length&&o.length>a.length?a.each(function(n){var i=s(e(this),n),r=o.filter("[aria-controls="+(this.id||0)+"]")[0];!r&&t&&(r=o[n]),r&&r.setAttribute("aria-controls",i),this.setAttribute("id",i)}):o.each(function(t){var o=a.eq(t),r=s(o,t);this.setAttribute("aria-controls",r),!o.length&&i[t]?e("<div class='"+F+"'/>").appendTo(n.wrapper).attr("id",r):(o.attr("id",r),e(this).children(".k-loading")[0]||i[t]||e("<span class='k-loading k-complete'/>").prependTo(this)),o.attr("role","tabpanel"),o.filter(":not(."+O+")").attr("aria-hidden",!0).attr("aria-expanded",!1),o.filter("."+O).attr("aria-expanded",!0)}),n.contentElements=n.contentAnimators=n.wrapper.children("div"),n.tabsHeight=m(n.tabGroup)+parseInt(n.wrapper.css("border-top-width"),10)+parseInt(n.wrapper.css("border-bottom-width"),10),r.kineticScrollNeeded&&r.mobile.ui.Scroller&&(r.touchScroller(n.contentElements),n.contentElements=n.contentElements.children(".km-scroll-container"))},_wrapper:function(){var e=this;e.wrapper=e.element.is("ul")?e.element.wrapAll("<div />").parent():e.element,e.scrollWrap=e.wrapper.parent(".k-tabstrip-wrapper"),e.scrollWrap[0]||(e.scrollWrap=e.wrapper.wrapAll("<div class='k-tabstrip-wrapper' />").parent())},_tabPosition:function(){var e=this,t=e.options.tabPosition;e.wrapper.addClass("k-floatwrap k-tabstrip-"+t),"bottom"==t&&e.tabGroup.appendTo(e.wrapper),e.resize(!0)},_setContentElementsDimensions:function(){var e,t,n,i,o,r,a=this,s=a.options.tabPosition;"left"!=s&&"right"!=s||(e=a.wrapper.children(".k-content"),t=e.filter(":visible"),n="margin-"+s,i=a.tabGroup,o=f(i),r=Math.ceil(i.height())-parseInt(t.css("padding-top"),10)-parseInt(t.css("padding-bottom"),10)-parseInt(t.css("border-top-width"),10)-parseInt(t.css("border-bottom-width"),10),setTimeout(function(){e.css(n,o).css("min-height",r)}))},_resize:function(){this._setContentElementsDimensions(),this._scrollable()},_sizeScrollWrap:function(e){var t,n;e.is(":visible")&&(t=this.options.tabPosition,n=Math.floor(m(e,!0))+("left"===t||"right"===t?2:this.tabsHeight),this.scrollWrap.css("height",n).css("height"))},_toggleHover:function(t){e(t.currentTarget).toggleClass(W,t.type==z)},_click:function(e){var t,n,i=this,o=e.find("."+C),r=o.attr(w),a=i.options.collapsible,s=e.index(),l=i.contentHolder(s),d=e.parent().children(),c=d.filter("."+V);if(e.closest(".k-widget")[0]==i.wrapper[0]){if(e.is("."+H+(a?"":",."+O)))return c.removeClass(V),i._focused=e,e.addClass(V),i._current(e),i._scrollableModeActive&&i._scrollTabsToItem(e),!0;if(n=o.data(P)||i._contentUrls[s]||r&&("#"==r.charAt(r.length-1)||r.indexOf("#"+i.element[0].id+"-")!=-1),t=!r||n,i.tabGroup.children("[data-animating]").length)return t;if(i.trigger(M,{item:e[0],contentElement:l[0]}))return!0;if(t!==!1)return a&&e.is("."+O)?(i.deactivateTab(e),!0):(i.activateTab(e)&&(t=!0),t)}},_scrollable:function(){var e,t,n,i,a,s,l,d,c=this,u=c.options;c._scrollableAllowed()&&(c.wrapper.addClass("k-tabstrip-scrollable"),e=c.wrapper[0].offsetWidth,t=c.tabGroup[0].scrollWidth,t>e&&!c._scrollableModeActive?(c._nowScrollingTabs=!1,c._isRtl=r.support.isRtl(c.element),a=r.support.touch?"touchstart":"mousedown",s=r.support.touch?"touchend":"mouseup",l=r.support.browser,d=c._isRtl&&!l.msie&&!l.edge,c.wrapper.append(o("prev","k-i-arrow-60-left")+o("next","k-i-arrow-60-right")),n=c._scrollPrevButton=c.wrapper.children(".k-tabstrip-prev"),i=c._scrollNextButton=c.wrapper.children(".k-tabstrip-next"),c.tabGroup.css({marginLeft:f(n)+9,marginRight:f(i)+12}),n.on(a+_,function(){c._nowScrollingTabs=!0,c._scrollTabsByDelta(u.scrollable.distance*(d?1:-1))}),i.on(a+_,function(){c._nowScrollingTabs=!0,c._scrollTabsByDelta(u.scrollable.distance*(d?-1:1))}),n.add(i).on(s+_,function(){c._nowScrollingTabs=!1}),c._scrollableModeActive=!0,c._toggleScrollButtons()):c._scrollableModeActive&&t<=e?(c._scrollableModeActive=!1,c.wrapper.removeClass("k-tabstrip-scrollable"),c._scrollPrevButton.off().remove(),c._scrollNextButton.off().remove(),c.tabGroup.css({marginLeft:"",marginRight:""})):c._scrollableModeActive?c._toggleScrollButtons():c.wrapper.removeClass("k-tabstrip-scrollable"))},_scrollableAllowed:function(){var e=this.options;return e.scrollable&&!e.scrollable.distance&&(e.scrollable={distance:$}),e.scrollable&&!isNaN(e.scrollable.distance)&&("top"==e.tabPosition||"bottom"==e.tabPosition)},_scrollTabsToItem:function(e){var t,n=this,i=n.tabGroup,o=r.scrollLeft(i),a=f(e),s=n._isRtl?e.position().left:e.position().left-i.children().first().position().left,l=i[0].offsetWidth,d=Math.ceil(parseFloat(i.css("padding-left"))),c=r.support.browser;n._isRtl&&(c.mozilla||c.webkit&&c.version>=85)&&(o*=-1),n._isRtl?s<0?t=o+s-(l-o)-d:s+a>l&&(t=o+s-a+2*d):o+l<s+a?t=s+a-l+2*d:o>s&&(t=s-d),i.finish().animate({scrollLeft:t},"fast","linear",function(){n._toggleScrollButtons()})},_scrollTabsByDelta:function(e){var t=this,n=t.tabGroup,i=r.scrollLeft(n),o=r.support.browser;t._isRtl&&(o.mozilla||o.webkit&&o.version>=85)&&(i*=-1),n.finish().animate({scrollLeft:i+e},"fast","linear",function(){t._nowScrollingTabs&&!jQuery.fx.off?t._scrollTabsByDelta(e):t._toggleScrollButtons()})},_toggleScrollButtons:function(){var e=this,t=e.tabGroup,n=r.scrollLeft(t);e._scrollPrevButton.toggle(0!==n),e._scrollNextButton.toggle(n<t[0].scrollWidth-t[0].offsetWidth-1)},deactivateTab:function(e){var t=this,n=t.options.animation,i=n.open,o=u({},n.close),a=o&&"effects"in o;e=t.tabGroup.find(e),o=u(a?o:u({reverse:!0},i),{hide:!0}),r.size(i.effects)?(e.kendoAddClass(N,{duration:i.duration}),e.kendoRemoveClass(O,{duration:i.duration})):(e.addClass(N),e.removeClass(O)),e.removeAttr("aria-selected"),t.contentAnimators.filter("."+O).kendoStop(!0,!0).kendoAnimate(o).removeClass(O).attr("aria-hidden",!0)},activateTab:function(e){var t,n,i,o,a,s,l,d,c,h,p,f,g,v,_,b;if(!this.tabGroup.children("[data-animating]").length)return e=this.tabGroup.find(e),t=this,n=t.options.animation,i=n.open,o=u({},n.close),a=o&&"effects"in o,s=e.parent().children(),l=s.filter("."+O),d=s.index(e),c=i&&"duration"in i&&"effects"in i,o=u(a?o:u({reverse:!0},i),{hide:!0}),r.size(i.effects)?(l.kendoRemoveClass(O,{duration:o.duration}),e.kendoRemoveClass(W,{duration:o.duration})):(l.removeClass(O),e.removeClass(W)),h=t.contentAnimators,t.inRequest&&(t.xhr.abort(),t.inRequest=!1),0===h.length?(t.tabGroup.find("."+U).removeClass(U),e.addClass(U).css("z-index"),e.addClass(O),t._current(e),t.trigger("change"),t._scrollableModeActive&&t._scrollTabsToItem(e),!1):(p=h.filter("."+O),f=t.contentHolder(d),g=f.closest(".k-content"),t.tabsHeight=m(t.tabGroup)+parseInt(t.wrapper.css("border-top-width"),10)+parseInt(t.wrapper.css("border-bottom-width"),10),t._sizeScrollWrap(p),0===f.length?(p.removeClass(O).attr("aria-hidden",!0).kendoStop(!0,!0).kendoAnimate(o),!1):(e.attr("data-animating",!0),v=(e.children("."+C).data(P)||t._contentUrls[d]||!1)&&f.is(A),_=function(){l.removeAttr("aria-selected"),e.attr("aria-selected",!0),t._current(e),t._sizeScrollWrap(g),g.addClass(O).removeAttr("aria-hidden").kendoStop(!0,!0).attr("aria-expanded",!0).kendoAnimate(u({init:function(){t.trigger(x,{item:e[0],contentElement:f[0]}),r.resize(f)}},i,{complete:function(){e.removeAttr("data-animating"),t.trigger(R,{item:e[0],contentElement:f[0]}),r.resize(f),t.scrollWrap.css("height","").css("height"),c&&(r.support.browser.msie||r.support.browser.edge)&&f.finish().animate({opacity:.9},"fast","linear",function(){f.finish().animate({opacity:1},"fast","linear")})}}))},b=function(){v?(e.removeAttr("data-animating"),t.ajaxRequest(e,f,function(){e.attr("data-animating",!0),_(),t.trigger("change")})):(_(),t.trigger("change")),t._scrollableModeActive&&t._scrollTabsToItem(e)},p.removeClass(O),t.tabGroup.find("."+U).removeClass(U),e.addClass(U).css("z-index"),r.size(i.effects)?(l.kendoAddClass(N,{duration:i.duration}),e.kendoAddClass(O,{duration:i.duration})):(l.addClass(N),e.addClass(O)),p.attr("aria-hidden",!0),p.attr("aria-expanded",!1),p.length?p.kendoStop(!0,!0).kendoAnimate(u({complete:b},o)):b(),!0))},contentElement:function(n){var i,o,a,s;if(isNaN(n-0))return t;if(i=this.contentElements&&this.contentElements[0]&&!r.kineticScrollNeeded?this.contentElements:this.contentAnimators,o=e(this.tabGroup.children()[n]).attr("aria-controls"),i)for(a=0,s=i.length;a<s;a++)if(i.eq(a).closest(".k-content")[0].id==o)return i[a];return t},contentHolder:function(t){var n=e(this.contentElement(t)),i=n.children(".km-scroll-container");return r.support.touch&&i[0]?i:n},ajaxRequest:function(t,n,i,o){var a,s,l,d,c,u,p,f,m,g;t=this.tabGroup.find(t),a=this,s=e.ajaxSettings.xhr,l=t.find("."+C),d={},c=t.width()/2,u=!1,p=t.find(".k-loading").removeClass("k-complete"),p[0]||(p=e("<span class='k-loading'/>").prependTo(t)),f=2*c-p.width(),m=function(){p.animate({marginLeft:(parseInt(p.css("marginLeft"),10)||0)<c?f:0},500,m)},r.support.browser.msie&&r.support.browser.version<10&&setTimeout(m,40),o=o||l.data(P)||a._contentUrls[t.index()]||l.attr(w),a.inRequest=!0,g={type:"GET",cache:!1,url:o,dataType:"html",data:d,xhr:function(){var t=this,n=s(),i=t.progressUpload?"progressUpload":!!t.progress&&"progress";return n&&e.each([n,n.upload],function(){this.addEventListener&&this.addEventListener("progress",function(e){i&&t[i](e)},!1)}),t.noProgress=!(window.XMLHttpRequest&&"upload"in new XMLHttpRequest),n},progress:function(e){if(e.lengthComputable){var t=parseInt(e.loaded/e.total*100,10)+"%";p.stop(!0).addClass("k-progress").css({width:t,marginLeft:0})}},error:function(e,t){a.trigger("error",{xhr:e,status:t})&&this.complete()},stopProgress:function(){clearInterval(u),p.stop(!0).addClass("k-progress")[0].style.cssText=""},complete:function(e){a.inRequest=!1,this.noProgress?setTimeout(this.stopProgress,500):this.stopProgress(),"abort"==e.statusText&&p.remove()},success:function(e){var s,l,d;p.addClass("k-complete");try{s=this,l=10,s.noProgress&&(p.width(l+"%"),u=setInterval(function(){s.progress({lengthComputable:!0,loaded:Math.min(l,100),total:100}),l+=10},40)),a.angular("cleanup",function(){return{elements:n.get()}}),r.destroy(n),n.html(e)}catch(c){d=window.console,d&&d.error&&d.error(c.name+": "+c.message+" in "+o),this.error(this.xhr,"error")}i&&i.call(a,n),a.angular("compile",function(){return{elements:n.get()}}),a.trigger(L,{item:t[0],contentElement:n[0]})}},"object"==typeof o&&(g=e.extend(!0,{},g,o),h(g.url)&&(g.url=g.url())),a.xhr=e.ajax(g)}});u(Q,{renderItem:function(e){e=u({tabStrip:{},group:{}},e);var t=K.empty,n=e.item;return K.item(u(e,{image:n.imageUrl?K.image:t,sprite:n.spriteCssClass?K.sprite:t,itemWrapper:K.itemWrapper},Y))},renderContent:function(e){return K.content(u(e,Y))}}),r.ui.plugin(Q)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("editor/table-wizard/table-wizard-dialog.min",["editor/table-wizard/table-wizard-command.min","kendo.tabstrip.min"],e)}(function(){!function(e,t){var n=window.kendo,i={format:"0",min:0},o=["px","em"],r=["solid","dotted","dashed","double","groove","ridge","inset","outset","initial","inherit","none","hidden"],a=4,s={dataSource:[{className:"k-icon k-i-table-align-middle-left",value:"left"},{className:"k-icon k-i-table-align-middle-center",value:"center"},{className:"k-icon k-i-table-align-middle-right",value:"right"},{className:"k-icon k-i-align-remove",value:""}],dataTextField:"className",dataValueField:"value",template:"<span class='#: className #' title='#: tooltip #'></span>",valueTemplate:"<span class='k-align-group #: className #' title='#: tooltip #'></span>"},l={dataSource:[{className:"k-icon k-i-table-align-top-left",value:"left top"},{className:"k-icon k-i-table-align-top-center",value:"center top"},{className:"k-icon k-i-table-align-top-right",value:"right top"},{className:"k-icon k-i-table-align-middle-left",value:"left middle"},{className:"k-icon k-i-table-align-middle-center",value:"center middle"},{className:"k-icon k-i-table-align-middle-right",value:"right middle"},{className:"k-icon k-i-table-align-bottom-left",value:"left bottom"},{className:"k-icon k-i-table-align-bottom-center",value:"center bottom"},{className:"k-icon k-i-table-align-bottom-right",value:"right bottom"},{className:"k-icon k-i-align-remove",value:""}],dataTextField:"className",dataValueField:"value",template:"<span class='#: className #' title='#: tooltip #'></span>",valueTemplate:"<span class='k-align-group #: className #' title='#: tooltip #'></span>"},d={dataSource:[{className:"k-icon k-i-table-align-top-left",value:"left top"},{className:"k-icon k-i-table-align-top-center",value:"center top"},{className:"k-icon k-i-table-align-top-right",value:"right top"},{className:"k-icon k-i-table-align-bottom-left",value:"left bottom"},{className:"k-icon k-i-table-align-bottom-center",value:"center bottom"},{className:"k-icon k-i-table-align-bottom-right",value:"right bottom"},{className:"k-icon k-i-align-remove",value:""}],dataTextField:"className",dataValueField:"value",template:"<span class='#: className #' title='#: tooltip #'></span>",valueTemplate:"<span class='k-align-group #: className #' title='#: tooltip #'></span>"},c='<div class="k-editor-dialog k-editor-table-wizard-dialog k-action-window k-popup-edit-form"><div class="k-edit-form-container"><div id="k-table-wizard-tabs" class="k-root-tabs"><ul><li class="k-state-active">#= messages.tableTab #</li><li>#= messages.cellTab #</li><li>#= messages.accessibilityTab #</li></ul><div id="k-table-properties"><div class="k-edit-label"><label for="k-editor-table-width">#= messages.width #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-width" /><input id="k-editor-table-width-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-table-height">#= messages.height #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-height" /><input id="k-editor-table-height-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-table-columns">#= messages.columns #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-columns" /></div><div class="k-edit-label"><label for="k-editor-table-rows">#= messages.rows #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-rows" /></div><div class="k-edit-label"><label for="k-editor-table-cell-spacing">#= messages.cellSpacing #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cell-spacing" /></div><div class="k-edit-label"><label for="k-editor-table-cell-padding">#= messages.cellPadding #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cell-padding" /></div><div class="k-edit-label"><label for="k-editor-table-alignment">#= messages.alignment #</label></div><div class="k-edit-field"><input id="k-editor-table-alignment" class="k-align" /></div><div class="k-edit-label"><label for="k-editor-table-bg">#= messages.background #</label></div><div class="k-edit-field"><input id="k-editor-table-bg" /></div><div class="k-edit-label"><label for="k-editor-css-class">#= messages.cssClass #</label></div><div class="k-edit-field"><input id="k-editor-css-class" class="k-textbox" type="text" /></div><div class="k-edit-label"><label for="k-editor-id">#= messages.id #</label></div><div class="k-edit-field"><input id="k-editor-id" class="k-textbox" type="text" /></div><div class="k-edit-label"><label for="k-editor-border-width">#= messages.border #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-border-width" /><input id="k-editor-border-color" /></div><div class="k-edit-label"><label for="k-editor-border-style">#= messages.borderStyle #</label></div><div class="k-edit-field"><input id="k-editor-border-style" /></div><div class="k-edit-label">&nbsp;</div><div class="k-edit-field"><input id="k-editor-collapse-borders" type="checkbox" class="k-checkbox" /><label for="k-editor-collapse-borders" class="k-checkbox-label">#= messages.collapseBorders #</label></div></div><div id="k-cell-properties"><div class="k-edit-field"><input id="k-editor-selectAllCells" type="checkbox" class="k-checkbox" /><label for="k-editor-selectAllCells" class="k-checkbox-label">#= messages.selectAllCells #</label></div><div class="k-edit-label"><label for="k-editor-cell-width">#= messages.width #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-cell-width" /><input id="k-editor-cell-width-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-cell-height">#= messages.height #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-cell-height" /><input id="k-editor-cell-height-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-table-cell-margin">#= messages.cellMargin #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cell-margin" /></div><div class="k-edit-label"><label for="k-editor-table-cells-padding">#= messages.cellPadding #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cells-padding" /></div><div class="k-edit-label"><label for="k-editor-cell-alignment">#= messages.alignment #</label></div><div class="k-edit-field"><input id="k-editor-cell-alignment" class="k-align" /></div><div class="k-edit-label"><label for="k-editor-cell-bg">#= messages.background #</label></div><div class="k-edit-field"><input id="k-editor-cell-bg" /></div><div class="k-edit-label"><label for="k-editor-cell-css-class">#= messages.cssClass #</label></div><div class="k-edit-field"><input id="k-editor-cell-css-class" class="k-textbox" type="text" /></div><div class="k-edit-label"><label for="k-editor-cell-id">#= messages.id #</label></div><div class="k-edit-field"><input id="k-editor-cell-id" class="k-textbox" type="text" /></div><div class="k-edit-label"><label for="k-editor-cell-border-width">#= messages.border #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-cell-border-width" /><input id="k-editor-cell-border-color" /></div><div class="k-edit-label"><label for="k-editor-cell-border-style">#= messages.borderStyle #</label></div><div class="k-edit-field"><input id="k-editor-cell-border-style" /></div><div class="k-edit-label">&nbsp;</div><div class="k-edit-field"><input id="k-editor-wrap-text" type="checkbox" class="k-checkbox" /><label for="k-editor-wrap-text" class="k-checkbox-label">#= messages.wrapText #</label></div></div><div id="k-accessibility-properties"><div class="k-edit-label"><label for="k-editor-table-header-rows">#= messages.headerRows #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-header-rows" /></div><div class="k-edit-label"><label for="k-editor-table-header-columns">#= messages.headerColumns #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-header-columns" /></div><div class="k-edit-label"><label for="k-editor-table-caption">#= messages.caption #</label></div><div class="k-edit-field"><input id="k-editor-table-caption" class="k-textbox" type="text"/></div><div class="k-edit-label"><label for="k-editor-accessibility-alignment">#= messages.alignment #</label></div><div class="k-edit-field"><input id="k-editor-accessibility-alignment" class="k-align" /></div><div class="k-edit-label"><label for="k-editor-accessibility-summary">#= messages.summary #</label></div><div class="k-edit-field"><textarea id="k-editor-accessibility-summary" rows="5" class="k-textbox k-editor-accessibility-summary" placeholder="#= messages.tableSummaryPlaceholder #"></textarea></div><div class="k-edit-label"><label for="k-editor-cells-headers">#= messages.associateCellsWithHeaders #</label></div><div class="k-edit-field"><select id="k-editor-cells-headers"><option value="none">#= messages.associateNone #</option><option value="scope">#= messages.associateScope #</option><option value="ids">#= messages.associateIds #</option></select></div></div></div><div class="k-edit-buttons k-state-default"><button class="k-button k-primary k-dialog-ok">#= messages.dialogOk #</button><button class="k-button k-dialog-close">#= messages.dialogCancel #</button></div></div></div>',u=n.Class.extend({init:function(e){this.options=e},open:function(){function t(e){e.preventDefault(),l.destroy(),r.destroy()}function i(e){l.collectDialogValues(u),t(e),l.change&&l.change(),d.closeCallback(u)}function o(e){t(e),d.closeCallback()}var r,a,s,l=this,d=l.options,c=d.dialogOptions,u=d.table,h=d.messages,p=n.support.browser.msie;c.close=o,c.title=h.tableWizard,c.visible=d.visible,r=e(l._dialogTemplate(h)).appendTo(document.body).kendoWindow(c).closest(".k-window").toggleClass("k-rtl",d.isRtl).end().find(".k-dialog-ok").click(i).end().find(".k-dialog-close").click(o).end().data("kendoWindow"),a=r.element,l._initTabStripComponent(a),l._initTableViewComponents(a,u),l._initCellViewComponents(a,u),l._initAccessibilityViewComponents(a,u),r.center(),r.open(),p&&(s=a.closest(".k-window").height(),a.css("max-height",s))},_initTabStripComponent:function(e){var t=this.components={};t.tabStrip=e.find("#k-table-wizard-tabs").kendoTabStrip({animation:!1}).data("kendoTabStrip")},collectDialogValues:function(){var e=this,t=e.options.table;e._collectTableViewValues(t),e._collectCellViewValues(t),e._collectAccessibilityViewValues(t)},_collectTableViewValues:function(e){var t=this.components.tableView,n=e.tableProperties;n.width=t.width.value(),n.widthUnit=t.widthUnit.value(),n.height=t.height.value(),n.columns=t.columns.value(),n.rows=t.rows.value(),n.heightUnit=t.heightUnit.value(),n.cellSpacing=t.cellSpacing.value(),n.cellPadding=t.cellPadding.value(),n.alignment=t.alignment.value(),n.bgColor=t.bgColor.value(),n.className=t.className.value,n.id=t.id.value,n.borderWidth=t.borderWidth.value(),n.borderColor=t.borderColor.value(),n.borderStyle=t.borderStyle.value(),n.collapseBorders=t.collapseBorders.checked},_collectCellViewValues:function(e){var t=e.cellProperties={},n=this.components.cellView;t.selectAllCells=n.selectAllCells.checked,t.width=n.width.value(),t.widthUnit=n.widthUnit.value(),t.height=n.height.value(),t.heightUnit=n.heightUnit.value(),t.cellMargin=n.cellMargin.value(),
t.cellPadding=n.cellPadding.value(),t.alignment=n.alignment.value(),t.bgColor=n.bgColor.value(),t.className=n.className.value,t.id=n.id.value,t.borderWidth=n.borderWidth.value(),t.borderColor=n.borderColor.value(),t.borderStyle=n.borderStyle.value(),t.wrapText=n.wrapText.checked,t.width||(t.selectAllCells=!0,t.width=100/e.tableProperties.columns,t.widthUnit="%")},_collectAccessibilityViewValues:function(e){var t=e.tableProperties,n=this.components.accessibilityView;t.captionContent=n.captionContent.value,t.captionAlignment=n.captionAlignment.value(),t.summary=n.summary.value,t.cellsWithHeaders=n.cellsWithHeaders.value(),t.headerRows=n.headerRows.value(),t.headerColumns=n.headerColumns.value()},_addUnit:function(t,n){n&&e.inArray(n,t)==-1&&t.push(n)},_initTableViewComponents:function(e,t){var n,i,s=this,l=s.components,d=l.tableView={},c=t.tableProperties=t.tableProperties||{};c.borderStyle=c.borderStyle||"",n=function(e){var t=s.components.accessibilityView,n=t.headerColumns,i=n.value(),o=e.sender.value();o<i&&n.value(o),n.max(o)},i=function(e){var t=s.components.accessibilityView,n=t.headerRows,i=n.value(),o=e.sender.value();o<i&&n.value(o),n.max(o)},s._addUnit(o,c.widthUnit),s._addUnit(o,c.heightUnit),s._initNumericTextbox(e.find("#k-editor-table-width"),"width",c,d),s._initNumericTextbox(e.find("#k-editor-table-height"),"height",c,d),s._initNumericTextbox(e.find("#k-editor-table-columns"),"columns",c,d,{min:1,value:a,change:n}),s._initNumericTextbox(e.find("#k-editor-table-rows"),"rows",c,d,{min:1,value:a,change:i}),s._initDropDownList(e.find("#k-editor-table-width-type"),"widthUnit",c,d,o),s._initDropDownList(e.find("#k-editor-table-height-type"),"heightUnit",c,d,o),s._initNumericTextbox(e.find("#k-editor-table-cell-spacing"),"cellSpacing",c,d),s._initNumericTextbox(e.find("#k-editor-table-cell-padding"),"cellPadding",c,d),s._initTableAlignmentDropDown(e.find("#k-editor-table-alignment"),c),s._initColorPicker(e.find("#k-editor-table-bg"),"bgColor",c,d),s._initInput(e.find("#k-editor-css-class"),"className",c,d),s._initInput(e.find("#k-editor-id"),"id",c,d),s._initNumericTextbox(e.find("#k-editor-border-width"),"borderWidth",c,d),s._initColorPicker(e.find("#k-editor-border-color"),"borderColor",c,d),s._initDropDownList(e.find("#k-editor-border-style"),"borderStyle",c,d,r),s._initCheckbox(e.find("#k-editor-collapse-borders"),"collapseBorders",c,d)},_initCellViewComponents:function(e,t){var n,i=this.components,a=i.cellView={};t.selectedCells=t.selectedCells=t.selectedCells||[],n=t.selectedCells[0]||{borderStyle:"",wrapText:!0},this._addUnit(o,n.widthUnit),this._addUnit(o,n.heightUnit),this._initCheckbox(e.find("#k-editor-selectAllCells"),"selectAllCells",t.tableProperties,a),this._initNumericTextbox(e.find("#k-editor-cell-width"),"width",n,a),this._initNumericTextbox(e.find("#k-editor-cell-height"),"height",n,a),this._initDropDownList(e.find("#k-editor-cell-width-type"),"widthUnit",n,a,o),this._initDropDownList(e.find("#k-editor-cell-height-type"),"heightUnit",n,a,o),this._initNumericTextbox(e.find("#k-editor-table-cell-margin"),"cellMargin",n,a),this._initNumericTextbox(e.find("#k-editor-table-cells-padding"),"cellPadding",n,a),this._initCellAlignmentDropDown(e.find("#k-editor-cell-alignment"),n),this._initColorPicker(e.find("#k-editor-cell-bg"),"bgColor",n,a),this._initInput(e.find("#k-editor-cell-css-class"),"className",n,a),this._initInput(e.find("#k-editor-cell-id"),"id",n,a),this._initNumericTextbox(e.find("#k-editor-cell-border-width"),"borderWidth",n,a),this._initColorPicker(e.find("#k-editor-cell-border-color"),"borderColor",n,a),this._initDropDownList(e.find("#k-editor-cell-border-style"),"borderStyle",n,a,r),this._initCheckbox(e.find("#k-editor-wrap-text"),"wrapText",n,a)},_initAccessibilityViewComponents:function(e,t){var n=this.components,i=n.accessibilityView={},o=t.tableProperties;this._initInput(e.find("#k-editor-table-caption"),"captionContent",o,i),this._initAccessibilityAlignmentDropDown(e.find("#k-editor-accessibility-alignment"),o),this._initInput(e.find("#k-editor-accessibility-summary"),"summary",o,i),this._initAssociationDropDown(e.find("#k-editor-cells-headers"),"cellsWithHeaders",{valuePrimitive:!0},o,i),this._initNumericTextbox(e.find("#k-editor-table-header-rows"),"headerRows",o,i,{max:o.rows||a}),this._initNumericTextbox(e.find("#k-editor-table-header-columns"),"headerColumns",o,i,{max:o.columns||a})},_initNumericTextbox:function(t,n,o,r,a){var s=r[n]=t.kendoNumericTextBox(a?e.extend({},i,a):i).data("kendoNumericTextBox");n in o&&s.value(parseInt(o[n],10))},_initDropDownList:function(e,t,n,i,o){var r=i[t]=e.kendoDropDownList({dataSource:o}).data("kendoDropDownList");this._setComponentValue(r,n,t)},_initTableAlignmentDropDown:function(e,t){var n=this.options.messages,i=this.components.tableView,o=s.dataSource;o[0].tooltip=n.alignLeft,o[1].tooltip=n.alignCenter,o[2].tooltip=n.alignRight,o[3].tooltip=n.alignRemove,this._initAlignmentDropDown(e,s,"alignment",t,i)},_initCellAlignmentDropDown:function(e,t){var n=this.options.messages,i=this.components.cellView,o=l.dataSource;o[0].tooltip=n.alignLeftTop,o[1].tooltip=n.alignCenterTop,o[2].tooltip=n.alignRightTop,o[3].tooltip=n.alignLeftMiddle,o[4].tooltip=n.alignCenterMiddle,o[5].tooltip=n.alignRightMiddle,o[6].tooltip=n.alignLeftBottom,o[7].tooltip=n.alignCenterBottom,o[8].tooltip=n.alignRightBottom,o[9].tooltip=n.alignRemove,this._initAlignmentDropDown(e,l,"alignment",t,i)},_initAccessibilityAlignmentDropDown:function(e,t){var n=this.options.messages,i=this.components.accessibilityView,o=d.dataSource;o[0].tooltip=n.alignLeftTop,o[1].tooltip=n.alignCenterTop,o[2].tooltip=n.alignRightTop,o[3].tooltip=n.alignLeftBottom,o[4].tooltip=n.alignCenterBottom,o[5].tooltip=n.alignRightBottom,o[6].tooltip=n.alignRemove,this._initAlignmentDropDown(e,d,"captionAlignment",t,i)},_initAlignmentDropDown:function(e,t,n,i,o){var r=o[n]=e.kendoDropDownList(t).data("kendoDropDownList");r.list.addClass("k-align").css("width","110px"),this._setComponentValue(r,i,n)},_initAssociationDropDown:function(e,t,n,i,o){var r=o[t]=e.kendoDropDownList(n).data("kendoDropDownList");this._setComponentValue(r,i,t)},_setComponentValue:function(e,t,n){n in t&&e.value(t[n])},_initColorPicker:function(e,t,n,i){var o=i[t]=e.kendoColorPicker({buttons:!1,clearButton:!0}).data("kendoColorPicker");n[t]&&o.value(n[t])},_initInput:function(e,t,n,i){var o=i[t]=e.get(0);t in n&&(o.value=n[t])},_initCheckbox:function(e,t,n,i){var o=i[t]=e.get(0);t in n&&(o.checked=n[t])},destroy:function(){this._destroyComponents(this.components.tableView),this._destroyComponents(this.components.cellView),this._destroyComponents(this.components.accessibilityView),this._destroyComponents(this.components),delete this.components},_destroyComponents:function(e){for(var t in e)e[t].destroy&&e[t].destroy(),delete e[t]},_dialogTemplate:function(e){return n.template(c)({messages:e})}});n.ui.editor.TableWizardDialog=u}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.editor.min",["kendo.combobox.min","kendo.dropdownlist.min","kendo.resizable.min","kendo.window.min","kendo.colorpicker.min","kendo.imagebrowser.min","kendo.numerictextbox.min","util/undoredostack.min","editor/main.min","editor/dom.min","editor/serializer.min","editor/range.min","editor/command.min","editor/components.min","editor/toolbar.min","editor/immutables.min","editor/plugins/viewhtml.min","editor/plugins/link.min","editor/plugins/lists.min","editor/plugins/formatting.min","editor/plugins/image.min","editor/plugins/import.min","editor/plugins/insert.min","editor/plugins/export.min","editor/plugins/indent.min","editor/plugins/linebreak.min","editor/plugins/format.min","editor/plugins/inlineformat.min","editor/plugins/formatblock.min","editor/plugins/file.min","editor/plugins/tables.min","editor/plugins/clipboard.min","editor/plugins/keyboard.min","editor/plugins/exportpdf.min","editor/plugins/print.min","editor/plugins/formatpainter.min","editor/resizing/column-resizing.min","editor/resizing/row-resizing.min","editor/resizing/table-resizing.min","editor/resizing/table-resize-handle.min","editor/table-wizard/table-wizard-command.min","editor/table-wizard/table-wizard-dialog.min"],e)}(function(){return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.maskedtextbox.min",["kendo.core.min","kendo.floatinglabel.min"],e)}(function(){return function(e,t){function n(e){return e+h}function i(e,t){for(var n=0;n<t.length&&e[n]===t[n];)n++;return n}function o(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var r=window,a=r.Math.min,s=r.kendo,l=s.caret,d=s.keys,c=s.ui,u=c.Widget,h=".kendoMaskedTextBox",p=e.isPlainObject,f=e.proxy,m=window.setTimeout,g="k-label k-input-label",v="k-state-disabled",_="k-state-invalid",b="disabled",w="readonly",k="change",y="mouseup",x="drop",C="keydown",S="paste",T="input",D=n(s.support.propertyChangeEvent?"propertychange":T),A=u.extend({init:function(t,n){var i,o,r=this;u.fn.init.call(r,t,n),r._rules=e.extend({},r.rules,r.options.rules),t=r.element,i=t[0],r._wrapper(),r._tokenize(),r._form(),r.element.addClass("k-textbox").attr("autocomplete","off").on("focus"+h,function(){var e=i.value;e?r._togglePrompt(!0):i.value=r._old=r._emptyMask,r._oldValue=e,r._timeoutId=m(function(){l(t,0,e?r._maskLength:0)})}).on("focusout"+h,function(){var e=t.val();clearTimeout(r._timeoutId),i.value=r._old="",e!==r._emptyMask&&(i.value=r._old=e),r._change(),r._togglePrompt()}),o=t.is("[disabled]")||e(r.element).parents("fieldset").is(":disabled"),o?r.enable(!1):r.readonly(t.is("[readonly]")),r.value(r.options.value||t.val()),r._validationIcon=e("<span class='k-icon k-i-warning'></span>").insertAfter(t),r._label(),s.notify(r)},options:{name:"MaskedTextBox",clearPromptChar:!1,unmaskOnPost:!1,promptChar:"_",culture:"",rules:{},value:"",mask:"",label:null},events:[k],rules:{0:/\d/,9:/\d|\s/,"#":/\d|\s|\+|\-/,L:/[a-zA-Z]/,"?":/[a-zA-Z]|\s/,"&":/\S/,C:/./,A:/[a-zA-Z0-9]/,a:/[a-zA-Z0-9]|\s/},setOptions:function(t){var n=this;u.fn.setOptions.call(n,t),n._rules=e.extend({},n.rules,n.options.rules),n._tokenize(),this._unbindInput(),this._bindInput(),n.value(n.element.val())},destroy:function(){var e=this;e.floatingLabel&&e.floatingLabel.destroy(),e.element.off(h),e._formElement&&(e._formElement.off("reset",e._resetHandler),e._formElement.off("submit",e._submitHandler)),u.fn.destroy.call(e)},raw:function(){var e=this._unmask(this.element.val(),0);return e.replace(RegExp(o(this.options.promptChar),"g"),"")},value:function(e){var n=this.element,i=this._emptyMask;return e===t?this.element.val():(null===e&&(e=""),i?(e=this._unmask(e+""),n.val(e?i:""),this._mask(0,this._maskLength,e),this._unmaskedValue=null,e=n.val(),this._oldValue=e,s._activeElement()!==n&&(e===i?n.val(""):this._togglePrompt()),t):(this._oldValue=e,n.val(e),t))},_togglePrompt:function(e){var t=this.element[0],n=t.value;this.options.clearPromptChar&&(n=e?this._oldValue:n.replace(RegExp(o(this.options.promptChar),"g")," "),t.value=this._old=n)},readonly:function(e){var n=this;this._editable({readonly:e===t||e,disable:!1}),n.floatingLabel&&n.floatingLabel.readonly(e===t||e)},enable:function(e){var n=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),n.floatingLabel&&n.floatingLabel.enable(e=e===t||e)},_bindInput:function(){var e,t,i=this;i._maskLength&&(i.options.$angular&&i.element.off(T),i.element.on(n(C),f(i._keydown,i)).on(n(x),f(i._drop,i)).on(n(k),f(i._trackChange,i)).on(D,f(i._inputHandler,i)),s.support.browser.msie&&(e=s.support.browser.version,e>8&&e<11&&(t=[n(y),n(x),n(C),n(S)].join(" "),i.element.on(t,f(i._legacyIEInputHandler,i)))))},_unbindInput:function(){var e=[D,n(C),n(y),n(x),n(S)].join(" ");this.element.off(e)},_editable:function(e){var t=this,n=t.element,i=t.wrapper,o=e.disable,r=e.readonly;t._unbindInput(),r||o?(n.attr(b,o).attr(w,r),i.toggleClass(v,o)):(n.removeAttr(b).removeAttr(w),i.removeClass(v),t._bindInput())},_change:function(){var e=this,t=e.value();t!==e._oldValue?(e._oldValue=t,e.trigger(k),e.element.trigger(k)):""===t&&e.__changing&&e.element.trigger(k)},inputChange:function(e){var t,n,o,r,d,c=this,u=c._old,h=c.element[0],p=h.value,f=l(h),m=f[1],g=p.length-u.length,v=s.support.mobileOS;c.__dropping&&g<0||(g===-1&&v.android&&"chrome"===v.browser&&(e=!0),t=a(m,i(p,u)),n=p.substring(t,m),h.value=p.substring(0,t)+c._emptyMask.substring(t),o=c._mask(t,m,n),r=c._trimStartPromptChars(p.substring(m),a(g,o-t)),d=c._unmask(r,u.length-r.length),c._mask(o,o,d),e&&(o=c._findCaretPosBackwards(t)),l(h,o),c.__dropping=!1)},_trimStartPromptChars:function(e,t){for(var n=this.options.promptChar;t-- >0&&0===e.indexOf(n);)e=e.substring(1);return e},_findCaretPosBackwards:function(e){var t=this._find(e,!0);return t<e&&(t+=1),t},_inputHandler:function(){s._activeElement()===this.element[0]&&this.inputChange(this.__backward)},_legacyIEInputHandler:function(e){var t=this,n=t.element[0],i=n.value,o=e.type;t.__pasting="paste"===o,m(function(){"mouseup"===o&&t.__pasting||n.value&&n.value!==i&&t.inputChange(t.__backward)})},_trackChange:function(){var e=this;e.__changing=!0,m(function(){e.__changing=!1})},_form:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){m(function(){t.value(n[0].value)})},t._submitHandler=function(){t.element[0].value=t._old=t.raw()},t.options.unmaskOnPost&&o.on("submit",t._submitHandler),t._formElement=o.on("reset",t._resetHandler))},_keydown:function(e){var t=e.keyCode;this.__backward=t===d.BACKSPACE,t===d.ENTER&&this._change()},_drop:function(){this.__dropping=!0},_find:function(e,t){var n=this.element.val()||this._emptyMask,i=1;for(t===!0&&(i=-1);e>-1||e<=this._maskLength;){if(n.charAt(e)!==this.tokens[e])return e;e+=i}return-1},_mask:function(e,n,i,o){var r,a,d,c,u=this.element[0],h=u.value||this._emptyMask,p=this.options.promptChar,f=0;for(e=this._find(e,o),e>n&&(n=e),a=this._unmask(h.substring(n),n),i=this._unmask(i,e),r=i.length,i&&(a=a.replace(RegExp("^_{0,"+r+"}"),"")),i+=a,h=h.split(""),d=i.charAt(f);e<this._maskLength;)h[e]=d||p,d=i.charAt(++f),c===t&&f>r&&(c=e),e=this._find(e+1);return u.value=this._old=h.join(""),s._activeElement()===u&&(c===t&&(c=this._maskLength),l(u,c)),c},_unmask:function(t,n){var i,o,r,a,s,l,d,c;if(!t)return"";if(this._unmaskedValue===t)return this._unmaskedValue;for(t=(t+"").split(""),r=0,a=n||0,s=this.options.promptChar,l=t.length,d=this.tokens.length,c="";a<d&&(i=t[r],o=this.tokens[a],i===o||i===s?(c+=i===s?s:"",r+=1,a+=1):"string"!=typeof o?(o&&o.test&&o.test(i)||e.isFunction(o)&&o(i)?(c+=i,a+=1):1===l&&this._blinkInvalidState(),r+=1):a+=1,!(r>=l)););return this._unmaskedValue=c,c},_label:function(){var t,n,i=this,o=i.element,r=i.options,a=o.attr("id");null!==r.label&&(t=!!p(r.label)&&r.label.floating,n=p(r.label)?r.label.content:r.label,t&&(i._floatingLabelContainer=i.wrapper.wrap("<span></span>").parent(),i.floatingLabel=new s.ui.FloatingLabel(i._floatingLabelContainer,{widget:i})),s.isFunction(n)&&(n=n.call(i)),n||(n=""),a||(a=r.name+"_"+s.guid(),o.attr("id",a)),i._inputLabel=e("<label class='"+g+"' for='"+a+"'>"+n+"</label>'").insertBefore(i.wrapper))},_wrapper:function(){var e=this,t=e.element,n=t[0],i=t.wrap("<span class='k-widget k-maskedtextbox'></span>").parent();i[0].style.cssText=n.style.cssText,n.style.width="100%",e.wrapper=i.addClass(n.className).removeClass("input-validation-error")},_blinkInvalidState:function(){var e=this;e.wrapper.addClass(_),clearTimeout(e._invalidStateTimeout),e._invalidStateTimeout=m(f(e._removeInvalidState,e),100)},_removeInvalidState:function(){var e=this;e.wrapper.removeClass(_),e._invalidStateTimeout=null},_tokenize:function(){for(var e,t,n,i,o=[],r=0,a=this.options.mask||"",l=a.split(""),d=l.length,c=0,u="",h=this.options.promptChar,p=s.getCulture(this.options.culture).numberFormat,f=this._rules;c<d;c++)if(e=l[c],t=f[e])o[r]=t,u+=h,r+=1;else for("."===e||","===e?e=p[e]:"$"===e?e=p.currency.symbol:"\\"===e&&(c+=1,e=l[c]),e=e.split(""),n=0,i=e.length;n<i;n++)o[r]=e[n],u+=e[n],r+=1;this.tokens=o,this._emptyMask=u,this._maskLength=u.length}});c.plugin(A)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.toolbar.min",["kendo.core.min","kendo.userevents.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e){e.target.is(".k-toggle-button")||e.target.toggleClass(W,"press"==e.type)}function i(t){return t=e(t),t.hasClass("km-actionsheet")?t.closest(".km-popup-wrapper"):t.addClass("km-widget km-actionsheet").wrap('<div class="km-actionsheet-wrapper km-actionsheet-tablet km-widget km-popup"></div>').parent().wrap('<div class="km-popup-wrapper k-popup"></div>').parent()}function o(t){e(t.target).closest("a.k-button").length&&t.preventDefault()}function r(t,n){var i="next"===n?e.fn.next:e.fn.prev,o="next"===n?e.fn.first:e.fn.last,a=i.call(t);return!a.length&&t.is("."+ie)?t:a.is(":kendoFocusable")||!a.length?a:a.find(":kendoFocusable").length?o.call(a.find(":kendoFocusable")):r(a,n)}var a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x=window.kendo,C=x.Class,S=x.ui.Widget,T=e.proxy,D=x.isFunction,A=x.keys,E=x._outerWidth,I=".kendoToolBar",M="k-toolbar",R="k-button",F="k-overflow-button",P="k-toggle-button",z="k-button-group",B="k-split-button",L="k-separator",H="k-spacer",N="spacer",O="k-popup",V="k-toolbar-resizable",W="k-state-active",U="k-state-disabled",j="k-state-hidden",q="k-hidden",G="k-group-start",$="k-group-end",K="k-primary",Y="aria-disabled",Q="aria-pressed",X="k-icon",Z="k-i-",J="k-button-icon",ee="k-button-icontext",te="k-list-container k-split-container",ne="k-split-button-arrow",ie="k-overflow-anchor",oe="k-overflow-container",re="k-toolbar-first-visible",ae="k-toolbar-last-visible",se="click",le="toggle",de="open",ce="close",ue="overflowOpen",he="overflowClose",pe="never",fe="auto",me="always",ge="k-overflow-hidden",ve="_optionlist",_e=x.attr("uid");x.toolbar={},a={overflowAnchor:'<div tabindex="0" class="k-overflow-anchor k-button" title="More tools" role="button"></div>',overflowContainer:'<ul class="k-overflow-container k-list-container"></ul>'},x.toolbar.registerComponent=function(e,t,n){a[e]={toolbar:t,overflow:n}},s=x.Class.extend({addOverflowAttr:function(){this.element.attr(x.attr("overflow"),this.options.overflow||fe)},addUidAttr:function(){this.element.attr(_e,this.options.uid)},addIdAttr:function(){this.options.id&&this.element.attr("id",this.options.id)},addOverflowIdAttr:function(){this.options.id&&this.element.attr("id",this.options.id+"_overflow")},attributes:function(){this.options.attributes&&this.element.attr(this.options.attributes)},show:function(){this.element.removeClass(j),this.element.removeClass(q),this.options.hidden=!1},hide:function(){this.element.addClass(j),this.element.addClass(q),this.overflow&&this.overflowHidden&&this.overflowHidden(),this.options.hidden=!0},remove:function(){this.element.remove()},enable:function(e){e===t&&(e=!0),this.element.toggleClass(U,!e),this.element.attr(Y,!e),this.options.enable=e},twin:function(){var n=this.element.attr(_e);return this.overflow&&this.options.splitContainerId?e("#"+this.options.splitContainerId).find("["+_e+"='"+n+"']").data(this.options.type):this.overflow?this.toolbar.element.find("["+_e+"='"+n+"']").data(this.options.type):this.toolbar.options.resizable?this.toolbar.popup.element.find("["+_e+"='"+n+"']").data(this.options.type):t}}),x.toolbar.Item=s,l=s.extend({init:function(n,i){var o=e(n.useButtonTag?'<button tabindex="0"></button>':'<a role="button" href tabindex="0"></a>');this.element=o,this.options=n,this.toolbar=i,this.attributes(),n.primary&&o.addClass(K),n.togglable&&(o.addClass(P),this.toggle(n.selected)),n.url===t||n.useButtonTag||(o.attr("href",n.url),n.mobile&&o.attr(x.attr("role"),"button")),n.group&&(o.attr(x.attr("group"),n.group),this.group=this.toolbar.addToGroup(this,n.group)),!n.togglable&&n.click&&D(n.click)&&(this.clickHandler=n.click),n.togglable&&n.toggle&&D(n.toggle)&&(this.toggleHandler=n.toggle)},toggle:function(e,t){e=!!e,this.group&&e?this.group.select(this):this.group||this.select(e),t&&this.twin()&&this.twin().toggle(e)},getParentGroup:function(){if(this.options.isChild)return this.element.closest("."+z).data("buttonGroup")},_addGraphics:function(){var t,n,i,o=this.element,r=this.options.icon,a=this.options.spriteCssClass,s=this.options.imageUrl;(a||s||r)&&(t=!0,o.contents().filter(function(){return!e(this).hasClass("k-sprite")&&!e(this).hasClass(X)&&!e(this).hasClass("k-image")}).each(function(e,n){(1==n.nodeType||3==n.nodeType&&x.trim(n.nodeValue).length>0)&&(t=!1)}),o.addClass(t?J:ee)),r?(n=o.children("span."+X).first(),n[0]||(n=e('<span class="'+X+'"></span>').prependTo(o)),n.addClass(Z+r)):a?(n=o.children("span.k-sprite").first(),n[0]||(n=e('<span class="k-sprite '+X+'"></span>').prependTo(o)),n.addClass(a)):s&&(i=o.children("img.k-image").first(),i[0]||(i=e('<img alt="icon" class="k-image" />').prependTo(o)),i.attr("src",s))}}),x.toolbar.Button=l,d=l.extend({init:function(e,t){l.fn.init.call(this,e,t);var n=this.element;n.addClass(R),this.addIdAttr(),e.align&&n.addClass("k-align-"+e.align),"overflow"!=e.showText&&e.text&&n.html(e.mobile?'<span class="km-text">'+e.text+"</span>":e.text),e.hasIcon="overflow"!=e.showIcon&&(e.icon||e.spriteCssClass||e.imageUrl),e.hasIcon&&this._addGraphics(),this.addUidAttr(),this.addOverflowAttr(),this.enable(e.enable),e.hidden&&this.hide(),this.element.data({type:"button",button:this})},select:function(e){e===t&&(e=!1),this.options.togglable&&this.element.attr(Q,e),this.element.toggleClass(W,e),this.options.selected=e}}),x.toolbar.ToolBarButton=d,c=l.extend({init:function(t,n){this.overflow=!0,l.fn.init.call(this,e.extend({},t),n);var i=this.element;"toolbar"!=t.showText&&t.text&&i.html(t.mobile?'<span class="km-text">'+t.text+"</span>":'<span class="k-text">'+t.text+"</span>"),t.hasIcon="toolbar"!=t.showIcon&&(t.icon||t.spriteCssClass||t.imageUrl),t.hasIcon&&this._addGraphics(),t.isChild||this._wrap(),this.addOverflowIdAttr(),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.enable(t.enable),i.addClass(F+" "+R),t.hidden&&this.hide(),t.togglable&&this.toggle(t.selected),this.element.data({type:"button",button:this})},_wrap:function(){this.element=this.element.wrap("<li></li>").parent()},overflowHidden:function(){this.element.addClass(ge)},select:function(e){e===t&&(e=!1),this.options.isChild?this.element.toggleClass(W,e):this.element.find(".k-button").toggleClass(W,e),this.options.selected=e}}),x.toolbar.OverflowButton=c,x.toolbar.registerComponent("button",d,c),u=s.extend({createButtons:function(t){var n,i,o=this.options,r=o.buttons||[];for(i=0;i<r.length;i++)r[i].uid||(r[i].uid=x.guid()),n=new t(e.extend({mobile:o.mobile,isChild:!0,type:"button"},r[i]),this.toolbar),n.element.appendTo(this.element)},refresh:function(){this.element.children().filter(":not('."+j+"'):first").addClass(G),this.element.children().filter(":not('."+j+"'):last").addClass($)}}),x.toolbar.ButtonGroup=u,h=u.extend({init:function(t,n){var i=this.element=e("<div></div>");this.options=t,this.toolbar=n,this.addIdAttr(),t.align&&i.addClass("k-align-"+t.align),this.createButtons(d),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass(z),this.element.data({type:"buttonGroup",buttonGroup:this})}}),x.toolbar.ToolBarButtonGroup=h,p=u.extend({init:function(t,n){var i=this.element=e("<li></li>");this.options=t,this.toolbar=n,this.overflow=!0,this.addOverflowIdAttr(),this.createButtons(c),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass((t.mobile?"":z)+" k-overflow-group"),this.element.data({type:"buttonGroup",buttonGroup:this})},overflowHidden:function(){this.element.addClass(ge)}}),x.toolbar.OverflowButtonGroup=p,x.toolbar.registerComponent("buttonGroup",h,p),f=s.extend({init:function(t,n){var i=this.element=e('<div class="'+B+'" tabindex="0"></div>');this.options=t,this.toolbar=n,this.mainButton=new d(e.extend({},t,{hidden:!1}),n),this.arrowButton=e('<a class="'+R+" "+ne+'"><span class="'+(t.mobile?"km-icon km-arrowdown":"k-icon k-i-arrow-60-down")+'"></span></a>'),this.popupElement=e('<ul class="'+te+'"></ul>'),this.mainButton.element.removeAttr("href tabindex").appendTo(i),this.arrowButton.appendTo(i),this.popupElement.appendTo(i),t.align&&i.addClass("k-align-"+t.align),t.id||(t.id=t.uid),i.attr("id",t.id+"_wrapper"),this.addOverflowAttr(),this.addUidAttr(),this.createMenuButtons(),this.createPopup(),this._navigatable(),this.mainButton.main=!0,this.enable(t.enable),t.hidden&&this.hide(),i.data({type:"splitButton",splitButton:this,kendoPopup:this.popup})},_navigatable:function(){var t=this;t.popupElement.on("keydown"+I,"."+R,function(n){var i=e(n.target).parent();n.preventDefault(),n.keyCode===A.ESC||n.keyCode===A.TAB||n.altKey&&n.keyCode===A.UP?(t.toggle(),t.focus()):n.keyCode===A.DOWN?r(i,"next").focus():n.keyCode===A.UP?r(i,"prev").focus():n.keyCode===A.SPACEBAR||n.keyCode===A.ENTER?t.toolbar.userEvents.trigger("tap",{target:e(n.target)}):n.keyCode===A.HOME?i.parent().find(":kendoFocusable").first().focus():n.keyCode===A.END&&i.parent().find(":kendoFocusable").last().focus()})},createMenuButtons:function(){var t,n,i=this.options,o=i.menuButtons;for(n=0;n<o.length;n++)t=new d(e.extend({mobile:i.mobile,type:"button",click:i.click},o[n]),this.toolbar),t.element.wrap("<li></li>").parent().appendTo(this.popupElement)},createPopup:function(){var n=this,r=this.options,a=this.element;this.popupElement.attr("id",r.id+ve).attr(_e,r.rootUid),r.mobile&&(this.popupElement=i(this.popupElement)),this.popup=this.popupElement.kendoPopup({appendTo:r.mobile?e(r.mobile).children(".km-pane"):null,anchor:a,isRtl:this.toolbar._isRtl,copyAnchorStyles:!1,animation:r.animation,open:function(e){var i=n.toolbar.trigger(de,{target:a});return i?(e.preventDefault(),t):(n.adjustPopupWidth(e.sender),t)},activate:function(){this.element.find(":kendoFocusable").first().focus()},close:function(e){var t=n.toolbar.trigger(ce,{target:a});t&&e.preventDefault(),a.focus()}}).data("kendoPopup"),this.popup.element.on(se+I,"a.k-button",o)},adjustPopupWidth:function(e){var t,n=e.options.anchor,i=E(n);x.wrap(e.element).addClass("k-split-wrapper"),t="border-box"!==e.element.css("box-sizing")?i-(E(e.element)-e.element.width()):i,e.element.css({fontFamily:n.css("font-family"),"min-width":t})},remove:function(){this.popup.element.off(se+I,"a.k-button"),this.popup.destroy(),this.element.remove()},toggle:function(){(this.options.enable||this.popup.visible())&&this.popup.toggle()},enable:function(e){e===t&&(e=!0),this.mainButton.enable(e),this.element.toggleClass(U,!e),this.element.attr(Y,!e),this.options.enable=e},focus:function(){this.element.focus()},hide:function(){this.popup&&this.popup.close(),this.element.addClass(j),this.element.addClass(q),this.options.hidden=!0},show:function(){this.element.removeClass(j),this.element.removeClass(q),this.options.hidden=!1}}),x.toolbar.ToolBarSplitButton=f,m=s.extend({init:function(t,n){var i,o,r,a=this.element=e('<li class="'+B+'"></li>'),s=t.menuButtons;for(this.options=t,this.toolbar=n,this.overflow=!0,o=(t.id||t.uid)+ve,this.mainButton=new c(e.extend({isChild:!0},t)),this.mainButton.element.appendTo(a),r=0;r<s.length;r++)i=new c(e.extend({mobile:t.mobile,type:"button",splitContainerId:o,isChild:!0},s[r]),this.toolbar),i.element.appendTo(a);this.addUidAttr(),this.addOverflowAttr(),this.mainButton.main=!0,a.data({type:"splitButton",splitButton:this})},overflowHidden:function(){this.element.addClass(ge)}}),x.toolbar.OverflowSplitButton=m,x.toolbar.registerComponent("splitButton",f,m),g=s.extend({init:function(t,n){var i=this.element=e("<div>&nbsp;</div>");this.element=i,this.options=t,this.toolbar=n,this.attributes(),this.addIdAttr(),this.addUidAttr(),this.addOverflowAttr(),i.addClass(L),i.data({type:"separator",separator:this})}}),v=s.extend({init:function(t,n){var i=this.element=e("<li>&nbsp;</li>");this.element=i,this.options=t,this.toolbar=n,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),i.addClass(L),i.data({type:"separator",separator:this})},overflowHidden:function(){this.element.addClass(ge)}}),x.toolbar.registerComponent("separator",g,v),_=s.extend({init:function(t,n){var i=this.element=e("<div>&nbsp;</div>");this.element=i,this.options=t,this.toolbar=n,i.addClass(H),i.data({type:N})}}),x.toolbar.registerComponent(N,_),b=s.extend({init:function(t,n,i){var o=D(t)?t(n):t;o=o instanceof jQuery?o.wrap("<div></div>").parent():e("<div></div>").html(o),this.element=o,this.options=n,this.options.type="template",this.toolbar=i,this.attributes(),this.addUidAttr(),this.addIdAttr(),this.addOverflowAttr(),o.data({type:"template",template:this})}}),x.toolbar.TemplateItem=b,w=s.extend({init:function(t,n,i){var o=e(D(t)?t(n):t);o=o instanceof jQuery?o.wrap("<li></li>").parent():e("<li></li>").html(o),this.element=o,this.options=n,this.options.type="template",this.toolbar=i,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),this.addOverflowAttr(),o.data({type:"template",template:this})},overflowHidden:function(){this.element.addClass(ge)}}),x.toolbar.OverflowTemplateItem=w,k=C.extend({init:function(e){this.name=e,this.buttons=[]},add:function(e){this.buttons[this.buttons.length]=e},remove:function(t){var n=e.inArray(t,this.buttons);this.buttons.splice(n,1)},select:function(e){var t,n;for(n=0;n<this.buttons.length;n++)t=this.buttons[n],t.select(!1);e.select(!0),e.twin()&&e.twin().select(!0)}}),y=S.extend({init:function(t,i){var r,a=this;if(S.fn.init.call(a,t,i),i=a.options,t=a.wrapper=a.element,t.addClass(M+" k-widget"),this.uid=x.guid(),this._isRtl=x.support.isRtl(t),this._groups={},t.attr(_e,this.uid),a.isMobile="boolean"==typeof i.mobile?i.mobile:a.element.closest(".km-root")[0],a.animation=a.isMobile?{open:{effects:"fade"}}:{},a.isMobile&&(t.addClass("km-widget"),X="km-icon",Z="km-",R="km-button",z="km-buttongroup",W="km-state-active",U="km-state-disabled"),i.resizable?(a._renderOverflow(),t.addClass(V),a.overflowUserEvents=new x.UserEvents(a.element,{threshold:5,allowSelection:!0,filter:"."+ie,tap:T(a._toggleOverflow,a)}),a._resizeHandler=x.onResize(function(){a.resize()})):a.popup={element:e([])},i.items&&i.items.length){for(r=0;r<i.items.length;r++)a.add(i.items[r]);i.resizable&&a._shrink(a.element.innerWidth())}a.userEvents=new x.UserEvents(document,{threshold:5,allowSelection:!0,filter:"["+_e+"="+this.uid+"] a."+R+", ["+_e+"="+this.uid+"] ."+F,tap:T(a._buttonClick,a),press:n,release:n}),a.element.on(se+I,"a.k-button",o),a._navigatable(),i.resizable&&a.popup.element.on(se+I,NaN,o),i.resizable&&this._toggleOverflowAnchor(),x.notify(a)},events:[se,le,de,ce,ue,he],options:{name:"ToolBar",items:[],resizable:!0,mobile:null},addToGroup:function(e,t){var n;return n=this._groups[t]?this._groups[t]:this._groups[t]=new k,n.add(e),n},destroy:function(){var t=this;t.element.find("."+B).each(function(t,n){e(n).data("kendoPopup").destroy()}),t.element.off(I,"a.k-button"),t.userEvents.destroy(),t.options.resizable&&(x.unbindResize(t._resizeHandler),t.overflowUserEvents.destroy(),t.popup.element.off(I,"a.k-button"),t.popup.destroy()),S.fn.destroy.call(t)},add:function(t){var n,i,o,r=a[t.type],s=t.template,l=this,d=l.isMobile?"":"k-item k-state-default",c=t.overflowTemplate;if(e.extend(t,{uid:x.guid(),animation:l.animation,mobile:l.isMobile,rootUid:l.uid}),t.menuButtons)for(o=0;o<t.menuButtons.length;o++)e.extend(t.menuButtons[o],{uid:x.guid()});s&&!c||t.type===N?t.overflow=pe:t.overflow||(t.overflow=fe),t.overflow!==pe&&l.options.resizable&&(c?i=new w(c,t,l):r&&(i=new r.overflow(t,l),i.element.addClass(d)),i&&(t.overflow===fe&&i.overflowHidden(),i.element.appendTo(l.popup.container),l.angular("compile",function(){return{elements:i.element.get()}}))),t.overflow!==me&&(s?n=new b(s,t,l):r&&(n=new r.toolbar(t,l)),n&&(n.element.appendTo(l.element),l.angular("compile",function(){return{elements:n.element.get()}})))},_getItem:function(t){var n,i,o,r,a=this.options.resizable;return n=this.element.find(t),n.length||(n=e(".k-split-container[data-uid="+this.uid+"]").find(t)),
r=n.length?n.data("type"):"",i=n.data(r),i?(i.main&&(n=n.parent("."+B),r="splitButton",i=n.data(r)),a&&(o=i.twin())):a&&(n=this.popup.element.find(t),r=n.length?n.data("type"):"",o=n.data(r),o&&o.main&&(n=n.parent("."+B),r="splitButton",o=n.data(r))),{type:r,toolbar:i,overflow:o}},remove:function(e){var t=this._getItem(e);t.toolbar&&t.toolbar.remove(),t.overflow&&t.overflow.remove(),this.resize(!0)},hide:function(e){var t,n=this._getItem(e);n.toolbar&&("button"===n.toolbar.options.type&&n.toolbar.options.isChild?(t=n.toolbar.getParentGroup(),n.toolbar.hide(),t&&t.refresh()):n.toolbar.options.hidden||n.toolbar.hide()),n.overflow&&("button"===n.overflow.options.type&&n.overflow.options.isChild?(t=n.overflow.getParentGroup(),n.overflow.hide(),t&&t.refresh()):n.overflow.options.hidden||n.overflow.hide()),this.resize(!0)},show:function(e){var t,n=this._getItem(e);n.toolbar&&("button"===n.toolbar.options.type&&n.toolbar.options.isChild?(t=n.toolbar.getParentGroup(),n.toolbar.show(),t&&t.refresh()):n.toolbar.options.hidden&&n.toolbar.show()),n.overflow&&("button"===n.overflow.options.type&&n.overflow.options.isChild?(t=n.overflow.getParentGroup(),n.toolbar.show(),t&&t.refresh()):n.overflow.options.hidden&&n.overflow.show()),this.resize(!0)},enable:function(e,n){var i=this._getItem(e);t===n&&(n=!0),i.toolbar&&i.toolbar.enable(n),i.overflow&&i.overflow.enable(n)},getSelectedFromGroup:function(e){return this.element.find("."+P+"[data-group='"+e+"']").filter("."+W)},toggle:function(n,i){var o=e(n),r=o.data("button");r.options.togglable&&(i===t&&(i=!0),r.toggle(i,!0))},_renderOverflow:function(){var t=this,n=a.overflowContainer,o=t._isRtl,s=o?"left":"right";t.overflowAnchor=e(a.overflowAnchor).addClass(R),t.element.append(t.overflowAnchor),t.isMobile?(t.overflowAnchor.append('<span class="km-icon km-more"></span>'),n=i(n)):t.overflowAnchor.append('<span class="k-icon k-i-more-vertical"></span>'),t.popup=new x.ui.Popup(n,{origin:"bottom "+s,position:"top "+s,anchor:t.overflowAnchor,isRtl:o,animation:t.animation,appendTo:t.isMobile?e(t.isMobile).children(".km-pane"):null,copyAnchorStyles:!1,open:function(n){var i=x.wrap(t.popup.element).addClass("k-overflow-wrapper");t.isMobile?t.popup.container.css("max-height",parseFloat(e(".km-content:visible").innerHeight())-15+"px"):i.css("margin-left",(o?-1:1)*((E(i)-i.width())/2+1)),t.trigger(ue)&&n.preventDefault()},activate:function(){this.element.find(":kendoFocusable").first().focus()},close:function(e){t.trigger(he)&&e.preventDefault(),this.element.focus()}}),t.popup.element.on("keydown"+I,"."+R,function(n){var i,o=e(n.target),a=o.parent(),s=a.is("."+z)||a.is("."+B);n.preventDefault(),n.keyCode===A.ESC||n.keyCode===A.TAB||n.altKey&&n.keyCode===A.UP?(t._toggleOverflow(),t.overflowAnchor.focus()):n.keyCode===A.DOWN?(i=!s||s&&o.is(":last-child")?a:o,r(i,"next").focus()):n.keyCode===A.UP?(i=!s||s&&o.is(":first-child")?a:o,r(i,"prev").focus()):n.keyCode===A.SPACEBAR||n.keyCode===A.ENTER?(t.userEvents.trigger("tap",{target:e(n.target)}),t.overflowAnchor.focus()):n.keyCode===A.HOME?a.parent().find(":kendoFocusable").first().focus():n.keyCode===A.END&&a.parent().find(":kendoFocusable").last().focus()}),t.popup.container=t.isMobile?t.popup.element.find("."+oe):t.popup.element,t.popup.container.attr(_e,this.uid)},_toggleOverflowAnchor:function(){var e=!1,t=this._isRtl?"padding-left":"padding-right";e=this.options.mobile?this.popup.element.find("."+oe).children(":not(."+ge+", ."+O+")").length>0:this.popup.element.children(":not(."+ge+", ."+O+")").length>0,e?(this.overflowAnchor.css({visibility:"visible",width:""}),this.wrapper.css(t,this.overflowAnchor.outerWidth(!0))):(this.overflowAnchor.css({visibility:"hidden",width:"1px"}),this.wrapper.css(t,""))},_buttonClick:function(n){var i,o,r,a,s,l,d,c=this,u=n.target.closest("."+ne).length;return n.preventDefault(),u?(c._toggle(n),t):(o=e(n.target).closest("."+R,c.element),o.hasClass(ie)||(r=o.data("button"),!r&&c.popup&&(o=e(n.target).closest("."+F,c.popup.container),r=o.parent("li").data("button")),r&&r.options.enable&&(r.options.togglable?(s=D(r.toggleHandler)?r.toggleHandler:null,r.toggle(!r.options.selected,!0),l={target:o,group:r.options.group,checked:r.options.selected,id:r.options.id,item:r},s&&s.call(c,l),c.trigger(le,l)):(s=D(r.clickHandler)?r.clickHandler:null,l={sender:c,target:o,id:r.options.id,item:r},s&&s.call(c,l),c.trigger(se,l)),r.options.url&&(r.options.attributes&&r.options.attributes.target&&(d=r.options.attributes.target),window.open(r.options.url,d||"_self")),o.hasClass(F)&&c.popup.close(),a=o.closest(".k-split-container"),a[0]&&(i=a.data("kendoPopup"),(i?i:a.parents(".km-popup-wrapper").data("kendoPopup")).close()))),t)},_navigatable:function(){var t=this;t.element.attr("tabindex",0).on("focusin"+I,function(t){var n=e(t.target),i=e(this).find(":kendoFocusable:first");n.is("."+M)&&0!==i.length&&(i.is("."+ie)&&(i=r(i,"next")),i.length&&i[0].focus())}).on("keydown"+I,T(t._keydown,t))},_keydown:function(n){var i,o,r,a,s,l,d,c,u,h=e(n.target),p=n.keyCode,f=this.element.children(":not(.k-separator):visible"),m=this._isRtl?-1:1;if(p===A.TAB&&(i=h.parentsUntil(this.element).last(),o=!1,r=!1,a=!1,f.not("."+ie).length||(a=!0),i.length||(i=h),i.is("."+ie)&&!a&&(s=f.last(),n.shiftKey&&n.preventDefault(),s.is(":kendoFocusable")?f.last().focus():f.last().find(":kendoFocusable").last().focus()),n.shiftKey||f.index(i)!==f.length-1||(o=!i.is("."+z)||h.is(":last-child")),l=f.index(i)===f.not(".k-overflow-anchor").first().index(),n.shiftKey&&l&&(r=!i.is("."+z)||h.is(":first-child")),o&&this.overflowAnchor&&"hidden"!==this.overflowAnchor.css("visibility")&&!a&&(n.preventDefault(),this.overflowAnchor.focus()),(r||a&&n.shiftKey)&&(n.preventDefault(),d=this._getPrevFocusable(this.wrapper),d&&d.focus()),this._preventNextFocus=!1),n.altKey&&p===A.DOWN)return c=e(document.activeElement).data("splitButton"),u=e(document.activeElement).is("."+ie),c?c.toggle():u&&this._toggleOverflow(),t;if((p===A.SPACEBAR||p===A.ENTER)&&!h.is("input, checkbox"))return p===A.SPACEBAR&&n.preventDefault(),h.is("."+B)?(h=h.children().first(),this.userEvents.trigger("tap",{target:h})):p===A.SPACEBAR&&this.userEvents.trigger("tap",{target:h}),t;if(p===A.HOME){if(h.is(".k-dropdown")||h.is("input"))return;this.overflowAnchor?f.eq(1).focus():f.first().focus(),n.preventDefault()}else if(p===A.END){if(h.is(".k-dropdown")||h.is("input"))return;this.overflowAnchor&&"hidden"!=e(this.overflowAnchor).css("visibility")?this.overflowAnchor.focus():f.last().focus(),n.preventDefault()}else p!==A.RIGHT||this._preventNextFocus||h.is("input, select, .k-dropdown, .k-colorpicker")||!this._getNextElement(n.target,1*m)?p!==A.LEFT||this._preventNextFocus||h.is("input, select, .k-dropdown, .k-colorpicker")||!this._getNextElement(n.target,-1*m)||(this._getNextElement(n.target,-1*m).focus(),n.preventDefault()):(this._getNextElement(n.target,1*m).focus(),n.preventDefault())},_getNextElement:function(t,n){var i=this.element.children(":not(.k-separator):visible"),o=i.index(i.index(t)===-1?t.parentElement:t),r=this.overflowAnchor?1:0,a=n,s=1===n?i.length-1:r,l=1===n?r:i.length-1,d=i[o+n];if(this._preventNextFocus=!1,e(t).closest("."+z).length&&!e(t).is(1===n?":last-child":":first-child"))return e(t).closest("."+z).children()[e(t).closest("."+z).children().index(t)+n];for(this.overflowAnchor&&t===this.overflowAnchor[0]&&n===-1&&(d=i[i.length-1]),o===s&&(d=!this.overflowAnchor||this.overflowAnchor&&"hidden"===e(this.overflowAnchor).css("visibility")?i[l]:this.overflowAnchor);!e(d).is(":kendoFocusable");){if(d=n===-1&&e(d).closest("."+z).length?e(d).children(":not(label, div)").last():e(d).children(":not(label, div)").first(),!d.length&&(a+=n,d=i[o+a],!d))return this.overflowAnchor;this._preventNextFocus=!e(d).closest("."+z).length}return d},_getPrevFocusable:function(n){if(n.is("html"))return n;var i,o,r=n.prevAll();return r.each(function(){return o=e(this),o.is(":kendoFocusable")?(i=o,!1):o.find(":kendoFocusable").length>0?(i=o.find(":kendoFocusable").last(),!1):t}),i?i:this._getPrevFocusable(n.parent())},_toggle:function(t){var n=e(t.target).closest("."+B).data("splitButton");t.preventDefault(),n.options.enable&&n.toggle()},_toggleOverflow:function(){this.popup.toggle()},_resize:function(e){var t=e.width;this.options.resizable&&(this.popup.close(),this._shrink(t),this._stretch(t),this._markVisibles(),this._toggleOverflowAnchor())},_childrenWidth:function(){var t=0;return this.element.children(":visible:not(."+j+", ."+H+")").each(function(){t+=E(e(this),!0)}),Math.ceil(t)},_shrink:function(e){var t,n,i;if(e<this._childrenWidth())for(n=this.element.children(":visible:not([data-overflow='never'], ."+ie+")"),i=n.length-1;i>=0&&(t=n.eq(i),!(e>this._childrenWidth()));i--)this._hideItem(t)},_stretch:function(e){var t,n,i;if(e>this._childrenWidth())for(n=this.element.children(":hidden:not('."+j+"')"),i=0;i<n.length&&(t=n.eq(i),!(e<this._childrenWidth())&&this._showItem(t,e));i++);},_hideItem:function(e){e.addClass(q),this.popup&&this.popup.container.find(">li[data-uid='"+e.data("uid")+"']").removeClass(ge)},_showItem:function(e,t){e.removeClass(q);var n=E(e,!0);return e.addClass(q),!!(e.length&&t>this._childrenWidth()+n)&&(e.removeClass(q),this.popup&&this.popup.container.find(">li[data-uid='"+e.data("uid")+"']").addClass(ge),!0)},_markVisibles:function(){var e=this.popup.container.children(),t=this.element.children(":not(.k-overflow-anchor)"),n=e.filter(":not(.k-overflow-hidden)"),i=t.filter(":visible");e.add(t).removeClass(re+" "+ae),n.first().add(i.first()).addClass(re),n.last().add(i.last()).addClass(ae)}}),x.ui.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mediaplayer.min",["kendo.slider.min","kendo.toolbar.min","kendo.dropdownlist.min","kendo.tooltip.min"],e)}(function(){return function(e,t){var n=window.kendo,i="end",o="pause",r="play",a="ready",s="timeChange",l="volumeChange",d="k-i-full-screen",c="k-i-full-screen-exit",u="k-i-volume-off",h="k-i-volume-down",p="k-i-volume-up",f="k-mediaplayer-quality",m="k-i-play",g="k-i-pause",v="k-mediaplayer-titlebar",_="k-title",b="k-mediaplayer-toolbar-wrap",w="k-mediaplayer-toolbar",k="k-mediaplayer-seekbar",y="k-mediaplayer-volume",x="k-mediaplayer-media",C="k-mediaplayer-overlay",S="k-mediaplayer-yt",T=".",D=n.ui,A=".kendoMediaPlayer",E=new Date(1970,0,1),I=60*E.getTimezoneOffset(),M=n.ui.Widget,R=e.isArray,F={shortTime:"mm:ss",longTime:"HH:mm:ss"},P=n.template,z=e.proxy,B=n.keys,L={htmlPlayer:"<video class='"+x+"'> </video>",titleBar:P("<div class='"+v+"' role='heading'><span class='"+_+"'>Video Title</span></div>"),toolBar:"<div class='"+b+"'><div class='"+w+"'></div></div>",youtubePlayer:"<div class='"+S+"'> </div>",toolBarTime:"<span class='k-mediaplayer-currenttime'>00:00:00</span> / <span class='k-mediaplayer-duration'>00:00:00</span>",slider:"<input class='"+k+"' value='0' title='seekbar' />",volumeSlider:"<input class='"+y+"' title='volume'/>",qualityDropDown:"<input class='"+f+"' title='video quality' />",toolTip:"#= kendo.toString(new Date(value), 'HH:mm:ss') #"},H=M.extend({init:function(t,i){this.wrapper=e(t),M.fn.init.call(this,t,i),this.wrapper.addClass("k-mediaplayer k-widget"),i=this.options,this._currentIndex=0,this._createTitlebar(),this._createToolbar(),this._createDropDown(),this._createSlider(),this._createVolumeSlider(),this._timers={},this._aria(),this._navigatable(),i.fullScreen&&this.fullScreen(!0),i.media&&this.media(this.options.media),n.notify(this)},events:[i,o,r,a,s,l],options:{name:"MediaPlayer",autoPlay:!1,autoRepeat:!1,volume:100,fullScreen:!1,mute:!1,navigatable:!1,forwardSeek:!0,media:null,messages:{pause:"Pause",play:"Play",mute:"Mute",unmute:"Unmute",quality:"Quality",fullscreen:"Full Screen"}},_msToTime:function(e){var t=new Date(E.getTime());return t.setSeconds(e),t},_timeToSec:function(e){var t=new Date(e).getTime();return t/1e3},_createTitlebar:function(){this._titleBar=this.wrapper.find(T+v),0===this._titleBar.length&&(this.wrapper.append(L.titleBar),this._titleBar=this.wrapper.find(T+v))},_createSlider:function(){var e=this.wrapper.find(T+k);this._slider||(this._sliderDragChangeHandler=z(this._sliderDragChange,this),this._sliderDraggingHandler=z(this._sliderDragging,this),e=this.wrapper.find(T+k),this._slider=new D.Slider(e[0],{smallStep:1e3,tickPlacement:"none",showButtons:!1,change:this._sliderDragChangeHandler,slide:this._sliderDraggingHandler,tooltip:{template:L.toolTip},dragHandleTitle:""}))},_createVolumeSlider:function(){var e=this.wrapper.find(T+y);this._volumeSlider||(this._volumeDraggingHandler=z(this._volumeDragging,this),this._volumeChangeHandler=z(this._volumeChange,this),e.width(87),this._volumeSlider=new D.Slider(e[0],{smallStep:1,min:0,max:100,value:this.options.volume,slide:this._volumeDraggingHandler,change:this._volumeChangeHandler,tickPlacement:"none",showButtons:!1,tooltip:{enabled:!1},dragHandleTitle:""}))},_resetTime:function(){this._youTubeVideo?this._ytmedia.seekTo(0,!0):this._media.currentTime=0,this._mediaTimeUpdate(),e.grep(this._toolBar.options.items,function(e){return!!e.template}).template=L.toolBarTime},_currentUrl:function(){var e=this.media();return R(e.source)?e.source[this._currentIndex].url:e.source},_isYouTubeUrl:function(){return!!this._currentUrl().match("youtube.com/|youtu.be/")},_setPlayerUrl:function(){var e,t=this._youTubeVideo;this.stop(),this._youTubeVideo=this._isYouTubeUrl(),t!==this._youTubeVideo&&(this.wrapper.find(T+S).toggle(),this.wrapper.find(T+x).toggle()),e=this._media||this._ytmedia,this._initializePlayer(),e&&(this.mute(this.mute()),this.volume(this.volume())),this._youTubeVideo?this._ytmedia&&(this._videoOverlay&&this._videoOverlay.hide(),this.options.autoPlay?(this._ytmedia.loadVideoById(this._getMediaId()),this._playStateToggle(!0)):(this._ytmedia.cueVideoById(this._getMediaId()),this._playStateToggle(!0))):(this._videoOverlay.show(),this.wrapper.find(T+x+" > source").remove(),this.wrapper.find(T+x).attr("src",this._currentUrl()),this.options.autoPlay&&this.play())},_createToolbar:function(){var t=this.wrapper.find(T+w);0===t.length&&(this._toolbarClickHandler=z(this._toolbarClick,this),this.wrapper.append(L.toolBar),t=this.wrapper.find(T+w),t.width(this.wrapper.find(T+x).width()),this._toolBar=new D.ToolBar(t,{click:this._toolbarClickHandler,resizable:!1,items:[{type:"button",attributes:{"class":"k-play-button"},icon:"play"},{template:L.toolBarTime,attributes:{"class":"k-mediaplayer-currenttime-wrap"}},{type:"separator",attributes:{"class":"k-toolbar-spacer"}},{type:"button",attributes:{"class":"k-volume-button"},icon:"volume-up"},{template:L.volumeSlider,attributes:{"class":"k-mediaplayer-volume-wrap"}},{template:L.qualityDropDown,attributes:{"class":"k-mediaplayer-quality-wrap"}},{type:"button",attributes:{"class":"k-fullscreen-button"},icon:"full-screen"}]}),this._toolBar.wrapper.off("keydown"),t.before(L.slider),this._volumeButton=t.find(".k-volume-button"),this._fullscreenButton=t.find(".k-fullscreen-button"),this._volumeButton.attr("title",this.options.mute?this.options.messages.unmute:this.options.messages.mute),this._volumeButton.attr("aria-label",this.options.mute?this.options.messages.unmute:this.options.messages.mute),this._fullscreenButton.attr("title",this.options.messages.fullscreen),this._fullscreenButton.attr("aria-label",this.options.messages.fullscreen),t.width("auto"),this._currentTimeElement=t.find(".k-mediaplayer-currenttime"),this._durationElement=t.find(".k-mediaplayer-duration"),this._playButton=t.find(".k-play-button"),this._playButtonSpan=this._playButton.find(".k-i-play"),this.options.autoPlay&&this._playStateToggle(!0),e([this._volumeButton[0],t.find(".k-mediaplayer-volume-wrap")[0],t.find(".k-mediaplayer-quality-wrap")[0],this._fullscreenButton[0]]).wrapAll("<div class='k-align-right' />"),t.find(".k-button").addClass("k-flat"))},_createDropDown:function(){var e=this.wrapper.find(T+f),n=this.media();t===e.data("kendoDropDownList")&&(this._dropDownSelectHandler=z(this._dropDownSelect,this),this._dropDown=new D.DropDownList(e,{dataTextField:"quality",dataValueField:"url",popup:{position:"bottom",origin:"top",appendTo:this.wrapper},animation:{open:{effects:"slideIn:up",duration:1}},select:this._dropDownSelectHandler}),n&&R(n.source)&&(this._dropDown.setDataSource(n.source),this._dropDown.select(0)),this._dropDown.wrapper.addClass("k-button k-flat"),this._dropDown.wrapper.attr("title",this.options.messages.quality).hide(),this._dropDown.wrapper.find("span.k-i-arrow-60-down").removeClass("k-i-arrow-60-down").addClass("k-icon k-i-hd"),this._dropDown.list.addClass("k-quality-list"))},_dropDownSelect:function(e){this._currentIndex!==e.item.index()&&(this._currentIndex=e.item.index(),this._setPlayerUrl())},_toolbarClick:function(t){var n,i=e(t.target).children().first(),o=i.hasClass(m);this.media()&&((i.hasClass(m)||i.hasClass(g))&&(o?this.play():this.pause()),(i.hasClass(d)||i.hasClass(c))&&(this._isInFullScreen?(i.removeClass(c).addClass(d),this.fullScreen(!1)):(i.removeClass(d).addClass(c),this.fullScreen(!0))),(i.hasClass(u)||i.hasClass(h)||i.hasClass(p))&&(n=this.mute(),this.mute(!n)))},_sliderDragging:function(){this.media()&&(this._isDragging=!0)},_sliderDragChange:function(e){var t=this,n=e.sender,i=1e3*I;this.media()&&(t._sliderChangeFired=!0,t._isDragging=!1,!this.options.forwardSeek&&n.value()>this._seekBarLastPosition?setTimeout(function(){n.value(t._seekBarLastPosition)},1):this._youTubeVideo?t._ytmedia.seekTo(t._timeToSec(e.value-i)):t._media.currentTime=t._timeToSec(e.value-i),t.trigger(s),t._preventPlay=!0)},_changeVolumeButtonImage:function(e){var t=this._volumeButton,n=t.find("span"),i=n.attr("class");i=i.substring(0,i.lastIndexOf(" ")),0===e?(n.attr("class",i+" "+u),t.attr("title",this.options.messages.unmute),t.attr("aria-label",this.options.messages.unmute)):e>0&&e<51?(n.attr("class",i+" "+h),t.attr("title",this.options.messages.mute),t.attr("aria-label",this.options.messages.mute)):(n.attr("class",i+" "+p),t.attr("title",this.options.messages.mute),t.attr("aria-label",this.options.messages.mute))},_volumeDragging:function(e){this.media()&&(this.volume(e.value),this._changeVolumeButtonImage(e.value),this.trigger(l))},_volumeChange:function(e){this.media()&&(this.volume(e.value),this._changeVolumeButtonImage(e.value),this.trigger(l))},_mediaTimeUpdate:function(){var e,t=this._youTubeVideo?this._ytmedia.getCurrentTime():this._media.currentTime;return t=t?t:0,e=this._msToTime(t),this._currentTimeElement.text(n.toString(e,this._timeFormat)),this._isDragging||(this._seekBarLastPosition=1e3*(t+I),this._slider.value(this._seekBarLastPosition)),this.isPlaying()},_playStateToggle:function(e){t===e&&(e=this._playButtonSpan.is(T+m)),e?(this._playButtonSpan.removeClass(m).addClass(g),this._playButton.attr("title",this.options.messages.pause),this._playButton.attr("aria-label",this.options.messages.pause)):(this._playButtonSpan.removeClass(g).addClass(m),this._playButton.attr("title",this.options.messages.play),this._playButton.attr("aria-label",this.options.messages.play))},_mediaEnded:function(){this._playStateToggle(!1),this._currentTimeElement.text(n.toString(this._msToTime(0),this._timeFormat)),this._slider.value(1e3*(0+I)),this.trigger(i)},_mediaPlay:function(){this.trigger(r)},_mediaReady:function(){this.trigger(a)},_mediaDurationChange:function(){var e=this._msToTime(this._youTubeVideo?this._ytmedia.getDuration():this._media.duration);this._timeFormat=0===e.getHours()?F.shortTime:F.longTime,this._durationElement.text(n.toString(e,this._timeFormat)),this._slider.setOptions({min:E.getTime(),max:e.getTime()}),this._isFirstRun||(this._resetTime(),this._isFirstRun=!0)},_createYoutubePlayer:function(){this._mediaTimeUpdateHandler=z(this._mediaTimeUpdate,this),this._mediaDurationChangeHandler=z(this._mediaDurationChange,this),this.wrapper.prepend(L.youtubePlayer),this._ytPlayer=this.wrapper.find(T+S)[0],e(this._ytPlayer).css({width:this.wrapper.width(),height:this.wrapper.height()}),window.YT&&window.YT.Player?this._configurePlayer():(window.onYouTubeIframeAPIReadyRegister||(window.onYouTubeIframeAPIReadyRegister=[],e.getScript("https://www.youtube.com/iframe_api"),window.onYouTubeIframeAPIReady=function(){if(window.onYouTubeIframeAPIReadyRegister)for(var e=0;e<window.onYouTubeIframeAPIReadyRegister.length;e++)window.onYouTubeIframeAPIReadyRegister[e]._youtubeApiReady();window.onYouTubeIframeAPIReadyRegister.length=0,window.onYouTubeIframeAPIReadyRegister=t}),window.onYouTubeIframeAPIReadyRegister[window.onYouTubeIframeAPIReadyRegister.length]=this)},_poll:function(e,t,n,i){var o=this;return null!==o._timers[e]&&clearTimeout(o._timers[e]),o._timers[e]=setTimeout(function(i){return function r(){t.call(i)&&(o._timers[e]=setTimeout(r,n))}}(i),n)},_youtubeApiReady:function(){this._configurePlayer()},_configurePlayer:function(){var e,t={autoplay:+this.options.autoPlay,wmode:"transparent",controls:0,rel:0,showinfo:0};this._onYouTubePlayerReady=z(this._onYouTubePlayerReady,this),window.onYouTubePlayerReady=this._onYouTubePlayerReady,this._onPlayerStateChangeHandler=z(this._onPlayerStateChange,this),window.onPlayerStateChange=this._onPlayerStateChange,e=new window.YT.Player(this.wrapper.find(T+S)[0],{height:this.wrapper.height(),width:this.wrapper.width(),videoId:this._getMediaId(),playerVars:t,events:{onReady:this._onYouTubePlayerReady,onStateChange:this._onPlayerStateChangeHandler}})},_onYouTubePlayerReady:function(e){this._ytmedia=e.target,this._ytmedia.getIframe().style.width="100%",this._ytmedia.getIframe().style.height="100%",this._youTubeVideo=!0,this._mediaDurationChangeHandler(),this.options.autoPlay?(this._playStateToggle(!0),this._ytmedia.loadVideoById(this._getMediaId())):this._ytmedia.cueVideoById(this._getMediaId()),this.options.mute&&this.mute(!0),this.trigger(a)},_updateTitle:function(){this.titlebar().text(this.media().title||this.media().source)},_onPlayerStateChange:function(e){0===e.data?(this._slider.value(0),this._paused=!1,this._playStateToggle(!0),this.trigger(i),this.options.autoRepeat&&this.play()):1===e.data?(this._mediaDurationChange(),this._ytmedia.setVolume(this.volume()),this._sliderChangeFired?this._sliderChangeFired=!1:this._uiDisplay(!1),this.trigger(r),this._playStateToggle(!0),this._poll("progress",this._mediaTimeUpdate,500,this),this._paused=!1):2===e.data&&(this._paused||(this._uiDisplay(!0),this._playStateToggle(!1),this.trigger(o),this._paused=!0))},_getMediaId:function(){var e=this._currentUrl(),t=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,n=e.match(t);return n&&11===n[7].length&&(e=n[7]),e},_mouseClick:function(){this.isPaused()?this.play():this.pause()},_initializePlayer:function(){this._mouseMoveHandler||(this._mouseMoveHandler=z(this._mouseMove,this),this._mouseInHandler=z(this._mouseIn,this),this._mouseOutHandler=z(this._mouseOut,this),e(this.wrapper).on("mouseenter"+A,this._mouseInHandler).on("mouseleave"+A,this._mouseOutHandler).on("mousemove"+A,this._mouseMoveHandler)),!this._ytmedia&&this._youTubeVideo?this._createYoutubePlayer():this._media||this._youTubeVideo||this._createHtmlPlayer()},_createHtmlPlayer:function(){this._videoOverlay||(this._mouseClickHanlder=z(this._mouseClick,this),this.wrapper.append("<div class='"+C+"'></div>"),this._videoOverlay=this.wrapper.find(".k-mediaplayer-overlay").on("click"+A,this._mouseClickHanlder)),this._mediaTimeUpdateHandler=z(this._mediaTimeUpdate,this),this._mediaDurationChangeHandler=z(this._mediaDurationChange,this),this._mediaEndedHandler=z(this._mediaEnded,this),this._mediaCanPlayHandler=z(this._mediaReady,this),this._mediaPlayHandler=z(this._mediaPlay,this),this._videoOverlay.after(L.htmlPlayer),this._media=this.wrapper.find(T+x)[0],e(this._media).css({width:"100%",height:"100%"}),this.options.mute&&this.mute(!0),this._media.ontimeupdate=this._mediaTimeUpdateHandler,this._media.ondurationchange=this._mediaDurationChangeHandler,this._media.oncanplay=this._mediaCanPlayHandler,this._media.onplay=this._mediaPlayHandler,this._media.onended=this._mediaEndedHandler,this._media.loop=this.options.autoRepeat},_mouseIn:function(){this._uiDisplay(!0)},_mouseOut:function(){this._poll("mouseIdle",this._mouseIdle,3e3,this)},_mouseIdle:function(){return this._uiDisplay(!1),!1},_mouseMove:function(){this._titleBar.is(":animated")||this._toolBar.element.is(":animated")||this._slider.wrapper.is(":animated")||this._uiDisplay(!0),this._poll("mouseIdle",this._mouseIdle,3e3,this)},_uiDisplay:function(e){var t="slow",n=this._titleBar.add(this._toolBar.element.parent());e?n.fadeIn(t):(n.fadeOut(t),this.options.navigatable&&this.wrapper.focus())},setOptions:function(e){M.fn.setOptions.call(this,e)},destroy:function(){M.fn.destroy.call(this),this.isPaused()||this.pause(),this.element.off(A),this.element.find(T+C).off(A),this._timers=null,this._mouseMoveHandler=null,this._mouseOutHandler=null,this._mouseInHandler=null,this._mouseClickHanlder=null,this._keyDownHandler=null,this._fullscreenHandler=null,this._toolbarClickHandler=null,this._sliderDragChangeHandler=null,this._sliderDraggingHandler=null,this._volumeDraggingHandler=null,this._volumeChangeHandler=null,this._youtubeApiReadyHandler=null,this._onYouTubePlayerReady=null,this._onPlayerStateChangeHandler=null,this._dropDownSelectHandler=null,this._youTubeVideo?this._ytmedia.destroy():(this._media.ontimeupdate=this._mediaTimeUpdateHandler=null,this._media.ondurationchange=this._mediaDurationChangeHandler=null,this._media.oncanplay=this._mediaCanPlayHandler=null,this._media.onplay=this._mediaPlayHandler=null,this._media.onended=this._mediaEndedHandler=null,this._media.src="",this._media.remove()),this._mouseMoveTimer=null,clearTimeout(this._mouseMoveTimer),n.destroy(this.element)},seek:function(e){if(t===e)return 1e3*this._youTubeVideo?this._ytmedia.getCurrentTime():this._media?this._media.currentTime:0;var n=e/1e3;return this._youTubeVideo?n+3>=this._ytmedia.getDuration()|0?this._ytmedia.seekTo(this._ytmedia.getDuration()-3|0,!0):this._ytmedia.seekTo(n,!0):this._media.currentTime=n,this},play:function(){return this._youTubeVideo?this._ytmedia.playVideo():(n.support.mobileOS&&this._uiDisplay(!1),this._media.play()),this._paused=!1,this._playStateToggle(!0),this},stop:function(){return this._youTubeVideo&&this._ytmedia?this._ytmedia.stopVideo():this._media&&!this._youTubeVideo&&(n.support.mobileOS&&this._uiDisplay(!0),this._media.pause(),this._media.currentTime=0),this._paused=!0,this._playStateToggle(!1),this},pause:function(){return this._youTubeVideo?this._ytmedia.pauseVideo():(n.support.mobileOS&&this._uiDisplay(!0),this._media.pause()),this._paused=!0,this._playStateToggle(!1),this.trigger(o),this},toolbar:function(){return this._toolBar},dropdown:function(){return this._dropDown},titlebar:function(){return this._titleBar},fullScreen:function(e){if(t===e)return this._isInFullScreen||!1;var n=this.element.get(0);e?(this.element.addClass("k-mediaplayer-fullscreen"),n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen(),this._isInFullScreen=!0):(document.cancelFullscreen?document.cancelFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msCancelFullscreen?document.msCancelFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),this.element.removeClass("k-mediaplayer-fullscreen"),this._isInFullScreen=!1),this._slider.resize()},volume:function(e){return t===e?t!==this._volume?this._volume:this._volume=this.options.volume:(this._volume=e,this.mute(e<=0),this._youTubeVideo?this._ytmedia.setVolume(this._volume):this._media.volume=this._volume/100,this._volumeSlider.value(e),t)},mute:function(e){var n=this._youTubeVideo?this._ytmedia&&this._ytmedia.isMuted():this._media&&this._media.muted;return t===e||e===n?n:(this._youTubeVideo?e?this._ytmedia.mute():this._ytmedia.unMute():this._media.muted=e,this._volumeSlider.value(e?0:this._media&&100*this._media.volume||this._ytmedia&&this._ytmedia.getVolume()),this.trigger(l),this._changeVolumeButtonImage(this._volumeSlider.value()),t)},isEnded:function(){return this._youTubeVideo?0===this._ytmedia.getPlayerState():this._media.ended},media:function(e){var n=this.dropdown();return t===e?t!==this._mediaData?this._mediaData:this._mediaData=this.options.media:(R(e.source)?(n.setDataSource(e.source),n.wrapper.show()):n.wrapper.hide(),this._mediaData=e,this._updateTitle(),this._setPlayerUrl(),t)},isPaused:function(){return this._paused},isPlaying:function(){return!this.isEnded()&&!this._paused},_aria:function(){this.wrapper.attr("role","region")},_navigatable:function(){this._fullscreenHandler=z(this._fullscreen,this),e(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange"+A,this._fullscreenHandler),this.options.navigatable&&(this.wrapper.attr("tabIndex",0),this._keyDownHandler=z(this._keyDown,this),this.wrapper.on("keydown"+A,this._keyDownHandler))},_fullscreen:function(){var e=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;this._uiDisplay(!0),this._slider.resize(),e||(this.wrapper.find('span[class*="k-i-fullscreen"]').removeClass(c).addClass(d),this.fullScreen(!1))},_keyDown:function(e){var t,n;e.preventDefault(),t=this.wrapper.find('span[class*="k-i-fullscreen"]'),e.keyCode===B.SPACEBAR?this.isPlaying()?this.pause():this.play():e.keyCode!==B.ENTER||this._isInFullScreen?77===e.keyCode?(n=this.mute(),this.mute(!n)):e.keyCode===B.ESC&&this._isInFullScreen&&(t.removeClass(c).addClass(d),this.fullScreen(!1)):(t.removeClass(d).addClass(c),this.fullScreen(!0))},_error:function(){},_progress:function(){}});D.plugin(H)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pivotgrid.min",["kendo.dom.min","kendo.data.min"],e)}(function(){return function(e,t){function n(e){var n="string"==typeof e?[{name:e}]:e,i="[object Array]"===Ce.call(n)?n:n!==t?[n]:[];return Te(i,function(e){return"string"==typeof e?{name:e}:{name:e.name,type:e.type}})}function i(e){var n="string"==typeof e?[{name:[e],expand:!1}]:e,i="[object Array]"===Ce.call(n)?n:n!==t?[n]:[];return Te(i,function(e){return"string"==typeof e?{name:[e],expand:!1}:{name:"[object Array]"===Ce.call(e.name)?e.name.slice():[e.name],expand:e.expand}})}function o(e){return e.indexOf(" ")!==-1&&(e='["'+e+'"]'),e}function r(e,t,n,i){var o,a,s,l;if(n||(n=t),i||(i=0),l=n.members[i],l&&!l.measure){if(s=l.children,a=s.length,n===t?e[ge.stringify([l.name])]=!!a:a&&(e[ge.stringify(ce(n,i))]=!0),a)for(o=0;o<a;o++)r(e,t,s[o],i);r(e,t,n,i+1)}}function a(t){var n,i,o={};t.length&&r(o,t[0]),n=[];for(i in o)n.push({name:e.parseJSON(i),expand:o[i]});return n}function s(e,t){var n,i,o,r,a=t.tuples||[],s=a[0];if(s&&e.length<s.members.length)for(n=s.members,i=0;i<n.length;i++)if(!n[i].measure){for(o=!1,r=0;r<e.length;r++)if(0===V(e[r]).indexOf(n[i].hierarchy)){o=!0;break}o||e.push({name:[n[i].name],expand:!1})}}function l(e){var t,n=[],i=e.members;for(t=0;t<i.length;t++)i[t].measure||n.push({name:[i[t].name],expand:i[t].children.length>0});return n}function d(e,t,n){var o,r;return e=e||{},s(t,e),n.length>1&&t.push({name:Me,measure:!0,children:i(n)}),o={members:t},e.tuples&&(r=T(e.tuples,o),r.tuple&&(t=l(r.tuple))),t}function c(e){var t=ge.getter(e.field,!0);return function(n,i){return e.aggregate(t(n.dataItem),i,n)}}function u(e){return"number"==typeof e&&!isNaN(e)}function h(e){return e&&e.getTime}function p(e){var t,n=[];for(t=0;t<e.length;t++)n.push(e[t]),e[t].children&&(n=n.concat(p(e[t].children)));return n}function f(e,t,n){for(var i=0;i<t.length;i++)t[i].children&&t[i].children.length&&f(e,t[i].children,n);t[0].parentName==e&&(t=t.sort(n))}function m(t,n){var i,o,r;for(i=0;i<t.length;i++)if(o=n[t[i].name],
!e.isEmptyObject(o.childrenMap)){t[i].children=[];for(r in o.childrenMap)t[i].children.push(e.extend({},{name:r,parentName:n[r].parentName}));m(t[i].children,n)}}function g(e){return e[e.length]={value:"",fmtValue:"",ordinal:e.length},e}function v(e,t,n){if(e.tuples.length<k(t.tuples,n))return t}function _(e,t,n,i,o){var r,a,s,l=e.length,d=k(t,i),c=i.length||1;for(a=0;a<n;a++)for(r=0;r<l;r++)s=w(e[r],t)*c,s+=r%c,o[a*l+r].ordinal=a*d+s}function b(e,t,n,i,o){var r,a,s,l=e.length,d=i.length||1;for(a=0;a<l;a++)for(s=w(e[a],t),s*=d,s+=a%d,r=0;r<n;r++)o[a*n+r].ordinal=s*n+r}function w(e,t){return T(t,e).index}function k(e,t){var n,i,o;if(!e.length)return 0;for(n=e.slice(),i=n.shift(),o=1;i;)i.members?[].push.apply(n,i.members):i.children&&(i.measure||(o+=i.children.length),[].push.apply(n,i.children)),i=n.shift();return t.length&&(o*=t.length),o}function y(e){return e||(e={tuples:[]}),e.tuples||(e.tuples=[]),e}function x(e,t,n){var i,o,r,a;if(!e)return 0;for(i=Math.max(n.length,1),o=e.members.slice(0,t),r=o.shift(),a=i;r;)r.name===Me?a+=i-1:r.children?[].push.apply(o,r.children):(a++,[].push.apply(o,r.members)),r=o.shift();return a}function C(e,t,n){var i,o,r,a,s,l;if(!t[0])return{parsedRoot:null,tuples:e,memberIndex:0,index:0};if(i=T(e,t[0]),!i.tuple)return{parsedRoot:null,tuples:t,memberIndex:0,index:0};if(o=i.tuple.members,r=t[0].members,a=-1,o.length!==r.length)return{parsedRoot:null,tuples:t,memberIndex:0,index:0};for(s=0,l=o.length;s<l;s++)!o[s].measure&&r[s].children[0]&&(a==-1&&r[s].children.length&&(a=s),o[s].children=r[s].children);return n=Math.max(n.length,1),{parsedRoot:i.tuple,index:i.index*n,memberIndex:a,tuples:e}}function S(e,t){var n,i,o=!0;for(e=e.members,t=t.members,n=0,i=e.length;n<i;n++)e[n].measure||t[n].measure||(o=o&&V(e[n])===V(t[n]));return o}function T(e,t){var n,i,o,r,a,s,l,d=0;for(n=0,i=e.length;n<i;n++){if(o=e[n],S(o,t))return{tuple:o,index:d};for(d++,a=0,s=o.members.length;a<s;a++)if(l=o.members[a],!l.measure&&(r=T(l.children,t),d+=r.index,r.tuple))return{tuple:r.tuple,index:d}}return{index:d}}function D(e,t){var n,i,o,r="";for(i=0,o=e.length;i<o;i++)n=e[i],r+=n.name,t[r]||(t[r]=n)}function A(e,t){var n,i,o,r,a=e.members,s="",l="";for(n=0,i=a.length;n<i;n++){if(o=a[n],r){if(t[s+o.name]){s+=o.name,r=t[s];continue}return t[s+o.parentName]?t[s+o.parentName]:t[l+o.parentName]?t[l+o.parentName]:t[l]}if(s+=o.name,r=t[o.parentName],!r&&(r=t[s],!r))return null;r&&(l+=r.name)}return r}function E(e,t){var n,i,o,r;if(0===t.length)return-1;for(n=t[0],i=e.members,o=0,r=i.length;o<r;o++)if(i[o].name==n.name)return o}function I(n,i){if(!(i<0)){var o={name:Me,measure:!0,children:[e.extend({members:[],dataIndex:n.dataIndex},n.members[i])]};n.members.splice(i,1,o),n.dataIndex=t}}function M(e,t){var n,i,o,r,a,s;if(e.length<1)return[];for(n=[],i={},o=E(e[0],t),r=0;r<e.length;r++)a=e[r],a.dataIndex=r,I(a,o),s=A(a,i),s?s.children.push(o<0||!s.measure?a:a.members[o].children[0]):n.push(a),D(a.members,i);return n}function R(e,t){var n,i,o,r,a,s,l,d,c;if(!e||!e.length)return t;for(n=[],i=P(e),o=i.length,r=Math.max(t.length/o,1),a=0;a<o;a++)for(l=r*a,d=r*i[a],s=0;s<r;s++)c=parseInt(d+s,10),n[parseInt(l+s,10)]=t[c]||{value:"",fmtValue:"",ordinal:c};return n}function F(e,t){var n,i,o,r,a,s,l,d;if(!e||!e.length)return t;for(n=[],i=P(e),o=i.length,r=Math.max(t.length/o,1),s=0;s<r;s++)for(l=o*s,a=0;a<o;a++)d=i[a]+l,n[l+a]=t[d]||{value:"",fmtValue:"",ordinal:d};return n}function P(e){var n,i,o,r,a,s,l;for(e=e.slice(),n=[],i=e.shift();i;){for(i.dataIndex!==t&&n.push(i.dataIndex),a=0,o=0,r=i.members.length;o<r;o++)l=i.members[o],s=l.children,l.measure?[].splice.apply(e,[0,0].concat(s)):[].splice.apply(e,[a,0].concat(s)),a+=s.length;i=e.shift()}return n}function z(e){var t=e.split(".");return t.length>2?t[0]+"."+t[1]:e}function B(e,t){var n=e.length-1,i=e[n],o=L(t,i);return o&&o.dir?i="ORDER("+i+".Children,"+o.field+".CurrentMember.MEMBER_CAPTION,"+o.dir+")":i+=".Children",e[n]=i,e}function L(e,t){for(var n=0,i=e.length;n<i;n++)if(0===t.indexOf(e[n].field))return e[n];return null}function H(e){var t,n="CROSSJOIN({";return e.length>2?(t=e.pop(),n+=H(e)):(n+=e.shift(),t=e.pop()),n+="},{",n+=t,n+="})"}function N(e,t){var n=e.slice(0);return t.length>1&&n.push("{"+O(t).join(",")+"}"),H(n)}function O(e){for(var n,i=0,o=e.length,r=[];i<o;i++)n=e[i],r.push(n.name!==t?n.name:n);return r}function V(e){return e=e.name||e,"[object Array]"===Ce.call(e)&&(e=e[e.length-1]),e}function W(e){for(var t=e.length,n=[],i=0;i<t;i++)n.push(e[i].name[0]);return n}function U(e,t){var n,i,o,r=0,a=e.length,s=t.length;for(t=t.slice(0);r<a;r++)for(n=e[r],o=0;o<s;o++)if(i=z(t[o]),n.indexOf(i)!==-1){t[o]=n;break}return{names:t,expandedIdx:o,uniquePath:t.slice(0,o+1).join("")}}function j(e){for(var t,n,i,o,r,a,s=[],l=[],d=[],c=0,u=e.length;c<u;c++)if(t=e[c],o=t.name,a=!1,"[object Array]"!==Ce.call(o)&&(t.name=o=[o]),o.length>1)l.push(t);else{for(r=z(o[0]),n=0,i=d.length;n<i;n++)if(0===d[n].name[0].indexOf(r)){a=!0;break}a||d.push(t),t.expand&&s.push(t)}return s=s.concat(l),{root:d,expanded:s}}function q(e,t,n){var i,o,r,a,s,l,d,c,u="";if(e=e||[],i=j(e),o=i.root,r=W(o),a=[],i=i.expanded,s=i.length,l=0,c=[],r.length>1||t.length>1){for(a.push(N(r,t));l<s;l++)d=B(i[l].name,n),c=U(d,r).names,a.push(N(c,t));u+=a.join(",")}else{for(;l<s;l++)d=B(i[l].name,n),c.push(d[0]);u+=r.concat(c).join(",")}return u}function G(e){var t="",n=e.value,i=e.field,o=e.operator;return"in"==o?(t+="{",t+=n,t+="}"):(t+="neq"==o||"doesnotcontain"==o?"-":"",t+="Filter(",t+=i+".MEMBERS",t+=ge.format(X[o],i,n),t+=")"),t}function $(e,t){var n,i,o="",r=e.filters,a=r.length;for(i=a-1;i>=0;i--)n="SELECT (",n+=G(r[i]),n+=") ON 0",i==a-1?(n+=" FROM ["+t+"]",o=n):o=n+" FROM ( "+o+" )";return o}function K(e,t,n){var i,o,r="";if(t){r+="<"+e+">";for(o in t)i=t[o],n&&(o=o.replace(/([A-Z]+(?=$|[A-Z][a-z])|[A-Z]?[a-z]+)/g,"$1_").toUpperCase().replace(/_$/,"")),r+="<"+o+">"+i+"</"+o+">";r+="</"+e+">"}else r+="<"+e+"/>";return r}function Y(e){if(null==e)return[];var t=Ce.call(e);return"[object Array]"!==t?[e]:e}function Q(e){var t,n,i,o,r={tuples:[]},a=Y(ge.getter("Tuples.Tuple",!0)(e)),s=ge.getter("Caption['#text']"),l=ge.getter("UName['#text']"),d=ge.getter("LName['#text']"),c=ge.getter("LNum['#text']"),u=ge.getter("CHILDREN_CARDINALITY['#text']",!0),h=ge.getter("['@Hierarchy']"),p=ge.getter("PARENT_UNIQUE_NAME['#text']",!0);for(t=0;t<a.length;t++){for(n=[],i=Y(a[t].Member),o=0;o<i.length;o++)n.push({children:[],caption:s(i[o]),name:l(i[o]),levelName:d(i[o]),levelNum:c(i[o]),hasChildren:parseInt(u(i[o]),10)>0,parentName:p(i[o]),hierarchy:h(i[o])});r.tuples.push({members:n})}return r}var X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge=window.kendo,ve=ge.ui,_e=ge.Class,be=ge.data.Comparer,we=ve.Widget,ke=ge.data.DataSource,ye=ge._outerWidth,xe=ge._outerHeight,Ce={}.toString,Se=function(e){return e},Te=e.map,De=e.extend,Ae=ge.isFunction,Ee="change",Ie="error",Me="Measures",Re="progress",Fe="stateReset",Pe="auto",ze="<div></div>",Be=".kendoPivotGrid",Le="__row_total__",He="dataBinding",Ne="dataBound",Oe="expandMember",Ve="collapseMember",We="k-i-collapse",Ue="k-i-expand",je="<span>#: data.member.caption || data.member.name #</span>",qe='<span class="k-icon k-i-kpi-status-#=data.dataItem.value > 0 ? "open" : data.dataItem.value < 0 ? "deny" : "hold"#" title="#:data.dataItem.value#"></span>',Ge='<span class="k-icon k-i-kpi-trend-#=data.dataItem.value > 0 ? "increase" : data.dataItem.value < 0 ? "decrease" : "equal"#" title="#:data.dataItem.value#"></span>',$e='#= data.dataItem ? kendo.htmlEncode(data.dataItem.fmtValue || data.dataItem.value) || "&nbsp;" : "&nbsp;" #',Ke='<table class="k-pivot-layout"><tr><td><div class="k-pivot-rowheaders"></div></td><td><div class="k-pivot-table k-state-default"></div></td></tr></table>',Ye="rows",Qe="columns",Xe={sum:function(e,t){var n=t.accumulator;return u(n)?u(e)&&(n+=e):n=e,n},count:function(e,t){return(t.accumulator||0)+1},average:{aggregate:function(e,n){var i=n.accumulator;return n.count===t&&(n.count=0),u(i)?u(e)&&(i+=e):i=e,u(e)&&n.count++,i},result:function(e){var t=e.accumulator;return u(t)&&(t/=e.count),t}},max:function(e,t){var n=t.accumulator;return u(n)||h(n)||(n=e),n<e&&(u(e)||h(e))&&(n=e),n},min:function(e,t){var n=t.accumulator;return u(n)||h(n)||(n=e),n>e&&(u(e)||h(e))&&(n=e),n}},Ze=_e.extend({init:function(e){this.options=De({},this.options,e),this.dimensions=this._normalizeDescriptors("field",this.options.dimensions),this.measures=this._normalizeDescriptors("name",this.options.measures)},_normalizeDescriptors:function(e,t){var n,i,o,r;if(t=t||{},n={},"[object Array]"===Ce.call(t)){for(o=0,r=t.length;o<r;o++)i=t[o],"string"==typeof i?n[i]={}:i[e]&&(n[i[e]]=i);t=n}return t},_rootTuples:function(e,n){var i,o,r,a,s=n.length||1,l=this.dimensions||[],d=0,c=e.length,u=[],h=[];if(c||n.length){for(d=0;d<s;d++){for(i={members:[]},a=0;a<c;a++)o=e[a],r=o.split("&"),i.members[i.members.length]={children:[],caption:(l[o]||{}).caption||"All",name:o,levelName:o,levelNum:"0",hasChildren:!0,parentName:r.length>1?r[0]:t,hierarchy:o};s>1&&(i.members[i.members.length]={children:[],caption:n[d].caption,name:n[d].descriptor.name,levelName:"MEASURES",levelNum:"0",hasChildren:!1,parentName:t,hierarchy:"MEASURES"}),u[u.length]=i}h.push(Le)}return{keys:h,tuples:u}},_sortMap:function(t,n){var i,o,r,a,s=[],l=[],d=[];for(o in t)t[o].directParentName||l.push(e.extend({},{name:o,parentName:t[o].parentName}));if(!l.length)for(o in t)l.push(e.extend({},{name:o,parentName:t[o].parentName}));for(m(l,t),r=0;r<n.length;r++)f(n[r].field.split(".").pop(),l,be.create({field:"name",dir:n[r].dir}));for(d=p(l),a=0;a<d.length;a++)i=t[d[a].name],i.index=a,s[a]=i;return s},_expandedTuples:function(n,i,o,r){var a,s,l,d,c,u,h,p,f,m,g,v=o.length||1,_=this.dimensions||[],b=[],w=[];r&&r.length&&!e.isEmptyObject(n)&&(n=this._sortMap(n,r));for(l in n){for(d=n[l],h=this._findExpandedMember(i,d.uniquePath),c=b[h.index]||[],u=w[h.index]||[],p=h.member.names,a=0;a<v;a++){for(s={members:[]},g=0;g<p.length;g++)g===h.member.expandedIdx?(s.members[s.members.length]={children:[],caption:d.value,name:d.name,hasChildren:!1,levelNum:1,levelName:d.parentName+d.name,parentName:d.parentName,hierarchy:d.parentName+d.name},0===a&&u.push(ce(s,g).join(""))):(m=p[g],f=m.split("&"),s.members[s.members.length]={children:[],caption:(_[m]||{}).caption||"All",name:m,levelName:m,levelNum:"0",hasChildren:!0,parentName:f.length>1?f[0]:t,hierarchy:m});v>1&&(s.members[s.members.length]={children:[],caption:o[a].caption,name:o[a].descriptor.name,levelName:"MEASURES",levelNum:"0",hasChildren:!0,parentName:t,hierarchy:"MEASURES"}),c[c.length]=s}b[h.index]=c,w[h.index]=u}return{keys:w,tuples:b}},_findExpandedMember:function(e,t){for(var n=0;n<e.length;n++)if(e[n].uniquePath===t)return{member:e[n],index:n}},_asTuples:function(e,t,n,i){var o,r;return n=n||[],o=this._rootTuples(t.root,n),r=this._expandedTuples(e,t.expanded,n,i),{keys:[].concat.apply(o.keys,r.keys),tuples:[].concat.apply(o.tuples,r.tuples)}},_measuresInfo:function(e,t){for(var n,i,o=0,r=e&&e.length,a=[],s={},l={},d=this.measures||{};o<r;o++)i=e[o].descriptor.name,n=d[i]||{},a.push(i),n.result&&(s[i]=n.result),n.format&&(l[i]=n.format);return{names:a,formats:l,resultFuncs:s,rowAxis:t}},_toDataArray:function(e,t,n,i){var o,r,a,s,l,d,c,u,h,p,f=[],m=1,g=[],v=n.length||1,_=i.length||1;for(t.rowAxis?(g=t.names,m=g.length):p=t.names,a=0;a<v;a++)for(c=e[n[a]||Le],d=0;d<m;d++)for(t.rowAxis&&(p=[g[d]]),s=0;s<_;s++)for(h=i[s]||Le,u=c.items[h],o=h===Le?c.aggregates:u?u.aggregates:{},l=0;l<p.length;l++)r=p[l],this._addData(f,o[r],t.formats[r],t.resultFuncs[r]);return f},_addData:function(e,t,n,i){var o,r="";t&&(t=i?i(t):t.accumulator,r=n?ge.format(n,t):t),o=e.length,e[o]={ordinal:o,value:t||"",fmtValue:r}},_matchDescriptors:function(e,n,i){for(var o,r,a,s,l=n.names,d=n.expandedIdx;d>0;)if(o=l[--d].split("&"),o.length>1&&(r=o[0],a=o[1],s=i[r](e),s=s!==t&&null!==s?""+s:s,s!=a))return!1;return!0},_calculateAggregate:function(e,t,n){var i,o,r,a={};for(r=0;r<e.length;r++)o=e[r].descriptor.name,i=n.aggregates[o]||{},i.accumulator=e[r].aggregator(t,i),a[o]=i;return a},_processColumns:function(e,n,i,o,r,a,s,l){for(var d,c,u,h,p,f,m,g,v=r.dataItem,_=0;_<n.length;_++)c=n[_],this._matchDescriptors(v,c,i)&&(g=c.names.slice(0,c.expandedIdx).join(""),f=c.names[c.expandedIdx],d=i[f](v),d=d!==t&&null!==d?""+d:d,m=f,f=f+"&"+d,p=g+f,u=o[p]||{index:s.columnIndex,parentName:m,name:f,directParentName:g.indexOf("&")!==-1?g:"",uniquePath:g+m,childrenMap:{},value:d},g&&o[g]&&!o[g].childrenMap[g+m+"&"+d]&&(o[g].childrenMap[g+m+"&"+d]=!0),h=a.items[p]||{aggregates:{}},a.items[p]={index:u.index,aggregates:this._calculateAggregate(e,r,h)},l&&(o[p]||s.columnIndex++,o[p]=u))},_measureAggregators:function(e){var t,n,i,o,r,a,s=e.measures||[],l=this.measures||{},d=[];if(s.length){for(i=0,o=s.length;i<o;i++)if(t=s[i],n=l[t.name],r=null,n){if(a=n.aggregate,"string"==typeof a){if(r=Xe[a.toLowerCase()],!r)throw Error("There is no such aggregate function");n.aggregate=r.aggregate||r,n.result=r.result}d.push({descriptor:t,caption:n.caption,result:n.result,aggregator:c(n)})}}else d.push({descriptor:{name:"default"},caption:"default",aggregator:function(){return 1}});return d},_buildGetters:function(e){var t,n,i,r={};for(i=0;i<e.length;i++)n=e[i],t=n.split("&"),t.length>1?r[t[0]]=ge.getter(t[0],!0):r[n]=ge.getter(o(n),!0);return r},_parseDescriptors:function(e){var t,n=j(e),i=W(n.root),o=n.expanded,r=[];for(t=0;t<o.length;t++)r.push(U(o[t].name,i));return{root:i,expanded:r}},_filter:function(e,t){var n,i,o;if(!t)return e;for(i=0,o=t.filters;i<o.length;i++)n=o[i],"in"===n.operator&&(o[i]=this._normalizeFilter(n));return new ge.data.Query(e).filter(t).data},_normalizeFilter:function(e){var t,n=e.value.split(","),i=[];if(!n.length)return n;for(t=0;t<n.length;t++)i.push({field:e.field,operator:"eq",value:n[t]});return{logic:"or",filters:i}},process:function(e,n){var o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F;if(e=e||[],n=n||{},e=this._filter(e,n.filter),o=n.measures||[],r="rows"===n.measuresAxis,a=n.columns||[],s=n.rows||[],!a.length&&s.length&&(!o.length||o.length&&r)&&(a=s,s=[],r=!1),a.length||s.length||(r=!1),!a.length&&o.length&&(a=i(n.measures)),a=this._parseDescriptors(a),s=this._parseDescriptors(s),l={},d={},c={},h={columnIndex:0},p=this._measureAggregators(n),f=this._buildGetters(a.root),m=this._buildGetters(s.root),g=!1,v=a.expanded,_=s.expanded,k=0!==_.length,R=e.length,F=0,a.root.length||s.root.length)for(g=!0,F=0;F<R;F++)for(b=e[F],w={dataItem:b,index:F},S=l[Le]||{items:{},aggregates:{}},this._processColumns(p,v,f,d,w,S,h,!k),S.aggregates=this._calculateAggregate(p,w,S),l[Le]=S,y=0;y<_.length;y++)x=_[y],this._matchDescriptors(b,x,m)?(D=x.names.slice(0,x.expandedIdx).join(""),C=x.names[x.expandedIdx],A=C,u=m[C](b),u=u!==t?""+u:u,C=C+"&"+u,T=D+C,c[T]={uniquePath:D+A,parentName:A,name:C,value:u},E=l[T]||{items:{},aggregates:{}},this._processColumns(p,v,f,d,w,E,h,!0),E.aggregates=this._calculateAggregate(p,w,E),l[T]=E):this._processColumns(p,v,f,d,w,{items:{},aggregates:{}},h,!0);return g&&R?(!(p.length>1)||n.columns&&n.columns.length||(a={root:[],expanded:[]}),I=this._asTuples(d,a,r?[]:p,n.sort?n.sort:[]),M=this._asTuples(c,s,r?p:[],n.sort?n.sort:[]),d=I.tuples,c=M.tuples,l=this._toDataArray(l,this._measuresInfo(p,r),M.keys,I.keys)):l=d=c=[],{axes:{columns:{tuples:d},rows:{tuples:c}},data:l}}}),Je=_e.extend({init:function(e,t){this.transport=t,this.options=t.options||{},this.transport.discover||Ae(e.discover)&&(this.discover=e.discover)},read:function(e){return this.transport.read(e)},update:function(e){return this.transport.update(e)},create:function(e){return this.transport.create(e)},destroy:function(e){return this.transport.destroy(e)},discover:function(e){return this.transport.discover?this.transport.discover(e):(e.success({}),t)},catalog:function(n){var i,o=this.options||{};return n===t?(o.connection||{}).catalog:(i=o.connection||{},i.catalog=n,this.options.connection=i,e.extend(this.transport.options,{connection:i}),t)},cube:function(e){var n,i=this.options||{};return e===t?(i.connection||{}).cube:(n=i.connection||{},n.cube=e,this.options.connection=n,De(!0,this.transport.options,{connection:n}),t)}}),et=ke.extend({init:function(t){var o,r=((t||{}).schema||{}).cube,a="columns",s={axes:Se,cubes:Se,catalogs:Se,measures:Se,dimensions:Se,hierarchies:Se,levels:Se,members:Se};r&&(s=e.extend(s,this._cubeSchema(r)),this.cubeBuilder=new Ze(r)),ke.fn.init.call(this,De(!0,{},{schema:s},t)),this.transport=new Je(this.options.transport||{},this.transport),this._columns=i(this.options.columns),this._rows=i(this.options.rows),o=this.options.measures||[],"[object Object]"===Ce.call(o)&&(a=o.axis||"columns",o=o.values||[]),this._measures=n(o),this._measuresAxis=a,this._skipNormalize=0,this._axes={}},_cubeSchema:function(t){return{dimensions:function(){var e,n=[],i=t.dimensions;for(e in i)n.push({name:e,caption:i[e].caption||e,uniqueName:e,defaultHierarchy:e,type:1});return t.measures&&n.push({name:Me,caption:Me,uniqueName:Me,type:2}),n},hierarchies:function(){return[]},measures:function(){var e,n=[],i=t.measures;for(e in i)n.push({name:e,caption:e,uniqueName:e,aggregator:e});return n},members:e.proxy(function(e,n){var i,r,a=n.levelUniqueName||n.memberUniqueName,s=this.options.schema.data,l=Ae(s)?s:ge.getter(s,!0),d=this.options.data&&l(this.options.data)||this._rawData||[],c=[],u=0,h={};if(a&&(a=a.split(".")[0]),!n.treeOp)return c.push({caption:t.dimensions[a].caption||a,childrenCardinality:"1",dimensionUniqueName:a,hierarchyUniqueName:a,levelUniqueName:a,name:a,uniqueName:a}),c;for(i=ge.getter(o(a),!0);u<d.length;u++)r=i(d[u]),!r&&0!==r||h[r]||(h[r]=!0,c.push({caption:r,childrenCardinality:"0",dimensionUniqueName:a,hierarchyUniqueName:a,levelUniqueName:a,name:r,uniqueName:r}));return c},this)}},options:{serverSorting:!0,serverPaging:!0,serverFiltering:!0,serverGrouping:!0,serverAggregates:!0},catalog:function(e){return e===t?this.transport.catalog():(this.transport.catalog(e),this._mergeState({}),this._axes={},this.data([]),t)},cube:function(e){return e===t?this.transport.cube():(this.transport.cube(e),this._axes={},this._mergeState({}),this.data([]),t)},axes:function(){return this._axes},columns:function(e){return e===t?this._columns:(this._skipNormalize+=1,this._clearAxesData=!0,this._columns=i(e),this.query({columns:e,rows:this.rowsAxisDescriptors(),measures:this.measures(),sort:this.sort(),filter:this.filter()}),t)},rows:function(e){return e===t?this._rows:(this._skipNormalize+=1,this._clearAxesData=!0,this._rows=i(e),this.query({columns:this.columnsAxisDescriptors(),rows:e,measures:this.measures(),sort:this.sort(),filter:this.filter()}),t)},measures:function(e){return e===t?this._measures:(this._skipNormalize+=1,this._clearAxesData=!0,this.query({columns:this.columnsAxisDescriptors(),rows:this.rowsAxisDescriptors(),measures:n(e),sort:this.sort(),filter:this.filter()}),t)},measuresAxis:function(){return this._measuresAxis||"columns"},_expandPath:function(e,t){var n,o,r,a="columns"===t?"columns":"rows",s="columns"===t?"rows":"columns",l=i(e),c=V(l[l.length-1]);for(this._lastExpanded=a,l=d(this.axes()[a],l,this.measures()),n=0;n<l.length;n++)if(o=V(l[n]),o===c){if(l[n].expand)return;l[n].expand=!0}else l[n].expand=!1;r={},r[a]=l,r[s]=this._descriptorsForAxis(s),this._query(r)},_descriptorsForAxis:function(e){var t=this.axes(),n=this[e]()||[];return t&&t[e]&&t[e].tuples&&t[e].tuples[0]&&(n=a(t[e].tuples||[])),n},columnsAxisDescriptors:function(){return this._descriptorsForAxis("columns")},rowsAxisDescriptors:function(){return this._descriptorsForAxis("rows")},_process:function(e,t){this._view=e,t=t||{},t.items=t.items||this._view,this.trigger(Ee,t)},_query:function(e){var t=this;return e||(this._skipNormalize+=1,this._clearAxesData=!0),t.query(De({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate(),columns:this.columnsAxisDescriptors(),rows:this.rowsAxisDescriptors(),measures:this.measures()},e))},query:function(t){var n=this._mergeState(t);return this._data.length&&this.cubeBuilder?(this._params(n),this._updateLocalData(this._pristineData),e.Deferred().resolve().promise()):this.read(n)},_mergeState:function(e){return e=ke.fn._mergeState.call(this,e),e!==t&&(this._measures=n(e.measures),e.columns?e.columns=i(e.columns):e.columns||(this._columns=[]),e.rows?e.rows=i(e.rows):e.rows||(this._rows=[])),e},filter:function(e){return e===t?this._filter:(this._skipNormalize+=1,this._clearAxesData=!0,this._query({filter:e,page:1}),t)},expandColumn:function(e){this._expandPath(e,"columns")},expandRow:function(e){this._expandPath(e,"rows")},success:function(e){var t;this.cubeBuilder&&(t=(this.reader.data(e)||[]).slice(0)),ke.fn.success.call(this,e),t&&(this._pristineData=t)},_processResult:function(e,t){var n,i,o,r,a,s,l,d,c,u,h;return this.cubeBuilder&&(n=this.cubeBuilder.process(e,this._requestData),e=n.data,t=n.axes),d=this.columns(),c=this.rows(),u=t.columns&&t.columns.tuples,d.length||!c.length||!u||!this._rowMeasures().length&&this.measures().length||(t={columns:{},rows:t.columns}),d.length||c.length||"rows"!==this.measuresAxis()||!u||(t={columns:{},rows:t.columns}),this._axes={columns:y(this._axes.columns),rows:y(this._axes.rows)},t={columns:y(t.columns),rows:y(t.rows)},i=this._normalizeTuples(t.columns.tuples,this._axes.columns.tuples,d,this._columnMeasures()),o=this._normalizeTuples(t.rows.tuples,this._axes.rows.tuples,c,this._rowMeasures()),this._skipNormalize>0&&(this._skipNormalize-=1),this.cubeBuilder||(e=this._normalizeData({columnsLength:t.columns.tuples.length,rowsLength:t.rows.tuples.length,columnIndexes:i,rowIndexes:o,data:e})),"rows"==this._lastExpanded?(r=t.columns.tuples,s=this._columnMeasures(),a=v(t.columns,this._axes.columns,s),a&&(l="columns",t.columns=a,_(r,a.tuples,t.rows.tuples.length,s,e),this.cubeBuilder||(e=this._normalizeData({columnsLength:k(t.columns.tuples,s),rowsLength:t.rows.tuples.length,data:e})))):"columns"==this._lastExpanded&&(r=t.rows.tuples,s=this._rowMeasures(),a=v(t.rows,this._axes.rows,s),a&&(l="rows",t.rows=a,b(r,a.tuples,t.columns.tuples.length,s,e),this.cubeBuilder||(e=this._normalizeData({columnsLength:k(t.rows.tuples,s),rowsLength:t.columns.tuples.length,data:e})))),this._lastExpanded=null,h=this._mergeAxes(t,e,l),this._axes=h.axes,h.data},_readData:function(e){var t=this.reader.axes(e),n=this.reader.data(e);return this.cubeBuilder&&(this._rawData=n),this._processResult(n,t)},_createTuple:function(e,t,n){var i,o,r,a,s,l,d,c,u=e.members,h=u.length,p={members:[]},f=0;for(t&&(h-=1);f<h;f++)c=u[f],o=+c.levelNum,r=c.name,a=c.parentName,d=c.caption||r,s=c.hasChildren,l=c.hierarchy,i=c.levelName,n&&(d="All",0===o?a=c.name:o-=1,s=!0,r=l=i=a),p.members.push({name:r,children:[],caption:d,levelName:i,levelNum:""+o,hasChildren:s,hierarchy:l,parentName:n?"":a});return t&&p.members.push({name:t.name,children:[]}),p},_hasRoot:function(e,t,n){var i,o,r,a,s,l,d;if(t.length)return T(t,e).tuple;for(i=e.members,a=!0,l=0,d=i.length;l<d;l++)if(o=i[l],s=+o.levelNum||0,r=n[l],!(0===s||r&&o.name===V(r))){a=!1;break}return a},_mergeAxes:function(e,t,n){var i,o,r,a,s,l=this._columnMeasures(),d=this._rowMeasures(),c=this.axes(),u=k(c.rows.tuples,d),h=e.rows.tuples.length,p=k(c.columns.tuples,l),f=e.columns.tuples.length;return"columns"==n?(f=p,o=e.columns.tuples):(o=M(e.columns.tuples,l),t=F(o,t)),r=C(c.columns.tuples,o,l),"rows"==n?(h=k(e.rows.tuples,d),o=e.rows.tuples):(o=M(e.rows.tuples,d),t=R(o,t)),a=C(c.rows.tuples,o,d),c.columns.tuples=r.tuples,c.rows.tuples=a.tuples,p!==k(c.columns.tuples,l)?(i=r.index+x(r.parsedRoot,r.memberIndex,l),s=p+f,t=this._mergeColumnData(t,i,h,f,s)):u!==k(c.rows.tuples,d)&&(i=a.index+x(a.parsedRoot,a.memberIndex,d),t=this._mergeRowData(t,i,h,f)),0===c.columns.tuples.length&&0===c.rows.tuples.length&&(t=[]),{axes:c,data:t}},_mergeColumnData:function(e,t,n,i,o){var r,a,s,l=this.data().toJSON(),d=0,c=Math.max(this._columnMeasures().length,1);for(n=Math.max(n,1),l.length>0&&(d=c,o-=c),r=0;r<n;r++)a=t+r*o,s=e.splice(0,i),s.splice(0,d),[].splice.apply(l,[a,0].concat(s));return l},_mergeRowData:function(e,t,n,i){var o,r,a,s=this.data().toJSON(),l=Math.max(this._rowMeasures().length,1);for(i=Math.max(i,1),s.length>0&&(n-=l,e.splice(0,i*l)),o=0;o<n;o++)a=e.splice(0,i),r=t*i+o*i,[].splice.apply(s,[r,0].concat(a));return s},_columnMeasures:function(){var e=this.measures(),t=[];return"columns"===this.measuresAxis()&&(0===this.columns().length?t=e:e.length>1&&(t=e)),t},_rowMeasures:function(){var e=this.measures(),t=[];return"rows"===this.measuresAxis()&&(0===this.rows().length?t=e:e.length>1&&(t=e)),t},_updateLocalData:function(e,t){this.cubeBuilder&&(t&&(this._requestData=t),e=this._processResult(e)),this._data=this._observe(e),this._ranges=[],this._addRange(this._data),this._total=this._data.length,this._pristineTotal=this._total,this._process(this._data)},data:function(e){var n=this;return e===t?n._data:(this._pristineData=e.slice(0),this._updateLocalData(e,{columns:this.columns(),rows:this.rows(),measures:this.measures()}),t)},_normalizeTuples:function(e,t,n,i){var o,r,a,s=i.length||1,l=0,d=[],c={},u=0;if(e.length){if(this._skipNormalize<=0&&!this._hasRoot(e[0],t,n)){for(this._skipNormalize=0;l<s;l++)d.push(this._createTuple(e[0],i[l],!0)),c[l]=l;e.splice.apply(e,[0,e.length].concat(d).concat(e)),l=s}if(i.length)for(a=o=e[l],r=o.members.length-1;o;){if(u>=s&&(u=0),o.members[r].name!==i[u].name&&(e.splice(l,0,this._createTuple(o,i[u])),c[l]=l),l+=1,u+=1,o=e[l],s>u&&(!o||ue(a,r-1)!==ue(o,r-1))){for(;u<s;u++)e.splice(l,0,this._createTuple(a,i[u])),c[l]=l,l+=1;o=e[l]}a=o}return c}},_addMissingDataItems:function(e,n){for(;n.rowIndexes[parseInt(e.length/n.columnsLength,10)]!==t;)for(var i=0;i<n.columnsLength;i++)e=g(e);for(;n.columnIndexes[e.length%n.columnsLength]!==t;)e=g(e);return e},_normalizeOrdinals:function(e,t,n){var i=n.lastOrdinal;if(!t)return g(e);if(t.ordinal-i>1)for(i+=1;i<t.ordinal&&e.length<n.length;)e=this._addMissingDataItems(g(e),n),i+=1;return t.ordinal=e.length,e[e.length]=t,e},_normalizeData:function(e){var t,n,i,o=e.data,r=0,a=[];if(e.lastOrdinal=0,e.columnIndexes=e.columnIndexes||{},e.rowIndexes=e.rowIndexes||{},e.columnsLength=e.columnsLength||1,e.rowsLength=e.rowsLength||1,e.length=e.columnsLength*e.rowsLength,i=e.length,o.length===i)return o;for(;a.length<i;)t=o[r++],t&&(n=t.ordinal),a=this._normalizeOrdinals(this._addMissingDataItems(a,e),t,e),e.lastOrdinal=n;return a},discover:function(t,n){var i=this,o=i.transport;return e.Deferred(function(e){o.discover(De({success:function(t){t=i.reader.parse(t),i._handleCustomErrors(t)||(n&&(t=n(t)),e.resolve(t))},error:function(t,n,o){e.reject(t),i.error(t,n,o)}},t))}).promise().done(function(){i.trigger("schemaChange")})},schemaMeasures:function(){var e=this;return e.discover({data:{command:"schemaMeasures",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}}},function(t){return e.reader.measures(t)})},schemaKPIs:function(){var e=this;return e.discover({data:{command:"schemaKPIs",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}}},function(t){return e.reader.kpis(t)})},schemaDimensions:function(){var e=this;return e.discover({data:{command:"schemaDimensions",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}}},function(t){return e.reader.dimensions(t)})},schemaHierarchies:function(e){var t=this;return t.discover({data:{command:"schemaHierarchies",restrictions:{catalogName:t.transport.catalog(),cubeName:t.transport.cube(),dimensionUniqueName:e}}},function(e){return t.reader.hierarchies(e)})},schemaLevels:function(e){var t=this;return t.discover({data:{command:"schemaLevels",restrictions:{catalogName:t.transport.catalog(),cubeName:t.transport.cube(),hierarchyUniqueName:e}}},function(e){return t.reader.levels(e)})},schemaCubes:function(){var e=this;return e.discover({data:{command:"schemaCubes",restrictions:{catalogName:e.transport.catalog()}}},function(t){return e.reader.cubes(t)})},schemaCatalogs:function(){var e=this;return e.discover({data:{command:"schemaCatalogs"}},function(t){return e.reader.catalogs(t)})},schemaMembers:function(e){var t=this,n=function(e){return function(n){return t.reader.members(n,e)}}(e);return t.discover({data:{command:"schemaMembers",restrictions:De({catalogName:t.transport.catalog(),cubeName:t.transport.cube()},e)}},n)},_params:function(e){this._clearAxesData&&(this._axes={},this._data=this._observe([]),this._clearAxesData=!1,this.trigger(Fe));var t=ke.fn._params.call(this,e);return t=De({measures:this.measures(),measuresAxis:this.measuresAxis(),columns:this.columns(),rows:this.rows()},t),this.cubeBuilder&&(this._requestData=t),t}});et.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data;if(t.data=n,!(t instanceof et)&&t instanceof ge.data.DataSource)throw Error("Incorrect DataSource type. Only PivotDataSource instances are supported");return t instanceof et?t:new et(t)},X={contains:', InStr({0}.CurrentMember.MEMBER_CAPTION,"{1}") > 0',doesnotcontain:', InStr({0}.CurrentMember.MEMBER_CAPTION,"{1}")',startswith:', Left({0}.CurrentMember.MEMBER_CAPTION,Len("{1}"))="{1}"',endswith:', Right({0}.CurrentMember.MEMBER_CAPTION,Len("{1}"))="{1}"',eq:', {0}.CurrentMember.MEMBER_CAPTION = "{1}"',neq:', {0}.CurrentMember.MEMBER_CAPTION = "{1}"'},Z={schemaCubes:"MDSCHEMA_CUBES",schemaCatalogs:"DBSCHEMA_CATALOGS",schemaMeasures:"MDSCHEMA_MEASURES",schemaDimensions:"MDSCHEMA_DIMENSIONS",schemaHierarchies:"MDSCHEMA_HIERARCHIES",schemaLevels:"MDSCHEMA_LEVELS",schemaMembers:"MDSCHEMA_MEMBERS",schemaKPIs:"MDSCHEMA_KPIS"},J={read:function(e){var t,n,i,o,r,a='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header/><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>';return a+="SELECT NON EMPTY {",t=e.columns||[],n=e.rows||[],i=e.measures||[],o="rows"===e.measuresAxis,r=e.sort||[],!t.length&&n.length&&(!i.length||i.length&&o)&&(t=n,n=[],o=!1),t.length||n.length||(o=!1),t.length?a+=q(t,o?[]:i,r):i.length&&!o&&(a+=O(i).join(",")),a+="} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON COLUMNS",(n.length||o&&i.length>1)&&(a+=", NON EMPTY {",a+=n.length?q(n,o?i:[],r):O(i).join(","),a+="} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON ROWS"),e.filter?(a+=" FROM ",a+="(",a+=$(e.filter,e.connection.cube),a+=")"):a+=" FROM ["+e.connection.cube+"]",1==i.length&&t.length&&(a+=" WHERE ("+O(i).join(",")+")"),a+="</Statement></Command><Properties><PropertyList><Catalog>"+e.connection.catalog+"</Catalog><Format>Multidimensional</Format></PropertyList></Properties></Execute></Body></Envelope>",a.replace(/\&/g,"&amp;")},discover:function(t){t=t||{};var n='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header/><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis">';return n+="<RequestType>"+(Z[t.command]||t.command)+"</RequestType>",n+="<Restrictions>"+K("RestrictionList",t.restrictions,!0)+"</Restrictions>",t.connection&&t.connection.catalog&&(t.properties=e.extend({},{Catalog:t.connection.catalog},t.properties)),n+="<Properties>"+K("PropertyList",t.properties)+"</Properties>",n+="</Discover></Body></Envelope>"}},ee=ge.data.RemoteTransport.extend({init:function(e){var t=e;e=this.options=De(!0,{},this.options,e),ge.data.RemoteTransport.call(this,e),Ae(t.discover)?this.discover=t.discover:"string"==typeof t.discover?this.options.discover={url:t.discover}:t.discover||(this.options.discover=this.options.read)},setup:function(t,n){return t.data=t.data||{},e.extend(!0,t.data,{connection:this.options.connection}),ge.data.RemoteTransport.fn.setup.call(this,t,n)},options:{read:{dataType:"text",contentType:"text/xml",type:"POST"},discover:{dataType:"text",contentType:"text/xml",type:"POST"},parameterMap:function(e,t){return J[t](e,t)}},discover:function(t){return e.ajax(this.setup(t,"discover"))}}),te={cubes:{name:ge.getter("CUBE_NAME['#text']",!0),
caption:ge.getter("CUBE_CAPTION['#text']",!0),description:ge.getter("DESCRIPTION['#text']",!0),type:ge.getter("CUBE_TYPE['#text']",!0)},catalogs:{name:ge.getter("CATALOG_NAME['#text']",!0),description:ge.getter("DESCRIPTION['#text']",!0)},measures:{name:ge.getter("MEASURE_NAME['#text']",!0),caption:ge.getter("MEASURE_CAPTION['#text']",!0),uniqueName:ge.getter("MEASURE_UNIQUE_NAME['#text']",!0),description:ge.getter("DESCRIPTION['#text']",!0),aggregator:ge.getter("MEASURE_AGGREGATOR['#text']",!0),groupName:ge.getter("MEASUREGROUP_NAME['#text']",!0),displayFolder:ge.getter("MEASURE_DISPLAY_FOLDER['#text']",!0),defaultFormat:ge.getter("DEFAULT_FORMAT_STRING['#text']",!0)},kpis:{name:ge.getter("KPI_NAME['#text']",!0),caption:ge.getter("KPI_CAPTION['#text']",!0),value:ge.getter("KPI_VALUE['#text']",!0),goal:ge.getter("KPI_GOAL['#text']",!0),status:ge.getter("KPI_STATUS['#text']",!0),trend:ge.getter("KPI_TREND['#text']",!0),statusGraphic:ge.getter("KPI_STATUS_GRAPHIC['#text']",!0),trendGraphic:ge.getter("KPI_TREND_GRAPHIC['#text']",!0),description:ge.getter("KPI_DESCRIPTION['#text']",!0),groupName:ge.getter("MEASUREGROUP_NAME['#text']",!0)},dimensions:{name:ge.getter("DIMENSION_NAME['#text']",!0),caption:ge.getter("DIMENSION_CAPTION['#text']",!0),description:ge.getter("DESCRIPTION['#text']",!0),uniqueName:ge.getter("DIMENSION_UNIQUE_NAME['#text']",!0),defaultHierarchy:ge.getter("DEFAULT_HIERARCHY['#text']",!0),type:ge.getter("DIMENSION_TYPE['#text']",!0)},hierarchies:{name:ge.getter("HIERARCHY_NAME['#text']",!0),caption:ge.getter("HIERARCHY_CAPTION['#text']",!0),description:ge.getter("DESCRIPTION['#text']",!0),uniqueName:ge.getter("HIERARCHY_UNIQUE_NAME['#text']",!0),dimensionUniqueName:ge.getter("DIMENSION_UNIQUE_NAME['#text']",!0),displayFolder:ge.getter("HIERARCHY_DISPLAY_FOLDER['#text']",!0),origin:ge.getter("HIERARCHY_ORIGIN['#text']",!0),defaultMember:ge.getter("DEFAULT_MEMBER['#text']",!0)},levels:{name:ge.getter("LEVEL_NAME['#text']",!0),caption:ge.getter("LEVEL_CAPTION['#text']",!0),description:ge.getter("DESCRIPTION['#text']",!0),uniqueName:ge.getter("LEVEL_UNIQUE_NAME['#text']",!0),dimensionUniqueName:ge.getter("DIMENSION_UNIQUE_NAME['#text']",!0),displayFolder:ge.getter("LEVEL_DISPLAY_FOLDER['#text']",!0),orderingProperty:ge.getter("LEVEL_ORDERING_PROPERTY['#text']",!0),origin:ge.getter("LEVEL_ORIGIN['#text']",!0),hierarchyUniqueName:ge.getter("HIERARCHY_UNIQUE_NAME['#text']",!0)},members:{name:ge.getter("MEMBER_NAME['#text']",!0),caption:ge.getter("MEMBER_CAPTION['#text']",!0),uniqueName:ge.getter("MEMBER_UNIQUE_NAME['#text']",!0),dimensionUniqueName:ge.getter("DIMENSION_UNIQUE_NAME['#text']",!0),hierarchyUniqueName:ge.getter("HIERARCHY_UNIQUE_NAME['#text']",!0),levelUniqueName:ge.getter("LEVEL_UNIQUE_NAME['#text']",!0),childrenCardinality:ge.getter("CHILDREN_CARDINALITY['#text']",!0)}},ne=["axes","catalogs","cubes","dimensions","hierarchies","levels","measures"],ie=ge.data.XmlDataReader.extend({init:function(e){ge.data.XmlDataReader.call(this,e),this._extend(e)},_extend:function(e){for(var t,n,i=0,o=ne.length;i<o;i++)t=ne[i],n=e[t],n&&n!==Se&&(this[t]=n)},parse:function(e){var t=ge.data.XmlDataReader.fn.parse(e.replace(/<(\/?)(\w|-)+:/g,"<$1"));return ge.getter("['Envelope']['Body']",!0)(t)},errors:function(e){var t=ge.getter("['Fault']",!0)(e);return t?[{faultstring:ge.getter("faultstring['#text']",!0)(t),faultcode:ge.getter("faultcode['#text']",!0)(t)}]:null},axes:function(e){var t,n,i,o;for(e=ge.getter('ExecuteResponse["return"].root',!0)(e),t=Y(ge.getter("Axes.Axis",!0)(e)),i={columns:{},rows:{}},o=0;o<t.length;o++)n=t[o],"sliceraxis"!==n["@name"].toLowerCase()&&(i.columns.tuples?i.rows=Q(n):i.columns=Q(n));return i},data:function(e){var t,n,i,o,r,a;for(e=ge.getter('ExecuteResponse["return"].root',!0)(e),t=Y(ge.getter("CellData.Cell",!0)(e)),n=[],i=ge.getter("['@CellOrdinal']"),o=ge.getter("Value['#text']"),r=ge.getter("FmtValue['#text']"),a=0;a<t.length;a++)n.push({value:o(t[a]),fmtValue:r(t[a]),ordinal:parseInt(i(t[a]),10)});return n},_mapSchema:function(e,t){var n,i,o,r,a;for(e=ge.getter('DiscoverResponse["return"].root',!0)(e),n=Y(ge.getter("row",!0)(e)),i=[],o=0;o<n.length;o++){r={};for(a in t)r[a]=t[a](n[o]);i.push(r)}return i},measures:function(e){return this._mapSchema(e,te.measures)},kpis:function(e){return this._mapSchema(e,te.kpis)},hierarchies:function(e){return this._mapSchema(e,te.hierarchies)},levels:function(e){return this._mapSchema(e,te.levels)},dimensions:function(e){return this._mapSchema(e,te.dimensions)},cubes:function(e){return this._mapSchema(e,te.cubes)},catalogs:function(e){return this._mapSchema(e,te.catalogs)},members:function(e){return this._mapSchema(e,te.members)}}),De(!0,ge.data,{PivotDataSource:et,XmlaTransport:ee,XmlaDataReader:ie,PivotCubeBuilder:Ze,transports:{xmla:ee},readers:{xmla:ie}}),oe=function(e,t){if(!e)return null;for(var n=0,i=e.length;n<i;n++)if(e[n].field===t)return e[n];return null},re=function(e,t){var n,i,o=[];for(n=0,i=e.length;n<i;n++)e[n].field!==t&&o.push(e[n]);return o},ge.ui.PivotSettingTarget=we.extend({init:function(t,n){var i=this;we.fn.init.call(i,t,n),i.element.addClass("k-pivot-setting"),i.dataSource=ge.data.PivotDataSource.create(n.dataSource),i._refreshHandler=e.proxy(i.refresh,i),i.dataSource.first(Ee,i._refreshHandler),n.template||(i.options.template="<div data-"+ge.ns+'name="${data.name || data}">${data.name || data}'+(i.options.enabled?'<a class="k-button k-button-icon k-flat"><span class="k-icon k-i-close k-setting-delete"></span></a>':"")+"</div>"),i.template=ge.template(i.options.template),i.emptyTemplate=ge.template(i.options.emptyTemplate),i._sortable(),i.element.on("click"+Be,".k-button,.k-item",function(t){var n=e(t.target),o=n.closest("["+ge.attr("name")+"]").attr(ge.attr("name"));o&&(n.hasClass("k-i-close")?i.remove(o):i.options.sortable&&n[0]===t.currentTarget&&i.sort({field:o,dir:n.find(".k-i-sort-asc-sm")[0]?"desc":"asc"}))}),(n.filterable||n.sortable)&&(i.fieldMenu=new ve.PivotFieldMenu(i.element,{messages:i.options.messages.fieldMenu,filter:".k-setting-fieldmenu",filterable:n.filterable,sortable:n.sortable,dataSource:i.dataSource})),i.refresh()},options:{name:"PivotSettingTarget",template:null,filterable:!1,sortable:!1,emptyTemplate:"<div class='k-empty'>${data}</div>",setting:"columns",enabled:!0,messages:{empty:"Drop Fields Here"}},setDataSource:function(e){this.dataSource.unbind(Ee,this._refreshHandler),this.dataSource=this.options.dataSource=e,this.fieldMenu&&this.fieldMenu.setDataSource(e),e.first(Ee,this._refreshHandler),this.refresh()},_sortable:function(){var e=this;e.options.enabled&&(this.sortable=this.element.kendoSortable({connectWith:this.options.connectWith,hint:e.options.hint,filter:">*:not(.k-empty)",cursor:"move",start:function(e){e.item.focus().blur()},change:function(t){var n=t.item.attr(ge.attr("name"));"receive"==t.action?e.add(n):"remove"==t.action?e.remove(n):"sort"==t.action&&e.move(n,t.newIndex)}}).data("kendoSortable"))},_indexOf:function(e,t){var n,i,o=-1;for(n=0,i=t.length;n<i;n++)if(V(t[n])===e){o=n;break}return o},_isKPI:function(e){return"kpi"===e.type||e.measure},validate:function(e){var t,n,i=2==e.type||"aggregator"in e||this._isKPI(e);return i?"measures"===this.options.setting:"measures"===this.options.setting?i:(t=this.dataSource[this.options.setting](),n=e.defaultHierarchy||e.uniqueName,!(this._indexOf(n,t)>-1)&&(t=this.dataSource["columns"===this.options.setting?"rows":"columns"](),!(this._indexOf(n,t)>-1)))},add:function(t){var n,i,o=this.dataSource[this.options.setting]();for(t=e.isArray(t)?t.slice(0):[t],n=0,i=t.length;n<i;n++)this._indexOf(t[n],o)!==-1&&(t.splice(n,1),n-=1,i-=1);t.length&&(o=o.concat(t),this.dataSource[this.options.setting](o))},move:function(e,t){var n=this.dataSource[this.options.setting](),i=this._indexOf(e,n);i>-1&&(e=n.splice(i,1)[0],n.splice(t,0,e),this.dataSource[this.options.setting](n))},remove:function(e){var t=this.dataSource[this.options.setting](),n=this._indexOf(e,t),i=this.dataSource.sort(),o=this.dataSource.filter();n>-1&&(o&&(o.filters=re(o.filters,e),this.dataSource._filter.filters=o.filters,o.filters.length||(this.dataSource._filter=null)),i&&(i=re(i,e),this.dataSource._sort=i),t.splice(n,1),this.dataSource[this.options.setting](t))},sort:function(e){var t=this.options.sortable,n=t===!0||t.allowUnsort,i=n&&"asc"===e.dir,o=this.dataSource.sort()||[],r=re(o,e.field);i&&o.length!==r.length&&(e=null),e&&r.push(e),this.dataSource.sort(r)},refresh:function(){var e,n="",i=this.dataSource[this.options.setting](),o=i.length,r=0;if(o)for(;r<o;r++)e=i[r],e=e.name===t?{name:e}:e,n+=this.template(De({sortIcon:this._sortIcon(e.name)},e));else n=this.emptyTemplate(this.options.messages.empty);this.element.html(n)},destroy:function(){we.fn.destroy.call(this),this.dataSource.unbind(Ee,this._refreshHandler),this.element.off(Be),this.sortable&&this.sortable.destroy(),this.fieldMenu&&this.fieldMenu.destroy(),this.element=null,this._refreshHandler=null},_sortIcon:function(e){var t=this.dataSource.sort(),n=oe(t,V(e)),i="";return n&&(i="k-i-sort-"+n.dir),i}}),ae=we.extend({init:function(n,i){var o,r,a=this;we.fn.init.call(a,n,i),a._dataSource(),a._bindConfigurator(),a._wrapper(),a._createLayout(),a._columnBuilder=o=new he,a._rowBuilder=r=new pe,a._contentBuilder=new fe,a._templates(),a.columnsHeader.add(a.rowsHeader).on("click","span.k-icon",function(){var n,i,s,l,d=e(this),c=o,u="expandColumn",h=d.attr(ge.attr("path")),p={axis:"columns",path:e.parseJSON(h)};d.parent().is("td")&&(c=r,u="expandRow",p.axis="rows"),i=d.hasClass(We),s=c.metadata[h],l=s.expanded===t,n=i?Ve:Oe,p.childrenLoaded=s.maxChildren>s.children,a.trigger(n,p)||(c.metadata[h].expanded=!i,d.toggleClass(We,!i).toggleClass(Ue,i),!i&&l?a.dataSource[u](p.path):a.refresh())}),a._scrollable(),a.options.autoBind&&a.dataSource.fetch(),ge.notify(a)},events:[He,Ne,Oe,Ve],options:{name:"PivotGrid",autoBind:!0,reorderable:!0,filterable:!1,sortable:!1,height:null,columnWidth:100,configurator:"",columnHeaderTemplate:null,rowHeaderTemplate:null,dataCellTemplate:null,kpiStatusTemplate:null,kpiTrendTemplate:null,messages:{measureFields:"Drop Data Fields Here",columnFields:"Drop Column Fields Here",rowFields:"Drop Rows Fields Here"}},_templates:function(){var e=this.options.columnHeaderTemplate,t=this.options.rowHeaderTemplate,n=this.options.dataCellTemplate,i=this.options.kpiStatusTemplate,o=this.options.kpiTrendTemplate;this._columnBuilder.template=ge.template(e||je,{useWithBlock:!!e}),this._contentBuilder.dataTemplate=ge.template(n||$e,{useWithBlock:!!n}),this._contentBuilder.kpiStatusTemplate=ge.template(i||qe,{useWithBlock:!!i}),this._contentBuilder.kpiTrendTemplate=ge.template(o||Ge,{useWithBlock:!!o}),this._rowBuilder.template=ge.template(t||je,{useWithBlock:!!t})},_bindConfigurator:function(){var t=this.options.configurator;t&&e(t).kendoPivotConfigurator("setDataSource",this.dataSource)},cellInfoByElement:function(t){return t=e(t),this.cellInfo(t.index(),t.parent("tr").index())},cellInfo:function(e,t){var n,i=this._contentBuilder,o=i.columnIndexes[e||0],r=i.rowIndexes[t||0];return o&&r?(n=r.index*i.rowLength+o.index,{columnTuple:o.tuple,rowTuple:r.tuple,measure:o.measure||r.measure,dataItem:this.dataSource.view()[n]}):null},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.measuresTarget&&this.measuresTarget.setDataSource(e),this.rowsTarget&&this.rowsTarget.setDataSource(e),this.columnsTarget&&this.columnsTarget.setDataSource(e),this._bindConfigurator(),this.options.autoBind&&e.fetch()},setOptions:function(e){we.fn.setOptions.call(this,e),this._templates()},destroy:function(){we.fn.destroy.call(this),clearTimeout(this._headerReflowTimeout)},_dataSource:function(){var t=this,n=t.options.dataSource;n=e.isArray(n)?{data:n}:n,t.dataSource&&this._refreshHandler?t.dataSource.unbind(Ee,t._refreshHandler).unbind(Fe,t._stateResetHandler).unbind(Re,t._progressHandler).unbind(Ie,t._errorHandler):(t._refreshHandler=e.proxy(t.refresh,t),t._progressHandler=e.proxy(t._requestStart,t),t._stateResetHandler=e.proxy(t._stateReset,t),t._errorHandler=e.proxy(t._error,t)),t.dataSource=ge.data.PivotDataSource.create(n).bind(Ee,t._refreshHandler).bind(Re,t._progressHandler).bind(Fe,t._stateResetHandler).bind(Ie,t._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_stateReset:function(){this._columnBuilder.reset(),this._rowBuilder.reset()},_wrapper:function(){var e=this.options.height;this.wrapper=this.element.addClass("k-widget k-pivot"),e&&this.wrapper.css("height",e)},_measureFields:function(){this.measureFields=e(ze).addClass("k-pivot-toolbar k-header k-settings-measures"),this.measuresTarget=this._createSettingTarget(this.measureFields,{setting:"measures",messages:{empty:this.options.messages.measureFields}})},_createSettingTarget:function(t,n){var i='<span tabindex="0" class="k-button" data-'+ge.ns+'name="${data.name}">${data.name}',o=n.sortable,r="";return o&&(r+="#if (data.sortIcon) {#",r+='<span class="k-icon ${data.sortIcon}-sm"></span>',r+="#}#"),(n.filterable||o)&&(r+='<span class="k-icon k-i-more-vertical k-setting-fieldmenu"></span>'),this.options.reorderable&&(r+='<span class="k-icon k-i-close k-setting-delete"></span>'),r&&(i+='<span class="k-field-actions">'+r+"</span>"),i+="</span>",new ge.ui.PivotSettingTarget(t,e.extend({template:i,emptyTemplate:'<span class="k-empty">${data}</span>',enabled:this.options.reorderable,dataSource:this.dataSource},n))},_initSettingTargets:function(){this.columnsTarget=this._createSettingTarget(this.columnFields,{connectWith:this.rowFields,setting:"columns",filterable:this.options.filterable,sortable:this.options.sortable,messages:{empty:this.options.messages.columnFields,fieldMenu:this.options.messages.fieldMenu}}),this.rowsTarget=this._createSettingTarget(this.rowFields,{connectWith:this.columnFields,setting:"rows",filterable:this.options.filterable,sortable:this.options.sortable,messages:{empty:this.options.messages.rowFields,fieldMenu:this.options.messages.fieldMenu}})},_createLayout:function(){var t=this,n=e(Ke),i=n.find(".k-pivot-rowheaders"),o=n.find(".k-pivot-table"),r=e(ze).addClass("k-grid k-widget");t._measureFields(),t.columnFields=e(ze).addClass("k-pivot-toolbar k-header k-settings-columns"),t.rowFields=e(ze).addClass("k-pivot-toolbar k-header k-settings-rows"),t.columnsHeader=e('<div class="k-grid-header-wrap" />').wrap('<div class="k-grid-header" />'),t.columnsHeader.parent().css("padding-right",ge.support.scrollbar()),t.rowsHeader=e('<div class="k-grid k-widget k-alt"/>'),t.content=e('<div class="k-grid-content" />'),i.append(t.measureFields),i.append(t.rowFields),i.append(t.rowsHeader),r.append(t.columnsHeader.parent()),r.append(t.content),o.append(t.columnFields),o.append(r),t.wrapper.append(n),t.columnsHeaderTree=new ge.dom.Tree(t.columnsHeader[0]),t.rowsHeaderTree=new ge.dom.Tree(t.rowsHeader[0]),t.contentTree=new ge.dom.Tree(t.content[0]),t._initSettingTargets()},_progress:function(e){ge.ui.progress(this.wrapper,e)},_resize:function(){this.content[0].firstChild&&(this._setSectionsWidth(),this._setSectionsHeight(),this._setContentWidth(),this._setContentHeight(),this._columnHeaderReflow())},_columnHeaderReflow:function(){var e=this.columnsHeader.children("table");ge.support.browser.mozilla&&(clearTimeout(this._headerReflowTimeout),e.css("table-layout","auto"),this._headerReflowTimeout=setTimeout(function(){e.css("table-layout","")}))},_setSectionsWidth:function(){var e=this.rowsHeader,t=e.parent(".k-pivot-rowheaders").width(Pe),n=Math.max(ye(this.measureFields),ye(this.rowFields));n=Math.max(e.children("table").width(),n),t.width(n)},_setSectionsHeight:function(){var e=this.measureFields.height(Pe).height(),t=this.columnFields.height(Pe).height(),n=this.rowFields.height(Pe).innerHeight(),i=this.columnsHeader.height(Pe).innerHeight(),o=n-this.rowFields.height(),r=t>e?t:e,a=i>n?i:n;this.measureFields.height(r),this.columnFields.height(r),this.rowFields.height(a-o),this.columnsHeader.height(a)},_setContentWidth:function(){var e=this.content.find("table"),t=this.columnsHeader.children("table"),n=e.children("colgroup").children().length,i=n*this.options.columnWidth,o=Math.ceil(i/this.content.width()*100);o<100&&(o=100),e.add(t).css("width",o+"%"),this._resetColspan(t)},_setContentHeight:function(){var e=this,n=e.content,i=e.rowsHeader,o=e.wrapper.innerHeight(),r=ge.support.scrollbar(),a=n[0].offsetHeight===n[0].clientHeight,s=e.options.height;if(e.wrapper.is(":visible")){if(!o||!s)return a&&(r=0),n.height("auto"),i.height(n.height()-r),t;o-=xe(e.columnFields),o-=xe(e.columnsHeader.parent()),o<=2*r&&(o=2*r+1,a||(o+=r)),n.height(o),a&&(r=0),i.height(o-r)}},_resetColspan:function(e){var n=this,i=e.children("tbody").children(":first").children(":first");n._colspan===t&&(n._colspan=i.attr("colspan")),i.attr("colspan",1),clearTimeout(n._layoutTimeout),n._layoutTimeout=setTimeout(function(){i.attr("colspan",n._colspan),n._colspan=t})},_axisMeasures:function(e){var t=[],n=this.dataSource,i=n.measures(),o=i.length>1||i[0]&&i[0].type;return n.measuresAxis()===e&&(0===n[e]().length||o)&&(t=i),t},items:function(){return[]},refresh:function(){var e,t=this,n=t.dataSource,i=n.axes(),o=(i.columns||{}).tuples||[],r=(i.rows||{}).tuples||[],a=t._columnBuilder,s=t._rowBuilder,l={},d={};t.trigger(He,{action:"rebind"})||(a.measures=t._axisMeasures(Qe),s.measures=t._axisMeasures(Ye),t.columnsHeaderTree.render(a.build(o)),t.rowsHeaderTree.render(s.build(r)),l={indexes:a._indexes,measures:a.measures,metadata:a.metadata},d={indexes:s._indexes,measures:s.measures,metadata:s.metadata},t.contentTree.render(t._contentBuilder.build(n.view(),l,d)),t._resize(),t.touchScroller?t.touchScroller.contentResized():(e=ge.touchScroller(t.content),e&&e.movable&&(t.touchScroller=e,e.movable.bind("change",function(e){ge.scrollLeft(t.columnsHeader,-e.sender.x),t.rowsHeader.scrollTop(-e.sender.y)}))),t._progress(!1),t.trigger(Ne))},_scrollable:function(){var t=this,n=t.columnsHeader,i=t.rowsHeader;t.content.scroll(function(){ge.scrollLeft(n,this.scrollLeft),i.scrollTop(this.scrollTop)}),i.bind("DOMMouseScroll"+Be+" mousewheel"+Be,e.proxy(t._wheelScroll,t))},_wheelScroll:function(t){var n,i;t.ctrlKey||(n=ge.wheelDeltaY(t),i=this.content.scrollTop(),n&&(t.preventDefault(),e(t.currentTarget).one("wheel"+Be,!1),this.rowsHeader.scrollTop(i+-n),this.content.scrollTop(i+-n)))}}),se=ge.dom.element,le=ge.dom.html,de=function(e,t){return{maxChildren:0,children:0,maxMembers:0,members:0,measures:1,levelNum:e,parentMember:0!==t}},ce=function(e,t){for(var n=[],i=0;i<=t;i++)n.push(e.members[i].name);return n},ue=function(e,t){for(var n="",i=0;i<=t;i++)n+=e.members[i].name;return n},he=_e.extend({init:function(){this.measures=1,this.metadata={}},build:function(e){var t=this._tbody(e),n=this._colGroup();return[se("table",null,[n,t])]},reset:function(){this.metadata={}},_colGroup:function(){for(var e=this._rowLength(),t=[],n=0;n<e;n++)t.push(se("col",null));return se("colgroup",null,t)},_tbody:function(e){var t=e[0];return this.map={},this.rows=[],this.rootTuple=t,this._indexes=[],t?(this._buildRows(t,0),this._normalize()):this.rows.push(se("tr",null,[se("th",null,[le("&nbsp;")])])),se("tbody",null,this.rows)},_normalize:function(){for(var e,t,n,i,o,r=this.rows,a=r.length,s=0;s<a;s++)if(e=r[s],1!==e.rowSpan)for(i=e.children,n=0,t=i.length;n<t;n++)o=i[n],o.tupleAll&&(o.attr.rowSpan=e.rowSpan)},_rowIndex:function(e){for(var t=this.rows,n=t.length,i=0;i<n&&t[i]!==e;i++);return i},_rowLength:function(){var e=this.rows[0]?this.rows[0].children:[],t=e.length,n=0,i=0;if(t)for(;i<t;i++)n+=e[i].attr.colSpan||1;return n||(n=this.measures),n},_row:function(e,t,n){var i,o,r=this.rootTuple.members[t].name,a=e.members[t].levelNum,s=r+a,l=this.map,d=l[s];return d?(d.notFirst=!1,d.parentMember&&d.parentMember===n||(d.parentMember=n,d.collapsed=0,d.colSpan=0)):(d=se("tr",null,[]),d.parentMember=n,d.collapsed=0,d.colSpan=0,d.rowSpan=1,l[s]=d,i=l[r+(+a-1)],i&&(o=i.children,d.notFirst=!(!o[1]||o[1].attr.className.indexOf("k-alt")!==-1)||i.notFirst),this.rows.splice(this._rowIndex(i)+1,0,d)),d},_measures:function(e,t,n){var i,o,r,a=this.map,s=a.measureRow;for(s||(s=se("tr",null,[]),a.measureRow=s,this.rows.push(s)),o=0,r=e.length;o<r;o++)i=e[o],s.children.push(this._cell(n||"",[this._content(i,t)],i));return r},_content:function(e,t){return le(this.template({member:e,tuple:t}))},_cell:function(e,t,n){var i=se("th",{className:"k-header"+e},t);return i.value=n.caption||n.name,i},_buildRows:function(e,n,i){var o,r,a,s,l,d,c,u,h,p,f=e.members,m=f[n],g=f[n+1],v=[],_=0,b=0,w=0;if(m.measure)return this._measures(m.children,e),t;if(u=ge.stringify(ce(e,n)),o=this._row(e,n,i),a=m.children,s=a.length,h=this.metadata[u],h||(this.metadata[u]=h=de(+m.levelNum,n),h.rootLevelNum=+this.rootTuple.members[n].levelNum),this._indexes.push({path:u,tuple:e}),m.hasChildren&&(h.expanded===!1&&(b=h.maxChildren,o.collapsed+=b,h.children=0,s=0),c={className:"k-icon "+(s?We:Ue)},c[ge.attr("path")]=u,v.push(se("span",c))),v.push(this._content(m,e)),l=this._cell(o.notFirst?" k-first":"",v,m),o.children.push(l),o.colSpan+=1,s){for(d=this._cell(" k-alt",[this._content(m,e)],m),o.children.push(d);_<s;_++)r=this._buildRows(a[_],n,m);p=r.colSpan,b=r.collapsed,l.attr.colSpan=p,h.children=p,h.members=1,o.colSpan+=p,o.collapsed+=b,o.rowSpan=r.rowSpan+1,g&&(g.measure?p=this._measures(g.children,e," k-alt"):(r=this._buildRows(e,n+1),p=r.colSpan,o.collapsed+=r.collapsed,w=r.collapsed),d.attr.colSpan=p,p-=1,h.members+=p,o.colSpan+=p)}else g&&(g.measure?p=this._measures(g.children,e):(r=this._buildRows(e,n+1),p=r.colSpan,o.collapsed+=r.collapsed,w=r.collapsed),h.members=p,p>1&&(l.attr.colSpan=p,o.colSpan+=p-1));return h.maxMembers<h.members+w&&(h.maxMembers=h.members+w),a=h.children+b,h.maxChildren<a&&(h.maxChildren=a),(d||l).tupleAll=!0,o}}),pe=_e.extend({init:function(){this.metadata={}},build:function(e){var t=this._tbody(e),n=this._colGroup();return[se("table",null,[n,t])]},reset:function(){this.metadata={}},_rowLength:function(){for(var e=this.rows[0].children,t=0,n=0,i=e[n];i;)t+=i.attr.colSpan||1,i=e[++n];return t},_colGroup:function(){for(var e=this._rowLength(),t=[],n=0;n<e;n++)t.push(se("col",null));return se("colgroup",null,t)},_tbody:function(e){var t=e[0];return this.rootTuple=t,this.rows=[],this.map={},this._indexes=[],t?(this._buildRows(t,0),this._normalize()):this.rows.push(se("tr",null,[se("td",null,[le("&nbsp;")])])),se("tbody",null,this.rows)},_normalize:function(){for(var e,t,n,i,o=this.rows,r=o.length,a=0,s=this.rootTuple.members,l=s[0].name,d=s.length,c=0,u=this.map;a<r;a++)for(e=o[a],c=0;c<d;c++)n=this[s[c].name],t=e.colSpan["dim"+c],t&&t.colSpan<n&&(t.attr.colSpan=n-t.colSpan+1);e=u[l],i=u[l+"all"],e&&(e.children[0].attr.className="k-first"),i&&(i.children[0].attr.className+=" k-first")},_row:function(e){var t=se("tr",null,e);return t.rowSpan=1,t.colSpan={},this.rows.push(t),t},_content:function(e,t){return le(this.template({member:e,tuple:t}))},_cell:function(e,t,n){var i=se("td",{className:e},t);return i.value=n.caption||n.name,i},_buildRows:function(e,t){var n,i,o,r,a,s,l,d,c,u=this.map,h=e.members,p=h[t],f=h[t+1],m=p.children,g=m.length,v=+p.levelNum,_=this.rootTuple.members[t].name,b=ce(e,t-1).join(""),w=+this.rootTuple.members[t].levelNum,k=b+(w===v?"":p.parentName||""),y=u[k+"all"]||u[k],x=v+1,C=[];if(!y||y.hasChild?y=this._row():y.hasChild=!0,p.measure){for(l=y.allCell?"k-grid-footer":"",y.children.push(this._cell(l,[this._content(m[0],e)],m[0])),y.rowSpan=g,c=1;c<g;c++)this._row([this._cell(l,[this._content(m[c],e)],m[c])]);return y}if(u[b+p.name]=y,n=ge.stringify(ce(e,t)),s=this.metadata[n],s||(this.metadata[n]=s=de(v,t),s.rootLevelNum=w),this._indexes.push({path:n,tuple:e}),p.hasChildren&&(s.expanded===!1&&(g=0,s.children=0),d={className:"k-icon "+(g?We:Ue)},d[ge.attr("path")]=n,C.push(se("span",d))),C.push(this._content(p,e)),l=y.allCell&&!g?"k-grid-footer":"",i=this._cell(l,C,p),i.colSpan=x,y.children.push(i),y.colSpan["dim"+t]=i,(!this[_]||this[_]<x)&&(this[_]=x),g){for(y.allCell=!1,y.hasChild=!1,c=0;c<g;c++)r=this._buildRows(m[c],t),y!==r&&(y.rowSpan+=r.rowSpan);y.rowSpan>1&&(i.attr.rowSpan=y.rowSpan),s.children=y.rowSpan,o=this._cell("k-grid-footer",[this._content(p,e)],p),o.colSpan=x,a=this._row([o]),a.colSpan["dim"+t]=o,a.allCell=!0,u[b+p.name+"all"]=a,f&&(r=this._buildRows(e,t+1),o.attr.rowSpan=r.rowSpan),y.rowSpan+=a.rowSpan,s.members=a.rowSpan}else f&&(y.hasChild=!1,this._buildRows(e,t+1),(o||i).attr.rowSpan=y.rowSpan,s.members=y.rowSpan);return s.maxChildren<s.children&&(s.maxChildren=s.children),s.maxMembers<s.members&&(s.maxMembers=s.members),y}}),fe=_e.extend({init:function(){this.columnAxis={},this.rowAxis={}},build:function(e,n,i){var o,r,a=n.indexes[0],s=n.metadata[a?a.path:t];return this.columnAxis=n,this.rowAxis=i,this.data=e,this.rowLength=s?s.maxChildren+s.maxMembers:n.measures.length||1,this.rowLength||(this.rowLength=1),o=this._tbody(),r=this._colGroup(),[se("table",null,[r,o])]},_colGroup:function(){var e=this.columnAxis.measures.length||1,t=[],n=0;for(this.rows[0]&&(e=this.rows[0].children.length);n<e;n++)t.push(se("col",null));return se("colgroup",null,t)},_tbody:function(){return this.rows=[],this.data[0]?(this.columnIndexes=this._indexes(this.columnAxis,this.rowLength),this.rowIndexes=this._indexes(this.rowAxis,Math.ceil(this.data.length/this.rowLength)),this._buildRows()):this.rows.push(se("tr",null,[se("td",null,[le("&nbsp;")])])),se("tbody",null,this.rows)},_indexes:function(e,n){var i,o,r,a,s,l,d=[],c=e.indexes,u=e.metadata,h=e.measures,p=h.length||1,f=0,m=0,g=0,v=c.length;if(!v){for(r=0;r<p;r++)d[r]={index:r,measure:h[r],tuple:null};return d}for(;g<v;g++){if(i=c[g],o=u[i.path],s=o.children+o.members,l=0,s&&(s-=p),o.expanded===!1&&o.children!==o.maxChildren&&(l=o.maxChildren),o.parentMember&&o.levelNum===o.rootLevelNum&&(s=-1),s>-1){for(r=0;r<p;r++)a=s+r,o.children||(a+=m),d[s+m+r]={children:s,index:f,measure:h[r],tuple:i.tuple},f+=1;for(;d[m]!==t;)m+=1}if(m===n)break;f+=l}return d},_buildRows:function(){for(var e,t=this.rowIndexes,n=t.length,i=0;i<n;i++)e=t[i],e&&this.rows.push(this._buildRow(e))},_buildRow:function(e){for(var n,i,o,r,a,s,l,d=e.index*this.rowLength,c=this.columnIndexes,u=c.length,h=[],p=0;p<u;p++)n=c[p],n!==t&&(a={},n.children&&(a.className="k-alt"),r="",s=this.data[d+n.index],l=n.measure||e.measure,i={columnTuple:n.tuple,rowTuple:e.tuple,measure:l,dataItem:s},""!==s.value&&l&&l.type&&("status"===l.type?r=this.kpiStatusTemplate(i):"trend"===l.type&&(r=this.kpiTrendTemplate(i))),r||(r=this.dataTemplate(i)),o=se("td",a,[le(r)]),o.value=s.value,h.push(o));return a={},e.children&&(a.className="k-grid-footer"),se("tr",a,h)}}),ve.plugin(ae),ge.PivotExcelExporter=ge.Class.extend({init:function(e){this.options=e,this.widget=e.widget,this.dataSource=this.widget.dataSource},_columns:function(){var e,t=this.widget.columnsHeaderTree.children[0],n=this.widget.rowsHeaderTree.children[0],i=t.children[0].children.length,o=n.children[0].children.length,r=this.widget.options.columnWidth,a=[];if(o&&this.dataSource.data()[0])for(e=0;e<o;e++)a.push({autoWidth:!0});for(e=0;e<i;e++)a.push({autoWidth:!1,width:r});return a},_cells:function(e,t,n){for(var i,o,r,a,s,l=[],d=0,c=e.length;d<c;d++){for(o=[],r=e[d].children,i=r.length,a=0;a<i;a++)s=r[a],o.push({background:"#7a7a7a",color:"#fff",value:s.value,colSpan:s.attr.colSpan||1,rowSpan:s.attr.rowSpan||1});n&&n(o,d),l.push({cells:o,type:t})}return l},_rows:function(){var e,t,n=this.widget.columnsHeaderTree.children[0],i=this.widget.rowsHeaderTree.children[0],o=n.children[0].children.length,r=i.children[0].children.length,a=n.children[1].children,s=i.children[1].children,l=this.widget.contentTree.children[0].children[1].children,d=this._cells(a,"header");return r&&d[0].cells.splice(0,0,{background:"#7a7a7a",color:"#fff",value:"",colSpan:r,rowSpan:a.length}),e=function(e,t){for(var n,i,r=0,a=l[t].children;r<o;r++)n=a[r],i=+n.value,isNaN(i)&&(i=n.value),e.push({background:"#dfdfdf",color:"#333",value:i,colSpan:1,rowSpan:1})},t=this._cells(s,"data",e),d.concat(t)},_freezePane:function(){var e=this.widget.columnsHeaderTree.children[0],t=this.widget.rowsHeaderTree.children[0],n=t.children[0].children.length,i=e.children[1].children;return{colSplit:n,rowSplit:i.length}},workbook:function(){var t;return this.dataSource.view()[0]?(t=e.Deferred(),t.resolve()):t=this.dataSource.fetch(),t.then(e.proxy(function(){return{sheets:[{columns:this._columns(),rows:this._rows(),freezePane:this._freezePane(),filter:null}]}},this))}}),me={extend:function(t){t.events.push("excelExport"),t.options.excel=e.extend(t.options.excel,this.options),t.saveAsExcel=this.saveAsExcel},options:{proxyURL:"",filterable:!1,fileName:"Export.xlsx"},saveAsExcel:function(){var t=this.options.excel||{},n=new ge.PivotExcelExporter({widget:this});n.workbook().then(e.proxy(function(e){if(!this.trigger("excelExport",{workbook:e})){var n=new ge.ooxml.Workbook(e);n.toDataURLAsync().then(function(n){ge.saveAs({dataURI:n,fileName:e.fileName||t.fileName,proxyURL:t.proxyURL,forceProxy:t.forceProxy})})}},this))}},ge.PivotExcelMixin=me,ge.ooxml&&ge.ooxml.Workbook&&me.extend(ae.prototype),ge.PDFMixin&&(ge.PDFMixin.extend(ae.prototype),ae.fn._drawPDF=function(){return this._drawPDFShadow({width:this.wrapper.width()},{avoidLinks:this.options.pdf.avoidLinks})})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pivot.fieldmenu.min",["kendo.pivotgrid.min","kendo.menu.min","kendo.window.min","kendo.treeview.min","kendo.dropdownlist.min"],e)}(function(){return function(e,t){function n(e,t){var n,i,o=[];for(n=0,i=e.length;n<i;n++)e[n].field!==t&&o.push(e[n]);return o}function i(e,t,n){var i,o,r,a;if(!e)return[];for(e=e.filters,i=0,o=[],r=e.length;i<r;i++)a=e[i].operator,(n||"in"===a)&&a!==n||e[i].field!==t||o.push(e[i]);return o}function o(t,n,o){var r,a=0,s=o.length;if(t=i(t,n,"in")[0])for(r=t.value.split(",");a<s;a++)o[a].checked=e.inArray(o[a].uniqueName,r)>=0;else for(;a<s;a++)o[a].checked=!0}function r(e,t){var n,i=e.length;for(n=0;n<i;n++)e[n].checked&&0!==e[n].level()&&t.push(e[n].uniqueName),e[n].hasChildren&&r(e[n].children.view(),t)}var a=window.kendo,s=a.ui,l="kendoContextMenu",d=e.proxy,c=".kendoPivotFieldMenu",u=s.Widget,h="k-filter-item",p="aria-label",f=u.extend({init:function(e,t){u.fn.init.call(this,e,t),this._dataSource(),this._layout(),a.notify(this)},events:[],options:{name:"PivotFieldMenu",filter:null,filterable:!0,sortable:!0,messages:{info:"Show items with value that:",sortAscending:"Sort Ascending",sortDescending:"Sort Descending",filterFields:"Fields Filter",filter:"Filter",include:"Include Fields...",title:"Fields to include",clear:"Clear",ok:"OK",cancel:"Cancel",operators:{contains:"Contains",doesnotcontain:"Does not contain",startswith:"Starts with",endswith:"Ends with",eq:"Is equal to",neq:"Is not equal to"}}},_layout:function(){var t=this.options;this.wrapper=e(a.template(g)({ns:a.ns,filterable:t.filterable,sortable:t.sortable,messages:t.messages})),this.menu=this.wrapper[l]({filter:t.filter,target:this.element,orientation:"vertical",showOn:"click",closeOnClick:!1,open:d(this._menuOpen,this),select:d(this._select,this),copyAnchorStyles:!1}).data(l),this._createWindow(),t.filterable&&this._initFilterForm()},_initFilterForm:function(){var e=this.menu.element.find("."+h),t=d(this._filter,this);this._filterOperator=new a.ui.DropDownList(e.find("select")),this._filterValue=e.find(".k-textbox"),this._updateFilterAriaLabel(),e.on("submit"+c,t).on("click"+c,".k-button-filter",t).on("click"+c,".k-button-clear",d(this._reset,this))},_setFilterForm:function(e){var t=this._filterOperator,n="",i="";e&&(n=e.operator,i=e.value),t.value(n),t.value()||t.select(0),this._filterValue.val(i)},_clearFilters:function(e){var t,n,o=this.dataSource.filter()||{},r=0;for(o.filters=o.filters||[],t=i(o,e),n=t.length;r<n;r++)o.filters.splice(o.filters.indexOf(t[r]),1);return o},_convert:function(t){
var n=this.dataSource.options.schema,i=((n.model||{}).fields||{})[this.currentMember];return i&&("number"===i.type?t=parseFloat(t):"boolean"===i.type&&(t=!!e.parseJSON(t))),t},_filter:function(e){var n,i,o=this,r=o._convert(o._filterValue.val());return e.preventDefault(),""===r?(o.menu.close(),t):(n={field:o.currentMember,operator:o._filterOperator.value(),value:r},i=o._clearFilters(o.currentMember),i.filters.push(n),o.dataSource.filter(i),o.menu.close(),t)},_updateFilterAriaLabel:function(){var e=this.menu.element.find("."+h),t=this._filterOperator.value(),n=this.options.messages.operators[t];e.find("select").attr(p,n)},_reset:function(e){var t=this,n=t._clearFilters(t.currentMember);e.preventDefault(),n.filters[0]||(n={}),t.dataSource.filter(n),t._setFilterForm(null),t.menu.close()},_sort:function(e){var t=this.currentMember,i=this.dataSource.sort()||[];i=n(i,t),i.push({field:t,dir:e}),this.dataSource.sort(i),this.menu.close()},setDataSource:function(e){this.options.dataSource=e,this._dataSource()},_dataSource:function(){this.dataSource=a.data.PivotDataSource.create(this.options.dataSource)},_createWindow:function(){var t=this.options.messages;this.includeWindow=e(a.template(v)({messages:t})).on("click"+c,".k-button-ok",d(this._applyIncludes,this)).on("click"+c,".k-button-cancel",d(this._closeWindow,this)),this.includeWindow=new s.Window(this.includeWindow,{title:t.title,visible:!1,resizable:!1,open:d(this._windowOpen,this)})},_applyIncludes:function(e){var t,n=[],o=this.treeView.dataSource.view(),a=o[0].checked,s=this.dataSource.filter(),l=i(s,this.currentMember,"in")[0];r(o,n),l&&(a?(s.filters.splice(s.filters.indexOf(l),1),s.filters.length||(s={})):l.value=n.join(","),t=s),n.length&&(t||a||(t={field:this.currentMember,operator:"in",value:n.join(",")},s&&(s.filters.push(t),t=s))),t&&this.dataSource.filter(t),this._closeWindow(e)},_closeWindow:function(e){e.preventDefault(),this.includeWindow.close()},_treeViewDataSource:function(){var e=this;return a.data.HierarchicalDataSource.create({schema:{model:{id:"uniqueName",hasChildren:function(e){return parseInt(e.childrenCardinality,10)>0}}},transport:{read:function(t){var n={},i=e.treeView.dataSource.get(t.data.uniqueName),r=t.data.uniqueName;r?(n.memberUniqueName=i.uniqueName.replace(/\&/g,"&amp;"),n.treeOp=1):n.levelUniqueName=e.currentMember+".[(ALL)]",e.dataSource.schemaMembers(n).done(function(n){o(e.dataSource.filter(),e.currentMember,n),t.success(n)}).fail(t.error)}}})},_createTreeView:function(e){var t=this;t.treeView=new s.TreeView(e,{autoBind:!1,dataSource:t._treeViewDataSource(),dataTextField:"caption",template:"#: data.item.caption || data.item.name #",checkboxes:{checkChildren:!0},dataBound:function(){s.progress(t.includeWindow.element,!1)}})},_menuOpen:function(t){if(t.event){var n=a.attr("name");this.currentMember=e(t.event.target).closest("["+n+"]").attr(n),this.options.filterable&&this._setFilterForm(i(this.dataSource.filter(),this.currentMember)[0])}},_select:function(t){var n=e(t.item);e(".k-pivot-filter-window").not(this.includeWindow.element).kendoWindow("close"),n.hasClass("k-include-item")?this.includeWindow.center().open():n.hasClass("k-sort-asc")?this._sort("asc"):n.hasClass("k-sort-desc")?this._sort("desc"):n.hasClass(h)&&this._updateFilterAriaLabel()},_windowOpen:function(){this.treeView||this._createTreeView(this.includeWindow.element.find(".k-treeview")),s.progress(this.includeWindow.element,!0),this.treeView.dataSource.read()},destroy:function(){u.fn.destroy.call(this),this.menu&&(this.menu.destroy(),this.menu=null),this.treeView&&(this.treeView.destroy(),this.treeView=null),this.includeWindow&&(this.includeWindow.destroy(),this.includeWindow=null),this.wrapper=null,this.element=null}}),m='<div class="k-filterable k-content" tabindex="-1" data-role="fieldmenu"><form class="k-filter-menu"><div class="k-filter-menu-container"><div class="k-filter-help-text">#=messages.info#</div><select>#for(var op in messages.operators){#<option value="#=op#">#=messages.operators[op]#</option>#}#</select><input class="k-textbox" type="text" '+p+'="#=messages.filter#" title="#=messages.filter#" /><div class="k-action-buttons"><a class="k-button k-primary k-button-filter" href="\\#">#=messages.filter#</a><a class="k-button k-button-clear" href="\\#">#=messages.clear#</a></div></div></form></div>',g='<ul class="k-pivot-fieldmenu"># if (sortable) {#<li class="k-item k-menu-item k-sort-asc"><span class="k-link k-menu-link"><span class="k-icon k-i-sort-asc-sm"></span>${messages.sortAscending}</span></li><li class="k-item k-menu-item k-sort-desc"><span class="k-link k-menu-link"><span class="k-icon k-i-sort-desc-sm"></span>${messages.sortDescending}</span></li># if (filterable) {#<li class="k-separator"></li># } ## } ## if (filterable) {#<li class="k-item k-menu-item k-include-item"><span class="k-link k-menu-link"><span class="k-icon k-i-filter"></span>${messages.include}</span></li><li class="k-separator"></li><li class="k-item k-menu-item '+h+'"><span class="k-link k-menu-link"><span class="k-icon k-i-filter"></span>${messages.filterFields}</span><ul><li>'+m+"</li></ul></li># } #</ul>",v='<div class="k-popup-edit-form k-pivot-filter-window"><div class="k-edit-form-container"><div class="k-treeview"></div><div class="k-edit-buttons k-state-default"><a class="k-button k-primary k-button-ok" href="\\#">${messages.ok}</a><a class="k-button k-button-cancel" href="\\#">${messages.cancel}</a></div></div>';s.plugin(f)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.filter.min",["kendo.core.min","kendo.buttongroup.min"],e)}(function(){var e={number:"<input type='text' title='#=field#' data-#=ns#role='numerictextbox' data-#=ns#bind='value: value'/>",string:"<input type='text' title='#=field#' class='k-textbox' data-#=ns#bind='value: value'/>","boolean":"<input class='k-checkbox' data-role='checkbox' data-#=ns#bind='checked: value' type='checkbox'>",date:"<input type='text' title='#=field#' data-#=ns#role='datepicker' data-#=ns#bind='value: value'/>"},t="<select data-#=ns#bind='value: operator' title='#=operatorsLabel#' data-#=ns#role='dropdownlist'>#for(var op in operators){#<option value='#=op#'>#=operators[op].text || operators[op]#</option>#}#</select>",n="<div data-#=ns#bind='value: logic' data-#=ns#role='filterbuttongroup'>#for(var op in operators){#<span value='#=op#'>#=operators[op]#</span>#}#</div>",i="<ul class='k-filter-container'><li class='k-filter-group-main'></li></ul>",o="<div class='k-filter-toolbar'><div class='k-toolbar' id='#=uid#'><div class='k-filter-toolbar-item'>"+n+"</div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button k-button-icon' role='button' aria-disabled='false' title='#=addExpression#' aria-label='#=addExpression#' tabindex='0'><span class='k-icon k-i-filter-add-expression'></span></button></div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button k-button-icon' role='button' aria-disabled='false' title='#=addGroup#' aria-label='#=addGroup#' tabindex='0'><span class='k-icon k-i-filter-add-group'></span></button></div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button-flat k-button k-button-icon' role='button' title='#=close#' aria-label='#=close#' aria-disabled='false' tabindex='0'><span class='k-icon k-i-close'></span></button></div></div></div>",r="<li class='k-filter-item'><div class='k-filter-toolbar'><div class='k-toolbar'><div class='k-filter-toolbar-item'>"+n+"</div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button k-button-icon' role='button' title='#=addExpression#' aria-label='#=addExpression#' aria-disabled='false' tabindex='0'><span class='k-icon k-i-filter-add-expression'></span></button></div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button k-button-icon' role='button' title='#=addGroup#' aria-label='#=addGroup#' aria-disabled='false' tabindex='0'><span class='k-icon k-i-filter-add-group'></span></button></div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button-flat k-button k-button-icon' role='button' title='#=close#' aria-label='#=close#' aria-disabled='false' tabindex='0'><span class='k-icon k-i-close'></span></button></div></div></div></li>",a="<li class='k-filter-item'><div class='k-filter-toolbar'><div class='k-toolbar' id='#=uid#'><div class='k-filter-toolbar-item k-filter-field'><select data-#=ns#bind='value: field' title='#=fieldsLabel#' class='k-filter-dropdown' data-auto-width='true' data-#=ns#role='dropdownlist'>#for(var current in fields){#<option value='#=fields[current].name#'>#=fields[current].label#</option>#}#</select></div><div class='k-filter-toolbar-item k-filter-operator'></div><div class='k-filter-toolbar-item k-filter-value'></div><div class='k-filter-toolbar-item'><button data-role='button' class='k-button-flat k-button k-button-icon' role='button' title='#=close#' aria-label='#=close#' aria-disabled='false' tabindex='0'><span class='k-icon k-i-close'></span></button></div></div></div></li>";return function(n){function s(e){var t,n;for(t in e)if(n=e[t],n.handler&&"function"==typeof n.handler||"object"==typeof n&&null!==n&&s(n))return!0;return!1}function l(e,t){var n,i;if(e.uid===t)return e;if(e.filters)for(n=0;n<e.filters.length;n++)if(i=l(e.filters[n],t))return i}var d=window.kendo,c=d.ui,u=c.Widget,h=c.ButtonGroup,p="change",f=".kendoFilter",m="Is equal to",g="Is not equal to",v=n.proxy,_=h.extend({init:function(e,t){var n=this;h.fn.init.call(n,e,t)},options:{name:"FilterButtonGroup"},value:function(e){return void 0===e?this._value:(this._value=e,h.fn.select.call(this,this.wrapper.find("[value='"+e+"']")[0]),void this.trigger(p))},select:function(e){e!==-1&&this.value(n(e).attr("value"))}}),b=u.extend({init:function(e,t){var i,o=this;u.fn.init.call(o,e,t),o.element=n(e).addClass("k-widget k-filter"),o.dataSource=t.dataSource,o.operators=n.extend(o.options.operators,t.operators),o._getFieldsInfo(),o._modelChangeHandler=v(o._modelChange,o),o._renderMain(),t.expression&&o._addExpressionTree(o.filterModel),o._renderApplyButton(),o.options.expressionPreview&&(o._previewContainer||(o._previewContainer=n('<div class="k-filter-preview"></div>').insertAfter(o.element.children().eq(0))),i=o._createPreview(o.filterModel.toJSON()),o._previewContainer.html(i)),o._attachEvents(),o.hasCustomOperators()},events:[p],options:{name:"Filter",dataSource:null,expression:null,applyButton:!1,fields:[],mainLogic:"and",messages:{and:"And",or:"Or",apply:"Apply",close:"Close",addExpression:"Add Expression",fields:"Fields",operators:"Operators",addGroup:"Add Group"},operators:{string:{eq:m,neq:g,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with",isnull:"Is null",isnotnull:"Is not null",isempty:"Is empty",isnotempty:"Is not empty",isnullorempty:"Has no value",isnotnullorempty:"Has value"},number:{eq:m,neq:g,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than",isnull:"Is null",isnotnull:"Is not null"},date:{eq:m,neq:g,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before",isnull:"Is null",isnotnull:"Is not null"},"boolean":{eq:m,neq:g}}},applyFilter:function(){var e=this.filterModel.toJSON();this._hasCustomOperators&&this._mapOperators(e),this._hasFieldsFilter(e.filters||[])?(this._removeEmptyGroups(e.filters),this.dataSource.filter(e)):this.dataSource.filter({})},destroy:function(){this.element.off(f),d.destroy(this.element.find(".k-filter-group-main")),this._previewContainer=null,this._applyButton=null,this._modelChangeHandler=null,u.fn.destroy.call(this)},setOptions:function(e){d.deepExtend(this.options,e),this.destroy(),this.element.empty(),this.init(this.element,this.options)},getOptions:function(){var e=n.extend(!0,{},this.options);return delete e.dataSource,e.expression=this.filterModel.toJSON(),e},_addExpressionTree:function(e){var t,n;if(e.filters)for(t=this.element.find("[id="+e.uid+"]"),n=0;n<e.filters.length;n++)e.filters[n].logic?this._addGroup(t,e.filters[n]):this._addExpression(t,e.filters[n]),e.filters[n].filters&&this._addExpressionTree(e.filters[n])},_attachEvents:function(){var e=this;e.element.on("click"+f,"button.k-button",function(t){var i,o,r;t.preventDefault(),i=n(t.currentTarget),o=i.find("span"),r=(o.length?o:i).attr("class").split("-").pop(),"close"==r?e._removeExpression(i.closest(".k-toolbar")):"expression"==r?e._addExpression(i.closest(".k-toolbar")):"group"==r?e._addGroup(i.closest(".k-toolbar")):"apply"==r&&e.applyFilter()})},_addExpression:function(e,t){var i,o=this,r=e.attr("id"),s=e.closest(".k-filter-toolbar").next("ul.k-filter-lines"),c=t?o._fields[t.field]:o._defaultField,u="";t?i=t:(i=l(o.filterModel,r),i.filters||i.set("filters",[]),i=o._addNewModel(i.filters,c)),s.length||(s=n("<ul class='k-filter-lines'></ul>").appendTo(e.closest("li"))),u=n(d.template(a)({fields:o._fields,operators:o.operators[c.type],close:o.options.messages.close,fieldsLabel:o.options.messages.fields,uid:i.uid,ns:d.ns})).appendTo(s),o._addExpressionControls(u.find(".k-toolbar"),c,i),t||o._expressionChange()},_addExpressionControls:function(e,t,n){var i=e.find(".k-filter-toolbar-item"),o=i.eq(1),r=i.eq(2);d.destroy(o),d.destroy(r),o.empty(),r.empty(),this._appendOperators(o,t),this._appendEditor(r,t),this._bindModel(e,n),this._showHideEditor(e,n)},_appendOperators:function(e,i){n(d.template(t)({operators:i.operators&&i.operators[i.type]?i.operators[i.type]:this.operators[i.type],operatorsLabel:this.options.messages.operators,ns:d.ns})).appendTo(e)},_appendEditor:function(e,t){d.isFunction(t.editor)?t.editor(e,n.extend(!0,{},{field:t.name})):n(d.template(t.editor)({ns:d.ns,field:t.name})).appendTo(e)},_addNewModel:function(e,t){var n,i,o=t.type,r=t.operators;return r||(r=this.options.operators),i=Object.keys(r[o])[0],e.push({field:t.name}),n=e[e.length-1],n.set("value",t.defaultValue),n.set("operator",i),n},_addGroup:function(e,t){var i,o=this,a=o.filterModel,s=e.attr("id"),c=e.closest(".k-filter-toolbar").next("ul.k-filter-lines");t?a=t:(a=l(a,s),a.filters||a.set("filters",[]),a.filters.push({logic:o.options.mainLogic}),a=a.filters[a.filters.length-1]),c.length||(c=n("<ul class='k-filter-lines'></ul>").appendTo(e.closest("li"))),i=n(d.template(r)({operators:{and:o.options.messages.and,or:o.options.messages.or},addExpression:o.options.messages.addExpression,addGroup:o.options.messages.addGroup,close:o.options.messages.close,ns:d.ns})).appendTo(c),o._bindModel(i.find(".k-toolbar"),a),t||o._expressionChange()},_bindModel:function(e,t){e.attr("id",t.uid),t.bind("change",this._modelChangeHandler),d.bind(e,t),e.parent().attr(d.attr("stop"),!0)},_createPreview:function(e){var t,n,i,o="",r=!1,a=this._hasFieldsFilter(e.filters||[]),s="";if(!e.filters||!e.filters.length||!a)return"";for(o+='<span class="k-filter-preview-bracket">(</span>',i=0;i<e.filters.length;i++)t=e.filters[i],t.filters&&(s=this._createPreview(t),s&&(r&&(o+='<span class="k-filter-preview-operator"> '+e.logic.toLocaleUpperCase()+" </span>"),r=!0),o+=s),t.field&&(n=this._fields[t.field],r&&(o+='<span class="k-filter-preview-operator"> '+e.logic.toLocaleUpperCase()+" </span>"),r=!0,o+='<span class="k-filter-preview-field">'+n.label+"</span>",o+='<span class="k-filter-preview-criteria"> '+this._getOperatorText(t.field,t.operator),t.operator.indexOf("is")<0?(o+=" </span>",o+="<span class='k-filter-preview-value'>'"+d.htmlEncode(n.previewFormat?d.toString(t.value,n.previewFormat):t.value)+"'</span>"):o+="</span>");return o+='<span class="k-filter-preview-bracket">)</span>'},_expressionChange:function(){var e=this,t=e.filterModel.toJSON(),n="";e.options.expressionPreview&&(n=e._createPreview(t),e._previewContainer.html(n)),e.trigger(p,{expression:t})},_getOperatorText:function(e,t){var n=this._fields[e].type,i=this._fields[e].operators;return i||(i=this.options.operators),i[n][t].text||i[n][t]},_getFieldsInfo:function(){var t,i,o=this,r=o.options.fields.length?o.options.fields:(o.options.dataSource.options.schema.model||{}).fields;o._fields={};for(i in r)t=r[i],t=n.extend(!0,{},{name:t.name||i,editor:t.editorTemplate||e[t.type||"string"],defaultValue:t.defaultValue||t.defaultValue===!1||0===t.defaultValue?t.defaultValue:"",type:t.type||"string",label:t.label||t.name||i,operators:t.operators,previewFormat:t.previewFormat}),o._fields[t.name]=t,o._defaultField||(o._defaultField=t)},_hasFieldsFilter:function(e,t){t=!!t;for(var n=0;n<e.length;n++)if(e[n].filters&&(t=this._hasFieldsFilter(e[n].filters,t)),e[n].field)return!0;return t},_removeEmptyGroups:function(e){if(e)for(var t=e.length-1;t>=0;t--)e[t].logic&&!e[t].filters||e[t].filters&&!this._hasFieldsFilter(e[t].filters)?e.splice(t,1):e[t].filters&&this._removeEmptyGroups(e[t].filters)},_modelChange:function(e){var t,n,i,o,r=this,a=r.element.find("[id="+e.sender.uid+"]");return r._showHideEditor(a,e.sender),"field"!==e.field?void("filters"!==e.field&&r._expressionChange()):(t=e.sender.field,n=e.sender.parent(),i=r._fields[t],o=r._addNewModel(n,i),e.sender.unbind("change",r._modelChangeHandler),n.remove(e.sender),r._addExpressionControls(a,i,o),void r._expressionChange())},_renderMain:function(){var e=this;n(i).appendTo(e.element),e.filterModel=d.observable(e.options.expression?e.options.expression:{logic:e.options.mainLogic}),n(d.template(o)({operators:{and:e.options.messages.and,or:e.options.messages.or},addExpression:e.options.messages.addExpression,addGroup:e.options.messages.addGroup,close:e.options.messages.close,uid:e.filterModel.uid,ns:d.ns})).appendTo(e.element.find("li:first")),e._bindModel(e.element.find(".k-toolbar:first"),e.filterModel)},_removeExpression:function(e){var t,n,i=this,o=e.attr("id"),r=e.closest("li"),a=r.hasClass("k-filter-group-main");a?(r=r.find(".k-filter-lines"),i.filterModel.filters&&(i.filterModel.filters.empty(),delete i.filterModel.filters)):(n=l(i.filterModel,o),t=n.parent(),n.unbind("change",i._modelChangeHandler),t.remove(n),t.length||delete t.parent().filters,r.siblings().length||(r=r.parent())),d.destroy(r),r.remove(),i._expressionChange()},_renderApplyButton:function(){var e=this;e.options.applyButton&&(e._applyButton||(e._applyButton=n(d.format('<button type="button" aria-label="{0}" title="{0}" class="k-button k-filter-apply">{0}</button>',e.options.messages.apply)).appendTo(e.element)))},_showHideEditor:function(e,t){var n,i;t.logic||(n=t.operator,i=e.find(".k-filter-toolbar-item:eq(2)"),"isnull"==n||"isnotnull"==n||"isempty"==n||"isnotempty"==n||"isnullorempty"==n||"isnotnullorempty"==n?i.hide():i.show())},_mapOperators:function(e){var t=this;e.filters&&e.filters.forEach(function(e){var n,i,o;e.filters?t._mapOperators(e):(i=t._fields[e.field],o=i.type,n=i.operators&&i.operators[o][e.operator]?i.operators[o][e.operator]:t.operators[o][e.operator],n&&(e.operator=n.handler||e.operator))})},hasCustomOperators:function(){var e,t=n.extend(!0,{},this.operators);for(e in this._fields)t=n.extend(!0,{},t,this._fields[e].operators);this._hasCustomOperators=s(t)}});c.plugin(b),c.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.filtercell.min",["kendo.autocomplete.min","kendo.datepicker.min","kendo.numerictextbox.min","kendo.combobox.min","kendo.dropdownlist.min"],e)}(function(){return function(e,t){function n(t){var n="string"==typeof t?t:t.operator;return e.inArray(n,v)>-1}function i(t,n){var o,r,a=[];if(e.isPlainObject(t))if(t.hasOwnProperty("filters"))a=t.filters;else if(t.field==n)return t;for(e.isArray(t)&&(a=t),o=0;o<a.length;o++)if(r=i(a[o],n))return r}function o(t,n){t.filters&&(t.filters=e.grep(t.filters,function(e){return o(e,n),e.filters?e.filters.length:e.field!=n}))}function r(e,t){var n=a.getter(t,!0);return function(t){for(var i,o,r=e(t),a=[],s=0,l={};s<r.length;)i=r[s++],o=n(i),l.hasOwnProperty(o)||(a.push(i),l[o]=!0);return a}}var a=window.kendo,s=a.ui,l=a.data.DataSource,d=s.Widget,c="change",u="boolean",h="enums",p="string",f="Is equal to",m="Is not equal to",g=e.proxy,v=["isnull","isnotnull","isempty","isnotempty","isnullorempty","isnotnullorempty"],_=d.extend({init:function(i,o){var r,s,l,f,m,v,_,b,w,k,y,x,C;if(i=e(i).addClass("k-filtercell"),r=this.wrapper=e("<span/>").appendTo(i),s=this,m=o,b=s.operators=o.operators||{},w=s.input=e("<input/>").attr(a.attr("bind"),"value: value").appendTo(r),k=o?o.suggestDataSource:null,k&&(o=e.extend({},o,{suggestDataSource:{}})),d.fn.init.call(s,i[0],o),k&&(s.options.suggestDataSource=k),o=s.options,l=s.dataSource=o.dataSource,s.model=l.reader.model,_=o.type=p,y=a.getter("reader.model.fields",!0)(l)||{},x=y[o.field],x&&x.type&&(_=o.type=x.type),o.values&&(o.type=_=h),b=b[_]||o.operators[_],!m.operator)for(v in b){o.operator=v;break}s._parse=function(e){return null!=e?e+"":e},s.model&&s.model.fields&&(C=s.model.fields[o.field],C&&C.parse&&(s._parse=g(C.parse,C))),s.defaultOperator=o.operator,s.viewModel=f=a.observable({operator:o.operator,value:null,operatorVisible:function(){var e=this.get("value");return null!==e&&e!==t&&"undefined"!=e||n(this.get("operator"))&&!s._clearInProgress}}),f.bind(c,g(s.updateDsFilter,s)),_==p&&s.initSuggestDataSource(o),null!==o.inputWidth&&(w.addClass("k-sized-input"),w.width(o.inputWidth)),w.attr("aria-label",s._getColumnTitle()),w.attr("title",s._getColumnTitle()),s._setInputType(o,_),_!=u&&o.showOperators!==!1?s._createOperatorDropDown(b):(e('<div unselectable="on" />').css("display","none").text("eq").appendTo(r),r.addClass("k-operator-hidden")),s._createClearIcon(),a.bind(this.wrapper,f),_==p&&(o.template||s.setAutoCompleteSource()),_==h&&s.setComboBoxSource(s.options.values),s._refreshUI(),s._refreshHandler=g(s._refreshUI,s),s.dataSource.bind(c,s._refreshHandler)},_setInputType:function(t,n){var i,o,r,s,l,d=this,c=d.input;"function"==typeof t.template?(t.template.call(d.viewModel,{element:d.input,dataSource:d.suggestDataSource}),d._angularItems("compile")):n==p?c.attr(a.attr("role"),"autocomplete").attr(a.attr("text-field"),t.dataTextField||t.field).attr(a.attr("filter"),t.suggestionOperator).attr(a.attr("delay"),t.delay).attr(a.attr("min-length"),t.minLength).attr(a.attr("value-primitive"),!0):"date"==n?c.attr(a.attr("role"),"datepicker"):n==u?(c.remove(),i=e("<input type='radio'/>"),o=d.wrapper,r=a.guid(),s=e("<label/>").text(t.messages.isTrue).append(i),i.attr(a.attr("bind"),"checked:value").attr("name",r).val("true"),l=s.clone().text(t.messages.isFalse),i.clone().val("false").appendTo(l),o.append([s,l])):"number"==n?c.attr(a.attr("role"),"numerictextbox").attr("title",d._getColumnTitle()):n==h&&c.attr(a.attr("role"),"combobox").attr(a.attr("text-field"),"text").attr(a.attr("suggest"),!0).attr(a.attr("filter"),"contains").attr(a.attr("value-field"),"value").attr(a.attr("value-primitive"),!0)},_getColumnTitle:function(){var e=this.options.column;return e?e.title||e.field:""},_createOperatorDropDown:function(t){var n,i,o=[],r=this.viewModel;for(n in t)o.push({text:t[n],value:n});i=e('<input class="k-dropdown-operator" '+a.attr("bind")+'="value: operator"/>').appendTo(this.wrapper),this.operatorDropDown=i.kendoDropDownList({dataSource:o,dataTextField:"text",dataValueField:"value",open:function(){this.popup.element.width(150)},valuePrimitive:!0}).data("kendoDropDownList"),r.bind("change",function(){var e=t[r.operator];i.attr("aria-label",e)}),this.operatorDropDown.wrapper.find(".k-i-arrow-60-down").removeClass("k-i-arrow-60-down").addClass("k-i-filter")},initSuggestDataSource:function(e){var n=e.suggestDataSource;n instanceof l||(!e.customDataSource&&n&&(n.group=t),n=this.suggestDataSource=l.create(n)),e.customDataSource||(n._pageSize=t,n.reader.data=r(n.reader.data,this.options.field)),this.suggestDataSource=n},setAutoCompleteSource:function(){var e=this.input.data("kendoAutoComplete");e&&e.setDataSource(this.suggestDataSource)},setComboBoxSource:function(e){var t=l.create({data:e}),n=this.input.data("kendoComboBox");n&&!this.options.template&&n.setDataSource(t)},_refreshUI:function(){var t=this,n=i(t.dataSource.filter(),this.options.field)||{},o=t.viewModel;t.manuallyUpdatingVM=!0,n=e.extend(!0,{},n),t.options.type==u&&o.value!==n.value&&t.wrapper.find(":radio").prop("checked",!1),n.operator&&o.set("operator",n.operator),o.set("value",n.value),t.manuallyUpdatingVM=!1},updateDsFilter:function(i){var o,r,a,s,l=this,d=l.viewModel;l.manuallyUpdatingVM||"operator"==i.field&&d.value===t&&!n(d)||"operator"==i.field&&l._clearInProgress&&null!==d.value||(o=e.extend({},l.viewModel.toJSON(),{field:l.options.field}),r={logic:"and",filters:[]},a=!1,(o.value!==t&&null!==o.value||n(o)&&!this._clearInProgress)&&(r.filters.push(o),a=l.trigger(c,{filter:r,field:l.options.field})),(l._clearInProgress||null===o.value)&&(a=l.trigger(c,{filter:null,field:l.options.field})),a||(s=l._merge(r),l.dataSource.filter(s.filters.length?s:{})))},_merge:function(t){var i,r,a,s=this,l=t.logic||"and",d=t.filters,c=s.dataSource.filter()||{filters:[],logic:"and"};for(o(c,s.options.field),r=0,a=d.length;r<a;r++)i=d[r],i.value=s._parse(i.value);return d=e.grep(d,function(e){return""!==e.value&&null!==e.value||n(e)}),d.length&&(c.filters.length?(t.filters=d,"and"!==c.logic&&(c.filters=[{logic:c.logic,filters:c.filters}],c.logic="and"),c.filters.push(d.length>1?t:d[0])):(c.filters=d,c.logic=l)),c},_createClearIcon:function(){var t=this;e("<button type='button' class='k-button k-button-icon' title = "+t.options.messages.clear+"/>").attr("aria-label",t.options.messages.clear).attr(a.attr("bind"),"visible:operatorVisible").html("<span class='k-icon k-i-filter-clear'></span>").click(g(t.clearFilter,t)).appendTo(t.wrapper)},clearFilter:function(){this._clearInProgress=!0,n(this.viewModel.operator)&&this.viewModel.set("operator",this.defaultOperator),this.viewModel.set("value",null),this._clearInProgress=!1},_angularItems:function(e){var t=this.wrapper.closest("th").get(),n=this.options.column;this.angular(e,function(){return{elements:t,data:[{column:n}]}})},destroy:function(){var e=this;e.filterModel=null,e.operatorDropDown=null,e._angularItems("cleanup"),e._refreshHandler&&(e.dataSource.bind(c,e._refreshHandler),e._refreshHandler=null),a.unbind(e.element),d.fn.destroy.call(e),a.destroy(e.element)},events:[c],options:{name:"FilterCell",delay:200,minLength:1,inputWidth:null,values:t,customDataSource:!1,field:"",dataTextField:"",type:"string",suggestDataSource:null,suggestionOperator:"startswith",operator:"eq",showOperators:!0,template:null,messages:{isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear",operator:"Operator"},operators:{string:{eq:f,neq:m,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with",isnull:"Is null",isnotnull:"Is not null",isempty:"Is empty",isnotempty:"Is not empty",isnullorempty:"Has no value",isnotnullorempty:"Has value"},number:{eq:f,neq:m,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than",isnull:"Is null",isnotnull:"Is not null"},date:{eq:f,neq:m,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before",isnull:"Is null",isnotnull:"Is not null"},enums:{eq:f,neq:m,isnull:"Is null",isnotnull:"Is not null"}}}});s.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.panelbar.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(T),t.filter(".k-last:not(:last-child)").removeClass(_),t.filter(":first-child").addClass(T),t.filter(":last-child").addClass(_)}function i(t){var n=t,i=t.children("ul"),o=n.children(".k-link").children(".k-icon");t.hasClass("k-panelbar")||(!o.length&&i.length?o=e("<span class='k-icon' />").appendTo(n):i.length&&i.children().length||(o.remove(),i.remove()))}var o=window.kendo,r=o.ui,a=o.keys,s=e.extend,l=e.proxy,d=e.each,c=e.isArray,u=o.template,h=r.Widget,p=o.data.HierarchicalDataSource,f=/^(ul|a|div)$/i,m=".kendoPanelBar",g="img",v="href",_="k-last",b="k-link",w="."+b,k="error",y=".k-item",x=".k-group",C=x+":visible",S="k-image",T="k-first",D="change",A="expand",E="select",I="click",M="k-content",R="activate",F="collapse",P="dataBound",z="mouseenter",B="mouseleave",L="contentLoad",H="undefined",N="k-state-active",O="> .k-panel",V="> .k-content",W="string",U="k-state-focused",j="k-state-disabled",q="k-state-selected",G="."+q,$="k-state-highlight",K=y+":not(.k-state-disabled)",Y="> "+K+" > "+w+", .k-panel > "+K+" > "+w,Q=y+".k-state-disabled > .k-link",X="> li > "+G+", .k-panel > li > "+G,Z="k-state-default",J="aria-disabled",ee="aria-expanded",te="aria-hidden",ne="aria-selected",ie=":visible",oe=":empty",re="single",ae={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},se={aria:function(e){var t="";return(e.items||e.content||e.contentUrl||e.expanded)&&(t+=ee+"='"+(e.expanded?"true":"false")+"' "),e.enabled===!1&&(t+=J+"='true'"),t},wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" "+j:t.expanded===!0?" "+N:" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),n},textClass:function(e,t){var n=b;return t.firstLevel&&(n+=" k-header"),e.selected&&(n+=" "+q),n},textAttributes:function(e){return e?" href='"+e+"'":""},arrowClass:function(e){var t="k-icon";return t+=e.expanded?" k-panelbar-collapse k-i-arrow-60-up":" k-panelbar-expand k-i-arrow-60-down"},text:function(e){return e.encoded===!1?e.text:o.htmlEncode(e.text)},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},ariaHidden:function(e){return e.expanded!==!0},groupCssClass:function(){return"k-group k-panel"},contentAttributes:function(e){return e.item.expanded!==!0?" style='display:none'":""},content:function(e){return e.content?e.content:e.contentUrl?"":"&nbsp;"},contentUrl:function(e){return e.contentUrl?'href="'+e.contentUrl+'"':""}},le=function(e){return e.children("span").children(".k-icon")},de=o.ui.DataBoundWidget.extend({init:function(e,t){var n,i,r=this;c(t)&&(t={dataSource:t}),i=t&&!!t.dataSource,h.fn.init.call(r,e,t),e=r.wrapper=r.element.addClass("k-widget k-reset k-header k-panelbar"),t=r.options,e[0].id&&(r._itemId=e[0].id+"_pb_active"),r._tabindex(),r._accessors(),r._dataSource(),r._templates(),r._initData(i),r._updateClasses(),r._animations(t),e.on(I+m,Y,l(r._click,r)).on(z+m+" "+B+m,Y,r._toggleHover).on(I+m,Q,!1).on(I+m,".k-request-retry",l(r._retryRequest,r)).on("keydown"+m,l(r._keydown,r)).on("focus"+m,function(){var e=r.select();r._current(e[0]?e:r._first())}).on("blur"+m,function(){r._current(null)}).attr("role","tree"),n=e.find("li."+N+" > ."+M),n[0]&&r.expand(n.parent(),!1),t.dataSource||r._angularCompile(),o.notify(r)},events:[A,F,E,R,D,k,P,L],options:{name:"PanelBar",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:200}},messages:{loading:"Loading...",requestFailed:"Request failed.",retry:"Retry"},autoBind:!0,loadOnDemand:!0,expandMode:"multiple",template:"",dataTextField:null},_angularCompile:function(){var e=this;e.angular("compile",function(){return{elements:e.element.children("li"),data:[{dataItem:e.options.$angular}]}})},_angularCompileElements:function(t,n){var i=this;i.angular("compile",function(){return{elements:t,data:e.map(n,function(e){return[{dataItem:e}]})}})},_angularCleanup:function(){var e=this;e.angular("cleanup",function(){return{elements:e.element.children("li")}})},destroy:function(){h.fn.destroy.call(this),this.element.off(m),this._angularCleanup(),o.destroy(this.element)},_initData:function(e){var t=this;e&&(t.element.empty(),t.options.autoBind&&(t._progress(!0),t.dataSource.fetch()))},_templates:function(){var e=this,t=e.options,n=l(e._fieldAccessor,e);t.template&&typeof t.template==W?t.template=u(t.template):t.template||(t.template=u("# var text = "+n("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {##= text ## } else { ##: text ## } #")),
e.templates={content:u("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:u("<ul role='group' aria-hidden='#= ariaHidden(group) #' class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:u("# var url = "+n("url")+"(item); ## var imageUrl = "+n("imageUrl")+"(item); ## var spriteCssClass = "+n("spriteCssClass")+"(item); ## var contentUrl = contentUrl(item); ## var tag = url||contentUrl ? 'a' : 'span'; #<#= tag # class='#= textClass(item, group) #' #= contentUrl ##= textAttributes(url) #># if (imageUrl) { #<img class='k-image' alt='' src='#= imageUrl #' /># } ## if (spriteCssClass) { #<span class='k-sprite #= spriteCssClass #'></span># } ##= data.panelBar.options.template(data) ##= arrow(data) #</#= tag #>"),item:u("<li role='treeitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'"+o.attr("uid")+"='#= item.uid #'>#= itemWrapper(data) ## if (item.items && item.items.length > 0) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),loading:u("<div class='k-item'><span class='k-icon k-i-loading'></span> #: data.messages.loading #</div>"),retry:u("#: data.messages.requestFailed # <button class='k-button k-request-retry'>#: data.messages.retry #</button>"),arrow:u("<span class='#= arrowClass(item) #'></span>"),empty:u("")}},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=s(!0,t,e.animation),"dataSource"in e&&this.setDataSource(e.dataSource),h.fn.setOptions.call(this,e)},expand:function(n,i){var o=this,r={};return n=this.element.find(n),o._animating&&n.find("ul").is(":visible")?(o.one("complete",function(){setTimeout(function(){o.expand(n)})}),t):(o._animating=!0,i=i!==!1,n.each(function(t,a){var s,l;if(a=e(a),s=n.children(".k-group,.k-content"),s.length||(s=o._addGroupElement(n)),l=s.add(a.find(V)),!a.hasClass(j)&&l.length>0){if(o.options.expandMode==re&&o._collapseAllExpanded(a))return o;n.find("."+$).removeClass($),a.addClass($),i||(r=o.options.animation,o.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),o._triggerEvent(A,a)||o._toggleItem(a,!1,!1),i||(o.options.animation=r)}}),o)},collapse:function(t,n){var i=this,o={};return i._animating=!0,n=n!==!1,t=i.element.find(t),t.each(function(t,r){r=e(r);var a=r.find(O).add(r.find(V));!r.hasClass(j)&&a.is(ie)&&(r.removeClass($),n||(o=i.options.animation,i.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),i._triggerEvent(F,r)||i._toggleItem(r,!0),n||(i.options.animation=o))}),i},updateArrow:function(t){var n=this;t=e(t),t.children(w).children(".k-panelbar-collapse, .k-panelbar-expand").remove(),t.filter(function(){var t=n.dataItem(this);return t?t.hasChildren||t.content||t.contentUrl:e(this).find(".k-panel").length>0||e(this).find(".k-content").length>0}).children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent();t.append("<span class='k-icon "+(n.hasClass(N)?" k-panelbar-collapse k-i-arrow-60-up":" k-panelbar-expand k-i-arrow-60-down")+"'/>")})},_accessors:function(){var e,t,n,i=this,r=i.options,a=i.element;for(e in ae)t=r[ae[e]],n=a.attr(o.attr(e+"-field")),!t&&n&&(t=n),t||(t=e),c(t)||(t=[t]),r[ae[e]]=t},_progress:function(e,t){var n=this.element,i=this.templates.loading({messages:this.options.messages});1==arguments.length?(t=e,t?n.html(i):n.empty()):le(e).toggleClass("k-i-loading",t).removeClass("k-i-refresh")},_refreshRoot:function(t){var n,i,o,a=this,l=a.element,d={firstLevel:!0,expanded:!0,length:l.children().length};for(this.element.empty(),n=e.map(t,function(t,n){return"string"==typeof t?e(t):(t.items=[],e(a.renderItem({group:d,item:s(t,{index:n})})))}),this.element.append(n),i=this.element.children(".k-item"),o=0;o<t.length;o++)this.trigger("itemChange",{item:i.eq(o).find(".k-link").first(),data:t[o],ns:r});this._angularCompileElements(n,t)},_refreshChildren:function(e,t){var n,o,a,s;if(t.children(".k-group").empty(),s=e.children.data(),s.length)for(this.append(e.children,t),this.options.loadOnDemand&&this._toggleGroup(t.children(".k-group"),!1),o=t.children(".k-group").children("li"),n=0;n<o.length;n++)a=o.eq(n),this.trigger("itemChange",{item:a.find(".k-link").first(),data:this.dataItem(a),ns:r});else i(t),o=t.children(".k-group").children("li"),this._angularCompileElements(o,s)},findByUid:function(t){var n,i,r=this.element.find(".k-item"),a=o.attr("uid");for(i=0;i<r.length;i++)if(r[i].getAttribute(a)==t){n=r[i];break}return e(n)},refresh:function(e){var n,i,o=this.options,r=e.node,a=e.action,s=e.items,l=this.wrapper,d=o.loadOnDemand;if(e.field){if(!s[0]||!s[0].level)return;return this._updateItems(s,e.field)}if(r&&(l=this.findByUid(r.uid),this._progress(l,!1)),"add"==a?this._appendItems(e.index,s,l):"remove"==a?this.remove(this.findByUid(s[0].uid)):"itemchange"==a?this._updateItems(s):"itemloaded"==a?this._refreshChildren(r,l):this._refreshRoot(s),"remove"!=a)for(n=0;n<s.length;n++)d&&!s[n].expanded||(i=s[n],this._hasChildItems(i)&&i.load());this.trigger(P,{node:r?l:t})},_error:function(e){var t=e.node&&this.findByUid(e.node.uid),n=this.templates.retry({messages:this.options.messages});t?(this._progress(t,!1),this._expanded(t,!1),le(t).addClass("k-i-refresh"),e.node.loaded(!1)):(this._progress(!1),this.element.html(n))},_retryRequest:function(e){e.preventDefault(),this.dataSource.fetch()},items:function(){return this.element.find(".k-item > span:first-child")},setDataSource:function(e){var t=this.options;t.dataSource=e,this._dataSource(),this.options.autoBind&&(this._progress(!0),this.dataSource.fetch())},_bindDataSource:function(){this._refreshHandler=l(this.refresh,this),this._errorHandler=l(this._error,this),this.dataSource.bind(D,this._refreshHandler),this.dataSource.bind(k,this._errorHandler)},_unbindDataSource:function(){var e=this.dataSource;e&&(e.unbind(D,this._refreshHandler),e.unbind(k,this._errorHandler))},_fieldAccessor:function(t){var n=this.options[ae[t]]||[],i=n.length,r="(function(item) {";return 0===i?r+="return item['"+t+"'];":(r+="var levels = ["+e.map(n,function(e){return"function(d){ return "+o.expr(e)+"}"}).join(",")+"];",r+="if(item.level){return levels[Math.min(item.level(), "+i+"-1)](item);}else",r+="{return levels["+i+"-1](item)}"),r+="})"},_dataSource:function(){var e=this,t=e.options,n=t.dataSource;n&&(n=c(n)?{data:n}:n,e._unbindDataSource(),n.fields||(n.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),e.dataSource=p.create(n),e._bindDataSource())},_appendItems:function(t,n,i){var o,r,a,l,d,c=this;for(i.hasClass("k-panelbar")?(o=i.children("li"),r=i):(r=i.children(".k-group"),r.length||(r=c._addGroupElement(i)),o=r.children("li")),a={firstLevel:i.hasClass("k-panelbar"),expanded:!0,length:o.length},l=e.map(n,function(t,n){return e("string"==typeof t?t:c.renderItem({group:a,item:s(t,{index:n})}))}),typeof t==H&&(t=o.length),d=0;d<l.length;d++)0===o.length||0===t?r.append(l[d]):l[d].insertAfter(o[t-1]);c._angularCompileElements(l,n),c.dataItem(i)&&(c.dataItem(i).hasChildren=!0,c.updateArrow(i))},_updateItems:function(t,n){var i,o,a,l,d,c,u=this,h={panelBar:u.options,item:l,group:{}},p="expanded"!=n;if("selected"==n)t[0][n]?(d=u.findByUid(t[0].uid),d.hasClass(j)||u.select(d,!0)):u.clearSelection();else{for(c=e.map(t,function(e){return u.findByUid(e.uid)}),p&&u.angular("cleanup",function(){return{elements:c}}),i=0;i<t.length;i++)h.item=l=t[i],h.panelBar=u,a=c[i],o=a.parent(),p&&(h.group={firstLevel:o.hasClass("k-panelbar"),expanded:a.parent().hasClass(N),length:a.children().length},a.children(".k-link").remove(),a.prepend(u.templates.itemWrapper(s(h,{arrow:l.hasChildren||l.content||l.contentUrl?u.templates.arrow:u.templates.empty},se)))),"expanded"==n?u._toggleItem(a,!l[n],!l[n]||"true"):"enabled"==n&&(u.enable(a,l[n]),l[n]||l.selected&&l.set("selected",!1)),a.length&&this.trigger("itemChange",{item:a.find(".k-link").first(),data:l,ns:r});p&&u.angular("compile",function(){return{elements:c,data:e.map(t,function(e){return[{dataItem:e}]})}})}},_toggleDisabled:function(e,t){e=this.element.find(e),e.toggleClass(Z,t).toggleClass(j,!t).attr(J,!t)},dataItem:function(t){var n=e(t).closest(y).attr(o.attr("uid")),i=this.dataSource;return i&&i.getByUid(n)},select:function(n,i){var o=this;return n===t?o.element.find(X).parent():(n=o.element.find(n),n.length?n.each(function(){var n=e(this),r=n.children(w);return n.hasClass(j)?o:(o._updateSelected(r,i),t)}):this._updateSelected(n),o)},clearSelection:function(){this.select(e())},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(e,t){t=this.element.find(t);var i=this._insert(e,t,t.length?t.find(O):null);return d(i.items,function(){i.group.append(this),n(this)}),this.updateArrow(t),n(i.group.find(".k-first, .k-last")),i.group.height("auto"),this},insertBefore:function(e,t){t=this.element.find(t);var i=this._insert(e,t,t.parent());return d(i.items,function(){t.before(this),n(this)}),n(t),i.group.height("auto"),this},insertAfter:function(e,t){t=this.element.find(t);var i=this._insert(e,t,t.parent());return d(i.items,function(){t.after(this),n(this)}),n(t),i.group.height("auto"),this},remove:function(e){e=this.element.find(e);var t=this,i=e.parentsUntil(t.element,y),o=e.parent("ul");return e.remove(),!o||o.hasClass("k-panelbar")||o.children(y).length||o.remove(),i.length&&(i=i.eq(0),t.updateArrow(i),n(i)),t},reload:function(t){var n=this;t=n.element.find(t),t.each(function(){var t=e(this);n._ajaxRequest(t,t.children("."+M),!t.is(ie))})},_first:function(){return this.element.children(K).first()},_last:function(){var e=this.element.children(K).last(),t=e.children(C);return t[0]?t.children(K).last():e},_current:function(n){var i=this,o=i._focused,r=i._itemId;return n===t?o:(i.element.removeAttr("aria-activedescendant"),o&&o.length&&(o[0].id===r&&o.removeAttr("id"),o.children(w).removeClass(U)),e(n).length&&(r=n[0].id||r,n.attr("id",r).children(w).addClass(U),i.element.attr("aria-activedescendant",r)),i._focused=n,t)},_keydown:function(e){var t=this,n=e.keyCode,i=t._current();e.target==e.currentTarget&&(n==a.DOWN||n==a.RIGHT?(t._current(t._nextItem(i)),e.preventDefault()):n==a.UP||n==a.LEFT?(t._current(t._prevItem(i)),e.preventDefault()):n==a.ENTER||n==a.SPACEBAR?(t._click(e),e.preventDefault()):n==a.HOME?(t._current(t._first()),e.preventDefault()):n==a.END&&(t._current(t._last()),e.preventDefault()))},_nextItem:function(e){if(!e)return this._first();var t=e.children(C),n=e.nextAll(":visible").first();return t[0]&&(n=t.children("."+T)),n[0]||(n=e.parent(C).parent(y).next()),n[0]||(n=this._first()),n.hasClass(j)&&(n=this._nextItem(n)),n},_prevItem:function(e){if(!e)return this._last();var t,n=e.prevAll(":visible").first();if(n[0])for(t=n;t[0];)t=t.children(C).children("."+_),t[0]&&(n=t);else n=e.parent(C).parent(y),n[0]||(n=this._last());return n.hasClass(j)&&(n=this._prevItem(n)),n},_insert:function(t,n,i){var o,r,a,l=this,d=e.isPlainObject(t),c=n&&n[0];return c||(i=l.element),r={firstLevel:i.hasClass("k-panelbar"),expanded:e(n).hasClass(N),length:i.children().length},c&&!i.length&&(i=e(l.renderGroup({group:r,options:l.options})).appendTo(n)),d||e.isArray(t)||t instanceof p?(t instanceof p&&(t=t.data()),o=e.map(d?[t]:t,function(t,n){return e("string"==typeof t?t:l.renderItem({group:r,item:s(t,{index:n})}))}),c&&(a=l.dataItem(n),a?(a.hasChildren=!0,n.attr(ee,a.expanded).not("."+N).children("ul").attr(te,!a.expanded)):n.attr(ee,!1))):(o="string"==typeof t&&"<"!=t.charAt(0)?l.element.find(t):e(t),l._updateItemsClasses(o)),t.length||(t=[t]),l._angularCompileElements(o,t),{items:o,group:i}},_toggleHover:function(t){var n=e(t.currentTarget);n.parents("li."+j).length||n.toggleClass("k-state-hover",t.type==z)},_updateClasses:function(){var t,i,o,r,a,s=this;t=s.element.find("li > ul").not(function(){return e(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").attr("role","group"),r=t.parent(),a=s.dataItem(r),o=a&&a.expanded||!1,t.parent().attr(ee,o).not("."+N).children("ul").attr(te,!o).hide(),i=s.element.add(t).children(),s._updateItemsClasses(i),s.updateArrow(i),n(i)},_updateItemsClasses:function(e){for(var t=e.length,n=0;n<t;n++)this._updateItemClasses(e[n],n)},_updateItemClasses:function(t,n){var i,r,a=this._selected,s=this.options.contentUrls,l=s&&s[n],d=this.element[0];t=e(t).addClass("k-item").attr("role","treeitem"),o.support.browser.msie&&t.css("list-style-position","inside").css("list-style-position",""),t.children(g).addClass(S),r=t.children("a").addClass(b),r[0]&&(r.attr("href",l),r.children(g).addClass(S)),t.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),t.filter("li[disabled]").addClass("k-state-disabled").attr(J,!0).removeAttr("disabled"),t.children("div").addClass(M).attr(te,!0).hide().parent().attr(ee,!1),r=t.children(G),r[0]&&(a&&a.removeAttr(ne).children(G).removeClass(q),r.addClass(q),this._selected=t.attr(ne,!0)),t.children(w)[0]||(i="<span class='"+b+"'></span>",s&&s[n]&&t[0].parentNode==d&&(i='<a class="k-link k-header" href="'+s[n]+'"></a>'),t.contents().filter(function(){return!(this.nodeName.match(f)||3==this.nodeType&&!o.trim(this.nodeValue.trim))}).wrapAll(i)),t.parent(".k-panelbar")[0]&&t.children(w).addClass("k-header")},_click:function(n){var i,o,r,a,s,l,d,c,u,h=this,p=n.type==I?e(n.target):h._current().children(w),f=h.element;if(!p.parents("li."+j).length&&p.closest(".k-widget")[0]==f[0]&&(!p.is(":kendoFocusable")||p.hasClass(b))){if(s=p.closest(w),l=s.closest(y),h._updateSelected(s),d=l.children(".k-group,.k-content"),c=this.dataItem(l),!d.length&&(h.options.loadOnDemand&&c&&c.hasChildren||this._hasChildItems(l)||l.content||l.contentUrl)&&(d=h._addGroupElement(l)),o=l.find(O).add(l.find(V)),r=s.attr(v),a=r&&("#"==r.charAt(r.length-1)||r.indexOf("#"+h.element[0].id+"-")!=-1),i=!(!a&&!o.length),o.data("animating")&&i)return n.preventDefault(),t;if(h._triggerEvent(E,l)&&(i=!0),i!==!1){if(h.options.expandMode==re&&h._collapseAllExpanded(l)&&i)return n.preventDefault(),t;o.length&&(u=o.is(ie),h._triggerEvent(u?F:A,l)||(i=h._toggleItem(l,u))),i&&n.preventDefault()}}},_hasChildItems:function(e){return e.items&&e.items.length>0||e.hasChildren},_toggleItem:function(e,n,i){var o,r,a=this,s=e.find(O),l=e.find(w),d=l.attr(v),c=a.dataItem(e),u=!n,h=c&&c.loaded();return c&&!i&&c.expanded!==u?(c.set("expanded",u),o=c.hasChildren||!!c.content||!!c.contentUrl):(!c||i&&"true"!==i||h||c.content||c.contentUrl?s.length?(this._toggleGroup(s,n),o=!0):(r=e.children("."+M),r.length&&(o=!0,r.is(oe)&&d!==t?a._ajaxRequest(e,r,n):a._toggleGroup(r,n))):(a.options.loadOnDemand&&this._progress(e,!0),e.children(".k-group,.k-content").remove(),o=c.hasChildren,c.load()),o)},_toggleGroup:function(e,n){var i=this,o=i.options.animation,r=o.expand,a=o.collapse&&"effects"in o.collapse,l=s({},o.expand,o.collapse);return a||(l=s(l,{reverse:!0})),e.is(ie)!=n?(i._animating=!1,t):(e.attr(te,!!n),e.parent().attr(ee,!n).toggleClass(N,!n).find("> .k-link > .k-panelbar-collapse,> .k-link > .k-panelbar-expand").toggleClass("k-i-arrow-60-up",!n).toggleClass("k-panelbar-collapse",!n).toggleClass("k-i-arrow-60-down",n).toggleClass("k-panelbar-expand",n),n?(r=s(l,{hide:!0}),r.complete=function(){i._animationCallback()}):r=s({complete:function(e){i._triggerEvent(R,e.closest(y)),i._animationCallback()}},r),e.kendoStop(!0,!0).kendoAnimate(r),t)},_animationCallback:function(){var e=this;e.trigger("complete"),e._animating=!1},_addGroupElement:function(t){var n=e('<ul role="group" aria-hidden="true" class="k-group k-panel" style="display:none"></ul>');return t.append(n),n},_collapseAllExpanded:function(t){var n,i=this,o=!1,r=t.find(O).add(t.find(V));return r.is(ie)&&(o=!0),r.is(ie)||0===r.length||(n=t.siblings(),n.find(O).add(n.find(V)).filter(function(){return e(this).is(ie)}).each(function(t,n){n=e(n),o=i._triggerEvent(F,n.closest(y)),o||i._toggleGroup(n,!0)}),i.one("complete",function(){setTimeout(function(){n.each(function(e,t){var n=i.dataItem(t);n&&n.set("expanded",!1)})})})),o},_ajaxRequest:function(t,n,i){var o=this,r=t.find(".k-panelbar-collapse, .k-panelbar-expand"),a=t.find(w),s=setTimeout(function(){r.addClass("k-i-loading")},100),l={},d=a.attr(v);e.ajax({type:"GET",cache:!1,url:d,dataType:"html",data:l,error:function(e,t){r.removeClass("k-i-loading"),o.trigger(k,{xhr:e,status:t})&&this.complete()},complete:function(){clearTimeout(s),r.removeClass("k-i-loading")},success:function(e){function r(){return{elements:n.get()}}try{o.angular("cleanup",r),n.html(e),o.angular("compile",r)}catch(a){var s=window.console;s&&s.error&&s.error(a.name+": "+a.message+" in "+d),this.error(this.xhr,"error")}o._toggleGroup(n,i),o.trigger(L,{item:t[0],contentElement:n[0]})}})},_triggerEvent:function(e,t){var n=this;return n.trigger(e,{item:t[0]})},_updateSelected:function(e,t){var n=this,i=n.element,o=e.parent(y),r=n._selected,a=n.dataItem(o);r&&r.removeAttr(ne),n._selected=o.attr(ne,!0),i.find(X).removeClass(q),i.find("> ."+$+", .k-panel > ."+$).removeClass($),e.addClass(q),e.parentsUntil(i,y).filter(":has(.k-header)").addClass($),n._current(o[0]?o:null),a&&a.set("selected",!0),t||n.trigger(D)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}})},renderItem:function(e){var t,n,i=this;return e=s({panelBar:i,group:{}},e),t=i.templates.empty,n=e.item,i.templates.item(s(e,{itemWrapper:i.templates.itemWrapper,renderContent:i.renderContent,arrow:i._hasChildItems(n)||n.content||n.contentUrl?i.templates.arrow:t,subGroup:!e.loadOnDemand||n.expanded?i.renderGroup:t},se))},renderGroup:function(e){var t=this,n=t.templates||e.panelBar.templates;return n.group(s({renderItems:function(e){for(var t="",n=0,i=e.items,o=i?i.length:0,r=s({length:o},e.group);n<o;n++)t+=e.panelBar.renderItem(s(e,{group:r,item:s({index:n},i[n])}));return t}},e,se))},renderContent:function(e){return e.panelBar.templates.content(s(e,se))}});o.ui.plugin(de)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.responsivepanel.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=e.proxy,i=".kendoResponsivePanel",o="open",r="close",a="click"+i+" touchstart"+i+" touchend"+i,s=kendo.ui.Widget,l=s.extend({init:function(t,o){s.fn.init.call(this,t,o),this._guid="_"+kendo.guid(),this._toggleHandler=n(this._toggleButtonClick,this),this._closeHandler=n(this._close,this),e(document.documentElement).on(a,this.options.toggleButton,this._toggleHandler),this._registerBreakpoint(),this.element.addClass("k-rpanel k-rpanel-"+this.options.orientation+" "+this._guid),this._resizeHandler=n(this.resize,this,!0),e(window).on("resize"+i,this._resizeHandler)},_mediaQuery:"@media (max-width: #= breakpoint-1 #px) {.#= guid #.k-rpanel-animate.k-rpanel-left,.#= guid #.k-rpanel-animate.k-rpanel-right {-webkit-transition: -webkit-transform .2s ease-out;-ms-transition: -ms-transform .2s ease-out;transition: transform .2s ease-out;} .#= guid #.k-rpanel-top {overflow: hidden;}.#= guid #.k-rpanel-animate.k-rpanel-top {-webkit-transition: max-height .2s linear;-ms-transition: max-height .2s linear;transition: max-height .2s linear;}} @media (min-width: #= breakpoint #px) {#= toggleButton # { display: none; } .#= guid #.k-rpanel-left { float: left; } .#= guid #.k-rpanel-right { float: right; } .#= guid #.k-rpanel-left, .#= guid #.k-rpanel-right {position: relative;-webkit-transform: translateX(0);-ms-transform: translateX(0);transform: translateX(0);-webkit-transform: translateX(0) translateZ(0);-ms-transform: translateX(0) translateZ(0);transform: translateX(0) translateZ(0);} .k-ie9 .#= guid #.k-rpanel-left { left: 0; } .#= guid #.k-rpanel-top { max-height: none; }}",_registerBreakpoint:function(){var e=this.options;this._registerStyle(kendo.template(this._mediaQuery)({breakpoint:e.breakpoint,toggleButton:e.toggleButton,guid:this._guid}))},_registerStyle:function(t){var n=e("head,body")[0],i=document.createElement("style");n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))},options:{name:"ResponsivePanel",orientation:"left",toggleButton:".k-rpanel-toggle",breakpoint:640,autoClose:!0},events:[o,r],_resize:function(){this.element.removeClass("k-rpanel-animate k-rpanel-expanded"),e(document.documentElement).off(a,this._closeHandler)},_toggleButtonClick:function(e){e.preventDefault(),"touchend"!=e.type&&(this.element.hasClass("k-rpanel-expanded")?this.close():this.open())},open:function(){this.trigger(o)||(this.element.addClass("k-rpanel-animate k-rpanel-expanded"),this.options.autoClose&&e(document.documentElement).on(a,this._closeHandler))},close:function(){this.trigger(r)||(this.element.addClass("k-rpanel-animate").removeClass("k-rpanel-expanded"),e(document.documentElement).off(a,this._closeHandler))},_close:function(t){var n=t.isDefaultPrevented(),i=e(t.target).closest(this.options.toggleButton+",.k-rpanel");i.length||n||this.close()},destroy:function(){s.fn.destroy.call(this),e(window).off("resize"+i,this._resizeHandler),e(document.documentElement).off(a,this._closeHandler)}});kendo.ui.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.timepicker.min",["kendo.popup.min","kendo.dateinput.min"],e)}(function(){return function(e,t){function n(){var e=new oe,t=new oe(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=new oe(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);return-1*(t.getTimezoneOffset()-n.getTimezoneOffset())}function i(e){return 60*e.getHours()*j+e.getMinutes()*j+1e3*e.getSeconds()+e.getMilliseconds()}function o(e){var t=new Date(2100,0,1);return t.setMinutes(-e),t}function r(e,t,n){var o,r=i(t),a=i(n);return!e||r==a||(o=i(e),r>o&&(o+=q),a<r&&(a+=q),o>=r&&o<=a)}function a(e){var t=e.parseFormats;e.format=S(e.format||k.getCulture(e.culture).calendars.standard.patterns.t),t=te(t)?t:[t],t.splice(0,0,e.format),e.parseFormats=t}function s(e){e.preventDefault()}function l(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function d(e,t){var n,i=t.calendar;return"string"==typeof e&&(n=i.patterns[e]?i.patterns[e]:e),n||(n=i.patterns.d),n}function c(e,t){var n=e[e.length-1];n&&"LITERAL"===n.type?n.pattern+=t:e.push({type:ae,pattern:t})}function u(e){return"h"===e||"K"===e}function h(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function p(e,t,n){return n=n||0,e.indexOf(t,n)===n}function f(e,t){var n=!1;return e.indexOf(t)!==-1&&(n=!0),n}function m(e){for(var t,n,i,o,r,a,s,l=k.culture(),f=d(e,l),m=[],g=re.lastIndex=0,v=re.exec(f);v;)s=v[0],g<v.index&&c(m,f.substring(g,v.index)),p(s,'"')||p(s,"'")?c(m,s):(t=s[0],n=he[t],i={type:n,pattern:s},"hour"===n&&(i.hour12=u(s)),o=pe[n],o&&(r="number"==typeof o.minLength?o.minLength:o.minLength[t],a=s.length,a>=r&&(i.names={type:o.type,nameType:h(a),standAlone:o.standAlone===t})),m.push(i)),g=re.lastIndex,v=re.exec(f);return g<f.length&&c(m,f.substring(g)),m}function g(e,t){for(var n=e+"";n.length<(t||2);)n="0"+n;return n}function v(e,t){return Math.max(Math.round(e/t),0)}function _(e){return e.length&&e[0].getBoundingClientRect().height}var b,w,k=window.kendo,y=k.keys,x=k.parseDate,C=k._activeElement,S=k._extractFormat,T=k.support,D=T.browser,A=k.ui,E=A.Widget,I="open",M="close",R="change",F=".kendoTimePicker",P="click"+F,z="k-state-default",B="disabled",L="readonly",H="li",N="<span></span>",O="k-state-focused",V="k-state-hover",W="mouseenter"+F+" mouseleave"+F,U="mousedown"+F,j=6e4,q=864e5,G="k-state-selected",$="k-state-disabled",K="aria-selected",Y="aria-expanded",Q="aria-hidden",X="aria-disabled",Z="aria-readonly",J="aria-activedescendant",ee="id",te=e.isArray,ne=e.extend,ie=e.proxy,oe=Date,re=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g,ae="literal",se="month",le="hour",de="zone",ce="weekday",ue="quarter",he={G:"era",y:"year",q:ue,Q:ue,M:se,L:se,d:"day",E:ce,c:ce,e:ce,h:le,H:le,k:le,K:le,m:"minute",s:"second",a:"dayperiod",x:de,X:de,z:de,Z:de},pe={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},fe=new oe,me='<div tabindex="0" class="k-timeselector"><div class="k-time-header"><span class="k-title"></span><button class="k-button k-flat k-time-now" title="Select now" aria-label="Select now">#=messages.now#</button></div><div class="k-time-list-container"><span class="k-time-highlight"></span></div></div>',ge='<div class="k-time-footer k-action-buttons"><button class="k-button k-time-cancel" title="Cancel changes" aria-label="Cancel changes">#=messages.cancel#</button><button class="k-time-accept k-button k-primary" title="Set time" aria-label="Set time">#=messages.set#</button></div>',ve='<span class="k-time-highlight"></span>';fe=new Date(fe.getFullYear(),fe.getMonth(),fe.getDate(),0,0,0),b=function(e){var t=this,n=e.id;t.options=e,t._dates=[],t._createList(e.timeView&&"scroll"===e.timeView.list),n&&(t._timeViewID=n+"_timeview",t._optionID=n+"_option_selected",t.ul.attr(ee,t._timeViewID)),t._heightHandler=ie(t._height,t),t._popup()},b.prototype={_createList:function(e){e?this._createScrollList():this._createClassicRenderingList()},_createScrollList:function(){this.list=e(k.template(me)(this.options)).on(U,s),this.options.omitPopup||this.list.append(k.template(ge)(this.options)),this.ul=this.list.find(".k-time-list-container"),this.list.on("click"+F,".k-time-header button.k-time-now",ie(this._nowClickHandler,this)),this.list.on("click"+F,".k-time-footer button.k-time-cancel",ie(this._cancelClickHandler,this)),this.list.on("click"+F,".k-time-footer button.k-time-accept",ie(this._setClickHandler,this)),this.list.on("mouseover"+F,".k-time-list-wrapper",ie(this._mouseOverHandler,this)),this.list.on("keydown"+F,ie(this._scrollerKeyDownHandler,this))},_scrollerKeyDownHandler:function(t){var n=this,i=t.keyCode,o=e(t.currentTarget).find(".k-time-list-wrapper.k-state-focused"),r=n.list.find(".k-time-list-wrapper"),a=r.length,s=r.index(o),l=k.support.isRtl(n.wrapper),d=_(o.find(".k-item:visible:eq(0)")),c=o.find(".k-time-container.k-content.k-scrollable");o.length&&(i==y.RIGHT&&!l||i==y.LEFT&&l?s+1<a&&n._focusList(r.eq(s+1)):i==y.LEFT&&!l||i==y.RIGHT&&l?s-1>=0&&n._focusList(r.eq(s-1)):i==y.UP?(c.scrollTop(c.scrollTop()-d),t.preventDefault()):i==y.DOWN?(c.scrollTop(c.scrollTop()+d),t.preventDefault()):i===y.ENTER?n._setClickHandler():i===y.ESC&&n._cancelClickHandler())},_mouseOverHandler:function(t){this._focusList(e(t.currentTarget))},_focusList:function(e){this.list.find(".k-time-list-wrapper").removeClass(O),e.addClass(O),this.list.focus(),this._scrollTop=e.find(".k-scrollable").scrollTop()},_createClassicRenderingList:function(){var t=this;t.ul=e('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:T.kineticScrollNeeded?"":"auto"}).on(P,H,ie(t._click,t)).on("mouseenter"+F,H,function(){e(this).addClass(V)}).on("mouseleave"+F,H,function(){e(this).removeClass(V)}),t.list=e("<div class='k-list-container k-list-scroller' unselectable='on'/>").append(t.ul).on(U,s),t.template=k.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})},current:function(n){var i=this,o=i.options.active;return n===t?i._current:(i._current&&(i._current.removeClass(G),i._current&&i._current.length&&(i._current[0].removeAttribute(ee),i._current[0].removeAttribute(K))),n&&(n=e(n).addClass(G).attr(ee,i._optionID).attr(K,!0),i.scroll(n[0])),i._current=n,o&&o(n),t)},_updateTitle:function(){this.list.find(".k-time-header > .k-title").html(k.toString(this._value,this.options.format,this.options.culture))},applyValue:function(e){var t,n,i,o,r,a,s,l,d;e&&(t=f(this.options.format.toLowerCase(),"t"),n=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),a=this.ul.find('[data-index="1"]'),s=this.ul.find('[data-index="2"]'),l=this.ul.find('[data-index="3"]'),d=this.ul.find('[data-index="4"]'),t&&(n>=12?(r="PM",n>12&&(n-=12)):(r="AM",0===n&&(n=12))),a.length&&this._scrollListToPosition(a,n),s.length&&this._scrollListToPosition(s,i),l.length&&this._scrollListToPosition(l,o),d.length&&this._scrollListToPosition(d,r))},_scrollListToPosition:function(e,t){var n=e.find('.k-item[data-value="'+g(t)+'"]'),i=_(n);e.scrollTop(e.find(".k-item:visible").index(n)*i)},close:function(){this.popup.close()},destroy:function(){var e=this;e.ul.off(F),e.list.off(F),this.popup&&e.popup.destroy()},open:function(){var e,t=this;(!t.ul[0].firstChild||t.ul.find("li").length<1)&&t.bind(),e=t.popup._hovered,t.popup._hovered=!0,t.popup.open(),setTimeout(function(){t.popup._hovered=e},1),t._current&&t.scroll(t._current[0])},dataBind:function(e){for(var t,n=this,i=n.options,o=i.format,a=k.toString,s=n.template,l=e.length,d=0,c="";d<l;d++)t=e[d],r(t,i.min,i.max)&&(c+=s(a(t,o,i.culture)));n._html(c)},refresh:function(){var e,t,r=this,a=r.options,s=a.format,d=n(),c=d<0,u=k.parseDate(r._value),h=u?l(u,a.min):l(new Date,a.min),p=a.min,f=a.max,g=i(p),v=i(f),_=i(o(a.interval)),b=a.interval*j,w=k.toString,y=r.template,x=a.useValueToRender?h:new Date((+a.min)),C=new oe(x),S="";t=c?(q+d*j)/b:q/b,g==v&&_!==v||(g>v&&(v+=q),t=(v-g)/b+1),a.timeView&&"scroll"===a.timeView.list?S=r._createListContent(m(s)):r.getDatesInRange(e,v,C,f,b,x).forEach(function(e){S+=y(w(e,s,a.culture))}),r._html(S)},_updateListBottomOffset:function(e){var t=_(e.find(".k-item:visible:eq(0)")),n=e.outerHeight(),i=n-t;e.find(".k-scrollable-placeholder").css({height:e.find("ul").height()+i})},_updateHoursRange:function(){var t,n,i=this,o=this.ul.find('[data-index="1"]'),r=this._minHours,a=this._maxHours,s=f(this.options.format.toLowerCase(),"t"),l=this._findSelectedValue(this.ul.find('[data-index="4"]'));o.length&&(s&&l?("AM"===l?(r<12&&(n=!0),a<12&&(t=!0)):"PM"===l&&(r>12&&(n=!0,r-=12),a>12&&(t=!0,a-=12)),o.find(".k-item").each(function(o,s){s=e(s);var l=+s.attr("data-value");i._validateMin&&n&&l<r||i._validateMax&&t&&l>a?s.hide():s.show()})):o.find(".k-item").each(function(t,n){n=e(n);var o=+n.attr("data-value");i._validateMin&&o<r||i._validateMax&&o>a?n.hide():n.show()}),this._updateListBottomOffset(o))},_updateMinutesRange:function(){var t=this,n=this.ul.find('[data-index="2"]'),i=this._minHours,o=this._maxHours,r=this._minMinutes,a=this._maxMinutes,s=+this._findSelectedValue(this.ul.find('[data-index="1"]')),l=f(this.options.format.toLowerCase(),"t"),d=this._findSelectedValue(this.ul.find('[data-index="4"]'));l&&"PM"===d&&(s+=12),n.length&&(n.find(".k-item").each(function(n,l){l=e(l);var d=+l.attr("data-value");t._validateMin&&d<r&&i&&s===i||t._validateMax&&d>a&&o&&s===o?l.hide():l.show()}),this._updateListBottomOffset(n))},_updateSecondsRange:function(){var t=this,n=this.ul.find('[data-index="3"]'),i=this._minSeconds,o=this._minSeconds,r=this._minMinutes,a=this._maxMinutes,s=+this._findSelectedValue(this.ul.find('[data-index="2"]'));n.length&&(n.find(".k-item").each(function(n,l){l=e(l);var d=+l.attr("data-value");t._validateMin&&d<i&&r&&s===r||t._validateMax&&d>o&&a&&s===a?l.hide():l.show()}),this._updateListBottomOffset(n))},_updateDesignatorRange:function(){var e=this._minHours,t=this._maxHours,n=this.ul.find('[data-index="4"]');n.length&&(this._validateMin&&e>=12?n.find('.k-item[data-value="AM"]').hide():n.find('.k-item[data-value="AM"]').show(),this._validateMax&&t<12?n.find('.k-item[data-value="PM"]').hide():n.find('.k-item[data-value="PM"]').show())},_updateRanges:function(){var e,t;if(this.options.specifiedRange){if(this._currentlySelected||(this._currentlySelected=new Date),
e=this.options.max,t=this.options.min,this.options.validateDate){if(this._validateMax=e.getFullYear()===this._currentlySelected.getFullYear()&&e.getMonth()===this._currentlySelected.getMonth()&&e.getDate()===this._currentlySelected.getDate(),this._validateMin=t.getFullYear()===this._currentlySelected.getFullYear()&&t.getMonth()===this._currentlySelected.getMonth()&&t.getDate()===this._currentlySelected.getDate(),!this._validateMax&&!this._validateMin)return}else this._validateMax=!0,this._validateMin=!0;this._minMinutes=t.getMinutes(),this._maxMinutes=e.getMinutes(),this._minHours=t.getHours(),this._maxHours=e.getHours(),this._minSeconds=t.getSeconds(),this._maxSeconds=e.getSeconds(),this._updateDesignatorRange(),this._updateHoursRange(),this._updateMinutesRange(),this._updateSecondsRange()}},addTranslate:function(){var e,t,n,i,o,r,a,s=this.ul.find(".k-time-container.k-content.k-scrollable"),l=s.length;for(a=0;a<l;a++)e=s.eq(a),t=_(e.find(".k-item:visible:eq(0)")),n=e.outerHeight(),i=(n-t)/2,o="translateY("+i+"px)",r=n-t,e.find("ul").css({transform:o,"-ms-transform":o}),e.find(".k-scrollable-placeholder").css({height:e.find("ul").height()+r}),e.off(F).on("click"+F,".k-item",ie(this._itemClickHandler,this)).on("scroll"+F,ie(this._listScrollHandler,this))},_nowClickHandler:function(){var e=new Date;this.value(e),this.options.change(k.toString(e,this.options.format,this.options.culture))},_cancelClickHandler:function(){this.value(this._value),this.popup.close()},_setClickHandler:function(){this._value=new Date(this._currentlySelected),this.options.change(k.toString(this._currentlySelected,this.options.format,this.options.culture),!0),this.popup.close()},_listScrollHandler:function(t){var n=this,i=_(e(t.currentTarget).find(".k-item:visible:eq(0)"));n._scrollingTimeout&&clearTimeout(n._scrollingTimeout),n._scrollingTimeout=setTimeout(function(){t.currentTarget.scrollTop%i>1&&(t.currentTarget.scrollTop+=i-t.currentTarget.scrollTop%i),n._scrollTop=t.currentTarget.scrollTop,n._updateCurrentlySelected(),n._updateRanges()},100)},_updateCurrentlySelected:function(){var e,n,i,o,r=f(this.options.format.toLowerCase(),"t"),a=this.ul.find('[data-index="1"]'),s=this.ul.find('[data-index="2"]'),l=this.ul.find('[data-index="3"]'),d=this.ul.find('[data-index="4"]');this.ul.is(":visible")&&(this._currentlySelected||(this._currentlySelected=this._value?new Date(this._value):new Date),a.length&&(e=+this._findSelectedValue(a)),s.length&&(n=+this._findSelectedValue(s)),l.length&&(i=+this._findSelectedValue(l)),d.length&&(o=this._findSelectedValue(d)),r&&("PM"==o&&(e+=12,24==e&&(e=12)),"AM"===o&&12===e&&(e=0)),e!==t&&this._currentlySelected.setHours(e),n!==t&&this._currentlySelected.setMinutes(n),i!==t&&this._currentlySelected.setSeconds(i))},_findSelectedValue:function(e){var t=v(e.scrollTop(),_(e.find(".k-item:visible:eq(0)")));return e.find(".k-item:visible").eq(t).attr("data-value")},_itemClickHandler:function(t){var n=e(t.originalEvent.currentTarget),i=n.find(".k-item:visible").index(e(t.currentTarget)),o=_(n.find(".k-item:visible:eq(0)"));n.scrollTop(i*o)},getDatesInRange:function(e,t,n,o,r,a){for(var s=[];;){if(t&&(i(a)>=t||n.getDate()!=a.getDate())){e=i(a),n<a&&(e+=q),e>t&&(a=new oe((+o))),i(a)>0&&s.push(new Date(a));break}if(n.getDate()!=a.getDate())break;if(s.push(new Date(a)),a.setTime(a.getTime()+r),!t&&this.options.maxSet)break}return s},_createListContent:function(e){var t,n,i,o=e.length,r="";for(i=0;i<o;i++)t=e[i],"literal"===t.type?r+=this._literalTemplate(t):(n=this._getValues(t,!0),r+=this._itemTemplate(n.values,t,this.options.messages[t.type],n.index));return r},_itemTemplate:function(e,t,n,i){var o,r="",a=e.length;for(r+='<div class="k-time-list-wrapper" role="presentation"><span class="k-title">'+(n||t.type)+'</span><div class="k-time-list"><div class="k-time-container k-content k-scrollable" role="presentation" data-index="'+i+'"><ul class="k-reset">',o=0;o<a;o++)r+='<li class="k-item" data-value="'+e[o]+'"><span>'+e[o]+"</span></li>";return r+='</ul><div class="k-scrollable-placeholder"></div></div></div></div>'},_getValues:function(e,t){var n,i,o=[],r=0;for("hour"===e.type?(r=1,n=1,i=e.hour12?12:24):"minute"===e.type?(n=2,i=59):"second"===e.type&&(n=3,i=59);r<=i;r++)o.push(t?g(r):r);return{values:o,index:n}},_literalTemplate:function(e){var t='<div class="k-time-separator">'+(" tt"===e.pattern?":":e.pattern)+"</div>";return" tt"===e.pattern&&(t+=this._itemTemplate(["AM","PM"],e,"AM/PM",4)),t},bind:function(){var e=this,t=e.options.dates;t&&t[0]?e.dataBind(t):e.refresh()},_html:function(e){var t=this;t.options.timeView&&"scroll"===t.options.timeView.list?(e=ve+e,t.ul.html(e)):(t.ul[0].innerHTML=e,t.popup.unbind(I,t._heightHandler),t.popup.one(I,t._heightHandler),t.current(null),t.select(t._value))},scroll:function(e){if(e){var t=this.list[0],n=e.offsetTop,i=e.offsetHeight,o=t.scrollTop,r=t.clientHeight,a=n+i;o>n?o=n:a>o+r&&(o=a-r),t.scrollTop=o}},select:function(t){var n,i=this,o=i.options,r=i._current;t instanceof Date&&(t=k.toString(t,o.format,o.culture)),"string"==typeof t&&(r&&r.text()===t?t=r:(t=e.grep(i.ul[0].childNodes,function(e){return(e.textContent||e.innerText)==t}),t=t[0]?t:null)),n=i._distinctSelection(t),i.current(n)},_distinctSelection:function(t){var n,o,r=this;return t&&t.length>1&&(n=i(r._value),o=e.inArray(n,r._dates),t=r.ul.children()[o]),t},setOptions:function(e){var t=this.options;e.min=x(e.min),e.max=x(e.max),this.options=ne(t,e,{active:t.active,change:t.change,close:t.close,open:t.open}),this.bind()},toggle:function(){var e=this;e.popup.visible()?e.close():e.open()},value:function(e){var t=this;t._value=e,t.ul[0].firstChild&&(t.options.timeView&&"scroll"===t.options.timeView.list?t.applyValue(e):t.select(e))},_click:function(t){var n=this,i=e(t.currentTarget),o=i.text(),r=n.options.dates;r&&r.length>0&&(o=r[i.index()]),t.isDefaultPrevented()||(n.select(i),n.options.change(o,!0),n.close())},_height:function(){var e=this,t=e.list,n=t.parent(".k-animation-container"),i=e.options.height;e.ul[0].children.length&&t.add(n).show().height(e.ul[0].scrollHeight>i?i:"auto").hide()},_parse:function(e){var t=this,n=t.options,o=i(n.min)!=i(fe)?n.min:null,r=i(n.max)!=i(fe)?n.max:null,a=t._value||o||r||fe;return e instanceof oe?e:(e=x(e,n.parseFormats,n.culture),e&&(e=new oe(a.getFullYear(),a.getMonth(),a.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),e)},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,o=this.options.anchor,r=k._outerWidth;!n.data("width")&&i||(e=window.getComputedStyle?window.getComputedStyle(o[0],null):0,t=e?parseFloat(e.width):r(o),e&&(D.mozilla||D.msie)&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i=t-(r(n)-n.width()),n.css({fontFamily:o.css("font-family"),width:i}).data("width",i))},_popup:function(){var e=this,t=e.list,n=e.options,i=n.anchor;this.options.omitPopup?t.appendTo(n.timeDiv):e.popup=new A.Popup(t,ne(n.popup,{anchor:i,open:n.open,close:n.close,animation:n.animation,isRtl:T.isRtl(n.anchor),activate:function(){e.options.timeView&&"scroll"===e.options.timeView.list&&(e.addTranslate(),e._value?e.applyValue(e._value):e._updateCurrentlySelected(),e._updateRanges(),e._focusList(e.list.find(".k-time-list-wrapper:eq(0)")))}}))},move:function(e){var n=this,i=e.keyCode,o=n.ul[0],r=n._current,a=i===y.DOWN;if(i===y.UP||a){if(e.altKey)return n.toggle(a),t;r=a?r?r[0].nextSibling:o.firstChild:r?r[0].previousSibling:o.lastChild,r&&n.select(r),n.options.change(n._current.text()),e.preventDefault()}else i!==y.ENTER&&i!==y.TAB&&i!==y.ESC||(e.preventDefault(),r&&n.options.change(r.text(),!0),n.close())}},b.getMilliseconds=i,k.TimeView=b,w=E.extend({init:function(t,n){var o,r,s,l,d,c,u=this;n=n||{},n.componentType=n.componentType||"classic",E.fn.init.call(u,t,n),t=u.element,n=u.options,n.min=x(t.attr("min"))||x(n.min),n.max=x(t.attr("max"))||x(n.max),+n.max==+fe&&+n.min==+fe||(this._specifiedRange=!0),a(n),u._initialOptions=ne({},n),u._wrapper(),u.options.timeView&&"scroll"===u.options.timeView.list&&(u.options.height=null),u.timeView=r=new b(ne({},n,{id:t.attr(ee),anchor:u.wrapper,format:n.format,change:function(e,n){n?u._change(e):t.val(e)},open:function(e){u.options.timeView&&"scroll"!==u.options.timeView.list?u.timeView._adjustListWidth():u.timeView._updateTitle(),u.trigger(I)?e.preventDefault():(t.attr(Y,!0),o.attr(Q,!1))},close:function(e){u.trigger(M)?e.preventDefault():(t.attr(Y,!1),o.attr(Q,!0))},active:function(e){t&&t.length&&t[0].removeAttribute(J),e&&t.attr(J,r._optionID)},specifiedRange:u._specifiedRange,maxSet:+n.max!=+fe})),o=r.ul,u._icon(),u._reset();try{t[0].setAttribute("type","text")}catch(h){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":r._timeViewID,autocomplete:"off"}),s=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),s?u.enable(!1):u.readonly(t.is("[readonly]")),n.dateInput&&(l=n.min,d=n.max,c=new oe,i(l)==i(d)&&(l=new oe(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0),d=new oe(c.getFullYear(),c.getMonth(),c.getDate(),24,0,0)),u._dateInput=new A.DateInput(t,{culture:n.culture,format:n.format,min:l,max:d,value:n.value,interval:n.interval})),u._old=u._update(n.value||u.element.val()),u._oldText=t.val(),k.notify(u)},options:{name:"TimePicker",min:fe,max:fe,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{},dateInput:!1,messages:{set:"Set",cancel:"Cancel",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",now:"Now"},componentType:"classic"},events:[I,M,R],componentTypes:{classic:{timeView:{list:"list"}},modern:{timeView:{list:"scroll"}}},setOptions:function(e){var t=this,n=t._value;E.fn.setOptions.call(t,e),e=t.options,a(e),t.timeView.setOptions(e),n&&t.element.val(k.toString(n,e.format,e.culture))},dataBind:function(e){te(e)&&this.timeView.dataBind(e)},_editable:function(e){var t=this,n=e.disable,i=e.readonly,o=t._arrow.off(F),r=t.element.off(F),a=t._inputWrapper.off(F);t._dateInput&&t._dateInput._unbindInput(),i||n?(a.addClass(n?$:z).removeClass(n?z:$),r.attr(B,n).attr(L,i).attr(X,n).attr(Z,i)):(a.addClass(z).removeClass($).on(W,t._toggleHover),r&&r.length&&(r[0].removeAttribute(B),r[0].removeAttribute(L)),r.attr(X,!1).attr(Z,!1).on("keydown"+F,ie(t._keydown,t)).on("focusout"+F,ie(t._blur,t)).on("focus"+F,function(){t._inputWrapper.addClass(O)}),t._dateInput&&t._dateInput._bindInput(),o.on(P,ie(t._click,t)).on(U,s))},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;E.fn.destroy.call(e),e.timeView.destroy(),e.element.off(F),e._arrow.off(F),e._inputWrapper.off(F),e._form&&e._form.off("reset",e._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(e){return this._option("min",e)},max:function(e){return e&&this.timeView?this.timeView.options.maxSet=!0:this.timeView&&(this.timeView.options.maxSet=!1),this._option("max",e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.element.val(),t)},_blur:function(){var e=this,t=e.element.val();e.options.timeView&&"scroll"===e.options.timeView.list||e.close(),t!==e._oldText&&e._change(t),e._inputWrapper.removeClass(O)},_click:function(){var e=this,t=e.element;e.timeView.toggle(),T.touch||t[0]===C()||t.trigger("focus")},_change:function(e){var t,n,i,o=this,r=o.element.val();e=o._update(e),t=!k.calendar.isEqualDate(o._old,e),n=t&&!o._typing,i=r!==o.element.val(),(n||i)&&o.element.trigger(R),t&&(o._old=e,o._oldText=o.element.val(),o.trigger(R)),o._typing=!1},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-clock"></span></span>').insertAfter(i)),n._arrow=t.attr({role:"button","aria-controls":n.timeView._timeViewID})},_keydown:function(e){var t=this,n=e.keyCode,i=t.timeView,o=t.element.val();i.popup.visible()||e.altKey?(i.move(e),t._dateInput&&e.stopImmediatePropagation&&e.stopImmediatePropagation()):n===y.ENTER&&o!==t._oldText?t._change(o):t._typing=!0},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=i.timeView._parse(n),n&&(n=new oe((+n)),o[e]=n,i.timeView.options[e]=n,i.timeView.bind()),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(V,"mouseenter"===t.type)},_update:function(e){var t=this,n=t.options,i=t.timeView,o=i._parse(e);return r(o,n.min,n.max)||(o=null),t._value=o,t._currentlySelected=o,t._dateInput&&o?t._dateInput.value(o||e):t.element.val(k.toString(o||e,n.format,n.culture)),i.value(o),o},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-timepicker"),t[0]||(t=i.wrap(N).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(N).parent()),t[0].style.cssText=i[0].style.cssText,n.wrapper=t.addClass("k-widget k-timepicker").addClass(i[0].className),i.css({width:"100%",height:i[0].style.height}),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){t.value(n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=o.on("reset",t._resetHandler))}}),A.plugin(w)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.datetimepicker.min",["kendo.datepicker.min","kendo.timepicker.min"],e)}(function(){return function(e,t){function n(e){var t=new Date(2100,0,1);return t.setMinutes(-e),t}function i(e){e.preventDefault()}function o(t){var n,i=r.getCulture(t.culture).calendars.standard.patterns,o=!t.parseFormats.length;t.format=c(t.format||i.g),t.timeFormat=n=c(t.timeFormat||i.t),r.DateView.normalize(t),o&&t.parseFormats.unshift("yyyy-MM-ddTHH:mm:ss"),e.inArray(n,t.parseFormats)===-1&&t.parseFormats.push(n)}var r=window.kendo,a=r.TimeView,s=r.parseDate,l=r.support,d=r._activeElement,c=r._extractFormat,u=r.calendar,h=u.isInRange,p=u.restrictValue,f=u.isEqualDatePart,m=a.getMilliseconds,g=r.ui,v=g.Widget,_="open",b="close",w="change",k=".kendoDateTimePicker",y="click"+k,x=l.mouseAndTouchPresent?r.applyEventMap("up",k.slice(1)):y,C="disabled",S="readonly",T="k-state-default",D="k-state-focused",A="k-state-hover",E="k-state-disabled",I="mouseenter"+k+" mouseleave"+k,M="mousedown"+k,R="month",F="<span/>",P="aria-activedescendant",z="aria-expanded",B="aria-hidden",L="aria-owns",H="aria-disabled",N="aria-readonly",O=Date,V=new O(1800,0,1),W=new O(2099,11,31),U={view:"date"},j={view:"time"},q=e.extend,G='<div class="k-date-tab k-datetime-wrap"><div class="k-datetime-buttongroup"><div class="k-button-group k-button-group-stretched"><button class="k-button k-state-active k-group-start">#=messages.date#</button><button class="k-button k-group-end">#=messages.time#</button></div></div><div class="k-datetime-selector"><div class="k-datetime-calendar-wrap"></div><div class="k-datetime-time-wrap"></div></div><div class="k-datetime-footer k-action-buttons"><button class="k-button k-time-cancel" title="Cancel" aria-label="Cancel">#=messages.cancel#</button><button class="k-time-accept k-button k-primary" title="Set" aria-label="Set">#=messages.set#</button></div></div>',$="k-state-active",K=v.extend({init:function(t,n){var i,a=this;n=n||{},n.componentType=n.componentType||"classic",v.fn.init.call(a,t,n),t=a.element,n=a.options,n.disableDates=r.calendar.disabled(n.disableDates),n.min=s(t.attr("min"))||s(n.min),n.max=s(t.attr("max"))||s(n.max),+n.max==+W&&+n.min==+V||(this._specifiedRange=!0),o(n),a._initialOptions=q({},n),a._wrapper(),n.singlePopup&&a._popup(),a._views(),a._icons(),a._reset(),a._template();try{t[0].setAttribute("type","text")}catch(l){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,autocomplete:"off"}),a._midnight=a._calculateMidnight(n.min,n.max),i=t.is("[disabled]")||e(a.element).parents("fieldset").is(":disabled"),i?a.enable(!1):a.readonly(t.is("[readonly]")),a._createDateInput(n),a._old=a._update(n.value||a.element.val()),a._oldText=t.val(),r.notify(a)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],disableDates:null,min:new O(V),max:new O(W),interval:30,height:200,footer:"",start:R,depth:R,animation:{},month:{},ARIATemplate:'Current focused date is #=kendo.toString(data.current, "d")#',dateButtonText:"Open the date view",timeButtonText:"Open the time view",dateInput:!1,weekNumber:!1,messages:{set:"Set",cancel:"Cancel",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",now:"Now",date:"Date",time:"Time",today:"Today"},componentType:"classic"},events:[_,b,w],componentTypes:{classic:{singlePopup:!1,timeView:{list:"list"}},modern:{singlePopup:!0,timeView:{list:"scroll"}}},setOptions:function(e){var t,n,i,a=this,l=a._value;v.fn.setOptions.call(a,e),e=a.options,e.min=t=s(e.min),e.max=n=s(e.max),o(e),a._midnight=a._calculateMidnight(e.min,e.max),i=e.value||a._value||a.dateView._current,t&&!f(t,i)&&(t=new O(V)),n&&!f(n,i)&&(n=new O(W)),a.dateView.setOptions(e),a.timeView.setOptions(q({},e,{format:e.timeFormat,min:t,max:n})),a._createDateInput(e),a._dateInput||a.element.val(r.toString(l,e.format,e.culture)),l&&a._updateARIA(l)},_editable:function(t){var n=this,o=n.element.off(k),a=n._dateIcon.off(k),s=n._timeIcon.off(k),l=n._inputWrapper.off(k),d=t.readonly,c=t.disable;d||c?(l.addClass(c?E:T).removeClass(c?T:E),o.attr(C,c).attr(S,d).attr(H,c).attr(N,d)):(l.addClass(T).removeClass(E).on(I,n._toggleHover),o&&o.length&&(o[0].removeAttribute(C),o[0].removeAttribute(S,!1),o[0].removeAttribute(H,!1),o[0].removeAttribute(N,!1)),o.on("keydown"+k,e.proxy(n._keydown,n)).on("focus"+k,function(){n._inputWrapper.addClass(D)}).on("focusout"+k,function(){n._inputWrapper.removeClass(D),o.val()!==n._oldText&&(n._change(o.val()),o.val()||n.dateView.current(r.calendar.getToday())),n.options.singlePopup||(n.close("date"),n.close("time"))}),a.on(M,i).on(x,function(e){n.toggle("date"),n._focusElement(e.type)}),s.on(M,i).on(x,function(e){n.toggle("time"),n._focusElement(e.type)}))},_focusElement:function(e){var t=this.element;l.touch&&(!l.mouseAndTouchPresent||(e||"").match(/touch/i))||t[0]===d()||t.trigger("focus")},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;v.fn.destroy.call(e),e.dateView.destroy(),e.timeView.destroy(),e.options.singlePopup&&(e.popup.element.off(k),e.popup.destroy()),e.element.off(k),e._dateIcon.off(k),e._timeIcon.off(k),e._inputWrapper.off(k),e._form&&e._form.off("reset",e._resetHandler)},close:function(e){this.options.singlePopup?this.popup.close():("time"!==e&&(e="date"),this[e+"View"].close())},open:function(e){var t,n=this;n.options.singlePopup?(n.dateView._calendar(),n.timeView.ul.find("li").length<1&&n.timeView.bind(),t=n.popup._hovered,n.popup._hovered=!0,n.popup.open(),"time"===e?n._switchToTimeView():n._switchToDateView(),this._dateIcon.toggle("time"!==e),this._timeIcon.toggle("time"===e),setTimeout(function(){n.popup._hovered=t},1)):("time"!==e&&(e="date"),this[e+"View"].open())},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},toggle:function(e){if(this.options.singlePopup)this.popup.visible()?this.close():this.open(e);else{var t="timeView";"time"!==e?e="date":t="dateView",this[e+"View"].toggle(),this[t].close()}},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.element.val(),t)},_change:function(e){var t,n,i,o=this,r=o.element.val();e=o._update(e),t=+o._old!=+e,n=t&&!o._typing,i=r!==o.element.val(),(n||i)&&o.element.trigger(w),t&&(o._old=e,o._oldText=o.element.val(),o.trigger(w)),o._typing=!1},_option:function(e,i){var o,r,a=this,l=a.options,d=a.timeView,c=d.options,u=a._value||a._old;if(i===t)return l[e];if(i=s(i,l.parseFormats,l.culture),c.maxSet=!1,i){if(l.min.getTime()===l.max.getTime()&&(c.dates=[]),l[e]=new O(i.getTime()),a.dateView[e](i),a._midnight=a._calculateMidnight(l.min,l.max),u&&(o=f(l.min,u),r=f(l.max,u)),o||r){if(c[e]=i,o&&!r&&(c.max=n(l.interval)),r){if(a._midnight)return d.dataBind([W]),t;o||(c.min=V,c.maxSet=!0)}}else c.max=W,c.min=V;d.bind()}},_toggleHover:function(t){e(t.currentTarget).toggleClass(A,"mouseenter"===t.type)},_update:function(t){var i,o,a,l,d,c=this,u=c.options,m=u.min,g=u.max,v=u.dates,_=c.timeView,b=c._value,k=s(t,u.parseFormats,u.culture),y=null===k&&null===b||k instanceof Date&&b instanceof Date;return u.disableDates&&u.disableDates(k)&&(k=null,c._old||c.element.val()||(t=null)),+k===+b&&y?(d=r.toString(k,u.format,u.culture),d!==t&&(c.element.val(null===k?t:d),t instanceof String&&c.element.trigger(w)),k):(null!==k&&f(k,m)?k=p(k,m,g):h(k,m,g)||(k=null),c._value=k,_.value(k),c.dateView.value(k),k&&(a=c._old,o=_.options,o.maxSet=!1,v[0]&&(v=e.grep(v,function(e){return f(k,e)}),v[0]&&(_.dataBind(v),l=!0)),l||(f(k,m)&&(o.min=m,o.max=n(u.interval),i=!0),f(k,g)&&(c._midnight?(_.dataBind([W]),l=!0):(o.max=g,o.maxSet=!0,i||(o.min=V),i=!0))),!l&&(!a&&i||a&&!f(a,k))&&(i||(o.max=W,o.min=V),_.bind())),c._dateInput&&k?c._dateInput.value(k||t):c.element.val(r.toString(k||t,u.format,u.culture)),c._updateARIA(k),k)},_keydown:function(e){var t=this,n=t.dateView,i=t.timeView,o=t.element.val(),a=t.options.singlePopup?t.popup.visible():n.popup.visible(),s=t._dateInput&&e.stopImmediatePropagation;e.altKey&&e.keyCode===r.keys.DOWN?t.toggle(a?"time":"date"):a?(n.move(e),t._updateARIA(n._current)):!t.options.singlePopup&&i.popup.visible()?i.move(e):e.keyCode===r.keys.ENTER&&o!==t._oldText?t._change(o):(t._typing=!0,s=!1),s&&e.stopImmediatePropagation()},_views:function(){var e,t,n,i,o,l,d,c,u,h=this,p=h.element,f=h.options,m=p.attr("id");f.singlePopup&&(f.dateDiv=h.popup.element.find(".k-datetime-calendar-wrap"),d=h.popup.element.find(".k-datetime-time-wrap"),f.omitPopup=c=!0,u=f.timeView),h.dateView=e=new r.DateView(q({},f,{id:m,anchor:h.wrapper,change:function(){var e=h._applyDateValue();f.singlePopup?(h.timeView._currentlySelected||(h.timeView._currentlySelected=new Date),h.timeView._currentlySelected.setFullYear(e.getFullYear()),h.timeView._currentlySelected.setMonth(e.getMonth()),h.timeView._currentlySelected.setDate(e.getDate()),h._switchToTimeView(),h._toggleIcons()):(h._change(e),h.close("date"))},close:function(e){h.trigger(b,U)?e.preventDefault():(p.attr(z,!1),n.attr(B,!0),h.options.singlePopup||t.popup.visible()||p&&p.length&&p[0].removeAttribute(L))},open:function(t){h.trigger(_,U)?t.preventDefault():(p.val()!==h._oldText&&(l=s(p.val(),f.parseFormats,f.culture),h.dateView[l?"current":"value"](l)),n.attr(B,!1),p.attr(z,!0).attr(L,e._dateViewID),h._updateARIA(l))}})),n=e.div,o=f.min.getTime(),h.timeView=t=new a({id:m,value:f.value,anchor:h.wrapper,animation:f.animation,format:f.timeFormat,culture:f.culture,height:"modern"===f.componentType?null:f.height,interval:f.interval,min:"modern"===f.componentType?f.min:new O(V),max:"modern"===f.componentType?f.max:new O(W),dates:o===f.max.getTime()?[new Date(o)]:[],parseFormats:f.parseFormats,validateDate:!0,change:function(t,n){t=h._applyTimeValue(t),n?(h._timeSelected=!0,h._change(t)):(p.val(r.toString(t,f.format,f.culture)),e.value(t),h._updateARIA(t))},close:function(t){h.trigger(b,j)?t.preventDefault():(i.attr(B,!0),p.attr(z,!1),e.popup.visible()||p&&p.length&&p[0].removeAttribute(L))},open:function(e){"modern"!==h.options.componentType?t._adjustListWidth():h.timeView._updateTitle(),h.trigger(_,j)?e.preventDefault():(p.val()!==h._oldText&&(l=s(p.val(),f.parseFormats,f.culture),h.timeView.value(l)),i.attr(B,!1),p.attr(z,!0).attr(L,t._timeViewID),t.options.active(t.current()))},active:function(e){p&&p.length&&p[0].removeAttribute(P),e&&p.attr(P,t._optionID)},popup:f.popup,useValueToRender:!0,specifiedRange:h._specifiedRange,omitPopup:c,timeDiv:d,timeView:u,messages:h.options.messages}),i=t.ul},_applyDateValue:function(){var e,t,n=this,i=n.options,o=n.dateView,a=o.calendar.value(),s=+a,l=+i.min,d=+i.max;return s!==l&&s!==d||(e=s===l?l:d,e=new O(n._value||e),e.setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),h(e,l,d)&&(a=e)),n._value&&(t=r.date.setHours(new Date(a),n._value),h(t,l,d)&&(a=t)),a},_applyTimeValue:function(e){var t=this.timeView,n=this.options;return e=t._parse(e),e<n.min?(e=new O((+n.min)),t.options.min=e):e>n.max&&(e=new O((+n.max)),t.options.max=e),e},_icons:function(){var t=this,n=t.element,i=t.options,o=n.next("span.k-select");o[0]||(o=e('<span unselectable="on" class="k-select"><span class="k-link k-link-date" aria-label="'+i.dateButtonText+'"><span unselectable="on" class="k-icon k-i-calendar"></span></span><span class="k-link k-link-time" aria-label="'+i.timeButtonText+'"><span unselectable="on" class="k-icon k-i-clock"></span></span></span>').insertAfter(n)),o=o.children(),t._dateIcon=o.eq(0).attr("aria-controls",t.dateView._dateViewID),t._timeIcon=o.eq(1).attr("aria-controls",t.timeView._timeViewID),i.singlePopup&&t._timeIcon.hide()},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datetimepicker"),t[0]||(t=i.wrap(F).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(F).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datetimepicker").addClass(i[0].className).removeClass("input-validation-error"),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form"),a=t.options,s=a.disableDates,l=a.parseFormats.length?a.parseFormats:null,d=t._initialOptions.value,c=n[0].defaultValue;d&&s&&s(d)&&(d=null),c&&r.parseDate(c,l,a.culture)||!d||n.attr("value",r.toString(d,a.format,a.culture)),o[0]&&(t._resetHandler=function(){t.value(d||n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=o.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=r.template(this.options.ARIATemplate)},_createDateInput:function(e){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),e.dateInput&&(this._dateInput=new g.DateInput(this.element,{culture:e.culture,format:e.format,min:e.min,max:e.max,interval:e.interval}))},_calculateMidnight:function(e,t){return m(e)+m(t)===0},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element&&n.element.length&&n.element[0].removeAttribute(P),i&&(t=i._cell,t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr(P,t.attr("id")))},_popup:function(){var t=this,n=t.options,i=e("<div></div>").attr(B,"true").addClass("k-datetime-container k-group k-reset").appendTo(document.body);i.append(r.template(G)(t.options)),t.popup=new g.Popup(i,q(n.popup,n,{name:"Popup",isRtl:r.support.isRtl(t.wrapper),anchor:t.wrapper,activate:function(){t.options.timeView&&"scroll"===t.options.timeView.list&&(t.timeView.addTranslate(),t.timeView.applyValue(t._value),t.timeView._updateRanges())},open:function(){t.timeView._updateTitle()}})),i.on(y+k,".k-datetime-buttongroup .k-button",e.proxy(t._groupChangeClick,t)),i.on(y+k,".k-datetime-footer button.k-time-cancel",e.proxy(t._cancelClickHandler,t)),i.on(y+k,".k-datetime-footer button.k-time-accept",e.proxy(t._setClickHandler,t))},_groupChangeClick:function(t){var n,o;i(t),n=e(t.currentTarget),o=n.index(),o?this._switchToTimeView():this._switchToDateView(),this._toggleIcons()},_switchToDateView:function(){this.popup.element.find(".k-group-start, .k-group-end").removeClass($).eq(0).addClass($),this.popup.element.find(".k-datetime-wrap").removeClass("k-time-tab").addClass("k-date-tab")},_switchToTimeView:function(){this.timeView._updateRanges(),this.popup.element.find(".k-group-start, .k-group-end").removeClass($).eq(1).addClass($),this.popup.element.find(".k-datetime-wrap").removeClass("k-date-tab").addClass("k-time-tab")},_toggleIcons:function(){this._dateIcon.toggle(),this._timeIcon.toggle()},_cancelClickHandler:function(){this._value&&(this.value(this._value),this.dateView.value(this._value)),this.popup.close()},_setClickHandler:function(){var e=this._applyDateValue(),t=this.timeView._currentlySelected||new Date;e=e||new Date,this.timeView._updateCurrentlySelected(),e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),e=this._applyTimeValue(e),this._change(e),this.popup.close()}});g.plugin(K)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.daterangepicker.min",["kendo.core.min","kendo.multiviewcalendar.min","kendo.datepicker.min"],e)}(function(){return function(e,t){function n(e){e.preventDefault()}var i,o=window.kendo,r=o.ui,a=o.keys,s=r.Widget,l="month",d="open",c="close",u="change",h="<div />",p="min",f="max",m=o.template,g=e.extend,v="id",_=o.support,b=_.mobileOS,w="k-state-selected",k="aria-expanded",y="aria-disabled",x="k-state-disabled",C="disabled",S="readonly",T="k-state-default",D="aria-hidden",A=".kendoDateRangePicker",E="click"+A,I="mousedown"+A,M=_.mouseAndTouchPresent?o.applyEventMap("up",A.slice(1)):E,R=e.proxy,F=o.parseDate,P=function(e){o.DateView.call(this,e)};P.prototype=Object.create(o.DateView.prototype),P.prototype._calendar=function(){var t,i=this,a=i.calendar,s=i.options;a||(t=e(h).attr(v,o.guid()).appendTo(i.popup.element).on(I,n).on(E,"td:has(.k-link)",R(i._click,i)),i.calendar=a=new r.MultiViewCalendar(t),i._setOptions(s),o.calendar.makeUnselectable(a.element),a.navigate(i._value||i._current,s.start),i.calendar.selectRange(i._range||s.range||{}))},P.prototype._setOptions=function(e){this.calendar.setOptions({focusOnNav:!1,change:e.change,culture:e.culture,dates:e.dates,depth:e.depth,footer:e.footer,format:e.format,selectable:e.selectable,max:e.max,min:e.min,month:e.month,weekNumber:e.weekNumber,start:e.start,disableDates:e.disableDates,range:e.range})},P.prototype.range=function(e){this._range=e,this.calendar&&(e.start||e.end?this.calendar.selectRange(e):(this.calendar.selectRange(e),this.calendar.rangeSelectable.clear(!0)))},P.prototype.move=function(e){var t=this,n=e.keyCode,i=t.calendar,o=e.ctrlKey&&n==a.DOWN||n==a.ENTER,r=!1;if(e.altKey)n==a.DOWN?(t.open(),e.preventDefault(),r=!0):n==a.UP&&(t.close(),e.preventDefault(),r=!0);else if(t.popup.visible()){if(n==a.ESC||o&&i._cell.hasClass(w))return t.close(),e.preventDefault(),!0;t._current=i._move(e,!0),r=!0}return r},P.prototype._click=function(e){b.ios||b.android&&("firefox"==b.browser||"chrome"==b.browser)?this._range&&this._range.end&&this.close():this._range&&null===this._range.end&&e.currentTarget.className.indexOf("k-state-selected")!==-1&&this.close()},o.DateRangeView=P,i=s.extend({init:function(e,t){var n,i,r=this;s.fn.init.call(r,e,t),e=r.element,t=r.options,t.disableDates=o.calendar.disabled(t.disableDates),t.min=F(e.attr("min"))||F(t.min),t.max=F(e.attr("max"))||F(t.max),r._initialOptions=g({},t),r._buildHTML(),r._range=r.options.range,r._changeTriggered=!1,r.dateView=new P(g({},t,{id:e.attr(v),anchor:r.wrapper,views:2,selectable:"range",range:r._range,change:function(){var e=this.selectRange();r.range(e),r.trigger(u),r._changeTriggered=!0,r._startDateInput.trigger(u),r._endDateInput.trigger(u),r._changeTriggered=!1},close:function(e){r.trigger(c)?e.preventDefault():(r.wrapper.attr(k,!1),n.attr(D,!0))},open:function(e){r.trigger(d)?e.preventDefault():(r.wrapper.attr(k,!0),n.attr(D,!1),r._updateARIA())}})),n=r.dateView.div,r._ariaTemplate=m(this.options.ARIATemplate),r._reset(),r.wrapper.attr({role:"combobox","aria-expanded":!1,"aria-owns":r.dateView._dateViewID,autocomplete:"off"}),r._inputs.on(M+A,R(r._click,r)).on("keydown"+A,R(r._keydown,r)),r._initializeDateInputs(),i=e.is("[disabled]"),i?r.enable(!1):r.readonly(e.is("[readonly]"))},options:{name:"DateRangePicker",labels:!0,footer:"",format:"",culture:"",min:new Date(1900,0,1),max:new Date(2099,11,31),start:l,depth:l,animation:{},
month:{},startField:"",endField:"",dates:[],disableDates:null,range:null,ARIATemplate:'Current focused date is #=kendo.toString(data.current, "D")#',weekNumber:!1,messages:{startLabel:"Start",endLabel:"End"}},events:[d,c,u],setOptions:function(e){var t=this;s.fn.setOptions.call(t,e),e=t.options,e.min=F(e.min),e.max=F(e.max),t._inputs.off(A),this._initializeDateInputs(),t.dateView.setOptions(e),t._range=e.range},_click:function(){var e=this;e._preventInputAction||e.dateView.popup.visible()||e.dateView.open()},_keydown:function(e){var n=this,i=n.dateView,o=!1;return n._preventInputAction?(e.stopImmediatePropagation(),t):(o=i.move(e),n._updateARIA(i._current),o&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),t)},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element&&n.element.length&&n.element[0].removeAttribute("aria-activedescendant"),i&&(e&&!i._dateInViews(e)&&i.navigate(e),t=i._cellByDate(e||i.current()),i._focusCell(t),t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr("aria-activedescendant",t.attr("id")))},_startChange:function(e){var t=this,n=e.sender,i=n.value(),o=t._endDateInput.value();t.options.disableDates(i)&&(e.sender.value(null),i=null),t.range({start:i,end:o}),t._changeTriggered||t.trigger(u)},_endChange:function(e){var t=this,n=e.sender,i=n.value(),o=t._startDateInput.value();t.options.disableDates(i)&&(e.sender.value(null),i=null),t.range({start:o,end:i}),t._changeTriggered||t.trigger(u)},_initializeDateInputs:function(){var e=this,t=e.options,n=t.range||{},i={footer:t.footer,format:t.format,culture:t.culture,min:t.min,max:t.max,start:t.start,startField:t.startField,endField:t.endField,depth:t.depth,animation:t.animation,month:t.month,dates:t.dates,disableDates:t.disableDates,ARIATemplate:t.ARIATemplate,weekNumber:t.weekNumber};e._startDateInput&&(e._startDateInput.destroy(),e._endDateInput.destroy(),e.wrapper.empty(),e._buildHTML(),e._inputs.on(M+A,R(e._click,e)).on("keydown"+A,R(e._keydown,e))),e._startDateInput=e._startInput.kendoDateInput(g(!0,i,{value:n.start})).getKendoDateInput(),e._endDateInput=e._endInput.kendoDateInput(g(!0,i,{value:n.end})).getKendoDateInput(),e._startChangeHandler=R(e._startChange,e),e._startDateInput.bind(u,e._startChangeHandler),e._endChangeHandler=R(e._endChange,e),e._endDateInput.bind(u,e._endChangeHandler)},_buildHTML:function(){var t=this,n=t.element;t.wrapper||(t.wrapper=n.addClass("k-widget k-daterangepicker")),t.options.labels?(e('<span class="k-textbox-container"><input/><label class="k-label">'+t.options.messages.startLabel+"</label></span>").appendTo(t.wrapper),e('<span>&nbsp;</span><span class="k-textbox-container"><input/><label class="k-label">'+t.options.messages.endLabel+"</label></span>").appendTo(t.wrapper)):e("<input/><span>&nbsp;</span><input/>").appendTo(t.wrapper),t._startInput=t.wrapper.find("input").eq(0),t._endInput=t.wrapper.find("input").eq(1),""!==t.options.startField&&(t._startInput.attr(o.attr("bind"),"value: "+t.options.startField),t._startInput.attr("name",t.options.startField)),""!==t.options.endField&&(t._endInput.attr(o.attr("bind"),"value: "+t.options.endField),t._endInput.attr("name",t.options.endField)),t._inputs=t._startInput.add(t._endInput)},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=F(n,o.parseFormats,o.culture),n&&(o[e]=new Date((+n)),i.dateView[e](n)),t)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=o.on("reset",t._resetHandler))},_editable:function(t){var n=this,i=n._inputs,o=t.readonly,r=t.disable;o||r?(n.wrapper.addClass(r?x:T).removeClass(r?T:x),i.attr(C,r).attr(S,o).attr(y,r),n._preventInputAction=!0):(n.wrapper.addClass(T).removeClass(x),e.each(i,function(e,t){t.removeAttribute(C),t.removeAttribute(S)}),i.attr(y,!1),n._preventInputAction=!1)},destroy:function(){var e=this;e._startDateInput&&(e._startDateInput.unbind(u,e._startChangeHandler),e._startDateInput.destroy(),e._startChangeHandler=null),e._endDateInput&&(e._endDateInput.unbind(u,e._endChangeHandler),e._endDateInput.destroy(),e._endChangeHandler=null),e._form&&e._form.off("reset",e._resetHandler),e._inputs.off(A),e._inputs=null,e.dateView.destroy(),e.element.off(A),s.fn.destroy.call(e)},range:function(e){var n=this;return e===t?n._range:(n._range=e,n.dateView.range({start:null,end:null}),e||(n._startDateInput.value(null),n._endDateInput.value(null)),n._startDateInput.value(e.start?e.start:null),n._endDateInput.value(e.end?e.end:null),e.start&&!e.end?n.dateView.range({start:e.start,end:null}):e.start&&e.start&&+e.start<=+e.end&&n.dateView.range({start:e.start,end:e.end}),t)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(p,e)},max:function(e){return this._option(f,e)},readonly:function(e){this._startDateInput.readonly(e),this._endDateInput.readonly(e),this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._startDateInput.enable(e),this._endDateInput.enable(e),e||this.close(),this._editable({readonly:!1,disable:!(e=e===t||e)})}}),o.ui.plugin(i)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scrollview.min",["kendo.fx.min","kendo.data.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(e){return"k-"+e}var i,o,r,a,s,l,d,c,u,h=window.kendo,p=h.ui,f=e.proxy,m=h.effects.Transition,g=h.ui.Pane,v=h.ui.PaneDimensions,_=p.DataBoundWidget,b=h.data.DataSource,w=Math,k=w.abs,y=w.ceil,x=w.round,C=w.max,S=w.min,T=w.floor,D="change",A="click",E="changing",I="refresh",M="primary",R="scrollview-page",F="function",P="itemChange",z="cleanup",B=3,L=-1,H=0,N=1,O=-1,V=0,W=1,U=h.Observable.extend({init:function(e){var t=this;this.dataSource=e,this.pendingRequestArray=[],this.initialFetch=!1,this.useRanges=e.options.serverPaging,h.Observable.fn.init.call(this),e.bind("change",function(){t._change()})},_change:function(){this.trigger("reset",{offset:this.offset})},page:function(e,t){var n=this;this.useRanges||(this.dataSource.page(e+1),t?t(n.dataSource.view()):n.trigger("page",{page:e})),this.useRanges&&this.dataSource.range(e*this.dataSource.pageSize(),this.dataSource.pageSize(),function(){t?t(n.dataSource.view()):n.trigger("page",{page:e})})},scrollTo:function(e){var t=Math.ceil(this.dataSource.total()/this.dataSource.pageSize()||1),n=e-1,i=n-1,o=e,r=t>0&&e+1>=t?-1:e+1,a=t>0&&r+1>=t?-1:r+1;r>=0&&this.pendingRequestArray.push(r),n>=0&&this.pendingRequestArray.push(n),i>=0&&this.pendingRequestArray.push(i),a>=0&&this.pendingRequestArray.push(a),this.page(o)},getViewData:function(){var e,t,n=this.dataSource.view();if(this.dataSource.options.pageSize>1)for(e=[],t=0;t<n.length;t++)e.push(n[t]);else e=n[0];return e},destroy:function(){var e=this;e.dataSource.unbind(),e.dataSource=null}});h.ui.ScrollViewDataReader=U,i=h.Class.extend({init:function(t){var i=this,o=e("<ul class='"+n("scrollview-nav")+"'/>"),r=e("<div class='"+n("scrollview-nav-wrap")+"'></div>");r.append(o),t._navigationContainer.append(r),this._changeProxy=f(i,"_change"),this._refreshProxy=f(i,"_refresh"),t.bind(D,this._changeProxy),t.bind(I,this._refreshProxy),o.on(A,"li.k-link",f(this._click,t)),e.extend(i,{element:o,scrollView:t})},items:function(){return this.element.children()},_refresh:function(e){var t,i="";for(t=0;t<e.pageCount;t++)i+='<li class="k-link"></li>';this.element.html(i),this.items().eq(e.page).addClass(n(M)),this.scrollView._toggleNavigation({currentPage:e.page})},_change:function(e){var t,i,o,r,a,s;e.isDefaultPrevented()||(t=this.scrollView._navigationContainer.find(".k-scrollview-nav"),i=this.scrollView.element.width(),o=(i-t.width())/2,r=t.find("li.k-link:eq(0)").outerWidth(!0)/2,this.items().removeClass(n(M)).eq(e.nextPage).addClass(n(M)),a=this.items().eq(e.nextPage).length>0?this.items().eq(e.nextPage).position().left:0,(a>i/2||a<h.scrollLeft(t)+i/2)&&(s=0,s=a>i/2?h.scrollLeft(t)+a-i/2:h.scrollLeft(t)-(i/2-a),s+=o+r,t.animate({scrollLeft:s},300)),this.scrollView._toggleNavigation({currentPage:e.currentPage,nextPage:e.nextPage}))},_click:function(t){var n=e(t.currentTarget).index();this.scrollTo(n)},destroy:function(){this.scrollView.unbind(D,this._changeProxy),this.scrollView.unbind(I,this._refreshProxy),this.element.off(A),this.element.remove()}}),h.ui.ScrollViewPager=i,o="transitionEnd",r="dragStart",a="dragEnd",s=h.Observable.extend({init:function(t,n){var i,s,l,d,c,u,p=this;h.Observable.fn.init.call(this),this.element=t,this.container=t.parent(),i=new h.ui.Movable(p.element),s=new m({axis:"x",movable:i,onEnd:function(){p.trigger(o)}}),l=new h.UserEvents(t,{fastTap:!0,start:function(e){2*k(e.x.velocity)>=k(e.y.velocity)?l.capture():l.cancel(),p.trigger(r,e),s.cancel()},allowSelection:!0,end:function(e){p.trigger(a,e)}}),d=new v({element:p.element,container:p.container}),c=d.x,c.bind(D,function(){p.trigger(D)}),u=new g({dimensions:d,userEvents:l,movable:i,elastic:!0}),e.extend(p,{duration:n&&n.duration||1,movable:i,transition:s,userEvents:l,dimensions:d,dimension:c,pane:u}),this.bind([o,r,a,D],n)},size:function(){return{width:this.dimensions.x.getSize(),height:this.dimensions.y.getSize()}},total:function(){return this.dimension.getTotal()},offset:function(){return-this.movable.x},updateDimension:function(){this.dimension.update(!0)},refresh:function(){this.dimensions.refresh(),this.dimensions.y.enabled=!1},moveTo:function(e){this.movable.moveAxis("x",-e)},transitionTo:function(e,t,n){n?this.moveTo(-e):this.transition.moveTo({location:e,duration:this.duration,ease:t})},destroy:function(){var e=this;e.userEvents.destroy(),e.unbind(),e.movable=e.tansition=e.dimensions=e.dimension=e.pane=null,e.element.remove()}}),h.ui.ScrollViewElasticPane=s,l=h.Observable.extend({init:function(e,t,n){var i=this;h.Observable.fn.init.call(this),i.element=e,i.pane=t,i._getPages(),this.page=0,this.pageSize=n.pageSize||1,this.contentHeight=n.contentHeight,this.enablePager=n.enablePager,this.pagerOverlay=n.pagerOverlay},scrollTo:function(e,n){var i=this;(e!=i.page||n)&&(i.trigger("resize",{currentPage:this.page,nextPage:e,data:t})||(i.page=e,i.pane.transitionTo(-e*i.pane.size().width,m.easeOutExpo,n)))},paneMoved:function(e,n,i,o){var r,a,s,l=this,d=l.pane,c=d.size().width*l.pageSize,u=x,h=n?m.easeOutBack:m.easeOutExpo;return e===O?u=y:e===W&&(u=T),a=u(d.offset()/c),a<0||a>=l.pageCount?(s=a<0?0:-this.page*this.pane.size().width,this.pane.transitionTo(s,h,o)):(r=C(l.minSnap,S(-a*c,l.maxSnap)),a!=l.page&&i&&i({currentPage:l.page,nextPage:a})&&(r=-l.page*d.size().width),d.transitionTo(r,h,o),t)},updatePage:function(){var e=this.pane,t=x(e.offset()/e.size().width);return t!=this.page&&(this.page=t,!0)},forcePageUpdate:function(){return this.updatePage()},resizeTo:function(e){var t,n,i=this.pane,o=e.width;this.pageElements.width(o),"100%"===this.contentHeight&&(t=this.element.parent().height(),this.enablePager===!0&&(n=this.element.parent().find("ul.k-scrollview-nav"),!this.pagerOverlay&&n.length&&(t-=h._outerHeight(n,!0))),this.element.css("height",t),this.pageElements.css("height",t)),i.updateDimension(),this._paged||(this.page=T(i.offset()/o)),this.scrollTo(this.page,!0,!0),this.pageCount=T(i.total()/o),this.minSnap=-(this.pageCount-1)*o,this.maxSnap=0},_getPages:function(){this.pageElements=this.element.find(h.roleSelector("page")),this._paged=this.pageElements.length>0},destroy:function(){var e=this;e.pane=null,e.element.remove()}}),h.ui.ScrollViewContent=l,d=h.Observable.extend({init:function(e,t,n){var i=this;h.Observable.fn.init.call(this),i.element=e,i.pane=t,i.options=n,i._templates(),i.page=n.page||0,i.pages=[],i._initPages(),i.resizeTo(i.pane.size()),i.pane.dimension.forceEnabled()},setDataSource:function(e){this.dataSource=b.create(e),this._dataReader(),this._pendingPageRefresh=!1,this._pendingWidgetRefresh=!1},_viewShow:function(){var e=this;e._pendingWidgetRefresh&&(setTimeout(function(){e._resetPages()},0),e._pendingWidgetRefresh=!1)},_dataReader:function(){this.dataReader=new U(this.dataSource),this._pageProxy=f(this,"_onPage"),this._resetProxy=f(this,"_onReset"),this.dataReader.bind({page:this._pageProxy,reset:this._resetProxy})},_templates:function(){var e=this.options.template,t=this.options.emptyTemplate,n={},i={};typeof e===F&&(n.template=e,e="#=this.template(data)#"),this.template=f(h.template(e),n),typeof t===F&&(i.emptyTemplate=t,t="#=this.emptyTemplate(data)#"),this.emptyTemplate=f(h.template(t),i)},_initPages:function(){var e,t,n=this.pages,i=this.element;for(t=0;t<B;t++)e=new c(i),n.push(e);this.pane.updateDimension()},resizeTo:function(e){var t,n,i,o=this.pages,r=this.pane;for(t=0;t<o.length;t++)o[t].setWidth(e.width);"auto"===this.options.contentHeight?this.element.css("height",this.pages[1].element.height()):"100%"===this.options.contentHeight?(n=this.element.parent().height(),this.options.enablePager===!0&&(i=this.element.parent().find("ul.k-scrollview-nav"),!this.options.pagerOverlay&&i.length&&(n-=h._outerHeight(i,!0))),this.element.css("height",n),o[0].element.css("height",n),o[1].element.css("height",n),o[2].element.css("height",n)):this.options.contentHeight&&(o[0].element.css("height",this.options.contentHeight),o[1].element.css("height",this.options.contentHeight),o[2].element.css("height",this.options.contentHeight)),r.updateDimension(),this._repositionPages(),this.width=e.width},scrollTo:function(e,n,i){var o=this,r=o.dataReader;(e!=o.page||n)&&r.page(e,function(a){return i?(r.scrollTo(e),t):(o.trigger("resize",{currentPage:o.page,nextPage:e,data:a})||(n?o.page=e:(r.pagerScroll=e>o.page?-1:1,o.page=e+r.pagerScroll),r.scrollTo(e)),t)})},paneMoved:function(e,n,i,o){var r,a,s,l=this,d=l.pane,c=d.size().width,u=d.offset(),p=Math.abs(u)>=c/3,f=n?h.effects.Transition.easeOutBack:h.effects.Transition.easeOutExpo,m=!!l.dataSource.options.serverPaging&&l.page+2>l.pageCount,g=0;e===W?0!==l.page&&(g=-1):e!==O||m?u>0&&p&&!m?g=1:u<0&&p&&0!==l.page&&(g=-1):g=1,r=l.page,g&&(r=g>0?r+1:r-1,l instanceof h.ui.VirtualScrollViewContent?(l.dataReader.page(r),a=l.dataReader.getViewData()):a=t,a instanceof Array||(a=[a]),s=l.pages?l.pages[1].element:t),i&&l.page!=r&&i({currentPage:l.page,nextPage:r,element:s,data:a})&&(g=0),0===g?l._cancelMove(f,o):g===-1?l._moveBackward(o):1===g&&l._moveForward(o)},updatePage:function(){var e=this.pages;return 0!==this.pane.offset()&&(this.pane.offset()>0?(e.push(this.pages.shift()),this.page++,this.page+2<this.pageCount&&this.dataReader.pendingRequestArray.push(this.page+2),this.page+1<this.pageCount&&this.dataReader.page(this.page+1),this.page+1==this.pageCount&&this.setPageContent(this.pages[2],null)):(e.unshift(this.pages.pop()),this.page--,this.page-2>=0&&this.dataReader.pendingRequestArray.push(this.page-2),this.page-1>=0&&this.dataReader.page(this.page-1)),this._repositionPages(),this._resetMovable(),!0)},forcePageUpdate:function(){var e=this.pane.offset(),t=3*this.pane.size().width/4;return k(e)>t&&this.updatePage()},_resetMovable:function(){this.pane.moveTo(0)},_moveForward:function(e){this.pane.transitionTo(-this.width,h.effects.Transition.easeOutExpo,e)},_moveBackward:function(e){this.pane.transitionTo(this.width,h.effects.Transition.easeOutExpo,e)},_cancelMove:function(e,t){this.pane.transitionTo(0,e,t)},_resetPages:function(){this.page=this.options.page||0,this._repositionPages(),this.trigger("reset")},_onPage:function(e){if(e.page>=this.pageCount&&this.setPageContent(this.pages[2],null),this.page==e.page?!this.dataReader.pagerScroll||0===this.dataReader.pagerScroll&&this.dataReader.initialFetch?this.setPageContent(this.pages[1],this.dataReader.getViewData()):(this.dataReader.pagerScroll<0?this._moveForward():this._moveBackward(),this.dataReader.pagerScroll=0,this.setPageContent(this.pages[1],this.dataReader.getViewData())):this.page+1==e.page?this.setPageContent(this.pages[2],this.dataReader.getViewData()):this.page-1==e.page&&this.setPageContent(this.pages[0],this.dataReader.getViewData()),this.dataReader.pendingRequestArray.length>0&&this.dataReader.initialFetch){var t=this.dataReader.pendingRequestArray.shift();this.dataReader.page(t)}},_onReset:function(){this.pageCount=y(this.dataSource.total()/this.dataSource.pageSize())},_repositionPages:function(){var e=this.pages;e[0].position(L),e[1].position(H),e[2].position(N)},setPageContent:function(e,n){var i=this.template,o=this.emptyTemplate;e.content(null!==n&&n!==t?i(n):o({}))},destroy:function(){var e,t=this,n=t.pages;for(t.dataReader.unbind(),t.dataSource.unbind(),t.dataReader=t.dataSource=t.pane=null,e=0;e<n.length;e++)n[e].destroy();t.element.remove()}}),h.ui.VirtualScrollViewContent=d,c=h.Class.extend({init:function(t){this.element=e("<li class='"+n(R)+"'></li>"),this.width=t.width(),this.element.width(this.width),t.append(this.element)},content:function(e){this.element.html(e)},position:function(e){this.element.css("transform","translate3d("+this.width*e+"px, 0, 0)")},setWidth:function(e){this.width=e,this.element.width(e)},destroy:function(){var e=this;e.element.remove(),e.element=null}}),h.ui.VirtualPage=c,u=_.extend({init:function(e,t){var o,r,a=this;_.fn.init.call(a,e,t),t=a.options,e=a.element,h.stripWhitespace(e[0]),e.wrapInner(0===e.children().length?"<ul class='k-scrollview-wrap'/>":"<div class='k-scrollview-wrap'/>"),e.addClass("k-widget "+n("scrollview")),a._initNavigation(),this.options.enablePager?(this.pager=new i(this),this.options.pagerOverlay&&e.addClass(n("scrollview-overlay"))):(this._changeProxy=f(a,"_toggleNavigation"),this.bind(D,this._changeProxy)),a.inner=e.children().first(),a.page=0,a.inner.css("height",t.contentHeight),a.pane=new s(a.inner,{duration:this.options.duration,transitionEnd:f(this,"_transitionEnd"),dragStart:f(this,"_dragStart"),dragEnd:f(this,"_dragEnd"),change:f(this,I)}),a.bind("resize",function(){a.pane.refresh()}),a.page=t.page,o=0===this.inner.children().length,r=o?new d(a.inner,a.pane,t):new l(a.inner,a.pane,t),r.page=a.page,r.bind("reset",function(){this._pendingPageRefresh=!1,a.trigger(I,{pageCount:r.pageCount,page:r.page}),a._toggleNavigation({currentPage:r.page,nextPage:r.page})}),r.bind("resize",function(e){var t=r.page,n=e.nextPage;t!=n&&(e._defaultPrevented=a.trigger(D,{currentPage:r.page,nextPage:e.nextPage,data:e.data})),a._toggleNavigation({currentPage:r.page,nextPage:e.nextPage})}),r.bind(P,function(e){a.trigger(P,e),a.angular("compile",function(){return{elements:e.item,data:[{dataItem:e.data}]}})}),r.bind(z,function(e){a.angular("cleanup",function(){return{elements:e.item}})}),a._content=r,a.setDataSource(t.dataSource),this.viewInit(),this.viewShow()},options:{name:"ScrollView",page:0,duration:400,velocityThreshold:.8,contentHeight:"auto",pageSize:1,bounceVelocityThreshold:1.6,enablePager:!0,enableNavigationButtons:!0,pagerOverlay:!0,autoBind:!0,template:"",emptyTemplate:""},events:[E,D,I],destroy:function(){_.fn.destroy.call(this),this._content.destroy(),this.pane.destroy(),this.pager&&this.pager.destroy(),this.inner=null,h.destroy(this.element)},viewInit:function(){this.options.autoBind&&this._content.scrollTo(this._content.page,!0,!0)},viewShow:function(){this.pane.refresh()},refresh:function(){var e=this._content,t=this.options;e.resizeTo(this.pane.size()),this.page=e.page,(e instanceof l||e.dataReader.initialFetch)&&(t.enablePager?this.trigger(I,{pageCount:e.pageCount,page:e.page}):this.trigger(D,{pageCount:e.pageCount,currentPage:e.page}))},content:function(e){this.element.children().first().html(e),this._content._getPages(),this.pane.refresh()},scrollTo:function(e,t,n){this._content.scrollTo(e,t,n)},prev:function(){var e=this,n=e._content.page-1;e._content instanceof d?e._content.paneMoved(W,t,function(t){return e.trigger(D,t)}):n>-1&&e.scrollTo(n)},next:function(){var e=this,n=e._content.page+1;e._content instanceof d?e._content.paneMoved(O,t,function(t){return e.trigger(D,t)}):n<e._content.pageCount&&e.scrollTo(n)},setDataSource:function(e){var t,n=this;this._content instanceof d&&(t=!e,e instanceof b?(e.options.pageSize=e.options.pageSize||1,this.dataSource=e=new b(e.options)):this.dataSource=b.create(e),this._content.setDataSource(this.dataSource),this.options.autoBind&&!t&&this.dataSource.fetch(function(){n._content.dataReader.initialFetch=!0,n.scrollTo(n._content.page,!0,!0),n._content.trigger("reset")}))},items:function(){return this.element.find(".k-"+R)},_dragStart:function(){this._content.forcePageUpdate()},_dragEnd:function(e){var t=this,n=e.x.velocity,i=this.options.velocityThreshold,o=V,r=k(n)>this.options.bounceVelocityThreshold;n>i?o=W:n<-i&&(o=O),this._content.paneMoved(o,r,function(e){return t.trigger(D,e)})},_transitionEnd:function(){this._content.updatePage()},_initNavigation:function(){var t=this,n=t._navigationContainer=e("<div class='k-scrollview-elements'></div>"),i=e('<a class="k-scrollview-prev"><span class="k-icon k-i-arrowhead-w"></span></a>').hide(),o=e('<a class="k-scrollview-next"><span class="k-icon k-i-arrowhead-e"></span></a>').hide();n.append(i),n.append(o),t.element.append(n),n.on(A,"a.k-scrollview-prev",f(t.prev,t)),n.on(A,"a.k-scrollview-next",f(t.next,t))},_toggleNavigation:function(e){var t=e.nextPage||0===e.nextPage?e.nextPage:e.currentPage,n=this._navigationContainer,i=n.find(">a.k-scrollview-prev"),o=n.find(">a.k-scrollview-next");i.hide(),o.hide(),(t||0===t)&&(0!==t&&i.show(),t!=this._content.pageCount-1&&o.show())}}),p.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.splitter.min",["kendo.resizable.min"],e)}(function(){return function(e,t){function n(e){return v.test(e)}function i(e){return g.test(e)||/^\d+$/.test(e)}function o(e){return!n(e)&&!i(e)}function r(e,t){var i=parseInt(e,10);return n(e)&&(i=Math.floor(i*t/100)),i}function a(e,n){return function(i,o){var r,a=this.element.find(i).data(E);return 1==arguments.length?a[e]:(a[e]=o,n&&(r=this.element.data("kendo"+this.options.name),r.resize(!0)),t)}}function s(e){var t=this,n=e.orientation;t.owner=e,t._element=e.element,t.orientation=n,p(t,n===S?d:l),t._resizable=new c.ui.Resizable(e.element,{orientation:n,handle:".k-splitbar-draggable-"+n+"[data-marker="+e._marker+"]",hint:f(t._createHint,t),start:f(t._start,t),max:f(t._max,t),min:f(t._min,t),invalidClass:"k-restricted-size-"+n,resizeend:f(t._stop,t)})}var l,d,c=window.kendo,u=c.ui,h=c.keys,p=e.extend,f=e.proxy,m=u.Widget,g=/^\d+(\.\d+)?px$/i,v=/^\d+(\.\d+)?%$/i,_=".kendoSplitter",b="expand",w="collapse",k="contentLoad",y="error",x="resize",C="layoutChange",S="horizontal",T="vertical",D="mouseenter",A="click",E="pane",I="mouseleave",M="k-state-focused",R="k-"+E,F="."+R,P=m.extend({init:function(e,t){var n,i=this;m.fn.init.call(i,e,t),i.wrapper=i.element,i.options.orientation&&(n=i.options.orientation.toLowerCase()!=T),i.orientation=n?S:T,i._dimension=n?"width":"height",i._keys={decrease:n?h.LEFT:h.UP,increase:n?h.RIGHT:h.DOWN},i._resizeStep=10,i._marker=c.guid().substring(0,8),i._initPanes(),i.resizing=new s(i),i.element.triggerHandler("init"+_)},events:[b,w,k,y,x,C],_addOverlays:function(){this._panes().append("<div class='k-splitter-overlay k-overlay' />")},_removeOverlays:function(){this._panes().children(".k-splitter-overlay").remove()},_attachEvents:function(){var t=this,n=t.options.orientation;t.element.children(".k-splitbar-draggable-"+n).on("keydown"+_,f(t._keydown,t)).on("mousedown"+_,function(e){e.currentTarget.focus()}).on("focus"+_,function(t){e(t.currentTarget).addClass(M)}).on("blur"+_,function(n){e(n.currentTarget).removeClass(M),t.resizing&&t.resizing.end()}).on(D+_,function(){e(this).addClass("k-splitbar-"+t.orientation+"-hover")}).on(I+_,function(){e(this).removeClass("k-splitbar-"+t.orientation+"-hover")}).on("mousedown"+_,f(t._addOverlays,t)).end().children(".k-splitbar").on("dblclick"+_,f(t._togglePane,t)).children(".k-collapse-next, .k-collapse-prev").on(A+_,t._arrowClick(w)).end().children(".k-expand-next, .k-expand-prev").on(A+_,t._arrowClick(b)).end().end(),e(window).on("resize"+_+t._marker,f(t.resize,t,!1)),e(document).on("mouseup"+_+t._marker,f(t._removeOverlays,t))},_detachEvents:function(){var t=this;t.element.children(".k-splitbar-draggable-"+t.orientation).off(_).end().children(".k-splitbar").off("dblclick"+_).children(".k-collapse-next, .k-collapse-prev, .k-expand-next, .k-expand-prev").off(_),e(window).off(_+t._marker),e(document).off(_+t._marker)},options:{name:"Splitter",orientation:S,panes:[]},destroy:function(){m.fn.destroy.call(this),this._detachEvents(),this.resizing&&this.resizing.destroy(),c.destroy(this.element),this.wrapper=this.element=null},_keydown:function(t){var n,i=this,o=t.keyCode,r=i.resizing,a=e(t.currentTarget),s=i._keys,l=o===s.increase,d=o===s.decrease;l||d?(t.ctrlKey?(n=a[d?"next":"prev"](),r&&r.isResizing()&&r.end(),n[i._dimension]()?i._triggerAction(w,a[d?"prev":"next"]()):i._triggerAction(b,n)):r&&r.move((d?-1:1)*i._resizeStep,a),t.preventDefault()):o===h.HOME?(r.move(-r._maxPosition,a),t.preventDefault()):o===h.END?(r.move(r._maxPosition,a),t.preventDefault()):o===h.ENTER&&r&&(r.end(),t.preventDefault())},_initPanes:function(){var e=this.options.panes||[],t=this;this.element.addClass("k-widget").addClass("k-splitter").children().each(function(n,i){"script"!=i.nodeName.toLowerCase()&&t._initPane(i,e[n])}),this.resize()},_initPane:function(t,n){t=e(t).attr("role","group").addClass(R),t.data(E,n?n:{}).toggleClass("k-scrollable",!n||n.scrollable!==!1),this.ajaxRequest(t)},ajaxRequest:function(e,t,n){var i,o=this;e=o.element.find(e),i=e.data(E),t=t||i.contentUrl,t&&(e.append("<span class='k-icon k-i-loading k-pane-loading' />"),c.isLocalUrl(t)?jQuery.ajax({url:t,data:n||{},type:"GET",dataType:"html",success:function(t){o.angular("cleanup",function(){return{elements:e.get()}}),e.html(t),o.angular("compile",function(){return{elements:e.get()}}),o.trigger(k,{pane:e[0]})},error:function(t,n){o.trigger(y,{pane:e[0],status:n,xhr:t})}}):e.removeClass("k-scrollable").html("<iframe src='"+t+"' frameborder='0' class='k-content-frame'>This page requires frames in order to show content</iframe>"))},_triggerAction:function(e,t){this.trigger(e,{pane:t[0]})||this[e](t[0])},_togglePane:function(t){var n,i=this,o=e(t.target);o.closest(".k-splitter")[0]==i.element[0]&&(n=o.children(".k-icon:not(.k-resize-handle)"),1===n.length&&(n.is(".k-collapse-prev")?i._triggerAction(w,o.prev()):n.is(".k-collapse-next")?i._triggerAction(w,o.next()):n.is(".k-expand-prev")?i._triggerAction(b,o.prev()):n.is(".k-expand-next")&&i._triggerAction(b,o.next())))},_arrowClick:function(t){var n=this;return function(i){var o,r=e(i.target);r.closest(".k-splitter")[0]==n.element[0]&&(o=r.is(".k-"+t+"-prev")?r.parent().prev():r.parent().next(),n._triggerAction(t,o))}},_updateSplitBar:function(e,t,n){var i=function(e,t){return t?"<div class='k-icon "+e+"'></div>":""},o=this.orientation,r=t.resizable!==!1&&n.resizable!==!1,a=t.collapsible,s=t.collapsed,l=n.collapsible,d=n.collapsed;e.addClass("k-splitbar k-state-default k-splitbar-"+o).attr("role","separator").attr("aria-expanded",!(s||d)).removeClass("k-splitbar-"+o+"-hover").toggleClass("k-splitbar-draggable-"+o,r&&!s&&!d).toggleClass("k-splitbar-static-"+o,!r&&!a&&!l).html(i("k-collapse-prev k-i-arrow-60-up",a&&!s&&!d&&o==T)+i("k-collapse-prev k-i-arrow-60-left",a&&!s&&!d&&o==S)+i("k-expand-prev k-i-arrow-60-down",a&&s&&!d&&o==T)+i("k-expand-prev k-i-arrow-60-right",a&&s&&!d&&o==S)+i("k-resize-handle k-i-hbar",r&&o==T)+i("k-resize-handle k-i-vbar",r&&o==S)+i("k-collapse-next k-i-arrow-60-down",l&&!d&&!s&&o==T)+i("k-collapse-next k-i-arrow-60-right",l&&!d&&!s&&o==S)+i("k-expand-next k-i-arrow-60-up",l&&d&&!s&&o==T)+i("k-expand-next k-i-arrow-60-left",l&&d&&!s&&o==S)),r||a||l||e.removeAttr("tabindex")},_updateSplitBars:function(){var t=this;this.element.children(".k-splitbar").each(function(){var n=e(this),i=n.prevAll(F).first().data(E),o=n.nextAll(F).first().data(E);o&&t._updateSplitBar(n,i,o)})},_removeSplitBars:function(){this.element.children(".k-splitbar").remove()},_panes:function(){return this.element?this.element.children(F):e()},_resize:function(){var n,i,a,s,l,d,u,h,p,f,m=this,g=m.element,v=g.children(F),_=m.orientation==S,b=g.children(".k-splitbar"),w=b.length,k=_?"width":"height",y=g[k]();m.wrapper.addClass("k-splitter-resizing"),0===w?(w=v.length-1,v.slice(0,w).after("<div tabindex='0' class='k-splitbar' data-marker='"+m._marker+"' />"),m._updateSplitBars(),b=g.children(".k-splitbar")):m._updateSplitBars(),b.each(function(){y-=this[_?"offsetWidth":"offsetHeight"]}),n=0,i=0,a=e(),v.css({position:"absolute",top:0})[k](function(){var s,l=e(this),d=l.data(E)||{};if(l.removeClass("k-state-collapsed"),d.collapsed)s=d.collapsedSize?r(d.collapsedSize,y):0,l.css("overflow","hidden").addClass("k-state-collapsed");else{if(o(d.size))return a=a.add(this),t;s=r(d.size,y)}return i++,n+=s,s}),y-=n,s=a.length,l=Math.floor(y/s),a.slice(0,s-1).css(k,l).end().eq(s-1).css(k,y-(s-1)*l),d=0,u=_?"height":"width",h=_?"left":"top",p=_?"offsetWidth":"offsetHeight",0===s&&(f=v.filter(function(){return!(e(this).data(E)||{}).collapsed}).last(),f[k](y+f[0][p])),g.children().css(u,g[u]()).each(function(e,t){"script"!=t.tagName.toLowerCase()&&(t.style[h]=Math.floor(d)+"px",d+=t[p])}),m._detachEvents(),m._attachEvents(),m.wrapper.removeClass("k-splitter-resizing"),c.resize(v),m.trigger(C)},toggle:function(e,n){var i,o=this;e=o.element.find(e),i=e.data(E),(n||i.collapsible)&&(1==arguments.length&&(n=i.collapsed!==t&&i.collapsed),i.collapsed=!n,i.collapsed?e.css("overflow","hidden"):e.css("overflow",""),o.resize(!0))},collapse:function(e){this.toggle(e,!1)},expand:function(e){this.toggle(e,!0)},_addPane:function(e,t,n){var i=this;return n.length&&(i.options.panes.splice(t,0,e),i._initPane(n,e),i._removeSplitBars(),i.resize(!0)),n},append:function(t){t=t||{};var n=this,i=e("<div />").appendTo(n.element);return n._addPane(t,n.options.panes.length,i)},insertBefore:function(t,n){n=e(n),t=t||{};var i=this,o=i.wrapper.children(".k-pane").index(n),r=e("<div />").insertBefore(e(n));return i._addPane(t,o,r)},insertAfter:function(t,n){n=e(n),t=t||{};var i=this,o=i.wrapper.children(".k-pane").index(n),r=e("<div />").insertAfter(e(n));return i._addPane(t,o+1,r)},remove:function(t){var n=this;return t=n.wrapper.find(t),t.length&&(c.destroy(t),t.each(function(t,i){n.options.panes.splice(n.wrapper.children(".k-pane").index(i),1),e(i).remove()}),n._removeSplitBars(),n.options.panes.length&&n.resize(!0)),n},size:a("size",!0),min:a("min"),max:a("max")});u.plugin(P),l={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},d={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"},s.prototype={press:function(e){this._resizable.press(e)},move:function(e,t){this.pressed||(this.press(t),this.pressed=!0),this._resizable.target||this._resizable.press(t),this._resizable.move(e)},end:function(){this._resizable.end(),this.pressed=!1},destroy:function(){this._resizable.destroy(),this._resizable=this._element=this.owner=null},isResizing:function(){return this._resizable.resizing},_createHint:function(t){var n=this;return e("<div class='k-ghost-splitbar k-ghost-splitbar-"+n.orientation+" k-state-default' />").css(n.alternateSizingProperty,t[n.alternateSizingProperty]())},_start:function(t){var n=this,o=e(t.currentTarget),r=o.prev(),a=o.next(),s=r.data(E),l=a.data(E),d=parseInt(r[0].style[n.positioningProperty],10),c=parseInt(a[0].style[n.positioningProperty],10)+a[0][n.sizingDomProperty]-o[0][n.sizingDomProperty],u=parseInt(n._element.css(n.sizingProperty),10),h=function(e){var t=parseInt(e,10);return(i(e)?t:u*t/100)||0},p=h(s.min),f=h(s.max)||c-d,m=h(l.min),g=h(l.max)||c-d;n.previousPane=r,n.nextPane=a,n._maxPosition=Math.min(c-m,d+f),n._minPosition=Math.max(d+p,c-g)},_max:function(){
return this._maxPosition},_min:function(){return this._minPosition},_stop:function(t){var n,i,r,a,s,l,d,u,h=this,p=e(t.currentTarget),f=h.owner;return f._panes().children(".k-splitter-overlay").remove(),t.keyCode!==c.keys.ESC&&(n=t.position,i=p.prev(),r=p.next(),a=i.data(E),s=r.data(E),l=n-parseInt(i[0].style[h.positioningProperty],10),d=parseInt(r[0].style[h.positioningProperty],10)+r[0][h.sizingDomProperty]-n-p[0][h.sizingDomProperty],u=h._element.children(F).filter(function(){return o(e(this).data(E).size)}).length,(!o(a.size)||u>1)&&(o(a.size)&&u--,a.size=l+"px"),(!o(s.size)||u>1)&&(s.size=d+"px"),f.resize(!0)),!1}}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.view.min",["kendo.core.min"],e)}(function(){return kendo.ui.scheduler={},function(e){function t(e,t){function n(e,o){var r,a;if(o=o[t])for(r=i[e]=i[e]||[],a=0;a<o.length;a++)r.push(o[a]),n(e+1,o[a])}var i=[];return n(0,e),i}function n(){return x.support.cssBorderSpacing?"":'cellspacing="0"'}function i(e,t){return e.length?'<table role="presentation"'+n()+' class="'+x.trim("k-scheduler-table "+(t||""))+'"><tr>'+e.join("</tr><tr>")+"</tr></table>":""}function o(e,t){return e.length?"<div style='position:relative'>"+i(e,t)+"</div>":""}function r(t,n,o){var r,a=[];if(o>0)for(r=0;r<t;r++)a.push("<th>&#8203;</th>");return n&&a.push('<th class="k-scheduler-times-all-day">'+n.text+"</th>"),o<1?e():e('<div class="k-scheduler-times">'+i(a)+"</div>")}function a(t,n,r){var a,s,l,d,c,u,h,p,f,m,g=[];for(s=0;s<t.length;s++){for(l=t[s],d=[],c=n/l.length,a=0;a<l.length;a++)u=l[a],d.push('<th colspan="'+(u.colspan||c)+'" class="'+(u.className||"")+'">'+u.text+"</th>");g.push(d.join(""))}if(h=[],r){for(p=t[t.length-1],f=[],m=r.cellContent,a=0;a<p.length;a++)f.push('<td class="'+(p[a].className||"")+'">'+(m?m(a):"&nbsp;")+"</td>");h.push(f.join(""))}return e('<div class="k-scheduler-header k-state-default"><div class="k-scheduler-header-wrap">'+i(g)+o(h,"k-scheduler-header-all-day")+"</div></div>")}function s(t,n,o){var r,a,s,l,d,c,u=Array(n).join().split(","),h=[];for(a=0;a<t.length;a++)for(s=t[a],l=n/s.length,r=0;r<s.length;r++)d=s[r].className||"",c=s[r].text,s[r].allDay&&(d="k-scheduler-times-all-day"),o&&d.indexOf("k-scheduler-group-cell")!==-1&&(c='<span class="k-scheduler-group-text">'+c+"</span>"),u[l*r]+='<th class="'+d+'" rowspan="'+l+'">'+c+"</th>";for(r=0;r<n;r++)h.push(u[r]);return n<1?e():e('<div class="k-scheduler-times">'+i(h)+"</div>")}function l(){return e('<div class="k-scheduler-content"><table role="presentation"'+n()+' class="k-scheduler-table"></table></div>')}function d(){return w=w?w:x.support.scrollbar()}function c(e,t,n){var i,o,r,a,s;for(i=e.length-1;i>=0;i--)o=u(e[i]),r=o.start,s=o.end,a=r<=t&&s>=t,(a||r>=t&&s<=n||t<=r&&n>=r)&&(r<t&&(t=r),s>n&&(n=s));return h(e,t,n)}function u(e){return{start:e.start,end:e.end}}function h(e,t,n){var i,o,r=[];for(i=0;i<e.length;i++)o=u(e[i]),(o.start<t&&o.end>t||o.start>=t&&o.end<=n)&&r.push(e[i]);return r}function p(e){return m(e)}function f(e){return m(e)}function m(e){var t,n,i,o,r,a,s,l=[];for(t=0;t<e.length;t++){for(n=e[t],i=u(n),o=null,r=0,a=l.length;r<a;r++)if(s=i.start>l[r].end,i.start<l[r].start||s){o=l[r],o.end<i.end&&(o.end=i.end);break}o||(o={start:i.start,end:i.end,events:[]},l.push(o)),o.events.push(n)}return l}function g(t,n,i,o){var r=[];return e.each(n,function(e,n){var a=n.className?"k-slot-cell "+n.className:"k-slot-cell",s={text:n.text,className:a};s[t]=o&&!n.minorTicks?g(t,n.columns,i,o):i,r.push(s)}),r}function v(t,n,i,o,r,a){var s,l,d,c=n[0],u=[];if(c){if(r&&i)e.each(r,function(e,i){i[t]=a&&!i.minorTicks?v(t,n,i.columns,o,i.columns,a):v(t,n,null,o)}),u=r;else for(s=c.dataSource.view(),l=0;l<s.length;l++)d={text:o({text:x.htmlEncode(x.getter(c.dataTextField)(s[l])),color:x.getter(c.dataColorField)(s[l]),field:c.field,title:c.title,name:c.name,value:x.getter(c.dataValueField)(s[l])}),className:"k-slot-cell k-scheduler-group-cell"},d[t]=v(t,n.slice(1),i,o),u.push(d);return u}return i}function _(t){return function(n){if(e.isArray(n)||n instanceof x.data.ObservableArray){for(var i=0;i<n.length;i++)if(n[i]==t)return!0;return!1}return n==t}}function b(e){e.className=e.className.replace(y,"")+" k-state-selected"}var w,k,y,x=window.kendo,C=x.ui,S=x.date.getDate,T=C.Widget,D=x._outerHeight,A=x.keys,E=".kendoSchedulerView",I="k-event-inverse",M=1024,R=Math,F='<div class="k-marquee k-scheduler-marquee"><div class="k-marquee-color"></div><div class="k-marquee-text"><div class="k-label-top"></div><div class="k-label-bottom"></div></div></div>',P=x.Class.extend({init:function(e,t){this._index=e,this._timeSlotCollections=[],this._daySlotCollections=[],this._isRtl=t},addTimeSlotCollection:function(e,t){return this._addCollection(e,t,this._timeSlotCollections)},addDaySlotCollection:function(e,t){return this._addCollection(e,t,this._daySlotCollections)},_addCollection:function(e,t,n){var i=new H(e,t,this._index,n.length);return n.push(i),i},timeSlotCollectionCount:function(){return this._timeSlotCollections.length},daySlotCollectionCount:function(){return this._daySlotCollections.length},daySlotByPosition:function(e,t,n){return this._slotByPosition(e,t,this._daySlotCollections,n)},timeSlotByPosition:function(e,t,n){return this._slotByPosition(e,t,this._timeSlotCollections,n)},_slotByPosition:function(e,t,n,i){var o,r,a,s,l,d,c,u,h;for(o=0;o<n.length;o++)for(r=n[o],a=0;a<r.count();a++)if(s=r.at(a),l=s.offsetWidth,d=s.offsetHeight,u=s.offsetLeft+l,h=s.offsetTop+d,i||(c=r.at(a+1)),c&&(c.offsetLeft!=s.offsetLeft?u=this._isRtl?s.offsetLeft+(s.offsetLeft-c.offsetLeft):c.offsetLeft:h=c.offsetTop),e>=s.offsetLeft&&e<u&&t>=s.offsetTop&&t<h)return s},refresh:function(){var e;for(e=0;e<this._daySlotCollections.length;e++)this._daySlotCollections[e].refresh();for(e=0;e<this._timeSlotCollections.length;e++)this._timeSlotCollections[e].refresh()},timeSlotRanges:function(e,t){var n,i=this._timeSlotCollections,o=this._startSlot(e,i);if(!o.inRange&&e>=o.slot.end&&(o=null),n=o,e<t&&(n=this._endSlot(t,i)),n&&!n.inRange&&t<=n.slot.start&&(n=null),null===o&&null===n)return[];if(null===o){if(n.slot.end<=e)return[];o={inRange:!0,slot:i[n.slot.collectionIndex].first()}}if(null===n){if(o.slot.start>=t)return[];n={inRange:!0,slot:i[o.slot.collectionIndex].last()}}return this._continuousRange(B,i,o,n)},daySlotRanges:function(e,t,n){var i,o=this._daySlotCollections,r=this._startSlot(e,o,n);if(!r.inRange&&e>=r.slot.end&&(r=null),i=r,e<t&&(i=this._endSlot(t,o,n)),i&&!i.inRange&&t<=i.slot.start&&(i=null),null===r&&null===i)return[];if(null===r){if(i.slot.end<=e)return[];do e+=x.date.MS_PER_DAY,r=this._startSlot(e,o,n);while(!r.inRange&&e>=r.slot.end)}if(null===i){if(r.slot.start>=t)return[];do t-=x.date.MS_PER_DAY,i=this._endSlot(t,o,n);while(!i.inRange&&t<=i.slot.start)}return this._continuousRange(L,o,r,i)},_continuousRange:function(e,t,n,i){var o,r,a,s,l,d,c=n.slot,u=i.slot,h=c.collectionIndex,p=u.collectionIndex,f=[];for(o=h;o<=p;o++)r=t[o],a=r.first(),s=r.last(),l=!1,d=!1,o==h&&(d=!n.inRange),o==p&&(l=!i.inRange),a.start<c.start&&(a=c),s.start>u.start&&(s=u),h<p&&(o==h?l=!0:o==p?d=!0:l=d=!0),f.push(new e({start:a,end:s,collection:r,head:l,tail:d}));return f},slotRanges:function(e,t){var n=e._startTime||x.date.toUtcTime(e.start),i=e._endTime||x.date.toUtcTime(e.end);return void 0===t&&(t=e.isMultiDay()),t?this.daySlotRanges(n,i,e.isAllDay):this.timeSlotRanges(n,i)},ranges:function(e,t,n,i){return"number"!=typeof e&&(e=x.date.toUtcTime(e)),"number"!=typeof t&&(t=x.date.toUtcTime(t)),n?this.daySlotRanges(e,t,i):this.timeSlotRanges(e,t)},_startCollection:function(e,t){var n,i;for(n=0;n<t.length;n++)if(i=t[n],i.startInRange(e))return i;return null},_endCollection:function(e,t,n){var i,o;for(i=0;i<t.length;i++)if(o=t[i],o.endInRange(e,n))return o;return null},_getCollections:function(e){return e?this._daySlotCollections:this._timeSlotCollections},continuousSlot:function(e,t){var n=t?-1:1,i=this._getCollections(e.isDaySlot),o=i[e.collectionIndex+n];return o?o[t?"last":"first"]():void 0},firstSlot:function(){var e=this._getCollections(this.daySlotCollectionCount());return e[0].first()},lastSlot:function(){var e=this._getCollections(this.daySlotCollectionCount());return e[e.length-1].last()},upSlot:function(e,t,n){var i=this,o=function(e,n,o){var r=0===o;if(!t&&!e&&r&&i.daySlotCollectionCount())return i._daySlotCollections[0].at(n)};return this.timeSlotCollectionCount()||(t=!0),this._verticalSlot(e,-1,o,n)},downSlot:function(e,t,n){var i=this,o=function(e,n,o){if(!t&&e&&i.timeSlotCollectionCount())return i._timeSlotCollections[o].at(0)};return this.timeSlotCollectionCount()||(t=!0),this._verticalSlot(e,1,o,n)},leftSlot:function(e,t){return this._horizontalSlot(e,-1,t)},rightSlot:function(e,t){return this._horizontalSlot(e,1,t)},_horizontalSlot:function(e,t,n){var i,o=e.index,r=e.isDaySlot,a=e.collectionIndex,s=this._getCollections(r);return r=!n&&r,r?o+=t:a+=t,i=s[a],i?i.at(o):void 0},_verticalSlot:function(e,t,n,i){var o,r=e.index,a=e.isDaySlot,s=e.collectionIndex,l=this._getCollections(a);return(e=n(a,s,r))?e:(a=!i&&a,a?s+=t:r+=t,o=l[s],o?o.at(r):void 0)},_collection:function(e,t){var n=t?this._daySlotCollections:this._timeSlotCollections;return n[e]},_startSlot:function(e,t,n){var i,o=this._startCollection(e,t),r=!0;return o||(o=t[0],r=!1),i=o.slotByStartDate(e,n),i||(i=o.first(),r=!1),{slot:i,inRange:r}},_endSlot:function(e,t,n){var i,o=this._endCollection(e,t,n),r=!0;return o||(o=t[t.length-1],r=!1),i=o.slotByEndDate(e,n),i||(i=o.last(),r=!1),{slot:i,inRange:r}},getSlotCollection:function(e,t){return this[t?"getDaySlotCollection":"getTimeSlotCollection"](e)},getTimeSlotCollection:function(e){return this._timeSlotCollections[e]},getDaySlotCollection:function(e){return this._daySlotCollections[e]}}),z=x.Class.extend({init:function(t){e.extend(this,t)},innerHeight:function(){var e,t=this.collection,n=this.start.index,i=this.end.index,o=0;for(e=n;e<=i;e++)o+=t.at(e).offsetHeight;return o},events:function(){return this.collection.events()},addEvent:function(e){this.events().push(e)},startSlot:function(){return this.start.offsetLeft>this.end.offsetLeft?this.end:this.start},endSlot:function(){return this.start.offsetLeft>this.end.offsetLeft?this.start:this.end}}),B=z.extend({innerHeight:function(){var e,t=this.collection,n=this.start.index,i=this.end.index,o=0;for(e=n;e<=i;e++)o+=t.at(e).offsetHeight;return o},outerRect:function(e,t,n){return this._rect("offset",e,t,n)},_rect:function(e,t,n,i){var o,r,a,s,l,d,c,u,h=this.start,p=this.end,f=x.support.isRtl(h.element);return"number"!=typeof t&&(t=x.date.toUtcTime(t)),"number"!=typeof n&&(n=x.date.toUtcTime(n)),i?(o=h.offsetTop,r=p.offsetTop+p[e+"Height"],f?(a=p.offsetLeft,s=h.offsetLeft+h[e+"Width"]):(a=h.offsetLeft,s=p.offsetLeft+p[e+"Width"])):(l=t-h.start,l<0&&(l=0),d=h.end-h.start,o=h.offsetTop+h[e+"Height"]*l/d,c=p.end-n,c<0&&(c=0),u=p.end-p.start,r=p.offsetTop+p[e+"Height"]-p[e+"Height"]*c/u,f?(a=Math.round(p.offsetLeft+p[e+"Width"]*c/u),s=Math.round(h.offsetLeft+h[e+"Width"]-h[e+"Width"]*l/d)):(a=Math.round(h.offsetLeft+h[e+"Width"]*l/d),s=Math.round(p.offsetLeft+p[e+"Width"]-p[e+"Width"]*c/u))),{top:o,bottom:r,left:0===a?a:a+1,right:s}},innerRect:function(e,t,n){return this._rect("client",e,t,n)}}),L=z.extend({innerWidth:function(){var e,t=this.collection,n=this.start.index,i=this.end.index,o=0,r=n!==i?"offsetWidth":"clientWidth";for(e=n;e<=i;e++)o+=t.at(e)[r];return o}}),H=x.Class.extend({init:function(e,t,n,i){this._slots=[],this._events=[],this._start=x.date.toUtcTime(e),this._end=x.date.toUtcTime(t),this._groupIndex=n,this._collectionIndex=i},refresh:function(){for(var e=0;e<this._slots.length;e++)this._slots[e].refresh()},startInRange:function(e){return this._start<=e&&e<this._end},endInRange:function(e,t){var n=t?e<this._end:e<=this._end;return this._start<=e&&n},slotByStartDate:function(e){var t,n,i=e;for("number"!=typeof i&&(i=x.date.toUtcTime(e)),t=0;t<this._slots.length;t++)if(n=this._slots[t],n.startInRange(i))return n;return null},slotByEndDate:function(e,t){var n,i,o=e;if("number"!=typeof o&&(o=x.date.toUtcTime(e)),t)return this.slotByStartDate(e,!1);for(n=0;n<this._slots.length;n++)if(i=this._slots[n],i.endInRange(o))return i;return null},count:function(){return this._slots.length},events:function(){return this._events},addTimeSlot:function(e,t,n,i){var o=new O(e,t,n,this._groupIndex,this._collectionIndex,this._slots.length,i);this._slots.push(o)},addDaySlot:function(e,t,n,i){var o=new V(e,t,n,this._groupIndex,this._collectionIndex,this._slots.length,i);this._slots.push(o)},first:function(){return this._slots[0]},last:function(){return this._slots[this._slots.length-1]},at:function(e){return this._slots[e]}}),N=x.Class.extend({init:function(e,t,n,i,o,r){this.element=e,this.clientWidth=e.clientWidth,this.clientHeight=e.clientHeight,this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,this.offsetTop=e.offsetTop,this.offsetLeft=e.offsetLeft,this.start=t,this.end=n,this.element=e,this.groupIndex=i,this.collectionIndex=o,this.index=r,this.isDaySlot=!1},refresh:function(){var e=this.element;this.clientWidth=e.clientWidth,this.clientHeight=e.clientHeight,this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,this.offsetTop=e.offsetTop,this.offsetLeft=e.offsetLeft},startDate:function(){return x.timezone.toLocalDate(this.start)},endDate:function(){return x.timezone.toLocalDate(this.end)},startInRange:function(e){return this.start<=e&&e<this.end},endInRange:function(e){return this.start<e&&e<=this.end},startOffset:function(){return this.start},endOffset:function(){return this.end}}),O=N.extend({init:function(e,t,n,i,o,r,a){N.fn.init.apply(this,arguments),this.isHorizontal=!!a},offsetX:function(e,t){return e?this.offsetLeft+t:this.offsetLeft+t},startInRange:function(e){return this.start<=e&&e<this.end},endInRange:function(e){return this.start<e&&e<=this.end},startOffset:function(t,n,i){var o,r,a,s,l;if(i)return this.start;if(o=e(this.element).offset(),r=this.end-this.start,this.isHorizontal){if(l=x.support.isRtl(this.element),a=t-o.left,s=Math.floor(r*(a/this.offsetWidth)),l)return this.start+r-s}else a=n-o.top,s=Math.floor(r*(a/this.offsetHeight));return this.start+s},endOffset:function(t,n,i){var o,r,a,s,l;if(i)return this.end;if(o=e(this.element).offset(),r=this.end-this.start,this.isHorizontal){if(l=x.support.isRtl(this.element),a=t-o.left,s=Math.floor(r*(a/this.offsetWidth)),l)return this.start+r-s}else a=n-o.top,s=Math.floor(r*(a/this.offsetHeight));return this.start+s}}),V=N.extend({init:function(e,t,n,i,o,r,a){if(N.fn.init.apply(this,arguments),this.eventCount=a,this.isDaySlot=!0,this.element.children.length){var s=this.element.children[0];this.firstChildHeight=s.offsetHeight,this.firstChildTop=s.offsetTop}else this.firstChildHeight=3,this.firstChildTop=0},startDate:function(){var e=new Date(this.start);return x.timezone.apply(e,"Etc/UTC")},endDate:function(){var e=new Date(this.end);return x.timezone.apply(e,"Etc/UTC")},startInRange:function(e){return this.start<=e&&e<this.end},endInRange:function(e){return this.start<e&&e<=this.end}});x.ui.SchedulerView=T.extend({init:function(t,n){T.fn.init.call(this,t,n),this._normalizeOptions(),this._scrollbar=d(),this._isRtl=x.support.isRtl(t),this._resizeHint=e(),this._moveHint=e(),this._cellId=x.guid(),this._resourcesForGroups(),this._selectedSlots=[]},visibleEndDate:function(){return this.endDate()},_normalizeOptions:function(){var e=this.options;e.startTime&&e.startTime.setMilliseconds(0),e.endTime&&e.endTime.setMilliseconds(0),e.workDayStart&&e.workDayStart.setMilliseconds(0),e.workDayEnd&&e.workDayEnd.setMilliseconds(0)},_isMobile:function(){var e=this.options;return e.mobile===!0&&x.support.mobileOS||"phone"===e.mobile||"tablet"===e.mobile},_addResourceView:function(){var e=new P(this.groups.length,this._isRtl);return this.groups.push(e),e},dateForTitle:function(){return x.format(this.options.selectedDateFormat,this.startDate(),this.endDate())},shortDateForTitle:function(){return x.format(this.options.selectedShortDateFormat,this.startDate(),this.endDate())},mobileDateForTitle:function(){return x.format(this.options.selectedMobileDateFormat||this.options.selectedShortDateFormat,this.startDate(),this.endDate())},_changeGroup:function(e,t){var n=t?"prevGroupSlot":"nextGroupSlot",i=this[n](e.start,e.groupIndex,e.isAllDay);return i&&(e.groupIndex+=t?-1:1),this._isGroupedByDate()&&!i&&(e.groupIndex=t?this.groups.length-1:0),i},_changeDate:function(e,t,n){var i,o,r,a=this.groups[e.groupIndex];if(n){if(i=a._getCollections(!1),o=a.daySlotCollectionCount()?t.index-1:t.collectionIndex-1,o>=0)return i[o]._slots[i[o]._slots.length-1]}else if(i=a._getCollections(a.daySlotCollectionCount()),o=a.daySlotCollectionCount()?0:t.collectionIndex+1,r=a.daySlotCollectionCount()?t.collectionIndex+1:0,i[o]&&i[o]._slots[r])return i[o]._slots[r]},_changeGroupContinuously:function(){return null},_changeViewPeriod:function(){return!1},_isInRange:function(e,t){return!!(e&&t&&this.options.min&&this.options.max)&&(S(e)<=S(this.options.min)||S(t)>=S(this.options.max))},_horizontalSlots:function(e,t,n,i){var o,r,a,s=i?"leftSlot":"rightSlot",l={startSlot:t[0].start,endSlot:t[t.length-1].end},d=this.groups[e.groupIndex],c=this._isVerticallyGrouped();return n||(o=this._normalizeHorizontalSelection(e,t,i),o&&(l.startSlot=l.endSlot=o)),this._isGroupedByDate()&&!n?(r=this._changeGroup(e,i),r?l.startSlot=l.endSlot=r:l=this._getNextHorizontalRange(d,s,l)):(l.startSlot=d[s](l.startSlot),l.endSlot=d[s](l.endSlot),n||c||l.startSlot&&l.endSlot||(l.startSlot=l.endSlot=this._changeGroup(e,i))),l.startSlot&&l.endSlot||this._isGroupedByDate()||(a=this._continuousSlot(e,t,i),a=this._changeGroupContinuously(e,a,n,i),a&&(l.startSlot=l.endSlot=a)),l},_getNextHorizontalRange:function(e,t,n){return this._isVerticallyGrouped()||(n.startSlot=e[t](n.startSlot),n.endSlot=e[t](n.endSlot)),n},_verticalSlots:function(e,t,n,i){var o,r,a=this.groups[e.groupIndex],s={startSlot:t[0].start,endSlot:t[t.length-1].end};return n||(o=this._normalizeVerticalSelection(e,t,i),o&&(s.startSlot=s.endSlot=o)),r=i?"upSlot":"downSlot",s=this._getNextVerticalRange(a,r,s,n),n||!this._isVerticallyGrouped()||s.startSlot&&s.endSlot||(s.startSlot=s.endSlot=this._isGroupedByDate()?this._changeDate(e,o,i):this._changeGroup(e,i)),s},_getNextVerticalRange:function(e,t,n,i){return n.startSlot=e[t](n.startSlot,i),n.endSlot=e[t](n.endSlot,i),n},_normalizeHorizontalSelection:function(){return null},_normalizeVerticalSelection:function(e,t,n){var i;return i=n?t[0].start:t[t.length-1].end},_continuousSlot:function(){return null},_footer:function(){var t,n=this,i=n.options;n._isMobile()&&(t='<div class="k-scheduler-footer k-toolbar">',t+='<span class="k-state-default k-scheduler-today"><a href="#" class="k-link">',t+=i.messages.today+"</a></span>",t+="</div>",n.footer=e(t).appendTo(n.element)),n.footer&&n.footer.on("click"+E,".k-scheduler-today",function(e){var t,o,r,a,s;e.preventDefault(),t=n.options.timezone,o="today",r=new Date,t?(s=x.timezone.offset(r,t),a=x.timezone.convert(r,r.getTimezoneOffset(),s)):a=r,n.trigger("navigate",{view:n.name||i.name,action:o,date:a})})},constrainSelection:function(e){var t,n=this.groups[0];this.inRange(e)?n.daySlotCollectionCount()?n.timeSlotCollectionCount()||(e.isAllDay=!0):e.isAllDay=!1:(t=n.firstSlot(),e.isAllDay=t.isDaySlot,e.start=t.startDate(),e.end=t.endDate()),this.groups[e.groupIndex]||(e.groupIndex=0)},move:function(e,t,n){var i,o,r,a,s,l,d=!1,c=this.groups[e.groupIndex],u=this._isGroupedByDate()&&this._isVerticallyGrouped();if(c.timeSlotCollectionCount()||(e.isAllDay=!0),i=c.ranges(e.start,e.end,e.isAllDay,!1),t===A.DOWN||t===A.UP){if(d=!0,a=t===A.UP,this._updateDirection(e,i,n,a,!0),s=this._verticalSlots(e,i,n,a),!s.startSlot&&!n&&this._changeViewPeriod(e,a,!u))return d}else if((t===A.LEFT||t===A.RIGHT)&&(d=!0,a=t===A.LEFT,this._updateDirection(e,i,n,a,!1),s=this._horizontalSlots(e,i,n,a),!s.startSlot&&!n&&this._changeViewPeriod(e,a,u)))return d;return d&&(o=s.startSlot,r=s.endSlot,n?(l=e.backward,l&&o?e.start=o.startDate():!l&&r&&(e.end=r.endDate())):o&&r&&(e.isAllDay=o.isDaySlot,e.start=o.startDate(),e.end=r.endDate()),e.events=[]),d},moveToEventInGroup:function(t,n,i,o){var r,a,s,l,d=t._continuousEvents||[],c=o?-1:1,u=d.length,h=o?u-1:0;if(i.length)for(s=i[i.length-1],l=0;l<d.length;l++)d[l].uid===s&&(h=l+c);for(;h<u&&h>-1;){if(a=d[h],(!o&&a.start.startDate()>=n.startDate()||o&&a.start.startDate()<=n.startDate())&&a&&e.inArray(a.uid,i)===-1){r=!!a;break}h+=c}return a},moveToEvent:function(e,t){var n,i,o,r,a,s,l=e.groupIndex,d=this.groups[l],c=d.ranges(e.start,e.end,e.isAllDay,!1)[0].start,u=this.groups.length,h=t?-1:1,p=e.events;if(this._isGroupedByDate())if(i=this._getAllEvents(),o=this._getUniqueEvents(i),r=this._getSortedEvents(o),0===p.length)a=this._getNextEventIndexBySlot(c,r,l),t&&a--,n=r[a];else for(s=this._getStartIdx(p,r);s<r.length&&s>-1&&(p.length>0&&(c=this._getSelectedSlot(c,r,n,s,h,t)),c);){if((!t&&r[s].start.startDate()>=c.startDate()||t&&r[s].start.startDate()<=c.startDate())&&p[0]!=r[s].uid){n=r[s];break}s+=h}else for(;l<u&&l>-1&&(n=this.moveToEventInGroup(d,c,p,t),l+=h,d=this.groups[l],d&&!n);)p=[],c=t?d.lastSlot():d.firstSlot(!0);return n&&(e.events=[n.uid],e.start=n.start.startDate(),e.end=n.end.endDate(),e.isAllDay=n.start.isDaySlot,e.groupIndex=n.start.groupIndex),!!n},current:function(e){return void 0===e?this._current:(this._current=e,void(this.content.has(e)&&this._scrollTo(e,this.content[0])))},select:function(e){this.clearSelection(),this._selectEvents(e)||this._selectSlots(e)},_getNextEventIndexBySlot:function(e,t,n){var i,o,r=0,a=x.date.getDate(e.startDate());for(i=0;i<t.length;i++)if(o=x.date.getDate(t[i].start.startDate()),a>o)r++;else if(a.getTime()===o.getTime()&&n>t[i].start.groupIndex)r++;else{if(!(a.getTime()===o.getTime()&&n>=t[i].start.groupIndex&&e.startDate()>t[i].start.startDate()))break;r++}return r},_getSelectedSlot:function(e,t,n,i,o,r){var a,s;return t[i+o]&&t[i].start.groupIndex!==t[i+o].start.groupIndex&&(a=t[i+o].start.groupIndex,s=this.groups[a],s&&!n||(e=null),e=r?s.lastSlot():s.firstSlot(!0)),e},_getStartIdx:function(t,n){var i=0;return e.each(n,function(){return this.uid!==t[0]&&void i++}),i},_getAllEvents:function(){var e,t=[],n=this.groups;for(e=0;e<n.length;e++)n[e]._continuousEvents&&(t=t.concat(n[e]._continuousEvents));return t},_getUniqueEvents:function(e){var t,n,i,o=[];for(t=0;t<e.length;t++){for(n=!1,i=0;i<o.length;i++)if(e[t].uid===o[i].uid){n=!0;break}n||o.push(e[t])}return o},_getSortedEvents:function(t){return t.sort(function(t,n){var i=t.start.startDate(),o=n.start.startDate(),r=x.date.getDate(i)-x.date.getDate(o);return 0===r&&(r=t.start.groupIndex-n.start.groupIndex),0===r&&(r=i.getTime()-o.getTime()),0===r&&(t.start.isDaySlot&&!n.start.isDaySlot&&(r=-1),!t.start.isDaySlot&&n.start.isDaySlot&&(r=1)),0===r&&(r=e(t.element).index()-e(n.element).index()),r})},_selectSlots:function(e){var t,n,i,o,r,a,s,l=e.isAllDay,d=this.groups[e.groupIndex];for(d.timeSlotCollectionCount()||(l=!0),this._selectedSlots=[],t=d.ranges(e.start,e.end,l,!1),o=0;o<t.length;o++)for(r=t[o],a=r.collection,s=r.start.index;s<=r.end.index;s++)i=a.at(s),n=i.element,n.setAttribute("aria-selected",!0),b(n),this._selectedSlots.push({start:i.startDate(),end:i.endDate(),element:n});e.backward&&(n=t[0].start.element),this.current(n)},_selectEvents:function(t){var n,i,o,r=!1,a=t.events,s=this._getAllEvents(),l=s.length;if(!a[0]||!s[0])return r;for(o=e(),t.events=[],n=0;n<l;n++)e.inArray(s[n].uid,a)>-1&&(i=s[n],o=o.add(i.element),t.events.indexOf(i.uid)===-1&&t.events.push(i.uid));return o[0]&&(o.addClass("k-state-selected").attr("aria-selected",!0),this.current(o.last()[0]),this._selectedSlots=[],r=!0),r},inRange:function(e){var t=this.startDate(),n=x.date.addDays(this.endDate(),1),i=e.start,o=e.end;return t<=i&&i<n&&t<o&&o<=n},_resourceValue:function(e,t){return e.valuePrimitive&&(t=x.getter(e.dataValueField)(t)),t},_resourceBySlot:function(e){var t,n,i,o,r,a=this.groupedResources,s={};if(a.length)for(t=e.groupIndex,n=a.length-1;n>=0;n--)i=a[n],o=this._resourceValue(i,i.dataSource.view()[t%i.dataSource.total()]),i.multiple&&(o=[o]),r=x.setter(i.field),r(s,o),t=Math.floor(t/i.dataSource.total());return s},_createResizeHint:function(t,n,i,o){return e(F).css({left:t,top:n,width:i,height:o})},_removeResizeHint:function(){this._resizeHint.remove(),this._resizeHint=e()},_removeMoveHint:function(t){t?(this._moveHint.filter("[data-uid='"+t+"']").remove(),this._moveHint=this._moveHint.filter("[data-uid!='"+t+"']")):(this._moveHint.remove(),this._moveHint=e())},_scrollTo:function(e,t){var n=e.offsetTop,i=e.offsetHeight,o=t.scrollTop,r=t.clientHeight,a=n+i,s=0;s=o>n?n:a>o+r?i<=r?a-r:n:o,t.scrollTop=s},_inverseEventColor:function(e){var t=e.css("color"),n=new k(t).isDark(),i=e.css("background-color"),o=new k(i).isDark();n==o&&e.addClass(I)},_eventTmpl:function(t,n){var i,o=this.options,r=e.extend({},x.Template,o.templateSettings),a=r.paramName,s="",l=typeof t,d={storage:{},count:0};return"function"===l?(d.storage["tmpl"+d.count]=t,s+="#=this.tmpl"+d.count+"("+a+")#",d.count++):"string"===l&&(s+=t),i=x.template(x.format(n,s),r),d.count>0&&(i=e.proxy(i,d.storage)),i},eventResources:function(e){var t,n,i,o,r,a,s,l,d,c,u=[],h=this.options;if(!h.resources)return u;for(t=0;t<h.resources.length;t++)if(n=h.resources[t],i=n.field,o=x.getter(i)(e),null!=o)for(n.multiple||(o=[o]),r=n.dataSource.view(),a=0;a<o.length;a++){for(s=null,l=o[a],n.valuePrimitive||(l=x.getter(n.dataValueField)(l)),d=0;d<r.length;d++)if(r[d].get(n.dataValueField)==l){s=r[d];break}null!==s&&(c=x.getter(n.dataColorField)(s),u.push({field:n.field,title:n.title,name:n.name,text:x.getter(n.dataTextField)(s),value:l,color:c}))}return u},createLayout:function(i){var o,r,a,s,l,d=-1;for(i.rows||(i.rows=[]),o=0;o<i.rows.length;o++)if(i.rows[o].allDay){d=o;break}r=i.rows[d],d>=0&&i.rows.splice(d,1),a=this.columnLevels=t(i,"columns"),s=this.rowLevels=t(i,"rows"),this._isVirtualized()&&this._trimRowLevels(s),this.table=e('<table role="presentation"'+n()+' class="k-scheduler-layout k-scheduler-'+this.name+'view"><tbody></tbody></table>'),l=s[s.length-1].length,this.table.find("tbody:first").append(this._topSection(a,r,l)),this.table.find("tbody:first").append(this._bottomSection(a,s,l)),this.element.append(this.table),this._isVirtualized()&&this._updateDomRowLevels(),this._isMobile()&&a.length>1&&"horizontal"===this._groupOrientation()&&x._outerWidth(e(window))<M&&(this.table.find(".k-scheduler-content .k-scheduler-table").width(100*a[a.length-2].length+"%"),this.table.find(".k-scheduler-header .k-scheduler-table").width(100*a[a.length-2].length+"%")),this._scroller()},_isVirtualized:function(){return this.options.virtual&&this.rowLevels.length>1&&this._isVerticallyGrouped()},_trimRowLevels:function(e){var t,n,i,o,r=e[e.length-2],a=this.cachedRowLevels||[];for(this._hasContentToRender=!0,n=function(e,t){var n=e[t-1].length>0;return!n||e[t].length%e[t-1][0].rows.length!==0},i=e.length-2;i>=0&&(o=!1,i>0&&n(e,i)&&(o=!0,t=i),a[i]=e[i].splice(1),!o);i--);return a[e.length-1]=e[e.length-1].splice(r[0].rows.length),this.cachedRowLevels=a,a[a.length-1].length||(this._hasContentToRender=!1),{levelMarker:t||0,rowLevels:e}},createNextLayout:function(){var e,t,n,i,o,r,a,l,d=[];for(o=0;o<this.cachedRowLevels.length;o++)d[o]=this.cachedRowLevels[o];for(e=this._trimRowLevels(d),t=e.rowLevels.splice(e.levelMarker),n=e.levelMarker,i=t[t.length-1].length,delete this._height,r=n;r<this.rowLevels.length;r++)this.rowLevels[r]=this.rowLevels[r].concat(t[r-n]);if(this.table.find(".k-scheduler-times:last tbody").append(s(t,i,this._isMobile()).find("tr")),this._updateDomRowLevels(),n>0)for(r=0;r<n;r++)a=this.table.find("[data-row-level="+r+"]:last"),l=parseInt(a.attr("rowspan"),10)+i,a.attr("rowspan",l);this._virtualContent(t,this.columnLevels),this.render(this._cachedEvents)},_tryRenderContent:function(){for(var e=this,t=e.table.innerHeight(),n=e.content.find("table").innerHeight(),i=e.content.scrollTop();e._hasContentToRender&&n-t<i;)e.createNextLayout(),n=e.content.find("table").innerHeight()},_updateDomRowLevels:function(){var t,n=this,i=n.times.find(".k-scheduler-group-cell:not([data-row-level])");if(!this._rowLevelIndices)return void(this._rowLevelIndices=i.map(function(t,n){return e(n).attr("data-row-level",t),t}).toArray().reverse());for(i=i.toArray().reverse(),t=0;t<=i.length;t++)e(i[t]).attr("data-row-level",this._rowLevelIndices[t])},refreshLayout:function(){var t,n,i,o,r,a,s=this,l=s.element.find("> .k-scheduler-toolbar"),d=s.element.innerHeight(),c=this._scrollbar,u=0,h=this._isRtl?"left":"right";for(t=0;t<l.length;t++)d-=D(l.eq(t));s.datesHeader&&(u=D(s.datesHeader)),s.timesHeader&&D(s.timesHeader)>u&&(u=D(s.timesHeader)),s.datesHeader&&s.timesHeader&&(n=s.datesHeader.find("table:first tr"),s.timesHeader.find("tr").height(function(t){e(this).height(n.eq(t).height())})),u&&(d-=u),s.footer&&(d-=D(s.footer)),i=function(e){var t,n;return!!e[0].style.height||(t=e.height(),e.height("auto"),n=e.height(),t!=n?(e.height(""),!0):(e.height(""),!1))},o=s.content[0],r=x.support.kineticScrollNeeded?0:c,i(s.element)&&(s.content.height(d>2*c?d:2*c+1),s.times.height(o.clientHeight),a=s.times.find("table"),a.length&&a.height(s.content.find("table")[0].clientHeight)),o.offsetWidth-o.clientWidth>0?(s.table.addClass("k-scrollbar-v"),s.datesHeader.css("padding-"+h,r-parseInt(s.datesHeader.children().css("border-"+h+"-width"),10))):s.datesHeader.css("padding-"+h,""),o.offsetHeight-o.clientHeight>0||o.clientHeight>s.content.children(".k-scheduler-table").height()?s.table.addClass("k-scrollbar-h"):s.table.removeClass("k-scrollbar-h")},_topSection:function(t,n,i){var o,s=e("<tr>"),l=t[t.length-1].length;return this.timesHeader=r(t.length,n,i),this.datesHeader=a(t,l,n),o=this.datesHeader.find(".k-nav-day"),o.length&&o.closest("tr").addClass("k-scheduler-date-group"),this._isMobile()&&(s.addClass("k-mobile-header"),s.addClass("k-mobile-"+this._groupOrientation()+"-header")),e(s).append(this.timesHeader.add(this.datesHeader).wrap("<td>").parent())},_bottomSection:function(t,n,i){return this.times=s(n,i,this._isMobile()),this.content=l(t[t.length-1],n[n.length-1]),e("<tr>").append(this.times.add(this.content).wrap("<td>").parent())},_scroller:function(){var t,n=this;this.content.bind("scroll"+E,function(){x.scrollLeft(n.datesHeader.find(">.k-scheduler-header-wrap"),this.scrollLeft),n.times.scrollTop(this.scrollTop),n._isVirtualized()&&n._tryRenderContent()}),t=x.touchScroller(this.content,{avoidScrolling:function(t){return e(t.event.target).closest(".k-event.k-event-active").length>0}}),t&&t.movable&&(this._touchScroller=t,this.content=t.scrollElement,t.movable.bind("change",function(e){x.scrollLeft(n.datesHeader.find(">.k-scheduler-header-wrap"),-e.sender.x),n.times.scrollTop(-e.sender.y),n._isVirtualized()&&n._tryRenderContent()}))},_resourcesForGroups:function(){var e,t,n,i,o=[],r=this.options.group,a=this.options.resources;if(r=r&&r.resources?r.resources:[],a&&r.length)for(e=0,t=a.length;e<t;e++)for(n=0,i=r.length;n<i;n++)a[e].name===r[n]&&o.push(a[e]);this.groupedResources=o},_createDateLayout:function(e,t,n){return g("rows",e,t,n)},_createColumnsLayout:function(e,t,n,i,o){return v("columns",e,t,n,i,o)},_groupOrientation:function(){var e=this.options.group;return e&&e.resources?e.orientation:"horizontal"},_isGroupedByDate:function(){return this.options.group&&this.options.group.date},_isVerticallyGrouped:function(){return this.groupedResources.length&&"vertical"===this._groupOrientation()},_createRowsLayout:function(e,t,n,i){return v("rows",e,t,n,i)},selectionByElement:function(){return null},clearSelection:function(){this.content.find(".k-state-selected").removeAttr("id").attr("aria-selected",!1).removeClass("k-state-selected")},destroy:function(){var e=this;T.fn.destroy.call(this),e.table&&(x.destroy(e.table),
e.table.remove()),e.footer&&(x.destroy(e.footer),e.footer.remove()),e.groups=null,e.table=null,e.content=null,e.times=null,e.datesHeader=null,e.timesHeader=null,e.footer=null,e._resizeHint=null,e._moveHint=null},calendarInfo:function(){return x.getCulture().calendars.standard},prevGroupSlot:function(e,t,n){var i,o=this.groups[t],r=o.ranges(e,e,n,!1)[0].start;if(!(t<=0))return this._isGroupedByDate()?r:this._isVerticallyGrouped()?o.timeSlotCollectionCount()?(i=o._collection(n?r.index:r.collectionIndex,!1),i.last()):(i=o._collection(o.daySlotCollectionCount()-1,!0),i.at(r.index)):o.timeSlotCollectionCount()?(i=o._collection(n?0:o.timeSlotCollectionCount()-1,n),n?i.last():i.at(r.index)):(i=o._collection(r.collectionIndex,!0),i.last())},nextGroupSlot:function(e,t,n){var i,o,r=this.groups[t],a=r.ranges(e,e,n,!1)[0].start;if(!(t>=this.groups.length-1))return this._isGroupedByDate()?a:this._isVerticallyGrouped()?r.timeSlotCollectionCount()?(o=r.daySlotCollectionCount(),i=r._collection(o?0:a.collectionIndex,o),n?i.first():i.at(a.collectionIndex)):(i=r._collection(0,!0),i.at(a.index)):r.timeSlotCollectionCount()?(i=r._collection(0,n),n?i.first():i.at(a.index)):(i=r._collection(a.collectionIndex,!0),i.first())},_eventOptionsForMove:function(){return{}},_updateEventForResize:function(){},_updateEventForSelection:function(e){return e}}),k=function(e){var t,n,i,o,r,a=this,s=k.formats;if(1===arguments.length)for(e=a.resolveColor(e),o=0;o<s.length;o++)t=s[o].re,n=s[o].process,i=t.exec(e),i&&(r=n(i),a.r=r[0],a.g=r[1],a.b=r[2]);else a.r=arguments[0],a.g=arguments[1],a.b=arguments[2];a.r=a.normalizeByte(a.r),a.g=a.normalizeByte(a.g),a.b=a.normalizeByte(a.b)},k.prototype={resolveColor:function(e){return e=e||"#000","#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase(),e=k.namedColors[e]||e},normalizeByte:function(e){return e<0||isNaN(e)?0:e>255?255:e},percBrightness:function(){var e=this;return R.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)},isDark:function(){var e=this,t=e.percBrightness();return t<180}},k.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],k.namedColors={aqua:"00ffff",azure:"f0ffff",beige:"f5f5dc",black:"000000",blue:"0000ff",brown:"a52a2a",coral:"ff7f50",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgray:"a9a9a9",darkgreen:"006400",darkorange:"ff8c00",darkred:"8b0000",dimgray:"696969",fuchsia:"ff00ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lightblue:"add8e6",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumblue:"0000cd",navy:"000080",olive:"808000",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",pink:"ffc0cb",plum:"dda0dd",purple:"800080",red:"ff0000",royalblue:"4169e1",salmon:"fa8072",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",steelblue:"4682b4",tan:"d2b48c",teal:"008080",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},y=/\s*k-state-selected/,e.extend(C.SchedulerView,{createColumns:p,createRows:f,rangeIndex:u,collidingEvents:c,groupEqFilter:_})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.dayview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e,t){function n(e){var t=new Date(1980,1,1,0,0,0);return c(t,x(e)),t}function i(e,t,n){return e>=t&&e<=n}function o(e,t,n,i){return i=i?e<=n:e<n,e>t&&i}function r(e,t,n,i){var o,r=e._continuousEvents,a=r[r.length-1],l=g(t.start.startDate()).getTime();if(i&&a&&g(a.start.startDate()).getTime()==l){for(o=r.length-1;o>-1&&!(r[o].isAllDay||g(r[o].start.startDate()).getTime()<l);o--);r.splice(o+1,0,{element:n,isAllDay:!0,uid:n.attr(s.attr("uid")),start:t.start,end:t.end})}else r.push({element:n,isAllDay:i,uid:n.attr(s.attr("uid")),start:t.start,end:t.end})}function a(e){var t,n,i;if(e.workDays&&e.workDays.length)return e.workDays;for(t=[],n=e.workWeekStart%7,i=Math.abs(e.workWeekEnd%7),t.push(n);i!=n;)n>6?n-=7:n++,t.push(n);return t}var s=window.kendo,l=s.ui,d=s.support.browser,c=s.date.setTime,u=l.SchedulerView,h=s._outerWidth,p=s._outerHeight,f=e.extend,m=e.proxy,g=s.date.getDate,v=s.date.MS_PER_MINUTE,_=s.date.MS_PER_DAY,b="k-current-time",w="k-current-time-arrow",k="k-event-inverse",y=.8666,x=s.date.getMilliseconds,C=".kendoMultiDayView",S=s.template('<div title="(#=kendo.format("{0:t} - {1:t}", start, end)#): #=title.replace(/"/g,"&\\#34;")#"><div class="k-event-template k-event-time">#:kendo.format("{0:t} - {1:t}", start, end)#</div><div class="k-event-template">${title}</div></div>'),T=s.template('<div title="(#=kendo.format("{0:t}", start)#): #=title.replace(/"/g,"&\\#34;")#"><div class="k-event-template">${title}</div></div>'),D=s.template("#var dateString = isMobile ? kendo.toString(date,'ddd')[0] : kendo.toString(date,'ddd M/dd'); #<span class='k-link k-nav-day'>#=dateString#</span>"),A='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#"#if (resources[0]) { #style="background-color:#=resources[0].color#; border-color: #=resources[0].color#"class="k-event"#} else {#class="k-event"#}#><span class="k-event-actions"># if(data.tail || data.middle) {#<span class="k-icon k-i-arrow-60-left"></span>#}## if(data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if(data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}## if(data.head || data.middle) {#<span class="k-icon k-i-arrow-60-right"></span>#}#</span>#if(resizable && !singleDay && !data.tail && !data.middle){#<span class="k-resize-handle k-resize-w"></span>#}##if(resizable && !singleDay && !data.head && !data.middle){#<span class="k-resize-handle k-resize-e"></span>#}#</div>',E='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#" #if (resources[0]) { #style="background-color:#=resources[0].color #; border-color: #=resources[0].color#"class="k-event"#} else {#class="k-event"#}#><span class="k-event-actions"># if(data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if(data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}#</span><span class="k-event-top-actions"># if(data.tail || data.middle) {#<span class="k-icon k-i-arrow-60-up"></span># } #</span><span class="k-event-bottom-actions"># if(data.head || data.middle) {#<span class="k-icon k-i-arrow-60-down"></span># } #</span># if(resizable && !data.tail && !data.middle) {#<span class="k-resize-handle k-resize-n"></span># } ## if(resizable && !data.head && !data.middle) {#<span class="k-resize-handle k-resize-s"></span># } #</div>',I=u.extend({init:function(e,t){var n=this;u.fn.init.call(n,e,t),n.title=n.options.title||n.options.name,n._workDays=a(n.options),n._templates(),n._editable(),n.calculateDateRange(),n._groups(),n._currentTime(!0)},_currentTimeMarkerUpdater:function(){this._updateCurrentTimeMarker(new Date)},_updateCurrentTimeMarker:function(t){var n,i,o,r,a,l,c,u,f,m,g,v,_,k,x,C,S,T,D,A,E=this.options,I="<div class='"+b+"'></div>";for(E.currentTimeMarker.useLocalTimezone===!1&&(a=E.dataSource.options.schema.timezone,E.dataSource&&a&&(l=s.timezone.offset(t,a),t=s.timezone.convert(t,t.getTimezoneOffset(),l))),n=this.times.find("."+b),i=this.content.find("."+b),c=E.group&&"horizontal"!=E.group.orientation?this.groups.length:1,u=this.times.find("tr:first th:first"),f=this.times.find("tr:first th:last"),m=this.content[0].scrollWidth,(d.msie||d.edge)&&(m-=1),u.length>0&&f.length>0&&(r=this._isRtl?u.position().left+p(u)-p(f):f.position().left),g=0;g<c;g++){if(v=this.groups[g],!v)return;if(_=s.date.toUtcTime(t),k=v.timeSlotRanges(_,_+1),0===k.length)return;x=k[0].collection,C=x.slotByStartDate(t),C&&(S=n[g]?n.eq(g):e(I).prependTo(this.times),T=Math.round(k[0].innerRect(t,new Date(t.getTime()+1),!1).top),D={},this._isRtl?(D.right=r,S.addClass(w+"-left")):(D.left=r,S.addClass(w+"-right")),o||(o=h(S)*y/2),D.top=T-o,S.css(D),A=i[g]?i.eq(g):e(I).prependTo(this.content),A.css({top:T,height:"1px",right:0,width:m,left:0}))}},_currentTime:function(e){var n=this,i=n.options.currentTimeMarker;i!==!1&&i.updateInterval!==t&&(n._currentTimeMarkerUpdater(),e&&(n._currentTimeUpdateTimer=setInterval(m(this._currentTimeMarkerUpdater,n),i.updateInterval)))},_updateResizeHint:function(e,t,n,i){var o,r,a,l,d,c,h,p,f,m,g,v,_=e.isMultiDay(),b=this.groups[t],w=b.ranges(n,i,_,e.isAllDay);for(this._removeResizeHint(),d=0;d<w.length;d++)if(c=w[d],h=c.startSlot(),this._isGroupedByDate()&&_)for(p=h.index;p<=c.end.index;p++)f=c.collection._slots[p],o=f.offsetWidth,r=f.clientHeight,a=f.offsetTop,l=u.fn._createResizeHint.call(this,f.offsetLeft,a,o,r),this._resizeHint=this._resizeHint.add(l);else o=h.offsetWidth,r=h.clientHeight,a=h.offsetTop,_?o=c.innerWidth():(m=c.outerRect(n,i,this.options.snap),a=m.top,r=m.bottom-m.top),l=u.fn._createResizeHint.call(this,h.offsetLeft,a,o,r),this._resizeHint=this._resizeHint.add(l);g="t",v=this.content,_&&(g="M/dd",v=this.element.find(".k-scheduler-header-wrap:has(.k-scheduler-header-all-day) > div"),v.length||(v=this.content)),this._resizeHint.appendTo(v),this._resizeHint.find(".k-label-top,.k-label-bottom").text(""),this._resizeHint.first().addClass("k-first").find(".k-label-top").text(s.toString(s.timezone.toLocalDate(n),g)),this._resizeHint.last().addClass("k-last").find(".k-label-bottom").text(s.toString(s.timezone.toLocalDate(i),g))},_updateMoveHint:function(t,n,i){var o,r,a,l,d,c,u,h,p,f,m=t.isMultiDay(),g=this.groups[n],v=s.date.toUtcTime(t.start)+i,_=v+t.duration(),b=g.ranges(v,_,m,t.isAllDay);for(v=s.timezone.toLocalDate(v),_=s.timezone.toLocalDate(_),this._removeMoveHint(t.uid),!m&&(0===x(_)||x(_)<x(this.startTime()))&&b.length>1&&b.pop(),o=e(),r=0;r<b.length;r++)if(a=b[r],l=a.start,c={left:l.offsetLeft+2,top:l.offsetTop},this._isGroupedByDate()&&m)for(u=l.index;u<=a.end.index;u++)h=a.collection._slots[u],c.left=this._isRtl?.1*h.clientWidth+h.offsetLeft+2:h.offsetLeft+2,c.height=h.offsetHeight,c.width=.9*h.clientWidth-2,d=this._createEventElement(t.clone({start:v,end:_}),!m),t.inverseColor&&d.addClass(k),this._appendMoveHint(d,c),o=o.add(d);else this._isRtl&&(c.left=.1*l.clientWidth+l.offsetLeft+2),m?c.width=a.innerWidth()-2:(p=a.outerRect(v,_,this.options.snap),c.top=p.top,c.height=p.bottom-p.top,c.width=.9*l.clientWidth-2),d=this._createEventElement(t.clone({start:v,end:_}),!m),t.inverseColor&&d.addClass(k),this._appendMoveHint(d,c),o=o.add(d);f=this.content,m&&(f=this.element.find(".k-scheduler-header-wrap:has(.k-scheduler-header-all-day) > div"),f.length||(f=this.content)),o.appendTo(f)},_appendMoveHint:function(e,t){e.addClass("k-event-drag-hint"),e.css(t),this._moveHint=this._moveHint.add(e)},_slotByPosition:function(e,t){var n,i,o,r;for(this._isVerticallyGrouped()?(i=this.content.offset(),t+=this.content[0].scrollTop,e+=this.content[0].scrollLeft):i=this.element.find(".k-scheduler-header-wrap:has(.k-scheduler-header-all-day)").find(">div").offset(),i&&(e-=i.left,t-=i.top),e=Math.ceil(e),t=Math.ceil(t),r=0;r<this.groups.length;r++)if(o=this.groups[r],n=o.daySlotByPosition(e,t,this._isGroupedByDate()))return n;for(i&&(e+=i.left,t+=i.top),i=this.content.offset(),e-=i.left,t-=i.top,this._isVerticallyGrouped()||(t+=this.content[0].scrollTop,e+=this.content[0].scrollLeft),e=Math.ceil(e),t=Math.ceil(t),r=0;r<this.groups.length;r++)if(o=this.groups[r],n=o.timeSlotByPosition(e,t))return n;return null},_groupCount:function(){var e=this.groupedResources,t=this._isGroupedByDate();return e.length?"vertical"===this._groupOrientation()?t?this._columnCountForLevel(e.length-1):this._rowCountForLevel(e.length-1):t?this._columnCountForLevel(e.length)/this._columnCountForLevel(0):this._columnCountForLevel(e.length)/this._columnOffsetForResource(e.length):1},_columnCountInResourceView:function(){var e=this.groupedResources,t=this._isGroupedByDate();return!e.length||this._isVerticallyGrouped()?t?this._rowCountForLevel(0):this._columnCountForLevel(0):t?this._columnCountForLevel(0):this._columnOffsetForResource(e.length)},_timeSlotGroups:function(e,t){var n,i,o,r,a,s,l,d,c,u,h=this._timeSlotInterval(),p=e,f=this._isGroupedByDate(),m=this.content.find("tr:not(.k-scheduler-header-all-day)");for(m.attr("role","row"),a=m.length,this._isVerticallyGrouped()&&(f&&(p=t),a=Math.floor(a/p)),s=0;s<p;s++)for(l=0,d=0,this._isVerticallyGrouped()?l=s:d=s,o=l*a;o<(l+1)*a;){if(c=m[o].children,o%a===0&&(i=x(new Date((+this.startTime())))),u=0,f)if(this._isVerticallyGrouped())for(r=0;r<e;r++)n=this.groups[r],this._addTimeSlotGroup(n,c,r,i,h,s);else for(n=this.groups[s],r=d;r<e*t;r+=e)this._addTimeSlotGroup(n,c,r,i,h,u),u++;else for(n=this.groups[s],r=d*t;r<(d+1)*t;r++)this._addTimeSlotGroup(n,c,r,i,h,u),u++;i+=h,o++}},_addTimeSlotGroup:function(e,t,n,i,o,r){var a,s,l,d=t[n],c=e.getTimeSlotCollection(r),u=this._dates[r];u&&d&&(a=Date.UTC(u.getFullYear(),u.getMonth(),u.getDate()),s=a+i,l=s+o,d.setAttribute("role","gridcell"),d.setAttribute("aria-selected",!1),c.addTimeSlot(d,s,l))},_addDaySlotGroup:function(e,t,n,i,o){var r,a=t[n],l=this._dates[o];l&&(r=Date.UTC(l.getFullYear(),l.getMonth(),l.getDate()),a.setAttribute("role","gridcell"),a.setAttribute("aria-selected",!1),e.addDaySlot(a,r,r+s.date.MS_PER_DAY))},_daySlotGroups:function(e,t){var n,i,o,r,a,s,l,d,c,u=e,h=this._isGroupedByDate();for(this._isVerticallyGrouped()?(h&&(u=t),n=this.element.find(".k-scheduler-header-all-day")):n=this.element.find(".k-scheduler-header-all-day tr"),n.attr("role","row"),o=0;o<u;o++)if(r=0,this._isVerticallyGrouped()&&(r=o),l=n[r].children,d=0,this._isVerticallyGrouped()||(d=o),c=0,h)if(this._isVerticallyGrouped())for(i=0;i<e;i++)a=this.groups[i],s=a.getDaySlotCollection(0),this._addDaySlotGroup(s,l,i,t,o);else for(a=this.groups[o],s=a.getDaySlotCollection(0),i=d;i<e*t;i+=e)this._addDaySlotGroup(s,l,i,t,c),c++;else for(a=this.groups[o],s=a.getDaySlotCollection(0),i=d*t;i<(d+1)*t;i++)this._addDaySlotGroup(s,l,i,t,c),c++},_groups:function(){var e,t,n,i=this._groupCount(),o=this._columnCountInResourceView();for(this.groups=[],e=0;e<i;e++){for(t=this._addResourceView(e),n=0;n<o;n++)this._dates[n]&&t.addTimeSlotCollection(this._dates[n],s.date.addDays(this._dates[n],1));this.options.allDaySlot&&t.addDaySlotCollection(this._dates[0],s.date.addDays(this._dates[this._dates.length-1],1))}this._timeSlotGroups(i,o),this.options.allDaySlot&&this._daySlotGroups(i,o)},options:{name:"MultiDayView",selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}",selectedMobileDateFormat:"{0:MMM} {0:dd} - {1:dd}",allDaySlot:!0,showWorkHours:!1,title:"",startTime:s.date.today(),endTime:s.date.today(),minorTickCount:2,majorTick:60,majorTimeHeaderTemplate:"<span>#=kendo.toString(date, 't')#</span>",minorTimeHeaderTemplate:"&\\#8203;",groupHeaderTemplate:"#=text#",slotTemplate:"&nbsp;",allDaySlotTemplate:"&nbsp;",eventTemplate:S,allDayEventTemplate:T,dateHeaderTemplate:D,editable:!0,workDayStart:new Date(1980,1,1,8,0,0),workDayEnd:new Date(1980,1,1,17,0,0),workWeekStart:1,workWeekEnd:5,footer:{command:"workDay"},messages:{allDay:"all day",showFullDay:"Show full day",showWorkDay:"Show business hours"},currentTimeMarker:{updateInterval:1e4,useLocalTimezone:!0}},events:["remove","add","edit"],_templates:function(){var e=this.options,t=f({},s.Template,e.templateSettings);this.eventTemplate=this._eventTmpl(e.eventTemplate,E),this.allDayEventTemplate=this._eventTmpl(e.allDayEventTemplate,A),this.majorTimeHeaderTemplate=s.template(e.majorTimeHeaderTemplate,t),this.minorTimeHeaderTemplate=s.template(e.minorTimeHeaderTemplate,t),this.dateHeaderTemplate=s.template(e.dateHeaderTemplate,t),this.slotTemplate=s.template(e.slotTemplate,t),this.allDaySlotTemplate=s.template(e.allDaySlotTemplate,t),this.groupHeaderTemplate=s.template(e.groupHeaderTemplate,t)},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var t=this;t.element.on("click"+C,".k-event a:has(.k-i-close)",function(n){t.trigger("remove",{uid:e(this).closest(".k-event").attr(s.attr("uid"))}),n.preventDefault()}),t.options.editable.create!==!1&&t.element.on("dblclick"+C,".k-scheduler-content > table td",function(n){var i,o;e(this).parent().hasClass("k-scheduler-header-all-day")||(i=t._slotByPosition(n.pageX,n.pageY),i&&(o=t._resourceBySlot(i),t.trigger("add",{eventInfo:f({start:i.startDate(),end:i.endDate()},o)})),n.preventDefault())}).on("dblclick"+C,".k-scheduler-header-all-day td",function(e){var n,i=t._slotByPosition(e.pageX,e.pageY);i&&(n=t._resourceBySlot(i),t.trigger("add",{eventInfo:f({},{isAllDay:!0,start:s.date.getDate(i.startDate()),end:s.date.getDate(i.startDate())},n)})),e.preventDefault()}),t.options.editable.update!==!1&&t.element.on("dblclick"+C,".k-event",function(n){t.trigger("edit",{uid:e(this).closest(".k-event").attr(s.attr("uid"))}),n.preventDefault()})},_touchEditable:function(){var n=this,i=0;s.support.mobileOS.android&&(i=5),n.options.editable.create!==!1&&(n._addUserEvents=new s.UserEvents(n.element,{threshold:i,filter:".k-scheduler-content td",useClickAsTap:!s.support.browser.edge,tap:function(i){var o,r,a,s;n._scrolling||e(i.target).parent().hasClass("k-scheduler-header-all-day")||(o=i.x.location!==t?i.x.location:i.x,r=i.y.location!==t?i.y.location:i.y,a=n._slotByPosition(o,r),a&&(s=n._resourceBySlot(a),n.trigger("add",{eventInfo:f({start:a.startDate(),end:a.endDate()},s)})),i.preventDefault())}}),n._allDayUserEvents=new s.UserEvents(n.element,{threshold:i,useClickAsTap:!s.support.browser.edge,filter:".k-scheduler-header-all-day td",tap:function(e){var i,o,r,a;n._scrolling||(i=e.x.location!==t?e.x.location:e.x,o=e.y.location!==t?e.y.location:e.y,r=n._slotByPosition(i,o),r&&(a=n._resourceBySlot(r),n.trigger("add",{eventInfo:f({},{isAllDay:!0,start:s.date.getDate(r.startDate()),end:s.date.getDate(r.startDate())},a)})),e.preventDefault())}})),n.options.editable.update!==!1&&(n._editUserEvents=new s.UserEvents(n.element,{threshold:i,useClickAsTap:!s.support.browser.edge,filter:".k-event",tap:function(t){var i,o;n._scrolling||(i=e(t.target).closest(".k-event"),o=e(t.touch.initialTouch),o.hasClass("k-i-close")?n.trigger("remove",{uid:i.attr(s.attr("uid"))}):i.hasClass("k-event-active")||n.trigger("edit",{uid:i.attr(s.attr("uid"))}),t.preventDefault())}}))},_layout:function(e){var t,n,i,o=[],r=[],a=this.options,l=this,d=l._isGroupedByDate();for(t=0;t<e.length;t++)n={},n.text=l.dateHeaderTemplate({date:e[t],isMobile:l._isMobile()}),s.date.isToday(e[t])&&(n.className="k-today"),o.push(n);return i=this.groupedResources,a.allDaySlot&&r.push({text:a.messages.allDay,allDay:!0,cellContent:function(t){var n=t;return t=i.length&&"vertical"!==l._groupOrientation()?t%e.length:t,l.allDaySlotTemplate({date:e[t],resources:function(){return l._resourceBySlot({groupIndex:n})}})}}),this._forTimeRange(this.startTime(),this.endTime(),function(e,t,n,i){var o=t?l.majorTimeHeaderTemplate:l.minorTimeHeaderTemplate,a={text:o({date:e}),className:i?"k-slot-cell":""};r.push(a)}),i.length&&("vertical"===this._groupOrientation()?d?(r=this._createDateLayout(o,r),o=this._createColumnsLayout(i,null,this.groupHeaderTemplate)):r=this._createRowsLayout(i,r,this.groupHeaderTemplate):o=d?this._createColumnsLayout(i,o,this.groupHeaderTemplate,o):this._createColumnsLayout(i,o,this.groupHeaderTemplate)),{columns:o,rows:r}},_footer:function(){var t,n,i,o=this.options;o.footer!==!1&&(t='<div class="k-scheduler-footer k-toolbar">',n=o.footer.command,this._isMobile()&&(t+='<span class="k-state-default k-scheduler-today"><a href="#" class="k-link">',t+=o.messages.today+"</a></span>"),n&&"workDay"===n&&(this._isMobile()?(t+='<span class="k-state-default k-scheduler-fullday"><a href="#" class="k-link">',t+=(o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay)+"</a></span>"):(t+='<button type="button" class="k-button k-scheduler-fullday">',t+='<span class="k-icon k-i-clock"></span>',t+='<span class="k-button-text">',t+=o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay,t+="</span>",t+="</button>")),t+="</div>",this.footer=e(t).appendTo(this.element),i=this,this.footer.on("click"+C,".k-scheduler-fullday",function(e){e.preventDefault(),i.trigger("navigate",{view:i.name||o.name,date:o.date,isWorkDay:!o.showWorkHours})}),this.footer.on("click"+C,".k-scheduler-today",function(e){var t,n,r,a,l;e.preventDefault(),t=i.options.timezone,n="today",r=new Date,t?(l=s.timezone.offset(r,t),a=s.timezone.convert(r,r.getTimezoneOffset(),l)):a=r,i.trigger("navigate",{view:i.name||o.name,action:n,date:a})}))},_forTimeRange:function(e,t,i,o){var r,a,s,l,d,u,h,p,f,m,g,b,w,k,y,C;for(e=n(e),t=n(t),r=this,a=x(e),s=x(t),l=r.options.minorTickCount,d=r.options.majorTick*v,u=d/l||1,h=new Date((+e)),p=h.getDate(),m=0,b="",g=_/u,a!=s&&(a>s&&(s+=_),g=(s-a)/u),g=Math.round(g);m<g;m++)w=m%(d/u),k=0===w,y=w<l-1,C=w===l-1,b+=i(h,k,y,C),c(h,u,!1);return s&&(f=x(h),p<h.getDate()&&(f+=_),f>s&&(h=new Date((+t)))),o&&(b+=o(h)),b},_content:function(e){var t=this,n="";n+="<tbody>",n+=t._renderRows(e,t.rowLevels,t.columnLevels),n+="</tbody>",this.content.find("table").append(n)},_virtualContent:function(e,t){var n=this,i="",o=n._dates;i+=n._renderRows(o,e,t),n.content.find("table tbody").append(i)},_renderRows:function(e,t,n){var i,o,r,a=this,s="vertical"===a._groupOrientation(),l=a._isGroupedByDate(),d=0,c=e.length,u=a.options,h=a.startTime(),p=this.endTime(),f=1,m=1,g=this.groupedResources,v="";for(g.length&&(i=a._recalculateLevels(t,n),m=i.rowCount,f=i.groupsCount),o=function(t,n,i){var o,u,h,p="",m=0;if(p="<tr"+(i?' class="k-middle-row"':"")+">",l)for(o=0,u=c;o<u;o++){for(m=0;m<f;m++)h=o,s&&(h=d),p=a._addCellsToContent(p,e,t,h,m,r);if(s)break}else for(;m<f;m++)for(o=0,u=c;o<u;o++)p=a._addCellsToContent(p,e,t,o,m,r);return p+="</tr>"},r=0;r<m;r++)v+=u.allDaySlot&&s?this._allDayVerticalGroupRow(e,r,f,d):"",v+=this._forTimeRange(h,p,o),s&&d++;return v},_recalculateLevels:function(e,t){var n=this,i=n._isGroupedByDate(),o="vertical"===n._groupOrientation(),r=1,a=1;return o?(a=n._rowCountForLevel(e.length-2,e),i&&(r=n._columnCountForLevel(t.length-1))):r=i?n._columnCountForLevel(t.length-1)/this._columnCountForLevel(0):n._columnCountForLevel(t.length-2),{rowCount:a,groupsCount:r}},_allDayVerticalGroupRow:function(e,t,n,i){var o,r=this,a='<tr class="k-scheduler-header-all-day">',s=r._isGroupedByDate(),l=s?0:t,d=r.allDaySlotTemplate,c=function(){return r._resourceBySlot({groupIndex:l})};if(s)for(;l<n;l++)a+="<td>"+d({date:e[i],resources:c})+"</td>";else for(o=0;o<e.length;o++)a+="<td>"+d({date:e[o],resources:c})+"</td>";return a+"</tr>"},_addCellsToContent:function(e,t,n,i,o,r){var a,l=this,d="",c=this.slotTemplate,u="vertical"===this._groupOrientation(),h=function(e){return function(){return l._resourceBySlot({groupIndex:e})}};return s.date.isToday(t[i])&&(d+="k-today"),(s.date.getMilliseconds(n)<s.date.getMilliseconds(this.options.workDayStart)||s.date.getMilliseconds(n)>=s.date.getMilliseconds(this.options.workDayEnd)||!this._isWorkDay(t[i]))&&(d+=" k-nonwork-hour"),e+="<td"+(""!==d?' class="'+d+'"':"")+">",a=s.date.getDate(t[i]),s.date.setTime(a,s.date.getMilliseconds(n)),e+=c({date:a,resources:h(u&&!l._isGroupedByDate()?r:o)}),e+="</td>"},_isWorkDay:function(e){var t,n=e.getDay(),i=this._workDays;for(t=0;t<i.length;t++)if(i[t]===n)return!0;return!1},_render:function(t){var n,i=this;t=t||[],this._dates=t,this._startDate=t[0],this._endDate=t[t.length-1||0],this.createLayout(this._layout(t)),this._content(t),this._footer(),this.refreshLayout(),this._isVirtualized()&&this._tryRenderContent(),n=this.element.find(".k-scheduler-header-all-day td"),n.length&&(this._allDayHeaderHeight=n.first()[0].clientHeight),i.element.on("click"+C,".k-nav-day",function(t){var n,o=e(t.currentTarget).closest("th"),r=o.offset(),a=0,s=p(o);i._isGroupedByDate()&&(i._isVerticallyGrouped()?(a=h(i.times),s=0):s=p(i.datesHeader)),n=i._slotByPosition(r.left+a,r.top+s),i.trigger("navigate",{view:"day",date:n.startDate()})})},startTime:function(){var e=this.options;return e.showWorkHours?e.workDayStart:e.startTime},endTime:function(){var e=this.options;return e.showWorkHours?e.workDayEnd:e.endTime},startDate:function(){return this._startDate},endDate:function(){return this._endDate},_end:function(e){var t=x(this.endTime())||_;return e&&(t=0),new Date(this._endDate.getTime()+t)},nextDate:function(){return s.date.nextDay(this.endDate())},previousDate:function(){return s.date.previousDay(this.startDate())},calculateDateRange:function(){this._render([this.options.date])},destroy:function(){var e=this;e._currentTimeUpdateTimer&&clearInterval(e._currentTimeUpdateTimer),e.datesHeader&&e.datesHeader.off(C),e.element&&e.element.off(C),e.footer&&e.footer.remove(),u.fn.destroy.call(this),this._isMobile()&&e.options.editable&&(e.options.editable.create!==!1&&(e._addUserEvents.destroy(),e._allDayUserEvents.destroy()),e.options.editable.update!==!1&&e._editUserEvents.destroy())},inRange:function(e){var t,n,i,o,r=u.fn.inRange.call(this,e);return e.isAllDay?r:(t=x(this.startTime()),n=x(this.endTime())||s.date.MS_PER_DAY,i=x(e.start),o=x(e.end)||s.date.MS_PER_DAY,r&&t<=i&&o<=n)},selectionByElement:function(e){var t=e.offset(),n=Math.round(e.innerHeight())-5;return this._slotByPosition(t.left,t.top+n)},_timeSlotInterval:function(){var e=this.options;return e.majorTick/e.minorTickCount*v},_timeSlotIndex:function(e){var t=this.options,n=x(e),i=x(this.startTime()),o=t.majorTick/t.minorTickCount*v;return(n-i)/o},_slotIndex:function(e,t){return t?this._dateSlotIndex(e):this._timeSlotIndex(e)},_dateSlotIndex:function(e,t){var n,o,r,a,l=this._dates||[],d=1;for(n=0,o=l.length;n<o;n++)if(r=s.date.getDate(l[n]),a=new Date(s.date.getDate(l[n]).getTime()+_-(t?0:1)),i(e,r,a))return n*d;return-1},_positionAllDayEvent:function(t,n){var i,o,r,a,s,l,d,c=n.innerWidth(),h=n.start.index,p=n.end.index,f=u.collidingEvents(n.events(),h,p),m=this._headerColumnCount||0,g=2,v=h!==p?3:2,_=this._allDayHeaderHeight,b=n.startSlot();for(t.css({left:b.offsetLeft+g,width:c-v}),n.addEvent({slotIndex:h,start:h,end:p,element:t}),f.push({slotIndex:h,start:h,end:p,element:t}),i=u.createRows(f),i.length&&i.length>m&&(this._headerColumnCount=i.length),o=n.start.offsetTop,r=0,a=i.length;r<a;r++)for(s=i[r].events,l=0,d=s.length;l<d;l++)e(s[l].element).css({top:o+r*_})},_arrangeColumns:function(e,t,n,i){var o,r,a,s,l,d,c,h,p,f,m,g,v=i.start;for(e={element:e,slotIndex:v.index,start:t,end:t+n},r=v.clientWidth,a=.1*r,l=i.events(),d=u.collidingEvents(l,e.start,e.end),i.addEvent(e),d.push(e),o=u.createColumns(d),c=(r-a)/o.length,h=0,p=o.length;h<p;h++)for(s=o[h].events,f=0,m=s.length;f<m;f++)g=c-2,s[f].element[0].style.width=(g>0?g:c)+"px",s[f].element[0].style.left=(this._isRtl?a:0)+v.offsetLeft+h*c+2+"px"},_positionEvent:function(e,t,n){var i=e._startTime||e.start,o=e._endTime||e.end,r=s.getComputedStyles(n.start.element,["border-top-width","border-bottom-width"]),a=n.innerRect(i,o,!1),l=a.bottom-a.top-parseFloat(r["border-top-width"])-parseFloat(r["border-bottom-width"]);l<0&&(l=0),t.css({top:a.top,height:l}),this._arrangeColumns(t,a.top,t[0].clientHeight,n)},_createEventElement:function(t,n,o,r){var a,l,d,c,u,h,p=n?this.eventTemplate:this.allDayEventTemplate,m=this.options,v=m.editable,b=this._isMobile(),w=v&&v.destroy!==!1&&!b,k=v&&v.resize!==!1,y=g(this.startDate()),C=g(this.endDate()),S=x(this.startTime()),T=x(this.endTime()),D=t._time("start"),A=t._time("end");return S>=T&&(T=x(new Date(this.endTime().getTime()+_-1))),n||t.isAllDay||(C=new Date(C.getTime()+_)),l=t.start,d=t.end,t.isAllDay&&(d=g(t.end)),!i(g(l),y,C)&&!i(d,y,C)||n&&D<S&&A>T?a=!0:g(l)<y||n&&D<S?r=!0:(d>C&&!n||n&&A>T)&&(o=!0),c=this.eventResources(t),t._startTime&&D!==s.date.getMilliseconds(t.start)&&(l=new Date(D),l=s.timezone.apply(l,"Etc/UTC")),t._endTime&&A!==s.date.getMilliseconds(t.end)&&(d=new Date(A),d=s.timezone.apply(d,"Etc/UTC")),u=f({},{ns:s.ns,resizable:k,showDelete:w,middle:a,head:o,tail:r,singleDay:1==this._dates.length,resources:c,inverseColor:!1,messages:m.messages},t,{start:l,end:d}),h=e(p(u)),this.angular("compile",function(){return{elements:h,data:[{dataItem:u}]}}),h},_isInTimeSlot:function(e){var t,n=this.startTime(),i=this.endTime(),r=e._startTime||e.start,a=e._endTime||e.end;return x(i)===x(s.date.getDate(i))&&(i=s.date.getDate(i),c(i,_-1)),e._date("end")>e._date("start")&&(a=+e._date("end")+(_-1)),a=e._endTime?a-e._date("end"):x(new Date(a)),r=e._startTime?r-e._date("start"):x(new Date(r)),i=x(i),n=x(n),n===r&&r===a||(t=r!==i,o(r,n,i,t)||o(a,n,i,t)||o(n,r,a)||o(i,r,a))},_isInDateSlot:function(e){var t=this.groups[0],n=t.firstSlot().start,o=t.lastSlot().end-1,r=s.date.toUtcTime(e.start),a=s.date.toUtcTime(e.end);return(i(r,n,o)||i(a,n,o)||i(n,r,a)||i(o,r,a))&&(!i(a,n,n)||i(a,r,r)||e.isAllDay)},_updateAllDayHeaderHeight:function(e){var t,n;if(this._height!==e&&(this._height=e,t=this.element.find(".k-scheduler-header-all-day td"),t.length))for(t.parent().add(this.element.find(".k-scheduler-times-all-day").parent()).height(e),n=0;n<this.groups.length;n++)this.groups[n].refresh()},_renderEvents:function(e,t){var n,i,o,a,l,d,c,u,h,p,f,m,g,v,b,w,k,y,x,C,S,T=this.datesHeader.find(".k-scheduler-header-wrap > div"),D=this._isGroupedByDate();for(i=0,o=e.length;i<o;i++)if(n=e[i],this._isInDateSlot(n))if(a=n.isAllDay||n.duration()>=_,l=a&&!this._isVerticallyGrouped()?T:this.content,a){if(this.options.allDaySlot){if(f=this.groups[t],!f)continue;if(f._continuousEvents||(f._continuousEvents=[]),c=f.slotRanges(n),c.length)if(u=c[0],w=u.start.index,k=u.end.index,D&&w!==k)for(h=u.start.start,p=u.end.end,y=h,x=h,C=u.start.index;C<=u.end.index;C++)d=this._createEventElement(n,!a,C!==k,C!==w),S=f.daySlotRanges(y,x,!0)[0],y=x+=s.date.MS_PER_DAY,this._positionAllDayEvent(d,S),r(f,S,d,!0),d.appendTo(l),this._inverseEventColor(d);else d=this._createEventElement(n,!a),this._positionAllDayEvent(d,c[0]),r(f,c[0],d,!0),d.appendTo(l),this._inverseEventColor(d)}}else if(this._isInTimeSlot(n)){if(f=this.groups[t],!f)continue;for(f._continuousEvents||(f._continuousEvents=[]),c=f.slotRanges(n),m=c.length,g=0;g<m;g++)u=c[g],h=n.start,p=n.end,m>1&&(0===g?p=u.end.endDate():g==m-1?h=u.start.startDate():(h=u.start.startDate(),p=u.end.endDate())),v=n.clone({start:h,end:p,_startTime:n._startTime,_endTime:n.endTime}),this._isInTimeSlot(v)&&(b=u.head,d=this._createEventElement(n,!a,b,u.tail),d.appendTo(l),this._inverseEventColor(d),this._positionEvent(v,d,u),r(f,u,d,!1))}},render:function(t){var n,o,r,a;for(this._headerColumnCount=0,this._cachedEvents=t,this._groups(),this.element.find(".k-event").remove(),t=new s.data.Query(t).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray(),n=[],this._eventsByResource(t,this.groupedResources,n),o=e.map(this._dates,function(t){return Math.max.apply(null,e.map(n,function(n){return e.grep(n,function(e){return e.isMultiDay()&&i(t,g(e.start),g(e.end))}).length}))}),r=Math.max.apply(null,o),this._updateAllDayHeaderHeight((r+1)*this._allDayHeaderHeight),a=0;a<n.length;a++)this._renderEvents(n[a],a);this.refreshLayout(),this._currentTime(!1),this.trigger("activate")},_eventsByResource:function(e,t,n){
var i,o,r,a,l=t[0];if(l)for(i=l.dataSource.view(),o=0;o<i.length;o++)r=this._resourceValue(l,i[o]),a=new s.data.Query(e).filter({field:l.field,operator:u.groupEqFilter(r)}).toArray(),t.length>1?this._eventsByResource(a,t.slice(1),n):n.push(a);else n.push(e)},_columnOffsetForResource:function(e){return this._columnCountForLevel(e)/this._columnCountForLevel(e-1)},_columnCountForLevel:function(e){var t=this.columnLevels[e];return t?t.length:0},_rowCountForLevel:function(e,t){t=t||this.rowLevels;var n=t[e];return n?n.length:0},clearSelection:function(){this.content.add(this.datesHeader).find(".k-state-selected").removeAttr("id").attr("aria-selected",!1).removeClass("k-state-selected")},_updateDirection:function(e,t,n,i,o){var r=e.isAllDay,a=t[0].start,s=t[t.length-1].end;n&&(o?r||a.index!==s.index||a.collectionIndex!==s.collectionIndex||(e.backward=i):(r&&a.index===s.index||!r&&a.collectionIndex===s.collectionIndex)&&(e.backward=i))},_changeViewPeriod:function(e,t,n){var i,o,r,a,s,l,d,u,h,p,f,m,g;if(!n)return i=t?this.previousDate():this.nextDate(),o=e.start,r=e.end,a=this._isGroupedByDate()&&this._isVerticallyGrouped(),s=this.groups[e.groupIndex],l=t?s._timeSlotCollections:s._getCollections(s.daySlotCollectionCount()),d=l[l.length-1]._slots,u=t||s.daySlotCollectionCount()?d.length-1:0,p=new Date(i),f=new Date(i),!this._isInRange(p,f)&&(e.start=p,e.end=f,a?(m=new Date(d[u].startDate()),g=new Date(d[u].endDate()),h=x(g)?x(g):_,c(e.start,x(m)),c(e.end,h),s.daySlotCollectionCount()&&(e.isAllDay=!e.isAllDay)):(h=e.isAllDay||!x(r)?_:x(r),c(e.start,x(o)),c(e.end,h)),this._isVerticallyGrouped()||(e.groupIndex=t?this.groups.length-1:0),e.events=[],!0)}});f(!0,l,{MultiDayView:I,DayView:I.extend({options:{name:"DayView",title:"Day",selectedMobileDateFormat:"{0:MMM d}"},name:"day"}),WeekView:I.extend({options:{name:"WeekView",title:"Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},name:"week",calculateDateRange:function(){var e,t,n=this.options.date,i=s.date.dayOfWeek(n,this.calendarInfo().firstDay,-1),o=[];for(e=0,t=7;e<t;e++)o.push(i),i=s.date.nextDay(i);this._render(o)}}),WorkWeekView:I.extend({options:{name:"WorkWeekView",title:"Work Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},name:"workWeek",nextDate:function(){var e=s.date.dayOfWeek(s.date.nextDay(this.startDate()),this.calendarInfo().firstDay,1);return s.date.addDays(e,this._workDays[0])},previousDate:function(){var e=s.date.dayOfWeek(this.startDate(),this.calendarInfo().firstDay,-1),t=this._workDays;return s.date.addDays(e,t[t.length-1]-7)},calculateDateRange:function(){var e=this.options,t=e.date,n=s.date.dayOfWeek,i=n(t,this.calendarInfo().firstDay,-1),o=n(i,e.workWeekStart,1),r=n(o,e.workWeekEnd,1),a=[],l=e.workDays&&e.workDays.length?e.workDays.map(function(e){return n(i,e,1).getTime()}):null;for(l&&(o=i,r=n(o,6,1));o<=r;)l&&l.indexOf(o.getTime())>-1?a.push(o):l||a.push(o),o=s.date.nextDay(o);this._render(a)}})})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.agendaview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e){function t(e){var t,n,i=0;for(t=0,n=e.length;t<n;t++)i+=e[t].items.length;return i}function n(e,t){return e.valuePrimitive&&(t=r.getter(e.dataValueField)(t)),t}function i(e){for(var t,n=0,i=e.length,r=[];n<i;n++)t=e[n],t.groups?(t=o(t.groups),r=r.concat(t)):r=r.concat(o(t.items));return r}function o(e){for(var t=[].concat(e),n=t.shift(),i=[],o=[].push;n;)n.groups?o.apply(t,n.groups):n.items?o.apply(t,n.items):o.call(i,n),n=t.shift();return i}var r=window.kendo,a=r.ui,s=".kendoAgendaView",l='<div class="k-task" title="#:(data.title || "").replace(/"/g,"\'")#" data-#=kendo.ns#uid="#=uid#"># if (resources[0]) {#<span class="k-scheduler-mark" style="background-color:#=resources[0].color#"></span># } ## if (data.isException()) { #<span class="k-icon k-i-non-recurrence"></span># } else if (data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #<span class="k-scheduler-task-text">{0}</span>#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}#</div>',d='# if (!isMobile) { #<strong class="k-scheduler-agendaday">#=kendo.toString(date, "dd")#</strong><em class="k-scheduler-agendaweek">#=kendo.toString(date,"dddd")#</em><span class="k-scheduler-agendadate">#=kendo.toString(date, "y")#</span># } else { #<div class="k-scheduler-datecolumn-wrap"><span class="k-mobile-scheduler-agendadate"><span class="k-mobile-scheduler-agendaday">#=kendo.toString(date, "dd")#</span>&nbsp<span class="k-mobile-scheduler-agendamonth">#=kendo.toString(date, "MMMM")#</span></span><span class="k-mobile-scheduler-agendaweekday">#=kendo.toString(date, "dddd")#</span></div># } #',c='# if (!isMobile) { #<strong class="k-scheduler-adgendagroup">#=value#</strong># } else { #<span class="k-scheduler-group-text">#=value#</span># } #',u=r.Class.extend({init:function(e){this._view=e},_getColumns:function(e,t){return e.concat(t)},_getGroupsInDay:function(){return[]},_getSumOfItemsForDate:function(){return 0},_renderTaskGroupsCells:function(e,t,n,i){var o=this._view;0===n&&0===i&&t.length&&o._renderTaskGroupsCells(e,t)},_renderDateCell:function(e,t,n,i,o,a){var s=this._view,l=s._isMobile();e.push(r.format('<td class="k-scheduler-datecolumn{3}{2}" rowspan="{0}">{1}</td>',n.length,s._dateTemplate({date:i,isMobile:l}),o!=a.length-1||t.length?"":" k-last",t.length?"":" k-first"))},_renderDates:function(){},_getParents:function(e){return e.splice(0)},_getGroupsByDate:function(){},_renderTaskGroups:function(e,t,n){var i=this._view;e.append(i._renderTaskGroups(t,n))}}),h=r.Class.extend({init:function(e){this._view=e},_getColumns:function(e,t){var n,i,o=this._view;return o._isMobile()?e.concat(t):(n=t.slice(0,1),i=t.slice(1),n.concat(e).concat(i))},_compareDateGroups:function(e,t,n){return e[n].text==t[n].text&&(0===n||this._compareDateGroups(e,t,n-1))},_getGroupsInDay:function(e,t){var n,i,o,r,a,s=[],l=null;for(n=0;n<e.length;n++)for(i=0;i<e[n].items.length;i++){if(o=0,0===s.length)for(o;o<t[n].length;o++)s.push([1]);else for(o;o<t[n].length;o++)if(this._compareDateGroups(t[n],l,o))s[o][s[o].length-1]++;else{for(r=s[o][s[o].length-1]-1,a=0;a<r;a++)s[o].push(0);s[o].push(1)}l=t[n]}return s},_getSumOfItemsForDate:function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].items.length;return n},_renderTaskGroupsCells:function(e,t,n,i,o,a,s,l){var d,c=this._view,u=c._isMobile();if(u)0===n&&0===i&&t.length&&c._renderTaskGroupsCells(e,t);else for(0===n&&0===i&&e.push(r.format('<td class="k-scheduler-datecolumn k-first" rowspan="{0}">{1}</td>',a,c._dateTemplate({date:s,isMobile:u}))),d=0;d<t[n].length;d++)o[d][l]&&e.push(r.format('<td class="k-scheduler-groupcolumn" rowspan="{0}">{1}</td>',o[d][l],c._groupTemplate({value:t[n][d].text,isMobile:u}),t[n][d].className))},_renderDateCell:function(){},_renderDates:function(e){var t,n=this._view,i=n._groupsByDate.sort(function(e,t){return e.array[0].value.getTime()-t.array[0].value.getTime()});for(t=0;t<i.length;t++)e.append(n._renderTaskGroups(i[t].array,i[t].groups))},_getParents:function(e){return e.slice(0)},_getGroupsByDate:function(e,t,n){var i,o,r,a,s=this._view;if(e[t].items)for(i=0;i<e[t].items.length;i++){for(o=e[t].items[i].value,r=!1,a=0;a<s._groupsByDate.length;a++)s._groupsByDate[a].array[0].value.getTime()===o.getTime()&&(r=!0,s._groupsByDate[a].array.push(e[t].items[i]),s._groupsByDate[a].groups.push(n));r||s._groupsByDate.push({array:[e[t].items[i]],groups:[n]})}},_renderTaskGroups:function(){}});r.ui.scheduler.AgendaGroupedView=u,r.ui.scheduler.AgendaGroupedByDateView=h,a.AgendaView=a.SchedulerView.extend({init:function(t,n){a.SchedulerView.fn.init.call(this,t,n),this._groupedView=this._getGroupedView(),n=this.options,n.editable&&(n.editable=e.extend({"delete":!0},n.editable,{create:!1,update:!1},{messages:n.messages})),this.title=n.title,this._eventTemplate=this._eventTmpl(n.eventTemplate,l),this._dateTemplate=r.template(n.eventDateTemplate),this._groupTemplate=r.template(n.eventGroupTemplate),this._timeTemplate=r.template(n.eventTimeTemplate),this.element.on("mouseenter"+s,".k-scheduler-agenda .k-scheduler-content tr","_mouseenter").on("mouseleave"+s,".k-scheduler-agenda .k-scheduler-content tr","_mouseleave").on("click"+s,".k-scheduler-agenda .k-scheduler-content .k-link:has(.k-i-close)","_remove"),this._renderLayout(n.date)},name:"agenda",_isVirtualized:function(){return!1},_getGroupedView:function(){return this._isGroupedByDate()?new r.ui.scheduler.AgendaGroupedByDateView(this):new r.ui.scheduler.AgendaGroupedView(this)},_mouseenter:function(t){e(t.currentTarget).addClass("k-state-hover")},_mouseleave:function(t){e(t.currentTarget).removeClass("k-state-hover")},_remove:function(t){t.preventDefault(),this.trigger("remove",{uid:e(t.currentTarget).closest(".k-task").attr(r.attr("uid"))})},nextDate:function(){return r.date.nextDay(this.startDate())},startDate:function(){return this._startDate},endDate:function(){return this._endDate},previousDate:function(){return r.date.previousDay(this.startDate())},_renderLayout:function(e){this._startDate=e,this._endDate=r.date.addDays(e,7),this.createLayout(this._layout()),this._footer(),this.table.addClass("k-scheduler-agenda")},_layout:function(){var e,t,n,i=[{text:this.options.messages.time,className:"k-scheduler-timecolumn"},{text:this.options.messages.event}];if(this._isMobile()||i.splice(0,0,{text:this.options.messages.date,className:"k-scheduler-datecolumn"}),e=this.groupedResources,e.length){for(t=[],n=0;n<e.length;n++)t.push({text:"",className:"k-scheduler-groupcolumn"});i=this._groupedView._getColumns(t,i)}return{columns:i}},_tasks:function(e){var t,n,i,o,a,s,l,d=[];for(t=0;t<e.length;t++)if(n=e[t],i=n.start,o=n.isAllDay?r.date.getDate(n.end):n.end,a=Math.ceil((o-r.date.getDate(i))/r.date.MS_PER_DAY),n.isAllDay&&(a+=1),s=n.clone(),s.startDate=r.date.getDate(i),s.startDate>=this.startDate()&&d.push(s),a>1)for(s.end=r.date.nextDay(i),s.head=!0,l=1;l<a;l++)i=s.end,s=n.clone(),s.start=s.startDate=r.date.getDate(i),s.end=r.date.nextDay(i),l==a-1?(s.end=new Date(s.start.getFullYear(),s.start.getMonth(),s.start.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()),s.tail=!0):(s.isAllDay=!0,s.middle=!0),(r.date.getDate(s.end)<=this.endDate()&&s.start>=this.startDate()||r.date.getDate(s.start).getTime()==this.endDate().getTime())&&d.push(s);return new r.data.Query(d).sort([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]).groupBy({field:"startDate"}).toArray()},_renderTaskGroups:function(e,t){var n,i,o,a,s,l,d,c,u=[],h=this.options.editable,p=h&&h.destroy!==!1&&!this._isMobile(),f=this._isMobile(),m=this._groupedView._getSumOfItemsForDate(e),g=this._groupedView._getGroupsInDay(e,t),v=0;for(n=0;n<e.length;n++)for(i=e[n].value,o=e[n].items,a=r.date.isToday(i),s=0;s<o.length;s++)l=o[s],d=[],c=f?[]:d,this._groupedView._renderTaskGroupsCells(c,t,n,s,g,m,i,v),v++,0===s&&(f?(c.push(r.format('<td class="k-scheduler-datecolumn {1}" colspan="2">{0}</td>',this._dateTemplate({date:i,isMobile:f}),this.groupedResources.length?"":"k-first")),u.push('<tr role="row" aria-selected="false"'+(a?' class="k-today">':">")+c.join("")+"</tr>")):this._groupedView._renderDateCell(d,t,o,i,n,e)),l.format=l.head?"{0:t}":l.tail?"{1:t}":"{0:t}-{1:t}",l.resources=this.eventResources(l),d.push(r.format('<td class="k-scheduler-timecolumn {4}"><div>{0}{1}{2}</div></td><td>{3}</td>',l.tail||l.middle?'<span class="k-icon k-i-arrow-60-left"></span>':"",this._timeTemplate(l.clone({start:l._startTime||l.start,end:l.endTime||l.end})),l.head||l.middle?'<span class="k-icon k-i-arrow-60-right"></span>':"",this._eventTemplate(l.clone({showDelete:p,messages:this.options.messages})),!this.groupedResources.length&&f?"k-first":"")),u.push('<tr role="row" aria-selected="false"'+(a?' class="k-today">':">")+d.join("")+"</tr>");return u.join("")},_renderTaskGroupsCells:function(e,t){var n,i=this._isMobile();for(n=0;n<t.length;n++)e.push(r.format('<td class="k-scheduler-groupcolumn{2}" rowspan="{0}">{1}</td>',t[n].rowSpan,this._groupTemplate({value:t[n].text,isMobile:i}),t[n].className))},render:function(e){var t,n,o=this.content.find("table").empty(),r=[];e.length>0&&(t=this.groupedResources,t.length?(r=this._createGroupConfiguration(e,t,null),this._groupsByDate=[],this._renderGroups(r,o,[]),this._groupedView._renderDates(o)):(r=this._tasks(e),o.append(this._renderTaskGroups(r,[])))),n=this._eventsList=i(r),this._angularItems(o,n),this.refreshLayout(),this.trigger("activate")},_angularItems:function(e,t){this.angular("compile",function(){var n=[],i=t.map(function(t){return n.push({dataItem:t}),e.find(".k-task["+r.attr("uid")+"="+t.uid+"]")});return{elements:i,data:n}})},_renderGroups:function(e,t,n){var i,o,r;for(i=0,o=e.length;i<o;i++)r=this._groupedView._getParents(n),r.push(e[i]),this._groupedView._getGroupsByDate(e,i,r),e[i].groups?this._renderGroups(e[i].groups,t,r):this._groupedView._renderTaskGroups(t,e[i].items,r)},_createGroupConfiguration:function(e,i,o){var s,l,d,c,u,h,p,f=i[0],m=[],g=f.dataSource.view(),v=this._isMobile();for(s=0;s<g.length;s++)l=n(f,g[s]),d=new r.data.Query(e).filter({field:f.field,operator:a.SchedulerView.groupEqFilter(l)}).toArray(),d.length&&(c=this._tasks(d),u=o?"":" k-first",s===g.length-1&&(!o||o.className.indexOf("k-last")>-1)&&(u+=" k-last"),h={text:r.getter(f.dataTextField)(g[s]),value:l,rowSpan:0,className:u},i.length>1?(h.groups=this._createGroupConfiguration(d,i.slice(1),h),o&&(o.rowSpan+=h.rowSpan)):(h.items=c,p=t(h.items),v&&(p+=h.items.length),h.rowSpan=p,o&&(o.rowSpan+=p)),m.push(h));return m},selectionByElement:function(t){var n,i,o;if(t=e(t),!t.hasClass("k-scheduler-datecolumn")&&this._eventsList.length)return t.is(".k-task")&&(t=t.closest("td")),this._isMobile()?(o=t.parent(),n=o.parent().children().filter(function(){return e(this).children(":not(.k-scheduler-datecolumn)").length}).index(o)):n=t.parent().index(),i=this._eventsList[n],{index:n,start:i.start,end:i.end,isAllDay:i.isAllDay,uid:i.uid}},select:function(e){this.clearSelection();var t=this.table.find(".k-task").eq(e.index).closest("tr").addClass("k-state-selected").attr("aria-selected",!0)[0];this.current(t)},move:function(e,t){var n,i=!1,o=e.index;return t==r.keys.UP?(o--,i=!0):t==r.keys.DOWN&&(o++,i=!0),i&&(n=this._eventsList[o],n&&(e.start=n.start,e.end=n.end,e.isAllDay=n.isAllDay,e.events=[n.uid],e.index=o)),i},moveToEvent:function(){return!1},constrainSelection:function(e){var t=this._eventsList[0];t&&(e.start=t.start,e.end=t.end,e.isAllDay=t.isAllDay,e.events=[t.uid],e.index=0)},isInRange:function(){return!0},destroy:function(){this.element&&this.element.off(s),a.SchedulerView.fn.destroy.call(this)},options:{title:"Agenda",name:"agenda",editable:!0,selectedDateFormat:"{0:D}-{1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0: MMM} {0:dd} - {1:dd}",eventTemplate:"#:title#",eventTimeTemplate:"#if(data.isAllDay) {##=this.options.messages.allDay##} else { ##=kendo.format(format, start, end)## } #",eventDateTemplate:d,eventGroupTemplate:c,messages:{event:"Event",date:"Date",time:"Time",allDay:"all day"}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.monthview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e){function t(e,t){return e.slice(t).concat(e.slice(0,t))}function n(e,t){for(var n=t.firstDay,i=new Date(e.getFullYear(),e.getMonth(),0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());i.getDay()!=n;)o.date.setTime(i,-1*c);return i}function i(e,t,n){var i,o=t,r=n;return i=e,i>=o&&i<=r}var o=window.kendo,r=o.ui,a=r.SchedulerView,s=".kendoMonthView",l=e.extend,d=o.date.getDate,c=o.date.MS_PER_DAY,u=6,h=7,p="k-event-inverse",f=o.template('<span class="k-link k-nav-day">#:kendo.toString(date, "dd")#</span>'),m='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#"#if (resources[0]) { #style="background-color:#=resources[0].color #; border-color: #=resources[0].color#"class="k-event"#} else {#class="k-event"#}#><span class="k-event-actions"># if (data.tail || data.middle) {#<span class="k-icon k-i-arrow-60-left"></span>#}## if (data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if (data.isRecurring()) {#<span class="k-icon k-i-reload"></span>#}#</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}## if (data.head || data.middle) {#<span class="k-icon k-i-arrow-60-right"></span>#}#</span># if (resizable && !data.tail && !data.middle) {#<span class="k-resize-handle k-resize-w"></span>#}## if (resizable && !data.head && !data.middle) {#<span class="k-resize-handle k-resize-e"></span>#}#</div>',g=o.template('<div title="#=title.replace(/"/g,"&\\#34;")#"><div class="k-event-template">#:title#</div></div>'),v=2,_=o.template('<div style="width:#=width#px;left:#=left#px;top:#=top#px" class="k-more-events k-button"><span class="k-icon k-i-more-horizontal"></span></div>'),b=o.Class.extend({init:function(e){this._view=e},_verticalRowCountForLevel:function(e){var t=this._view;return t._rowCountForLevel(e)},_horizontalGroupCountForLevel:function(e){var t=this._view;return t._columnCountForLevel(e)},_getCalendarRowsLength:function(e,t){return t/e},_createRows:function(e,t,n,i){var o,r=this._view,a=h,s=r._isVerticallyGrouped(),l="";for(o=0;o<n;o++)l+=r._createRow(e,t,a,s?i:o);return l},_adjustStartDate:function(e){return o.date.addDays(e,h)},_getContent:function(e,t,n){return e({date:t,resources:n})},_getTimeSlotByPosition:function(e,t,n){var i=this._view.groups[n];return i.daySlotByPosition(e,t)},_nextSlotStartDate:function(e){return o.date.nextDay(e)},_createRowsLayout:function(e,t,n){var i=this._view;return i._createRowsLayout(e,t,n)},_createVerticalColumnsLayout:function(e,t,n,i){return i},_createColumnsLayout:function(e,t,n){var i=this._view;return i._createColumnsLayout(e,t,n)},_verticalGroupCount:function(e){var t=this._view;return t._rowCountForLevel(e)},_horizontalGroupCount:function(e){var t=this._view;return t._columnCountForLevel(e)/t._columnOffsetForResource(e)},_positionMobileEvent:function(e,t,n,i,o,r,a){var s,l=this._view;i>1&&(0===a?r=n.end.endDate():a==i-1?o=n.start.startDate():(o=n.start.startDate(),r=n.end.endDate())),s=e.clone({start:o,end:r,head:n.head,tail:n.tail}),l._positionMobileEvent(n,l._createEventElement(s),t)},_positionEvent:function(e,t,n,i,o,r,a){var s,l=this._view;i>1&&(0===a?r=n.end.endDate():a==i-1?o=n.start.startDate():(o=n.start.startDate(),r=n.end.endDate())),s=e.clone({start:o,end:r,head:n.head,tail:n.tail}),l._positionEvent(n,l._createEventElement(s),t)},_addDaySlotCollections:function(e,t,n){var i,r,a,s,l,d,c,p,f,m,g,v=this._view,_=h,b=u;for(i=0;i<e;i++)for(r=0,a=0,v._isVerticallyGrouped()&&(a=i),s=a*b;s<(a+1)*b;s++)for(l=v.groups[i],d=l.addDaySlotCollection(o.date.addDays(n,r),o.date.addDays(n,r+_)),c=t[s],p=c.children,f=0,c.setAttribute("role","row"),v._isVerticallyGrouped()||(f=i),m=f*_;m<(f+1)*_;m++)g=p[m],v.addDaySlot(d,g,n,r),r++},_changePeriodGroupIndex:function(e){var t=this._view;return e?t.groups.length-1:0},_createResizeHint:function(e){var t=this._view,n=e.startSlot().offsetLeft,i=e.start.offsetTop,o=e.innerWidth(),r=e.start.clientHeight-2,s=a.fn._createResizeHint.call(t,n,i,o,r);t._appendResizeHint(s)},_createMoveHint:function(e,t){var n=this._view,i=e.startSlot(),o=e.endSlot(),r=n._createEventElement(t.clone({head:e.head,tail:e.tail}));r.css({left:i.offsetLeft+2,top:i.offsetTop+i.firstChildHeight,height:"auto"===n.options.eventHeight?25:n.options.eventHeight,width:e.innerWidth()-(i.index!==o.index?3:2)}),r.addClass("k-event-drag-hint"),t.inverseColor&&r.addClass(p),n._appendMoveHint(r)}}),w=o.Class.extend({init:function(e){this._view=e},_verticalRowCountForLevel:function(){return 1},_horizontalGroupCountForLevel:function(e){var t=this._view;return t._columnCountForLevel(e+1)/h},_createRows:function(e,t,n){var i,r,a=this._view,s=h,l=a._isVerticallyGrouped(),d="",c=0;if(l){for(i=new Date(e),r=a._groupCount(),c;c<u;c++)d+=a._createRow(i,t,r,c),i=o.date.addDays(i,s);e=o.date.nextDay(e)}else{for(c;c<s;c++)d+=a._createRow(e,t,n,c),e=o.date.nextDay(e);e=o.date.addDays(e,s)}return d},_adjustStartDate:function(e,t){var n=this._view,i=n._isVerticallyGrouped();return i?t?o.date.addDays(e,h*(u-1)+1):o.date.nextDay(e):o.date.addDays(e,h)},_getContent:function(e,t,n,i){return 0===i?e({date:t,resources:n}):""},_getTimeSlotByPosition:function(e,t,n){var i=this._view.groups[n];return i.daySlotByPosition(e,t,!0)},_nextSlotStartDate:function(e){return e},_getCalendarRowsLength:function(){var e=this._view,t=e._isVerticallyGrouped();return t?h:u},_createRowsLayout:function(e,t,n,i){var o=this._view;return o._createDateLayout(i,null,!1)},_createVerticalColumnsLayout:function(e,t,n){var i,r,a=this._view,s=e[0],l=[],d=s.dataSource.view();for(i=0;i<d.length*u;i++)r={text:n({text:o.htmlEncode(o.getter(s.dataTextField)(d[i%d.length])),color:o.getter(s.dataColorField)(d[i%d.length]),field:s.field,title:s.title,name:s.name,value:o.getter(s.dataValueField)(d[i%d.length])}),className:"k-slot-cell"},r.columns=a._createColumnsLayout(e.slice(1),null,n),l.push(r);return l},_createColumnsLayout:function(e,t,n,i){var o=this._view;return o._createColumnsLayout(e,t,n,i,!0)},_verticalGroupCount:function(e){var t=this._view;return t._columnCountForLevel(e)/u},_horizontalGroupCount:function(e){var t=this._view;return t._columnCountForLevel(e)/h},_positionMobileEvent:function(e,t,n,i,o,r){var a,s,l,d,c=this._view,u=n.start.index,h=n.end.index;for(a=n.start.index;a<=n.end.index;a++)s=n.collection._slots[a],l=t.daySlotRanges(s.start,s.start,!0)[0],d=e.clone({start:a===u?o:s.startDate(),end:a===h?r:s.endDate(),head:a!==h||n.head,tail:a!==u||n.tail}),c._positionMobileEvent(l,c._createEventElement(d),t)},_positionEvent:function(e,t,n,i,o,r){var a,s,l,d,c=this._view,u=n.start.index,h=n.end.index;for(a=n.start.index;a<=n.end.index;a++)s=n.collection._slots[a],l=t.daySlotRanges(s.start,s.start,!0)[0],d=e.clone({start:a===u?o:s.startDate(),end:a===h?r:s.endDate(),head:a!==h||n.head,tail:a!==u||n.tail}),c._positionEvent(l,c._createEventElement(d),t)},_addDaySlotCollections:function(e,t,n){var i,r,a,s,l,d,c,p,f,m,g,v,_,b,w=this._view,k=h,y=u,x=w._isVerticallyGrouped();for(i=0;i<k;i++)for(r=0;r<y;r++)for(a=0,s=x?i:r,l=t[s],d=l.children,c=0,l.setAttribute("role","row"),w._isVerticallyGrouped()||(c=i),p=c*e;p<(c+1)*e;p++)f=r*k+i,m=x?p+r*e:p,g=d[m],v=x?p:a,_=w.groups[v],b=0===i?_.addDaySlotCollection(o.date.addDays(n,f),o.date.addDays(n,f+k)):_._daySlotCollections[r],w.addDaySlot(b,g,n,f),a++},_changePeriodGroupIndex:function(e,t,n){var i=this._view;return t&&i._isVerticallyGrouped()?e?i.groups.length-1:0:n},_createResizeHint:function(e){var t,n,i,o,r,s,l,d=this._view;if(d._isVerticallyGrouped())t=e.startSlot().offsetLeft,n=e.start.offsetTop,i=e.startSlot().offsetWidth,o=e.endSlot().offsetTop+e.startSlot().offsetHeight-e.startSlot().offsetTop-2,r=a.fn._createResizeHint.call(d,t,n,i,o),d._appendResizeHint(r);else for(s=e.startSlot().index;s<=e.endSlot().index;s++)l=e.collection._slots[s],t=l.offsetLeft,n=l.offsetTop,i=l.offsetWidth,o=l.offsetHeight-2,r=a.fn._createResizeHint.call(d,t,n,i,o),d._appendResizeHint(r)},_createMoveHint:function(e,t){var n,i,o,r=this._view,a=e.startSlot(),s=e.endSlot();for(n=a.index;n<=s.index;n++)i=e.collection._slots[n],o=r._createEventElement(t.clone({head:e.head,tail:e.tail})),o.css({left:i.offsetLeft,top:i.offsetTop+i.firstChildHeight,height:"auto"===r.options.eventHeight?25:r.options.eventHeight,width:i.offsetWidth-2}),o.addClass("k-event-drag-hint"),t.inverseColor&&o.addClass(p),r._appendMoveHint(o)}});o.ui.scheduler.MonthGroupedView=b,o.ui.scheduler.MonthGroupedByDateView=w,r.MonthView=a.extend({init:function(e,t){var n,i,o,r=this;if(0===t.eventsPerDay&&(t.eventsPerDay=1),0===t.eventHeight&&(t.eventHeight=1),0===t.moreButtonHeight&&(t.moreButtonHeight=1),"string"==typeof t.eventHeight&&"auto"!==t.eventHeight&&(t.eventHeight=25),"auto"===t.eventHeight&&(t.adaptiveSlotHeight=!0),a.fn.init.call(r,e,t),r._groupedView=r._getGroupedView(),n=this._isGroupedByDate(),i=this.options.adaptiveSlotHeight,o=this.options.eventHeight,n===!0&&i===!0)throw Error("Incompatible options: adaptive slot height and date grouping!");if(n===!0&&"auto"===o)throw Error("Incompatible options: auto event height and date grouping!");r.title=r.options.title,r._templates(),r._editable(),r._renderLayout(r.options.date),r._groups()},name:"month",_getGroupedView:function(){return this._isGroupedByDate()?new o.ui.scheduler.MonthGroupedByDateView(this):new o.ui.scheduler.MonthGroupedView(this)},_updateDirection:function(e,t,n,i,o){var r,a,s,l,d;n&&(r=t[0].start,a=t[t.length-1].end,s=r.index===a.index,l=r.collectionIndex===a.collectionIndex,d=o?s&&l||l:s&&l,d&&(e.backward=i))},_changeDate:function(e,t,n){var i,o,r,a=this.groups[e.groupIndex];if(n){if(i=a._getCollections(a.daySlotCollectionCount()),o=t.collectionIndex-1,o>=0)return i[o]._slots[i[o]._slots.length-1]}else if(i=a._getCollections(a.daySlotCollectionCount()),o=t.collectionIndex+1,r=0,i[o]&&i[o]._slots[r])return i[o]._slots[r]},_getNextHorizontalRange:function(e,t,n){var i=this._isVerticallyGrouped();return n.startSlot=e[t](n.startSlot,i),n.endSlot=e[t](n.endSlot,i),n},_getNextVerticalRange:function(e,t,n,i){var o=this._isVerticallyGrouped()&&this._isGroupedByDate();return n.startSlot=e[t](n.startSlot,i,o),n.endSlot=e[t](n.endSlot,i,o),n},_changeViewPeriod:function(e,t,n){var i,r,a=n?7:1;return t&&(a*=-1),i=o.date.addDays(e.start,a),r=o.date.addDays(e.end,a),!this._isInRange(i,r)&&(e.start=i,e.end=r,(!n||n&&this._isVerticallyGrouped())&&(e.groupIndex=this._groupedView._changePeriodGroupIndex(t,n,e.groupIndex)),e.events=[],!0)},_continuousSlot:function(e,t,n){var i=e.backward?0:t.length-1,o=this.groups[e.groupIndex];return o.continuousSlot(t[i].start,n)},_changeGroupContinuously:function(e,t,n,i){var o,r,a,s;return n||(o=e.groupIndex,r=this.groups.length-1,a=this._isVerticallyGrouped(),s=this.groups[o],!t&&a?(t=s[i?"lastSlot":"firstSlot"](),o+=i?-1:1):t&&!a&&(o=i?r:0),(o<0||o>r)&&(o=i?r:0,t=null),e.groupIndex=o),t},_normalizeHorizontalSelection:function(e,t,n){var i;return i=n?t[0].start:t[t.length-1].end},_normalizeVerticalSelection:function(e,t){var n;return n=e.backward?t[0].start:t[t.length-1].end},_templates:function(){var e=this.options,t=l({},o.Template,e.templateSettings);this.eventTemplate=this._eventTmpl(e.eventTemplate,m),this.dayTemplate=o.template(e.dayTemplate,t),this.groupHeaderTemplate=o.template(e.groupHeaderTemplate,t)},dateForTitle:function(){return o.format(this.options.selectedDateFormat,this._firstDayOfMonth,this._lastDayOfMonth)},shortDateForTitle:function(){return o.format(this.options.selectedShortDateFormat,this._firstDayOfMonth,this._lastDayOfMonth)},mobileDateForTitle:function(){return o.format(this.options.selectedMobileDateFormat,this._firstDayOfMonth,this._lastDayOfMonth)},nextDate:function(){return o.date.nextDay(this._lastDayOfMonth)},previousDate:function(){return o.date.previousDay(this._firstDayOfMonth)},startDate:function(){return this._startDate},endDate:function(){return this._endDate},_renderLayout:function(t){var i=this;this._firstDayOfMonth=o.date.firstDayOfMonth(t),this._lastDayOfMonth=o.date.lastDayOfMonth(t),this._startDate=n(t,this.calendarInfo()),this.createLayout(this._layout()),this._content(),this._initSlotHeight(),this.refreshLayout(),this._isVirtualized()&&this._tryRenderContent(),this.content.on("click"+s,".k-nav-day,.k-more-events",function(t){var n=e(t.currentTarget).offset(),o=i._slotByPosition(n.left,n.top);t.preventDefault(),i.trigger("navigate",{view:"day",date:o.startDate()})}),this._footer()},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var t=this;t.element.on("click"+s,".k-scheduler-monthview .k-event a:has(.k-i-close)",function(n){t.trigger("remove",{uid:e(this).closest(".k-event").attr(o.attr("uid"))}),n.preventDefault()}),t.options.editable.create!==!1&&t.element.on("dblclick"+s,".k-scheduler-monthview .k-scheduler-content td",function(n){var i,o=e(n.currentTarget).offset(),r=t._slotByPosition(o.left,o.top);r&&(i=t._resourceBySlot(r),t.trigger("add",{eventInfo:l({isAllDay:!0,start:r.startDate(),end:r.startDate()},i)})),n.preventDefault()}),t.options.editable.update!==!1&&t.element.on("dblclick"+s,".k-scheduler-monthview .k-event",function(n){t.trigger("edit",{uid:e(this).closest(".k-event").attr(o.attr("uid"))}),n.preventDefault()})},_touchEditable:function(){var t=this,n=0;o.support.mobileOS.android&&(n=5),t.options.editable.create!==!1&&(t._addUserEvents=new o.UserEvents(t.element,{threshold:n,useClickAsTap:!o.support.browser.edge,filter:".k-scheduler-monthview .k-scheduler-content td",tap:function(n){var i,o,r;t._scrolling||(i=e(n.target).offset(),o=t._slotByPosition(i.left,i.top),o&&(r=t._resourceBySlot(o),t.trigger("add",{eventInfo:l({isAllDay:!0,start:o.startDate(),end:o.startDate()},r)})),n.preventDefault())}}))},selectionByElement:function(t){var n=e(t).offset();return this._slotByPosition(n.left,n.top)},_columnCountForLevel:function(e){var t=this.columnLevels[e];return t?t.length:0},_rowCountForLevel:function(e){var t=this.rowLevels[e];return t?t.length:0},_content:function(){var e,t="<tbody>",n=1,i=this._groupedView,o=this.groupedResources;for(o.length&&this._isVerticallyGrouped()&&(n=i._verticalRowCountForLevel(o.length-1)),e=0;e<n;e++)t+=this._createCalendar(e),this._cachedGroupIndex=e;t+="</tbody>",this.content.find("table").html(t)},_virtualContent:function(){var e=this,t="";t+=this._createCalendar(++this._cachedGroupIndex),e.content.find("table tbody").append(t),e._initSlotHeight()},_calcSlotHeight:function(e){var t,n=this.options,i=n.eventHeight,o=n.eventSpacing,r=n.moreButtonHeight,a=this.content.find("table tr td")[0];if("auto"!==i&&a)return t=a.firstChild,Math.round(a.offsetHeight-a.clientHeight+t.offsetTop+t.offsetHeight+v+e*i+(e-1)*o+(v+r)+v)},_initSlotHeight:function(){var e,t=this.options,n=t.eventsPerDay,i=t.eventHeight,o=this._isMobile(),r=this.content.find("table");o||"number"==typeof i&&(r.addClass("k-scheduler-table-auto"),e=this._calcSlotHeight(n),r.find("tr").height(e))},_adjustSlotHeight:function(e){var t,n=this.options,i=n.eventHeight,o=n.eventSpacing,r=n.moreButtonHeight;this._canAdjustSlotHeight===!0&&(t=e._daySlotCollections,this.content.find("table").addClass("k-scheduler-table-auto"),t.forEach(function(e){var t=e._events,n=0,a=e._slots,s=a[0],l=s.element.offsetTop,d=0;a.forEach(function(e){e.eventMeta?e.actualEventCount=e.eventMeta.length:(e.eventMeta=[],e.actualEventCount=0)}),a.forEach(function(e,t){e.eventMeta.forEach(function(n,i){n.startIndex===t&&n.startIndex!==n.endIndex&&a.slice(t,n.endIndex+1).forEach(function(t){var o=t.eventMeta;o.indexOf(n)>-1||(o[o.length]=e.eventMeta[i],t.actualEventCount=o.length,t.dirty=!0)})}),e.dirty===!0&&(e.eventMeta.sort(function(e,t){return e.order-t.order}),delete e.dirty)}),"auto"===i&&a.forEach(function(e,t){var n=e.firstChildTop+e.firstChildHeight+v;e.eventMeta.forEach(function(e,t){e.top=Math.max(e.top,l+n),n=e.top-l+o+e.height})}),a.forEach(function(e,a){var s=e.firstChildTop+e.firstChildHeight+v;e.eventMeta.forEach(function(e){e.top=Math.max(e.top,l+s),s=e.top-l+o+e.height,e.startIndex===a&&(t[n].element[0].style.top=e.top+"px",n++)}),e.eventMeta.length>0?(s-=o,s+=v):s+="auto"===i?25:i,e.more&&(e.more[0].style.top=l+s+"px",s+=v+r),d=Math.max(d,s+1)}),s.element.parentNode.style.height=d+"px",a.forEach(function(e){e.offsetTop=l,e.offsetHeight=d,e.clientHeight=d-1})}.bind(this)));
},_createCalendar:function(e){var t,n,i,r=this.startDate(),a=h*u,s=h,l=[r],d="",c=1,p=this._isVerticallyGrouped(),f=this._groupedView,m=this.groupedResources;for(m.length&&(p||(c=f._horizontalGroupCountForLevel(m.length-1))),this._slotIndices={},t=f._getCalendarRowsLength(s,a),n=0;n<t;n++)d+="<tr>",l.push(r),i=n*s,d+=f._createRows(r,i,c,e),r=f._adjustStartDate(r,n===t-1),d+="</tr>";return this._weekStartDates=l,this._endDate=o.date.previousDay(r),d},_createRow:function(e,t,n,i){var r,a=this,s=a._firstDayOfMonth,l=a._lastDayOfMonth,c=a.dayTemplate,u="",h="",p=this._groupedView,f=function(){return a._resourceBySlot({groupIndex:i})};for(r=0;r<n;r++)u="",o.date.isToday(e)&&(u+="k-today"),o.date.isInDateRange(e,s,l)||(u+=" k-other-month"),h+="<td ",""!==u&&(h+='class="'+u+'"'),h+=">",h+=p._getContent(c,e,f,r),h+="</td>",a._slotIndices[d(e).getTime()]=t+r,e=p._nextSlotStartDate(e);return h},_layout:function(){var n,i,o,r=this.calendarInfo(),a=this._isMobile()?r.days.namesShort.map(function(e){return e[0]}):r.days.names,s=t(a,r.firstDay),l=e.map(s,function(e){return{text:e}}),d=this.groupedResources,c=this._groupedView;if(d.length)if(this._isVerticallyGrouped()){for(i=[],o=0;o<6;o++)i.push({text:"<div>&nbsp;</div>",className:"k-hidden k-slot-cell"});n=c._createRowsLayout(d,i,this.groupHeaderTemplate,l),l=c._createVerticalColumnsLayout(d,i,this.groupHeaderTemplate,l)}else l=c._createColumnsLayout(d,l,this.groupHeaderTemplate,l);return{columns:l,rows:n}},_createEventElement:function(t){var n,i=this.options,r=i.editable,a=this._isMobile();return t.showDelete=r&&r.destroy!==!1&&!a,t.resizable=r&&r.resize!==!1&&!a,t.ns=o.ns,t.resources=this.eventResources(t),t.inverseColor=!1,t.messages=i.messages||{destroy:"Delete"},n=e(this.eventTemplate(t)),this.angular("compile",function(){return{elements:n,data:[{dataItem:t}]}}),n},_isInDateSlot:function(e){var t=this.groups[0],n=t.firstSlot().start,r=t.lastSlot().end-1,a=o.date.toUtcTime(e.start),s=o.date.toUtcTime(e.end);return(i(a,n,r)||i(s,n,r)||i(n,a,s)||i(r,a,s))&&(!i(s,n,n)||i(s,a,a)||e.isAllDay)},_slotIndex:function(e){return this._slotIndices[d(e).getTime()]},_positionMobileEvent:function(t,n,i){var r,s,l,d,c,u,h,p=t.start;t.start.offsetLeft>t.end.offsetLeft&&(p=t.end),r=t.start.index,s=r,l=3,d=a.collidingEvents(t.events(),r,s),d.push({element:n,start:r,end:s}),c=a.createRows(d),u=t.collection.at(r),h=u.container,h||(h=e(o.format('<div class="k-events-container" style="top:{0};left:{1};width:{2}"></div>',p.offsetTop+p.firstChildTop+p.firstChildHeight+"px",p.offsetLeft+"px",p.offsetWidth+"px")),u.container=h,this.content[0].appendChild(h[0])),c.length<=l&&(t.addEvent({element:n,start:r,end:s,groupIndex:p.groupIndex}),i._continuousEvents.push({element:n,uid:n.attr(o.attr("uid")),start:t.start,end:t.end}),h[0].appendChild(n[0]))},_positionEvent:function(t,n,i){var r,s,l,d,c,u,h,p,f,m,g,b,w,k,y,x,C,S,T=this.options.eventHeight,D=this.options.eventSpacing,A=t.start;for(t.start.offsetLeft>t.end.offsetLeft&&(A=t.end),r=t.start.index,s=t.end.index,l=A.eventCount,d=a.collidingEvents(t.events(),r,s),c=r!==s?3:2,d.push({element:n,start:r,end:s}),u=a.createRows(d),h=0,p=Math.min(u.length,l);h<p;h++)for(f=u[h].events,m="auto"===T?"":A.offsetTop+A.firstChildTop+A.firstChildHeight+v+h*(T+D)+"px",g=0,b=f.length;g<b;g++)f[g].element[0].style.top=m,f[g].element.attr(o.attr("order"),h);if(u.length>l)for(w=r;w<=s;w++)k=t.collection,y=k.at(w),y.more||(y.more=e(_({ns:o.ns,start:w,end:w,width:y.clientWidth-2,left:y.offsetLeft+2,top:"auto"===T?"":y.offsetTop+y.firstChildTop+y.firstChildHeight+v+l*T+(l-1)*D+v})),this.content[0].appendChild(y.more[0]));else t.addEvent({element:n,start:r,end:s,groupIndex:A.groupIndex}),n[0].style.width=t.innerWidth()-c+"px",n[0].style.left=A.offsetLeft+2+"px",n[0].style.height="auto"===T?"":T+"px",i._continuousEvents.push({element:n,uid:n.attr(o.attr("uid")),start:t.start,end:t.end,order:parseInt(n.attr(o.attr("order")),10)}),n.appendTo(this.content),this._inverseEventColor(n),x=t.start.collectionIndex,C=t.start.index,S=i._daySlotCollections[x]._slots[C],S.eventMeta||(S.eventMeta=[]),S.eventMeta.push({height:"auto"===T?n.outerHeight():T,top:0,startIndex:C,endIndex:t.end.index,uid:n.attr(o.attr("uid")),order:parseInt(n.attr(o.attr("order")),10)})},_slotByPosition:function(e,t){var n,i,o=this.content.offset();for(e-=o.left,t-=o.top,t+=this.content[0].scrollTop,e+=this.content[0].scrollLeft,e=Math.ceil(e),t=Math.ceil(t),n=0;n<this.groups.length;n++)if(i=this._groupedView._getTimeSlotByPosition(e,t,n))return i;return null},_appendResizeHint:function(e){e.appendTo(this.content),this._resizeHint=this._resizeHint.add(e)},_updateResizeHint:function(e,t,n,i){var r,a,s;for(this._removeResizeHint(),r=this.groups[t],a=r.ranges(n,i,!0,e.isAllDay),s=0;s<a.length;s++)this._groupedView._createResizeHint(a[s]);this._resizeHint.find(".k-label-top,.k-label-bottom").text(""),this._resizeHint.first().addClass("k-first").find(".k-label-top").text(o.toString(o.timezone.toLocalDate(n),"M/dd")),this._resizeHint.last().addClass("k-last").find(".k-label-bottom").text(o.toString(o.timezone.toLocalDate(i),"M/dd"))},_updateMoveHint:function(e,t,n){var i,r=o.date.toUtcTime(e.start)+n,a=r+e.duration(),s=this.groups[t],l=s.ranges(r,a,!0,e.isAllDay);for(this._removeMoveHint(e.uid),i=0;i<l.length;i++)this._groupedView._createMoveHint(l[i],e)},_appendMoveHint:function(e){e.appendTo(this.content),this._moveHint=this._moveHint.add(e)},_groups:function(){var e,t=this._groupCount(),n=this.content[0].getElementsByTagName("tr"),i=this.startDate();for(this.groups=[],e=0;e<t;e++)this._addResourceView(e);this._groupedView._addDaySlotCollections(t,n,i)},addDaySlot:function(e,t,n,i){var r=o.date.addDays(n,i),a=o.date.MS_PER_DAY,s=this.options.eventsPerDay;n.getHours()!==r.getHours()&&(a+=(n.getHours()-r.getHours())*o.date.MS_PER_HOUR),r=o.date.toUtcTime(r),a+=r,t.setAttribute("role","gridcell"),t.setAttribute("aria-selected",!1),e.addDaySlot(t,r,a,s)},render:function(e){var t,n,i,r;this.content.children(".k-event,.k-more-events,.k-events-container").remove(),this._cachedEvents=e,this._groups(),e=new o.data.Query(e).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray().filter(function(e){return this._isInDateSlot(e)}.bind(this)),t=this.groupedResources,n=this._isMobile(),i=this._isGroupedByDate(),r=this.options.adaptiveSlotHeight,this._canAdjustSlotHeight=n!==!0&&i!==!0&&0===t.length&&r===!0,t.length?this._renderGroups(e,t,0,1):this._renderEvents(e,0),this.refreshLayout(),this.trigger("activate")},_renderEvents:function(e,t){var n=this.groups[t],i=this._groupedView._view,r=i._isMobile();n&&(n._continuousEvents||(n._continuousEvents=[]),r?e.forEach(function(e){for(var t,i=n.slotRanges(e,!0),r=i[0],a=r.start.start,s=r.end.end,l=new Date(r.start.start),d=i[i.length-1].end.end,c=new Date(l),u=new Date(s);l.getTime()<=d&&e.end>=o.timezone.toLocalDate(l)&&e.start<=o.timezone.toLocalDate(d);)t=n.daySlotRanges(c.getTime(),u.getTime(),!0)[0],u.setDate(u.getDate()+1),c.setDate(c.getDate()+1),t&&(t.head=null,t.middle=null,t.tail=null,this._groupedView._positionMobileEvent(e,n,t,1,a,s,0)),l=o.date.addDays(l,1)}.bind(this)):(e.forEach(function(e){var t,i,o=e.start,r=e.end,a=n.slotRanges(e,!0),s=a.length;for(i=0;i<s;i++)t=a[i],this._groupedView._positionEvent(e,n,t,s,o,r,i)}.bind(this)),this._canAdjustSlotHeight===!0&&this._adjustSlotHeight(n)))},_renderGroups:function(e,t,n,i){var r,s,l,d,c=t[0];if(c)for(r=c.dataSource.view(),s=0;s<r.length;s++)l=this._resourceValue(c,r[s]),d=new o.data.Query(e).filter({field:c.field,operator:a.groupEqFilter(l)}).toArray(),t.length>1?n=this._renderGroups(d,t.slice(1),n++,i+1):this._renderEvents(d,n++);return n},_groupCount:function(){var e=this.groupedResources,t=this._groupedView;return e.length?this._isVerticallyGrouped()?t._verticalGroupCount(e.length-1):t._horizontalGroupCount(e.length):1},_columnOffsetForResource:function(e){return this._columnCountForLevel(e)/this._columnCountForLevel(e-1)},destroy:function(){this.table&&this.table.removeClass("k-scheduler-monthview"),this.content&&this.content.off(s),this.element&&this.element.off(s),a.fn.destroy.call(this),this._isMobile()&&this.options.editable&&this.options.editable.create!==!1&&this._addUserEvents.destroy()},events:["remove","add","edit","navigate"],options:{title:"Month",name:"month",eventHeight:25,moreButtonHeight:13,editable:!0,selectedDateFormat:"{0:y}",selectedShortDateFormat:"{0:y}",selectedMobileDateFormat:"{0:MMMM}",groupHeaderTemplate:"#=text#",dayTemplate:f,eventTemplate:g,eventsPerDay:2,adaptiveSlotHeight:!1,eventSpacing:3}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.recurrence.min",["kendo.dropdownlist.min","kendo.datepicker.min","kendo.numerictextbox.min","kendo.buttongroup.min"],e)}(function(){return function(e,t){function n(e,t){var n;return 0!==e&&e<t?n=t-e:(n=e%t,n&&(n=t-n)),n}function i(e){var t=e.getMonth(),n=g(e)?ie[t]:oe[t];return n+e.getDate()}function o(e,n){var i,o;return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),ee(e,0),i=e.getFullYear(),n!==t?(J(e,n,-1),e.setDate(e.getDate()+4)):e.setDate(e.getDate()+(4-(e.getDay()||7))),ee(e,0),o=Math.floor((e.getTime()-new Date(i,0,1,(-6)))/864e5),1+Math.floor(o/7)}function r(e,t){var n=te(e).getDay(),i=7-(n+7-(t||7))||7;return i<0&&(i+=7),Math.ceil((e.getDate()-i)/7)+1}function a(e,t){return e+(e<t?7:0)}function s(e,t,n){var i,o,s,l,d,c=t.offset;return c?(i=new Date(e.getFullYear(),e.getMonth()+1,0),o=r(i,n),s=a(t.day,n),l=s<a(new Date(e.getFullYear(),e.getMonth(),1).getDay(),n),d=s>a(i.getDay(),n),c<0?c=o+(c+1-(d?1:0)):l&&(c+=1),o-=d?1:0,c<(l?1:0)||c>o?null:c):r(e,n)}function l(e,t){return r(new Date(e.getFullYear(),e.getMonth()+1,0),t)}function d(e,t,n){return r(e,n)===s(e,t,n)}function c(e,t,n){for(var i,o,l,d,c=a(t.getDay(),n),u=e.length,h=[],p=0;p<u;p++)if(o=e[p],d=r(t,n),i=s(t,o,n),null!==i)if(d<i)h.push(o);else if(d===i)if(l=a(o.day,n),c<l)h.push(o);else if(c===l)return null;return h}function u(e,t,n){for(var i,o=0,r=e.length,a=[];o<r;o++){if(i=e[o],n&&(i=n(i)),t===i)return null;t<i&&a.push(i)}return a}function h(e,t){for(var n,i=0,o=e.length;i<o;i++){if(n=parseInt(e[i],10),isNaN(n)||n<t.start||n>t.end||0===n&&t.start<0)return null;e[i]=n}return e.sort(v)}function p(e){for(var n,i,o,r=0,a=e.length;r<a;r++){if(n=e[r],i=n.length,o=n.substring(i-2).toUpperCase(),o=se[o],o===t)return null;e[r]={offset:parseInt(n.substring(0,i-2),10)||0,day:o}}return e}function f(e){for(var t,n,i=0,o=e.length,r=[];i<o;i++)t=e[i],"string"==typeof t?n=t:(n=""+ae[t.day],t.offset&&(n=t.offset+n)),r.push(n);return""+r}function m(e){var t=e.getMonth();return 1===t?1===new Date(e.getFullYear(),1,29).getMonth()?29:28:re[t]}function g(e){return e=e.getFullYear(),e%4===0&&e%100!==0||e%400===0}function v(e,t){return e-t}function _(e,t){var n,i,o=0,r=[];if(e)for(e=e.split(e.indexOf(";")!==-1?";":","),n=e.length;o<n;o++)i=A(e[o],t),i&&r.push(i);return r}function b(t,n,i){for(var o=e.isArray(t)?t:_(t,i),r=n.getTime()-n.getMilliseconds(),a=0,s=o.length;a<s;a++)if(o[a].getTime()===r)return!0;return!1}function w(e,t){var n,i,o=0,r=[].concat(e);for(n=r.length;o<n;o++)i=r[o],i=j.timezone.convert(i,t||i.getTimezoneOffset(),"Etc/UTC"),r[o]=j.toString(i,ue);return r.join(",")}function k(e,t){var n=new Date(e);switch(t.freq){case"yearly":n.setFullYear(n.getFullYear(),0,1);break;case"monthly":n.setFullYear(n.getFullYear(),n.getMonth(),1);break;case"weekly":J(n,t.weekStart,-1)}return t.hours&&n.setHours(0),t.minutes&&n.setMinutes(0),t.seconds&&n.setSeconds(0),n}function y(e,t){var n=new Date(e);switch(t.freq){case"yearly":n.setFullYear(n.getFullYear(),11,31);break;case"monthly":n.setFullYear(n.getFullYear(),n.getMonth()+1,0);break;case"weekly":J(n,t.weekStart,-1),n.setDate(n.getDate()+6)}return t.hours&&n.setHours(23),t.minutes&&n.setMinutes(59),t.seconds&&n.setSeconds(59),n}function x(e,t,n){var i,o,r,a,s=e.length,l=[];for(r=0,a=n.length;r<a;r++)i=n[r],i<0?i=s+i:i-=1,o=e[i],o&&o.start>=t&&l.push(o);return l}function C(e,t,n){var i,o,r=[];for(o=0;o<e.length;o++)i=e[o],b(t,i.start,n)||r.push(i);return r}function S(e,n,i,o){var r,a,s,l,d,c,u,h,p,f,m,g,v,S,A,E,M,R,F,P,z,B,L,H,N,O,V,W,U,q,G,$,K,Y,Q,J,ee,te,ie=[],oe=I(e.recurrenceRule,o,{start:(D(e.start,o)-D(e.start,e.startTimezone))*j.date.MS_PER_MINUTE,end:(D(e.end,o)-D(e.end,e.endTimezone))*j.date.MS_PER_MINUTE});if(!oe)return[e];for(P=oe.positions,z=P?0:1,f=oe.start,m=oe.end,(f||m)&&(e=e.clone({start:f?new Date(f.value[0]):t,end:m?new Date(m.value[0]):t})),M=e.start,E=M.getTime(),A=ne(M),S=_(e.recurrenceException,o),!S[0]&&oe.exdates&&(S=oe.exdates.value,e.set("recurrenceException",w(S,o))),h=n=new Date(n),i=new Date(i),v=oe.freq,F=be[v],R=oe.count,oe.until&&oe.until<i&&(i=new Date(oe.until)),g="yearly"===v||"monthly"===v||"weekly"===v,n<E||R||oe.interval>1||g||("daily"===v||"hourly"===v)&&!oe.seconds?n=new Date(E):(l=n.getHours(),d=n.getMinutes(),c=n.getSeconds(),oe.hours||(l=M.getHours()),oe.minutes||(d=M.getMinutes()),oe.seconds||(c=M.getSeconds()),n.setHours(l,d,c,M.getMilliseconds())),oe._startPeriod=new Date(n),P&&(n=k(n,oe),i=y(i,oe),V=ne(i)-ne(n),V<0&&(l=n.getHours(),i.setHours(l,n.getMinutes(),n.getSeconds(),n.getMilliseconds()),X.adjustDST(i,l)),oe._startPeriod=new Date(n),oe._endPeriod=y(n,oe)),u=e.duration(),W=e.isAllDay?864e5:0,oe._startTime=r=X.toInvariantTime(n),F.setup&&F.setup(oe,M,n),F.limit(n,i,oe);n<=i;)if(s=new Date(n),Z(s,u),U=new Date(n),Z(U,u+W),p=n>=h||U>h,(p&&!b(S,n,o)||P)&&(r=X.toUtcTime(X.getDate(n))+ne(oe._startTime),a=r+u,E!==n.getTime()||A!==ne(oe._startTime)?(q=e.startTimezone||e.endTimezone,G=e.endTimezone||e.startTimezone,e.isAllDay||(o&&q||!o&&!q)&&($=D(n,o)-D(e.start,o),K=D(s,o)-D(e.end,o),Y=D(n,q)-D(e.start,q),Q=D(s,G)-D(e.end,G),$!==Y&&(J=6e4*($-Y),L=new Date(n.getTime()-J),N=r-J),K!==Q&&(ee=6e4*(K-Q),H=new Date(s.getTime()-ee),O=a-ee)),ie.push(e.toOccurrence({start:L||new Date(n),end:H||s,_startTime:N||r,_endTime:O||a})),L=H=N=O=null):(e._startTime=r,e._endTime=a,ie.push(e))),P){if(F.next(n,oe),F.limit(n,i,oe),n>oe._endPeriod&&(B=x(ie.slice(z),M,P),B=C(B,S,o),ie=ie.slice(0,z).concat(B),oe._endPeriod=y(n,oe),z=ie.length),R&&R===z)break}else{if(R&&R===z)break;z+=1,te=T(n),F.next(n,oe),te&&"hourly"!==oe.freq&&X.toInvariantTime(e.start).getTime()!==X.toInvariantTime(n).getTime()&&(oe._startTime=r=new Date(n.getTime()-36e5)),F.limit(n,i,oe)}return ie}function T(e){var t=e.getTimezoneOffset(),n=new Date(e.getTime()-36e5),i=n.getTimezoneOffset();return t<i}function D(e,t){return t?j.timezone.offset(e,t):e.getTimezoneOffset()}function A(e,t){return e=j.parseDate(e,le),e&&t&&(e=q.apply(e,t)),e}function E(e,t){var n,i,o,r,a,s,l,d,c=e.split(";");for(l=0,d=c.length;l<d;l++)if(n=c[l].split(":"),i=n[0],o=n[1],i.indexOf("TZID")!==-1&&(r=i.substring(i.indexOf("TZID")).split("=")[1]),o)for(o=o.split(","),a=0,s=o.length;a<s;a++)o[a]=A(o[a],r||t);if(o)return{value:o,tzid:r}}function I(e,n,i){var o,r,a,s,l,d,c,u,f,m={},g=0,v=!1,_=function(e,t){var n=e.day,i=t.day;return n<u&&(n+=7),i<u&&(i+=7),n-i};if(!e)return null;for(d=e.split("\n"),d[1]||e.indexOf("DTSTART")===-1&&e.indexOf("DTEND")===-1&&e.indexOf("EXDATE")===-1||(d=e.split(" ")),g=0,a=d.length;g<a;g++)l=j.trim(d[g]),l.indexOf("DTSTART")!==-1?m.start=E(l,n):l.indexOf("DTEND")!==-1?m.end=E(l,n):l.indexOf("EXDATE")!==-1?m.exdates=E(l,n):l.indexOf("RRULE")!==-1?s=l.substring(6):j.trim(l)&&(s=l);for(s=s.split(";"),g=0,a=s.length;g<a;g++)switch(c=s[g],o=c.split("="),r=j.trim(o[1]).split(","),j.trim(o[0]).toUpperCase()){case"FREQ":m.freq=r[0].toLowerCase();break;case"UNTIL":m.until=A(r[0],n);break;case"COUNT":m.count=parseInt(r[0],10);break;case"INTERVAL":m.interval=parseInt(r[0],10);break;case"BYSECOND":m.seconds=h(r,{start:0,end:60}),v=!0;break;case"BYMINUTE":m.minutes=h(r,{start:0,end:59}),v=!0;break;case"BYHOUR":m.hours=h(r,{start:0,end:23}),v=!0;break;case"BYMONTHDAY":m.monthDays=h(r,{start:-31,end:31}),v=!0;break;case"BYYEARDAY":m.yearDays=h(r,{start:-366,end:366}),v=!0;break;case"BYMONTH":m.months=h(r,{start:1,end:12}),v=!0;break;case"BYDAY":m.weekDays=f=p(r),v=!0;break;case"BYWEEKNO":m.weeks=h(r,{start:-53,end:53}),v=!0;break;case"BYSETPOS":m.positions=h(r,{start:-366,end:366});break;case"WKST":m.weekStart=u=se[r[0]]}return m.freq===t||m.count!==t&&m.until?null:(m.interval||(m.interval=1),u===t&&(m.weekStart=u=j.culture().calendar.firstDay),f&&(m.weekDays=f.sort(_)),m.positions&&!v&&(m.positions=null),m._hasRuleValue=v,m.offsets=i,m)}function M(e,t){for(var n,i=e.value,o=e.tzid||"",r=i.length,a=0;a<r;a++)n=i[a],n=q.convert(n,o||t||n.getTimezoneOffset(),"Etc/UTC"),i[a]=j.toString(n,"yyyyMMddTHHmmssZ");return o&&(o=";TZID="+o),o+":"+i.join(",")+" "}function R(e,n){var i=e.weekStart,o="FREQ="+e.freq.toUpperCase(),r=e.exdates||"",a=e.start||"",s=e.end||"",l=e.until;return e.interval>1&&(o+=";INTERVAL="+e.interval),e.count&&(o+=";COUNT="+e.count),l&&(l=q.convert(l,n||l.getTimezoneOffset(),"Etc/UTC"),o+=";UNTIL="+j.toString(l,"yyyyMMddTHHmmssZ")),e.months&&(o+=";BYMONTH="+e.months),e.weeks&&(o+=";BYWEEKNO="+e.weeks),e.yearDays&&(o+=";BYYEARDAY="+e.yearDays),e.monthDays&&(o+=";BYMONTHDAY="+e.monthDays),e.weekDays&&(o+=";BYDAY="+f(e.weekDays)),e.hours&&(o+=";BYHOUR="+e.hours),e.minutes&&(o+=";BYMINUTE="+e.minutes),e.seconds&&(o+=";BYSECOND="+e.seconds),e.positions&&(o+=";BYSETPOS="+e.positions),i!==t&&(o+=";WKST="+ae[i]),a&&(a="DTSTART"+M(a,n)),s&&(s="DTEND"+M(s,n)),r&&(r="EXDATE"+M(r,n)),(a||s||r)&&(o=a+s+r+"RRULE:"+o),o}var F,P,z,B,L,H,N,O,V,W,U,j=window.kendo,q=j.timezone,G=j.Class,$=j.ui,K=$.Widget,Y=$.DropDownList,Q=$.ButtonGroup,X=j.date,Z=X.setTime,J=X.setDayOfWeek,ee=X.adjustDST,te=X.firstDayOfMonth,ne=X.getMilliseconds,ie=[0,31,60,91,121,152,182,213,244,274,305,335,366],oe=[0,31,59,90,120,151,181,212,243,273,304,334,365],re=[31,28,31,30,31,30,31,31,30,31,30,31],ae={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},se={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},le=["yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-ddTHH","yyyy-MM-dd","yyyyMMddTHHmmssfffzzz","yyyyMMddTHHmmsszzz","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"],de=["months","weeks","yearDays","monthDays","weekDays","hours","minutes","seconds"],ce=de.length,ue="yyyyMMddTHHmmssZ",he={months:function(e,t,n){var i=n.months,o=u(i,e.getMonth()+1),r=!1;return null!==o&&(o.length?e.setMonth(o[0]-1,1):e.setFullYear(e.getFullYear()+1,i[0]-1,1),r=!0),r},monthDays:function(e,t,n){for(var i,o,r,a=!1,s=e.getHours(),l=function(e){return e<0&&(e=i+e+1),e};e<=t;){if(o=e.getMonth(),i=m(e),r=u(n.monthDays,e.getDate(),l),null===r)return a;if(a=!0,r.length){if(e.setMonth(o,r.sort(v)[0]),ee(e,s),o===e.getMonth())break}else e.setMonth(o+1,1)}return a},yearDays:function(e,t,n){for(var o,r,a=!1,s=e.getHours(),l=function(e){return e<0&&(e=o+e),e};e<t;){if(o=g(e)?366:365,r=u(n.yearDays,i(e),l),null===r)return a;if(a=!0,o=e.getFullYear(),r.length){e.setFullYear(o,0,r.sort(v)[0]),ee(e,s);break}e.setFullYear(o+1,0,1)}return a},weeks:function(e,t,n){for(var i,r,a,s=n.weekStart,l=!1,d=e.getHours(),c=function(e){return e<0&&(e=53+e),e};e<t;){if(r=u(n.weeks,o(e,s),c),null===r)return l;if(l=!0,i=e.getFullYear(),r.length){a=7*r.sort(v)[0]-1,e.setFullYear(i,0,a),J(e,s,-1),ee(e,d);break}e.setFullYear(i+1,0,1)}return l},weekDays:function(e,t,n){var i,o,s=new Date(e.getTime()+n.offsets.start),u=s.getDay()-e.getDay(),h=n.weekDays,p=n.weekStart,f=c(h,s,p),m=e.getHours(),g=function(t){var n=new Date(e.getFullYear(),e.getMonth()+1,1),o=a(t.day,p);n.getDay()<=o&&(!i||a(i.day,p)>o)&&(i=t)};if(null===f)return!1;if(i=f[0],i||(("monthly"===n.freq&&!n.positions||n.position>0)&&h.forEach(g),i||(i=h[0]),J(e,p)),o=i.day,o-=u,i.offset)for(;e<=t&&!d(e,i,p);)r(e,p)===l(e,p)?(e.setMonth(e.getMonth()+1,1),ee(e,m)):(e.setDate(e.getDate()+7),ee(e,m),J(e,p,-1));return e.getDay()!==o&&J(e,o),!0},hours:function(e,t,n){var i=n.hours,o=n._startTime,r=o.getHours(),a=u(i,r),s=!1;return null!==a&&(s=!0,e.setHours(r),ee(e,r),a.length?(a=a[0],e.setHours(a)):(a=e.getHours(),e.setDate(e.getDate()+1),ee(e,a),a=i[0],e.setHours(a),ee(e,a)),n.minutes&&e.setMinutes(0),o.setHours(a,e.getMinutes())),s},minutes:function(e,t,n){var i=n.minutes,o=e.getMinutes(),r=u(i,o),a=n._startTime.getHours(),s=!1;return null!==r&&(s=!0,r.length?r=r[0]:(a+=1,r=i[0]),n.seconds&&e.setSeconds(0),e.setHours(a,r),a%=24,ee(e,a),n._startTime.setHours(a,r,e.getSeconds())),s},seconds:function(e,t,n){var i=n.seconds,o=n._startTime.getHours(),r=u(i,e.getSeconds()),a=e.getMinutes(),s=!1;return null!==r&&(s=!0,r.length?e.setSeconds(r[0]):(a+=1,e.setMinutes(a,i[0]),a>59&&(a%=60,o=(o+1)%24)),n._startTime.setHours(o,a,e.getSeconds())),s}},pe=G.extend({next:function(e,t){var n,i,o=t._startTime,r=o.getDate();if(t.seconds)i=e.getSeconds()+1,e.setSeconds(i),o.setSeconds(i),o.setDate(r);else{if(!t.minutes)return!1;n=e.getMinutes()+1,e.setMinutes(n),o.setMinutes(n),o.setDate(r)}return!0},normalize:function(e){var t=e.rule;4===e.idx&&t.hours&&(t._startTime.setHours(0),this._hour(e.date,t))},limit:function(e,n,i){for(var o,r,a,s,l,d=i.interval;e<=n;){for(a=r=t,l=e.getDate(),s=0;s<ce;s++){if(o=de[s],i[o]){if(a=he[o](e,n,i),r!==t&&a)break;r=a}a&&this.normalize({date:e,rule:i,day:l,idx:s})}if((1===d||!this.interval(i,e))&&s===ce)break}},interval:function(e,t){var i,o,r,s,l=new Date(e._startPeriod),d=new Date(t),c=t.getHours(),u=e.weekStart,h=e.interval,p=e.freq,f=!1,m=0,g=0,v=1;return"hourly"===p?(i=d.getTimezoneOffset()-l.getTimezoneOffset(),o=e._startTime.getHours(),d=d.getTime(),c!==o&&(d+=(o-c)*X.MS_PER_HOUR),d-=l,i&&(d-=i*X.MS_PER_MINUTE),i=Math.floor(d/X.MS_PER_HOUR),m=n(i,h),0!==m&&(this._hour(t,e,m),f=!0)):"daily"===p?(X.setTime(d,-l,!0),i=Math.round(d/X.MS_PER_DAY),m=n(i,h),0!==m&&(this._date(t,e,m),f=!0)):"weekly"===p?(m=this._getNumberOfWeeksBetweenDates(l,t),r=a(t.getDay(),u),s=a(l.getDay(),u),r<s&&(m+=1),m=n(m,h),0!==m&&(X.setDayOfWeek(t,e.weekStart,-1),t.setDate(t.getDate()+7*m),ee(t,c),f=!0)):"monthly"===p?(i=t.getFullYear()-l.getFullYear(),i=t.getMonth()-l.getMonth()+12*i,m=n(i,h),0!==m&&(v=e._hasRuleValue?1:t.getDate(),t.setFullYear(t.getFullYear(),t.getMonth()+m,v),ee(t,c),f=!0)):"yearly"===p&&(i=t.getFullYear()-l.getFullYear(),m=n(i,h),e.months||(g=t.getMonth()),e.yearDays||e.monthDays||e.weekDays||(v=t.getDate()),0!==m&&(t.setFullYear(t.getFullYear()+m,g,v),ee(t,c),f=!0)),f},_getNumberOfWeeksBetweenDates:function(e,t){var n=(t-e)/6048e5,i=Math.floor(n);return n-i>.99&&(i=Math.round(n)),i},_hour:function(e,t,n){var i=t._startTime,o=i.getHours();n&&(o+=n),e.setHours(o),o%=24,i.setHours(o),ee(e,o)},_date:function(e,t,n){var i=e.getHours();e.setDate(e.getDate()+n),ee(e,i)||this._hour(e,t)}}),fe=pe.extend({next:function(e,t){pe.fn.next(e,t)||this._hour(e,t,1)},normalize:function(e){var t=e.rule;4===e.idx&&(t._startTime.setHours(0),this._hour(e.date,t))}}),me=pe.extend({next:function(e,t){pe.fn.next(e,t)||this[t.hours?"_hour":"_date"](e,t,1)}}),ge=me.extend({setup:function(e,t){e.weekDays||(e.weekDays=[{day:t.getDay(),offset:0}])}}),ve=pe.extend({next:function(e,t){var n,i;if(!pe.fn.next(e,t))if(t.hours)this._hour(e,t,1);else if(t.monthDays||t.weekDays||t.yearDays||t.weeks)this._date(e,t,1);else{for(n=e.getDate(),i=e.getHours(),e.setMonth(e.getMonth()+1),ee(e,i);e.getDate()!==n;)e.setDate(n),ee(e,i);this._hour(e,t)}},normalize:function(e){var t=e.rule,n=e.date,i=n.getHours();0!==e.idx||t.monthDays||t.weekDays?pe.fn.normalize(e):(n.setDate(e.day),ee(n,i))},setup:function(e,t,n){e.monthDays||e.weekDays||n.setDate(t.getDate())}}),_e=ve.extend({next:function(e,t){var n,i=e.getHours();if(!pe.fn.next(e,t))if(t.hours)this._hour(e,t,1);else if(t.monthDays||t.weekDays||t.yearDays||t.weeks)this._date(e,t,1);else if(t.months){for(n=e.getDate(),e.setMonth(e.getMonth()+1),ee(e,i);e.getDate()!==n;)e.setDate(n),ee(e,i);this._hour(e,t)}else e.setFullYear(e.getFullYear()+1),ee(e,i),this._hour(e,t)},setup:function(){}}),be={hourly:new fe,daily:new me,weekly:new ge,monthly:new ve,yearly:new _e},we="click",ke="change";j.recurrence={rule:{parse:I,serialize:R},expand:S,dayInYear:i,weekInYear:o,weekInMonth:r,numberOfWeeks:l,isException:b,toExceptionString:w},F=j.template('# if (frequency !== "never") { #<div class="k-edit-label"><label>#:messages.repeatEvery#</label></div><div class="k-edit-field"><input class="k-recur-interval" title="#:messages.repeatEvery# #:messages.interval#"/>#:messages.interval#</div># } ## if (frequency === "weekly") { #<div class="k-edit-label"><label>#:messages.repeatOn#</label></div><div class="k-edit-field"><div class="k-button-group-stretched k-recur-weekday-buttons" title="#:messages.repeatOn#"></div></div># } else if (frequency === "monthly") { #<div class="k-edit-label"><label>#:messages.repeatOn#</label></div><div class="k-edit-field"><ul class="k-reset"><li><label class="k-radio-label"><input class="k-recur-month-radio k-radio" type="radio" name="month" value="monthday" title="#:messages.repeatOn#" />#:messages.date#:</label><input class="k-recur-monthday" title="#:messages.date#" /></li><li><input class="k-recur-month-radio k-radio" type="radio" name="month" value="weekday" title="#:messages.repeatOn# #:messages.day#" /><input class="k-recur-weekday-offset" title="#:messages.repeatOn#" /><input class="k-recur-weekday" title="#:messages.day#" /></li></ul></div># } else if (frequency === "yearly") { #<div class="k-edit-label"><label>#:messages.repeatOn#</label></div><div class="k-edit-field"><ul class="k-reset"><li><input class="k-recur-year-radio k-radio" type="radio" name="year" value="monthday" title="#:messages.repeatOn# #:messages.month#" /><input class="k-recur-month" title="#:messages.month#" /><input class="k-recur-monthday" title="#:messages.date#" /></li><li><input class="k-recur-year-radio k-radio" type="radio" name="year" value="weekday" title="#:messages.repeatOn# #:messages.day#" /><input class="k-recur-weekday-offset" title="#:messages.repeatOn#" /><input class="k-recur-weekday" title="#:messages.day#"  />#:messages.of#<input class="k-recur-month" title="#:messages.of + messages.month#"/></li></ul></div># } ## if (frequency !== "never") { #<div class="k-edit-label"><label>#:end.label#</label></div><div class="k-edit-field"><ul class="k-reset"><li><label class="k-radio-label"><input class="k-recur-end-never k-radio" type="radio" name="end" value="never" title="#:end.label#" />#:end.never#</label></li><li><label class="k-radio-label"><input class="k-recur-end-count k-radio" type="radio" name="end" value="count" title="#:end.label#" />#:end.after#</label><input class="k-recur-count" title="#:end.occurrence#" />#:end.occurrence#</li><li><label class="k-radio-label"><input class="k-recur-end-until k-radio" type="radio" name="end" value="until" title="#:end.label#" />#:end.on#</label><input class="k-recur-until" title="#:end.on#" name="recur-until" /></li></ul></div># } #'),P=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],z=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],B=[{day:0,offset:0},{day:6,offset:0}],L=K.extend({init:function(e,t){var n,i=this,o=t&&t.frequencies;K.fn.init.call(i,e,t),i.wrapper=i.element,t=i.options,t.start=n=t.start||X.today(),o&&(t.frequencies=o),"string"==typeof n&&(t.start=j.parseDate(n,"yyyyMMddTHHmmss")),null===t.firstWeekDay&&(t.firstWeekDay=j.culture().calendar.firstDay),i._namespace="."+t.name},options:{value:"",start:"",timezone:"",spinners:!0,firstWeekDay:null,frequencies:["never","daily","weekly","monthly","yearly"],mobile:!1,messages:{repeat:"Repeat",recurrenceEditorTitle:"Recurrence editor",frequencies:{never:"Never",hourly:"Hourly",daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},hourly:{repeatEvery:"Repeat every: ",interval:" hour(s)"},daily:{repeatEvery:"Repeat every: ",interval:" day(s)"},weekly:{interval:" week(s)",repeatEvery:"Repeat every: ",repeatOn:"Repeat on: "},monthly:{repeatEvery:"Repeat every: ",repeatOn:"Repeat on: ",interval:" month(s)",day:"Day ",date:"Date"},yearly:{repeatEvery:"Repeat every: ",repeatOn:"Repeat on: ",interval:" year(s)",of:" of ",month:"month",day:"day",date:"Date"},end:{label:"End:",mobileLabel:"Ends",never:"Never",after:"After ",occurrence:" occurrence(s)",on:"On "},offsetPositions:{first:"first",second:"second",third:"third",fourth:"fourth",last:"last"},weekdays:{day:"day",weekday:"weekday",weekend:"weekend day"}}},events:["change"],_initInterval:function(){var e=this,t=e._value;e._container.find(".k-recur-interval").kendoNumericTextBox({spinners:e.options.spinners,value:t.interval||1,decimals:0,format:"#",min:1,change:function(){t.interval=this.value(),e._trigger()}})},_weekDayButtons:function(e){for(var t=this,n=j.culture().calendar.days.names,i=j.culture().calendar.days.namesAbbr,o=t.options.messages.weekly.repeatOn,r=n.length,a=0,s=[],l=[];a<r;a++)s.push(a);for(n=n.slice(e).concat(n.slice(0,e)),i=i.slice(e).concat(i.slice(0,e)),s=s.slice(e).concat(s.slice(0,e)),a=0;a<r;a++)l.push({text:i[a],attributes:{"data-value":s[a],"aria-label":o+" "+n[a]}});t._weekDayButtonGroup=new Q(t._container.find(".k-recur-weekday-buttons"),{items:l,selection:"multiple",select:function(){var e=t._value,n=t._weekDayButtonGroup.current();e.weekDays=n.map(function(e,t){return{day:+t.getAttribute("data-value"),offset:0}}),t.options.mobile||t._trigger()}})},_weekDayRule:function(e){var t=this,n=(t._weekDay.element||t._weekDay).val(),i=+(t._weekDayOffset.element||t._weekDayOffset).val(),o=null,r=null;e||("day"===n?(o=P,r=i):"weekday"===n?(o=z,r=i):"weekend"===n?(o=B,r=i):o=[{offset:i,day:+n}]),t._value.weekDays=o,t._value.positions=r},_weekDayView:function(){var e,t,n,i,o=this,r=o._value.weekDays,a=o._value.positions,s=o._weekDayOffset;r&&(n=r.length,a&&(7===n?(t="day",e=a):5===n?(t="weekday",e=a):2===n&&(t="weekend",e=a)),t||(r=r[0],t=r.day,e=r.offset||""),i=s.value?"value":"val",s[i](e),o._weekDay[i](t))},_initWeekDay:function(){var t,n=this,i=n.options.messages.weekdays,o=n.options.messages.offsetPositions,r=n._container.find(".k-recur-weekday"),a=function(){n._weekDayRule(),n._trigger()};r[0]&&(n._weekDayOffset=new Y(n._container.find(".k-recur-weekday-offset"),{change:a,dataTextField:"text",dataValueField:"value",dataSource:[{text:o.first,value:"1"},{text:o.second,value:"2"},{text:o.third,value:"3"},{text:o.fourth,value:"4"},{text:o.last,value:"-1"}]}),t=[{text:i.day,value:"day"},{text:i.weekday,value:"weekday"},{text:i.weekend,value:"weekend"}],n._weekDay=new Y(r,{value:n.options.start.getDay(),change:a,dataTextField:"text",dataValueField:"value",dataSource:t.concat(e.map(j.culture().calendar.days.names,function(e,t){return{text:e,value:t}}))}),n._weekDayView())},_initWeekDays:function(){var e,t,n,i,o,r=this,a=r._value,s=r._weekDayButtonGroup;if(s&&a.weekDays&&a.weekDays.length){for(e=a.weekDays,t=e.length,n=[],i=0;i<t;i++)n.push("[data-value='"+e[i].day+"']");o=s.element.find(n.join(",")),s.select(o)}},_initMonthDay:function(){var e=this,t=e._value,n=e._container.find(".k-recur-monthday");n[0]&&(e._monthDay=new j.ui.NumericTextBox(n,{spinners:e.options.spinners,min:1,max:31,decimals:0,format:"#",value:t.monthDays?t.monthDays[0]:e.options.start.getDate(),change:function(){var n=this.value();t.monthDays=n?[n]:n,e._trigger()}}))},_initCount:function(){var e=this,t=e._container.find(".k-recur-count"),n=e._value;e._count=t.kendoNumericTextBox({spinners:e.options.spinners,value:n.count||1,decimals:0,format:"#",min:1,change:function(){n.count=this.value(),e._trigger()}}).data("kendoNumericTextBox")},_initUntil:function(){var e=this,t=e._container.find(".k-recur-until"),n=e.options.start,i=e._value,o=i.until,r=o&&o<n?o:n,a=e.wrapper.closest(".k-scheduler-edit-form").find("[name=start]:visible"),s=j.format(j.ui.Validator.prototype.options.messages.date,e.options.messages.end.on),l=j.ui.Validator.prototype.options.messages.dateCompare,d=new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59);t.attr("data-validDate-msg",s),t.attr("data-untilDateCompare-msg",l),
0===a.length&&(a=e.wrapper.closest(".k-scheduler-edit-form").find("[name=start]")),a.length>0&&a.val()&&(r=j.parseDate(a.val()),d<r&&(d=r)),e._until=t.kendoDatePicker({min:r,value:o||d,change:function(){var t=this.value();t&&(i.until=new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59)),e._trigger()}}).data("kendoDatePicker"),a&&a.on("change",function(){e._until.setOptions({min:a.val()})})},_trigger:function(){this.options.mobile||this.trigger("change")}}),H=L.extend({init:function(e,t){var n=this;L.fn.init.call(n,e,t),n._initFrequency(),n._initContainer(),n.value(n.options.value)},options:{name:"RecurrenceEditor"},events:["change"],destroy:function(){var e=this;e._frequency.destroy(),this._weekDayButtonGroup&&this._weekDayButtonGroup.destroy(),e._container.find("input[type=radio],input[type=checkbox]").off(we+e._namespace),j.destroy(e._container),L.fn.destroy.call(e)},value:function(e){var n,i,o=this,r=o.options.timezone;return e===t?o._value.freq?R(o._value,r):"":(o._value=I(e,r)||{},n=o._value.freq,n?(i=o._frequency.element.find("[data-value='"+n+"']"),o._frequency.select(i)):o._frequency.select(0),o._initView(o._frequency.current().data("value")),t)},_initContainer:function(){var t=this.element,n=e('<div class="k-recur-view" />'),i=t.parent(".k-edit-field");i[0]?n.insertAfter(i):t.append(n),this._container=n},_initFrequency:function(){var t,n=this,i=n.options,o=i.frequencies,r=i.messages.frequencies,a=e('<div class="k-button-group-stretched" />').attr({title:i.messages.recurrenceEditorTitle});o=e.map(o,function(e){return{text:r[e],attributes:{"data-value":e,"aria-label":i.messages.repeat+r[e]}}}),t=o[0],t&&t.attributes&&"never"===t.attributes["data-value"]&&(t.attributes["data-value"]=""),n.element.append(a),n._frequency=new Q(a,{items:o,select:function(){n._value={},n._initView(n._frequency.current().data("value")),n.trigger("change")}})},_initView:function(e){var n=this,i=n._value,o=n.options,r={frequency:e||"never",firstWeekDay:o.firstWeekDay,messages:o.messages[e],end:o.messages.end};return j.destroy(n._container),n._container.html(F(r)),e?(i.freq=e,"weekly"!==e||i.weekDays||(i.weekDays=[{day:o.start.getDay(),offset:0}]),n._weekDayButtons(o.firstWeekDay),n._initInterval(),n._initWeekDays(),n._initMonthDay(),n._initWeekDay(),n._initMonth(),n._initCount(),n._initUntil(),n._period(),n._end(),t):(n._value={},t)},_initMonth:function(){var t,n=this,i=n._value,o=i.months||[n.options.start.getMonth()+1],r=n._container.find(".k-recur-month");r[0]&&(t={change:function(){i.months=[+this.value()],n.trigger("change")},dataTextField:"text",dataValueField:"value",dataSource:e.map(j.culture().calendar.months.names,function(e,t){return{text:e,value:t+1}})},n._month1=new Y(r[0],t),n._month2=new Y(r[1],t),o&&(o=o[0],n._month1.value(o),n._month2.value(o)))},_end:function(){var e,t=this,n=t._value,i=t._container,o=t._namespace,r=function(e){t._toggleEnd(e.currentTarget.value),t.trigger("change")};t._buttonNever=i.find(".k-recur-end-never").on(we+o,r),t._buttonCount=i.find(".k-recur-end-count").on(we+o,r),t._buttonUntil=i.find(".k-recur-end-until").on(we+o,r),n.count?e="count":n.until&&(e="until"),t._toggleEnd(e)},_period:function(){var e=this,t=e._value,n="monthly"===t.freq,i=n?e._toggleMonthDay:e._toggleYear,o=".k-recur-"+(n?"month":"year")+"-radio",r=e._container.find(o);(n||"yearly"===t.freq)&&(r.on(we+e._namespace,function(t){i.call(e,t.currentTarget.value),e.trigger("change")}),e._buttonMonthDay=r.eq(0),e._buttonWeekDay=r.eq(1),i.call(e,t.weekDays?"weekday":"monthday"))},_toggleEnd:function(e){var t,n,i,o,r=this;"count"===e?(r._buttonCount.prop("checked",!0),i=!0,o=!1,t=r._count.value(),n=null):"until"===e?(r._buttonUntil.prop("checked",!0),i=!1,o=!0,t=null,n=r._until.value()):(r._buttonNever.prop("checked",!0),i=o=!1,t=n=null),r._count&&r._count.enable(i),r._until&&r._until.enable(o),r._value.count=t,r._value.until=n},_toggleMonthDay:function(e){var t,n=this,i=!1,o=!0,r=!1;"monthday"===e?(n._buttonMonthDay.prop("checked",!0),t=[n._monthDay.value()],i=!0,o=!1,r=!0):(n._buttonWeekDay.prop("checked",!0),t=null),n._weekDay.enable(o),n._weekDayOffset.enable(o),n._monthDay.enable(i),n._value.monthDays=t,n._weekDayRule(r)},_toggleYear:function(e){var t,n=this,i=!1,o=!0;"monthday"===e?(i=!0,o=!1,t=n._month1.value()):t=n._month2.value(),n._month1.enable(i),n._month2.enable(o),n._value.months=[t],n._toggleMonthDay(e)}}),$.plugin(H),N=j.template('<div data-role="content"><ul class="k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:headerTitle#</span><div class="k-recur-pattern k-listgroup-form-field-wrapper"></div></label></li><li class="k-item k-listgroup-item k-recur-view"></li></ul></div>'),O=j.template('# if (frequency !== "never") { #<label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatEvery#</span><div class="k-recur-editor-wrap k-listgroup-form-field-wrapper"><input class="k-recur-interval" type="number" pattern="\\\\d*"/># if (messages.interval.length) { #<span class="k-recur-editor-text">#:messages.interval#</span># } #</div></label># } ## if (frequency === "weekly") { #<ul class="k-recur-items-wrap k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item k-no-click"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatOn#</span></label></li><div class="k-button-group-stretched k-recur-weekday-buttons" title="#:messages.repeatOn#"></ul># } else if (frequency === "monthly") { #<ul class="k-recur-items-wrap k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatBy#</span><div class="k-repeat-rule k-listgroup-form-field-wrapper"></div></label></li><li class="k-monthday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><input class="k-recur-monthday" type="number" title="#:messages.day#" pattern="\\\\d*"/></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.every#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday-offset" title="#:messages.every#"></select></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday" title="#:messages.day#"></select></div></label></li></ul># } else if (frequency === "yearly") { #<ul class="k-recur-items-wrap k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatBy#</span><div class="k-repeat-rule k-listgroup-form-field-wrapper"></div></label></li><li class="k-monthday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><input class="k-recur-monthday" type="number" title="#:messages.day#" pattern="\\\\d*"/></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.every#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday-offset" title="#:messages.every#"></select></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday" title="#:messages.day#"></select></div></label></li><li class="k-item k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.month#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-month" title="#:messages.month#"></select></div></label></li></ul># } #'),V=j.template('# if (endPattern === "count") { #<label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.after#</span><div class="k-listgroup-form-field-wrapper"><input class="k-recur-count" type="number" pattern="\\\\d*" /></div></label># } else if (endPattern === "until") { #<label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.on#</span><div class="k-listgroup-form-field-wrapper"><input type="date" class="k-recur-until" name="recur-until"/></div></label># } #'),W=j.template('<select class="k-scheduler-select">#for (var i = 0, length = dataSource.length; i < length; i++) {#<option value="#=dataSource[i].value#" #= value === dataSource[i].value  ? "selected" : "" #>#:dataSource[i].text#</option>#}#</select>'),U=L.extend({init:function(e,t){var n=this;L.fn.init.call(n,e,t),t=n.options,n._optionTemplate=j.template('<option value="#:value#">#:text#</option>'),n.value(t.value),n._pane=t.pane||n.wrapper.closest("[data-role=pane]").data("kendoPane"),n._initRepeatButton(),n._initParentRepeatEnd(),n._defaultValue=n._value},options:{name:"MobileRecurrenceEditor",animations:{left:"slide",right:"slide:right"},mobile:!0,messages:{cancel:"Cancel",update:"Save",endTitle:"Repeat ends",repeatTitle:"Repeat pattern",headerTitle:"Repeat event",end:{patterns:{never:"Never",after:"After...",on:"On..."},never:"Never",after:"End repeat after",on:"End repeat on"},daily:{interval:""},hourly:{interval:""},weekly:{interval:""},monthly:{interval:"",repeatBy:"Repeat by: ",dayOfMonth:"Day of the month",dayOfWeek:"Day of the week",repeatEvery:"Repeat every",every:"Every",day:"Day "},yearly:{interval:"",repeatBy:"Repeat by: ",dayOfMonth:"Day of the month",dayOfWeek:"Day of the week",repeatEvery:"Repeat every: ",every:"Every",month:"Month",day:"Day"}}},events:["change"],value:function(e){var n=this,i=n.options.timezone;return e===t?n._value.freq?R(n._value,i):"":(n._value=I(e,i)||{},t)},destroy:function(){this._destroyView(),j.destroy(this._endFields),this._weekDayButtonGroup&&this._weekDayButtonGroup.destroy(),this.element.off(we+this._namespace),L.fn.destroy.call(this)},_initInterval:function(){var e=this,t=e._value;e._container.find(".k-recur-interval").val(e._value.interval||1).on(ke+e._namespace,function(n){t.interval=n.target.value,e._trigger()})},_initRepeatButton:function(){var t=this,n=t.options.messages.frequencies[this._value.freq||"never"];t._chevronButton=e('<span class="k-icon k-i-arrow-chevron-right"></span>'),t._repeatValue=e('<span class="">'+n+"</span>"),t.element.append(t._repeatValue).append(t._chevronButton),t.element.parents("li.k-item").on(we+t._namespace,function(e){e.preventDefault(),t._createView("repeat"),t._pane.navigate(t._view,t.options.animations.left)})},_endLiItem:function(){var e=this;return'<li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">'+e.options.messages.end.mobileLabel+"</span></label></li>"},_initParentRepeatEnd:function(){var t=this,n=e(t._endLiItem()).insertAfter(t.element.parents("li.k-item")),i=e('<div class="k-scheduler-recur-end-wrap k-listgroup-form-field-wrapper"><span class="k-scheduler-recur-end"></span></div>').appendTo(n.find(".k-label"));n.on(we+t._namespace,function(e){e.preventDefault(),t._navigateToView("repeat")}),t._endParentLabelField=n.toggle(!!t._value.freq),t._endParentEndButton=i.find(".k-scheduler-recur-end").text(t._endText())},_initRepeatEnd:function(){var t=this,n=e(t._endLiItem()).insertAfter(t._container),i=e('<div class="k-scheduler-recur-end-wrap k-listgroup-form-field-wrapper"><span class="k-scheduler-recur-end"></span><span class="k-icon k-i-arrow-chevron-right"></span></div>').appendTo(n.find(".k-label"));n.on(we+t._namespace,function(e){e.preventDefault(),t._navigateToView("end")}),t._endLabelField=n.toggleClass("k-state-disabled",!t._value.freq),t._endButton=i.find(".k-scheduler-recur-end").text(t._endText())},_navigateToView:function(e){var t=this;t._createView(e),t._pane.navigate(t._view,t.options.animations.left)},_endText:function(){var e=this._value,t=this.options.messages.end,n=t.never;return e.count?n=j.format("{0} {1}",t.after,e.count):e.until&&(n=j.format("{0} {1:d}",t.on,e.until)),n},_initFrequency:function(){var t=this,n=t.options.messages.frequencies,i=W({dataSource:e.map(this.options.frequencies,function(e){return{text:n[e],value:"never"!==e?e:""}}),value:t._value.freq||"",ns:j.ns});t._view.element.find(".k-recur-pattern").append(i),t._view.element.find(".k-scheduler-select").on(ke+t._namespace,function(n){var i=n.target.value;t._value={freq:i},t._defaultValue=e.extend({},t._value),t._initRepeatView(),t._endButton.text(t._endText()),t._endParentEndButton.text(t._endText())})},_initEndNavigation:function(){var e,t=this,n=t.options.messages.end.patterns,i=t._value,o="";i.count?o="count":i.until&&(o="until"),e=W({dataSource:[{text:n.never,value:""},{text:n.after,value:"count"},{text:n.on,value:"until"}],value:o,ns:j.ns}),t._view.element.find(".k-recur-pattern").append(e),t._view.element.find(".k-scheduler-select").on(ke+t._namespace,function(e){var n=e.target.value,o=null,r=null;t._initEndView(n),t._count.length?(o=t._count.val(),r=null):t._until.length&&(o=null,r=t._until.val?j.parseDate(t._until.val(),"yyyy-MM-dd"):t._until.value()),i.count=o,i.until=r})},_createView:function(t){var n=this,i=n.options,o=i.messages,r=o["repeat"===t?"repeatTitle":"endTitle"],a='<div data-role="view" class="k-popup-edit-form k-scheduler-edit-form" id="recurrence"><div data-role="header" class="k-header"><a href="#" class="k-header-cancel k-scheduler-cancel k-link" title="'+o.cancel+'"aria-label="'+o.cancel+'"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+o.headerTitle+'<a href="#" class="k-header-done k-scheduler-update k-link" title="'+o.update+'" aria-label="'+o.update+'"><span class="k-icon k-i-check"></span></a></div>',s=n._pane.view().id;n._view=n._pane.append(a+N({headerTitle:r})),n._view.element.on(we+n._namespace,"a.k-scheduler-cancel, a.k-scheduler-update",function(t){t.preventDefault(),t.stopPropagation(),e(this).hasClass("k-scheduler-update")?(n.trigger("change"),n._defaultValue=e.extend({},n._value)):n._value=n._defaultValue;var i=n._value.freq;n._endParentEndButton.text(n._endText()),n._endParentLabelField.toggle(!!i&&"never"!==i),n._endButton.text(n._endText()),n._repeatValue.text(o.frequencies[i||"never"]),n._pane.one("viewShow",function(){n._destroyView()}),n._pane.navigate(s,n.options.animations.right)}),n._container=n._view.element.find(".k-recur-view"),"repeat"===t?(n._initFrequency(),n._initRepeatView(),n._initRepeatEnd()):(n._initEndNavigation(),n._initEndView())},_destroyView:function(){this._view&&(this._view.destroy(),this._view.element.remove(),this._container=null),this._view=null},_initRepeatView:function(){var e=this,n=e._value.freq||"never",i={frequency:n,firstWeekDay:e.options.firstWeekDay,messages:e.options.messages[n]},o=O(i),r=e._container=e._container||this._pane.view().content.find("li.k-recur-view"),a=e._value;return e._endLabelField&&e._endLabelField.toggleClass("k-state-disabled","never"===n),j.destroy(r),r.html(o),o?(r.show(),"weekly"!==n||a.weekDays||(a.weekDays=[{day:e.options.start.getDay(),offset:0}]),e._weekDayButtons(e.options.firstWeekDay),e._initInterval(),e._initMonthDay(),e._initWeekDays(),e._initWeekDay(),e._initMonth(),e._period(),t):(e._value={},r.hide(),t)},_initMonthDay:function(){var e=this,t=e._value,n=e._monthDay=e._container.find(".k-recur-monthday");n.attr({min:1,max:31}).val(t.monthDays?t.monthDays[0]:e.options.start.getDate()).on(ke+e._namespace,function(n){t.count=n.target.value,e._trigger()})},_initCount:function(){var e=this,t=e._count=e._container.find(".k-recur-count"),n=e._value;t.val(n.count||1).on(ke+e._namespace,function(t){n.count=t.target.value,e._trigger()})},_initEndView:function(e){var n,i=this,o=i._value;e===t&&(o.count?e="count":o.until&&(e="until")),n={endPattern:e,messages:i.options.messages.end},j.destroy(i._container),i._container.html(V(n)),i._initCount(),i._initUntil()},_initWeekDay:function(){var t,n=this,i=n.options.messages.weekdays,o=n.options.messages.offsetPositions,r=n._container.find(".k-recur-weekday"),a=function(){n._weekDayRule(),n.trigger("change")};r[0]&&(n._weekDayOffset=n._container.find(".k-recur-weekday-offset").html(n._options([{text:o.first,value:"1"},{text:o.second,value:"2"},{text:o.third,value:"3"},{text:o.fourth,value:"4"},{text:o.last,value:"-1"}])).change(a),t=[{text:i.day,value:"day"},{text:i.weekday,value:"weekday"},{text:i.weekend,value:"weekend"}],t=t.concat(e.map(j.culture().calendar.days.names,function(e,t){return{text:e,value:t}})),n._weekDay=r.html(n._options(t)).change(a).val(n.options.start.getDay()),n._weekDayView())},_initMonth:function(){var t,n=this,i=n._value,o=n.options.start,r=i.months||[o.getMonth()+1],a=n._container.find(".k-recur-month"),s=j.culture().calendar.months.names;a[0]&&(t=e.map(s,function(e,t){return{text:e,value:t+1}}),a.html(n._options(t)).change(function(){i.months=[+this.value]}),n._monthSelect=a,r&&a.val(r[0]))},_period:function(){var e,t,n,i=this,o=i._value,r=i._container,a=i.options.messages[o.freq],s=r.find(".k-repeat-rule"),l=r.find(".k-weekday-view"),d=r.find(".k-monthday-view");s[0]&&(e=o.weekDays?"weekday":"monthday",t=W({value:e,dataSource:[{text:a.dayOfMonth,value:"monthday"},{text:a.dayOfWeek,value:"weekday"}],ns:j.ns}),n=function(e){var t=i._weekDay.val(),n=i._weekDayOffset.val(),r=i._monthDay.val(),a=i._monthSelect?i._monthSelect.val():null;"monthday"===e?(o.weekDays=null,o.monthDays=r?[r]:r,o.months=a?[+a]:a,l.hide(),d.show()):(o.monthDays=null,o.months=a?[+a]:a,o.weekDays=[{offset:+n,day:+t}],l.show(),d.hide())},s.append(t),s.find(".k-scheduler-select").on(ke+i._namespace,function(e){n(e.target.value)}),n(e))},_initUntil:function(){var e=this,t=e._container.find(".k-recur-until"),n=e.options.start,i=e._value,o=i.until,r=o&&o<n?o:n,a=j.format(j.ui.Validator.prototype.options.messages.date,e.options.messages.end.on),s=j.ui.Validator.prototype.options.messages.dateCompare;t.attr("data-validDate-msg",a),t.attr("data-untilDateCompare-msg",s),e._until=j.support.input.date?t.attr("min",j.toString(r,"yyyy-MM-dd")).val(j.toString(o||n,"yyyy-MM-dd")).on("change",function(){var t=j.parseDate(this.value,"yyyy-MM-dd");t&&(i.until=t),e._trigger()}):t.kendoDatePicker({min:r,value:o||n,change:function(){var t=this.value();t&&(i.until=t),e._trigger()}}).data("kendoDatePicker")},_options:function(e,t){var n=0,i="",o=e.length,r=this._optionTemplate;for(t&&(i+=r({value:"",text:t}));n<o;n++)i+=r(e[n]);return i}}),$.plugin(U)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.timelineview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e,t){function n(e){var t=new Date(1980,1,1,0,0,0);return c(t,v(e)),t}function i(e){var t,n,i;if(e.workDays&&e.workDays.length)return e.workDays;for(t=[],n=e.workWeekStart%7,i=Math.abs(e.workWeekEnd%7),t.push(n);i!=n;)n>6?n-=7:n++,t.push(n);return t}function o(e){var t,n=0;if(e.columns){for(t=0;t<e.columns.length;t++)n+=o(e.columns[t]);return e.colspan=n,n}return e.colspan=1,1}function r(e,t,n){var i,o,r,s;for(i=e.length-1;i>=0;i--)o=e[i].rectLeft,s=e[i].rectRight,r=o<=t&&s>=t,(r||o>=t&&s<=n||t<=o&&n>=o)&&(o<t&&(t=o),s>n&&(n=s));return a(e,t,n)}function a(e,t,n){var i,o,r=[];for(i=0;i<e.length;i++)o={rectLeft:e[i].rectLeft,rectRight:e[i].rectRight},(o.rectLeft<t&&o.rectRight>t||o.rectLeft>=t&&o.rectRight<=n)&&r.push(e[i]);return r}var s,l=window.kendo,d=l.ui,c=l.date.setTime,u=d.SchedulerView,h=l._outerWidth,p=l._outerHeight,f=e.extend,m=e.proxy,g=l.date.getDate,v=l.date.getMilliseconds,_=l.date.MS_PER_DAY,b=l.date.MS_PER_MINUTE,w="k-current-time",k="k-current-time-arrow",y="k-scheduler-header-wrap",x="k-event-inverse",C=.8666,S=".kendoTimelineView",T=l.template('<div><div class="k-event-template k-event-time">#:kendo.format("{0:t} - {1:t}", start, end)#</div><div class="k-event-template">${title}</div></div>'),D=l.template("<span class='k-link k-nav-day'>#=kendo.format('{0:m}', date)#</span>"),A='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#"#if (resources[0]) { #style="background-color:#=resources[0].color#; border-color: #=resources[0].color#"class="k-event" #} else {#class="k-event"#}#><span class="k-event-actions"># if(data.tail) {#<span class="k-icon k-i-arrow-60-left"></span>#}## if(data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if(data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}## if(data.head) {#<span class="k-icon k-i-arrow-60-right"></span>#}#</span>#if(resizable && !data.tail){#<span class="k-resize-handle k-resize-w"></span>#}##if(resizable && !data.head){#<span class="k-resize-handle k-resize-e"></span>#}#</div>',E=l.Class.extend({init:function(e){this._view=e},_getTimeSlotByPosition:function(e,t,n){var i=this._view.groups[n];return i.timeSlotByPosition(e,t)},_hideHeaders:function(){var e=this._view;e.timesHeader.find("table tr:last").hide(),e.datesHeader.find("table tr:last").hide()},_setColspan:function(e){o(e)},_createRowsLayout:function(e,t,n){var i=this._view;return i._createRowsLayout(e,t,n)},_createVerticalColumnsLayout:function(e,t,n,i){return i},_createColumnsLayout:function(e,t,n){var i=this._view;return i._createColumnsLayout(e,t,n)},_getRowCount:function(){var e=this._view;return e._groupCount()},_getGroupsCount:function(){return 1},_addContent:function(e,t,n,i,o,r,a,s){var d,c,u,h,p=this._view,f="",m=p.options,g=function(t){var n,i="",o="",r=function(e){return function(){return p._resourceBySlot({groupIndex:e})}};return l.date.isToday(e[u])&&(o+="k-today"),(l.date.getMilliseconds(t)<l.date.getMilliseconds(m.workDayStart)||l.date.getMilliseconds(t)>=l.date.getMilliseconds(m.workDayEnd)||!p._isWorkDay(e[u]))&&(o+=" k-nonwork-hour"),i+="<td"+(""!==o?' class="'+o+'"':"")+">",n=l.date.getDate(e[u]),l.date.setTime(n,l.date.getMilliseconds(t)),i+=a({date:n,resources:r(s?d:c)}),i+="</td>"};for(d=0;d<i;d++){for(f+="<tr>",c=0;c<n;c++)for(u=0,h=t;u<h;u++)f+=p._forTimeRange(o,r,g);f+="</tr>"}return f},_addTimeSlotsCollections:function(e,t,n,i,o){var r,a,s,l,d,c,u,h,p,f,m,g,_=this._view,b=n.length;for(o&&(b=Math.floor(b/e)),r=0;r<e;r++)for(a=0,s=_.groups[r],o&&(a=r),d=a*b,c=0,o||(c=r),u=n[d].children,h=u.length/(o?1:e),p=h/t,f=0;f<t;f++)for(m=f*p+h*c,l=v(new Date((+_.startTime()))),g=0;g<p;g++)_._addTimeSlotToCollection(s,u,g,m,f,l,i),l+=i},_getVerticalGroupCount:function(e){return e},_getVerticalRowCount:function(e,t,n){var i=this._view;return i._isVerticallyGrouped()?e[t].maxRowCount:n},_renderEvent:function(e,t,n,i,o,r){var a,s=this._view,l=s._createEventElement(n.occurrence,t,o.head||n.head,o.tail||n.tail);l.appendTo(r).css({top:0,height:s.options.eventHeight}),a={start:n.occurrence._startTime||n.occurrence.start,end:n.occurrence._endTime||n.occurrence.end,element:l,uid:t.uid,slotRange:o,rowIndex:0,offsetTop:0},e.events[t.uid]=a,s._inverseEventColor(l),s.addContinuousEvent(i,o,l,t.isAllDay),s._arrangeRows(a,o,e)},_verticalCountForLevel:function(e){var t=this._view;return t._rowCountForLevel(e)},_horizontalCountForLevel:function(e){var t=this._view;return t._columnCountForLevel(e)},_updateCurrentVerticalTimeMarker:function(t,n){var i=this._view,o="<div class='"+w+"'></div>",r=i.datesHeader.find("."+y),a=Math.round(t[0].innerRect(n,new Date(n.getTime()+1),!1).left),s=e(o).prependTo(r).addClass(k+"-down");s.css({left:i._adjustLeftPosition(a-h(s)*C/2),top:r.find("tr:last").prev().position().top}),e(o).prependTo(i.content).css({left:i._adjustLeftPosition(a),width:"1px",height:i.content[0].scrollHeight-1,top:0})},_changeGroup:function(){return t},_prevGroupSlot:function(e,t,n){var i,o=this._view;return o._isVerticallyGrouped()?e:(i=t._collection(0,n),i.last())},_nextGroupSlot:function(e,t,n){var i,o=this._view;return o._isVerticallyGrouped()?e:(i=t._collection(0,n),i.first())},_verticalSlots:function(e,t){var n=this._view;return n._changeGroup(e,t)},_verticalMethod:function(e){return e?"leftSlot":"rightSlot"},_normalizeVerticalSelection:function(){return t},_horizontalSlots:function(e,t,n,i,o,r,a){var s=this._view,l={};return l.startSlot=t[n](i),l.endSlot=t[n](o),r||!s._isHorizontallyGrouped()||l.startSlot&&l.endSlot||(l.startSlot=l.endSlot=s._changeGroup(e,a)),l},_changeVerticalViewPeriod:function(){return!1},_changeHorizontalViewPeriod:function(e,t,n,i){var o=this._view;return!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(n,i,!1))},_updateDirection:function(e,t,n,i){var o=this._view;o._updateDirection(e,t,n,i,!0)},_createMoveHint:function(e,t){var n,i,o,r,a=this._view,s=e.start,l=a._createEventElement(t.occurrence,t.occurrence,!1,!1);l.addClass("k-event-drag-hint"),n=e.innerRect(t.occurrence.start,t.occurrence.end,a.options.snap),i=n.right-n.left,i<0&&(i=0),o=a._adjustLeftPosition(n.left),r={left:o,top:s.offsetTop,height:s.offsetHeight,width:i},l.css(r),t.occurrence.inverseColor&&l.addClass(x),a._appendMoveHint(l)},_adjustLeftPosition:function(e){var t=this._view;return t._isRtl&&(e-=t.content[0].scrollWidth-t.content[0].clientWidth),e}}),I=l.Class.extend({init:function(e){this._view=e},_getTimeSlotByPosition:function(e,t,n){var i=this._view.groups[n];return i.timeSlotByPosition(e,t,!0)},_hideHeaders:function(){var e=this._view;e._isVerticallyGrouped()?e.times.find(".k-last").hide():(e.timesHeader.find("table tr").eq(2).hide(),e.datesHeader.find("table tr").eq(2).hide())},_setColspan:function(){},_createRowsLayout:function(e,t,n,i){var o=this._view;return o._createDateLayout(i,null,!0)},_createVerticalColumnsLayout:function(e,t,n){var i=this._view;return i._createColumnsLayout(e,null,n)},_createColumnsLayout:function(e,t,n,i){var o=this._view;return o._createColumnsLayout(e,t,n,i,!0)},_getRowCount:function(e){var t=this._view;return t._rowCountForLevel(e)},_getGroupsCount:function(){var e=this._view;return e._groupCount()},_addContent:function(e,t,n,i,o,r,a,s){var d,u,h,p,f=this._view,m="",g=f.options,v=function(t,n,i,o,r,s){var c,u="",p="",m=f._isVerticallyGrouped()?d:h,v=function(e){return function(){return f._resourceBySlot({groupIndex:e})}};return l.date.isToday(e[h])&&(p+="k-today"),(l.date.getMilliseconds(t)<l.date.getMilliseconds(g.workDayStart)||l.date.getMilliseconds(t)>=l.date.getMilliseconds(g.workDayEnd)||!f._isWorkDay(e[m]))&&(p+=" k-nonwork-hour"),u+="<td"+(""!==p?' class="'+p+'"':"")+">",c=l.date.getDate(e[h]),l.date.setTime(c,l.date.getMilliseconds(t)),u+=a({date:c,resources:v(s)}),u+="</td>"},_=new Date(o),w=f.options.minorTickCount,k=f.options.majorTick*b,y=k/w||1;for(u=0;u<i;u++){for(m+="<tr>",u%(i/f._dates.length)===0&&(d=u/(i/f._dates.length),_=new Date(f._dates[d]),l.date.setTime(_,l.date.getMilliseconds(o))),h=0,p=t;h<p;h++)if(m+=f._forTimeRange(_,r,v,s,n),s){c(_,y,!1);break}m+="</tr>"}return m},_addTimeSlotsCollections:function(e,t,n,i,o){var r,a,s,l,d,c,u,h,p,f,m,g,_=this._view,b=n.length;for(o&&(b/=t),r=0;r<t;r++)for(a=0,o&&(a=r),l=a*b,d=0,c=n[l].children,u=o?b:c.length/(t*e),h=c.length/t,s=v(new Date((+_.startTime()))),f=0;f<u;f++){for(o?(p=0,c=n[f+u*r].children):(p=r*h+e*f,d++),m=0;m<e;m++)g=_.groups[m],_._addTimeSlotToCollection(g,c,m,p,r,s,i);s+=i}},_getVerticalGroupCount:function(){var e=this._view;return e.content.find("tr").length},_getVerticalRowCount:function(e,t,n){return n},_renderEvent:function(e,t,n,i,o,r,a,s){var l,d,c,u,h,p=this._view,f=[];for(d=o.start.index;d<=o.end.index;d++)l=p._createEventElement(n.occurrence,t,d!==s,d!==a),l.appendTo(r).css({top:0,height:p.options.eventHeight}),c=i._timeSlotCollections[0]._slots[d],u=i.timeSlotRanges(c.start,c.end,!1)[0],h={start:d===a?n.occurrence._startTime||n.occurrence.start:c.start,end:d===s?n.occurrence._endTime||n.occurrence.end:c.end,element:l,uid:t.uid,slotRange:u,rowIndex:0,offsetTop:0},e.events[t.uid]=h,f.push(h),p.addContinuousEvent(i,u,l,t.isAllDay),p._arrangeRows(h,u,e);e.events[t.uid]=f},_verticalCountForLevel:function(e){var t=this._view;return t._columnCountForLevel(e)},_horizontalCountForLevel:function(e,t){var n=this._view;return n._columnCountForLevel(t)/n._columnCountForLevel(2)},_updateCurrentVerticalTimeMarker:function(t,n){var i=this._view,o=i.times.find("tr:first th:first"),r=i.times.find("tr:first th:last"),a="<div class='"+w+"'></div>",s=e(a).prependTo(i.times),l=Math.round(t[0].innerRect(n,new Date(n.getTime()+1),!1).top),d={};this._isRtl?(d.right=o.position().left+p(o)-p(r),s.addClass(k+"-left")):(d.left=r.position().left,s.addClass(k+"-right")),d.top=l-h(s)*C/2,s.css(d),e(a).prependTo(i.content).css({top:l,height:"1px",right:"1px",width:i.content[0].scrollWidth,left:0})},_changeGroup:function(e,t,n){var i=this._view;n||(e.groupIndex=t?i.groups.length-1:0)},_prevGroupSlot:function(e){return e},_nextGroupSlot:function(e){return e},_changeDate:function(e,t,n){var i,o,r=this._view,a=r.groups[e.groupIndex];if(t){if(i=a._getCollections(!1),o=n.index-1,o>=0)return i[0]._slots[o]}else if(i=a._getCollections(!1),o=n.index+1,i[0]&&i[0]._slots[o])return i[0]._slots[o]},_verticalSlots:function(e,t,n){return this._changeDate(e,t,n)},_verticalMethod:function(e,t){return t?e?"upSlot":"downSlot":e?"leftSlot":"rightSlot"},_normalizeVerticalSelection:function(e,n,i,o){var r=this._view;return o?t:r._normalizeVerticalSelection(e,n,i)},_horizontalSlots:function(e,t,n,i,o,r,a){var s=this._view,l=s._changeGroup(e,a),d={};return l?d.startSlot=d.endSlot=l:s._isVerticallyGrouped()||(d.startSlot=t[n](i),d.endSlot=t[n](o)),d},_changeVerticalViewPeriod:function(e,t,n,i){var o=this._view;return!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(n,i,o._isVerticallyGrouped()))},_changeHorizontalViewPeriod:function(e,t,n,i){var o=this._view;return!o._isVerticallyGrouped()&&!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(n,i,!1))},_updateDirection:function(e,t,n,i){var o=this._view;o._updateDirection(e,t,n,i,!o._isVerticallyGrouped())},_createMoveHint:function(e,t){var n,i,o,r,a=this._view,s=e.start,l=e.end;for(n=s.index;n<=l.index;n++)i=e.collection._slots[n],o=a._createEventElement(t.occurrence,t.occurrence,!1,!1),o.addClass("k-event-drag-hint"),r={left:i.offsetLeft+2,top:i.offsetTop,height:a.options.eventHeight,width:i.offsetWidth},o.css(r),t.occurrence.inverseColor&&o.addClass(x),a._appendMoveHint(o)},_adjustLeftPosition:function(e){var t=this._view;return t._isRtl&&!t._isVerticallyGrouped()&&(e-=t.content[0].scrollWidth-t.content[0].offsetWidth),e}});l.ui.scheduler.TimelineGroupedView=E,l.ui.scheduler.TimelineGroupedByDateView=I,s=u.extend({init:function(e,t){var n=this;u.fn.init.call(n,e,t),n._groupedView=n._getGroupedView(),n.title=n.options.title||n.options.name,n._workDays=i(n.options),n._templates(),n._editable(),n.calculateDateRange(),n._groups(),n._currentTime(!0)},name:"timeline",_isVirtualized:function(){return!1},_getGroupedView:function(){return this._isGroupedByDate()?new l.ui.scheduler.TimelineGroupedByDateView(this):new l.ui.scheduler.TimelineGroupedView(this)},_getNextEventIndexBySlot:function(e,t,n){var i,o;if(this._isVerticallyGrouped())return l.ui.SchedulerView.fn._getNextEventIndexBySlot.call(this,e,t,n);
for(i=0,o=0;o<t.length;o++)if(e.startDate()>t[o].start.startDate())i++;else{if(!(e.startDate().getTime()===t[o].start.startDate().getTime()&&n>t[o].start.groupIndex))break;i++}return i},_getSelectedSlot:function(e,t,n,i,o,r){return this._isVerticallyGrouped()?l.ui.SchedulerView.fn._getSelectedSlot.call(this,e,t,n,i,o,r):e},_getSortedEvents:function(t){return this._isVerticallyGrouped()?l.ui.SchedulerView.fn._getSortedEvents.call(this,t):t.sort(function(t,n){var i=t.start.startDate().getTime()-n.start.startDate().getTime();return 0===i&&(t.start.isDaySlot&&!n.start.isDaySlot&&(i=-1),!t.start.isDaySlot&&n.start.isDaySlot&&(i=1)),0===i&&(i=t.start.groupIndex-n.start.groupIndex),0===i&&(i=e(t.element).index()-e(n.element).index()),i})},_currentTimeMarkerUpdater:function(){this._updateCurrentTimeMarker(new Date)},_updateCurrentTimeMarker:function(t){var n,i,o,r,a,s,d,c,u,p,f,m,g,v=this.options;if(this.datesHeader.find("."+w).remove(),this.times.find("."+w).remove(),this.content.find("."+w).remove(),this._isInDateSlot({start:t,end:t}))for(v.currentTimeMarker.useLocalTimezone===!1&&(n=v.dataSource.options.schema.timezone,v.dataSource&&n&&(i=l.timezone.offset(t,n),t=l.timezone.convert(t,t.getTimezoneOffset(),i))),o=v.group&&"vertical"!=v.group.orientation?this.groups.length:1,r=0;r<o;r++){if(a=this.groups[r],!a)return;if(s=l.date.toUtcTime(t),d=a.timeSlotRanges(s,s+1),0===d.length)return;c=d[0].collection,u=c.slotByStartDate(t),u&&(this._isVerticallyGrouped()?this._groupedView._updateCurrentVerticalTimeMarker(d,t):(p="<div class='"+w+"'></div>",f=this.datesHeader.find("."+y),m=Math.round(d[0].innerRect(t,new Date(t.getTime()+1),!1).left),g=e(p).prependTo(f).addClass(k+"-down"),g.css({left:this._adjustLeftPosition(m-h(g)*C/2),top:f.find("tr:last").prev().position().top}),e(p).prependTo(this.content).css({left:this._adjustLeftPosition(m),width:"1px",height:this.content[0].scrollHeight-1,top:0})))}},_adjustLeftPosition:function(e){return this._groupedView._adjustLeftPosition(e)},_currentTime:function(e){var n=this,i=n.options.currentTimeMarker;i!==!1&&i.updateInterval!==t&&(n._currentTimeMarkerUpdater(),e&&(n._currentTimeUpdateTimer=setInterval(m(this._currentTimeMarkerUpdater,n),i.updateInterval)))},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var t=this;t.element.on("click"+S,".k-event a:has(.k-i-close)",function(n){t.trigger("remove",{uid:e(this).closest(".k-event").attr(l.attr("uid"))}),n.preventDefault()}),t.options.editable.create!==!1&&t.element.on("dblclick"+S,".k-scheduler-content td",function(e){var n,i=t._slotByPosition(e.pageX,e.pageY);i&&(n=t._resourceBySlot(i),t.trigger("add",{eventInfo:f({start:i.startDate(),end:i.endDate()},n)})),e.preventDefault()}),t.options.editable.update!==!1&&t.element.on("dblclick"+S,".k-event",function(n){t.trigger("edit",{uid:e(this).closest(".k-event").attr(l.attr("uid"))}),n.preventDefault()})},_touchEditable:function(){var n=this,i=0;l.support.mobileOS.android&&(i=5),n.options.editable.create!==!1&&(n._addUserEvents=new l.UserEvents(n.element,{threshold:i,useClickAsTap:!l.support.browser.edge,filter:".k-scheduler-content td",tap:function(e){var i,o,r,a;n._scrolling||(i=e.x.location!==t?e.x.location:e.x,o=e.y.location!==t?e.y.location:e.y,r=n._slotByPosition(i,o),r&&(a=n._resourceBySlot(r),n.trigger("add",{eventInfo:f({start:r.startDate(),end:r.endDate()},a)})),e.preventDefault())}})),n.options.editable.update!==!1&&(n._editUserEvents=new l.UserEvents(n.element,{threshold:i,useClickAsTap:!l.support.browser.edge,filter:".k-event",tap:function(t){var i,o;n._scrolling||(i=e(t.target).closest(".k-event"),o=e(t.touch.initialTouch),o.hasClass("k-i-close")?n.trigger("remove",{uid:i.attr(l.attr("uid"))}):i.hasClass("k-event-active")||n.trigger("edit",{uid:i.attr(l.attr("uid"))}),t.preventDefault())}}))},_slotByPosition:function(e,t){var n,i,o,r=this.content,a=r.offset();for(e-=a.left,t-=a.top,this._isRtl?(o=l.support.browser,o.mozilla||o.webkit&&o.version>=85?(e+=r[0].scrollWidth-r[0].offsetWidth,e+=r[0].scrollLeft):o.msie?(e-=l.scrollLeft(r),e+=r[0].scrollWidth-r[0].offsetWidth):o.webkit&&(e+=r[0].scrollLeft)):e+=r[0].scrollLeft,t+=r[0].scrollTop,e=Math.ceil(e),t=Math.ceil(t),i=0;i<this.groups.length;i++)if(n=this._groupedView._getTimeSlotByPosition(e,t,i))return n;return null},options:{name:"TimelineView",title:"Timeline",selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}",selectedMobileDateFormat:"{0:MMM dd}",date:l.date.today(),startTime:l.date.today(),endTime:l.date.today(),showWorkHours:!1,minorTickCount:2,editable:!0,workDayStart:new Date(1980,1,1,8,0,0),workDayEnd:new Date(1980,1,1,17,0,0),workWeekStart:1,workWeekEnd:5,majorTick:60,eventHeight:25,eventMinWidth:0,columnWidth:100,groupHeaderTemplate:"#=text#",majorTimeHeaderTemplate:"#=kendo.toString(date, 't')#",slotTemplate:"&nbsp;",eventTemplate:T,dateHeaderTemplate:D,footer:{command:"workDay"},currentTimeMarker:{updateInterval:1e4,useLocalTimezone:!0},messages:{defaultRowText:"All events",showFullDay:"Show full day",showWorkDay:"Show business hours"}},events:["remove","add","edit"],_templates:function(){var e=this.options,t=f({},l.Template,e.templateSettings);this.eventTemplate=this._eventTmpl(e.eventTemplate,A),this.majorTimeHeaderTemplate=l.template(e.majorTimeHeaderTemplate,t),this.dateHeaderTemplate=l.template(e.dateHeaderTemplate,t),this.slotTemplate=l.template(e.slotTemplate,t),this.groupHeaderTemplate=l.template(e.groupHeaderTemplate,t)},_render:function(t){var n=this;t=t||[],n._dates=t,n._startDate=t[0],n._endDate=t[t.length-1||0],n._calculateSlotRanges(),n.createLayout(n._layout(t)),n._content(t),n._footer(),n._setContentWidth(),n.refreshLayout(),n.datesHeader.on("click"+S,".k-nav-day",function(t){var i=e(t.currentTarget).closest("th"),o=n._slotByPosition(i.offset().left,n.content.offset().top);n.trigger("navigate",{view:"timeline",date:o.startDate()})}),n._groupedView._hideHeaders()},_setContentWidth:function(){var e=this.content,t=e.width(),n=this.content.find("table"),i=n.find("tr:first").children().length,o=100,r=i*this.options.columnWidth;t<r&&(o=Math.ceil(r/t*100)),n.add(this.datesHeader.find("table")).css("width",o+"%")},_calculateSlotRanges:function(){var e,t,n,i,o=this._dates,r=this.startTime(),a=this.endTime();for(a=v(a),r=v(r),a===r?a+=_-1:a<r&&(a+=_),e=[],t=0;t<o.length;t++)n=g(o[t]),c(n,r),i=g(o[t]),c(i,a),e.push({start:l.date.toUtcTime(n),end:l.date.toUtcTime(i)});this._slotRanges=e},_forTimeRange:function(e,t,i,o,r){var a,s,l,d,u,h,p,f,m,g,w,k,y,x,C,S;for(e=n(e),t=n(t),a=this,s=v(e),l=v(t),d=a.options.minorTickCount,u=a.options.majorTick*b,h=u/d||1,p=new Date((+e)),f=0,g="",m=_/h,s!=l&&(s>l&&(l+=_),m=(l-s)/h),m=o?1:Math.round(m),r&&(m*=r);f<m;f++)w=f%(u/h),k=0===w,y=w<d-1,x=w===d-1,C=d,m%d!==0&&(S=m-(f+1)<d,k&&S&&(C=m%d)),g+=i(p,k,y,x,C,f%r),o||(r?f%r===r-1&&c(p,h,!1):c(p,h,!1));return g},_layout:function(e){var t,n,i,o=[],r=[],a=this,s=[{text:a.options.messages.defaultRowText}],l=a._groupedView,d=[];for(t=0;t<a.options.minorTickCount;t++)d.push({text:"&#8203;",className:"k-last",minorTicks:!0});for(this._forTimeRange(a.startTime(),a.endTime(),function(e,t,n,i,r){var s,c=a.majorTimeHeaderTemplate;t&&(s={text:c({date:e}),className:i?"k-slot-cell":"",columns:d.slice(0,r)},l._setColspan(s),o.push(s))}),n=0;n<e.length;n++)r.push({text:a.dateHeaderTemplate({date:e[n]}),className:"k-slot-cell",columns:o.slice(0)});return i=this.groupedResources,i.length&&("vertical"===this._groupOrientation()?(s=l._createRowsLayout(i,null,this.groupHeaderTemplate,r),r=l._createVerticalColumnsLayout(i,null,this.groupHeaderTemplate,r)):r=l._createColumnsLayout(i,r,this.groupHeaderTemplate,r)),{columns:r,rows:s}},_footer:function(){var t,n,i,o=this.options;o.footer!==!1&&(t='<div class="k-scheduler-footer k-toolbar">',n=o.footer.command,this._isMobile()&&(t+='<span class="k-state-default k-scheduler-today"><a href="#" class="k-link">',t+=o.messages.today+"</a></span>"),n&&"workDay"===n&&(this._isMobile()?(t+='<span class="k-state-default k-scheduler-fullday"><a href="#" class="k-link">',t+=(o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay)+"</a></span>"):(t+='<button type="button" class="k-button k-scheduler-fullday">',t+='<span class="k-icon k-i-clock"></span>',t+='<span class="k-button-text">',t+=o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay,t+="</span>",t+="</button>")),t+="</div>",this.footer=e(t).appendTo(this.element),i=this,this.footer.on("click"+S,".k-scheduler-fullday",function(e){e.preventDefault(),i.trigger("navigate",{view:i.name||o.name,date:i.startDate(),isWorkDay:!o.showWorkHours})}),this.footer.on("click"+S,".k-scheduler-today",function(e){var t,n,r,a,s;e.preventDefault(),t=i.options.timezone,n="today",r=new Date,t?(s=l.timezone.offset(r,t),a=l.timezone.convert(r,r.getTimezoneOffset(),s)):a=r,i.trigger("navigate",{view:i.name||o.name,action:n,date:a})}))},_columnCountForLevel:function(e){var t=this.columnLevels[e];return t?t.length:0},_rowCountForLevel:function(e){var t=this.rowLevels[e];return t?t.length:0},_isWorkDay:function(e){var t,n=e.getDay(),i=this._workDays;for(t=0;t<i.length;t++)if(i[t]===n)return!0;return!1},_content:function(e){var t=this,n=t.startTime(),i=this.endTime(),o=1,r=1,a=e.length,s="",l=this.groupedResources,d=this.slotTemplate,c=!1;l.length&&(c="vertical"===t._groupOrientation(),c?(r=t._groupedView._getRowCount(this.rowLevels.length-1),o=t._groupedView._getGroupsCount()):o=t._groupCount()),s+="<tbody>",s+=t._groupedView._addContent(e,a,o,r,n,i,d,c),s+="</tbody>",this.content.find("table").append(s)},_groups:function(){var e,t,n,i,o,r,a=this._groupCount(),s=this._dates,d=s.length;for(this.groups=[],e=0;e<a;e++)t=this._addResourceView(e),n=s[0],i=s[s.length-1||0],o=v(this.startTime()),r=v(this.endTime()),0!==o&&r<=o&&(n=g(n),c(n,o),i=g(i),c(i,r)),t.addTimeSlotCollection(n,l.date.addDays(i,1));this._timeSlotGroups(a,d)},_isHorizontallyGrouped:function(){return this.groupedResources.length&&"horizontal"===this._groupOrientation()},_timeSlotGroups:function(e,t){var n=this._timeSlotInterval(),i=this._isVerticallyGrouped(),o=this.content.find("tr");o.attr("role","row"),this._groupedView._addTimeSlotsCollections(e,t,o,n,i)},_addTimeSlotToCollection:function(e,t,n,i,o,r,a){var s=t[n+i],l=e.getTimeSlotCollection(0),d=this._dates[o],c=Date.UTC(d.getFullYear(),d.getMonth(),d.getDate()),u=c+r,h=u+a;s.setAttribute("role","gridcell"),s.setAttribute("aria-selected",!1),l.addTimeSlot(s,u,h,!0)},startDate:function(){return this._startDate},endDate:function(){return this._endDate},visibleEndDate:function(){var e=v(this.startTime()),t=v(this.endTime()),n=this.endDate();return 0!==e&&t<=e&&(n=l.date.addDays(n,1)),n},startTime:function(){var e=this.options;return e.showWorkHours?e.workDayStart:e.startTime},endTime:function(){var e=this.options;return e.showWorkHours?e.workDayEnd:e.endTime},_timeSlotInterval:function(){var e=this.options;return e.majorTick/e.minorTickCount*b},nextDate:function(){return l.date.nextDay(this.endDate())},previousDate:function(){return l.date.previousDay(this.startDate())},calculateDateRange:function(){this._render([this.options.date])},render:function(e){var t,n,i,o,r;for(this._headerColumnCount=0,this._groups(),this.element.find(".k-event").remove(),e=new l.data.Query(e).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray(),t=[],this._eventsByResource(e,this.groupedResources,t),n=[],i=0,o=0;o<t.length;o++)r={groupIndex:o,maxRowCount:0,events:{}},n.push(r),this._renderEvents(t[o],o,r),i<r.maxRowCount&&(i=r.maxRowCount);this._setRowsHeight(n,t.length,i),this._positionEvents(n,t.length),this._currentTime(!1),this.trigger("activate")},_positionEvents:function(t,n){var i,o,r,a,s;for(i=0;i<n;i++){o=t[i].events;for(r in o)if(a=o[r],e.isArray(a))for(s=0;s<a.length;s++)this._positionEvent(a[s]);else this._positionEvent(a)}},_setRowsHeight:function(t,n,i){var o,r,a,s,l,d=this.options.eventHeight,c=this._getBottomRowOffset(),u=this._groupedView,h=u._getVerticalGroupCount(n);for(n=this._isVerticallyGrouped()?h:1,o=0;o<n;o++)r=u._getVerticalRowCount(t,o,i),r=r?r:1,a=(d+2)*r+c,s=e(this.times.find("tr")[o]),l=e(this.content.find("tr")[o]),s.height(a),l.height(a);this._setContentWidth(),this.refreshLayout(),this._refreshSlots()},_getBottomRowOffset:function(){var e,t,n=.5*this.options.eventHeight,i=this._isMobile();return i?(e=30,t=60):(e=15,t=30),n>t?n=t:n<e&&(n=e),n},_positionEvent:function(e){var t,n,i,o=this.options.eventHeight+2,r=e.slotRange.innerRect(e.start,e.end,!1),a=this._adjustLeftPosition(r.left),s=r.right-r.left;s<0&&(s=0),s<this.options.eventMinWidth&&(t=e.slotRange.collection,n=t._slots[t._slots.length-1],i=n.offsetLeft+n.offsetWidth,s=this.options.eventMinWidth,i<a+s&&(s=i-r.left)),e.element.css({top:e.slotRange.start.offsetTop+e.rowIndex*(o+2)+"px",left:a,width:s})},_refreshSlots:function(){for(var e=0;e<this.groups.length;e++)this.groups[e].refresh()},_eventsByResource:function(e,t,n){var i,o,r,a,s=t[0];if(s)for(i=s.dataSource.view(),o=0;o<i.length;o++)r=this._resourceValue(s,i[o]),a=new l.data.Query(e).filter({field:s.field,operator:u.groupEqFilter(r)}).toArray(),t.length>1?this._eventsByResource(a,t.slice(1),n):n.push(a);else n.push(e)},_isInDateSlot:function(e){var t=e.start,n=e.end,i=g(this._startDate),o=l.date.addDays(g(this.visibleEndDate()),1);return t<o&&i<=n},_isInTimeSlot:function(e){var t,n=e._startTime||l.date.toUtcTime(e.start),i=e._endTime||l.date.toUtcTime(e.end),o=this._slotRanges;for(n===i&&(i+=1),t=0;t<o.length;t++)if(n<o[t].end&&o[t].start<i)return!0;return!1},_adjustEvent:function(e){var t,n=e.start,i=e.end,o=e._time("start"),r=e._time("end"),a=v(this.startTime()),s=v(this.endTime()),d=null,u=null,h=!1,p=!1;return e.isAllDay&&(n=g(n),o=0,i=g(i),r=_,u=l.date.addDays(i,1)),0===s&&(s=_),s<=a?(o<a&&o>=s&&(d=g(n),c(d,a),p=!0),r>s&&r<=a&&(u=g(i),c(u,s),h=!0)):(a>o?(d=g(n),c(d,a),p=!0):s<=o&&(d=g(n),d=l.date.addDays(d,1),c(d,a),p=!0),s<r?(u=g(i),c(u,s),h=!0):a>r&&(u=g(i),u=l.date.addDays(u,-1),c(u,s),h=!0)),t=e.clone({start:d?d:n,end:u?u:i,_startTime:d?l.date.toUtcTime(d):e._startTime,_endTime:u?l.date.toUtcTime(u):e._endTime,isAllDay:!1}),{occurrence:t,head:h,tail:p}},_renderEvents:function(e,t,n){var i,o,r,a,s,l,d,c,u,h,p;for(o=0,r=e.length;o<r;o++)i=e[o],this._isInDateSlot(i)&&(a=i.isAllDay||i.duration()>=_,s=this.content,(a||this._isInTimeSlot(i))&&(l=this._adjustEvent(i),d=this.groups[t],d._continuousEvents||(d._continuousEvents=[]),this._isInTimeSlot(l.occurrence)&&(c=d.slotRanges(l.occurrence,!1),u=c[0],h=u.start.index,p=u.end.index,this._groupedView._renderEvent(n,i,l,d,u,s,h,p))))},addContinuousEvent:function(e,t,n,i){var o=e._continuousEvents;o.push({element:n,isAllDay:i,uid:n.attr(l.attr("uid")),start:t.start,end:t.end})},_createEventElement:function(t,n,i,o){var r,a,s=this.eventTemplate,d=this.options.editable,c=this._isMobile(),u=d&&d.destroy!==!1&&!c,h=d&&d.resize!==!1,p=n._time("start"),m=n._time("end"),g=n.start,v=n.end,_=this.eventResources(n);return n._startTime&&p!==l.date.getMilliseconds(n.start)&&(g=new Date(p),g=l.timezone.apply(g,"Etc/UTC")),n._endTime&&m!==l.date.getMilliseconds(n.end)&&(v=new Date(m),v=l.timezone.apply(v,"Etc/UTC")),r=f({},{ns:l.ns,resizable:h,showDelete:u,head:i,tail:o,singleDay:1==this._dates.length,resources:_,inverseColor:!1,messages:this.options.messages},n,{start:g,end:v}),a=e(s(r)),this.angular("compile",function(){return{elements:a,data:[{dataItem:r}]}}),a},_arrangeRows:function(e,t,n){var i,o,a,s,l,d,c=t.start.index,h=t.end.index,p=e.slotRange.innerRect(e.start,e.end,!1),f=p.right+this.options.eventMinWidth,m=r(t.events(),p.left,f);for(t.addEvent({slotIndex:c,start:c,end:h,rectLeft:p.left,rectRight:f,element:e.element,uid:e.uid}),m.push({start:c,end:h,uid:e.uid}),i=u.createRows(m),n.maxRowCount<i.length&&(n.maxRowCount=i.length),o=0,a=i.length;o<a;o++)for(s=i[o].events,l=0,d=s.length;l<d;l++)n.events[s[l].uid].rowIndex=o},_groupCount:function(){var e=this.groupedResources,t=this._groupedView;return e.length?"vertical"===this._groupOrientation()?t._verticalCountForLevel(e.length-1):t._horizontalCountForLevel(e.length-1,this.columnLevels.length-1):1},_updateEventForSelection:function(e){var t=this._adjustEvent(e.clone());return t.occurrence},_eventOptionsForMove:function(e){return e.isAllDay?{isAllDay:!1}:{}},_updateEventForResize:function(e){e.isAllDay&&e.set("isAllDay",!1)},_updateMoveHint:function(e,t,n){var i,o,r,a=this.groups[t],s=e.clone({start:e.start,end:e.end}),l=s.duration();if(s.start=new Date(s.start.getTime()+n),s.end=new Date(+s.start+l),this._removeMoveHint(e.uid),this._isInDateSlot(s)&&(s.isAllDay||s.duration()>=_||this._isInTimeSlot(s)))for(i=this._adjustEvent(s),o=a.slotRanges(i.occurrence,!1),r=0;r<o.length;r++)this._groupedView._createMoveHint(o[r],i)},_appendMoveHint:function(e){e.appendTo(this.content),this._moveHint=this._moveHint.add(e)},_updateResizeHint:function(e,t,n,i){var o,r,a,s,d,c,h,p,f,m,g,v=this.groups[t],_=v.ranges(n,i,!1,!1);for(this._removeResizeHint(),o=0;o<_.length;o++){if(r=_[o],a=r.startSlot(),s=r.innerRect(n,i,!1),s.top=a.offsetTop,d=s.right-s.left,d<0)for(c=0;c<r.events().length;c++)if(r.events()[c].uid===e.uid){d=r.events()[c].rectRight-s.left;break}h=r.endSlot().offsetTop+a.offsetHeight-s.top,p=this._adjustLeftPosition(s.left),f=u.fn._createResizeHint.call(this,p,s.top,d,h),this._resizeHint=this._resizeHint.add(f)}m="t",g=this.content,this._resizeHint.appendTo(g),this._resizeHint.find(".k-label-top,.k-label-bottom").text(""),this._resizeHint.first().addClass("k-first").find(".k-label-top").text(l.toString(l.timezone.toLocalDate(n),m)),this._resizeHint.last().addClass("k-last").find(".k-label-bottom").text(l.toString(l.timezone.toLocalDate(i),m))},selectionByElement:function(e){var t=e.offset();return this._slotByPosition(t.left,t.top)},_updateDirection:function(e,t,n,i,o){var r=t[0].start,a=t[t.length-1].end;n&&!o&&r.index===a.index&&r.collectionIndex===a.collectionIndex&&(e.backward=i)},_changeGroup:function(e,t){var n=t?"prevGroupSlot":"nextGroupSlot",i=this[n](e.start,e.groupIndex,!1);return i&&(e.groupIndex+=t?-1:1),this._groupedView._changeGroup(e,t,i),i},prevGroupSlot:function(e,t,n){var i=this.groups[t],o=i.ranges(e,e,n,!1)[0].start;if(!(t<=0))return this._groupedView._prevGroupSlot(o,i,n)},nextGroupSlot:function(e,t,n){var i=this.groups[t],o=i.ranges(e,e,n,!1)[0].start;if(!(t>=this.groups.length-1))return this._groupedView._nextGroupSlot(o,i,n)},_verticalSlots:function(e,t,n,i){var o=this._groupedView,r=o._verticalMethod(i,n),a=t[0].start,s=t[t.length-1].end,l=this.groups[e.groupIndex],d=o._normalizeVerticalSelection(e,t,i,n);return d&&(a=s=d),a=l[r](a),s=l[r](s),n||!this._isVerticallyGrouped()||a&&s||(a=s=o._verticalSlots(e,i,d)),{startSlot:a,endSlot:s}},_horizontalSlots:function(e,t,n,i){var o=i?"upSlot":"downSlot",r=t[0].start,a=t[t.length-1].end,s=this.groups[e.groupIndex],l={};return n?(l.startSlot=s[o](r),l.endSlot=s[o](a),n||!this._isHorizontallyGrouped()||r&&a||(l.startSlot=l.endSlot=this._changeGroup(e,i))):l=this._groupedView._horizontalSlots(e,s,o,r,a,n,i),l},_changeViewPeriod:function(e,t){var n,i=t?this.previousDate():this.nextDate(),o=e.start,r=e.end,a=new Date(i),s=new Date(i);return!this._isInRange(a,s)&&(e.start=a,e.end=s,this._isHorizontallyGrouped()&&(e.groupIndex=t?this.groups.length-1:0),n=r-o,t?(r=v(this.endTime()),r=0===r?_:r,c(e.start,r-n),c(e.end,r)):(o=v(this.startTime()),c(e.start,o),c(e.end,o+n)),e.events=[],!0)},move:function(e,t,n){var i,o,r,a,s,d=!1,c=this.groups[e.groupIndex],u=l.keys,h=this._groupedView,p=c.ranges(e.start,e.end,!1,!1);if(t===u.DOWN||t===u.UP){if(d=!0,r=t===u.UP,h._updateDirection(e,p,n,r),a=this._verticalSlots(e,p,n,r),h._changeVerticalViewPeriod(a,n,e,r))return d}else if((t===u.LEFT||t===u.RIGHT)&&(d=!0,r=t===u.LEFT,this._updateDirection(e,p,n,r,!1),a=this._horizontalSlots(e,p,n,r),h._changeHorizontalViewPeriod(a,n,e,r)))return d;return d&&(i=a.startSlot,o=a.endSlot,n?(s=e.backward,s&&i?e.start=i.startDate():!s&&o&&(e.end=o.endDate())):i&&o&&(e.start=i.startDate(),e.end=o.endDate()),e.events=[]),d},destroy:function(){var e=this;e.element&&e.element.off(S),e.footer&&e.footer.remove(),e._currentTimeUpdateTimer&&clearInterval(e._currentTimeUpdateTimer),u.fn.destroy.call(this),this._isMobile()&&e.options.editable&&(e.options.editable.create!==!1&&e._addUserEvents.destroy(),e.options.editable.update!==!1&&e._editUserEvents.destroy())}}),f(!0,d,{TimelineView:s,TimelineWeekView:s.extend({options:{name:"TimelineWeekView",title:"Timeline Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0:MMM dd} - {1:dd}",majorTick:120},name:"timelineWeek",calculateDateRange:function(){var e,t,n=this.options.date,i=l.date.dayOfWeek(n,this.calendarInfo().firstDay,-1),o=[];for(e=0,t=7;e<t;e++)o.push(i),i=l.date.nextDay(i);this._render(o)}}),TimelineWorkWeekView:s.extend({options:{name:"TimelineWorkWeekView",title:"Timeline Work Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0:MMM dd} - {1:dd}",majorTick:120},name:"timelineWorkWeek",nextDate:function(){var e=l.date.dayOfWeek(l.date.nextDay(this.endDate()),this.calendarInfo().firstDay,1);return l.date.addDays(e,this._workDays[0])},previousDate:function(){var e=l.date.dayOfWeek(this.startDate(),this.calendarInfo().firstDay,-1),t=this._workDays;return l.date.addDays(e,t[t.length-1]-7)},calculateDateRange:function(){var e=this.options,t=e.date,n=l.date.dayOfWeek,i=n(t,this.calendarInfo().firstDay,-1),o=n(i,e.workWeekStart,1),r=n(o,e.workWeekEnd,1),a=[],s=e.workDays&&e.workDays.length?e.workDays.map(function(e){return n(i,e,1).getTime()}):null;for(s&&(o=i,r=n(o,6,1));o<=r;)s&&s.indexOf(o.getTime())>-1?a.push(o):s||a.push(o),o=l.date.nextDay(o);this._render(a)}}),TimelineMonthView:s.extend({options:{name:"TimelineMonthView",title:"Timeline Month",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",workDayStart:new Date(1980,1,1,0,0,0),workDayEnd:new Date(1980,1,1,23,59,59),footer:!1,majorTick:1440,minorTickCount:1},name:"timelineMonth",calculateDateRange:function(){var e,t,n=this.options.date,i=l.date.firstDayOfMonth(n),o=l.date.lastDayOfMonth(n),r=[];for(e=0,t=o.getDate();e<t;e++)r.push(i),i=l.date.nextDay(i);this._render(r)}})})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.scheduler.min",["kendo.dropdownlist.min","kendo.editable.min","kendo.multiselect.min","kendo.window.min","kendo.datetimepicker.min","kendo.scheduler.recurrence.min","kendo.scheduler.view.min","kendo.scheduler.dayview.min","kendo.scheduler.agendaview.min","kendo.scheduler.monthview.min","kendo.scheduler.timelineview.min","kendo.dialog.min","kendo.pane.min","kendo.pdf.min","kendo.switch.min"],e)}(function(){return function(e,t){function n(e,t){return t=t||"",e.startTimezone&&(t=e.startTimezone,e.endTimezone&&(t+=" | "+e.endTimezone)),t}function i(e,t){var n=t.timezone;n&&(e[z.attr("timezone")]=n)}function o(e,t){var n,i=t.model.fields[t.field].validation;i&&(n=i.validDateValidator,n&&Y(n)&&n.message&&(e[z.attr("validDate-msg")]=n.message))}function r(e,t){var n,i=t.model.fields[t.field].validation;i&&(n=i.dateCompare,n&&Y(n)&&n.message&&(e[z.attr("dateCompare-msg")]=n.message))}function a(e,t){return function(n){return n=e(n),l(n,"apply",t),n||[]}}function s(e,t){return function(n){return n&&("[object Array]"===Z.call(n)||n instanceof z.data.ObservableArray||(n=[n])),l(n,"remove",t,!0),n=e(n),n||[]}}function l(e,t,n,i){var o,r,a;for(e=e||[],r=0,a=e.length;r<a;r++)o=e[r],i?o.startTimezone||o.endTimezone?n?(o.start=z.timezone.convert(o.start,o.startTimezone||o.endTimezone,n),o.end=z.timezone.convert(o.end,o.endTimezone||o.startTimezone,n),o.start=z.timezone[t](o.start,n),o.end=z.timezone[t](o.end,n)):(o.start=z.timezone[t](o.start,o.startTimezone||o.endTimezone),o.end=z.timezone[t](o.end,o.endTimezone||o.startTimezone)):n&&(o.start=z.timezone[t](o.start,n),o.end=z.timezone[t](o.end,n)):o.startTimezone||o.endTimezone?(o.start=z.timezone[t](o.start,o.startTimezone||o.endTimezone),o.end=z.timezone[t](o.end,o.endTimezone||o.startTimezone),n&&(o.start=z.timezone.convert(o.start,o.startTimezone||o.endTimezone,n),o.end=z.timezone.convert(o.end,o.endTimezone||o.startTimezone,n))):n&&(o.start=z.timezone[t](o.start,n),o.end=z.timezone[t](o.end,n)),i&&delete o.uid;return e}function d(e,t){for(var n,i=e.length,o=0;o<i;o++)if(n=e[o],n.uid===t)return n}function c(e,t,n){return e=n?z.timezone.convert(e,t,n):z.timezone.remove(e,t)}function u(e){var t,n;return!(e.filter("[name=start]").length&&e.filter("[title=Start]").length||e.filter("[name=end]").length&&e.filter("[title=End]").length||e.filter(".k-recur-until").length)||(n=z.widgetInstance(e,z.ui),n?(t=z.parseDate(e.val(),n.options.format),!!t&&n.value()):(t=z.parseDate(e.val()),!!t))}function h(e){var t,n,i,o,r,a,s,l,d,u,h,p;return!(e.filter("[name=end]").length&&(t=e.closest(".k-scheduler-edit-form"),n=t.find("[name=start]:visible"),i=t.find("[name=end]:visible"),i[0]&&n[0]&&(a=z.widgetInstance(n,z.ui),s=z.widgetInstance(i,z.ui),l=t.data("kendoEditable"),d=l?l.options.model:null,a&&s?(o=a.value(),r=s.value()):(o=z.parseDate(n.val()),r=z.parseDate(i.val())),o&&r)))||(d&&(u=n.attr(z.attr("timezone")),h=d.startTimezone,p=d.endTimezone,h=h||p,p=p||h,h&&(o=c(o,h,u),r=c(r,p,u))),o<=r)}function p(e){var t,n,i,o,r,a;return!(e.filter(".k-recur-until").length&&(t=z.widgetInstance(e,z.ui),n=t.value(),i=e.closest(".k-scheduler-edit-form"),o=i.find("[name=start]:visible"),o[0]&&(a=z.widgetInstance(o,z.ui),r=a?a.value():z.parseDate(o.val()),r&&n)))||r<=n}function f(e,t,n,i){for(var o=e.length,r=[],a=0;a<o;a++)r=r.concat(e[a].expand(t,n,i));return r}function m(e,t){delete e.name,delete e.prefix,delete e.remove,delete e.edit,delete e.add,delete e.navigate;for(var n in t)e[n]=t[n];return e}function g(t,n){var i,o,r=(t.fields||t)[n],a=["url","email","number","date","boolean"],s=r?r.validation:{},l=z.attr("type"),d=e.inArray,c={};for(i in s)o=s[i],d(i,a)>=0?c[l]=i:z.isFunction(o)||(c[i]=Y(o)?o.value||i:o),c[z.attr(i+"-msg")]=o.message;return c}function v(t,n){var i=g(n,t.field);return function(o){e(z.format('<select data-{0}bind="value:{1}" title="'+n.title+'">',z.ns,t.field)).appendTo(o).attr(i).kendoDropDownList({dataTextField:t.dataTextField,dataValueField:t.dataValueField,dataSource:t.dataSource,valuePrimitive:t.valuePrimitive,optionLabel:"None",template:z.format('<span class="k-scheduler-mark" style="background-color:#= data.{0}?{0}:"none" #"></span>#={1}#',t.dataColorField,t.dataTextField)})}}function _(t,n){var i=g(n,t.field);return function(n){var o,r,a="",s=t.dataSource.view();for(o=0,r=s.length;o<r;o++)a+=z.format('<option value="{0}">{1}</option>',z.getter(t.dataValueField)(s[o]),z.getter(t.dataTextField)(s[o]));e(z.format('<select data-{0}bind="value:{1}">{2}</select>',z.ns,t.field,a,t.valuePrimitive)).appendTo(n).attr(i)}}function b(t){var n=g(t.model,t.field);return function(t,i){e('<textarea name="description" class="k-textarea" title="'+i.title+'"/>').attr(n).appendTo(t)}}function w(t,n){var i=g(n,t.field);return function(n){e(z.format('<select data-{0}bind="value:{1}">',z.ns,t.field)).appendTo(n).attr(i).kendoMultiSelect({dataTextField:t.dataTextField,dataValueField:t.dataValueField,dataSource:t.dataSource,valuePrimitive:t.valuePrimitive,itemTemplate:z.format('<span class="k-scheduler-mark" style="background-color:#= data.{0}?{0}:"none" #"></span>#={1}#',t.dataColorField,t.dataTextField),tagTemplate:z.format('<span class="k-scheduler-mark" style="background-color:#= data.{0}?{0}:"none" #"></span>#={1}#',t.dataColorField,t.dataTextField)})}}function k(t,n){var i=g(n,t.field);return function(n){var o,r,a="",s=t.dataSource.view();for(o=0,r=s.length;o<r;o++)a+=z.format('<option value="{0}">{1}</option>',z.getter(t.dataValueField)(s[o]),z.getter(t.dataTextField)(s[o]));e(z.format('<select data-{0}bind="value:{1}" multiple="multiple" data-{0}value-primitive="{3}">{2}</select>',z.ns,t.field,a,t.valuePrimitive)).appendTo(n).attr(i)}}function y(e,t){var n,i=e.end.getTime()-e.start.getTime(),o=new Date(e.start.getTime());return z.date.setTime(o,t),n=new Date(o.getTime()),z.date.setTime(n,i,!0),{start:o,end:n}}var x,C,S,T,D,A,E,I,M,R,F,P,z=window.kendo,B=z.date,L=B.MS_PER_DAY,H=B.getDate,N=z.date.getMilliseconds,O=z.recurrence,V=e.extend({F10:121},z.keys),W=z.ui,U=W.Widget,j=W.DataBoundWidget,q="string",G=W.Popup,$=W.Calendar,K=z.data.DataSource,Y=e.isPlainObject,Q=e.extend,X=e.proxy,Z=Object.prototype.toString,J=e.isArray,ee=".kendoScheduler",te="click",ne="mousedown",ie=z.support.pointers?"pointerdown":"touchstart",oe=z.support.pointers?"pointermove":"touchmove",re=z.support.pointers?"pointerup":"touchend",ae=z.support.mousemove,se="change",le="progress",de="error",ce="cancel",ue="remove",he="resetSeries",pe="save",fe="add",me="edit",ge="k-state-focused",ve="k-state-expanded",_e=".k-scheduler-views",be="k-event-inverse",we=/(?:value:start|value:end)(?:,|$)/,ke=H(new Date),ye=",",xe=/\;/g,Ce="recurrenceException",Se="Are you sure you want to delete this event?",Te="Do you want to delete only this event occurrence or the whole series?",De="Do you want to edit only this event occurrence or the whole series?",Ae="Are you sure you want to delete this event occurrence?",Ee="Are you sure you want to reset the whole series?",Ie="Are you sure you want to delete the whole series?",Me='<button type="button" class="k-button #=className#" #=attr#><span class="k-button-text">#=text#</span></button>',Re=z.template('<select class="k-dropdown k-views-dropdown">#for (var view in views) {#<option value="#= view #">${views[view].title}</option>#}#</select>'),Fe=z.template('<div class="k-scheduler-toolbar k-toolbar"># if (pdf) { #<button class="k-button k-pdf"><span class="k-icon k-i-file-pdf"></span><span class="k-button-text">${messages.pdf}</span></button># } #<span class="k-scheduler-navigation k-button-group"><button class="k-button k-nav-today" title="${messages.today}"><span class="k-button-text">${messages.today}</span></button><button class="k-button k-button-icon k-icon-button k-nav-prev" title="${messages.previous}" aria-label="${messages.previous}"><span class="k-icon k-i-arrow-60-left"></span></button><button class="k-button k-button-icon k-icon-button k-nav-next" title="${messages.next}" aria-label="${messages.next}"><span class="k-icon k-i-arrow-60-right"></span></button></span><a role="button" href="\\#" class="k-nav-current"><span class="k-icon k-i-calendar"></span><span class="k-sm-date-format" data-#=ns#bind="text: formattedShortDate"></span><span class="k-lg-date-format" data-#=ns#bind="text: formattedDate"></span></a><span class="k-spacer k-toolbar-spacer"></span># if (search) { #<span class="k-scheduler-search k-textbox"><input autocomplete="off" placeholder="Search..." title="Search..." class="k-input k-scheduler-search-input" /><span class="k-input-icon"><span class="k-icon k-i-search"></span></span></span># } ## if (viewsCount === 1) { #<a role="button" data-#=ns#name="#=view#" href="\\#" class="k-button k-button-icon k-icon-button k-scheduler-refresh"><span class="k-icon k-i-reload"></span></a># } else { #<span class="k-scheduler-views-wrapper"><span class="k-scheduler-views k-button-group"># for (var view in views) { #<button type="button" class="k-button k-view-#= view.toLowerCase() #" data-#=ns#name="#=view#">${views[view].title}</button># } #</span></span># } #</div>'),Pe=z.template('<div class="k-scheduler-toolbar k-toolbar"><span class="k-scheduler-tools k-button-group"># if (pdf) { #<button type="button" class="k-button k-icon-button k-button-icon k-pdf"><span class="k-icon k-i-file-pdf"></span></button># } #<button type="button" class="k-button k-icon-button k-button-icon k-nav-calendar"><span class="k-icon k-i-calendar"></span></button># if (editable) { #<button type="button" class="k-button k-icon-button k-button-icon k-create-event"><span class="k-icon k-i-plus"></span></button># } #</span><span class="k-spacer k-toolbar-spacer"></span># if (search) { #<span class="k-scheduler-search k-textbox"><input autocomplete="off" placeholder="Search..." title="Search..." class="k-scheduler-search-input" /><span class="k-input-icon"><span class="k-icon k-i-search"></span></span></span># } ##if(viewsCount === 1){#<a role="button" data-#=ns#name="#=view#" href="\\#" class="k-button k-button-icon k-icon-button k-scheduler-refresh"><span class="k-icon k-i-reload"></span></a>#} else {#<select class="k-dropdown k-scheduler-mobile-views">#for(var view in views){#<option class="k-view-#= view.toLowerCase() #" value="#=view#">${views[view].title}</option>#}#</select>#}#</div><div class="k-scheduler-toolbar k-toolbar"><span class="k-scheduler-navigation"><button class="k-button k-button-icon k-icon-button k-nav-prev"><span class="k-icon k-i-arrow-chevron-left"></span></button><span class="k-state-default k-nav-current"><span class="k-m-date-format" data-#=ns#bind="text: formattedMobileDate"></span><span class="k-y-date-format" data-#=ns#bind="text: formattedYear"></span></span><button class="k-button k-button-icon k-icon-button k-nav-next"><span class="k-icon k-i-arrow-chevron-right"></span></button></span></div>'),ze=function(t,n){
var a={name:n.field,title:n.title},s=n.model.isAllDay,l=z.attr("validate")+"='"+!s+"'",d=z.attr("validate")+"='"+s+"'";i(a,n),o(a,n),r(a,n),e('<input type="datetime-local" required '+z.attr("type")+'="datetime-local" '+z.attr("bind")+'="value:'+n.field+', invisible:isAllDay" '+l+"/>").attr(a).appendTo(t),e('<input type="date" required '+z.attr("type")+'="date" '+z.attr("bind")+'="value:'+n.field+',visible:isAllDay" '+d+"/>").attr(a).appendTo(t),e("<span "+z.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},Be=function(t,n){var a={name:n.field,title:n.title},s=n.model.isAllDay,l=z.attr("validate")+"='"+!s+"' ",d=z.attr("validate")+"='"+s+"' ";i(a,n),o(a,n),r(a,n),e('<input type="text" required '+z.attr("type")+'="date" '+z.attr("role")+'="datetimepicker" '+z.attr("bind")+'="value:'+n.field+',invisible:isAllDay" '+l+"/>").attr(a).appendTo(t),e('<input type="text" required '+z.attr("type")+'="date" '+z.attr("role")+'="datepicker" '+z.attr("bind")+'="value:'+n.field+',visible:isAllDay" '+d+"/>").attr(a).appendTo(t),e("<span "+z.attr("bind")+'="text: '+n.field+'Timezone"></span>').appendTo(t),"end"===n.field&&e("<span "+z.attr("bind")+'="text: startTimezone, invisible: endTimezone"></span>').appendTo(t),e("<span "+z.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},Le=function(t,n){e("<div "+z.attr("bind")+'="value:'+n.field+'" />').attr({name:n.field}).appendTo(t).kendoRecurrenceEditor({start:n.model.start,timezone:n.timezone,messages:n.messages})},He=function(t,n){e("<div "+z.attr("bind")+'="value:'+n.field+'" />').attr({name:n.field}).appendTo(t).kendoMobileRecurrenceEditor({start:n.model.start,timezone:n.timezone,messages:n.messages,pane:n.pane,value:n.model[n.field]})},Ne=function(t,n){e('<input type="checkbox" data-role="switch"'+z.attr("bind")+'="value:'+n.field+'" />').appendTo(t)},Oe=function(t,i){var o=n(i.model,i.messages.noTimezone);e('<span class="k-timezone-label"></span>').text(o).appendTo(t),e('<span class="k-icon k-i-arrow-chevron-right"></span>').appendTo(t),t.closest("li.k-item label").click(i.click)},Ve=function(t,n){e('<a href="#" class="k-button" data-bind="invisible:isAllDay">'+n.messages.timezoneEditorButton+"</a>").click(n.click).appendTo(t)},We=function(t,n){e('<div class="k-mobiletimezoneeditor" '+z.attr("bind")+'="value:'+n.field+'" />').attr({name:n.field}).appendTo(t).kendoMobileTimezoneEditor({optionLabel:n.noTimezone})},Ue=function(n,i){var o=i.visible||i.visible===t;e("<div "+z.attr("bind")+'="value:'+i.field+'" />').attr({name:i.field}).toggle(o).appendTo(n).kendoTimezoneEditor({optionLabel:i.noTimezone,title:i.title})},je=z.Class.extend({init:function(t,n){var i=t.timezone;this.reader=n,n.model&&(this.model=n.model),this.timezone=i,this.data=a(e.proxy(this.data,this),i),this.serialize=s(e.proxy(this.serialize,this),i)},errors:function(e){return this.reader.errors(e)},parse:function(e){return this.reader.parse(e)},data:function(e){return this.reader.data(e)},total:function(e){return this.reader.total(e)},groups:function(e){return this.reader.groups(e)},aggregates:function(e){return this.reader.aggregates(e)},serialize:function(e){return this.reader.serialize(e)}}),qe=z.data.Model.define({init:function(e){var t=this;z.data.Model.fn.init.call(t,e),t._defaultId=t.defaults[t.idField]},_time:function(e){var t=this[e],n="_"+e+"Time";return this[n]?this[n]-z.date.toUtcTime(z.date.getDate(t)):N(t)},_date:function(e){var t="_"+e+"Time";return this[t]?this[t]-this._time(e):z.date.getDate(this[e])},clone:function(t,n){var i=this.uid,o=new this.constructor(e.extend({},this.toJSON(),t));return n||(o.uid=i),o},duration:function(){var e=this.end,t=this.start,n=(e.getTimezoneOffset()-t.getTimezoneOffset())*z.date.MS_PER_MINUTE;return e-t-n},expand:function(e,t,n){return O?O.expand(this,e,t,n):[this]},update:function(e){for(var t in e)this.set(t,e[t]);this._startTime&&this.set("_startTime",z.date.toUtcTime(this.start)),this._endTime&&this.set("_endTime",z.date.toUtcTime(this.end))},isMultiDay:function(){return this.isAllDay||this.duration()>=z.date.MS_PER_DAY},isException:function(){return!this.isNew()&&this.recurrenceId},isOccurrence:function(){return this.isNew()&&this.recurrenceId},isRecurring:function(){return!(!this.recurrenceRule&&!this.recurrenceId)},isRecurrenceHead:function(){return!(!this.id||!this.recurrenceRule)},toOccurrence:function(t){return t=e.extend(t,{recurrenceException:null,recurrenceRule:null,recurrenceId:this.id||this.recurrenceId}),t[this.idField]=this.defaults[this.idField],this.clone(t,!0)},toJSON:function(){var e=z.data.Model.fn.toJSON.call(this);return e.uid=this.uid,delete e._startTime,delete e._endTime,e},shouldSerialize:function(e){return z.data.Model.fn.shouldSerialize.call(this,e)&&"_defaultId"!==e},set:function(e,t){var n,i,o,r=this.isAllDay||!1;z.data.Model.fn.set.call(this,e,t),"isAllDay"==e&&t!=r&&(n=z.date.getDate(this.start),i=new Date(this.end),o=z.date.getMilliseconds(i),0===o&&t&&(o=L),this.set("start",n),t===!0?(z.date.setTime(i,-o),i<n&&(i=n)):z.date.setTime(i,L-o),this.set("end",i))},id:"id",fields:{id:{type:"number"},title:{defaultValue:"",type:"string"},start:{type:"date",validation:{required:!0,validDate:{value:u}}},startTimezone:{type:"string"},end:{type:"date",validation:{required:!0,validDate:{value:u},dateCompare:{value:h}}},endTimezone:{type:"string"},recurrenceRule:{defaultValue:"",type:"string",validation:{validDate:{value:u},untilDateCompare:{value:p}}},recurrenceException:{defaultValue:"",type:"string"},isAllDay:{type:"boolean",defaultValue:!1},description:{type:"string"}}}),Ge=K.extend({init:function(e){K.fn.init.call(this,Q(!0,{},{schema:{modelBase:qe,model:qe}},e)),this.reader=new je(this.options.schema,this.reader)},expand:function(e,t){var n,i=this.view(),o={};return e&&t&&(n=t.getTimezoneOffset(),t=new Date(t.getTime()+L-1),t.getTimezoneOffset()!==n&&(t=z.timezone.apply(t,n)),o={logic:"or",filters:[{logic:"and",filters:[{field:"start",operator:"gte",value:e},{field:"end",operator:"gte",value:e},{field:"start",operator:"lte",value:t}]},{logic:"and",filters:[{field:"start",operator:"lte",value:new Date(e.getTime()+L-1)},{field:"end",operator:"gte",value:e}]}]},i=new z.data.Query(f(i,e,t,this.reader.timezone)).filter(o).toArray()),i},cancelChanges:function(e){e&&e.isOccurrence()&&this._removeExceptionDate(e),K.fn.cancelChanges.call(this,e)},insert:function(e,t){if(t){if(!(t instanceof qe)){var n=t;t=this._createNewModel(),t.accept(n)}return(!this._pushCreated&&t.isRecurrenceHead()||t.recurrenceId)&&(t=t.recurrenceId?t:t.toOccurrence(),this._addExceptionDate(t)),K.fn.insert.call(this,e,t)}},pushCreate:function(e){this._pushCreated=!0,K.fn.pushCreate.call(this,e),this._pushCreated=!1},remove:function(e){return e.isRecurrenceHead()?this._removeExceptions(e):e.isRecurring()&&this._addExceptionDate(e),K.fn.remove.call(this,e)},_removeExceptions:function(e){for(var t=this.data().slice(0),n=t.shift(),i=e.id;n;)n.recurrenceId===i&&K.fn.remove.call(this,n),n=t.shift();e.set(Ce,"")},_removeExceptionDate:function(e){var t,n,i,o;e.recurrenceId&&(t=this.get(e.recurrenceId),t&&(n=e.defaults.start,i=RegExp("(\\"+ye+"?)"+O.toExceptionString(n,this.reader.timezone)),o=(t.recurrenceException||"").replace(xe,ye).replace(/\,$/,""),i.test(o)?t.set(Ce,o.replace(i,"")):(n=e.start,i=RegExp("(\\"+ye+"?)"+O.toExceptionString(n,this.reader.timezone)),t.set(Ce,o.replace(i,"")))))},_addExceptionDate:function(e){var t,n=e.start,i=this.reader.timezone,o=this.get(e.recurrenceId),r=(o.recurrenceException||"").replace(xe,ye).replace(/\,$/,"");O.isException(r,n,i)||(t=O.toExceptionString(n,i),e.defaults.start=n,o.set(Ce,r+(r&&t?ye:"")+t))}});Ge.create=function(e){(J(e)||e instanceof z.data.ObservableArray)&&(e={data:e});var t=e||{},n=t.data;if(t.data=n,!(t instanceof Ge)&&t instanceof z.data.DataSource)throw Error("Incorrect DataSource type. Only SchedulerDataSource instances are supported");return t instanceof Ge?t:new Ge(t)},Q(!0,z.data,{SchedulerDataSource:Ge,SchedulerDataReader:je,SchedulerEvent:qe}),x={update:{text:"Save",className:"k-primary k-scheduler-update"},canceledit:{text:"Cancel",className:"k-scheduler-cancel"},destroy:{text:"Delete",imageClass:"k-i-close",className:"k-primary k-scheduler-delete",iconClass:"k-icon"}},C={mobile:{dateRange:ze,timezonePopUp:Oe,timezone:We,recurrence:He,description:b,multipleResources:k,resources:_,isAllDay:Ne},desktop:{dateRange:Be,timezonePopUp:Ve,timezone:Ue,recurrence:Le,description:b,multipleResources:w,resources:v}},S=z.Observable.extend({init:function(e,t){z.Observable.fn.init.call(this),this.element=e,this.options=Q(!0,{},this.options,t),this.createButton=this.options.createButton,this.toggleDateValidationHandler=X(this._toggleDateValidation,this)},_toggleDateValidation:function(t){if("isAllDay"==t.field){var n,i,o,r=this.container,a=this.editable.options.model.isAllDay,s=z.attr("bind");r.find("["+s+"*=end],["+s+"*=start]").each(function(){n=e(this),we.test(n.attr(s))&&(i=n.is("["+z.attr("role")+"=datetimepicker],[type*=datetime]"),o=a!==i,n.attr(z.attr("validate"),o))})}},fields:function(e,t){var n,i,o=this,r=o.options.messages,a=o.options.timezone,s=function(e){e.preventDefault(),o._initTimezoneEditor(t,this)},l=[{field:"title",title:r.editor.title},{field:"start",title:r.editor.start,editor:e.dateRange,timezone:a},{field:"end",title:r.editor.end,editor:e.dateRange,timezone:a},{field:"isAllDay",title:r.editor.allDayEvent,editor:e.isAllDay}];z.timezone.windows_zones&&(l.push({field:"timezone",title:r.editor.timezone,editor:e.timezonePopUp,click:s,messages:r.editor,model:t}),l.push({field:"startTimezone",title:r.editor.startTimezone,editor:e.timezone,noTimezone:r.editor.noTimezone}),l.push({field:"endTimezone",title:r.editor.endTimezone,editor:e.timezone,noTimezone:r.editor.noTimezone})),t.recurrenceId||l.push({field:"recurrenceRule",title:r.editor.repeat,editor:e.recurrence,timezone:a,messages:r.recurrenceEditor,pane:this.pane}),"description"in t&&l.push({field:"description",title:r.editor.description,editor:e.description({model:t,field:"description"})});for(n=0;n<this.options.resources.length;n++)i=this.options.resources[n],l.push({field:i.field,title:i.title,editor:i.multiple?e.multipleResources(i,t):e.resources(i,t)});return l},end:function(){return this.editable.end()},_buildDesktopEditTemplate:function(e,t,n){var i,o,r,a,s=this.options.messages,l=Q({},z.Template,this.options.templateSettings),d=l.paramName,c="";for(i=0,o=t.length;i<o;i++)r=t[i],"startTimezone"===r.field&&(c+='<div class="k-popup-edit-form k-scheduler-edit-form k-scheduler-timezones" style="display:none">',c+='<div class="k-edit-form-container">',c+='<div class="k-edit-label"></div>',c+='<div class="k-edit-field"><label class="k-check"><input class="k-timezone-toggle" type="checkbox" />'+s.editor.separateTimezones+"</label></div>"),c+='<div class="k-edit-label"><label for="'+r.field+'">'+(r.title||r.field||"")+"</label></div>",!e.editable||e.editable(r.field)?(n.push(r),c+="<div "+z.attr("container-for")+'="'+r.field+'" class="k-edit-field"></div>'):(a="#:",r.field?(r=z.expr(r.field,d),a+=r+"==null?'':"+r):a+="''",a+="#",a=z.template(a,l),c+='<div class="k-edit-field">'+a(e)+"</div>"),"endTimezone"===r.field&&(c+=this._createEndTimezoneButton());return c},_buildMobileEditTemplate:function(e,t,n){var i,o,r,a,s=this.options.messages,l=Q({},z.Template,this.options.templateSettings),d=l.paramName,c="";for(c+='<ul class="k-listgroup k-listgroup-flush">',i=0,o=t.length;i<o;i++)r=t[i],"timezone"!==r.field&&"recurrenceRule"!==r.field||(c+='</ul><ul class="k-listgroup k-listgroup-flush">'),"startTimezone"===r.field&&(c+='<div class="k-popup-edit-form k-scheduler-edit-form k-scheduler-timezones" style="display:none">',c+='<ul class="k-listgroup k-listgroup-flush">',c+='<li class="k-item k-listgroup-item">',c+='<label class="k-label k-listgroup-form-row">',c+='<span class="k-item-title k-listgroup-form-row">'+s.editor.separateTimezones+"</span>",c+='<span class="k-listgroup-form-field-wrapper">',c+='<input class="k-timezone-toggle" data-role="switch" type="checkbox" />',c+="</span>",c+="</label>",c+="</li>"),!e.editable||e.editable(r.field)?(c+='<li class="k-item k-listgroup-item">',c+="timezone"===r.field?'<label class="k-label k-listgroup-form-row" data-bind="css: { k-state-disabled: isAllDay }">':'<label class="k-label k-listgroup-form-row">',c+='<span class="k-item-title k-listgroup-form-field-label">'+(r.title||r.field||"")+"</span>",n.push(r),c+='<div class="k-listgroup-form-field-wrapper" '+z.attr("container-for")+'="'+r.field+'"></div>',c+="</label></li>"):(a="#:",c+='<li class="k-item k-listgroup-item">',c+='<label class="k-label k-no-click k-listgroup-form-row">',c+='<span class="k-item-title k-listgroup-form-field-label">'+(r.title||r.field||"")+"</span>",r.field?(r=z.expr(r.field,d),a+=r+"==null?'':"+r):a+="''",a+="#",a=z.template(a,l),c+='<span class="k-no-editor k-listgroup-form-field-wrapper">'+a(e)+"</span>",c+="</label></li>"),"recurrenceRule"===r.field&&(c+='</ul><ul class="k-listgroup k-listgroup-flush">'),"endTimezone"===r.field&&(c+="</ul></div>");return c+="</ul>"},_buildEditTemplate:function(e,t,n,i){var o=Q({},z.Template,this.options.templateSettings),r=this.options.editable.template,a="";return r?(typeof r===q&&(r=z.unescape(r)),a+=z.template(r,o)(e)):a+=i?'<div data-role="content">'+this._buildMobileEditTemplate(e,t,n)+"</div>":this._buildDesktopEditTemplate(e,t,n),a},_createEndTimezoneButton:function(){return"</ul></div>"},_revertTimezones:function(e){e.set("startTimezone",this._startTimezone),e.set("endTimezone",this._endTimezone),delete this._startTimezone,delete this._endTimezone}}),T=S.extend({init:function(){S.fn.init.apply(this,arguments),this.pane=z.Pane.wrap(this.element,{viewEngine:{viewOptions:{renderOnInit:!0,wrap:!1,wrapInSections:!0,detachOnHide:!1,detachOnDestroy:!1}}}),this.pane.element.parent().css("height",this.options.height),this.view=this.pane.view()},options:{animations:{left:"slide",right:"slide:right"}},destroy:function(){this.close(),this.unbind(),this.pane.destroy()},_initTimezoneEditor:function(t){var i,o=this,r=o.pane,a=o.options.messages,s=o.timezoneView,l=s?s.content.find(".k-scheduler-timezones"):o.container.find(".k-scheduler-timezones"),d=l.find("input.k-timezone-toggle").data("kendoSwitch"),c=l.find("li.k-item:not(.k-zonepicker):last"),u=function(e){if("startTimezone"===e.field){var n=t.startTimezone;d.enable(n),n||(c.hide(),t.set("endTimezone",""),d.value(!1))}};o._startTimezone=t.startTimezone||"",o._endTimezone=t.endTimezone||"",s||(i='<div data-role="view" class="k-popup-edit-form k-scheduler-edit-form"><div data-role="header" class="k-header"><a href="\\#" class="k-header-cancel k-scheduler-cancel k-link" title="'+a.cancel+'"aria-label="'+a.cancel+'"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+a.editor.timezoneTitle+'<a href="\\#" class="k-header-done k-scheduler-update k-link" title="'+a.save+'" aria-label="'+a.save+'"><span class="k-icon k-i-check"></span></a></div><div data-role="content"></div>',this.timezoneView=s=r.append(i),s.contentElement.append(l.show()),s.element.on(te+ee,".k-scheduler-cancel, .k-scheduler-update",function(i){var s,l;i.preventDefault(),i.stopPropagation(),e(this).hasClass("k-scheduler-cancel")&&o._revertTimezones(t),s=o._editPane,l=n(t,a.editor.noTimezone),s.content.find(".k-timezone-label").text(l),r.navigate(s,o.options.animations.right)}),d.bind("change",function(e){c.toggle(e.checked),t.set("endTimezone","")}),t.bind("change",u)),d.value(!!t.endTimezone),d.enable(!!t.startTimezone),t.endTimezone?c.show():c.hide(),r.navigate(s,o.options.animations.left)},showDialog:function(t){var n=t.buttons.map(function(e){return{text:e.text,action:e.click}});n.push({text:this.options.messages.cancel,primary:!0}),e("<div />").appendTo(document.body).kendoDialog({close:function(){this.destroy()},modal:{preventScroll:!0},closable:!1,title:!1,content:t.text,actions:n})},editEvent:function(t){var n,i,o,r,a,s,l,d=this.pane,c="",u=this.options.messages,h=u.save,p=u.destroy,f=u.cancel,m=u.editor.editorTitle,g=u.resetSeries;return c+='<div data-role="view" class="k-popup-edit-form k-scheduler-edit-form"'+z.attr("uid")+'="'+t.uid+'"><div data-role="header" class="k-header"><a href="\\#" class="k-header-cancel k-scheduler-cancel k-link" title="'+f+'"aria-label="'+f+'"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+m+'<a href="\\#" class="k-header-done k-scheduler-update k-link" title="'+h+'" aria-label="'+h+'"><span class="k-icon k-i-check"></span></a></div>',n=this.fields(C.mobile,t),i=this,o=[],c+=this._buildEditTemplate(t,n,o,!0),c+="</div>",r=d.append(c),!t.isNew()&&this.options.editable&&this.options.editable.destroy!==!1&&t.isRecurrenceHead()&&t.recurrenceException&&(a='<ul class="k-edit-buttons k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><span class="k-scheduler-resetSeries k-link k-label" aria-label="'+g+'">'+g+"</span></li></ul>",r.contentElement.append(a)),!t.isNew()&&this.options.editable&&this.options.editable.destroy!==!1&&(s='<ul class="k-edit-buttons k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><span class="k-scheduler-delete k-link k-label" aria-label="'+p+'">'+p+"</span></li></ul>",r.contentElement.append(s)),this._editPane=r,l=this.container=r.element,this.editable=l.kendoEditable({fields:o,model:t,clearContainer:!1,target:i.options.target,validateOnBlur:!0}).data("kendoEditable"),this.trigger("edit",{container:l,model:t})?this.trigger("cancel",{container:l,model:t}):(l.on(te+ee,"a.k-scheduler-edit, a.k-scheduler-cancel, a.k-scheduler-update, span.k-scheduler-delete, span.k-scheduler-resetSeries",function(n){var o,r;n.preventDefault(),n.stopPropagation(),o=e(this),o.hasClass("k-scheduler-edit")?d.navigate(this._editPane,i.options.animations.right):(r="cancel",o.hasClass("k-scheduler-update")?r="save":o.hasClass("k-scheduler-delete")?r="remove":o.hasClass("k-scheduler-resetSeries")&&(r=he),i.trigger(r,{container:l,model:t}))}),d.navigate(r,i.options.animations.left),t.bind("change",i.toggleDateValidationHandler)),this.editable},_views:function(){return this.pane.element.find(z.roleSelector("view")).not(this.view.element)},close:function(){var e,t,n,i;if(this.container){for(this.pane.navigate("",this.options.animations.right),e=this._views(),n=0,i=e.length;n<i;n++)t=e.eq(n).data("kendoView"),t&&t.purge();e.remove(),this.container=null,this.editable&&(this.editable.options.model.unbind("change",this.toggleDateValidationHandler),this.editable.destroy(),this.editable=null),this.timezoneView=null}}}),D=S.extend({destroy:function(){this.close(),this.unbind()},editEvent:function(t){var n,i,o,r=this,a=r.options.editable,s="<div "+z.attr("uid")+'="'+t.uid+'" class="k-popup-edit-form k-scheduler-edit-form"><div class="k-edit-form-container">',l=r.options.messages,d=l.save,c=l.cancel,u=l.destroy,h=l.resetSeries,p=this.fields(C.desktop,t),f=[];return s+=this._buildEditTemplate(t,p,f,!1),i=Y(a)?a.window:{},s+='<div class="k-edit-buttons k-state-default">',s+=this.createButton({name:"update",text:d,attr:n})+this.createButton({name:"canceledit",text:c,attr:n}),!t.isNew()&&a.destroy!==!1&&t.isRecurrenceHead()&&t.recurrenceException&&(s+=this.createButton({name:"resetSeries",text:h,attr:n})),t.isNew()&&!t.isRecurring()||a.destroy===!1||(s+=this.createButton({name:"delete",text:u,attr:n})),s+="</div></div></div>",o=this.container=e(s).appendTo(r.element).eq(0).kendoWindow(Q({modal:!0,resizable:!1,draggable:!0,title:l.editor.editorTitle,visible:!1,close:function(e){e.userTriggered&&r.trigger(ce,{container:o,model:t})&&e.preventDefault()}},i)),r.editable=o.kendoEditable({fields:f,model:t,clearContainer:!1,validateOnBlur:!0,target:r.options.target}).data("kendoEditable"),r.trigger(me,{container:o,model:t})?r.trigger(ce,{container:o,model:t}):(o.data("kendoWindow").center().open(),o.on(te+ee,"button.k-scheduler-cancel",function(e){e.preventDefault(),e.stopPropagation(),r.trigger(ce,{container:o,model:t})}),o.on(te+ee,"button.k-scheduler-update",function(e){e.preventDefault(),e.stopPropagation(),r.trigger("save",{container:o,model:t})}),o.on(te+ee,"button.k-scheduler-delete",function(e){e.preventDefault(),e.stopPropagation(),r.trigger(ue,{container:o,model:t})}),o.on(te+ee,"button.k-scheduler-resetSeries",function(e){e.preventDefault(),e.stopPropagation(),r.trigger(he,{container:o,model:t})}),z.cycleForm(o),t.bind("change",r.toggleDateValidationHandler)),r.editable},close:function(){var e=this,t=function(){e.editable&&(e.editable.options.model.unbind("change",e.toggleDateValidationHandler),e.editable.destroy(),e.editable=null,e.container=null),e.popup&&(e.popup.destroy(),e.popup=null)};e.editable?(e._timezonePopup&&e._timezonePopup.data("kendoWindow")&&(e._timezonePopup.data("kendoWindow").destroy(),e._timezonePopup=null),e.container.is(":visible")?e.container.data("kendoWindow").bind("deactivate",t).close():t()):t()},_createEndTimezoneButton:function(){var e=this.options.messages,t="";return t+='<div class="k-edit-buttons k-state-default">',t+=this.createButton({name:"savetimezone",text:e.save})+this.createButton({name:"canceltimezone",text:e.cancel}),t+="</div></div></div>"},showDialog:function(t){var n,i,o,r=z.format("<div class='k-popup-edit-form'><div class='k-edit-form-container'><p class='k-popup-message'>{0}</p>",t.text);for(r+='<div class="k-edit-buttons k-state-default">',n=0;n<t.buttons.length;n++)r+=this.createButton(t.buttons[n]);r+="</div></div></div>",i=this.element,this.popup&&this.popup.destroy(),o=this.popup=e(r).appendTo(i).eq(0).on(te,".k-button",function(n){n.preventDefault(),o.close();var i=e(n.currentTarget).index();t.buttons[i].click()}).kendoWindow({modal:!0,resizable:!1,draggable:!1,title:t.title,visible:!1,close:function(){this.destroy(),i.focus()}}).getKendoWindow(),o.center().open()},_initTimezoneEditor:function(e,t){var n,i=this,o=i.container.find(".k-scheduler-timezones"),r=o.find("input.k-timezone-toggle"),a=o.find(".k-edit-label:last").add(o.find(".k-edit-field:last")),s=o.find(".k-scheduler-savetimezone"),l=o.find(".k-scheduler-canceltimezone"),d=i._timezonePopup,c=function(t){if("startTimezone"===t.field){var n=e.startTimezone;r.prop("disabled",!n),n||(a.hide(),e.set("endTimezone",""),r.prop("checked",!1))}};i._startTimezone=e.startTimezone,i._endTimezone=e.endTimezone,d||(i._timezonePopup=d=o.kendoWindow({modal:!0,resizable:!1,draggable:!0,title:i.options.messages.editor.timezoneEditorTitle,visible:!1,close:function(n){e.unbind("change",c),n.userTriggered&&i._revertTimezones(e),t&&t.focus()}}),r.click(function(){a.toggle(r.prop("checked")),e.set("endTimezone","")}),s.click(function(e){e.preventDefault(),n.close()}),l.click(function(t){t.preventDefault(),i._revertTimezones(e),n.close()}),e.bind("change",c)),r.prop("checked",e.endTimezone).prop("disabled",!e.startTimezone),e.endTimezone?a.show():a.hide(),n=d.data("kendoWindow"),n.center().open()}}),A=j.extend({init:function(t,n){var i=this;U.fn.init.call(i,t,n),i.options.views&&i.options.views.length||(i.options.views=["day","week"]),i.resources=[],i._initModel(),i._wrapper(),i._views(),i._toolbar(),i._dataSource(),i._resources(),i._resizeHandler=function(){i.resize()},i.wrapper.on(ne+ee+" selectstart"+ee,function(t){e(t.target).is(":kendoFocusable")||t.preventDefault()}),i.options.editable&&i.options.editable.resize!==!1&&i._resizable(),i._movable(),i._bindResize(),i.options.messages&&i.options.messages.recurrence&&(O.options=i.options.messages.recurrence),i._selectable(),i._touchHandlers(),i._ariaId=z.guid(),i._createEditor()},_bindResize:function(){e(window).on("resize"+ee,this._resizeHandler)},_unbindResize:function(){e(window).off("resize"+ee,this._resizeHandler)},dataItems:function(){var n,i,o,r,a,s=this,l=s.items(),d=s._data,c=e.map(l,function(t){return e(t).attr("data-uid")}),u={},h=c.length;for(n=0;n<h;n++)u[c[n]]=null;for(o=d.length,n=0;n<o;n++)r=d[n],u[r.uid]!==t&&(u[r.uid]=r);a=[];for(i in u)a.push(u[i]);return a},_isMobile:function(){var e=this.options;return e.mobile===!0&&z.support.mobileOS||"phone"===e.mobile||"tablet"===e.mobile},_isTouch:function(e){return/touch/.test(e.type)||e.originalEvent&&/touch/.test(e.originalEvent.pointerType)},_isInverseColor:function(e){return e.hasClass(be)},_groupsByResource:function(e,t,n,i,o){var r,a,s,l,d,c,u;if(n||(n=[]),r=e[0]){for(s=r.dataSource.view(),l=0,d=0;d<s.length;d++)c=z.getter(r.dataValueField)(s[d]),u=t+l+d,a=this._groupsByResource(e.slice(1),u,n,c,r.field),a[r.field]=c,l=a.groupIndex,o&&i&&(a[o]=i),1===e.length&&(a.groupIndex=t+d,n.push(a));return a}return{}},data:function(){return this._data},select:function(n){var i,o,r,a,s,l,d,c,u,h,p=this,f=p.view(),m=p._selection,g=f.groups;if(n===t)return r=f._selectedSlots,m?(m&&m.events&&(o=p._selectedEvents()),{start:m.start,end:m.end,events:o,slots:r,resources:f._resourceBySlot(m)}):[];if(!n)return p._selection=null,p._old=null,f.clearSelection(),t;if(e.isArray(n)&&(n={events:n.splice(0)}),n.resources){s=[],l=[],f.groupedResources&&p._groupsByResource(f.groupedResources,0,l);for(a in n.resources)s.push({field:a,operator:"eq",value:n.resources[a]});i=new z.data.Query(l).filter(s).toArray()}return n.events&&n.events.length?(p._selectEvents(n.events,i),p._select(),t):(g&&n.start&&n.end&&(d=H(f._startDate),c=z.date.addDays(H(f._endDate),1),n.start<c&&d<=n.end&&(u=i&&i.length?g[i[0].groupIndex]:g[0],u.timeSlotCollectionCount()||(n.isAllDay=!0),h=u.ranges(n.start,n.end,n.isAllDay,!1),h.length&&(p._selection={start:z.timezone.toLocalDate(h[0].start.start),end:z.timezone.toLocalDate(h[h.length-1].end.end),groupIndex:h[0].start.groupIndex,index:h[0].start.index,isAllDay:h[0].start.isDaySlot,events:[]},p._select()))),t)},_selectEvents:function(e,t){var n,i,o,r,a,s,l,d,c=this,u=c.view(),h=u.groups,p=e.length,f=t&&t.length;for(n=0;n<p;n++)if(h&&f){for(i=h[t[0].groupIndex],o=[],r=i.timeSlotCollectionCount(),a=i.daySlotCollectionCount(),s=0;s<r;s++)o=o.concat(i.getTimeSlotCollection(s).events());for(l=0;l<a;l++)o=o.concat(i.getDaySlotCollection(l).events());o=new z.data.Query(o).filter({field:"element[0].getAttribute('data-uid')",operator:"eq",value:e[n]}).toArray(),o[0]&&c._createSelection(o[0].element)}else d=u.element.find(z.format(".k-event[data-uid={0}], .k-task[data-uid={0}]",e[n])),d.length&&c._createSelection(d[0])},_touchHandlers:function(){var t,n,i,o,r,a=this,s=a.wrapper,l=e.proxy(a._touchMove,a);s.on(ie+ee,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",function(e){var i=a.wrapper.find(".k-scheduler-content");a._isTouch(e)&&(i.stop(!0,!1),a._touchPosX=t=a._tapPosition(e,"X"),a._touchPosY=n=a._tapPosition(e,"Y"),a._userTouched=!0,a.view()._scrolling=!1,r=Date.now(),s.on(oe+ee,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",l))}),s.on(re+ee,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",function(e){var d,c,u;a._isTouch(e)&&(d=Date.now()-r,c=a.wrapper.find(".k-scheduler-content"),u=-a._amplitude*(3e3/d),i=a._tapPosition(e,"X"),o=a._tapPosition(e,"Y"),a._dragging||(a.options.selectable&&(Math.abs(i-t)<=10||Math.abs(o-n)<=10)&&a._mouseDownSelection(e),!z.support.kineticScrollNeeded&&d<200&&Math.abs(i-t)>10&&c.animate({scrollTop:c[0].scrollTop+u}),s.off(oe+ee,".k-scheduler-header-all-day td, .k-scheduler-content td",l)))})},_selectable:function(){var t,n=this,i=n.wrapper;n.options.selectable&&(n._tabindex(),i.on(ne+ee,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",function(e){n._isTouch(e)||n._mouseDownSelection(e)}),t=e.proxy(n._mouseMove,n),i.on(ne+ee,".k-scheduler-header-all-day td, .k-scheduler-content td",function(e){var o=e.which,r=e.button,a=o&&3===o||r&&2==r;n._isTouch(e)||a||i.on(ae+ee,".k-scheduler-header-all-day td, .k-scheduler-content td",t)}),i.on("mouseup"+ee+" mousecancel"+ee,function(){i.off(ae+ee,".k-scheduler-header-all-day td, .k-scheduler-content td",t)}),i.on("focus"+ee,function(){n._selection||n._userTouched||n._selectFirstSlot(),n._select()}),i.on("focusout"+ee,function(t){n._ctrlKey=n._shiftKey=!1,e(t.relatedTarget).closest(_e).length||n.toolbar.find(_e).removeClass(ve)}),i.on("keydown"+ee,X(n._keydown,n)),i.on("keyup"+ee,function(e){n._ctrlKey=e.ctrlKey,n._shiftKey=e.shiftKey}))},_mouseDownSelection:function(e){var t=e.which,n=e.button,i=t&&3===t||n&&2==n;i||(e.ctrlKey&&(this._ctrlKey=e.ctrlKey),e.shiftKey&&(this._shiftKey=e.shiftKey),this._createSelection(e.currentTarget)),z._activeElement()!==this.wrapper.get(0)?z.focusElement(this.wrapper):this._select(),this.toolbar&&this.toolbar.find("."+ge).removeClass(ge)},_selectFirstSlot:function(){this._createSelection(this.wrapper.find(".k-scheduler-content").find("td:first"))},_select:function(){var t,n,i,o,r,a=this,s=a.view(),l=a.wrapper,d=s.current(),c=a._selection,u=a._old?a._old.selection:null,h=a._old?a._old.eventsLength:null;if(c&&(d&&(d.removeAttribute("id"),d.removeAttribute("aria-label"),l.removeAttr("aria-activedescendant")),s.select(c),d=s.current(),d&&(u!==d||c.events&&h!==c.events.length))){if(t=e(d).data("uid"),a._old&&t&&t===e(a._old.selection).data("uid")&&c.events&&a._old.eventsLength===c.events.length)return;i=c,o=a._selectedEvents(),r=s._selectedSlots,o[0]?(i=o[0]||c,n=z.format(a.options.messages.ariaEventLabel,i.title,i.start,i.start)):n=z.format(a.options.messages.ariaSlotLabel,i.start,i.end),d.setAttribute("id",a._ariaId),d.setAttribute("aria-label",n),l.attr("aria-activedescendant",a._ariaId),a._old={selection:d,eventsLength:o.length},a.trigger("change",{start:c.start,end:c.end,events:o,slots:r,resources:s._resourceBySlot(c)})}},_selectedEvents:function(){for(var e,t=this._selection.events,n=t.length,i=0,o=[];i<n;i++)e=this.occurrenceByUid(t[i]),e&&o.push(e);return o},_tapPosition:function(e,t){return/touch/.test(e.type)?(e.originalEvent||e).changedTouches[0]["page"+t]:e["page"+t]},_touchMove:function(e){var t=this,n=t.wrapper.find(".k-scheduler-content"),i=n[0].scrollHeight>n[0].clientHeight,o=n[0].scrollWidth>n[0].clientWidth,r=t._tapPosition(e,"Y"),a=t._tapPosition(e,"X"),s=n[0].scrollTop-Math.round(r-t._touchPosY),l=n[0].scrollLeft-Math.round(a-t._touchPosX),d=i&&Math.abs(r-t._touchPosY)>10,c=o&&Math.abs(r-t._touchPosY)>10;t._dragging||z.support.kineticScrollNeeded||!t._isTouch(e)||(d||c)&&(t._amplitude=Math.round(r-t._touchPosY),t._touchPosY=r,t._touchPosX=a,n.animate({scrollTop:s,scrollLeft:l},0),t.view()._scrolling=!0)},_mouseMove:function(t){var n=this;clearTimeout(n._moveTimer),n._isTouch(t)||(n._moveTimer=setTimeout(function(){var i,o,r,a=n.view(),s=n._selection;s&&(i=a.selectionByElement(e(t.currentTarget)),i&&s.groupIndex===i.groupIndex&&(o=i.startDate(),r=i.endDate(),o>=s.end?s.backward=!1:r<=s.start&&(s.backward=!0),s.backward?s.start=o:s.end=r,n._select()))},5))},_viewByIndex:function(e){var t,n=this.views;for(t in n){if(!e)return t;e--}},_keydown:function(n){var i,o,r,a,s,l=this,d=n.keyCode,c=l.view(),u=c.options.editable,h=l._selection,p=e.extend(h),f=16===d||18===d||17===d||91===d||92===d,m="> .k-button,.k-scheduler-navigation > .k-button,.k-nav-current,.k-views-dropdown:visible,.k-scheduler-views > .k-button",g=l.toolbar.find(m),v=l.toolbar.find(_e),_=e(n.target).closest(_e).length||l.toolbar.find(".k-scheduler-views .k-state-focused").length,b=v.children().index(l.toolbar.find("."+ge)),w=z.support.isRtl(l.element),k=e(n.target).is(".k-views-dropdown"),y=w?-1:1;if(b==-1&&(b=v.children().index(l.toolbar.find(".k-state-selected"))),l._ctrlKey=n.ctrlKey,l._shiftKey=n.shiftKey,d===V.F10)return l.toolbar.find(".k-button:first").focus().addClass(ge),n.preventDefault(),t;if(d===V.TAB){if(l.toolbar.find("."+ge).length)return i=g.index(l.toolbar.find("."+ge)),o=n.shiftKey?g[i-1]:g[i+1],l.toolbar.find("."+ge).removeClass(ge),o?(e(o).addClass(ge).focus(),l._focusedView=null,n.preventDefault(),t):(l.element.focus(),n.preventDefault(),t)}else if(d===V.ENTER||d===V.SPACEBAR){if(_&&l._focusedView&&!l._focusedView.hasClass("k-state-selected"))return r=l._focusedView.data().name,l.trigger("navigate",{
view:r,action:"changeView",date:l.date()})||l.view(r),n.preventDefault(),t;if(l.toolbar.find("."+ge+":visible").length)return l.toolbar.find("."+ge+":visible").click(),n.preventDefault(),t}else if(n.altKey&&d===V.DOWN&&!k){if(l.toolbar.find("."+ge+":visible").length)return l.toolbar.find("."+ge+":visible").click(),n.preventDefault(),t}else{if(d===V.RIGHT&&_)return e(l.toolbar.find("."+ge)).removeClass(ge),l._focusedView=e(w?b-1===0?v.children(":last"):v.children()[b+1*y]:b+1===v.children().length?v.children(":first"):v.children()[b+1*y]),l._focusedView.focus().addClass(ge),n.preventDefault(),t;if(d===V.LEFT&&_)return e(l.toolbar.find("."+ge)).removeClass(ge),l._focusedView=e(w?b+1===v.children().length?v.children(":first"):v.children()[b-1*y]:b-1<0?v.children(":last"):v.children()[b-1*y]),l._focusedView.focus().addClass(ge),n.preventDefault(),t;if(n.altKey&&d===V.DOWN&&l.toolbar.find(".k-nav-current").hasClass(ge))return l._showCalendar(),n.preventDefault(),t;if(n.altKey&&d===V.DOWN&&k)return;if(d===V.ESC&&l.popup&&l.popup.visible())return l.popup.close(),n.preventDefault(),t}if(!f){if(!h)return l._selectFirstSlot(),l._select(),l.element.focus(),t;d===V.TAB?c.moveToEvent(h,n.shiftKey)&&(l._select(),document.activeElement.getAttribute("id")!==l.element.attr("id")&&l.element.focus(),n.preventDefault()):d===V.ENTER||d===V.SPACEBAR?h.events.length&&u?u.update!==!1&&l.editEvent(h.events[0]):u&&u.create!==!1&&(h.isAllDay&&(h=e.extend({},h,{end:z.date.addDays(h.end,-1)})),n.preventDefault(),l.addEvent(Q({},h,c._resourceBySlot(h)))):d===V.DELETE&&u!==!1&&u.destroy!==!1?l.removeEvent(h.events[0]):d>=49&&d<=57?(a=l._viewByIndex(d-49),a&&!l.trigger("navigate",{view:a,action:"changeView",date:l.date()})&&l.view(a)):c.move(h,d,n.shiftKey)&&(c.inRange(h)?(l._select(),e(document.activeElement).blur(),l.toolbar.find("."+ge).removeClass(ge),l.wrapper.focus()):(s=l.date().getTime()>h.start.getTime()?"previous":"next",l.trigger("navigate",{view:l._selectedViewName,action:s,date:h.start})?(h.start=p.start,h.end=p.end):l.date(h.start)),n.preventDefault()),l._adjustSelectedDate()}},_createSelection:function(t){var n,i,o=this._selection;t=e(t),t.is(".k-event")&&(n=t.attr(z.attr("uid")),o&&o.events.indexOf(n)!==-1&&!this._ctrlKey)||(o&&(this._ctrlKey||this._shiftKey)||(o=this._selection={events:[],groupIndex:0}),i=this.view().selectionByElement(t),i&&(o.groupIndex=i.groupIndex||0),n&&(i=d(this._data,n)),i&&i.uid&&(n=[i.uid]),this._updateSelection(i,n),this._adjustSelectedDate())},_updateSelection:function(e,n,i){var o,r,a,s=this._selection;e&&s&&(o=this.view(),e.uid&&(e=o._updateEventForSelection(e)),this._shiftKey&&s.start&&s.end?(r=e.end<s.end,s.end=e.endDate?e.endDate():e.end,r&&o._timeSlotInterval&&z.date.setTime(s.end,-o._timeSlotInterval())):(s.start=e.startDate?e.startDate():e.start,s.end=e.endDate?e.endDate():e.end),s.isAllDay="isDaySlot"in e?e.isDaySlot:e.isAllDay,null!==i&&i!==t&&(s.groupIndex=i),s.index=e.index,this._ctrlKey?(a=n&&n.length?s.events.indexOf(n[0]):-1,a>-1?s.events.splice(a,1):s.events=s.events.concat(n||[])):s.events=n||[])},options:{name:"Scheduler",date:ke,editable:!0,autoBind:!0,snap:!0,mobile:!1,timezone:"",allDaySlot:!0,min:new Date(1900,0,1),max:new Date(2099,11,31),toolbar:null,workWeekStart:1,workWeekEnd:5,workDays:null,showWorkHours:!1,startTime:ke,endTime:ke,currentTimeMarker:{updateInterval:1e4,useLocalTimezone:!0},footer:{},messages:{today:"Today",pdf:"Export to PDF",save:"Save",cancel:"Cancel",destroy:"Delete",resetSeries:"Reset Series",deleteWindowTitle:"Delete event",next:"Next",previous:"Previous",ariaSlotLabel:"Selected from {0:t} to {1:t}",ariaEventLabel:"{0} on {1:D} at {2:t}",views:{day:"Day",week:"Week",workWeek:"Work Week",agenda:"Agenda",month:"Month",timeline:"Timeline",timelineWeek:"Timeline Week",timelineWorkWeek:"Timeline Work Week",timelineMonth:"Timeline Month"},recurrenceMessages:{deleteWindowTitle:"Delete Recurring Item",resetSeriesWindowTitle:"Reset Series",deleteWindowOccurrence:"Delete current occurrence",deleteWindowSeries:"Delete the series",editWindowTitle:"Edit Recurring Item",editWindowOccurrence:"Edit current occurrence",editWindowSeries:"Edit the series"},editable:{confirmation:Se},editor:{title:"Title",start:"Start",end:"End",allDayEvent:"All day event",description:"Description",repeat:"Repeat",timezone:"Timezone",startTimezone:"Start timezone",endTimezone:"End timezone",separateTimezones:"Use separate start and end time zones",timezoneEditorTitle:"Timezones",timezoneEditorButton:"Time zone",timezoneTitle:"Time zones",noTimezone:"No timezone",editorTitle:"Event"}},height:null,width:null,resources:[],group:{resources:[],orientation:"horizontal"},views:[],selectable:!1},events:[ue,me,ce,pe,"add","dataBinding","dataBound","moveStart","move","moveEnd","resizeStart","resize","resizeEnd","navigate","change"],destroy:function(){var t,n,i,o=this;if(U.fn.destroy.call(o),o.dataSource&&(o.dataSource.unbind(se,o._refreshHandler),o.dataSource.unbind(le,o._progressHandler),o.dataSource.unbind(de,o._errorHandler)),o._resourceRefreshHandler)for(n=0;n<o.resources.length;n++)i=o.resources[n].dataSource,i.unbind(se,o._resourceRefreshHandler),i.unbind(le,o._resourceProgressHandler),i.unbind(de,o._resourceErrorHandler);o.calendar&&(o.calendar.destroy(),o.popup.destroy()),o.view()&&o.view().destroy(),o._editor&&o._editor.destroy(),this._moveDraggable&&this._moveDraggable.destroy(),this._resizeDraggable&&this._resizeDraggable.destroy(),t=o.element.add(o.wrapper).add(o.toolbar).add(o.popup),t.off(ee),clearTimeout(o._moveTimer),o._model=null,o.toolbar=null,o.element=null,e(window).off("resize"+ee,o._resizeHandler),z.destroy(o.wrapper)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&e.fetch?e.fetch():J(e)&&this.view(this._selectedView)},items:function(){var e=this.wrapper.find(".k-scheduler-content"),t=this.view();return t&&"agenda"===t.options.name?e.find(".k-task"):e.find(".k-event").add(this.wrapper.find(".k-scheduler-header-wrap").find(".k-scheduler-header-all-day").siblings())},_movable:function(){var n,i,o,r,a,s,l,d,c,u,h=this,p=0,f=[],m=[],g=h._isMobile(),v=h.options.editable&&h.options.editable.move!==!1,_=h.options.editable&&h.options.editable.resize!==!1;(v||_&&g)&&(h._dragging=!1,g&&z.support.mobileOS.android&&(p=5),h._moveDraggable=new z.ui.Draggable(h.element,{distance:p,filter:".k-event",ignore:".k-resize-handle",holdToDrag:g,autoScroll:!0}),v&&h._moveDraggable.bind("dragstart",function(e){var a,p,m,g,v=h.view(),_=e.currentTarget,b=h._isTouch(e);if(h._dragging=!0,!v.options.editable||v.options.editable.move===!1)return h._dragging=!1,e.preventDefault(),t;if(b&&!_.hasClass("k-event-active"))return h._dragging=!1,h.element.find(".k-event-active").removeClass("k-event-active"),e.preventDefault(),t;if(s=h.occurrenceByUid(_.attr(z.attr("uid"))),l=s.clone(),u=s.clone(),l.update(v._eventOptionsForMove(l)),l.inverseColor=h._isInverseColor(_),f=[],h._selection)for(a=h._selection.events,p=0;p<a.length;p++)m=h.occurrenceByUid(a[p]).clone(),g=this.element.find('div.k-event[data-uid="'+m.uid+'"]').eq(0),m.update(v._eventOptionsForMove(m)),g.length&&(m.inverseColor=h._isInverseColor(g)),f.push(m);else f.push(l);n=v._slotByPosition(e.x.startLocation,e.y.startLocation),o=v._resourceBySlot(n),c=r=n.startOffset(e.x.startLocation,e.y.startLocation,h.options.snap),i=n,d=n,n&&!h.trigger("moveStart",{event:s})||e.preventDefault()}).bind("drag",function(t){var o,u,p,g,v,_=h.view(),b=_._slotByPosition(t.x.location,t.y.location);if(b){if(a=b.startOffset(t.x.location,t.y.location,h.options.snap),b.isDaySlot!==n.isDaySlot)if(b.isDaySlot!==d.isDaySlot)for(g=e(n.element).index(),v=e(b.element).parent().children().eq(g),n=_._slotByPosition(v.offset().left,v.offset().top),r=n.startOffset(t.x.location,t.y.location,!0),m=f.map(function(e){return e.clone()}),p=0;p<f.length;p++)f[p].isAllDay!=b.isDaySlot&&(f[p].isAllDay=b.isDaySlot,f[p].end=z.date.getDate(f[p].start),f[p].start=z.date.getDate(f[p].start),b.isDaySlot||(z.date.setTime(f[p].start,z.date.getMilliseconds(_.startTime())),z.date.setTime(f[p].end,z.date.getMilliseconds(_.startTime())+_._timeSlotInterval())));else n=e.extend(!0,{},d),r=c,f=m;for(o=a-r,p=0;p<f.length;p++)_._updateMoveHint(f[p],b.groupIndex,o);if(u=y(l,o),h.trigger("move",{event:s,slot:{element:b.element,start:b.startDate(),end:b.endDate(),isDaySlot:b.isDaySlot},resources:_._resourceBySlot(b),start:u.start,end:u.end}))for(p=0;p<f.length;p++)_._updateMoveHint(f[p],b.groupIndex,o);else i=b}}).bind("dragend",function(t){var n,c,u,p,g,v,_,b,w,k;if(h.view()._removeMoveHint(),n=a-r,c=y(l,n),u=c.start,p=c.end,h._dragging=!1,g=h.view()._resourceBySlot(i),v=h.trigger("moveEnd",{event:s,slot:{element:i.element,start:i.startDate(),end:i.endDate()},start:u,end:p,resources:g}),!v&&(s.start.getTime()!==u.getTime()||s.end.getTime()!==p.getTime()||d.isDaySlot!==i.isDaySlot||z.stringify(g)!==z.stringify(o))){for(h._isMultiDrag=f.length>1,_=0;_<f.length;_++)b=f[_],c=y(b,n),w=h.view()._eventOptionsForMove(b),k=e.extend({isAllDay:b.isAllDay,start:c.start,end:c.end},w,g),h._updateEvent(null,b,k);h._isMultiDrag&&(h.dataSource.sync(),h._isMultiDrag=!1)}t.currentTarget.removeClass("k-event-active"),this.cancelHold(),f=[],m=[]}).bind("dragcancel",function(){h.view()._removeMoveHint(),this.cancelHold(),f=[],m=[]}),h._moveDraggable.bind("hold",function(e){h._isTouch(e)&&(h.element.find(".k-event-active").removeClass("k-event-active"),h.options.selectable&&h._createSelection(e.currentTarget),e.currentTarget.addClass("k-event-active"))}))},_resizable:function(){function t(e){var t,n={"k-resize-e":"east","k-resize-w":"west","k-resize-n":"north","k-resize-s":"south"};for(t in n)if(e.hasClass(t))return n[t]}var n,i,o,r,a,s=this,l=0;s._isMobile()&&z.support.mobileOS.android&&(l=5),s._resizeDraggable=new z.ui.Draggable(s.element,{distance:l,filter:".k-resize-handle",autoScroll:!0,dragstart:function(t){var l=e(t.currentTarget),d=l.closest(".k-event"),c=d.attr(z.attr("uid")),u=s.view();s._dragging=!0,o=s.occurrenceByUid(c),r=o.clone(),u._updateEventForResize(r),a=u._slotByPosition(t.x.startLocation,t.y.startLocation),s.trigger("resizeStart",{event:o})&&t.preventDefault(),n=z.date.toUtcTime(r.start),i=z.date.toUtcTime(r.end)},drag:function(l){var d,c,u,h,p,f;a&&(d=e(l.currentTarget),c=t(d),u=s.view(),h=u._slotByPosition(l.x.location,l.y.location),h&&a.groupIndex==h.groupIndex&&(a=h,p=n,f=i,"south"==c?!a.isDaySlot&&a.end-z.date.toUtcTime(r.start)>=u._timeSlotInterval()&&(i=r.isAllDay?a.startOffset(l.x.location,l.y.location,s.options.snap):a.endOffset(l.x.location,l.y.location,s.options.snap)):"north"==c?!a.isDaySlot&&z.date.toUtcTime(r.end)-a.start>=u._timeSlotInterval()&&(n=a.startOffset(l.x.location,l.y.location,s.options.snap)):"east"==c?a.isDaySlot&&z.date.toUtcTime(z.date.getDate(a.endDate()))>=z.date.toUtcTime(z.date.getDate(r.start))?i=r.isAllDay?a.startOffset(l.x.location,l.y.location,s.options.snap):a.endOffset(l.x.location,l.y.location,s.options.snap):!a.isDaySlot&&a.end-z.date.toUtcTime(r.start)>=u._timeSlotInterval()&&(i=a.endOffset(l.x.location,l.y.location,s.options.snap)):"west"==c&&(a.isDaySlot&&z.date.toUtcTime(z.date.getDate(r.end))>=z.date.toUtcTime(z.date.getDate(a.startDate()))?n=a.startOffset(l.x.location,l.y.location,s.options.snap):!a.isDaySlot&&z.date.toUtcTime(r.end)-a.start>=u._timeSlotInterval()&&(n=a.startOffset(l.x.location,l.y.location,s.options.snap))),s.trigger("resize",{event:o,slot:{element:a.element,start:a.startDate(),end:a.endDate()},start:z.timezone.toLocalDate(n),end:z.timezone.toLocalDate(i),resources:u._resourceBySlot(a)})?(n=p,i=f):u._updateResizeHint(r,a.groupIndex,n,i)))},dragend:function(l){var d,c=e(l.currentTarget),u=new Date(r.start.getTime()),h=new Date(r.end.getTime()),p=t(c);s._dragging=!1,s.view()._removeResizeHint(),"south"==p?h=z.timezone.toLocalDate(i):"north"==p?u=z.timezone.toLocalDate(n):"east"==p?h=a.isDaySlot?z.date.getDate(z.timezone.toLocalDate(i)):z.timezone.toLocalDate(i):"west"==p&&(a.isDaySlot?(u=new Date(z.timezone.toLocalDate(n)),u.setHours(0),u.setMinutes(0)):u=z.timezone.toLocalDate(n)),d=s.trigger("resizeEnd",{event:o,slot:{element:a.element,start:a.startDate(),end:a.endDate()},start:u,end:h,resources:s.view()._resourceBySlot(a)}),!d&&h.getTime()>=u.getTime()&&(r.start.getTime()==u.getTime()&&r.end.getTime()==h.getTime()||(s.view()._updateEventForResize(o),s._updateEvent(p,o,{start:u,end:h}))),a=null,o=null},dragcancel:function(){s._dragging=!1,s.view()._removeResizeHint(),a=null,o=null}})},_updateEvent:function(e,t,n){var i,o=this,r=function(e,t){try{o._preventRefresh=!0,e.update(n),o._convertDates(e)}finally{o._preventRefresh=!1}o.trigger(pe,{event:e})||(t&&t(),o._isMultiDrag||o.dataSource.sync())},a=function(e){return e.recurrenceRule?o.dataSource.getByUid(e.uid):o.dataSource.get(e.recurrenceId)},s=function(){var i,s,l=a(t);"south"!=e&&"north"!=e||(n.start&&(i=z.date.getDate(l.start),z.date.setTime(i,N(n.start)),n.start=i),n.end&&(s=z.date.getDate(l.end),z.date.setTime(s,N(n.end)),n.end=s)),o.dataSource._removeExceptions(l),r(l)},l=function(){var e=a(t),n=function(){o._convertDates(e),o._selection&&o._selection.events.push(s)},i=e.toOccurrence({start:t.start,end:t.end}),s=i.uid;r(o.dataSource.add(i),n)};t.recurrenceRule||t.isOccurrence()?(i=o.options.messages.recurrenceMessages,o._showRecurringDialog(t,l,s,{title:i.editWindowTitle,text:i.editRecurring?i.editRecurring:De,occurrenceText:i.editWindowOccurrence,seriesText:i.editWindowSeries})):r(o.dataSource.getByUid(t.uid))},_modelForContainer:function(t){return t=e(t).closest("["+z.attr("uid")+"]"),this.dataSource.getByUid(t.attr(z.attr("uid")))},showDialog:function(e){this._editor.showDialog(e)},focus:function(){this.wrapper.focus()},_confirmation:function(e,t,n){var i,o,r,a,s,l=this.options.editable;l===!0||l.confirmation!==!1?(i=this.options.messages,o=i.deleteWindowTitle,r=typeof l.confirmation===q?l.confirmation:i.editable.confirmation,this._isEditorOpened()&&t.isRecurring()&&(a=this.options.messages.recurrenceMessages,o=a.deleteWindowTitle,r=t.isException()||t.isNew()?a.deleteRecurringConfirmation?a.deleteRecurringConfirmation:Ae:a.deleteSeriesConfirmation?a.deleteSeriesConfirmation:Ie,n&&(o=a.resetSeriesWindowTitle,r=a.resetSeriesConfirmation?a.resetSeriesConfirmation:Ee)),s=[{name:"destroy",text:n?i.resetSeries:i.destroy,click:function(){e()}}],this._isMobile()&&z.Pane||s.push({name:"canceledit",text:i.cancel,click:function(){e(!0)}}),this._unbindResize(),this.showDialog({model:t,text:r,title:o,buttons:s}),this._bindResize()):e()},addEvent:function(e){var t,n,i=this._editor.editable,o=this.dataSource;e=e||{},n=this.trigger("add",{event:e}),!n&&(i&&i.end()||!i)&&(this.cancelEvent(),e&&e.toJSON&&(e=e.toJSON()),t=o.add(e),t&&(this.cancelEvent(),this._editEvent(t)))},saveEvent:function(){var e,t,n,i,o,r,a=this,s=a._editor,l=a.dataSource;if(s&&(e=s.editable,t=s.container,n=a._modelForContainer(t),t&&e&&e.end()&&!a.trigger(pe,{container:t,event:n}))){if(!n.isOccurrence()&&n.recurrenceException&&!n.recurrenceRule){for(i=l.data(),o=i.length-1;o>=0;o-=1)r=i[o],r&&r.recurrenceId===n.id&&l.remove(r);n.set("recurrenceException","")}n.dirty||n.isOccurrence()||a._convertDates(n,"remove"),l.sync()}},cancelEvent:function(){var e,t=this._editor,n=t.container;n&&(e=this._modelForContainer(n),e&&e.isOccurrence()&&(this._convertDates(e,"remove"),this._convertDates(this.dataSource.get(e.recurrenceId),"remove")),this.dataSource.cancelChanges(e),t.close())},editEvent:function(e){var t="string"==typeof e?this.occurrenceByUid(e):e;t&&(this.cancelEvent(),t.isRecurring()?this._editRecurringDialog(t):this._editEvent(t))},_editEvent:function(e){this._preventRefresh=!0,this._unbindResize(),this._createPopupEditor(e),this._bindResize()},_editRecurringDialog:function(e){var t=this,n=function(){e.isException()?t._editEvent(e):t.addEvent(e)},i=function(){e.recurrenceId&&(e=t.dataSource.get(e.recurrenceId)),t._editEvent(e)},o=t.options.messages.recurrenceMessages;t._showRecurringDialog(e,n,i,{title:o.editWindowTitle,text:o.editRecurring?o.editRecurring:De,occurrenceText:o.editWindowOccurrence,seriesText:o.editWindowSeries})},_showRecurringDialog:function(e,t,n,i){var o=this.options.editable,r=Y(o)?o.editRecurringMode:"dialog";"occurrence"===r||this._isMultiDrag?t():"series"===r?n():(this._unbindResize(),this.showDialog({model:e,title:i.title,text:i.text,buttons:[{text:i.occurrenceText,click:t},{text:i.seriesText,click:n}]}),this._bindResize())},_createButton:function(e){var t=e.template||Me,n=typeof e===q?e:e.name||e.text,i={className:"k-scheduler-"+(n||"").replace(/\s/g,""),text:n,attr:""};if(!(n||Y(e)&&e.template))throw Error("Custom commands should have name specified");return Y(e)?(e.className&&(e.className+=" "+i.className),"edit"===n&&Y(e.text)&&(e=Q(!0,{},e),e.text=e.text.edit),i=Q(!0,i,x[n],e)):i=Q(!0,i,x[n]),z.template(t)(i)},_convertDates:function(e,t){var n=this.dataSource.reader.timezone,i=e.startTimezone,o=e.endTimezone,r=e.start,a=e.start;t=t||"apply",i=i||o,o=o||i,i&&(n?"apply"===t?(r=z.timezone.convert(e.start,n,i),a=z.timezone.convert(e.end,n,o)):(r=z.timezone.convert(e.start,i,n),a=z.timezone.convert(e.end,o,n)):(r=z.timezone[t](e.start,i),a=z.timezone[t](e.end,o)),e._set("start",r),e._set("end",a))},_createEditor:function(){var e,n=this;e=n._editor=this._isMobile()&&z.Pane?new T(this.wrapper,Q({},this.options,{target:this,timezone:n.dataSource.reader.timezone,resources:n.resources,createButton:X(this._createButton,this)})):new D(this.wrapper,Q({},this.options,{target:this,createButton:X(this._createButton,this),timezone:n.dataSource.reader.timezone,resources:n.resources})),e.bind("cancel",function(e){return n.trigger("cancel",{container:e.container,event:e.model})?(e.preventDefault(),t):(n._preventRefresh=!1,n.cancelEvent(),n._attemptRefresh&&n.refresh(),n.focus(),t)}),e.bind("edit",function(e){n.trigger(me,{container:e.container,event:e.model})&&e.preventDefault()}),e.bind("save",function(){n._preventRefresh=!1,n.saveEvent()}),e.bind("remove",function(e){n._preventRefresh=!1,n.removeEvent(e.model)}),e.bind("resetSeries",function(e){n._confirmation(function(t){n._preventRefresh=!1,t||(n.dataSource._removeExceptions(e.model),n.saveEvent())},e.model,!0)})},_createPopupEditor:function(e){var t=this._editor;e.isNew()&&!e.isOccurrence()||(e.isOccurrence()&&this._convertDates(e.recurrenceId?this.dataSource.get(e.recurrenceId):e),this._convertDates(e)),this.editable=t.editEvent(e)},removeEvent:function(e){var t=this,n="string"==typeof e?t.occurrenceByUid(e):e;n&&(n.isRecurring()?t._deleteRecurringDialog(n):t._confirmation(function(e){e||t._removeEvent(n)},n))},occurrenceByUid:function(e){var t=this.dataSource.getByUid(e);return t||(t=d(this._data,e)),t},occurrencesInRange:function(e,t){return new z.data.Query(this._data).filter({logic:"or",filters:[{logic:"and",filters:[{field:"start",operator:"gte",value:e},{field:"end",operator:"gte",value:e},{field:"start",operator:"lt",value:t}]},{logic:"and",filters:[{field:"start",operator:"lte",value:e},{field:"end",operator:"gt",value:e}]}]}).toArray()},_removeEvent:function(e){this.trigger(ue,{event:e})||this.dataSource.remove(e)&&this.dataSource.sync()},_deleteRecurringDialog:function(e){var t,n,i,o,r,a,s,l=this,d=e,c=l.options.editable,u=Y(c)?c.editRecurringMode:"dialog",h=function(){var e=d.recurrenceId?d:d.toOccurrence(),t=l.dataSource.get(e.recurrenceId);l._convertDates(t),l._removeEvent(e)},p=function(){d.recurrenceId&&(d=l.dataSource.get(d.recurrenceId)),l._removeEvent(d)},f=function(){l.dataSource.remove(d),l.dataSource.sync()};("dialog"!=u||l._isEditorOpened())&&(t=function(){l._confirmation(function(e){e||h()},d)},n=function(){l._confirmation(function(e){e||p()},d)},i=function(){l._confirmation(function(e){e||f()},d)}),o=n||p,r=t||h,a=i||f,l._isEditorOpened()?e.isException()?r():e.isNew()?a():o():(s=l.options.messages.recurrenceMessages,l._showRecurringDialog(e,r,o,{title:s.deleteWindowTitle,text:s.deleteRecurring?s.deleteRecurring:Te,occurrenceText:s.deleteWindowOccurrence,seriesText:s.deleteWindowSeries}))},_isEditorOpened:function(){return!!this._editor.container},_unbindView:function(e){var t=this;t.angular("cleanup",function(){return{elements:t.items()}}),e.destroy()},_bindView:function(e){var t=this;t.options.editable&&(t._viewRemoveHandler&&e.unbind(ue,t._viewRemoveHandler),t._viewRemoveHandler=function(e){t.removeEvent(e.uid)},e.bind(ue,t._viewRemoveHandler),t._viewAddHandler&&e.unbind(fe,t._viewAddHandler),t._viewAddHandler=function(e){t.addEvent(e.eventInfo)},e.bind(fe,this._viewAddHandler),t._viewEditHandler&&e.unbind(me,t._viewEditHandler),t._viewEditHandler=function(e){t.editEvent(e.uid)},e.bind(me,this._viewEditHandler)),t._viewNavigateHandler&&e.unbind("navigate",t._viewNavigateHandler),t._viewNavigateHandler=function(e){var n,i;e.view&&(n="isWorkDay"in e,i=n?"changeWorkDay":"changeView",t.trigger("navigate",{view:e.view,isWorkDay:e.isWorkDay,action:i,date:e.date})||(n&&(t._workDayMode=e.isWorkDay),t._selectView(e.view),t.date(e.date)))},e.bind("navigate",t._viewNavigateHandler),t._viewActivateHandler&&e.unbind("activate",t._viewActivateHandler),t._viewActivateHandler=function(){var e=this;t._selection&&(e.constrainSelection(t._selection),t._select(),t._adjustSelectedDate())},e.bind("activate",t._viewActivateHandler)},_selectView:function(e){var t,n,i,o=this;e&&o.views[e]&&(o._selectedView&&o._unbindView(o._selectedView),o._selectedView=o._renderView(e),o._selectedViewName=e,o._viewsCount>1&&!o._isMobile()?(t=o.toolbar.find(".k-views-dropdown"),n=o.toolbar.find(".k-scheduler-views > .k-button"),0===o.toolbar.find(".k-views-dropdown").length&&(o.toolbar.find(".k-scheduler-views-wrapper").prepend(Re({views:o.views,view:e,ns:z.ns})),t=o.toolbar.find(".k-views-dropdown")),t.val(e),n.removeClass("k-state-selected"),n.filter(".k-view-"+e.replace(/\./g,"\\.").toLowerCase()).addClass("k-state-selected")):(i=o.toolbar.find(".k-scheduler-mobile-views"),i.find("[value="+e.replace(/\./g,"\\.")+"]").prop("selected","selected")))},view:function(e){var n=this;return e?(n._selectView(e),n.rebind(),t):n._selectedView},viewName:function(){return this.view().name},_renderView:function(e){var t=this._initializeView(e);return this._bindView(t),(z.support.mouseAndTouchPresent||z.support.pointers)&&(t.content.css("-ms-touch-action","pinch-zoom"),t.content.css("touch-action","pinch-zoom")),this._model.set("formattedDate",t.dateForTitle()),this._model.set("formattedShortDate",t.shortDateForTitle()),this._model.set("formattedMobileDate",t.mobileDateForTitle?t.mobileDateForTitle():t.shortDateForTitle()),this._model.set("formattedYear",z.format("{0:yyyy}",t.startDate())),t},resize:function(e){var t=this.getSize(),n=this._size,i=this.view();i&&i.groups&&(!e&&n&&t.width===n.width&&t.height===n.height||(this.refresh({action:"resize"}),this._size=t))},_adjustSelectedDate:function(){var e=this._model.selectedDate,t=this._selection,n=t.start;n&&!z.date.isInDateRange(e,H(n),H(t.end))&&e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate())},_initializeView:function(e){var t,n,i,o=this.views[e];if(o){if(t=Y(o),n={},i=o.type,typeof i===q&&(i=z.getter(o.type)(window)),t&&o.workDays&&o.workDays.length&&(n.workDays=o.workDays),!i)throw Error("There is no such view");o=new i(this.wrapper,m(Q(!0,{},this.options,t?o:{},{resources:this.resources,date:this.date(),startTime:z.parseDate(o.startTime)||z.parseDate(this.options.startTime),endTime:z.parseDate(o.endTime)||z.parseDate(this.options.endTime),showWorkHours:this._workDayMode}),n))}return o},_views:function(){var e,t,n,i,o,r,a,s,l,d=this.options.views;for(this.views={},this._viewsCount=0,a=0,s=d.length;a<s;a++)l=!1,e=d[a],i=Y(e),i?(r=o=e.type?e.type:e,typeof r!==q&&(o=e.name||e.title,l=!0)):r=o=e,t=E[o],t&&!l&&(e.type=t.type,t.title=this.options.messages.views[o],"day"===t.type?t.messages={allDay:this.options.messages.allDay}:"agenda"===t.type&&(t.messages={event:this.options.messages.event,date:this.options.messages.date,time:this.options.messages.time})),e=Q({title:o},t,i?e:{}),o&&(this.views[o]=e,this._viewsCount++,n&&!e.selected||(n=o));n&&(this._selectedViewName=n)},rebind:function(){var n=this,i=n.resources,o=[];return n._preventRebind?(n._preventRebind=!1,t):(n.options.autoBind===!1&&i&&i.length>0?(i.forEach(function(e){0===e.dataSource.data().length&&(n._preventRebind=!0,o.push(e.dataSource.fetch()))}),e.when.apply(null,o).then(function(){n.dataSource.fetch(),n._preventRebind=!1})):n.dataSource.fetch(),t)},_dataSource:function(){var e=this,t=e.options,n=t.dataSource;n=J(n)?{data:n}:n,!t.timezone||n instanceof Ge?n instanceof Ge&&(t.timezone=n.options.schema?n.options.schema.timezone:""):n=Q(!0,n,{schema:{timezone:t.timezone}}),e.dataSource&&e._refreshHandler?e.dataSource.unbind(se,e._refreshHandler).unbind(le,e._progressHandler).unbind(de,e._errorHandler):(e._refreshHandler=X(e.refresh,e),e._progressHandler=X(e._requestStart,e),e._errorHandler=X(e._error,e)),e.dataSource=z.data.SchedulerDataSource.create(n).bind(se,e._refreshHandler).bind(le,e._progressHandler).bind(de,e._errorHandler),e.options.dataSource=e.dataSource},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_progress:function(e){var t=this.element.find(".k-scheduler-content");z.ui.progress(t,e)},_resources:function(){var t,n,i,o,r,a=this,s=a.options.resources,l=[];for(t=0;t<s.length;t++){if(n=s[t],i=n.field,o=n.name||i,r=n.dataSource,!i||!r)throw Error('The "field" and "dataSource" options of the scheduler resource are mandatory.');a.resources.push({field:i,name:o,title:n.title||i,dataTextField:n.dataTextField||"text",dataValueField:n.dataValueField||"value",dataColorField:n.dataColorField||"color",valuePrimitive:null==n.valuePrimitive||n.valuePrimitive,multiple:n.multiple||!1,dataSource:a._resourceDataSource(r,o,l)})}a.options.autoBind?e.when.apply(null,l).then(function(){a.view(a._selectedViewName)}):a._selectView(a._selectedViewName)},_resourceDataSource:function(e,t,n){var i=this,o=J(e)?{data:e}:e,r=z.data.DataSource.create(o);return i.options.autoBind?n.push(r.fetch(function(){i._bindResourceEvents(this,t)})):i._bindResourceEvents(r,t),r},_bindResourceEvents:function(e,t){var n=this,i=n.options.group&&n.options.group.resources.length,o=i&&n.options.group.resources.indexOf(t)>-1;!n._resourceRefreshHandler&&o&&(n._resourceRefreshHandler=X(n._refreshResource,n),n._resourceErrorHandler=X(n._error,n)),o&&e.bind(se,n._resourceRefreshHandler).bind(de,n._resourceErrorHandler)},_refreshResource:function(){var e=this,t=e._editor&&e._editor.editable||e._preventRefresh;t||e.view(e._selectedViewName)},_initModel:function(){var e=this;e._model=z.observable({selectedDate:new Date(this.options.date),formattedDate:"",formattedShortDate:""}),e._model.bind("change",function(t){"selectedDate"===t.field&&e.view(e._selectedViewName)})},_wrapper:function(){var e=this,t=e.options,n=t.height,i=t.width;e.wrapper=e.element.addClass("k-widget k-scheduler k-floatwrap").attr("role","grid").attr("aria-multiselectable",!0),e._isMobile()&&e.wrapper.addClass("k-scheduler-mobile"),n&&e.wrapper.height(n),i&&e.wrapper.width(i)},date:function(e){return null!=e&&H(e)>=H(this.options.min)&&H(e)<=H(this.options.max)&&this._model.set("selectedDate",e),H(this._model.get("selectedDate"))},_toolbar:function(){var t,n,i=this,o=i.options,r=[];o.toolbar&&(r=e.isArray(o.toolbar)?o.toolbar:[o.toolbar]),t=this._isMobile()?Pe:Fe,n=e(t({messages:o.messages,pdf:e.grep(r,function(e){return"pdf"==e||"pdf"==e.name}).length>0,search:e.grep(r,function(e){return"search"==e||"search"==e.name}).length>0,ns:z.ns,view:i._selectedViewName,views:i.views,viewsCount:i._viewsCount,editable:i.options.editable})),i.wrapper.append(n),i.toolbar=n,z.bind(i.toolbar,i._model),n.on(te+ee,".k-pdf",function(e){e.preventDefault(),i.saveAsPDF()}),n.on("input"+ee,".k-scheduler-search-input",z.throttle(function(e){i.dataSource.filter({logic:"or",filters:[{field:"title",operator:"contains",value:e.target.value},{field:"description",operator:"contains",value:e.target.value}]})},250)),n.on(te+ee,".k-create-event",function(e){e.preventDefault(),i.addEvent()}),n.on(te+ee,".k-nav-calendar",function(e){e.preventDefault(),i._showCalendar(e.target)}),n.on(te+ee,".k-scheduler-navigation > .k-button",function(t){var n,o=e(this),r=new Date(i.date()),a="",s=new Date,l=i.options.timezone;e(t.target).is("input")||(t.preventDefault(),o.hasClass("k-nav-today")?(a="today",l?(n=z.timezone.offset(s,l),r=z.timezone.convert(s,s.getTimezoneOffset(),n)):r=s):o.hasClass("k-nav-next")?(a="next",r=i.view().nextDate()):o.hasClass("k-nav-prev")&&(a="previous",r=i.view().previousDate()),i.trigger("navigate",{view:i._selectedViewName,action:a,date:r})||i.date(r))}),n.on(te+ee,".k-nav-current",function(e){e.preventDefault(),i._isMobile()||i._showCalendar()}),n.on(te+ee,".k-scheduler-views > .k-button, .k-scheduler-refresh",function(t){t.preventDefault();var n=e(this).attr(z.attr("name"));i.toolbar.find(".k-scheduler-views > .k-button").removeClass(ge),i.trigger("navigate",{view:n,action:"changeView",date:i.date()})||i.view(n)}),n.on(se+ee,".k-views-dropdown",function(){var e=this.value;i.trigger("navigate",{view:e,action:"changeView",date:i.date()})||i.view(e)}),n.find(".k-scheduler-mobile-views").on("change",function(e){i.view(e.target.value)})},_showCalendar:function(t){var n=this,i=t||n.toolbar.find(".k-nav-current"),o=e('<div class="k-calendar-container"><div class="k-scheduler-calendar"></div></div>');n.popup||(n.popup=new G(o,{anchor:i,activate:function(){n.popup&&n.calendar&&(n.popup._toggleResize(!1),n.calendar.element.find("table").focus(),n.popup._toggleResize(!0))},open:function(){n.calendar||(n.calendar=new $(this.element.find(".k-scheduler-calendar"),{change:function(){var e=this.value();n.trigger("navigate",{view:n._selectedViewName,action:"changeDate",date:e})||(n.date(e),n.popup.close()),n._isMobile()||(n._selectedView.element.focus(),n.toolbar.find(".k-nav-current").focus().addClass(ge))},min:n.options.min,max:n.options.max})),n.calendar.element.on("keydown"+ee,function(e){e.keyCode!==V.ESC&&e.keyCode!==V.TAB||(n.popup.close(),n._selectedView.element.focus(),n.toolbar.find(".k-nav-current").focus().addClass(ge))}),n.calendar.value(n.date())},copyAnchorStyles:!1})),n.popup.open()},refresh:function(e){var n=this,i=this.view(),o=e&&"itemchange"===e.action&&(this._editor.editable||this._preventRefresh)||"signalr"===this.dataSource.options.type&&this._preventRefresh;if(this._progress(!1),this.angular("cleanup",function(){return{elements:n.items()}}),e=e||{},i)return o?(this._attemptRefresh="signalr"===this.dataSource.options.type,t):(this.trigger("dataBinding",{action:e.action||"rebind",index:e.index,items:e.items})||(e&&"resize"===e.action||!this._editor||this._editor.close(),this._data=this.dataSource.expand(i.startDate(),i.visibleEndDate()),i.refreshLayout(),i.render(this._data),this.trigger("dataBound"),this._attemptRefresh=!1),t)},slotByPosition:function(e,t){var n,i=this.view();return i._slotByPosition?(n=i._slotByPosition(e,t),n?{startDate:n.startDate(),endDate:n.endDate(),groupIndex:n.groupIndex,element:n.element,isDaySlot:n.isDaySlot}:null):null},slotByElement:function(t){var n=e(t).offset();return this.slotByPosition(n.left,n.top)},resourcesBySlot:function(e){return this.view()._resourceBySlot(e)}}),E={day:{type:"kendo.ui.DayView"},week:{type:"kendo.ui.WeekView"},workWeek:{type:"kendo.ui.WorkWeekView"},agenda:{type:"kendo.ui.AgendaView"},month:{type:"kendo.ui.MonthView"},timeline:{type:"kendo.ui.TimelineView"},timelineWeek:{type:"kendo.ui.TimelineWeekView"},timelineWorkWeek:{type:"kendo.ui.TimelineWorkWeekView"},timelineMonth:{type:"kendo.ui.TimelineMonthView"}},W.plugin(A),z.PDFMixin&&(z.PDFMixin.extend(A.prototype),I="k-scheduler-pdf-export",A.fn._drawPDF=function(t){var n,i,o,r=this.wrapper,a=r[0].style.cssText;return r.css({width:r.width(),height:r.height()}),r.addClass(I),n=this,i=new e.Deferred,o=r.find(".k-scheduler-content").find("table").css("table-layout","auto"),
setTimeout(function(){o.css("table-layout","fixed"),n.resize(!0),n._drawPDFShadow({},{avoidLinks:n.options.pdf.avoidLinks}).done(function(e){var n={page:e,pageNumber:1,progress:1,totalPages:1};t.notify(n),i.resolve(n.page)}).fail(function(e){i.reject(e)}).always(function(){r[0].style.cssText=a,r.removeClass(I),n.resize(!0),n.resize(!0)})}),i}),M=U.extend({init:function(e,t){var n=this,i=z.timezone.windows_zones;if(!i||!z.timezone.zones_titles)throw Error("kendo.timezones.min.js is not included.");U.fn.init.call(n,e,t),n.wrapper=n.element,n._zonesQuery=new z.data.Query(i),n._zoneTitleId=z.guid(),n._zoneTitlePicker(),n._zonePicker(),n._zoneTitle.bind("cascade",function(){this.value()||n._zone.wrapper.hide()}),n._zone.bind("cascade",function(){n._value=this.value(),n.trigger("change")}),n.value(n.options.value)},options:{name:"TimezoneEditor",value:"",optionLabel:"No timezone"},events:["change"],_zoneTitlePicker:function(){var t=this,n=e('<input id="'+t._zoneTitleId+'" aria-label="'+t.options.title+'"/>').appendTo(t.wrapper);t._zoneTitle=new z.ui.DropDownList(n,{dataSource:z.timezone.zones_titles,dataValueField:"other_zone",dataTextField:"name",optionLabel:t.options.optionLabel})},_zonePicker:function(){var t=this,n=e('<input aria-label="'+t.options.title+'"/>').appendTo(this.wrapper);t._zone=new z.ui.DropDownList(n,{dataValueField:"zone",dataTextField:"territory",dataSource:t._zonesQuery.data,cascadeFrom:t._zoneTitleId,dataBound:function(){t._value=this.value(),this.wrapper.toggle(this.dataSource.view().length>1)}}),t._zone.wrapper.hide()},destroy:function(){U.fn.destroy.call(this),z.destroy(this.wrapper)},value:function(e){var n,i=this;return e===t?i._value:(n=i._zonesQuery.filter({field:"zone",operator:"eq",value:e}).data[0],n?(i._zoneTitle.value(n.other_zone),i._zone.value(n.zone)):i._zoneTitle.select(0),t)}}),W.plugin(M),R=z.template('<option value="#=other_zone#">#=name#</option>'),F=z.template('<option value="#=zone#">#=territory#</option>'),P=U.extend({init:function(e,t){var n=this,i=z.timezone.windows_zones;if(!i||!z.timezone.zones_titles)throw Error("kendo.timezones.min.js is not included.");U.fn.init.call(n,e,t),n.wrapper=n.element,n._zonesQuery=new z.data.Query(i),n._zoneTitlePicker(),n._zonePicker(),n.value(n.options.value)},options:{name:"MobileTimezoneEditor",optionLabel:"No timezone",value:""},events:["change"],_bindZones:function(e){var t=e?this._filter(e):[];this._zone.html(this._options(t,F))},_filter:function(e){return this._zonesQuery.filter({field:"other_zone",operator:"eq",value:e}).data},_options:function(e,t,n){var i=0,o="",r=e.length;for(n&&(o+=t({other_zone:"",name:n}));i<r;i++)o+=t(e[i]);return o},_zoneTitlePicker:function(){var t=this,n=t._options(z.timezone.zones_titles,R,t.options.optionLabel);t._zoneTitle=e("<select>"+n+"</select>").appendTo(t.wrapper).change(function(){var e=this.value,n=t._zonePickerLabel,i=n.find("select");t._bindZones(e),e&&i.children().length>1?n.show():n.hide(),t._value=t._zone[0].value,t.trigger("change")})},_zonePicker:function(){var t=this;t._zonePickerLabel=e("<li class='k-item k-listgroup-item k-zonepicker' style='display:none'><label class='k-label k-listgroup-form-row'><span class='k-item-title k-listgroup-form-field-label'></span><div class='k-listgroup-form-field-wrapper'></div></label></li>"),t._zone=e("<select></select>").appendTo(t._zonePickerLabel.find("div")).change(function(){t._value=this.value,t.trigger("change")}),this.wrapper.closest(".k-item").after(t._zonePickerLabel),t._bindZones(t._zoneTitle.val()),t._value=t._zone[0].value},destroy:function(){U.fn.destroy.call(this),z.destroy(this.wrapper)},value:function(e){var n,i=this,o=i._zone,r="",a="";return e===t?i._value:(n=i._zonesQuery.filter({field:"zone",operator:"eq",value:e}).data[0],n&&(a=n.zone,r=n.other_zone),i._zoneTitle.val(r),i._bindZones(r),o.val(a),a=o[0].value,a&&o.children.length>1?i._zonePickerLabel.show():i._zonePickerLabel.hide(),i._value=a,t)}}),W.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.treelist.min",["kendo.dom.min","kendo.data.min","kendo.columnsorter.min","kendo.editable.min","kendo.window.min","kendo.filtermenu.min","kendo.selectable.min","kendo.resizable.min","kendo.treeview.draganddrop.min","kendo.pager.min"],e)}(function(){return function(e,t){function n(e){return function(t){return t[e]}}function i(e){return function(t){return!e(t)}}function o(){return"none"!==this.style.display}function r(n){var i=kendo.attr("index");return n.sort(function(n,o){var r,a;return n=e(n),o=e(o),r=n.attr(i),a=o.attr(i),r===t&&(r=e(n).index()),a===t&&(a=e(o).index()),r=parseInt(r,10),a=parseInt(a,10),r>a?1:r<a?-1:0})}function a(t){var n=t.find(">tr:not(.k-filter-row)"),i=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},o=e();return n.length>1&&(o=n.find("th[data-index]").filter(i)),o=o.add(n.last().find("th").filter(i)),r(o)}function s(e){var t,n,i=[],o=e.className;for(t=0,n=e.level;t<n;t++)i.push(Y("span",{className:o}));return i}function l(e){var t,n,i,o=0;for(n=0,i=e.length;n<i;n++)t=e[n].style.width,t&&t.indexOf("%")==-1&&(o+=parseInt(t,10));return o}function d(e,t){var n,i,o,r;e=e[0],t=t[0],e.rows.length&&t.rows.length&&e.rows.length!==t.rows.length&&(n=e.offsetHeight,i=t.offsetHeight,n>i?(o=t.rows[t.rows.length-1],r=n-i):(o=e.rows[e.rows.length-1],r=i-n),o.style.height=o.offsetHeight+r+"px")}function c(t){return e(t).is(":button,a,:input,a>.k-icon,textarea,span.k-select,span.k-icon,span.k-link,.k-input,.k-multiselect-wrap,.k-tool-icon")}function u(e){return e.parentColumn?!!u(e.parentColumn):!!e.locked}function h(e,t,n,i){var o,r,a=!!n.locked;do o=e[t],t+=i?1:-1,r=!!o.locked;while(o&&t>-1&&t<e.length&&o!=n&&!o.columns&&r===a);return o}function p(e,t,n,i,o){var r,a,s,l,d;return t.columns?(t=t.columns,t[i?0:t.length-1]):(r=C(t,e),a=r?r.columns:e,s=me(t,a),0===s&&i&&1!==a.length?s++:s!=a.length-1||i||0===s?(s>0||0===s&&!i&&0!==s)&&(s+=i?-1:1):s--,l=me(n,a),t=h(a,s,n,l>s),d=me(t,o),(!t.columns||d&&d!==a.length-1)&&t&&t!=n&&t.columns?p(e,t,n,i,o):null)}function f(e){var t,n=[];for(t=0;t<e.length;t++)e[t].columns?n=n.concat(f(e[t].columns)):n.push(e[t]);return n}function m(e){var t,n=[];for(e=f(e),t=0;t<e.length;t++)"string"==typeof e[t]?n.push(e[t]):e[t].field&&n.push(e[t].field);return n}function g(e){return fe(e,function(e){return!e.hidden})}function v(e){return _([e]).length>0}function _(e){return fe(e,function(e){var t=!e.hidden;return t&&e.columns&&(t=_(e.columns).length>0),t})}function b(e,t,n){return pe(e,function(e){var i,o;return e.parentIds=n,v(e)&&!t||(i=!0),o=kendo.guid(),e.headerAttributes=ue({headers:n},e.headerAttributes),e.headerAttributes&&e.headerAttributes.id?o=e.headerAttributes.id:e.headerAttributes=ue({id:o},e.headerAttributes),e.columns&&(e.columns=b(e.columns,i,n?n+" "+o:o)),ue({hidden:i},e)})}function w(e){var t=T(I(e));return t.concat(T(M(e)))}function k(e,t,n,i){var o=e[n],r=e[i],a=C(o,t);return t=a?a.columns:t,me(r,t)}function y(t){var n,i,o,r,a,s,l,d=t.closest("table"),c=e().add(t),u=t.closest("tr"),h=d.find("tr"),p=h.index(u);if(p>0){for(n=h.eq(p-1),i=n.find("th").filter(function(){return!e(this).attr("rowspan")}),o=0,r=u.find("th").index(t),a=t.prevAll().filter(function(){return this.colSpan>1}),s=0;s<a.length;s++)o+=a[s].colSpan||1;for(r+=Math.max(o-1,0),o=0,s=0;s<i.length;s++)if(l=i.eq(s),o+=l.attr("data-colspan")?l[0].getAttribute("data-colspan"):1,r>=s&&r<o){c=y(l).add(c);break}}return c}function x(t){var n,i,o,r,a,s,l,d=t.closest("thead"),c=e().add(t),u=t.closest("tr"),h=d.find("tr"),p=h.index(u)+t[0].rowSpan,f=kendo.attr("colspan");if(p<=h.length-1){for(n=u.next(),i=t.prevAll(),i=i.filter(function(){return!this.rowSpan||1===this.rowSpan}),r=0,o=0;o<i.length;o++)r+=parseInt(i.eq(o).attr(f),10)||1;for(a=n.find("th"),s=parseInt(t.attr(f),10)||1,o=0;o<s;)n=a.eq(o+r),c=c.add(x(n)),l=parseInt(n.attr(f),10),l>1&&(s-=l-1),o++}return c}function C(e,t){var n=[];return S(e,t,n),n[n.length-1]}function S(e,t,n){var i,o;for(n=n||[],i=0;i<t.length;i++){if(e===t[i])return!0;if(t[i].columns){if(o=n.length,n.push(t[i]),S(e,t[i].columns,n))return!0;n.splice(o,n.length-o)}}return!1}function T(e){var t,n=[],i=[];for(t=0;t<e.length;t++)n.push(e[t]),e[t].columns&&(i=i.concat(e[t].columns));return i.length&&(n=n.concat(T(i))),n}function D(e,t,n,i){var o,r;for(n=n||0,i=i||{},i[n]=i[n]||0,r=0;r<t.length;r++){if(t[r]==e){o={cell:i[n],row:n};break}if(t[r].columns&&(o=D(e,t[r].columns,n+1,i)))break;i[n]++}return o}function A(t,n,i){var o,r,a,s,l,d,c,u;for(i=i||0,a=n,n=f(n),s={},l=t.find(">tr:not(.k-filter-row)"),d=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},c=0,u=n.length;c<u;c++)o=D(n[c],a),s[o.row]||(s[o.row]=l.eq(o.row).find(".k-header").filter(d)),r=s[o.row].eq(o.cell),r.attr(kendo.attr("index"),i+c);return n.length}function E(e){var t,n,i=1,o=0;for(t=0;t<e.length;t++)e[t].columns&&(n=E(e[t].columns),n>o&&(o=n));return i+o}function I(e){return fe(e,n("locked"))}function M(e){return fe(e,i(n("locked")))}function R(e,t){var n=e.find("tr"),i=n.length;n.each(function(e){var n,o=this.cells;for(n=0;n<o.length;n++)o[n].colSpan<=1&&o[n].attributes.rowspan&&(t.children[e].children[n].attr.rowSpan=i-e,o[n].rowSpan=i-e)})}function F(t,n){var i,o=t.find("tr"),r=[];for(o.filter(function(t){var n=!e(this).children().length;return n&&r.push(t),n}).remove(),i=r.length-1;i>=0;i--)n.children.splice(r[i],1);R(t,n)}function P(t,n){if(n===!0){t=e(t);var i,o;i=t.parent().scrollTop(),o=kendo.scrollLeft(t.parent()),kendo.focusElement(t),kendo.scrollLeft(t.parent().scrollTop(i),o)}else e(t).one("focusin",function(e){e.preventDefault()}).focus()}function z(e,t){var n,i=e.offsetHeight,o=t.offsetHeight;i>o?n=i+"px":i<o&&(n=o+"px"),n&&(e.style.height=t.style.height=n)}function B(e,t){return!(!(e&&t&&e.field)||e.selectable||e.command||e.editable&&!e.editable(t))&&(e.field&&t.editable&&t.editable(e.field))}function L(e,t){var n=(e||{}).field||"";return t.dirty&&t.dirtyFields&&t.dirtyFields[n]&&B(e,t)}function H(e){return t===e}function N(e){return"number"==typeof e&&!isNaN(e)}var O,V,W,U,j,q,G,$=kendo.data,K=kendo.dom,Y=K.element,Q=K.text,X=K.html,Z=kendo._outerWidth,J=kendo.keys,ee=kendo._outerHeight,te=kendo.ui,ne=te.DataBoundWidget,ie=$.DataSource,oe=$.ObservableArray,re=$.Query,ae=$.Model,se=kendo.support.browser,le=kendo.template,de=kendo._activeElement,ce=e.isArray,ue=e.extend,he=e.proxy,pe=e.map,fe=e.grep,me=e.inArray,ge=e.isPlainObject,ve=Array.prototype.push,_e="string",be="change",we="itemChange",ke="error",ye="progress",xe=".",Ce=".kendoTreeList",Se="click",Te="input",De="beforeEdit",Ae="edit",Ee="page",Ie="pageChange",Me="save",Re="saveChanges",Fe="sort",Pe="expand",ze="collapse",Be="cellClose",Le="remove",He="td:not(.k-group-cell):not(.k-hierarchy-cell):visible",Ne="dataBinding",Oe="dataBound",Ve="cancel",We="tabIndex",Ue="filterMenuInit",je="filterMenuOpen",qe="columnHide",Ge="columnShow",$e="th.k-header",Ke="columnReorder",Ye="columnResize",Qe="columnMenuInit",Xe="columnMenuOpen",Ze="columnLock",Je="columnUnlock",et="parentId",tt="dragstart",nt="drag",it="drop",ot="dragend",rt="tr:visible",at="td:visible",st="th:visible",lt="k-grid-norecords",dt="tr:not(.k-footer-template):visible",ct=rt+" > td:first:visible",ut=dt+":last",ht=!1,pt="height",ft="incell",mt="inline",gt="popup",vt="table",_t="k-checkbox",bt="input[data-role='checkbox']."+_t,wt='<input class="'+_t+'" data-role="checkbox" aria-label="Select row" aria-checked="false" type="checkbox">',kt='<input class="'+_t+'" data-role="checkbox" aria-label="Select all rows" aria-checked="false" type="checkbox">',yt="k-state-selected",xt={wrapper:"k-treelist k-grid k-widget k-grid-display-block",header:"k-header",button:"k-button",alt:"k-alt",editCell:"k-edit-cell",editRow:"k-grid-edit-row",dirtyCell:"k-dirty-cell",group:"k-treelist-group",gridToolbar:"k-grid-toolbar",gridHeader:"k-grid-header",gridHeaderWrap:"k-grid-header-wrap",gridContent:"k-grid-content",gridContentWrap:"k-grid-content",gridFilter:"k-grid-filter",footerTemplate:"k-footer-template",focused:"k-state-focused",loading:"k-i-loading",refresh:"k-i-reload",retry:"k-request-retry",selected:"k-state-selected",status:"k-status",link:"k-link",withIcon:"k-with-icon",filterable:"k-filterable",icon:"k-icon",iconFilter:"k-i-filter",iconCollapse:"k-i-collapse",iconExpand:"k-i-expand",iconHidden:"k-i-none",iconPlaceHolder:"k-icon k-i-none",input:"k-input",dropPositions:"k-i-insert-up k-i-insert-down k-i-plus k-i-insert-middle",dropTop:"k-i-insert-up",dropBottom:"k-i-insert-down",dropAdd:"k-i-plus",dropMiddle:"k-i-insert-middle",dropDenied:"k-i-cancel",dragStatus:"k-drag-status",dragClue:"k-drag-clue",dragClueText:"k-clue-text"},Ct={create:{imageClass:"k-i-plus",className:"k-grid-add",methodName:"addRow"},createchild:{imageClass:"k-i-plus",className:"k-grid-add",methodName:"addRow"},destroy:{imageClass:"k-i-close",className:"k-grid-delete",methodName:"removeRow"},edit:{imageClass:"k-i-edit",className:"k-grid-edit",methodName:"editRow"},update:{imageClass:"k-i-check",className:"k-primary k-grid-update",methodName:"saveRow"},canceledit:{imageClass:"k-i-cancel",className:"k-grid-cancel",methodName:"_cancelEdit"},cancel:{imageClass:"k-icon k-i-cancel",text:"Cancel changes",className:"k-grid-cancel-changes",methodName:"cancelChanges"},save:{imageClass:"k-icon k-i-check",text:"Save changes",className:"k-grid-save-changes",methodName:"saveChanges"},excel:{imageClass:"k-i-file-excel",className:"k-grid-excel",methodName:"saveAsExcel"},pdf:{imageClass:"k-i-file-pdf",className:"k-grid-pdf",methodName:"saveAsPDF"},search:{template:"<span class='k-textbox k-grid-search k-display-flex'><input autocomplete='off' placeholder='#= message #' title='#= message #' class='k-input' /><span class='k-input-icon'><span class='k-icon k-i-search'></span></span></span>"}},St=kendo.Class.extend({init:function(e,t){var n=this;n.data=e||[],n.options=ue(n.options,t)},options:{defaultParentId:null,idField:"id",parentIdField:et},childrenMap:function(){var e,t,n,i,o=this,r={},a=o.data.length,s=o.options.idField,l=o.options.parentIdField;if(o._childrenMap)return o._childrenMap;for(i=0;i<a;i++)e=this.data[i],t=e[s],n=e[l],r[t]=r[t]||[],r[n]=r[n]||[],r[n].push(e);return o._childrenMap=r,r},idsMap:function(){var e,t,n=this,i={},o=n.data,r=o.length,a=n.options.idField;if(n._idMap)return n._idMap;for(t=0;t<r;t++)e=o[t],i[e[a]]=e;return n.idsMap=i,i},dataMaps:function(){var e,t,n,i,o=this,r={},a=o.data,s=a.length,l={},d=o.options.idField,c=o.options.parentIdField;if(o._dataMaps)return o._dataMaps;for(i=0;i<s;i++)e=a[i],t=e[d],n=e[c],l[t]=e,r[t]=r[t]||[],r[n]=r[n]||[],r[n].push(e);return o._dataMaps={children:r,ids:l}},rootNodes:function(){var e,t,n=this,i=n.data,o=n.options.defaultParentId,r=i.length,a=[],s=n.options.parentIdField;for(t=0;t<r;t++)e=i[t],e[s]===o&&a.push(e);return a},removeCollapsedSubtreesFromRootNodes:function(e){var t,n,i,o,r;for(e=e||{},t=this,n=t.rootNodes(),i=[],t._childrenMap=e.childrenMap=e.childrenMap||t.childrenMap(),e.maxDepth=e.maxDepth||1/0,r=0;r<n.length;r++)o=t.removeCollapsedSubtrees(n[r],e),i=i.concat(o);return i},removeCollapsedSubtrees:function(e,t){var n,i,o,r,a,s,l,d,c;if(t=t||{},n=this,i=[],a=t.childrenMap||{},s=t.maxDepth||1/0,l=n.options.idField,d=a[e[l]]||[],c=H(e.expanded)?t.expanded:e.expanded,i.push(e),d&&c)for(o=0;o<d.length&&!(i.length>=s);o++)r=n.removeCollapsedSubtrees(d[o],t),i=i.concat(r);return i}}),Tt=function(e){this.data=e||[]};Tt.prototype=new re,Tt.prototype.constructor=Tt,Tt.process=function(e,n,i){var o,r,a,s,l,d,c,u,h,p,f,m;return n=n||{},o=new Tt(e),r=n.group,a=re.normalizeGroup(r||[]).concat(re.normalizeSort(n.sort||[])),s=n.filterCallback,l=n.filter,d=n.skip,c=n.take,a&&i&&(o=o.sort(a,t,t,i)),l&&(o=o.filter(l),s&&(o=s(o)),u=o.toArray().length),a&&!i&&(o=o.sort(a),r&&(e=o.toArray())),n.processFromRootNodes&&(f=new St(o.toArray(),n),l&&(p=f.childrenMap()),m=f.removeCollapsedSubtreesFromRootNodes({childrenMap:l||a&&a.length?t:n.childrenMap,expanded:n.expanded,maxDepth:d+c||1/0}),h=f.childrenMap(),o=new Tt(m)),d!==t&&c!==t&&(o=o.range(d,c)),r&&(o=o.group(r,e)),{total:u,data:o.toArray(),childrenMap:h,filteredChildrenMap:p}},O=ae.define({id:"id",parentId:et,fields:{id:{type:"number"},parentId:{type:"number",nullable:!0}},init:function(e){ae.fn.init.call(this,e),this._loaded=!1,this.parentIdField||(this.parentIdField=et),this.parentId=this.get(this.parentIdField)},accept:function(e){ae.fn.accept.call(this,e),this.parentId=this.get(this.parentIdField)},set:function(e,t,n){e==et&&this.parentIdField!=et&&(this[this.parentIdField]=t),ae.fn.set.call(this,e,t,n),e==this.parentIdField&&(this.parentId=this.get(this.parentIdField))},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return ae.fn.shouldSerialize.call(this,e)&&"_loaded"!==e&&"_error"!=e&&"_edit"!=e&&!("parentId"!==this.parentIdField&&"parentId"===e)}}),O.parentIdField=et,O.define=function(e,n){var i,o;return n===t&&(n=e,e=O),i=n.parentId||et,n.parentIdField=i,o=ae.define(e,n),i&&(o.parentIdField=i),o},V=ie.extend({init:function(e){e=e||{};var t=this;t._dataMaps=t._getDataMaps(),e.schema=ue(!0,{},{modelBase:O,model:O},e.schema),ie.fn.init.call(this,e)},_addRange:function(){},_createNewModel:function(e){var t=this,n={},i=e instanceof ae,o=this._modelParentIdField();return i&&(n=e),n=ie.fn._createNewModel.call(this,n),i||(e.parentId?e[n.parentIdField]=e.parentId:t._isPageable()&&e[o]&&(e[n.parentIdField]=e[o]),n.accept(e)),n},_shouldWrap:function(){return!0},_push:function(e,t){var n=ie.fn._readData.call(this,e);n||(n=e),this[t](n)},_getData:function(){return this._data||[]},_readData:function(e){var t=this,n=t._isPageable()?t._getData().toJSON():t.data();return e=ie.fn._readData.call(this,e),this._replaceData((n.toJSON?n.toJSON():n).concat(e),n),e instanceof oe?e:n},_replaceData:function(e,t){var n,i=e.length;for(n=0;n<i;n++)t[n]=e[n];t.length=i},_readAggregates:function(e){var t=ue(this._aggregateResult,this.reader.aggregates(e));return""in t&&(t[this._defaultParentId()]=t[""],delete t[""]),t},read:function(e){var n=this;return n._isPageable()&&(n._dataMaps={},n._modelOptions().expanded||(n._skip=0,n._page=1,n._collapsedTotal=t)),ie.fn.read.call(n,e)},remove:function(e){return this._removeChildData(e),this._removeFromDataMaps(e),ie.fn.remove.call(this,e)},_removeChildData:function(e,t){var n=this,i=n._isPageable(),o=i?this._getData():this.data(),r=i?n._getChildrenMap()||n.childrenMap(o):n._childrenMap(o),a=this._subtree(r,e.id),s=!H(t)&&t,l=this._removeItems(a,s);n._removeFromDataMaps(l)},pushDestroy:function(e){var t,n=this;for(ce(e)||(e=[e]),t=0;t<e.length;t++)n._removeChildData(e[t],!0),n._removeFromDataMaps(e[t]);ie.fn.pushDestroy.call(n,e)},insert:function(e,t){var n=this,i=n._createNewModel(t);return n._insertInDataMaps(i),ie.fn.insert.call(n,e,i)},_filterCallback:function(e){var t,n,i,o=this,r={},a=[],s=e.toArray(),l=o._modelIdField(),d=o._modelParentIdField(),c=o._isPageable(),u=[];for(t=0;t<s.length;t++)if(n=s[t],c){for(u=[],r[n[l]]||(r[n[l]]=!0,u.push(n)),i=o._parentNode(n);i&&!r[i[l]];)r[i[l]]=!0,u.unshift(i),i=o._parentNode(i);u.length&&(a=a.concat(u))}else for(;n&&(r[n[l]]||(r[n[l]]=!0,a.push(n)),!r[n[d]]);)r[n[d]]=!0,n=this.parentNode(n),n&&a.push(n);return new re(a)},_subtree:function(e,t){var n,i,o=this,r=e[t]||[],a=o._defaultParentId(),s=o._modelIdField();for(n=0,i=r.length;n<i;n++)r[n][s]!==a&&(r=r.concat(o._subtree(e,r[n][s])));return r},_childrenMap:function(e){var t,n,i,o,r={};for(e=this._observeView(e),t=0;t<e.length;t++)n=e[t],i=n.id,o=n.parentId,r[i]=r[i]||[],r[o]=r[o]||[],r[o].push(n);return r},childrenMap:function(e){var t=this._createTreeView(e),n=t.childrenMap();return n},_getChildrenMap:function(){var e=this,t=e._getDataMaps();return t.children},_initIdsMap:function(e){var t=this,n=t._getDataMaps();return H(n.ids)&&(n.ids=t._idsMap(e)),n.ids},_idsMap:function(e){var t=this._createTreeView(e),n=t.idsMap();return n},_getIdsMap:function(){var e=this,t=e._getDataMaps();return t.ids||{}},_getFilteredChildrenMap:function(){var e=this,t=e._getDataMaps();return t.filteredChildren},_setFilteredChildrenMap:function(e){var t=this,n=t._getDataMaps();n.filteredChildren=e},_initDataMaps:function(e){var t=this,n=t._createTreeView(e);return t._dataMaps=n.dataMaps()},_initChildrenMapForParent:function(e){var t,n=this,i=n._getData(),o=n._getChildrenMap(),r=n._modelIdField(),a=n._modelParentIdField(),s=(e||{})[r];if(o&&e)for(o[s]=[],t=0;t<i.length;t++)i[t][a]===s&&o[s].push(i[t])},_getDataMaps:function(){var e=this;return e._dataMaps=e._dataMaps||{}},_createTreeView:function(e,t){var n=new St(e,ue(t,this._defaultTreeModelOptions()));return n},_defaultTreeModelOptions:function(){var e=this,t=e._modelOptions();return{defaultParentId:e._defaultParentId(),idField:e._modelIdField(),parentIdField:e._modelParentIdField(),expanded:t.expanded}},_defaultDataItemType:function(){return this.reader.model||kendo.data.ObservableObject},_calculateAggregates:function(e,t){var n,i,o,r,a,s,l,d,c,u,h,p,f,m;if(t=t||{},n=this,i={},s=t.filter,l=t.skip,d=t.take,c=H(l)||H(d)?1/0:l+d,u=n._isPageable(),h=t.filteredChildrenMap,p=t.childrenMap,u){if(H(t.aggregate))return i;f=h?h:p?p:n.childrenMap(n._getData())}for(!u&&s&&(e=re.process(e,{filter:s,filterCallback:he(this._filterCallback,this)}).data),m=u?f:n._childrenMap(e),i[this._defaultParentId()]=new re(this._subtree(m,this._defaultParentId())).aggregate(t.aggregate),a=0;a<e.length&&!(a>=c);a++)o=e[a],r=this._subtree(m,o.id),i[o.id]=new re(r).aggregate(t.aggregate);return i},_queryProcess:function(e,t){var n,i,o,r,a,s,l=this,d={};if(t=t||{},t.filterCallback=he(this._filterCallback,this),l._isPageable())return l._processPageableQuery(e,t);for(n=this._defaultParentId(),d=re.process(e,t),i=this._childrenMap(d.data),e=i[n]||[],r=0;r<e.length;r++)a=e[r],a.id!==n&&(s=i[a.id],o=!(!s||!s.length),a.loaded()||a.loaded(o||!a.hasChildren),(a.loaded()||a.hasChildren!==!0)&&(a.hasChildren=o),o&&(e=e.slice(0,r+1).concat(s,e.slice(r+1))));return d.data=e,d},_processPageableQuery:function(e,t){var n,i,o=this,r=o._getDataMaps();return o._getData()===e&&r.children&&r.ids||(r=o._initDataMaps(o._getData())),t.childrenMap=r.children||{},t.idsMap=r.ids||{},n=o._processTreeQuery(e,t),o._replaceWithObservedData(n.data,e),o._processDataItemsState(n.data,n.childrenMap),o._replaceItemsInDataMaps(n.data),n.dataToAggregate=o._dataToAggregate(n.data,t),(t.filter||o.filter())&&(i=n.filteredChildrenMap,o._replaceInMapWithObservedData(i,e),o._setFilteredChildrenMap(i),t.filteredChildrenMap=i,o._calculateCollapsedTotal(n.data)),n},_dataToAggregate:function(e){var t=this,n=e[0]||{},i=t._parentNodes(n),o=i.concat(e);return o},_replaceItemsInDataMaps:function(e){var n,i,o,r,a=this,s=ce(e)?e:[e],l=a._defaultDataItemType(),d=a._defaultParentId(),c=a._modelIdField(),u=a._modelParentIdField(),h=a._getDataMaps();for(r=0;r<s.length;r++)n=s[r],n instanceof l&&(a._insertInIdsMap(n),i=a._parentNodes(n),o=i&&i.length?i[i.length-1]:t,n[u]===d?a._replaceInMap(h.children,d,n,l):o&&a._replaceInMap(h.children,o[c],n,l))},_replaceInMap:function(e,t,n,i){var o,r,a=this._modelIdField();e[t]=e[t]||[],i=i||this._defaultDataItemType(),o=e[t].filter(function(e){return n[a]===e[a]})[0],r=o?e[t].indexOf(o):-1,r===-1||o instanceof i||(e[t][r]=n)},_replaceWithObservedData:function(e,t){var n,i,o,r,a,s,l=this,d=l._getDataMaps().ids||{},c=l._modelIdField(),u=l._defaultDataItemType();for(s=0;s<e.length;s++)n=e[s],i=n[c],n instanceof u||(d[i]instanceof u?e[s]=d[i]:(o=l._getById(i),r=t.indexOf(o),o&&r!==-1&&(a=t.at(r),e[s]=a)))},_replaceInMapWithObservedData:function(e,t){var n,i=this;for(n in e)i._replaceWithObservedData(e[n],t)},_insertInDataMaps:function(e){var t=this;t._isPageable()&&(t._insertInIdsMap(e),t._insertInChildrenMap(e))},_insertInIdsMap:function(e){var t=this,n=t._getIdsMap(),i=t._modelIdField();H(e[i])||(n[e[i]]=e)},_insertInChildrenMap:function(e,t){var n=this,i=n._getChildrenMap()||{},o=n._modelIdField(),r=n._modelParentIdField(),a=e[o],s=e[r];t=t||0,i[a]=i[a]||[],i[s]=i[s]||[],i[s].splice(t,0,e)},_removeFromDataMaps:function(e){var t,n=this;if(e=ce(e)?e:[e],n._isPageable())for(t=0;t<e.length;t++)n._removeFromIdsMap(e[t]),n._removeFromChildrenMap(e[t])},_removeFromIdsMap:function(e){var n=this,i=n._getIdsMap(),o=n._modelIdField();H(e[o])||(i[e[o]]=t)},_removeFromChildrenMap:function(e){var t,n=this,i=n._getChildrenMap()||{},o=n._modelParentIdField(),r=e[o];i[r]=i[r]||[],t=n._indexInChildrenMap(e),t!==-1&&i[r].splice(t,1)},_indexInChildrenMap:function(e){var t=this;return t._itemIndexInMap(e,t._getChildrenMap())},_itemIndexInMap:function(e,t){var n,i,o=this,r=t||{},a=o._modelParentIdField(),s=e[a];return r[s]=r[s]||[],n=r[s].filter(function(t){return e.uid===t.uid})[0],i=n?r[s].indexOf(n):-1},_getById:function(e){var t,n=this,i=n._modelIdField(),o=n._getData();for(t=0;t<o.length;t++)if(o[t][i]===e)return o[t]},_isLastItemInView:function(e){var t=this.view();return t.length&&t[t.length-1]===e},_defaultPageableQueryOptions:function(){var e=this,t=e._getDataMaps(),n={skip:e.skip(),take:e.take(),page:e.page(),pageSize:e.pageSize(),sort:e.sort(),filter:e.filter(),group:e.group(),aggregate:e.aggregate(),filterCallback:he(e._filterCallback,e),childrenMap:t.children,idsMap:t.ids};return n},_isPageable:function(){var e=this.pageSize();return!H(e)&&e>0&&!this.options.serverPaging},_updateTotalForAction:function(e,t){var n=this;ie.fn._updateTotalForAction.call(n,e,t),n._isPageable()&&n._updateCollapsedTotalForAction(e,t)},_updateCollapsedTotalForAction:function(e,n){var i=this,o=parseInt(i._collapsedTotal,10);return N(i._collapsedTotal)?("add"===e?o+=n.length:"remove"===e?o-=n.length:"itemchange"===e||"sync"===e||i.options.serverPaging?"sync"===e&&(o=i._calculateCollapsedTotal()):o=i._calculateCollapsedTotal(),i._collapsedTotal=o,t):(i._calculateCollapsedTotal(),t)},_setFilterTotal:function(e,t){var n=this;ie.fn._setFilterTotal.call(n,e,t)},collapsedTotal:function(){var e=this;return H(e._collapsedTotal)?e._calculateCollapsedTotal():e._collapsedTotal},_calculateCollapsedTotal:function(e){var t=this,n=t._dataWithoutCollapsedSubtrees(e);return n.length&&(t._collapsedTotal=n.length),t._collapsedTotal},_dataWithoutCollapsedSubtrees:function(e){return this._removeCollapsedSubtrees(e||this._getData())},_removeCollapsedSubtrees:function(e){var t=this,n=t._createTreeView(e),i=n.removeCollapsedSubtreesFromRootNodes({expanded:t._modelOptions().expanded,childrenMap:t.filter()?t._getFilteredChildrenMap():t._getChildrenMap()});return i},_processTreeQuery:function(e,t){var n=Tt.process(e,ue(t,this._defaultTreeModelOptions(),{processFromRootNodes:!0}));return n},_processDataItemsState:function(e,t){var n,i=e.length;for(n=0;n<i;n++)this._processDataItemState(e[n],t)},_processDataItemState:function(e,t){var n,i,o=this._defaultParentId();e.id!==o&&(n=t[e.id]||[],i=!(!n||!n.length),e.loaded&&(e.loaded()||e.loaded(i||!e.hasChildren),(e.loaded()||e.hasChildren!==!0)&&(e.hasChildren=i)))},_queueRequest:function(e,t){t.call(this)},_modelLoaded:function(e){var t=this.get(e);t.loaded(!0),t.hasChildren=this.childNodes(t).length>0},_modelError:function(e,t){this.get(e)._error=t},success:function(e,n){n&&t!==n.id||(this._data=this._observe([])),ie.fn.success.call(this,e,n),this._total=this._data.length},load:function(t){var n="_query",i=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates,o=e.Deferred().resolve().promise();if(t.loaded()){if(i)return o}else t.hasChildren&&(n="read",this._removeChildData(t));return this[n]({id:t.id}).done(he(this._modelLoaded,this,t.id)).fail(he(this._modelError,this,t.id))},contains:function(e,t){for(var n=this,i=n._modelIdField(),o=n._modelParentIdField(),r=e[i],a=n._isPageable();t;){if(t[o]===r)return!0;t=a?n._parentNode(t):n.parentNode(t)}return!1},_byParentId:function(e,t){var n,i,o=[],r=this.view();if(e===t)return[];for(i=0;i<r.length;i++)n=r.at(i),n.parentId==e&&o.push(n);return o},_defaultParentId:function(){return this.reader.model.fn.defaults[this.reader.model.parentIdField]},_modelOptions:function(){var e=(this.options.schema||{}).model||{};return e},_modelIdField:function(){var e=this._modelOptions();return e.id||"id"},_modelParentIdField:function(){var e=this._modelOptions();return e.parentId||et},childNodes:function(e){return this._byParentId(e.id,this._defaultParentId())},allChildNodes:function(e,t){var n,i=this.data().filter(function(t){return t.parentId===e.id});for(n=0;n<i.length;n++)t.push(i[n]),this.allChildNodes(i[n],t)},rootNodes:function(){return this._byParentId(this._defaultParentId())},_rootNode:function(e){return this._parentNodes(e)[0]},_pageableRootNodes:function(e){var t,n,i,o,r,a,s,l;for(e=e||{},t=this,n=t._defaultParentId(),i=t._modelParentIdField(),o=[],r=t._nodesWithoutParentInView(e),l=0;l<r.length;l++)a=r[l],a[i]===n?o.push(a):(s=t._rootNode(a),s&&o.indexOf(s)===-1&&o.push(s));return o},parentNode:function(e){return this.get(e.parentId)},_parentNode:function(e){var t=this,n=t._modelParentIdField(),i=t._initIdsMap(t._getData()),o=e[n],r=i[o]||t._getById(o);return r},_parentNodes:function(e){for(var t=this,n=t._parentNode(e),i=[];n;)i.unshift(n),n=t._parentNode(n);return i},_parentNodesNotInView:function(){var e,t,n,i,o,r,a=this,s=a.view(),l=[],d=a._defaultParentId(),c=a._modelIdField(),u=a._modelParentIdField(),h=[];for(r=0;r<s.length;r++)n=s[r],i=n[c],o=n[u],e=a._parentInView(o),e||o===d||(h=a._parentNodes(n),t=h&&h.length?h[h.length-1]:a._getById(o),t&&l.indexOf(t)===-1&&l.push(t));return l},_nodesWithoutParentInView:function(e){var t,n,i,o,r,a,s,l,d,c;for(e=e||{},t=this,n=t.view(),i=e.childrenMap||t.childrenMap(t._getData()),o=t._modelIdField(),r=t._modelParentIdField(),l=[],d=[],c=0;c<n.length;c++)a=n[c],l=i[a[o]],s=t._parentInView(a[r]),s||d.push(a);return d},_parentInView:function(e){var t,n=this.view();for(t=0;t<n.length;t++)if(n[t].id===e)return n[t]},level:function(e){var t=-1;e instanceof O||(e=this.get(e));do e=this.parentNode(e),t++;while(e);return t},_pageableModelLevel:function(e){var t,n=this;return e&&n._isPageable()?(t=n._parentNodes(e),t.length):0},filter:function(e){var n=ie.fn.filter;return e===t?n.call(this,e):(n.call(this,e),t)},_pageableQueryOptions:function(e){var t=this._getDataMaps();return e.childrenMap=t.children,e.idsMap=t.ids,e},_flatData:function(e,t){return t=!!this._isPageable()||t,ie.fn._flatData.call(this,e,t)},data:function(e){var t=this,n=ie.fn.data.call(t,e);return t._isPageable()&&(t._initDataMaps(t._getData()),t._calculateCollapsedTotal()),n},cancelChanges:function(e){var t=this;ie.fn.cancelChanges.call(t,e),t._restorePageSizeAfterAddChild()},_modelCanceled:function(e){var t=this;t._isPageable()&&t._removeFromDataMaps(e)},_changesCanceled:function(){var e=this;e._isPageable()&&e._initDataMaps(e._getData())},_setAddChildPageSize:function(){var e=this,t={};e._isPageable()&&(e._addChildPageSize=e.pageSize()+1,t=e._defaultPageableQueryOptions(),t.take=e._addChildPageSize,t.pageSize=e._addChildPageSize,e._query(t))},_restorePageSizeAfterAddChild:function(){var e=this,n={};e._isPageable()&&(H(e._addChildPageSize)||(n=e._defaultPageableQueryOptions(),n.take=e._addChildPageSize-1,n.pageSize=e._addChildPageSize-1,e._query(n))),e._addChildPageSize=t},sync:function(){var e=this;return ie.fn.sync.call(e).then(function(){e._restorePageSizeAfterAddChild()})},_syncEnd:function(){var e=this;e._isPageable()&&e._initDataMaps(e._getData())}}),V.create=function(t){return e.isArray(t)?t={data:t}:t instanceof oe&&(t={data:t.toJSON()}),t instanceof V?t:new V(t)},W=te.Pager.extend({options:{name:"TreeListPager"},totalPages:function(){var e=this,t=e.dataSource;return t&&t._filter?te.Pager.fn.totalPages.call(e):Math.ceil((e._collapsedTotal()||0)/(e.pageSize()||1))},_createDataSource:function(e){this.dataSource=kendo.data.TreeListDataSource.create(e.dataSource)},_collapsedTotal:function(){
var e=this.dataSource;return e?e.collapsedTotal()||0:0}}),U=kendo.Observable.extend({init:function(e,t){kendo.Observable.fn.init.call(this),t=this.options=ue(!0,{},this.options,t),this.element=e,this.bind(this.events,t),this.model=this.options.model,this.fields=this._fields(this.options.columns),this._initContainer(),this.createEditable()},events:[],_initContainer:function(){this.wrapper=this.element},createEditable:function(){var e=this.options;this.editable=new te.Editable(this.wrapper,{fields:this.fields,target:e.target,clearContainer:e.clearContainer,model:this.model,change:e.change})},_isEditable:function(e){return B(e,this.model)},_fields:function(e){var t,n,i,o=[];for(t=0,n=e.length;t<n;t++)i=e[t],this._isEditable(i)&&o.push({field:i.field,format:i.format,editor:i.editor});return o},end:function(){return this.editable.end()},close:function(){this.destroy()},destroy:function(){this.editable.destroy(),this.editable.element.find("["+kendo.attr("container-for")+"]").empty().end().removeAttr(kendo.attr("role")),this.model=this.wrapper=this.element=this.columns=this.editable=null}}),j=U.extend({init:function(e,t){U.fn.init.call(this,e,t),this._attachHandlers(),kendo.cycleForm(this.wrapper),this.open()},events:[Ve,Me],options:{window:{modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1}},_initContainer:function(){var t=this.options,n=[];this.wrapper=e('<div class="k-popup-edit-form"/>').attr(kendo.attr("uid"),this.model.uid).append('<div class="k-edit-form-container"/>'),t.template?(this._appendTemplate(n),this.fields=[]):this._appendFields(n),this._appendButtons(n),new K.Tree(this.wrapper.children()[0]).render(n),this.wrapper.appendTo(t.appendTo),this.window=new te.Window(this.wrapper,t.window)},_appendTemplate:function(e){var t=this.options.template;typeof t===_e&&(t=kendo.unescape(t)),t=kendo.template(t)(this.model),e.push(X(t))},_appendFields:function(e){var t,n,i,o=this.options.columns;for(t=0,n=o.length;t<n;t++)i=o[t],i.selectable||i.command||(e.push(X('<div class="k-edit-label"><label for="'+i.field+'">'+(i.title||i.field||"")+"</label></div>")),e.push(this._isEditable(i)?X("<div "+kendo.attr("container-for")+'="'+i.field+'" class="k-edit-field"></div>'):Y("div",{"class":"k-edit-field"},[this.options.fieldRenderer(i,this.model)])))},_appendButtons:function(e){e.push(Y("div",{"class":"k-edit-buttons k-state-default"},this.options.commandRenderer()))},_attachHandlers:function(){var e=this._cancelProxy=he(this._cancel,this);this.wrapper.on(Se+Ce,".k-grid-cancel",this._cancelProxy),this._saveProxy=he(this._save,this),this.wrapper.on(Se+Ce,".k-grid-update",this._saveProxy),this.window.bind("close",function(t){t.userTriggered&&e(t)})},_detachHandlers:function(){this._cancelProxy=null,this._saveProxy=null,this.wrapper.off(Ce)},_cancel:function(e){this.trigger(Ve,e)},_save:function(){this.trigger(Me)},open:function(){this.window.center().open()},close:function(){this.window.bind("deactivate",he(this.destroy,this)).close()},destroy:function(){this.window.destroy(),this.window=null,this._detachHandlers(),U.fn.destroy.call(this)}}),q=U.extend({destroy:function(){var e=this;e.editable.destroy(),e.editable.element.off().empty().removeAttr(kendo.attr("role")),e.model=e.wrapper=e.element=e.columns=e.editable=null}}),G=ne.extend({init:function(t,n,i){if(ne.fn.init.call(this,t,n),i&&(this._events=i),ht=kendo.support.isRtl(t),this._dataSource(this.options.dataSource),this._aria(),this._columns(),this._layout(),this._navigatable(),this._selectable(),this._sortable(),this._resizable(),this._filterable(),this._attachEvents(),this._toolbar(),this._scrollable(),this._reorderable(),this._columnMenu(),this._minScreenSupport(),this._draggable(),this._pageable(),this.options.autoBind&&this.dataSource.fetch(),this._hasLockedColumns){var o=this;this.wrapper.addClass("k-grid-lockedcolumns"),this._resizeHandler=function(){o.resize()},e(window).on("resize"+Ce,this._resizeHandler)}kendo.notify(this)},_draggable:function(){var t,n=this,i=this.options.editable,o=n.dataSource,r=o._modelIdField(),a=o._modelParentIdField(),s=n._isPageable();i&&i.move&&(t=i.move.reorderable,kendo.support.touch&&i.move&&n.element.find(xe+xt.gridContentWrap).css("touch-action","none"),this._dragging=new kendo.ui.HierarchicalDragAndDrop(this.wrapper,{$angular:this.$angular,autoScroll:!0,filter:"tbody>tr",itemSelector:"tr",allowedContainers:this.wrapper,hintText:function(t){var n=function(){return e(this).text()},i="<span class='k-header k-drag-separator'></span>";return t.children("td").map(n).toArray().join(i)},contains:he(function(e,t){var n=this.dataItem(t),i=this.dataItem(e);return i==n||this.dataSource.contains(i,n)},this),itemFromTarget:function(e){var t,i,o=e.closest("tr"),r=o.prev(),a=o.next();return r&&(t=!n.sameLevel(r,o)),a&&(i=!n.sameLevel(a,o)),{item:o,content:o,first:t,last:i}},dragstart:he(function(e){this.wrapper.addClass("k-treelist-dragging"),this.wrapper.find(".k-grid-content").length&&this.wrapper.find(".k-grid-content table, .k-grid-content-locked table").css("position","relative");var t=this.dataItem(e);return this.trigger(tt,{source:t})},this),drag:he(function(e){e.source=this.dataItem(e.source),this.trigger(nt,e)},this),drop:he(function(e){return e.source=this.dataItem(e.source),e.destination=this.dataItem(e.destination),this.wrapper.removeClass("k-treelist-dragging"),this.wrapper.find(".k-grid-content").length&&this.wrapper.find(".k-grid-content table, .k-grid-content-locked table").css("position","static"),this.trigger(it,e)},this),dragend:he(function(e){var t,i=this.dataItem(e.destination),l=this.dataItem(e.source),d=l[a],c=o._indexInChildrenMap(l),u=e.position;"over"==u?(s&&(o._removeFromChildrenMap(l),l[a]=i?i[r]:null,o._initChildrenMapForParent(i),l[a]=d),t=l.set("parentId",i?i.id:null),s&&t&&(o._removeFromChildrenMap(l),l[a]=d,o._removeFromChildrenMap(l),o._insertInChildrenMap(l,c))):"before"==u?n.insertBefore(l,i):"after"==u&&n.insertAfter(l,i),e.source=l,e.destination=i,this.trigger(ot,e)},this),reorderable:t,dropHintContainer:function(e){return e.children("td:visible:eq(0)")},dropPositionFrom:function(e){var t,n,i,o,r=!1;if(e.parent().find(".k-i-none").length)return e.prevAll(".k-i-none").length>0?"after":"before";for(t=e.parent().contents(),n=t.length,o=e[0],i=0;i<n&&t[i]!==o;i++)3===t[i].nodeType&&(r=!0);return r?"after":"before"}}))},sameLevel:function(){return arguments[0].find("."+xt.iconHidden).length===arguments[1].find("."+xt.iconHidden).length},insertAfter:function(e,t){this.insertAction(e,t,1)},insertBefore:function(e,t){this.insertAction(e,t,0)},insertAction:function(e,t,n){var i=this,o=i.dataSource,r=o._modelParentIdField(),a=o.indexOf(t),s=o.indexOf(e),l=i._isPageable(),d=o._indexInChildrenMap(t),c=o._data.length,u=a+n,h=o._getChildrenMap()||{},p=e[r];i._unbindDataSource(),i._unbindDataChange(),l&&o._removeFromChildrenMap(e),e[r]!=t[r]&&e.set("parentId",t&&t.parentId?t.parentId:null),u>c-1&&(u=c-1),o._data.splice(s,1),l&&(d+=n,h[p].length<=d&&(d=h[p].length),o._insertInChildrenMap(e,d)),u>=s&&(u-=1),o._data.splice(u,0,e),o._destroyed.pop(),i._bindDataChange(),i._bindDataSource(),i.refresh()},_bindDataChange:function(){var e=this.dataSource;e._data&&e._changeHandler&&(e._data.bind(be,e._changeHandler),e._data.trigger(be))},_unbindDataChange:function(){var e=this.dataSource;e._data&&e._changeHandler&&e._data.unbind(be,e._changeHandler)},_bindDataSource:function(){var e=this,t=e.dataSource;t&&t.bind(be,e._refreshHandler)},_unbindDataSource:function(){var e=this,t=e.dataSource;t&&t.unbind(be,e._refreshHandler)},itemFor:function(e){return"number"==typeof e&&(e=this.dataSource.get(e)),this.tbody.find("["+kendo.attr("uid")+"="+e.uid+"]")},_itemFor:function(e){var t=this,n=t.lockedContent?t.lockedTable:t.table;return"number"==typeof e&&(e=this.dataSource.get(e)),n.find("["+kendo.attr("uid")+"="+e.uid+"]")},_scrollable:function(){var t,n,i;this.options.scrollable&&(t=this.thead.closest(".k-grid-header-wrap"),n=e(this.lockedContent).bind("DOMMouseScroll"+Ce+" mousewheel"+Ce,he(this._wheelScroll,this)),this.content.bind("scroll"+Ce,function(){kendo.scrollLeft(t,this.scrollLeft),n.scrollTop(this.scrollTop)}),i=kendo.touchScroller(this.content),i&&i.movable&&(this._touchScroller=i,i.movable.bind("change",function(e){kendo.scrollLeft(t,-e.sender.x),n&&n.scrollTop(-e.sender.y)})))},_wheelScroll:function(t){var n,i;t.ctrlKey||(n=kendo.wheelDeltaY(t),i=e(t.currentTarget),n&&(i[0].scrollHeight>i[0].clientHeight&&(i[0].scrollTop<i[0].scrollHeight-i[0].clientHeight&&n<0||i[0].scrollTop>0&&n>0)&&t.preventDefault(),i.one("wheel"+Ce,!1),this.content.scrollTop(this.content.scrollTop()+-n)))},_progress:function(){var e=this.options.messages;this.tbody.find("tr").length||this._showStatus(kendo.template("<span class='#= className #'></span> #: messages.loading #")({className:xt.icon+" "+xt.loading,messages:e}))},_error:function(e){this.dataSource.rootNodes().length||this._render({error:e})},refresh:function(t){var n,i,o,r=this;t=t||{},"itemchange"==t.action&&this.editor||this.trigger(Ne)||(n=e(this.current()),i=!1,this._cancelEditor(),this._render(),this._adjustHeight(),this.options.navigatable&&((this._isActiveInTable()||this.editor)&&(i=n.is("th"),o=Math.max(this.cellIndex(n),0)),this._restoreCurrent(o,i)),r._checkBoxSelection&&r._deselectCheckRows(r.items()),this.trigger(Oe))},_angularFooters:function(e){var t,n,i,o=this.dataSource.aggregates(),r=this._footerItems();for(t=0;t<r.length;t++)n=r.eq(t),i=o[n.attr("data-parentId")],this._angularFooter(e,n.find("td").get(),i)},_angularFooter:function(e,t,n){var i=this.columns;this.angular(e,function(){return{elements:t,data:pe(i,function(e){return{column:e,aggregate:n&&n[e.field]}})}})},items:function(){return this._hasLockedColumns?this._items(this.tbody).add(this._items(this.lockedTable)):this._items(this.tbody)},_items:function(t){return t.find("tr[data-uid]").filter(function(){return!e(this).hasClass(xt.footerTemplate)})},_footerItems:function(){var t=this.tbody;return this._hasLockedColumns&&(t=t.add(this.lockedTable)),t.find("tr").filter(function(){return e(this).hasClass(xt.footerTemplate)})},dataItems:function(){var e,t,n,i=kendo.ui.DataBoundWidget.fn.dataItems.call(this);if(this._hasLockedColumns){for(e=i.length,t=Array(2*e),n=e;--n>=0;)t[n]=t[n+e]=i[n];i=t}return i},_showNoRecordsTemplate:function(){var t,n='<div class="{0}">{1}</div>',i='<div class="k-grid-norecords-template"{1}>{0}</div>',o=this.options.scrollable&&!this.wrapper[0].style.height?' style="margin:0 auto;position:static;"':"";this._contentTree.render([]),this._hasLockedColumns&&this._lockedContentTree.render([]),t=kendo.format(i,this.options.messages.noRows,o),e(kendo.template(kendo.format(n,lt,t))({})).insertAfter(this.table)},_showStatus:function(t){var n=this.element.find(".k-status"),i=e(this.content).add(this.lockedContent);n.length||(n=e("<div class='k-status' />").appendTo(this.element)),this._contentTree.render([]),this._hasLockedColumns&&this._lockedContentTree.render([]),i.hide(),n.html(t)},_hideStatus:function(){this.element.find(".k-status").remove(),this._hideNoRecordsTempalte(),e(this.content).add(this.lockedContent).show()},_hideNoRecordsTempalte:function(){this.element.find("."+lt).remove()},_adjustHeight:function(){var e,t,n=this,i=this.element,o=i.find(xe+xt.gridContentWrap),r=i.find(xe+xt.gridHeader),a=i.find(xe+xt.gridToolbar),s=i.find(xe+xt.status),l=n._isPageable()&&n.pager&&n.pager.element.is(":visible")?ee(n.pager.element):0,d=kendo.support.scrollbar();i.css(pt,this.options.height),t=function(e){var t,n;return!!e[0].style.height||(t=e.height(),e.height("auto"),n=e.height(),e.height(""),t!=n)},t(i)&&(e=i.height()-ee(r)-ee(a)-ee(s)-l,o.height(e),this._hasLockedColumns&&(d=this.table[0].offsetWidth>this.table.parent()[0].clientWidth?d:0,this.lockedContent.height(e-d)))},_resize:function(e,t){this._applyLockedContainersWidth(),this._adjustHeight(),this.pager&&this.pager.element&&this.pager.resize(t)},_minScreenSupport:function(){var t=this.hideMinScreenCols();t&&(this.minScreenResizeHandler=he(this.hideMinScreenCols,this),e(window).on("resize",this.minScreenResizeHandler))},_iterateMinScreenCols:function(e,n){var i,o,r,a=!1;for(i=0;i<e.length;i++)o=e[i],r=o.minScreenWidth,r!==t&&null!==r&&(a=!0,r>n?this.hideColumn(o):this.showColumn(o)),!o.hidden&&o.columns&&(a=this._iterateMinScreenCols(o.columns,n)||a);return a},hideMinScreenCols:function(){var e=this.columns,t=window.innerWidth>0?window.innerWidth:screen.width;return this._iterateMinScreenCols(e,t)},destroy:function(){ne.fn.destroy.call(this);var t=this.dataSource;t.unbind(be,this._refreshHandler),t.unbind(ke,this._errorHandler),t.unbind(ye,this._progressHandler),this._navigatableTables=null,this._current=null,this._resizeHandler&&e(window).off("resize"+Ce,this._resizeHandler),this._dragging&&(this._dragging.destroy(),this._dragging=null),this.resizable&&(this.resizable.destroy(),this.resizable=null),this.reorderable&&(this.reorderable.destroy(),this.reorderable=null),this._draggableInstance&&this._draggableInstance.element&&(this._draggableInstance.destroy(),this._draggableInstance=null),this.selectable&&this.selectable.destroy(),this._userEvents&&(this._userEvents.destroy(),this._userEvents=null),this.minScreenResizeHandler&&e(window).off("resize",this.minScreenResizeHandler),this._destroyEditor(),this.element.off(Ce),this.wrapper.off(Ce),this._touchScroller&&this._touchScroller.destroy(),this._destroyPager(),t&&(t._dataMaps=null),this._autoExpandable=null,this._refreshHandler=this._errorHandler=this._progressHandler=this._dataSourceFetchProxy=null,this.thead=this.content=this.tbody=this.table=this.element=this.lockedHeader=this.lockedContent=null,this._statusTree=this._headerTree=this._contentTree=this._lockedHeaderColsTree=this._lockedContentColsTree=this._lockedHeaderTree=this._lockedContentTree=null},options:{name:"TreeList",columns:[],autoBind:!0,scrollable:!0,selectable:!1,sortable:!1,toolbar:null,height:null,columnMenu:!1,messages:{noRows:"No records to display",loading:"Loading...",requestFailed:"Request failed.",retry:"Retry",commands:{edit:"Edit",update:"Update",canceledit:"Cancel",create:"Add new record",createchild:"Add child record",destroy:"Delete",excel:"Export to Excel",pdf:"Export to PDF",search:"Search..."}},excel:{hierarchy:!0},resizable:!1,search:!1,filterable:!1,editable:!1,reorderable:!1,pageable:!1},events:[be,De,Ae,Ee,Me,Re,Le,Pe,ze,Ne,Oe,Ve,tt,nt,it,ot,Ue,we,Be,je,qe,Ge,Ke,Ye,Qe,Xe,Ze,Je],getOptions:function(){var n,i,o,r=this.options;return r.dataSource=null,n=ue(!0,{},this.options),n.columns=kendo.deepExtend([],this.columns),i=this.dataSource,o=i.options.data&&i._data,i.options.data=null,n.dataSource=e.extend(!0,{},i.options),i.options.data=o,n.dataSource.data=o,n.dataSource.page=i.page(),n.dataSource.filter=e.extend(!0,{},i.filter()),n.dataSource.pageSize=i.pageSize(),n.dataSource.sort=i.sort(),n.dataSource.group=i.group(),n.dataSource.aggregate=i.aggregate(),n.dataSource.transport&&(n.dataSource.transport.dataSource=null),n.pageable&&n.pageable.pageSize&&(n.pageable.pageSize=i.pageSize()),n.$angular=t,n},setOptions:function(e){var t,n,i,o=this.getOptions();kendo.deepExtend(o,e),e.dataSource||(o.dataSource=this.dataSource),t=this.wrapper,n=this._events,i=this.element,this.destroy(),this.options=null,t[0]!==i[0]&&(t.before(i),t.remove()),i.empty(),this.init(i,o,n),this._setEvents(o)},_toggle:function(n,i){function o(){r._toggleData(),r._isPageable()?r.refresh():r._render(),r._syncLockedContentHeight()}var r=this,a=e.Deferred().resolve().promise(),s=n.loaded();return r._isIncellEditable()&&r.editor&&(e(de()).change(),r.closeCell()),n._error&&(n.expanded=!1,n._error=t),!s&&n.expanded?a:(t===i&&(i=!n.expanded),n.expanded=i,s||(a=this.dataSource.load(n).always(he(function(){o()},this))),o(),a)},_toggleData:function(){var e=this;e._isPageable()&&e._togglePageableData()},_togglePageableData:function(){var e,t,n=this,i=n.dataSource,o=i._getData(),r=i._defaultPageableQueryOptions();n._renderProgress(!0),t=i._getChildrenMap()||i.childrenMap(i._getData()),i._processDataItemsState(o,t),e=i._processPageableQuery(o,r),r.childrenMap=e.childrenMap,r.filteredChildrenMap=e.filteredChildrenMap,i._aggregateResult=i._calculateAggregates(e.dataToAggregate,r),i.view(e.data),i.filter()||i._calculateCollapsedTotal(),n._refreshPager(),n._renderProgress(!1)},_refreshPager:function(){var e=this.pager;e&&e.refresh()},expand:function(e){return this._toggle(this.dataItem(e),!0)},collapse:function(e){return this._toggle(this.dataItem(e),!1)},_toggleChildren:function(t){var n,i=e(t.target),o=this.dataItem(i);o&&(n=o.expanded?ze:Pe,this.trigger(n,{model:o})||this._toggle(o),t.preventDefault())},_navigatable:function(){var t,n,i=this;i.options.navigatable&&(t=i.table.add(i.lockedTable),n=i.thead.parent().add(e(">table",i.lockedHeader)),i.options.scrollable&&(t=t.add(n),n.attr(We,-1)),this._navigatableTables=t,t.on(kendo.support.touch?"touchstart"+Ce:"mousedown"+Ce,rt+">:visible",he(i._tableClick,i)).on("focus"+Ce,he(i._tableFocus,i)).on("focusout"+Ce,he(i._tableBlur,i)).on("keydown"+Ce,he(i._tableKeyDown,i)))},cellIndex:function(t){var n=0;return this.lockedTable&&!e.contains(this.lockedTable[0],t[0])&&(n=f(I(this.columns)).length),e(t).parent().children().index(t)+n},_isActiveInTable:function(){var t=kendo._activeElement();return!!t&&(this.table[0]===t||e.contains(this.table[0],t)||this.lockedTable&&(this.lockedTable[0]===t||e.contains(this.lockedTable[0],t)))},_restoreCurrent:function(n,i){var o,r,a;n===t||n<0||(this._current&&this._current.removeClass("k-state-focused"),i?this.current(this.thead.find("th").eq(n)):(o=0,n=0,r=e(),this.lockedTable&&(r=this.lockedTable.find(">tbody>tr:visible").eq(o)),r=r.add(this.tbody.children().eq(o)),a=r.find(">td:visible").eq(n),this.current(a)),this._current&&P(this._current.closest("table")[0],!0))},current:function(t){var n=this._current;return t=e(t),!t.length||n&&n[0]===t[0]||(this._updateCurrentAttr(n,t),this._scrollCurrent()),t&&t.length&&(this._lastCellIndex=t.parent().children(He).index(t)),this._current},_setCurrent:function(t){var n=this;return t=e(t),t[0]&&(n._current=t,n._updateCurrentAttr(n._current,t),n._scrollCurrent()),n._current},_scrollCurrent:function(){var t,n,i,o,r,a=this._current,s=this.options.scrollable;a&&s&&(t=a.parent(),n=t.closest("table").parent(),i=n.is(".k-grid-content-locked,.k-grid-header-locked"),o=n.is(".k-grid-content-locked,.k-grid-content"),r=e(this.content)[0],o&&this._scrollTo(this._relatedRow(t)[0],r),this.lockedContent&&(this.lockedContent[0].scrollTop=r.scrollTop),i||this._scrollTo(a[0],r))},_findCurrentCell:function(){var t=this,n=t.current(),i=e(t.table).add(t.header).add(t.lockedTable).add(t.lockedHeader);return n&&i.find(n).length>0?n:i.find(xe+xt.focused)},_scrollTo:function(t,n){var i=t.tagName.toLowerCase(),o="td"===i||"th"===i,r=e(t).closest("table")[0],a=t[o?"offsetWidth":"offsetHeight"],s=n[o?"scrollLeft":"scrollTop"],l=n[o?"clientWidth":"clientHeight"],d="relative"===e(t).css("position")&&ht&&o?Math.abs(r.offsetLeft-t.offsetLeft):t[o?"offsetLeft":"offsetTop"],c=d+a,u=0,h=0,p=0;ht&&o&&(se.msie||se.edge?h=r.offsetLeft:(se.mozilla||se.webkit&&se.version>85)&&(p=r.offsetLeft-kendo.support.scrollbar())),s=Math.abs(s+h-p),u=s>d?d:c>s+l?a<=l?c-l:d:s,u=Math.abs(u+h)+p,n[o?"scrollLeft":"scrollTop"]=u},_aria:function(){var e=this.element.attr("id")||"aria";e&&(this._elementId=e+"_active_element")},_currentDataIndex:function(e,n){var i,o=n.attr("data-index");return o?(i=I(this.columns).length,i&&!e.closest("div").hasClass("k-grid-content-locked")[0]?o-i:o):t},_prevVerticalCell:function(t,n){var i,r=n.parent(),s=t.children(rt),l=s.index(r),d=this._currentDataIndex(t,n);if(d||n.hasClass("k-header"))return i=y(n),i.eq(i.length-2);if(d=Math.max(r.children(He).index(n),this._lastCellIndex||0),r.hasClass("k-filter-row"))return a(t).filter(o).eq(d);if(l==-1){if(r=t.find("tr.k-filter-row:visible"),!r[0])return a(t).filter(o).eq(d)}else r=0===l?e():s.eq(l-1);return i=r.children(He),i.eq(i.length>d?d:0)},_nextVerticalCell:function(e,n){var i,o,r,a,s,l,d=n.parent(),c=e.children(rt),u=c.index(d),h=this._currentDataIndex(e,n);if(u!=-1&&h===t&&n.hasClass("k-header"))return x(n).eq(1);if(h=h?parseInt(h,10):d.children(He).index(n),h=Math.max(h,this._lastCellIndex||0),d=c.eq(u==-1?0:u+n[0].rowSpan),o=h,this._currentDataIndex(e,n)!==t)for(r=d.children(":not(.k-group-cell):not(.k-hierarchy-cell)"),a=r.filter(":hidden"),s=0,l=a.length;s<l;s++)r.index(a[s])<h&&o--;return h=o,i=d.children(He),i.eq(i.length>h?h:0)},_verticalContainer:function(e,t){var n=e.parent(),i=this._navigatableTables.length,o=Math.floor(i/2),r=me(n[0],this._navigatableTables);return t&&(o*=-1),r+=o,(r>=0||r<i)&&(n=this._navigatableTables.eq(r)),n.find(t?"thead":"tbody")},_updateCurrentAttr:function(t,n){var i=e(t).data("headerId");e(t).removeClass(xt.focused).closest("table").removeAttr("aria-activedescendant"),i?(i=i.replace(this._elementId,""),e(t).attr("id",i)):e(t).removeAttr("id"),n.data("headerId",n.attr("id")).attr("id",this._elementId).addClass(xt.focused).closest("table").attr("aria-activedescendant",this._elementId),this._current=n},_tableKeyDown:function(t){var n=!1,i=this.current(),o=e(t.target),r=!t.isDefaultPrevented()&&!o.is(":button,a,:input,a>.k-icon");i=i?i:e(this.lockedTable).add(this.table).find(ct),r&&t.keyCode==J.UP&&(n=this._moveUp(i,t.shiftKey)),r&&t.keyCode==J.DOWN&&(n=this._moveDown(i,t.shiftKey)),r&&t.keyCode==(ht?J.LEFT:J.RIGHT)&&(n=t.altKey?this._handleExpand(i):this._moveRight(i)),r&&t.keyCode==(ht?J.RIGHT:J.LEFT)&&(n=t.altKey?this._handleCollapse(i):this._moveLeft(i)),r&&t.keyCode==J.PAGEDOWN&&(n=this._handlePageDown()),r&&t.keyCode==J.PAGEUP&&(n=this._handlePageUp()),t.keyCode!=J.ENTER&&t.keyCode!=J.F2||(n=this._handleEnterKey(i,t.currentTarget,o)),t.keyCode==J.ESC&&(n=this._handleEscKey(i,t.currentTarget)),r&&t.keyCode==J.HOME&&(n=this._handleHome(i,t.ctrlKey)),r&&t.keyCode==J.END&&(n=this._handleEnd(i,t.ctrlKey)),t.keyCode==J.TAB&&(n=this._handleTabKey(i,t.currentTarget,t.shiftKey)),n&&(t.preventDefault(),t.stopPropagation())},_handleExpand:function(e){var t=this,n=e.parent(),i=t.dataItem(n);return!e.hasClass("k-header")&&(!(!i||!i.hasChildren||i.expanded||t.trigger(Pe,{model:i}))&&(this.expand(n),!0))},_handleCollapse:function(e){var t=this,n=e.parent(),i=t.dataItem(n);return!e.hasClass("k-header")&&(!(!(i&&i.hasChildren&&i.expanded)||t.trigger(ze,{model:i}))&&(t.collapse(n),!0))},_handleHome:function(e,t){var n,i=e.parent(),o=i.parent(),r=this.lockedTable&&this.lockedTable.children("tbody")[0]===o[0],a=o[0]===this.tbody[0];if(t?n=this.lockedTable?this.lockedTable.find(ct):this.table.find(ct):(a||r)&&(a&&this.lockedTable&&(i=this._relatedRow(i)),n=i.children(at+":first")),n&&n.length)return this.current(n),!0},_handleEnd:function(e,t){var n,i=e.parent(),o=i.parent(),r=this.lockedTable&&this.lockedTable.children("tbody")[0]===o[0],a=o[0]===this.tbody[0];if(t?n=this.table.find(ut+">"+at+":last"):(a||r)&&(!a&&this.lockedTable&&(i=this._relatedRow(i)),n=i.children(at+":last")),n&&n.length)return this.current(n),!0},_handlePageDown:function(){var e=this;return!!e._isPageable()&&(e.dataSource._restorePageSizeAfterAddChild(),e.dataSource.page(e.dataSource.page()+1),!0)},_handlePageUp:function(){var e=this;return!!e._isPageable()&&(e.dataSource._restorePageSizeAfterAddChild(),e.dataSource.page(e.dataSource.page()-1),!0)},_handleEscKey:function(t,n){var i,o,r,a,s,l=kendo._activeElement(),d=this;return t&&t.parent().hasClass("k-grid-edit-row")?(d._isIncellEditable()?(o=t.parent(),a=t.index(),r=o.index(),s=o.closest("tbody"),d.closeCell(!0),d._setCurrent(s.children().eq(r).children().eq(a))):(i=e(t).parent().index(),l&&l.blur(),this.cancelRow(),i>=0&&this.current(this.items().eq(i).children(at).first())),se.msie&&se.version<9&&document.body.focus(),P(n,!0),!0):!!t.has(l).length&&(P(n,!0),!0)},_handleEnterKey:function(t,n,i){var o,r=this.options.editable,a=i.closest("[role=gridcell]");return i.is("table")||e.contains(t[0],i[0])||(t=a),t.is("th")?(t.find(".k-link").click(),!0):(o=t.find(":kendoFocusable:first"),o[0]&&t.hasClass("k-state-focused")?(o.focus(),!0):!(!r||i.is(":button,.k-button,textarea"))&&(a[0]||(a=t),this._handleEditing(a,!1,n),!0))},_handleTabKey:function(t,n,i){var o,r=this,a=r.options.editable&&r._isIncellEditable();return!(!a||t.is("th"))&&(o=e(de()).closest(xe+xt.editCell),o[0]&&o[0]!==t[0]&&(t=o),o=r._tabNext(t,n,i),o.length?(r._handleEditing(t,o,o.closest(vt)),!0):(r._preventPageSizeRestore=!1,!1))},_tabNext:function(e,t,n){var i=this,o=!0,r=n?e.prevAll(He+":first"):e.nextAll(":visible:first");return r.length||(r=e.parent(),i.lockedTable&&(o=n&&t==i.lockedTable[0]||!n&&t==i.table[0],r=i._relatedRow(r)),o&&(r=r[n?"prevAll":"nextAll"]("tr:not(.k-grouping-row):not(.k-detail-row):visible:first")),r=r.children(He+(n?":last":":first")),i.dataSource._restorePageSizeAfterAddChild()),r},_handleEditing:function(n,i,o){var r,a,s,l,d,c=this,u=e(kendo._activeElement()),h=se.msie,p=c.options.editable&&c.options.editable.update!==!1,f=c._isIncellEditable(),m=e(i).parents("tr").index(),g=e(i).index(),v=e(n).parents("tr").index(),_=n.index();if(o=e(o),s=f?n.hasClass(xt.editCell):n.parent().hasClass("k-grid-edit-row"),c.editor){if(r=c.editor.wrapper,r&&e.contains(r[0],u[0])&&(se.opera?u.blur().change().triggerHandler("blur"):(u.blur(),h&&u.blur())),!c.editor)return P(o),t;if(!c.editor.end())return c.current(f?r:r.children().filter(at).first()),a=r.find(":kendoFocusable:first")[0],a&&a.focus(),t;f?(c._preventPageSizeRestore=!0,c.closeCell(),c._preventPageSizeRestore=!1,0===e(c.table).add(c.lockedTable).find(xe+xt.editCell).length&&c.current(o.find("tbody").children().eq(v).children().eq(_))):(c.saveRow(),s=!0)}i=e(i).length&&0===o.find(i).length?o.find("tbody").children().eq(m).children().eq(g):i,i&&c.current(i),P(o,!0),p&&(!s&&!i||i?(d=c.current().index(),f?(c.editCell(c.current()),l=e(c.table).add(c.lockedTable).find(xe+xt.editCell)[0],l?c._current=e(l):c.current(c._findCurrentCell())):(c.editRow(c.current().parent()),c.current(c.editor.wrapper.children().eq(d)),c.current().removeClass("k-state-focused"))):c.dataSource._restorePageSizeAfterAddChild())},_moveRight:function(e){var t=e.nextAll(at).first(),n=e.parent();return e.hasClass("k-header")&&(t=e.nextAll(st).first(),!t[0]&&this.lockedTable&&e.closest("table")[0]===this.lockedHeader.find("table")[0]&&(t=this.thead.find(st+":first"))),!t[0]&&this.lockedTable&&e.closest("table")[0]===this.lockedTable[0]&&(t=this._relatedRow(n).children(at).first()),t[0]&&t[0]!==e[0]&&P(t.closest("table"),!0),this.current(t),!0},_moveLeft:function(e){var t=e.prevAll(at).first(),n=e.parent();return e.hasClass("k-header")&&(t=e.prevAll(st).first(),!t[0]&&this.lockedTable&&e.closest("table")[0]===this.thead.parent()[0]&&(t=this.lockedHeader.find(">table>thead>tr>"+st+":last"))),!t[0]&&this.lockedTable&&e.closest("table")[0]===this.table[0]&&(t=this._relatedRow(n).children(at).last()),t[0]&&t[0]!==e[0]&&P(t.closest("table"),!0),this.current(t),!0},_moveUp:function(e,t){var n,i,o=e.parent().parent();return t?(n=e.parent(),n=n.prevAll(dt+":first"),n=e.parent().is(dt)?n.children().eq(e.index()):n.children(He+":last")):(n=this._prevVerticalCell(o,e),n[0]||(this._lastCellIndex=0,o=this._verticalContainer(o,!0),n=this._prevVerticalCell(o,e),n[0]&&P(o.parent(),!0))),i=this._lastCellIndex||0,this.current(n),this._lastCellIndex=i,!0},_moveDown:function(e,t){var n,i,o=e.parent().parent();return t?(n=e.parent(),n=n.nextAll(dt+":first"),n=e.parent().is(dt)?n.children().eq(e.index()):n.children(He+":first")):(n=this._nextVerticalCell(o,e),n[0]||(this._lastCellIndex=0,o=this._verticalContainer(o),n=this._nextVerticalCell(o,e),n[0]&&P(o.parent(),!0))),i=this._lastCellIndex||0,this.current(n),this._lastCellIndex=i,!0},_tableClick:function(t){var n=e(t.currentTarget),i=n.is("th"),o=this.table.add(this.lockedTable),r=this.thead.parent().add(e(">table",this.lockedHeader)),a=c(t.target),s=n.closest("table")[0];kendo.support.touch||s!==o[0]&&s!==o[1]&&s!==r[0]&&s!==r[1]||(this.options.navigatable&&this.current(n),!i&&a||setTimeout(function(){c(kendo._activeElement())&&e.contains(s,kendo._activeElement())||P(s,!0)}),i&&t.preventDefault())},_setTabIndex:function(e){this._navigatableTables.attr(We,-1),e.attr(We,0)},_tableFocus:function(t){var n=this.current(),i=e(t.currentTarget);n&&n.is(":visible")?n.addClass(xt.focused):this.current(i.find(ct)),this._setTabIndex(i)},_tableBlur:function(){var e=this.current();e&&e.removeClass(xt.focused)},_attachEvents:function(){var e=this,t=xe+xt.retry;e._userEvents=new kendo.UserEvents(e.element,{press:he(e._onPress,e),allowSelection:!0}),this.element.on(Se+Ce,t,this._dataSourceFetchProxy).on(Se+Ce,".k-button[data-command]",he(this._commandClick,this)).on(Te+Ce,".k-grid-search input",he(this._search,this)),this._attachCellEditingEventHandlers()},_onPress:function(t){var n=this,i=xe+xt.iconCollapse+", ."+xt.iconExpand+", ."+xt.refresh;e(t.event.target).is(i)&&n._toggleChildren.call(n,t.event)},_attachCellEditingEventHandlers:function(){var n=this,i=n.options.editable,o=n.selectable&&n.selectable.options.multiple,r=function(t){var i=de(),o=n.editor||{},r=o.element;!r||e.contains(r[0],i)||r[0]===i||e(i).closest(".k-animation-container").length||o.end()&&(t.relatedTarget||!n._isPageable()||H(n.dataSource._addChildPageSize)||(n._preventPageSizeRestore=!1),n.closeCell()),n._preventPageSizeRestore=!1};n._isIncellEditable()&&i.update!==!1&&n.wrapper.on(Se+Ce,"tr:not(.k-grouping-row) > td",function(i){var r=e(this),a=n.lockedTable&&r.closest("table")[0]===n.lockedTable[0];return r.hasClass(xt.editCell)||r.has("a.k-grid-delete").length||r.has("button.k-grid-delete").length||r.closest("tbody")[0]!==n.tbody[0]&&!a||e(i.target).is(":input")||e(i.target).hasClass(xt.iconExpand)||e(i.target).hasClass(xt.iconCollapse)?(n.editor||n.dataSource._restorePageSizeAfterAddChild(),n._preventPageSizeRestore=!1,t):(n.editor?n.editor.end()&&(o&&e(de()).blur(),n.closeCell(),n.editCell(r)):n.editCell(r),t)}).on("mousedown"+Ce,"tr:not(.k-grouping-row) > td",function(t){n._preventPageSizeRestore=!(!n.editor||!n._isPageable()||H(n.dataSource._addChildPageSize))&&e(t.target).parents(xe+xt.editRow).length>0}).on("focusin"+Ce,function(){e.contains(this,de())||(clearTimeout(n._closeCellTimeout),n._closeCellTimeout=null)}).on("focusout"+Ce,function(e){n._closeCellTimeout=setTimeout(function(){r(e)},1)})},_commandByName:function(t){var n,i,o,r,a=this.columns,s=e.isArray(this.options.toolbar)?this.options.toolbar:[];if(t=t.toLowerCase(),Ct[t])return Ct[t];for(n=0;n<a.length;n++)if(o=a[n].command)for(i=0;i<o.length;i++)if(r=o[i].name,r&&r.toLowerCase()==t)return o[i];for(n=0;n<s.length;n++)if(r=s[n].name,r&&r.toLowerCase()==t)return s[n]},_commandClick:function(n){var i=e(n.currentTarget),o=i.attr("data-command"),r=this._commandByName(o),a=i.parentsUntil(this.wrapper,"tr");a=a.length?a:t,r&&(r.methodName?this[r.methodName](a):r.click&&r.click.call(this,n),n.preventDefault())},_search:function(e){var t=this,n=e.currentTarget;clearTimeout(t._searchTimeOut),t._searchTimeOut=setTimeout(function(){var e,i,o,r,a;if(t._searchTimeOut=null,e=t.options,i=e.search?e.search.fields:null,o={filters:[],logic:"or"},r=n.value,i||(i=m(e.columns)),r)for(a=0;a<i.length;a++)o.filters.push({field:i[a],operator:"contains",value:r});else o={};t.dataSource.filter(o)},300)},_ensureExpandableColumn:function(){var e,t;this._autoExpandable&&delete this._autoExpandable.expandable,e=fe(this.columns,i(n("hidden"))),e=fe(e,i(n("command"))),e=fe(e,i(n("selectable"))),t=fe(e,n("expandable")),this.columns.length&&!t.length&&(this._autoExpandable=e[0],e[0].expandable=!0)},_columns:function(){var t,n=this,i=this.options.columns||[];this.columns=pe(i,function(e){return e="string"==typeof e?{field:e}:e,ue({encoded:!0},e)}),t=I(i),t.length>0&&(this._hasLockedColumns=!0,this.columns=t.concat(M(this.columns))),this.columns=b(this.columns),this._ensureExpandableColumn(),this._columnTemplates(),this._columnAttributes(),
e.grep(f(n.columns),function(e){return e.selectable&&(n._includeChildren=e.includeChildren),e.selectable}).length&&(n._checkBoxSelection=!0,n.element.on(Se+Ce,"tbody > tr "+bt,he(n._checkboxClick,n)),n.element.on(Se+Ce,"thead > tr "+bt,he(n._headerCheckboxClick,n)))},_columnTemplates:function(){var e,t,n,i=f(this.columns);for(e=0,t=i.length;e<t;e++)n=i[e],n.template&&(n.template=kendo.template(n.template)),n.headerTemplate&&(n.headerTemplate=kendo.template(n.headerTemplate)),n.footerTemplate&&(n.footerTemplate=kendo.template(n.footerTemplate))},_columnAttributes:function(){function t(t){var n,i,o,r;if(t&&t.style)for(n=t.style.split(";"),t.style={},i=0;i<n.length;i++)o=n[i].split(":"),r=kendo.trim(o[0]),r&&(t.style[e.camelCase(r)]=kendo.trim(o[1]))}var n,i,o=this.columns;for(n=0,i=o.length;n<i;n++)t(o[n].attributes),t(o[n].headerAttributes)},_clearSortClasses:function(){var e=this;e.content&&e.content.find("col:not(.k-group-col):not(.k-hierarchy-col)").removeClass("k-sorted"),e.lockedContent&&e.lockedContent.find("col:not(.k-group-col):not(.k-hierarchy-col)").removeClass("k-sorted")},_layout:function(){var e,t,n,i=this.columns,o=this.element,r="";this.wrapper=o.addClass(xt.wrapper),r="<div class='#= gridHeader #'>",this._hasLockedColumns&&(r+="<div class='k-grid-header-locked'><table role='grid'><colgroup></colgroup><thead role='rowgroup'></thead></table></div>"),r+="<div class='#= gridHeaderWrap #'><table role='grid'><colgroup></colgroup><thead role='rowgroup'></thead></table></div></div>",this._hasLockedColumns&&(r+="<div class='k-grid-content-locked'><table role='treegrid' tabindex='0'><colgroup></colgroup><tbody></tbody></table></div>"),r+="<div class='#= gridContentWrap # k-auto-scrollable'><table role='treegrid' tabindex='0'><colgroup></colgroup><tbody></tbody></table></div>",this.options.scrollable||(r="<table role='treegrid' tabindex='0'><colgroup></colgroup><thead class='#= gridHeader #' role='rowgroup'></thead><tbody></tbody></table>"),this.options.toolbar&&(r="<div class='#= header # #= gridToolbar #'></div>"+r),o.append(kendo.template(r)(xt)+"<div class='k-status'></div>"),this.toolbar=o.find(xe+xt.gridToolbar),e=o.find(xe+xt.gridHeader).find("thead").addBack().filter("thead"),this.thead=e.last(),this.options.scrollable&&(t=kendo.support.isRtl(o),o.find("div."+xt.gridHeader).css(t?"padding-left":"padding-right",kendo.support.scrollbar())),n=o.find(xe+xt.gridContentWrap),n.length?this.content=n:n=o,this.table=n.find(">table"),this.tbody=this.table.find(">tbody"),this._hasLockedColumns&&(this.lockedHeader=e.first().closest(".k-grid-header-locked"),this.lockedContent=o.find(".k-grid-content-locked"),this.lockedTable=this.lockedContent.children()),this._initVirtualTrees(),this._renderCols(),this._renderHeader(),this.angular("compile",function(){return{elements:e.find("th.k-header").get(),data:pe(i,function(e){return{column:e}})}})},_initVirtualTrees:function(){this._headerColsTree=new K.Tree(this.thead.prev()[0]),this._contentColsTree=new K.Tree(this.tbody.prev()[0]),this._headerTree=new K.Tree(this.thead[0]),this._contentTree=new K.Tree(this.tbody[0]),this._statusTree=new K.Tree(this.element.children(".k-status")[0]),this.lockedHeader&&(this._lockedHeaderColsTree=new K.Tree(this.lockedHeader.find("colgroup")[0]),this._lockedContentColsTree=new K.Tree(this.lockedTable.find(">colgroup")[0]),this._lockedHeaderTree=new K.Tree(this.lockedHeader.find("thead")[0]),this._lockedContentTree=new K.Tree(this.lockedTable.find(">tbody")[0]))},_toolbar:function(){var t,n=this.options.toolbar,i=this.toolbar;n&&(e.isArray(n)?(t=this._buildCommands(n),new K.Tree(i[0]).render(t)):i.append(kendo.template(n)({})),this.angular("compile",function(){return{elements:i.get()}}))},_lockedColumns:function(){return fe(this.columns,n("locked"))},_nonLockedColumns:function(){return fe(this.columns,i(n("locked")))},_templateColumns:function(){return fe(this.columns,n("template"))},_flushCache:function(){this.options.$angular&&this._templateColumns().length&&(this._contentTree.render([]),this._hasLockedColumns&&this._lockedContentTree.render([]))},_render:function(t){var n,i,o,r,a,s,l,d,c,u,h,p,m,g=this;t=t||{},t=g._renderOptions(t),n=this.options.messages,i=g._isPageable(),o=g.dataSource,r={children:t.filteredChildrenMap||t.childrenMap,ids:t.idsMap},a=i?r&&r.children&&r.ids?r:o._initDataMaps(o._getData()):{},s=a.children,l=a.ids,t.childrenMap=s,t.idsMap=l,d=g._dataToRender(t),c=g._renderedModelLevel(d[0],t),u=kendo.attr("uid"),p=this.select().removeClass("k-state-selected").map(function(t,n){return e(n).attr(u)}),this._absoluteIndex=0,this._angularItems("cleanup"),this._angularFooters("cleanup"),this._flushCache(),g._clearRenderMap(),t.error?this._showStatus(kendo.template("#: messages.requestFailed # <button class='#= buttonClass #'>#: messages.retry #</button>")({buttonClass:[xt.button,xt.retry].join(" "),messages:n})):d.length?(i&&(m=g._viewChildrenMap(t)),this._hideStatus(),h=this._hasFooterTemplate(),this._contentTree.render(this._trs({columns:f(M(this.columns)),editedColumn:t.editedColumn,editedColumnIndex:t.editedColumnIndex,aggregates:t.aggregates,selected:p,data:d,childrenMap:s,viewChildrenMap:m,hasFooterTemplate:h,visible:!0,level:0})),this._hasLockedColumns&&(this._absoluteIndex=0,this._lockedContentTree.render(this._trs({columns:f(I(this.columns)),editedColumn:t.editedColumn,editedColumnIndex:t.editedColumnIndex,aggregates:t.aggregates,selected:p,data:d,childrenMap:s,viewChildrenMap:m,hasFooterTemplate:h,visible:!0,level:c})))):(this._hideStatus(),this._showNoRecordsTemplate()),this._touchScroller&&this._touchScroller.contentResized(),this._muteAngularRebind(function(){this._angularItems("compile"),this._angularFooters("compile")}),this.items().filter(function(){return e.inArray(e(this).attr(u),p)>=0}).addClass("k-state-selected"),this._syncLockedContentHeight(),g._togglePagerVisibility(),g._setExpanderElement()},_setExpanderElement:function(){var t,n=this,i="k-grid-content-expander",o='<div class="'+i+'"></div>';n.options.scrollable&&n.wrapper.is(":visible")&&(t=n.table.parent().children("."+i),n.dataSource&&n.dataSource.view().length?t[0]&&t.remove():(t[0]||(t=e(o).appendTo(n.table.parent())),n.thead&&t.width(n.thead.width())))},_renderProgress:function(e){kendo.ui.progress(this.wrapper,e)},_renderOptions:function(e){var t,n,i;return e=e||{},t=this,n=t.dataSource._getDataMaps(),i=t.dataSource.filter(),t._isPageable()&&(e.childrenMap=n.children,e.idsMap=n.ids,i&&(e.filteredChildrenMap=n.filteredChildren)),e},_renderedModelLevel:function(e,t){return this._isPageable()?this.dataSource._pageableModelLevel(e,t):0},_viewChildrenMap:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m;for(e=e||{},t=this,n=t.dataSource,i=n.childrenMap(n.view()),o=n._modelIdField(),r=n._parentNodesNotInView(),t._clearRenderMap(),f=0;f<r.length;f++)for(a=r[f],s=a[o],t._markNodeAsNonRenderable(s),i[s]=i[s]||[],l=n._parentNodes(a),p=l.slice(),p.push(a),m=0;m<p.length-1;m++)d=p[m],c=d[o],t._markNodeAsNonRenderable(c),i[c]=i[c]||[],u=p[m+1],h=u[o],t._markNodeAsNonRenderable(h),i[h]=i[h]||[],i[c].indexOf(u)===-1&&i[c].unshift(u);return i},_clearRenderMap:function(){this._skipRenderingMap={}},_dataToRender:function(e){var t=this;return t._isPageable()?t.dataSource._pageableRootNodes(e):t.dataSource.rootNodes()},_markNodeAsNonRenderable:function(e){this._skipRenderingMap[e]=!0},_adjustRowsHeight:function(e,t){var n,i,o,r,a,s,l,d,c,u;if(this._hasLockedColumns){for(n=e[0].rows,i=n.length,r=t[0].rows,a=e.add(t),s=a.length,l=[],o=0;o<i&&r[o];o++)n[o].style.height&&(n[o].style.height=r[o].style.height="");for(o=0;o<i&&r[o];o++)d=n[o].offsetHeight,c=r[o].offsetHeight,u=0,d>c?u=d:d<c&&(u=c),l.push(u);for(o=0;o<s;o++)a[o].style.display="none";for(o=0;o<i;o++)l[o]&&(n[o].style.height=r[o].style.height=l[o]+1+"px");for(o=0;o<s;o++)a[o].style.display=""}},_ths:function(t,n){var i,o,r,a,s,l,d,c,u,h,p=[];for(u=0,h=t.length;u<h;u++)i=t[u],r=[],a=[xt.header],i.selectable?(c=f(t),d=me(i,c),s={scope:"col",role:"columnheader",className:a.join(" ")},i.headerTemplate&&(o=i.headerTemplate({})),o=i.headerTemplate?o:kendo.template(kt)({}),n&&!i.colSpan&&(s.rowSpan=n),d>-1&&(s[kendo.attr("index")]=d),r.push(X(o)),p.push(Y("th",e.extend(!0,{},s,i.headerAttributes),r))):(o=i.headerTemplate?i.headerTemplate({}):i.title||i.field||"",l=i.headerTemplate?X(o):Q(o),r.push(i.sortable?Y("a",{href:"#",className:xt.link},[l]):l),s={"data-field":i.field,"data-title":i.title,style:i.hidden===!0?{display:"none"}:{},className:a.join(" "),role:"columnheader"},i.columns||(s.rowSpan=n?n:1),i.headerAttributes&&(1===i.headerAttributes.colSpan&&delete i.headerAttributes.colSpan,i.headerAttributes["class"]&&(s.className+=" "+i.headerAttributes["class"],delete i.headerAttributes["class"])),i["data-index"]>-1&&(s["data-index"]=i["data-index"]),s=ue(!0,{},s,i.headerAttributes),p.push(Y("th",s,r)));return p},_cols:function(e){var t,n,i,o=[];for(i=0;i<e.length;i++)e[i].hidden!==!0&&(t=e[i].width,n={},t&&0!==parseInt(t,10)&&(n.style={width:"string"==typeof t?t:t+"px"}),o.push(Y("col",n)));return o},_clearColsCache:function(){this._headerColsTree.render([]),this.options.scrollable&&this._contentColsTree.render([]),this._hasLockedColumns&&(this._lockedHeaderColsTree.render([]),this._lockedContentColsTree.render([]))},_renderCols:function(){var e=M(this.columns);this._headerColsTree.render(this._cols(f(e))),this.options.scrollable&&this._contentColsTree.render(this._cols(f(e))),this._hasLockedColumns&&(e=I(this.columns),this._lockedHeaderColsTree.render(this._cols(f(e))),this._lockedContentColsTree.render(this._cols(f(e))))},_retrieveFirstColumn:function(t,n){var i,o=e();if(n.length&&t[0]){for(i=t[0];i.columns&&i.columns.length;)i=i.columns[0],n=n.filter(":not(:first())");o=o.add(n)}return o},_updateFirstColumnClass:function(){var t,n=this,i=n.columns||[],o=n.thead.find(">tr:not(:first)");i=M(i),t=n._retrieveFirstColumn(i,o),n.lockedHeader&&(o=n.lockedHeader.find("thead>tr:not(.k-filter-row):not(:first)"),i=I(n.columns),t=t.add(n._retrieveFirstColumn(i,o))),t.each(function(){var t=e(this).find("th");t.removeClass("k-first"),t.eq(0).addClass("k-first")})},_updateRowSpans:function(e){var t,n;for(t=e.length-1;t>=0;t--)n=g(e[t].cells).length>0,n&&(e[t].rowSpan=e.length-t)},_setColumnDataIndexes:function(e){for(var t=0;t<e.length;t++)e[t]["data-index"]=t},_updateColumnCellIndex:function(){var e,t=0;this.lockedHeader&&(e=this.lockedHeader.find("thead"),t=A(e,I(this.columns))),A(this.thead,M(this.columns),t)},_setParentsVisibility:function(e,t){var n,i,o=this.columns,r=[],a=t?function(e){return _(e.columns).length&&e.hidden}:function(e){return!_(e.columns).length&&!e.hidden};if(S(e,o,r)&&r.length)for(n=r.length-1;n>=0;n--)i=r[n],a(i)&&(i.hidden=!t)},_prepareColumns:function(t,n,i,o,r){var a,s,l=o||t[t.length-1],d=t[l.index+1],c=0;for(a=0;a<n.length;a++)s=e.extend({},n[a],{headerAttributes:n[a].headerAttributes||{}}),l.cells.push(s),n[a].columns&&n[a].columns.length&&(d||(d={rowSpan:0,cells:[],index:t.length},t.push(d)),n[a].columns.length&&(s.headerAttributes.colSpan=g(n[a].columns).length||1,s.headerAttributes["data-colspan"]=f(n[a].columns).length),this._prepareColumns(t,n[a].columns,s,d,n[a]),s.hidden||(c+=s.headerAttributes.colSpan-1),l.rowSpan=t.length-l.index),n[a].rowIndex=l.index,r&&(n[a].parentColumn=r),n[a].cellIndex=l.cells.length-1;i&&(i.headerAttributes.colSpan+=c)},_renderHeaderTree:function(e,t,n){var i,o=[],r=[];if(n){for(o=[{rowSpan:1,cells:[],index:0}],this._prepareColumns(o,t),this._updateRowSpans(o),i=0;i<o.length;i++)r.push(Y("tr",{role:"row"},this._ths(o[i].cells,o[i].rowSpan)));e.render(r)}else e.render([Y("tr",{role:"row"},this._ths(t))])},_renderHeader:function(){var e=M(this.columns),n=fe(this.columns,function(e){return e.columns!==t}).length>0;this._setColumnDataIndexes(f(this.columns)),this._renderHeaderTree(this._headerTree,e,n),this._hasLockedColumns&&(e=I(this.columns),this._renderHeaderTree(this._lockedHeaderTree,e,n),this._applyLockedContainersWidth(),this._syncLockedHeaderHeight()),this._updateFirstColumnClass()},_applyLockedContainersWidth:function(){var e,t,n,i,o,r;this._hasLockedColumns&&(e=l(this.lockedHeader.find(">table>colgroup>col")),t=this.thead.parent(),n=l(t.find(">colgroup>col")),i=this.wrapper[0].clientWidth,o=kendo.support.scrollbar(),e>=i&&(e=i-3*o),this.lockedHeader.add(this.lockedContent).width(e),t.add(this.table).width(n),r=i-e,this.content.width(r-1),t.parent().width(r-o-2))},_trs:function(t){var n,i,o,r,a,s,l,d,c,u=this,h=[],p=t.level,f=t.data,m=this.dataSource,g=m.aggregates()||{},v=m._modelIdField(),_=m._modelParentIdField(),b=t.columns,w=u._isPageable(),k=t.childrenMap||m.childrenMap(m._getData());for(s=0,l=f.length;s<l;s++)if(o=[],n=f[s],d=n[v],a=w?k[d]:n.loaded()?m.childNodes(n):[],r=a&&a.length,i={role:"row"},i[kendo.attr("uid")]=n.uid,r&&(i["aria-expanded"]=!!n.expanded),t.visible?(!w||w&&!u._skipRenderingMap[d])&&(this._absoluteIndex%2!==0&&o.push(xt.alt),this._absoluteIndex++):i.style={display:"none"},e.inArray(n.uid,t.selected)>=0&&o.push(xt.selected),r&&o.push(xt.group),n._edit&&o.push("k-grid-edit-row"),i.className=o.join(" "),u._skipRenderingMap[d]||(c=this._tds({model:n,attr:i,level:w?u._renderedModelLevel(n,t):p,editedColumn:t.editedColumn,editedColumnIndex:t.editedColumnIndex},b,he(this._td,this)),h.push(c)),r){if(w&&(a=(t.viewChildrenMap||{})[d]||[]),0===a.length)continue;h=h.concat(this._trs({columns:b,editedColumn:t.editedColumn,editedColumnIndex:t.editedColumnIndex,aggregates:g,selected:t.selected,visible:w?t.visible:t.visible&&!!n.expanded,data:a,childrenMap:t.childrenMap||k,hasFooterTemplate:t.hasFooterTemplate,viewChildrenMap:t.viewChildrenMap,level:p+1}))}return t.hasFooterTemplate&&n&&(i={className:xt.footerTemplate,"data-parentId":n[_]},t.visible||(i.style={display:"none"}),h.push(this._tds({model:g[n[_]],attr:i,level:p,editedColumn:t.editedColumn,editedColumnIndex:t.editedColumnIndex},b,this._footerId))),h},_footerId:function(t){var n=[],i=t.column,o=t.column.footerTemplate||e.noop,r=t.model[i.field]||{},a={role:"gridcell",style:i.hidden===!0?{display:"none"}:{}};return i.expandable&&(n=n.concat(s({level:t.level+1,className:xt.iconPlaceHolder}))),i.attributes&&ue(!0,a,i.attributes,{style:i.hidden===!0?{display:"none"}:{}}),n.push(X(o(r)||"")),Y("td",a,n)},_hasFooterTemplate:function(){return!!fe(f(this.columns),function(e){return e.footerTemplate}).length},_tds:function(e,t,n){var i,o,r,a=[],s=(e.editedColumn||{}).field,l=this._isIncellEditable(),d=t.length;for(o=0;o<d;o++)i=t[o],r=n({model:e.model,column:i,editColumn:!l||l&&i.field===s&&e.editedColumnIndex===o,level:e.level}),a.push(r);return Y("tr",e.attr,a)},_td:function(e){var t,n=[],i=e.model,o=e.column,r={role:"gridcell",style:o.hidden===!0?{display:"none"}:{}},a=this._isIncellEditable(),l=!1;return o.attributes&&ue(!0,r,o.attributes),this.options.navigatable&&(r["aria-describedby"]=o.headerAttributes.id),i._edit&&o.field&&e.editColumn&&(a||!a&&B(o,i))?(r[kendo.attr("container-for")]=o.field,a&&(r.className&&r.className.indexOf(xt.editCell)!==-1?r.className+=" "+xt.editCell:r.className||(r.className=xt.editCell))):(o.expandable&&(n=s({level:e.level,className:xt.iconPlaceHolder}),t=[xt.icon],t.push(i.hasChildren?i.expanded?xt.iconCollapse:xt.iconExpand:xt.iconHidden),i._error?t.push(xt.refresh):!i.loaded()&&i.expanded&&t.push(xt.loading),n.push(Y("span",{className:t.join(" ")})),r.style["white-space"]="nowrap"),L(o,i)&&(r.className?r.className+=xt.dirtyCell:r.className||(r.className=xt.dirtyCell)),o.command?(r.className&&r.className.indexOf("k-command-cell")!==-1?r.className+=" k-command-cell":r.className||(r.className="k-command-cell"),l=fe(o.command,function(e){return e===Ae||e.name===Ae}).length>0,n=this._buildCommands(i._edit&&!this._isIncellEditable()&&l?["update","canceledit"]:o.command)):n.push(this._cellContent(o,i)),r["class"]&&(r.className=r["class"]+" "+r.className)),Y("td",r,n)},_cellContent:function(e,t){var n,i=this,o=i._isIncellEditable(),r=o?i._evalDirtyIndicatorTemplate(e,t):"";return e.selectable?X(wt):(e.template?n=i._evalColumnTemplate(e,t):e.field?(n=t.get(e.field),null===n||H(n)?n=r:(e.format&&(n=kendo.format(e.format,n)),n=r+n)):(null===n||H(n))&&(n=""),e.template||!e.encoded?X(n):o?X(n):Q(n))},_evalColumnTemplate:function(e,t){return this._isIncellEditable()?this._evalCustomColumnTemplate(e,t):e.template(t)},_evalCustomColumnTemplate:function(e,t){var n=this,i=n._customTemplateSettings(),o="#=this.columnTemplate("+i.paramName+")#",r=n._dirtyIndicatorTemplate(e.field)+o,a=he(le(r,i),{columnTemplate:e.template});return a(t)},_evalDirtyIndicatorTemplate:function(e,t){var n=this._dirtyIndicatorTemplate(e.field);return le(n)(t)},_dirtyIndicatorTemplate:function(e){var t,n=this,i=n._customTemplateSettings(),o=i.paramName;return e&&o?(t="["===e.charAt(0)?kendo.expr(e,o+".dirtyFields"):o+".dirtyFields['"+e+"']","#= "+o+" && "+o+".dirty && "+o+".dirtyFields && "+t+" ? '<span class=\"k-dirty\"></span>' : '' #"):""},_customTemplateSettings:function(){return ue({},kendo.Template,this.options.templateSettings)},_buildCommands:function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(this._handleCommand(e[t]));return n},_handleCommand:function(e){var t=(e.name||e).toLowerCase(),n=this.options.messages.commands[t],i=[];return e=ue({},Ct[t],{text:n},e),e.imageClass&&i.push(Y("span",{className:["k-icon",e.imageClass].join(" ")})),e.template?X(kendo.template(e.template)({message:e.text||this.options.messages.commands.search})):this._button(e,t,i)},_button:function(e,t,n){return Y("button",{type:"button","data-command":t,className:["k-button k-button-icontext",e.className].join(" ")},n.concat([Q(e.text||e.name)]))},_positionResizeHandle:function(n){var i,o,r,s,l,d,c,u,h,p,f,m=e(n.currentTarget),g=this.resizeHandle,v=m.position(),_=0,b=Z(m),w=m.closest("div"),k=t!==n.buttons?n.buttons:n.which||n.button,y=this.options.columnResizeHandleWidth||3,x=3*y/2,C=b;if(t===k||0===k){if(g||(g=this.resizeHandle=e('<div class="k-resize-handle"><div class="k-resize-handle-inner"></div></div>')),h=a(m.closest("thead")).filter(":visible"),ht)u=kendo.scrollLeft(w),(se.mozilla||se.webkit&&se.version>=85)&&(u*=-1),c=parseFloat(w.css("borderLeftWidth")),C=m.offset().left+u-parseFloat(m.css("marginLeft"))-(w.offset().left+c),_=C<=u?x:0,i=m.closest(".k-grid-header-wrap, .k-grid-header-locked"),d=i[0].scrollWidth-i[0].offsetWidth,l=parseFloat(i.css("marginLeft")),o=se.msie?2*kendo.scrollLeft(i)+c-l-_:0,r=se.webkit&&se.version<85?d-_-l+c:-_,s=se.mozilla?c-l-_:0,C-=r+s+o;else for(p=0;p<h.length&&h[p]!=m[0];p++)C+=h[p].offsetWidth;w.append(g),g.show().css({top:v.top,left:C-x,height:ee(m),width:3*y}).data("th",m),f=this,g.off("dblclick"+Ce).on("dblclick"+Ce,function(){var t=m.index();e.contains(f.thead[0],m[0])&&(t+=fe(f.columns,function(e){return e.locked&&!e.hidden}).length),f.autoFitColumn(t)})}},autoFitColumn:function(t){var n,i,r,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k=this,y=k.options,x=k.columns,C=kendo.support.browser,S=k.lockedHeader?a(k.lockedHeader.find(">table>thead")).filter(o).length:0;if(t="number"==typeof t?x[t]:ge(t)?fe(x,function(e){return e===t})[0]:fe(x,function(e){return e.field===t})[0],t&&!t.hidden){for(n=me(t,x),s=t.locked,r=s?k.lockedHeader.children("table"):k.thead.parent(),i=r.find("[data-index='"+n+"']"),d=s?k.lockedTable:k.table,c=k.footer||e(),k.footer&&k.lockedContent&&(c=k.footer.children(s?".k-grid-footer-locked":".k-grid-footer-wrap")),u=c.find("table").first(),k.lockedHeader&&S>=n&&!s&&(n-=S),h=0;h<x.length&&x[h]!==t;h++)x[h].hidden&&n--;if(l=y.scrollable?r.find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+n+")").add(d.children("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+n+")")).add(u.find("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+n+")")):d.children("colgroup").find("col:not(.k-group-col):not(.k-hierarchy-col):eq("+n+")"),p=r.add(d).add(u),f=Z(i),l.width(""),p.css("table-layout","fixed"),l.width("auto"),p.addClass("k-autofitting"),p.css("table-layout",""),m=Math.ceil(Math.max(Z(i),Z(d.find("tr").eq(0).children("td:visible").eq(n)),Z(u.find("tr").eq(0).children("td:visible").eq(n)))),l.width(m),t.width=m,y.scrollable){for(g=r.find("col"),_=0,b=0,w=g.length;b<w;b+=1){if(v=g[b].style.width,!v||v.indexOf("%")!=-1){_=0;break}_+=parseInt(v,10)}_&&p.each(function(){this.style.width=_+"px"})}C.msie&&8==C.version&&(p.css("display","inline-table"),setTimeout(function(){p.css("display","table")},1)),p.removeClass("k-autofitting"),k.trigger(Ye,{column:t,oldWidth:f,newWidth:m}),k._applyLockedContainersWidth(),k._syncLockedContentHeight(),k._syncLockedHeaderHeight()}},_adjustLockedHorizontalScrollBar:function(){var e=this.table,t=e.parent(),n=e[0].offsetWidth>t[0].clientWidth?kendo.support.scrollbar():0;this.lockedContent.height(ee(t)-n)},_syncLockedContentHeight:function(){this.lockedTable&&(this._touchScroller||this._adjustLockedHorizontalScrollBar(),this._adjustRowsHeight(this.table,this.lockedTable),this._syncLockedScroll())},_syncLockedHeaderHeight:function(){var e,t;this.lockedHeader&&(e=this.lockedHeader.children("table"),t=this.thead.parent(),this._adjustRowsHeight(e,t),d(e,t))},_syncLockedScroll:function(){this.options.scrollable&&(this.lockedContent[0].scrollTop=this.content[0].scrollTop)},_resizable:function(){if(this.options.resizable){this.resizable&&this.resizable.destroy();var t=this;e(this.lockedHeader).find("thead").add(this.thead).on("mousemove"+Ce,"th",e.proxy(this._positionResizeHandle,this)),this.resizable=new kendo.ui.Resizable(this.wrapper,{handle:".k-resize-handle",start:function(n){var i,o,r=e(n.currentTarget).data("th"),s=e.inArray(r[0],a(r.closest("thead")).filter(":visible")),l="col:eq("+s+")";t.wrapper.addClass("k-grid-column-resizing"),t.lockedHeader&&e.contains(t.lockedHeader[0],r[0])?(i=t.lockedHeader,o=t.lockedTable):(i=t.thead.parent(),o=t.table),this.col=o.children("colgroup").find(l).add(i.find(l)),this.th=r,this.startLocation=n.x.location,this.columnWidth=Z(r),this.table=this.col.closest("table"),this.totalWidth=this.table.width()},resize:function(e){var t=ht?-1:1,n=11,i=e.x.location*t-this.startLocation*t;this.columnWidth+i<n&&(i=n-this.columnWidth),this.table.width(this.totalWidth+i),this.col.width(this.columnWidth+i)},resizeend:function(){var e,n,i;t.wrapper.removeClass("k-grid-column-resizing"),e=this.th.attr("data-field"),n=fe(f(t.columns),function(t){return t.field==e}),i=Math.floor(Z(this.th)),n[0].width=i,t._resize(),t._syncLockedContentHeight(),t._syncLockedHeaderHeight(),t.trigger(Ye,{column:n,oldWidth:this.columnWidth,newWidth:i}),this.table=this.col=this.th=null}})}},_sortable:function(){var n,i,o,s,l,d,c,u=this.options.sortable,h=fe(this.columns,function(e){return e.columns!==t}).length>0;if(u)for(s=h?this.lockedHeader?r(a(this.lockedHeader.find(">table>thead")).add(a(this.thead))):a(this.thead):e(this.lockedHeader).add(this.thead).find("th"),n=f(this.columns),d=0,c=s.length;d<c;d++)i=n[d],i.sortable===!1||i.command||!i.field||i.selectable||(l=s.eq(d),o=l.data("kendoColumnSorter"),o&&o.destroy(),l.kendoColumnSorter(ue({},u,i.sortable,{dataSource:this.dataSource})))},_filterable:function(){var n,i,o,r,s,l,d,c,u,h=this.options.filterable,p=fe(this.columns,function(e){return e.columns!==t}).length>0;if(h&&!this.options.columnMenu)for(c=he(function(e){this.trigger(Ue,{field:e.field,container:e.container})},this),u=he(function(e){this.trigger(je,{field:e.field,container:e.container})},this),n=p?a(this.lockedHeader?this.lockedHeader.find(">table>thead").add(this.thead):this.thead):e(this.lockedHeader).add(this.thead).find("th"),r=f(this.columns),i=0,o=n.length;i<o;i++)s=r[i],l=n.eq(i),d=l.data("kendoFilterMenu"),d&&d.destroy(),s.command||s.filterable===!1||s.selectable||l.kendoFilterMenu(ue(!0,{},h,s.filterable,{dataSource:this.dataSource,init:c,open:u}))},_change:function(){var e,t=this;t._checkBoxSelection&&(e=t.selectable.value(),t._uncheckCheckBoxes(),t._checkRows(e),t._toggleHeaderCheckState(e.length&&e.length===t.items().length?!0:!1)),this.trigger(be)},_isLocked:function(){return null!==this.lockedHeader},_selectable:function(){var n,i,o,r,a=this,s=this.options.selectable,l=this.table,d=a._isLocked();s&&(s=kendo.ui.Selectable.parseOptions(s),this._hasLockedColumns&&(l=l.add(this.lockedTable),i=s.multiple&&s.cell),n=">tbody>tr:not(.k-footer-template)",s.cell&&(n+=">td"),this.selectable=new kendo.ui.Selectable(l,{filter:n,aria:!0,multiple:s.multiple,change:he(this._change,this),useAllItems:i,continuousItems:he(this._continuousItems,this,n,s.cell),relatedTarget:!s.cell&&this._hasLockedColumns?he(this._selectableTarget,this):t}),a.options.navigatable&&(o=s.multiple,r=s.cell,l.on("keydown"+Ce,function(n){var i=a.current(),s=n.target;if(n.keyCode===J.SPACEBAR&&!n.shiftKey&&e.inArray(s,l)>-1&&!i.is(".k-header")){if(n.preventDefault(),n.stopPropagation(),i=r?i:i.parent(),d&&!r&&(i=i.add(a._relatedRow(i))),o)if(n.ctrlKey){if(i.hasClass(xt.selected))return i.removeClass(xt.selected),a.trigger(be),t}else a.selectable.clear();else a.selectable.clear();r||(a.selectable._lastActive=i),a.selectable.value(i)}else!r&&(n.shiftKey&&n.keyCode==J.LEFT||n.shiftKey&&n.keyCode==J.RIGHT||n.shiftKey&&n.keyCode==J.UP||n.shiftKey&&n.keyCode==J.DOWN||n.keyCode===J.SPACEBAR&&n.shiftKey)&&(n.preventDefault(),n.stopPropagation(),i=i.parent(),d&&(i=i.add(a._relatedRow(i))),o?(a.selectable._lastActive||(a.selectable._lastActive=i),a.selectable.selectRange(a.selectable._firstSelectee(),i)):(a.selectable.clear(),a.selectable.value(i)))})))},_continuousItems:function(t,n){var i,o,r,a,s,l;if(this.lockedContent){for(i=e(t,this.lockedTable),o=e(t,this.table),r=n?I(this.columns).length:1,a=n?this.columns.length-r:1,s=[],l=0;l<i.length;l+=r)ve.apply(s,i.slice(l,l+r)),ve.apply(s,o.splice(0,a));return s}},_selectableTarget:function(t){var n,i,o,r=e();for(i=0,o=t.length;i<o;i++)n=this._relatedRow(t[i]),me(n[0],t)<0&&(r=r.add(n));return r},_relatedRow:function(t){var n,i,o=this.lockedTable;return t=e(t),o?(n=t.closest(this.table.add(this.lockedTable)),i=n.find(">tbody>tr").index(t),n=n[0]===this.table[0]?o:this.table,n.find(">tbody>tr").eq(i)):t},select:function(n){var i=this,o=this.selectable;return i._checkBoxSelection?(n&&(i._checkRows(n),i.select().length===i.items().length&&i._toggleHeaderCheckState(!0)),i.items().filter("."+yt)):o?(t!==n&&(o.options.multiple||(o.clear(),n=n.first()),this._hasLockedColumns&&(n=n.add(e.map(n,he(this._relatedRow,this))))),o.value(n)):e()},clearSelection:function(){var e=this,n=this.select();return e.selectable&&!e._checkBoxSelection&&e.selectable.clear(),e._checkBoxSelection?(e._deselectCheckRows(e.select()),t):((n.length||e._checkBoxSelection)&&e.trigger(be),t)},_uncheckCheckBoxes:function(){var e=this,t=e.table.add(e.lockedTable);t.find("tbody "+bt).attr("aria-checked",!1).prop("checked",!1).attr("aria-label","Select row")},_deselectCheckRows:function(t){var n=this;t=n.table.add(n.lockedTable).find(t),n._isLocked()&&(t=t.add(t.map(function(){return n._relatedRow(this)}))),t.each(function(){e(this).removeClass(yt).find(bt).attr("aria-checked",!1).prop("checked",!1).attr("aria-label","Select row")}),n._toggleHeaderCheckState(!1),n.trigger(be)},_headerCheckboxClick:function(t){var n=this,i=e(t.target),o=i.prop("checked"),r=i.closest(".k-grid.k-widget").getKendoTreeList();n===r&&(o?n.select(r.items()):n.clearSelection())},_checkboxClick:function(t){var n,i=this,o=e(t.target).closest("tr"),r=!o.hasClass(yt),a=i.dataItem(o),s=[],l="";if(i===o.closest(".k-grid.k-widget").getKendoTreeList()){if(i._includeChildren)for(i.dataSource.allChildNodes(a,s),n=0;n<s.length;n++)l+="tr[data-uid='"+s[n].uid+"'],";l+="tr[data-uid='"+a.uid+"']",o=e(l),r?i.select(o):i._deselectCheckRows(o)}},_checkRows:function(t){t.each(function(){e(this).addClass(yt).find(bt).prop("checked",!0).attr("aria-label","Deselect row").attr("aria-checked",!0)})},_toggleHeaderCheckState:function(e){var t=this;e?t.thead.add(t.lockedHeader).find("tr "+bt).prop("checked",!0).attr("aria-checked",!0).attr("aria-label","Deselect all rows"):t.thead.add(t.lockedHeader).find("tr "+bt).prop("checked",!1).attr("aria-checked",!1).attr("aria-label","Select all rows")},_dataSource:function(e){var n=this,i=this.dataSource,o=n.options.pageable;i&&(i.unbind(be,this._refreshHandler),i.unbind(ke,this._errorHandler),i.unbind(Fe,this._sortHandler),i.unbind(ye,this._progressHandler)),this._refreshHandler=he(this.refresh,this),this._errorHandler=he(this._error,this),this._sortHandler=he(this._clearSortClasses,this),this._progressHandler=he(this._progress,this),ge(e)&&(ue(e,{table:n.table,fields:n.columns}),ge(o)&&o.pageSize!==t&&(e.pageSize=o.pageSize)),i=this.dataSource=V.create(e),o&&(i._collapsedTotal=t),i.bind(be,this._refreshHandler),i.bind(ke,this._errorHandler),i.bind(Fe,this._sortHandler),i.bind(ye,this._progressHandler),this._dataSourceFetchProxy=he(function(){this.dataSource.fetch()},this)},setDataSource:function(e){this._dataSource(e),this._sortable(),this._filterable(),this._columnMenu(),this._pageable(),this._contentTree.render([]),this.options.autoBind&&this.dataSource.fetch()},dataItem:function(t){var n,i,o;return t instanceof O?t:(n=e(t).closest("tr"),i=n.attr(kendo.attr("uid")),o=H(i)?null:this.dataSource.getByUid(i))},editRow:function(e){var n,i=this;if(!this._isIncellEditable()&&this.options.editable&&(typeof e===_e&&(e=this.tbody.find(e)),n=i._isPageable()&&i._isPopupEditable()&&e instanceof O?e:this.dataItem(e))){if(i.editor?(n._edit=!0,this._render(),this._cancelEditor()):i._preventPageSizeRestore=!1,"popup"!=this._editMode()&&(n._edit=!0),this.trigger(De,{model:n}))return i.dataSource._restorePageSizeAfterAddChild(),t;this._render(),this._createEditor(n),this.trigger(Ae,{container:this.editor.wrapper,model:n})}},_cancelEdit:function(t){if(this.editor){var n;t=ue(t,{container:this.editor.wrapper,model:this.editor.model}),this.trigger(Ve,t)||(this.options.navigatable&&(n=this.items().index(e(this.current()).parent())),this.cancelRow(),this.options.navigatable&&(this.current(this.items().eq(n).children().filter(at).first()),P(this.table,!0)))}},cancelRow:function(){this._isIncellEditable()||(this._cancelEditor(),this._render())},saveRow:function(){var e,t=this.editor;this._isIncellEditable()||t&&(e={model:t.model,container:t.wrapper},t.end()&&!this.trigger(Me,e)&&this.dataSource.sync())},addRow:function(e){var n=this,i=n.dataSource,o=n._isPageable(),r=n._isIncellEditable(),a=n._isInlineEditable(),s=this.editor,l=0,d={};if((!s||s.end())&&this.options.editable)return e?(e instanceof O||(e=this.dataItem(e)),d[e.parentIdField]=e.id,l=this.dataSource.indexOf(e)+1,this.expand(e).then(function(){var t=o&&i._isLastItemInView(e)&&(r||a);n._insertAt(d,l,t)}),t):(this._insertAt(d,l),t)},_insertAt:function(e,t,n){var i,o,r=this,a=r.dataSource;e=r.dataSource.insert(t,e),n&&a._setAddChildPageSize(),i=this._itemFor(e),r._isIncellEditable()?(o=i.children("td").eq(r._firstEditableColumnIndex(i)),r.editCell(o)):i&&i[0]?r.editRow(i):r._isPageable()&&r._isPopupEditable()&&r.editRow(e)},_firstEditableColumnIndex:function(e){var t,n,i=this,o=i.dataItem(e),r=f(i.columns),a=r.length;for(n=0;n<a;n++)if(t=r[n],o&&(!o.editable||o.editable(t.field))&&!t.command&&t.field&&t.hidden!==!0)return n;return-1},removeRow:function(t){var n=this.dataItem(t),i={model:n,row:t};this.options.editable&&n&&!this.trigger(Le,i)&&(document.activeElement===e(t).find(".k-grid-delete")[0]&&e(t).find(".k-grid-delete").blur(),this.dataSource.remove(n),this._isIncellEditable()||this.dataSource.sync())},_cancelEditor:function(){var e,t=this,n=t.editor;n&&(e=n.model,t._destroyEditor(),t._isIncellEditable()?t._shouldRestorePageSize()&&t.dataSource._restorePageSizeAfterAddChild():t.dataSource.cancelChanges(e),e._edit=!1),t._preventPageSizeRestore=!1},_shouldRestorePageSize:function(){var e=this;return e._isPageable()&&e._isIncellEditable()&&!e._preventPageSizeRestore},_destroyEditor:function(){this.editor&&(this.editor.close(),this.editor=null)},_createEditor:function(e){var t,n,i,o=this.itemFor(e),r=f(this.columns),a=[];
for(t=0;t<r.length;t++)a.push(ue({},r[t])),delete a[t].parentColumn;o=o.add(this._relatedRow(o)),n=this._editMode(),i={columns:a,model:e,target:this,clearContainer:!1,template:this.options.editable.template},"inline"==n?this.editor=new U(o,i):(ue(i,{window:this.options.editable.window,commandRenderer:he(function(){return this._buildCommands(["update","canceledit"])},this),fieldRenderer:he(this._cellContent,this),save:he(this.saveRow,this),cancel:he(this._cancelEdit,this),appendTo:this.wrapper}),this.editor=new j(o,i))},_createIncellEditor:function(e,t){var n=this,i=ue({},t.columns[0]);return delete i.parentColumn,new q(e,ue({},{fieldRenderer:he(n._cellContent,n),appendTo:n.wrapper,clearContainer:!1,target:n,columns:[i],model:t.model,change:t.change}))},editCell:function(t){var n,i,o=this;t=e(t),n=f(o.columns)[o.cellIndex(t)],i=o.dataItem(t),o._isIncellEditable()&&i&&B(n,i)&&o._editCell(t,n,i)},_editCell:function(e,n,i){var o,r=this;return r.trigger(De,{model:i})?(r.dataSource._restorePageSizeAfterAddChild(),t):(r.closeCell(),i._edit=!0,r._cancelEditor(),r._render({editedColumn:n,editedColumnIndex:e.index()}),o=r.table.add(r.lockedTable).find(xe+xt.editCell).first(),r.editor=r._createIncellEditor(o,{columns:[n],model:i,change:function(t){r.trigger(Me,{values:t.values,container:e,model:i})&&t.preventDefault()}}),r._current=o,r.trigger(Ae,{container:e,model:i}),t)},closeCell:function(e){var t,n,i=this,o=(i.editor||{}).element;o&&o[0]&&i._isIncellEditable()&&(n=i.dataItem(o),e&&i.trigger(Ve,{container:o,model:n})||(i.trigger(Be,{type:e?Ve:Me,model:n,container:o}),i._cancelEditor(),o.removeClass(xt.editCell),t=o.parent().removeClass(xt.editRow),i.lockedContent&&i._relatedRow(t).removeClass(xt.editRow),i._render(),i.trigger(we,{item:t,data:n,ns:te}),i.lockedContent&&z(t.css("height","")[0],i._relatedRow(t).css("height","")[0])))},cancelChanges:function(){this.dataSource.cancelChanges()},saveChanges:function(){var e=this,t=(e.editor||{}).editable,n=t&&t.end();!n&&t||e.trigger(Re)||e.dataSource.sync()},_editMode:function(){var e="inline",t=this.options.editable;return t!==!0&&(e="string"==typeof t?t:t.mode||e),e.toLowerCase()},_isIncellEditable:function(){return this._editMode()===ft},_isInlineEditable:function(){return this._editMode()===mt},_isPopupEditable:function(){return this._editMode()===gt},hideColumn:function(e){this._toggleColumnVisibility(e,!0)},showColumn:function(e){this._toggleColumnVisibility(e,!1)},_toggleColumnVisibility:function(e,t){e=this._findColumn(e),e&&e.hidden!==t&&(e.hidden=t,this._setParentsVisibility(e,!t),this._ensureExpandableColumn(),this._clearColsCache(),this._renderCols(),this._renderHeader(),this._render(),this._adjustTablesWidth(),this.trigger(t?qe:Ge,{column:e}),t||e.width||this.table.add(this.thead.closest("table")).width(""),this._updateFirstColumnClass())},_findColumn:function(e){return e="number"==typeof e?this.columns[e]:ge(e)?fe(f(this.columns),function(t){return t===e})[0]:fe(f(this.columns),function(t){return t.field===e})[0]},_adjustTablesWidth:function(){var e,t,n,i=this.thead.prev().children(),o=0;for(e=0,t=i.length;e<t;e++){if(n=i[e].style.width,!n||n.indexOf("%")!=-1){o=0;break}o+=parseInt(n,10)}o&&this.table.add(this.thead.closest("table")).width(o)},_reorderable:function(){var t,n,i;this.options.reorderable&&(t=this.options.scrollable===!0,n=(t?".k-grid-header:first ":"table:first>.k-grid-header ")+$e,i=this,this._draggableInstance=new te.Draggable(this.wrapper,{group:kendo.guid(),filter:n,hint:function(t){return e('<div class="k-header k-reorder-clue k-drag-clue" />').html(t.attr(kendo.attr("title"))||t.attr(kendo.attr("field"))||t.text()).prepend('<span class="k-icon k-drag-status k-i-cancel" />')}}),this.reorderable=new te.Reorderable(this.wrapper,{draggable:this._draggableInstance,dragOverContainers:he(this._allowDragOverContainers,this),inSameContainer:function(t){return e(t.source).parent()[0]===e(t.target).parent()[0]&&k(w(i.columns),i.columns,t.sourceIndex,t.targetIndex)>-1},change:function(e){var t=w(i.columns),n=t[e.oldIndex],o=k(t,i.columns,e.oldIndex,e.newIndex);i.trigger(Ke,{newIndex:o,oldIndex:me(n,t),column:n}),i.reorderColumn(o,n,"before"===e.position)}}))},_allowDragOverContainers:function(e,t){var n=w(this.columns);return n[e].lockable!==!1&&k(n,this.columns,e,t)>-1},_reorderTrees:function(n,i,o,r,a,s,l,d){var c,u,h,f,m,g,v,_,b=e(),w=a.find("tr:eq("+r[0].rowIndex+")"),k=s.children[r[0].rowIndex],y=w.children(),x=l?n[0]:n[n.length-1];for(_=0;_<r.length;_++)u=r[_].cellIndex,b=b.add(y.eq(u)),c=o.children[x.rowIndex].children,o===s&&l&&(u+=_),c.splice(l?x.cellIndex+_:x.cellIndex+1+_,0,k.children[u]);if(o===s&&l?k.children.splice(r[0].cellIndex+r.length,r.length):k.children.splice(r[0].cellIndex,r.length),h=i.find("tr:eq("+x.rowIndex+")"),v=h.find(">th.k-header:eq("+x.cellIndex+")"),v.length&&b[0]!==v[0]&&b[l?"insertBefore":"insertAfter"](v),d>=r[0].rowIndex+1&&1!=d){for(f=[],_=0;_<r.length;_++)r[_].columns&&(f=f.concat(r[_].columns));if(!f.length)return;for(m=[],_=0;_<n.length;_++)n[_].columns&&(m=m.concat(n[_].columns));if(!m.length&&(i!==a||x.cellIndex-r[0].cellIndex>1||r[0].cellIndex-x.cellIndex>1)&&(g=p(this.columns,x,r[0],l,this.columns),m=[g],!g&&f.length&&i.find("tr").length>r[0].rowIndex+1))return this._insertTree(f,a,s,i,o),t;if(!m.length)return;this._reorderTrees(m,i,o,f,a,s,l,d)}},_insertTree:function(t,n,i,o,r){var a,s=[],l=e(),d=n.find("tr:eq("+t[0].rowIndex+")"),c=i.children[t[0].rowIndex];for(a=0;a<t.length;a++)t[a].columns&&(s=s.concat(t[a].columns)),r.children[t[0].rowIndex].children.splice(a,0,c.children[t[a].rowIndex]),l=l.add(d.find(">th.k-header:eq("+t[a].cellIndex+")"));i.children[t[0].rowIndex].children.splice(t[0].cellIndex,t.length),o.find("tr:eq("+t[0].rowIndex+")").append(l),s.length&&this._insertTree(s,n,i,o,r)},_reorderHeader:function(e,t,n){var i,o,r=t.columns?E([t]):1,a=e.columns?E([e]):1,s=u(t),l=u(e),d=l?this.lockedHeader:this.thead,c=s?this.lockedHeader:this.thead,h=l?this._lockedHeaderTree:this._headerTree,p=s?this._lockedHeaderTree:this._headerTree,f=d.find("tr");if(r===a||r<f.length)this._reorderTrees([e],d,h,[t],c,p,n,r),R(d,h),F(c,p);else{if(d!==c)for(i=r-f.length,f.each(function(e){var t,n=this.cells;for(t=0;t<n.length;t++)n[t].colSpan<=1&&n[t].attributes.rowspan&&(h.children[e].children[t].attr.rowSpan+=i,n[t].rowSpan+=i)}),o=0;o<i;o++)h.children.push(Y("tr",{role:"row"})),d.is("thead")?d.append("<tr role='row'></tr>"):d.find("thead").append("<tr role='row'></tr>");this._reorderTrees([e],d,h,[t],c,p,n,r),F(c,p)}},reorderColumn:function(n,i,o){var r,a,s,l=i.parentColumn,d=l?l.columns:this.columns,c=me(i,d),u=d[n],h=!!u.locked,p=fe(this.columns,function(e){return e.columns!==t}).length>0,m=M(d).length;c!==n&&(h&&!i.locked&&1==m||!h&&i.locked&&d.length-m==1||(o===t&&(o=n<c),p&&this._reorderHeader(u,i,o),r=!!i.locked,r=r!=h,i.locked=h,d.splice(o?n:n+1,0,i),d.splice(c<n?c:c+1,1),this._setColumnDataIndexes(f(this.columns)),this._clearColsCache(),this._renderCols(),p?this.lockedHeader?(d=M(this.columns),this._prepareColumns([{rowSpan:1,cells:[],index:0}],d),d=I(this.columns),this._prepareColumns([{rowSpan:1,cells:[],index:0}],d)):this._prepareColumns([{rowSpan:1,cells:[],index:0}],this.columns):(a=e(this.lockedHeader).add(this.thead).find("th"),a.eq(c)[o?"insertBefore":"insertAfter"](a.eq(n)),s=this._headerTree.children[0].children,this._hasLockedColumns&&(s=this._lockedHeaderTree.children[0].children.concat(s)),s.splice(o?n:n+1,0,s[c]),s.splice(c<n?c:c+1,1),this._hasLockedColumns&&(this._lockedHeaderTree.children[0].children=s.splice(0,I(d).length),this._headerTree.children[0].children=s)),this._updateColumnCellIndex(),this._applyLockedContainersWidth(),this._syncLockedHeaderHeight(),this._updateFirstColumnClass(),this.refresh(),r&&(h?this.trigger(Ze,{column:i}):this.trigger(Je,{column:i}))))},lockColumn:function(e){var t,n=this.columns;e="number"==typeof e?n[e]:fe(n,function(t){return t.field===e})[0],e&&!e.hidden&&(t=I(n).length-1,this.reorderColumn(t,e,!1))},unlockColumn:function(e){var t,n=this.columns;e="number"==typeof e?n[e]:fe(n,function(t){return t.field===e})[0],e&&!e.hidden&&(t=I(n).length,this.reorderColumn(t,e,!0))},_columnMenu:function(){var n,i,o,s,l,d,c=e(this.lockedHeader).add(this.thead).find("th"),u=this.columns,h=this.options,p=h.columnMenu,m=he(this._columnMenuInit,this),g=he(this._columnMenuOpen,this),v=fe(this.columns,function(e){return e.lockable!==!1}).length>0,_=fe(this.columns,function(e){return e.columns!==t}).length>0;if(_?(u=f(u),c=this.lockedHeader?r(a(this.lockedHeader.find(">table>thead")).add(a(this.thead))):a(this.thead)):c=e(this.lockedHeader).add(this.thead).find("th"),p)for("boolean"==typeof p&&(p={}),d=0;d<c.length;d++)n=u[d],n.field&&(i=c.eq(d).data("kendoColumnMenu"),i&&i.destroy(),s=!1,n.sortable!==!1&&p.sortable!==!1&&h.sortable!==!1&&(s=ue({},h.sortable,{compare:(n.sortable||{}).compare})),l=!1,h.filterable&&n.filterable!==!1&&p.filterable!==!1&&(l=ue({pane:this.pane},n.filterable,h.filterable)),o={dataSource:this.dataSource,values:n.values,columns:p.columns,sortable:s,filterable:l,messages:p.messages,owner:this,closeCallback:e.noop,init:m,open:g,pane:this.pane,hasLockableColumns:I(u).length>0&&v&&!_},h.$angular&&(o.$angular=h.$angular),c.eq(d).kendoColumnMenu(o))},_columnMenuInit:function(e){this.trigger(Qe,{field:e.field,container:e.container})},_columnMenuOpen:function(e){this.trigger(Xe,{field:e.field,container:e.container})},_pageable:function(){var t,n=this,i=n.options.pageable;i&&(t=n.wrapper.children("div.k-grid-pager"),t.length||(t=e('<div class="k-pager-wrap k-grid-pager"/>').appendTo(n.wrapper)),n._destroyPager(),"object"==typeof i&&i instanceof kendo.ui.TreeListPager?n.pager=i:n.dataSource&&!n.dataSource.options.serverPaging&&n._createPager(t),n.pager&&n.pager.bind(Ie,function(e){n.trigger(Ee,{page:e.index})&&e.preventDefault()}))},_createPager:function(e,t){var n=this;n.pager=new W(e,ue({},n.options.pageable,{dataSource:n.dataSource},t))},_destroyPager:function(){this.pager&&this.pager.destroy()},_isPageable:function(){var e=this;return e.options.pageable&&(!e.dataSource||e.dataSource&&e.dataSource._isPageable())},_togglePagerVisibility:function(){var e=this,t=e.options.pageable;t&&(ge(t)||t instanceof W)&&t.alwaysVisible===!1&&e.wrapper.find(".k-grid-pager").toggle((e.dataSource.collapsedTotal()||0)>=e.dataSource.pageSize())}}),kendo.ExcelMixin&&kendo.ExcelMixin.extend(G.prototype),kendo.PDFMixin&&(kendo.PDFMixin.extend(G.prototype),G.prototype._drawPDF=function(n){function i(){s&&d!==t?(a.unbind("change",o),a.one("change",function(){r.resolve(l)}),a.page(d)):r.resolve(l)}function o(){c._drawPDFShadow({width:c.wrapper.width()},{avoidLinks:c.options.pdf.avoidLinks}).done(function(e){var t=a.page(),o=s?a.totalPages():1,r={page:e,pageNumber:t,progress:t/o,totalPages:o};n.notify(r),l.append(r.page),t<o?a.page(t+1):i()}).fail(function(e){r.reject(e)})}var r,a,s,l,d,c=this;return c.options.pdf.paperSize&&"auto"!=c.options.pdf.paperSize?c._drawPDF_autoPageBreak(n):(r=new e.Deferred,a=c.dataSource,s=c.options.pdf.allPages,this._initPDFProgress(n),l=new kendo.drawing.Group,d=a.page(),s?(a.bind("change",o),a.page(1)):o(),r.promise())},G.prototype._initPDFProgress=function(t){var n,i=e("<div class='k-loading-pdf-mask'><div class='k-loading-color'></div></div>");i.prepend(this.wrapper.clone().css({position:"absolute",top:0,left:0})),this.wrapper.append(i),n=e("<div class='k-loading-pdf-progress'>").appendTo(i).kendoProgressBar({type:"chunk",chunkCount:10,min:0,max:1,value:0}).data("kendoProgressBar"),t.progress(function(e){n.value(e.progress)}).always(function(){kendo.destroy(i),i.remove()})},G.prototype._drawPDF_autoPageBreak=function(n){function i(){u&&s!==t?(c.one("change",o),c.page(s)):(l.refresh(),o())}function o(){p.appendTo(document.body);var t=e.extend({},l.options.pdf,{_destructive:!0,progress:function(e){n.notify({page:e.page,pageNumber:e.pageNum,progress:.5+e.pageNum/e.totalPages/2,totalPages:e.totalPages})}});kendo.drawing.drawDOM(f,t).always(function(){p.remove()}).then(function(e){d.resolve(e)}).fail(function(e){d.reject(e)})}function r(){var e=c.page(),t=u?c.totalPages():1;a.append(h.find("tr")),e<t?c.page(e+1):(c.unbind("change",r),i())}var a,s,l=this,d=new e.Deferred,c=l.dataSource,u=l.options.pdf.allPages,h=l.wrapper.find('table[role="treeList"] > tbody'),p=e("<div>").css({position:"absolute",left:-1e4,top:-1e4}),f=l.wrapper.clone().css({height:"auto",width:"auto"}).appendTo(p);return f.find(".k-grid-content").css({height:"auto",width:"auto",overflow:"visible"}),f.find('table[role="treeList"], .k-grid-footer table').css({height:"auto",width:"100%",overflow:"visible"}),f.find(".k-grid-pager, .k-grid-toolbar, .k-grouping-header").remove(),f.find(".k-grid-header, .k-grid-footer").css({paddingRight:0}),this._initPDFProgress(n),a=f.find('table[role="treeList"] > tbody').empty(),s=c.page(),u?(c.bind("change",r),c.page(1)):r(),d.promise()}),ue(!0,kendo.data,{TreeListDataSource:V,TreeListModel:O}),te.plugin(G),te.plugin(W)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.gantt.data.min",["kendo.data.min","kendo.treelist.min"],e)}(function(){return function(e,t){var n,i,o=e.isArray,r=e.extend,a=e.map,s=kendo.data,l=s.Query,d=s.DataSource,c=s.TreeListDataSource,u=s.TreeListModel,h="parentId",p=function(e,t){return function(n){var i,r;if(n=o(n)?{data:n}:n,i=n||{},r=i.data,i.data=r,!(i instanceof e)&&i instanceof d)throw Error("Incorrect DataSource type. Only "+t+" instances are supported");return i instanceof e?i:new e(i)}},f=function(e){if(e.filter("[name=end], [name=start], [name=plannedEnd], [name=plannedStart]").length){for(var t,n,i=e.attr("name"),o=kendo.widgetInstance(e,kendo.ui),r={},a=e;a!==window&&!t;)a=a.parent(),t=a.data("kendoEditable");return!(n=t?t.options.model:null)||(i.indexOf("planned")>=0?(r.plannedStart=n.plannedStart,r.plannedEnd=n.plannedEnd):(r.start=n.start,r.end=n.end),r[i]=o?o.value():kendo.parseDate(e.val()),i.indexOf("planned")>=0?r.plannedStart<=r.plannedEnd:r.start<=r.end)}return!0},m=kendo.data.Model.define({id:"id",fields:{id:{type:"number",editable:!1},predecessorId:{type:"number"},successorId:{type:"number"},type:{type:"number"}}}),g=d.extend({init:function(e){d.fn.init.call(this,r(!0,{},{schema:{modelBase:m,model:m}},e))},dependencies:function(e){var t=this.predecessors(e),n=this.successors(e);return t.push.apply(t,n),t},predecessors:function(e){return this._dependencies("successorId",e)},successors:function(e){return this._dependencies("predecessorId",e)},_dependencies:function(e,t){var n=this.view(),i={field:e,operator:"eq",value:t};return n=new l(n).filter(i).toArray()}});g.create=p(g,"GanttDependencyDataSource"),n=u.define({fields:{id:{type:"number",editable:!1},parentId:{type:"number",defaultValue:null,validation:{required:!0},nullable:!0},orderId:{type:"number",validation:{required:!0}},title:{type:"string",defaultValue:"New task"},start:{type:"date",validation:{required:!0}},end:{type:"date",validation:{required:!0,dateCompare:f,message:"End date should be after or equal to the start date"}},percentComplete:{type:"number",validation:{required:!0,min:0,max:1,step:.01}},summary:{type:"boolean"},expanded:{type:"boolean",defaultValue:!0},plannedStart:{type:"date",defaultValue:null,nullable:!0},plannedEnd:{type:"date",defaultValue:null,nullable:!0,validation:{dateCompare:f,message:"Planned end date should be after or equal to the planned start date"}}},duration:function(){var e=this.end,t=this.start;return e-t},isMilestone:function(){return 0===this.duration()},_offset:function(e){var t,n,i=["start","end"];for(n=0;n<i.length;n++)t=new Date(this.get(i[n]).getTime()+e),this.set(i[n],t)},_offsetPlanned:function(e){var t,n,i=["plannedStart","plannedEnd"];for(n=0;n<i.length;n++)t=new Date(this.get(i[n]).getTime()+e),this.set(i[n],t)}}),n.define=function(e,i){var o,r;return i===t&&(i=e,e=n),o=i.parentId||h,i.parentIdField=o,r=u.define(e,i),o&&(r.parentIdField=o),r},i=c.extend({init:function(e){c.fn.init.call(this,r(!0,{},{schema:{modelBase:n,model:n},sort:{field:"orderId",dir:"asc"}},e))},add:function(e){if(e)return e=this._toGanttTask(e),this.insert(this.taskSiblings(e).length,e)},insert:function(e,t){if(t)return t=this._toGanttTask(t),t.set("orderId",e),t=d.fn.insert.call(this,e,t),this._reorderSiblings(t,this.taskSiblings(t).length-1),this._resolveSummaryFields(this.taskParent(t)),t},remove:function(e){var t=e.get("parentId"),n=this.taskAllChildren(e);return this._removeItems(n),e=c.fn.remove.call(this,e),this._childRemoved(t,e.get("orderId")),e},taskAllChildren:function(e){var t=[],n=this,i=function(e){var o=n.taskChildren(e);t.push.apply(t,o),a(o,i)};return e?i(e):t=this.view(),t},taskChildren:function(e){var n,i=this.view(),o={field:"parentId",operator:"eq",value:null},r=this._sort&&this._sort.length?this._sort:{field:"orderId",dir:"asc"};if(e){if(n=e.get("id"),n===t||null===n||""===n)return[];o.value=n}return i=new l(i).filter(o).sort(r).toArray()},taskLevel:function(e){for(var t=0,n=this.taskParent(e);null!==n;)t+=1,n=this.taskParent(n);return t},taskParent:function(e){return e&&null!==e.get("parentId")?this.get(e.parentId):null},taskSiblings:function(e){if(!e)return null;var t=this.taskParent(e);return this.taskChildren(t)},taskTree:function(e){var t,n,i,o,r=[],a=this.taskChildren(e);for(n=0,i=a.length;n<i;n++)t=a[n],r.push(t),t.get("expanded")&&(o=this.taskTree(t),r.push.apply(r,o));return r},update:function(e,n){var i,o,r=this,a=function(e,t){var n,i,o=r.taskAllChildren(e);for(n=0,i=o.length;n<i;n++)o[n]._offset(t)},s=function(e,t){var n,i,o=r.taskAllChildren(e);for(n=0,i=o.length;n<i;n++)o[n]._offsetPlanned(t)},l=function(e){var t=e.field,n=e.sender;switch(t){case"start":r._resolveSummaryStart(r.taskParent(n)),a(n,n.get(t).getTime()-i.getTime());break;case"end":r._resolveSummaryEnd(r.taskParent(n));break;case"plannedStart":r._resolveSummaryPlannedStart(r.taskParent(n)),n.get(t)&&i&&s(n,n.get(t).getTime()-i.getTime());break;case"plannedEnd":r._resolveSummaryPlannedEnd(r.taskParent(n));break;case"percentComplete":r._resolveSummaryPercentComplete(r.taskParent(n));break;case"orderId":r._reorderSiblings(n,i)}};n.parentId!==t&&(i=e.get("parentId"),i!==n.parentId&&(e.set("parentId",n.parentId),r._childRemoved(i,e.get("orderId")),e.set("orderId",r.taskSiblings(e).length-1),r._resolveSummaryFields(r.taskParent(e))),delete n.parentId),e.bind("change",l);for(o in n)i=e.get(o),"plannedStart"===o||"plannedEnd"===o?i===t&&null===n[o]||e.set(o,n[o]):e.set(o,n[o]);e.unbind("change",l)},_childRemoved:function(e,t){var n,i,o=null===e?null:this.get(e),r=this.taskChildren(o);for(n=t,i=r.length;n<i;n++)r[n].set("orderId",n);this._resolveSummaryFields(o)},_resolveSummaryFields:function(e){e&&(this._updateSummary(e),this.taskChildren(e).length&&(this._resolveSummaryStart(e),this._resolveSummaryEnd(e),this._resolveSummaryPlannedStart(e),this._resolveSummaryPlannedEnd(e),this._resolveSummaryPercentComplete(e)))},_resolveSummaryStart:function(e){var t=this,n=function(e){var n,i,o,r=t.taskChildren(e),a=r[0].start.getTime();for(i=1,o=r.length;i<o;i++)n=r[i].start.getTime(),n<a&&(a=n);return new Date(a)};this._updateSummaryRecursive(e,"start",n)},_resolveSummaryEnd:function(e){var t=this,n=function(e){var n,i,o,r=t.taskChildren(e),a=r[0].end.getTime();for(i=1,o=r.length;i<o;i++)n=r[i].end.getTime(),n>a&&(a=n);return new Date(a)};this._updateSummaryRecursive(e,"end",n)},_resolveSummaryPlannedStart:function(e){var t=this,n=function(e){var n,i,o,r=t.taskChildren(e),a=null;for(i=0,o=r.length;i<o;i++)r[i].plannedStart&&(n=r[i].plannedStart.getTime(),(!a||n<a)&&(a=n));return a?new Date(a):null};this._updateSummaryRecursive(e,"plannedStart",n)},_resolveSummaryPlannedEnd:function(e){var t=this,n=function(e){var n,i,o,r=t.taskChildren(e),a=null;for(i=0,o=r.length;i<o;i++)r[i].plannedEnd&&(n=r[i].plannedEnd.getTime(),(!a||n>a)&&(a=n));return a?new Date(a):null};this._updateSummaryRecursive(e,"plannedEnd",n)},_resolveSummaryPercentComplete:function(e){var t=this,n=function(e){var n=t.taskChildren(e),i=new l(n).aggregate([{field:"percentComplete",aggregate:"average"}]);return i.percentComplete.average};this._updateSummaryRecursive(e,"percentComplete",n)},_reorderSiblings:function(e,t){var n,i=e.get("orderId"),o=i>t,r=o?t:i,a=o?i:t,s=o?r:r+1,l=this.taskSiblings(e);if(l.length)for(a=Math.min(a,l.length-1),n=r;n<=a;n++)l[n]!==e&&(l[n].set("orderId",s),s+=1)},_toGanttTask:function(e){if(!(e instanceof n)){var t=e;e=d.fn._createNewModel.call(this),e.accept(t)}return e},_updateSummary:function(e){if(null!==e){var t=this.taskChildren(e).length;e.set("summary",t>0)}},_updateSummaryRecursive:function(e,t,n){var i,o;e&&(i=n(e),e.set(t,i),o=this.taskParent(e),o&&this._updateSummaryRecursive(o,t,n))}}),i.create=p(i,"GanttDataSource"),r(!0,kendo.data,{GanttDataSource:i,GanttTask:n,GanttDependencyDataSource:g,GanttDependency:m})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.gantt.editors.min",["kendo.data.min","kendo.popup.min","kendo.window.min","kendo.gantt.data.min","kendo.grid.min","kendo.datetimepicker.min","kendo.numerictextbox.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=n.support.browser,r=n.Observable,a=i.Widget,s=n._outerWidth,l=e.extend({F10:121},n.keys),d=e.proxy,c=e.extend,u=e.isPlainObject,h=".kendoGantt",p="p0",f="tabIndex",m="click",g="width",v="string",_="aria-activedescendant",b="action-option-focused",w=".",k={down:{origin:"bottom left",position:"top left"},up:{origin:"top left",position:"bottom left"}},y=n.template('<div class="#=styles.popupWrapper#"><ul class="#=styles.popupList#" role="listbox">#for(var i = 0, l = actions.length; i < l; i++){#<li class="#=styles.item#" data-action="#=actions[i].data#" role="option">#=actions[i].text#</span>#}#</ul></div>'),x={buttonDelete:"k-gantt-delete",buttonCancel:"k-gantt-cancel",buttonSave:"k-gantt-update",focused:"k-state-focused",gridContent:"k-grid-content",hovered:"k-state-hover",item:"k-item",popupWrapper:"k-list-container",popupList:"k-list k-reset",popup:{form:"k-popup-edit-form",editForm:"k-gantt-edit-form",formContainer:"k-edit-form-container",resourcesFormContainer:"k-resources-form-container",message:"k-popup-message",buttonsContainer:"k-edit-buttons k-state-default",button:"k-button",editField:"k-edit-field",editLabel:"k-edit-label",resourcesField:"k-gantt-resources"},primary:"k-primary",toolbar:{appendButton:"k-gantt-create"}},C=function(t,i){var o={name:i.field,title:i.title},r=i.model.fields[i.field].validation;r&&u(r)&&r.message&&(o[n.attr("dateCompare-msg")]=r.message),e('<input type="text" required '+n.attr("type")+'="date" '+n.attr("role")+'="datetimepicker" '+n.attr("bind")+'="value:'+i.field+'" '+n.attr("validate")+"='true' />").attr(o).appendTo(t),e("<span "+n.attr("for")+'="'+i.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},S=function(t,n){e('<a href="#" class="'+n.styles.button+'">'+n.messages.assignButton+"</a>").click(n.click).appendTo(t)},T=r.extend({init:function(e,t){r.fn.init.call(this),this.element=e,this.options=c(!0,{},this.options,t),this._popup()},options:{direction:"down",navigatable:!1},destroy:function(){clearTimeout(this._focusTimeout),this.popup.destroy(),this.element.off(h),this.list.off(h),this.unbind()},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,r=this.element,a=s(n);!n.data(g)&&i||(e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=e?parseFloat(e.width):s(r),e&&(o.mozilla||o.msie)&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i="border-box"!==n.css("box-sizing")?t-(s(n)-n.width()):t,a>i&&(i=a),n.css({fontFamily:r.css("font-family"),width:i}).data(g,i))},_current:function(e){var t=this.list.find(w+x.focused),n=t[e]();n.length&&(t.removeClass(x.focused).removeAttr("id"),n.addClass(x.focused).attr("id",b),this.list.find("ul").removeAttr(_).attr(_,b))},_popup:function(){var t=this,i="li"+w+x.item,o=this.options.messages.actions,r=this.options.navigatable;this.list=e(y({styles:x,actions:[{data:"add",text:o.addChild},{data:"insert-before",text:o.insertBefore},{data:"insert-after",text:o.insertAfter}]})),this.element.append(this.list),this.popup=new n.ui.Popup(this.list,c({anchor:this.element,open:function(){t._adjustListWidth()},animation:this.options.animation},k[this.options.direction])),this.element.on(m+h,function(i){var o=e(this),a=o.attr(n.attr("action"));i.preventDefault(),a?t.trigger("command",{type:a}):(t.popup.open(),r&&t.list.find("li:first").addClass(x.focused).attr("id",b).end().find("ul").attr({TABINDEX:0,"aria-activedescendant":b}).focus())}),this.list.find(i).hover(function(){e(this).addClass(x.hovered)},function(){e(this).removeClass(x.hovered)}).end().on(m+h,i,function(){t.trigger("command",{type:e(this).attr(n.attr("action"))}),t.popup.close()}),r&&(this.popup.bind("close",function(){t.list.find(i).removeClass(x.focused).end().find("ul").attr(f,0),t.element.parents("["+n.attr("role")+'="gantt"]').find(w+x.gridContent+" > table:first").focus()}),this.list.find("ul").on("keydown"+h,function(e){var n=e.keyCode;switch(n){case l.UP:e.preventDefault(),t._current("prev");break;case l.DOWN:e.preventDefault(),t._current("next");break;case l.ENTER:t.list.find(w+x.focused).click();break;case l.ESC:e.preventDefault(),t.popup.close()}}))}}),D={desktop:{dateRange:C,resources:S}},A=n.Observable.extend({init:function(e,t){n.Observable.fn.init.call(this),this.element=e,this.options=c(!0,{},this.options,t),this.createButton=this.options.createButton},fields:function(t,n,i){var o,r=this,a=this.options,s=a.messages.editor,l=a.resources,d=function(e){e.preventDefault(),l.editor(r.container.find(w+x.popup.resourcesField),n)};return a.editable.template?o=e.map(n.fields,function(e,t){return{field:t}}):(o=[{field:"title",title:s.title},{field:"start",title:s.start,editor:t.dateRange},{field:"end",title:s.end,editor:t.dateRange},{field:"percentComplete",title:s.percentComplete,format:p}],i&&o.splice.apply(o,[1,0].concat([{field:"plannedStart",title:s.plannedStart,editor:t.dateRange},{field:"plannedEnd",title:s.plannedEnd,editor:t.dateRange}])),n.get(l.field)&&o.push({field:l.field,title:s.resources,messages:s,editor:t.resources,click:d,styles:x.popup})),o},_buildEditTemplate:function(e,t,i){var o,r,a,s,l=this.options.resources,d=this.options.editable.template,u=c({},n.Template,this.options.templateSettings),h=u.paramName,p=x.popup,f="";if(d)typeof d===v&&(d=n.unescape(d)),f+=n.template(d,u)(e);else for(o=0,r=t.length;o<r;o++)a=t[o],f+='<div class="'+p.editLabel+'"><label for="'+a.field+'">'+(a.title||a.field||"")+"</label></div>",a.field===l.field&&(f+='<div class="'+p.resourcesField+'" style="display:none"></div>'),!e.editable||e.editable(a.field)?(i.push(a),f+="<div "+n.attr("container-for")+'="'+a.field+'" class="'+p.editField+'"></div>'):(s="#:",a.field?(a=n.expr(a.field,h),s+=a+"==null?'':"+a):s+="''",s+="#",s=n.template(s,u),f+='<div class="'+p.editField+'">'+s(e)+"</div>");return f}}),E=A.extend({destroy:function(){this.close(),this.unbind()},close:function(){var e=this,t=function(){e.editable&&(e.editable.destroy(),e.editable=null,e.container=null),e.popup&&(e.popup.destroy(),e.popup=null)};this.editable&&this.container.is(":visible")?(e.trigger("close",{window:e.container}),this.container.data("kendoWindow").bind("deactivate",t).close()):t()},editTask:function(e,t){this.editable=this._createPopupEditor(e,t)},showDialog:function(t){var i,o,r,a,s=t.buttons,l=x.popup,d=n.format('<div class="{0}"><div class="{1}"><p class="{2}">{3}</p><div class="{4}">',l.form,l.formContainer,l.message,t.text,l.buttonsContainer);for(i=0,o=s.length;i<o;i++)d+=this.createButton(s[i]);d+="</div></div></div>",r=this.element,this.popup&&this.popup.destroy(),a=this.popup=e(d).appendTo(r).eq(0).on("click",w+l.button,function(t){t.preventDefault(),a.close();var n=e(t.currentTarget).index();s[n].click()}).kendoWindow({modal:!0,autoFocus:!1,resizable:!1,draggable:!1,title:t.title,visible:!1,deactivate:function(){this.destroy(),r.focus()}}).getKendoWindow(),a.center().open(),a.element.find(".k-primary").focus()},_createPopupEditor:function(t,i){var o,r,a=this,s={},l=this.options.messages,d=x.popup,u=n.format('<div {0}="{1}" class="{2} {3}"><div class="{4}">',n.attr("uid"),t.uid,d.form,d.editForm,d.formContainer),p=this.fields(D.desktop,t,i),f=[];return u+=this._buildEditTemplate(t,p,f),u+='<div class="'+d.buttonsContainer+'">',u+=this.createButton({name:"update",text:l.save,className:x.primary}),u+=this.createButton({name:"cancel",text:l.cancel}),a.options.editable.destroy!==!1&&(u+=this.createButton({name:"delete",text:l.destroy})),u+="</div></div></div>",o=this.container=e(u).appendTo(this.element).eq(0).kendoWindow(c({modal:!0,resizable:!1,draggable:!0,title:l.editor.editorTitle,visible:!1,close:function(e){e.userTriggered&&a.trigger("cancel",{container:o,model:t})&&e.preventDefault()}},s)),r=o.kendoEditable({fields:f,model:t,clearContainer:!1,validateOnBlur:!0,target:a.options.target}).data("kendoEditable"),n.cycleForm(o),this.trigger("edit",{container:o,model:t})?a.trigger("cancel",{container:o,model:t}):(o.data("kendoWindow").center().open(),o.on(m+h,w+x.buttonCancel,function(e){e.preventDefault(),e.stopPropagation(),a.trigger("cancel",{container:o,model:t})}),o.on(m+h,w+x.buttonSave,function(e){var n,r,s,l,d;for(e.preventDefault(),e.stopPropagation(),n=a.fields(D.desktop,t,i),r={},l=0,d=n.length;l<d;l++)s=n[l].field,r[s]=t.get(s);a.trigger("save",{container:o,model:t,updateInfo:r})}),o.on(m+h,w+x.buttonDelete,function(e){e.preventDefault(),e.stopPropagation(),a.trigger("remove",{container:o,model:t})})),r}}),I=a.extend({init:function(e,t){a.fn.init.call(this,e,t),this.wrapper=this.element,this.model=this.options.model,this.resourcesField=this.options.resourcesField,this.createButton=this.options.createButton,this._initContainer(),this._attachHandlers()},events:["save"],close:function(){this.window.bind("deactivate",d(this.destroy,this)).close()},destroy:function(){this._dettachHandlers(),this.grid.destroy(),this.grid=null,this.window.destroy(),this.window=null,a.fn.destroy.call(this),n.destroy(this.wrapper),this.element=this.wrapper=null},open:function(){this.window.center().open()},_attachHandlers:function(){var t=this.grid,i=this._cancelProxy=d(this._cancel,this);this.container.on(m+h,w+x.buttonCancel,this._cancelProxy),this._saveProxy=d(this._save,this),this.container.on(m+h,w+x.buttonSave,this._saveProxy),this.window.bind("close",function(e){e.userTriggered&&i(e)}),t.wrapper.on(m+h,"input[type='checkbox']",function(){var i=e(this),o=e(i).closest("tr"),r=t.dataSource.getByUid(o.attr(n.attr("uid"))),a=e(i).is(":checked")?1:"";r.set("value",a)})},_cancel:function(e){e.preventDefault(),this.close()},_createButtons:function(){var e,t,n=this.options.buttons,i='<div class="'+x.popup.buttonsContainer+'">';for(e=0,t=n.length;e<t;e++)i+=this.createButton(n[e]);i+="</div>",this.container.append(i)},_dettachHandlers:function(){this._cancelProxy=null,this._saveProxy=null,this.container.off(h),this.grid.wrapper.off()},_initContainer:function(){var t=this,i=x.popup,o=n.format('<div class="{0} {1}"><div class="{2} {3}"></div></div>"',i.form,i.editForm,i.formContainer,i.resourcesFormContainer);o=e(o),this.container=o.find(w+i.resourcesFormContainer),this.window=o.kendoWindow({modal:!0,resizable:!1,draggable:!0,visible:!1,title:this.options.messages.resourcesEditorTitle,open:function(){t.grid.resize(!0)}}).data("kendoWindow"),this._resourceGrid(),this._createButtons()},_resourceGrid:function(){var t=this,i=this.options.messages,o=e('<div id="resources-grid"/>').appendTo(this.container);this.grid=new n.ui.Grid(o,{columns:[{field:"name",title:i.resourcesHeader,template:"<label><input type='checkbox' value='#=name#'# if (value > 0 && value !== null) {#checked='checked'# } #/>#=name#</labe>"},{field:"value",
title:i.unitsHeader,template:function(e){var t=e.format,i=null!==e.value?e.value:"";return t?n.toString(i,t):i}}],height:280,sortable:!0,editable:!0,filterable:!0,dataSource:{data:t.options.data,schema:{model:{id:"id",fields:{id:{from:"id"},name:{from:"name",type:"string",editable:!1},value:{from:"value",type:"number",validation:this.options.unitsValidation},format:{from:"format",type:"string"}}}}},save:function(e){var t=!!e.values.value;e.container.parent().find("input[type='checkbox']").prop("checked",t)}})},_save:function(e){e.preventDefault(),this._updateModel(),this.wrapper.is(w+x.popup.resourcesField)||this.trigger("save",{container:this.wrapper,model:this.model}),this.close()},_updateModel:function(){var e,t,n,i=[],o=this.grid.dataSource.data();for(t=0,n=o.length;t<n;t++)e=o[t].get("value"),null!==e&&e>0&&i.push(o[t]);this.model[this.resourcesField]=i}});n.gantt={TaskDropDown:T,Editor:A,PopupEditor:E,ResourceEditor:I}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.gantt.list.min",["kendo.treelist.min","kendo.treeview.draganddrop.min"],e)}(function(){return function(e){var t=e.extend,n=e.map,i=e.proxy,o=e.isFunction,r=kendo.ui,a=r.TreeList,s=kendo._outerHeight,l=kendo._activeElement,d=kendo.keys,c=kendo.support.mobileOS,u=kendo.attr("type"),h=kendo.attr("bind"),p=kendo.attr("format"),f="string",m=".kendoGanttList",g="dblclick",v="focusin",_="focusout",b="keydown",w="keyup",k="mousedown",y="beforeEdit",x="edit",C="save",S="cancel",T="render",D=".",A="{0:"+kendo.getCulture().calendar.patterns.d+"}",E={title:"Title",start:"Start Time",end:"End Time",percentComplete:"% Done",parentId:"Predecessor ID",id:"ID",orderId:"Order ID"},I="<table style='visibility: hidden;'><tbody><tr style='height:{0}'><td>&nbsp;</td></tr></tbody></table>",M={editCell:"k-edit-cell",iconCollapse:"k-i-collapse",iconExpand:"k-i-expand"},R=r.GanttList=a.extend({init:function(e,t){0===this.options.columns.length&&this.options.columns.push("title"),a.fn.init.call(this,e,t),this._setWidth()},options:{name:"GanttList",autoBind:!1,sortable:!0,selectable:!0,navigatable:!1,editable:{move:!0,mode:"incell"},resizable:!1},destroy:function(){a.fn.destroy.call(this),kendo.destroy(this.element)},insertAfter:function(e,t){var n=t.orderId,i={parentId:t.parentId};i.orderId=t.parentId===e.parentId&&t.orderId>e.orderId?n:n+1,this.trigger("reorder",{task:e,updateInfo:i})},insertBefore:function(e,t){var n=t.orderId,i={parentId:t.parentId};i.orderId=t.parentId===e.parentId&&t.orderId>e.orderId?n-1:n,this.trigger("reorder",{task:e,updateInfo:i})},_attachCellEditingEventHandlers:function(){var t=this,n=t.options.editable;t._isIncellEditable()&&n.update!==!1&&(t._startEditHandler=function(n){var i=n.currentTarget?e(n.currentTarget):n,o=t._columnFromElement(i);t.editable||o&&o.editable()&&t._editCell(i,o,t._modelFromElement(i))},t.content.on(v+m,i(t._focusInEditableHandler,t)).on(_+m,i(t._focusoutCellHandler,t)).on(b+m,"tr:not(.k-grouping-row) > td",i(t._keydownHandler,t)).on(w+m,"tr:not(.k-grouping-row) > td",i(t._keyupHandler,t)),c?t.touch=t.content.kendoTouch({filter:"td",touchstart:function(e){t._mouseDownHandler(e.touch)},doubletap:function(n){e(n.touch.initialTouch)||t._openEditorHandler(n.touch)}}).data("kendoTouch"):t.content.on(k+m,"tr:not(.k-grouping-row) > td",i(t._mouseDownHandler,t)).on(g+m,"tr:not(.k-grouping-row) > td",i(t._openEditorHandler,t)))},_blurActiveElement:function(){var t=kendo._activeElement();t&&"body"!==t.nodeName.toLowerCase()&&e(t).blur()},_closeCellTimeouted:function(){var t=this,n=l(),i=t.editor||{},o=i.element;o&&o[0]&&n&&!e.contains(o[0],n)&&o[0]!==n&&!e(n).closest(".k-animation-container").length&&i.end()&&t.closeCell()},_columns:function(){var e=this,t=this.options.columns;e._hasExpandable=!1,t.forEach(function(t){t.expandable&&(e._hasExpandable=!0)}),e.columns=e.options.columns=n(t,i(e._eachColumn,e)),a.fn._columns.call(e)},_columnEditor:function(t){var n={name:t.field,required:!0};return n[h]="value:"+t.field,n[u]="date",n[p]=kendo._extractFormat(t.format),function(i,r){var a=r.model,s=a.fields[t.field]||a[t.field],l=s.validation;l&&l.dateCompare&&o(l.dateCompare)&&l.message&&(e("<span "+kendo.attr("for")+'="'+t.field+'" class="k-invalid-msg"/>').hide().appendTo(i),n[kendo.attr("dateCompare-msg")]=l.message),e('<input type="text"/>').attr(n).prependTo(i).kendoDateTimePicker({format:r.format})}},_columnFromElement:function(e){var t=e.closest("td"),n=t.parent(),i=n.children().index(t);return this.columns[i]},_eachColumn:function(e){var o=this,r=o.options.resourcesField,a=this.options.sortable,s=function(){this.field="",this.title="",this.editable=function(){return!1},this.sortable=!1},l=function(e){var t,n=e.get(r)||[],i=[];for(t=0;t<n.length;t++)i.push(kendo.format("{0} [{1}]",n[t].get("name"),n[t].get("formatedValue")));return i.join(", ")};return e.columns&&(o.hasNestedColumns=!0,e.columns=n(e.columns,i(this._eachColumn,this))),typeof e===f&&(e={field:e,title:E[e]}),e.editable=e.editable===!0?function(){return!0}:function(){return!1},"start"!==e.field&&"end"!==e.field||(e.format=kendo.getCulture().calendar.patterns[e.format]||e.format||A,e.editor||(e.format===A||e.format.toLowerCase().indexOf("h")>-1)&&(e.editor=o._columnEditor(e))),e.field===r&&(e.sortable=!1,e.template=l),o._hasExpandable||"title"!==e.field||(e.expandable=!0),a&&!e.sortable&&(e.sortable=!1),t(new s,e)},_editCell:function(e,t,n){var i,o=this,r=o.options.resourcesField,a=o.dataSource._createNewModel(n.toJSON());return t.field===r?void t.editor(e,a):o.trigger(y,{model:n,container:e})?void o.dataSource._restorePageSizeAfterAddChild():(o.closeCell(),n._edit=!0,o._cancelEditor(),o._render({editedColumn:t,editedColumnIndex:e.index()}),i=o.table.add(o.lockedTable).find(D+M.editCell).first(),o.editor=o._createIncellEditor(i,{columns:[t],model:n,change:function(t){o.trigger(C,{values:t.values,container:e,model:n})&&t.preventDefault()}}),o._current=i,void o.trigger(x,{container:e,model:n}))},_focusInEditableHandler:function(t){var n=this,i=t.target;e.contains(i,l())||(clearTimeout(n._closeCellTimeout),n._closeCellTimeout=null)},_focusoutCellHandler:function(e){var t=this;t._closeCellTimeout=setTimeout(function(){t._closeCellTimeouted(e)},1)},_keydownHandler:function(e){e.keyCode===d.ENTER&&e.preventDefault()},_keyupHandler:function(t){var n,i,o=this,r=t.keyCode;switch(r){case d.ENTER:o._blurActiveElement(),o._closeCellTimeouted(t);break;case d.ESC:o.editor&&(n=e(t.target),i=o._modelFromElement(n),o.trigger(S,{model:i,cell:n}))}},_modelFromElement:function(e){var t=e.closest("tr"),n=this.dataSource.getByUid(t.attr(kendo.attr("uid")));return n},_mouseDownHandler:function(t){var n=e(t.currentTarget);n.hasClass(M.editCell)||this._blurActiveElement()},_openEditorHandler:function(t){var n=this,i=e(t.currentTarget),o=n.lockedTable&&i.closest("table")[0]===n.lockedTable[0],r=n.selectable&&n.selectable.options.multiple;i.hasClass(M.editCell)||i.has("a.k-grid-delete").length||i.has("button.k-grid-delete").length||i.closest("tbody")[0]!==n.tbody[0]&&!o||e(t.target).is(":input")||e(t.target).hasClass(M.iconExpand)||e(t.target).hasClass(M.iconCollapse)||(n.editor?n.editor.end()&&(r&&e(l()).blur(),n.closeCell(),n.editCell(i)):n.editCell(i))},_render:function(e){a.fn._render.call(this,e),this.hasNestedColumns&&this.element.addClass("k-gantt-treelist-nested-columns"),e&&e.length&&!e.editedColumn&&(this.options.rowHeight&&this._rowHeight(e),this.trigger(T))},_rowHeight:function(t){var n,i=this.content,o=this.options,r=typeof o.rowHeight===f?o.rowHeight:o.rowHeight+"px",a=e(kendo.format(I,r));i.append(a),n=s(a.find("tr")),a.remove(),this.element.find('[role="treegrid"]').css("height",t.length*n+"px")},_setData:function(e){this.dataSource.data(e)},_setWidth:function(){this.element.find(".k-grid-header table").css("minWidth",this.options.listWidth),this.content.find("table").css("minWidth",this.options.listWidth)}});r.plugin(R)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.touch.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.proxy,r=Math.abs,a=20,s=i.extend({init:function(e,t){function r(e){return function(t){s._triggerTouch(e,t)}}function a(e){return function(t){s.trigger(e,{touches:t.touches,distance:t.distance,center:t.center,event:t.event})}}var s=this;i.fn.init.call(s,e,t),t=s.options,e=s.element,s.wrapper=e,s.events=new n.UserEvents(e,{filter:t.filter,surface:t.surface,minHold:t.minHold,multiTouch:t.multiTouch,allowSelection:!0,fastTap:t.fastTap,press:r("touchstart"),hold:r("hold"),tap:o(s,"_tap"),gesturestart:a("gesturestart"),gesturechange:a("gesturechange"),gestureend:a("gestureend")}),t.enableSwipe?(s.events.bind("start",o(s,"_swipestart")),s.events.bind("move",o(s,"_swipemove"))):(s.events.bind("start",o(s,"_dragstart")),s.events.bind("move",r("drag")),s.events.bind("end",r("dragend"))),n.notify(s)},events:["touchstart","dragstart","drag","dragend","tap","doubletap","hold","swipe","gesturestart","gesturechange","gestureend"],options:{name:"Touch",surface:null,global:!1,fastTap:!1,filter:null,multiTouch:!1,enableSwipe:!1,minXDelta:30,maxYDelta:20,maxDuration:1e3,minHold:800,doubleTapTimeout:800},cancel:function(){this.events.cancel()},destroy:function(){i.fn.destroy.call(this),this.events.destroy()},_triggerTouch:function(e,t){this.trigger(e,{touch:t.touch,event:t.event})&&t.preventDefault()},_tap:function(e){var t=this,i=t.lastTap,o=e.touch;i&&o.endTime-i.endTime<t.options.doubleTapTimeout&&n.touchDelta(o,i).distance<a?(t._triggerTouch("doubletap",e),t.lastTap=null):(t._triggerTouch("tap",e),t.lastTap=o)},_dragstart:function(e){this._triggerTouch("dragstart",e)},_swipestart:function(e){2*r(e.x.velocity)>=r(e.y.velocity)&&e.sender.capture()},_swipemove:function(e){var t=this,n=t.options,i=e.touch,o=e.event.timeStamp-i.startTime,a=i.x.initialDelta>0?"right":"left";r(i.x.initialDelta)>=n.minXDelta&&r(i.y.initialDelta)<n.maxYDelta&&o<n.maxDuration&&(t.trigger("swipe",{direction:a,touch:e.touch}),i.cancel())}});n.ui.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.gantt.timeline.min",["kendo.dom.min","kendo.touch.min","kendo.draganddrop.min"],e)}(function(){return function(e){function t(e){return delete e.name,delete e.prefix,delete e.views,e}function n(e){var t=[],n=e.workWeekStart;for(t.push(n);e.workWeekEnd!=n;)n>6?n-=7:n++,t.push(n);return t}function i(){var t=kendo._activeElement();t&&"body"!==t.nodeName.toLowerCase()&&e(t).blur()}var o,r,a=kendo.ui.Widget,s=kendo.dom.element,l=kendo.dom.text,d=kendo.dom.html,c=e.isPlainObject,u=kendo._outerWidth,h=kendo._outerHeight,p=e.extend,f=e.proxy,m=kendo.support.browser,g=!1,v=kendo.keys,_=kendo.data.Query,b="string",w=".kendoGanttTimeline",k="click",y="dblclick",x="mousemove",C="mouseenter",S="mouseleave",T="keydown",D=".",A=kendo.template("#=kendo.toString(start, 't')#"),E=kendo.template("#=kendo.toString(start, 'ddd M/dd')#"),I=kendo.template("#=kendo.toString(start, 'ddd M/dd')# - #=kendo.toString(kendo.date.addDays(end, -1), 'ddd M/dd')#"),M=kendo.template("#=kendo.toString(start, 'MMM')#"),R=kendo.template("#=kendo.toString(start, 'yyyy')#"),F=kendo.template('<div class="#=styles.marquee#"><div class="#=styles.marqueeColor#"></div></div>'),P=kendo.template('<div style="z-index: 100002;" class="#=styles.tooltipWrapper# k-gantt-resize-hint"><div class="#=styles.tooltipContent#"><div>#=messages.start#: #=kendo.toString(start, format)#</div><div>#=messages.end#: #=kendo.toString(end, format)#</div></div></div>'),z=kendo.template('<div style="z-index: 100002;" class="#=styles.tooltipWrapper#" ><div class="#=styles.tooltipContent#">#=text#%</div><div class="#=styles.tooltipCallout#" style="left:13px;"></div></div>'),B=kendo.template('<div class="#=kendo.htmlEncode(styles.taskDetails)#"><strong>#=kendo.htmlEncode(task.title)#</strong><div class="#=styles.taskDetailsPercent#">#=kendo.toString(task.percentComplete, "p0")#</div><ul class="#=styles.reset#"><li>#=messages.start#: #=kendo.toString(task.start, "h:mm tt ddd, MMM d")#</li><li>#=messages.end#: #=kendo.toString(task.end, "h:mm tt ddd, MMM d")#</li></ul></div>'),L=kendo.template("<span>#=offsetPrefix#: #=offsetText#</span>"),H=kendo.template('<div class="k-task-content"><div>#=plannedStart#: #=startDate#</div><div>#=plannedEnd#: #=endDate#</div></div>'),N="<table style='visibility: hidden;'><tbody><tr style='height:{0}'><td>&nbsp;</td></tr></tbody></table>",O={day:{type:"kendo.ui.GanttDayView"},week:{type:"kendo.ui.GanttWeekView"},month:{type:"kendo.ui.GanttMonthView"},year:{type:"kendo.ui.GanttYearView"}},V={alt:"k-alt",reset:"k-reset",nonWorking:"k-nonwork-hour",header:"k-header",gridHeader:"k-grid-header",gridHeaderWrap:"k-grid-header-wrap",gridContent:"k-grid-content",tasksWrapper:"k-gantt-tables",rowsTable:"k-gantt-rows",columnsTable:"k-gantt-columns",tasksTable:"k-gantt-tasks",dependenciesWrapper:"k-gantt-dependencies",resource:"k-resource",resourceAlt:"k-resource k-alt",task:"k-task",taskSingle:"k-task-single",taskMilestone:"k-task-milestone",taskSummary:"k-task-summary",taskWrap:"k-task-wrap",taskMilestoneWrap:"k-milestone-wrap",taskSummaryWrap:"k-summary-wrap",taskPlanned:"k-task-planned",taskPlannedMoment:"k-task-moment",taskPlannedDuration:"k-task-duration",taskPlannedMomentLeft:"k-moment-left",taskAdvanced:"k-task-advanced",taskDelayed:"k-task-delayed",taskOffset:"k-task-offset",taskOffsetWrap:"k-task-offset-wrap",taskInnerWrap:"k-task-inner-wrap",resourcesWrap:"k-resources-wrap",taskDot:"k-task-dot",taskDotStart:"k-task-start",taskDotEnd:"k-task-end",taskDragHandle:"k-task-draghandle",taskContent:"k-task-content",taskTemplate:"k-task-template",taskActions:"k-task-actions",taskDelete:"k-task-delete",taskComplete:"k-task-complete",taskDetails:"k-task-details",taskDetailsPercent:"k-task-pct",link:"k-link",icon:"k-icon",iconDelete:"k-i-close",taskResizeHandle:"k-resize-handle",taskResizeHandleWest:"k-resize-w",taskResizeHandleEast:"k-resize-e",taskSummaryProgress:"k-task-summary-progress",taskSummaryComplete:"k-task-summary-complete",line:"k-gantt-line",lineHorizontal:"k-gantt-line-h",lineVertical:"k-gantt-line-v",arrowWest:"k-arrow-w",arrowEast:"k-arrow-e",dragHint:"k-drag-hint",dependencyHint:"k-gantt-dependency-hint",tooltipWrapper:"k-tooltip",tooltipContent:"k-tooltip-content",tooltipCallout:"k-callout k-callout-s",callout:"k-callout",marquee:"k-marquee k-gantt-marquee",marqueeColor:"k-marquee-color",offsetTooltipAdvanced:"k-offset-tooltip-advanced",offsetTooltipDelay:"k-offset-tooltip-delayed",plannedTooltip:"k-planned-tooltip"},W=kendo.ui.GanttView=a.extend({init:function(e,t){a.fn.init.call(this,e,t),this.title=this.options.title||this.options.name,this.header=this.element.find(D+W.styles.gridHeader),this.content=this.element.find(D+W.styles.gridContent),this.contentWidth=this.content.width(),this._workDays=n(this.options),this._headerTree=t.headerTree,this._taskTree=t.taskTree,this._taskTemplate=t.taskTemplate?kendo.template(t.taskTemplate,p({},kendo.Template,t.templateSettings)):null,this._dependencyTree=t.dependencyTree,this._taskCoordinates={},this._currentTime()},destroy:function(){a.fn.destroy.call(this),clearTimeout(this._tooltipTimeout),this.headerRow=null,this.header=null,this.content=null,this._dragHint=null,this._resizeHint=null,this._resizeTooltip=null,this._taskTooltip=null,this._percentCompleteResizeTooltip=null,this._headerTree=null,this._taskTree=null,this._dependencyTree=null},options:{showWorkHours:!1,showWorkDays:!1,workDayStart:new Date(1980,1,1,8,0,0),workDayEnd:new Date(1980,1,1,17,0,0),workWeekStart:1,workWeekEnd:5,hourSpan:1,slotSize:100,currentTimeMarker:{updateInterval:1e4}},renderLayout:function(){this._slots=this._createSlots(),this._tableWidth=this._calculateTableWidth(),this.createLayout(this._layout()),this._slotDimensions(),this._adjustHeight(),this.content.find(D+W.styles.dependenciesWrapper).width(this._tableWidth)},_adjustHeight:function(){this.content&&this.content.height(this.element.height()-h(this.header))},createLayout:function(e){var t=this._headers(e),n=this._colgroup(),i=this._headerTree,o=s("tbody",null,t),r=s("table",{style:{width:this._tableWidth+"px"},role:"presentation"},[n,o]);i.render([r]),this.headerRow=this.header.find("table:first tr").last()},_slotDimensions:function(){var e,t,n,i,o=this.headerRow[0].children,r=this._timeSlots();for(n=0,i=o.length;n<i;n++)t=o[n],e=r[n],e.offsetLeft=t.offsetLeft,e.offsetWidth=t.offsetWidth},render:function(e){var t,n,i=e.length,o=W.styles,r=this._rowsTable(i),a=this._columnsTable(i),s=this._tasksTable(e),l=this.options.currentTimeMarker,d=this.options.calculatedSize;this._taskTree.render([r,a,s]),t=this.content.find(D+o.rowsTable),d&&(n=d.row*e.length,this.content.find(D+o.tasksTable).height(n),t.height(n)),this._contentHeight=t.height(),this._rowHeight=d?d.row:this._contentHeight/t.find("tr").length,this.content.find(D+o.columnsTable).height(this._contentHeight),l!==!1&&void 0!==l.updateInterval&&this._renderCurrentTime()},_rowsTable:function(e){var t,n,i=[],o=W.styles,r=[null,{className:o.alt}];for(n=0;n<e;n++)t=s("tr",r[n%2],[s("td",null,[l(" ")])]),i.push(t);return this._createTable(1,i,{className:o.rowsTable})},_columnsTable:function(){var e,t,n,i,o,r=[],a=W.styles,d=this._timeSlots(),c=d.length,u=0;for(o=0;o<c;o++)t=d[o],i={},n=t.span,u+=n,1!==n&&(i.colspan=n),t.isNonWorking&&(i.className=a.nonWorking),r.push(s("td",i,[l(" ")]));return e=s("tr",null,r),this._createTable(u,[e],{className:a.columnsTable})},_tasksTable:function(e){var t,n,i,o,r,a,l,d,c,u=[],h=W.styles,p=this._taskCoordinates={},f=this._calculateMilestoneWidth(),m=Math.round(f.width),v=this.options.resourcesField,_=[h.resource,h.resourceAlt],b=this.options.calculatedSize,w=this._calculateResourcesMargin(),k=this._calculateTaskBorderWidth(),y=this.options.showPlannedTasks,x=function(e){var t=i.left,n=t+i.width;r.isMilestone()&&(t-=m/2,n=t+m),p[r.id]={start:t,end:n,rowIndex:e}};for(d=0,c=e.length;d<c;d++)r=e[d],i=this._taskPosition(r),y&&(o=this._taskPositionPlanned(r),o.borderWidth=k),i.borderWidth=k,t=s("tr",null),n=s("td"),r.start<=this.end&&r.end>=this.start&&(n.children.push(this._renderTask(e[d],i,o)),r[v]&&r[v].length&&(a=g?this._tableWidth-i.left:Math.max(i.width||f.clientWidth,0)+i.left,l={width:this._tableWidth-(a+w)+"px"},l[g?"right":"left"]=a+"px",b&&(l.height=b.cell+"px"),n.children.push(s("div",{className:h.resourcesWrap,style:l},this._renderResources(r[v],_[d%2])))),x(d)),t.children.push(n),u.push(t);return this._createTable(1,u,{className:W.styles.tasksTable})},_createTable:function(e,t,n){var i,o,r,a=[];for(r=0;r<e;r++)a.push(s("col"));return i=s("colgroup",null,a),o=s("tbody",null,t),n.style||(n.style={}),n.style.width=this._tableWidth+"px",n.role="presentation",s("table",n,[i,o])},_calculateTableWidth:function(){var e,t,n,i,o=this._timeSlots(),r=0,a=0;for(n=0,i=o.length;n<i;n++)e=o[n].span,a+=e,e>r&&(r=e);return t=Math.round(a*this.options.slotSize/r)},_calculateMilestoneWidth:function(){var t,n,i=W.styles.task+" "+W.styles.taskMilestone,o=e("<div class='"+i+"' style='visibility: hidden; position: absolute'>");return this.content.append(o),n=o[0].getBoundingClientRect(),t={width:n.right-n.left,clientWidth:o[0].clientWidth},o.remove(),t},_calculateResourcesMargin:function(){var t,n=e("<div class='"+W.styles.resourcesWrap+"' style='visibility: hidden; position: absolute'>");return this.content.append(n),t=parseInt(n.css(g?"margin-right":"margin-left"),10),n.remove(),t},_calculateTaskBorderWidth:function(){var t,n,i=W.styles.task+" "+W.styles.taskSingle,o=e("<div class='"+i+"' style='visibility: hidden; position: absolute'>");return this.content.append(o),n=kendo.getComputedStyles(o[0],["border-left-width"]),t=parseFloat(n["border-left-width"],10),o.remove(),t},_renderTask:function(e,t,n){var i,o,r,a,l,d,c,u,h=this.options.editable,p=t.left,f=W.styles,m=f.taskWrap,v=this.options.calculatedSize,_={},b={className:m,style:{left:p+"px"}},w=[],k=0,y=t.width;return v&&(b.style.height=v.cell+"px"),n&&(a=e.isMilestone()?this._renderPlannedMilestone(t,n):this._renderPlannedSingleTask(t,n,e),w.push(a),g&&n.left<=t.left&&(b.style.left=n.left+"px")),e.summary?(o=this._renderSummary(e,t,n),b.className+=" "+f.taskSummaryWrap):e.isMilestone()?(o=this._renderMilestone(e,t),b.className+=" "+f.taskMilestoneWrap):o=this._renderSingleTask(e,t,n),n&&!e.isMilestone()&&e.plannedStart<e.end&&e.plannedEnd>e.start&&e.plannedEnd<e.end?(y=g?t.left+t.width-n.left:n.left+n.width-t.left,u=g?n.left-t.left:t.left+t.width-(n.left+n.width),c=s("div",{className:f.taskOffset,style:{width:u-2*n.borderWidth+"px"}}),h&&h.resize!==!1&&h.update!==!1&&!e.summary&&(h.destroy!==!1&&c.children.push(s("span",{className:f.taskActions},[s("a",{className:f.link+" "+f.taskDelete,href:"#","aria-label":"Delete"},[s("span",{className:f.icon+" "+f.iconDelete})])])),c.children.push(g?s("span",{className:f.taskResizeHandle+" "+f.taskResizeHandleWest,style:{right:t.width-5+"px"}}):s("span",{className:f.taskResizeHandle+" "+f.taskResizeHandleEast}))),d=s("div",{className:f.taskOffsetWrap+" "+f.taskInnerWrap},[o,c]),w.push(d)):w.push(n?s("div",{className:f.taskInnerWrap},[o]):o),i=s("div",b,w),h&&h.dependencyCreate!==!1&&(n&&e.plannedEnd>e.end&&(k=n.left+n.width-t.left-t.width-3+"px"),i.children.push(s("div",{className:f.taskDot+" "+f.taskDotStart})),g&&(k="auto",n&&e.plannedEnd>e.end&&(l=t.left-n.left+"px")),i.children.push(s("div",{className:f.taskDot+" "+f.taskDotEnd,style:{right:k,left:l}}))),e.summary||e.isMilestone()||!h||h.dragPercentComplete===!1||h.update===!1||null!==this._taskTemplate||(r=Math.round(y*e.percentComplete),_[g?"right":"left"]=r+"px",i.children.push(s("div",{className:f.taskDragHandle,style:_}))),i},_renderSingleTask:function(e,t,n){var i,o,r,a,c=W.styles,u=[],h=this.options.editable,p=c.task+" "+c.taskSingle,f=t.width;return n&&(e.plannedEnd&&e.plannedEnd<=e.start?p+=" "+c.taskDelayed:e.plannedEnd&&e.plannedEnd>e.end?p+=" "+c.taskAdvanced:e.plannedEnd&&e.plannedEnd<e.end&&(g?f=f+t.left-n.left:f-=t.left+t.width-n.left-n.width)),i=Math.round(f*e.percentComplete),null!==this._taskTemplate?o=d(this._taskTemplate(e)):(o=l(e.title),u.push(s("div",{className:c.taskComplete,style:{width:i+"px"}}))),r=s("div",{className:c.taskContent},[s("div",{className:c.taskTemplate},[o])]),u.push(r),h&&(h.destroy!==!1&&(!n||!e.plannedEnd||e.end<=e.plannedEnd||e.start>=e.plannedEnd)&&r.children.push(s("span",{className:c.taskActions},[s("a",{className:c.link+" "+c.taskDelete,href:"#","aria-label":"Delete"},[s("span",{className:c.icon+" "+c.iconDelete})])])),h.resize!==!1&&h.update!==!1&&(r.children.push(s("span",{className:c.taskResizeHandle+" "+c.taskResizeHandleWest})),r.children.push(s("span",{className:c.taskResizeHandle+" "+c.taskResizeHandleEast})))),a=s("div",{className:p,"data-uid":e.uid,style:{width:Math.max(f-2*t.borderWidth,0)+"px"}},u)},_renderMilestone:function(e){var t=W.styles,n=t.task+" "+t.taskMilestone,i=this.options.showPlannedTasks;return i&&e.plannedEnd&&e.plannedEnd<e.start?n+=" "+t.taskDelayed:e.plannedStart&&e.plannedStart>e.end&&(n+=" "+t.taskAdvanced),s("div",{className:n,"data-uid":e.uid})},_renderSummary:function(e,t,n){var i,o,r=W.styles,a=t.width,l=r.task+" "+r.taskSummary;return n&&(e.plannedEnd&&e.plannedEnd<=e.start?l+=" "+r.taskDelayed:e.plannedEnd&&e.plannedEnd>e.end?l+=" "+r.taskAdvanced:e.plannedEnd&&e.plannedEnd<e.end&&(g?a=a+t.left-n.left:a-=t.left+t.width-n.left-n.width)),i=Math.round(a*e.percentComplete),o=s("div",{className:l,"data-uid":e.uid,style:{width:a+"px"}},[s("div",{className:r.taskSummaryProgress,style:{width:i+"px"}},[s("div",{className:r.taskSummaryComplete,style:{width:t.width+"px"}})])])},_renderPlannedSingleTask:function(e,t,n){var i,o=W.styles,r=[],a={};return n.plannedStart&&n.plannedEnd?(r.push(s("div",{className:o.taskPlannedMoment+" "+o.taskPlannedMomentLeft})),r.push(s("div",{className:o.taskPlannedDuration,style:{width:Math.max(t.width-2*t.borderWidth-16,0)+"px"}})),r.push(s("div",{className:o.taskPlannedMoment}))):n.plannedStart?r.push(s("div",{className:o.taskPlannedMoment+" "+o.taskPlannedMomentLeft})):n.plannedEnd&&r.push(s("div",{className:o.taskPlannedMoment,style:{"margin-left":Math.max(t.width-5,0)+"px"}})),a=g?{"margin-right":e.left-t.left+e.width-t.width+"px"}:{"margin-left":t.left-e.left+"px"},i=s("div",{className:o.taskPlanned,style:a},r)},_renderPlannedMilestone:function(e,t){var n,i=W.styles,o={};return o=g?{"margin-right":e.left-t.left+"px"}:{"margin-left":t.left-e.left+"px"},n=s("div",{className:i.taskPlanned,style:o},[s("div",{className:i.taskPlannedMoment})])},_renderResources:function(e,t){var n,i,o,r=[];for(i=0,o=e.length;i<o;i++)n=e[i],r.push(s("span",{className:t,style:{color:n.get("color")}},[l(n.get("name"))]));return g&&r.reverse(),r},_taskPosition:function(e){var t=Math.round,n=t(this._offset(g?e.end:e.start)),i=t(this._offset(g?e.start:e.end));return{left:n,width:i-n}},_taskPositionPlanned:function(e){var t=Math.round,n=t(this._offset(g?e.plannedEnd:e.plannedStart)),i=t(this._offset(g?e.plannedStart:e.plannedEnd));return{left:n,width:i-n}},_offset:function(e){var t,n,i,o,r=this._timeSlots(),a=0;return r.length?(o=this._slotIndex("start",e),t=r[o],t.end<e?a=t.offsetWidth:t.start<=e&&(n=e-t.start,i=t.end-t.start,a=n/i*t.offsetWidth),g&&(a=t.offsetWidth+1-a),t.offsetLeft+a):0},_slotIndex:function(e,t,n){var i,o=this._timeSlots(),r=0,a=o.length-1;n&&(o=[].slice.call(o).reverse());do i=Math.ceil((a+r)/2),o[i][e]<t?r=i:(i===a&&i--,a=i);while(r!==a);return n&&(r=o.length-1-r),r},_timeByPosition:function(e,t,n){var i,o,r,a=this._slotByPosition(e);return t?n?a.end:a.start:(i=e-this.element.find(D+W.styles.tasksTable).offset().left,o=a.end-a.start,r=i-a.offsetLeft,g&&(r=a.offsetWidth-r),new Date(a.start.getTime()+o*(r/a.offsetWidth)))},_slotByPosition:function(e){var t=e-this.element.find(D+W.styles.tasksTable).offset().left,n=this._slotIndex("offsetLeft",t,g);return this._timeSlots()[n]},_renderDependencies:function(e){var t,n,i=[],o=this._dependencyTree;for(t=0,n=e.length;t<n;t++)i.push.apply(i,this._renderDependency(e[t]));o.render(i)},_renderDependency:function(e){var t,n,i,o,r=this._taskCoordinates[e.predecessorId],a=this._taskCoordinates[e.successorId];if(!r||!a)return[];for(n="_render"+["FF","FS","SF","SS"][g?3-e.type:e.type],t=this[n](r,a),i=0,o=t.length;i<o;i++)t[i].attr["data-uid"]=e.uid;return t},_renderFF:function(e,t){var n=this._dependencyFF(e,t,!1);return n[n.length-1].children[0]=this._arrow(!0),n},_renderSS:function(e,t){var n=this._dependencyFF(t,e,!0);return n[0].children[0]=this._arrow(!1),n.reverse()},_renderFS:function(e,t){var n=this._dependencyFS(e,t,!1);return n[n.length-1].children[0]=this._arrow(!1),n},_renderSF:function(e,t){var n=this._dependencyFS(t,e,!0);return n[0].children[0]=this._arrow(!0),n.reverse()},_dependencyFF:function(e,t,n){var i,o=this,r=[],a=0,s=0,l=0,d=0,c=n?"start":"end",u=2,h=1,p=this._rowHeight,f=10,m=e.rowIndex*p+Math.floor(p/2)-1,g=t.rowIndex*p+Math.floor(p/2)-1,v=W.styles,_=function(){r.push(o._line(v.line+" "+v.lineHorizontal,{left:a+"px",top:s+"px",width:l+"px"}))},b=function(){r.push(o._line(v.line+" "+v.lineVertical,{left:a+"px",top:s+"px",height:d+"px"}))};return a=e[c],s=m,l=f,i=t[c]-e[c],i>0!==n&&(l=Math.abs(i)+f),n?(a-=l,l-=h,_()):(_(),a+=l-u),g<s?(d=s-g,d+=u,s=g,b()):(d=g-s,d+=u,b(),s+=d-u),l=Math.abs(a-t[c]),n||(l-=h,a-=l),_(),r},_dependencyFS:function(e,t,n){var i=this,o=[],r=0,a=0,s=0,l=0,d=this._rowHeight,c=Math.floor(d/2),u=10,h=2*u,p=t.start-e.end,f=2,m=1,g=e.rowIndex*d+Math.floor(d/2)-1,v=t.rowIndex*d+Math.floor(d/2)-1,_=W.styles,b=function(){o.push(i._line(_.line+" "+_.lineHorizontal,{left:r+"px",top:a+"px",width:s+"px"}))},w=function(){o.push(i._line(_.line+" "+_.lineVertical,{left:r+"px",top:a+"px",height:l+"px"}))};return r=e.end,a=g,s=u,n&&(r+=m,p>h&&(s=p-(u-f)),s-=m),b(),r+=s-f,p<=h&&(l=n?Math.abs(v-g)-c:c,v<g?(a-=l,l+=f,w()):(w(),a+=l),s=e.end-t.start+h,s<u&&(s=u),r-=s-f,b()),v<g?(l=a-v,a=v,l+=f,w()):(l=v-a,w(),a+=l),s=t.start-r,n||(s-=m),b(),o},_line:function(e,t){return s("div",{className:e,style:t})},_arrow:function(e){return s("span",{className:e?W.styles.arrowWest:W.styles.arrowEast})},_colgroup:function(){var e,t,n,i=this._timeSlots(),o=i.length,r=[];for(e=0;e<o;e++)for(t=0,n=i[e].span;t<n;t++)r.push(s("col"));return s("colgroup",null,r)},_createDragHint:function(e){var t,n=W.styles;this._dragHint=e.clone().addClass(n.dragHint).css({cursor:"move"}),t=this._dragHint.find(D+n.taskPlanned),t.css({visibility:"hidden"}),g&&e.find(D+n.taskAdvanced).length>0&&(t.css({"margin-right":"auto",width:0}),this._dragHint.find(D+n.taskDotEnd).css({left:0})),e.closest("td").append(this._dragHint)},_updateDragHint:function(e){var t=this._offset(e);this._dragHint.css({left:t})},_removeDragHint:function(){this._dragHint.remove(),this._dragHint=null},_createResizeHint:function(t){var n,i,o=W.styles,r=this._taskCoordinates[t.id].rowIndex*this._rowHeight,a=this.options,s=a.messages;this._resizeHint=e(F({styles:o})).css({top:0,height:this._contentHeight}),this.content.append(this._resizeHint),this._resizeTooltip=e(P({styles:o,start:t.start,end:t.end,messages:s.views,format:a.resizeTooltipFormat})).css({top:0,left:0}),this.content.append(this._resizeTooltip),this._resizeTooltipWidth=u(this._resizeTooltip),n=h(this._resizeTooltip),i=r-n,i<0&&(i=r+this._rowHeight),this._resizeTooltipTop=i},_updateResizeHint:function(t,n,i){var o=this._offset(g?n:t),r=this._offset(g?t:n),a=r-o,s=i!==g?o:r,l=this._tableWidth-kendo.support.scrollbar(),d=this._resizeTooltipWidth,c=this.options,u=c.messages,h=this.element.find(D+W.styles.tasksTable).offset().left-this.element.find(D+W.styles.tasksWrapper).offset().left;g&&(o+=h),this._resizeHint.css({left:o,width:a}),this._resizeTooltip&&this._resizeTooltip.remove(),s-=Math.round(d/2),s<0?s=0:s+d>l&&(s=l-d),g&&(s+=h),this._resizeTooltip=e(P({styles:W.styles,start:t,end:n,messages:u.views,format:c.resizeTooltipFormat})).css({top:this._resizeTooltipTop,left:s,"min-width":d}).appendTo(this.content)},_removeResizeHint:function(){this._resizeHint.remove(),this._resizeHint=null,this._resizeTooltip.remove(),this._resizeTooltip=null},_updatePercentCompleteTooltip:function(t,n,i){var o,r,a,s;this._removePercentCompleteTooltip(),o=this._percentCompleteResizeTooltip=e(z({styles:W.styles,text:i})).appendTo(this.element),r=Math.round(u(o)/2),a=o.find(D+W.styles.callout),s=Math.round(u(a)/2),o.css({top:t-(h(o)+s),left:n-r}),a.css("left",r-s)},_removePercentCompleteTooltip:function(){this._percentCompleteResizeTooltip&&this._percentCompleteResizeTooltip.remove(),this._percentCompleteResizeTooltip=null},_updateDependencyDragHint:function(e,t,n){this._removeDependencyDragHint(),n?this._creteVmlDependencyDragHint(e,t):this._creteDependencyDragHint(e,t)},_creteDependencyDragHint:function(t,n){var i=W.styles,o=n.x-t.x,r=n.y-t.y,a=Math.sqrt(o*o+r*r),s=Math.atan(r/o);o<0&&(s+=Math.PI),e("<div class='"+i.line+" "+i.lineHorizontal+" "+i.dependencyHint+"'></div>").css({top:t.y,left:t.x,width:a,"transform-origin":"0% 0","-ms-transform-origin":"0% 0","-webkit-transform-origin":"0% 0",transform:"rotate("+s+"rad)","-ms-transform":"rotate("+s+"rad)","-webkit-transform":"rotate("+s+"rad)"}).appendTo(this.content)},_creteVmlDependencyDragHint:function(t,n){var i=e("<kvml:line class='"+W.styles.dependencyHint+"' style='position:absolute; top: 0px; left: 0px;' strokecolor='black' strokeweight='2px' from='"+t.x+"px,"+t.y+"px' to='"+n.x+"px,"+n.y+"px'></kvml:line>").appendTo(this.content);i[0].outerHTML=i[0].outerHTML},_removeDependencyDragHint:function(){this.content.find(D+W.styles.dependencyHint).remove()},_createTaskTooltip:function(t,n,i){var o=W.styles,r=this.options,a=this.content,s=a.offset(),l=kendo.scrollLeft(a),d=e(n).parents("tr").first(),c=d.offset(),u=r.tooltip&&r.tooltip.template?kendo.template(r.tooltip.template):B,p=g?i-(s.left+l+kendo.support.scrollbar()):i-(s.left-l),f=c.top+h(d)-s.top+a.scrollTop(),m=this._taskTooltip=e('<div style="z-index: 100002;" class="'+o.tooltipWrapper+'" ><div class="'+o.taskContent+'"></div></div>');
m.css({left:p,top:f}).appendTo(a).find(D+o.taskContent).append(u({styles:o,task:t,messages:r.messages.views})),this._adjustTooltipDimensions(m,c,s,p,l)},_removeTaskTooltip:function(){this._taskTooltip&&this._taskTooltip.remove(),this._taskTooltip=null},_createOffsetTooltip:function(t,n,i){var o,r,a=W.styles,s=this.content,l=s.offset(),d=kendo.scrollLeft(s),c=n.parents("tr").first(),u=c.offset(),p=g?i-(l.left+d+kendo.support.scrollbar()):i-(l.left-d),f=u.top+h(c)-l.top+s.scrollTop(),m=this._offsetTooltip=e('<div style="z-index: 100002;" class="'+a.tooltipWrapper+'" ></div>'),v=Math.round((t.end.getTime()-t.plannedEnd.getTime())/6e4),_=this.options.messages.plannedTasks,b=v%60,w=b+" "+_.minutes;v>=60&&(o=v=Math.floor(v/60),w=o+" "+_.hours,0!==b&&(w+=" "+b+" "+_.minutes),v>=24&&(o=v%24,r=v=Math.floor(v/24),w=r+" "+_.days,0!==o&&(w+=" "+o+" "+_.hours))),m.css({left:p,top:f}).addClass(a.offsetTooltipDelay).appendTo(s).append(L({offsetPrefix:_.offsetTooltipDelay,offsetText:w})),this._adjustTooltipDimensions(m,u,l,p,d)},_removeOffsetTooltip:function(){this._offsetTooltip&&this._offsetTooltip.remove(),this._offsetTooltip=null},_createPlannedTooltip:function(t,n,i){var o=W.styles,r=this.content,a=r.offset(),s=kendo.scrollLeft(r),l=n.parents("tr").first(),d=l.offset(),c=g?i-(a.left+s+kendo.support.scrollbar()):i-(a.left-s),u=d.top+h(l)-a.top+r.scrollTop(),p=this._plannedTooltip=e('<div style="z-index: 100002;" class="'+o.tooltipWrapper+" "+o.plannedTooltip+'" ></div>'),f=this.options.messages.editor;p.css({left:c,top:u}).appendTo(r).append(H({plannedStart:f.plannedStart,startDate:kendo.toString(t.plannedStart,"H:mm tt ddd, MMM dd"),plannedEnd:f.plannedEnd,endDate:kendo.toString(t.plannedEnd,"H:mm tt ddd, MMM dd")})),this._adjustTooltipDimensions(p,d,a,c,s)},_removePlannedTooltip:function(){this._plannedTooltip&&this._plannedTooltip.remove(),this._plannedTooltip=null},_adjustTooltipDimensions:function(e,t,n,i,o){var r,a=this.content,s=a.width();h(e)<t.top-n.top&&e.css("top",t.top-n.top-h(e)+a.scrollTop()),r=u(e),r+i-o>s&&(i-=r,i<o&&(i=o+s-(r+17)),e.css("left",i))},_scrollTo:function(e){var t=e.offset().left,n=e.width(),i=t+n,o=e.closest("tr"),r=o.offset().top,a=o.height(),s=r+a,l=this.content,d=l.offset(),c=d.top,u=l.height(),h=c+u,p=d.left,f=l.width(),m=p+f,g=kendo.support.scrollbar();r<c?l.scrollTop(l.scrollTop()+(r-c)):s>h&&l.scrollTop(l.scrollTop()+(s+g-h)),t<p&&n>f&&i<m||i>m&&n<f?kendo.scrollLeft(l,kendo.scrollLeft(l)+(i+g-m)):(i>m&&n>f&&t>p||t<p&&n<f)&&kendo.scrollLeft(l,kendo.scrollLeft(l)+(t-p))},_scrollToDate:function(e){var t,n=this.start,i=this.end;e>=n&&e<i&&(t=this._offset(e),kendo.support.isRtl(this.element)&&(t=this._tableWidth-t),kendo.scrollLeft(this.content,t))},_timeSlots:function(){return this._slots&&this._slots.length?this._slots[this._slots.length-1]:[]},_headers:function(e){var t,n,i,o,r,a,l,c,u=[],h=W.styles;for(r=0,a=e.length;r<a;r++){for(t=e[r],n=[],l=0,c=t.length;l<c;l++)i=t[l],o=d(i.text),n.push(s("td",{colspan:i.span,className:h.header+(i.isNonWorking?" "+h.nonWorking:"")},[o]));u.push(s("tr",null,n))}return u},_hours:function(e,t){var n,i,o,r=[],a=this.options,s=a.workDayStart.getHours(),l=a.workDayEnd.getHours(),d=a.hourSpan;for(e=new Date(e),t=new Date(t),a.showWorkHours&&e.setHours(s);e<t;)n=new Date(e),o=n.getHours(),i=o>=s&&o<l,n.setHours(n.getHours()+d),o==n.getHours()&&n.setHours(n.getHours()+2*d),a.showWorkHours&&!i||r.push({start:e,end:n,isNonWorking:!i,span:1}),e=n;return r},_days:function(e,t){var n,i,o=[];for(e=new Date(e),t=new Date(t);e<t;)n=t<kendo.date.nextDay(e)?t:kendo.date.nextDay(e),i=this._isWorkDay(e),this.options.showWorkDays&&!i||o.push({start:e,end:n,isNonWorking:!i,span:1}),e=n;return o},_weeks:function(e,t){var n,i,o,r=[],a=this.calendarInfo().firstDay;for(e=new Date(e),t=new Date(t);e<t;)n=kendo.date.dayOfWeek(kendo.date.addDays(e,1),a,1),n>t&&(n=t),i=this._days(e,n),o=i.length,o>0&&r.push({start:i[0].start,end:i[o-1].end,span:o}),e=n;return r},_months:function(e,t){var n,i,o,r,a=[];for(e=new Date(e),t=new Date(t);e<t;)n=new Date(e),i=kendo.date.firstDayOfMonth(new Date(n.setMonth(n.getMonth()+1))),n=t<i?t:i,o=this._days(e,n),r=o.length,r>0&&a.push({start:o[0].start,end:o[r-1].end,span:r}),e=n;return a},_years:function(e,t){var n,i,o,r=[];for(e=new Date(e),t=new Date(t);e<t;)n=new Date(e),n=kendo.date.firstDayOfMonth(new Date(n.setMonth(12))),n>=t&&(n=t),o=n.getMonth()||12,i=o-e.getMonth(),r.push({start:e,end:n,span:i}),e=n;return r},_slotHeaders:function(e,t){var n,i,o,r=[];for(i=0,o=e.length;i<o;i++)n=e[i],r.push({text:t(n),isNonWorking:!!n.isNonWorking,span:n.span});return r},_isWorkDay:function(e){var t,n,i=e.getDay(),o=this._workDays;for(t=0,n=o.length;t<n;t++)if(o[t]===i)return!0;return!1},calendarInfo:function(){return kendo.getCulture().calendars.standard},_renderCurrentTime:function(){var t,n=this._getCurrentTime(),i=this._offset(n),o=e("<div class='k-current-time'></div>"),r=W.styles,a=this.element.find(D+r.tasksWrapper),s=this.element.find(D+r.tasksTable);this.content&&this._timeSlots().length&&(this.content.find(".k-current-time").remove(),t=this._timeSlots()[this._slotIndex("start",n)],n<t.start||n>t.end||(a.length&&s.length&&(i+=s.offset().left-a.offset().left),o.css({left:i+"px",top:"0px",width:"1px",height:this._contentHeight+"px"}).appendTo(this.content)))},_getCurrentTime:function(){return new Date},_currentTime:function(){var e=this.options.currentTimeMarker;e!==!1&&void 0!==e.updateInterval&&(this._renderCurrentTime(),this._currentTimeUpdateTimer=setInterval(f(this._renderCurrentTime,this),e.updateInterval))}});p(!0,W,{styles:V}),kendo.ui.GanttDayView=W.extend({name:"day",options:{timeHeaderTemplate:A,dayHeaderTemplate:E,resizeTooltipFormat:"h:mm tt ddd, MMM d"},range:function(e){var t=this.options.range;this.start=kendo.date.getDate(e.start),this.end=kendo.date.getDate(e.end),(kendo.date.getMilliseconds(e.end)>0||this.end.getTime()===this.start.getTime())&&(this.end=kendo.date.addDays(this.end,1)),t&&t.start&&(this.start=kendo.date.getDate(t.start),this.start.setHours(t.start.getHours())),t&&t.end&&(this.end=kendo.date.getDate(t.end),this.end.setHours(t.end.getHours()))},_createSlots:function(){var e,t,n,i,o=[],r=this._days(this.start,this.end),a=[];for(n=0,i=r.length;n<i;n++)e=r[n],t=this._hours(e.start,e.end),e.span=t.length,a.push.apply(a,t);return o.push(r),o.push(a),o},_layout:function(){var e=[],t=this.options;return e.push(this._slotHeaders(this._slots[0],kendo.template(t.dayHeaderTemplate))),e.push(this._slotHeaders(this._slots[1],kendo.template(t.timeHeaderTemplate))),e}}),kendo.ui.GanttWeekView=W.extend({name:"week",options:{dayHeaderTemplate:E,weekHeaderTemplate:I,resizeTooltipFormat:"h:mm tt ddd, MMM d"},range:function(e){var t,n=this.options.range,i=this.calendarInfo(),o=i.firstDay,r=e.end;o===r.getDay()&&r.setDate(r.getDate()+7),this.start=kendo.date.getDate(kendo.date.dayOfWeek(e.start,o,-1)),this.end=kendo.date.getDate(kendo.date.dayOfWeek(r,o,1)),n&&n.start&&(this.start=kendo.date.getDate(n.start)),n&&n.end&&(t=new Date(n.end),this.end=kendo.date.getDate(t)<n.end?kendo.date.getDate(new Date(t.setDate(t.getDate()+1))):kendo.date.getDate(t))},_createSlots:function(){var e=[];return e.push(this._weeks(this.start,this.end)),e.push(this._days(this.start,this.end)),e},_layout:function(){var e=[],t=this.options;return e.push(this._slotHeaders(this._slots[0],kendo.template(t.weekHeaderTemplate))),e.push(this._slotHeaders(this._slots[1],kendo.template(t.dayHeaderTemplate))),e}}),kendo.ui.GanttMonthView=W.extend({name:"month",options:{weekHeaderTemplate:I,monthHeaderTemplate:M,resizeTooltipFormat:"dddd, MMM d, yyyy"},range:function(e){var t,n=this.options.range;this.start=kendo.date.firstDayOfMonth(e.start),this.end=kendo.date.addDays(kendo.date.getDate(kendo.date.lastDayOfMonth(e.end)),1),n&&n.start&&(this.start=kendo.date.getDate(n.start)),n&&n.end&&(t=new Date(n.end),this.end=kendo.date.getDate(t)<n.end?kendo.date.getDate(new Date(t.setDate(t.getDate()+1))):kendo.date.getDate(t))},_createSlots:function(){var e=[];return e.push(this._months(this.start,this.end)),e.push(this._weeks(this.start,this.end)),e},_layout:function(){var e=[],t=this.options;return e.push(this._slotHeaders(this._slots[0],kendo.template(t.monthHeaderTemplate))),e.push(this._slotHeaders(this._slots[1],kendo.template(t.weekHeaderTemplate))),e}}),kendo.ui.GanttYearView=W.extend({name:"year",options:{yearHeaderTemplate:R,monthHeaderTemplate:M,resizeTooltipFormat:"dddd, MMM d, yyyy"},range:function(e){var t,n=this.options.range;this.start=kendo.date.firstDayOfMonth(new Date(e.start.setMonth(0))),this.end=kendo.date.firstDayOfMonth(new Date(e.end.setMonth(12))),n&&n.start&&(this.start=kendo.date.firstDayOfMonth(n.start)),n&&n.end&&(t=kendo.date.firstDayOfMonth(n.end),this.end=kendo.date.getDate(new Date(t.setMonth(t.getMonth()+1))))},_createSlots:function(){var t=[],n=this._months(this.start,this.end);return e(n).each(function(e,t){t.span=1}),t.push(this._years(this.start,this.end)),t.push(n),t},_layout:function(){var e=[],t=this.options;return e.push(this._slotHeaders(this._slots[0],kendo.template(t.yearHeaderTemplate))),e.push(this._slotHeaders(this._slots[1],kendo.template(t.monthHeaderTemplate))),e}}),o={wrapper:"k-timeline k-grid k-widget",gridHeader:"k-grid-header",gridHeaderWrap:"k-grid-header-wrap",gridContent:"k-grid-content",gridContentWrap:"k-grid-content",tasksWrapper:"k-gantt-tables",dependenciesWrapper:"k-gantt-dependencies",task:"k-task",taskOffset:"k-task-offset",taskOffsetWrap:"k-task-offset-wrap",taskPlanned:"k-task-planned",line:"k-gantt-line",taskResizeHandle:"k-resize-handle",taskResizeHandleWest:"k-resize-w",taskDragHandle:"k-task-draghandle",taskComplete:"k-task-complete",taskDelete:"k-task-delete",taskWrapActive:"k-task-wrap-active",taskWrap:"k-task-wrap",taskDot:"k-task-dot",taskDotStart:"k-task-start",taskDotEnd:"k-task-end",hovered:"k-state-hover",selected:"k-state-selected",origin:"k-origin"},r=kendo.ui.GanttTimeline=a.extend({init:function(e,t){a.fn.init.call(this,e,t),this.options.views&&this.options.views.length||(this.options.views=["day","week","month"]),g=kendo.support.isRtl(e),this._wrapper(),this._domTrees(),this._views(),this._selectable(),this._draggable(),this._resizable(),this._percentResizeDraggable(),this._createDependencyDraggable(),this._attachEvents(),this._tooltip()},options:{name:"GanttTimeline",messages:{views:{day:"Day",week:"Week",month:"Month",year:"Year",start:"Start",end:"End"}},snap:!0,selectable:!0,editable:!0},destroy:function(){a.fn.destroy.call(this),clearTimeout(this._tooltipTimeout),this._currentTimeUpdateTimer&&clearInterval(this._currentTimeUpdateTimer),this._unbindView(this._selectedView),this._moveDraggable&&this._moveDraggable.destroy(),this._resizeDraggable&&this._resizeDraggable.destroy(),this._percentDraggable&&this._percentDraggable.destroy(),this._dependencyDraggable&&this._dependencyDraggable.destroy(),this.touch&&this.touch.destroy(),this._headerTree=null,this._taskTree=null,this._dependencyTree=null,this.wrapper.off(w),kendo.destroy(this.wrapper)},_wrapper:function(){var t=r.styles,n=this,i=this.options,o=function(){var o,r,a=typeof i.rowHeight===b?i.rowHeight:i.rowHeight+"px",s=e(kendo.format(N,a)),l=n.wrapper.find(D+t.tasksWrapper);return l.append(s),o=h(s.find("tr")),r=s.find("td").height(),s.remove(),{row:o,cell:r}};this.wrapper=this.element.addClass(t.wrapper).append("<div class='"+t.gridHeader+"'><div class='"+t.gridHeaderWrap+"'></div></div>").append("<div class='"+t.gridContentWrap+"'><div class='"+t.tasksWrapper+"'></div><div class='"+t.dependenciesWrapper+"'></div></div>"),i.rowHeight&&(this._calculatedSize=o())},_domTrees:function(){var e=r.styles,t=kendo.dom.Tree,n=this.wrapper;this._headerTree=new t(n.find(D+e.gridHeaderWrap)[0]),this._taskTree=new t(n.find(D+e.tasksWrapper)[0]),this._dependencyTree=new t(n.find(D+e.dependenciesWrapper)[0])},_views:function(){var e,t,n,i,o,r,a,s=this.options.views;for(this.views={},r=0,a=s.length;r<a;r++)e=s[r],t=c(e),t&&e.selectable===!1||(n=t?"string"!=typeof e.type?e.title:e.type:e,i=O[n],i&&(t&&(e.type=i.type),i.title=this.options.messages.views[n]),e=p({title:n},i,t?e:{}),n&&(this.views[n]=e,o&&!e.selected||(o=n)));o&&(this._selectedViewName=o)},view:function(e){return e&&(this._selectView(e),this.trigger("navigate",{view:e,action:"changeView"})),this._selectedView},_selectView:function(e){e&&this.views[e]&&(this._selectedView&&this._unbindView(this._selectedView),this._selectedView=this._initializeView(e),this._selectedViewName=e)},_viewByIndex:function(e){var t,n=this.views;for(t in n){if(!e)return t;e--}},_initializeView:function(e){var n,i,o,r=this.views[e];if(r){if(n=r.type,"string"==typeof n&&(n=kendo.getter(r.type)(window)),!n)throw Error("There is no such view");i={},p(i,this.options.range,r.range),o=r.date||this.options.date,r=new n(this.wrapper,t(p(!0,{headerTree:this._headerTree,taskTree:this._taskTree,dependencyTree:this._dependencyTree,calculatedSize:this._calculatedSize},r,this.options,{date:o,range:i})))}return r},_unbindView:function(e){e&&e.destroy()},_range:function(e){var t,n,i={field:"start",dir:"asc"},o={field:"end",dir:"desc"};return e&&e.length?(t=new _(e).sort(i).toArray()[0].start||new Date,n=new _(e).sort(o).toArray()[0].end||new Date,{start:new Date(t),end:new Date(n)}):{start:new Date,end:new Date}},_render:function(e){var t=this.view(),n=this._range(e),i=t.options.date;this._tasks=e,t.range(n),t.renderLayout(),t.render(e),i&&t._scrollToDate(i)},_renderDependencies:function(e){this.view()._renderDependencies(e)},_taskByUid:function(e){var t,n,i=this._tasks,o=i.length;for(n=0;n<o;n++)if(t=i[n],t.uid===e)return t},_draggable:function(){var e,t,n,o,a=this,s=this.options.snap,l=r.styles,d=this.options.editable,c=function(){a.view()._removeDragHint(),e&&e.css("opacity",1),e=null,t=null,a.dragInProgress=!1};d&&d.move!==!1&&d.update!==!1&&(this._moveDraggable=new kendo.ui.Draggable(this.wrapper,{distance:0,filter:D+l.task+","+D+l.taskOffset,holdToDrag:kendo.support.mobileOS,ignore:D+l.taskResizeHandle}),this._moveDraggable.bind("dragstart",function(i){var r=a.view();return e=i.currentTarget.closest(D+l.taskWrap),t=a._taskByUid(i.currentTarget.parent().find(D+l.task).attr("data-uid")),a.trigger("moveStart",{task:t})?void i.preventDefault():(n=t.start,o=r._timeByPosition(i.x.location,s)-n,r._createDragHint(e),e.css("opacity",.5),clearTimeout(a._tooltipTimeout),void(a.dragInProgress=!0))}).bind("drag",kendo.throttle(function(e){var i,r,l;a.dragInProgress&&(i=a.view(),r=new Date(i._timeByPosition(e.x.location,s)-o),l=r,a.trigger("move",{task:t,start:r})||(n=r,g&&(l=new Date(n.getTime()+t.duration())),i._updateDragHint(l)))},15)).bind("dragend",function(){a.trigger("moveEnd",{task:t,start:n}),c()}).bind("dragcancel",function(){c()}).userEvents.bind("select",function(){i()}))},_resizable:function(){var e,t,n,o,a,s=this,l=this.options.snap,d=r.styles,c=this.options.editable,u=function(){s.view()._removeResizeHint(),e=null,t=null,s.dragInProgress=!1};c&&c.resize!==!1&&c.update!==!1&&(this._resizeDraggable=new kendo.ui.Draggable(this.wrapper,{distance:0,filter:D+d.taskResizeHandle,holdToDrag:!1}),this._resizeDraggable.bind("dragstart",function(i){return a=i.currentTarget.hasClass(d.taskResizeHandleWest),g&&(a=!a),e=i.currentTarget.closest(D+d.taskWrap).find(D+d.task),t=s._taskByUid(e.attr("data-uid")),s.trigger("resizeStart",{task:t})?void i.preventDefault():(n=t.start,o=t.end,s.view()._createResizeHint(t),clearTimeout(s._tooltipTimeout),void(s.dragInProgress=!0))}).bind("drag",kendo.throttle(function(e){var i,r;s.dragInProgress&&(i=s.view(),r=i._timeByPosition(e.x.location,l,!a),a?n=r<o?r:o:o=r>n?r:n,s.trigger("resize",{task:t,start:n,end:o})||i._updateResizeHint(n,o,a))},15)).bind("dragend",function(){s.trigger("resizeEnd",{task:t,resizeStart:a,start:n,end:o}),u()}).bind("dragcancel",function(){u()}).userEvents.bind("select",function(){i()}))},_percentResizeDraggable:function(){var e,t,n,o,a,s,l,d,c,h,p=this,f=r.styles,m=this.options.editable,v=function(){p.view()._removePercentCompleteTooltip(),t=null,e=null,p.dragInProgress=!1},_=function(e){var n=t.siblings(D+f.taskDragHandle);n.length||(n=t.closest(D+f.taskWrap).find(D+f.taskDragHandle)),n.css(g?"right":"left",e),t.find(D+f.taskComplete).width(e)};m&&m.dragPercentComplete!==!1&&m.update!==!1&&(this._percentDraggable=new kendo.ui.Draggable(this.wrapper,{distance:0,filter:D+f.taskDragHandle,holdToDrag:!1}),this._percentDraggable.bind("dragstart",function(i){return p.trigger("percentResizeStart")?void i.preventDefault():(t=i.currentTarget.siblings(D+f.task),t.length||(t=i.currentTarget.closest(D+f.taskWrap).find(D+f.task)),e=p._taskByUid(t.attr("data-uid")),l=e.percentComplete,n=t.offset(),o=this.element.offset(),a=t.find(D+f.taskComplete).width(),s=u(t),clearTimeout(p._tooltipTimeout),void(p.dragInProgress=!0))}).bind("drag",kendo.throttle(function(e){if(p.dragInProgress){h=g?-e.x.initialDelta:e.x.initialDelta;var t=Math.max(0,Math.min(s,a+h));l=Math.round(t/s*100),_(t),d=n.top-o.top,c=n.left+t-o.left,g&&(c+=s-2*t),p.view()._updatePercentCompleteTooltip(d,c,l)}},15)).bind("dragend",function(){p.trigger("percentResizeEnd",{task:e,percentComplete:l/100}),v()}).bind("dragcancel",function(){_(a),v()}).userEvents.bind("select",function(){i()}))},_createDependencyDraggable:function(){var t,n,o,a=this,s=e(),l=e(),d=m.msie&&m.version<9,c=r.styles,p=this.options.editable,f=function(){t.css("display","").removeClass(c.hovered),t.parent().removeClass(c.origin),t=null,g(!1),l=e(),s=e(),a.view()._removeDependencyDragHint(),a.dragInProgress=!1},g=function(e){l.hasClass(c.origin)||(l.find(D+c.taskDot).css("display",e?"block":""),s.toggleClass(c.hovered,e))};p&&p.dependencyCreate!==!1&&(d&&document.namespaces&&document.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML"),this._dependencyDraggable=new kendo.ui.Draggable(this.wrapper,{distance:0,filter:D+c.taskDot,holdToDrag:!1}),this._dependencyDraggable.bind("dragstart",function(e){var i,r;return a.trigger("dependencyDragStart")?void e.preventDefault():(t=e.currentTarget.css("display","block").addClass(c.hovered),t.parent().addClass(c.origin),i=t.offset(),r=a.wrapper.find(D+c.tasksWrapper).offset(),n=Math.round(i.left-r.left+h(t)/2),o=Math.round(i.top-r.top+u(t)/2),clearTimeout(a._tooltipTimeout),void(a.dragInProgress=!0))}).bind("drag",kendo.throttle(function(t){var i,r,u,h;a.dragInProgress&&(a.view()._removeDependencyDragHint(),i=e(kendo.elementUnderCursor(t)),r=a.wrapper.find(D+c.tasksWrapper).offset(),u=t.x.location-r.left,h=t.y.location-r.top,a.view()._updateDependencyDragHint({x:n,y:o},{x:u,y:h},d),g(!1),s=i.hasClass(c.taskDot)?i:e(),l=i.closest(D+c.taskWrap),g(!0))},15)).bind("dragend",function(){var e,n,i,o,r,l,d;s.length&&(e=t.hasClass(c.taskDotStart),n=s.hasClass(c.taskDotStart),i=e?n?3:2:n?1:0,o=t.siblings(D+c.task),o.length||(o=t.closest(D+c.taskWrap).find(D+c.task)),r=a._taskByUid(o.attr("data-uid")),l=s.siblings(D+c.task),l.length||(l=s.closest(D+c.taskWrap).find(D+c.task)),d=a._taskByUid(l.attr("data-uid")),r!==d&&a.trigger("dependencyDragEnd",{type:i,predecessor:r,successor:d})),f()}).bind("dragcancel",function(){f()}).userEvents.bind("select",function(){i()}))},_selectable:function(){var t=this,n=r.styles;this.options.selectable&&this.wrapper.on(k+w,D+n.task+","+D+n.taskOffset,function(i){i.stopPropagation();var o=e(this).attr("data-uid");o||(o=e(this).closest(D+n.taskWrap).find(D+n.task).data("uid")),i.ctrlKey?t.trigger("clear"):t.trigger("select",{uid:o})}).on(k+w,D+n.taskWrap,function(t){t.stopPropagation(),e(this).css("z-index","0");var i=e(document.elementFromPoint(t.clientX,t.clientY));i.hasClass(n.line)&&i.click(),e(this).css("z-index","")}).on(k+w,D+n.tasksWrapper,function(){t.selectDependency().length>0?t.clearSelection():t.trigger("clear")}).on(k+w,D+n.line,function(e){e.stopPropagation(),t.selectDependency(this)})},select:function(e){var t=this.wrapper.find(e),n=r.styles;return t.length?(this.clearSelection(),t.addClass(n.selected),void(kendo.support.mobileOS&&t.parent().addClass(n.taskWrapActive))):this.wrapper.find(D+n.task+D+n.selected)},selectDependency:function(t){var n,i=this.wrapper.find(t),o=r.styles;return i.length?(this.clearSelection(),this.trigger("clear"),n=e(i).attr("data-uid"),void this.wrapper.find(D+o.line+"[data-uid='"+n+"']").addClass(o.selected)):this.wrapper.find(D+o.line+D+o.selected)},clearSelection:function(){var e=r.styles;this.wrapper.find(D+e.selected).removeClass(e.selected),kendo.support.mobileOS&&this.wrapper.find(D+e.taskWrapActive).removeClass(e.taskWrapActive)},_attachEvents:function(){var t=this,n=r.styles,i=this.options.editable;i&&(this._tabindex(),this.wrapper.on(k+w,D+n.taskDelete,function(i){t.trigger("removeTask",{uid:e(this).closest(D+n.taskWrap).find(D+n.task).attr("data-uid")}),i.stopPropagation(),i.preventDefault()}).on(T+w,function(e){var n,i=t.options.editable;e.keyCode===v.DELETE&&i&&i.dependencyDestroy!==!1&&(n=t.selectDependency(),n.length&&(t.trigger("removeDependency",{uid:n.attr("data-uid")}),t.clearSelection()))}),kendo.support.mobileOS?this.touch=this.wrapper.kendoTouch({filter:D+n.task+","+D+n.taskOffset,doubletap:function(i){t.options.editable.update!==!1&&t.trigger("editTask",{uid:e(i.touch.currentTarget).closest(D+n.taskWrap).find(D+n.task).attr("data-uid")})}}).data("kendoTouch"):this.wrapper.on(y+w,D+n.task+","+D+n.taskOffset,function(i){t.options.editable.update!==!1&&(t.trigger("editTask",{uid:e(this).closest(D+n.taskWrap).find(D+n.task).attr("data-uid")}),i.stopPropagation(),i.preventDefault())}))},_tooltip:function(){var t,n=this,i=this.options.tooltip,o=r.styles,a=function(e){t=e.clientX};i&&i.visible===!1||(kendo.support.mobileOS?(this.wrapper.on(k+w,D+o.taskDelete,function(e){e.stopPropagation(),n.view()._removeTaskTooltip()}).on(S+w,D+o.task,function(t){var i=e(t.relatedTarget).parents(D+o.taskWrap,D+o.task);0===i.length&&n.view()._removeTaskTooltip()}).on(S+w,D+o.taskOffset,function(t){var i=e(t.relatedTarget).parents(D+o.taskWrap,D+o.task);0===i.length&&n.view()._removeOffsetTooltip()}).on(S+w,D+o.taskPlanned,function(t){var i=e(t.relatedTarget).parents(D+o.taskWrap,D+o.task);0===i.length&&n.view()._removePlannedTooltip()}),this.touch&&this.touch.bind("tap",function(t){var i,r=e(t.touch.target),a=t.touch.x.client;r.hasClass(o.task)?(i=n._taskByUid(r.attr("data-uid")),n.view()._taskTooltip&&n.view()._removeTaskTooltip(),n.view()._createTaskTooltip(i,r,a)):(i=n._taskByUid(r.closest(D+o.taskWrap).find(D+o.task).attr("data-uid")),n.view()._offsetTooltip&&n.view()._removeOffsetTooltip(),n.view()._createOffsetTooltip(i,r,a))}).bind("doubletap",function(){n.view()._removeTaskTooltip(),n.view()._removeOffsetTooltip()})):this.wrapper.on(C+w,D+o.task,function(){var i=this,o=n._taskByUid(e(this).attr("data-uid"));n.dragInProgress||(n._tooltipTimeout=setTimeout(function(){n.view()._createTaskTooltip(o,i,t)},800),e(this).on(x,a))}).on(S+w,D+o.task,function(){clearTimeout(n._tooltipTimeout),n.view()._removeTaskTooltip(),e(this).off(x,a)}).on(C+w,D+o.taskOffset,function(){var i=e(this).closest(D+o.taskWrap).find(D+o.task),r=n._taskByUid(i.attr("data-uid"));n.dragInProgress||(n._offsetTooltipTimeout=setTimeout(function(){n.view()._createOffsetTooltip(r,i,t)},800),e(this).on(x,a))}).on(S+w,D+o.taskOffset,function(){clearTimeout(n._offsetTooltipTimeout),n.view()._removeOffsetTooltip(),e(this).off(x,a)}).on(C+w,D+o.taskPlanned,function(){var i=e(this).closest(D+o.taskWrap).find(D+o.task),r=n._taskByUid(i.attr("data-uid"));n._plannedTooltipTimeout=setTimeout(function(){n.view()._createPlannedTooltip(r,i,t)},800),e(this).on(x,a)}).on(S+w,D+o.taskPlanned,function(){clearTimeout(n._plannedTooltipTimeout),n.view()._removePlannedTooltip(),e(this).off(x,a)}))},_setPlanned:function(e){this.options.showPlannedTasks=e,this.view().options.showPlannedTasks=e}}),p(!0,r,{styles:o})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.gantt.min",["kendo.data.min","kendo.resizable.min","kendo.switch.min","kendo.gantt.data.min","kendo.gantt.editors.min","kendo.gantt.list.min","kendo.gantt.timeline.min","kendo.pdf.min"],e)}(function(){return function(e,t){function n(e){return"["+s.attr("uid")+(e?"='"+e+"']":"]")}function i(e){return delete e.name,delete e.prefix,delete e.remove,delete e.edit,delete e.add,delete e.navigate,e}function o(t,n){var i=t.parents("["+s.attr("role")+'="gantt"]'),o=[],a=r(i);t.attr(T,0),n&&a.each(function(t,n){o[t]=e(n).scrollTop()});try{t[0].setActive()}catch(l){t[0].focus()}n&&a.each(function(t,n){e(n).scrollTop(o[t])})}function r(t){return e(t).parentsUntil("body").filter(function(e,t){var n=s.getComputedStyles(t,["overflow"]);return"visible"!=n.overflow}).add(window)}var a,s=window.kendo,l=e.extend({F10:121},s.keys),d="matchMedia"in window,c=s.support.mobileOS,u=s.ui.Widget,h=s.data.ObservableObject,p=s.data.ObservableArray,f=s.data.Query,m=e.isArray,g=e.inArray,v=s.isFunction,_=e.proxy,b=e.extend,w=e.isPlainObject,k=s._outerWidth,y=s._outerHeight,x=3,C=".kendoGantt",S="p0",T="tabIndex",D="click",A="string",E="aria-activedescendant",I="aria-label",M="gantt_active_cell",R=".",F="Are you sure you want to delete this task?",P="Are you sure you want to delete this dependency?",z=s.template('<button class="#=styles.buttonToggle#" type="button" '+I+'="Toggle"><span class="#=styles.iconToggle#"></span></button>'),B='<button class="#=styles.button# #=className#" type="button" #if (action) {#data-action="#=action#"#}#><span class="#=iconClass#"></span><span class="k-button-text">#=text#</span></button>',L='<a class="#=className#" #=attr# href="\\#">#=text#</a>',H=s.template('<select class="k-dropdown #= styles.viewsDropdown #">#for(var view in views){#<option value="#=view#">#=views[view].title#</option>#}#</select>'),N=s.template('<div class="#=styles.viewsWrapper#"><span class="k-button-group #=styles.views#">#for(var view in views){#<button type="button" class="#=styles.button# #=styles.viewButton#-#= view.toLowerCase() #" data-#=ns#name="#=view#"><span class="k-button-text">#=views[view].title#</span></button>#}#</span></div>'),O={wrapper:"k-widget k-gantt",plannedTasks:"k-gantt-planned",rowHeight:"k-gantt-rowheight",content:"k-gantt-content",listWrapper:"k-gantt-treelist",list:"k-gantt-treelist",timelineWrapper:"k-gantt-timeline",timeline:"k-gantt-timeline",splitBarWrapper:"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-draggable-horizontal",splitBar:"k-splitbar",splitBarHover:"k-splitbar-horizontal-hover",popupWrapper:"k-list-container",popupList:"k-list k-reset",resizeHandle:"k-resize-handle",icon:"k-icon",item:"k-item",line:"k-gantt-line",buttonDelete:"k-gantt-delete",buttonCancel:"k-gantt-cancel",buttonSave:"k-gantt-update",buttonToggle:"k-gantt-toggle",primary:"k-primary",hovered:"k-state-hover",selected:"k-state-selected",focused:"k-state-focused",gridHeader:"k-grid-header",gridHeaderWrap:"k-grid-header-wrap",gridContent:"k-grid-content",tasks:"k-gantt-tasks",popup:{form:"k-popup-edit-form",editForm:"k-gantt-edit-form",formContainer:"k-edit-form-container",resourcesFormContainer:"k-resources-form-container",message:"k-popup-message",buttonsContainer:"k-edit-buttons k-state-default",button:"k-button",editField:"k-edit-field",editLabel:"k-edit-label",resourcesField:"k-gantt-resources"},toolbar:{headerWrapper:"k-gantt-header k-toolbar k-gantt-toolbar",footerWrapper:"k-gantt-footer k-toolbar k-gantt-toolbar",toolbar:"k-gantt-toolbar",views:"k-gantt-views",viewsWrapper:"k-gantt-views-wrapper",viewsDropdown:"k-views-dropdown",button:"k-button k-button-icontext",buttonToggle:"k-button k-button-icon k-gantt-toggle",iconPlus:"k-icon k-i-plus",iconPdf:"k-icon k-i-file-pdf",iconToggle:"k-icon k-i-layout-1-by-4",viewButtonDefault:"k-state-default",viewButton:"k-view",link:"k-link",pdfButton:"k-gantt-pdf",appendButton:"k-gantt-create"}},V=u.extend({init:function(e,t,n){m(t)&&(t={dataSource:t}),a={append:{text:"Add Task",action:"add",className:V.styles.toolbar.appendButton,iconClass:V.styles.toolbar.iconPlus},pdf:{text:"Export to PDF",className:V.styles.toolbar.pdfButton,iconClass:V.styles.toolbar.iconPdf}},u.fn.init.call(this,e,t),n&&(this._events=n),this._wrapper(),this._resources(),this.options.views&&this.options.views.length||(this.options.views=["day","week","month"]),this._timeline(),this._toolbar(),this._footer(),this._adjustDimensions(),this._preventRefresh=!0,this.view(this.timeline._selectedViewName),this._preventRefresh=!1,this._dataSource(),this._assignments(),this._dropDowns(),this._list(),this._dependencies(),this._resizable(),this._scrollable(),this._dataBind(),this._attachEvents(),this._createEditor(),s.notify(this)},events:["dataBinding","dataBound","add","edit","remove","cancel","save","change","navigate","moveStart","move","moveEnd","resizeStart","resize","resizeEnd","columnResize","togglePlannedTasks"],options:{name:"Gantt",autoBind:!0,navigatable:!1,selectable:!0,editable:!0,resizable:!1,columnResizeHandleWidth:x,columns:[],views:[],dataSource:{},dependencies:{},resources:{},assignments:{},taskTemplate:null,messages:{save:"Save",cancel:"Cancel",destroy:"Delete",deleteTaskConfirmation:F,deleteDependencyConfirmation:P,deleteTaskWindowTitle:"Delete task",deleteDependencyWindowTitle:"Delete dependency",views:{day:"Day",week:"Week",month:"Month",year:"Year",start:"Start",end:"End"},actions:{append:"Add Task",addChild:"Add Child",insertBefore:"Add Above",insertAfter:"Add Below",pdf:"Export to PDF"},editor:{editorTitle:"Task",resourcesEditorTitle:"Resources",title:"Title",start:"Start",end:"End",plannedStart:"Planned Start",plannedEnd:"Planned End",percentComplete:"Complete",resources:"Resources",assignButton:"Assign",resourcesHeader:"Resources",unitsHeader:"Units"},plannedTasks:{switchText:"Planned Tasks",offsetTooltipAdvanced:"Met deadline earlier",offsetTooltipDelay:"Delay",seconds:"seconds",minutes:"minutes",hours:"hours",days:"days"}},showWorkHours:!0,showWorkDays:!0,toolbar:null,workDayStart:new Date(1980,1,1,8,0,0),workDayEnd:new Date(1980,1,1,17,0,0),workWeekStart:1,workWeekEnd:5,hourSpan:1,snap:!0,height:600,listWidth:"30%",rowHeight:null,showPlannedTasks:!1},select:function(e){var n=this.list;return e?(typeof e===A&&(e=n.content.find(e)),n.select(e),this.list.element.find("table[role=treegrid]").focus(),t):n.select()},clearSelection:function(){this.list.clearSelection()},destroy:function(){u.fn.destroy.call(this),this.dataSource&&(this.dataSource.unbind("change",this._refreshHandler),this.dataSource.unbind("progress",this._progressHandler),this.dataSource.unbind("error",this._errorHandler)),this.dependencies&&(this.dependencies.unbind("change",this._dependencyRefreshHandler),this.dependencies.unbind("error",this._dependencyErrorHandler)),this.timeline&&(this.timeline.unbind(),this.timeline.destroy()),this.list&&(this.list.unbind(),this.list.destroy()),this.footerDropDown&&this.footerDropDown.destroy(),this.headerDropDown&&this.headerDropDown.destroy(),this._editor&&this._editor.destroy(),this._resizeDraggable&&this._resizeDraggable.destroy(),this.toolbar.off(C),d&&(this._mediaQuery.removeListener(this._mediaQueryHandler),this._mediaQuery=null),e(window).off("resize"+C,this._resizeHandler),e(this.wrapper).off(C),this.toolbar=null,this.footer=null,s.destroy(this.element)},setOptions:function(t){var n,i=s.deepExtend({},this.options,t),o=this._events;t.views||(n=this.view().name,i.views=e.map(this.options.views,function(e){var t=w(e),i=t?"string"!=typeof e.type?e.title:e.type:e;return n===i?t?e.selected=!0:e={type:i,selected:!0}:t&&(e.selected=!1),e})),t.dataSource||(i.dataSource=this.dataSource),t.dependencies||(i.dependencies=this.dependencies),t.resources||(i.resources=this.resources),t.assignments||(i.assignments=this.assignments),this.destroy(),this.element.empty(),this.options=null,this.init(this.element,i,o),u.fn._setEvents.call(this,i)},_attachEvents:function(){this._resizeHandler=_(this.resize,this,!1),e(window).on("resize"+C,this._resizeHandler),
d&&this._mediaQuery.matches===!0&&this._mediaQueryHandler({matches:!0})},_wrapper:function(){var t=V.styles,n=[t.icon,t.resizeHandle].join(" "),i=this.options,o=i.height,r=i.width;this.wrapper=this.element.addClass(t.wrapper),this.layout=e("<div class='"+t.content+"' />").appendTo(this.wrapper).append("<div class='"+t.listWrapper+"'><div></div></div>").append("<div class='"+t.splitBarWrapper+"'><div class='"+n+"'></div></div>").append("<div class='"+t.timelineWrapper+"'><div></div></div>"),i.showPlannedTasks&&this.wrapper.addClass(t.plannedTasks),o&&this.wrapper.css("height",o),r&&this.wrapper.css("width",r),i.rowHeight&&this.wrapper.addClass(t.rowHeight),this.treelistWrapper=this.wrapper.find(R+t.list),this.splitbar=this.wrapper.find(R+t.splitBar),this.timelineWrapper=this.wrapper.find(R+t.timeline),this.treelistWrapper.css("width",i.listWidth),this.timelineWrapper.css("width",this.wrapper.width()-this.treelistWrapper.outerWidth()-this.splitbar.outerWidth())},_toolbar:function(){var t,n,i,o=this,r=V.styles,a=R+r.toolbar.views+" > button",c=R+r.toolbar.viewsDropdown,u=R+r.toolbar.pdfButton,h=R+r.buttonToggle,p=R+r.gridContent,f=o.splitbar,m=o.treelistWrapper,g=o.timelineWrapper,b=this.options.toolbar,w=function(e){e.matches?(m.addClass("k-hidden"),f.addClass("k-hidden"),m.width("100%")):(m.removeClass("k-hidden"),f.removeClass("k-hidden"),g.removeClass("k-hidden"),m.width(m.outerWidth()),o.refresh(),g.find(p).scrollTop(o.scrollTop)),o._resize()};v(b)||(b=typeof b===A?b:this._actions(b),b=_(s.template(b),this)),i=e(z({styles:r.toolbar})),n=e(N({ns:s.ns,views:this.timeline.views,styles:r.toolbar})),t=e("<div class='"+r.toolbar.headerWrapper+"'>").append(i).append(b({})).append("<span class='k-spacer k-toolbar-spacer' />").append(n),n.find("button").length>1&&n.prepend(H({ns:s.ns,views:this.timeline.views,styles:r.toolbar})),this.toggeSwitchWrap&&this.toggeSwitchWrap.insertBefore(n),this.wrapper.prepend(t),this.toolbar=t,d&&(this._mediaQueryHandler=_(w,this),this._mediaQuery=window.matchMedia("(max-width: 480px)"),this._mediaQuery.addListener(this._mediaQueryHandler)),t.on("change"+C,c,function(){var t=o.list,n=e(this).val();t.editable&&t.editable.trigger("validate")||(o.trigger("navigate",{view:n})||o.view(n),o.toolbar.find(R+r.focused).removeClass(r.focused))}).on(D+C,a,function(t){var n,i;t.preventDefault(),n=o.list,i=e(this).attr(s.attr("name")),n.editor&&!n.editor.end()||(o.trigger("navigate",{view:i})||o.view(i),o.toolbar.find(R+r.focused).removeClass(r.focused))}).on("keydown"+C,a,function(t){var n=e(R+r.toolbar.views).children(":not(.k-current-view)"),i=n.index(o._focusedView&&o._focusedView[0]||n.closest(R+r.selected)[0]);t.keyCode===l.RIGHT?(e(o.toolbar.find(R+r.focused)).removeClass(r.focused),o._focusedView=e(i+1===n.length?n[0]:n[i+1]),o._focusedView.focus().addClass(r.focused),t.preventDefault()):t.keyCode===l.LEFT?(e(o.toolbar.find(R+r.focused)).removeClass(r.focused),o._focusedView=e(0===i?n[n.length-1]:n[i-1]),o._focusedView.focus().addClass(r.focused),t.preventDefault()):t.keyCode!==l.ENTER&&t.keyCode!==l.SPACEBAR||!o._focusedView?t.keyCode>=49&&t.keyCode<=57&&o.view(o.timeline._viewByIndex(t.keyCode-49)):(o.view(o._focusedView.text().toLowerCase()),t.preventDefault())}).on(D+C,u,function(e){e.preventDefault(),o.saveAsPDF()}).on(D+C,h,function(e){e.preventDefault(),m.is(":visible")?(m.addClass("k-hidden"),g.removeClass("k-hidden"),o.refresh(),g.find(p).scrollTop(o.scrollTop)):(m.removeClass("k-hidden"),g.addClass("k-hidden"),m.find(p).scrollTop(o.scrollTop)),o._resize()}),this.wrapper.on("focusout"+C,function(t){e(t.relatedTarget).closest(R+r.toolbar.toolbar).length||o.toolbar.find(R+r.focused).removeClass(r.focused),e(t.relatedTarget).closest(R+r.toolbar.views).length||o.toolbar.find(R+r.toolbar.views).removeClass(r.toolbar.expanded)})},_actions:function(){var e,t,n,i=this.options,o=i.editable,r=i.toolbar,a="";if(!m(r)){if(!o||o.create===!1)return a;r=["append"]}for(t=0,n=r.length;t<n;t++)e=r[t],"plannedTasks"!==e&&"plannedTasks"!==e.name?a+=this._createButton(e):this._createPlannedTasksSwitch();return a},_footer:function(){var t,n,i,o,r=this.options.editable;r&&r.create!==!1&&(t=V.styles.toolbar,n=this.options.messages.actions,i=e(s.template(B)(b(!0,{styles:t},a.append,{text:n.append}))),o=e("<div class='"+t.footerWrapper+"'>").append(i),this.wrapper.append(o),this.footer=o)},_createButton:function(e){var t=e.template||B,n=this.options.messages.actions,i=typeof e===A?e:e.name||e.text,o=a[i]?a[i].className:"k-gantt-"+(i||"").replace(/\s/g,""),r={iconClass:"",action:"",text:i,className:o,styles:V.styles.toolbar};if(!(i||w(e)&&e.template))throw Error("Custom commands should have name specified");return r=b(!0,r,a[i],{text:n[i]}),w(e)&&(e.className&&g(r.className,e.className.split(" "))<0&&(e.className+=" "+r.className),r=b(!0,r,e)),s.template(t)(r)},_adjustDimensions:function(){var e=this.element,t=y(this.toolbar),n=this.footer?y(this.footer):0,i=e.height(),o=e.width(),r=this.splitbar.is(":visible")?k(this.splitbar):0,a=this.treelistWrapper.is(":visible")?k(this.treelistWrapper):0,s=o-(a+r);this.layout.children().height(i-(t+n)),this.timelineWrapper.width(s),o<a+r&&this.treelistWrapper.width(o-r)},_scrollTo:function(e){var t,i,o=this.timeline.view(),r=this.list,a=s.attr("uid"),l="string"==typeof e?e:e.closest("tr"+n()).attr(a),d=function(){0!==i.length&&t()};o.content.is(":visible")?(i=o.content.find(n(l)),t=function(){o._scrollTo(i)}):(i=r.element.find(n(l)),t=function(){i.get(0).scrollIntoView()}),d()},_dropDowns:function(){var e=this,t=R+V.styles.toolbar.appendButton,n=this.options.messages.actions,i=this.timeline,o=this.options.editable,r=function(t){var n,o=t.type,r=e.dataSource,a=r._createNewModel({}),s=e.dataItem(e.select()),l=r.taskParent(s),d=i.view()._timeSlots()[0],c="add"===o?s:l,u=e.list.editor;u&&u.trigger("validate")||(a.set("title","New task"),c?(a.set("parentId",c.get("id")),a.set("start",c.get("start")),a.set("end",c.get("end")),a.set("plannedStart",c.get("plannedStart")),a.set("plannedEnd",c.get("plannedEnd"))):(a.set("start",d.start),a.set("end",d.end)),"add"!==o&&(n=s.get("orderId"),n="insert-before"===o?n:n+1),e._createTask(a,n))};o&&o.create!==!1&&(this.footerDropDown=new s.gantt.TaskDropDown(this.footer.children(t).eq(0),{messages:{actions:n},direction:"up",animation:{open:{effects:"slideIn:up"}},navigatable:e.options.navigatable}),this.headerDropDown=new s.gantt.TaskDropDown(this.toolbar.children(t).eq(0),{messages:{actions:n},navigatable:e.options.navigatable}),this.footerDropDown.bind("command",r),this.headerDropDown.bind("command",r))},_getListEditable:function(){var e=!1,t=this.options;return t.editable!==!1&&(t.editable?t.editable.update===!1?e=!1:t.editable.reorder!==!1&&(e={mode:"incell",move:{reorderable:!0}}):e="incell"),e},_getListOptions:function(){var e=this.options,t=this._getListEditable(),n=this.wrapper.find(R+O.list),i={columns:e.columns||[],dataSource:this.dataSource,selectable:e.selectable,reorderable:e.reorderable,editable:t,resizable:e.resizable,filterable:e.filterable,columnMenu:e.columnMenu,columnResizeHandleWidth:this.options.columnResizeHandleWidth,listWidth:k(n),resourcesField:this.resources.field,rowHeight:this.options.rowHeight};return i},_attachResourceEditor:function(e){var t,n;for(n=0;n<e.length;n++)t=e[n],t.field===this.resources.field&&"function"!=typeof t.editor&&(t.editor=_(this._createResourceEditor,this))},_attachListEvents:function(){var e=this,n=e.options.navigatable,i=this.wrapper.find(R+O.toolbar.toolbar+" "+R+O.toolbar.appendButton),r=function(){var t;n&&e._cachedCurrent&&(t=e.list.content.find("tr").eq(e._cachedCurrent.rowIndex).find("td").eq(e._cachedCurrent.columnIndex),e._current(t),o(e.list.content.find("table"),!0)),delete e._cachedCurrent};e.list.bind("render",function(){e._navigatable()},!0).bind("beforeEdit",function(t){e._cachedCurrent={rowIndex:t.container.closest("tr").index(),columnIndex:t.container.index()},e.trigger("edit",{task:t.model,container:t.container})&&t.preventDefault()}).bind("cancel",function(n){return e.trigger("cancel",{task:n.model,container:n.cell})?(n.preventDefault(),t):(e._preventItemChange=!0,e.list.closeCell(),r(),t)}).bind("save",function(n){var i=n.values;e._preventRefresh=!0,null!==e.updateDuration&&e.updateDuration!==t||(e.updateDuration=n.model.duration()),i.hasOwnProperty("start")&&(i.end=new Date(i.start.getTime()+e.updateDuration)),e.updatedValues=i}).bind("itemChange",function(n){var i=e.updatedValues,o=n.data,a=e.resources.field;return e._preventItemChange?(e._preventItemChange=!1,t):(e.trigger("save",{task:o,values:i})?e.dataSource.hasChanges()&&(e.dataSource.cancelChanges(),e._preventRefresh=!1,e.refresh()):(i&&(e._preventRefresh=!0,e.dataSource.update(o,i),i[a]&&e._updateAssignments(o.get("id"),i[a])),e._preventRefresh=!1,e._requestStart(),e.dataSource.sync().then(function(){r()})),e.updatedValues=null,e.updateDuration=null,t)}).bind("change",function(){e.trigger("change");var t=e.list.select();t.length?(i.removeAttr("data-action","add"),e.timeline.select("[data-uid='"+t.attr("data-uid")+"']")):(i.attr("data-action","add"),e.timeline.clearSelection())}).bind("columnResize",function(t){e.trigger("columnResize",{column:t.column,oldWidth:t.oldWidth,newWidth:t.newWidth})}).bind("collapse",function(e){e.preventDefault(),e.model.set("expanded",!1)}).bind("expand",function(e){e.preventDefault(),e.model.set("expanded",!0)}).bind("dragend",function(t){var n,i,o=e.dataSource;"over"===t.position&&(i={parentId:t.source.parentId},o.cancelChanges(),n=o.get(t.source.id),o.update(n,i)),o.sync()}).bind("dataBound",function(){0===e.dataSource.sort().length&&e.dataSource.sort([{field:"orderId",dir:"asc"}])}).bind("reorder",function(t){e._updateTask(t.task,t.updateInfo),r()})},_list:function(){var e=V.styles,t=this.wrapper.find(R+e.list),n=t.find("> div"),i=this._getListOptions();this._attachResourceEditor(i.columns),this.list=new s.ui.GanttList(n,i),this._attachListEvents()},_timeline:function(){var e=this,n=V.styles,o=i(b(!0,{resourcesField:this.resources.field},this.options)),r=this.wrapper.find(R+n.timeline+" > div");this.timeline=new s.ui.GanttTimeline(r,o),this.timeline.bind("navigate",function(t){var i=t.view.replace(/\./g,"\\.").toLowerCase();e.toolbar.find(R+n.toolbar.views+" > button").removeClass(n.selected).end().find(R+n.toolbar.viewButton+"-"+i).addClass(n.selected),e.toolbar.find(R+n.toolbar.viewsDropdown).val(i),e.refresh()}).bind("moveStart",function(n){var i=e.list.editor;return i&&!i.end()?(n.preventDefault(),t):(e.trigger("moveStart",{task:n.task})&&n.preventDefault(),t)}).bind("move",function(t){var n=t.task,i=t.start,o=new Date(i.getTime()+n.duration());e.trigger("move",{task:n,start:i,end:o})&&t.preventDefault()}).bind("moveEnd",function(t){var n=t.task,i=t.start,o=new Date(i.getTime()+n.duration());e.trigger("moveEnd",{task:n,start:i,end:o})||e._updateTask(e.dataSource.getByUid(n.uid),{start:i,end:o})}).bind("resizeStart",function(n){var i=e.list.editor;return i&&!i.end()?(n.preventDefault(),t):(e.trigger("resizeStart",{task:n.task})&&n.preventDefault(),t)}).bind("resize",function(t){e.trigger("resize",{task:t.task,start:t.start,end:t.end})&&t.preventDefault()}).bind("resizeEnd",function(t){var n=t.task,i={};t.resizeStart?i.start=t.start:i.end=t.end,e.trigger("resizeEnd",{task:n,start:t.start,end:t.end})||e._updateTask(e.dataSource.getByUid(n.uid),i)}).bind("percentResizeStart",function(t){var n=e.list.editor;n&&!n.end()&&t.preventDefault()}).bind("percentResizeEnd",function(t){e._updateTask(e.dataSource.getByUid(t.task.uid),{percentComplete:t.percentComplete})}).bind("dependencyDragStart",function(t){var n=e.list.editor;n&&!n.end()&&t.preventDefault()}).bind("dependencyDragEnd",function(t){var n=e.dependencies._createNewModel({type:t.type,predecessorId:t.predecessor.id,successorId:t.successor.id});e._createDependency(n)}).bind("select",function(t){var n=e.list.editor;n&&n.end(),e.select("[data-uid='"+t.uid+"']")}).bind("editTask",function(t){var n=e.list.editor;n&&!n.end()||e.editTask(t.uid)}).bind("clear",function(){e.clearSelection()}).bind("removeTask",function(t){var n=e.list.editor;n&&!n.end()||e.removeTask(e.dataSource.getByUid(t.uid))}).bind("removeDependency",function(t){var n=e.list.editor;n&&!n.end()||e.removeDependency(e.dependencies.getByUid(t.uid))})},_dataSource:function(){var e=this.options,t=e.dataSource;t=m(t)?{data:t}:t,this.dataSource&&this._refreshHandler?this.dataSource.unbind("change",this._refreshHandler).unbind("progress",this._progressHandler).unbind("error",this._errorHandler):(this._refreshHandler=_(this.refresh,this),this._progressHandler=_(this._requestStart,this),this._errorHandler=_(this._error,this)),this.dataSource=s.data.GanttDataSource.create(t).bind("change",this._refreshHandler).bind("progress",this._progressHandler).bind("error",this._errorHandler)},_dependencies:function(){var e=this.options.dependencies||{},t=m(e)?{data:e}:e;this.dependencies&&this._dependencyRefreshHandler?this.dependencies.unbind("change",this._dependencyRefreshHandler).unbind("error",this._dependencyErrorHandler):(this._dependencyRefreshHandler=_(this.refreshDependencies,this),this._dependencyErrorHandler=_(this._error,this)),this.dependencies=s.data.GanttDependencyDataSource.create(t).bind("change",this._dependencyRefreshHandler).bind("error",this._dependencyErrorHandler)},_resources:function(){var e=this.options.resources,t=e.dataSource||{};this.resources={field:"resources",dataTextField:"name",dataColorField:"color",dataFormatField:"format"},b(this.resources,e),this.resources.dataSource=s.data.DataSource.create(t)},_assignments:function(){var e=this.options.assignments,t=e.dataSource||{};this.assignments?this.assignments.dataSource.unbind("change",this._assignmentsRefreshHandler):this._assignmentsRefreshHandler=_(this.refresh,this),this.assignments={dataTaskIdField:"taskId",dataResourceIdField:"resourceId",dataValueField:"value"},b(this.assignments,e),this.assignments.dataSource=s.data.DataSource.create(t),this.assignments.dataSource.bind("change",this._assignmentsRefreshHandler)},_createEditor:function(){var e=this,n=this._editor=new s.gantt.PopupEditor(this.wrapper,b({},this.options,{target:this,resources:{field:this.resources.field,editor:_(this._createResourceEditor,this)},createButton:_(this._createPopupButton,this)}));n.bind("cancel",function(n){var i=e.dataSource.getByUid(n.model.uid);return e.trigger("cancel",{container:n.container,task:i})?(n.preventDefault(),t):(e.cancelTask(),t)}).bind("edit",function(t){var n=e.dataSource.getByUid(t.model.uid);e.trigger("edit",{container:t.container,task:n})&&t.preventDefault()}).bind("save",function(t){var n=e.dataSource.getByUid(t.model.uid);e.saveTask(n,t.updateInfo)}).bind("remove",function(t){e.removeTask(t.model.uid)}).bind("close",e._onDialogClose)},_onDialogClose:function(){},_createResourceEditor:function(e,t){var n,i=this,o=t instanceof h?t:t.model,r=o.get("id"),a=this.options.messages,l=this.resources.field,d={step:.01},c=this.assignments.dataSource.options.schema.model;c&&c.fields.Units&&c.fields.Units.validation&&b(!0,d,c.fields.Units.validation),n=this._resourceEditor=new s.gantt.ResourceEditor(e,{resourcesField:l,unitsValidation:d,data:this._wrapResourceData(r),model:o,messages:b({},a.editor),buttons:[{name:"update",text:a.save,className:V.styles.primary},{name:"cancel",text:a.cancel}],createButton:_(this._createPopupButton,this),save:function(e){i._updateAssignments(e.model.get("id"),e.model.get(l))}}),n.open()},_createPopupButton:function(e){var t=e.name||e.text,n={className:V.styles.popup.button+" k-gantt-"+(t||"").replace(/\s/g,""),text:t,attr:""};if(!(t||w(e)&&e.template))throw Error("Custom commands should have name specified");return w(e)&&(e.className&&(e.className+=" "+n.className),n=b(!0,n,e)),s.template(L)(n)},view:function(e){return this.timeline.view(e)},range:function(e){var t=this.dataSource,n=this.view(),i=this.timeline;return e&&(n.options.range={start:e.start,end:e.end},i._render(t.taskTree()),i._renderDependencies(this.dependencies.view())),{start:n.start,end:n.end}},date:function(e){var t=this.view();return e&&(t.options.date=e,t._scrollToDate(e)),t.options.date},dataItem:function(e){var t,n;return e?(t=this.list,n=t.element.find(e),t._modelFromElement(n)):null},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.list.setDataSource(this.dataSource),this.options.autoBind&&e.fetch()},setDependenciesDataSource:function(e){this.options.dependencies=e,this._dependencies(),this.options.autoBind&&e.fetch()},items:function(){return this.wrapper.children(".k-task")},_updateAssignments:function(e,t){for(var n,i,o,r,a,s,l,d=this.assignments.dataSource,c=this.assignments.dataTaskIdField,u=this.assignments.dataResourceIdField,h=!1,p=new f(d.view()).filter({field:c,operator:"eq",value:e}).toArray();p.length;){for(n=p[0],r=0,a=t.length;r<a;r++)if(i=t[r],n.get(u)===i.get("id")){o=t[r].get("value"),this._updateAssignment(n,o),t.splice(r,1),h=!0;break}h||this._removeAssignment(n),h=!1,p.shift()}for(s=0,l=t.length;s<l;s++)i=t[s],this._createAssignment(i,e);d.sync()},cancelTask:function(){var e=this._editor,t=e.container;t&&e.close()},editTask:function(e){var t,n="string"==typeof e?this.dataSource.getByUid(e):e;n&&(t=this.dataSource._createNewModel(n.toJSON()),t.uid=n.uid,this.cancelTask(),this._editTask(t))},_editTask:function(e){this._editor.editTask(e,this.options.editable.plannedTasks)},saveTask:function(e,t){var n=this._editor,i=n.container,o=n.editable;i&&o&&o.end()&&this._updateTask(e,t)},_updateTask:function(e,t){var n=this,i=n.resources.field;n.trigger("save",{task:e,values:t})?n.dataSource.hasChanges()&&(n.dataSource.cancelChanges(),n._preventRefresh=!1,n.refresh()):(t&&(n._preventRefresh=!0,n.dataSource.update(e,t),t[i]&&n._updateAssignments(e.get("id"),t[i])),n._syncDataSource())},_updateAssignment:function(e,t){var n=this.assignments.dataValueField;e.set(n,t)},removeTask:function(e){var t=this,n="string"==typeof e?this.dataSource.getByUid(e):e;n&&this._taskConfirm(function(e){e||t._removeTask(n)},n)},_createTask:function(e,n){if(!this.trigger("add",{task:e,dependency:null})){var i=this.dataSource;this._preventRefresh=!0,n===t?i.add(e):i.insert(n,e),this._scrollToUid=e.uid,this._syncDataSource()}},_createDependency:function(e){this.trigger("add",{task:null,dependency:e})||(this._preventDependencyRefresh=!0,this.dependencies.add(e),this._preventDependencyRefresh=!1,this.dependencies.sync())},_createAssignment:function(e,t){var n=this.assignments,i=n.dataSource,o=n.dataTaskIdField,r=n.dataResourceIdField,a=n.dataValueField,s=i._createNewModel();s[o]=t,s[r]=e.get("id"),s[a]=e.get("value"),i.add(s)},removeDependency:function(e){var t=this,n="string"==typeof e?this.dependencies.getByUid(e):e;n&&this._dependencyConfirm(function(e){e||t._removeDependency(n)},n)},_removeTaskDependencies:function(e,t){this._preventDependencyRefresh=!0;for(var n=0,i=t.length;n<i;n++)this.dependencies.remove(t[n]);this._preventDependencyRefresh=!1,this.dependencies.sync()},_removeTaskAssignments:function(e){var t,n,i=this.assignments.dataSource,o=i.view(),r={field:this.assignments.dataTaskIdField,operator:"eq",value:e.get("id")};for(o=new f(o).filter(r).toArray(),this._preventRefresh=!0,t=0,n=o.length;t<n;t++)i.remove(o[t]);this._preventRefresh=!1,i.sync()},_removeTask:function(e){var t=this.dependencies.dependencies(e.id);this.trigger("remove",{task:e,dependencies:t})||(this._removeTaskDependencies(e,t),this._removeTaskAssignments(e),this._preventRefresh=!0,this.dataSource.remove(e)&&this._syncDataSource(),this._preventRefresh=!1)},_removeDependency:function(e){this.trigger("remove",{task:null,dependencies:[e]})||this.dependencies.remove(e)&&this.dependencies.sync()},_removeAssignment:function(e){this.assignments.dataSource.remove(e)},_taskConfirm:function(e,t){var n=this.options.messages;this._confirm(e,{model:t,text:n.deleteTaskConfirmation,title:n.deleteTaskWindowTitle})},_dependencyConfirm:function(e,t){var n=this.options.messages;this._confirm(e,{model:t,text:n.deleteDependencyConfirmation,title:n.deleteDependencyWindowTitle})},_confirm:function(e,t){var n,i,o=this.options.editable;o===!0||o.confirmation!==!1?(n=this.options.messages,i=[{name:"delete",text:n.destroy,className:V.styles.primary,click:function(){e()}},{name:"cancel",text:n.cancel,click:function(){e(!0)}}],this.showDialog(b(!0,{},t,{buttons:i}))):e()},showDialog:function(e){this._editor.showDialog(e)},refresh:function(){var e,t,i,o,r,a;this._preventRefresh||!this.list||this.list.editor||(this._progress(!1),e=this.dataSource,t=e.taskTree(),i=this._scrollToUid,a=-1,this.current&&(r=this.current.closest("tr").attr(s.attr("uid")),a=this.current.index()),this.trigger("dataBinding")||(0!==this.resources.dataSource.data().length&&this._assignResources(t),this._editor&&this._editor.close(),this.clearSelection(),this.list._render(t),this.timeline._render(t),this.timeline._renderDependencies(this.dependencies.view()),i&&(this._scrollTo(i),this.select(n(i))),(i||r)&&a>=0&&(o=this.list.element.find("tr"+n(i||r)+" > td:eq("+a+")"),this._current(o)),this._scrollToUid=null,this.trigger("dataBound")))},refreshDependencies:function(){this._preventDependencyRefresh||this.trigger("dataBinding")||(this.timeline._renderDependencies(this.dependencies.view()),this.trigger("dataBound"))},_assignResources:function(e){var t,n,i=this.resources,o=this.assignments,r=function(){var e=o.dataSource.view(),t={field:o.dataTaskIdField};return e=new f(e).group(t).toArray()},a=r(),l=function(e,t){var n,o,r=e.get("id");for(s.setter(i.field)(e,new p([])),n=0,o=a.length;n<o;n++)a[n].value===r&&t(e,a[n].items)},d=function(e,t){var n,r,a,l,d,c,u,p;for(n=0,r=t.length;n<r;n++)a=t[n],l=i.dataSource.get(a.get(o.dataResourceIdField)),d=a.get(o.dataValueField),c=a.get(o.dataResourceIdField),u=l.get(i.dataFormatField)||S,p=s.toString(d,u),e[i.field].push(new h({id:c,name:l.get(i.dataTextField),color:l.get(i.dataColorField),value:d,formatedValue:p}))};for(t=0,n=e.length;t<n;t++)l(e[t],d)},_wrapResourceData:function(e){var t,n,i,o=this,r=[],a=this.resources.dataSource.view(),s=this.assignments.dataSource.view(),l=new f(s).filter({field:o.assignments.dataTaskIdField,operator:"eq",value:e}).toArray(),d=function(e){var t=null;return new f(l).filter({field:o.assignments.dataResourceIdField,operator:"eq",value:e}).select(function(e){t+=e.get(o.assignments.dataValueField)}),t};for(n=0,i=a.length;n<i;n++)t=a[n],r.push({id:t.get("id"),name:t.get(o.resources.dataTextField),format:t.get(o.resources.dataFormatField)||S,value:d(t.id)});return r},_syncDataSource:function(){this._preventRefresh=!1,this._requestStart(),this.dataSource.sync()},_requestStart:function(){this._progress(!0)},_error:function(){this._progress(!1)},_progress:function(e){s.ui.progress(this.element,e)},_resizable:function(){var t,n,i,o=this,r=this.wrapper,a=V.styles,l=R+a.gridContent,d=r.find(R+a.list),c=r.find(R+a.timeline);this._resizeDraggable=r.find(R+a.splitBar).height(d.height()).hover(function(){e(this).addClass(a.splitBarHover)},function(){e(this).removeClass(a.splitBarHover)}).end().kendoResizable({orientation:"horizontal",handle:R+a.splitBar,start:function(){t=d.width(),n=c.width(),i=s.scrollLeft(c.find(l))},resize:function(e){var a=e.x.initialDelta;s.support.isRtl(r)&&(a*=-1),t+a<0||n-a<0||(d.width(t+a),c.width(n-a),s.scrollLeft(c.find(l),i+a),o.timeline.view()._renderCurrentTime())}}).data("kendoResizable")},_scrollable:function(){var t=this,n=V.styles,i=R+n.gridContent,o=R+n.gridHeaderWrap,r=this.timeline.element.find(o),a=this.timeline.element.find(i),l=this.list.element.find(o),d=this.list.element.find(i);c&&d.css("overflow-y","auto"),a.on("scroll",function(){t.scrollTop=this.scrollTop,s.scrollLeft(r,this.scrollLeft),d.scrollTop(this.scrollTop)}),d.on("scroll",function(){s.scrollLeft(l,this.scrollLeft)}).on("DOMMouseScroll"+C+" mousewheel"+C,function(t){var n=a.scrollTop(),i=s.wheelDeltaY(t);i&&(t.preventDefault(),e(t.currentTarget).one("wheel"+C,!1),a.scrollTop(n+-i))})},_navigatable:function(){var i,r=this,a=this.options.navigatable,d=this.options.editable,c=V.styles,u=R+c.gridContent,h=R+c.gridHeaderWrap,p=this.list.element.find(h).find("table"),f=this.list.element.find(u).find("table"),m=s.support.isRtl(this.wrapper),g=this.timeline.element.find(R+c.gridContent),v=p.add(f),_=n(),b={collapse:!1,expand:!0},w=function(e){var t=r.timeline.view()._timeSlots()[0].offsetWidth;s.scrollLeft(g,s.scrollLeft(g)+(e?-t:t))},k=function(e){var t=r.timeline.view()._rowHeight;g.scrollTop(g.scrollTop()+(e?-t:t))},y=function(e){var t=r.current.parent("tr"+n()),i=r.current.index(),a=t[e]("tr:visible").first();0!==r.select().length&&r.clearSelection(),0!==a.length?(r._current(a.children("td:eq("+i+")")),r._scrollTo(r.current)):r.current.is("td")&&"prevAll"==e?o(p):r.current.is("th")&&"nextAll"==e&&o(f)},x=function(e){var t=r.current[e]();0!==t.length&&(r._current(t),i=r.current.index())},S=function(e){var t=r.dataItem(r.current);t.summary&&t.expanded!==e&&t.set("expanded",e)},D=function(){var e,t,n=r.options.editable;n&&n.destroy!==!1&&!r.list.editor&&(e=r.select(),t=s.attr("uid"),e.length&&r.removeTask(e.attr(t)))};return e(this.wrapper).on("mousedown"+C,"tr"+_+", div"+_+":not("+R+c.line+")",function(t){var i,l=e(t.currentTarget),c=e(t.target).is(":button,a,:input,a>.k-icon,textarea,span.k-icon:not(.k-i-none),span.k-link,.k-input,.k-multiselect-wrap");t.ctrlKey||(a&&(i=l.is("tr")?e(t.target).closest("td"):r.list.content.find("tr"+n(l.attr(s.attr("uid")))+" > td:first"),r._current(i)),!a&&!d||c||(r._focusTimeout=setTimeout(function(){o(r.list.content.find("table"),!0)},2)))}).on("keydown"+C,function(n){var i,o=n.keyCode,r=this,a=e(r._getToolbarItems()),s=a.index(r.toolbar.find(R+c.focused)[0]);if(s===-1&&e(n.target).closest(R+c.toolbar.views).length&&(s=a.index(r.toolbar.find(".k-gantt-views > .k-state-selected:visible, .k-views-dropdown:visible")[0])),i=n.shiftKey?a[s-1]:a[s+1],o===l.F10)r.toolbar.find(".k-button:visible:first").addClass(c.focused).focus(),n.preventDefault();else if(o==l.TAB&&e(n.target).closest(R+c.toolbar.toolbar).length){if(r.toolbar.find(R+c.focused).removeClass(c.focused).blur(),i)return e(i).addClass(c.focused).focus(),n.preventDefault(),t;this.list.element.is(":visible")?this.list.element.find("table[role=treegrid]").focus():this.element.find(R+c.tasks)[0].focus(),n.preventDefault()}}.bind(this)),a!==!0?(f.on("keydown"+C,function(e){e.keyCode==l.DELETE&&D()}),t):(v.on("focus"+C,function(){var t=this===f.get(0)?"td":"th",n=r.select(),o=r.current||e(n.length?n:this).find(t+":eq("+(i||0)+")");r._current(o),e(r.toolbar.find(R+c.focused)).removeClass(c.focused)}).on("blur"+C,function(){r._current(),this==p&&e(this).attr(T,-1)}).on("keydown"+C,function(t){var n,i=t.keyCode;if(r.current)switch(n=r.current.is("td"),i){case l.RIGHT:t.preventDefault(),t.altKey?w():t.ctrlKey?S(m?b.collapse:b.expand):x(m?"prev":"next");break;case l.LEFT:t.preventDefault(),t.altKey?w(!0):t.ctrlKey?S(m?b.expand:b.collapse):x(m?"next":"prev");break;case l.UP:t.preventDefault(),t.altKey?k(!0):y("prevAll");break;case l.DOWN:t.preventDefault(),t.altKey?k():y("nextAll");break;case l.SPACEBAR:t.preventDefault(),n&&r.select(r.current.closest("tr"));break;case l.ENTER:t.preventDefault(),n?r.options.editable&&r.options.editable.update!==!1&&(r.list._startEditHandler(r.current),e(this).one("keyup",function(e){e.stopPropagation()})):r.current.children("a.k-link").click();break;case l.DELETE:n&&D();break;default:i>=49&&i<=57&&"input"!==t.target.tagName.toLowerCase()&&r.view(r.timeline._viewByIndex(i-49))}}),t)},_getToolbarItems:function(){return this.toolbar.find("> .k-button:visible").toArray().concat(this.toolbar.find(".k-views-dropdown:visible").toArray(),this.toolbar.find(".k-gantt-views > .k-state-selected:visible").toArray())},_current:function(t){var n,i=V.styles;this.current&&this.current.length&&this.current.removeClass(i.focused).removeAttr("id"),t&&t.length?(this.current=t.addClass(i.focused).attr("id",M),n=e(s._activeElement()),n.is("table")&&this.wrapper.find(n).length>0&&n.removeAttr(E).attr(E,M)):this.current=null},_dataBind:function(){var t,n=this;n.options.autoBind&&(this._preventRefresh=!0,this._preventDependencyRefresh=!0,t=e.map([this.dataSource,this.dependencies,this.resources.dataSource,this.assignments.dataSource],function(e){return e.fetch()}),e.when.apply(null,t).done(function(){n._preventRefresh=!1,n._preventDependencyRefresh=!1,n.refresh()}))},_resize:function(){this._adjustDimensions(),this.timeline.view()._adjustHeight(),this.timeline.view()._renderCurrentTime(),this.list._adjustHeight()},_createPlannedTasksSwitch:function(){var t=this,n=t.options.messages.plannedTasks.switchText,i=e("<span class='k-gantt-planned-wrap'><label>"+n+"</label></span>"),o=new s.ui.Switch(e("<input id='planned-switch' class='k-gantt-planned-switch'>"),{checked:t.options.showPlannedTasks,change:_(t._togglePlannedTasks,t),messages:{checked:"",unchecked:""}});i.append(o.wrapper),t.toggeSwitchWrap=i,t.toggleSwitch=o},_togglePlannedTasks:function(e){var t=this.timeline;this.trigger("togglePlannedTasks",{showPlannedTasks:!t.options.showPlannedTasks})?e.preventDefault():(this.wrapper.toggleClass(O.plannedTasks),t._setPlanned(!t.options.showPlannedTasks),t._render(this.dataSource.taskTree()),t._renderDependencies(this.dependencies.view()))}});s.PDFMixin&&(s.PDFMixin.extend(V.fn),V.fn._drawPDF=function(){var e=V.styles,t=this.wrapper.find(R+e.list+" "+R+e.gridContent+">table").width(),n=this.wrapper.clone();return n.find(R+e.list).css("width",t),this._drawPDFShadow({content:n},{avoidLinks:this.options.pdf.avoidLinks})}),s.ui.plugin(V),b(!0,V,{styles:O})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.timeline.min",["kendo.fx.min","kendo.data.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(e){return"k-"+e}function i(e){var t,n,i=e.css("transform");return"none"!=i?(n=i.match(/-?[\d\.]+/g),t=n[4],t/e.width()*100):0}function o(e,t){return e.offset().left-t.offset().left+e.width()/2}function r(e,t,n){e.css(t,n)}var a=window.kendo,s=a.ui,l=s.Widget,d=a.data.DataSource,c=a.effects.Transition,u=e.proxy,h=e.isArray,p=-1,f=0,m=1,g="vertical",v="transitionEnd",_=3,b="timeline-event",w="k-timeline-flag-wrap",k="k-timeline-track-item",y="k-timeline-scrollable-wrap",x=".kendoTimeline",C="change",S='# var titleField = data.titleField, subtitleField = data.subtitleField, descriptionField = data.descriptionField, imagesField = data.imagesField, actionsField = data.actionsField, data = data.data; #<div class="k-card-header"># if(data[titleField]) { #<h5 class="k-card-title">#= data[titleField] #</h5># }if(data[subtitleField]) { #<h6 class="k-card-subtitle">#= data[subtitleField] #</h6># } #</div><div class="k-card-body"><div class="k-card-description"># if(data[descriptionField]) { #<p>#= data[descriptionField] #</p># }if(data[imagesField] && data[imagesField].length > 0) { #<img src="#= data[imagesField][0].src #" class="k-card-image" /># } #</div></div># if(data[actionsField] && data[actionsField].length > 0) { #<div class="k-card-actions"># for (var i = 0; i < data[actionsField].length; i++) { #<a class="k-button k-flat k-primary" href="#= data[actionsField][i].url ? data[actionsField][i].url : "\\#" #">#= data[actionsField][i].text #</a># } #</div># } #',T='# var titleField = data.titleField, subtitleField = data.subtitleField, descriptionField = data.descriptionField, imagesField = data.imagesField, actionsField = data.actionsField, data = data.data; #<div class="k-card-header"><h5 class="k-card-title"># if(data[titleField]) { #<span class="k-event-title">#= data[titleField] #</span># } #<span class="k-event-collapse k-button k-button-icon k-flat"><span class="k-icon k-i-arrow-chevron-right"></span></span></h5># if(data[subtitleField]) { #<h6 class="k-card-subtitle">#= data[subtitleField] #</h6># } #</div><div class="k-card-body"><div class="k-card-description"># if(data[descriptionField]) { #<p>#= data[descriptionField] #</p># } ## if(data[imagesField] && data[imagesField].length > 0) { #<img src="#= data[imagesField][0].src #" class="k-card-image" /># } #</div></div># if(data[actionsField] && data[actionsField].length > 0) { #<div class="k-card-actions"># for (var i = 0; i < data[actionsField].length; i++) { #<a class="k-button k-flat k-primary" href="#= data[actionsField][i].url ? data[actionsField][i].url : "\\#" #">#= data[actionsField][i].text #</a># } #</div># } #',D='# var itemTemplate = data.itemTemplate, dateField = data.dateField, dateFormat = data.dateFormat, showDateLabels = data.showDateLabels, data = data.data, year = 0; ## for (var i = 0; i < data.length; i++) {if(!(data[i][dateField] instanceof Date)) {continue;}var currentYear = data[i][dateField].getFullYear();if(year != currentYear) {year = currentYear; #<li class="k-timeline-track-item k-timeline-flag-wrap"><span class="k-timeline-flag">#= year #</span></li># } #<li class="k-timeline-track-item"><div class="k-timeline-date-wrap"># if(showDateLabels) { #<span class="k-timeline-date">#= kendo.toString(data[i][dateField], dateFormat) #</span># } #</div><a class="k-timeline-circle"></a></li># } #',A='# var itemTemplate = data.itemTemplate, dateField = data.dateField, titleField = data.titleField, descriptionField = data.descriptionField, subtitleField = data.subtitleField, imagesField = data.imagesField, actionsField = data.actionsField, alterMode = data.alterMode, collapsibleEvents = data.collapsibleEvents, dateFormat = data.dateFormat, showDateLabels = data.showDateLabels, data = data.data, counter = 0, year = 0, reverse = false;for (var i = 0; i < data.length; i++) {if(!(data[i][dateField] instanceof Date)) {continue;}var currentYear = data[i][dateField].getFullYear();if(currentYear != year) {year = currentYear; #<li class="k-timeline-flag-wrap"><span class="k-timeline-flag">#= year #</span></li># } reverse = counter % 2 === 0 && alterMode; #<li class="#= reverse ? \'k-timeline-event k-reverse\' : \'k-timeline-event\' #" data-uid="#: data[i].uid #"># if(showDateLabels) { #<div class="k-timeline-date-wrap"><span class="k-timeline-date">#= kendo.toString(data[i][dateField], dateFormat) #</span></div># } #<a class="k-timeline-circle"></a><div class="#= collapsibleEvents ? \'k-timeline-card k-collapsed\' : \'k-timeline-card\' #"><div class="k-card"><span class="#= reverse ? \'k-timeline-card-callout k-card-callout k-callout-e\' : \'k-timeline-card-callout k-card-callout k-callout-w\' #"></span>#= itemTemplate({titleField: titleField, subtitleField: subtitleField, descriptionField: descriptionField, imagesField: imagesField, actionsField: actionsField, data: data[i]}) #</div></div></li># counter ++;} #',E='<a class="k-button k-timeline-arrow k-timeline-arrow-left k-state-disabled" title="previous"><span class="k-icon k-i-arrow-60-left"></span></a><a class="k-button k-timeline-arrow k-timeline-arrow-right k-state-disabled" title="next"><span class="k-icon k-i-arrow-60-right"></span></a>',I=a.Class.extend({
init:function(t){this.cardContainer=e("<div class='k-card' />");var i=e("<div class='k-timeline-card'></div>").append(this.cardContainer);this.element=e("<li class='"+n(b)+"'></li>").append(i),t.append(this.element)},content:function(t,n){var i=e("<span class='k-timeline-card-callout k-card-callout k-callout-n'></span>");this.cardContainer.html(t),this.cardContainer.append(i),this.element.attr("data-uid",n)},position:function(e){this.element.css("transform","translate3d("+this.element.width()*e+"px, 0, 0)")},setPageCallout:function(e,t){var n=this.element,i=n.find(".k-timeline-card-callout");i.css(e,t)},destroy:function(){var e=this;e.cardContainer=null,e.element.remove(),e.element=null}}),M=a.Observable.extend({init:function(t,n){var i,o,r,s=this;a.Observable.fn.init.call(this),this.element=t,i=new a.ui.Movable(s.element),o=new c({axis:"x",movable:i,onEnd:function(){s.trigger(v)}}),r=[],e.extend(s,{duration:n&&n.duration||1,movable:i,transition:o,pages:r,eventTemplate:n.eventTemplate,eventHeight:n.eventHeight,dataFieldMappings:n.dataFieldMappings}),this.bind([v],n)},initPages:function(){var e,t,n=this.pages,i=this.element;for(t=0;t<_;t++)e=new I(i),n.push(e)},repositionPages:function(){var e=this.pages;e[0].position(p),e[1].position(f),e[2].position(m)},setPageContent:function(e,t){var n=typeof this.eventTemplate===Function?this.eventTemplate:a.template(this.eventTemplate),i=this.dataFieldMappings,o=n({data:t,titleField:i.title,subtitleField:i.subtitle,descriptionField:i.description,imagesField:i.images,actionsField:i.actions});e.content(o,t.uid)},updatePage:function(e,t,n){var i=this.pages,o=null===e?i[1]:e?i[i.length-1]:i[0];this.setPageContent(o,t),o.setPageCallout("left",n/o.element.width()*100+"%")},moveTo:function(e){this.movable.moveAxis("x",-e)},transitionTo:function(e,t){this.transition.moveTo({location:e,duration:this.duration,ease:t})},destroy:function(){var e,t=this;for(e=0;e<t.pages.length;e++)t.pages[e].destroy();t.unbind(),t.movable=t.transition=t.dataFieldMappings=t.eventTemplate=t.duration=t.pages=null}}),R=a.ui.Widget.extend({init:function(t,n){var i=this,o=n.orientation||i.options.orientation;l.fn.init.call(this,t,n),this.element.addClass(o===g?"k-timeline k-widget k-timeline-vertical":"k-timeline k-widget k-timeline-horizontal"),o!=g?i._horizontal():i._vertical(),this.element.on("click",".k-card-actions",function(){var t=e(event.target),n=e(event.target).closest(".k-timeline-event").data("uid"),o=i.dataSource.getByUid(n);i.trigger("actionClick",{sender:i,element:t,dataItem:o})}),i.currentEventIndex=0,i._forward=null,i._eventPage=1,i._currentIndex=0,i._firstIndexInView=0,i._initDataFieldMappings(),i.setDataSource(n.dataSource)},_horizontal:function(){var t=this,n=this.element,i=this.options,o=e("<div />"),r=e("<div />"),a=e("<ul />"),s=e("<div />"),l=e("<ul />");t._trackWrap=o,t._trackEl=r,t._scrollableWrap=a,t._eventsWrap=s,t._eventsList=l,o.addClass("k-timeline-track-wrap"),r.addClass("k-timeline-track"),a.addClass("k-timeline-scrollable-wrap"),s.addClass("k-timeline-events-list"),l.addClass("k-timeline-scrollable-wrap"),i.eventHeight&&l.height(i.eventHeight),r.append(a),o.append(E),o.append(r),s.append(l),o.appendTo(n),s.appendTo(n)},_vertical:function(){var t=this,n=this.options,i=this.element,o=t._eventsList=e("<ul />");t.element.append(o),n.alternatingMode&&i.addClass("k-timeline-alternating"),n.collapsibleEvents&&(i.addClass("k-timeline-collapsible"),this.element.on("click",".k-card-header",function(){var n=e(this).closest(".k-timeline-card"),i=n.find(".k-card-body"),o=t.dataSource.getByUid(n.closest("li").data("uid"));n.hasClass("k-collapsed")?t.trigger("expand",{sender:t,dataItem:o})||(a.fx(i).expand("vertical").stop().play(),n.toggleClass("k-collapsed")):t.trigger("collapse",{sender:t,dataItem:o})||(a.fx(i).expand("vertical").stop().reverse(),n.toggleClass("k-collapsed"))}))},_renderContentVertical:function(e){var t,n,i,o=this,r=o.options;n=typeof r.eventTemplate===Function?r.eventTemplate:r.eventTemplate?a.template(r.eventTemplate):a.template(T,{useWithBlock:!1}),i=a.template(A,{useWithBlock:!1}),t=i({data:e,dateField:r.dataDateField,titleField:r.dataTitleField,subtitleField:r.dataSubtitleField,descriptionField:r.dataDescriptionField,imagesField:r.dataImagesField,actionsField:r.dataActionsField,itemTemplate:n,alterMode:r.alternatingMode,collapsibleEvents:r.collapsibleEvents,dateFormat:r.dateFormat,showDateLabels:r.showDateLabels}),this._eventsList.html(t),r.eventWidth&&o.element.find(".k-card").width(r.eventWidth)},_renderContentHorizontal:function(t){var n,i,o,r=this,s=r.options,l=r._dataFieldMappings;i=typeof s.eventTemplate===Function?s.eventTemplate:s.eventTemplate?a.template(s.eventTemplate):a.template(S,{useWithBlock:!1}),o=a.template(D,{useWithBlock:!1}),n=o({data:t,itemTemplate:i,dateFormat:s.dateFormat,dateField:s.dataDateField,showDateLabels:s.showDateLabels}),s.initialEventIndex?r._trackWrap.append(e(n).find(".k-timeline-scrollable-wrap").css("transform","translateX(-100%)").parent()):r._scrollableWrap.html(n),r.pane&&r.pane.destroy(),r.pane=new M(r._eventsList,{transitionEnd:u(this,"_transitionEnd"),eventTemplate:i,dataFieldMappings:l,eventHeight:s.eventHeight})},_initDataFieldMappings:function(){var e=this,t=e.options;e._dataFieldMappings={title:t.dataTitleField,subtitle:t.dataSubtitleField,date:t.dataDateField,description:t.dataDescriptionField,images:t.dataImagesField,actions:t.dataActionsField}},_transitionEnd:function(){this._forward?this.pane.pages.push(this.pane.pages.shift()):this.pane.pages.unshift(this.pane.pages.pop()),this._forward=null,this.pane.repositionPages(),this.pane.movable.moveAxis("x",0),this._animationInProgress=!1},_setCurrentEvent:function(t){var n=this,i=e(t.currentTarget),o=n.dataSource.view()[i.index("li[class='k-timeline-track-item']")],r=n._forward?n.pane.pages[2].element:n.pane.pages[0].element;n.trigger("change",{eventContainer:r,dataItem:o})||n.open(i)},open:function(t){var n,i=this,r=e(t),a=r.find(".k-timeline-circle"),s=r.index("li[class='k-timeline-track-item']"),l=i.dataSource.view()[s];i.currentEventIndex!==s&&(i._currentIndex=r.index(),n=i._forward=i.currentEventIndex<s,i.currentEventIndex=s,i.pane.updatePage(n,l,o(a,i._trackWrap)),i._forward?(clearTimeout(i.navigateTimeOut),i.navigateTimeOut=setTimeout(function(){i.pane.transition.moveTo({location:-i.pane.pages[2].element.width(),duration:800,ease:c.easeOutExpo})},200)):(clearTimeout(i.navigateTimeOut),i.navigateTimeOut=setTimeout(function(){i.pane.transition.moveTo({location:i.pane.pages[0].element.width(),duration:800,ease:c.easeOutExpo})},200)),i._repositionEvents())},_navigateToView:function(t){var n=this,i=e(t.currentTarget).hasClass("k-timeline-arrow-right")?1:-1;n.trigger("navigate",{sender:n,action:i>0?"next":"previous"})||n._animationInProgress||(n._animationInProgress=!0,i>0?n.next():n.previous(),n._updateArrows())},_updateArrows:function(){var e=this,t=e.element.find(".k-timeline-arrow");e._validateNavigation(!1)?t.filter(".k-timeline-arrow-left").addClass("k-state-disabled"):t.filter(".k-timeline-arrow-left").removeClass("k-state-disabled"),e._validateNavigation(!0)?t.filter(".k-timeline-arrow-right").addClass("k-state-disabled"):t.filter(".k-timeline-arrow-right").removeClass("k-state-disabled")},_validateNavigation:function(e){var t=this,n=t._end||0;return e?t._firstIndexInView+t.numOfEvents>=t.maxEvents:Math.abs(n)<=1},next:function(){var e=this,t=e.options;e._validateNavigation(!0)||t.orientation==g||(e._forward=!0,e._navigate()),e._updateArrows()},_navigate:function(){var t,n,r,a,s,l,d,u=this,h=u._forward,p=i(this._trackWrap.find("."+y)),f=h?-e("."+y).width():e("."+y).width(),m=u._currentIndex,g=u._firstIndexInView;p=h?p-100:p+100,p>=0&&(p=0),u._end=p,a=u._tackItemWidth,s=Math.floor(m/u.numOfEvents),h?1===u.numOfEvents?(t=0===g?1:g,n=this._trackWrap.find("."+k).eq(t).nextAll(":not(."+w+")").first(),u._firstIndexInView=n.index()):(t=g+u.numOfEvents-1,n=this._trackWrap.find("."+k).eq(t).nextAll(":not(."+w+")").first(),u._firstIndexInView=g+u.numOfEvents):1===u.numOfEvents?(t=g,n=this._trackWrap.find("."+k).eq(t).prevAll(":not(."+w+")").first(),u._firstIndexInView=n.index()):(t=g,n=this._trackWrap.find("."+k).eq(t).prevAll(":not(."+w+")").first(),n=n.length>0?n:this._trackWrap.find("."+k+":not(."+w+")").first(),u._firstIndexInView=g-u.numOfEvents<0?0:g-u.numOfEvents),r=u.dataSource.view()[n.index("li[class='k-timeline-track-item']")],this._trackWrap.find("."+y).css("transform","translateX("+p+"%)"),u._currentIndex!=n.index()?(u.currentEventIndex=n.index("li[class='k-timeline-track-item']"),u._currentIndex=n.index(),u.pane.updatePage(u._forward,r,0!==s||h?o(n.find(".k-timeline-circle"),u._trackWrap)+f:n.find(".k-timeline-circle").offset().left+15),clearTimeout(u.navigateTimeOut),u.navigateTimeOut=setTimeout(function(){u.pane.transition.moveTo(h&&u.pane&&u.pane.pages.length>0?{location:-u.pane.pages[2].element.width(),duration:800,ease:c.easeOutExpo}:{location:u.pane.pages[0].element.width(),duration:800,ease:c.easeOutExpo})},200)):(l=this._trackWrap.find("."+y),d=function(){var e,t;1!=u.numOfEvents&&(e=u.pane.pages[1],t=o(n.find(".k-timeline-circle"),u._trackWrap),e.setPageCallout("left",t/e.element.width()*100+"%")),l.off("transitionend"+x,d)},l.on("transitionend"+x,d))},previous:function(){var e=this,t=e.options;e._validateNavigation(!1)||t.orientation==g||(e._forward=!1,e._navigate()),e._updateArrows()},expand:function(t){var n=e(t).find(".k-timeline-card"),i=e(t).find(".k-card-body");n.hasClass("k-collapsed")&&(a.fx(i).expand("vertical").stop().play(),n.removeClass("k-collapsed"))},collapse:function(t){var n=e(t).find(".k-timeline-card"),i=e(t).find(".k-card-body");n.hasClass("k-collapsed")||(a.fx(i).expand("vertical").stop().reverse(),n.addClass("k-collapsed"))},items:function(){return this.element.find("li[data-uid]")},_resizeHandler:function(){var e=this;clearTimeout(e.resizeTimeOut),e.resizeTimeOut=setTimeout(function(){e._redrawEvents(),e.pane.repositionPages()})},redraw:function(){var e=this.options;e.orientation!=g&&(this._redrawEvents(),this.pane.repositionPages())},_redrawEvents:function(){var e,t=this,n=Math.floor(t.element.find(".k-timeline-scrollable-wrap").width()/150);t.element.width()<=480?(t.element.addClass("k-timeline-mobile"),e=100,t.numOfEvents=1,t._tackItemWidth=e,t.element.find("li.k-timeline-track-item").css("flex","1 0 "+e+"%"),t._repositionEvents()):(t.element.removeClass("k-timeline-mobile"),n!=t.numOfEvents&&(t.numOfEvents=n,e=100/n,r(t.element.find("li.k-timeline-track-item"),"flex","1 0 "+e+"%"),t._tackItemWidth=e,t._repositionEvents())),t._updateArrows()},_repositionEvents:function(){var e,n,a,s,l,d,c=this,u=c._tackItemWidth,h=null===c._forward?c.pane.pages[1]:c._forward?c.pane.pages[2]:c.pane.pages[0],p=this._trackWrap.find("."+y),f=i(p);if(n=1===c.numOfEvents?c.currentEventIndex*u:c._currentIndex*u,h){if(1===c.numOfEvents)return h.setPageCallout("left","50%"),a=n,r(p,"transform","translateX(-"+a+"%)"),c._firstIndexInView=c._currentIndex,c._updateArrows(),t;n>=Math.abs(f)+100?(a=Math.abs(f)+(n-(Math.abs(f)+100)+u),c._end=-a,r(p,"transform","translateX(-"+a+"%)"),c._firstIndexInView=c._currentIndex-c.numOfEvents+1):n<=Math.abs(f)?(a=n,c._end=-a,r(p,"transform","translateX(-"+a+"%)"),c._firstIndexInView=c._currentIndex):(s=p.find("li.k-timeline-track-item").eq(c._currentIndex).find(".k-timeline-circle"),e=o(s,c._trackWrap),h.setPageCallout("left",e/h.element.width()*100+"%"),c._firstIndexInView=Math.round(Math.abs(f)/u)),l=this._trackWrap.find("."+y),d=function(){var e,t,n;1!=c.numOfEvents&&(e=c.pane.pages[1],t=c._trackWrap.find("."+k).eq(c._currentIndex),n=o(t.find(".k-timeline-circle"),c._trackWrap),e.setPageCallout("left",n/e.element.width()*100+"%")),l.off("transitionend"+x,d)},l.on("transitionend"+x,d)}c._updateArrows()},_initHorizontal:function(){var t=this,n=t._trackWrap.find(".k-timeline-circle").first(),i=t.dataSource.view()[0];t.maxEvents=t._trackWrap.find(".k-timeline-track-item").length,t._currentIndex=1,t.pane.initPages(),t.pane.repositionPages(),t.pane.updatePage(t._forward,i,o(n,t._trackWrap)),t._updateArrows(),e(window).on("resize"+x,u(this,"_resizeHandler")),t._trackWrap.on("click",".k-timeline-track-item:not(.k-timeline-flag-wrap)",u(this,"_setCurrentEvent")),t._trackWrap.on("click",".k-timeline-arrow:not(.k-state-disabled)",u(this,"_navigateToView"))},setDataSource:function(e){var n=this,i=n.options;e=h(e)?{data:e}:e,n.dataSource&&n._refresh?n.dataSource.unbind(C,n._refresh):this._refresh=u(n,"refresh"),this.dataSource=d.create(e),this.dataSource._sort===t&&(this.dataSource._sort=[{field:i.dataDateField,dir:"asc"}]),n.dataSource.bind(C,n._refresh),i.autoBind&&this.dataSource.fetch()},refresh:function(){var e=this,t=e.options,n=this.dataSource.view();t.orientation!=g&&(e._trackWrap.empty().remove(),e.element.find(".k-timeline-events-list").remove(),e._horizontal()),e.currentEventIndex=0,e._forward=null,e._eventPage=1,e._currentIndex=0,e._firstIndexInView=0,e.numOfEvents=null,e._end=0,e._initDataFieldMappings(),n.length&&("horizontal"===t.orientation?(e._renderContentHorizontal(n),e._redrawEvents(),e._initHorizontal()):e._renderContentVertical(n)),e.trigger("dataBound",{sender:e})},destroy:function(){var t=this.options;l.fn.destroy.call(this),this.resizeTimeOut&&clearTimeout(this.resizeTimeOut),this.navigateTimeOut&&clearTimeout(this.navigateTimeOut),e(window).off("resize"+x,this._resizeHandler),this.element.off(),t.orientation!=g&&(this.pane.destroy(),this._trackWrap.find("."+y).off(),this._trackWrap.off(),this.currentEventIndex=this.maxEvents=this.numOfEvents=this._currentIndex=this._eventPage=this._eventsList=this._eventsWrap=this.element=this._trackWrap=this.pane=null),a.destroy(this.element),this._dataFieldMappings=this.element=null},options:{autoBind:!0,name:"Timeline",orientation:"vertical",dateFormat:"MMM d, yyyy",showDateLabels:!0,collapsibleEvents:!1,alternatingMode:!1,dataTitleField:"title",dataDateField:"date",dataSubtitleField:"subtitle",dataDescriptionField:"description",dataImagesField:"images",dataActionsField:"actions"},events:["collapse","dataBound","expand","actionClick","change","navigate"]});a.ui.plugin(R)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("util/main.min",["kendo.core.min"],e)}(function(){return function(){function e(e){return e*e}function t(e){return"string"!=typeof e&&(e+="px"),e}function n(e){var t,n,i=[];if(e)for(t=d.toHyphens(e).split("-"),n=0;n<t.length;n++)i.push("k-pos-"+t[n]);return i.join(" ")}function i(e){for(var t={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},n=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],i="";e>0;)e<n[0]?n.shift():(i+=t[n[0]],e-=n[0]);return i}function o(e){var t,n,i,o,r;for(e=e.toLowerCase(),t={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},n=0,i=0,o=0;o<e.length;++o){if(r=t[e.charAt(o)],!r)return null;n+=r,r>i&&(n-=2*i),i=r}return n}function r(e){var t=Object.create(null);return function(){var n,i="";for(n=arguments.length;--n>=0;)i+=":"+arguments[n];return i in t?t[i]:t[i]=e.apply(this,arguments)}}function a(e){return l.test(e)}function s(e,t){function n(e){this.value=e}try{return e.call(t,function(e){throw new n(e)})}catch(i){if(i instanceof n)return i.value;throw i}}var l,d=window.kendo,c=d.deepExtend,u=Date.now;u||(u=function(){return(new Date).getTime()}),c(d,{util:{now:u,renderPos:n,renderSize:t,sqr:e,romanToArabic:o,arabicToRoman:i,memoize:r,isUnicodeLetter:a,withExit:s}}),l=RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]")}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("util/parse-xml.min",["kendo.core.min","util/main.min"],e)}(function(){"use strict";function e(e){var t,n=[];for(t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}function t(e,t){t>65535?(t-=65536,e.push(t>>>10&1023|55296,56320|1023&t)):e.push(t)}function n(e,n){function C(n){var i=e[q++];240&i^240?224&i^224?192&i^192?n.push(i):t(n,(31&i)<<6|63&e[q++]):t(n,(15&i)<<12|(63&e[q++])<<6|63&e[q++]):t(n,(3&i)<<18|(63&e[q++])<<12|(63&e[q++])<<6|63&e[q++])}function S(e){throw Error(e+", at "+q)}function T(t){for(var n=[];q<e.length&&t(e[q]);)n.push(e[q++]);return n}function D(e){return i.apply(0,T(e))}function A(){T(M)}function E(t){var n,i=q;for(n=0;n<t.length;++n)if(e[q++]!=t[n])return q=i,!1;return t}function I(e){E(e)||S("Expecting "+e.join(", "))}function M(e){return 9==e||10==e||13==e||32==e}function R(e){return e>=48&&e<=57}function F(e){return e>=48&&e<=57||(e|=32)>=97&&e<=102}function P(e){return 58==e||95==e||(e|=32)>=97&&e<=122}function z(e){return 45==e||R(e)||P(e)}function B(){for(var t=[];q<e.length;){if(E(s))return j("comment",i.apply(0,t));C(t)}}function L(){var e,t;E(h)?W():E(l)?B():(e=N(),t=U(e),G.push(t),E(d)?j("enter",e,t,!0):(I(f),j("enter",e,t),H(e),e!=N()&&S("Bad closing tag"),j("leave",e,t),A(),I(f)),G.pop())}function H(t){for(var n=[];q<e.length;){if(E(c))return n.length&&j("text",i.apply(0,n));if(E(r))for(;q<e.length&&!E(a);)C(n);else E(p)?(n.length&&j("text",i.apply(0,n)),L(),n=[]):E(v)?V(n):C(n)}S("Unclosed tag "+t)}function N(){return P(e[q])||S("Expecting XML name"),D(z)}function O(){var t,n=E(_)||E(b);for(n||S("Expecting string"),t=[];q<e.length;){if(E(n))return i.apply(0,t);E(v)?V(t):C(t)}S("Unfinished string")}function V(e){var n,i;E(w)?(n=E(k)||E(y)?parseInt(D(F),16):parseInt(D(R),10),isNaN(n)&&S("Bad numeric entity")):(i=N(),n=o[i],void 0===n&&S("Unknown entity "+i)),t(e,n),I(m)}function W(){j("decl",N(),U()),I(u)}function U(t){for(var n,i={$tag:t};q<e.length&&(A(),n=e[q],63!=n&&62!=n&&47!=n);)i[N()]=(I(g),O());return i}function j(e,t,i,o){var r=n&&n[e];r&&r.call($,t,i,o)}var q=0,G=[],$={is:function(e){for(var t=G.length,n=e.length;--t>=0&&--n>=0;)if(G[t].$tag!=e[n]&&"*"!=e[n])return!1;return n<0?G[G.length-1]:null},exit:function(){throw x},stack:G},K=[];for(C(K),65279!=K[0]&&(q=0);q<e.length;)A(),I(p),L(),A()}var i=String.fromCharCode,o={amp:38,lt:60,gt:62,quot:34,apos:39,nbsp:160},r=e("<![CDATA["),a=e("]]>"),s=e("-->"),l=e("!--"),d=e("/>"),c=e("</"),u=e("?>"),h=e("?"),p=e("<"),f=e(">"),m=e(";"),g=e("="),v=e("&"),_=e('"'),b=e("'"),w=e("#"),k=e("x"),y=e("X"),x={};kendo.util.parseXML=function(){try{return n.apply(this,arguments)}catch(e){if(e!==x)throw e}}},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/commands.min",["kendo.core.min","kendo.binder.min","kendo.window.min","kendo.list.min","kendo.tabstrip.min"],e)}(function(){!function(e){function t(e){var t=document.createElement("textarea");n(t).addClass("k-spreadsheet-clipboard").val(e).appendTo(document.body).focus().select(),document.execCommand("copy"),n(t).remove()}var n,i,o,r,a,s,l,d,c,u,h;e.support.browser.msie&&e.support.browser.version<9||(n=e.jQuery,i={AUTO_FILL:"autoFill",CLEAR:"clear",CUT:"cut",EDIT:"edit",PASTE:"paste",VALIDATION:"validation"},o=e.spreadsheet.Command=e.Class.extend({init:function(e){this.options=e,this._workbook=e.workbook,this._property=e&&e.property,this._state={}},range:function(e){return void 0!==e&&this._setRange(e),this._range},_setRange:function(e){this._range=e},redo:function(){this.range().select(),this.exec()},undo:function(){this.setState(this._state)},getState:function(){this._state=this.range().getState(this._property)},setState:function(e){this.range().setState(e)},rejectState:function(e){return this.undo(),{title:e.title,body:e.message,reason:"error",type:"validationError"}},_forEachCell:function(e){var t=this.range(),n=t._ref;n.forEach(function(n){t.sheet().forEach(n.toRangeRef(),e.bind(this))}.bind(this))},usesImage:function(){return!1}}),e.spreadsheet.DrawingUpdateCommand=o.extend({init:function(e){this._sheet=e.sheet,this._drawing=e.drawing,this._orig=this._drawing.clone(),this._previous=e.previous},exec:function(){},undo:function(){this._drawing.reset(this._previous),this._sheet._activeDrawing=this._drawing,this._sheet.triggerChange({layout:!0})},redo:function(){this._drawing.reset(this._orig),this._sheet._activeDrawing=this._drawing,this._sheet.triggerChange({layout:!0})},usesImage:function(e){return this._drawing.image===e||this._orig.image===e||this._previous.image===e}}),r=o.extend({init:function(e){o.fn.init.call(this,e),this._drawing=e.drawing},usesImage:function(e){return this._drawing.image===e}}),e.spreadsheet.InsertImageCommand=r.extend({init:function(e){r.fn.init.call(this,e),this._blob=e.blob,this._width=e.width,this._height=e.height},exec:function(){var e=this.range(),t=e.sheet(),n=this._width,i=this._height,o=n/i;n>i?(n=Math.min(n,300),i=n/o):(i=Math.min(i,300),n=i*o),this._drawing=t.addDrawing({topLeftCell:e.topLeft(),offsetX:5,offsetY:5,width:n,height:i,opacity:1,image:this._workbook.addImage(this._blob)},!0),this._blob=null},undo:function(){var e=this.range().sheet();e._activeDrawing=null,e.removeDrawing(this._drawing)},redo:function(){var e=this.range().sheet();e._activeDrawing=this._drawing,e.addDrawing(this._drawing)}}),e.spreadsheet.DeleteDrawingCommand=r.extend({exec:function(){var e=this.range().sheet();e._activeDrawing=null,e.removeDrawing(this._drawing)},undo:function(){var e=this.range().sheet();e._activeDrawing=this._drawing,e.addDrawing(this._drawing)},redo:function(){this.exec()}}),a=r.extend({exec:function(){var e=this.range().sheet();this._origIndex=e._drawings.indexOf(this._drawing),e._drawings.splice(this._origIndex,1),this._newIndex=this._reorder(),e._drawings.splice(this._newIndex,0,this._drawing),e.triggerChange({drawings:!0})},undo:function(){var e=this.range().sheet();e._drawings.splice(this._newIndex,1),e._drawings.splice(this._origIndex,0,this._drawing),e.triggerChange({drawings:!0})}}),e.spreadsheet.BringToFrontCommand=a.extend({_reorder:function(){return this.range().sheet()._drawings.length}}),e.spreadsheet.SendToBackCommand=a.extend({_reorder:function(){return 0}}),s=o.extend({init:function(e){o.fn.init.call(this,e),this._target=e.target,this._value=e.value},exec:function(){this.getState(),this.setState(this._value)}}),e.spreadsheet.ColumnWidthCommand=s.extend({getState:function(){this._state=this.range().sheet().columnWidth(this._target)},setState:function(e){this.range().sheet().columnWidth(this._target,e)}}),e.spreadsheet.RowHeightCommand=s.extend({getState:function(){this._state=this.range().sheet().rowHeight(this._target)},setState:function(e){this.range().sheet().rowHeight(this._target,e)}}),e.spreadsheet.HyperlinkCommand=o.extend({init:function(e){o.fn.init.call(this,e),this._link=e.link},exec:function(){var e=this.range();this._prevLink=e.link(),this._prevUnderline=e.underline(),e.link(this._link),e.underline(!0),null==e.value()&&(this._hasSetValue=!0,e.value(this._link))},undo:function(){var e=this.range();e.link(this._prevLink),e.underline(this._prevUnderline),this._hasSetValue&&e.value(null)}}),e.spreadsheet.GridLinesChangeCommand=s.extend({getState:function(){this._state=this._range.sheet().showGridLines()},setState:function(e){this._range.sheet().showGridLines(e)}}),l=e.spreadsheet.PropertyChangeCommand=o.extend({_setRange:function(e){o.prototype._setRange.call(this,e.skipHiddenCells())},init:function(e){o.fn.init.call(this,e),this._value=e.value},exec:function(){var e=this.range();e.enable()&&(this.getState(),"format"===this.options.property&&this._workbook.trigger("changeFormat",{range:e}),e[this._property](this._value))}}),e.spreadsheet.ClearContentCommand=o.extend({exec:function(){var e,t,n,o,r,a=[];return this.range().enable()?this.range().canEditArrayFormula()?(this.getState(),e=this.range().skipHiddenCells(),e._ref.refs&&e._ref.refs.length>1?e._ref.refs.forEach(function(t){r=e.sheet().range(t),a=a.concat(r.values())}):a=e.values(),n=[],a.forEach(function(e){t=[],e.forEach(function(){t.push(null)}),n.push(t)}),e.sheet().trigger("changing",{data:n,range:e,changeType:i.CLEAR})?void 0:(e.clearContent(),o=e._getValidationState(),o?this.rejectState(o):void 0)):{reason:"error",type:"intersectsArray"}:{reason:"error",type:"cannotModifyDisabled"}},undo:function(){var e,t=this.range().skipHiddenCells(),n=t.sheet(),o=this._state.data,r=[];o.forEach(function(t){e=[],t.forEach(function(t){e.push(t.value)}),r.push(e)}),n.trigger("changing",{data:r,range:t,changeType:i.CLEAR})||this.setState(this._state)}}),e.spreadsheet.EditCommand=l.extend({init:function(e){e.property=e.property||"input",l.fn.init.call(this,e)},_setRange:function(e){l.prototype._setRange.apply(this,arguments),this._editRange=this.options.arrayFormula?e:e.sheet().activeCellSelection()},getState:function(){this._state=this.range().getState()},exec:function(){return this.range().sheet().withCultureDecimals(this._exec.bind(this))},undo:function(){var e=this._editRange,t=this._state;e.sheet().trigger("changing",{data:t.data[0][0].value,range:e,changeType:i.EDIT})||this.setState(this._state)},_exec:function(){var t,n,o=this.options.arrayFormula,r=this._editRange;if(!r.enable())return{reason:"error",type:"rangeDisabled"};if(!r.canEditArrayFormula())return{reason:"error",type:"intersectsArray"};if(t=this._value,this.getState(),!this.range().sheet().trigger("changing",{data:t,range:this._editRange,changeType:i.EDIT})){if("value"==this._property)return void r.value(t);try{if(r.link(null),""===t?r.value(null):(r.input(t,{arrayFormula:o}),/\n/.test(r.value())&&r.wrap(!0)),r._adjustRowHeight(),n=r._getValidationState())return this.rejectState(n)}catch(a){if(a instanceof e.spreadsheet.calc.ParseError)return{title:"Error in formula",body:a+"",reason:"error"};throw a}}}}),e.spreadsheet.InsertCommentCommand=l.extend({init:function(e){e.property="comment",l.fn.init.call(this,e)}}),e.spreadsheet.TextWrapCommand=l.extend({init:function(e){e.property="wrap",l.fn.init.call(this,e),this._value=e.value},getState:function(){var e={};this.range().forEachRow(function(t){var n=t.topLeft().row;e[n]=t.sheet().rowHeight(n)}),this._state=this.range().getState(this._property),this._rowHeight=e},undo:function(){var e,t=this.range().sheet(),n=this._rowHeight;this.range().setState(this._state);for(e in n)t.rowHeight(e,n[e])}}),e.spreadsheet.AdjustDecimalsCommand=o.extend({init:function(e){this._delta=e.value,e.property="format",o.fn.init.call(this,e)},exec:function(){var t=this.range().sheet(),n=this._delta,i=e.spreadsheet.formatting;this.getState(),t.batch(function(){this.range().forEachCell(function(e,o,r){var a,s=r.format;s||(a=r.value,"number"==typeof a&&/\./.test(a)&&(s="0."+(a+"").split(".")[1].replace(/\d/g,"0"))),(s||n>0)&&(s=i.adjustDecimals(s||"0",n),t.range(e,o).format(s))})}.bind(this))}}),e.spreadsheet.BorderChangeCommand=o.extend({init:function(e){e.property="border",o.fn.init.call(this,e),this._type=e.border,this._style=e.style},_batch:function(e){return this.range().sheet().batch(e,{})},exec:function(){var e=this;e.getState(),e._batch(function(){e[e._type](e._style)})},noBorders:function(){this.range().insideBorders(null),
this.outsideBorders(null)},allBorders:function(e){this.range().insideBorders(e),this.outsideBorders(e)},leftBorder:function(e){this.range().leftColumn().borderLeft(e)},rightBorder:function(e){this.range().rightColumn().borderRight(e)},topBorder:function(e){this.range().topRow().borderTop(e)},bottomBorder:function(e){this.range().bottomRow().borderBottom(e)},outsideBorders:function(e){var t=this.range();t.leftColumn().borderLeft(e),t.topRow().borderTop(e),t.rightColumn().borderRight(e),t.bottomRow().borderBottom(e)},insideBorders:function(e){this.range().insideBorders(e),this.outsideBorders(null)},insideHorizontalBorders:function(e){this.range().insideHorizontalBorders(e)},insideVerticalBorders:function(e){this.range().insideVerticalBorders(e)}}),e.spreadsheet.MergeCellCommand=o.extend({init:function(e){o.fn.init.call(this,e),this._type=e.value},exec:function(){this.getState(),this[this._type]()},activate:function(e){this.range().sheet().activeCell(e)},getState:function(){this._state=this.range().getState()},undo:function(){"unmerge"!==this._type&&(this.range().unmerge(),this.activate(this.range().topLeft())),this.range().setState(this._state)},cells:function(){var e=this.range(),t=e._ref;e.merge(),this.activate(t)},horizontally:function(){var e=this.range().topRow()._ref;this.range().forEachRow(function(e){e.merge()}),this.activate(e)},vertically:function(){var e=this.range().leftColumn()._ref;this.range().forEachColumn(function(e){e.merge()}),this.activate(e)},unmerge:function(){var e=this.range(),t=e._ref.topLeft;e.unmerge(),this.activate(t)}}),e.spreadsheet.FreezePanesCommand=o.extend({init:function(e){o.fn.init.call(this,e),this._type=e.value},exec:function(){this.getState(),this._topLeft=this.range().topLeft(),this[this._type]()},getState:function(){this._state=this.range().sheet().getState()},undo:function(){this.range().sheet().setState(this._state)},panes:function(){var e=this._topLeft,t=this.range().sheet();t.frozenColumns(e.col).frozenRows(e.row)},rows:function(){var e=this._topLeft,t=this.range().sheet();t.frozenRows(e.row)},columns:function(){var e=this._topLeft,t=this.range().sheet();t.frozenColumns(e.col)},unfreeze:function(){var e=this.range().sheet();e.frozenRows(0).frozenColumns(0)}}),e.spreadsheet.PasteCommand=o.extend({init:function(e){o.fn.init.call(this,e),this._clipboard=e.workbook.clipboard(),this._clipboard.parse(),this._event=e.event,this._clipboardContent=this._clipboard._content,this._clipboardPasteRef=this._clipboard.pasteRef(),this._sheet=this._workbook.activeSheet(),this._range=this._sheet.range(this._clipboard.pasteRef()),this._state=this._range.getState()},exec:function(){return this.range().sheet().withCultureDecimals(this._exec.bind(this))},undo:function(){var e=this._sheet,t=e.range(this._clipboardPasteRef);e.trigger("changing",{data:this._state.data,range:t,changeType:i.PASTE})||this.setState(this._state)},_exec:function(){var e,t=this._clipboard.canPaste();return t.canPaste?(e=this._sheet.range(this._clipboardPasteRef),this._workbook.trigger("paste",{range:e,clipboardContent:this._clipboardContent})||this._sheet.trigger("changing",{data:this._clipboardContent.data,range:e,changeType:i.PASTE})?void this._event.preventDefault():(this._sheet.range(this._clipboardPasteRef).setState(this._clipboardContent,this._clipboard),void e._adjustRowHeight())):t.menuInvoked?{reason:"error",type:"useKeyboard"}:t.pasteOnMerged?{reason:"error",type:"modifyMerged"}:t.overflow?{reason:"error",type:"overflow"}:t.pasteOnDisabled?(this._event.preventDefault(),{reason:"error",type:"cannotModifyDisabled"}):{reason:"error"}}}),e.spreadsheet.AdjustRowHeightCommand=o.extend({exec:function(){var e=this.options,t=this._workbook.activeSheet(),n=e.range||t.range(e.rowIndex);n._adjustRowHeight()}}),e.spreadsheet.ToolbarPasteCommand=o.extend({exec:function(){return e.support.clipboard.paste?(this._workbook._view.clipboard.focus().select(),void document.execCommand("paste")):{reason:"error",type:"useKeyboard"}}}),e.spreadsheet.CutCommand=o.extend({_eventType:"cut",init:function(e){o.fn.init.call(this,e),this._clipboard=e.workbook.clipboard(),this._event=e.event},exec:function(){var e,t,n,o=this._clipboard.canCopy(),r=[];if(o.canCopy){if(n=this._workbook.activeSheet().selection(),"cut"==this._eventType){if(!n.enable())return this._event.preventDefault(),{reason:"error",type:"cannotModifyDisabled"};this.getState()}if(this._workbook.trigger(this._eventType,{range:n}))this._event.preventDefault();else if("cut"==this._eventType){if(e=n.values(),e.forEach(function(e){t=[],e.forEach(function(){t.push({})}),r.push(t)}),n.sheet().trigger("changing",{data:r,range:n,changeType:i.CUT}))return;this._clipboard.cut()}else this._clipboard.copy()}else{if(o.menuInvoked)return{reason:"error",type:"useKeyboard"};if(o.multiSelection)return{reason:"error",type:"unsupportedSelection"}}},undo:function(){var e=this.range();e.sheet().trigger("changing",{data:this._state.data,range:e,changeType:i.CUT})||this.setState(this._state)}}),e.spreadsheet.CopyCommand=e.spreadsheet.CutCommand.extend({_eventType:"copy",undo:n.noop}),e.spreadsheet.ToolbarCopyCommand=o.extend({init:function(e){o.fn.init.call(this,e),this._clipboard=e.workbook.clipboard()},undo:n.noop,exec:function(){if(!e.support.clipboard.copy)return{reason:"error",type:"useKeyboard"};var n=this._workbook._view.clipboard;t(n.html()),n.trigger("copy")}}),e.spreadsheet.AutoFillCommand=o.extend({init:function(e){o.fn.init.call(this,e)},origin:function(e){this._origin=e},exec:function(){var t,n=this.range();if(!n.enable())return{reason:"error",type:"rangeDisabled"};if(n.intersectingArrayFormula())return{reason:"error",type:"intersectsArray"};this.getState();try{if(t=n._previewFillFrom(this._origin),n.sheet().trigger("changing",{data:t.props,range:t.dest,changeType:i.AUTO_FILL}))return;t.dest._properties(t.props,!0)}catch(o){if(o instanceof e.spreadsheet.Range.FillError)return{reason:"error",type:o.code};throw o}},undo:function(){var e=this.range(),t=this._state;e.sheet().trigger("changing",{data:t.data,range:e,changeType:i.AUTO_FILL})||this.setState(this._state)}}),e.spreadsheet.ToolbarCutCommand=o.extend({cannotUndo:!0,init:function(e){o.fn.init.call(this,e),this._clipboard=e.workbook.clipboard()},exec:function(){if(!e.support.clipboard.copy)return{reason:"error",type:"useKeyboard"};var n=this._workbook._view.clipboard;t(n.html()),n.trigger("cut")}}),e.spreadsheet.FilterCommand=o.extend({undo:function(){this.range().filter(this._state)},exec:function(){var e=this.range();this._state=e.hasFilter(),e.filter(!this._state)}}),e.spreadsheet.SortCommand=o.extend({undo:function(){var e=this.range().sheet();e.setState(this._state)},exec:function(){var e,t=this.range(),n=t.sheet(),i=n.activeCell(),o=this.options.sheet?i.topLeft.col:this.options.column||0,r="asc"===this.options.value;return this._state=n.getState(),this.options.sheet&&(t=this.expandRange()),(e=t.cantSort())?{reason:"error",type:e.code}:void t.sort({column:o,ascending:r})},expandRange:function(){var t=this.range().sheet();return new e.spreadsheet.Range(t._sheetRef,t)}}),d=e.spreadsheet.ApplyFilterCommand=o.extend({column:function(){return this.options.column||0},undo:function(){var e=this.range().sheet();e.clearFilter(this.column()),this._state.length&&this.range().filter(this._state)},getState:function(){var e=this.range().sheet(),t=e.filter();t&&(this._state=t.columns.filter(function(e){return e.index==this.column()}.bind(this)))},exec:function(){var t,n,i=this.range(),o=this.column(),r=i.sheet().filter(),a=!1;this.options.valueFilter?n={column:o,filter:new e.spreadsheet.ValueFilter(this.options.valueFilter)}:this.options.customFilter&&(n={column:o,filter:new e.spreadsheet.CustomFilter(this.options.customFilter)}),this.getState(),r&&r.ref.eq(i._ref)&&r.columns.length?(r.columns.forEach(function(e){e.index===o&&(a=!0)}),t=r.columns.map(function(e){return e.index===o?n:{column:e.index,filter:e.filter}}),a||t.push(n)):t=n,i.filter(t)}}),e.spreadsheet.ClearFilterCommand=d.extend({exec:function(){var e=this.range(),t=this.column();this.getState(),e.clearFilter(t)}}),e.spreadsheet.HideLineCommand=o.extend({init:function(e){o.fn.init.call(this,e),this.axis=e.axis},undo:function(){var e=this.range().sheet();e.setAxisState(this._state)},exec:function(){var e=this.range().sheet();this._state=e.getAxisState(),"row"==this.axis?e.axisManager().hideSelectedRows():e.axisManager().hideSelectedColumns()}}),e.spreadsheet.UnHideLineCommand=e.spreadsheet.HideLineCommand.extend({exec:function(){var e=this.range().sheet();this._state=e.getAxisState(),"row"==this.axis?e.axisManager().unhideSelectedRows():e.axisManager().unhideSelectedColumns()}}),c=o.extend({exec:function(){this._expandedRange=this._expand(this.range()),this._state=this._expandedRange.getState(),this._indexes=this._exec(this._expandedRange.sheet())},undo:function(){var e=this,t=e._expandedRange,n=t.sheet();n.batch(function(){e._indexes.forEach(function(t){e._undoOne(n,t),n._restoreModifiedFormulas(t.formulas)}),t.setState(e._state)},{layout:!0,recalc:!0,ref:t._ref})}}),e.spreadsheet.DeleteRowCommand=c.extend({_expand:function(e){return e.resize({left:-(1/0),right:+(1/0)})},_exec:function(e){return e.axisManager().deleteSelectedRows()},_undoOne:function(e,t){e.insertRow(t.index),e.rowHeight(t.index,t.height)}}),e.spreadsheet.DeleteColumnCommand=c.extend({_expand:function(e){return e.resize({top:-(1/0),bottom:+(1/0)})},_exec:function(e){return e.axisManager().deleteSelectedColumns()},_undoOne:function(e,t){e.insertColumn(t.index),e.columnWidth(t.index,t.width)}}),u=o.extend({init:function(e){o.fn.init.call(this,e),this._value=e.value},undo:function(){var e=this,t=e.range().sheet();t.batch(function(){for(var n=e._pos.count;--n>=0;)e._undoOne(t,e._pos.base)},{layout:!0,recalc:!0})}}),e.spreadsheet.AddColumnCommand=u.extend({exec:function(){var e=this._value,t=this.range().sheet(),n=t.axisManager().preventAddColumn();return n||"right"!==e||(n=t.axisManager().preventAddColumnAfterLast()),n?n:void(this._pos="left"===e?t.axisManager().addColumnLeft():t.axisManager().addColumnRight())},_undoOne:function(e,t){e.deleteColumn(t)}}),e.spreadsheet.AddRowCommand=u.extend({exec:function(){var e=this._value,t=this.range().sheet(),n=t.axisManager().preventAddRow();return n||"below"!==e||(n=t.axisManager().preventAddRowAfterLast()),n?n:void(this._pos="above"===e?t.axisManager().addRowAbove():t.axisManager().addRowBelow())},_undoOne:function(e,t){e.deleteRow(t)}}),e.spreadsheet.EditValidationCommand=o.extend({init:function(e){o.fn.init.call(this,e),this._value=e.value},exec:function(){var e=this,t=e.range().sheet();this.getState(),t.trigger("changing",{data:e._value,range:e.range(),changeType:i.VALIDATION})||t.withCultureDecimals(function(){e.range().validation(e._value)})},undo:function(){var e=this.range(),t=this._state;e.sheet().trigger("changing",{data:t.data[0][0].validation,range:e,changeType:i.VALIDATION})||this.setState(this._state)}}),e.spreadsheet.OpenCommand=o.extend({cannotUndo:!0,exec:function(){var e,t=this.options.file;return null===t.name.match(/.xlsx$/i)?{reason:"error",type:"openUnsupported"}:(e=this.options.workbook,void e.fromFile(this.options.file).then(function(){var t=e.excelImportErrors;t&&t.length&&e._view.openDialog("importError",{errors:t})}))}}),e.spreadsheet.SaveAsCommand=o.extend({cannotUndo:!0,exec:function(){var e=this.options.name+this.options.extension;".xlsx"===this.options.extension?this.options.workbook.saveAsExcel({fileName:e}):".pdf"===this.options.extension&&this.options.workbook.saveAsPDF(n.extend(this.options.pdf,{workbook:this.options.workbook,fileName:e}))}}),h=o.extend({init:function(e){o.fn.init.call(this,e),this._name=e.name,this._value=e.value},getState:function(){this._state=this._workbook.nameDefinition(this._name)},setState:function(){this._workbook.nameDefinition(this._name,this._state),this._workbook.trigger("change",{recalc:!0})}}),e.spreadsheet.DefineNameCommand=h.extend({exec:function(){this.getState();try{this._workbook.defineName(this._name,this._value),this._workbook.trigger("change",{recalc:!0})}catch(e){return{title:"Error",body:e+"",reason:"error"}}}}),e.spreadsheet.DeleteNameCommand=h.extend({exec:function(){this.getState(),this._workbook.undefineName(this._name),this._workbook.trigger("change",{recalc:!0})}}))}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/formulabar.min",["kendo.core.min"],e)}(function(){!function(e){var t,n,i;e.support.browser.msie&&e.support.browser.version<9||(t=e.jQuery,n={wrapper:"k-spreadsheet-formula-bar"},i=e.ui.Widget.extend({init:function(n,o){e.ui.Widget.call(this,n,o),n=this.element.addClass(i.classNames.wrapper),this.formulaInput=new e.spreadsheet.FormulaInput(t("<div/>").appendTo(n))},destroy:function(){this.formulaInput&&this.formulaInput.destroy(),this.formulaInput=null}}),e.spreadsheet.FormulaBar=i,t.extend(!0,i,{classNames:n}))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/formulainput.min",["kendo.core.min"],e)}(function(){!function(e,t){function n(e){return"("==e||"["==e||"{"==e}function i(e){return")"==e||"]"==e||"}"==e}function o(e,t){return"("==t?")"==e:"["==t?"]"==e:"{"==t&&"}"==e}function r(e,t){return e.begin<=t.begin&&e.end>=t.end}function a(t){return e.spreadsheet.calc.runtime.FUNCS[t.toLowerCase()]}function s(e,t){return!(!e||!t)&&("ref"==e.type&&"ref"==t.type?e.ref.eq(t.ref):e.value===t.value)}var l,d,c,u,h,p,f,m,g;e.support.browser.msie&&e.support.browser.version<9||(l=e.jQuery,d=e.ui.Widget,c=".kendoFormulaInput",u=e.keys,h={wrapper:"k-spreadsheet-formula-input",listWrapper:"k-spreadsheet-formula-list"},p=["font-family","font-size","font-stretch","font-style","font-weight","letter-spacing","text-transform","line-height"],f={27:"esc",37:"left",39:"right",35:"end",36:"home",32:"spacebar"},m=/(^_|[^a-z0-9]$)/i,g=d.extend({init:function(e,t){d.call(this,e,t),e=this.element,e.addClass(g.classNames.wrapper).attr("contenteditable",!0).attr("spellcheck",!1).css("white-space","pre"),this.options.autoScale&&e.on("input",this.scale.bind(this)),this._highlightedRefs=[],this._staticTokens=[],this._formulaSource(),this._formulaList(),this._popup(),this._tooltip(),e.on("keydown",this._keydown.bind(this)).on("keyup",this._keyup.bind(this)).on("blur",this._blur.bind(this)).on("input click",this._input.bind(this)).on("focus",this._focus.bind(this)).on("paste",this._paste.bind(this))},options:{name:"FormulaInput",autoScale:!1,filterOperator:"startswith",scalePadding:30,minLength:1},events:["keyup","focus"],enable:function(e){return void 0===e?"true"===this.element.attr("contenteditable"):(e?this.element.attr("contenteditable",e):this.element.removeAttr("contenteditable"),void this.element.toggleClass("k-state-disabled",!e))},getPos:function(){function e(e,t){try{!function o(n){if(n===e)throw t;if(1==n.nodeType)for(var i=n.firstChild;i;i=i.nextSibling)o(i);else 3==n.nodeType&&(t+=n.nodeValue.length)}(i)}catch(n){return n}}var n,i=this.element[0],o=t.getSelection(),r=e(o.focusNode,o.focusOffset),a=e(o.anchorNode,o.anchorOffset);if(null!=r&&null!=a)return r>a&&(n=r,r=a,a=n),{begin:r,end:a,collapsed:r==a}},setPos:function(e,n){function i(e,t){return e.startOffset!=t.startOffset||e.endOffset!=t.endOffset||e.startContainer!=t.endContainer||e.endContainer!=t.endContainer}function o(e,t){try{!function i(e){var n,o;if(3==e.nodeType){if(n=e.nodeValue.length,n>=t)throw e;t-=n}else if(1==e.nodeType)for(o=e.firstChild;o;o=o.nextSibling)i(o)}(e)}catch(n){return{node:n,pos:t}}}var r,a,s,l=this.element[0];e=o(l,e),n=null!=n?o(l,n):e,e&&n&&(r=document.createRange(),r.setStart(e.node,e.pos),r.setEnd(n.node,n.pos),a=t.getSelection(),s=a.getRangeAt(0),i(r,s)&&(a.removeAllRanges(),a.addRange(r)))},end:function(){this.setPos(this.length())},home:function(){this.setPos(0)},select:function(){this.setPos(0,this.length())},length:function(){return this.value().length},_formulaSource:function(){var t,n,i=[];for(n in e.spreadsheet.calc.runtime.FUNCS)m.test(n)||(t=n.toUpperCase(),i.push({value:t,text:t}));this.formulaSource=new e.data.DataSource({data:i})},_formulaList:function(){this.list=new e.ui.StaticList(l("<ul />").addClass(g.classNames.listWrapper).insertAfter(this.element),{autoBind:!1,selectable:!0,change:this._formulaListChange.bind(this),dataSource:this.formulaSource,dataValueField:"value",template:"#:data.value#"}),this.list.element.on("mousedown",function(e){e.preventDefault()})},_formulaListChange:function(){var e,t,n,i=this._tokenContext();i&&!this._mute&&(e=i.token,t=this.list.value()[0],n={replace:!0,token:e,end:e.end},i.nextToken&&"("==i.nextToken.value||(t+="("),this._replaceAt(n,t),this.popup.close())},_popup:function(){this.popup=new e.ui.Popup(this.list.element,{anchor:this.element})},_blur:function(){this.popup.close(),clearTimeout(this._focusId),this.trigger("blur")},_isFormula:function(){return/^=/.test(this.value())},_keydown:function(e){var t=e.keyCode,n=this;f[t]?(n.popup.close(),n._navigated=!0):n._move(t)&&(n._navigated=!0,e.preventDefault()),n._keyDownTimeout=setTimeout(n._syntaxHighlight.bind(n))},_keyup:function(){var e,t=this.popup;this._isFormula()&&!this._navigated&&(e=((this._tokenContext()||{}).token||{}).value,this.filter(e),e&&this.formulaSource.view().length?(t[t.visible()?"position":"open"](),this.list.focusFirst()):t.close()),this._navigated=!1,this._syntaxHighlight(),this.trigger("keyup")},_input:function(){this._syntaxHighlight()},_focus:function(){setTimeout(this._sync.bind(this)),this._focusTimeout=setTimeout(this._syntaxHighlight.bind(this)),this.trigger("focus")},_paste:function(n){var i,o,r;n.preventDefault(),i=this.getPos(),o=e.support.browser.msie?t.clipboardData.getData("Text"):n.originalEvent.clipboardData.getData("text/plain"),r=this.value(),r=r.substr(0,i.begin)+o+r.substr(i.end),this.value(r),this.setPos(i.begin+o.length),this.scale()},_move:function(e){var t=this.list,n=this.popup;if(n.visible()){if(e===u.DOWN)return t.focusNext(),t.focus()||t.focusFirst(),!0;if(e===u.UP)return t.focusPrev(),t.focus()||t.focusLast(),!0;if(e===u.ENTER)return t.select(t.focus()),n.close(),!0;if(e===u.TAB)return t.select(t.focus()),n.close(),!0;if(e===u.PAGEUP)return t.focusFirst(),!0;if(e===u.PAGEDOWN)return t.focusLast(),!0}return e===u.ENTER||e===u.TAB},_tokenContext:function(){var t,n,i,o=this.getPos(),a=this.value();if(!a||!o||!o.collapsed)return null;for(t=e.spreadsheet.calc.tokenize(a,this.row(),this.col()),i=0;i<t.length;++i)if(n=t[i],r(n,o)&&/^(?:str|sym|func)$/.test(n.type))return{token:n,nextToken:t[i+1]};return null},_sync:function(){this._editorToSync&&this.isActive()&&this._editorToSync.value(this.value())},_textContainer:function(){var t=e.getComputedStyles(this.element[0],p);t.position="absolute",t.visibility="hidden",t.whiteSpace="pre",t.top=-3333,t.left=-3333,this._span=l("<span style='white-space: pre'/>").css(t).insertAfter(this.element)},_tooltip:function(){this._cellTooltip=l('<div class="k-widget k-tooltip" style="position:absolute; display:none">A1</div>').insertAfter(this.element)},tooltip:function(e){this._cellTooltip.text(e)},toggleTooltip:function(e){this._cellTooltip.toggle(e)},isActive:function(){return this.element[0]===e._activeElement()},filter:function(e){!e||e.length<this.options.minLength||(this._mute=!0,this.list.select(-1),this._mute=!1,this.formulaSource.filter({field:this.list.options.dataValueField,operator:this.options.filterOperator,value:e}))},hide:function(){this.enable(!1),this.element.hide(),this._cellTooltip.hide()},show:function(){this.enable(!0),this.element.show()},row:function(){if(this.activeCell)return this.activeCell.row},col:function(){if(this.activeCell)return this.activeCell.col},position:function(e){e&&(this.show(),this.element.css({top:e.top+1+"px",left:e.left+1+"px"}),this._cellTooltip.css({top:e.top-this._cellTooltip.height()-10+"px",left:e.left}))},resize:function(e){e&&this.element.css({width:e.width-1,height:e.height-1})},canInsertRef:function(e){var t,n=this._canInsertRef(e),i=n&&n.token;if(i)for(t=0;t<this._staticTokens.length;t++)if(s(i,this._staticTokens[t]))return null;return n},_canInsertRef:function(t){function i(e){return e.begin>l.begin}function o(e){if(e){if(/^(?:num|str|bool|sym|ref)$/.test(e.type))return{replace:!0,token:e,end:e.end};if(/^(?:op|punc|startexp)$/.test(e.type))return e.end==l.end?a(e,d[u+1]):a(d[u-1],e)}}function a(e,t){if(null==e)return null;if(null==t)return/^(?:op|startexp)$/.test(e.type)||n(e.value)?{token:e,end:l.end}:null;if(s){if("op"==e.type&&/^(?:punc|op)$/.test(t.type))return{token:e,end:l.end}}else{if("startexp"==e.type)return{token:e,end:l.end};if(/^(?:op|punc)$/.test(e.type)&&/^[,;({]$/.test(e.value))return{token:e,end:l.end};if(/^(?:ref|sym)/.test(e.type))return{token:e,replace:!0,end:e.end};if(/^(?:ref|sym)/.test(t.type))return{token:t,replace:!0,end:t.end}}return!1}var s,l,d,c,u;if(this.popup.visible())return null;if(s=t,l=this.getPos(),l&&this._isFormula()){if(0===l.begin)return null;for(d=e.spreadsheet.calc.tokenize(this.value(),this.row(),this.col()),u=0;u<d.length;++u){if(c=d[u],r(c,l))return o(c);if(i(c))return a(d[u-1],c)}return a(c,null)}return null},refAtPoint:function(e){var t,n=this._canInsertRef();n&&(t=e.selection()._ref.simplify().clone().relative(0,0,3),e!==this.activeSheet&&(t=t.setSheet(e.name(),!0)),this._replaceAt(n,t.print(0,0)))},_replaceAt:function(e,t){var n,i=this.value(),o=e.token,r=i.substr(e.end);i=i.substr(0,e.replace?o.begin:e.end)+t,n=i.length,i+=r,this._value(i),this.setPos(n),this.scale(),this._syntaxHighlight()},syncWith:function(t){var n,i=this,o="input"+c,r=i._sync.bind(i);e.support.browser.msie&&(o="keydown"+c,n=function(){setTimeout(r)}),i._editorToSync=t,i.element.off(o).on(o,n||r)},scale:function(){var e,t,n=this.element;this._span||this._textContainer(),this._span.html(n.html()),e=this._span.width()+this.options.scalePadding,t=this._span.height(),e>n.width()&&n.width(e),t>n.height()&&n.height(t),this._sync()},_value:function(e){this.element.text(e)},value:function(e){if(void 0===e){var t=this.element[0].innerText;return t.replace(/\n$/,"")}this._value(e),this._syntaxHighlight()},highlightedRefs:function(){return this._highlightedRefs.slice()},_syntaxHighlight:function(){var t,s=this.getPos(),l=this.value(),d=e.spreadsheet.Pane.classNames.series,c=[],u=0,h=[],p=[];if(!s||s.collapsed){if(!/^=/.test(l))return(this._staticTokens.length||this._highlightedRefs.length)&&(this._staticTokens=[],this._highlightedRefs=[],this.element.text(l)),void(this.popup&&this.popup.close());p=e.spreadsheet.calc.tokenize(l,this.row(),this.col()),p.forEach(function(e){if(e.active=!1,e.cls=["k-syntax-"+e.type],"ref"==e.type&&(e.colorClass=d[u++%d.length],e.cls.push(e.colorClass),c.push(e)),s&&"punc"==e.type)if(n(e.value))h.unshift(e);else if(i(e.value)){var l=h.shift();l?o(e.value,l.value)?(r(e,s)||r(l,s))&&(e.cls.push("k-syntax-paren-match"),l.cls.push("k-syntax-paren-match")):(e.cls.push("k-syntax-error"),l.cls.push("k-syntax-error")):e.cls.push("k-syntax-error")}s&&r(e,s)&&(e.cls.push("k-syntax-at-point"),e.active=!0,t=e),"func"!=e.type||a(e.value)||s&&r(e,s)||e.cls.push("k-syntax-error")}),p.reverse().forEach(function(t){var n=t.begin,i=t.end,o=e.htmlEncode(l.substring(n,i));l=l.substr(0,n)+"<span class='"+t.cls.join(" ")+"'>"+o+"</span>"+l.substr(i)}),this.element.html(l),s&&this.setPos(s.begin,s.end),t&&/^(?:startexp|op|punc)$/.test(t.type)&&this._setStaticTokens(p),this._highlightedRefs=c}},_setStaticTokens:function(e){var t,n;for(this._staticTokens=[],t=0;t<e.length;t++)n=e[t],/^(?:num|str|bool|sym|ref)$/.test(n.type)&&this._staticTokens.push(n)},destroy:function(){this._editorToSync=null,this.element.off(c),clearTimeout(this._focusTimeout),clearTimeout(this._keyDownTimeout),this._cellTooltip=null,this._span=null,this.popup.destroy(),this.popup=null,d.fn.destroy.call(this)},insertNewline:function(){var e=this.value(),t=this.getPos(),n=t.end==e.length;e=e.substr(0,t.begin)+(n?"\n\n":"\n"+e.substr(t.end)),this.value(e),this.setPos(t.begin+1)}}),e.spreadsheet.FormulaInput=g,l.extend(!0,g,{classNames:h}))}(kendo,window)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/eventlistener.min",["kendo.core.min"],e)}(function(){!function(e){var t,n,i,o,r,a;e.support.browser.msie&&e.support.browser.version<9||(t=e.jQuery,n={8:"backspace",9:"tab",13:"enter",27:"esc",37:"left",38:"up",39:"right",40:"down",35:"end",36:"home",32:"spacebar",33:"pageup",34:"pagedown",46:"delete",113:":edit"},i=navigator.platform.toUpperCase().indexOf("MAC")>=0,o=function(e){return e>47&&e<58||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223||229===e},r=function(e){var t=e.keyCode,i=n[t];return!i&&o(t)&&(i=":alphanum"),!i&&e.key&&1==e.key.length&&(i=":alphanum"),i},a=e.Class.extend({init:function(e,n,i){if(this._handlers={},this.target=e,this._observer=n||window,this.keyDownProxy=this.keyDown.bind(this),this.mouseProxy=this.mouse.bind(this),this.touchProxy=this.touch.bind(this),this.threshold=5,this._pressLocation=null,e.on("keydown",this.keyDownProxy),e.on("contextmenu mousedown cut copy paste scroll wheel click dblclick focus",this.mouseProxy),e.on("touchmove touchend",this.touchProxy),t(document.documentElement).on("mousemove mouseup",this.mouseProxy),t(document.documentElement).on("touchmove touchend",this.touchProxy),i)for(var o in i)this.on(o,i[o])},keyDown:function(e){this.handleEvent(e,r(e.originalEvent))},touch:function(e){this.handleEvent(e,e.type)},mouse:function(e){var t,n,i,o,r;e.which?t=3==e.which:e.button&&(t=2==e.button),n=e.type,"mousedown"===n&&(t?n="rightmousedown":this._pressLocation={x:e.pageX,y:e.pageY}),"mouseup"===n&&(t||(this._pressLocation=null)),"mousemove"===n&&this._pressLocation&&(i=this._pressLocation.x-e.pageX,o=this._pressLocation.y-e.pageY,r=Math.sqrt(i*i+o*o),r>this.threshold&&(n="mousedrag")),this.handleEvent(e,n)},handleEvent:function(e,t){var n,o,r="";e.mod=i?e.metaKey:e.ctrlKey&&!e.altKey,e.altKey&&(r+="alt+"),e.shiftKey&&(r+="shift+"),e.ctrlKey&&(r+="ctrl+"),r+=t,n=this._handlers["*+"+t],n&&n.call(this._observer,e,r),o=this._handlers[r],o&&o.call(this._observer,e,r)},on:function(e,t){var n=this._handlers;"string"==typeof t&&(t=this._observer[t]),"string"==typeof e&&(e=e.split(",")),e.forEach(function(e){n[e]=t})},destroy:function(){this.target.off("keydown",this.keyDownProxy),this.target.off("keydown",this.mouseProxy),t(document.documentElement).off("mousemove mouseup",this.mouseProxy)}}),e.spreadsheet.EventListener=a)}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/rangelist.min",["kendo.core.min"],e)}(function(){!function(e){function t(e){if(e.left.level===e.level){var t=e;e=e.left,t.left=e.right,e.right=t}return e}function n(e){if(e.right.right.level===e.level){var t=e;e=e.right,t.right=e.left,e.left=t,e.level+=1}return e}function i(e,o){return e===d?new l(1,o,d,d):(e.value.start>o.start?e.left=i(e.left,o):e.right=i(e.right,o),n(t(e)))}function o(e,i){var r,a;if(e===d)return e;if(r=e.value.start-i.start,0===r)if(e.left!==d&&e.right!==d){for(a=e.left;a.right!==d;)a=a.right;e.value=a.value,e.left=o(e.left,e.value)}else e=e.left===d?e.right:e.left;else r>0?e.left=o(e.left,i):e.right=o(e.right,i);return(e.left.level<e.level-1||e.right.level<e.level-1)&&(e.level-=1,e.right.level>e.level&&(e.right.level=e.level),e=t(e),e.right=t(e.right),e.right.right=t(e.right.right),e=n(e),e.right=n(e.right)),e}function r(e,t){e!==d&&(r(e.left,t),t.push(e.value),r(e.right,t))}function a(e,t,n){if(e!==d){var i=e.value;t.start<i.start&&a(e.left,t,n),i.intersects(t)&&n.push(i),t.end>i.end&&a(e.right,t,n)}}function s(e,t,n){t!==d&&(s(e,t.left,n),e.insert(n(t.value)),s(e,t.right,n))}var l,d,c,u,h,p,f;e.support.browser.msie&&e.support.browser.version<9||(l=e.Class.extend({init:function(e,t,n,i){this.level=e,this.value=t,this.left=n,this.right=i}}),d=new function(){this.left=this,this.right=this,this.level=0},c=e.Class.extend({init:function(e,t,n){this.start=e,this.end=t,this.value=n},intersects:function(e){return e.start<=this.end&&e.end>=this.start},clone:function(){return new c(this.start,this.end,this.value)}}),u=e.Class.extend({init:function(){this.root=d},insert:function(e){this.root=i(this.root,e)},remove:function(e){this.root=o(this.root,e)},findrange:function(e){for(var t=this.root;t!=d;)if(e<t.value.start)t=t.left;else{if(!(e>t.value.end))return t.value;t=t.right}return null},values:function(){var e=[];return r(this.root,e),e},intersecting:function(e,t){var n=[];return a(this.root,new c(e,t),n),n},map:function(e){var t=new u;return s(t,this.root,e),t},clone:function(){return this.map(function(e){return e.clone()})},first:function(){for(var e=this.root;e.left!=d;)e=e.left;return e},last:function(){for(var e=this.root;e.right!=d;)e=e.right;return e}}),h=e.Class.extend({init:function(e,t,n){void 0===t?this.tree=e:(this.tree=new u,this.tree.insert(new c(e,t,n)))},values:function(){return this.tree.values()},map:function(e){return new h(this.tree.map(e))},intersecting:function(e,t){return this.tree.intersecting(e,t)},first:function(){return this.tree.first().value},last:function(){return this.tree.last().value},insert:function(e,t,n){return this.tree.insert(new c(e,t,n))},value:function(e,t,n){var i,o,r,a,s,l,d,c,u;if(void 0===n)return void 0===t&&(t=e),this.intersecting(e,t)[0].value;if(i=this.tree.intersecting(e-1,t+1),i.length)for(o=i[0],r=i[i.length-1],o.end<e&&(o.value===n?e=o.start:i.shift()),r.start>t&&(r.value===n?t=r.end:i.pop()),a=0,s=i.length;a<s;a++)l=i[a],d=l.value,c=l.start,u=l.end,this.tree.remove(l),c<e&&(d!==n?this.insert(c,e-1,d):e=c),u>t&&(d!==n?this.insert(t+1,u,d):t=u);this.insert(e,t,n)},expandedValues:function(e,t){var n,i=this.intersecting(e,t),o=[],r=0;for(n=e;n<=t;n++)i[r].end<n&&r++,o.push({index:n-e,value:i[r].value});return o},sortedIndices:function(e,t,n,i){var o=this.expandedValues(e,t),r=function(e,t){return e.value===t.value?e.index-t.index:n(e.value,t.value)};return i&&(r=function(e,t){var o=i[e.index],r=i[t.index];return o.value===r.value?n(e.value,t.value):e.index-t.index}),o.sort(r),o},sort:function(e,t,n){var i,o,r;if(1!==this.intersecting(e,t).length)for(i=this.expandedValues(e,t),o=0,r=n.length;o<r;o++)this.value(o+e,o+e,i[n[o].index].value)},copy:function(e,t,n){var i,o,r,a,s,l=this.intersecting(e,t),d=n;for(o=0,r=l.length;o<r;o++)a=l[o].start,a<e&&(a=e),s=l[o].end,s>t&&(s=t),i=d+(s-a),this.value(d,i,l[o].value),d=++i},iterator:function(e,t){return new p(e,t,this.intersecting(e,t))},getState:function(){return this.tree.clone()},setState:function(e){this.tree=e.clone()},toJSON:function(){return this.values()},fromJSON:function(e){e.forEach(function(e){this.value(e.start,e.end,e.value)},this)}}),p=e.Class.extend({init:function(e,t,n){this.start=e,this.end=t,this.index=0,this.ranges=n},unique:function(){return this.ranges.map(function(e){return e.value})},at:function(e){for(;this.ranges[this.index]&&this.ranges[this.index].end<e;)this.index++;return this.ranges[this.index]&&this.ranges[this.index].value},forEach:function(e){for(var t=this.start;t<=this.end;t++)e(this.at(t),t);this.index=0}}),f=h.extend({init:function(e,t,n){this.tree=new u,this.range=new c(e,t,n)},intersecting:function(e,t){var n,i,o,r=this.tree.intersecting(e,t),a=[];if(!r.length)return[this.range];for(i=0,o=r.length;i<o;i++)n=r[i],n.start>e&&a.push(new c(e,n.start-1,this.range.value)),a.push(n),e=n.end+1;return n.end<t&&a.push(new c(n.end+1,t,this.range.value)),a},insert:function(e,t,n){n!==this.range.value&&this.tree.insert(new c(e,t,n))},lastRangeStart:function(){var e=this.tree.root;if(e===d)return this.range.start;for(;e.right!==d;)e=e.right;return e.value.end+1}}),e.spreadsheet.RangeTree=u,e.spreadsheet.RangeList=h,e.spreadsheet.SparseRangeList=f,e.spreadsheet.ValueRange=c)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/propertybag.min",["kendo.core.min"],e);
}(function(){!function(e){function t(e){return e.replace(/M/g,"m").replace(/'/g,'"').replace(/tt/,"am/pm")}function n(e){return e=e.clone(),e.value=e.value.deepClone(),e}function i(){var e=this.map(n);return e.clone=i,e}var o,r,a;e.support.browser.msie&&e.support.browser.version<9||(o=e.Class.extend({init:function(e){this.list=e},get:function(e){return this.parse(this.list.value(e,e))},set:function(e,t,n){void 0===n&&(n=t,t=e),this.list.value(e,t,n)},parse:function(e){return e},copy:function(e,t,n){this.list.copy(e,t,n)},iterator:function(e,t){return this.list.iterator(e,t)}}),r=o.extend({set:function(e,t,n){this.list.value(e,t,JSON.stringify(n))},parse:function(e){return JSON.parse(e)}}),a=o.extend({init:function(e,t){o.prototype.init.call(this,e),this.formats=t},set:function(n,i,o){o instanceof Date?(o=e.spreadsheet.dateToNumber(o),this.formats.value(n,i)||this.formats.value(n,i,t(e.culture().calendar.patterns.d))):"number"==typeof o&&(o=e.spreadsheet.calc.runtime.limitPrecision(o)),this.list.value(n,i,o)}}),e.spreadsheet.PropertyBag=e.Class.extend({specs:[{property:o,name:"format",value:null,sortable:!0,serializable:!0},{property:a,name:"value",value:null,sortable:!0,serializable:!0,depends:"format"},{property:o,name:"formula",value:null,sortable:!0,serializable:!0},{property:o,name:"background",value:null,sortable:!0,serializable:!0},{property:r,name:"vBorders",value:null,sortable:!1,serializable:!1},{property:r,name:"hBorders",value:null,sortable:!1,serializable:!1},{property:o,name:"color",value:null,sortable:!0,serializable:!0},{property:o,name:"fontFamily",value:null,sortable:!0,serializable:!0},{property:o,name:"underline",value:null,sortable:!0,serializable:!0},{property:o,name:"fontSize",value:null,sortable:!0,serializable:!0},{property:o,name:"italic",value:null,sortable:!0,serializable:!0},{property:o,name:"bold",value:null,sortable:!0,serializable:!0},{property:o,name:"textAlign",value:null,sortable:!0,serializable:!0},{property:o,name:"indent",value:null,sortable:!0,serializable:!0},{property:o,name:"verticalAlign",value:null,sortable:!0,serializable:!0},{property:o,name:"wrap",value:null,sortable:!0,serializable:!0},{property:o,name:"validation",value:null,sortable:!1,serializable:!0},{property:o,name:"enable",value:null,sortable:!1,serializable:!0},{property:o,name:"link",value:null,sortable:!0,serializable:!0},{property:o,name:"editor",value:null,sortable:!0,serializable:!0},{property:o,name:"comment",value:null,sortable:!0,serializable:!0},{property:o,name:"html",value:null,sortable:!0,serializable:!0}],init:function(t,n,o){o=o||{};var r=t*n-1;this.rowCount=t,this.columnCount=n,this.cellCount=r,this.properties={},this.lists={},this.specs.forEach(function(t){var n,i=t.name,a=o[i];void 0===a&&(a=t.value),this.lists[i]=new e.spreadsheet.SparseRangeList(0,r,a),n=this.properties[i]=new t.property(this.lists[i],this.lists[t.depends]),n.spec=t},this),this.lists.formula.tree.clone=i,this.lists.validation.tree.clone=i},getState:function(){var e={};return this.specs.forEach(function(t){e[t.name]=this.lists[t.name].getState()},this),e},setState:function(e){this.specs.forEach(function(t){this.lists[t.name].setState(e[t.name])},this)},get:function(e,t){if(void 0===t)return this.lists[e];switch(e){case"borderRight":t+=this.rowCount;case"borderLeft":e="vBorders";break;case"borderBottom":t++;case"borderTop":e="hBorders"}return t>this.cellCount?null:this.properties[e].get(t)},set:function(e,t,n,i){switch(e){case"borderRight":t+=this.rowCount,n+=this.rowCount;case"borderLeft":e="vBorders";break;case"borderBottom":t++,n++;case"borderTop":e="hBorders"}t<=n&&n<=this.cellCount&&this.properties[e].set(t,n,i)},fromJSON:function(e,t){var n,i;for(n=0;n<this.specs.length;n++)i=this.specs[n],i.serializable&&void 0!==t[i.name]&&this.set(i.name,e,e,t[i.name],!1);["borderLeft","borderRight","borderTop","borderBottom"].forEach(function(n){void 0!==t[n]&&this.set(n,e,e,t[n])},this)},copy:function(e,t,n){this.specs.forEach(function(i){this.properties[i.name].copy(e,t,n)},this)},iterator:function(e,t,n){var i=this.properties[e],o=i.iterator(t,n),r=o.at,a=this.cellCount;return o.at=function(e){return e>a?null:i.parse(r.call(o,e))},o.name=e,o.value=i.spec.value,o},sortable:function(){return this.specs.filter(function(e){return e.sortable}).map(function(e){return this.lists[e.name]},this)},iterators:function(e,t){return this.specs.reduce(function(n,i){return i.serializable&&n.push(this.iterator(i.name,e,t)),n}.bind(this),[])},forEach:function(e,t,n){function i(e,t,n){var i=t.at(n);i!==t.value&&(o[e]=i)}var o,r,a,s,l,d=this.iterators(e,t),c=this.iterator("hBorders",e,t+1),u=this.iterator("vBorders",e,t),h=this.iterator("vBorders",e+this.rowCount,t+this.rowCount);for(r=e;r<=t;r++){for(o={},a=0;a<d.length;a++)s=d[a],l=s.at(r),l!==s.value&&(o[s.name]=l);i("borderLeft",u,r),i("borderRight",h,r+this.rowCount),i("borderTop",c,r),(r+1)%this.rowCount&&i("borderBottom",c,r+1),n(o)}},forEachProperty:function(e){for(var t in this.properties)e(this.properties[t])}}),e.spreadsheet.ALL_PROPERTIES=e.spreadsheet.PropertyBag.prototype.specs.reduce(function(e,t){return t.serializable&&e.push(t.name),e},["borderTop","borderRight","borderBottom","borderLeft"]))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/references.min",["kendo.core.min"],e)}(function(){"use strict";function e(t){var n=Math.floor(t/26)-1;return(n>=0?e(n):"")+String.fromCharCode(65+t%26)}function t(e){return/^[a-z_][a-z0-9_]*$/i.test(e)?e:"'"+e.replace(/\x27/g,"\\'")+"'"}function n(n,i,o,r){var a="";return++i,isFinite(i)?null==r||2&r||(i="$"+i):i="",isFinite(o)?(a=e(o),null==r||1&r||(a="$"+a)):o="",n?t(n)+"!"+a+i:a+i}var i,o,r,a,s,l,d,c;kendo.support.browser.msie&&kendo.support.browser.version<9||(i=kendo.spreadsheet,o=kendo.Class,r=o.extend({type:"ref",sheet:"",clone:function(){return this},hasSheet:function(){return this._hasSheet},simplify:function(){return this},setSheet:function(e,t){return this.sheet=e,null!=t&&(this._hasSheet=t),this},absolute:function(){return this},relative:function(){return this},adjust:function(){return this},toString:function(){return this.relative(0,0,3,3).print(0,0)},forEach:function(e,t){e.call(t,this)},map:function(e,t){return e.call(t,this)},intersects:function(e){return this.intersect(e)!==a},isCell:function(){return!1},toRow:function(){return this},toColumn:function(){return this},first:function(){return this},lastRange:function(){return this},size:function(){return 1},rangeAt:function(){return this},nextRangeIndex:function(){return 0},previousRangeIndex:function(){return 0},eq:function(e){var t,n,i,o,r=this,s=e;if(r===a||s===a)return r===s;if((s instanceof l||s instanceof d&&!(r instanceof l))&&(r=e,s=this),r instanceof l)return s=s.simplify(),s instanceof l&&r.row==s.row&&r.col==s.col&&r.sheet==s.sheet;if(r instanceof d){if(s instanceof d)return s.topLeft.eq(r.topLeft)&&s.bottomRight.eq(r.bottomRight);if(s instanceof c)return s.single()&&r.eq(s.refs[0])}else if(r instanceof c&&s instanceof c){if(t=r.refs,n=s.refs,t.length!=n.length)return!1;for(i=0,o=t.length;i<o;i++)if(!t[i].eq(n[i]))return!1;return!0}return r===s},concat:function(e){return new c([this,e])},replaceAt:function(e,t){return t},forEachColumnIndex:function(e){this.forEachAxisIndex("col",e)},forEachRowIndex:function(e){this.forEachAxisIndex("row",e)},forEachAxisIndex:function(e,t){var n=[],i="row"===e?"forEachRow":"forEachColumn";this[i](function(t){var i=t.first()[e];n.indexOf(i)===-1&&n.push(i)}),n.sort(function(e,t){return e>t?1:e<t?-1:0}).forEach(t)},valid:function(){return!1},renameSheet:function(e,t){if(this.sheet&&this.sheet.toLowerCase()==e.toLowerCase())return this.sheet=t,!0}}),r.display=n,a=new(r.extend({init:function(){},print:function(){return"#NULL!"},eq:function(e){return e===this},forEach:function(){}})),s=r.extend({ref:"name",init:function(e){this.name=e},clone:function(){return new s(this.name).setSheet(this.sheet,this.hasSheet())},print:function(){var e=t(this.name);return this.hasSheet()&&(e=t(this.sheet)+"!"+e),e}}),l=r.extend({ref:"cell",init:function(e,t,n){this.row=e,this.col=t,this.rel=n||0},clone:function(){return new l(this.row,this.col,this.rel).setSheet(this.sheet,this.hasSheet())},intersect:function(e){return e instanceof l?this.eq(e)?this:a:e.intersect(this)},print:function(e,i,o){var r,a,s=this.col,l=this.row,d=this.rel;return null==e&&d?(a=this.hasSheet()?t(this.sheet)+"!":"",s=isFinite(s)?1&d?"C["+s+"]":"C"+(s+1):"",l=isFinite(l)?2&d?"R["+l+"]":"R"+(l+1):"",a+l+s):(r=this.absolute(e,i),o?(l=r.row%1048576,s=r.col%16384,l<0&&(l+=1048576),s<0&&(s+=16384),n(this._hasSheet&&this.sheet,l,s,d)):r.valid()?n(this._hasSheet&&this.sheet,r.row,r.col,d):"#REF!")},absolute:function(e,t){var n=this.clone();return n.rel&!1?n:(1&n.rel&&(n.col=(n.col+t)%16384),2&n.rel&&(n.row=(n.row+e)%1048576),n.rel=0,n)},toRangeRef:function(){return new d(this,this)},relative:function(e,t,n){var i,o;return null==n&&(n=this.rel),i=2&n?this.row-e:this.row,o=1&n?this.col-t:this.col,new l(i,o,n).setSheet(this.sheet,this.hasSheet())},height:function(){return 1},width:function(){return 1},toString:function(){return n(null,this.row,this.col,3)},isCell:function(){return!0},leftColumn:function(){return this},rightColumn:function(){return this},topRow:function(){return this},bottomRow:function(){return this},forEachRow:function(e){e(this.toRangeRef())},forEachColumn:function(e){e(this.toRangeRef())},adjust:function(e,t,n,i,o,r,s){var l=this.absolute(e,t);if(o){if(l.row>=r){if(s<0&&l.row<r-s)return a;l.row+=s}}else if(l.col>=r){if(s<0&&l.col<r-s)return a;l.col+=s}return null!=n&&null!=i&&(l=l.relative(n,i,this.rel)),l},valid:function(){if(this.rel)throw Error("valid() called on relative reference");var e=this.col,t=this.row;return!(isFinite(e)&&e<0||isFinite(t)&&t<0)}}),d=r.extend({ref:"range",init:function(e,t){e._hasSheet&&t._hasSheet&&e.sheet.toLowerCase()!=t.sheet.toLowerCase()&&(this.endSheet=t.sheet),this.topLeft=new l(e.row,e.col,e.rel),this.bottomRight=new l(t.row,t.col,t.rel),this.normalize()},clone:function(){return new d(this.topLeft.clone(),this.bottomRight.clone()).setSheet(this.sheet,this.hasSheet())},_containsRange:function(e){return this._containsCell(e.topLeft)&&this._containsCell(e.bottomRight)},_containsCell:function(e){return e.sheet==this.sheet&&e.row>=this.topLeft.row&&e.col>=this.topLeft.col&&e.row<=this.bottomRight.row&&e.col<=this.bottomRight.col},contains:function(e){if(e instanceof Array){var t=this;return e.some(function(e){return t.contains(e)})}return e instanceof l?this._containsCell(e):e instanceof d&&this._containsRange(e)},_intersectRange:function(e){var t,n,i,o,r,s,c,u;return this.sheet!=e.sheet?a:(t=this.topLeft.col,n=this.topLeft.row,i=this.bottomRight.col,o=this.bottomRight.row,r=e.topLeft.col,s=e.topLeft.row,c=e.bottomRight.col,u=e.bottomRight.row,t<=c&&r<=i&&n<=u&&s<=o?new d(new l(Math.max(n,s),Math.max(t,r)),new l(Math.min(o,u),Math.min(i,c))).setSheet(this.sheet,this.hasSheet()):a)},intersect:function(e){return e instanceof l?this._containsCell(e)?e:a:e instanceof d?this._intersectRange(e).simplify():e instanceof c?e.intersect(this):a},simplify:function(){return this.isCell()?new l(this.topLeft.row,this.topLeft.col,this.topLeft.rel).setSheet(this.sheet,this.hasSheet()):this},normalize:function(){var e,t=this.topLeft,n=this.bottomRight,i=t.row,o=t.col,r=n.row,a=n.col,s=2&t.rel,d=1&t.rel,c=2&n.rel,u=1&n.rel,h=!1;return s===c&&d===u&&(i>r&&(h=!0,e=i,i=r,r=e,e=s,s=c,c=e),o>a&&(h=!0,e=o,o=a,a=e,e=d,d=u,u=e),h&&(this.topLeft=new l(i,o,d|s),this.bottomRight=new l(r,a,u|c))),this},print:function(e,n,i){if(i||this.absolute(e,n).valid()){var o=this.topLeft.print(e,n,i)+":"+this.bottomRight.print(e,n,i);return this.hasSheet()&&(o=t(this.sheet)+(this.endSheet?":"+t(this.endSheet):"")+"!"+o),o}return"#REF!"},absolute:function(e,t){return new d(this.topLeft.absolute(e,t),this.bottomRight.absolute(e,t)).setSheet(this.sheet,this.hasSheet())},relative:function(e,t,n,i){return null==i&&(i=n),new d(this.topLeft.relative(e,t,n),this.bottomRight.relative(e,t,i)).setSheet(this.sheet,this.hasSheet())},height:function(){if(this.topLeft.rel!=this.bottomRight.rel)throw Error("Mixed relative/absolute references");return this.bottomRight.row-this.topLeft.row+1},width:function(){if(this.topLeft.rel!=this.bottomRight.rel)throw Error("Mixed relative/absolute references");return this.bottomRight.col-this.topLeft.col+1},collapse:function(){return this.topLeft.toRangeRef()},leftColumn:function(){return new d(this.topLeft,new l(this.bottomRight.row,this.topLeft.col))},rightColumn:function(){return new d(new l(this.topLeft.row,this.bottomRight.col),this.bottomRight)},topRow:function(){return new d(this.topLeft,new l(this.topLeft.row,this.bottomRight.col))},bottomRow:function(){return new d(new l(this.bottomRight.row,this.topLeft.col),this.bottomRight)},toRangeRef:function(){return this},toRow:function(e){return e+=Math.max(0,this.topLeft.row),new d(new l(e,this.topLeft.col),new l(e,this.bottomRight.col)).setSheet(this.sheet,this.hasSheet())},toColumn:function(e){return e+=Math.max(0,this.topLeft.col),new d(new l(this.topLeft.row,e),new l(this.bottomRight.row,e)).setSheet(this.sheet,this.hasSheet())},toCell:function(e,t){return e+=Math.max(0,this.topLeft.row),t+=Math.max(0,this.topLeft.col),new l(e,t,0).setSheet(this.sheet,this.hasSheet())},forEachRow:function(e){var t,n=this.topLeft.row,i=this.bottomRight.row,o=this.topLeft.col,r=this.bottomRight.col;for(t=n;t<=i;t++)e(new d(new l(t,o),new l(t,r)))},forEachColumn:function(e){var t,n=this.topLeft.row,i=this.bottomRight.row,o=this.topLeft.col,r=this.bottomRight.col;for(t=o;t<=r;t++)e(new d(new l(n,t),new l(i,t)))},intersecting:function(e){return e.filter(function(e){return e.toRangeRef().intersects(this)},this)},union:function(e,t){var n,i=this.intersecting(e),o=this.topLeft.row,r=this.topLeft.col,a=this.bottomRight.row,s=this.bottomRight.col,c=!1;return i.forEach(function(e){e=e.toRangeRef(),e.topLeft.row<o&&(c=!0,o=e.topLeft.row),e.topLeft.col<r&&(c=!0,r=e.topLeft.col),e.bottomRight.row>a&&(c=!0,a=e.bottomRight.row),e.bottomRight.col>s&&(c=!0,s=e.bottomRight.col),t&&t(e)}),n=new d(new l(o,r),new l(a,s)),c?n.union(e,t):n},resize:function(e){function t(e){return e||0}var n=Math.max.bind(Math,0),i=this.topLeft.row+t(e.top),o=this.topLeft.col+t(e.left),r=this.bottomRight.row+t(e.bottom),s=this.bottomRight.col+t(e.right);return o<0&&s<0||i<0&&r<0?a:i<=r&&o<=s?new d(new l(n(i),n(o)),new l(n(r),n(s))):a},move:function(e,t){return new d(new l(this.topLeft.row+e,this.topLeft.col+t),new l(this.bottomRight.row+e,this.bottomRight.col+t))},first:function(){return this.topLeft.clone().setSheet(this.sheet,this.hasSheet())},isCell:function(){return!this.endSheet&&this.topLeft.eq(this.bottomRight)},toString:function(){return this.topLeft+":"+this.bottomRight},adjust:function(e,t,n,i,o,r,s){var l=this.topLeft.adjust(e,t,n,i,o,r,s),c=this.bottomRight.adjust(e,t,n,i,o,r,s);return l===a&&c===a?a:(l===a?(l=this.topLeft.absolute(e,t),o?l.row=r:l.col=r,null!=n&&null!=i&&(l=l.relative(n,i,this.topLeft.rel))):c===a&&(c=this.bottomRight.absolute(e,t),o?c.row=r-1:c.col=r-1,null!=n&&null!=i&&(c=c.relative(n,i,this.bottomRight.rel))),new d(l,c).setSheet(this.sheet,this.hasSheet()).simplify())},valid:function(){return this.topLeft.valid()&&this.bottomRight.valid()}}),c=r.extend({init:function(e){this.refs=e,this.length=e.length},clone:function(){return new c(this.refs.slice())},intersect:function(e){var t,n,i=[];for(t=0;t<this.length;++t)n=e.intersect(this.refs[t]),n!==a&&i.push(n);return i.length>0?new c(i).simplify():a},simplify:function(){var e=new c(this.refs.reduce(function(e,t){return t=t.simplify(),t!==a&&e.push(t),e},[]));return e.empty()?a:e.single()?e.refs[0]:e},absolute:function(e,t){return new c(this.refs.map(function(n){return n.absolute(e,t)}))},forEach:function(e,t){this.refs.forEach(function(n){n instanceof c?n.forEach(e,t):e.call(t,n)},t)},toRangeRef:function(){return this.refs[0].toRangeRef()},contains:function(e){return this.refs.some(function(t){return t.contains(e)})},map:function(e,t){var n=[];return this.forEach(function(i){n.push(e.call(t,i))}),new c(n)},first:function(){return this.refs[0].first()},lastRange:function(){return this.refs[this.length-1]},size:function(){return this.length},single:function(){return 1==this.length},empty:function(){return 0===this.length},isCell:function(){return this.single()&&this.refs[0].isCell()},rangeAt:function(e){return this.refs[e]},nextRangeIndex:function(e){return e===this.length-1?0:e+1},previousRangeIndex:function(e){return 0===e?this.length-1:e-1},concat:function(e){return new c(this.refs.concat([e]))},print:function(e,t,n){return this.refs.map(function(i){return i.print(e,t,n)}).join(",")},replaceAt:function(e,t){var n=this.refs.slice();return n.splice(e,1,t),new c(n)},leftColumn:function(){return this.map(function(e){return e.leftColumn()})},rightColumn:function(){return this.map(function(e){return e.rightColumn()})},topRow:function(){return this.map(function(e){return e.topRow()})},bottomRow:function(){return this.map(function(e){return e.bottomRow()})},forEachRow:function(e){this.forEach(function(t){t.forEachRow(e)})},forEachColumn:function(e){this.forEach(function(t){t.forEachColumn(e)})},adjust:function(e,t,n,i,o,r,a){return this.map(function(s){return s.adjust(e,t,n,i,o,r,a)}).simplify()},toString:function(){return this.refs.map(function(e){return""+e}).join(", ")},valid:function(){for(var e=this.refs.length;--e>=0;)if(this.refs[e].valid())return!1;return!0},renameSheet:function(e,t){this.refs.forEach(function(n){n.renameSheet(e,t)})}}),i.NULLREF=a,i.SHEETREF=new d(new l(0,0),new l(1/0,1/0)),i.FIRSTREF=new l(0,0),i.Ref=r,i.NameRef=s,i.CellRef=l,i.RangeRef=d,i.UnionRef=c,i.SHEETREF.print=function(){return"#SHEET"})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/autofillcalculator.min",["kendo.core.min"],e)}(function(){!function(e){var t,n,i;e.support.browser.msie&&e.support.browser.version<9||(t=e.spreadsheet.RangeRef,n=e.spreadsheet.CellRef,i=e.Class.extend({init:function(e){this._grid=e},rectIsVertical:function(e,t,n,i){var o=this._grid.rectangle(e.toRangeRef()),r=this._grid.rectangle(t.toRangeRef());return Math.abs(r[i]-o[i])>Math.abs(o[n]-r[n])},autoFillDest:function(e,i){var o,r,a,s,l,d,c,u=e.topLeft,h=e.bottomRight,p=i.row>=u.row,f=i.col>=u.col;return o=p?f?4:3:f?2:1,4===o?(r=u,a=h,l=i.row>a.row||i.col>a.col,l&&(i=new n(Math.max(i.row,a.row),Math.max(i.col,a.col))),s=this.rectIsVertical(a,i,"right","bottom")?new n(i.row,a.col):new n(a.row,i.col)):3===o?(d=new n(u.col,h.row),i.row>h.row&&this.rectIsVertical(d,i,"left","bottom")?(r=u,s=new n(i.row,h.col)):(r=h,s=new n(u.row,i.col))):2===o?(c=new n(u.row,h.col),i.col>h.col&&!this.rectIsVertical(c,i,"right","top")?(r=u,s=new n(h.row,i.col)):(r=h,s=new n(i.row,u.col))):(r=h,s=this.rectIsVertical(u,i,"left","top")?new n(i.row,u.col):new n(u.row,i.col)),this._grid.normalize(new t(r,s))}}),e.spreadsheet.AutoFillCalculator=i)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/navigator.min",["kendo.core.min","spreadsheet/autofillcalculator.min"],e)}(function(){!function(e){function t(e,t,n){var i=e.range(t).value();return function(o,r,a){if(a)return!0;var s=(n?e.range(t.row,o):e.range(o,t.col)).value();return null===i?null!==s&&o:r||null!==s?null===s:(i=null,!1)}}var n,i,o,r;e.support.browser.msie&&e.support.browser.version<9||(n=e.spreadsheet.RangeRef,i=e.spreadsheet.CellRef,o=e.Class.extend({init:function(e,t,n,i){this.rangeGetter=n,this.prevLeft=function(n){var o=i(this.range(n)),r=this.range(t.prevVisible(o.topLeft[e]));return i(r).topLeft[e]},this.nextRight=function(n){var o=i(this.range(n)),r=this.range(t.nextVisible(o.bottomRight[e]));return i(r).bottomRight[e]},this.nextLeft=function(n){var o=i(this.range(n));return t.nextVisible(o.bottomRight[e])},this.prevRight=function(n){var o=i(this.range(n));return t.prevVisible(o.topLeft[e])}},boundary:function(e,t){this.top=e,this.bottom=t},range:function(e){return this.rangeGetter(e,this.top,this.bottom)}}),r=e.Class.extend({init:function(t){this._sheet=t,this.autoFillCalculator=new e.spreadsheet.AutoFillCalculator(t._grid),this.colEdge=new o("col",this._sheet._grid._columns,this.columnRange.bind(this),this.union.bind(this)),this.rowEdge=new o("row",this._sheet._grid._rows,this.rowRange.bind(this),this.union.bind(this))},height:function(e){this._viewPortHeight=e},union:function(e){return this._sheet.unionWithMerged(e)},columnRange:function(e,t,n){return this._sheet._ref(t,e,n-t,1)},rowRange:function(e,t,n){return this._sheet._ref(e,t,1,n-t)},selectionIncludesMergedCells:function(){return this._sheet.select().contains(this._sheet._mergedCells)},setSelectionValue:function(e){var t=this._sheet.selection();setTimeout(function(){t.value(e())})},selectAll:function(){this._sheet.select(this._sheet._sheetRef)},select:function(e,t,n){e=this.refForMode(e,t),n&&(e=this._sheet.select().concat(e)),this._sheet.select(e)},refForMode:function(e,t){var n=this._sheet._grid;switch(t){case"range":e=n.normalize(e);break;case"row":e=n.rowRef(e.row);break;case"column":e=n.colRef(e.col);break;case"sheet":e=this._sheet._sheetRef}return e},startSelection:function(e,t,i,o,r){if("autofill"==t)this._sheet.startAutoFill();else if(o&&"range"==t){var a=new n(this._sheet.activeCell().first(),e);this._sheet.select(a,!1,!1),this._sheet.startSelection(r)}else this._sheet.startSelection(r),this.select(e,t,i)},completeSelection:function(){this._sheet.completeSelection()},selectForContextMenu:function(e,t){var n=this._sheet;n._activeDrawing=null,n.select().contains(this.refForMode(e,t))||this.select(e,t)},selectDrawingForContextMenu:function(e){var t=this._sheet;t._activeDrawing=e,t.triggerChange({selection:!0})},modifySelection:function(e){var o,r,a=this.determineDirection(e),s=this._sheet,l=this._viewPortHeight,d=s._grid._rows,c=s._grid._columns,u=s.currentOriginalSelectionRange(),h=s.select().toRangeRef(),p=s.activeCell(),f=u.topLeft.clone(),m=u.bottomRight.clone(),g=new i(m.row,f.col);switch(this.colEdge.boundary(h.topLeft.row,h.bottomRight.row),this.rowEdge.boundary(h.topLeft.col,h.bottomRight.col),a){case"expand-left":f.col=this.colEdge.prevLeft(f.col),o=f;break;case"shrink-right":f.col=this.colEdge.nextLeft(f.col),o=f;break;case"expand-right":m.col=this.colEdge.nextRight(m.col),o=m;break;case"shrink-left":m.col=this.colEdge.prevRight(m.col),o=m;break;case"expand-up":f.row=this.rowEdge.prevLeft(f.row),o=f;break;case"shrink-down":f.row=this.rowEdge.nextLeft(f.row),o=f;break;case"expand-down":m.row=this.rowEdge.nextRight(m.row),o=m;break;case"shrink-up":m.row=this.rowEdge.prevRight(m.row),o=m;break;case"expand-page-up":f.row=d.prevPage(f.row,l);break;case"shrink-page-up":m.row=d.prevPage(m.row,l);break;case"expand-page-down":m.row=d.nextPage(m.row,l);break;case"shrink-page-down":f.row=d.nextPage(f.row,l);break;case"first-col":f.col=c.firstVisible(),m.col=p.bottomRight.col,o=f;break;case"last-col":m.col=c.lastVisible(),f.col=p.topLeft.col,o=m;break;case"first-row":f.row=d.firstVisible(),m.row=p.bottomRight.row,o=f;break;case"last-row":m.row=d.lastVisible(),f.row=p.topLeft.row,o=m;break;case"last":m.row=d.lastVisible(),m.col=c.lastVisible(),f=p.topLeft,o=m;break;case"first":f.row=d.firstVisible(),f.col=c.firstVisible(),m=p.bottomRight,o=f;break;case"expand-word-right":m.col=c.nextUntil(m.col,t(s,m,!0)),o=m;break;case"shrink-word-right":f.col=c.nextUntil(g.col,t(s,g,!0)),o=f;break;case"expand-word-left":f.col=c.prevUntil(g.col,t(s,g,!0)),o=f;break;case"shrink-word-left":m.col=c.prevUntil(m.col,t(s,m,!0)),o=m;break;case"expand-word-up":f.row=d.prevUntil(f.row,t(s,f,!1)),o=f;break;case"shrink-word-up":m.row=d.prevUntil(m.row,t(s,m,!1)),o=m;break;case"expand-word-down":m.row=d.nextUntil(m.row,t(s,m,!1)),o=m;break;case"shrink-word-down":f.row=d.nextUntil(f.row,t(s,f,!1)),o=f}return r=new n(f,m),this.union(r).intersects(p)?(o&&s.focus(o),void this.updateCurrentSelectionRange(r)):void this.modifySelection(a.replace("shrink","expand"))},moveActiveCell:function(e){var n=this._sheet,o=n.activeCell(),r=o.topLeft,a=o.bottomRight,s=n.originalActiveCell(),l=n._grid._rows,d=n._grid._columns,c=s.row,u=s.col;switch(e){case"left":u=d.prevVisible(r.col);break;case"up":c=l.prevVisible(r.row);break;case"right":u=d.nextVisible(a.col);break;case"down":c=l.nextVisible(a.row);break;case"first-col":u=d.firstVisible();break;case"last-col":u=d.lastVisible();break;case"first-row":c=l.firstVisible();break;case"last-row":c=l.lastVisible();break;case"last":c=l.lastVisible(),u=d.lastVisible();break;case"first":c=l.firstVisible(),u=d.firstVisible();break;case"next-page":c=l.nextPage(a.row,this._viewPortHeight);break;case"prev-page":c=l.prevPage(a.row,this._viewPortHeight);break;case"word-right":u=d.nextUntil(u,t(n,a,!0));break;case"word-left":u=d.prevUntil(u,t(n,a,!0));break;case"word-up":c=l.prevUntil(c,t(n,a,!1));break;case"word-down":c=l.nextUntil(c,t(n,a,!1))}n.select(new i(c,u))},navigateInSelection:function(t){function n(e){o=e.topLeft,r=e.bottomRight}var o,r,a,s,l,d,c,u=this._sheet,h=u.activeCell(),p=h.topLeft,f=u.originalActiveCell(),m=u._grid._rows,g=u._grid._columns,v=f.row,_=f.col,b=!1,w=!1,k=p.col,y=p.row;for(n(u.currentNavigationRange()),s=!1,l=!1;!s&&!l;){switch(d=new i(v,_),c=u.singleCellSelection(),c&&(b=o.eq(d)&&u._sheetRef.topLeft.eq(d),w=r.eq(d)&&u._sheetRef.bottomRight.eq(d),b||(b=g.firstVisible()===_&&m.firstVisible()===v),w||(w=g.lastVisible()===_&&m.lastVisible()===v)),t){case"next":w?(l=!0,e.focusNextElement()):r.eq(d)?(n(u.nextNavigationRange()),v=o.row,_=o.col):(_=g.nextVisible(k),(_==k||_>r.col)&&(_=o.col,a=m.nextVisible(v),v=a==v||a>r.row?o.row:a));break;case"previous":b?(l=!0,this._sheet._workbook._view.element.find(".k-spreadsheet-name-editor .k-input").focus()):o.eq(d)?(n(u.previousNavigationRange()),v=r.row,_=r.col):(_=g.prevVisible(k),(_==k||_<o.col)&&(_=r.col,a=m.prevVisible(v),v=a==v||a<o.row?r.row:a));break;case"lower":r.eq(d)?(n(u.nextNavigationRange()),v=o.row,_=o.col):(v=m.nextVisible(y),(v==y||v>r.row)&&(v=o.row,a=g.nextVisible(_),_=a==_||a>r.col?o.col:a));break;case"upper":o.eq(d)?(n(u.previousNavigationRange()),v=r.row,_=r.col):(v=m.prevVisible(y),(v==y||v<o.row)&&(v=r.row,a=g.prevVisible(_),_=a==_||a<o.col?r.col:a));break;default:throw Error("Unknown entry navigation: "+t)}s=!this.shouldSkip(v,_),k=_,y=v}s&&(u.singleCellSelection()?u.select(new i(v,_)):u.activeCell(new i(v,_)))},extendSelection:function(e,t){var i,o=this._sheet,r=o._grid;return"autofill"===t?void this.resizeAutoFill(e):("range"===t?e=r.normalize(e):"row"===t?e=r.rowRef(e.row).bottomRight:"column"===t&&(e=r.colRef(e.col).bottomRight),i=o.originalActiveCell().toRangeRef(),void this.updateCurrentSelectionRange(new n(i.topLeft,e)))},shouldSkip:function(e,t){var n,o;return!(!this._sheet.isHiddenRow(e)&&!this._sheet.isHiddenColumn(t))||(n=new i(e,t),o=!1,this._sheet.forEachMergedCell(function(e){e.intersects(n)&&!e.collapse().eq(n)&&(o=!0)}),o)},resizeAutoFill:function(e){var t,n,i,o=this._sheet,r=o.select(),a=o._autoFillOrigin,s=this.autoFillCalculator.autoFillDest(r,e),l=this.punch(r,s);l||(i=o.range(s)._previewFillFrom(o.range(a)),i&&(n=i.direction,t=i.hint)),o.updateAutoFill(s,l,t,n)},determineDirection:function(e){var t=this._sheet.currentSelectionRange(),n=this._sheet.activeCell(),i=n.topLeft.col==t.topLeft.col,o=n.bottomRight.col==t.bottomRight.col,r=n.topLeft.row==t.topLeft.row,a=n.bottomRight.row==t.bottomRight.row;switch(e){case"left":e=o?"expand-left":"shrink-left";break;case"right":e=i?"expand-right":"shrink-right";break;case"up":e=a?"expand-up":"shrink-up";break;case"down":e=r?"expand-down":"shrink-down";break;case"prev-page":e=a?"expand-page-up":"shrink-page-up";break;case"next-page":e=r?"expand-page-down":"shrink-page-down";break;case"word-left":e=o?"expand-word-left":"shrink-word-left";break;case"word-right":e=i?"expand-word-right":"shrink-word-right";break;case"word-up":e=a?"expand-word-up":"shrink-word-up";break;case"word-down":e=r?"expand-word-down":"shrink-word-down"}return e},updateCurrentSelectionRange:function(e){var t=this._sheet;t.select(t.originalSelect().replaceAt(t.selectionRangeIndex(),e),!1)},punch:function(e,t){var o,r,a;return t.topLeft.eq(e.topLeft)&&(t.bottomRight.row<e.bottomRight.row?(r=this.rowEdge.nextRight(t.bottomRight.row),o=new n(new i(r,e.topLeft.col),e.bottomRight)):t.bottomRight.col<e.bottomRight.col&&(a=this.colEdge.nextRight(t.bottomRight.col),o=new n(new i(e.topLeft.row,a),e.bottomRight))),o}}),e.spreadsheet.SheetNavigator=r)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/axismanager.min",["kendo.core.min"],e)}(function(){!function(e){if(!(e.support.browser.msie&&e.support.browser.version<9)){var t=e.Class.extend({init:function(e){this._sheet=e},forEachSelectedColumn:function(e){var t=this._sheet;t.batch(function(){t.select().forEachColumnIndex(function(n,i){e(t,n,i)})},{layout:!0,recalc:!0})},forEachSelectedRow:function(e){var t=this._sheet;t.batch(function(){t.select().forEachRowIndex(function(n,i){e(t,n,i)})},{layout:!0,recalc:!0})},includesHiddenColumns:function(e){return this._sheet._grid._columns.includesHidden(e.topLeft.col,e.bottomRight.col)},includesHiddenRows:function(e){return this._sheet._grid._rows.includesHidden(e.topLeft.row,e.bottomRight.row)},selectionIncludesHiddenColumns:function(){return this.includesHiddenColumns(this._sheet.select())},selectionIncludesHiddenRows:function(){return this.includesHiddenRows(this._sheet.select())},deleteSelectedColumns:function(){var e=[],t=0;return this.forEachSelectedColumn(function(n,i){if(i-=t,!n.isHiddenColumn(i)){t++;var o=[];e.unshift({index:i,formulas:o,width:n.columnWidth(i)}),n._saveModifiedFormulas(o,function(){n.deleteColumn(i)})}}),e},deleteSelectedRows:function(){var e=[],t=0;return this.forEachSelectedRow(function(n,i){if(i-=t,!n.isHiddenRow(i)){t++;var o=[];e.unshift({index:i,formulas:o,height:n.rowHeight(i)}),n._saveModifiedFormulas(o,function(){n.deleteRow(i)})}}),e},hideSelectedColumns:function(){var t,n,i,o,r,a,s;for(this.forEachSelectedColumn(function(e,t){e.hideColumn(t)}),t=this._sheet,n=t.select().toRangeRef(),i=n.topLeft.col,o=n.bottomRight.col,r=null;;){if(a=o<t._columns._count,s=i>=0,!s&&!a)break;if(a&&!t.isHiddenColumn(o)){r=o;break}if(s&&!t.isHiddenColumn(i)){r=i;break}i--,o++}null!==r&&(n=new e.spreadsheet.RangeRef(new e.spreadsheet.CellRef(0,r),new e.spreadsheet.CellRef(t._rows._count-1,r)),t.range(n).select())},hideSelectedRows:function(){var t,n,i,o,r,a,s;for(this.forEachSelectedRow(function(e,t){e.hideRow(t)}),t=this._sheet,n=t.select().toRangeRef(),i=n.topLeft.row,o=n.bottomRight.row,r=null;;){if(a=o<t._rows._count,s=i>=0,!s&&!a)break;if(a&&!t.isHiddenRow(o)){r=o;break}if(s&&!t.isHiddenRow(i)){r=i;break}i--,o++}null!==r&&(n=new e.spreadsheet.RangeRef(new e.spreadsheet.CellRef(r,0),new e.spreadsheet.CellRef(r,t._columns._count-1)),t.range(n).select())},unhideSelectedColumns:function(){this.forEachSelectedColumn(function(e,t){e.unhideColumn(t)})},unhideSelectedRows:function(){this.forEachSelectedRow(function(e,t){e.unhideRow(t)})},preventAddRow:function(){var e=this._sheet.select().toRangeRef(),t=e.height();return this._sheet.preventInsertRow(0,t)},preventAddRowAfterLast:function(){var e=this._sheet.select().toRangeRef(),t=e.height();return this._sheet.preventInsertBelowLastRow(e.bottomRight.row,t)},preventAddColumn:function(){var e=this._sheet.select().toRangeRef(),t=e.width();return this._sheet.preventInsertColumn(0,t)},preventAddColumnAfterLast:function(){var e=this._sheet.select().toRangeRef(),t=e.width();return this._sheet.preventInsertAfterLastColumn(e.bottomRight.col,t)},addColumnLeft:function(){var e,t=this._sheet,n=0;return t.batch(function(){t.select().forEachColumnIndex(function(i){e||(e=i),t.insertColumn(e),++n})},{recalc:!0,layout:!0}),{base:e,
count:n}},addColumnRight:function(){var e,t=this._sheet,n=0;return t.batch(function(){t.select().forEachColumnIndex(function(t){e=t+1,++n});for(var i=0;i<n;++i)t.insertColumn(e)},{recalc:!0,layout:!0}),{base:e,count:n}},addRowAbove:function(){var e,t=this._sheet,n=0,i=t._grid.rowCount,o=t.select(),r=o.bottomRight.row-o.topLeft.row+1;return t.batch(function(){o.forEachRowIndex(function(a){e||(e=a),o.bottomRight.row+r<i&&t.insertRow(e),++n})},{recalc:!0,layout:!0}),{base:e,count:n}},addRowBelow:function(){var e,t=this._sheet,n=0,i=t._grid.rowCount;return t.batch(function(){if(t.select().forEachRowIndex(function(t){e=t+1,++n}),e+n<i)for(var o=0;o<n;++o)t.insertRow(e)},{recalc:!0,layout:!0}),{base:e,count:n}}});e.spreadsheet.AxisManager=t}}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/clipboard.min",["kendo.core.min"],e)}(function(){!function(e){function t(){var e=new d(0,0,0);return{ref:e,mergedCells:[],data:[],foreign:!0,origRef:e.toRangeRef()}}function n(e,t,n,i){var o,r=e.data||(e.data=[]);r[t]||(r[t]=[]),r[t][n]=i,o=e.origRef.bottomRight,o.row=Math.max(o.row,t),o.col=Math.max(o.col,n)}function i(e){return e.replace(/^-(?:ms|moz|webkit)-/,"")}function o(e){var t={};return["borderBottom","borderRight","borderLeft","borderTop"].forEach(function(n){t[n]="none"==e[n+"Style"]?null:{size:1,color:e[n+"Color"]}}),t}function r(e,t,n,r,a){var s=window.getComputedStyle(n),l=n.innerText.replace(/\t$/,""),d=o(s),c={value:""===l?null:l,borderTop:d.borderTop||r.get(e,t)||null,borderBottom:d.borderBottom||r.get(e+1,t)||null,borderLeft:d.borderLeft||a.get(e,t)||null,borderRight:d.borderRight||a.get(e,t+1)||null,fontSize:parseInt(s["font-size"],10)};return r.set(e,t,c.borderTop),r.set(e+1,t,c.borderBottom),a.set(e,t,c.borderLeft),a.set(e,t+1,c.borderRight),"rgb(0, 0, 0)"!==s["background-color"]&&"rgba(0, 0, 0, 0)"!==s["background-color"]&&(c.background=s["background-color"]),"rgb(0, 0, 0)"!==s.color&&"rgba(0, 0, 0, 0)"!==s.color&&(c.color=s.color),"underline"==s["text-decoration"]&&(c.underline=!0),"italic"==s["font-style"]&&(c.italic=!0),"bold"==s["font-weight"]&&(c.bold=!0),"right"!==i(s["text-align"])&&(c.textAlign=i(s["text-align"])),"middle"!==s["vertical-align"]&&(c.verticalAlign=s["vertical-align"]),"normal"!==s["word-wrap"]&&(c.wrap=!0),c}function a(i){var o,a,s,l,c,u,h,p,f,m,g,v,_,b=t(),w=[],k=0,y=0;for(o=0;o<i.rows.length;++o)w.push([]);for(a=new e.spreadsheet.calc.runtime.Matrix,s=new e.spreadsheet.calc.runtime.Matrix,l=0;l<i.rows.length;++l,++k)for(c=i.rows[l],y=0,u=0;u<c.cells.length;++u){for(h=c.cells[u],p=h.rowSpan,f=h.colSpan;w[k][y];)y++;for(m=h.getAttribute("style"),g=/mso-ignore:colspan/.test(m),n(b,k,y,r(k,y,h,a,s)),(p>1||f>1&&!g)&&b.mergedCells.push(""+new e.spreadsheet.RangeRef(new d(k,y),new d(k+p-1,y+f-1))),v=k+p;--v>=k;)for(_=y+f;--_>=y;)v<w.length&&(w[v][_]=!0,v==k&&_==y||n(b,v,_,{}))}return b}function s(e){var i,o,r,a,s=t();if(e.indexOf("\t")===-1&&e.indexOf("\n")==-1)n(s,0,0,{value:e});else for(i=e.split("\n"),o=0;o<i.length;o++)for(r=i[o].split("\t"),a=0;a<r.length;a++)n(s,o,a,{value:r[a]});return s}var l,d,c;e.support.browser.msie&&e.support.browser.version<9||(l=e.jQuery,d=e.spreadsheet.CellRef,c=e.Class.extend({init:function(t){this._content={},this._externalContent={},this._internalContent={},this.workbook=t,this.origin=e.spreadsheet.NULLREF,this.iframe=document.createElement("iframe"),this.iframe.className="k-spreadsheet-clipboard-paste",this.iframe.setAttribute("title","Spreadsheet clipboard iframe"),this.menuInvoked=!1,this._uid=e.guid(),document.body.appendChild(this.iframe)},destroy:function(){document.body.removeChild(this.iframe)},canCopy:function(){var t={canCopy:!0},n=this.workbook.activeSheet().select();return n===e.spreadsheet.NULLREF&&(t.canCopy=!1),n instanceof e.spreadsheet.UnionRef&&(t.canCopy=!1,t.multiSelection=!0),this.menuInvoked&&(t.canCopy=!1,t.menuInvoked=!0),t},canPaste:function(){var e=this.workbook.activeSheet(),t=this.pasteRef(),n=e.range(t),i={canPaste:!0,pasteOnMerged:!1,pasteOnDisabled:!1};return n.enable()||(i.canPaste=!1,i.pasteOnDisabled=!0),t.eq(e.unionWithMerged(t))||(i.canPaste=!1,i.pasteOnMerged=!0),this.menuInvoked&&(i.canPaste=!1,i.menuInvoked=!0),(t.bottomRight.row>=e._rows._count||t.bottomRight.col>=e._columns._count)&&(i.canPaste=!1,i.overflow=!0),i},intersectsMerged:function(){var e,t=this.workbook.activeSheet();return this.parse(),this.origin=this._content.origRef,e=this.pasteRef(),!e.eq(t.unionWithMerged(e))},copy:function(){var e=this.workbook.activeSheet();this.origin=e.select(),this._internalContent=e.selection().getState(),delete this._externalContent.html,delete this._externalContent.plain},cut:function(){var e=this.workbook.activeSheet();this.copy(),e.range(e.select()).clear()},pasteRef:function(){var t,n,i,o,r=this.workbook.activeSheet();return this.origin===e.spreadsheet.NULLREF?r.select():(t=r.activeCell().first(),n=this.origin.first(),i=n.row-t.row,o=n.col-t.col,this.origin.relative(i,o,3))},paste:function(){var e=this.workbook.activeSheet(),t=this.pasteRef();e.range(t).setState(this._content,this),e.triggerChange({recalc:!0,ref:t})},external:function(e){return e&&(e.html||e.plain)?void(this._externalContent=e):this._externalContent},isExternal:function(){return!this._isInternal()},parse:function(){var e,n,i,o=t();this._isInternal()?o=this._internalContent:(e=this._externalContent,e.html?(n=this.iframe.contentWindow.document,n.open(),n.write(e.html),n.close(),i=n.querySelector("table"),o=i?a(i):s(e.plain)):o=s(e.plain),this.origin=o.origRef),this._content=o},_isInternal:function(){var e,t;return void 0===this._externalContent.html||(e=!!l("<div/>").html(this._externalContent.html).find("table.kendo-clipboard-"+this._uid).length,t=!!l("<div/>").html(this._externalContent.plain).find("table.kendo-clipboard-"+this._uid).length,e||t)}}),e.spreadsheet.Clipboard=c)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/range.min",["kendo.core.min","util/text-metrics.min","util/main.min"],e)}(function(){!function(e){function t(e,n,i){for(;e<=n&&i(e);)e++;if(e>n)return[];for(var o=e+1;o<=n;++o)if(i(o))return[{begin:e,end:o-1}].concat(t(o+1,n,i));return[{begin:e,end:n}]}function n(e){return e.replace(/M/g,"m").replace(/'/g,'"').replace(/tt/,"am/pm")}function i(t){return!/^=/.test(t)&&/number|percent/.test(e.spreadsheet.calc.parse(null,0,0,t).type)}function o(t,n,i,o,r){var a={baselineMarkerSize:0,width:r===!0?n+"px":"auto","font-size":(o||12)+"px","font-family":i||"Arial","white-space":r===!0?"pre-wrap":"pre","overflow-wrap":r===!0?"break-word":"normal","word-wrap":r===!0?"break-word":"normal"};return e.util.measureText(t,a,{box:u,normalizeText:!1}).height}var r,a,s,l,d,c,u;e.support.browser.msie&&e.support.browser.version<9||(r=e.jQuery,a=e.spreadsheet.UnionRef,s=e.spreadsheet.CellRef,l=e.spreadsheet.RangeRef,d=["color","fontFamily","underline","italic","bold","textAlign","indent","verticalAlign","background","format","link","editor","borderTop","borderRight","borderBottom","borderLeft","comment","html"],c=e.Class.extend({init:function(e,t){this._sheet=t,this._ref=e},clone:function(){return new c(this._ref.clone(),this._sheet)},skipHiddenCells:function(){var e=[],n=this,i=n._sheet,o=i.isHiddenRow.bind(i),r=i.isHiddenColumn.bind(i);return n._ref.forEach(function(i){var a,d,c,u,h,p;for(i=n._normalize(i.toRangeRef()),a=i.topLeft,d=i.bottomRight,c=t(a.row,d.row,o),u=t(a.col,d.col,r),h=0;h<c.length;++h)for(p=0;p<u.length;++p)e.push(new l(new s(c[h].begin,u[p].begin),new s(c[h].end,u[p].end)))}),i.range(e.length>1?new a(e):e[0])},_normalize:function(e){return this._sheet._grid.normalize(e)},_set:function(e,t,n){var i=this,o=i._sheet;return i._ref.forEach(function(n){o._set(n.toRangeRef(),e,t)}),n||o.triggerChange({recalc:"formula"==e||"value"==e||"validation"==e,value:t,range:i,ref:i._ref}),i},_get:function(e){return this._sheet._get(this._ref.toRangeRef(),e)},_property:function(e,t){return void 0===t?this._get(e):this._set(e,t)},value:function(e){return void 0!==e&&this._set("formula",null,!0),this._property("value",e)},html:function(e){return this._property("html",e)},resize:function(e){var t=this._resizedRef(e);return new c(t,this._sheet)},_resizedRef:function(e){return this._ref.map(function(t){return t.toRangeRef().resize(e)})},input:function(t,o){var a,s,l,d,c,u,h;return o=r.extend({arrayFormula:!1},o),a=this._get("format"),void 0!==t?(l=this._ref.toRangeRef().topLeft,s=e.spreadsheet.calc.parse(this._sheet.name(),l.row,l.col,t,a),this._sheet.batch(function(){var i,r=null;"exp"==s.type?r=e.spreadsheet.calc.compile(s):"@"!=a?(i=a&&e.spreadsheet.formatting.type(s.value,a),"date"==s.type&&"date"!=i?this.format(s.format||n(e.culture().calendar.patterns.d)):"percent"==s.type&&"percent"!=i?this.format(100*s.value==(100*s.value|0)?"0%":"0.00%"):s.format&&(!a||s.currency||"number"==i&&"number"==s.type&&s.format.length>a.length)&&this.format(s.format)):"string"!=s.type&&(s.value=t),this.formula(r,o.arrayFormula),r||this.value(s.value)}.bind(this),{recalc:!0,value:t,ref:this._ref,editorChange:this._sheet.isInEditMode()}),this):(t=this._get("value"),d=this._get("formula"),c=a&&!d&&e.spreadsheet.formatting.type(t,a),d?t="="+d:a&&"date"==c&&(u=e.spreadsheet.formatting.text(t,a),s=e.spreadsheet.calc.parse(null,null,null,u,a),h=e.spreadsheet.formatting.text(s.value,a),u==h)?t=u:"date"===c?t=e.toString(e.spreadsheet.numberToDate(t),e.culture().calendar.patterns.d):"percent"===c?t=e.spreadsheet.calc.runtime.limitPrecision(100*t)+"%":"string"==typeof t&&(/^[=']/.test(t)||/^(?:true|false)$/i.test(t)||i(t))?t="'"+t:this._sheet._useCultureDecimals()&&"number"==typeof t&&t!=Math.floor(t)&&(t=(t+"").replace(".",e.culture().numberFormat["."])),t)},enable:function(t){return void 0===t?!e.util.withExit(function(e){this._sheet.forEach(this._ref,function(t,n,i){i.enable===!1&&e(!0)})},this):this._property("enable",t)},formula:function(e,t){var n,i,o=this;return void 0===e?(n=o._get("formula"),n?""+n:null):(t?(i=this._ref.toRangeRef(),e=o._sheet.range(i.topLeft)._set("formula",e)._get("formula"),e&&e.setArrayFormulaRange(i)):o._set("formula",e),o)},intersectingArrayFormula:function(){var t=this._ref.clone().simplify().setSheet(this._sheet.name());return e.util.withExit(function(n){this._sheet._forFormulas(function(i){var o=i.arrayFormulaRange;o&&(o=t.intersect(o))!==e.spreadsheet.NULLREF&&n({formula:i,intersection:o})})},this)},canEditArrayFormula:function(){var e=this.intersectingArrayFormula();return!e||e.formula.arrayFormulaRange.eq(e.intersection)},validation:function(e){if(void 0===e){var t=this._get("validation");return t?t.toJSON():null}return this._property("validation",e)},_getValidationState:function(){var e,t,n,i=this._ref.toRangeRef(),o=i.topLeft.row,r=i.topLeft.col,a=i.bottomRight.row,s=i.bottomRight.col;for(e=r;e<=s;e++)for(t=o;t<=a;t++)if(n=this._sheet._validation(t,e),n&&"reject"===n.type&&n.value===!1)return n;return!1},merge:function(){return this._ref=this._sheet._merge(this._ref),this},unmerge:function(){var e=this._sheet._mergedCells;return this._ref.forEach(function(t){t.toRangeRef().intersecting(e).forEach(function(t){e.splice(e.indexOf(t),1)})}),this._sheet.triggerChange({}),this},select:function(){return this._sheet.select(this._ref),this},values:function(t){var n,i,o,r,s,l,d,c,u,h;if(this._ref instanceof a)throw Error("Unsupported for multiple ranges.");if(this._ref===e.spreadsheet.NULLREF){if(void 0!==t)throw Error("Unsupported for NULLREF.");return[]}if(n=this._ref.toRangeRef(),i=n.topLeft.row,o=n.topLeft.col,r=n.bottomRight.row,s=n.bottomRight.col,void 0===t){for(t=Array(n.height()),c=0;c<t.length;c++)t[c]=Array(n.width());for(l=o;l<=s;l++)for(d=i;d<=r;d++)t[d-i][l-o]=this._sheet._value(d,l);return t}for(this._sheet._set(n,"formula",null),l=o;l<=s;l++)for(d=i;d<=r;d++)u=t[d-i],u&&(h=u[l-o],void 0!==h&&this._sheet._value(d,l,h));return this._sheet.triggerChange({recalc:!0,ref:n}),this},_properties:function(t,n){var i,o,r,s,l,d,c,u,h,p,f;if(this._ref instanceof a)throw Error("Unsupported for multiple ranges.");if(this._ref===e.spreadsheet.NULLREF){if(void 0!==t)throw Error("Unsupported for NULLREF.");return[]}if(i=this._ref.toRangeRef(),o=i.topLeft.row,r=i.topLeft.col,s=i.bottomRight.row,l=i.bottomRight.col,u=this._sheet,void 0===t)return t=Array(i.height()),u.forEach(i,function(e,n,i){e-=o,n-=r;var a=t[e]||(t[e]=[]);a[n]=i}),t;for(i=i.clone(),p=function(e){var t=h[e];i.topLeft.row=i.bottomRight.row=c,i.topLeft.col=i.bottomRight.col=d,"value"==e&&u._set(i,"formula",null),u._set(i,e,t)},d=r;d<=l;d++)if(n||!u.isHiddenColumn(d))for(c=o;c<=s;c++)!n&&u.isHiddenRow(c)||n&&u.isFilteredRow(c)||(f=t[c-o],f&&(h=f[d-r],h&&Object.keys(h).forEach(p)));return u.triggerChange({recalc:!0,ref:this._ref}),this},clear:function(e){var t,n,i;return e=e||{},t=e.clearAll||!Object.keys(e).length,n=this._sheet,i={recalc:t||e.contentsOnly,ref:this._ref},n.batch(function(){i.recalc&&this.formula(null),t&&this.validation(null),(t||e.formatOnly)&&(d.forEach(function(t){e.keepBorders&&/^border/i.test(t)||this[t](null)}.bind(this)),this.fontSize(null),this.wrap(null),this.unmerge())}.bind(this),i),this},clearContent:function(){return this.clear({contentsOnly:!0})},clearFormat:function(){return this.clear({formatOnly:!0})},isSortable:function(){return!this.cantSort()},cantSort:function(){var t,n,i,o,r,l;if(this._ref instanceof a)return{code:"cantSortMultipleSelection",message:"Unsupported for multiple ranges."};if(this._ref===e.spreadsheet.NULLREF)return{code:"cantSortNullRef",message:"Unsupported for NULLREF."};t=this._sheet._getMergedCells(this._ref.toRangeRef()),n=t.primary,i=t.secondary,o=null,r=null,l={};try{this._sheet.forEach(this,function(e,a){var d=new s(e,a).print(),c=n[d];if(c){if(null===o)o=c.width(),r=c.height();else if(o!=c.width()||r!=c.height())throw l}else if(!i[d]&&t.hasMerged)throw l})}catch(d){if(d!==l)throw d;return{code:"cantSortMixedCells",message:"Unsupported for range containing cells of different shapes."}}return!1},sort:function(e){var t=this.cantSort();if(t)throw Error(t.message);return void 0===e&&(e={column:0}),e=e instanceof Array?e:[e],this._sheet._sortBy(this._ref.toRangeRef(),e.map(function(e,t){return"number"==typeof e&&(e={column:e}),{index:void 0===e.column?t:e.column,ascending:void 0===e.ascending||e.ascending}})),this},isFilterable:function(){return!(this._ref instanceof a)},filter:function(e){if(this._ref instanceof a)throw Error("Unsupported for multiple ranges.");return e===!1?this.clearFilters():(e=e===!0?[]:e instanceof Array?e:[e],this._sheet._filterBy(this._ref.toRangeRef(),e.map(function(e,t){return{index:void 0===e.column?t:e.column,filter:e.filter}}))),this},clearFilter:function(e){this._sheet.clearFilter(e)},clearFilters:function(){var e,t=this._sheet.filter(),n=[];if(t){for(e=0;e<t.columns.length;e++)n.push(t.columns[e].index);this._sheet.batch(function(){this.clearFilter(n),this._filter=null},{layout:!0,filter:!0})}},hasFilter:function(){var e=this._sheet.filter();return!!e},leftColumn:function(){return new c(this._ref.leftColumn(),this._sheet)},rightColumn:function(){return new c(this._ref.rightColumn(),this._sheet)},topRow:function(){return new c(this._ref.topRow(),this._sheet)},bottomRow:function(){return new c(this._ref.bottomRow(),this._sheet)},column:function(e){return new c(this._ref.toColumn(e),this._sheet)},row:function(e){return new c(this._ref.toRow(e),this._sheet)},forEachRow:function(e){this._ref.forEachRow(function(t){e(new c(t,this._sheet))}.bind(this))},forEachColumn:function(e){this._ref.forEachColumn(function(t){e(new c(t,this._sheet))}.bind(this))},sheet:function(){return this._sheet},topLeft:function(){return this._ref.toRangeRef().topLeft},intersectingMerged:function(){var e=this._sheet,t=[];return e._mergedCells.forEach(function(e){e.intersects(this._ref)&&t.push(""+e)}.bind(this)),t},getState:function(t){var n,i,o=this._ref.first(),r={ref:o,data:[],origRef:this._ref,rows:this._sheet._rows.getState()};return t?n="input"===t?["value","formula"]:"border"===t?["borderLeft","borderTop","borderRight","borderBottom"]:[t]:(n=e.spreadsheet.ALL_PROPERTIES,r.mergedCells=this.intersectingMerged()),i=r.data,this.forEachCell(function(t,r,a){var s={},l=t-o.row,d=r-o.col;i[l]||(i[l]=[]),i[l][d]=s,n.forEach(function(t){var n=void 0===a[t]?null:a[t];(n instanceof e.spreadsheet.calc.runtime.Formula||n instanceof e.spreadsheet.validation.Validation)&&(n=n.deepClone()),s[t]=n})}),r},setState:function(e,t){var n=this._sheet,i=this._ref.first(),o=e.ref.row-i.row,r=e.ref.col-i.col,a=t&&!t.isExternal(),s=t&&!a;n.batch(function(){var l,d;e.mergedCells&&this.unmerge(),t||this._sheet._rows.setState(e.rows),l=i.row,d=this.hasFilter(),e.data.forEach(function(o,r){if(!(d&&a&&n.isHiddenRow(e.ref.row+r))){var c=i.col;o.forEach(function(o,u){var h,p;if(!(d&&a&&n.isHiddenColumn(e.ref.col+u))){if(h=t?n.range(l,c):n.range(i.row+r,i.col+u),h.enable()){for(p in o)"value"!=p&&(t&&"enable"==p||h._set(p,o[p]));if(!o.formula)if(s)try{null==o.value?h._set("value",null):h.input(o.value)}catch(f){h._set("value",o.value)}else h._set("value",o.value)}c++}}),l++}}),e.mergedCells&&e.mergedCells.forEach(function(e){e=n._ref(e).relative(o,r,3),n.range(e).merge()},this)}.bind(this),{recalc:!0,ref:this._ref})},_adjustRowHeight:function(){var t=this,n=t._sheet,i=n._getMergedCells(t._ref.toRangeRef()),o=i.primary,r=i.secondary;n.batch(function(){t.forEachRow(function(t){var i=t._ref.topLeft.row,a=n.rowHeight(i);t.forEachCell(function(t,i,l){var d,c,u,h,p=new s(t,i).print();r[p]||(d=o[p],c=d?n._columns.sum(d.topLeft.col,d.bottomRight.col):n.columnWidth(i),u=l.value,l.format&&null!=u&&(u=e.spreadsheet.formatting.format(u,l.format)),h=e.spreadsheet.util.getTextHeight(u,c,l.fontFamily,l.fontSize,l.wrap),a=Math.max(a,h))}),n.rowHeight(i,a)})},{layout:!0})},forEachCell:function(e){this._ref.forEach(function(t){this._sheet.forEach(t.toRangeRef(),e.bind(this))}.bind(this))},hasValue:function(){var t=this._sheet._defaultCellStyle;return e.util.withExit(function(e){this.forEachCell(function(n,i,o){var r,a;for(r in o)a=o[r],void 0!==a&&null!==a&&a!==t[r]&&e(!0)})},this)},wrap:function(e){return void 0===e?!!this._property("wrap"):(this._property("wrap",e),null!==e&&this._adjustRowHeight(),this)},fontSize:function(e){return void 0===e?this._property("fontSize"):(this._property("fontSize",e),null!==e&&this._adjustRowHeight(),this)},draw:function(e,t){this._sheet.draw(this,e,t)},insideBorders:function(e){return this.insideVerticalBorders(e).insideHorizontalBorders(e)},insideVerticalBorders:function(e){return this._ref.forEach(function(t){t instanceof l&&t.width()>1&&(t=t.clone(),t.topLeft.col++,this._sheet.range(t)._set("vBorders",e))},this),this},insideHorizontalBorders:function(e){return this._ref.forEach(function(t){t instanceof l&&t.height()>1&&(t=t.clone(),t.topLeft.row++,this._sheet.range(t)._set("hBorders",e))},this),this}}),r.each(d,function(e,t){c.prototype[t]=function(e){return this._property(t,e)}}),u=r('<div style="position: absolute !important; top: -4000px !important; height: auto !important;padding: 1px 3px !important; box-sizing: border-box; margin: 0 !important; border: 1px solid black !important;line-height: normal !important; visibility: hidden !important;white-space: pre-wrap;"></div>')[0],e.spreadsheet.util={getTextHeight:o},e.spreadsheet.Range=c)}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/runtime.min",["spreadsheet/references.min"],e)}(function(){"use strict";function e(t){return t instanceof e?t:void(this.code=t)}function t(e,t,n){for(var i,o=n(e),r=e;++e<t;)i=n(e),i>o&&(o=i,r=e);return r}function n(e,t){if(e.constructor!==t.constructor)return!1;if(e instanceof I)return e.sheet==t.sheet&&e.row==t.row&&e.col==t.col&&e.rel==t.rel;if(e instanceof M)return n(e.topLeft,t.topLeft)&&n(e.bottomRight,t.bottomRight)&&e.endSheet==t.endSheet;if(e instanceof R){var i=e.refs.length;if(i!=t.refs.length)return!1;for(;--i>=0;)if(!n(e.refs[i],t.refs[i]))return!1}return!0}function i(t,n){function i(e){var t,n,o,a,c;return d=e[0],t="{ ",Array.isArray(d)?(h+="while (i < args.length) { ",p+="while (i < args.length) { ",t+="xargs.push(tmp = []); stack.push(xargs); xargs = tmp; ",t+="while (i < args.length) { ",t+=e.map(i).join(""),t+="} ",t+="xargs = stack.pop(); ",p+="} ",h+="} "):"+"==d?(h+="while (i < args.length) { ",p+="while (i < args.length) { ",t+="if (i >= args.length) return new CalcError('N/A'); ",t+="xargs.push(tmp = []); stack.push(xargs); xargs = tmp; ",t+="do { ",t+=e.slice(1).map(i).join(""),t+="} while (i < args.length); ",t+="xargs = stack.pop(); ",p+="} ",h+="} "):"?"==d?t+="if (!("+l(e[1])+")) return new CalcError(err); ":(n=e[1],Array.isArray(n)&&/^#?collect/.test(n[0])?(o=/!$/.test(n[0]),a=n[2],r(),t+="try {var $"+d+" = this.cellValues(args.slice(i",a&&(t+=", i + "+a),t+=")"+(o?",true":"")+").reduce(function(ret, $"+d+"){ ","#"!=n[0].charAt(0)&&(t+="if ($"+d+" instanceof CalcError) throw $"+d+"; "),t+="if ("+l(n[1])+") ret.push($"+d+"); ",t+="return ret; ",t+="}.bind(this), []); ",t+=a?"i += "+a+"; ":"i = args.length; ",t+="xargs.push($"+d+")} catch(ex) { if (ex instanceof CalcError) return ex; throw ex; } ",p+="toResolve.push(args.slice(i)); "):"rest"==n?t+="xargs.push(args.slice(i)); i = args.length; ":((g=/^\*/.test(d))&&(v=!0,d=d.substr(1)),t+="var $"+d+" = args[i++]; ",c=!1,/!$/.test(n)?(n=n.substr(0,n.length-1),c=!0):t+="if ($"+d+" instanceof CalcError) return $"+d+"; ",t+=s(n,c)+"xargs.push($"+d+"); ")),t+="} "}function r(){return c?"$"+d:(m=!0,c=!0,p+="toResolve.push(args[i++]); ","($"+d+" = this.force($"+d+"))")}function a(e){return"("+(e?"(typeof "+r()+" == 'number' ? ($"+d+" = round($"+d+"), true) : false) || ":"(typeof "+r()+" == 'number') || ")+"(typeof $"+d+" == 'boolean' ? ($"+d+" = +$"+d+", true) : false) || (typeof $"+d+" == 'string' && !/^(?:=|true|false)/i.test($"+d+") ? (tmp = kendo.spreadsheet.calc.parse(0, 0, 0, $"+d+"), /^date|number|percent$/.test(tmp.type) ? ($"+d+" = +tmp.value, true) : false) : false))"}function s(e,t){c=!1;var n="if (!("+l(e)+")) { ";return c&&!t&&(n+=" if ($"+d+" instanceof CalcError) return $"+d+"; "),n+="return new CalcError(err); } ",c||(p+="i++; "),h+=g?"var $"+d+" = this._arrayArg(args[i]); if ($"+d+") { xargs.push($"+d+"); width = Math.max(width, $"+d+".width); height = Math.max(height, $"+d+".height); arrays.push(true) } else { xargs.push(args[i]); arrays.push(false); } i++; ":"xargs.push(args[i++]); arrays.push(false); ",n}function l(e){if(Array.isArray(e)){if("or"==e[0])return"("+e.slice(1).map(l).join(") || (")+")";if("and"==e[0])return"("+e.slice(1).map(l).join(") && (")+")";if("values"==e[0])return"("+e.slice(1).map(function(e){return r()+" === "+e}).join(") || (")+")";if("null"==e[0])return"("+l("null")+" ? (($"+d+" = "+e[1]+"), true) : false)";if("between"==e[0]||"[between]"==e[0])return"("+r()+" >= "+e[1]+" && $"+d+" <= "+e[2]+" ? true : ((err = 'NUM'), false))";if("(between)"==e[0])return"("+r()+" > "+e[1]+" && $"+d+" < "+e[2]+" ? true : ((err = 'NUM'), false))";if("(between]"==e[0])return"("+r()+" > "+e[1]+" && $"+d+" <= "+e[2]+" ? true : ((err = 'NUM'), false))";if("[between)"==e[0])return"("+r()+" >= "+e[1]+" && $"+d+" < "+e[2]+" ? true : ((err = 'NUM'), false))";if("assert"==e[0]){var t=e[2]||"N/A";return"(("+e[1]+") ? true : (err = "+JSON.stringify(t)+", false))"}if("not"==e[0])return"!("+l(e[1])+")";throw Error("Unknown array type condition: "+e[0])}if("number"==e||"datetime"==e)return a(!0);if("number!"==e)return"(typeof "+r()+" == 'number' ? ($"+d+" = round($"+d+"), true) : false)";if("integer"==e||"date"==e)return"("+a()+" && (($"+d+" |= 0), true))";if("divisor"==e)return"("+a(!0)+" && ($"+d+" == 0 ? ((err = 'DIV/0'), false) : true))";if("number+"==e)return"("+a(!0)+" && ($"+d+" >= 0 ? true : ((err = 'NUM'), false)))";if("integer+"==e)return"("+a()+" && (($"+d+" |= 0) >= 0 ? true : ((err = 'NUM'), false)))";if("number++"==e)return"("+a(!0)+" && ($"+d+" > 0 ? true : ((err = 'NUM'), false)))";if("integer++"==e)return"("+a()+" && (($"+d+" |= 0) > 0 ? true : ((err = 'NUM'), false)))";if("string"==e)return"((typeof "+r()+" == 'string' || typeof $"+d+" == 'boolean' || typeof $"+d+" == 'number') ? ($"+d+" += '', true) : ($"+d+" === undefined ? (($"+d+" = ''), true) : false))";if("boolean"==e)return"(typeof "+r()+" == 'boolean')";if("logical"==e)return"(typeof "+r()+" == 'boolean' || (typeof $"+d+" == 'number' ? ($"+d+" = !!$"+d+", true) : false))";if("matrix"==e)return r(),"((m = this.asMatrix($"+d+")) ? ($"+d+" = m) : false)";if("#matrix"==e)return"((m = this.asMatrix($"+d+")) ? ($"+d+" = m) : false)";if("ref"==e)return"($"+d+" instanceof kendo.spreadsheet.Ref)";if("area"==e)return"($"+d+" instanceof kendo.spreadsheet.CellRef || $"+d+" instanceof kendo.spreadsheet.RangeRef)";if("cell"==e)return"($"+d+" instanceof kendo.spreadsheet.CellRef)";if("null"==e)return"("+r()+" == null)";if("anyvalue"==e)return"("+r()+" != null && i <= args.length)";if("forced"==e)return"("+r()+", i <= args.length)";if("anything"==e)return"(i <= args.length)";if("blank"==e)return"("+r()+" == null || $"+d+" === '')";throw Error("Can't check for type: "+e)}var d,c,u,h="function arrayArgs(args) { var xargs = [], width = 0, height = 0, arrays = [], i = 0; ",p="function resolve(args, callback) { var toResolve = [], i = 0; ",f="'use strict'; function check(args) { var stack = [], tmp, xargs = [], i = 0, m, err = 'VALUE'; ",m=!1,g=!1,v=!1;return f+=n.map(i).join(""),f+="if (i < args.length) return new CalcError('N/A'); ",f+="return xargs; } ",h+="return { args: xargs, width: width, height: height, arrays: arrays }; } ",m?(p+="this.resolveCells(toResolve, callback); } ",u=Function("CalcError","round",f+p+h+" return { resolve: resolve, check: check, arrayArgs: arrayArgs };")):u=Function("CalcError","round",f+" return { check: check };"),u=u(e,o),v||delete u.arrayArgs,u}function o(e){return e===parseInt(e,10)?e:+e.toPrecision(14)}function r(e){return"number"==typeof e?o(e):e}function a(t,n,i){if(i instanceof e)return i;try{return n.apply(t,i)}catch(o){if(o instanceof e)return o;throw o}}function s(e,t,n,i){return function(o,r){function s(){var t,s,l,d,c,u;if(i&&(t=i.call(this,r),r=t.args,t.width>0&&t.height>0)){for(s=new z(this),l=0;l<t.height;++l)for(d=0;d<t.width;++d){for(c=[],u=0;u<r.length;++u)c[u]=t.arrays[u]?r[u].getNA(l,d):r[u];c=n.call(this,c),s.set(l,d,a(this,e,c))}return o(s)}c=n.call(this,r),o(a(this,e,c))}t?t.call(this,r,s):s.call(this)}}function l(t,n,i,o){return function(r,a){function s(){var n,s,l,d,c,u,h,p;if(o&&(n=o.call(this,a),a=n.args,n.width>0&&n.height>0))for(s=new z(this),l=n.width*n.height,d=function(e,t){return function(n){if(s.set(e,t,n),--l,0===l)return r(s)}},c=0;c<n.height&&l>0;++c)for(u=0;u<n.width&&l>0;++u){for(h=[],p=0;p<a.length;++p)h[p]=n.arrays[p]?a[p].getNA(c,u):a[p];if(h=i.call(this,h),h instanceof e){if(s.set(c,u,h),--l,0===l)return r(s)}else h.unshift(d(c,u)),t.apply(this,h)}else n=i.call(this,a),n instanceof e?r(n):(n.unshift(r),t.apply(this,n))}n?n.call(this,a,s):s.call(this)}}function d(e,t){return e=e.toLowerCase(),L[e]=t,{args:function(n,o){var r,a=i(e,n);return o&&(a.arrayArgs&&console.log(""+a.arrayArgs),a.resolve&&console.log(""+a.resolve),a.check&&console.log(""+a.check)),r=L[e]=s(t,a.resolve,a.check,a.arrayArgs),r.kendoSpreadsheetArgs=n,this},argsAsync:function(n,o){var r,a=i(e,n);return o&&(a.arrayArgs&&console.log(""+a.arrayArgs),a.resolve&&console.log(""+a.resolve),a.check&&console.log(""+a.check)),r=L[e]=l(t,a.resolve,a.check,a.arrayArgs),r.kendoSpreadsheetArgs=n,this}}}function c(e,t,n){return t++,(1461*(e+4800+((t-14)/12|0))/4|0)+(367*(t-2-12*((t-14)/12|0))/12|0)-(3*((e+4900+((t-14)/12|0))/100|0)/4|0)+n-32075}function u(e){var t,n,i,o,r,a,s;return t=e+68569,n=4*t/146097|0,t-=(146097*n+3)/4|0,o=4e3*(t+1)/1461001|0,t=t-(1461*o/4|0)+31,i=80*t/2447|0,a=t-(2447*i/80|0),t=i/11|0,r=i+2-12*t,s=100*(n-49)+o+t,r--,{year:s,month:r,date:a,day:(e+1)%7,ord:O[h(s)][r]+a}}function h(e){return e%4?0:e%100?1:e%400?0:1}function p(e){return h(e)?366:365}function f(e,t){return h(e)&&1==t?29:N[t]}function m(e,t,n){return t>=1&&t<=12&&n>=1&&n<=f(e,t-1)}function g(e){return u((0|e)+H)}function v(e,t,n){return c(e,t,n)-H}function _(e){var t,n,i,o,r=e-(0|e);return r<0&&r++,t=Math.round(U*r),n=Math.floor(t/W),t-=n*W,i=Math.floor(t/V),t-=i*V,o=Math.floor(t/1e3),t-=1e3*o,{hours:n,minutes:i,seconds:o,milliseconds:t}}function b(e){var t=g(e),n=_(e);return new Date(t.year,t.month,t.date,n.hours,n.minutes,n.seconds,n.milliseconds)}function w(e,t,n,i){return(e+(t+(n+i/1e3)/60)/60)/24}function k(e){var t=w(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return e=v(e.getFullYear(),e.getMonth(),e.getDate()),e<0?e-1+t:e+t}function y(e,t){return t&&(t=kendo.spreadsheet.formatting.makeDateFormat(t)),kendo.parseExactDate(e,t)||kendo.parseExactDate(e)||kendo.parseExactDate(e,["MMMM dd yyyy","MMMM dd yy","MMM dd yyyy","MMM dd yy","dd MMMM yyyy","dd MMMM yy","dd MMM yyyy","dd MMM yy","MMMM dd, yyyy","MMMM dd, yy","MMM dd, yyyy","MMM dd, yy","MMMM dd","MMM dd","MMMM yyyy","MMM yyyy","dd MMMM","dd MMM"])}function x(e,t){return e="string"==typeof e?e.toLowerCase():e,t="string"==typeof t?t.toLowerCase():t,e===!1&&null==t||(t===!1&&null==e||(0===e&&null==t||(0===t&&null==e||(""===e&&null==t||(""===t&&null==e||e===t)))))}function C(t){return function(n,i){return"string"==typeof n&&"string"!=typeof i&&(i=null==i?"":i+""),"string"!=typeof n&&"string"==typeof i&&(n=null==n?"":n+""),"number"==typeof n&&null==i&&(i=0),"number"==typeof i&&null==n&&(n=0),"string"==typeof n&&"string"==typeof i&&(n=n.toLowerCase(),i=i.toLowerCase()),typeof i==typeof n?t(n,i):new e("VALUE")}}var S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U,j,q,G;kendo.support.browser.msie&&kendo.support.browser.version<9||(S={},T=kendo.spreadsheet,T.calc=S,D=S.runtime={},A=kendo.Class,E=T.Ref,I=T.CellRef,M=T.RangeRef,R=T.UnionRef,F=T.NULLREF,e.prototype.toString=function(){return"#"+this.code+("NAME"==this.code?"?":"!")},P=A.extend({init:function(e,t,n,i){this.callback=e,this.formula=t,this.ss=n,this.parent=i},resolve:function(e){var t=this;e instanceof E?t.resolveCells([e],function(){t._resolve(e)}):t._resolve(e)},error:function(t){return new e(t)},_resolve:function(e){e=void 0===e?null:Array.isArray(e)?this.asMatrix(e):r(e);var t=this.formula;t.arrayFormulaRange?e=this.asMatrix(e)||this.asMatrix([[e]]):e instanceof M&&(e=this._arrayArg(e)),t.value=e,this.ss.onFormula(t)&&this.callback&&this.callback.call(t,e)},resolveCells:function(e,t){function n(e){e.exec(a.ss,function(){--o||t.call(a)},a)}function i(e){var t,n;for(t=0;t<e.length;++t)n=e[t],n.formula&&s.push(n.formula);return!0}var o,r,a=this,s=[];if(function l(e){var t,n;for(t=0;t<e.length;++t)n=e[t],n instanceof E&&i(a.getRefCells(n)),Array.isArray(n)&&l(n)}(e),!s.length)return t.call(a);for(o=s.length,r=0;r<s.length;++r)n(s[r])},cellValues:function(e,t){var n,i,o=[];for(n=0;n<e.length;++n)i=e[n],i instanceof E?(i=this.getRefData(i,t),o=o.concat(i)):Array.isArray(i)?o=o.concat(this.cellValues(i,t)):i instanceof z?o=o.concat(this.cellValues(i.data,t)):o.push(i);return o},fetchName:function(t,n){var i,o=this.formula,r=this.ss.nameValue(t,o.sheet,o.row,o.col);r instanceof B?(r=r.clone(o.sheet,o.row,o.col,!0),i=new T.ValidationFormulaContext(this.ss.workbook),r.exec(i,n,this)):(r instanceof E&&(r=r.absolute(o.row,o.col),r.sheet||(r.sheet=o.sheet)),n(null==r?new e("NAME"):r))},force:function(e){return e instanceof E?this.getRefData(e):e},func:function(t,n,i){t=t.toLowerCase();var o=L[t];return o?o.call(this,n,i):void n(new e("NAME"))},bool:function(e){return e instanceof E&&(e=this.getRefData(e)),"string"==typeof e?"true"==e.toLowerCase():"number"==typeof e?0!==e:"boolean"==typeof e?e:null!=e},_arrayArg:function(t){var n=this.formula;return!n.arrayFormulaRange&&t instanceof M?1==t.height()&&n.col>=t.topLeft.col&&n.col<=t.bottomRight.col?this.getRefData(new I(t.topLeft.row,n.col).setSheet(t.sheet)):1==t.width()&&n.row>=t.topLeft.row&&n.row<=t.bottomRight.row?this.getRefData(new I(n.row,t.topLeft.col).setSheet(t.sheet)):new e("VALUE"):this.asMatrix(t);
},asMatrix:function(e){var t,n,i,o,r,a,s;return e instanceof z?e:(t=this,e instanceof M?(n=e.topLeft,i=n.row,o=n.col,r=t.getRefCells(e),a=new z(t),isFinite(e.width())&&(a.width=e.width()),isFinite(e.height())&&(a.height=e.height()),isFinite(i)||(i=0),isFinite(o)||(o=0),r.forEach(function(e){a.set(e.row-i,e.col-o,e.value)}),a):Array.isArray(e)&&e.length>0?(a=new z(t),s=0,e.forEach(function(e){var n=0,i=1;e.forEach(function(e){var o=e instanceof M;e instanceof E&&!o&&(e=t.getRefData(e)),(o||Array.isArray(e))&&(e=t.asMatrix(e)),e instanceof z?(e.each(function(e,t,i){a.set(s+t,n+i,e)}),i=Math.max(i,e.height),n+=e.width):a.set(s,n++,e)}),s+=i}),a):void 0)},getRefCells:function(e,t,n){var i=this.formula;return this.ss.getRefCells(e,t,i.sheet,i.row,i.col,n)},getRefData:function(e,t){var n=this.formula;return this.ss.getData(e,n.sheet,n.row,n.col,t)},workbook:function(){return this.ss.workbook}}),z=A.extend({init:function(e){this.context=e,this.height=0,this.width=0,this.data=[]},clone:function(){var e=new z(this.context);return e.height=this.height,e.width=this.width,e.data=this.data.map(function(e){return e.slice()}),e},get:function(e,t){var n=this.data[e],i=n?n[t]:null;return i instanceof E?this.context.getRefData(i):i},getNA:function(t,n){return t<this.height&&n<this.width?this.get(t,n):new e("N/A")},set:function(e,t,n){var i=this.data[e];null==i&&(i=this.data[e]=[]),i[t]=n,e>=this.height&&(this.height=e+1),t>=this.width&&(this.width=t+1)},each:function(e,t){var n,i,o;for(n=0;n<this.height;++n)for(i=0;i<this.width;++i)if(o=this.get(n,i),(t||null!=o)&&(o=e.call(this.context,o,n,i),void 0!==o))return o},map:function(e,t){var n=new z(this.context);return this.each(function(t,i,o){n.set(i,o,e.call(this,t,i,o))},t),n},eachRow:function(e){var t,n;for(t=0;t<this.height;++t)if(n=e.call(this.context,t),void 0!==n)return n},eachCol:function(e){var t,n;for(t=0;t<this.width;++t)if(n=e.call(this.context,t),void 0!==n)return n},mapRow:function(e){var t=new z(this.context);return this.eachRow(function(n){t.set(n,0,e.call(this.context,n))}),t},mapCol:function(e){var t=new z(this.context);return this.eachCol(function(n){t.set(0,n,e.call(this.context,n))}),t},toString:function(){return JSON.stringify(this.data)},transpose:function(){var e=new z(this.context);return this.each(function(t,n,i){e.set(i,n,t)}),e},unit:function(e){var t,n,i,o;for(this.width=this.height=e,t=this.data=Array(e),n=e;--n>=0;)for(i=t[n]=Array(e),o=e;--o>=0;)i[o]=n==o?1:0;return this},multiply:function(t){var n,i,o,r,a,s,l=this,d=new z(l.context);for(n=0;n<l.height;++n)for(i=0;i<t.width;++i){for(o=0,r=0;r<l.width;++r){if(a=l.get(n,r),s=t.get(r,i),"number"!=typeof a||"number"!=typeof s)throw new e("VALUE");o+=a*s}d.set(n,i,o)}return d},adds:function(e,t){var n,i,o,r,a=this,s=new z(a.context),l=t?-1:1;for(n=0;n<a.height;++n)for(i=0;i<a.width;++i)o=a.get(n,i),r=e.get(n,i),s.set(n,i,o+l*r);return s},determinant:function(){var e,t,n,i,o,r=this.clone().data,a=r.length,s=1;for(e=0;e<a;e++){for(t=e;t<a&&!r[t][e];t++);if(t==a)return 0;if(t!=e)for(s=-s,i=e;i<a;i++)o=r[e][i],r[e][i]=r[t][i],r[t][i]=o;for(n=e+1;n<a;n++)for(i=e+1;i<a;i++)r[n][i]-=r[e][i]*r[n][e]/r[e][e];s*=r[e][e]}return s},inverse:function(){var e,n,i,o,r,a,s=this.width,l=this.augment(new z(this.context).unit(s)),d=l.data;for(n=0;n<s;++n){if(i=t(n,s,function(e){return d[e][n]}),!d[i][n])return null;for(n!=i&&(e=d[n],d[n]=d[i],d[i]=e),o=n+1;o<s;++o){for(r=n+1;r<2*s;++r)d[o][r]-=d[n][r]*d[o][n]/d[n][n];d[o][n]=0}}for(o=0;o<s;++o)for(a=d[o][o],r=0;r<2*s;++r)d[o][r]/=a;for(n=s;--n>=0;)for(o=n;--o>=0;)if(d[o][n])for(r=2*s;--r>=s;)d[o][r]-=d[n][r]*d[o][n];return l.slice(0,s,s,s)},augment:function(e){var t=this.clone(),n=t.width;return e.each(function(e,i,o){t.set(i,o+n,e)}),t},slice:function(e,t,n,i){var o,r,a=new z(this.context);for(o=0;o<n;++o)for(r=0;r<i;++r)a.set(o,r,this.get(e+o,t+r));return a}}),B=A.extend({init:function(e,t,n,i,o,r,a){this.refs=e,this.handler=t,this.print=n,this.absrefs=null,this.sheet=i,this.row=o,this.col=r,this.onReady=[],this.pending=!1,this.arrayFormulaRange=a},setArrayFormulaRange:function(e){this.arrayFormulaRange=e.clone().setSheet(this.sheet)},clone:function(e,t,n,i){var o=e.toLowerCase(),r=this.refs,a=this.arrayFormulaRange;return(i||o!=this.sheet.toLowerCase())&&(r=r.map(function(t){return t.hasSheet()||t.sheet&&t.sheet.toLowerCase()==o||(t=t.clone().setSheet(e)),t}),a&&(a=a.clone().setSheet(e))),new B(r,this.handler,this.print,e,t,n,a)},deepClone:function(){var e=this.refs.map(function(e){return e.clone()});return new B(e,this.handler,this.print,this.sheet,this.row,this.col,this.arrayFormulaRange)},resolve:function(e){this.pending=!1,this.onReady.forEach(function(t){t(e)})},exec:function(t,n,i){var o,r,a;if("value"in this)n&&n(this.value);else{for(n&&this.onReady.push(n),o=new P(this.resolve,this,t,i),r=0;i;){if(i.formula===this)return this.pending=!1,void o.resolve(new e("CIRCULAR"));i=i.parent,++r}if(this.pending)return;this.pending=!0,a=function(){this.absrefs||(this.absrefs=this.refs.map(function(e){return e.absolute(this.row,this.col)},this)),this.handler.call(o)}.bind(this),r<20?a():setTimeout(a,0)}},reset:function(){this.onReady=[],this.pending=!1,delete this.value},renameSheet:function(e,t){e=e.toLowerCase(),this.absrefs=null,this.sheet.toLowerCase()==e&&(this.sheet=t),this.refs.forEach(function(n){n.renameSheet(e,t)})},adjust:function(e,t,i,o){function r(n){return n===F?n:n.sheet.toLowerCase()!=e?(d&&("row"==t&&a>=i&&(n=n.relative(o,0)),"col"==t&&s>=i&&(n=n.relative(0,o))),n):n.adjust(a,s,c,u,"row"==t,i,o)}var a,s,l,d,c,u,h,p,f;if(e=e.toLowerCase(),a=this.row,s=this.col,l=this.sheet.toLowerCase(),d=!1,l==e&&("row"==t&&a>=i&&(this.row+=o,d=!0),"col"==t&&s>=i&&(this.col+=o,d=!0)),c=this.row,u=this.col,this.absrefs=null,h=this.refs,p=d,this.refs=h.map(function(e){var t=r(e);return p||n(t,e)||(p=!0),t}),f=this.arrayFormulaRange,f&&(this.arrayFormulaRange=r(f),p||n(f,this.arrayFormulaRange)||(p=!0)),p)return new B(h,this.handler,this.print,this.sheet,a,s,f)},toString:function(){return this.print(this.row,this.col)}}),L=Object.create(null),L["if"]=function(t,n){var i=this,o=n[0],r=n[1],a=n[2];this.resolveCells([o],function(){var n=i.asMatrix(o);n?r(function(o){a(function(r){var a=i.asMatrix(o),s=i.asMatrix(r);t(n.map(function(t,n,l){return t instanceof e?t:i.bool(t)?a?a.get(n,l):o:s?s.get(n,l):r}))})}):(o=this.force(o),o instanceof e?t(o):i.bool(o)?r(t):a(t))})},L["φ"]=function(e){e((1+Math.sqrt(5))/2)},H=c(1900,0,-1),N=[31,28,31,30,31,30,31,31,30,31,30,31],O=[[0,31,59,90,120,151,181,212,243,273,304,334],[0,31,60,91,121,152,182,213,244,274,305,335]],V=6e4,W=60*V,U=24*W,D.CalcError=e,D.Formula=B,D.Matrix=z,D.packDate=v,D.unpackDate=g,D.packTime=w,D.unpackTime=_,D.serialToDate=b,D.dateToSerial=k,D.daysInMonth=f,D.validDate=m,D.isLeapYear=h,D.daysInYear=p,D.parseDate=y,D.limitPrecision=o,T.dateToNumber=k,T.numberToDate=b,T.defineFunction=d,T.CalcError=e,D.defineFunction=d,D.defineAlias=function(e,t){var n=L[t];if(!n)throw Error("Function "+t+" is not yet defined");n.kendoSpreadsheetAliases||(n.kendoSpreadsheetAliases=[t]),n.kendoSpreadsheetAliases.push(e),L[e]=n},D.FUNCS=L,j=["or","number",["null",0]],q=[["*a",j],["*b",j]],G=[["*a","forced"],["*b","forced"]],d("binary+",function(e,t){return e+t}).args(q),d("binary-",function(e,t){return e-t}).args(q),d("binary*",function(e,t){return e*t}).args(q),d("binary/",function(e,t){return e/t}).args([["*a",j],["*b","divisor"]]),d("binary^",function(e,t){return Math.pow(e,t)}).args(q),d("binary&",function(e,t){return null==e&&(e=""),null==t&&(t=""),""+e+t}).args([["*a",["or","number","string","boolean","null"]],["*b",["or","number","string","boolean","null"]]]),d("binary=",x).args(G),d("binary<>",function(e,t){return!x(e,t)}).args(G),d("binary<",C(function(e,t){return e<t})).args(G),d("binary<=",C(function(e,t){return e<=t})).args(G),d("binary>",C(function(e,t){return e>t})).args(G),d("binary>=",C(function(e,t){return e>=t})).args(G),d("unary+",function(e){return e}).args([["*a",j]]),d("unary-",function(e){return-e}).args([["*a",j]]),d("unary%",function(e){return e/100}).args([["*a",j]]),d("binary:",function(e,t){return new M(e,t).setSheet(e.sheet||this.formula.sheet,e.hasSheet())}).args([["a","cell"],["b","cell"]]),d("binary,",function(e,t){return new R([e,t])}).args([["a","ref"],["b","ref"]]),d("binary ",function(e,t){return e.intersect(t)}).args([["a","ref"],["b","ref"]]),d("not",function(e){return!this.bool(e)}).args([["*a",["or","anyvalue",["null",0]]]]),d("isblank",function(e){return e instanceof I&&(e=this.getRefData(e),null==e)}).args([["*value","anything!"]]),d("iserror",function(t){return t instanceof e}).args([["*value","forced!"]]),d("iserr",function(t){return t instanceof e&&"N/A"!=t.code}).args([["*value","forced!"]]),d("isna",function(t){return t instanceof e&&"N/A"==t.code}).args([["*value","forced!"]]),d("islogical",function(e){return"boolean"==typeof e}).args([["*value","forced!"]]),d("isnontext",function(e){return"string"!=typeof e}).args([["*value","forced!"]]),d("istext",function(e){return"string"==typeof e}).args([["*value","forced!"]]),d("isnumber",function(e){return"number"==typeof e}).args([["*value","forced!"]]),d("isref",function(e){return e instanceof I||e instanceof M}).args([["*value","anything!"]]),L[",getname"]=function(e,t){this.fetchName(t[0],e)})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/validation.min",["spreadsheet/runtime.min"],e)}(function(){"use strict";function e(e,t,o,s){var d,c,u,h;if("string"==typeof s&&(s=JSON.parse(s)),s.from&&("list"!==s.dataType||s.fromIsListValue||(s.from=kendo.format(r,s.from),s.fromIsListValue=!0),"date"===s.dataType&&(u=i.runtime.parseDate(s.from),u&&(s.from=kendo.format(a,s.from),s.fromIsDateValue=!0)),s.from=i.compile(i.parseFormula(e,t,o,s.from))),s.to&&("date"===s.dataType&&(h=i.runtime.parseDate(s.to),h&&(s.to=kendo.format(a,s.to),s.toIsDateValue=!0)),s.to=i.compile(i.parseFormula(e,t,o,s.to))),c="custom"==s.dataType?n.validationComparers.custom:"list"==s.dataType?n.validationComparers.list:n.validationComparers[s.comparerType],!c)throw kendo.format("'{0}' comparer is not implemented.",s.comparerType);return d=function(e){var t,n=this.to&&(this.to_value||0===this.to_value)?this.to_value:void 0;return null===e||""===e?this.value=!!this.allowNulls:"custom"==this.dataType?this.value=c(e,this.from_value,n):"list"==this.dataType?(t=this._getListData(),this.value=c(e,t,n)):this.value=c(e,this.from_value,n),this.value},new kendo.spreadsheet.validation.Validation(l.extend(s,{handler:d,sheet:e,row:t,col:o}))}var t,n,i,o,r,a,s,l=kendo.jQuery;kendo.support.browser.msie&&kendo.support.browser.version<9||(t=kendo.spreadsheet,n={},t.validation=n,i=t.calc,o=kendo.Class,r="_matrix({0})",a='DATEVALUE("{0}")',i.runtime.defineFunction("_matrix",function(e){return"string"==typeof e&&(e=this.asMatrix([e.split(/\s*,\s*/)])),e}).args([["m",["or","matrix","string"]]]),s=o.extend({init:function(e){this.handler=e.handler,this.from=e.from,this.to=e.to,this.dataType=e.dataType,this.comparerType=e.comparerType,this.type=e.type?e.type:"warning",this.allowNulls=!!e.allowNulls,this.fromIsDateValue=!!e.fromIsDateValue,this.toIsDateValue=!!e.toIsDateValue,this.showButton=e.showButton,this.fromIsListValue=!!e.fromIsListValue,this.sheet=e.sheet,this.row=e.row,this.col=e.col,e.tooltipMessageTemplate&&(this.tooltipMessageTemplate=e.tooltipMessageTemplate),e.tooltipTitleTemplate&&(this.tooltipTitleTemplate=e.tooltipTitleTemplate),e.messageTemplate&&(this.messageTemplate=e.messageTemplate),e.titleTemplate&&(this.titleTemplate=e.titleTemplate)},_formatMessages:function(e){var t=this.from?this.from_value:"",n=this.to?this.to_value:"",i=this.from?""+this.from:"",o=this.to?""+this.to:"",r=this.dataType,a=this.type,s=this.comparerType;return kendo.format(e,t,n,i,o,r,a,s)},_setMessages:function(){this.title="",this.message="",this.tooltipTitleTemplate&&(this.tooltipTitle=this._formatMessages(this.tooltipTitleTemplate)),this.tooltipMessageTemplate&&(this.tooltipMessage=this._formatMessages(this.tooltipMessageTemplate)),this.titleTemplate&&(this.title=this._formatMessages(this.titleTemplate)),this.messageTemplate&&(this.message=this._formatMessages(this.messageTemplate))},_getListData:function(){var e,t,n,i,o;if(!this.from_value||!this.from_value.data)return[];for(e=this.from_value.data,i=[],t=0;t<e.length;t++)if(o=e[t])for(n=0;n<o.length;n++)i.push(o[n]);return i},clone:function(e,t,n){var i=this._getOptions();return i.from&&(i.from=i.from.clone(e,t,n)),i.to&&(i.to=i.to.clone(e,t,n)),new s(l.extend(i,{handler:this.handler},{sheet:e,row:t,col:n}))},deepClone:function(){var e=new s(this);return e.from=e.from.deepClone(),e.to&&(e.to=e.to.deepClone()),e},exec:function(e,t,n,i){function o(t){return t instanceof kendo.spreadsheet.Ref&&(t=e.getData(t),Array.isArray(t)&&(t=t[0])),t}var r=this,a=function(e){r.from_value=o(e),r.value=r.handler.call(r,t,n),r._setMessages(),i&&i(r.value)};r.to?r.to.exec(e,function(t){r.to_value=o(t),r.from.exec(e,a)}):r.from.exec(e,a)},reset:function(){this.from&&this.from.reset(),this.to&&this.to.reset(),delete this.value},adjust:function(e,t,n,i){var o,r,a,l,d=this.row,c=this.col;if(this.from&&(o=this.from.adjust(e,t,n,i)),this.to&&(r=this.to.adjust(e,t,n,i)),this.sheet.toLowerCase()==e.toLowerCase())switch(t){case"row":d>=n&&(a=!0,this.row+=i);break;case"col":c>=n&&(a=!0,this.col+=i)}if(a||o||r)return l=new s(this),l.from=o,l.to=r,l.row=d,l.col=c,l},toJSON:function(){var e=this._getOptions();return e.from&&(e.from=""+e.from,"list"===e.dataType&&(e.from=e.from.replace(/^_matrix\((.*)\)$/i,"$1"),delete e.fromIsListValue),"date"===e.dataType&&this.fromIsDateValue&&(e.from=e.from.replace(/^DATEVALUE\("(.*)"\)$/i,"$1"),delete e.fromIsDateValue)),e.to&&(e.to=""+e.to,"date"===e.dataType&&this.toIsDateValue&&(e.to=e.to.replace(/^DATEVALUE\("(.*)"\)$/i,"$1"),delete e.toIsDateValue)),e},_getOptions:function(){return{from:this.from,to:this.to,dataType:this.dataType,type:this.type,comparerType:this.comparerType,row:this.row,col:this.col,sheet:this.sheet,allowNulls:this.allowNulls,fromIsListValue:this.fromIsListValue,fromIsDateValue:this.fromIsDateValue,toIsDateValue:this.toIsDateValue,tooltipMessageTemplate:this.tooltipMessageTemplate,tooltipTitleTemplate:this.tooltipTitleTemplate,messageTemplate:this.messageTemplate,titleTemplate:this.titleTemplate,showButton:this.showButton}}}),n.compile=e,n.validationComparers={greaterThan:function(e,t){return e>t},lessThan:function(e,t){return e<t},between:function(e,t,n){return e>=t&&e<=n},equalTo:function(e,t){return e==t},notEqualTo:function(e,t){return e!=t},greaterThanOrEqualTo:function(e,t){return e>=t},lessThanOrEqualTo:function(e,t){return e<=t},notBetween:function(e,t,n){return e<t||e>n},custom:function(e,t){return t},list:function(e,t){return t.indexOf(e)>-1}},n.Validation=s)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/sheet.min",["kendo.core.min","kendo.color.min","spreadsheet/runtime.min","spreadsheet/validation.min","spreadsheet/references.min"],e)}(function(){!function(e){var t,n,i,o,r,a,s,l;e.support.browser.msie&&e.support.browser.version<9||(t=e.spreadsheet.RangeRef,n=e.spreadsheet.UnionRef,i=e.spreadsheet.CellRef,o=e.spreadsheet.Range,a=e.Class.extend({init:function(t){this._sheet=t,this.selection=e.spreadsheet.FIRSTREF.toRangeRef(),this.originalSelection=e.spreadsheet.FIRSTREF.toRangeRef(),this._activeCell=e.spreadsheet.FIRSTREF.toRangeRef(),this.originalActiveCell=e.spreadsheet.FIRSTREF},currentSelectionRange:function(){return this.selection.rangeAt(this.selectionRangeIndex).toRangeRef()},currentOriginalNavigationRange:function(){return this.originalSelection.rangeAt(this.selectionRangeIndex).toRangeRef()},currentNavigationRange:function(){return this.singleCellSelection()?this._sheet._sheetRef:this.selection.rangeAt(this.selectionRangeIndex).toRangeRef()},nextNavigationRange:function(){return this.singleCellSelection()||(this.selectionRangeIndex=this.selection.nextRangeIndex(this.selectionRangeIndex)),this.currentNavigationRange()},previousNavigationRange:function(){return this.singleCellSelection()||(this.selectionRangeIndex=this.selection.previousRangeIndex(this.selectionRangeIndex)),this.currentNavigationRange()},activeCell:function(e){return e&&(this.originalActiveCell=e.first(),this._activeCell=this._sheet.unionWithMerged(e.toRangeRef()),this._sheet.focus(e),this._sheet.triggerChange({activeCell:!0,selection:!0})),this._activeCell},select:function(n,r,a,s){var l,d,c,u,h,p,f;if(n){if(n.eq(this.originalSelection))return;if(this._sheet.triggerSelect(new o(n,this._sheet)),this.originalSelection=n,this.selection=r,a!==!1){if(n.isCell())this._sheet.forEachMergedCell(n,function(e){n=e.topLeft}),this.activeCell(n);else{if(n=this.selection.lastRange(),s&&s._sheet===this._sheet&&s.panes[0]){for(l=s.panes,d=0;d<l.length&&(c=l[d],u=c._currentView.rows.values,h=c._currentView.columns.values,p=new t(new i(u.start,h.start),new i(u.end,h.end)),f=n.intersect(p),f===e.spreadsheet.NULLREF);d++);f&&f!==e.spreadsheet.NULLREF&&(n=f)}this.activeCell(n.first())}this.selectionRangeIndex=this.selection.size()-1}else this._sheet.triggerChange({selection:!0})}return this.selection},singleCellSelection:function(){return this._activeCell.eq(this.selection)}}),s=e.Observable.extend({init:function(){e.Observable.prototype.init.call(this),this._reinit.apply(this,arguments)},events:["changing","commandRequest","afterInsertRow","afterDeleteRow","insertRow","insertColumn","deleteRow","deleteColumn","hideRow","hideColumn","unhideRow","unhideColumn","select","dataBinding","dataBound"],_reinit:function(t,n,i,o,r,s,l){l=l||{},this._defaultCellStyle={background:l.background,color:l.color,fontFamily:l.fontFamily,fontSize:l.fontSize,italic:l.italic,bold:l.bold,underline:l.underline,wrap:l.wrap,verticalAlign:l.verticalAlign,textAlign:l.textAlign},this._rows=new e.spreadsheet.Axis(t,i),this._columns=new e.spreadsheet.Axis(n,o),this._filteredRows=new e.spreadsheet.RangeList(0,t-1,(!1)),this._mergedCells=[],this._frozenRows=0,this._frozenColumns=0,this._suspendChanges=!1,this._filter=null,this._showGridLines=!0,this._gridLinesColor=null,this._grid=new e.spreadsheet.Grid(this._rows,this._columns,t,n,r,s),this._sheetRef=this._grid.normalize(e.spreadsheet.SHEETREF),this._properties=new e.spreadsheet.PropertyBag(t,n,this._defaultCellStyle),this._sorter=new e.spreadsheet.Sorter(this._grid,this._properties.sortable()),this._viewSelection=new a(this),this._editSelection=new a(this),this._formulaSelections=[],this._drawings=[]},_selectionState:function(){return this._inEdit?this._editSelection:this._viewSelection},navigator:function(){return this._navigator||(this._navigator=new e.spreadsheet.SheetNavigator(this)),this._navigator},axisManager:function(){return this._axisManager||(this._axisManager=new e.spreadsheet.AxisManager(this)),this._axisManager},_name:function(e){return e?(this._sheetName=e,this):this._sheetName},name:function(){return this._name()},_property:function(e,t,n){return void 0===t?e():(e(t),this.triggerChange(n))},_field:function(e,t,n){return void 0===t?this[e]:(this[e]=t,this.triggerChange(n))},suspendChanges:function(e){return void 0===e?this._suspendChanges:(this._suspendChanges=e,this)},triggerChange:function(e){return this._suspendChanges||this.trigger("change",e),this},triggerSelect:function(e){this.trigger("select",{range:e})},setDataSource:function(t,n){this.dataSourceBinder&&this.dataSourceBinder.destroy(),this.dataSourceBinder=new e.spreadsheet.SheetDataSourceBinder({dataSource:t,sheet:this,columns:n}),this.dataSource=this.dataSourceBinder.dataSource},hideColumn:function(e){if(!this.trigger("hideColumn",{index:e}))return this._property(this._columns.hide.bind(this._columns),e,{layout:!0})},unhideColumn:function(e){if(!this.trigger("unhideColumn",{index:e}))return this._property(this._columns.unhide.bind(this._columns),e,{layout:!0})},isHiddenColumn:function(e){return this._grid._columns.hidden(e)},_copyRange:function(e,t){var n=this._grid,i=n.rowCount,o=n.normalize(e.topLeft),r=n.normalize(e.bottomRight),a=o.col*i+o.row,s=r.col*i+r.row,l=t.col*i+t.row;this._properties.copy(a,s,l)},_saveModifiedFormulas:function(e,t){var n,i=r;return r=e,n=t(),r=i,n},_restoreModifiedFormulas:function(t){var n=this._workbook;t.forEach(function(t){var i,o=n.sheetByName(t.sheet);t instanceof e.spreadsheet.calc.runtime.Formula&&(i=o._grid.cellRefIndex(t),o._properties.set("formula",i,i,t)),t instanceof e.spreadsheet.validation.Validation&&(i=o._grid.cellRefIndex(t),o._properties.set("validation",i,i,t))})},_adjustReferences:function(n,i,o,a){var s,l,d;this._mergedCells=a.reduce(function(e,r){return r=r.adjust(null,null,null,null,"row"==n,i,o),r instanceof t&&e.push(r),e},[]),this._workbook&&(s=this._name(),this._workbook._sheets.forEach(function(e){e._forFormulas(function(e){var t=e.adjust(s,n,i,o);t&&r&&r.push(t)}),e._forValidations(function(e){var t=e.adjust(s,n,i,o);t&&r&&r.push(t)})}),this._workbook.adjustNames(s,"row"==n,i,o)),l=this.select(),l=l.adjust(null,null,null,null,"row"==n,i,o),l!==e.spreadsheet.NULLREF&&this.select(l),d="col"==n?this._columns:this._rows,d.adjust(i,o),"row"==n&&(o<0?this._filteredRows.copy(i-o,this._rows._count-1,i):(this._filteredRows.copy(i,this._rows._count,i+o),this._filteredRows.value(i,i+o-1,!1))),this._drawings.forEach(function(e){e.topLeftCell&&(e.topLeftCell=e.topLeftCell.adjust(null,null,null,null,"row"==n,i,o))})},_forFormulas:function(e){var t=this._properties,n=t.get("formula").values(),i=n.length;n.forEach(function(t,n){e.call(this,t.value,n,i)},this)},_forValidations:function(e){var t=this._properties;t.get("validation").values().forEach(function(t){e.call(this,t.value)},this)},preventInsertRow:function(e,t){var n,i;return this.selectedHeaders().allRows?{reason:"error",type:"insertRowWhenColumnIsSelected"}:(t=t||1,n=this._grid,i=this.range(n.rowCount-t,0,t,n.columnCount),!!i.hasValue()&&{reason:"error",type:"shiftingNonblankCells"})},preventInsertBelowLastRow:function(e,t){return t=t||1,e+t===this._rows._count&&{reason:"error",type:"insertRowBelowLastRow"}},preventInsertColumn:function(e,t){var n,i;return this.selectedHeaders().allCols?{reason:"error",type:"insertColumnWhenRowIsSelected"}:(t=t||1,n=this._grid,i=this.range(0,n.columnCount-t,n.rowCount,t),!!i.hasValue()&&{reason:"error",type:"shiftingNonblankCells"})},preventInsertAfterLastColumn:function(e,t){return t=t||1,e+t===this._columns._count&&{reason:"error",type:"insertColAfterLastCol"}},insertRow:function(e,n){var r=this.preventInsertRow(e);if(r)throw Error("Shifting nonblank cells off the worksheet is not supported!");if(!this.trigger("insertRow",{index:e}))return this.batch(function(){var n,r,a,s,l,d,c=this._grid,u=c.columnCount,h=c.rowCount,p=this.frozenRows();for(e<p&&this.frozenRows(p+1),n=this._mergedCells.slice(),r=0;r<u;r++)a=new t(new i(e,r),new i(e,r)),s=c.normalize(a.topLeft),l=c.normalize(a.bottomRight),d=new t(new i(s.row,s.col),new i(h-2,l.col)),this._copyRange(d,new i(s.row+1,s.col)),new o(a,this).clear({clearAll:!0,keepBorders:!0});this._adjustReferences("row",e,1,n)},{recalc:!0,layout:!0,insertRow:{index:e},ref:new t(new i(e,0),new i(1/0,1/0))}),n||this.trigger("afterInsertRow",{index:e}),this},isEnabledRow:function(e){var n=new t(new i(e,0),new i(e,this._grid.columnCount));return new o(n,this).enable()},deleteRow:function(e,n){if(!this.isEnabledRow(e))return this;if(!this.trigger("deleteRow",{index:e}))return this.batch(function(){var n,r,a,s,l,d,c,u=this._grid,h=u.columnCount,p=this.frozenRows();for(e<p&&this.frozenRows(p-1),n=this._mergedCells.slice(),r=0;r<h;r++)a=new t(new i(e,r),new i(e,r)),new o(a,this).clear({clearAll:!0,keepBorders:!0}),s=u.normalize(a.topLeft),l=u.normalize(a.bottomRight),d=new t(new i(s.row+1,s.col),new i(1/0,l.col)),this._copyRange(d,s),c=u.normalize(d.bottomRight),new o(new t(c,c),this).clear();this._adjustReferences("row",e,-1,n)},{recalc:!0,layout:!0,deleteRow:{index:e},ref:new t(new i(e,0),new i(1/0,1/0))}),n||this.trigger("afterDeleteRow",{index:e}),this},insertColumn:function(e){if(!this.trigger("insertColumn",{index:e}))return this.batch(function(){var n,r,a,s,l,d,c=this._grid,u=c.columnCount,h=this.frozenColumns();for(e<h&&this.frozenColumns(h+1),n=this._mergedCells.slice(),r=u;r>=e&&(a=new t(new i(0,r),new i(1/0,r)),new o(a,this).clear({clearAll:!0,keepBorders:!0}),r!=e);r--)s=c.normalize(a.topLeft),l=c.normalize(a.bottomRight),d=new t(new i(s.row,s.col-1),new i(l.row,l.col-1)),this._copyRange(d,s);this._adjustReferences("col",e,1,n)},{recalc:!0,layout:!0,insertColumn:{index:e},ref:new t(new i(0,e),new i(1/0,1/0))}),this},isEnabledColumn:function(e){var n=new t(new i(0,e),new i(1/0,e));return new o(n,this).enable()},deleteColumn:function(e){if(!this.isEnabledColumn(e))return this;if(!this.trigger("deleteColumn",{index:e}))return this.batch(function(){var n,r,a,s,l,d,c=this._grid,u=c.columnCount,h=this.frozenColumns();for(e<h&&this.frozenColumns(h-1),n=this._mergedCells.slice(),r=e;r<u&&(a=new t(new i(0,r),new i(1/0,r)),new o(a,this).clear({clearAll:!0,keepBorders:!0}),r!=u-1);r++)s=c.normalize(a.topLeft),l=c.normalize(a.bottomRight),d=new t(new i(s.row,s.col+1),new i(l.row,l.col+1)),this._copyRange(d,s);this._adjustReferences("col",e,-1,n)},{recalc:!0,layout:!0,deleteColumn:{index:e},ref:new t(new i(0,e),new i(1/0,1/0))}),this},_filterRow:function(e){this._rows.hide(e),this._filteredRows.value(e,e,!0),this.triggerChange({layout:!0})},hideRow:function(e){if(!this.trigger("hideRow",{index:e}))return this._property(this._rows.hide.bind(this._rows),e,{layout:!0})},unhideRow:function(e){if(!this.trigger("unhideRow",{index:e}))return this._property(this._rows.unhide.bind(this._rows),e,{layout:!0})},isHiddenRow:function(e){return this._grid._rows.hidden(e)},isFilteredRow:function(e){return this._filteredRows.value(e)},columnWidth:function(e,t){return this._property(this._columns.value.bind(this._columns,e,e),t,{layout:!0})},rowHeight:function(e,t){return this._property(this._rows.value.bind(this._rows,e,e),t,{layout:!0})},frozenRows:function(e){return this._field("_frozenRows",e,{layout:!0})},frozenColumns:function(e){return this._field("_frozenColumns",e,{layout:!0})},showGridLines:function(e){return this._field("_showGridLines",e,{layout:!0})},gridLinesColor:function(e){return this._field("_gridLinesColor",e,{layout:!0})},_ref:function(n,o,r,a){var s=null;return n instanceof e.spreadsheet.Ref?n:n instanceof e.spreadsheet.Range?n._ref.toRangeRef():("string"==typeof n?s=e.spreadsheet.calc.parseReference(n):(r||(r=1),a||(a=1),s=new t(new i(n,o),new i(n+r-1,o+a-1))),s)},range:function(e,t,n,i){return new o(this._ref(e,t,n,i),this)},_getMergedCells:function(e){var t=this._grid,n={},i={},o=!1;return this.forEachMergedCell(e,function(r){var a=r.topLeft;t.forEach(r,function(t){a.eq(t)?(n[t.print()]=r,o=!0):e.contains(t)&&(i[t.print()]=a,o=!0)})}),{primary:n,secondary:i,hasMerged:o}},forEachMergedCell:function(e,t){var n=!1;void 0===t&&(t=e,n=!0),this._mergedCells.forEach(function(i){(n||i.intersects(e))&&t(i)})},forEachFilterHeader:function(e,t){var n,i=!1;void 0===t&&(t=e,i=!0),this._filter&&(n=[],this._filter.ref.forEachColumn(function(t){(i||t.intersects(e))&&n.push(t.topLeft)}),this._mergedCells.forEach(function(e){n=n.map(function(t){return e.intersects(t)?e:t})}),n.reduce(function(e,t){return e.indexOf(t)<0&&e.push(t),e},[]).forEach(t))},forEach:function(e,i){function o(e){function n(e){i(l++,s,e)}var o,a,s,l,d,c;for(e instanceof t||(e=e.toRangeRef()),o=r._grid.normalize(e.topLeft),a=r._grid.normalize(e.bottomRight),s=o.col;s<=a.col;s++)l=o.row,d=r._grid.index(l,s),c=r._grid.index(a.row,s),r._properties.forEach(d,c,n)}var r=this;e instanceof t||(e=r._ref(e)),e instanceof n?e.forEach(o):o(e)},startResizing:function(e){this._initialPosition=e,this._resizeInProgress=!0},startAutoFill:function(){this._autoFillInProgress=!0;var e=this.select();this._autoFillOrigin=e,this._autoFillDest=e,this.triggerChange({selection:!0})},updateAutoFill:function(e,t,n,i){this._autoFillDest=e,this._autoFillPunch=t,this._autoFillHint=n,this._autoFillDirection=i,this.triggerChange({selection:!0})},autoFillRef:function(){return this._autoFillDest},autoFillPunch:function(){return this._autoFillPunch},autoFillInProgress:function(){return this._autoFillInProgress},resizingInProgress:function(){return this._resizeInProgress},draggingInProgress:function(){return this._draggingInProgress},completeResizing:function(){var e,t;this._resizeInProgress&&(this._resizeInProgress=!1,e=this.resizeHintPosition(),this._initialPosition&&e?(t=this.resizeHandlePosition(),t.col!==-(1/0)?this.trigger("commandRequest",{command:"ColumnWidthCommand",options:{target:t.col,value:this.columnWidth(t.col)-(this._initialPosition.x-e.x)}}):this.trigger("commandRequest",{command:"RowHeightCommand",options:{target:t.row,value:this.rowHeight(t.row)-(this._initialPosition.y-e.y)}})):this.trigger("change",{resize:!0}))},_renderComment:function(e){var t=e?this.range(e).comment():null;t?this._commentRef&&e.eq(this._commentRef)||(this._commentRef=e,this.trigger("change",{comment:!0})):this._commentRef&&(this._commentRef=null,this.trigger("change",{comment:!0}))},resizeHandlePosition:function(){return this._resizeHandlePosition},resizeHintPosition:function(e){return void 0!==e&&(this._resizeHintPosition=e,this.trigger("change",{resize:!0})),this._resizeHintPosition},removeResizeHandle:function(){this._resizeHandlePosition&&(this._resizeHintPosition=void 0,this._resizeHandlePosition=void 0,this._initialPosition=void 0,this.trigger("change",{resize:!0}))},positionResizeHandle:function(e){this._resizeHandlePosition=e,this.trigger("change",{resize:!0})},startDragging:function(e){this._draggingInProgress=e},completeDragging:function(){var e,t,n,o,r,a,s=this._draggingInProgress;if(s){if(this._draggingInProgress=null,e=s.drawing,e.eq(s.copy))return;e.topLeftCell&&(t=this.drawingBoundingBox(e),n=this._rows.indexVisible(t.top),o=this._columns.indexVisible(t.left),r=new i(n,o),a=this.refBoundingBox(r),e.offsetX=t.left-a.left,e.offsetY=t.top-a.top,e.topLeftCell=r,this.triggerChange({dragging:!0})),this.trigger("commandRequest",{command:"DrawingUpdateCommand",options:{sheet:this,drawing:e,previous:s.copy}})}},startSelection:function(e){this.frozenRows()||this.frozenColumns()?this._currentView=null:e&&e._sheet===this&&(this._currentView=e),this._selectionInProgress=!0},completeSelection:function(){var e,t;this._selectionInProgress&&(this._selectionInProgress=!1,this._resizeHintPosition=void 0,this.trigger("change",{selection:!0})),this._autoFillInProgress&&(this._autoFillInProgress=!1,e=this._autoFillDest,t=this._autoFillOrigin,this._autoFillPunch?this.trigger("commandRequest",{command:"ClearContentCommand",options:{operatingRange:this.range(this._autoFillPunch)}}):e.eq(t)?this.triggerChange({selection:!0}):this.trigger("commandRequest",{command:"AutoFillCommand",options:{operatingRange:this.range(e),origin:this.range(t)}}),this._autoFillDest=null,this._autoFillPunch=null,this._autoFillOrigin=null,this.select(e))},selectionInProgress:function(){return this._selectionInProgress},select:function(e,t){var n,i=this._selectionState();return e&&(e=this._ref(e),e=this._grid.normalize(e),n=this._grid.isAxis(e)?e:this.unionWithMerged(e)),i.select(e,n,t,this._currentView)},originalSelect:function(){return this._selectionState().originalSelection},currentSelectionRange:function(){return this._selectionState().currentSelectionRange()},currentOriginalSelectionRange:function(){return this._selectionState().currentOriginalNavigationRange()},currentNavigationRange:function(){return this._selectionState().currentNavigationRange()},nextNavigationRange:function(){return this._selectionState().nextNavigationRange()},previousNavigationRange:function(){return this._selectionState().previousNavigationRange()},selectionRangeIndex:function(){return this._selectionState().selectionRangeIndex},activeCell:function(e){
return this._selectionState().activeCell(e)},originalActiveCell:function(){return this._selectionState().originalActiveCell},singleCellSelection:function(){return this._selectionState().singleCellSelection()},unionWithMerged:function(e){var t=this._mergedCells;return e.map(function(e){return e.toRangeRef().union(t)})},trim:function(e){var t=[],n=this._grid;return this._properties.forEachProperty(function(i){t.push(n.trim(e,i.list))}),this.unionWithMerged(e.topLeft.toRangeRef().union(t))},focus:function(e){if(!e){var t=this._focus;return this._focus=null,t}this._focus=e.toRangeRef()},activeCellSelection:function(){return new o(this._grid.normalize(this.activeCell()),this)},selection:function(){return new o(this._grid.normalize(this._selectionState().selection),this)},selectedHeaders:function(){var e=this.select(),t={},n={},i=!1,o=!1,r=this._grid.rowCount-1,a=this._grid.columnCount-1;return e.forEach(function(e){var s,l,d,c,u,h="partial",p="partial";if(e=e.toRangeRef(),l=e.bottomRight,d=e.topLeft,c=d.col<=0&&l.col>=a,u=d.row<=0&&l.row>=r,u&&(o=!0,p="full"),c&&(i=!0,h="full"),!u)for(s=d.row;s<=l.row;s++)"full"!==t[s]&&(t[s]=h);if(!c)for(s=d.col;s<=l.col;s++)"full"!==n[s]&&(n[s]=p)}),{rows:t,cols:n,allRows:o,allCols:i,all:o&&i}},isInEditMode:function(e){return void 0===e?this._inEdit:(this._inEdit=e,void(e&&(this._editSelection.selection=this._viewSelection.selection.clone(),this._editSelection.originalSelection=this._viewSelection.originalSelection.clone(),this._editSelection._activeCell=this._viewSelection._activeCell.clone(),this._editSelection.originalActiveCell=this._viewSelection.originalActiveCell.clone())))},_setFormulaSelections:function(e){this._formulaSelections=(e||[]).slice(),this.triggerChange({selection:!0})},_viewActiveCell:function(){return this._viewSelection._activeCell.toRangeRef()},toJSON:function(){function t(e){Object.keys(l).forEach(function(t){e[t]===l[t]&&delete e[t]})}var n,i={},o=this._rows.toJSON("height",i),r=this._columns.toJSON("width",{}),a=this._viewSelection,s=[],l=this._defaultCellStyle||{};return this.forEach(e.spreadsheet.SHEETREF,function(n,r,a){if(t(a),0!==Object.keys(a).length){a.link&&s.push({ref:e.spreadsheet.Ref.display(null,n,r),target:a.link});var l=i[n];void 0===l&&(l=o.length,o.push({index:n}),i[n]=l),n=o[l],a.index=r,void 0===n.cells&&(n.cells=[]),a.formula&&(a.formula=a.formula.arrayFormulaRange?{src:""+a.formula,ref:""+a.formula.arrayFormulaRange}:""+a.formula),a.validation&&(a.validation=a.validation.toJSON()),a.color&&(a.color=e.parseColor(a.color).toCss()),a.background&&(a.background=e.parseColor(a.background).toCss()),a.borderTop&&a.borderTop.color&&(a.borderTop.color=e.parseColor(a.borderTop.color).toCss()),a.borderBottom&&a.borderBottom.color&&(a.borderBottom.color=e.parseColor(a.borderBottom.color).toCss()),a.borderRight&&a.borderRight.color&&(a.borderRight.color=e.parseColor(a.borderRight.color).toCss()),a.borderLeft&&a.borderLeft.color&&(a.borderLeft.color=e.parseColor(a.borderLeft.color).toCss()),n.cells.push(a)}}),n={name:this._name(),rows:o,columns:r,selection:""+a.selection,activeCell:""+a.activeCell(),frozenRows:this.frozenRows(),frozenColumns:this.frozenColumns(),showGridLines:this.showGridLines(),gridLinesColor:this.gridLinesColor(),mergedCells:this._mergedCells.map(function(e){return""+e}),hyperlinks:s,defaultCellStyle:l,drawings:this._drawings.map(function(e){return e.toJSON()})},this._sort&&(n.sort={ref:""+this._sort.ref,columns:this._sort.columns.map(function(e){return{index:e.index,ascending:e.ascending}})}),this._filter&&(n.filter={ref:""+this._filter.ref,columns:this._filter.columns.map(function(e){var t=e.filter.toJSON();return t.index=e.index,t})}),n},fromJSON:function(t){this.batch(function(){var n,i,o,r,a,s,d,c,u,h,p,f;if(void 0!==t.name&&this._name(t.name),void 0!==t.frozenColumns&&this.frozenColumns(t.frozenColumns),void 0!==t.frozenRows&&this.frozenRows(t.frozenRows),void 0!==t.columns&&this._columns.fromJSON("width",t.columns),void 0!==t.rows)for(this._rows.fromJSON("height",t.rows),n=0;n<t.rows.length;n++)if(i=t.rows[n],o=i.index,void 0===o&&(o=n),i.cells)for(r=0;r<i.cells.length;r++)a=i.cells[r],s=a.index,void 0===s&&(s=r),a.formula&&(d="string"!=typeof a.formula,c=d?a.formula.src:a.formula,u=this._compileFormula(o,s,c),d&&u.setArrayFormulaRange(e.spreadsheet.calc.parseReference(a.formula.ref)),a.formula=u),a.validation&&(a.validation=this._compileValidation(o,s,a.validation)),this._properties.fromJSON(this._grid.index(o,s),a);t.drawings&&(this._drawings=t.drawings.map(l.fromJSON)),t.selection&&(this._viewSelection.selection=this._viewSelection.originalSelection=this._ref(t.selection)),t.activeCell&&(h=this._ref(t.activeCell),this._viewSelection._activeCell=h.toRangeRef(),this._viewSelection.originalActiveCell=h.first()),t.mergedCells&&t.mergedCells.forEach(function(e){this.range(e).merge()},this),t.sort&&(this._sort={ref:this._ref(t.sort.ref),columns:t.sort.columns.slice(0)}),t.filter&&(p=t.filter.ref,f=void 0===t.filter.columns?[]:t.filter.columns,p?(this._filter={ref:this._ref(p),columns:f.map(function(t){return{index:t.index,filter:e.spreadsheet.Filter.create(t)}})},this._refreshFilter()):e.logToConsole("Dropping filter for sheet '"+t.name+"' due to missing ref")),void 0!==t.showGridLines&&(this._showGridLines=t.showGridLines),this._gridLinesColor=t.gridLinesColor}),this._rows._refresh(),this._columns._refresh()},formula:function(e){return this._properties.get("formula",this._grid.cellRefIndex(e))},validation:function(e){return this._properties.get("validation",this._grid.cellRefIndex(e))},resetFormulas:function(){this._forFormulas(function(e){e.reset()})},resetValidations:function(){this._forValidations(function(e){e.reset()})},recalc:function(e,t){function n(){r--,a!=o||r||t()}var i=this._properties.get("formula").values(),o=i.length,r=0,a=0;if(!o&&t)return t();for(;a<o;)r++,i[a++].value.exec(e,t?n:null)},revalidate:function(e){var n=this;this._forValidations(function(o){var r=new i(o.row,o.col),a=new t(r,r);o.exec(e,n._get(a,"value"),n._get(a,"format"))})},_value:function(e,t,n){var i=this._grid.index(e,t);return void 0===n?this._properties.get("value",i):void this._properties.set("value",i,i,n)},_validation:function(e,t){var n=this._grid.index(e,t);return this._properties.get("validation",n)},_compileValidation:function(t,n,i){return i instanceof e.spreadsheet.validation.Validation?i.clone(this._name(),t,n):(null!=i.from&&(i.from=(i.from+"").replace(/^=/,"")),null!=i.to&&(i.to=(i.to+"").replace(/^=/,"")),e.spreadsheet.validation.compile(this._name(),t,n,i))},_compileFormula:function(t,n,i){return i=i.replace(/^=/,""),i=e.spreadsheet.calc.parseFormula(this._name(),t,n,i),e.spreadsheet.calc.compile(i)},_copyValuesInRange:function(e,t,n,i){var o,r,a,s,l;for(o=e.col;o<=t.col;o++)for(r=this._grid.index(e.row,o),a=this._grid.index(t.row,o),s=r,l=e.row;s<=a;++s,++l)n=n.clone(this._name(),l,o),this._properties.set(i,s,s,n);return n},_set:function(t,n,i){var o,r,a,s=this._grid.normalize(t.topLeft),l=this._grid.normalize(t.bottomRight);if("number"==typeof i&&(i=e.spreadsheet.calc.runtime.limitPrecision(i)),i&&"formula"==n)"string"==typeof i&&(i=this._compileFormula(s.row,s.col,i)),i=this._copyValuesInRange(s,l,i,"formula");else if(i&&"validation"==n)i=this._compileValidation(s.row,s.col,i),i=this._copyValuesInRange(s,l,i,"validation");else for(o=s.col;o<=l.col;o++)r=this._grid.index(s.row,o),a=this._grid.index(l.row,o),this._properties.set(n,r,a,i),"formula"==n&&this._properties.set("value",r,a,null)},_get:function(e,t){var n=this._grid.normalize(e.topLeft),i=this._grid.index(n.row,n.col);return this._properties.get(t,i)},batch:function(e,t){var n=this.suspendChanges();return this.suspendChanges(!0),e.call(this),this.suspendChanges(n).triggerChange(t||{recalc:!0})},_sortBy:function(e,t){var n=null;t.forEach(function(t){n=this._sorter.sortBy(e,t.index,this._properties.get("value"),t.ascending,n)},this),this._sort={ref:e,columns:t},this._refreshFilter(),this.forEach(e,function(e,t,n){var i,o,r=n.formula;r&&(i=e-r.row,0!==i&&(o=i>0?r.row:r.row+i,r.adjust(this.name(),"row",o,i)))}.bind(this)),this.triggerChange({recalc:!0})},_refreshFilter:function(){this._filter&&this._filterBy(this._filter.ref,this._filter.columns)},_filterBy:function(t,n){this.batch(function(){for(var i=t.topLeft.row;i<=t.bottomRight.row;i++)this.isFilteredRow(i)&&(this._filteredRows.value(i,i,!1),this._rows.unhide(i));n.forEach(function(n){var i,o,r,a=t.resize({top:1}).toColumn(n.index),s=[];if(a!==e.spreadsheet.NULLREF)for(this.forEach(a,function(e,t,n){n.row=e,s.push(n)}),n.filter.prepare(s),i=0;i<s.length;i++)o=s[i],r=n.filter.value(o),n.filter.matches(r)===!1&&this._filterRow(o.row)},this),this._filter={ref:t,columns:n}},{recalc:!0,layout:!0,filter:!0})},filterColumn:function(e){var t=this.filter().ref;return e.toRangeRef().topLeft.col-t.topLeft.col},filter:function(){return this._filter},clearFilter:function(e){this._clearFilter(e instanceof Array?e:[e])},_clearFilter:function(e){this._filter&&this.batch(function(){this._filter.columns=this._filter.columns.filter(function(t){return e.indexOf(t.index)<0}),this._refreshFilter()},{recalc:!0,layout:!0,filter:!0})},getAxisState:function(){return{rows:this._rows.getState(),columns:this._columns.getState()}},setAxisState:function(e){this._rows.setState(e.rows),this._columns.setState(e.columns),this.triggerChange({layout:!0})},getState:function(){return{rows:this._rows.getState(),columns:this._columns.getState(),mergedCells:this._mergedCells.map(function(e){return e.clone()}),properties:this._properties.getState()}},setState:function(t){this._rows.setState(t.rows),this._columns.setState(t.columns),this._mergedCells=t.mergedCells,this._properties.setState(t.properties),this.triggerChange(e.spreadsheet.ALL_REASONS)},_merge:function(t){var n,i=this._mergedCells,r=this;return this.batch(function(){n=t.map(function(t){var n,a,s,l,d,c,u;return t instanceof e.spreadsheet.CellRef?t:(n=t.toRangeRef().union(i,function(e){i.splice(i.indexOf(e),1)}),a=new o(n,r),s=a._get("formula"),l=a.value(),d=a.format(),c=a.background(),a.value(null),a.format(null),a.background(null),u=new o(n.collapse(),r),s?u._set("formula",s):u.value(l),u.format(d),u.background(c),i.push(n),n)});var a=r._viewSelection;a.selection=r.unionWithMerged(a.originalSelection),a._activeCell=r.unionWithMerged(a.originalActiveCell)},{activeCell:!0,selection:!0}),n},_useCultureDecimals:function(){return this._workbook&&this._workbook.options.useCultureDecimals},withCultureDecimals:function(t){var n=".";return this._useCultureDecimals()&&(n=e.culture().numberFormat["."]),e.spreadsheet.calc.withDecimalSeparator(n,t)},drawingBoundingBox:function(t){var n=t.offsetX,i=t.offsetY;return t.topLeftCell&&(n+=this._columns.sum(0,t.topLeftCell.col-1),i+=this._rows.sum(0,t.topLeftCell.row-1)),new e.spreadsheet.Rectangle(n,i,t.width,t.height)},refBoundingBox:function(e){return this._grid.rectangle(e.toRangeRef())},addDrawing:function(e,t){return e instanceof l||(e=new l(e)),this._drawings.push(e),t&&(this._activeDrawing=e),this.triggerChange({layout:!0}),e},removeDrawing:function(e){var t=this._drawings.indexOf(e);t>=0&&(this._drawings.splice(t,1),this.triggerChange({layout:!0}))},usesImage:function(e){for(var t=this._drawings.length;--t>=0;)if(this._drawings[t].image===e)return!0;return!1}}),l=e.Class.extend({init:function(e){this.reset(e)},toJSON:function(){return{topLeftCell:""+this.topLeftCell,offsetX:this.offsetX,offsetY:this.offsetY,width:this.width,height:this.height,image:this.image,opacity:this.opacity}},clone:function(){return new l(this)},reset:function(t){var n=t.topLeftCell;"string"==typeof n&&(n=e.spreadsheet.calc.parseReference(n)),this.topLeftCell=n,this.offsetX=t.offsetX||0,this.offsetY=t.offsetY||0,this.width=t.width,this.height=t.height,this.image=t.image,this.opacity=null!=t.opacity?t.opacity:1},eq:function(e){return(!this.topLeftCell&&!e.topLeftCell||this.topLeftCell&&e.topLeftCell&&this.topLeftCell.eq(e.topLeftCell))&&this.offsetX===e.offsetX&&this.offsetY===e.offsetY&&this.width===e.width&&this.height===e.height&&this.image===e.image&&this.opacity===e.opacity}}),l.fromJSON=function(e){return new l(e)},e.spreadsheet.Sheet=s,e.spreadsheet.Drawing=l)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/sheetsbar.min",["kendo.core.min","kendo.sortable.min"],e)}(function(){!function(e){var t,n,i,o,r,a;e.support.browser.msie&&e.support.browser.version<9||(t=e.jQuery,n=e._outerWidth,i=".",o=" ",r={sheetsBarWrapper:"k-widget k-header",sheetsBarSheetsWrapper:"k-tabstrip k-floatwrap k-tabstrip-bottom",sheetsBarActive:"k-spreadsheet-sheets-bar-active",sheetsBarInactive:"k-spreadsheet-sheets-bar-inactive",sheetsBarAdd:"k-spreadsheet-sheets-bar-add",sheetsBarRemove:"k-spreadsheet-sheets-remove",sheetsBarItems:"k-spreadsheet-sheets-items",sheetsBarEditor:"k-spreadsheet-sheets-editor",sheetsBarScrollable:"k-tabstrip-scrollable",sheetsBarNext:"k-tabstrip-next",sheetsBarPrev:"k-tabstrip-prev",sheetsBarKItem:"k-item k-state-default",sheetsBarKActive:"k-state-active k-state-tab-on-top",sheetsBarKTextbox:"k-textbox",sheetsBarKLink:"k-link",sheetsBarKIcon:"k-icon",sheetsBarKFontIcon:"k-icon",sheetsBarKButton:"k-button k-button-icon",sheetsBarKButtonBare:"k-flat",sheetsBarKArrowW:"k-i-arrow-60-left",sheetsBarKArrowE:"k-i-arrow-60-right",sheetsBarKReset:"k-reset k-tabstrip-items",sheetsBarKIconX:"k-i-close",sheetsBarKSprite:"k-sprite",sheetsBarKIconPlus:"k-i-plus",sheetsBarHintWrapper:"k-widget k-tabstrip k-tabstrip-bottom k-spreadsheet-sheets-items-hint",sheetsBarKResetItems:"k-reset k-tabstrip-items"},a=e.ui.Widget.extend({init:function(t,n){var o=a.classNames;e.ui.Widget.call(this,t,n),t=this.element,t.addClass(o.sheetsBarWrapper),this._openDialog=n.openDialog,this._tree=new e.dom.Tree(t[0]),this._tree.render([this._addButton(),this._createSheetsWrapper([])]),this._toggleScrollEvents(!0),this._createSortable(),this._sortable.bind("start",this._onSheetReorderStart.bind(this)),this._sortable.bind("end",this._onSheetReorderEnd.bind(this)),t.on("click",i+o.sheetsBarRemove,this._onSheetRemove.bind(this)),t.on("click","li",this._onSheetSelect.bind(this)),t.on("dblclick","li"+i+o.sheetsBarActive,this._createEditor.bind(this)),t.on("click",i+o.sheetsBarAdd,this._onAddSelect.bind(this))},options:{name:"SheetsBar",scrollable:{distance:200}},events:["select","reorder","rename"],_createEditor:function(){this._editor||(this._renderSheets(this._sheets,this._selectedIndex,!0),this._editor=this.element.find(e.format("input{0}{1}",i,a.classNames.sheetsBarEditor)).focus().on("keydown",this._onEditorKeydown.bind(this)).on("blur",this._onEditorBlur.bind(this)))},_destroyEditor:function(e){var t=e?null:this._editor.val();this._editor.off(),this._editor=null,this._renderSheets(this._sheets,this._selectedIndex,!1),this._onSheetRename(t)},renderSheets:function(e,t){!e||t<0||this._renderSheets(e,t,!1)},_renderSheets:function(t,r,s){var l,d,c,u,h,p,f,m,g,v,_,b=this,w=a.classNames;b._isRtl=e.support.isRtl(b.element),b._sheets=t,b._selectedIndex=r,b._renderHtml(s,!0),b._scrollableAllowed()&&(c=b._sheetsWrapper(),u=c.children(i+w.sheetsBarPrev),h=c.children(i+w.sheetsBarNext),p=2,f=b.element.find(i+w.sheetsBarAdd),m=n(f)+f.position().left+p,g=n(u)+p,v=b._sheetsGroup(),u.css({left:m}),c.addClass(w.sheetsBarScrollable+o+w.sheetsBarSheetsWrapper),v.css({marginLeft:m}),l=c[0].offsetWidth,d=v[0].scrollWidth,d+m>l?(_=Math.ceil(e.parseFloat(h.css("right"))),b._scrollableModeActive||(b._nowScrollingSheets=!1,b._scrollableModeActive=!0),v.css({marginLeft:g+m,marginRight:n(h)+_+p})):b._scrollableModeActive&&d<=l?(b._scrollableModeActive=!1,v.css({marginLeft:m,marginRight:""})):v.css({marginLeft:m}),b._toggleScrollButtons())},_toggleScrollButtons:function(t){var n=this,o=n._sheetsGroup(),r=n._sheetsWrapper(),s=e.scrollLeft(o),l=r.find(i+a.classNames.sheetsBarPrev),d=r.find(i+a.classNames.sheetsBarNext);t===!1?(l.toggle(!1),d.toggle(!1)):(l.toggle(n._isRtl?s<o[0].scrollWidth-o[0].offsetWidth-1:0!==s),d.toggle(n._isRtl?0!==s:s<o[0].scrollWidth-o[0].offsetWidth-1))},_toggleScrollEvents:function(e){var t=this,n=a.classNames,o=t.options,r=t._sheetsWrapper(),s=r.children(i+n.sheetsBarPrev),l=r.children(i+n.sheetsBarNext);e?(s.on("mousedown",function(){t._nowScrollingSheets=!0,t._scrollSheetsByDelta(o.scrollable.distance*(t._isRtl?1:-1))}),l.on("mousedown",function(){t._nowScrollingSheets=!0,t._scrollSheetsByDelta(o.scrollable.distance*(t._isRtl?-1:1))}),s.add(l).on("mouseup",function(){t._nowScrollingSheets=!1})):(s.off(),l.off())},_renderHtml:function(t,n){var i,r,s,l,d,c,u=[],h=e.dom,p=h.element,f=this._sheets,m=this._selectedIndex,g=a.classNames;for(i=0;i<f.length;i++)r=f[i],s=i===m,l={className:g.sheetsBarKItem+o},d=[],l.className+=s?g.sheetsBarKActive+o+g.sheetsBarActive:g.sheetsBarInactive,s&&t?d.push(p("input",{type:"text",value:r.name(),className:g.sheetsBarKTextbox+o+g.sheetsBarEditor,maxlength:50},[])):(d.push(p("span",{className:g.sheetsBarKLink,title:r.name()},[h.text(r.name())])),f.length>1&&(c=p("span",{className:g.sheetsBarKIcon+o+g.sheetsBarKFontIcon+o+g.sheetsBarKIconX},[]),d.push(p("span",{className:g.sheetsBarKLink+o+g.sheetsBarRemove},[c])))),u.push(p("li",l,d));this._tree.render([this._addButton(),this._createSheetsWrapper(u,n)])},_createSheetsWrapper:function(t,n){var i,r=e.dom.element,s=a.classNames,l=[r("ul",{className:s.sheetsBarKReset},t)];return n=!0,n&&(i=s.sheetsBarKButton+o+s.sheetsBarKButtonBare+o,l.push(r("span",{className:i+s.sheetsBarPrev},[r("span",{className:s.sheetsBarKIcon+o+s.sheetsBarKArrowW},[])])),l.push(r("span",{className:i+s.sheetsBarNext},[r("span",{className:s.sheetsBarKIcon+o+s.sheetsBarKArrowE},[])]))),r("div",{className:s.sheetsBarItems},l)},_createSortable:function(){var n=a.classNames;this._sortable=new e.ui.Sortable(this.element,{filter:e.format("ul li.{0},ul li.{1}",n.sheetsBarActive,n.sheetsBarInactive),container:i+n.sheetsBarItems,axis:"x",animation:!1,ignore:"input",end:function(){this.draggable.hint&&this.draggable.hint.remove()},hint:function(e){var i=t(e).clone();return i.wrap("<div class='"+n.sheetsBarHintWrapper+"'><ul class='"+n.sheetsBarKResetItems+"'></ul></div>").closest("div")}})},_onEditorKeydown:function(e){this._editor&&(13===e.which&&this._destroyEditor(),27===e.which&&this._destroyEditor(!0))},_onEditorBlur:function(){this._editor&&this._destroyEditor()},_onSheetReorderEnd:function(e){e.preventDefault(),this.trigger("reorder",{oldIndex:e.oldIndex,newIndex:e.newIndex})},_onSheetReorderStart:function(e){this._editor&&e.preventDefault()},_onSheetRemove:function(e){var n,i=t(e.target).closest("li").text();this._editor&&this._destroyEditor(),n=function(e){var t=e.sender;t.isConfirmed()&&this.trigger("remove",{name:i,confirmation:!0})}.bind(this),this._openDialog("confirmation",{close:n})},_onSheetSelect:function(e){var n=t(e.target).text();return t(e.target).is(i+a.classNames.sheetsBarEditor)||!n?void e.preventDefault():(this._editor&&this._destroyEditor(),this._scrollSheetsToItem(t(e.target).closest("li")),void this.trigger("select",{name:n,isAddButton:!1}))},_onSheetRename:function(e){this._sheets[this._selectedIndex].name()!==e&&null!==e&&this.trigger("rename",{name:e,sheetIndex:this._selectedIndex})},_onAddSelect:function(){this.trigger("select",{isAddButton:!0})},_addButton:function(){var t=e.dom.element,n=a.classNames;return t("a",{className:n.sheetsBarAdd+o+n.sheetsBarKButton},[t("span",{className:n.sheetsBarKIcon+o+n.sheetsBarKFontIcon+o+n.sheetsBarKIconPlus},[])])},destroy:function(){this._sortable.destroy()},_scrollableAllowed:function(){var e=this.options;return e.scrollable&&!isNaN(e.scrollable.distance)},_scrollSheetsToItem:function(t){var i,o,r,a,s,l,d,c=this;c._scrollableModeActive&&(i=c._sheetsGroup(),o=e.scrollLeft(i),r=n(t),a=c._isRtl?t.position().left:t.position().left-i.children().first().position().left,s=i[0].offsetWidth,l=Math.ceil(parseFloat(i.css("padding-left"))),c._isRtl?a<0?d=o+a-(s-o)-l:a+r>s&&(d=o+a-r+2*l):o+s<a+r?d=a+r-s+2*l:o>a&&(d=a-l),i.finish().animate({scrollLeft:d},"fast","linear",function(){c._toggleScrollButtons()}))},_sheetsGroup:function(){return this._sheetsWrapper().children("ul")},_sheetsWrapper:function(){return this.element.find(i+a.classNames.sheetsBarItems)},_scrollSheetsByDelta:function(t){var n=this,i=n._sheetsGroup(),o=e.scrollLeft(i);i.finish().animate({scrollLeft:o+t},"fast","linear",function(){n._nowScrollingSheets?n._scrollSheetsByDelta(t):n._toggleScrollButtons()})}}),e.spreadsheet.SheetsBar=a,t.extend(!0,a,{classNames:r}))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/calc.min",["spreadsheet/runtime.min"],e)}(function(){"use strict";function e(e){E.DEC=e,E.ARG=","==e?";":",",E.COL=","==e?"\\":",",A=","==e?D:T}function t(e){e=e.toUpperCase();for(var t=0,n=0;n<e.length;++n)t=26*t+e.charCodeAt(n)-64;return t-1}function n(e){return parseInt(e,10)-1}function i(e,i){var o,r,a,s,l,d;if("#sheet"==e.toLowerCase())return b.SHEETREF;e:{if(!(o=/^(\$)?([a-z]+)(\$)?(\d+)$/i.exec(e))){for(s=c(e,{}),l=[];;){if(d=s.next(),d instanceof y)d.rel=0;else{if(!(d instanceof k))break e;d.topLeft.rel=0,d.bottomRight.rel=0}if(l.push(d),s.eof())break;if(!s.is("op",E.ARG))break e;s.next()}return 1==l.length?l[0]:new b.UnionRef(l)}if(r=n(o[4]),a=t(o[2]),r<1048576&&a<16384)return new y(n(o[4]),t(o[2]))}if(!i)throw Error("Cannot parse reference: "+e)}function o(e,t,n,i){function o(e){return e.index=v.length,v.push(e),e}function r(e,t,n){if(g(e,t))return i.next();var o=i.peek();o?i.croak("Expected "+e+" «"+t+"» but found "+o.type+" «"+o.value+"»"):n||i.croak("Expected "+e+" «"+t+"»")}function a(e){return m(p(u()),0,e)}function s(e){return"TRUE"==e.upper||"FALSE"==e.upper?"TRUE"==e.upper?M:R:o(new x(e.value))}function l(){var e,t=i.next();for(t=t.value,r("punc","("),e=[];;){if(g("punc",")"))break;if(g("op",E.ARG))e.push({type:"null"}),i.next();else{if(e.push(a(!1)),i.eof()||g("punc",")"))break;r("op",E.ARG)}}return r("punc",")",!0),{type:"func",func:t,args:e}}function d(t){return t.hasSheet()||t.setSheet(e),o(t)}function u(){var e;return g("ref")?e=d(i.next()):g("func")?e=l():g("punc","(")?(i.next(),e=a(!0),r("punc",")",!0)):g("punc","{")?(i.next(),e=h(),r("punc","}",!0)):g("num")||g("str")||g("error")?e=i.next():g("sym")?e=s(i.next()):g("op","+")||g("op","-")?e={type:"prefix",op:i.next().value,exp:u()}:i.croak(i.peek()?g("punc","[")?"External reference not supported":"Parse error":"Incomplete expression"),f(e)}function h(){for(var e=[],t=[e],n=!0;!i.eof()&&!g("punc","}");)n?n=!1:g(null,";")?(t.push(e=[]),i.next()):r(null,E.COL),e.push(a(!1));return{type:"matrix",value:t}}function p(e){return g("punc","(")||g("ref")||g("num")||g("func")?{type:"binary",op:" ",left:e,right:a(!1)}:e}function f(e){return g("op","%")?(i.next(),f({type:"postfix",op:"%",exp:e})):e}function m(e,t,n){var o,r,a=g("op");return a&&(n||a.value!=E.ARG)&&(o=A[a.value],o>t)?(i.next(),r=m(u(),o,n),m({type:"binary",op:";"==a.value?",":a.value,left:e,right:r},t,n)):e}var g,v=[];return i=c(i,{row:t,col:n}),g=i.is,{type:"exp",ast:a(!0),refs:v,sheet:e,row:t,col:n}}function r(e,t){var n,i=o(null,0,0,e);if(!(i.ast instanceof x))throw new I("Invalid name: "+e);return i=i.ast,t instanceof w||(n=o(i.sheet,0,0,t),t=n.ast instanceof w?n.ast:/^(?:str|num|bool|error)$/.test(n.ast.type)?n.ast.value:l(n)),{name:i,value:t}}function a(e){function t(e,i,o){function r(t){var r=e.op,a=A[r]<o||!o&&","==r||"prefix"==i.type&&o==A[r]&&"-"==i.op||"binary"==i.type&&o==A[r]&&e===i.right;return n(t(),a)}switch(e.type){case"num":return"(kendo.spreadsheet.calc._separators.DEC == '.' ? "+JSON.stringify(JSON.stringify(e.value))+" : "+JSON.stringify(JSON.stringify(e.value))+".replace('.' , kendo.spreadsheet.calc._separators.DEC))";case"bool":return JSON.stringify(e.value);case"error":return JSON.stringify("#"+e.value);case"str":return JSON.stringify(JSON.stringify(e.value));case"ref":return"this.refs["+e.index+"].print(row, col, mod)";case"prefix":return r(function(){return JSON.stringify(e.op)+" + "+t(e.exp,e,A[e.op])});case"postfix":return r(function(){return t(e.exp,e,A[e.op])+" + "+JSON.stringify(e.op)});case"binary":return r(function(){var i=n(t(e.left,e,A[e.op]),e.left instanceof x&&":"==e.op),o=n(t(e.right,e,A[e.op]),e.right instanceof x&&":"==e.op);return/^[,;]/.test(e.op)?i+" + kendo.spreadsheet.calc._separators.ARG + "+o:i+" + "+JSON.stringify(e.op)+" + "+o});case"func":return JSON.stringify(e.func+"(")+" + "+(e.args.length>0?e.args.map(function(n){return t(n,e,0)}).join(" + kendo.spreadsheet.calc._separators.ARG + ' ' + "):"''")+" + ')'";case"matrix":return"'{ ' + "+e.value.map(function(n){return n.map(function(n){return t(n,e,0)}).join(" + kendo.spreadsheet.calc._separators.COL + ' ' + ")}).join(" + '; ' + ")+"+ ' }'";case"null":return"''"}throw Error("Cannot make printer for node "+e.type)}function n(e,t){return t?"'(' + "+e+" + ')'":e}return F("function(row, col, mod){return("+t(e.ast,e,0)+")}")}function s(e,t){function n(e,t){switch(e.type){case"ref":return i(e,t);case"num":case"str":case"null":case"error":case"bool":return o(e,t);case"prefix":case"postfix":return a(e,t);case"binary":return s(e,t);case"func":return u(e,t);case"lambda":return h(e,t);case"matrix":return p(e.value,t,!0)}throw Error("Cannot CPS "+e.type)}function i(e,t){return"name"==e.ref?r(e,t):o(e,t)}function o(e,t){return t(e)}function r(e,t){return{type:"func",func:",getname",args:[f(t),e]}}function a(e,t){return n({type:"func",func:"unary"+e.op,args:[e.exp]},t)}function s(e,t){return n({type:"func",func:"binary"+e.op,args:[e.left,e.right]},t)}function l(e,t,i,o){return n(e,function(e){var r=f(o),a=m("T"),s=m("E");return{type:"func",func:"if",args:[r,e,{type:"lambda",vars:[a],body:n(t||M,function(e){return{type:"call",func:{type:"var",name:a},args:[e]}})},{type:"lambda",vars:[s],body:n(i||R,function(e){return{type:"call",func:{type:"var",name:s},args:[e]}})}]}})}function d(e,t){return 0===e.length?o(M,t):n({type:"func",func:"IF",args:[e[0],{type:"func",func:"AND",args:e.slice(1)},R]},t)}function c(e,t){return 0===e.length?o(R,t):n({type:"func",func:"IF",args:[e[0],M,{type:"func",func:"OR",args:e.slice(1)}]},t)}function u(e,t){switch(e.func.toLowerCase()){case"if":return l(e.args[0],e.args[1],e.args[2],t);case"and":return d(e.args,t);case"or":return c(e.args,t);case"true":return t(M);case"false":return t(R)}return function i(t,o){return o==e.args.length?{type:"func",func:e.func,args:t}:n(e.args[o],function(e){return i(t.concat([e]),o+1)})}([f(t)],0)}function h(e,t){var i=m("K"),o=n(e.body,function(e){return{type:"call",func:{type:"var",value:i},args:[e]}});return t({type:"lambda",vars:[i].concat(e.vars),body:o})}function p(e,t,i){var o=[];return function r(a){return a==e.length?t({type:"matrix",value:o}):(i?p:n)(e[a],function(e){return o[a]=e,r(a+1)})}(0)}function f(e){var t=m("R");return{type:"lambda",vars:[t],body:e({type:"var",name:t})}}function m(e){return e||(e=""),e="_"+e,e+ ++g}var g=0;return n(e,t)}function l(e){function t(e){var i=e.type;if("num"==i)return e.value+"";if("str"==i)return JSON.stringify(e.value);if("error"==i)return"context.error("+JSON.stringify(e.value)+")";if("return"==i)return"context.resolve("+t(e.value)+")";if("func"==i)return"context.func("+JSON.stringify(e.func)+", "+t(e.args[0])+", "+n(e.args.slice(1))+")";if("call"==i)return t(e.func)+"("+e.args.map(t).join(", ")+")";if("ref"==i)return"refs["+e.index+"]";if("bool"==i)return""+e.value;if("if"==i)return"(context.bool("+t(e.co)+") ? "+t(e.th)+" : "+t(e.el)+")";if("lambda"==i)return"(function("+e.vars.join(", ")+"){ return("+t(e.body)+") })";if("var"==i)return e.name;if("matrix"==i)return n(e.value);if("null"==i)return"null";throw Error("Cannot compile expression "+i)}function n(e){return"[ "+e.map(t).join(", ")+" ]"}var i,o=a(e),r=o.call(e),l=P[r];return l?l.clone(e.sheet,e.row,e.col):(i=t(s(e.ast,function(e){return{type:"return",value:e}})),i=["function(){","var context = this, refs = context.formula.absrefs",i,"}"].join(";\n"),l=new S.Formula(e.refs,F(i),o,e.sheet,e.row,e.col),P[r]=l.clone(e.sheet,e.row,e.col),l)}function d(e){return e}function c(e,i){function o(e,t){var n=r();return null==n||null!=e&&n.type!==e||null!=t&&n.value!==t?null:n}function r(){return null==C&&(C=s()),C}function a(){if(null!=C){var e=C;return C=null,e}return s()}function s(){var t,n=e.peek();return n&&("sym"!=n.type&&"rc"!=n.type&&"num"!=n.type||(t=b(8,c)||b(6,u)||b(6,f)||b(4,m)||b(4,g)||b(2,v)||b(2,_)),t||(t=e.next())),t}function l(o,r){var a,s,l,d,c;if("rc"==o.type)return!o.rel||i.forEditor||null!=i.row&&null!=i.col||e.croak("Cannot read relative cell in RC notation"),new y(o.row,o.col,o.rel);if("num"==o.type)return o.value<=1048577?S(new y(n(o.value),r?-(1/0):+(1/0),2)):null;if(a=o.value,s=/^(\$)?([a-z]+)(\$)?(\d+)$/i.exec(a))return l=n(s[4]),d=t(s[2]),l<=1048576&&d<=16383?S(new y(n(s[4]),t(s[2]),(s[1]?0:1)|(s[3]?0:2))):null;if(c="$"==a.charAt(0),c&&(a=a.substr(1)),/^\d+$/.test(a)){if(l=n(a),l<=1048576)return S(new y(n(a),r?-(1/0):+(1/0),c?0:2))}else if(d=t(a),d<=16383)return S(new y(r?-(1/0):+(1/0),t(a),c?0:1))}function c(e,t,n,i,o,r,a,s){if("sym"==e.type&&"op"==t.type&&":"==t.value&&"sym"==n.type&&"punc"==i.type&&"!"==i.value&&("sym"==o.type||"rc"==o.type||"num"==o.type&&o.value==o.value|0)&&"op"==r.type&&":"==r.value&&("sym"==a.type||"rc"==a.type||"num"==a.type&&a.value==a.value|0)&&a.type==o.type&&("punc"!=s.type||"("!=s.value||a.space)){var d=l(o,!0),c=l(a,!1);if(d&&c)return w(7),T(new k(d.setSheet(e.value,!0),c.setSheet(n.value,!0)).setSheet(e.value,!0),e,a)}}function u(e,t,n,i,o,r){var a,s;if("sym"==e.type&&"op"==t.type&&":"==t.value&&"sym"==n.type&&"punc"==i.type&&"!"==i.value&&("sym"==o.type||"rc"==o.type||"num"==o.type&&o.value==o.value|0)&&("punc"!=r.type||"("!=r.value||o.space)&&(a=l(o)))return w(5),s=a.clone(),T(new k(a.setSheet(e.value,!0),s.setSheet(n.value,!0)).setSheet(e.value,!0),e,o)}function f(e,t,n,i,o,r){if("sym"==e.type&&"punc"==t.type&&"!"==t.value&&("sym"==n.type||"rc"==n.type||"num"==n.type&&n.value==n.value|0)&&"op"==i.type&&":"==i.value&&("sym"==o.type||"rc"==o.type||"num"==o.type&&o.value==o.value|0)&&("punc"!=r.type||"("!=r.value||o.space)){var a=l(n,!0),s=l(o,!1);if(a&&s)return w(5),T(new k(a,s).setSheet(e.value,!0),e,o)}}function m(e,t,n,i){if("sym"==e.type&&"punc"==t.type&&"!"==t.value&&("sym"==n.type||"rc"==n.type||"num"==n.type&&n.value==n.value|0)&&("punc"!=i.type||"("!=i.value||n.space)){w(3);var o=l(n);return o&&isFinite(o.row)||(o=new x(n.value)),T(o.setSheet(e.value,!0),e,n)}}function g(e,t,n,i){if(("sym"==e.type||"rc"==e.type||"num"==e.type&&e.value==e.value|0)&&"op"==t.type&&":"==t.value&&("sym"==n.type||"rc"==n.type||"num"==n.type&&n.value==n.value|0)&&("punc"!=i.type||"("!=i.value||n.space)){var o=l(e,!0),r=l(n,!1);if(o&&r)return w(3),T(new k(o,r),e,n)}}function v(e,t){if(("sym"==e.type||"rc"==e.type)&&("punc"!=t.type||"("!=t.value||e.space)){var n=l(e);if(n&&isFinite(n.row)&&isFinite(n.col))return w(1),T(n,e,e)}}function _(e,t){if("sym"==e.type&&"punc"==t.type&&"("==t.value&&!e.space)return e.type="func",w(1),e}var b,w,C,S,T;return e=h(p(e),i),b=e.ahead,w=e.skip,C=null,S=null!=i.row&&null!=i.col?function(e){return 1&e.rel&&(e.col-=i.col),2&e.rel&&(e.row-=i.row),e}:d,T=i.forEditor?function(e,t,n){return e.begin=t.begin,e.end=n.end,e}:d,{peek:r,next:a,croak:e.croak,eof:e.eof,is:o}}function u(e){return" \t\r\n ​".indexOf(e)>=0}function h(e,t){function n(e){return/[0-9]/i.test(e)}function i(e){return/[a-z$_]/i.test(e)||_.isUnicodeLetter(e)}function o(e){return i(e)||n(e)||"."==e}function r(e){return e in A}function a(e){return"\\!;(){}[]".indexOf(e)>=0}function s(){var e=!1,t=S(function(t){return t==E.DEC?!e&&(e=!0,!0):n(t)});return t==E.DEC?{type:"punc",value:E.DEC}:{type:"num",value:parseFloat(t.replace(E.DEC,"."))}}function l(t,n){return{type:"sym",value:t,upper:t.toUpperCase(),space:u(e.peek()),quote:n}}function d(e,t,n){if(!e&&!t&&!n)return null;if(!e&&!n||e&&n){
var i=t?parseInt(t,10):0;return e?i:i-1}}function c(){var t,n,i=e.lookingAt(/^R(\[)?(-?[0-9]+)?(\])?C(\[)?(-?[0-9]+)?(\])?/i);return i&&(t=d(i[1],i[2],i[3]),n=d(i[4],i[5],i[6]),null!=t&&null!=n)?(e.skip(i),{type:"rc",row:t,col:n,rel:(i[4]||!(i[4]||i[5]||i[6])?1:0)|(i[1]||!(i[1]||i[2]||i[3])?2:0)}):l(S(o))}function h(){return e.next(),{type:"str",value:e.readEscaped('"')}}function p(){return e.next(),l(e.readEscaped("'"),!0)}function f(){return{type:"op",value:S(function(e,t){return t+e in A})}}function m(){return{type:"punc",value:e.next()}}function g(){if(e.eof())return null;var o,l=e.peek();return'"'==l?h():"'"==l?p():n(l)||l==E.DEC?s():i(l)?c():r(l)?f():a(l)?m():(o=e.lookingAt(/^#([a-z\/]+)[?!]?/i))?(e.skip(o),{type:"error",value:o[1]}):(t.forEditor||e.croak("Can't handle character with code: "+l.charCodeAt(0)),{type:"error",value:e.next()})}function v(){for(var n,i;x.length<=C;)S(u),n=e.pos(),i=g(),t.forEditor&&i&&(i.begin=n,i.end=e.pos()),x.push(i);return x[C]}function b(){var e=v();return e&&C++,e}function w(e,t){for(var n=C,i=[];e-- >0;)i.push(b()||z);return C=n,t.apply(i,i)}function k(e){C+=e}function y(){return null==v()}var x=[],C=0,S=e.readWhile;return{next:b,peek:v,eof:y,croak:e.croak,ahead:w,skip:k}}function p(e){function t(){return u}function n(){var t=e.charAt(u++);return"\n"==t?(h++,p=0):p++,t}function i(){return e.charAt(u)}function o(){return""===i()}function r(t){throw new I(t+" (input: "+e+")",u)}function a(t){if("string"==typeof t)e.substr(u,t.length)!=t&&r("Expected "+t),s(t.length);else if(t instanceof RegExp){var n=t.exec(e.substr(u));if(n)return s(n[0].length),n}else s(t[0].length)}function s(e){for(;e-- >0;)n()}function l(e){for(var t,i=!1,r="";!o();)if(t=n(),i)r+=t,i=!1;else if("\\"==t)i=!0;else{if(t==e)break;r+=t}return r}function d(e){for(var t="";!o()&&e(i(),t);)t+=n();return t}function c(t){return t.exec(e.substr(u))}var u=0,h=1,p=0;return{next:n,peek:i,eof:o,croak:r,readWhile:d,readEscaped:l,lookingAt:c,skip:a,forward:s,pos:t}}function f(e,t,n){function i(){var i=e.next();return"sym"==i.type?"TRUE"==i.upper?(i.type="bool",i.value=!0):"FALSE"==i.upper&&(i.type="bool",i.value=!1):"ref"==i.type&&(i={type:"ref",ref:null!=t&&null!=n?i.absolute(t,n):i,begin:i.begin,end:i.end}),i}var o,r=[];for(e=c(e,{forEditor:!0,row:t,col:n});!e.eof();)r.push(i());return o=r[0],"op"==o.type&&"="==o.value&&(o.type="startexp"),r}function m(e,t,n){var i,o;for(t=t||0,n=n||0,e=c(e,{row:t,col:n}),i=[];!e.eof();){if(o=e.next(),"ref"!=o.type)throw new I("Expecting a reference but got: "+JSON.stringify(o));i.push(o.absolute(t,n))}return i}function g(e,t){var n=e+t,i=H[n];return i||(i="^(\\d+(COM\\d{3})*(DOT\\d+)?)",i=i.replace(/DOT/g,"\\"+t).replace(/COM/g,"\\"+e),i=RegExp(i),H[n]=i),i}function v(e,t){for(var n="";t-- >0;)n+=e;return n}var _,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H;kendo.support.browser.msie&&kendo.support.browser.version<9||(_=kendo.util,b=kendo.spreadsheet,w=b.Ref,k=b.RangeRef,y=b.CellRef,x=b.NameRef,C=b.calc,S=C.runtime,T=Object.create(null),D=Object.create(null),function(e){e.forEach(function(t,n){t.forEach(function(t){T[t]=e.length-n,D[","==t?";":t]=e.length-n})})}([[":"],[" "],[","],["%"],["^"],["*","/"],["+","-"],["&"],["=","<",">","<=",">=","<>"]]),A=T,E={DEC:".",ARG:",",COL:","},C.withDecimalSeparator=function(t,n){if(E.DEC==t)return n();var i=E.DEC;e(t);try{return n()}finally{e(i)}},C._separators=E,I=kendo.Class.extend({init:function(e,t){this.message=e,this.pos=t},toString:function(){return this.message}}),M={type:"bool",value:!0},R={type:"bool",value:!1},F=function(e){return function(t){var n=e[t];return n||(n=e[t]=Function("'use strict';return("+t+")")()),n}}(Object.create(null)),P=Object.create(null),z={type:"eof"},B=[],L=C.registerFormatParser=function(e){B.push(e)},C.parse=function(e,t,n,i,r){var a,s,l,d,c;if(i instanceof Date)return{type:"date",value:S.dateToSerial(i)};if("number"==typeof i)return{type:"number",value:i};if("boolean"==typeof i)return{type:"boolean",value:i};if(i+="",/^'/.test(i))return{type:"string",value:i.substr(1)};if(/^-?[0-9]+%$/.test(i)&&(a=i.substr(0,i.length-1),s=parseFloat(a),!isNaN(s)&&s==a))return{type:"percent",value:s/100};if(/^=/.test(i))return i=i.substr(1),/\S/.test(i)?o(e,t,n,i):{type:"string",value:"="+i};for(l=0;l<B.length;++l)if(d=B[l](i))return d;return"true"==i.toLowerCase()?{type:"boolean",value:!0}:"false"==i.toLowerCase()?{type:"boolean",value:!1}:(c=S.parseDate(i,r))?{type:"date",value:S.dateToSerial(c)}:(s=parseFloat(i),!isNaN(s)&&i.length>0&&s==i?(r=null,s!=Math.floor(s)&&(r="0."+(s+"").split(".")[1].replace(/\d/g,"0")),{type:"number",value:s,format:r}):{type:"string",value:i})},C.parseNameDefinition=r,C.parseFormula=o,C.parseReference=i,C.compile=l,C.parseSqref=m,C.InputStream=p,C.ParseError=I,C.tokenize=f,L(function(e){var t,n,i,o,r,a,s,l,d,c,u,h=0,p="";if(t=/^(\d+)([-\/.])(\d+)\2(\d{2}(?:\d{2})?)(\s*)/.exec(e)){if(n=parseInt(t[1],10),i=t[2],o=parseInt(t[3],10),r=parseInt(t[4],10),r<30?r+=2e3:r<100&&(r+=1900),a=!0,n>12&&(s=n,n=o,o=s,a=!1),!S.validDate(r,n,o))return null;h=S.packDate(r,n-1,o),h<0&&h--,p=a?["mm","dd","yyyy"].join(i):["dd","mm","yyyy"].join(i),p+=t[5],e=e.substr(t[0].length)}return(t=/^(\d+):(\d+)$/.exec(e))?(l=parseInt(t[1],10),d=parseInt(t[2],10),{type:"date",format:p+"hh:mm",value:h+S.packTime(l,d,0,0)}):(t=/^(\d+):(\d+)(\.\d+)$/.exec(e))?(d=parseInt(t[1],10),c=parseInt(t[2],10),u=1e3*parseFloat(t[3]),{type:"date",format:p+"mm:ss.00",value:h+S.packTime(0,d,c,u)}):(t=/^(\d+):(\d+):(\d+)$/.exec(e))?(l=parseInt(t[1],10),d=parseInt(t[2],10),c=parseInt(t[3],10),{type:"date",format:p+"hh:mm:ss",value:h+S.packTime(l,d,c,0)}):(t=/^(\d+):(\d+):(\d+)(\.\d+)$/.exec(e))?(l=parseInt(t[1],10),d=parseInt(t[2],10),c=parseInt(t[3],10),u=1e3*parseFloat(t[4]),{type:"date",format:p+"hh:mm:ss.00",value:h+S.packTime(l,d,c,u)}):void 0}),L(function(e){var t,n,i,o=kendo.culture(),r=o.numberFormat[","],a=o.numberFormat["."],s=o.numberFormat.currency.symbol,l=g(r,a),d=RegExp("^\\s*\\"+s+"\\s*"),c=1,u="",h="",f=!1,m=!1;if(e=p(e.replace(/^\s+|\s+$/g,"")),e.skip(/^-\s*/)&&(c=-1),(t=e.skip(d))&&(f=!0,u+='"'+t[0]+'"'),e.skip(/^-\s*/)){if(c<0)return null;c=-1}if(!(n=e.skip(l)))return null;if(u+="0",t=e.skip(d)){if(f)return null;f=!0,h='"'+t[0]+'"'}return!f&&(t=e.skip(/^\s*%\s*/))&&(m=!0,h=t[0]),e.eof()?((n[2]||f)&&(u=u.replace("0","#"),u+=",0"),n[3]&&(u+="."+v("0",n[3].length-1)),i=n[0].replace(RegExp("\\"+r,"g"),"").replace(RegExp("\\"+a,"g"),"."),i=parseFloat(i),m&&(i/=100),u+=h,f&&(u+=";-"+u),{type:"number",currency:f,format:u,value:c*i}):null}),L(function(e){var t;if(t=/^([0-9]*)\.([0-9]+)(\s*%)$/.exec(e))return{type:"number",value:parseFloat(e)/100,format:"0."+v("0",t[2].length)+t[3]}}),H={})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/excel-reader.min",["kendo.core.min","kendo.color.min","util/parse-xml.min","spreadsheet/calc.min"],e)}(function(){"use strict";function e(e,t,i){var o=new FileReader;o.onload=function(e){var o=new JSZip(e.target.result);n(o,t,i)},o.readAsArrayBuffer(e)}function t(e){return/^\//.test(e)?e=e.substr(1):/^xl\//.test(e)||(e="xl/"+e),e}function n(e,t,n){var o,s,l,d,c,u,h;F=t.excelImportErrors=[],o=w(e),s=k(e,"_rels/workbook.xml"),l=x(e,s.byType.theme[0]),d=y(e,l),c=[],u=0,b(e,"xl/workbook.xml",{enter:function(n,i){var r,l,h,p;this.is(W)?(r=i["r:id"],l=s.byId[r],h=i.name,p=a(e,l),t.options.columnWidth=p.columnWidth||t.options.columnWidth,t.options.rowHeight=p.rowHeight||t.options.rowHeight,c.push({workbook:t,zip:e,strings:o,styles:d,file:l,options:{name:h,rows:Math.max(t.options.rows||0,p.rows),columns:Math.max(t.options.columns||0,p.cols),columnWidth:p.columnWidth,rowHeight:p.rowHeight}})):this.is($)&&i.activeTab&&(u=C(i.activeTab))},text:function(e){var n,i,o,r=this.is(B);!r||S(r["function"])||S(r.vbProcedure)||(n=r.localSheetId,i=null,null!=n&&(i=c[n].options.name),o=r.name,"_xlnm._FilterDatabase"!=o&&(i&&(o="'"+i.replace(/\'/g,"\\'")+"'!"+o),v(i,null,function(){t.defineName(o,e,S(r.hidden))},"reading user-defined name: "+o)))}}),h=new E.Deferred,h.progress(function(e){n&&n.notify(e)}).then(function(){var e=t.sheets();r(e),t.activeSheet(e[u]),n&&n.resolve()}),i(c,t,h)}function i(e,t,n){var i,r=(new E.Deferred).resolve();for(i=0;i<e.length;i++)!function(i,a){r=r.then(function(){var r,s,l=t.insertSheet(i.options);return l.suspendChanges(!0),r=o(l,i),s={sheet:l,progress:a/(e.length-1)},r.then(function(){n.notify(s)}),r})}(e[i],i);r.then(function(){n.resolve()})}function o(e,t){var n=new E.Deferred;return setTimeout(function(){d(t.zip,t.file,e,t.strings,t.styles),n.resolve()},0),n}function r(e){for(var t=0;t<e.length;t++)e[t].suspendChanges(!1).triggerChange({recalc:!0})}function a(e,n){var i={rows:0,cols:0};return b(e,t(n),{enter:function(e,t){if("dimension"==e){var n=M(t.ref);n.bottomRight&&(i.cols=n.bottomRight.col+1,i.rows=n.bottomRight.row+1)}else"sheetFormatPr"===e?(t.defaultColWidth&&(i.columnWidth=s(parseFloat(t.defaultColWidth))),t.defaultRowHeight&&(i.rowHeight=l(parseFloat(t.defaultRowHeight)))):this.is(O)&&this.exit()}}),i}function s(e){var t=7,n=(256*e+Math.floor(128/t))/256;return n*t}function l(e){return e*(4/3)}function d(e,n,i,o,r){function a(){i.range(E).filter(de),E=null}var d,c,u,w,y,x,T,A,E,I,B,W,j,q,$,ie,oe={},re=i._columns._count,ae=null,se=n.replace(/worksheets\//,"worksheets/_rels/"),le=k(e,se),de=[];F=i._workbook.excelImportErrors,n=t(n),b(e,n,{enter:function(e,t,n){var o,h,p,v,b,k,x,T,D,A,R;if(this.is(L))n&&"shared"==t.t&&null!=t.si&&(w=i.range(oe[t.si])._get("formula"));else if(this.is(P))u=null,w=null,d=t.r,y=null,null==d&&(d=M(ae),d.col++,d=""+d),ae=d,c=t.t,h=t.s,null!=h&&_(i,d,r,h);else if(this.is(H))i.range(t.ref).merge();else if(this.is(z)){if(p=C(t.min)-1,v=Math.min(re,C(t.max))-1,t.width&&(b=s(parseFloat(t.width)),0!==b&&i._columns.values.value(p,v,b)),"1"===t.hidden||0===b)for(k=p;k<=v;k++)i.hideColumn(k);null!=t.style&&_(i,new kendo.spreadsheet.RangeRef(new kendo.spreadsheet.CellRef((-(1/0)),p),new kendo.spreadsheet.CellRef((+(1/0)),v)),r,t.style)}else this.is(O)?(x=C(t.r)-1,t.ht&&(T=l(parseFloat(t.ht)),0!==T&&i._rows.values.value(x,x,T)),"1"!==t.hidden&&0!==T||i.hideRow(x)):this.is(V)?t.activeCell&&(D=M(t.activeCell),i.select(D,!0)):this.is(N)?"frozen"==t.state&&(t.xSplit&&i.frozenColumns(C(t.xSplit)),t.ySplit&&i.frozenRows(C(t.ySplit))):this.is(K)?i.showGridLines(S(t.showGridLines,!0)):this.is(Y)?(A=t["r:id"],R=le.byId[A],R&&i.range(t.ref).link(R)):this.is(["autoFilter"])?(E=t.ref,n&&a()):E&&(this.is(["filterColumn"])?I=parseInt(t.colId,10):this.is(["customFilters"])?(B=S(t.and)?"and":"or",W=[]):this.is(["customFilter"])?(o=f(t.operator,t.val),o&&W.push({operator:o.operator,value:o.value})):this.is(["dynamicFilter"])?de.push({column:I,filter:new kendo.spreadsheet.DynamicFilter({type:m(t.type)})}):this.is(["top10"])?de.push({column:I,filter:new kendo.spreadsheet.TopFilter({value:g(t.val),type:function(e,t){return e&&t?"topPercent":t?"topNumber":e?"bottomPercent":"bottomNumber"}(S(t.percent),S(t.top))})}):this.is(["filters"])?(j=S(t.blank),q=[]):this.is(["filter"])&&q.push(g(t.val)))},leave:function(e,t){var n,r;this.is(L)?w||"shared"!=t.t||null==t.si||(w=i.range(oe[t.si])._get("formula")):this.is(P)?null!=w?(n=v(i,y||d,function(){i.range(y||d).formula(w,x)},"parsing formula"),n&&i.range(y||d).value(w).background("#ffaaaa")):null!=u&&(r=i.range(d),r._get("formula")||(c&&"n"!=c?"s"==c?u=o[C(u)]:"b"==c?u="1"===u:"d"==c&&(u=kendo.parseDate(u)):u=parseFloat(u),null!=u&&r.value(u))):this.is(Q)||this.is(J)?!function(){var e=kendo.spreadsheet.calc.parseSqref(t.sqref),n=t.type.toLowerCase(),o=t.operator;/^(?:whole|decimal)$/.test(n)?n="number":"list"==n&&(o="list"),!o&&/^(?:number|date)$/.test(n)&&(o="between"),e.forEach(function(e){v(i,e,function(){i.range(e).validation({type:S(t.showErrorMessage,!0)?"reject":"warning",from:T,to:A,dataType:n,comparerType:R[o]||o,allowNulls:S(t.allowBlank),showButton:S(t.showDropDown)||"date"==n||"list"==n,messageTemplate:t.error,titleTemplate:t.errorTitle})},"parsing validation")})}():"cols"==e?i._columns._refresh():"sheetData"==e?i._rows._refresh():"autoFilter"==e?a():E&&("customFilters"==e?de.push({column:I,filter:new kendo.spreadsheet.CustomFilter({logic:B,criteria:W})}):"filters"==e&&de.push({column:I,filter:new kendo.spreadsheet.ValueFilter({values:q,blanks:j})}))},text:function(e){var t;this.is(G)||this.is(U)?u=e:(t=this.is(L))?(w=e,x="array"==t.t,x?y=t.ref:"shared"==t.t&&(oe[t.si]=d)):this.is(X)||this.is(te)?T=e:this.is(Z)||this.is(ne)?A=e:this.is(ee)&&(this.stack[this.stack.length-2].sqref=e)}}),le.byType.comments&&($=D(n,le.byType.comments[0]),p(e,$,i)),le.byType.drawing&&(ie=D(n,le.byType.drawing[0]),h(e,ie,i))}function c(e){var t=/\.([^.]+)$/.exec(e);if(t&&t[1])return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif"}[t[1].toLowerCase()]}function u(e){var t=/[^\/]+$/.exec(e);return t&&t[0]}function h(e,t,n){var i,o,r,a,s=["xdr:twoCellAnchor"],l=["xdr:ext"],d=["xdr:oneCellAnchor"],h=["xdr:from"],p=["xdr:to"],f=["xdr:row"],m=["xdr:col"],g=["xdr:rowOff"],v=["xdr:colOff"],_=["xdr:blipFill","a:blip"],w=t.replace(/drawings\//,"drawings/_rels/"),y=k(e,w);y.byType.image&&Object.keys(y.byId).forEach(function(i){var o,r,a,s=D(t,y.byId[i]),l=c(s);l&&(o=e.files[s].asArrayBuffer(),r=u(s),a=!r||kendo.support.browser.msie||kendo.support.browser.edge?new window.Blob([o],{type:l}):new window.File([o],r,{type:l}),y.byId[i]=n._workbook.addImage(a))}),b(e,t,{enter:function(e,t){if(this.is(s)||this.is(d))i={};else if(this.is(h)||this.is(p))o={};else if(this.is(_)){var n=t["r:embed"];i.image=y.byId[n]}else this.is(l)&&(r=A(parseFloat(t.cx)),a=A(parseFloat(t.cy)))},leave:function(){var e,t,l,c;this.is(h)?(i.topLeftCell=new kendo.spreadsheet.CellRef(o.row,o.col),i.offsetX=A(o.colOffset),i.offsetY=A(o.rowOffset)):this.is(p)?(i.brCell=new kendo.spreadsheet.CellRef(o.row,o.col),i.brX=A(o.colOffset),i.brY=A(o.rowOffset)):this.is(s)&&i.image?(e=n._columns.sum(0,i.topLeftCell.col-1)+i.offsetX,t=n._rows.sum(0,i.topLeftCell.row-1)+i.offsetY,l=n._columns.sum(0,i.brCell.col-1)+i.brX,c=n._rows.sum(0,i.brCell.row-1)+i.brY,n.addDrawing({topLeftCell:i.topLeftCell,offsetX:i.offsetX,offsetY:i.offsetY,width:null!=r?r:l-e,height:null!=a?a:c-t,image:i.image,opacity:1})):this.is(d)&&i.image&&n.addDrawing({topLeftCell:i.topLeftCell,offsetX:i.offsetX,offsetY:i.offsetY,width:r,height:a,image:i.image,opacity:1})},text:function(e){this.is(f)?o.row=parseFloat(e):this.is(m)?o.col=parseFloat(e):this.is(g)?o.rowOffset=parseFloat(e):this.is(v)&&(o.colOffset=parseFloat(e))}})}function p(e,t,n){var i,o,r=[];b(e,t,{enter:function(e,t){this.is(ie)?o={author:r[t.authorId],ref:t.ref,text:""}:this.is(oe)&&(i="")},leave:function(){this.is(ie)?n.range(o.ref).comment(o.text):this.is(oe)&&r.push(i)},text:function(e){this.is(re)?o.text+=e:this.is(oe)&&(i+=e)}})}function f(e,t){var n={equal:"eq",notEqual:"ne",greaterThan:"gt",greaterThanOrEqual:"gte",lessThan:"lt",lessThanOrEqual:"lte"}[e];return t=g(t),n&&"number"==typeof t?{operator:n,value:t}:"notEqual"!=e&&e||"string"!=typeof t?void 0:{operator:e?"doesnotmatch":"matches",value:t}}function m(e){return{Q1:"quarter1",Q2:"quarter2",Q3:"quarter3",Q4:"quarter4",M1:"january",M2:"february",M3:"march",M4:"april",M5:"may",M6:"june",M7:"july",M8:"august",M9:"september",M10:"october",M11:"november",M12:"december"}[e.toUpperCase()]||e}function g(e){var t=parseFloat(e);return isNaN(t)||t!=e?e:t}function v(e,t,n,i){try{return n(),!1}catch(o){var r={context:i,error:o+""};return e&&e.name?r.sheet=e.name():e&&(r.sheet=e),t&&(r.location=t+""),F.push(r),!0}}function _(e,t,n,i){function o(e){var t="string"==typeof e?e:e.formatCode;null==t||/^general$/i.test(t)||(t=t.replace(/^\[\$-[0-9]+\]/,""),u.format(t))}function r(e){"solid"==e.type&&u.background(e.color)}function a(e){u.fontFamily(e.name),e.size&&u._property("fontSize",4*e.size/3),e.bold&&u.bold(!0),e.italic&&u.italic(!0),e.underline&&u.underline(!0),e.color&&u.color(e.color)}function s(e){function t(t,n){var i,o,r=e[t];r&&(i=ae[r.style],0!==i&&(o=r.color,null==o&&(o="#000"),u._property(n,{size:i,color:o})))}t("left","borderLeft"),t("top","borderTop"),t("right","borderRight"),t("bottom","borderBottom")}function l(e,t){var n=h[e];if(null!=n&&!n)return!1;if(c=h[t],d&&null==c){if(n=d[e],null!=n&&!n)return!1;c=d[t]}return null!=c}var d,c,u=e.range(t),h=n.inlineStyles[i];h.xfId&&(d=n.namedStyles[h.xfId]),l("applyBorder","borderId")&&s(n.borders[c]),l("applyFont","fontId")&&a(n.fonts[c]),l("applyAlignment","textAlign")&&u.textAlign(c),l("applyAlignment","verticalAlign")&&u.verticalAlign(c),l("applyAlignment","indent")&&u.indent(c),l("applyAlignment","wrapText")&&u._property("wrap",c),l("applyFill","fillId")&&r(n.fills[c]),l("applyNumberFormat","numFmtId")&&o(n.numFmts[c]||se[c])}function b(e,t,n){var i=e.files[t];i&&I(i.asUint8Array(),n)}function w(e){var t=[],n=null;return b(e,"xl/sharedStrings.xml",{leave:function(){this.is(q)&&(t.push(n),n=null)},text:function(e){this.is(j)&&(null==n&&(n=""),n+=e)}}),t}function k(e,n){var i={byId:{},byType:{theme:[]}};return b(e,t(n)+".rels",{enter:function(e,t){var n,o;"Relationship"==e&&(i.byId[t.Id]=t.Target,n=t.Type.match(/\w+$/)[0],o=i.byType[n]||[],o.push(t.Target),i.byType[n]=o)}}),i}function y(e,t){function n(e){function t(t){null!=e[t]&&(n[t]=S(e[t]))}var n={borderId:C(e.borderId),fillId:C(e.fillId),fontId:C(e.fontId),numFmtId:C(e.numFmtId),pivotButton:S(e.pivotButton),quotePrefix:S(e.quotePrefix),xfId:C(e.xfId)};return t("applyAlignment"),t("applyBorder"),t("applyFill"),t("applyFont"),t("applyNumberFormat"),t("applyProtection"),n}function i(e,n){var i,o,r;return e.rgb?T(e.rgb):e.indexed?fe[C(e.indexed)]:e.theme?(i=t.colorScheme[C(e.theme)])?(o=kendo.parseColor(i),e.tint&&(o=o.toHSL(),r=parseFloat(e.tint),o.l=r<0?o.l*(1+r):o.l*(1-r)+(100-100*(1-r))),o.toCssRgba()):n:void 0}var o={fonts:[],numFmts:{},fills:[],borders:[],namedStyles:[],inlineStyles:[]},r=null,a=null,s=null,l=null;return b(e,"xl/styles.xml",{enter:function(e,t,d){if(this.is(pe))o.numFmts[t.numFmtId]=t;else if(this.is(ce))o.fonts.push(r={}),d&&(r=null);else if(r)"sz"==e?r.size=parseFloat(t.val):"name"==e?r.name=t.val:"b"==e?r.bold=S(t.val,!0):"i"==e?r.italic=S(t.val,!0):"u"==e?r.underline=null==t.val||"single"==t.val:"color"==e&&(r.color=i(t,null));else if(this.is(de))o.fills.push(a={}),d&&(a=null);else if(a)"patternFill"==e?a.type=t.patternType:"fgColor"==e&&"solid"===a.type?a.color=i(t,fe[0]):"bgColor"==e&&"solid"!==a.type&&(a.color=i(t,fe[0]));else if(this.is(le))o.borders.push(s={}),d&&(s=null);else if(s){if(/^(?:left|top|right|bottom)$/.test(e)&&(s[e]={style:t.style||"none"}),"color"==e){var c=this.stack[this.stack.length-2].$tag;s[c].color=i(t,fe[0])}}else this.is(he)?(l=n(t),o.namedStyles.push(l),d&&(l=null)):this.is(ue)?(l=n(t),o.inlineStyles.push(l),d&&(l=null)):l&&"alignment"==e&&(/^(?:left|center|right|justify)$/.test(t.horizontal)&&(l.textAlign=t.horizontal),/^(?:top|center|bottom)$/.test(t.vertical)&&(l.verticalAlign=t.vertical),null!=t.wrapText&&(l.wrapText=S(t.wrapText)),null!=t.indent&&(l.indent=C(t.indent)))},leave:function(e){this.is(ce)?r=null:this.is(de)?a=null:this.is(le)?s=null:"xf"==e&&(l=null)}}),o}function x(e,n){function i(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}var o=[],r={colorScheme:o},a=t(n);return e.files[a]&&(b(e,a,{enter:function(e,t){this.is(ge)?o.push(T("window"==t.val?"FFFFFFFF":"FF000000")):this.is(me)&&o.push(T("FF"+t.val))}}),o.length>3&&(i(o,0,1),i(o,2,3))),r}function C(e){return null==e?null:parseInt(e,10)}function S(e,t){return null==e?t:"true"==e||e===!0||1==e}function T(e){var t=/^([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return"rgba("+parseInt(t[2],16)+", "+parseInt(t[3],16)+", "+parseInt(t[4],16)+", "+parseInt(t[1],16)/255+")"}function D(e,t){for(e=e.split(/\/+/),t=t.split(/\/+/),e.pop();t.length;){var n=t.shift();if(""===n)e=[];else{if("."===n)continue;".."===n?e.pop():e.push(n)}}return e.join("/")}function A(e){return e/9525}var E,I,M,R,F,P,z,B,L,H,N,O,V,W,U,j,q,G,$,K,Y,Q,X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge;kendo.support.browser.msie&&kendo.support.browser.version<9||(E=kendo.jQuery,I=kendo.util.parseXML,M=kendo.spreadsheet.calc.parseReference,R={greaterThanOrEqual:"greaterThanOrEqualTo",lessThanOrEqual:"lessThanOrEqualTo"},F=null,P=["sheetData","row","c"],z=["cols","col"],B=["definedNames","definedName"],L=["sheetData","row","c","f"],H=["mergeCells","mergeCell"],N=["sheetViews","sheetView","pane"],O=["sheetData","row"],V=["sheetViews","sheetView","selection"],W=["sheets","sheet"],U=["sheetData","row","c","is"],j=["t"],q=["si"],G=["sheetData","row","c","v"],$=["bookViews","workbookView"],K=["sheetViews","sheetView"],Y=["hyperlinks","hyperlink"],Q=["dataValidations","dataValidation"],X=["dataValidations","dataValidation","formula1"],Z=["dataValidations","dataValidation","formula2"],J=["x14:dataValidations","x14:dataValidation"],ee=["x14:dataValidations","x14:dataValidation","xm:sqref"],te=["x14:dataValidations","x14:dataValidation","x14:formula1","xm:f"],ne=["x14:dataValidations","x14:dataValidation","x14:formula2","xm:f"],ie=["commentList","comment"],oe=["authors","author"],re=["t"],ae={none:0,thin:1,medium:2,dashed:1,dotted:1,thick:3,"double":3,hair:1,mediumDashed:2,dashDot:1,mediumDashDot:2,dashDotDot:1,mediumDashDotDot:2,slantDashDot:1},se={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"mm-dd-yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},le=["borders","border"],de=["fills","fill"],ce=["fonts","font"],ue=["cellXfs","xf"],he=["cellStyleXfs","xf"],pe=["numFmts","numFmt"],fe=[T("FF000000"),T("FFFFFFFF"),T("FFFF0000"),T("FF00FF00"),T("FF0000FF"),T("FFFFFF00"),T("FFFF00FF"),T("FF00FFFF"),T("FF000000"),T("FFFFFFFF"),T("FFFF0000"),T("FF00FF00"),T("FF0000FF"),T("FFFFFF00"),T("FFFF00FF"),T("FF00FFFF"),T("FF800000"),T("FF008000"),T("FF000080"),T("FF808000"),T("FF800080"),T("FF008080"),T("FFC0C0C0"),T("FF808080"),T("FF9999FF"),T("FF993366"),T("FFFFFFCC"),T("FFCCFFFF"),T("FF660066"),T("FFFF8080"),T("FF0066CC"),T("FFCCCCFF"),T("FF000080"),T("FFFF00FF"),T("FFFFFF00"),T("FF00FFFF"),T("FF800080"),T("FF800000"),T("FF008080"),T("FF0000FF"),T("FF00CCFF"),T("FFCCFFFF"),T("FFCCFFCC"),T("FFFFFF99"),T("FF99CCFF"),T("FFFF99CC"),T("FFCC99FF"),T("FFFFCC99"),T("FF3366FF"),T("FF33CCCC"),T("FF99CC00"),T("FFFFCC00"),T("FFFF9900"),T("FFFF6600"),T("FF666699"),T("FF969696"),T("FF003366"),T("FF339966"),T("FF003300"),T("FF333300"),T("FF993300"),T("FF993366"),T("FF333399"),T("FF333333"),T("FF000000"),T("FFFFFFFF")],me=["a:clrScheme","*","a:srgbClr"],ge=["a:clrScheme","*","a:sysClr"],kendo.spreadsheet.readExcel=e,kendo.spreadsheet._readSheet=d,kendo.spreadsheet._readStrings=w,kendo.spreadsheet._readStyles=y,kendo.spreadsheet._readTheme=x,kendo.spreadsheet._readWorkbook=n)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/workbook.min",["kendo.core.min","spreadsheet/runtime.min","spreadsheet/references.min","spreadsheet/excel-reader.min"],e)}(function(){!function(e){function t(e,t){var n=new XMLHttpRequest;n.onload=function(){t(n.response,n.getResponseHeader("Content-Type"))},n.onerror=function(){t(null)},n.open("GET",e),n.responseType="arraybuffer",n.send()}function n(e,t){function n(e,t,n){return void 0!==e?e:void 0!==t?t:n}var i,o,r,a,s,l,d=n(e.rowCount,t.rows,200),c=n(e.columnCount,t.columns,50),u=n(e.rowHeight,t.rowHeight,20),h=n(e.columnWidth,t.columnWidth,64),p=n(e.headerHeight,t.headerHeight,20),f=n(e.headerWidth,t.headerWidth,32);if(void 0!==e.rows)for(i=0;i<e.rows.length;++i)if(o=e.rows[i],r=n(o.index,i),r>=d&&(d=r+1),o.cells)for(a=0;a<o.cells.length;++a)s=o.cells[a],l=n(s.index,a),l>=c&&(c=l+1);return{rowCount:d,columnCount:c,rowHeight:u,columnWidth:h,headerHeight:p,headerWidth:f}}var i,o,r,a,s;e.support.browser.msie&&e.support.browser.version<9||(i=e.jQuery,o=e.spreadsheet.calc.runtime.Formula,r=e.spreadsheet.Ref,a=e.spreadsheet.CalcError,e.spreadsheet.messages.workbook={defaultSheetName:"Sheet"},s=e.Observable.extend({options:{},init:function(t,n){e.Observable.fn.init.call(this),this.options=t,this._view=n,this._sheets=[],this._images={},this._imgID=0,this._sheetsSearchCache={},this._sheet=this.insertSheet({rows:this.options.rows,columns:this.options.columns,rowHeight:this.options.rowHeight,columnWidth:this.options.columnWidth,headerHeight:this.options.headerHeight,headerWidth:this.options.headerWidth,dataSource:this.options.dataSource}),this.undoRedoStack=new e.util.UndoRedoStack,this.undoRedoStack.bind(["undo","redo"],this._onUndoRedo.bind(this)),this._context=new e.spreadsheet.FormulaContext(this),this._validationContext=new e.spreadsheet.ValidationFormulaContext(this),this._names=Object.create(null),this.fromJSON(this.options)},clipboard:function(){return this._clipboard||(this._clipboard=new e.spreadsheet.Clipboard(this)),this._clipboard},destroy:function(){this.unbind(),this._clipboard&&this._clipboard.destroy()},events:["cut","copy","paste","changing","change","excelImport","excelExport","insertSheet","removeSheet","selectSheet","renameSheet","insertRow","insertColumn","deleteRow","deleteColumn","hideRow","hideColumn","unhideRow","unhideColumn","select","changeFormat","dataBinding","dataBound"],_sheetChanging:function(e){this.trigger("changing",e)&&e.preventDefault()},_sheetChange:function(e){this.trigger("change",e)},_sheetInsertRow:function(e){this.trigger("insertRow",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetInsertColumn:function(e){this.trigger("insertColumn",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetDeleteRow:function(e){this.trigger("deleteRow",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetDeleteColumn:function(e){this.trigger("deleteColumn",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetHideRow:function(e){this.trigger("hideRow",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetHideColumn:function(e){this.trigger("hideColumn",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetUnhideRow:function(e){this.trigger("unhideRow",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetUnhideColumn:function(e){this.trigger("unhideColumn",{sheet:e.sender,index:e.index})&&e.preventDefault()},_sheetSelect:function(e){this.trigger("select",e)},_sheetDataBinding:function(e){this.trigger("dataBinding",{sheet:e.sender})&&e.preventDefault()},_sheetDataBound:function(e){this.trigger("dataBound",{sheet:e.sender})},_sheetCommandRequest:function(e){this.trigger("commandRequest",e)},_inputForRef:function(t){var n=this;return n._sheet.withCultureDecimals(function(){return new e.spreadsheet.Range(t,n._sheet).input()})},_onUndoRedo:function(e){e.command.range().select()},execute:function(t){var n,o=i.extend({workbook:this},t.options),r=new e.spreadsheet[t.command](o),a=this.activeSheet();return o.origin&&r.origin(o.origin),r.range(o.operatingRange?o.operatingRange:a.selection()),n=r.exec(),n&&"error"===n.reason||r.cannotUndo||this.undoRedoStack.push(r),this.cleanupImages(),n},resetFormulas:function(){this._sheets.forEach(function(e){e.resetFormulas()})},resetValidations:function(){this._sheets.forEach(function(e){e.resetValidations()})},refresh:function(e){e.recalc&&(this.resetFormulas(),this.resetValidations(),this._sheet.recalc(this._context),this._sheet.revalidate(this._validationContext))},activeSheet:function(t){return void 0===t?this._sheet:void(this.sheetByName(t.name())&&(this._sheet=t,t.triggerChange(e.spreadsheet.ALL_REASONS)))},moveSheetToIndex:function(e,t){var n=this.sheetIndex(e),i=this._sheets;n!==-1&&(this._sheetsSearchCache={},i.splice(t,0,i.splice(n,1)[0]),this.trigger("change",{sheetSelection:!0}))},insertSheet:function(t){var n,i,o,r,a,s;if(t=t||{},n=this,i="number"==typeof t.index?t.index:n._sheets.length,r=n._sheets,a=function(t){t=t?t:1;var i=e.spreadsheet.messages.workbook.defaultSheetName+t;return n.sheetByName(i)?a(t+1):i},!t.name||!n.sheetByName(t.name))return this._sheetsSearchCache={},o=t.name||a(),s=new e.spreadsheet.Sheet(t.rows||this.options.rows,t.columns||this.options.columns,t.rowHeight||this.options.rowHeight,t.columnWidth||this.options.columnWidth,t.headerHeight||this.options.headerHeight,t.headerWidth||this.options.headerWidth,t.defaultCellStyle||this.options.defaultCellStyle),s._workbook=this,s._name(o),this._bindSheetEvents(s),r.splice(i,0,s),t.data&&s.fromJSON(t.data),t.dataSource&&s.setDataSource(t.dataSource),this.trigger("change",{sheetSelection:!0}),s},_bindSheetEvents:function(e){e.bind("changing",this._sheetChanging.bind(this)),e.bind("change",this._sheetChange.bind(this)),e.bind("insertRow",this._sheetInsertRow.bind(this)),e.bind("insertColumn",this._sheetInsertColumn.bind(this)),e.bind("deleteRow",this._sheetDeleteRow.bind(this)),e.bind("deleteColumn",this._sheetDeleteColumn.bind(this)),e.bind("hideRow",this._sheetHideRow.bind(this)),e.bind("hideColumn",this._sheetHideColumn.bind(this)),e.bind("unhideRow",this._sheetUnhideRow.bind(this)),e.bind("unhideColumn",this._sheetUnhideColumn.bind(this)),e.bind("select",this._sheetSelect.bind(this)),e.bind("commandRequest",this._sheetCommandRequest.bind(this)),e.bind("dataBinding",this._sheetDataBinding.bind(this)),e.bind("dataBound",this._sheetDataBound.bind(this))},sheets:function(){return this._sheets.slice()},sheetByName:function(e){return this._sheets[this.sheetIndex(e)]},sheetByIndex:function(e){return this._sheets[e]},sheetIndex:function(e){var t,n=this._sheets,i=("string"==typeof e?e:e.name()).toLowerCase(),o=this._sheetsSearchCache[i];if(o>=0)return o;for(o=0;o<n.length;o++)if(t=n[o].name().toLowerCase(),this._sheetsSearchCache[t]=o,t===i)return o;return-1},renameSheet:function(e,t){var n=e.name().toLowerCase();if(t&&n!==t.toLowerCase()&&!this.sheetByName(t)&&(e=this.sheetByName(n),e&&(this._sheetsSearchCache={},!this.trigger("renameSheet",{sheet:e,newSheetName:t}))))return this._sheets.forEach(function(e){e._forFormulas(function(e){e.renameSheet(n,t)})}),this.forEachName(function(e,i){e.nameref.renameSheet(n,t)&&(this.undefineName(i),e.name=e.nameref.print(),this.nameDefinition(e.name,e)),(e.value instanceof r||e.value instanceof o)&&e.value.renameSheet(n,t)}.bind(this)),e._name(t),this.trigger("change",{sheetSelection:!0}),e},removeSheet:function(e){var t,n=this,i=n._sheets,o=e.name(),r=n.sheetIndex(e);1!==i.length&&(this.trigger("removeSheet",{sheet:e})||(this._sheetsSearchCache={},r>-1&&(e.unbind(),i.splice(r,1),n.activeSheet().name()===o?(t=i[r===i.length?r-1:r],n.activeSheet(t)):this.trigger("change",{recalc:!0,sheetSelection:!0}))))},_clearSheets:function(){for(var e=0;e<this._sheets.length;e++)this._sheets[e]._activeDrawing=[],this._sheets[e]._drawings=[],this._sheets[e].unbind();this._sheets=[],this._sheetsSearchCache={},this._names={},this._images={},this._imgID=0},fromJSON:function(e){var t,i,o,r;if(e.sheets)for(this._clearSheets(),e.images&&(this._imgID=0,this._images={},Object.keys(e.images).forEach(function(t){if(!isNaN(t)){var n=parseFloat(t);isFinite(n)&&(this._imgID=Math.max(this._imgID,n))}this._images[t]={url:e.images[t]}},this)),t=0;t<e.sheets.length;t++)i=e.sheets[t],o=n(i,this.options),r=this.insertSheet({rows:o.rowCount,columns:o.columnCount,rowHeight:o.rowHeight,columnWidth:o.columnWidth,headerHeight:o.headerHeight,headerWidth:o.headerWidth,data:i}),i.dataSource&&r.setDataSource(i.dataSource);this.activeSheet(e.activeSheet?this.sheetByName(e.activeSheet):this._sheets[0]),e.names&&e.names.forEach(function(e){this.defineName(e.name,e.value,e.hidden)},this)},toJSON:function(){this.resetFormulas(),this.resetValidations();var e=Object.keys(this._names).map(function(e){var t=this._names[e],n=t.value;return n instanceof r||n instanceof o?n=n.print(0,0,!0):n instanceof a?n+="":n=JSON.stringify(n),{value:n,hidden:t.hidden,name:t.name,sheet:t.nameref.sheet,localName:t.nameref.name
}},this);return{activeSheet:this.activeSheet().name(),sheets:this._sheets.map(function(e){return e.recalc(this._context),e.revalidate(this._validationContext),e.toJSON()},this),names:e,columnWidth:this.options.columnWidth,rowHeight:this.options.rowHeight}},saveJSON:function(){function e(){--a<=0&&n.resolve(o)}var t=this,n=new i.Deferred,o=t.toJSON(),r=Object.keys(t._images).filter(function(e){return 1===t.usesImage(e)}),a=r.length;return o.images={},a?r.forEach(function(n){var i,r=t._images[n];r.blob?(i=new FileReader,i.onload=function(){o.images[n]=i.result,e()},i.readAsDataURL(r.blob)):(o.images[n]=r.url,e())}):e(),n.promise()},fromFile:function(t){var n=new i.Deferred,o=n.promise(),r={file:t,promise:o};return t&&!this.trigger("excelImport",r)?(this._clearSheets(),e.spreadsheet.readExcel(t,this,n)):n.reject(),o},saveAsExcel:function(n){function o(){if(--s<=0){r.images=l;var t=new e.ooxml.Workbook(r);e.saveAs({dataURI:n.forceProxy?t.toDataURL():t.toBlob(),fileName:r.fileName||n.fileName,proxyURL:n.proxyURL,forceProxy:n.forceProxy})}}var r,a,s,l,d=this;n=i.extend({},d.options.excel,n),r=d.toJSON(),d.trigger("excelExport",{workbook:r})||(a=Object.keys(d._images).filter(function(e){return 1===d.usesImage(e)}),s=a.length,l=s?{}:null,s?a.forEach(function(e){var n,i=d._images[e];i.blob?(n=new FileReader,n.onload=function(){l[e]={type:i.blob.type,name:i.blob.name,data:n.result},o()},n.readAsArrayBuffer(i.blob)):t(i.url,function(t,n){l[e]={type:n,data:t},o()})}):o())},draw:function(t,n){"function"!=typeof t||n||(n=t,t={});var i=[],o=this._sheets;!function r(a){if(a<o.length)o[a].draw(e.spreadsheet.SHEETREF,t,function(e){i.push(e),r(a+1)});else{var s=i[0];for(a=1;a<i.length;++a)s.children=s.children.concat(i[a].children);n(s)}}(0)},nameForRef:function(e,t){var n,i,o,a;void 0===t&&(t=e.sheet),t=t.toLowerCase(),n=e+"";for(i in this._names)if(o=this._names[i],a=o.value,a instanceof r&&(!a.sheet||a.sheet&&t==a.sheet.toLowerCase())&&a+""==n)return o;return{name:n}},defineName:function(t,n,i){var o=e.spreadsheet.calc.parseNameDefinition(t,n);t=o.name.print(),this._names[t.toLowerCase()]={value:o.value,hidden:i,name:t,nameref:o.name}},undefineName:function(e){delete this._names[e.toLowerCase()]},nameValue:function(e){return e=e.toLowerCase(),e in this._names?this._names[e].value:null},nameDefinition:function(e,t){return e=e.toLowerCase(),arguments.length>1&&(void 0===t?delete this._names[e]:this._names[e]=t),this._names[e]},forEachName:function(e){Object.keys(this._names).forEach(function(t){e(this._names[t],t)},this)},adjustNames:function(e,t,n,i){e=e.toLowerCase(),Object.keys(this._names).forEach(function(a){var s=this._names[a],l=s.value;l instanceof r&&l.sheet.toLowerCase()==e?s.value=l.adjust(null,null,null,null,t,n,i):l instanceof o&&l.adjust(e,t?"row":"col",n,i)},this)},addImage:function(e){var t=++this._imgID+"";return this._images[t]="string"==typeof e?{url:e}:{blob:e},t},imageUrl:function(e){var t=this._images[e],n=t.url;return n||(n=t.url=window.URL.createObjectURL(t.blob)),n},cleanupImages:function(){Object.keys(this._images).forEach(function(e){if(!this.usesImage(e)){var t=this._images[e].url;t&&window.URL.revokeObjectURL(t),delete this._images[e]}},this)},usesImage:function(e){var t,n,i=this._sheets;for(t=i.length;--t>=0;)if(i[t].usesImage(e))return 1;for(n=this.undoRedoStack.stack,t=n.length;--t>=0;)if(n[t].usesImage(e))return 2;return!1}}),e.spreadsheet.Workbook=s,e.PDFMixin&&(e.PDFMixin.extend(s.prototype),s.prototype.saveAsPDF=function(t){var n=new i.Deferred,o=n.promise(),r={promise:o};if(!this.trigger("pdfExport",r))return this._drawPDF(t,n).then(function(n){return t.forceProxy?e.pdf.exportPDF(n):e.pdf.exportPDFToBlob(n)}).done(function(i){e.saveAs({dataURI:i,fileName:t.fileName,proxyURL:t.proxyURL,forceProxy:t.forceProxy,proxyTarget:t.proxyTarget}),n.resolve()}).fail(function(e){n.reject(e)}),o},s.prototype._drawPDF=function(e){var t=new i.Deferred,n=function(e){t.resolve(e)};switch(e.area){case"workbook":e.workbook.draw(e,n);break;case"sheet":e.workbook.activeSheet().draw(e,n);break;case"selection":e.workbook.activeSheet().selection().draw(e,n)}return t.promise()}))}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/formulacontext.min",["kendo.core.min"],e)}(function(){var e,t,n,i,o,r,a,s;kendo.support.browser.msie&&kendo.support.browser.version<9||(e=kendo.spreadsheet,t=e.CellRef,n=e.RangeRef,i=e.UnionRef,o=e.NameRef,r=e.Ref,a=kendo.Class.extend({init:function(e){this.workbook=e},getRefCells:function(e,a,s,l,d,c){var u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D;if(e instanceof t)return u=this.workbook.sheetByName(e.sheet),u&&e.valid()?(h=u.formula(e),p=u.range(e.row,e.col).value(),c||null!=h||null!=p?[{formula:h,value:p,row:e.row,col:e.col,sheet:e.sheet,hidden:!!a&&(0===u.columnWidth(e.col)||0===u.rowHeight(e.row))}]:[]):[{value:new kendo.spreadsheet.calc.runtime.CalcError("REF")}];if(e instanceof n){if(f=this.workbook.sheetIndex(e.sheet),m=[],g=f,e.endSheet&&(g=this.workbook.sheetIndex(e.endSheet),f>g&&(v=f,f=g,g=v)),f<0||g<0||!e.valid())return[{value:new kendo.spreadsheet.calc.runtime.CalcError("REF")}];for(;f<=g;)for(u=this.workbook.sheetByIndex(f++),_=u._grid.normalize(e.topLeft),b=u._grid.normalize(e.bottomRight),w=u._grid.cellRefIndex(_),k=u._grid.cellRefIndex(b),y=u._properties.iterator("value",w,k),x=_.col;x<=b.col;++x)for(C=_.row;C<=b.row;++C)S=u._grid.index(C,x),h=u._properties.get("formula",S),p=y.at(S),(c||null!=h||null!=p)&&m.push({formula:h,value:p,row:C,col:x,sheet:u.name(),hidden:!!a&&(0===u.columnWidth(x)||0===u.rowHeight(C))});return m}if(e instanceof i){for(T=[],f=0;f<e.refs.length;++f)T=T.concat(this.getRefCells(e.refs[f],a,s,l,d));return T}return e instanceof o?(D=this.nameValue(e,s,l,d),D instanceof r?this.getRefCells(D,a,s,l,d):[{value:null==D?new kendo.spreadsheet.calc.runtime.CalcError("NAME"):D}]):[]},nameValue:function(e,t,n,i){var o;return e.hasSheet()?o=this.workbook.nameValue(e.print()):(e=e.clone().setSheet(t,!0),o=this.workbook.nameValue(e.print()),null==o&&(o=this.workbook.nameValue(e.name))),o instanceof r&&(o=o.absolute(n,i)),o},getData:function(e,n,i,r,a){var s,l=e instanceof t;return e instanceof o&&(l=this.workbook.nameValue(e.name)instanceof t),s=this.getRefCells(e,!1,n,i,r,a).map(function(e){var t=e.value;return t instanceof kendo.spreadsheet.calc.runtime.Formula&&(t=t.value),t}),l?s[0]:s},onFormula:function(e){var t,n,i,o,a,s=this.workbook.sheetByName(e.sheet),l=e.row,d=e.col,c=e.value,u=s.formula({row:l,col:d});return u===e&&(t=e.arrayFormulaRange,t?(o=c.width,a=c.height,s.forEach(t,function(e,t){var r,l,d;void 0===n&&(n=e,i=t),r=e-n,l=t-i,d=r<a&&l<o?c.get(r,l):new kendo.spreadsheet.calc.runtime.CalcError("N/A"),s._value(e,t,d)})):(c instanceof r&&(c=this.getData(c,e.sheet,l,d),Array.isArray(c)&&(c=c[0]),void 0===c&&(c=null)),c instanceof kendo.spreadsheet.calc.runtime.Matrix&&(c=c.get(0,0)),s._value(l,d,c)),clearTimeout(s._formulaContextRefresh),s._formulaContextRefresh=setTimeout(function(){s.batch(function(){},{layout:!0})},50),!0)}}),s=a.extend({onFormula:function(){return!0}}),e.FormulaContext=a,e.ValidationFormulaContext=s)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/controller.min",["kendo.core.min"],e)}(function(){!function(e){"use strict";function t(e){return e.map(function(e){return'[data-action="'+e+'"]'}).join(",")}var n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_;if(!(e.support.browser.msie&&e.support.browser.version<9)){n=e.jQuery,i=/:alphanum$/,o={up:"up",down:"down",left:"left",right:"right",home:"first-col",end:"last-col","ctrl+left":"word-left","ctrl+right":"word-right","ctrl+up":"word-up","ctrl+down":"word-down","ctrl+home":"first","ctrl+end":"last",pageup:"prev-page",pagedown:"next-page"},r={tab:"next","shift+tab":"previous",enter:"lower","shift+enter":"upper","delete":"clearContents",backspace:"clearContents","shift+:alphanum":"edit","alt+:alphanum":"edit",":alphanum":"edit","ctrl+:alphanum":"ctrl","alt+ctrl+:alphanum":"edit",":edit":"edit"},a={wheel:"onWheel","*+mousedown":"onMouseDown",contextmenu:"onContextMenu","*+mousedrag":"onMouseDrag","*+mouseup":"onMouseUp","*+dblclick":"onDblClick",mousemove:"onMouseMove"},s={pageup:"onPageUp",pagedown:"onPageDown",mouseup:"onMouseUp","*+cut":"onCut","*+paste":"onPaste","*+copy":"onCopy"},l={esc:"onEditorEsc",enter:"onEditorBlur","alt+enter":"insertNewline","shift+enter":"onEditorBlur",tab:"onEditorBlur","shift+tab":"onEditorBlur","shift+ctrl+enter":"onEditorArrayFormula"},d=n.extend({focus:"onEditorBarFocus"},l),c=n.extend({focus:"onEditorCellFocus"},l),u={cell:"range",rowheader:"row",columnheader:"column",topcorner:"sheet",autofill:"autofill"},h=t(["cut","copy","paste","insert-left","insert-right","insert-above","insert-below"]),p=t(["unhide-row","unhide-column"]),f=[],m=[],g=[];for(v in o)f.push(v),m.push("shift+"+v);for(v in r)g.push(v);s[f]="onAction",s[m]="onShiftAction",s[g]="onEntryAction",c[f]="onEditorAction",c[m]="onEditorShiftAction",_=e.Class.extend({init:function(t,i){this.view=t,this.workbook(i),this.container=n(t.container),this.clipboardElement=n(t.clipboard),this.cellContextMenu=t.cellContextMenu,this.rowHeaderContextMenu=t.rowHeaderContextMenu,this.colHeaderContextMenu=t.colHeaderContextMenu,this.drawingContextMenu=t.drawingContextMenu,this.scroller=t.scroller,this.tabstrip=t.tabstrip,this.sheetsbar=t.sheetsbar,t.nameEditor.bind("enter",this.onNameEditorEnter.bind(this)),t.nameEditor.bind("cancel",this.onNameEditorCancel.bind(this)),t.nameEditor.bind("select",this.onNameEditorSelect.bind(this)),t.nameEditor.bind("delete",this.onNameEditorDelete.bind(this)),this.editor=t.editor,this.editor.bind("change",this.onEditorChange.bind(this)),this.editor.bind("activate",this.onEditorActivate.bind(this)),this.editor.bind("deactivate",this.onEditorDeactivate.bind(this)),this.editor.bind("update",this.onEditorUpdate.bind(this)),n(t.scroller).on("scroll",this.onScroll.bind(this)),this.listener=new e.spreadsheet.EventListener(this.container,this,a),n(t.scroller).on("mousedown",this.onMouseDown.bind(this)),this._enableEditorEvents(),this.sheetsbar&&(this.sheetsbar.bind("select",this.onSheetBarSelect.bind(this)),this.sheetsbar.bind("reorder",this.onSheetBarReorder.bind(this)),this.sheetsbar.bind("rename",this.onSheetBarRename.bind(this)),this.sheetsbar.bind("remove",this.onSheetBarRemove.bind(this))),this.cellContextMenu.bind("select",this.onContextMenuSelect.bind(this)),this.rowHeaderContextMenu.bind("select",this.onContextMenuSelect.bind(this)),this.colHeaderContextMenu.bind("select",this.onContextMenuSelect.bind(this)),this.drawingContextMenu.bind("select",this.onContextMenuSelect.bind(this)),this.cellContextMenu.element.add(this.rowHeaderContextMenu.element).add(this.colHeaderContextMenu.element).add(this.drawingContextMenu.element).on("contextmenu",!1),this.tabstrip&&(this.tabstrip.bind("action",this.onCommandRequest.bind(this)),this.tabstrip.bind("dialog",this.onDialogRequest.bind(this)))},_enableEditorEvents:function(t){void 0===t||t?(this.keyListener=new e.spreadsheet.EventListener(this.clipboardElement,this,s),this.barKeyListener=new e.spreadsheet.EventListener(this.editor.barElement(),this,d),this.inputKeyListener=new e.spreadsheet.EventListener(this.editor.cellElement(),this,c)):(this.keyListener.destroy(),this.barKeyListener.destroy(),this.inputKeyListener.destroy())},_execute:function(e){var t=this._workbook.execute(e);return"EditCommand"!==e.command||t||this._workbook.trigger("change",{editorClose:!0}),t&&(this._preventNavigation=!0,"error"===t.reason?(this.editor.deactivate(!0),this.view.showError(t,function(){this.activateEditor(!1),this.editor.value(this._lastEditorValue),this.editor._value=this._workbook._inputForRef(this._workbook.activeSheet()._viewActiveCell()),this.editor.select()}.bind(this))):this.view.openDialog(t.reason)),t},_activeTooltip:function(){return""+this._workbook.activeSheet().activeCell().simplify()},onContextMenuSelect:function(e){var t,i=n(e.item).data("action");switch(i){case"cut":t={command:"ToolbarCutCommand",options:{workbook:this._workbook}};break;case"copy":t={command:"ToolbarCopyCommand",options:{workbook:this._workbook}};break;case"paste":t={command:"ToolbarPasteCommand",options:{workbook:this._workbook}};break;case"delete-drawing":t={command:"DeleteDrawingCommand",options:{drawing:this.navigator._sheet._activeDrawing}};break;case"bring-to-front":t={command:"BringToFrontCommand",options:{drawing:this.navigator._sheet._activeDrawing}};break;case"send-to-back":t={command:"SendToBackCommand",options:{drawing:this.navigator._sheet._activeDrawing}};break;case"unmerge":t={command:"MergeCellCommand",options:{value:"unmerge"}};break;case"merge":this.view.openDialog("merge");break;case"hide-row":t={command:"HideLineCommand",options:{axis:"row"}};break;case"hide-column":t={command:"HideLineCommand",options:{axis:"column"}};break;case"unhide-row":t={command:"UnHideLineCommand",options:{axis:"row"}};break;case"unhide-column":t={command:"UnHideLineCommand",options:{axis:"column"}};break;case"delete-row":t={command:"DeleteRowCommand"};break;case"delete-column":t={command:"DeleteColumnCommand"}}t&&this._execute(t)},onSheetBarRemove:function(e){var t=this._workbook.sheetByName(e.name);t&&this._workbook.removeSheet(t)},destroy:function(){this.listener.destroy(),this._enableEditorEvents(!1),this.keyListener.destroy(),this.inputKeyListener.destroy()},onSheetBarSelect:function(e){var t,n=this._workbook;if(e.isAddButton){if(this._workbook.trigger("insertSheet"))return;t=n.insertSheet()}else t=n.sheetByName(e.name);if(n.activeSheet().name()!==t.name()){if(this._workbook.trigger("selectSheet",{sheet:t}))return;this.editor.canInsertRef(!1)||this.editor.deactivate(),n.activeSheet(t)}},onSheetBarReorder:function(e){var t=this._workbook.sheetByIndex(e.oldIndex);this._workbook.moveSheetToIndex(t,e.newIndex),this._workbook.activeSheet(t)},onSheetBarRename:function(e){var t=this._workbook.sheetByIndex(e.sheetIndex);return this._workbook.sheetByName(e.name)?void this.view.showError({reason:"error",type:"duplicateSheetName"}):(this._workbook.renameSheet(t,e.name),void this.clipboardElement.focus())},sheet:function(e){this.navigator=e.navigator(),this.axisManager=e.axisManager()},workbook:function(e){this._workbook=e,this.clipboard=e.clipboard(),e.bind("commandRequest",this.onCommandRequest.bind(this))},refresh:function(){var e,t,n=this.editor,i=this._workbook,o=i.activeSheet();this._viewPortHeight=this.view.scroller.clientHeight,this.navigator.height(this._viewPortHeight),n.isActive()||this.isEditorDisabled||(n.enable(o.selection().enable()!==!1),this.resetEditorValue()),e=o.selection()._ref.simplify(),t=this._workbook.nameForRef(e,o.name()),this.view.nameEditor.value(t.name)},onScroll:function(){this.view.render({scroll:!0})},onWheel:function(e){var t=e.originalEvent.deltaX,n=e.originalEvent.deltaY;1===e.originalEvent.deltaMode&&(t*=10,n*=10),this.scrollWith(t,n),e.preventDefault()},onAction:function(e,t){var n=this._workbook.activeSheet();n._activeDrawing=null,this.navigator.moveActiveCell(o[t]),e.preventDefault()},onPageUp:function(){this.scrollDown(-this._viewPortHeight)},onPageDown:function(){this.scrollDown(this._viewPortHeight)},onEntryAction:function(e,t){var n,o,a,s,l=this._workbook.activeSheet();if(e.mod){switch(n=String.fromCharCode(e.keyCode),o=!0,n){case"A":l._activeDrawing=null,this.navigator.selectAll();break;case"Y":this._workbook.undoRedoStack.redo();break;case"Z":this._workbook.undoRedoStack.undo();break;default:o=!1}o&&e.preventDefault()}else if(a=l.selection().enable()===!1,s=":edit"!==t,"delete"==t||"backspace"==t)l._activeDrawing?this._execute({command:"DeleteDrawingCommand",options:{drawing:l._activeDrawing}}):a||this._execute({command:"ClearContentCommand"}),e.preventDefault();else if(i.test(t)||!s){if(l._activeDrawing=null,a)return void e.preventDefault();s&&this.editor.value(""),this.activateEditor(s)}else this.navigator.navigateInSelection(r[t]),e.preventDefault()},onShiftAction:function(e,t){this.navigator.modifySelection(o[t.replace("shift+","")],this.appendSelection),e.preventDefault()},onMouseMove:function(e){var t,n=this._workbook.activeSheet();n.resizingInProgress()||n.selectionInProgress()||(t=this.objectAt(e),"columnresizehandle"===t.type||"rowresizehandle"===t.type?n.positionResizeHandle(t.ref):n.removeResizeHandle(),n._renderComment("cell"==t.type?t.ref:null))},onMouseDown:function(t){var n,i,o=this.objectAt(t);if(o.pane&&(this.originFrame=o.pane),this._startResizingDrawing(t,o))return void t.stopPropagation();if(n=this._workbook.activeSheet(),i=this.container.closest('[data-role="window"]'),i.length&&(i=e.widgetInstance(i),i&&i.options.modal&&t.stopPropagation()),n._activeDrawing=null,"drawing"===o.type)return n._activeDrawing=o.drawing,o.copy=o.drawing.clone(),o.startBox=n.drawingBoundingBox(o.copy),n.startDragging(o),n.triggerChange({dragging:!0}),void t.preventDefault();if("editor"===o.type)return this.onEditorEsc(),this.openCustomEditor(),void t.preventDefault();if(this.editor.canInsertRef(!1)&&o.ref)return this._workbook.activeSheet()._setFormulaSelections(this.editor.highlightedRefs()),this.navigator.startSelection(o.ref,this._selectionMode,this.appendSelection,t.shiftKey,this.view),void t.preventDefault();if(this._preventNavigation=!1,this.editor.deactivate(),!this._preventNavigation){if("columnresizehandle"===o.type||"rowresizehandle"===o.type)return n.startResizing({x:o.x,y:o.y}),void t.preventDefault();if("filtericon"===o.type)return this.openFilterMenu(t),void t.preventDefault();this._selectionMode=u[o.type],this.appendSelection=t.mod,this.navigator.startSelection(o.ref,this._selectionMode,this.appendSelection,t.shiftKey,this.view)}},_startResizingDrawing:function(e){var t,i,o,r,a=n(e.target).closest(".k-spreadsheet-drawing-handle");if(a.length)return t=this.translateCoords(e),i=a.data("direction"),o=this._workbook.activeSheet(),r=o._activeDrawing,o.startDragging({pane:this.originFrame,drawing:r,copy:r.clone(),startBox:o.drawingBoundingBox(r),resize:i,startX:t.x,startY:t.y}),!0},onContextMenu:function(t){var n,i,o,r,a,s=this._workbook.activeSheet();t.preventDefault(),s.resizingInProgress()||s.draggingInProgress()||(this.cellContextMenu.close(),this.colHeaderContextMenu.close(),this.rowHeaderContextMenu.close(),this.drawingContextMenu.close(),i=this.objectAt(t),"columnresizehandle"!==i.type&&"rowresizehandle"!==i.type&&(i.ref?this.navigator.selectForContextMenu(i.ref,u[i.type]):"drawing"==i.type&&this.navigator.selectDrawingForContextMenu(i.drawing),o=this.navigator._sheet.select()instanceof e.spreadsheet.UnionRef,r=!1,a=!1,"columnheader"==i.type?(n=this.colHeaderContextMenu,r=!o&&this.axisManager.selectionIncludesHiddenColumns()):"rowheader"==i.type?(n=this.rowHeaderContextMenu,r=!o&&this.axisManager.selectionIncludesHiddenRows()):"drawing"==i.type?n=this.drawingContextMenu:(n=this.cellContextMenu,a=this.navigator.selectionIncludesMergedCells()),n.element.find(h).toggle(!o),n.element.find(p).toggle(r),n.element.find("[data-action=unmerge]").toggle(a),setTimeout(function(){n.open(t.pageX,t.pageY)})))},prevent:function(e){e.preventDefault()},constrainResize:function(e,t){var n=this._workbook.activeSheet(),i=n.resizeHandlePosition();return!i||"outside"===e||"topcorner"===e||t.col<i.col||t.row<i.row},_dragDrawing:function(e){var t,n,i,o,r=this._workbook.activeSheet(),a=r.draggingInProgress();return!!a&&(t=this.translateCoords(e),n=a.drawing,i=t.x-a.startX,o=t.y-a.startY,"SE"==a.resize?a.aspect?Math.abs(i)>Math.abs(o)?(n.width=Math.max(a.copy.width+i,20),n.height=n.width/a.aspect):(n.height=Math.max(a.copy.height+o,20),n.width=n.height*a.aspect):(n.width=Math.max(a.copy.width+i,20),n.height=Math.max(a.copy.height+o,20)):"E"==a.resize?n.width=Math.max(a.copy.width+i,20):"S"==a.resize?n.height=Math.max(a.copy.height+o,20):"N"==a.resize?a.copy.height-o>20&&(n.height=a.copy.height-o,n.offsetY=a.copy.offsetY+o):"W"==a.resize?a.copy.width-i>20&&(n.width=a.copy.width-i,n.offsetX=a.copy.offsetX+i):"NE"==a.resize?(n.width=Math.max(a.copy.width+i,20),a.copy.height-o>20&&(n.height=a.copy.height-o,n.offsetY=a.copy.offsetY+o)):"SW"==a.resize?(n.height=Math.max(a.copy.height+o,20),a.copy.width-i>20&&(n.width=a.copy.width-i,n.offsetX=a.copy.offsetX+i)):"NW"==a.resize?(a.copy.height-o>20&&(n.height=a.copy.height-o,n.offsetY=a.copy.offsetY+o),a.copy.width-i>20&&(n.width=a.copy.width-i,n.offsetX=a.copy.offsetX+i)):(n.offsetX=a.copy.offsetX+i,n.offsetY=a.copy.offsetY+o),r.triggerChange({dragging:!0}),!0)},onMouseDrag:function(t){var n,i,o,r;if("sheet"!==this._selectionMode&&(n={clientX:t.clientX,clientY:t.clientY},i=this._workbook.activeSheet(),!this._dragDrawing(t))){if(o=this.objectAt(n),i.resizingInProgress())return void(this.constrainResize(o.type,o.ref)||i.resizeHintPosition({x:o.x,y:o.y}));if("outside"===o.type)return void this.startAutoScroll(o);this.originFrame===o.pane?this.selectToLocation(n):(r=this.originFrame._grid,o.x>r.right&&e.scrollLeft(this),o.y>r.bottom&&this.scrollTop(),o.y<r.top||o.x<r.left?this.startAutoScroll(o,n):this.selectToLocation(n)),t.preventDefault()}},onMouseUp:function(e){var t,n,i,o=this._workbook.activeSheet();if(o.completeResizing(),o.completeDragging(),this.navigator.completeSelection(),this.stopAutoScroll(),t=this.editor.activeEditor()){for(n=e.target;n;){if(n===t.element[0])return;n=n.parentNode}i=this.objectAt(e),i&&i.ref&&t.canInsertRef(!1)&&(t.refAtPoint(o),o._setFormulaSelections(t.highlightedRefs()))}},onDblClick:function(e){var t,n=this.objectAt(e),i=this._workbook.activeSheet().selection().enable()===!1;"cell"!==n.type||i||(t=this._workbook.activeSheet().selection(),this.activateEditor(!t.value()&&!t.formula()),this.onEditorUpdate())},onCut:function(e){if(e){var t=this.clipboardElement.find("table.kendo-clipboard-"+this.clipboard._uid).detach();this.clipboardElement.append(t.clone(!1)),setTimeout(function(){this.clipboardElement.empty().append(t)}.bind(this))}this.clipboard.menuInvoked=void 0===e,this._execute({command:"CutCommand",options:{workbook:this.view._workbook,event:e.originalEvent||e}})},clipBoardValue:function(){return this.clipboardElement.html()},_pasteImage:function(e){var t=this,n=new window.Image;n.src=window.URL.createObjectURL(e),n.onload=function(){t._execute({command:"InsertImageCommand",options:{blob:e,width:n.width,height:n.height}})},setTimeout(function(){window.URL.revokeObjectURL(n.src)},10)},onPaste:function(t){var n,i,o,r,a,s,l,d=this,c="",u="";if(d.clipboard.menuInvoked=void 0===t,t){if(n=t.originalEvent.clipboardData,!n||!n.getData){if(s=d.clipboardElement.find("table.kendo-clipboard-"+d.clipboard._uid).detach(),d.clipboardElement.empty(),window.clipboardData.files&&window.clipboardData.files.length&&(l=window.clipboardData.files[0],/^image\/(?:png|jpe?g|gif)$/i.test(l.type)))return d._pasteImage(l);if(c=d.clipboardElement.html(),u=window.clipboardData.getData("Text"),u&&(u=u.trim()),!c&&!u)return;return d.clipboard.external({html:c,plain:u}),d.clipboardElement.empty().append(s),d._execute({command:"PasteCommand",options:{workbook:d.view._workbook,event:t.originalEvent||t}}),void(d.clipboard.menuInvoked=!0)}if(t.preventDefault(),i=!1,o=!1,window.DOMStringList&&n.types instanceof window.DOMStringList?(i=n.types.contains("text/html"),o=n.types.contains("text/plain")):Array.isArray(n.types)?(i=n.types.indexOf("text/html")>=0,o=n.types.indexOf("text/plain")>=0):(i=/text\/html/.test(n.types),o=/text\/plain/.test(n.types)),i&&(c=n.getData("text/html").trim()),o&&(u=n.getData("text/plain").trim()),!c&&!u&&n.items&&n.items.length)for(r=0;r<n.items.length;++r)if(a=n.items[r],"file"==a.kind&&/^image\/(?:png|jpe?g|gif)$/i.test(a.type))return d._pasteImage(a.getAsFile())}else{if(e.support.browser.msie)return d.clipboardElement.focus().select(),void document.execCommand("paste");d.clipboard.menuInvoked=!0}(c||u)&&(d.clipboard.external({html:c,plain:u}),d._execute({command:"PasteCommand",options:{workbook:d.view._workbook,event:t.originalEvent||t}}))},onCopy:function(e){this.clipboard.menuInvoked=void 0===e,this._execute({command:"CopyCommand",options:{workbook:this.view._workbook,event:e.originalEvent||e}})},scrollTop:function(){this.scroller.scrollTop=0},scrollLeft:function(){this.scroller.scrollLeft=0},scrollDown:function(e){this.scroller.scrollTop+=e},scrollRight:function(e){this.scroller.scrollLeft+=e},scrollWith:function(e,t){this.scroller.scrollTop+=t,this.scroller.scrollLeft+=e},translateCoords:function(e){var t=this.container[0].getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},objectAt:function(e,t){if(e)return e=this.translateCoords(e),this.view.objectAt(e.x,e.y,t)},selectToLocation:function(e){var t=this.objectAt(e,!0);t.pane&&t.ref&&(this.extendSelection(t),this.lastKnownCellLocation=e,this.originFrame=t.pane),this.stopAutoScroll()},extendSelection:function(e){this.navigator.extendSelection(e.ref,this._selectionMode)},autoScroll:function(){var e=this._autoScrollTarget.x,t=this._autoScrollTarget.y,n=this.originFrame._grid,i=this.view.scroller,o=8,r=i.scrollLeft,a=i.scrollTop;e<n.left&&this.scrollRight(-o),e>n.right&&this.scrollRight(o),t<n.top&&this.scrollDown(-o),t>n.bottom&&this.scrollDown(o),a===i.scrollTop&&r===i.scrollLeft?this.selectToLocation(this.finalLocation):this.extendSelection(this.objectAt(this.lastKnownCellLocation))},startAutoScroll:function(e,t){this._scrollInterval||(this._scrollInterval=setInterval(this.autoScroll.bind(this),50)),this.finalLocation=t||this.lastKnownCellLocation,this._autoScrollTarget=e},stopAutoScroll:function(){clearInterval(this._scrollInterval),this._scrollInterval=null},openCustomEditor:function(){this.view.openCustomEditor()},openFilterMenu:function(e){var t=this.objectAt(e),n=this._workbook.activeSheet(),i=n.filterColumn(t.ref),o=this.view.createFilterMenu(i);o.bind("action",this.onCommandRequest.bind(this)),o.bind("action",o.close.bind(o)),o.openFor(e.target)},_saveEditorValue:function(e){var t=this.editor._range.sheet(),n=this.editor.value();this._workbook.activeSheet()!==t&&(this._workbook.activeSheet()._setFormulaSelections(),this._workbook.activeSheet(t)),t.isInEditMode(!1),this._lastEditorValue=n,this._execute({command:"EditCommand",options:{value:n,arrayFormula:e}})},onEditorChange:function(){this._saveEditorValue(!1)},onEditorArrayFormula:function(){this._saveEditorValue(!0),this.editor.deactivate(!0)},onEditorActivate:function(){var e=this._workbook,t=e.activeSheet();t._setFormulaSelections(this.editor.highlightedRefs()),t.isInEditMode(!0)},onEditorDeactivate:function(){var e=this._workbook.activeSheet();e.isInEditMode(!1),e._setFormulaSelections([])},onEditorUpdate:function(){this._workbook.activeSheet()._setFormulaSelections(this.editor.highlightedRefs())},onEditorBarFocus:function(){var e=this._workbook.activeSheet().selection().enable()===!1;e||this.editor.activate({range:this._workbook.activeSheet().selection(),rect:this.view.activeCellRectangle(),tooltip:this._activeTooltip()})},onEditorCellFocus:function(){this.editor.scale()},onEditorEsc:function(){this.resetEditorValue(),this.editor.deactivate(),this.clipboardElement.focus()},insertNewline:function(e){e.preventDefault(),this.editor.insertNewline()},onEditorBlur:function(e,t){this.editor.isFiltered()||(this._preventNavigation=!1,this.editor.deactivate(),this._preventNavigation||(this.clipboardElement.focus(),this.navigator.navigateInSelection(r[t])))},onEditorAction:function(e,t){var n=this.editor,i=this._workbook.activeSheet();this._casualEditing&&/^(?:up|right|down|left)$/.test(t)?(this.deactivateEditor(),this.navigator.moveActiveCell(o[t]),e.preventDefault()):n.canInsertRef(!0)&&(this.navigator.moveActiveCell(o[t]),n.activeEditor().refAtPoint(i),i._setFormulaSelections(n.highlightedRefs()),e.preventDefault())},onEditorShiftAction:function(e,t){var n=this.editor,i=this._workbook.activeSheet();n.canInsertRef(!0)&&(this.navigator.modifySelection(o[t.replace("shift+","")],this.appendSelection),n.activeEditor().refAtPoint(i),i._setFormulaSelections(n.highlightedRefs()),e.preventDefault())},resetEditorValue:function(){var e=this._workbook.activeSheet(),t=e.activeCell(),n=this._workbook._inputForRef(t),i=e.range(t).intersectingArrayFormula();i&&(n="="+i.formula),this.editor.value(n,!!i)},activateEditor:function(e){this._casualEditing=e,this.editor.activate({range:this._workbook.activeSheet().selection(),rect:this.view.activeCellRectangle(),tooltip:this._activeTooltip()}).focus()},deactivateEditor:function(){this.view.editor.deactivate()},onCommandRequest:function(e){e.command?this._execute(e):this._workbook.undoRedoStack[e.action]()},onDialogRequest:function(e){var t={pdfExport:this._workbook.options.pdf,excelExport:this._workbook.options.excel};e.options?n.extend(!0,e.options,t):e.options=t,this.view.openDialog(e.name,e.options)},onNameEditorEnter:function(){var t,n=this._workbook,i=n.activeSheet(),o=this.view.nameEditor.value(),r=e.spreadsheet.calc.parseReference(o,!0)||n.nameValue(o);return r instanceof e.spreadsheet.Ref?(r.sheet&&r.sheet.toLowerCase()!=i.name().toLowerCase()&&(t=n.sheetByName(r.sheet),t&&(n.activeSheet(t),i=t)),void i.range(r).select()):(r=i.selection()._ref.clone().simplify().setSheet(i.name(),!0),this._execute({command:"DefineNameCommand",options:{name:o,value:r}}),void this.clipboardElement.focus())},onNameEditorCancel:function(){this.clipboardElement.focus()},onNameEditorSelect:function(t){var n,i=t.name,o=this._workbook,r=o.activeSheet(),a=o.nameValue(i);return a instanceof e.spreadsheet.Ref?(a.sheet&&a.sheet.toLowerCase()!=r.name().toLowerCase()&&(n=o.sheetByName(a.sheet),n&&(o.activeSheet(n),r=n)),void r.range(a).select()):void this.clipboardElement.focus()},onNameEditorDelete:function(e){this._execute({command:"DeleteNameCommand",options:{name:e.name}}),this.clipboardElement.focus()}}),e.spreadsheet.Controller=_}}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/view.min",["kendo.core.min","kendo.menu.min","spreadsheet/sheetsbar.min","util/main.min"],e)}(function(){!function(e){function t(e){var t,n=window.getSelection();n.removeAllRanges(),t=document.createRange(),t.selectNodeContents(e),n.addRange(t)}function n(e,t){var n=e.trs[t].children;return n[n.length-2]}function i(e,t){var n=e.trs[t-1],i=e.trs[t].children.length-1;if(n&&i>=0)return n.children[i]}function o(e){return(e.size||1)+"px solid "+(e.color||"#000")}function r(e){return/:\/\//.test(e)||(e="http://"+e),e}function a(t,n,i,a){function s(t){var i,o=n.link;return o||"object"==typeof n.value&&(o=n.value.link),o?(i={textDecoration:"none"},n.color&&(i.color=n.color),n.underline&&(i.textDecoration="underline"),e.dom.element("a",{href:r(o),style:i,target:"_blank"},t?[t]:[])):t}var l,d,c,u,h,p,f,m,g,v,_,b,w=null!=n.value||null!=n.validation&&!n.validation.value||n.background||n.merged||n.comment;if(i||w){if(l={},d=n.background,d&&(c=d,a&&(c=e.parseColor(c).toHSV(),c.v*=.9,c=c.toCssRgba()),c=o({color:c}),l.outline=c),d&&(l.backgroundColor=d),n.color&&(l.color=n.color),n.fontFamily&&(l.fontFamily=n.fontFamily),n.underline&&(l.textDecoration="underline"),n.italic&&(l.fontStyle="italic"),n.textAlign&&(l.textAlign=n.textAlign),n.bold&&(l.fontWeight="bold"),n.fontSize&&(l.fontSize=n.fontSize+"px"),n.wrap===!0?(l.whiteSpace="pre-wrap",l.overflowWrap="break-word",l.wordWrap="break-word"):(l.whiteSpace="pre",l.overflowWrap="normal",l.wordWrap="normal"),l.left=n.left+1+"px",l.top=n.top+1+"px",l.width=n.width-1+"px",l.height=n.height-1+"px",u=n.value,h=typeof u,p=n.format,p||"number"!=h||u==Math.floor(u)||(p="0.##############"),p&&null!=u?(u=e.spreadsheet.formatting.format(u,p),u.__dataType&&(h=u.__dataType)):null!==u&&void 0!==u&&(u=n.html?e.dom.html(u):e.dom.text(u)),!l.textAlign)switch(h){case"number":case"date":case"percent":case"currency":l.textAlign="right";break;case"boolean":l.textAlign="center"}return e.spreadsheet.draw.applyIndent(n,l),f=[C.cell],i&&f.push(i),n.enable===!1&&f.push("k-state-disabled"),
n.merged&&f.push("k-spreadsheet-merged-cell"),n.comment&&f.push("k-spreadsheet-has-comment"),m=n.verticalAlign||"bottom",u=m&&u?e.dom.element("div",{className:"k-vertical-align-"+m},[s(u)]):s(u),g=u?[u]:[],v={style:l},_=n.validation,_&&!_.value&&(g.push(e.dom.element("span",{className:"k-dirty"})),f.push("k-dirty-cell"),v.title=_.message),v.className=f.join(" "),b=e.dom.element("div",v,g),t.push(b),b}}function s(t,r,a){var s,l,d,c,u,h,p,f={};if(a.background&&(f.backgroundColor=a.background),a.color&&(f.color=a.color),a.fontFamily&&(f.fontFamily=a.fontFamily),a.underline&&(f.textDecoration="underline"),a.italic&&(f.fontStyle="italic"),a.textAlign&&(f.textAlign=a.textAlign),a.verticalAlign&&(f.verticalAlign="center"===a.verticalAlign?"middle":a.verticalAlign),a.bold&&(f.fontWeight="bold"),a.fontSize&&(f.fontSize=a.fontSize+"px"),a.wrap===!0&&(f.whiteSpace="pre-wrap"),a.borderRight?f.borderRight=o(a.borderRight):a.background&&(f.borderRightColor=a.background),a.borderBottom?f.borderBottom=o(a.borderBottom):a.background&&(f.borderBottomColor=a.background),s=a.value,l=typeof s,d=a.format,d||"number"!=l||s==Math.floor(s)||(d="0.##############"),d&&null!=s&&(s=e.spreadsheet.formatting.format(s,d),s.__dataType&&(l=s.__dataType)),!f.textAlign)switch(l){case"number":case"date":case"percent":case"currency":f.textAlign="right";break;case"boolean":f.textAlign="center"}return c=null,a.enable===!1&&(c="k-state-disabled"),u=t.addCell(r,s,f,c,a.validation),a.borderLeft?(p=n(t,r),h=o(a.borderLeft),p&&h&&(p.attr.style.borderRight=h)):a.background&&(f.borderLeftColor=a.background),a.borderTop?(p=i(t,r),h=o(a.borderTop),p&&h&&(p.attr.style.borderBottom=h)):a.background&&(f.borderTopColor=a.background),u}function l(e,t,n){return e>=t&&e<=n}function d(t){["N","NE","E","SE","S","SW","W","NW"].forEach(function(n){t.push(e.dom.element("div",{className:"k-spreadsheet-drawing-handle "+n,"data-direction":n}))})}var c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S;e.support.browser.msie&&e.support.browser.version<9||(c=e.jQuery,u=e.spreadsheet.CellRef,h=".",p=7,f=20,m="Error",g={view:"k-spreadsheet-view",fixedContainer:"k-spreadsheet-fixed-container",editContainer:"k-spreadsheet-edit-container",scroller:"k-spreadsheet-scroller",viewSize:"k-spreadsheet-view-size",clipboard:"k-spreadsheet-clipboard",cellEditor:"k-spreadsheet-cell-editor",barEditor:"k-spreadsheet-editor",topCorner:"k-spreadsheet-top-corner",filterHeadersWrapper:"k-filter-wrapper",filterRange:"k-filter-range",filterButton:"k-spreadsheet-filter",filterButtonActive:"k-state-active",horizontalResize:"k-horizontal-resize",verticalResize:"k-vertical-resize",icon:"k-icon",iconFilterDefault:"k-i-arrow-60-down",sheetsBar:"k-spreadsheet-sheets-bar",sheetsBarActive:"k-spreadsheet-sheets-bar-active",sheetsBarInactive:"k-spreadsheet-sheets-bar-inactive",cellContextMenu:"k-spreadsheet-cell-context-menu",rowHeaderContextMenu:"k-spreadsheet-row-header-context-menu",colHeaderContextMenu:"k-spreadsheet-col-header-context-menu",drawingContextMenu:"k-spreadsheet-drawing-context-menu"},e.spreadsheet.messages.view={nameBox:"Name Box",errors:{openUnsupported:"Unsupported format. Please select an .xlsx file.",shiftingNonblankCells:"Cannot insert cells due to data loss possibility. Select another insert location or delete the data from the end of your worksheet.",insertColumnWhenRowIsSelected:"Cannot insert column when all columns are selected.",insertRowWhenColumnIsSelected:"Cannot insert row when all rows are selected.",filterRangeContainingMerges:"Cannot create a filter within a range containing merges",sortRangeContainingMerges:"Cannot sort a range containing merges",cantSortMultipleSelection:"Cannot sort multiple selection",cantSortNullRef:"Cannot sort empty selection",cantSortMixedCells:"Cannot sort range containing cells of mixed shapes",validationError:"The value that you entered violates the validation rules set on the cell.",cannotModifyDisabled:"Cannot modify disabled cells.",insertRowBelowLastRow:"Cannot insert row below the last row.",insertColAfterLastCol:"Cannot insert column to the right of the last column."},tabs:{home:"Home",insert:"Insert",data:"Data"}},e.spreadsheet.messages.menus={cut:"Cut",copy:"Copy",paste:"Paste",merge:"Merge",unmerge:"Unmerge","delete":"Delete",hide:"Hide",unhide:"Unhide",bringToFront:"Bring to front",sendToBack:"Send to back"},v=e.Class.extend({init:function(){this.cols=[],this.trs=[],this._height=0,this._width=0},addColumn:function(t){this._width+=t;var n=e.dom.element("col",{style:{width:t+"px"}});n.visible=t>0,this.cols.push(n)},addRow:function(t){var n,i=null;i={style:{height:t+"px"}},this._height+=t,n=e.dom.element("tr",i),n.visible=t>0,this.trs.push(n)},addCell:function(t,n,i,o,r){var a,s,l;return null!==n&&void 0!==n||(n=""),n instanceof e.dom.Node||(n=e.dom.text(n)),a=[n],s={style:i},r&&!r.value&&(a.push(e.dom.element("span",{className:"k-dirty"})),o=(o||"")+(o?" ":"")+"k-dirty-cell",s.title=r.message),o&&(s.className=o),l=e.dom.element("td",s,a),this.trs[t].children.push(l),l},toDomTree:function(t,n,i){this.trs=this.trs.filter(function(e){return e.visible});var o=0;return this.cols=this.cols.filter(function(e,t){return e.visible||(this.trs.forEach(function(e){e.children.splice(t-o,1)}),o++),e.visible},this),e.dom.element("table",{style:{left:t+"px",top:n+"px",height:this._height+"px",width:this._width+"px"},className:i,role:"presentation"},[e.dom.element("colgroup",null,this.cols),e.dom.element("tbody",null,this.trs)])}}),_='<ul class="#=classNames.cellContextMenu#"><li data-action=cut>#: messages.cut #</li><li data-action=copy>#: messages.copy #</li><li data-action=paste>#: messages.paste #</li><li class="k-separator"></li><li data-action=merge>#: messages.merge #</li><li data-action=unmerge>#: messages.unmerge #</li></ul>',b='<ul class="#=classNames.rowHeaderContextMenu#"><li data-action=cut>#: messages.cut #</li><li data-action=copy>#: messages.copy #</li><li data-action=paste>#: messages.paste #</li><li class="k-separator"></li><li data-action="delete-row">#: messages.delete #</li><li data-action="hide-row">#: messages.hide #</li><li data-action="unhide-row">#: messages.unhide #</li></ul>',w='<ul class="#=classNames.colHeaderContextMenu#"><li data-action=cut>#: messages.cut #</li><li data-action=copy>#: messages.copy #</li><li data-action=paste>#: messages.paste #</li><li class="k-separator"></li><li data-action="delete-column">#: messages.delete #</li><li data-action="hide-column">#: messages.hide #</li><li data-action="unhide-column">#: messages.unhide #</li></ul>',k='<ul class="#=classNames.drawingContextMenu#"><li data-action="bring-to-front">#: messages.bringToFront #</li><li data-action="send-to-back">#: messages.sendToBack #</li><li class="k-separator"></li><li data-action="delete-drawing">#: messages.delete #</li></ul>',e.spreadsheet.ContextMenu=e.ui.ContextMenu,y=e.template('<div class="#=classNames.view#"><div class="#=classNames.fixedContainer#"></div><div class="#=classNames.scroller#"><div class="#=classNames.viewSize#"></div></div><div tabindex="0" class="#=classNames.clipboard#" contenteditable=true></div><div class="#=classNames.cellEditor#"></div></div><div class="#=classNames.sheetsBar#"></div>'+_+b+w+k),x=e.Class.extend({init:function(t,n){var i,o=x.classNames;this.element=t,this.options=c.extend(!0,{messages:e.spreadsheet.messages.view},this.options,n),this._chrome(),this._dialogs=[],t.append(y({classNames:o,messages:e.spreadsheet.messages.menus})),this._formulaInput(),this.wrapper=t.find(h+o.view),this.container=t.find(h+o.fixedContainer)[0],this.scroller=t.find(h+o.scroller)[0],this.clipboard=t.find(h+o.clipboard),this.viewSize=c(this.scroller.firstChild),this.tree=new e.dom.Tree(this.container),this.clipboardContents=new e.dom.Tree(this.clipboard[0]),this.editor=new e.spreadsheet.SheetEditor(this),this._sheetsbar(),i={target:t,animation:!1,showOn:"never"},this.cellContextMenu=new e.spreadsheet.ContextMenu(t.find(h+o.cellContextMenu),i),this.colHeaderContextMenu=new e.spreadsheet.ContextMenu(t.find(h+o.colHeaderContextMenu),i),this.rowHeaderContextMenu=new e.spreadsheet.ContextMenu(t.find(h+o.rowHeaderContextMenu),i),this.drawingContextMenu=new e.spreadsheet.ContextMenu(t.find(h+o.drawingContextMenu),i)},enableClipboard:function(e){this.isClipboardDeactivated=!e,e?this.clipboard.attr("contenteditable",e):this.clipboard.removeAttr("contenteditable")},_resize:function(){var t=c(this.formulaBar.element).parents(".k-spreadsheet-action-bar"),n=e._outerHeight,i=this.tabstrip?n(this.tabstrip.element):0,o=t?n(t):0,r=this.sheetsbar?n(this.sheetsbar.element):0;this.wrapper.height(this.element.height()-(i+o+r)),this.tabstrip&&this.tabstrip.quickAccessAdjust()},_chrome:function(){var t,n=c("<div class='k-spreadsheet-action-bar' />").prependTo(this.element),i=c("<div class='k-spreadsheet-name-editor' />").appendTo(n);this.nameEditor=new e.spreadsheet.NameEditor(i,this.options),t=c("<div />").appendTo(n),this.formulaBar=new e.spreadsheet.FormulaBar(t),this.options.toolbar&&this._tabstrip()},_formulaInput:function(){var t=this.element.find(h+x.classNames.cellEditor);this.formulaInput=new e.spreadsheet.FormulaInput(t,{autoScale:!0})},_sheetsbar:function(){if(this.options.sheetsbar){var t=c.extend(!0,{openDialog:this.openDialog.bind(this)},this.options.sheetsbar);this.sheetsbar=new e.spreadsheet.SheetsBar(this.element.find(h+x.classNames.sheetsBar),t)}},_tabstrip:function(){var t,n=this.options.messages.tabs,i=c.extend(!0,{home:!0,insert:!0,data:!0},this.options.toolbar),o=[];this.tabstrip&&(this.tabstrip.destroy(),this.element.children(".k-tabstrip").remove());for(t in i)(i[t]===!0||i[t]instanceof Array)&&o.push({id:t,text:n[t],content:""});this.tabstrip=new e.spreadsheet.TabStrip(c("<div />").prependTo(this.element),{animation:!1,dataTextField:"text",dataContentField:"content",dataSource:o,toolbarOptions:i,view:this}),this.tabstrip.select(0)},_executeCommand:function(e){this._sheet.trigger("commandRequest",e)},workbook:function(e){this._workbook=e,e._view=this,this.nameEditor._workbook=e},sheet:function(e){this._sheet=e},activeCellRectangle:function(){return this.cellRectangle(this._sheet._viewActiveCell())},_rectangle:function(e,t){return e._grid.boundingRectangle(t.toRangeRef())},isColumnResizer:function(e,t,n){return e-=this._sheet._grid._headerWidth,t._grid.columns.frozen||(e+=this.scroller.scrollLeft),n=this._sheet._grid._columns.locate(0,n,function(t){return Math.abs(e-t)<=p/2}),null===n||this._sheet.isHiddenColumn(n)?null:n},isRowResizer:function(e,t,n){return e-=this._sheet._grid._headerHeight,t._grid.rows.frozen||(e+=this.scroller.scrollTop),n=this._sheet._grid._rows.locate(0,n,function(t){return Math.abs(e-t)<=p/2}),null===n||this._sheet.isHiddenRow(n)?null:n},isFilterIcon:function(t,n,i,o){var r=this,a=i._grid,s=a.rows.frozen?0:r.scroller.scrollTop,l=a.columns.frozen?0:r.scroller.scrollLeft;return t-=r._sheet._grid._headerWidth-l,n-=r._sheet._grid._headerHeight-s,e.util.withExit(function(e){r._sheet.forEachFilterHeader(o,function(o){var a=r._rectangle(i,o);i.filterIconRect(a).intersects(t,n)&&e(!0)})})},isAutoFill:function(e,t,n){var i,o=this._sheet.select();return!(o.size>1)&&(e-=this._sheet._grid._headerWidth,t-=this._sheet._grid._headerHeight,n._grid.columns.frozen||(e+=this.scroller.scrollLeft),n._grid.rows.frozen||(t+=this.scroller.scrollTop),i=this._rectangle(n,o),Math.abs(i.right-e)<8&&Math.abs(i.bottom-t)<8)},isEditButton:function(e,t,n){var i,o=this._sheet.activeCellCustomEditor();if(o&&(i=this.activeCellRectangle(),t>=i.top&&t<=i.bottom))return n._editorInLastColumn?e<i.left&&e>=i.left-f:e>i.right&&e<=i.right+f},drawingAt:function(e,t,n){var i,o,r,a,s;for(e-=this._sheet._grid._headerWidth,t-=this._sheet._grid._headerHeight,n._grid.columns.frozen||(e+=this.scroller.scrollLeft),n._grid.rows.frozen||(t+=this.scroller.scrollTop),i=this._sheet,o=this._sheet._drawings,r=o.length;--r>=0;)if(a=o[r],s=i.drawingBoundingBox(a),s.intersects(e,t))return{drawing:a,drx:s.left-e,dry:s.top-t}},objectAt:function(e,t,n){var i,o,r,a,s,l,d,c,h=this._sheet._grid;if(e<0||t<0||e>this.scroller.clientWidth||t>this.scroller.clientHeight)i={type:"outside"};else if(e<h._headerWidth&&t<h._headerHeight)i={type:"topcorner"};else if(o=this.paneAt(e,t)){if(!n&&(r=this.drawingAt(e,t,o)))return{type:"drawing",drawing:r.drawing,drx:r.drx,dry:r.dry,pane:o,startX:e,startY:t};a=o._grid.rows.indexVisible(t,this.scroller.scrollTop),s=o._grid.columns.indexVisible(e,this.scroller.scrollLeft),l="cell",d=new u(a,s),c=this._sheet.selectionInProgress(),this.isAutoFill(e,t,o)?l="autofill":this.isFilterIcon(e,t,o,d)?l="filtericon":!c&&e<h._headerWidth?(l="rowheader",null!==(a=this.isRowResizer(t,o,a))&&(d=new u(a,(-(1/0))),l="rowresizehandle")):!c&&t<h._headerHeight?(l="columnheader",null!==(s=this.isColumnResizer(e,o,s))&&(d=new u((-(1/0)),s),l="columnresizehandle")):this.isEditButton(e,t,o)&&(l="editor"),i={type:l,ref:d}}else i={type:"outside"};return i.pane=o,i.x=e,i.y=t,i},paneAt:function(e,t){return this.panes.filter(function(n){var i=n._grid;return l(t,i.top,i.bottom)&&l(e,i.left,i.right)})[0]},containingPane:function(e){return this.panes.filter(function(t){return!!t._grid.contains(e)})[0]},cellRectangle:function(e){var t=this.containingPane(e)._grid,n=this._sheet._grid.rectangle(e);return n.offset(t.headerWidth-(t.columns.frozen?0:this.scroller.scrollLeft),t.headerHeight-(t.rows.frozen?0:this.scroller.scrollTop))},refresh:function(e){var t,n,i=this._sheet;this.tabstrip&&this.tabstrip.refreshTools(i.range(i.activeCell())),e.sheetSelection&&this.sheetsbar&&this.sheetsbar.renderSheets(this._workbook.sheets(),this._workbook.sheetIndex(this._sheet)),this._resize(),this.viewSize[0].style.height=i._grid.totalHeight()+"px",this.viewSize[0].style.width=i._grid.totalWidth()+"px",e.layout&&(t=i.frozenColumns(),n=i.frozenRows(),this.panes=[this._pane(n,t)],t>0&&this.panes.push(this._pane(n,0,null,t)),n>0&&this.panes.push(this._pane(0,t,n,null)),n>0&&t>0&&this.panes.push(this._pane(0,0,n,t))),e.filter&&this._destroyFilterMenu(),e.activeCell&&(this._focus=i.activeCell().toRangeRef())},createFilterMenu:function(t){var n,i,o,r,a,s;return this._filterMenu&&this._filterMenu.options.column==t?this._filterMenu:(this._destroyFilterMenu(),n=this._sheet,i=n.filter().ref,o=new e.spreadsheet.Range(i,n),r=c("<div />").appendTo(this.element),a={column:t,range:o},s=new e.spreadsheet.FilterMenu(r,a),this._filterMenu=s,s)},selectClipboardContents:function(){this.isClipboardDeactivated||(this.clipboard.focus(),t(this.clipboard[0]))},scrollIntoView:function(e){var t=!1,n=this.containingPane(e)._grid,i=n.scrollBoundaries(e),o=this.scroller,r=n.rows.frozen?0:o.scrollTop,a=n.columns.frozen?0:o.scrollLeft;return i.top<r&&(t=!0,o.scrollTop=i.scrollTop),i.bottom>r&&(t=!0,o.scrollTop=i.scrollBottom),i.left<a&&(t=!0,o.scrollLeft=i.scrollLeft),i.right>a&&(t=!0,o.scrollLeft=i.scrollRight),t},_destroyDialog:function(){this._dialogs.pop()},openCustomEditor:function(){var e=this,t=e._sheet.activeCell().first(),n=e._sheet.activeCellCustomEditor(),i=e._sheet.range(t);n.edit({range:i,rect:e.activeCellRectangle(),view:this,validation:this._sheet.validation(t),callback:function(t,n){e._executeCommand({command:"EditCommand",options:{operatingRange:i,property:n?"input":"value",value:t}})}})},openDialog:function(t,n){var i=this._sheet;return i.withCultureDecimals(function(){var o,r,a=e.spreadsheet.dialogs.create(t,n);if(a)return a.bind("action",this._executeCommand.bind(this)),a.bind("deactivate",this._destroyDialog.bind(this)),this._dialogs.push(a),o=i.activeCell(),r=new e.spreadsheet.Range(o,i),a.open(r),a}.bind(this))},showError:function(t,n){var i,o,r,a=this._dialogs,s=this.options.messages.errors,l=!1;a.length>0&&a.forEach(function(e){e.options&&e.options.title===m&&(l=!0)}),l||(i=function(t){var n=t.sender.dialog().element;n.find(".k-button:first").focus(),n.find(".k-button, input").on("keydown",function(n){n.keyCode==e.keys.ESC&&t.sender.close()})},o=function(e){var t=e.sender;this.selectClipboardContents(),t._retry&&n&&n()}.bind(this),e.spreadsheet.dialogs.registered(t.type)?(r={close:o},"validationError"===t.type&&(r=c.extend(r,{title:t.title||"Error",text:t.body?t.body:s[t.type],activate:i})),this.openDialog(t.type,r)):this.openDialog("message",{title:t.title||"Error",text:t.body?t.body:s[t.type],activate:i,close:o}))},destroy:function(){this._dialogs.forEach(function(e){e.destroy()}),this.cellContextMenu.destroy(),this.rowHeaderContextMenu.destroy(),this.colHeaderContextMenu.destroy(),this.drawingContextMenu.destroy(),this.cellContextMenu=this.rowHeaderContextMenu=this.colHeaderContextMenu=this.drawingContextMenu=null,this.tabstrip&&(this.tabstrip.destroy(),this.tabstrip=null),this._destroyFilterMenu()},_destroyFilterMenu:function(){this._filterMenu&&(this._filterMenu.destroy(),this._filterMenu=void 0,this._filterMenuColumn=void 0)},render:function(t){var n,i,o,r,a,s,l,d,u,h;this.element.is(":visible")&&(n=this._sheet,i=n.focus(),o=e.support.scrollbar(),r=this.wrapper[0].clientWidth-o,a=this.wrapper[0].clientHeight-o,i&&this.scrollIntoView(i)||(s=n.resizingInProgress()?n.resizeHandlePosition().col===-(1/0)?"column":"row":"none",this.wrapper.toggleClass(g.editContainer,this.editor.isActive()).toggleClass(g.horizontalResize,"row"==s).toggleClass(g.verticalResize,"column"==s),l=n._grid,d=[],u={scroller:this.scroller,toplevelElements:d,contentWidth:r,contentHeight:a},this.panes.forEach(function(e){d.push(e.render(u))}),h=e.dom.element("div",{style:{width:l._headerWidth+"px",height:l._headerHeight+"px"},className:x.classNames.topCorner}),d.push(h),n.resizeHandlePosition()&&n.resizeHintPosition()&&d.push(this.renderResizeHint()),this.tree.render(d),c(this.container).css({width:r,height:a}),this.editor.isActive()?this.editor.toggleTooltip(this.activeCellRectangle()):t.resize||t.comment||n.selectionInProgress()||n.resizingInProgress()||n.draggingInProgress()||n.isInEditMode()||this.renderClipboardContents()))},renderResizeHint:function(){var t,n,i=this._sheet,o=i.resizeHandlePosition(),r=o.col!==-(1/0);return t=r?{height:this.scroller.clientHeight+"px",width:p+"px",left:i.resizeHintPosition().x+"px",top:"0px"}:{height:p+"px",width:this.scroller.clientWidth+"px",top:i.resizeHintPosition().y+"px",left:"0px"},n=S.classNames,e.dom.element("div",{className:n.resizeHint+(r?"":" "+n.resizeHintVertical),style:t},[e.dom.element("div",{className:n.resizeHintHandle}),e.dom.element("div",{className:n.resizeHintMarker})])},renderClipboardContents:function(){var e,t,n,i,o,r=this._sheet,a=r._grid,l=a.normalize(r.select().toRangeRef()),d=this._workbook.clipboard().canCopy();return d.canCopy===!1&&d.multiSelection?(this.clipboardContents.render([]),void this.selectClipboardContents()):(l=r.trim(l),e=new v,t=a.rangeDimensions(l),t.rows.forEach(function(t){e.addRow(t)}),t.columns.forEach(function(t){e.addColumn(t)}),n=r._getMergedCells(l),i=n.primary,o=n.secondary,r.forEach(l,function(t,n,r){var a,d,c=new u(t,n).print();o[c]||(a=s(e,t-l.topLeft.row,r),d=i[c],d&&(a.attr.colspan=d.width(),a.attr.rowspan=d.height()))}),this.clipboardContents.render([e.toDomTree(0,0,"kendo-clipboard-"+this._workbook.clipboard()._uid)]),void this.selectClipboardContents())},_pane:function(e,t,n,i){var o=new S(this._sheet,this._sheet._grid.pane({row:e,column:t,rowCount:n,columnCount:i}));return o.refresh(this.scroller.clientWidth,this.scroller.clientHeight),o}}),C={cell:"k-spreadsheet-cell",vaxis:"k-spreadsheet-vaxis",haxis:"k-spreadsheet-haxis",vborder:"k-spreadsheet-vborder",hborder:"k-spreadsheet-hborder",rowHeader:"k-spreadsheet-row-header",columnHeader:"k-spreadsheet-column-header",pane:"k-spreadsheet-pane",data:"k-spreadsheet-data",mergedCell:"k-spreadsheet-merged-cell",mergedCellsWrapper:"k-merged-cells-wrapper",activeCell:"k-spreadsheet-active-cell",selection:"k-spreadsheet-selection",selectionWrapper:"k-selection-wrapper",autoFillWrapper:"k-auto-fill-wrapper",single:"k-single",top:"k-top",right:"k-right",bottom:"k-bottom",left:"k-left",resizeHandle:"k-resize-handle",columnResizeHandle:"k-column-resize-handle",rowResizeHandle:"k-row-resize-handle",resizeHint:"k-resize-hint",resizeHintHandle:"k-resize-hint-handle",resizeHintMarker:"k-resize-hint-marker",resizeHintVertical:"k-resize-hint-vertical",selectionHighlight:"k-spreadsheet-selection-highlight",series:["k-series-a","k-series-b","k-series-c","k-series-d","k-series-e","k-series-f"]},S=e.Class.extend({init:function(e,t){this._sheet=e,this._grid=t},refresh:function(e,t){this._grid.refresh(e,t)},isVisible:function(e,t,n){return this._grid.view(e,t).ref.intersects(n)},render:function(t){var n,i,o,r,a,s,l,d,c,u=t.scroller,h=u.scrollLeft,p=u.scrollTop;return p<0&&(p=0),h<0&&(h=0),n=S.classNames,i=this._sheet,o=this._grid,r=o.view(h,p),this._currentView=r,this._currentRect=this._rectangle(r.ref),this._selectedHeaders=i.selectedHeaders(),a=[],a.push(this.renderData(t)),i._activeDrawing||a.push(this.renderSelection(u)),a.push(this.renderAutoFill()),a.push(this.renderEditorSelection()),a.push(this.renderFilterHeaders()),o.hasRowHeader&&(s=e.dom.element("div",{className:n.rowHeader,style:{width:o.headerWidth+"px",top:r.rowOffset+"px"}}),a.push(s),i.forEach(r.ref.leftColumn(),function(t){if(!i.isHiddenRow(t)){var n=t+1,r=i.rowHeight(t);s.children.push(e.dom.element("div",{className:this.headerClassName(t,"row"),style:{width:o.headerWidth+"px",height:r+"px"}},[e.dom.element("div",{className:"k-vertical-align-center"},[e.dom.text(n+"")])]))}}.bind(this))),o.hasColumnHeader&&(l=e.dom.element("div",{className:n.columnHeader,style:{top:"0px",left:r.columnOffset+"px",width:this._currentRect.width+"px",height:o.headerHeight+"px"}}),a.push(l),d=0,i.forEach(r.ref.topRow(),function(t,n){if(!i.isHiddenColumn(n)){var r=e.spreadsheet.Ref.display(null,1/0,n),a=i.columnWidth(n);l.children.push(e.dom.element("div",{className:this.headerClassName(n,"col"),style:{position:"absolute",left:d+"px",width:a+"px",height:o.headerHeight+"px"}},[e.dom.element("div",{className:"k-vertical-align-center"},[e.dom.text(r+"")])])),d+=a}}.bind(this))),i.resizeHandlePosition()&&(o.hasColumnHeader||o.hasRowHeader)&&(i.resizeHintPosition()||this.renderResizeHandle(a)),c=[n.pane],o.hasColumnHeader&&c.push(n.top),o.hasRowHeader&&c.push(n.left),e.dom.element("div",{style:o.style,className:c.join(" ")},a)},headerClassName:function(e,t){var n,i,o,r=this._selectedHeaders;return"row"===t?(n=r.rows[e],i=r.allRows):(n=r.cols[e],i=r.allCols),o=n||(r.all?"full":i?"partial":"none"),o&&(o="k-selection-"+o),o},renderData:function(t){var n,i,o,r,s=this._sheet,l=this._currentView,d=e.dom.element("div",{className:S.classNames.data,style:{position:"relative",left:l.columnOffset+"px",top:l.rowOffset+"px"}}),c=this._currentRect,u=e.spreadsheet.draw.doLayout(s,l.ref,{forScreen:!0}),h=this._grid,p=s._showGridLines;return p&&(n=null,u.xCoords.forEach(function(t){t!==n&&(n=t,d.children.push(e.dom.element("div",{className:C.vaxis,style:{left:t+"px",height:c.height+"px",borderColor:s.gridLinesColor()}})))}),n=null,u.yCoords.forEach(function(t){t!==n&&(n=t,d.children.push(e.dom.element("div",{className:C.haxis,style:{top:t+"px",width:c.width+"px",borderColor:s.gridLinesColor()}})))})),i=e.spreadsheet.draw.Borders(),o=s.activeCell().toRangeRef(),r=o.topLeft,u.cells.forEach(function(n){var c,u,f,m,g,v=null,_=n.row+l.ref.topLeft.row,b=n.col+l.ref.topLeft.col;s._activeDrawing?(c=s._activeDrawing.topLeftCell,c&&c.row==_&&c.col==b&&(v="k-spreadsheet-drawing-anchor-cell")):_==r.row&&b==r.col&&(v=[S.classNames.activeCell].concat(this._activeFormulaColor(),this._directionClasses(o)),s.singleCellSelection()&&v.push(S.classNames.single),v=v.join(" ")),i.add(n),a(d.children,n,v,p),n.comment&&s._commentRef&&_==s._commentRef.row&&b==s._commentRef.col&&(u=4,f=n.right+h.left+l.columnOffset+u,m={top:n.top+h.top+l.rowOffset+"px"},f+200>t.contentWidth?m.right=t.contentWidth-h.left-n.left-l.columnOffset+u+"px":m.left=f+"px",g=e.dom.element("div",{className:"k-tooltip k-spreadsheet-cell-comment",style:m},[e.dom.text(n.comment)]),t.toplevelElements.push(g))},this),i.vert.forEach(function(t){t.forEach(function(t){if(!t.rendered){t.rendered=!0;var n={left:t.x+"px",top:t.top+"px",height:t.bottom-t.top+1+"px",borderWidth:t.size+"px",borderColor:t.color};1!=t.size&&(n.transform="translateX(-"+(t.size-1)/2+"px)"),d.children.push(e.dom.element("div",{className:C.vborder,style:n}))}})}),i.horiz.forEach(function(t){t.forEach(function(t){if(!t.rendered){t.rendered=!0;var n={top:t.y+"px",left:t.left+"px",width:t.right-t.left+"px",borderWidth:t.size+"px",borderColor:t.color};1!=t.size&&(n.transform="translateY(-"+(t.size-1)/2+"px)"),d.children.push(e.dom.element("div",{className:C.hborder,style:n}))}})}),this.renderDrawings(u,d.children),d},renderDrawings:function(t,n){var i=this._sheet,o=i._workbook;t.drawings.forEach(function(t){var r=t.drawing,a=t.box,s=a.toDiv("k-spreadsheet-drawing");r.image&&s.children.push(e.dom.element("div",{className:"k-spreadsheet-drawing-image",style:{backgroundImage:"url('"+o.imageUrl(r.image)+"')",opacity:r.opacity}})),r===i._activeDrawing&&(s.attr.className+=" k-spreadsheet-active-drawing",d(s.children)),n.push(s)})},renderResizeHandle:function(t){var n,i=this._sheet,o=i.resizeHandlePosition(),r=this._rectangle(o),a=[S.classNames.resizeHandle];if(o.col!==-(1/0)){if(this._grid.rows._start>0)return;n={height:this._grid.headerHeight+"px",width:p+"px",left:r.right-p/2+"px",top:"0px"},a.push(g.horizontalResize)}else{if(this._grid.columns._start>0)return;n={height:p+"px",width:this._grid.headerWidth+"px",top:r.bottom-p/2+"px",left:"0px"},a.push(g.verticalResize)}t.push(e.dom.element("div",{className:a.join(" "),style:n}))},filterIconRect:function(t){var n=16,i=3;return new e.spreadsheet.Rectangle(t.right-n-i,t.top+i,n,n)},renderFilterHeaders:function(){function t(t){return e.dom.element("span",{className:r.icon+" "+t})}function n(n,i,o){var r,s={left:i.left+"px",top:i.top+"px"},l=a&&a.columns.some(function(e){return e.index===o}),d=n.filterButton;return l&&(d+=" "+n.filterButtonActive),r=e.dom.element("span",{className:d,style:s},[t(n.iconFilterDefault)])}var i=this._sheet,o=[],r=x.classNames,a=i.filter();return a&&this._addDiv(o,a.ref,r.filterRange),i.forEachFilterHeader(this._currentView.ref,function(e){var t=this._rectangle(e),i=this.filterIconRect(t),a=this._sheet.filterColumn(e),s=n(r,i,a);o.push(s)}.bind(this)),e.dom.element("div",{className:r.filterHeadersWrapper},o)},renderEditorSelection:function(){var t=S.classNames,n=this._sheet,i=[];return n._formulaSelections.forEach(function(n){var o=n.ref;o!==e.spreadsheet.NULLREF&&this._addDiv(i,o,t.selectionHighlight+" "+n.colorClass)}.bind(this)),e.dom.element("div",{className:t.selectionWrapper},i)},renderSelection:function(t){var n=S.classNames,i=[],o=[n.selection],r=this._sheet,a=r.activeCell().toRangeRef(),s=r.select();return o=o.concat(this._activeFormulaColor()),1===s.size()&&o.push("k-single-selection"),this._sheet.autoFillPunch()&&o.push("k-dim-auto-fill-handle"),s.forEach(function(t){t!==e.spreadsheet.NULLREF&&this._addDiv(i,t,o.join(" "))}.bind(this)),this._renderCustomEditorButton(i,a,t),e.dom.element("div",{className:n.selectionWrapper},i)},renderAutoFill:function(){var t,n,i,o,r,a,s,l=[];if(this._sheet.autoFillInProgress())if(t=this._sheet.autoFillRef(),n=this._sheet.autoFillPunch(),i=this._sheet._autoFillDirection,this._addDiv(l,t,"k-auto-fill"),n)this._addDiv(l,n,"k-auto-fill-punch");else if(void 0!==i){switch(i){case 0:o=t.bottomRight,r="k-auto-fill-br-hint";break;case 1:o=t.bottomRight,r="k-auto-fill-br-hint";break;case 2:o=new u(t.topLeft.row,t.bottomRight.col),r="k-auto-fill-tr-hint";break;case 3:o=new u(t.bottomRight.row,t.topLeft.col),r="k-auto-fill-bl-hint"}a=this._addDiv(l,o,r),a&&(s=e.dom.element("span",{className:"k-tooltip"},[e.dom.text(this._sheet._autoFillHint)]),a.children.push(s))}return e.dom.element("div",{className:S.classNames.autoFillWrapper},l)},_addDiv:function(e,t,n){var i,o=this._currentView;return o.ref.intersects(t)&&(i=this._rectangle(t).resize(1,1).toDiv(n),e.push(i)),i},_renderCustomEditorButton:function(t,n,i){var o,r=this,a=r._sheet,s=r._currentView,l=r._grid.columns._axis._count,d=a.activeCellCustomEditor();d&&s.ref.intersects(n)&&(o=r._rectangle(n),a.forEach(n.collapse(),function(n,a,s){var c,u,h;s.left=o.left,s.top=o.top,s.width=o.width,s.height=o.height,c="k-button k-spreadsheet-editor-button",u=a==l-1||r._buttonOutOfVisiblePane(n,a,i),u&&(c+=" k-spreadsheet-last-column"),r._editorInLastColumn=u,h=e.dom.element("div",{className:c,style:{left:s.left+(u?0:s.width)+"px",top:s.top+"px",height:s.height+"px"}}),d.icon&&h.children.push(e.dom.element("span",{className:"k-icon "+d.icon})),t.push(h)}))},_activeFormulaColor:function(){var e,t=[];return this._sheet.isInEditMode()&&(e=this._sheet._formulaSelections.filter(function(e){return e.active&&"ref"==e.type})[0],e&&t.push(e.colorClass)),t},_directionClasses:function(e){var t=[],n=S.classNames,i=this._currentView.ref;return e.move(0,-1).intersects(i)||t.push(n.left),e.move(-1,0).intersects(i)||t.push(n.top),e.move(0,1).intersects(i)||t.push(n.right),e.move(1,0).intersects(i)||t.push(n.bottom),t},_rectangle:function(e){return this._grid.boundingRectangle(e.toRangeRef()).offset(-this._currentView.mergedCellLeft,-this._currentView.mergedCellTop)},_buttonOutOfVisiblePane:function(e,t,n){var i=this,o=i._grid,r=i._sheet,a=r.range(e,t)._ref,s=o.scrollBoundaries(a),l=o.columns.frozen?0:n.scrollLeft;if(s.right+f>l||t+1===r.frozenColumns())return!0}}),e.spreadsheet.View=x,e.spreadsheet.Pane=S,e.spreadsheet.drawCell=a,c.extend(!0,x,{classNames:g}),c.extend(!0,S,{classNames:C}))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/customeditors.min",["kendo.core.min","kendo.popup.min","kendo.calendar.min","kendo.listview.min","spreadsheet/sheet.min"],e)}(function(){!function(e){"use strict";var t,n,i;e.support.browser.msie&&e.support.browser.version<9||(t=e.jQuery,n={},i=e.spreadsheet.registerEditor=function(e,t){n[e]=t},e.spreadsheet.Sheet.prototype.activeCellCustomEditor=function(){var e,t,i,o=this.activeCell().first();if(this.range(o).enable())return e=this.validation(o),t=this._properties.get("editor",this._grid.cellRefIndex(o)),null!=t?i=n[t]:e&&e.showButton&&(t="_validation_"+e.dataType,i=n[t]),"function"==typeof i&&(i=n[t]=i()),i},i("_validation_date",function(){function n(){a||(a=t("<div>").kendoCalendar(),s=t("<div>").kendoPopup(),a.appendTo(s),a=a.getKendoCalendar(),s=s.getKendoPopup(),a.bind("change",function(){s.close();var t=a.value();r.range.format()||r.range.format("yyyy-mm-dd"),r.callback(e.spreadsheet.dateToNumber(t))})),s.setOptions({anchor:r.view.element.find(".k-spreadsheet-editor-button")})}function i(){var t,i,l,d,c,u,h,p;n(),t=r.range.value(),i=r.range.sheet(),a.value(null!=t?e.spreadsheet.numberToDate(t):null),l=r.validation,l?(d=e.ui.Calendar.fn.options.min,c=e.ui.Calendar.fn.options.max,u=l.from,h=l.to,p=e.spreadsheet.calc.runtime.Formula,/^(?:greaterThan|between)/.test(l.comparerType)&&(d=e.spreadsheet.numberToDate(u instanceof p&&o(u.value)?i.range(u.value.row,u.value.col).value():u.value)),"between"==l.comparerType&&(c=e.spreadsheet.numberToDate(h instanceof p&&o(h.value)?i.range(h.value.row,h.value.col).value():l.to.value)),"lessThan"!=l.comparerType&&"lessThanOrEqualTo"!=l.comparerType||(c=e.spreadsheet.numberToDate(u instanceof p&&o(u.value)?i.range(u.value.row,u.value.col).value():l.from.value)),a.setOptions({disableDates:function(t){var n,r;return n=u&&u instanceof p&&o(u.value)?i.range(u.value.row,u.value.col).value():u?0|u.value:0,r=h&&h instanceof p&&o(h.value)?i.range(h.value.row,h.value.col).value():h?0|h.value:0,t=0|e.spreadsheet.dateToNumber(t),!e.spreadsheet.validation.validationComparers[l.comparerType](t,n,r)},min:d,max:c})):a.setOptions({disableDates:null,min:null,max:null}),s.open()}function o(e){return e&&null!==e.row&&null!==e.col&&e.row>-1&&e.col>-1}var r,a,s;return{edit:function(e){r=e,i()},icon:"k-i-calendar"}}),i("_validation_list",function(){
function n(){r||(r=t("<ul class='k-list k-reset'/>").kendoStaticList({template:"#:value#",selectable:!0,autoBind:!1}),a=t("<div>").kendoPopup(),r.appendTo(a),a=a.getKendoPopup(),r=r.getKendoStaticList(),r.bind("change",function(){a.close();var e=r.value()[0];e&&o.callback(e.value)})),a.setOptions({anchor:o.view.element.find(".k-spreadsheet-editor-button")})}function i(){var t,i,s,l;n(),t=o.validation.from.value,i=[],s=function(e){i.push({value:e})},t instanceof e.spreadsheet.calc.runtime.Matrix?t.each(s):(t+"").split(/\s*,\s*/).forEach(s),l=new e.data.DataSource({data:i}),r.setDataSource(l),l.read(),a.open()}var o,r,a;return{edit:function(e){o=e,i()},icon:"k-i-arrow-60-down"}}))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/grid.min",["kendo.core.min","spreadsheet/references.min"],e)}(function(){!function(e){var t,n,i,o,r,a;e.support.browser.msie&&e.support.browser.version<9||(t=e.spreadsheet.CellRef,n=e.spreadsheet.RangeRef,i=e.spreadsheet.UnionRef,o=e.Class.extend({init:function(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i,this.right=this.left+this.width,this.bottom=this.top+this.height},offset:function(e,t){return new o(this.left+e,this.top+t,this.width,this.height)},resize:function(e,t){return new o(this.left,this.top,this.width+e,this.height+t)},intersects:function(e,t){return e instanceof o?this.intersectsRect(e):this.left<e&&e<this.left+this.width&&this.top<t&&t<this.top+this.height},intersectsRect:function(e){var t=this;return t.left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom},toDiv:function(t){return e.dom.element("div",{className:t,style:{width:this.width+"px",height:this.height+"px",top:this.top+"px",left:this.left+"px"}})}}),r=e.Class.extend({init:function(e,t,n,i,o,r){this.rowCount=n,this.columnCount=i,this._columns=t,this._rows=e,this._headerHeight=o,this._headerWidth=r},isAxis:function(e){var t,n;return e=e.toRangeRef(),t=e.topLeft,n=e.bottomRight,0===t.row&&n.row===this.rowCount-1||0===t.col&&n.col===this.columnCount-1},width:function(e,t){return this._columns.sum(e,t)},height:function(e,t){return this._rows.sum(e,t)},totalHeight:function(){return this._rows.total+this._headerHeight},totalWidth:function(){return this._columns.total+this._headerWidth},index:function(e,t){return t*this.rowCount+e},cellRef:function(e){return new t(e%this.rowCount,e/this.rowCount>>0)},rowRef:function(e){return new n(new t(e,0),new t(e,this.columnCount-1))},colRef:function(e){return new n(new t(0,e),new t(this.rowCount-1,e))},cellRefIndex:function(e){return this.index(e.row,e.col)},normalize:function(e){return e instanceof n?new n(this.normalize(e.topLeft),this.normalize(e.bottomRight)).setSheet(e.sheet,e.hasSheet()):e instanceof i?e.map(function(e){return this.normalize(e)},this):(e instanceof t&&(e=e.clone(),e.col=Math.max(0,Math.min(this.columnCount-1,e.col)),e.row=Math.max(0,Math.min(this.rowCount-1,e.row))),e)},rectangle:function(e){var t=this.normalize(e.topLeft),n=this.normalize(e.bottomRight);return new o(this.width(0,t.col-1),this.height(0,t.row-1),this.width(t.col,n.col),this.height(t.row,n.row))},pane:function(t){return new a(new e.spreadsheet.PaneAxis(this._rows,t.row,t.rowCount,this._headerHeight),new e.spreadsheet.PaneAxis(this._columns,t.column,t.columnCount,this._headerWidth),this)},rangeDimensions:function(e){return{rows:this._rows.values.iterator(e.topLeft.row,e.bottomRight.row),columns:this._columns.values.iterator(e.topLeft.col,e.bottomRight.col)}},forEach:function(e,n){var i,o,r=this.normalize(e.topLeft),a=this.normalize(e.bottomRight);for(i=r.col;i<=a.col;i++)for(o=r.row;o<=a.row;o++)n(new t(o,i))},trim:function(e,i){var o,r,a,s,l,d=this.normalize(e.topLeft),c=this.normalize(e.bottomRight),u=d.row,h=d.col;for(o=d.col;o<=c.col;o++)r=this.index(d.row,o),a=this.index(c.row,o),s=i.tree.intersecting(r,a),s.length&&(l=this.cellRef(s[s.length-1].end),u=Math.max(u,l.row),h=o);return new n(e.topLeft,new t(Math.min(u,e.bottomRight.row),h))}}),a=e.Class.extend({init:function(e,t,n){this.rows=e,this.columns=t,this._grid=n,this.headerHeight=e.headerSize,this.headerWidth=t.headerSize,this.hasRowHeader=t.hasHeader,this.hasColumnHeader=e.hasHeader},refresh:function(e,t){var n,i;this.columns.viewSize(e),this.rows.viewSize(t),n=this.columns.paneSegment(),i=this.rows.paneSegment(),this.left=n.offset,this.top=i.offset,this.right=n.offset+n.length,this.bottom=i.offset+i.length,this.style={top:i.offset+"px",left:n.offset+"px",height:i.length+"px",width:n.length+"px"}},view:function(e,i){var o=this.rows.visible(i),r=this.columns.visible(e);return{rows:o,columns:r,rowOffset:o.offset,columnOffset:r.offset,mergedCellLeft:r.start,mergedCellTop:o.start,ref:new n(new t(o.values.start,r.values.start),new t(o.values.end,r.values.end))}},contains:function(e){return this.rows.contains(e.topLeft.row,e.bottomRight.row)&&this.columns.contains(e.topLeft.col,e.bottomRight.col)},index:function(e,t){return this._grid.index(e,t)},boundingRectangle:function(e){return this._grid.rectangle(e)},cellRefIndex:function(e){return this._grid.cellRefIndex(e)},scrollBoundaries:function(e){var t=this.boundingRectangle(e),n={top:Math.max(0,t.top-this.top+(this.hasColumnHeader?0:this.headerHeight)),left:Math.max(0,t.left-this.left+(this.hasRowHeader?0:this.headerWidth)),right:t.right-this.columns._viewSize+this.headerWidth,bottom:t.bottom-this.rows._viewSize+this.headerHeight},i=this.columns.defaultValue/2,o=this.rows.defaultValue/2;return n.scrollTop=n.top-o,n.scrollBottom=n.bottom+o,n.scrollLeft=n.left-i,n.scrollRight=n.right+i,n}}),e.spreadsheet.Grid=r,e.spreadsheet.PaneGrid=a,e.spreadsheet.Rectangle=o)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/axis.min",["kendo.core.min"],e)}(function(){!function(e){var t,n;e.support.browser.msie&&e.support.browser.version<9||(t=e.Class.extend({init:function(t,n){this._value=n,this._count=t,this.values=new e.spreadsheet.RangeList(0,t-1,n),this._hidden=new e.spreadsheet.RangeList(0,t-1,0),this.scrollBarSize=e.support.scrollbar(),this._refresh()},adjust:function(e,t){t<0?(this.values.copy(e-t,this._count-1,e),this._hidden.copy(e-t,this._count-1,e)):(this.values.copy(e,this._count,e+t),this._hidden.copy(e,this._count,e+t),this.values.value(e,e+t-1,this._value),this._hidden.value(e,e+t-1,0)),this._refresh()},toJSON:function(e,t){var n,i,o,r,a,s=[],l=this.values.iterator(0,this._count-1);for(n=0;n<this._count;n++)i=l.at(n),o=this._hidden.value(n,n),(i!==this._value||o)&&(r=t[n],void 0===r&&(r=s.length,a={index:n},a[e]=i,o&&(a.hidden=o),s.push(a),t[n]=r));return s},fromJSON:function(e,t){var n,i,o,r;for(n=0;n<t.length;n++)i=t[n],o=i.index,void 0===o&&(o=n),r=i[e],0===r?(this._hidden.value(o,o,i.hidden||this._value),this.value(o,o,0)):this.value(o,o,r)},hide:function(e){if(!this.hidden(e)){var t=this.value(e,e);this._hidden.value(e,e,t),this.value(e,e,0)}},hidden:function(e){return 0!==this._hidden.value(e,e)},includesHidden:function(e,t){return this._hidden.intersecting(e,t).length>1},nextVisible:function(e){for(var t=this._count-1,n=e;++n<=t;)if(!this.hidden(n))return n;return e},nextUntil:function(e,t){for(var n,i=this._count-1,o=e,r=!1;++o<=i;){if(n=t(o,r,this.hidden(o)),"number"==typeof n)return n;if(n)break;r=!0}return o-1},nextPage:function(e,t){return this.index(this.sum(0,e-1)+t)},prevPage:function(e,t){return this.index(this.sum(0,e)-t)},firstVisible:function(){var e=this._hidden.first();return 0===e.value?0:e.end+1},lastVisible:function(){var e=this._hidden.last();return 0===e.value?this._count-1:e.start-1},prevVisible:function(e){for(var t=e;--t>=0;)if(!this.hidden(t))return t;return e},prevUntil:function(e,t){for(var n,i=e,o=!1;--i>=0;){if(n=t(i,o,this.hidden(i)),"number"==typeof n)return n;if(n)break;o=!0}return i+1},unhide:function(e){if(this.hidden(e)){var t=this._hidden.value(e,e);this._hidden.value(e,e,0),this.value(e,e,t)}},value:function(e,t,n){return void 0===n?this.values.iterator(e,t).at(0):(this.values.value(e,t,n),void this._refresh())},sum:function(e,t){var n,i=this.values.iterator(e,t),o=0;for(n=e;n<=t;n++)o+=i.at(n);return o},locate:function(e,t,n){var i,o,r=this.values.iterator(e,t),a=0;for(i=e;i<=t;i++)if(a+=r.at(i),o=n(a))return i;return null},visible:function(e,t){var n,i,o,r,a,s,l=null,d=null,c=!1;return t>=this.total+this.scrollBarSize&&(c=!0),n=this._pixelValues.intersecting(e,t),l=n[0],d=n[n.length-1],l?(i=e-l.start,o=(i/l.value.value>>0)+l.value.start,r=i-(o-l.value.start)*l.value.value,a=t-d.start,s=(a/d.value.value>>0)+d.value.start,s>d.value.end&&(s=d.value.end),c&&(r+=d.value.value-(a-(s-d.value.start)*d.value.value)),r=Math.min(-r,0),{values:this.values.iterator(o,s),offset:r}):{values:this.values.iterator(0,0),offset:0}},index:function(e){for(var t=0,n=this.values.iterator(0,this._count-1),i=n.at(0);i<e&&t<this._count-1;)i+=n.at(++t);return t},indexVisible:function(e){var t=this.index(e);return this.hidden(t)&&(t=this.prevVisible(t)),t},_refresh:function(){var t=0;this._pixelValues=this.values.map(function(n){var i,o=t;return t+=(n.end-n.start+1)*n.value,i=t-1,new e.spreadsheet.ValueRange(o,i,n)}),this.total=t},getState:function(){return{values:this.values.getState(),hidden:this._hidden.getState()}},setState:function(e){this.values.setState(e.values),this._hidden.setState(e.hidden),this._refresh()}}),n=e.Class.extend({init:function(e,t,n,i){this._axis=e,this._start=t,this._count=n,this.hasHeader=0===t,this.headerSize=i,this.defaultValue=e._value,this.frozen=n>0},viewSize:function(e){this._viewSize=e},sum:function(e,t){return this._axis.sum(e,t-1)},start:function(){return this.sum(0,this._start)},size:function(){return this.sum(this._start,this._start+this._count)},index:function(e,t){return this._axis.index(e+(this.frozen?0:t)-this.headerSize)},indexVisible:function(e,t){return this._axis.indexVisible(e+(this.frozen?0:t)-this.headerSize)},paneSegment:function(){var e,t=this.start();return this.hasHeader||(t+=this.headerSize),this.frozen?(e=this.size(),this.hasHeader?e+=this.headerSize:e-=this.headerSize):e=this._viewSize-t,{offset:t,length:e}},visible:function(e){var t,n,i=this.start();return this.frozen?(t=this.size(),this.hasHeader||(t-=this.headerSize)):(t=this._viewSize-i-this.headerSize,i+=e),n=this._axis.visible(i,i+t-1),this.frozen&&(n.offset=0),n.start=i,this.hasHeader&&(n.offset+=this.headerSize,n.start-=this.headerSize),n},contains:function(e,t){return this.frozen?!(e>this._start+this._count)&&!(t<this._start):t>=this._start}}),e.spreadsheet.Axis=t,e.spreadsheet.PaneAxis=n)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/filter.min",["kendo.core.min","kendo.data.min"],e)}(function(){!function(e){function t(e){var t=e.getMonth()+1;return t>=1&&t<=3?1:t>=4&&t<=6?2:t>=7&&t<=9?3:4}function n(t,n){if(t instanceof Date){var i=e.date.today();return i.setFullYear(i.getFullYear()+n),i.getFullYear()===t.getFullYear()}return!1}function i(t,n){if(t instanceof Date){var i=e.date.firstDayOfMonth(e.date.today());return i.setMonth(i.getMonth()+n,1),i.getTime()===e.date.firstDayOfMonth(t).getTime()}return!1}function o(t,n){var i,o;return n instanceof Date&&(i=e.date.dayOfWeek(e.date.getDate(t),1),o=e.date.dayOfWeek(e.date.getDate(n),1),i.getTime()===o.getTime())}if(!(e.support.browser.msie&&e.support.browser.version<9)){var r=e.spreadsheet.Filter=e.Class.extend({prepare:function(){},value:function(e){return e.value},matches:function(){throw Error("The 'matches' method is not implemented.")},toJSON:function(){throw Error("The 'toJSON' method is not implemented.")}});r.create=function(t){var n,i=t.filter;if(!i)throw Error("Filter type not specified.");if(n=e.spreadsheet[i.charAt(0).toUpperCase()+i.substring(1)+"Filter"],!n)throw Error("Filter type not recognized.");return new n(t)},e.spreadsheet.ValueFilter=r.extend({_values:[],_dates:[],_blanks:!1,init:function(e){void 0!==e.values&&(this._values=e.values),void 0!==e.blanks&&(this._blanks=e.blanks),void 0!==e.dates&&(this._dates=e.dates)},value:function(t){var n,i=t.value;return this._dates.length>0&&t.format&&"number"==typeof i&&(n=e.spreadsheet.formatting.type(i,t.format),"date"===n&&(i=e.spreadsheet.numberToDate(i))),i},matches:function(e){return null===e||void 0===e?this._blanks:e instanceof Date?this._dates.some(function(t){return!(t.year!==e.getFullYear()||void 0!==t.month&&t.month!==e.getMonth()||void 0!==t.day&&t.day!==e.getDate()||void 0!==t.hours&&t.hours!==e.getHours()||void 0!==t.minutes&&t.minutes!==e.getMinutes()||void 0!==t.seconds&&t.seconds!==e.getSeconds())}):this._values.indexOf(e)>=0},toJSON:function(){return{filter:"value",blanks:this._blanks,values:this._values.slice(0)}}}),e.spreadsheet.CustomFilter=r.extend({_logic:"and",init:function(t){if(void 0!==t.logic&&(this._logic=t.logic),void 0===t.criteria)throw Error("Must specify criteria.");this._criteria=t.criteria;var n=e.data.Query.filterExpr({logic:this._logic,filters:this._criteria}).expression;this._matches=Function("d","return "+n)},matches:function(e){return null!==e&&this._matches(e)},value:function(t){var n=t.value,i=this._criteria[0].value,o=i instanceof Date?"date":typeof i,r=typeof n;return t.format&&(r=e.spreadsheet.formatting.type(n,t.format)),r!=o?"string"==o&&(t.format&&(n=e.spreadsheet.formatting.text(n,t.format)),n+=""):"date"==r&&(n=e.spreadsheet.numberToDate(n)),n},toJSON:function(){return{filter:"custom",logic:this._logic,criteria:this._criteria}}}),e.spreadsheet.TopFilter=r.extend({init:function(e){this._type=e.type,this._value=e.value,this._values=[]},prepare:function(e){var t,n=e.map(this.value).sort().filter(function(e,t,n){return 0===t||e!==n[t-1]});n.sort("topNumber"===this._type||"topPercent"==this._type?function(e,t){return t-e}:function(e,t){return e-t}),t=this._value,"topPercent"!==this._type&&"bottomPercent"!==this._type||(t=n.length*t/100>>0),this._values=n.slice(0,t)},matches:function(e){return this._values.indexOf(e)>=0},toJSON:function(){return{filter:"top",type:this._type,value:this._value}}}),e.spreadsheet.DynamicFilter=r.extend({init:function(e){if(this._type=e.type,this._predicate=this[e.type],"function"!=typeof this._predicate)throw Error("DynamicFilter type '"+e.type+"' not recognized.")},value:function(t){var n,i=t.value;return t.format&&(n=e.spreadsheet.formatting.type(i,t.format),"date"===n&&(i=e.spreadsheet.numberToDate(i))),i},prepare:function(e){var t,n,i=0,o=0;for(t=0;t<e.length;t++)n=this.value(e[t]),"number"==typeof n&&(i+=n,o++);this._average=o>0?i/o:0},matches:function(e){return this._predicate(e)},aboveAverage:function(t){return t instanceof Date&&(t=e.spreadsheet.dateToNumber(t)),"number"==typeof t&&t>this._average},belowAverage:function(t){return t instanceof Date&&(t=e.spreadsheet.dateToNumber(t)),"number"==typeof t&&t<this._average},tomorrow:function(t){if(t instanceof Date){var n=e.date.addDays(e.date.today(),1);return e.date.getDate(t).getTime()===n.getTime()}return!1},today:function(t){return t instanceof Date&&e.date.isToday(t)},yesterday:function(t){if(t instanceof Date){var n=e.date.addDays(e.date.today(),-1);return e.date.getDate(t).getTime()===n.getTime()}return!1},nextWeek:function(t){return o(e.date.addDays(e.date.today(),7),t)},thisWeek:function(t){return o(e.date.today(),t)},lastWeek:function(t){return o(e.date.addDays(e.date.today(),-7),t)},nextMonth:function(e){return i(e,1)},thisMonth:function(e){return i(e,0)},lastMonth:function(e){return i(e,-1)},nextQuarter:function(n){var i,o;return n instanceof Date&&(i=e.date.today(),o=t(n)-t(i),1===o&&i.getFullYear()===n.getFullYear()||o==-3&&i.getFullYear()+1===n.getFullYear())},thisQuarter:function(n){var i,o;return n instanceof Date&&(i=e.date.today(),o=t(n)-t(i),0===o&&i.getFullYear()===n.getFullYear())},lastQuarter:function(n){var i,o;return n instanceof Date&&(i=e.date.today(),o=t(i)-t(n),1===o&&i.getFullYear()===n.getFullYear()||o==-3&&i.getFullYear()-1===n.getFullYear())},nextYear:function(e){return n(e,1)},thisYear:function(e){return n(e,0)},lastYear:function(e){return n(e,-1)},yearToDate:function(t){if(t instanceof Date){var n=e.date.today();return t.getFullYear()===n.getFullYear()&&t<=n}return!1},toJSON:function(){return{filter:"dynamic",type:this._type}}}),[1,2,3,4].forEach(function(n){e.spreadsheet.DynamicFilter.prototype["quarter"+n]=function(e){return e instanceof Date&&t(e)===n}}),e.cultures["en-US"].calendar.months.names.forEach(function(t,n){e.spreadsheet.DynamicFilter.prototype[t.toLowerCase()]=function(e){return e instanceof Date&&e.getMonth()===n}})}}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/sorter.min",["kendo.core.min"],e)}(function(){!function(e){if(!(e.support.browser.msie&&e.support.browser.version<9)){var t=e.Class.extend({init:function(e,t){this._grid=e,this._lists=t},indices:function(e,n,i,o){var r=t.ascendingComparer;return i===!1&&(r=t.descendingComparer),n.sortedIndices(this._grid.cellRefIndex(e.topLeft),this._grid.cellRefIndex(e.bottomRight),r,o)},sortBy:function(e,t,n,i,o){var r,a,s,l,d=this.indices(e.toColumn(t),n,i,o);for(r=e.topLeft.col;r<=e.bottomRight.col;r++)for(a=this._grid.index(e.topLeft.row,r),s=this._grid.index(e.bottomRight.row,r),l=0;l<this._lists.length;l++)a<this._lists[l].lastRangeStart()&&this._lists[l].sort(a,s,d);return d}});t.ascendingComparer=function(t,n){var i,o;if(null===t&&null===n)return 0;if(null===t)return 1;if(null===n)return-1;if(i=typeof t,o=typeof n,"number"===i)return"number"===o?t-n:-1;if("string"===i)switch(o){case"number":return 1;case"string":return t.localeCompare(n);default:return-1}if("boolean"===i)switch(o){case"number":return 1;case"string":return 1;case"boolean":return t-n;default:return-1}if(t instanceof e.spreadsheet.calc.runtime.CalcError)return n instanceof e.spreadsheet.calc.runtime.CalcError?0:1;throw Error("Cannot compare "+t+" and "+n)},t.descendingComparer=function(e,n){return null===e&&null===n?0:null===e?1:null===n?-1:t.ascendingComparer(n,e)},e.spreadsheet.Sorter=t}}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/numformat.min",["spreadsheet/calc.min","kendo.dom.min","util/main.min"],e)}(function(){"use strict";function e(e){function t(){var t=e.skip(h);if(t)return t[1].toLowerCase()}function n(){var t,n=e.skip(p);if(n&&(t=parseFloat(n[2]),!isNaN(t)))return{op:n[1],value:t,custom:!0}}function i(){for(var t,n=[],i=null;!e.eof()&&(t=r());)"date"==t.type?i&&/^(el)?time$/.test(i.type)&&"h"==i.part&&"m"==t.part&&t.format<3&&(t.type="time"):/^(el)?time$/.test(t.type)&&"s"==t.part&&i&&"date"==i.type&&"m"==i.part&&i.format<3&&(i.type="time"),/^(?:str|space|fill)$/.test(t.type)||(i=t),n.push(t);return n}function o(t){if("date"!=t.type||"m"==t.part&&t.format<3){var n=e.skip(/^\.(0+)/);n&&(t.fraction=n[1].length,"date"==t.type&&(t.type="time"))}return t}function r(){var t,n;if(n=e.skip(/^([#0?]+)(?:,([#0?]+))+/))return{type:"digit",sep:!0,format:n[1]+n[2],decimal:d};if(n=e.skip(/^[#0?]+/))return{type:"digit",sep:!1,format:n[0],decimal:d};if(n=e.skip(/^(e)([+-])/i))return{type:"exp",ch:n[1],sign:n[2]};if(n=e.skip(/^(d{1,4}|m{1,5}|yyyy|yy)/i))return n=n[1].toLowerCase(),o({type:"date",part:n.charAt(0),format:n.length});if(n=e.skip(/^(hh?|ss?)/i))return n=n[1].toLowerCase(),o({type:"time",part:n.charAt(0),format:n.length});if(n=e.skip(/^\[(hh?|mm?|ss?)\]/i))return n=n[1].toLowerCase(),o({type:"eltime",part:n.charAt(0),format:n.length});if(n=e.skip(/^(a[.]?m[.]?\/p[.]?m[.]?|a\/p)/i))return n=n[1].split("/"),{type:"ampm",am:n[0],pm:n[1]};switch(t=e.next()){case";":return null;case"\\":return{type:"str",value:e.next()};case'"':return{type:"str",value:e.readEscaped(t)};case"@":return{type:"text"};case"_":return{type:"space",value:e.next()};case"*":return{type:"fill",value:e.next()};case".":return e.lookingAt(/^\s*[#0?]/)?(d=!0,{type:"dec"}):{type:"str",value:"."};case"%":return{type:"percent"};case",":return{type:"comma"}}return{type:"str",value:t}}function a(){d=!1;var e=t(),o=n();return!e&&o&&(e=t()),{color:e,cond:o,body:i()}}var s,l,d,u;for(e=c.InputStream(e),s=[],l=!1;!e.eof();)u=a(),s.push(u),u.cond&&(l=!0);return l||(1==s.length?s[0].cond="num":2==s.length?(s[0].cond={op:">=",value:0},s[1].cond={op:"<",value:0}):s.length>=3&&(s[0].cond={op:">",value:0},s[1].cond={op:"<",value:0},s[2].cond={op:"=",value:0},s.length>3&&(s[3].cond="text",s=s.slice(0,4)))),s}function t(e){function t(e){var t="";return e.color&&(t+="["+e.color+"]"),e.cond&&"text"!=e.cond&&"num"!=e.cond&&(t+="["+e.cond.op+e.cond.value+"]"),t+=e.body.map(i).join("")}function n(e,t){return t.fraction&&(e+="."+r("",t.fraction,"0")),e}function i(e){return"digit"==e.type?e.sep?e.format.charAt(0)+","+e.format.substr(1):e.format:"exp"==e.type?e.ch+e.sign:"date"==e.type||"time"==e.type?n(r("",e.format,e.part),e):"eltime"==e.type?n("["+r("",e.format,e.part)+"]",e):"ampm"==e.type?e.am+"/"+e.pm:"str"==e.type?JSON.stringify(e.value):"text"==e.type?"@":"space"==e.type?"_"+e.value:"fill"==e.type?"*"+e.value:"dec"==e.type?".":"percent"==e.type?"%":"comma"==e.type?",":void 0}return e.map(t).join(";")}function n(e,t){e.forEach(function(e){var n,i,o,a,s,l=t;if("text"!=e.cond){for(n=e.body,i=!1,o=n.length;0!==l&&--o>=0;)if(a=n[o],"digit"==a.type){if(a.decimal&&(i=!0,l>0?a.format+=r("",l,"0"):l<0&&(s=a.format.length,a.format=a.format.substr(0,s+l),l+=s-a.format.length),0===a.format.length))for(n.splice(o,1);--o>=0;){if(a=n[o],"digit"==a.type&&a.decimal){++o;break}if("dec"==a.type){n.splice(o,1);break}}if(l>0)break}!i&&l>0&&n.splice(o+1,0,{type:"dec"},{type:"digit",sep:!1,decimal:!0,format:r("",l,"0")})}})}function i(e){var t=0;return{next:function(){return e[t++]},eof:function(){return t>=e.length},ahead:function(n,i){if(t+n<=e.length){var o=i.apply(null,e.slice(t,t+n));return o&&(t+=n),o}},restart:function(){t=0}}}function o(e){function t(e,t){("digit"==e.type&&"comma"==t.type||"comma"==e.type&&e.hidden&&"comma"==t.type)&&(t.hidden=!0,u++)}var n,o,r=i(e.body),a=!1,s=!1,l=!1,d=0,c=/[\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6]/,u=0,h="var intPart, decPart, isNegative, date, time; ",p=!1,f=0,m=[],g=[],v=e.cond,_="";for("text"==v?_="if (typeof value == 'string' || value instanceof kendo.spreadsheet.CalcError) { ":"num"==v?_="if (typeof value == 'number') { ":v&&(n="="==v.op?"==":v.op,_="if (typeof value == 'number' && value "+n+" "+v.value+") { ",v.custom||(h+="value = Math.abs(value); ")),e.color&&(h+="result.color = "+JSON.stringify(e.color)+"; ");!r.eof();)r.ahead(2,t),o=r.next(),"percent"==o.type?d++:"digit"==o.type?o.decimal?(f+=o.format.length,g.push(o.format)):(m.push(o.format),o.sep&&(p=!0)):"time"==o.type?s=!0:"date"==o.type?a=!0:"ampm"==o.type&&(l=s=!0);for(d>0&&(h+="value *= "+Math.pow(100,d)+"; "),u>0&&(h+="value /= "+Math.pow(1e3,u)+"; "),m.length&&(h+="intPart = runtime.formatInt(culture, value, "+JSON.stringify(m)+", "+f+", "+p+"); ",h+="isNegative = parseInt(intPart[0]) < 0;"),g.length&&(h+="decPart = runtime.formatDec(value, "+JSON.stringify(g)+", "+f+"); "),(m.length||g.length)&&(h+="type = 'number'; "),a&&(h+="date = runtime.unpackDate(value); "),s&&(h+="time = runtime.unpackTime(value); "),(a||s)&&(h+="type = 'date'; "),(d>0||u>0||m.length||g.length||a||s)&&(_||(_="if (typeof value == 'number') { ")),r.restart(),h+="var matchedCurrency = false;";!r.eof();)o=r.next(),"dec"==o.type?h+="output += culture.numberFormat['.']; ":"comma"!=o.type||o.hidden?"percent"==o.type?(h+="type = 'percent'; ",h+="output += culture.numberFormat.percent.symbol; "):"str"==o.type?(c.test(o.value)&&(h+="type = 'currency'; ",h+="if (isNegative) { output += '-'; matchedCurrency = true; }"),h+="output += "+JSON.stringify(o.value)+"; "):"text"==o.type?(h+="type = 'text'; ",h+="output += value; "):"space"==o.type?(h+="if (output) result.body.push(output); ",h+="output = ''; ",h+="result.body.push({ type: 'space', value: "+JSON.stringify(o.value)+" }); "):"fill"==o.type?h+="output += runtime.fill("+JSON.stringify(o.value)+"); ":"digit"==o.type?(h+="if (isNegative && intPart[0] && matchedCurrency) {intPart[0] = intPart[0].replace('-', '');}",h+="output += "+(o.decimal?"decPart":"intPart")+".shift(); "):"date"==o.type?h+="output += runtime.date(culture, date, "+JSON.stringify(o.part)+", "+o.format+"); ":"time"==o.type?h+="output += runtime.time(time, "+JSON.stringify(o.part)+", "+o.format+", "+l+", "+o.fraction+"); ":"eltime"==o.type?h+="output += runtime.eltime(value, "+JSON.stringify(o.part)+", "+o.format+", "+o.fraction+"); ":"ampm"==o.type&&(h+="output += time.hours < 12 ? "+JSON.stringify(o.am)+" : "+JSON.stringify(o.pm)+"; "):h+="output += ','; ";return h+="if (output) result.body.push(output); ",h+="result.type = type; ",h+="return result; ",_&&(h=_+h+"}"),h}function r(e,t,n){for(e+="";e.length<t;)e=n+e;return e}function a(e,t,n){for(e+="";e.length<t;)e+=n;return e}function s(e){var t,n,i,o,s=(e+"").toLowerCase(),l=s.indexOf(".");return l<0?(l=s.indexOf("e"),l<0?(t=s,n=""):(t=s.substr(0,l),n=s.substr(l))):(t=s.substr(0,l),n=s.substr(l+1)),(i=/(\d*)e([-+]?\d+)/.exec(n))&&(o=parseInt(i[2],10),o>=0?(n=a(i[1],o,"0"),t+=n.substr(0,o),n=n.substr(o)):(t=r(t,-o,"0"),n=t.substr(o)+i[1],t=t.substr(0,t.length+o))),{intpart:t||"0",decpart:n}}function l(e){var t,n,i=e.body,o="";for(t=0;t<i.length;++t)n=i[t],"string"==typeof n?o+=n:"space"==n.type&&(o+=" ");return o}var d,c,u,h,p,f,m,g,v;kendo.support.browser.msie&&kendo.support.browser.version<9||(d=kendo.util,c=kendo.spreadsheet.calc,u=kendo.dom,h=/^\[(black|green|white|blue|magenta|yellow|cyan|red)\]/i,p=/^\[(<=|>=|<>|<|>|=)(-?[0-9.]+)\]/,f=o({cond:"text",body:[{type:"text"}]}),m=d.memoize(function(t){var n=e(t),i=n.map(o);return i.push(f),i=i.join("\n"),i="'use strict'; return function(value, culture){ if (!culture) culture = kendo.culture(); var output = '', type = null, result = { body: [] }; "+i+"; return result; };",Function("runtime",i)(v)}),g=d.memoize(function(t){function n(e,t){return t.fraction&&(e+=r("",Math.max(t.fraction,3),"f")),e}function i(e){if("digit"==e.type)return e.sep?e.format.charAt(0)+","+e.format.substr(1):e.format;if("exp"==e.type)return e.ch+e.sign;if("date"==e.type||"time"==e.type){var t=e.part;return"date"==e.type&&/^m/.test(t)?t="M":"time"==e.type&&/^h/.test(t)&&(c||(t=t.toUpperCase())),n(r("",e.format,t),e)}return"ampm"==e.type?"tt":"str"==e.type?e.value:"space"==e.type?" ":"dec"==e.type?".":"percent"==e.type?"%":"comma"==e.type?",":""}var o,a,s,l=e(t),d=!1,c=!1;for(a=0;a<l.length;++a){for(o=l[a],s=0;s<o.body.length;++s)/^(?:date|time|ampm)$/.test(o.body[s].type)&&(d=!0,"ampm"==o.body[s].type&&(c=!0));if(d)break}return d?o.body.map(i).join(""):null}),v={unpackDate:c.runtime.unpackDate,unpackTime:c.runtime.unpackTime,date:function(e,t,n,i){switch(n){case"d":switch(i){case 1:return t.date;case 2:return r(t.date,2,"0");case 3:return e.calendars.standard.days.namesAbbr[t.day];case 4:return e.calendars.standard.days.names[t.day]}break;case"m":switch(i){case 1:return t.month+1;case 2:return r(t.month+1,2,"0");case 3:return e.calendars.standard.months.namesAbbr[t.month];case 4:return e.calendars.standard.months.names[t.month];case 5:return e.calendars.standard.months.names[t.month].charAt(0)}break;case"y":switch(i){case 2:return t.year%100;case 4:return t.year}}return"##"},time:function(e,t,n,i,o){var a,s;switch(t){case"h":a=r(i?e.hours%12||12:e.hours,n,"0"),o&&(s=(e.minutes+(e.seconds+e.milliseconds/1e3)/60)/60);break;case"m":a=r(e.minutes,n,"0"),o&&(s=(e.seconds+e.milliseconds/1e3)/60);break;case"s":a=r(e.seconds,n,"0"),o&&(s=e.milliseconds/1e3)}return s&&(a+=v.toFixed(s,o).replace(/^0+/,"")),a},eltime:function(e,t,n,i){var o,a;switch(t){case"h":o=24*e;break;case"m":o=24*e*60;break;case"s":o=24*e*60*60}return i&&(a=o-(0|o)),o=r(0|o,n,"0"),a&&(o+=v.toFixed(a,i).replace(/^0+/,"")),o},fill:function(e){return e},formatInt:function(e,t,n,i,o){function r(t,n){o&&c&&c%3===0&&/^[0-9]$/.test(t)&&(u=e.numberFormat[","]+u),n&&"-"===t&&(s=!0,t="0"),u=t+u,c++}var a,s,l,d,c,u,h,p,f,m;for(t=v.toFixed(t,i).replace(/\..*$/,""),a=n[n.length-1],i>0&&"0"!=a[n.length-1]&&("0"===t?t="":"-0"===t&&(t="-")),s=!1,l=t.length-1,d=[],c=0,h=n.length;--h>=0;){for(p=n[h],u="",f=p.length;--f>=0;)m=p.charAt(f),l<0?"0"==m?r("0"):"?"==m&&r(" "):("0"==t&&"?"==m?r(" "):"0"==m?r(t.charAt(l),!0):r(t.charAt(l)),l--);if(0===h)for(;l>=0;)r(t.charAt(l--));d.unshift(u)}return s&&(d[0]="-"+d[0]),d},formatDec:function(e,t,n){var i,o,r,a,s,l,d,c;for(e=v.toFixed(e,n),i=e.indexOf("."),e=i>=0?e.substr(i+1).replace(/0+$/,""):"",o=0,r=[],a=0;a<t.length;++a){for(s=t[a],l="",d=0;d<s.length;++d)c=s.charAt(d),o<e.length?l+=e.charAt(o++):"0"==c?l+="0":"?"==c&&(l+=" ");r.push(l)}return r},toFixed:function(e,t){return function n(e,i){var o,r,a,l;if(!isFinite(e))return"#NUM!";if(e<0)return"-"+n(-e);if(0===t)return Math.round(e)+"";if(e===Math.round(e)&&!/e/i.test(e+""))return e.toFixed(t);if(o=s(e),r=o.intpart,a=o.decpart,a.length<=t){for(;a.length<t;)a+="0";return r+"."+a}return i?r+"."+a.substr(0,t):(l=Math.pow(10,t),n(Math.round(e*l)/l,!0))}(+e.toFixed(14))}},kendo.spreadsheet.formatting={compile:m,parse:e,format:function(e,t,n){var i,o,r,a=m(t)(e,n),s=u.element("span");for(s.__dataType=a.type,i=a.body,a.color&&(s.attr.style={color:a.color}),o=0;o<i.length;++o)r=i[o],"string"==typeof r?s.children.push(u.text(r)):"space"==r.type&&s.children.push(u.element("span",{style:{visibility:"hidden"}},[u.text(r.value)]));return s},text:function(e,t,n){var i=m(t)(e,n);return l(i)},textAndColor:function(e,t,n){var i=m(t)(e,n);return{text:l(i),color:i.color,type:i.type}},type:function(e,t){return m(t)(e).type},adjustDecimals:function(i,o){var r=e(i);return n(r,o),t(r)},makeDateFormat:g})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/runtime.functions.min",["spreadsheet/runtime.min","util/main.min"],e)}(function(){"use strict";function e(e){return(Math.exp(e)+Math.exp(-e))/2}function t(e){return(Math.exp(e)-Math.exp(-e))/2}function n(n){return t(n)/e(n)}function i(e,t){for(;t;){var n=e%t;e=t,t=n}return e}function o(e,t){return Math.abs(e*t)/i(e,t)}function r(e,t){for(var n,i,o,r=[],a=0,s=e[0];a<e.length;)r.push({matrix:e[a++],pred:K(e[a++])});for(n=0;n<s.height;++n)e:for(i=0;i<s.width;++i){for(a=0;a<r.length;++a)if(o=r[a].matrix.get(n,i),!r[a].pred(null==o||""===o?0:o))continue e;t(n,i)}}function a(e){return function(t,n,i,o){var r,a=this;return o instanceof P&&(r=o.clone().toRangeRef(),r.width()!=n.width||r.height()!=n.height)?(isFinite(r.topLeft.row)||(r.topLeft.row=0),isFinite(r.topLeft.col)||(r.topLeft.col=0),r.bottomRight.row=r.topLeft.row+n.height-1,r.bottomRight.col=r.topLeft.col+n.width-1,a.resolveCells([r],function(){t(e(n,i,a.asMatrix(r)))})):void t(e(n,i,a.asMatrix(o)))}}function s(e){return e.reduce(function(e,t){return e+t},0)/e.length}function l(e,t,n){return null==n&&(n=s(e)),e.reduce(function(e,t){return e+Math.pow(t-n,2)},0)/t}function d(e,t){return Math.sqrt(l(e,t))}function c(e,t,n){var i=0,o=0,r=null,a=null,s=!1;return e.forEach(function(e){e<t?(i++,r=null==r?e:Math.max(r,e)):e>t?(o++,a=null==a?e:Math.min(a,e)):s=!0}),i||o?s?n?(i+1)/(e.length+1):i/(i+o):((a-t)*c(e,r,n)+(t-r)*c(e,a,n))/(a-r):new E("N/A")}function u(e,t,n){var i,o=0,r=s(e),a=s(t),l=e.length;for(i=0;i<l;++i)o+=(e[i]-r)*(t[i]-a);return o/n}function h(e,t){var n,i,o;return e.sort(k),n=e.length,i=0|t,o=t-i,0===i?e[0]:i>=n?e[n-1]:(--i,e[i]+o*(e[i+1]-e[i]))}function p(e,t){var n=t*(e.length-1)+1;return h(e,n)}function f(e,t){var n=t*(e.length+1);return h(e,n)}function m(e,t,n){var i=[],o=1,r=2,a=4;return function s(t){if(t instanceof P)e.getRefCells(t,!0).forEach(function(e){var t,s=e.value;n&o&&e.hidden||(!e.formula||(t=e.formula.print(e.row,e.col),!/^\s*(?:aggregate|subtotal)\s*\(/i.test(t)||n&a))&&(n&r&&s instanceof E||("number"==typeof s||s instanceof E)&&i.push(s))});else if(Array.isArray(t))for(var l=0;l<t.length;++l)s(t[l]);else t instanceof F?t.each(s):"number"==typeof t?i.push(t):t instanceof E&&!(n&r)&&i.push(t);
}(t),i}function g(e,t,n,i){var o,r;if(i){for(o=0,r=0;r<=e;++r)o+=q(t,r)*Math.pow(n,r)*Math.pow(1-n,t-r);return o}return q(t,e)*Math.pow(n,e)*Math.pow(1-n,t-e)}function v(e){var t=H(L(e,0,1));return 4==t.day||3==t.day&&T.isLeapYear(e)?53:52}function _(e,t,n){var i=H(e),o=H(t);return n?(31==i.date&&(i.date=30),31==o.date&&(o.date=30)):(1==i.month&&1==o.month&&i.date==B(i.year,1)&&o.date==B(o.year,1)&&(o.date=30),i.date==B(i.year,i.month)?(i.date=30,31==o.date&&(o.date=30)):30==i.date&&31==o.date&&(o.date=30)),360*(o.year-i.year)+30*(o.month-i.month)+(o.date-i.date)}function b(e,t){this.link=e,this.text=t}function w(e){return"number"==typeof e||"boolean"==typeof e||null==e||""===e}function k(e,t){return e===t?0:e<t?-1:1}function y(e,t){return e===t?0:e<t?1:-1}var x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U,j,q,G,$,K;kendo.support.browser.msie&&kendo.support.browser.version<9||(x=kendo.util,C=kendo.spreadsheet,S=C.calc,T=S.runtime,D=T.defineFunction,A=T.defineAlias,E=T.CalcError,I=C.RangeRef,M=C.CellRef,R=C.UnionRef,F=T.Matrix,P=C.Ref,z=C.NameRef,B=T.daysInMonth,L=T.packDate,H=T.unpackDate,N=T.daysInYear,["abs","cos","sin","acos","asin","tan","atan","exp","sqrt"].forEach(function(e){D(e,Math[e]).args([["*n","number"]])}),D("ln",Math.log).args([["*n","number"]]),D("log",function(e,t){return Math.log(e)/Math.log(t)}).args([["*num","number++"],["*base",["or","number++",["null",10]]],["?",["assert","$base != 1","DIV/0"]]]),D("log10",function(e){return Math.log(e)/Math.log(10)}).args([["*num","number++"]]),D("pi",function(){return Math.PI}).args([]),D("sqrtpi",function(e){return Math.sqrt(e*Math.PI)}).args([["*num","number+"]]),D("degrees",function(e){return 180*e/Math.PI%360}).args([["*radians","number"]]),D("radians",function(e){return Math.PI*e/180}).args([["*degrees","number"]]),D("cosh",e).args([["*num","number"]]),D("acosh",function(e){return Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1))}).args([["*num","number"],["?",["assert","$num >= 1"]]]),D("sinh",t).args([["*num","number"]]),D("asinh",function(e){return Math.log(e+Math.sqrt(e*e+1))}).args([["*num","number"]]),D("sec",function(e){return 1/Math.cos(e)}).args([["*num","number"]]),D("sech",function(t){return 1/e(t)}).args([["*num","number"]]),D("csc",function(e){return 1/Math.sin(e)}).args([["*num","number"]]),D("csch",function(e){return 1/t(e)}).args([["*num","number"]]),D("atan2",function(e,t){return Math.atan(t/e)}).args([["*x","divisor"],["*y","number"]]),D("tanh",n).args([["*num","number"]]),D("atanh",function(e){return Math.log(Math.sqrt(1-e*e)/(1-e))}).args([["*num",["and","number",["(between)",-1,1]]]]),D("cot",function(e){return 1/Math.tan(e)}).args([["*num","divisor"]]),D("coth",function(e){return 1/n(e)}).args([["*num","divisor"]]),D("acot",function(e){return Math.PI/2-Math.atan(e)}).args([["*num","number"]]),D("acoth",function(e){return Math.log((e+1)/(e-1))/2}).args([["*num","number"],["?",["or",["assert","$num < -1"],["assert","$num > 1"]]]]),D("power",function(e,t){return Math.pow(e,t)}).args([["*a","number"],["*b","number"]]),D("mod",function(e,t){return e%t}).args([["*a","number"],["*b","divisor"]]),D("quotient",function(e,t){return Math.floor(e/t)}).args([["*a","number"],["*b","divisor"]]),D("ceiling",function(e,t){return t?t*Math.ceil(e/t):0}).args([["*number","number"],["*significance","number"],["?",["assert","$significance >= 0 || $number < 0"]]]),D("ceiling.precise",function(e,t){return t=Math.abs(t),t?t*Math.ceil(e/t):0}).args([["*number","number"],["*significance",["or","number",["null",1]]]]),A("iso.ceiling","ceiling.precise"),D("ceiling.math",function(e,t,n){return t&&e?(e<0&&(!n&&t<0||n&&t>0)&&(t=-t),t?t*Math.ceil(e/t):0):0}).args([["*number","number"],["*significance",["or","number",["null","$number < 0 ? -1 : 1"]]],["*mode",["or","logical",["null",0]]]]),D("floor",function(e,t){return t?t*Math.floor(e/t):0}).args([["*number","number"],["*significance","number"],["?",["assert","$significance >= 0 || $number < 0"]]]),D("floor.precise",function(e,t){return t=Math.abs(t),t?t*Math.floor(e/t):0}).args([["*number","number"],["*significance",["or","number",["null",1]]]]),D("floor.math",function(e,t,n){return t&&e?(e<0&&(!n&&t<0||n&&t>0)&&(t=-t),t?t*Math.floor(e/t):0):0}).args([["*number","number"],["*significance",["or","number",["null","$number < 0 ? -1 : 1"]]],["*mode",["or","logical",["null",0]]]]),D("int",Math.floor).args([["*number","number"]]),D("mround",function(e,t){return t?t*Math.round(e/t):0}).args([["*number","number"],["*multiple","number"]]),D("round",function(e,t){var n=e<0?-1:1;return n<0&&(e=-e),t=Math.pow(10,t),e*=t,e=Math.round(e),n*e/t}).args([["*number","number"],["*digits","number"]]),D("roundup",function(e,t){return t=Math.pow(10,t),e*=t,e=e<0?Math.floor(e):Math.ceil(e),e/t}).args([["*number","number"],["*digits","number"]]),D("rounddown",function(e,t){return t=Math.pow(10,t),e*=t,e=e<0?Math.ceil(e):Math.floor(e),e/t}).args([["*number","number"],["*digits","number"]]),D("even",function(e){var t=e<0?Math.floor(e):Math.ceil(e);return t%2?t+(t<0?-1:1):t}).args([["*number","number"]]),D("odd",function(e){var t=e<0?Math.floor(e):Math.ceil(e);return t%2?t:t+(t<0?-1:1)}).args([["*number","number"]]),D("sign",function(e){return e<0?-1:e>0?1:0}).args([["*number","number"]]),D("gcd",function(e){var t,n=e[0];for(t=1;t<e.length;++t)n=i(n,e[t]);return n}).args([["numbers",["collect","number"]]]),D("lcm",function(e){var t,n=e[0];for(t=1;t<e.length;++t)n=o(n,e[t]);return n}).args([["numbers",["collect","number"]]]),D("sum",function(e){return e.reduce(function(e,t){return e+t},0)}).args([["numbers",["collect","number"]]]),D("product",function(e){return e.reduce(function(e,t){return e*t},1)}).args([["numbers",["collect","number"]]]),D("sumproduct",function(e,t){var n=0;return e.each(function(e,i,o){var r,a;if("number"==typeof e){for(r=0;r<t.length;++r){if(a=t[r].get(i,o),"number"!=typeof a)return;e*=a}n+=e}}),n}).args([["a1","matrix"],["+",["a2",["and","matrix",["assert","$a2.width == $a1.width"],["assert","$a2.height == $a1.height"]]]]]),D("sumsq",function(e){return e.reduce(function(e,t){return e+t*t},0)}).args([["numbers",["collect","number"]]]),D("sumx2my2",function(e,t){var n=0;return e.each(function(e,i,o){var r=t.get(i,o);"number"==typeof e&&"number"==typeof r&&(n+=e*e-r*r)}),n}).args([["a","matrix"],["b",["and","matrix",["assert","$b.width == $a.width"],["assert","$b.height == $a.height"]]]]),D("sumx2py2",function(e,t){var n=0;return e.each(function(e,i,o){var r=t.get(i,o);"number"==typeof e&&"number"==typeof r&&(n+=e*e+r*r)}),n}).args([["a","matrix"],["b",["and","matrix",["assert","$b.width == $a.width"],["assert","$b.height == $a.height"]]]]),D("sumxmy2",function(e,t){var n=0;return e.each(function(e,i,o){var r=t.get(i,o);"number"==typeof e&&"number"==typeof r&&(n+=(e-r)*(e-r))}),n}).args([["a","matrix"],["b",["and","matrix",["assert","$b.width == $a.width"],["assert","$b.height == $a.height"]]]]),D("seriessum",function(e,t,n,i){var o=0;return i.each(function(i){if("number"!=typeof i)throw new E("VALUE");o+=i*Math.pow(e,t),t+=n}),o}).args([["x","number"],["y","number"],["m","number"],["a","matrix"]]),D("min",function(e){return e.length?Math.min.apply(Math,e):0}).args([["numbers",["collect","number"]]]),D("max",function(e){return e.length?Math.max.apply(Math,e):0}).args([["numbers",["collect","number"]]]),D("counta",function(e){return e.length}).args([["values",["#collect","anyvalue"]]]),D("count",function(e){return e.length}).args([["numbers",["#collect","number"]]]),D("countunique",function(e){var t=0,n=[];return e.forEach(function(e){n.indexOf(e)<0&&(t++,n.push(e))}),t}).args([["values",["#collect","anyvalue"]]]),D("countblank",function(e){function t(e){null!=e&&""!==e||i++}function n(e){var n,i;for(n=0;n<e.length;++n)i=e[n],i instanceof F?i.each(t,!0):t(i)}var i=0;return n(e),i}).args([["+",["args",["or","matrix","anyvalue"]]]]),D("iseven",function(e){return e%2===0}).args([["*number","number"]]),D("isodd",function(e){return e%2!==0}).args([["*number","number"]]),D("n",function(e){return"boolean"==typeof e?e?1:0:"number"==typeof e?e:0}).args([["*value","anyvalue"]]),D("na",function(){return new E("N/A")}).args([]),O=[["m1","matrix"],["c1","anyvalue"],[["m2","matrix"],["c2","anyvalue"]]],D("countifs",function(e,t,n){var i=0;return n.unshift(e,t),r(n,function(){i++}),i}).args(O),V=[["range","matrix"]].concat(O),D("sumifs",function(e,t,n,i){i.unshift(e,w,t,n);var o=0;return r(i,function(t,n){var i=e.get(t,n);i&&(o+=i)}),o}).args(V),D("averageifs",function(e,t,n,i){i.unshift(e,w,t,n);var o=0,a=0;return r(i,function(t,n){var i=e.get(t,n);null!=i&&""!==i||(i=0),o+=i,a++}),a?o/a:new E("DIV/0")}).args(V),D("countif",function(e,t){t=K(t);var n=0;return e.each(function(e){t(e)&&n++}),n}).args([["range","matrix"],["*criteria","anyvalue"]]),W=[["range","matrix"],["*criteria","anyvalue"],["sumRange",["or","area","#matrix",["null","$range"]]]],D("sumif",a(function(e,t,n){var i=0;return t=K(t),e.each(function(e,o,r){if(t(e)){var a=n.get(o,r);w(a)&&(i+=a||0)}}),i})).argsAsync(W),D("averageif",a(function(e,t,n){var i=0,o=0;return t=K(t),e.each(function(e,r,a){if(t(e)){var s=n.get(r,a);w(s)&&(i+=s||0,o++)}}),o?i/o:new E("DIV/0")})).argsAsync(W),function(e){e("large",function(e,t){return e.sort(y)[t]}),e("small",function(e,t){return e.sort(k)[t]})}(function(e,t){D(e,function(e,n){var i=[],o=e.each(function(e){return e instanceof E?e:void("number"==typeof e&&i.push(e))});return o?o:n>i.length?new E("NUM"):t(i,n-1)}).args([["array","matrix"],["*nth","number++"]])}),D("stdev.s",function(e){return d(e,e.length-1)}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length >= 2","NUM"]]]),D("stdev.p",function(e){return d(e,e.length)}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length >= 2","NUM"]]]),D("var.s",function(e){return l(e,e.length-1)}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length >= 2","NUM"]]]),D("var.p",function(e){return l(e,e.length)}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length >= 2","NUM"]]]),D("median",function(e){var t=e.length;return e.sort(k),t%2?e[t>>1]:(e[t>>=1]+e[t-1])/2}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length > 0","N/A"]]]),D("mode.sngl",function(e){var t,n,i,o,r,a;for(e.sort(k),t=null,n=0,i=1,o=null,r=0;r<e.length;++r)a=e[r],a!=t?(n=1,t=a):n++,n>i&&(i=n,o=a);return null==o?new E("N/A"):o}).args([["numbers",["collect","number"]]]),D("mode.mult",function(e){var t,n=Object.create(null),i=2,o=[];return e.forEach(function(e){var t=n[e]||0;n[e]=++t,t==i?o.push(e):t>i&&(i=t,o=[e])}),t=new F(this),o.forEach(function(e,n){t.set(n,0,e)}),t}).args([["numbers",["collect","number"]]]),D("geomean",function(e){var t=e.length,n=e.reduce(function(e,t){if(t<0)throw new E("NUM");return e*t},1);return Math.pow(n,1/t)}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length > 0","NUM"]]]),D("harmean",function(e){var t=e.length,n=e.reduce(function(e,t){if(!t)throw new E("DIV/0");return e+1/t},0);return t/n}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length > 0","NUM"]]]),D("trimmean",function(e,t){var n,i,o,r=e.length;for(e.sort(k),n=Math.floor(r*t),n%2&&--n,n/=2,i=0,o=n;o<r-n;++o)i+=e[o];return i/(r-2*n)}).args([["numbers",["collect","number",1]],["percent",["and","number",["[between)",0,1]]],["?",["assert","$numbers.length > 0","NUM"]]]),D("frequency",function(e,t){function n(t){for(var n=0;o<e.length&&e[o]>i&&e[o]<=t;)++n,++o;return n}var i,o,r;return e.sort(k),t.sort(k),i=-(1/0),o=0,r=new F(this),t.forEach(function(e,t){var o=n(e);i=e,r.set(t,0,o)}),r.set(r.height,0,e.length-o),r}).args([["data",["collect","number",1]],["bins",["collect","number",1]]]),D("rank.eq",function(e,t,n){t.sort(n?k:y);var i=t.indexOf(e);return i<0?new E("N/A"):i+1}).args([["value","number"],["numbers",["collect","number"]],["order",["or","logical",["null",!1]]]]),A("rank","rank.eq"),D("rank.avg",function(e,t,n){var i,o;if(t.sort(n?k:y),i=t.indexOf(e),i<0)return new E("N/A");for(o=i;t[o]==e;++o);return(i+o+1)/2}).args([["value","number"],["numbers",["collect","number"]],["order",["or","logical",["null",!1]]]]),D("kurt",function(e){var t=e.length,n=s(e),i=l(e,t-1,n),o=Math.sqrt(i),r=e.reduce(function(e,t){return e+Math.pow((t-n)/o,4)},0);return t*(t+1)/((t-1)*(t-2)*(t-3))*r-3*Math.pow(t-1,2)/((t-2)*(t-3))}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length >= 4","NUM"]]]),U=[["array",["collect","number",1]],["x","number"],["significance",["or",["null",3],"integer++"]],["?",["assert","$array.length > 0","NUM"]]],D("percentrank.inc",function(e,t,n){var i=c(e,t,0);return i=i.toFixed(n+1),parseFloat(i.substr(0,i.length-1))}).args(U),D("percentrank.exc",function(e,t,n){var i=c(e,t,1);return i=i.toFixed(n+1),parseFloat(i.substr(0,i.length-1))}).args(U),A("percentrank","percentrank.inc"),D("covariance.p",function(e,t){return u(e,t,e.length)}).args([["array1",["collect","number",1]],["array2",["collect","number",1]],["?",["assert","$array1.length == $array2.length","N/A"]],["?",["assert","$array1.length > 0","DIV/0"]]]),D("covariance.s",function(e,t){return u(e,t,e.length-1)}).args([["array1",["collect","number",1]],["array2",["collect","number",1]],["?",["assert","$array1.length == $array2.length","N/A"]],["?",["assert","$array1.length > 1","DIV/0"]]]),A("covar","covariance.p"),j=x.memoize(function(e){for(var t=2,n=1;t<=e;++t)n*=t;return n}),D("fact",j).args([["*n","integer+"]]),D("factdouble",function(e){for(var t=2+(1&e),n=1;t<=e;t+=2)n*=t;return n}).args([["*n","integer+"]]),D("multinomial",function(e){var t=1,n=0;return e.forEach(function(e){if(e<0)throw new E("NUM");n+=e,t*=j(e)}),j(n)/t}).args([["numbers",["collect","number"]]]),q=x.memoize(function(e,t){for(var n=t+1,i=1,o=1,r=1;i<=e-t;++n,++i)o*=n,r*=i;return o/r}),D("combin",q).args([["*n","integer++"],["*k",["and","integer",["[between]",0,"$n"]]]]),D("combina",function(e,t){return q(e+t-1,e-1)}).args([["*n","integer++"],["*k",["and","integer",["[between]",1,"$n"]]]]),D("average",function(e){var t=e.reduce(function(e,t){return e+t},0);return t/e.length}).args([["numbers",["collect","number!"]],["?",["assert","$numbers.length > 0","DIV/0"]]]),D("averagea",function(e){var t=0,n=0;return e.forEach(function(e){"string"!=typeof e&&(t+=e),++n}),n?t/n:new E("DIV/0")}).args([["values",["collect","anyvalue"]]]),D("percentile.inc",p).args([["numbers",["collect","number",1]],["p",["and","number",["[between]",0,1]]]]),D("percentile.exc",f).args([["numbers",["collect","number",1]],["p",["and","number",["(between)",0,1]]]]),D("quartile.inc",function(e,t){return p(e,t/4)}).args([["numbers",["collect","number",1]],["quarter",["values",0,1,2,3,4]]]),D("quartile.exc",function(e,t){return f(e,t/4)}).args([["numbers",["collect","number",1]],["quarter",["values",0,1,2,3,4]]]),A("quartile","quartile.inc"),A("percentile","percentile.inc"),G=["AVERAGE","COUNT","COUNTA","MAX","MIN","PRODUCT","STDEV.S","STDEV.P","SUM","VAR.S","VAR.P","MEDIAN","MODE.SNGL","LARGE","SMALL","PERCENTILE.INC","QUARTILE.INC","PERCENTILE.EXC","QUARTILE.EXC"],D("aggregate",function(e,t,n,i){var o=this;o.resolveCells(i,function(){var r,a;if(t>12){if(r=m(o,i[0],n),a=i[1],a instanceof M&&(a=o.getRefData(a)),"number"!=typeof a)return e(new E("VALUE"))}else r=m(o,i,n);o.func(G[t-1],e,r)})}).argsAsync([["funcId",["values",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]],["options",["or",["null",0],["values",0,1,2,3,4,5,6,7]]],["args","rest"]]),D("subtotal",function(e,t){var n,i,o=this,r=t>100;for(r&&(t-=100),n=[],i=2;i<arguments.length;++i)n.push(arguments[i]);o.resolveCells(n,function(){var i=m(o,n,r?1:0);o.func(G[t-1],e,i)})}).argsAsync([["funcId",["values",1,2,3,4,5,6,7,8,9,10,11,101,102,103,104,105,106,107,108,109,110,111]],["+",["ref",["or","ref","#matrix"]]]]),D("avedev",function(e){var t=e.reduce(function(e,t){return e+t},0)/e.length;return e.reduce(function(e,n){return e+Math.abs(n-t)},0)/e.length}).args([["numbers",["collect","number"]],["?",["assert","$numbers.length >= 2","NUM"]]]),D("binom.dist",g).args([["successes","integer+"],["trials",["and","integer",["assert","$trials >= $successes"]]],["probability",["and","number",["[between]",0,1]]],["cumulative","logical"]]),A("binomdist","binom.dist"),D("binom.inv",function(e,t,n){for(var i=0;i<=e;++i)if(g(i,e,t,!0)>=n)return i;return new E("N/A")}).args([["trials","integer+"],["probability",["and","number",["[between]",0,1]]],["alpha",["and","number",["[between]",0,1]]]]),A("critbinom","binom.inv"),D("binom.dist.range",function(e,t,n,i){var o,r=0;for(o=n;o<=i;++o)r+=q(e,o)*Math.pow(t,o)*Math.pow(1-t,e-o);return r}).args([["trials","integer+"],["probability",["and","number",["[between]",0,1]]],["successes_min",["and","integer",["[between]",0,"$trials"]]],["successes_max",["or",["and","integer",["[between]","$successes_min","$trials"]],["null","$successes_min"]]]]),D("negbinom.dist",function(e,t,n,i){if(i){for(var o=0;e>=0;)o+=q(e+t-1,e)*Math.pow(n,t)*Math.pow(1-n,e),e--;return o}return q(e+t-1,e)*Math.pow(n,t)*Math.pow(1-n,e)}).args([["number_f","integer+"],["number_s","integer+"],["probability_s",["and","number",["[between]",0,1]]],["cumulative","logical"]]),A("negbinomdist","negbinom.dist"),D("address",function(e,t,n,i,o){var r=new M(e-1,t-1,n-1);return o&&r.setSheet(o,!0),i?r.print(0,0):r.print()}).args([["row","integer++"],["col","integer++"],["abs",["or",["null",1],["values",1,2,3,4]]],["a1",["or",["null",!0],"logical"]],["sheet",["or","null","string"]]]),D("areas",function(e){var t=0;return function n(e){e instanceof M||e instanceof I?t++:e instanceof R&&e.refs.forEach(n)}(e),t}).args([["ref","ref"]]),D("choose",function(e,t){return e>t.length?new E("N/A"):t[e-1]}).args([["*index","integer"],["+",["value","anything"]]]),D("column",function(e){return e?e instanceof M?e.col+1:this.asMatrix(e).mapCol(function(t){return t+e.topLeft.col+1}):this.formula.col+1}).args([["ref",["or","area","null"]]]),D("columns",function(e){return e instanceof P?e.width():e.width}).args([["ref",["or","area","#matrix"]]]),D("formulatext",function(e){var t=this.getRefCells(e)[0];return t.formula?t.formula.print(t.row,t.col):new E("N/A")}).args([["ref","ref"]]),D("hlookup",function(e,t,n,i){var o=null;return t.eachCol(function(n){var r=t.get(0,n);if(i){if(r>e)return!0;o=n}else if(r===e)return o=n,!0}),null==o?new E("N/A"):t.get(n-1,o)}).args([["value","anyvalue"],["range","matrix"],["row","integer++"],["approx",["or","logical",["null",!0]]]]),D("index",function(e,t,n,i,o){var r,a,s,l=this;if(t instanceof R&&(t=t.refs[o-1]),!n&&!i||!t)return e(new E("N/A"));if(t instanceof M&&(t=t.toRangeRef()),t instanceof I){if(n&&i)return i>t.width()||n>t.height()?e(new E("REF")):(r=t.toCell(n-1,i-1),void l.resolveCells([r],function(){e(l.getRefData(r))}));if(!n)return a=t.toColumn(i-1),void l.resolveCells([a],function(){e(l.asMatrix(a))});if(!i)return s=t.toRow(n-1),void l.resolveCells([s],function(){e(l.asMatrix(s))})}else if(t instanceof F){if(t.width>1&&t.height>1){if(n&&i)return e(t.get(n-1,i-1));if(!n)return e(t.mapRow(function(e){return t.get(e,i-1)}));if(!i)return e(t.mapCol(function(e){return t.get(n-1,e)}))}if(1==t.width)return e(t.get(n-1,0));if(1==t.height)return e(t.get(0,i-1))}else e(new E("REF"))}).argsAsync([["range",["or","ref","matrix"]],["row",["or","integer+","null"]],["col",["or","integer+","null"]],["areanum",["or","integer++",["null",1]]]]),D("indirect",function(e){var t,n,i;try{if(t=this.formula,n=S.parseFormula(t.sheet,t.row,t.col,e),i=n.ast,i instanceof z&&(i=this.ss.nameValue(i,t.sheet,t.row,t.col)),!(i instanceof P))throw 1;return i.absolute(t.row,t.col)}catch(o){return new E("REF")}}).args([["thing","string"]]),D("match",function(e,t,n){var i,o=1;return 0===n?i=K(e):n===-1?i=K("<="+e):1===n&&(i=K(">="+e)),t.each(function(t){return null!=t&&i(t)?(0!==n&&e!=t&&--o,!0):void o++},!0)&&o>0?o:new E("N/A")}).args([["value","anyvalue"],["range","matrix"],["type",["or",["values",-1,0,1],["null",1]]]]),D("offset",function(e,t,n,i,o){var r=(e instanceof M?e:e.topLeft).clone();return r.row+=t,r.col+=n,r.row<0||r.col<0?new E("VALUE"):i>1||o>1?new I(r,new M(r.row+i-1,r.col+o-1)).setSheet(e.sheet,e.hasSheet()):r}).args([["ref","area"],["*rows","integer"],["*cols","integer"],["*height",["or","integer++",["null","$ref.height()"]]],["*width",["or","integer++",["null","$ref.width()"]]]]),D("row",function(e){return e?e instanceof M?e.row+1:this.asMatrix(e).mapRow(function(t){return t+e.topLeft.row+1}):this.formula.row+1}).args([["ref",["or","area","null"]]]),D("rows",function(e){return e instanceof P?e.height():e.height}).args([["ref",["or","area","#matrix"]]]),D("vlookup",function(e,t,n,i){var o=null;return"number"!=typeof e&&(i=!1),"string"==typeof e&&(e=e.toLowerCase()),t.eachRow(function(n){var r=t.get(n,0);if(i){if(r>e)return!0;o=n}else if("string"==typeof r&&(r=r.toLowerCase()),r===e)return o=n,!0}),null==o?new E("N/A"):t.get(o,n-1)}).args([["value","anyvalue"],["range","matrix"],["col","integer++"],["approx",["or","logical",["null",!0]]]]),D("date",function(e,t,n){return L(e,t-1,n)}).args([["*year","integer"],["*month","integer"],["*date","integer"]]),D("day",function(e){return H(e).date}).args([["*date","date"]]),D("month",function(e){return H(e).month+1}).args([["*date","date"]]),D("year",function(e){return H(e).year}).args([["*date","date"]]),D("weekday",function(e){return H(e).day+1}).args([["*date","date"]]),D("weeknum",function(e,t){var n,i=L(H(e).year,0,1),o=H(i);return 21==t?(n=3-(o.day+6)%7,n<0&&(n+=7),i+=n,o.date+=n,o.day=4,t=1):t=1==t?0:2==t?1:(t-10)%7,n=o.day-t,n<0&&(n+=7),i-=n,Math.ceil((e+1-i)/7)}).args([["*date","date"],["*type",["or",["null",1],["values",1,2,11,12,13,14,15,16,17,21]]]]),D("isoweeknum",function(e){var t=H(e),n=t.day||7,i=Math.floor((t.ord-n+10)/7);return i<1?v(t.year-1):53==i&&i>v(t.year)?1:i}).args([["*date","date"]]),D("now",function(){return T.dateToSerial(new Date)}).args([]),D("today",function(){return 0|T.dateToSerial(new Date)}).args([]),D("time",function(e,t,n){return T.packTime(e,t,n,0)}).args([["*hours","integer"],["*minutes","integer"],["*seconds","integer"]]),D("hour",function(e){return T.unpackTime(e).hours}).args([["*time","datetime"]]),D("minute",function(e){return T.unpackTime(e).minutes}).args([["*time","datetime"]]),D("second",function(e){return T.unpackTime(e).seconds}).args([["*time","datetime"]]),D("edate",function(e,t){var n=H(e),i=n.month+t,o=n.year+Math.floor(i/12);return i%=12,i<0&&(i+=12),n=Math.min(n.date,B(o,i)),L(o,i,n)}).args([["*start_date","date"],["*months","integer"]]),D("eomonth",function(e,t){var n=H(e),i=n.month+t,o=n.year+Math.floor(i/12);return i%=12,i<0&&(i+=12),n=B(o,i),L(o,i,n)}).args([["*start_date","date"],["*months","integer"]]),D("workday",function(e,t,n){var i,o=t>0?1:-1;for(t=Math.abs(t),i=H(e).day;t>0;)e+=o,i=(i+o)%7,i>0&&i<6&&n.indexOf(e)<0&&--t;return e}).args([["start_date","date"],["days","integer"],["holidays",["collect","date"]]]),D("networkdays",function(e,t,n){var i,o,r;for(e>t&&(i=e,e=t,t=i),o=0,r=H(e).day;e<=t;)r>0&&r<6&&n.indexOf(e)<0&&o++,e++,r=(r+1)%7;return o}).args([["start_date","date"],["end_date","date"],["holidays",["collect","date"]]]),D("days",function(e,t){return t-e}).args([["*start_date","date"],["*end_date","date"]]),T._days_360=_,D("days360",_).args([["*start_date","date"],["*end_date","date"],["*method",["or","logical",["null",!1]]]]),D("yearfrac",function(e,t,n){switch(n){case 0:return _(e,t,!1)/360;case 1:return(t-e)/N(H(e).year);case 2:return(t-e)/360;case 3:return(t-e)/365;case 4:return _(e,t,!0)/360}}).args([["*start_date","date"],["*end_date","date"],["*method",["or",["null",0],["values",0,1,2,3,4]]]]),D("datevalue",function(e){var t=T.parseDate(e);return t?T.dateToSerial(t):new E("VALUE")}).args([["*text","string"]]),D("timevalue",function(e){var t,n,i,o,r=e.toLowerCase().match(/(\d+):(\d+)(:(\d+)(\.(\d+))?)?\s*(am?|pm?)?/);return r?(t=parseFloat(r[1]),n=parseFloat(r[2]),i=r[3]?parseFloat(r[4]):0,o=r[7],o&&(t>12||t<1)?new E("VALUE"):(/^p/.test(o)&&(t+=12),T.packTime(t,n,i,0))):new E("VALUE")}).args([["*text","string"]]),D("mdeterm",function(e){var t=e.each(function(e){if("number"!=typeof e)return new E("VALUE")},!0);return t||e.determinant()}).args([["m",["and","matrix",["assert","$m.width == $m.height"]]]]),D("transpose",function(e){return e.transpose()}).args([["range","matrix"]]),D("mmult",function(e,t){return e.multiply(t)}).args([["a","matrix"],["b",["and","matrix",["assert","$b.height == $a.width"]]]]),D("munit",function(e){return new F(this).unit(e)}).args([["n","integer+"]]),D("minverse",function(e){var t=e.each(function(e){if("number"!=typeof e)return new E("VALUE")},!0);return t||e.inverse()||new E("VALUE")}).args([["m",["and","matrix",["assert","$m.width == $m.height"]]]]),D("rand",function(){return Math.random()}).args([]),D("randbetween",function(e,t){return e+Math.floor((t-e+1)*Math.random())}).args([["min","integer"],["max",["and","integer",["assert","$max >= $min"]]]]),D("true",function(){return!0}).args([]),D("false",function(){return!0}).args([]),D("roman",function(e){return x.arabicToRoman(e).toUpperCase()}).args([["*number","integer"]]),D("arabic",function(e){var t=x.romanToArabic(e);return null==t?new E("VALUE"):t}).args([["*roman","string"]]),D("base",function(e,t,n){for(var i=e.toString(t).toUpperCase();i.length<n;)i="0"+i;return i}).args([["*number","integer"],["*radix",["and","integer",["[between]",2,36]]],["*minLen",["or","integer+",["null",0]]]]),D("decimal",function(e,t){var n,i,o;for(e=e.toUpperCase(),n=0,i=0;i<e.length;++i){if(o=e.charCodeAt(i),o>=48&&o<=57)o-=48;else{if(!(o>=65&&o<55+t))return new E("VALUE");o-=55}n=n*t+o}return n}).args([["*text","string"],["*radix",["and","integer",["[between]",2,36]]]]),D("char",function(e){return String.fromCharCode(e)}).args([["*code","integer+"]]),$=/[\0-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,D("clean",function(e){return e.replace($,"")}).args([["*text","string"]]),D("code",function(e){return e.charAt(0)}).args([["*text","string"]]),A("unichar","char"),A("unicode","code"),D("concatenate",function(e){var t,n="";for(t=0;t<e.length;++t)n+=e[t];return n}).args([["+",["*text","string"]]]),D("dollar",function(e,t){for(var n="$#,##0DECIMALS;($#,##0DECIMALS)",i="",o=1;t-- >0;)i+="0";for(;++t<0;)o*=10;return""!==i?i="."+i:1!==o&&(e=Math.round(e/o)*o),n=n.replace(/DECIMALS/g,i),C.formatting.text(e,n)}).args([["*number","number"],["*decimals",["or","integer",["null",2]]]]),D("exact",function(e,t){return e===t}).args([["*text1","string"],["*text2","string"]]),D("find",function(e,t,n){var i=t.indexOf(e,n-1);return i<0?new E("VALUE"):i+1}).args([["*substring","string"],["*string","string"],["*start",["or","integer++",["null",1]]]]),D("fixed",function(e,t,n){var i,o=Math.pow(10,t);if(e=Math.round(e*o)/o,i=n?"0":"#,##0",t>0)for(i+=".";t-- >0;)i+="0";return C.formatting.text(e,i)}).args([["*number","number"],["*decimals",["or","integer",["null",2]]],["*noCommas",["or","boolean",["null",!1]]]]),D("left",function(e,t){return e.substr(0,t)}).args([["*text","string"],["*length",["or","integer+",["null",1]]]]),D("right",function(e,t){return e.substr(-t)}).args([["*text","string"],["*length",["or","integer+",["null",1]]]]),D("len",function(e){return e.length}).args([["*text","string"]]),D("lower",function(e){return e.toLowerCase()}).args([["*text","string"]]),D("upper",function(e){return e.toUpperCase()}).args([["*text","string"]]),D("ltrim",function(e){return e.replace(/^\s+/,"")}).args([["*text","string"]]),D("rtrim",function(e){return e.replace(/\s+$/,"")}).args([["*text","string"]]),D("trim",function(e){return e.replace(/^\s+|\s+$/,"")}).args([["*text","string"]]),D("mid",function(e,t,n){return e.substr(t-1,n)}).args([["*text","string"],["*start","integer++"],["*length","integer+"]]),D("proper",function(e){return e.toLowerCase().replace(/\b./g,function(e){return e.toUpperCase()})}).args([["*text","string"]]),D("replace",function(e,t,n,i){return e.substr(0,--t)+i+e.substr(t+n)}).args([["*text","string"],["*start","integer++"],["*length","integer+"],["*newText","string"]]),D("rept",function(e,t){for(var n="";t-- >0;)n+=e;return n}).args([["*text","string"],["*number","integer+"]]),D("search",function(e,t,n){var i=t.toLowerCase().indexOf(e.toLowerCase(),n-1);return i<0?new E("VALUE"):i+1}).args([["*substring","string"],["*string","string"],["*start",["or","integer++",["null",1]]]]),
D("substitute",function(e,t,n,i){var o,r;if(t===n)return e;if(o=e.split(t),null==i)return o.join(n);for(e="",i--,r=0;r<o.length;++r)e+=o[r],r<o.length-1&&(e+=r===i?n:t);return e}).args([["*text","string"],["*oldText","string"],["*newText","string"],["*nth",["or","integer++","null"]]]),D("t",function(e){return"string"==typeof e?e:""}).args([["*value","anyvalue"]]),D("text",function(e,t){return C.formatting.text(e,t)}).args([["*value","anyvalue"],["*format","string"]]),D("value",function(e){return"number"==typeof e?e:"boolean"==typeof e?+e:(e=(e+"").replace(/[$€,]/g,""),e=parseFloat(e),isNaN(e)?new E("VALUE"):e)}).args([["*value","anyvalue"]]),b.prototype.toString=function(){return this.text},D("hyperlink",function(e,t){return new b(e,t)}).args([["*link","string"],["*text",["or","string",["null","$link"]]]]),D("iferror",function(e,t){return e instanceof E?t:e}).args([["*value","forced!"],["*value_if_error","anyvalue!"]]),K=function(){function e(e,t){if("string"==typeof t){var n=parseFloat(t);isNaN(n)||n!=t||(t=n)}return function(n){var i=t;return"string"==typeof n&&"string"==typeof i&&(n=n.toLowerCase(),i=i.toLowerCase()),e(n,i)}}function t(e){var t,n;return"string"==typeof e&&(e=e.toLowerCase()),/^[0-9.]+%$/.test(e)?(n=e.substr(0,e.length-1),t=parseFloat(n),isNaN(t)||t!=n||(e=t/100)):/^[0-9.]+$/.test(e)&&(t=parseFloat(e),isNaN(t)||t!=e||(e=t)),e}function n(e,n){return t(e)<t(n)}function i(e,n){return t(e)<=t(n)}function o(e,n){return t(e)>t(n)}function r(e,n){return t(e)>=t(n)}function a(e,t){return!s(e,t)}function s(e,n){return n instanceof RegExp?n.test(e):("string"!=typeof e&&"string"!=typeof n||(e+="",n+=""),t(e)==t(n))}var l=Object.create(null);return function(t){var d,c;return"function"==typeof t?t:(d=/^=(.*)$/.exec(t))?e(s,d[1]):(d=/^<>(.*)$/.exec(t))?e(a,d[1]):(d=/^<=(.*)$/.exec(t))?e(i,d[1]):(d=/^<(.*)$/.exec(t))?e(n,d[1]):(d=/^>=(.*)$/.exec(t))?e(r,d[1]):(d=/^>(.*)$/.exec(t))?e(o,d[1]):/[?*]/.exec(t)?(c=l[t],c||(c=t.replace(/(~\?|~\*|[\]({\+\.\|\^\$\\})\[]|[?*])/g,function(e){switch(e){case"~?":return"\\?";case"~*":return"\\*";case"?":return".";case"*":return".*";default:return"\\"+e}}),c=l[t]=RegExp("^"+c+"$","i")),e(s,c)):e(s,t)}}())},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/runtime.functions.2.min",["spreadsheet/runtime.min"],e)}(function(){"use strict";function e(e){var n,i,o,r;if(ct(e)>=3.3)return 1-t(e);for(n=e>0?1:-1,n==-1&&(e=-e),i=0,o=1,r=1;r<100;r++)i+=o,o*=2*e*e/(2*r+1);return 2*n/Math.sqrt(Math.PI)*e*Math.exp(-e*e)*i}function t(t){var n,i,o;if(ct(t)<3.3)return 1-e(t);for(n=1,t<0&&(n=-1,t=-t),i=t,o=8;o>=1;o-=.5)i=t+o/i;return i=1/(t+i),1==n?Math.exp(-t*t)/Math.sqrt(Math.PI)*i:2-Math.exp(-t*t)/Math.sqrt(Math.PI)*i}function n(e){var t,n=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],i=e,o=e+5.5,r=n[0];for(o-=(e+.5)*Math.log(o),t=1;t<=6;t++)i+=1,r+=n[t]/i;return-o+Math.log(Math.sqrt(2*Math.PI)*r/e)}function i(e){if(e>0)return Math.exp(n(e));var t=Math.PI,o=-e;return-t/(o*i(o)*Math.sin(t*o))}function o(e,t){return n(e)+n(t)-n(e+t)}function r(e,t){return Math.exp(o(e,t))}function a(e,t){return t<e+1?s(e,t):1-l(e,t)}function s(e,t){var i,o=1/e,r=o,a=e,s=n(e);for(i=1;i<=st&&(a++,r*=t/a,o+=r,!(ct(r)<ct(o)*lt));i++);return o*Math.exp(-t+e*Math.log(t)-s)}function l(e,t){var i,o,r=dt,a=r,s=0,l=1,d=t+1-e,c=n(e);for(i=1;i<=st&&(s=d+l*s,ct(s)<dt&&(s=dt),a=d+l/a,ct(a)<dt&&(a=dt),s=1/s,o=a*s,r*=o,!(ct(o-1)<lt));i++)d+=2,l=-i*(i-e);return r*Math.exp(-t-c+e*Math.log(t))}function d(e,t,n,o){return o?a(t,e/n):Math.pow(e/n,t-1)*Math.exp(-e/n)/(n*i(t))}function c(e,t,n){var i,o,r,a,s,l;if(0===e)return 0;if(1==e)return 1/0;for(i=0,o=10,r=0,a=t*n,a>1&&(o*=a),s=0;s<st&&(r=.5*(i+o),l=d(r,t,n,!0),!(ct(e-l)<1e-16));s++)l>e?o=r:i=r;return r}function u(t,n){return n?.5+.5*e(t/Math.sqrt(2)):Math.exp(-t*t/2)/Math.sqrt(2*Math.PI)}function h(e){var t,n,i=[-39.69683028665376,220.9460984245205,-275.9285104469687,138.357751867269,-30.66479806614716,2.506628277459239],o=[-54.47609879822406,161.5858368580409,-155.6989798598866,66.80131188771972,-13.28068155288572],r=[-.007784894002430293,-.3223964580411365,-2.400758277161838,-2.549732539343734,4.374664141464968,2.938163982698783],a=[.007784695709041462,.3224671290700398,2.445134137142996,3.754408661907416],s=.02425,l=1-s;return e<s?(t=Math.sqrt(-2*Math.log(e)),(((((r[0]*t+r[1])*t+r[2])*t+r[3])*t+r[4])*t+r[5])/((((a[0]*t+a[1])*t+a[2])*t+a[3])*t+1)):l<e?(t=Math.sqrt(-2*Math.log(1-e)),-(((((r[0]*t+r[1])*t+r[2])*t+r[3])*t+r[4])*t+r[5])/((((a[0]*t+a[1])*t+a[2])*t+a[3])*t+1)):(t=e-.5,n=t*t,(((((i[0]*n+i[1])*n+i[2])*n+i[3])*n+i[4])*n+i[5])*t/(((((o[0]*n+o[1])*n+o[2])*n+o[3])*n+o[4])*n+1))}function p(e,t,n,i){return i?u((e-t)/n,!0):Math.exp(-(e-t)*(e-t)/(2*n*n))/(n*Math.sqrt(2*Math.PI))}function f(e,t,n){return t+n*h(e)}function m(e,t,n){return Math.exp((t-1)*Math.log(e)+(n-1)*Math.log(1-e)-o(t,n))}function g(e,t,n){var i=Math.exp(t*Math.log(e)+n*Math.log(1-e)-o(t,n));return e<(t+1)/(t+n+2)?i*v(t,n,e)/t:1-i*v(n,t,1-e)/n}function v(e,t,n){var i,o,r,a,s,l=e+t,d=e+1,c=e-1,u=1,h=1-l*n/d;for(ct(h)<dt&&(h=dt),h=1/h,s=h,i=1;i<=st&&(o=2*i,r=i*(t-i)*n/((c+o)*(e+o)),h=1+r*h,ct(h)<dt&&(h=dt),u=1+r/u,ct(u)<dt&&(u=dt),h=1/h,s*=h*u,r=-(e+i)*(l+i)*n/((e+o)*(d+o)),h=1+r*h,ct(h)<dt&&(h=dt),u=1+r/u,ct(u)<dt&&(u=dt),h=1/h,a=h*u,s*=a,!(ct(a-1)<lt));i++);return s}function _(e,t,n){var i,o,r=0,a=1,s=0;for(i=0;i<st&&(s=.5*(r+a),o=g(s,t,n),!(ct(e-o)<lt));i++)o>e?a=s:r=s;return s}function b(e,t,n,i,o){return g((e-i)/(o-i),t,n)}function w(e,t,n,i,o,r){return i?g((e-o)/(r-o),t,n):m((e-o)/(r-o),t,n)/(r-o)}function k(e,t,n,i,o){return i+(o-i)*_(e,t,n)}function y(e,t,n){return d(e,t/2,2,n)}function x(e,t){return 1-y(e,t,!0)}function C(e,t){return c(e,t/2,2)}function S(e,t){return C(1-e,t)}function T(e,t){var n,i,o,r,a,s=e.length,l=e[0].length,d=0;for(n=0;n<s;n++)for(i=0;i<l;i++)o=t[n][i],r=e[n][i]-o,r*=r,d+=r/o;return a=(s-1)*(l-1),x(d,a)}function D(e,t,n){return n?1-Math.exp(-t*e):t*Math.exp(-t*e)}function A(e,t,n){var i,o;if(n)return 1-y(2*t,2*(e+1),!0);for(i=0,o=2;o<=e;o++)i+=Math.log(o);return Math.exp(e*Math.log(t)-t-i)}function E(e,t,n,i){if(i)return g(t*e/(n+t*e),t/2,n/2);var o=t/n;return t/=2,n/=2,o/r(t,n)*Math.pow(o*e,t-1)/Math.pow(1+o*e,t+n)}function I(e,t,n){return 1-E(e,t,n,!0)}function M(e,t,n){return n/t*(1/k(e,n/2,t/2,0,1)-1)}function R(e,t,n){return n/t*(1/k(1-e,n/2,t/2,0,1)-1)}function F(e){var t,n=0,i=e.length;for(t=0;t<i;t++)n+=e[t];return n/i}function P(e,t){var n,i,o=0,r=e.length;for(n=0;n<r;n++)i=e[n]-t,o+=i*i;return o/(r-1)}function z(e,t){var n=e.length-1,i=t.length-1,o=P(e,F(e)),r=P(t,F(t));if(!o||!r)throw new et("DIV/0");return 2*E(o/r,n,i,!0)}function B(e){return.5*Math.log((1+e)/(1-e))}function L(e){var t=Math.exp(2*e);return(t-1)/(t+1)}function H(e,t,n){return n?1-.5*g(t/(e*e+t),t/2,.5):1/(Math.sqrt(t)*r(.5,t/2))*Math.pow(1+e*e/t,-(t+1)/2)}function N(e,t){return 1-H(e,t,!0)}function O(e,t){return e<0&&(e=-e),2*N(e,t)}function V(e,t){var n=_(2*Math.min(e,1-e),t/2,.5);return n=Math.sqrt(t*(1-n)/n),e>.5?n:-n}function W(e,t){return V(1-e/2,t)}function U(e,t,n,i){var o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w=e.length,k=t.length;if(1==i){for(a=0,s=0,l=0;l<w;l++)d=e[l]-t[l],a+=d,s+=d*d;return c=a/w,o=c/Math.sqrt((s-a*c)/(w*(w-1))),1==n?N(o,w-1):O(o,w-1)}return u=F(e),h=F(t),p=P(e,u),f=P(t,h),3==i?(m=p/w,g=f/k,v=m+g,_=m/v,b=g/v,r=1/(_*_/(w-1)+b*b/(k-1)),o=ct(u-h)/Math.sqrt(v),1==n?N(o,r):O(o,r)):(r=w+k-2,o=ct(u-h)*Math.sqrt(r*w*k/((w+k)*((w-1)*p+(k-1)*f))),1==n?N(o,r):O(o,r))}function j(e,t,n){return-V(e/2,n-1)*t/Math.sqrt(n)}function q(e,t,n){return-h(e/2)*t/Math.sqrt(n)}function G(e){return u(e,!0)-.5}function $(e){return u(e)}function K(t,n,i,o){if(o)return.5+.5*e((Math.log(t)-n)/(i*Math.sqrt(2)));var r=Math.log(t)-n;return Math.exp(-r*r/(2*i*i))/(t*i*Math.sqrt(2*Math.PI))}function Y(e,t,n){return Math.exp(f(e,t,n))}function Q(e,t,n,i){var o,r,a,s=e.length,l=0;for(o=0;o<s;o++){if(t[o]<=0||t[o]>1)throw new et("NUM");l+=t[o]}if(1!=l)throw new et("NUM");for(r=0,o=0;o<s;o++)a=e[o],a>=n&&a<=i&&(r+=t[o]);return r}function X(e,t){var n,i,o,r=F(t),a=F(e),s=0,l=0;for(n=0,i=e.length;n<i;n++)o=t[n]-r,s+=o*(e[n]-a),l+=o*o;return s/l}function Z(e,t){var n,i,o,r=F(t),a=F(e),s=0,l=0;for(n=0,i=e.length;n<i;n++)o=t[n]-r,s+=o*(e[n]-a),l+=o*o;return a-s*r/l}function J(e,t){var n,i,o,r,a,s,l,d,c;for(Ye(e,t),n=F(e),i=F(t),o=0,r=0,a=0,s=0,l=e.length;s<l;s++)d=e[s]-n,c=t[s]-i,o+=d*c,r+=d*d,a+=c*c;return o/Math.sqrt(r*a)}function ee(e,t){var n=J(e,t);return n*n}function te(e,t){var n,i,o,r=t.length,a=F(t),s=F(e),l=0,d=0,c=0;for(n=0;n<r;n++)i=t[n]-a,o=e[n]-s,l+=o*o,d+=i*o,c+=i*i;return Math.sqrt((l-d*d/c)/(r-2))}function ne(e,t,n){var i,o,r,a,s,l,d=F(n),c=F(t),u=0,h=0;for(i=0,o=n.length;i<o;i++)r=n[i]-d,a=t[i]-c,u+=r*a,h+=r*r;if(0===h)throw new et("N/A");return s=u/h,l=c-s*d,l+s*e}function ie(e){var t,n=e.height,i=0;for(t=0;t<n;t++)i+=e.data[t][0];return i/n}function oe(e,t){var n,i,o=e.height,r=0;for(n=0;n<o;n++)i=e.data[n][0]-t,r+=i*i;return r}function re(e,t,n,i){var o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y=0;for(t||(t=e.map(function(){return++y})),n&&(t=t.clone(),t.eachRow(function(e){t.data[e].unshift(1)}),++t.width),o=t.transpose(),r=o.multiply(t).inverse().multiply(o).multiply(e),a=[],y=r.height-1;y>=0;y--)a.push(r.data[y][0]);if(n||a.push(0),!i)return this.asMatrix([a]);for(s=t.multiply(r),l=e.adds(s,!0),d=n?ie(s):0,c=oe(s,d),u=n?ie(l):0,h=oe(l,u),p=[],p.push(c,h),f=c/(c+h),m=e.height-t.width,g=Math.sqrt(h/m),v=[],v.push(f,g),_=n?c/(t.width-1)/(h/m):f/t.width/((1-f)/m),b=[],b.push(_,m),w=o.multiply(t).inverse(),k=[],y=w.height-1;y>=0;y--)k.push(Math.sqrt(w.data[y][y]*h/m));return this.asMatrix([a,k,v,b,p])}function ae(e,t,n,i){return re.call(this,e.map(Math.log),t,n,i).map(Math.exp)}function se(e,t,n,i){var o,r,a=0;return t||(t=e.map(function(){return++a})),i&&(t=t.clone(),t.eachRow(function(e){t.data[e].unshift(1)}),++t.width),o=t.transpose(),r=o.multiply(t).inverse().multiply(o).multiply(e),n?i&&(n=n.clone(),n.eachRow(function(e){n.data[e].unshift(1)}),++n.width):n=t,n.multiply(r)}function le(e,t,n,i){return se.call(this,e.map(Math.log),t,n,i).map(Math.exp)}function de(e,t,n,i){var o,r,a,s,l,d=n||20,c=i||1e-7,u=t;for(o=1;o<=d;o++)if(r=e(u),a=r[0],s=r[1],l=a/s,u-=l,Math.abs(l)<c)return u;return new et("NUM")}function ce(e,t,n,i,o){var r=Math.pow(1+e,t),a=e?(r-1)/e:t;return-(i*r+n*a*(1+e*o))}function ue(e,t,n,i,o){if(!e)return-i-n*t;var r=Math.pow(1+e,t);return-(i+n*(r-1)/e*(1+e*o))/r}function he(e,t,n,i,o){if(!e)return-(i+n)/t;var r=Math.pow(1+e,t);return-e*(i+n*r)/((1+e*o)*(r-1))}function pe(e,t,n,i,o){if(!e)return-(i+n)/t;var r=t*(1+e*o);return Math.log((r-i*e)/(r+n*e))/Math.log(1+e)}function fe(e,t,n,i,o,r){function a(r){var a=Math.pow(1+r,e-1),s=a*(1+r);return[n*s+t*(1/r+o)*(s-1)+i,e*n*a+t*(-(s-1)/(r*r)+(1/r+o)*e*a)]}return de(a,r)}function me(e,t,n,i,o,r){var a,s;return 1==r&&1==t?0:(a=he(e,n,i,o,r),s=ce(e,t-1,a,i,r)*e,r?s/(1+e):s)}function ge(e,t,n,i,o,r){var a=he(e,n,i,o,r);return a-me(e,t,n,i,o,r)}function ve(e,t,n,i,o,r){var a,s,l,d,c,u;return 1==r&&(i--,o--),a=Math.pow(1+e,t),s=Math.pow(1+e,i-1),l=Math.pow(1+e,o),d=e*n*a/(a-1),c=s*n-(s-1)/e*d,u=l*n-(l-1)/e*d,u-c}function _e(e,t,n,i,o,r){var a,s=0;for(a=i;a<=o;a++)s+=me(e,a,t,n,0,r);return s}function be(e,t){var n,i,o=0;for(n=0,i=t.length;n<i;n++)o+=t[n]*Math.pow(1+e,-n-1);return o}function we(e,t){function n(t){var n,i,o=0,r=0;for(n=0,i=e.length;n<i;n++)o+=e[n]*Math.pow(1+t,-n-1),r+=-n*e[n]*Math.pow(1+t,-n-2);return[o,r]}return de(n,t)}function ke(e,t){return Math.pow(1+e/t,t)-1}function ye(e,t){return t*(Math.pow(e+1,1/t)-1)}function xe(e,t,n){var i,o,r=0;for(i=0,o=t.length;i<o;i++)r+=t[i]*Math.pow(1+e,(n[0]-n[i])/365);return r}function Ce(e,t,n){function i(n){var i,o,r,a=e[0],s=0;for(i=1,o=e.length;i<o;i++)r=(t[0]-t[i])/365,a+=e[i]*Math.pow(1+n,r),s+=r*e[i]*Math.pow(1+n,r-1);return[a,s]}return de(i,n)}function Se(e,t,n,i){var o=-i*e;return o*(1-t/n)}function Te(e,t,n,i,o){var r,a,s=1-Math.pow(t/e,1/n);if(s=Math.floor(1e3*s+.5)/1e3,r=e*s*o/12,1==i)return r;for(a=1;a<n;a++){if(a==i-1)return(e-r)*s;r+=(e-r)*s}return(e-r)*s*(12-o)/12}function De(e,t,n,i,o){var r=o/n,a=-e*(Math.pow(1-r,i-1)-1),s=(e-a)*r;return s=Math.min(s,Math.max(0,e-a-t))}function Ae(e,t,n){return(e-t)/n}function Ee(e,t,n,i){return(e-t)*(n-i+1)*2/(n*(n+1))}function Ie(e,t,n,i,o,r,a){function s(e,n){var i,o,r;return o=1==p?1==n?e:0:e*Math.pow(1-p,n-1),r=e*Math.pow(1-p,n),i=r<t?o-t:o-r,i<0?0:i}function l(e,n,i){var o,r,a,l=e-t,d=Math.ceil(i),c=0,u=0,h=!1;for(r=1;r<=d;r++)h?o=c:(a=s(e,r),c=l/(n-r+1),c>a?(o=c,h=!0):(o=a,l-=a)),r==d&&(o*=i+1-d),u+=o;return u}var d,c,u,h,p=r>=n?1:r/n,f=Math.floor(i),m=Math.ceil(o),g=0;if(a)for(d=f+1;d<=m;d++)c=s(e,d),d==f+1?c*=Math.min(o,f+1)-i:d==m&&(c*=o+1-m),g+=c;else u=n,i!=Math.floor(i)&&r>1&&i>=n/2&&(h=i-n/2,i=n/2,o-=h,u+=1),e-=l(e,u,i),g=l(e,n-i,o-i);return g}function Me(e,t){var n=nt(e),i=n.month+t,o=n.year+Math.floor(i/12);return i%=12,i<0&&(i+=12),n=Math.min(n.date,ot(o,i)),tt(o,i,n)}function Re(e,t,n){return 1==n||2==n||3==n?t-e:rt(e,t,n)}function Fe(e,t,n){var i,o,r,a=nt(e),s=nt(t),l=s.year-a.year;l>0&&(l=(l-1)*n),r=12/n;do l++,i=Me(t,-l*r);while(e<i);return l--,o=Me(t,-l*r),[i,o]}function Pe(e,t,n){var i,o,r,a=nt(t),s=nt(e),l=a.year-s.year;for(l>0&&(l=(l-1)*n),i=e,r=12/n;t>i;)o=i,l++,i=Me(e,l*r);return[o,i]}function ze(e,t,n,i){var o=Fe(e,t,n)[0];return Re(o,e,i)}function Be(e,t,n,i){if(1==i){var o=Fe(e,t,n);return Re(o[0],o[1],1)}return 3==i?365/n:360/n}function Le(e,t,n,i){var o=Fe(e,t,n)[1];return Re(e,o,i)}function He(e,t,n){return Fe(e,t,n)[0]}function Ne(e,t,n){return Fe(e,t,n)[1]}function Oe(e,t,n){var i=nt(e),o=nt(t),r=12*(o.year-i.year)+o.month-i.month;return 1+(r*n/12|0)}function Ve(e,t){return 3==t?365:1==t?it(e)?366:365:360}function We(e,t,n,i,o){var r=Ve(nt(t).year,o);return n*i*Re(e,t,o)/r}function Ue(e,t,n,i,o,r,a,s){function l(e,t){return(t-e)*r/v|0}var d,c,u,h,p,f,m=0,g=o*i/r,v=a%2===0?360:365;return n<=t?(d=Fe(n,t,r),c=d[0],u=d[1],c<=e?g*Re(e,n,a)/Re(c,u,a):(d=Fe(e,c,r),h=d[0],p=d[1],f=l(p,n),g*(f+Re(e,p,a)/Re(h,p,a)+(n<u?Re(c,n,a)/Re(c,u,a):0)))):(d=Pe(t,n,r),c=d[0],u=d[1],f=l(t,n),m=u==n?g*f:g*(f+Re(c,n,a)/Re(c,u,a)),s?(d=Fe(e,t,r),c=d[0],u=d[1],f=l(e,t),m+=g*(f+Re(e,u,a)/Re(c,u,a))):m)}function je(e,t,n,i,o){var r=o%2===0?360:it(nt(e).year)?366:365;return(i-n)/i*r/Re(e,t,o)}function qe(e,t,n,i,o){var r=o%2===0?360:it(nt(e).year)?366:365;return(i-n)/n*r/Re(e,t,o)}function Ge(e,t,n,i,o){var r=o%2===0?360:it(nt(e).year)?366:365;return n/(1-i*Re(e,t,o)/r)}function $e(e,t,n,i,o,r,a){var s=1+((t-e)*r/(a%2===0?360:365)|0),l=Fe(e,t,r),d=l[0],c=l[1],u=Re(d,e,a),h=Re(e,c,a),p=Re(d,c,a),f=100*n/r,m=i/r,g=h/p;return 1==s?(o+f)/(1+g*m)-u/p*f:o/Math.pow(1+m,s-1+g)+f*Math.pow(1+m,1-s-g)*(Math.pow(1+m,s)-1)/m-u/p*f}function Ke(e,t,n,i,o){var r=Re(e,t,o),a=Ve(nt(t).year,o);return i-n*i*r/a}function Ye(e,t){for(var n=e.length;--n>=0;)"number"==typeof e[n]&&"number"==typeof t[n]||(e.splice(n,1),t.splice(n,1))}var Qe,Xe,Ze,Je,et,tt,nt,it,ot,rt,at,st,lt,dt,ct;kendo.support.browser.msie&&kendo.support.browser.version<9||(Qe=kendo.spreadsheet,Xe=Qe.calc,Ze=Xe.runtime,Je=Ze.defineFunction,et=Ze.CalcError,tt=Ze.packDate,nt=Ze.unpackDate,it=Ze.isLeapYear,ot=Ze.daysInMonth,rt=Ze._days_360,Je("ERF",function(t,n){return null==n?e(t):e(n)-e(t)}).args([["lower_limit","number"],["upper_limit",["or","number","null"]]]),Je("ERFC",t).args([["x","number"]]),Je("GAMMALN",n).args([["x","number++"]]),Je("GAMMA",i).args([["x","number"]]),Je("GAMMA.DIST",d).args([["x","number+"],["alpha","number++"],["beta","number++"],["cumulative","logical"]]),Je("GAMMA.INV",c).args([["p",["and","number",["[between]",0,1]]],["alpha","number++"],["beta","number++"]]),Je("NORM.S.DIST",u).args([["z","number"],["cumulative","logical"]]),Je("NORM.S.INV",h).args([["p",["and","number",["[between]",0,1]]]]),Je("NORM.DIST",p).args([["x","number"],["mean","number"],["stddev","number++"],["cumulative","logical"]]),Je("NORM.INV",f).args([["p",["and","number",["[between]",0,1]]],["mean","number"],["stddev","number++"]]),Je("BETADIST",b).args([["x","number"],["alpha","number++"],["beta","number++"],["A",["or","number",["null",0]]],["B",["or","number",["null",1]]],["?",["assert","$x >= $A","NUM"]],["?",["assert","$x <= $B","NUM"]],["?",["assert","$A < $B","NUM"]]]),Je("BETA.DIST",w).args([["x","number"],["alpha","number++"],["beta","number++"],["cumulative","logical"],["A",["or","number",["null",0]]],["B",["or","number",["null",1]]],["?",["assert","$x >= $A","NUM"]],["?",["assert","$x <= $B","NUM"]],["?",["assert","$A < $B","NUM"]]]),Je("BETA.INV",k).args([["p",["and","number",["[between]",0,1]]],["alpha","number++"],["beta","number++"],["A",["or","number",["null",0]]],["B",["or","number",["null",1]]]]),Je("CHISQ.DIST",y).args([["x","number+"],["deg_freedom","integer++"],["cumulative","logical"]]),Je("CHISQ.DIST.RT",x).args([["x","number+"],["deg_freedom","integer++"]]),Je("CHISQ.INV",C).args([["p",["and","number",["[between]",0,1]]],["deg_freedom","integer++"]]),Je("CHISQ.INV.RT",S).args([["p",["and","number",["[between]",0,1]]],["deg_freedom","integer++"]]),Je("CHISQ.TEST",function(e,t){return T(e.data,t.data)}).args([["actual_range","matrix"],["expected_range","matrix"],["?",["assert","$actual_range.width == $expected_range.width"]],["?",["assert","$actual_range.height == $expected_range.height"]]]),Je("EXPON.DIST",D).args([["x","number+"],["lambda","number++"],["cumulative","logical"]]),Je("POISSON.DIST",A).args([["x","integer+"],["mean","number+"],["cumulative","logical"]]),Je("F.DIST",E).args([["x","number+"],["deg_freedom1","integer++"],["deg_freedom2","integer++"],["cumulative","logical"]]),Je("F.DIST.RT",I).args([["x","number+"],["deg_freedom1","integer++"],["deg_freedom2","integer++"]]),Je("F.INV",R).args([["p",["and","number",["[between]",0,1]]],["deg_freedom1","integer++"],["deg_freedom2","integer++"]]),Je("F.INV.RT",M).args([["p",["and","number",["[between]",0,1]]],["deg_freedom1","integer++"],["deg_freedom2","integer++"]]),Je("F.TEST",z).args([["array1",["collect","number",1]],["array2",["collect","number",1]],["?",["assert","$array1.length >= 2","DIV/0"]],["?",["assert","$array2.length >= 2","DIV/0"]]]),Je("FISHER",B).args([["x",["and","number",["(between)",-1,1]]]]),Je("FISHERINV",L).args([["y","number"]]),Je("T.DIST",H).args([["x","number"],["deg_freedom","integer++"],["cumulative","logical"]]),Je("T.DIST.RT",N).args([["x","number"],["deg_freedom","integer++"]]),Je("T.DIST.2T",O).args([["x","number+"],["deg_freedom","integer++"]]),Je("T.INV",V).args([["p",["and","number",["(between]",0,1]]],["deg_freedom","integer++"]]),Je("T.INV.2T",W).args([["p",["and","number",["(between]",0,1]]],["deg_freedom","integer++"]]),Je("T.TEST",U).args([["array1",["collect","number",1]],["array2",["collect","number",1]],["tails",["and","integer",["values",1,2]]],["type",["and","integer",["values",1,2,3]]],["?",["assert","$type != 1 || $array1.length == $array2.length","N/A"]],["?",["assert","$array1.length >= 2","DIV/0"]],["?",["assert","$array2.length >= 2","DIV/0"]]]),Je("CONFIDENCE.T",j).args([["alpha",["and","number",["(between)",0,1]]],["standard_dev","number++"],["size",["and","integer++",["assert","$size != 1","DIV/0"]]]]),Je("CONFIDENCE.NORM",q).args([["alpha",["and","number",["(between)",0,1]]],["standard_dev","number++"],["size",["and","integer++"]]]),Je("GAUSS",G).args([["z","number"]]),Je("PHI",$).args([["x","number"]]),Je("LOGNORM.DIST",K).args([["x","number++"],["mean","number"],["standard_dev","number++"],["cumulative","logical"]]),Je("LOGNORM.INV",Y).args([["probability",["and","number",["(between)",0,1]]],["mean","number"],["standard_dev","number++"]]),Je("PROB",Q).args([["x_range",["collect","number",1]],["prob_range",["collect","number",1]],["lower_limit","number"],["upper_limit",["or","number",["null","$lower_limit"]]],["?",["assert","$prob_range.length == $x_range.length","N/A"]]]),Je("SLOPE",X).args([["known_y",["collect","number",1]],["known_x",["collect","number",1]],["?",["assert","$known_x.length == $known_y.length","N/A"]],["?",["assert","$known_x.length > 0 && $known_y.length > 0","N/A"]]]),Je("INTERCEPT",Z).args([["known_y",["collect","number",1]],["known_x",["collect","number",1]],["?",["assert","$known_x.length == $known_y.length","N/A"]],["?",["assert","$known_x.length > 0 && $known_y.length > 0","N/A"]]]),Je("PEARSON",J).args([["array1",["collect!","anything",1]],["array2",["collect!","anything",1]],["?",["assert","$array2.length == $array1.length","N/A"]],["?",["assert","$array2.length > 0 && $array1.length > 0","N/A"]]]),Je("RSQ",ee).args([["known_y",["collect","number",1]],["known_x",["collect","number",1]],["?",["assert","$known_x.length == $known_y.length","N/A"]],["?",["assert","$known_x.length > 0 && $known_y.length > 0","N/A"]],["?",["assert","$known_x.length != 1 && $known_y.length != 1","N/A"]]]),Je("STEYX",te).args([["known_y",["collect","number",1]],["known_x",["collect","number",1]],["?",["assert","$known_x.length == $known_y.length","N/A"]],["?",["assert","$known_x.length >= 3 && $known_y.length >= 3","DIV/0"]]]),Je("FORECAST",ne).args([["x","number"],["known_y",["collect","number",1]],["known_x",["collect","number",1]],["?",["assert","$known_x.length == $known_y.length","N/A"]],["?",["assert","$known_x.length > 0 && $known_y.length > 0","N/A"]]]),Je("LINEST",re).args([["known_y","matrix"],["known_x",["or","matrix","null"]],["const",["or","logical",["null",!0]]],["stats",["or","logical",["null",!1]]]]),Je("LOGEST",ae).args([["known_y","matrix"],["known_x",["or","matrix","null"]],["const",["or","logical",["null",!0]]],["stats",["or","logical",["null",!1]]]]),Je("TREND",se).args([["known_y","matrix"],["known_x",["or","matrix","null"]],["new_x",["or","matrix","null"]],["const",["or","logical",["null",!0]]]]),Je("GROWTH",le).args([["known_y","matrix"],["known_x",["or","matrix","null"]],["new_x",["or","matrix","null"]],["const",["or","logical",["null",!0]]]]),Je("FV",ce).args([["rate","number"],["nper","number"],["pmt",["or","number",["null",0]]],["pv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]],["?",["assert","$pmt || $pv"]]]),Je("PV",ue).args([["rate","number"],["nper","number"],["pmt",["or","number",["null",0]]],["fv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]]]),Je("PMT",he).args([["rate","number"],["nper","number"],["pmt","number"],["fv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]]]),Je("NPER",pe).args([["rate","number"],["pmt","number"],["pv","number"],["fv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]]]),Je("RATE",fe).args([["nper","number"],["pmt",["or","number",["null",0]]],["pv","number"],["fv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]],["guess",["or","number++",["null",.01]]],["?",["assert","$pmt || $fv"]]]),Je("IPMT",me).args([["rate","number"],["per","number++"],["nper","number++"],["pv","number"],["fv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]],["?",["assert","$per >= 1 && $per <= $nper"]]]),Je("PPMT",ge).args([["rate","number"],["per","number++"],["nper","number++"],["pv","number"],["fv",["or","number",["null",0]]],["type",["or",["values",0,1],["null",0]]],["?",["assert","$per >= 1 && $per <= $nper"]]]),Je("CUMPRINC",ve).args([["rate","number++"],["nper","number++"],["pv","number++"],["start_period","number++"],["end_period","number++"],["type",["or",["values",0,1],["null",0]]],["?",["assert","$end_period >= $start_period","NUM"]]]),Je("CUMIPMT",_e).args([["rate","number++"],["nper","number++"],["pv","number++"],["start_period","number++"],["end_period","number++"],["type",["or",["values",0,1],["null",0]]],["?",["assert","$end_period >= $start_period","NUM"]]]),Je("NPV",be).args([["rate","number"],["values",["collect","number"]],["?",["assert","$values.length > 0","N/A"]]]),Je("IRR",we).args([["values",["collect","number",1]],["guess",["or","number",["null",.1]]]]),Je("EFFECT",ke).args([["nominal_rate","number++"],["npery","integer++"]]),Je("NOMINAL",ye).args([["effect_rate","number++"],["npery","integer++"]]),Je("XNPV",xe).args([["rate","number"],["values",["collect","number",1]],["dates",["collect","date",1]],["?",["assert","$values.length == $dates.length","NUM"]]]),Je("XIRR",Ce).args([["values",["collect","number",1]],["dates",["collect","date",1]],["guess",["or","number",["null",.1]]],["?",["assert","$values.length == $dates.length","NUM"]]]),Je("ISPMT",Se).args([["rate","number"],["per","number++"],["nper","number++"],["pv","number"],["?",["assert","$per >= 1 && $per <= $nper"]]]),Je("DB",Te).args([["cost","number"],["salvage","number"],["life","number++"],["period","number++"],["month",["or","number",["null",12]]]]),Je("DDB",De).args([["cost","number"],["salvage","number"],["life","number++"],["period","number++"],["factor",["or","number",["null",2]]]]),Je("SLN",Ae).args([["cost","number"],["salvage","number"],["life","number++"]]),Je("SYD",Ee).args([["cost","number"],["salvage","number"],["life","number++"],["per","number++"]]),Je("VDB",Ie).args([["cost","number+"],["salvage","number+"],["life","number++"],["start_period","number+"],["end_period","number+"],["factor",["or","number+",["null",2]]],["no_switch",["or","logical",["null",!1]]],["?",["assert","$end_period >= $start_period","NUM"]]]),at=[["settlement","date"],["maturity","date"],["frequency",["and","integer",["values",1,2,4]]],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$settlement < $maturity","NUM"]]],Je("COUPDAYBS",ze).args(at),Je("COUPDAYS",Be).args(at),Je("COUPDAYSNC",Le).args(at),Je("COUPPCD",He).args(at),Je("COUPNCD",Ne).args(at),Je("COUPNUM",Oe).args(at),Je("ACCRINTM",We).args([["issue","date"],["settlement","date"],["rate","number++"],["par",["or",["null",1e3],"number++"]],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$issue < $settlement","NUM"]]]),Je("ACCRINT",Ue).args([["issue","date"],["first_interest","date"],["settlement","date"],["rate","number++"],["par",["or",["null",1e3],"number++"]],["frequency",["and","integer",["values",1,2,4]]],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["calc_method",["or","logical",["null",!0]]],["?",["assert","$issue < $settlement","NUM"]]]),Je("DISC",je).args([["settlement","date"],["maturity","date"],["pr","number++"],["redemption","number++"],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$settlement < $maturity","NUM"]]]),Je("INTRATE",qe).args([["settlement","date"],["maturity","date"],["investment","number++"],["redemption","number++"],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$settlement < $maturity","NUM"]]]),Je("RECEIVED",Ge).args([["settlement","date"],["maturity","date"],["investment","number++"],["discount","number++"],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$settlement < $maturity","NUM"]]]),Je("PRICE",$e).args([["settlement","date"],["maturity","date"],["rate","number++"],["yld","number++"],["redemption","number++"],["frequency",["and","integer",["values",1,2,4]]],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$settlement < $maturity","NUM"]]]),Je("PRICEDISC",Ke).args([["settlement","date"],["maturity","date"],["discount","number++"],["redemption","number++"],["basis",["or",["null",0],["and","integer",["values",0,1,2,3,4]]]],["?",["assert","$settlement < $maturity","NUM"]]]),st=300,lt=2.2204e-16,dt=1e-30,ct=Math.abs)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/borderpalette.min",["kendo.core.min","kendo.colorpicker.min","kendo.popup.min"],e)}(function(){!function(e){function t(e){return function(t){return t.preventDefault(),e.apply(this,arguments)}}var n,i,o,r,a,s;e.support.browser.msie&&e.support.browser.version<9||(n=e.jQuery,i=["allBorders","insideBorders","insideHorizontalBorders","insideVerticalBorders","outsideBorders","leftBorder","topBorder","rightBorder","bottomBorder","noBorders"],o=e.spreadsheet.messages.borderPalette={allBorders:"All borders",insideBorders:"Inside borders",insideHorizontalBorders:"Inside horizontal borders",insideVerticalBorders:"Inside vertical borders",outsideBorders:"Outside borders",leftBorder:"Left border",topBorder:"Top border",rightBorder:"Right border",bottomBorder:"Bottom border",noBorders:"No border"},r=e.spreadsheet.messages.colorPicker={reset:"Reset color",customColor:"Custom color...",apply:"Apply",cancel:"Cancel"},a=e.ui.Widget.extend({init:function(n,i){e.ui.Widget.call(this,n,i),this.element=n,this.color=i.color,this._resetButton(),this._colorPalette(),this._customColorPalette(),this._customColorButton(),this.resetButton.on("click",t(this.resetColor.bind(this))),this.customColorButton.on("click",t(this.customColor.bind(this)))},options:{name:"ColorChooser"},events:["change"],destroy:function(){e.unbind(this.dialog.element.find(".k-action-buttons")),this.dialog.destroy(),this.colorPalette.destroy(),this.resetButton.off("click"),this.customColorButton.off("click")},value:function(e){return void 0===e?this.color:(this.color=e,this.customColorButton.find(".k-icon").css("background-color",this.color),this.colorPalette.value(null),this.flatColorPicker.value(this.color),void 0)},_change:function(e){this.color=e,this.trigger("change",{value:e})},_colorPalette:function(){var e=n("<div />",{"class":"k-spreadsheet-color-palette"}),t=this.colorPalette=n("<div />").kendoColorPalette({palette:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],value:this.color,change:function(e){this.customColorButton.find(".k-icon").css("background-color","transparent"),this.flatColorPicker.value(null),this._change(e.value)}.bind(this)}).data("kendoColorPalette");e.append(t.wrapper).appendTo(this.element)},_customColorPalette:function(){var t,i,o=n("<div />",{"class":"k-spreadsheet-window",html:"<div></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: apply'>"+r.apply+"</button><button class='k-button' data-bind='click: close'>"+r.cancel+"</button></div>"}),a=this.dialog=o.appendTo(document.body).kendoWindow({animation:!1,scrollable:!1,resizable:!1,maximizable:!1,modal:!0,visible:!1,width:"auto",open:function(){this.center()}}).data("kendoWindow");a.one("activate",function(){this.element.find("[data-role=flatcolorpicker]").data("kendoFlatColorPicker")._hueSlider.resize()}),t=this.flatColorPicker=a.element.children().first().kendoFlatColorPicker().data("kendoFlatColorPicker"),i=e.observable({apply:function(){this.customColorButton.find(".k-icon").css("background-color",t.value()),this.colorPalette.value(null),this._change(t.value()),a.close()}.bind(this),close:function(){t.value(null),a.close()}}),e.bind(a.element.find(".k-action-buttons"),i)},_resetButton:function(){this.resetButton=n("<a role='button' class='k-button k-reset-color' href='#'><span class='k-icon k-i-reset-color'></span>"+r.reset+"</a>").appendTo(this.element)},_customColorButton:function(){this.customColorButton=n("<a role='button' class='k-button k-custom-color' href='#'><span class='k-icon'></span>"+r.customColor+"</a>").appendTo(this.element)},resetColor:function(){this.colorPalette.value(null),this.flatColorPicker.value(null),this._change(null)},customColor:function(){this.dialog.open()}}),s=e.ui.Widget.extend({init:function(n,i){e.ui.Widget.call(this,n,i),
this.element=n,this.color="#000",this.element.addClass("k-spreadsheet-border-palette"),this._borderTypePalette(),this._borderColorPalette(),this.element.on("click",".k-spreadsheet-border-type-palette .k-button",t(this._click.bind(this)))},options:{name:"BorderPalette"},events:["change"],destroy:function(){this.colorChooser.destroy(),this.element.off("click")},_borderTypePalette:function(){var t=o,r=i.map(function(n){return'<a role="button" title="'+t[n]+'" aria-label="'+t[n]+'" href="#" data-border-type="'+n+'" class="k-button k-button-icon"><span class="k-icon k-i-'+e.toHyphens(n)+'"></span></a>'}).join(""),a=n("<div />",{"class":"k-spreadsheet-border-type-palette",html:r});a.appendTo(this.element)},_borderColorPalette:function(){var e=n("<div />",{"class":"k-spreadsheet-border-color-palette"});e.appendTo(this.element),this.colorChooser=new a(e,{color:this.color,change:this._colorChange.bind(this)})},_click:function(e){this.type=n(e.currentTarget).data("borderType"),this.trigger("change",{type:this.type,color:this.color})},_colorChange:function(e){this.color=e.value,this.type&&this.trigger("change",{type:this.type,color:this.color})}}),e.spreadsheet.ColorChooser=a,e.spreadsheet.BorderPalette=s)}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/toolbar.min",["kendo.toolbar.min","kendo.colorpicker.min","kendo.combobox.min","kendo.dropdownlist.min","kendo.popup.min","spreadsheet/borderpalette.min"],e)}(function(){!function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P,z;e.support.browser.msie&&e.support.browser.version<9||(t=e.jQuery,n=e.ui.ToolBar,i=e.spreadsheet.messages.toolbar={addColumnLeft:"Add column left",addColumnRight:"Add column right",addRowAbove:"Add row above",addRowBelow:"Add row below",alignment:"Alignment",alignmentButtons:{justtifyLeft:"Align left",justifyCenter:"Center",justifyRight:"Align right",justifyFull:"Justify",alignTop:"Align top",alignMiddle:"Align middle",alignBottom:"Align bottom"},backgroundColor:"Background",bold:"Bold",borders:"Borders",copy:"Copy",cut:"Cut",deleteColumn:"Delete column",deleteRow:"Delete row",filter:"Filter",fontFamily:"Font",fontSize:"Font size",format:"Custom format...",formatTypes:{automatic:"Automatic",text:"Text",number:"Number",percent:"Percent",financial:"Financial",currency:"Currency",date:"Date",time:"Time",dateTime:"Date time",duration:"Duration",moreFormats:"More formats..."},formatDecreaseDecimal:"Decrease decimal",formatIncreaseDecimal:"Increase decimal",freeze:"Freeze panes",freezeButtons:{freezePanes:"Freeze panes",freezeRows:"Freeze rows",freezeColumns:"Freeze columns",unfreeze:"Unfreeze panes"},insertComment:"Insert comment",insertImage:"Insert image",italic:"Italic",merge:"Merge cells",mergeButtons:{mergeCells:"Merge all",mergeHorizontally:"Merge horizontally",mergeVertically:"Merge vertically",unmerge:"Unmerge"},open:"Open...",paste:"Paste",quickAccess:{redo:"Redo",undo:"Undo"},exportAs:"Export...",toggleGridlines:"Toggle gridlines",sort:"Sort",sortButtons:{sortRangeAsc:"Sort range A to Z",sortRangeDesc:"Sort range Z to A"},textColor:"Text Color",textWrap:"Wrap text",underline:"Underline",validation:"Data validation...",hyperlink:"Link"},o={home:["open","exportAs",["cut","copy","paste"],["bold","italic","underline"],"hyperlink","insertComment","insertImage","backgroundColor","textColor","borders","fontSize","fontFamily","alignment","textWrap",["formatDecreaseDecimal","formatIncreaseDecimal"],"format","merge","freeze","filter","toggleGridlines"],insert:[["addColumnLeft","addColumnRight","addRowBelow","addRowAbove"],["deleteColumn","deleteRow"]],data:["sort","filter","validation"]},r={open:{type:"open",overflow:"never",iconClass:"file-excel"},exportAs:{type:"exportAsDialog",dialogName:"exportAs",overflow:"never",text:"",iconClass:"file-excel"},bold:{type:"button",command:"PropertyChangeCommand",property:"bold",value:!0,iconClass:"bold",togglable:!0},italic:{type:"button",command:"PropertyChangeCommand",property:"italic",value:!0,iconClass:"italic",togglable:!0},underline:{type:"button",command:"PropertyChangeCommand",property:"underline",value:!0,iconClass:"underline",togglable:!0},formatDecreaseDecimal:{type:"button",command:"AdjustDecimalsCommand",value:-1,iconClass:"decimal-decrease"},formatIncreaseDecimal:{type:"button",command:"AdjustDecimalsCommand",value:1,iconClass:"decimal-increase"},textWrap:{type:"button",command:"TextWrapCommand",property:"wrap",value:!0,iconClass:"text-wrap",togglable:!0},cut:{type:"button",command:"ToolbarCutCommand",iconClass:"cut"},copy:{type:"button",command:"ToolbarCopyCommand",iconClass:"copy"},paste:{type:"button",command:"ToolbarPasteCommand",iconClass:"paste"},separator:{type:"separator"},alignment:{type:"alignment",iconClass:"align-left"},backgroundColor:{type:"colorPicker",property:"background",iconClass:"paint"},textColor:{type:"colorPicker",property:"color",iconClass:"foreground-color"},fontFamily:{type:"fontFamily",property:"fontFamily",iconClass:"font-family"},fontSize:{type:"fontSize",property:"fontSize",iconClass:"font-size"},format:{type:"format",property:"format",iconClass:"custom-format"},filter:{type:"filter",property:"hasFilter",iconClass:"filter"},merge:{type:"merge",iconClass:"cells-merge"},freeze:{type:"freeze",iconClass:"pane-freeze"},borders:{type:"borders",iconClass:"borders-all"},formatCells:{type:"dialog",dialogName:"formatCells",overflow:"never"},hyperlink:{type:"dialog",dialogName:"hyperlink",iconClass:"link-horizontal",overflow:"never",text:""},toggleGridlines:{type:"button",command:"GridLinesChangeCommand",property:"gridLines",value:!0,iconClass:"border-no",togglable:!0},insertComment:{type:"dialog",dialogName:"insertComment",property:"comment",togglable:!0,overflow:"never",iconClass:"comment",text:""},insertImage:{type:"dialog",dialogName:"insertImage",overflow:"never",iconClass:"image",text:""},addColumnLeft:{type:"button",command:"AddColumnCommand",value:"left",iconClass:"table-column-insert-left"},addColumnRight:{type:"button",command:"AddColumnCommand",value:"right",iconClass:"table-column-insert-right"},addRowBelow:{type:"button",command:"AddRowCommand",value:"below",iconClass:"table-row-insert-below"},addRowAbove:{type:"button",command:"AddRowCommand",value:"above",iconClass:"table-row-insert-above"},deleteColumn:{type:"button",command:"DeleteColumnCommand",iconClass:"table-column-delete"},deleteRow:{type:"button",command:"DeleteRowCommand",iconClass:"table-row-delete"},sort:{type:"sort",iconClass:"sort-desc"},validation:{type:"dialog",dialogName:"validation",iconClass:"exception",overflow:"never"}},a=n.extend({init:function(e,i){var o,r;i.items=this._expandTools(i.tools||a.prototype.options.tools[i.toolbarName]),n.fn.init.call(this,e,i),o=this._click.bind(this),this.element.addClass("k-spreadsheet-toolbar"),this._addSeparators(this.element),r=this,this.element.on("keydown",function(e){var n;9===e.keyCode&&(n=r._nextTool(e.shiftKey?-1:1),n&&(document.activeElement.blur(),t(n).is(".k-upload-button")&&t(n).addClass("k-state-focused"),t(n).find("input").length?t(n).find("input").focus():n.focus(),e.preventDefault()))}),this.element.on("focusout",function(){t(this).find(".k-toolbar-first-visible").removeClass("k-state-focused")}),this.bind({click:o,toggle:o})},_nextTool:function(e){var n=this,i=n.element.find(".k-widget, .k-button, .k-button-group > a"),o=i.index(t(document.activeElement).closest(".k-widget, .k-button, .k-button-group > a"));if(o>0)return i[o+e]},_addSeparators:function(e){var t=e.children(".k-widget, a.k-button, .k-button-group");t.before("<span class='k-separator'></span>")},_expandTools:function(n){function o(n){var a=t.isPlainObject(n)?n:r[n]||{},s="k-icon k-i-"+a.iconClass,l=a.type,d={button:{showText:"overflow"},colorPicker:{toolIcon:s,spriteCssClass:s},borders:{spriteCssClass:s},alignment:{spriteCssClass:s},merge:{spriteCssClass:s},freeze:{spriteCssClass:s}},c=e.deepExtend({name:a.name||n,text:i[a.name||n],icon:a.iconClass,attributes:{title:i[a.name||n],"aria-label":i[a.name||n]}},d[l],a);return"splitButton"==l&&(c.menuButtons=c.menuButtons.map(o)),c.attributes["data-tool"]=n,a.property&&(c.attributes["data-property"]=a.property),c}return n.reduce(function(e,n){return e.push(t.isArray(n)?{type:"buttonGroup",buttons:n.map(o)}:o.call(this,n)),e},[])},_click:function(e){var t,n=e.target.attr("data-tool"),i=r[n]||{},o=i.command;o&&(t={command:o,options:{property:i.property||null,value:i.value||null}},"boolean"==typeof t.options.value&&(t.options.value=!!e.checked||null),this.action(t))},events:["click","toggle","open","close","overflowOpen","overflowClose","action","dialog"],options:{name:"SpreadsheetToolBar",resizable:!0,tools:o},action:function(e){this.trigger("action",e)},dialog:function(e){this.trigger("dialog",e)},refresh:function(t){function n(e,t){var n,i=e.toolbar,o=e.overflow,r=i&&i.options.togglable||o&&o.options.togglable;r&&(n=!1,"boolean"==typeof t?n=t:"string"==typeof t&&(n=i.options.hasOwnProperty("value")?i.options.value===t:null!=t),i.toggle(n),o&&o.toggle(n))}function i(e,t){var n=e.toolbar,i=e.overflow;n&&n.update&&n.update(t),i&&i.update&&i.update(t)}var o,r,a,s,l=t,d=this._tools();for(o=0;o<d.length;o++)r=d[o].property,a=d[o].tool,s=e.isFunction(l[r])?l[r]():l,"gridLines"==r&&(s=l.sheet().showGridLines()),"button"===a.type?n(a,s):i(a,s);this.resize()},_tools:function(){return this.element.find("[data-property]").toArray().map(function(e){return e=t(e),{property:e.attr("data-property"),tool:this._getItem(e)}}.bind(this))},destroy:function(){this.element.find("[data-command],.k-button").each(function(){var e=t(this),n=e.data("instance");n&&n.destroy&&n.destroy()}),n.fn.destroy.call(this)}}),e.spreadsheet.ToolBar=a,s=e.toolbar.Item.extend({init:function(e,n){var i=t("<select />").attr("title",e.attributes.title).attr("aria-label",e.attributes.title).kendoDropDownList({height:"auto"}).data("kendoDropDownList");this.dropDownList=i,this.element=i.wrapper,this.options=e,this.toolbar=n,this.attributes(),this.addUidAttr(),this.addOverflowAttr(),i.bind("open",this._open.bind(this)),i.bind("change",this._change.bind(this)),this.element.width(e.width).attr({"data-command":"PropertyChangeCommand","data-property":e.property})},_open:function(){var t,n=this.dropDownList,i=n.list;i.css({whiteSpace:"nowrap",width:"auto"}),t=i.width(),t>0?t+=20:t=n._listWidth,i.css("width",t+e.support.scrollbar()),n._listWidth=t},_change:function(e){var t=this,n=e.sender,i=n.value(),o=n.dataItem(),r=o?o.popup:void 0;r?setTimeout(function(){t.toolbar.dialog({name:r})}):t.toolbar.action({command:"PropertyChangeCommand",options:{property:this.options.property,value:"null"==i?null:i}})},value:function(e){return void 0===e?this.dropDownList.value():void this.dropDownList.value(e)}}),l=e.toolbar.Item.extend({init:function(e,n){this.element=t("<a role='button' href='#' class='k-button k-button-icon'><span class='"+e.spriteCssClass+"'></span><span class='k-icon k-i-arrow-60-down'></span></a>"),this.element.on("click touchend",this.open.bind(this)).attr("data-command",e.command),this.options=e,this.toolbar=n,this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this._popup()},destroy:function(){this.popup.destroy()},open:function(e){e.preventDefault(),this.popup.toggle()},_popup:function(){var e=this.element;this.popup=t("<div class='k-spreadsheet-popup' />").appendTo(e).kendoPopup({anchor:e}).data("kendoPopup")}}),e.toolbar.registerComponent("dialog",e.toolbar.ToolBarButton.extend({init:function(t,n){e.toolbar.ToolBarButton.fn.init.call(this,t,n),this._dialogName=t.dialogName,this.element.bind("click touchend",this.open.bind(this)).data("instance",this)},open:function(){this.toolbar.dialog({name:this._dialogName})}})),e.toolbar.registerComponent("exportAsDialog",e.toolbar.Item.extend({init:function(e,n){this._dialogName=e.dialogName,this.toolbar=n,this._title=e.attributes.title,this.element=t("<button type='button' role='button' class='k-button k-button-icon'><span class='k-icon k-i-download'></span></button>").attr("title",this._title).attr("aria-label",this._title).data("instance",this),this.element.bind("click",this.open.bind(this)).data("instance",this)},open:function(){this.toolbar.dialog({name:this._dialogName})}})),d=e.toolbar.OverflowButton.extend({init:function(t,n){e.toolbar.OverflowButton.fn.init.call(this,t,n),this.element.on("click touchend",this._click.bind(this)),this.message=this.options.text;var i=this.element.data("button");this.element.data(this.options.type,i)},_click:t.noop}),c=l.extend({init:function(t,n){l.fn.init.call(this,t,n),this.popup.element.addClass("k-spreadsheet-colorpicker"),this.colorChooser=new e.spreadsheet.ColorChooser(this.popup.element,{change:this._colorChange.bind(this)}),this.element.attr({"data-property":t.property}),this.element.data({type:"colorPicker",colorPicker:this,instance:this})},destroy:function(){this.colorChooser.destroy(),l.fn.destroy.call(this)},update:function(e){this.value(e)},value:function(e){this.colorChooser.value(e)},_colorChange:function(e){this.toolbar.action({command:"PropertyChangeCommand",options:{property:this.options.property,value:e.sender.value()}}),this.popup.close()}}),u=d.extend({init:function(e,t){e.iconName="text",d.fn.init.call(this,e,t)},_click:function(){this.toolbar.dialog({name:"colorPicker",options:{title:this.options.property,property:this.options.property}})}}),e.toolbar.registerComponent("colorPicker",c,u),h=[8,9,10,11,12,13,14,16,18,20,22,24,26,28,36,48,72],p=12,f=e.toolbar.Item.extend({init:function(e,n){var i=t("<input />").attr("aria-label",e.attributes.title).attr("title",e.attributes.title).kendoComboBox({change:this._valueChange.bind(this),clearButton:!1,dataSource:e.fontSizes||h,value:p}).data("kendoComboBox");this.comboBox=i,this.element=i.wrapper,this.options=e,this.toolbar=n,this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.element.width(e.width).attr({"data-command":"PropertyChangeCommand","data-property":e.property}),this.element.data({type:"fontSize",fontSize:this})},_valueChange:function(t){this.toolbar.action({command:"PropertyChangeCommand",options:{property:this.options.property,value:e.parseInt(t.sender.value())}})},update:function(t){this.value(e.parseInt(t)||p)},value:function(e){return void 0===e?this.comboBox.value():void this.comboBox.value(e)}}),m=d.extend({_click:function(){this.toolbar.dialog({name:"fontSize",options:{sizes:h,defaultSize:p}})},update:function(e){this._value=e||p,this.element.find(".k-text").text(this.message+" ("+this._value+") ...")}}),e.toolbar.registerComponent("fontSize",f,m),g=["Arial","Courier New","Georgia","Times New Roman","Trebuchet MS","Verdana"],v="Arial",_=s.extend({init:function(e,t){s.fn.init.call(this,e,t);var n=this.dropDownList;n.setDataSource(e.fontFamilies||g),n.value(v),this.element.data({type:"fontFamily",fontFamily:this})},update:function(e){this.value(e||v)}}),b=d.extend({_click:function(){this.toolbar.dialog({name:"fontFamily",options:{fonts:g,defaultFont:v}})},update:function(e){this._value=e||v,this.element.find(".k-text").text(this.message+" ("+this._value+") ...")}}),e.toolbar.registerComponent("fontFamily",_,b),w=e.spreadsheet.formats={automatic:null,text:"@",number:"#,0.00",percent:"0.00%",financial:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',currency:"$#,##0.00;[Red]$#,##0.00",date:"m/d/yyyy",time:"h:mm:ss AM/PM",dateTime:"m/d/yyyy h:mm",duration:"[h]:mm:ss"},k=s.extend({_revertTitle:function(e){e.sender.value(""),e.sender.wrapper.width("auto")},init:function(e,t){var n,o;s.fn.init.call(this,e,t),n=this.dropDownList,o="<span class='k-icon k-i-"+e.iconClass+"' style='line-height: 1em; width: 1.35em;'></span>",n.bind("change",this._revertTitle.bind(this)),n.bind("dataBound",this._revertTitle.bind(this)),n.setOptions({dataValueField:"format",dataTextField:"name",dataValuePrimitive:!0,valueTemplate:o,template:"# if (data.sample) { #<span class='k-spreadsheet-sample'>#: data.sample #</span># } ##: data.name #"}),n.text(o),n.setDataSource([{format:w.automatic,name:i.formatTypes.automatic},{format:w.text,name:i.formatTypes.text},{format:w.number,name:i.formatTypes.number,sample:"1,499.99"},{format:w.percent,name:i.formatTypes.percent,sample:"14.50%"},{format:w.financial,name:i.formatTypes.financial,sample:"(1,000.12)"},{format:w.currency,name:i.formatTypes.currency,sample:"$1,499.99"},{format:w.date,name:i.formatTypes.date,sample:"4/21/2012"},{format:w.time,name:i.formatTypes.time,sample:"5:49:00 PM"},{format:w.dateTime,name:i.formatTypes.dateTime,sample:"4/21/2012 5:49:00"},{format:w.duration,name:i.formatTypes.duration,sample:"168:05:00"},{popup:"formatCells",name:i.formatTypes.moreFormats}]),this.element.data({type:"format",format:this})}}),y=d.extend({_click:function(){this.toolbar.dialog({name:"formatCells"})}}),e.toolbar.registerComponent("format",k,y),x=l.extend({init:function(e,t){l.fn.init.call(this,e,t),this._borderPalette(),this.element.data({type:"borders",instance:this})},destroy:function(){this.borderPalette.destroy(),l.fn.destroy.call(this)},_borderPalette:function(){var n=t("<div />").appendTo(this.popup.element);this.borderPalette=new e.spreadsheet.BorderPalette(n,{change:this._action.bind(this)})},_action:function(e){this.toolbar.action({command:"BorderChangeCommand",options:{border:e.type,style:{size:1,color:e.color}}})}}),C=d.extend({_click:function(){this.toolbar.dialog({name:"borders"})}}),e.toolbar.registerComponent("borders",x,C),S=l.extend({init:function(e,n){l.fn.init.call(this,e,n),this.element.attr({"data-property":"alignment"}),this._defineButtons(),this._commandPalette(),this.popup.element.on("click",".k-button",function(e){this._action(t(e.currentTarget))}.bind(this)),this.element.data({type:"alignment",alignment:this,instance:this})},_defineButtons:function(){this.buttons=[{property:"textAlign",value:"left",iconClass:"align-left",text:i.alignmentButtons.justtifyLeft},{property:"textAlign",value:"center",iconClass:"align-center",text:i.alignmentButtons.justifyCenter},{property:"textAlign",value:"right",iconClass:"align-right",text:i.alignmentButtons.justifyRight},{property:"textAlign",value:"justify",iconClass:"align-justify",text:i.alignmentButtons.justifyFull},{property:"verticalAlign",value:"top",iconClass:"align-top",text:i.alignmentButtons.alignTop},{property:"verticalAlign",value:"center",iconClass:"align-middle",text:i.alignmentButtons.alignMiddle},{property:"verticalAlign",value:"bottom",iconClass:"align-bottom",text:i.alignmentButtons.alignBottom}]},destroy:function(){this.popup.element.off(),l.fn.destroy.call(this)},update:function(e){var t=e.textAlign(),n=e.verticalAlign(),i=this.popup.element;i.find(".k-button").removeClass("k-state-active"),t&&i.find("[data-property=textAlign][data-value="+t+"]").addClass("k-state-active"),n&&i.find("[data-property=verticalAlign][data-value="+n+"]").addClass("k-state-active")},_commandPalette:function(){var e=this.buttons,n=t("<div />").appendTo(this.popup.element);e.forEach(function(i,o){var r="<a role='button' title='"+i.text+"' data-property='"+i.property+"' data-value='"+i.value+"' class='k-button k-button-icon'><span class='k-icon k-i-"+i.iconClass+"'></span></a>";0!==o&&e[o-1].property!==i.property&&n.append(t("<span class='k-separator' />")),n.append(r)})},_action:function(e){var t=e.attr("data-property"),n=e.attr("data-value");this.toolbar.action({command:"PropertyChangeCommand",options:{property:t,value:n}})}}),T=d.extend({_click:function(){this.toolbar.dialog({name:"alignment"})}}),e.toolbar.registerComponent("alignment",S,T),D=l.extend({init:function(e,n){l.fn.init.call(this,e,n),this._defineButtons(),this._commandPalette(),this.popup.element.on("click",".k-button",function(e){this._action(t(e.currentTarget))}.bind(this)),this.element.data({type:"merge",merge:this,instance:this})},_defineButtons:function(){this.buttons=[{value:"cells",iconClass:"cells-merge",text:i.mergeButtons.mergeCells},{value:"horizontally",iconClass:"cells-merge-horizontally",text:i.mergeButtons.mergeHorizontally},{value:"vertically",iconClass:"cells-merge-vertically",text:i.mergeButtons.mergeVertically},{value:"unmerge",iconClass:"table-unmerge",text:i.mergeButtons.unmerge}]},destroy:function(){this.popup.element.off(),l.fn.destroy.call(this)},_commandPalette:function(){var e=t("<div />").appendTo(this.popup.element);this.buttons.forEach(function(t){var n="<a role='button' title='"+t.text+"' data-value='"+t.value+"' class='k-button k-button-icontext'><span class='k-icon k-i-"+t.iconClass+"'></span>"+t.text+"</a>";e.append(n)})},_action:function(e){var t=e.attr("data-value");this.toolbar.action({command:"MergeCellCommand",options:{value:t}})}}),A=d.extend({_click:function(){this.toolbar.dialog({name:"merge"})}}),e.toolbar.registerComponent("merge",D,A),E=l.extend({init:function(e,n){l.fn.init.call(this,e,n),this._defineButtons(),this._commandPalette(),this.popup.element.on("click",".k-button",function(e){this._action(t(e.currentTarget))}.bind(this)),this.element.data({type:"freeze",freeze:this,instance:this})},_defineButtons:function(){this.buttons=[{value:"panes",iconClass:"pane-freeze",text:i.freezeButtons.freezePanes},{value:"rows",iconClass:"row-freeze",text:i.freezeButtons.freezeRows},{value:"columns",iconClass:"column-freeze",text:i.freezeButtons.freezeColumns},{value:"unfreeze",iconClass:"table-unmerge",text:i.freezeButtons.unfreeze}]},destroy:function(){this.popup.element.off(),l.fn.destroy.call(this)},_commandPalette:function(){var e=t("<div />").appendTo(this.popup.element);this.buttons.forEach(function(t){var n="<a role='button' title='"+t.text+"' data-value='"+t.value+"' class='k-button k-button-icontext'><span class='k-icon k-i-"+t.iconClass+"'></span>"+t.text+"</a>";e.append(n)})},_action:function(e){var t=e.attr("data-value");this.toolbar.action({command:"FreezePanesCommand",options:{value:t}})}}),I=d.extend({_click:function(){this.toolbar.dialog({name:"freeze"})}}),e.toolbar.registerComponent("freeze",E,I),M=s.extend({_revertTitle:function(e){e.sender.value(""),e.sender.wrapper.width("auto")},init:function(e,t){s.fn.init.call(this,e,t);var n=this.dropDownList;n.bind("change",this._revertTitle.bind(this)),n.bind("dataBound",this._revertTitle.bind(this)),n.setOptions({valueTemplate:"<span class='k-icon k-i-"+e.iconClass+"' style='line-height: 1em; width: 1.35em;'></span>",template:"<span class='k-icon k-i-#= iconClass #' style='line-height: 1em; width: 1.35em;'></span>#=text#",dataTextField:"text",dataValueField:"value"}),n.setDataSource([{value:"asc",sheet:!1,text:i.sortButtons.sortRangeAsc,iconClass:"sort-asc"},{value:"desc",sheet:!1,text:i.sortButtons.sortRangeDesc,iconClass:"sort-desc"}]),n.select(0),this.element.data({type:"sort",sort:this})},_change:function(e){var t=e.sender,n=t.dataItem();n&&this.toolbar.action({command:"SortCommand",options:{value:n.value,sheet:n.sheet}})},value:t.noop}),R=d.extend({_click:function(){this.toolbar.dialog({name:"sort"})}}),e.toolbar.registerComponent("sort",M,R),F=e.toolbar.ToolBarButton.extend({init:function(t,n){t.showText="overflow",e.toolbar.ToolBarButton.fn.init.call(this,t,n),this.element.on("click",this._click.bind(this)),this.element.data({type:"filter",filter:this})},_click:function(){this.toolbar.action({command:"FilterCommand"})},update:function(e){this.toggle(e)}}),P=d.extend({init:function(e,t){d.fn.init.call(this,e,t),this.element.data({type:"filter",filter:this})},_click:function(){this.toolbar.action({command:"FilterCommand"})},update:function(e){this.toggle(e)}}),e.toolbar.registerComponent("filter",F,P),z=e.toolbar.Item.extend({init:function(e,n){this.toolbar=n,this.element=t("<div class='k-button k-upload-button k-button-icon'><span class='k-icon k-i-folder-open'></span></div>").data("instance",this),this._title=e.attributes.title,this._reset()},_reset:function(){this.element.find("input").remove(),t("<input type='file' autocomplete='off' accept='.xlsx'/>").attr("title",this._title).attr("aria-label",this._title).one("change",this._change.bind(this)).appendTo(this.element)},_change:function(e){this.toolbar.action({command:"OpenCommand",options:{file:e.target.files[0]}}),this._reset()}}),e.toolbar.registerComponent("open",z),e.spreadsheet.TabStrip=e.ui.TabStrip.extend({init:function(n,i){e.ui.TabStrip.fn.init.call(this,n,i),n.addClass("k-spreadsheet-tabstrip"),this._quickAccessButtons(),this.toolbars={};var o=i.dataSource;this.contentElements.each(function(e,n){this._toolbar(t(n),o[e].id,i.toolbarOptions[o[e].id])}.bind(this)),this.one("activate",function(){this.toolbars[this.options.dataSource[0].id].resize()})},events:e.ui.TabStrip.fn.events.concat(["action","dialog"]),destroy:function(){this.quickAccessToolBar.off("click"),e.ui.TabStrip.fn.destroy.call(this);for(var t in this.toolbars)this.toolbars[t].destroy()},action:function(e){this.trigger("action",e)},dialog:function(e){this.trigger("dialog",e)},refreshTools:function(e){var t,n=this.toolbars;for(t in n)n.hasOwnProperty(t)&&n[t].refresh(e)},_quickAccessButtons:function(){var n=[{title:i.quickAccess.undo,iconClass:"undo",action:"undo"},{title:i.quickAccess.redo,iconClass:"redo",action:"redo"}],o=e.template("<a role='button' href='\\#' title='#= title #' data-action='#= action #' class='k-button k-button-icon' aria-label='#= title #'><span class='k-icon k-i-#=iconClass#'></span></a>");this.quickAccessToolBar=t("<div />",{"class":"k-spreadsheet-quick-access-toolbar",html:e.render(o,n)}).insertBefore(this.wrapper),this.quickAccessToolBar.on("click",".k-button",function(e){e.preventDefault();var n=t(e.currentTarget).attr("data-action");this.action({action:n})}.bind(this)),this.quickAccessAdjust()},quickAccessAdjust:function(){this.tabGroup.css("padding-left",e._outerWidth(this.quickAccessToolBar))},_toolbar:function(t,n,i){var o,r;this.toolbars[n]&&(this.toolbars[n].destroy(),t.children(".k-toolbar").remove()),i&&(o=t.html("<div></div>").children("div"),r={tools:"boolean"==typeof i?void 0:i,toolbarName:n,action:this.action.bind(this),dialog:this.dialog.bind(this)},this.toolbars[n]=new e.spreadsheet.ToolBar(o,r))}}))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/dialogs.min",["kendo.core.min","kendo.binder.min","kendo.validator.min"],e)}(function(){!function(e){function t(t,n){return e.spreadsheet.formatting.text(t,n)}function n(e,t){var n,i=[],o=[];for(n=0;n<t.length;n++)l.inArray(t[n][e],o)==-1&&(i.push(t[n]),o.push(t[n][e]));return i}function i(e){return{value:e,text:a("exportAsDialog.pdf.paper."+e)}}function o(t,n){e.spreadsheet.dialogs.register(t,m.extend({options:{messageId:n}}))}function r(e,t){this.path=e.split("."),this.def=t}function a(e,t){return new r(e,t)}function s(e){return e instanceof r?e.trans():Array.isArray(e)?e.map(s):null!=e&&"object"==typeof e?Object.keys(e).reduce(function(t,n){return t[n]=s(e[n]),t},{}):e}var l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P;e.support.browser.msie&&e.support.browser.version<9||(l=e.jQuery,d=e.data.ObservableObject,c=e.spreadsheet.messages.dialogs={apply:"Apply",save:"Save",cancel:"Cancel",remove:"Remove",retry:"Retry",revert:"Revert",okText:"OK",formatCellsDialog:{title:"Format",categories:{number:"Number",currency:"Currency",date:"Date"}},fontFamilyDialog:{title:"Font"},fontSizeDialog:{title:"Font size"},bordersDialog:{title:"Borders"},alignmentDialog:{title:"Alignment",buttons:{justtifyLeft:"Align left",justifyCenter:"Center",justifyRight:"Align right",justifyFull:"Justify",alignTop:"Align top",alignMiddle:"Align middle",alignBottom:"Align bottom"}},mergeDialog:{title:"Merge cells",buttons:{mergeCells:"Merge all",mergeHorizontally:"Merge horizontally",mergeVertically:"Merge vertically",unmerge:"Unmerge"}},freezeDialog:{title:"Freeze panes",buttons:{freezePanes:"Freeze panes",freezeRows:"Freeze rows",freezeColumns:"Freeze columns",unfreeze:"Unfreeze panes"}},confirmationDialog:{text:"Are you sure you want to remove this sheet?",title:"Sheet remove"},validationDialog:{title:"Data Validation",hintMessage:"Please enter a valid {0} value {1}.",hintTitle:"Validation {0}",criteria:{any:"Any value",number:"Number",text:"Text",date:"Date",custom:"Custom Formula",list:"List"},comparers:{greaterThan:"greater than",lessThan:"less than",between:"between",notBetween:"not between",equalTo:"equal to",notEqualTo:"not equal to",greaterThanOrEqualTo:"greater than or equal to",lessThanOrEqualTo:"less than or equal to"},comparerMessages:{greaterThan:"greater than {0}",lessThan:"less than {0}",between:"between {0} and {1}",notBetween:"not between {0} and {1}",equalTo:"equal to {0}",notEqualTo:"not equal to {0}",greaterThanOrEqualTo:"greater than or equal to {0}",lessThanOrEqualTo:"less than or equal to {0}",custom:"that satisfies the formula: {0}"},labels:{criteria:"Criteria",comparer:"Comparer",min:"Min",max:"Max",value:"Value",start:"Start",end:"End",onInvalidData:"On invalid data",rejectInput:"Reject input",showWarning:"Show warning",showHint:"Show hint",hintTitle:"Hint title",hintMessage:"Hint message",ignoreBlank:"Ignore blank",showListButton:"Display button to show list",showCalendarButton:"Display button to show calendar"},placeholders:{typeTitle:"Type title",typeMessage:"Type message"}},exportAsDialog:{title:"Export...",defaultFileName:"Workbook",xlsx:{description:"Excel Workbook (.xlsx)"},pdf:{description:"Portable Document Format (.pdf)",area:{workbook:"Entire Workbook",sheet:"Active Sheet",selection:"Selection"},paper:{a2:"A2 (420 mm × 594 mm)",a3:"A3 (297 mm x 420 mm)",a4:"A4 (210 mm x 297 mm)",a5:"A5 (148 mm x 210 mm)",b3:"B3 (353 mm × 500 mm)",b4:"B4 (250 mm x 353 mm)",b5:"B5 (176 mm x 250 mm)",folio:'Folio (8.5" x 13")',legal:'Legal (8.5" x 14")',letter:'Letter (8.5" x 11")',tabloid:'Tabloid (11" x 17")',executive:'Executive (7.25" x 10.5")'},margin:{normal:"Normal",narrow:"Narrow",wide:"Wide"}},labels:{scale:"Scale",fit:"Fit to page",fileName:"File name",saveAsType:"Save as type",exportArea:"Export",paperSize:"Paper size",margins:"Margins",orientation:"Orientation",print:"Print",guidelines:"Guidelines",center:"Center",horizontally:"Horizontally",vertically:"Vertically"}},modifyMergedDialog:{errorMessage:"Cannot change part of a merged cell."},rangeDisabledDialog:{errorMessage:"Destination range contains disabled cells."},intersectsArrayDialog:{errorMessage:"You cannot alter part of an array"},incompatibleRangesDialog:{errorMessage:"Incompatible ranges"},noFillDirectionDialog:{errorMessage:"Cannot determine fill direction"},duplicateSheetNameDialog:{errorMessage:"Duplicate sheet name"},overflowDialog:{errorMessage:"Cannot paste, because the copy area and the paste area are not the same size and shape."},useKeyboardDialog:{title:"Copying and pasting",errorMessage:"These actions cannot be invoked through the menu. Please use the keyboard shortcuts instead:",labels:{forCopy:"for copy",forCut:"for cut",forPaste:"for paste"}},unsupportedSelectionDialog:{errorMessage:"That action cannot be performed on multiple selection."},linkDialog:{title:"Hyperlink",labels:{text:"Text",url:"Address",removeLink:"Remove link"}},insertCommentDialog:{title:"Insert comment",labels:{comment:"Comment",removeComment:"Remove comment"}},insertImageDialog:{title:"Insert image",info:"Drag an image here, or click to select",typeError:"Please select a JPEG, PNG or GIF image"}},u={},e.spreadsheet.dialogs={register:function(e,t){u[e]=t},registered:function(e){return!!u[e]},create:function(e,t){var n=u[e];if(n)return new n(t)}},h=e.spreadsheet.SpreadsheetDialog=e.Observable.extend({init:function(t){e.Observable.fn.init.call(this,t),this.options=s(l.extend(!0,{},this.options,t)),this.bind(this.events,t)},events:["close","activate"],options:{autoFocus:!0},dialog:function(){if(!this._dialog){var t={autoFocus:!1,scrollable:!1,resizable:!1,modal:!0,visible:!1,width:this.options.width||320,title:this.options.title,open:function(){this.center()},close:this._onDialogClose.bind(this),activate:this._onDialogActivate.bind(this),deactivate:this._onDialogDeactivate.bind(this)
};this._dialog=l("<div class='k-spreadsheet-window k-action-window k-popup-edit-form' />").addClass(this.options.className||"").append(e.template(this.options.template)({messages:e.spreadsheet.messages.dialogs||c,errors:this.options.errors})).kendoWindow(t).data("kendoWindow")}return this._dialog},_onDialogClose:function(){this.trigger("close",{action:this._action})},_onDialogActivate:function(){this.trigger("activate")},_onDialogDeactivate:function(){this.trigger("deactivate"),this.destroy()},destroy:function(){this._dialog&&(this._dialog.destroy(),this._dialog=null)},open:function(){this.dialog().open(),this.dialog().element.find(".k-primary").focus()},apply:function(){this.close()},close:function(){this._action="close",this.dialog().close()}}),p=e.spreadsheet.FormatCellsViewModel=d.extend({init:function(e){d.fn.init.call(this,e),this.useCategory(this.category)},useCategory:function(e){var t=e&&e.type||"number",n="currency"==t;this.category=e,this.set("showCurrencyFilter",n&&this.currencies.length>1),n?this.currency(this.currencies[0]):this.set("formats",this.allFormats[t+"Formats"]),this.useFirstFormat()},useFirstFormat:function(){this.formats.length&&this.set("format",this.formats[0].value)},currency:function(e){var n,i;return void 0!==e&&(this._currency=e,n=e.value,i=[{currency:n,decimals:!0},{currency:n,decimals:!0,iso:!0},{currency:n,decimals:!1}],i=i.map(function(e){return e=p.convert.currency(e),{value:e,name:t(1e3,e)}}),this.set("formats",i),this.useFirstFormat()),this._currency||this.currencies[0]},categoryFilter:function(e){return void 0!==e&&this.useCategory(e),this.category},preview:function(){var e=this.get("format"),n=this.value||0;return e&&e.length?t(n,e):n}}),p.convert={currency:function(e){function t(e,t){return Array(t+1).join(e)}var n=e.currency,i=n.pattern[1];return e.decimals&&(i=i.replace(/n/g,"n"+n["."]+t("0",n.decimals))),i=e.iso?'"'+n.abbr+'" '+i.replace(/\s*\$\s*/g,""):i.replace(/\$/g,JSON.stringify(n.symbol)),i=i.replace(/n/g,"?")},date:function(e){return/T|Z/.test(e)?"":e.toLowerCase().replace(/tt/g,"AM/PM").replace(/'/g,'"')}},f=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.formatCellsDialog||c,i={title:n.title,categories:[{type:"number",name:n.categories.number},{type:"currency",name:n.categories.currency},{type:"date",name:n.categories.date}]};h.fn.init.call(this,l.extend(i,t)),this._generateFormats()},options:{className:"k-spreadsheet-format-cells",template:"<div class='k-edit-form-container'><div class='k-root-tabs' data-role='tabstrip' data-text-field='name' data-bind='source: categories, value: categoryFilter' data-animation='false'></div><div class='k-spreadsheet-preview' data-bind='text: preview'></div><script type='text/x-kendo-template' id='format-item-template'>\\#: data.name \\#</script><select data-role='dropdownlist' class='k-format-filter' data-text-field='description' data-value-field='value.name' data-bind='visible: showCurrencyFilter, value: currency, source: currencies'></select><ul data-role='staticlist' tabindex='0' class='k-list k-reset' data-template='format-item-template' data-value-primitive='true' data-value-field='value' data-bind='source: formats, value: format'></ul><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: apply'>#: messages.apply #</button><button class='k-button' data-bind='click: close'>#: messages.cancel #</button></div></div>"},_generateFormats:function(){var i,o=this.options;o.currencies||(o.currencies=f.currenciesFrom(e.cultures)),o.numberFormats||(o.numberFormats=[{value:"#.00%",name:"100.00%"},{value:"#%",name:"100%"},{value:"#.00",name:"1024.00"},{value:"#,###.00",name:"1,024.00"}]),o.dateFormats||(i=e.cultures.current.calendars.standard.patterns,o.dateFormats=n("value",l.map(i,function(e){if(e=p.convert.date(e))return{value:e,name:t(34567.7678,e)}})))},open:function(t){var n,i,o=this.options,r=t.value(),a=o.categories.slice(0);this.viewModel=new p({currencies:o.currencies.slice(0),allFormats:{numberFormats:o.numberFormats.slice(0),dateFormats:o.dateFormats.slice(0)},categories:a,format:t.format(),category:r instanceof Date?a[2]:a[0],apply:this.apply.bind(this),close:this.close.bind(this),value:r}),h.fn.open.call(this),n=this.dialog().element,e.bind(n,this.viewModel),i=n.find("select.k-format-filter").data("kendoDropDownList"),o.currencies.length>10&&i.setOptions({filter:"contains"}),n.find(e.roleSelector("staticlist")).parent().addClass("k-list-wrapper")},apply:function(){var e=this.viewModel.format;h.fn.apply.call(this),this.trigger("action",{command:"PropertyChangeCommand",options:{property:"format",value:e}})}}),f.currenciesFrom=function(t){return n("description",l.map(t,function(t,n){var i,o;if(/-/.test(n))return i=t.numberFormat.currency,o=e.format("{0} ({1}, {2})",i.name,i.abbr,i.symbol),{description:o,value:i}}))},e.spreadsheet.dialogs.register("formatCells",f),e.spreadsheet.dialogs.FormatCellsDialog=f,m=h.extend({options:{className:"k-spreadsheet-message",title:"",messageId:"",text:"",template:"<div class='k-spreadsheet-message-content' data-bind='text: text'></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: close'>#= messages.okText #</button></div>"},open:function(){var t,n;h.fn.open.call(this),t=this.options,n=t.text,t.messageId&&(n=e.getter(t.messageId,!0)(e.spreadsheet.messages.dialogs)),e.bind(this.dialog().element,{text:n,close:this.close.bind(this)})}}),e.spreadsheet.dialogs.register("message",m),g=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.confirmationDialog||c,i={title:n.title,text:n.text};h.fn.init.call(this,l.extend(i,t))},options:{className:"k-spreadsheet-message",messageId:"",template:"<div class='k-spreadsheet-message-content' data-bind='text: text'></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: confirm'>#= messages.okText #</button><button class='k-button' data-bind='click: cancel'>#= messages.cancel #</button></div>"},open:function(){var t,n;h.fn.open.call(this),t=this.options,n=t.text,t.messageId&&(n=e.getter(t.messageId,!0)(e.spreadsheet.messages.dialogs)),e.bind(this.dialog().element,{text:n,confirm:this.confirm.bind(this),cancel:this.close.bind(this)})},isConfirmed:function(){return this._confirmed},confirm:function(){this._confirmed=!0,this.close()}}),e.spreadsheet.dialogs.register("confirmation",g),v=h.extend({options:{className:"k-spreadsheet-message",title:"",messageId:"",text:"",template:"<div class='k-spreadsheet-message-content' data-bind='text: text'></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: retry'>#= messages.retry #</button><button class='k-button' data-bind='click: cancel'>#= messages.cancel #</button></div>"},open:function(){var t,n;h.fn.open.call(this),t=this.options,n=t.text,t.messageId&&(n=e.getter(t.messageId,!0)(e.spreadsheet.messages.dialogs)),e.bind(this.dialog().element,{text:n,retry:this.retry.bind(this),cancel:this.close.bind(this)})},retry:function(){this._retry=!0,this.close()}}),e.spreadsheet.dialogs.register("validationError",v),_=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.fontFamilyDialog||c;h.fn.init.call(this,l.extend({title:n.title},t)),this._list()},options:{template:"<ul class='k-list k-reset'></ul>"},_list:function(){var t=this.dialog().element.find("ul"),n=this.options.fonts,i=this.options.defaultFont;this.list=new e.ui.StaticList(t,{dataSource:new e.data.DataSource({data:n}),template:"#: data #",value:i,change:this.apply.bind(this)}),this.list.dataSource.fetch()},apply:function(e){h.fn.apply.call(this),this.trigger("action",{command:"PropertyChangeCommand",options:{property:"fontFamily",value:e.sender.value()[0]}})}}),e.spreadsheet.dialogs.register("fontFamily",_),b=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.fontSizeDialog||c;h.fn.init.call(this,l.extend({title:n.title},t)),this._list()},options:{template:"<ul class='k-list k-reset'></ul>"},_list:function(){var t=this.dialog().element.find("ul"),n=this.options.sizes,i=this.options.defaultSize;this.list=new e.ui.StaticList(t,{dataSource:new e.data.DataSource({data:n}),template:"#: data #",value:i,change:this.apply.bind(this)}),this.list.dataSource.fetch()},apply:function(t){h.fn.apply.call(this),this.trigger("action",{command:"PropertyChangeCommand",options:{property:"fontSize",value:e.parseInt(t.sender.value()[0])}})}}),e.spreadsheet.dialogs.register("fontSize",b),w=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.bordersDialog||c;h.fn.init.call(this,l.extend({title:n.title},t)),this.element=this.dialog().element,this._borderPalette(),this.viewModel=e.observable({apply:this.apply.bind(this),close:this.close.bind(this)}),e.bind(this.element.find(".k-action-buttons"),this.viewModel)},options:{width:177,template:"<div></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: apply'>#: messages.apply #</button><button class='k-button' data-bind='click: close'>#: messages.cancel #</button></div>"},apply:function(){h.fn.apply.call(this);var e=this.value();this.trigger("action",{command:"BorderChangeCommand",options:{border:e.type,style:{size:1,color:e.color}}})},_borderPalette:function(){var t=this.dialog().element.find("div:first");this.borderPalette=new e.spreadsheet.BorderPalette(t,{change:this.value.bind(this)})},value:function(e){return void 0===e?this._state:void(this._state=e)}}),e.spreadsheet.dialogs.register("borders",w),k=h.extend({init:function(t){h.fn.init.call(this,t),this.element=this.dialog().element,this.property=t.property,this.options.title=t.title,this.viewModel=e.observable({apply:this.apply.bind(this),close:this.close.bind(this)}),e.bind(this.element.find(".k-action-buttons"),this.viewModel)},options:{template:"<div></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: apply'>#: messages.apply #</button><button class='k-button' data-bind='click: close'>#: messages.cancel #</button></div>"},apply:function(){h.fn.apply.call(this),this.trigger("action",{command:"PropertyChangeCommand",options:{property:this.property,value:this.value()}})},value:function(e){return void 0===e?this._value:void(this._value=e.value)}}),y=k.extend({init:function(e){e.width=177,k.fn.init.call(this,e),this._colorPalette()},_colorPalette:function(){var e=this.dialog().element.find("div:first");this.colorPalette=e.kendoColorPalette({palette:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],change:this.value.bind(this)}).data("kendoColorPalette")}}),e.spreadsheet.dialogs.register("colorPicker",y),x=k.extend({init:function(e){e.width=268,k.fn.init.call(this,e),this.dialog().setOptions({animation:!1}),this.dialog().one("activate",this._colorPicker.bind(this))},_colorPicker:function(){var e=this.dialog().element.find("div:first");this.colorPicker=e.kendoFlatColorPicker({change:this.value.bind(this)}).data("kendoFlatColorPicker")}}),e.spreadsheet.dialogs.register("customColor",x),C=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.alignmentDialog||c,i={title:n.title,buttons:[{property:"textAlign",value:"left",iconClass:"align-left",text:n.buttons.justtifyLeft},{property:"textAlign",value:"center",iconClass:"align-center",text:n.buttons.justifyCenter},{property:"textAlign",value:"right",iconClass:"align-right",text:n.buttons.justifyRight},{property:"textAlign",value:"justify",iconClass:"align-justify",text:n.buttons.justifyFull},{property:"verticalAlign",value:"top",iconClass:"align-top",text:n.buttons.alignTop},{property:"verticalAlign",value:"center",iconClass:"align-middle",text:n.buttons.alignMiddle},{property:"verticalAlign",value:"bottom",iconClass:"align-bottom",text:n.buttons.alignBottom}]};h.fn.init.call(this,l.extend(i,t)),this._list()},options:{template:"<ul class='k-list k-reset'></ul>"},_list:function(){var t=this.dialog().element.find("ul");this.list=new e.ui.StaticList(t,{dataSource:new e.data.DataSource({data:this.options.buttons}),template:"<a role='button' title='#=text#' data-property='#=property#' data-value='#=value#'><span class='k-icon k-i-#=iconClass#'></span>#=text#</a>",change:this.apply.bind(this)}),this.list.dataSource.fetch()},apply:function(e){var t=e.sender.value()[0];h.fn.apply.call(this),this.trigger("action",{command:"PropertyChangeCommand",options:{property:t.property,value:t.value}})}}),e.spreadsheet.dialogs.register("alignment",C),S=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.mergeDialog||c,i={title:n.title,buttons:[{value:"cells",iconClass:"cells-merge",text:n.buttons.mergeCells},{value:"horizontally",iconClass:"cells-merge-horizontally",text:n.buttons.mergeHorizontally},{value:"vertically",iconClass:"cells-merge-vertically",text:n.buttons.mergeVertically},{value:"unmerge",iconClass:"table-unmerge",text:n.buttons.unmerge}]};h.fn.init.call(this,l.extend(i,t)),this._list()},options:{template:"<ul class='k-list k-reset'></ul>"},_list:function(){var t=this.dialog().element.find("ul");this.list=new e.ui.StaticList(t,{dataSource:new e.data.DataSource({data:this.options.buttons}),template:"<a role='button' title='#=text#' data-value='#=value#'><span class='k-icon k-icon k-i-#=iconClass#'></span>#=text#</a>",change:this.apply.bind(this)}),this.list.dataSource.fetch()},apply:function(e){var t=e.sender.value()[0];h.fn.apply.call(this),this.trigger("action",{command:"MergeCellCommand",options:{value:t.value}})}}),e.spreadsheet.dialogs.register("merge",S),T=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.freezeDialog||c,i={title:n.title,buttons:[{value:"panes",iconClass:"pane-freeze",text:n.buttons.freezePanes},{value:"rows",iconClass:"row-freeze",text:n.buttons.freezeRows},{value:"columns",iconClass:"column-freeze",text:n.buttons.freezeColumns},{value:"unfreeze",iconClass:"table-unmerge",text:n.buttons.unfreeze}]};h.fn.init.call(this,l.extend(i,t)),this._list()},options:{template:"<ul class='k-list k-reset'></ul>"},_list:function(){var t=this.dialog().element.find("ul");this.list=new e.ui.StaticList(t,{dataSource:new e.data.DataSource({data:this.options.buttons}),template:"<a role='button' title='#=text#' data-value='#=value#'><span class='k-icon k-icon k-i-#=iconClass#'></span>#=text#</a>",change:this.apply.bind(this)}),this.list.dataSource.fetch()},apply:function(e){var t=e.sender.value()[0];h.fn.apply.call(this),this.trigger("action",{command:"FreezePanesCommand",options:{value:t.value}})}}),e.spreadsheet.dialogs.register("freeze",T),D=e.spreadsheet.ValidationCellsViewModel=d.extend({init:function(e){d.fn.init.call(this,e),this.bind("change",function(e){"criterion"===e.field&&(this.reset(),"custom"!==this.criterion&&"list"!==this.criterion||this.setHintMessageTemplate()),"comparer"===e.field&&this.setHintMessageTemplate(),"hintMessage"!=e.field&&"hintTitle"!=e.field||this._mute||(this.shouldBuild=!1),"from"!=e.field&&"to"!=e.field&&"hintMessageTemplate"!=e.field&&"type"!=e.field||!this.shouldBuild||this.buildMessages()}.bind(this)),this.reset()},buildMessages:function(){this._mute=!0,this.set("hintTitle",this.hintTitleTemplate?e.format(this.hintTitleTemplate,this.type):""),this.set("hintMessage",this.hintMessageTemplate?e.format(this.hintMessageTemplate,this.from,this.to):""),this._mute=!1},reset:function(){this.setComparers(),this.set("comparer",this.comparers[0].type),this.set("from",null),this.set("to",null),this.set("useCustomMessages",!1),this.shouldBuild=!0,this.hintTitleTemplate=this.defaultHintTitle,this.buildMessages()},setComparers:function(){var e,t,n=this.defaultComparers,i=[];if("text"===this.criterion)for(e=["equalTo","notEqualTo"],t=0;t<n.length;t++)e[0]==n[t].type&&(i.push(n[t]),e.shift());else i=n.slice();this.set("comparers",i)},setHintMessageTemplate:function(){"custom"!==this.criterion&&"list"!==this.criterion?this.set("hintMessageTemplate",e.format(this.defaultHintMessage,this.criterion,this.comparerMessages[this.comparer])):(this.set("hintMessageTemplate",""),this.set("hintMessage",""))},isAny:function(){return"any"===this.get("criterion")},isNumber:function(){return"number"===this.get("criterion")},showToForNumber:function(){return this.showTo()&&this.isNumber()},showToForDate:function(){return this.showTo()&&this.isDate()},isText:function(){return"text"===this.get("criterion")},isDate:function(){return"date"===this.get("criterion")},isList:function(){return"list"===this.get("criterion")},isCustom:function(){return"custom"===this.get("criterion")},showRemove:function(){return this.get("hasValidation")},showTo:function(){return"between"==this.get("comparer")||"notBetween"==this.get("comparer")},update:function(e){this.set("hasValidation",!!e),e&&this.fromValidationObject(e)},fromValidationObject:function(e){this.set("criterion",e.dataType),this.set("comparer",e.comparerType),this.set("from",e.from),this.set("to",e.to),this.set("type",e.type),this.set("ignoreBlank",e.allowNulls),this.set("showButton",e.showButton),e.messageTemplate||e.titleTemplate?(this.hintMessageTemplate=e.messageTemplate,this.hintMessage=e.messageTemplate,this.hintTitleTemplate=e.titleTemplate,this.hintTitle=e.titleTemplate,this.useCustomMessages=!0,this.buildMessages()):this.useCustomMessages=!1},toValidationObject:function(){if("any"===this.criterion)return null;var e={type:this.type,dataType:this.criterion,comparerType:this.comparer,from:this.from,to:this.to,allowNulls:this.ignoreBlank,showButton:this.showButton};return this.useCustomMessages&&(e.messageTemplate=this.shouldBuild?this.hintMessageTemplate:this.hintMessage,e.titleTemplate=this.hintTitle),e}}),A=h.extend({init:function(t){var n=e.spreadsheet.messages.dialogs.validationDialog||c,i={title:n.title,hintMessage:n.hintMessage,hintTitle:n.hintTitle,criteria:[{type:"any",name:n.criteria.any},{type:"number",name:n.criteria.number},{type:"text",name:n.criteria.text},{type:"date",name:n.criteria.date},{type:"custom",name:n.criteria.custom},{type:"list",name:n.criteria.list}],comparers:[{type:"greaterThan",name:n.comparers.greaterThan},{type:"lessThan",name:n.comparers.lessThan},{type:"between",name:n.comparers.between},{type:"notBetween",name:n.comparers.notBetween},{type:"equalTo",name:n.comparers.equalTo},{type:"notEqualTo",name:n.comparers.notEqualTo},{type:"greaterThanOrEqualTo",name:n.comparers.greaterThanOrEqualTo},{type:"lessThanOrEqualTo",name:n.comparers.lessThanOrEqualTo}],comparerMessages:n.comparerMessages};h.fn.init.call(this,l.extend(i,t))},options:{width:450,criterion:"any",type:"reject",ignoreBlank:!0,showButton:!0,useCustomMessages:!1,errorTemplate:'<div class="k-tooltip k-tooltip-error k-validator-tooltip"><span class="k-tooltip-icon k-icon k-i-warning"></span><span class="k-tooltip-content">#= message #</span><span class="k-callout k-callout-n"></span></div>',template:'<div class="k-edit-form-container"><div class="k-edit-label"><label>#: messages.validationDialog.labels.criteria #:</label></div><div class="k-edit-field"><select data-role="dropdownlist" title="#: messages.validationDialog.labels.criteria #"data-text-field="name" data-value-field="type" data-bind="value: criterion, source: criteria"></select></div><div data-bind="visible: isNumber"><div class="k-edit-label"><label>#: messages.validationDialog.labels.comparer #:</label></div><div class="k-edit-field"><select data-role="dropdownlist" title="#: messages.validationDialog.labels.comparer #"data-text-field="name" data-value-field="type" data-bind="value: comparer, source: comparers"></select></div><div class="k-edit-label"><label>#: messages.validationDialog.labels.min #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.min #" title="#: messages.validationDialog.labels.min #" placeholder="e.g. 10" class="k-textbox" data-bind="value: from, enabled: isNumber" required="required" /></div><div data-bind="visible: showTo"><div class="k-edit-label"><label>#: messages.validationDialog.labels.max #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.max #" title="#: messages.validationDialog.labels.max #" placeholder="e.g. 100" class="k-textbox" data-bind="value: to, enabled: showToForNumber" required="required" /></div></div></div><div data-bind="visible: isText"><div class="k-edit-label"><label>#: messages.validationDialog.labels.comparer #:</label></div><div class="k-edit-field"><select data-role="dropdownlist" title="#: messages.validationDialog.labels.comparer #"data-text-field="name" data-value-field="type" data-bind="value: comparer, source: comparers"></select></div><div class="k-edit-label"><label>#: messages.validationDialog.labels.value #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.value #" title="#: messages.validationDialog.labels.value #" class="k-textbox" data-bind="value: from, enabled: isText" required="required" /></div></div><div data-bind="visible: isDate"><div class="k-edit-label"><label>#: messages.validationDialog.labels.comparer #:</label></div><div class="k-edit-field"><select data-role="dropdownlist" title="#: messages.validationDialog.labels.comparer #"data-text-field="name" data-value-field="type" data-bind="value: comparer, source: comparers"></select></div><div class="k-edit-label"><label>#: messages.validationDialog.labels.start #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.start #" title="#: messages.validationDialog.labels.start #" class="k-textbox" data-bind="value: from, enabled: isDate" required="required" /></div><div data-bind="visible: showTo"><div class="k-edit-label"><label>#: messages.validationDialog.labels.end #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.end #" title="#: messages.validationDialog.labels.end #" class="k-textbox" data-bind="value: to, enabled: showToForDate" required="required" /></div></div></div><div data-bind="visible: isCustom"><div class="k-edit-label"><label>#: messages.validationDialog.labels.value #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.value #" title="#: messages.validationDialog.labels.value #" class="k-textbox" data-bind="value: from, enabled: isCustom" required="required" /></div></div><div data-bind="visible: isList"><div class="k-edit-label"><label>#: messages.validationDialog.labels.value #:</label></div><div class="k-edit-field"><input name="#: messages.validationDialog.labels.value #" title="#: messages.validationDialog.labels.value #" class="k-textbox" data-bind="value: from, enabled: isList" required="required" /></div></div><div data-bind="visible: isList"><div class="k-edit-field"><input type="checkbox" name="showButton" id="listShowButton" class="k-checkbox" data-bind="checked: showButton"/><label for="listShowButton" class="k-checkbox-label"> #: messages.validationDialog.labels.showListButton #</label></div></div><div data-bind="visible: isDate"><div class="k-edit-field"><input type="checkbox" name="showButton" id="dateShowButton" class="k-checkbox" data-bind="checked: showButton"/><label for="dateShowButton" class="k-checkbox-label"> #: messages.validationDialog.labels.showCalendarButton #</label></div></div><div data-bind="invisible: isAny"><div class="k-edit-field"><input type="checkbox" title="#: messages.validationDialog.labels.ignoreBlank #" name="ignoreBlank" id="ignoreBlank" class="k-checkbox" data-bind="checked: ignoreBlank"/><label for="ignoreBlank" class="k-checkbox-label"> #: messages.validationDialog.labels.ignoreBlank #</label></div></div><div data-bind="invisible: isAny"><div class="k-hr"></div><div class="k-edit-label"><label>#: messages.validationDialog.labels.onInvalidData #:</label></div><div class="k-edit-field"><input type="radio" title="#: messages.validationDialog.labels.rejectInput #" id="validationTypeReject" name="validationType" value="reject" data-bind="checked: type" class="k-radio" /><label for="validationTypeReject" class="k-radio-label">#: messages.validationDialog.labels.rejectInput #</label> <input type="radio" title="#: messages.validationDialog.labels.showWarning #" id="validationTypeWarning"  name="validationType" value="warning" data-bind="checked: type" class="k-radio" /><label for="validationTypeWarning" class="k-radio-label">#: messages.validationDialog.labels.showWarning #</label></div></div><div data-bind="invisible: isAny" class="hint-wrapper"><div class="k-edit-field"><input type="checkbox" title="#: messages.validationDialog.labels.showHint #" name="useCustomMessages" id="useCustomMessages" class="k-checkbox" data-bind="checked: useCustomMessages" /><label class="k-checkbox-label" for="useCustomMessages"> #: messages.validationDialog.labels.showHint #</label></div><div data-bind="visible: useCustomMessages"><div class="k-edit-label"><label>#: messages.validationDialog.labels.hintTitle #:</label></div><div class="k-edit-field"><input class="k-textbox" title="#: messages.validationDialog.labels.hintTitle #" placeholder="#: messages.validationDialog.placeholders.typeTitle #" data-bind="value: hintTitle" /></div><div class="k-edit-label"><label>#: messages.validationDialog.labels.hintMessage #:</label></div><div class="k-edit-field"><input class="k-textbox" title="#: messages.validationDialog.labels.hintMessage #" placeholder="#: messages.validationDialog.placeholders.typeMessage #" data-bind="value: hintMessage" /></div></div></div><div class="k-action-buttons"><button class="k-button" data-bind="visible: showRemove, click: remove">#: messages.remove #</button><button class="k-button k-primary" data-bind="click: apply">#: messages.apply #</button><button class="k-button" data-bind="click: close">#: messages.cancel #</button></div></div>'},open:function(t){var n,i=this.options;this.viewModel=new D({type:i.type,defaultHintMessage:i.hintMessage,defaultHintTitle:i.hintTitle,defaultComparers:i.comparers.slice(0),comparerMessages:i.comparerMessages,criteria:i.criteria.slice(0),criterion:i.criterion,ignoreBlank:i.ignoreBlank,showButton:i.showButton,apply:this.apply.bind(this),close:this.close.bind(this),remove:this.remove.bind(this)}),this.viewModel.update(t.validation()),h.fn.open.call(this),n=this.dialog().element,this.validatable&&this.validatable.destroy(),e.bind(n,this.viewModel),this.validatable=new e.ui.Validator(n.find(".k-edit-form-container"),{validateOnBlur:!1,errorTemplate:this.options.errorTemplate||void 0})},apply:function(){this.validatable.validate()&&(h.fn.apply.call(this),this.trigger("action",{command:"EditValidationCommand",options:{value:this.viewModel.toValidationObject()}}))},remove:function(){this.viewModel.set("criterion","any"),this.apply()}}),e.spreadsheet.dialogs.register("validation",A),e.spreadsheet.dialogs.ValidationDialog=A,E=h.extend({init:function(t){h.fn.init.call(this,t),t=this.options,this.viewModel=e.observable({title:t.title,name:t.name,extension:t.extension,fileFormats:t.fileFormats,excel:t.excelExport,pdf:{proxyURL:t.pdfExport.proxyURL,forceProxy:t.pdfExport.forceProxy,title:t.pdfExport.title,author:t.pdfExport.author,subject:t.pdfExport.subject,keywords:t.pdfExport.keywords,creator:t.pdfExport.creator,date:t.pdfExport.date,fitWidth:t.pdf.fitWidth,area:t.pdf.area,areas:t.pdf.areas,paperSize:t.pdf.paperSize,paperSizes:t.pdf.paperSizes,margin:t.pdf.margin,margins:t.pdf.margins,landscape:t.pdf.landscape,guidelines:t.pdf.guidelines,hCenter:t.pdf.hCenter,vCenter:t.pdf.vCenter},apply:this.apply.bind(this),close:this.close.bind(this)});var n=this.dialog();this.viewModel.bind("change",function(e){"extension"===e.field&&(this.set("showPdfOptions",".pdf"===this.extension),n.center())}),e.bind(n.element,this.viewModel)},options:{title:a("exportAsDialog.title","Export..."),name:a("exportAsDialog.defaultFileName","Workbook"),extension:".xlsx",fileFormats:[{description:a("exportAsDialog.xlsx.description","Excel Workbook (.xlsx)"),extension:".xlsx"},{description:a("exportAsDialog.pdf.description","Portable Document Format (.pdf)"),extension:".pdf"}],pdf:{fitWidth:!0,area:"workbook",areas:[{area:"workbook",text:a("exportAsDialog.pdf.area.workbook","Entire Workbook")},{area:"sheet",text:a("exportAsDialog.pdf.area.sheet","Active Sheet")},{area:"selection",text:a("exportAsDialog.pdf.area.selection","Selection")}],paperSize:"a4",paperSizes:["a2","a3","a4","a5","b3","b4","b5","folio","legal","letter","tabloid","executive"].map(i),margin:{bottom:"0.75in",left:"0.7in",right:"0.7in",top:"0.75in"},margins:[{value:{bottom:"0.75in",left:"0.7in",right:"0.7in",top:"0.75in"},text:a("exportAsDialog.pdf.margin.normal","Normal")},{value:{bottom:"0.75in",left:"0.25in",right:"0.25in",top:"0.75in"},text:a("exportAsDialog.pdf.margin.narrow","Narrow")},{value:{bottom:"1in",left:"1in",right:"1in",top:"1in"},text:a("exportAsDialog.pdf.margin.wide","Wide")}],landscape:!0,guidelines:!0,hCenter:!0,vCenter:!0},width:520,template:"<div class='k-edit-label'><label>#: messages.exportAsDialog.labels.fileName #:</label></div><div class='k-edit-field'><input class='k-textbox' data-bind='value: name' /></div><div ><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.saveAsType #:</label></div><div class='k-edit-field'><select data-role='dropdownlist' class='k-file-format' data-text-field='description' data-value-field='extension' data-bind='value: extension, source: fileFormats'></select></div></div><div class='k-export-config' data-bind='visible: showPdfOptions'><hr class='k-hr' /><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.exportArea #:</label></div><div class='k-edit-field'><select data-role='dropdownlist' class='k-file-format' data-text-field='text' data-value-field='area' data-bind='value: pdf.area, source: pdf.areas'></select></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.paperSize#:</label></div><div class='k-edit-field'><select data-role='dropdownlist' class='k-file-format' data-text-field='text' data-value-field='value' data-bind='value: pdf.paperSize, source: pdf.paperSizes'></select></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.margins #:</label></div><div class='k-edit-field'><select data-role='dropdownlist' class='k-file-format' data-value-primitive='true'data-text-field='text' data-value-field='value' data-bind='value: pdf.margin, source: pdf.margins'></select></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.orientation #:</label></div><div class='k-edit-field'><div class='k-button-group'><input type='radio' id='k-orientation-portrait' name='orientation' data-type='boolean' data-bind='checked: pdf.landscape' value='false' /><label class='k-button k-button-icon k-group-start k-orientation-button' for='k-orientation-portrait'><span class='k-icon k-i-page-portrait'></span></label><input type='radio' id='k-orientation-landscape' name='orientation' data-type='boolean' data-bind='checked: pdf.landscape' value='true' /><label class='k-button k-button-icon k-group-end k-orientation-button' for='k-orientation-landscape'><span class='k-icon k-i-page-landscape'></span></label></div></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.print #:</label></div><div class='k-edit-field'><input class='k-checkbox' id='guidelines' type='checkbox' data-bind='checked: pdf.guidelines'/><label class='k-checkbox-label' for='guidelines'>#: messages.exportAsDialog.labels.guidelines#</label></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.scale #:</label></div><div class='k-edit-field'><input class='k-checkbox' id='fitWidth' type='checkbox' data-bind='checked: pdf.fitWidth'/><label class='k-checkbox-label' for='fitWidth'>#: messages.exportAsDialog.labels.fit #</label></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.center #:</label></div><div class='k-edit-field'><input class='k-checkbox' id='hCenter' type='checkbox' data-bind='checked: pdf.hCenter'/><label class='k-checkbox-label' for='hCenter'>#: messages.exportAsDialog.labels.horizontally #</label><input class='k-checkbox' id='vCenter' type='checkbox' data-bind='checked: pdf.vCenter'/><label class='k-checkbox-label' for='vCenter'>#: messages.exportAsDialog.labels.vertically #</label></div><div class='k-page-orientation'><span class='k-icon k-i-page-portrait' data-bind='invisible: pdf.landscape'></span><span class='k-icon k-i-page-landscape' data-bind='visible: pdf.landscape'></span></div></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: apply'>#: messages.save #</button><button class='k-button' data-bind='click: close'>#: messages.cancel #</button></div>"
},apply:function(){h.fn.apply.call(this),this.trigger("action",{command:"SaveAsCommand",options:this.viewModel})}}),e.spreadsheet.dialogs.register("exportAs",E),o("modifyMerged","modifyMergedDialog.errorMessage"),o("rangeDisabled","rangeDisabledDialog.errorMessage"),o("intersectsArray","intersectsArrayDialog.errorMessage"),o("overflow","overflowDialog.errorMessage"),o("unsupportedSelection","unsupportedSelectionDialog.errorMessage"),o("incompatibleRanges","incompatibleRangesDialog.errorMessage"),o("noFillDirection","noFillDirectionDialog.errorMessage"),o("duplicateSheetName","duplicateSheetNameDialog.errorMessage"),I=m.extend({options:{width:640,title:"Errors in import",template:"<div class='k-spreadsheet-message-content k-spreadsheet-import-errors'><div class='k--header-message'>We encountered #= errors.length # errors while reading this file.  Please be aware that some formulas might be missing, or contain invalid results.</div><div class='k--errors'><table><thead><tr><th>Context</th><th>Error message</th></tr></thead># for (var i = 0; i < errors.length; ++i) { ## var err = errors[i]; #<tr><td>#: err.context #</td><td>#: err.error #</td></tr># } #</table></div></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: close'>#: messages.okText #</button></div>"}}),e.spreadsheet.dialogs.register("importError",I),M=m.extend({options:{title:a("useKeyboardDialog.title","Copying and pasting"),template:"#: messages.useKeyboardDialog.errorMessage #<div>Ctrl+C #: messages.useKeyboardDialog.labels.forCopy #</div><div>Ctrl+X #: messages.useKeyboardDialog.labels.forCut #</div><div>Ctrl+V #: messages.useKeyboardDialog.labels.forPaste #</div><div class=\"k-action-buttons\"><button class='k-button k-primary' data-bind='click: close'>#= messages.okText #</button></div>"}}),e.spreadsheet.dialogs.register("useKeyboard",M),R=h.extend({options:{title:a("linkDialog.title","Hyperlink"),template:"<div class='k-edit-label'><label>#: messages.linkDialog.labels.url #:</label></div><div class='k-edit-field'><input class='k-textbox' data-bind='value: url' title='#: messages.linkDialog.labels.url #' /></div><div class='k-action-buttons'><button class='k-button k-left' data-bind='click: remove'>#= messages.linkDialog.labels.removeLink #</button><button class='k-button k-primary' data-bind='click: apply'>#= messages.okText #</button><button class='k-button' data-bind='click: cancel'>#= messages.cancel #</button></div>",autoFocus:!1},open:function(t){var n,i,o=this;h.fn.open.apply(o,arguments),n=o.dialog().element,i=e.observable({url:t.link(),apply:function(){/\S/.test(i.url)||(i.url=null),o.trigger("action",{command:"HyperlinkCommand",options:{link:i.url}}),o.close()},remove:function(){i.url=null,i.apply()},cancel:o.close.bind(o)}),e.bind(n,i),n.find("input").focus().on("keydown",function(e){13==e.keyCode?(i.url=l(this).val(),e.stopPropagation(),e.preventDefault(),i.apply()):27==e.keyCode&&(e.stopPropagation(),e.preventDefault(),i.cancel())})}}),e.spreadsheet.dialogs.register("hyperlink",R),F=h.extend({options:{className:"k-spreadsheet-insert-comment",template:"<div class='k-edit-label'><label>#: messages.insertCommentDialog.labels.comment #:</label></div><div class='k-edit-field'><textarea rows='5' class='k-textbox' data-bind='value: comment'></textarea></div><div class='k-action-buttons'>  <button class='k-button k-left' data-bind='click: remove'>#: messages.insertCommentDialog.labels.removeComment #</button>  <button class='k-button k-primary' data-bind='click: apply'>#: messages.okText #</button>  <button class='k-button' data-bind='click: cancel'>#= messages.cancel #</button></div>",title:a("insertCommentDialog.title","Insert comment"),autoFocus:!1,width:450},open:function(t){var n,i,o=this;h.fn.open.apply(o,arguments),n=o.dialog().element,i=e.observable({comment:t.comment(),apply:function(){/\S/.test(i.comment)||(i.comment=null),o.trigger("action",{command:"InsertCommentCommand",options:{value:i.comment}}),o.close()},remove:function(){i.comment=null,i.apply()},cancel:o.close.bind(o)}),e.bind(n,i),n.find("textarea").focus()}}),e.spreadsheet.dialogs.register("insertComment",F),P=h.extend({options:{template:"<div class='k-spreadsheet-insert-image-dialog'>  <label data-bind='style: { background-image: imageUrl },                    css: { k-spreadsheet-has-image: hasImage, k-state-hovered: isHovered },                    events: { dragenter: dragEnter, dragover: stopEvent, dragleave: dragLeave, drop: drop }'>    <div data-bind='text: info'></div>    <input type='file' data-bind='events: { change: change }'           accept='image/png, image/jpeg, image/gif' />  </label></div><div class='k-action-buttons'>  <button class='k-button k-primary' data-bind='enabled: okEnabled, click: apply'>#: messages.okText #</button>  <button class='k-button' data-bind='click: cancel'>#= messages.cancel #</button></div>",title:a("insertImageDialog.title","Insert image"),width:"auto"},open:function(){var t,n,i=this;h.fn.open.apply(i,arguments),t=i.dialog().element,n=e.observable({okEnabled:!1,info:e.spreadsheet.messages.dialogs.insertImageDialog.info,imageUrl:"",hasImage:!1,isHovered:!1,_url:null,_image:null,apply:function(){window.URL.revokeObjectURL(n._url),i.trigger("action",{command:"InsertImageCommand",options:{blob:n._image,width:n._width,height:n._height}}),i.close()},cancel:i.close.bind(i),stopEvent:function(e){e.stopPropagation(),e.preventDefault()},drop:function(e){n.stopEvent(e),n.selectFile(e.originalEvent.dataTransfer.files),n.set("isHovered",!1)},dragEnter:function(e){n.stopEvent(e),n.set("isHovered",!0)},dragLeave:function(e){n.stopEvent(e),n.set("isHovered",!1)},change:function(e){n.selectFile(e.target.files)},selectFile:function(t){var i,o,r;for(o=0;o<t.length;++o)if(/^image\//i.test(t[o].type)){i=t[o];break}n._url&&window.URL.revokeObjectURL(n._url),i?(n._image=i,n._url=window.URL.createObjectURL(i),r=new Image,r.src=n._url,r.onload=function(){n._width=r.width,n._height=r.height,n.set("info",e.spreadsheet.messages.dialogs.insertImageDialog.info),n.set("okEnabled",!0),n.set("imageUrl","url('"+n._url+"')"),n.set("hasImage",!0)}):(n._image=null,n.set("info",e.spreadsheet.messages.dialogs.insertImageDialog.typeError),n.set("okEnabled",!1),n.set("imageUrl",""),n.set("hasImage",!1))}}),e.bind(t,n)}}),e.spreadsheet.dialogs.register("insertImage",P),r.prototype.trans=function(){var t,n=e.spreadsheet.messages.dialogs;for(t=0;t<this.path.length;++t)if(n=n[this.path[t]],!n)return this.def;return n})}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/sheetbinder.min",["kendo.core.min","kendo.data.min","spreadsheet/sheet.min"],e)}(function(){!function(e){var t,n;e.support.browser.msie&&e.support.browser.version<9||(t=function(e){return e},n=e.Class.extend({init:function(t){this.options=e.jQuery.extend({},this.options,t),this.columns=this._normalizeColumns(this.options.columns),this._sheet(),this._dataSource(),this._header(),this._boundRowsCount=0,this.dataSource.fetch()},_sheet:function(){this.sheet=this.options.sheet,this._sheetChangeHandler=this._sheetChange.bind(this),this._sheetDeleteRowHandler=this._sheetDeleteRow.bind(this),this._sheetInsertRowHandler=this._sheetInsertRow.bind(this),this.sheet.bind("change",this._sheetChangeHandler).bind("afterDeleteRow",this._sheetDeleteRowHandler).bind("afterInsertRow",this._sheetInsertRowHandler)},_sheetInsertRow:function(e){void 0!==e.index&&this.dataSource.insert(Math.max(e.index-1,0),{})},_sheetDeleteRow:function(e){var t,n;void 0!==e.index&&(t=this.dataSource,n=t.view()[e.index-1],n&&t.remove(n))},_header:function(){this.sheet.batch(function(){this.columns.forEach(function(e,t){this.sheet.range(0,t).value(e.title)}.bind(this))}.bind(this))},_sheetChange:function(n){var i,o,r,a,s,l,d;n.insertRow||n.deleteRow||n.recalc&&n.ref&&(i=this.dataSource,o=i.view(),r=this.columns,i.reader.model&&(a=i.reader.model.fields),!r.length&&o.length&&(r=Object.keys(o[0].toJSON())),s=r.map(function(n){var i=n.field;return i&&a&&a[i]&&"date"==a[i].type?e.spreadsheet.numberToDate:t}),this._skipRebind=!0,l=this.sheet._grid.normalize(n.ref),d=this.sheet.range(l).values(),l.forEach(function(e){var t,n,a,l,c;for(e=e.toRangeRef(),n=0,a=e.topLeft.row;a<=e.bottomRight.row;a++){for(t=o[a-1],t||(t=i.insert(a-1,{}),o=i.view()),l=0,c=e.topLeft.col;c<=e.bottomRight.col&&c<r.length;c++)t.set(r[c].field,s[c](d[n][l++]));n++}}),this._boundRowsCount=i.view().length,this._skipRebind=!1)},_normalizeColumns:function(e){return e.map(function(e){var t=e.field||e;return{field:t,title:e.title||t}})},_dataSource:function(){var t=this.options,n=t.dataSource;n=Array.isArray(n)?{data:n}:n,this.dataSource&&this._changeHandler?this.dataSource.unbind("change",this._changeHandler):this._changeHandler=this._change.bind(this),this.dataSource=e.data.DataSource.create(n).bind("change",this._changeHandler)},_change:function(){var t,n,i;this._skipRebind||this.sheet.trigger("dataBinding")||(t=this.dataSource.view(),n=this.columns,!n.length&&t.length&&(this.columns=n=this._normalizeColumns(Object.keys(t[0].toJSON())),this._header()),i=n.map(function(t){return e.getter(t.field)}),this.sheet.batch(function(){var e,n,o,r=Math.max(t.length,this._boundRowsCount,this.sheet._grid.rowCount-1);for(e=0;e<r;e++)for(n=0;n<i.length;n++)o=t[e]?i[n](t[e]):null,this.sheet.range(e+1,n).value(o)}.bind(this)),this._boundRowsCount=t.length,this.sheet.trigger("dataBound"))},destroy:function(){this.dataSource.unbind("change",this._changeHandler),this.sheet.unbind("change",this._sheetChangeHandler).unbind("deleteRow",this._sheetDeleteRowHandler).unbind("insertRow",this._sheetInsertRowHandler)},options:{columns:[]}}),e.spreadsheet.SheetDataSourceBinder=n)}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/filtermenu.min",["kendo.core.min","kendo.popup.min","kendo.treeview.min","kendo.numerictextbox.min","kendo.datepicker.min","kendo.datetimepicker.min"],e)}(function(){!function(e){function t(e){var t,n={},i=[];for(t=0;t<e.length;t++)n[e[t].value]?!n[e[t].value].checked&&e[t].checked&&(n[e[t].value].checked=!0):(n[e[t].value]=e[t],i.push(e[t]));return i}function n(t,i){var o,r,a,s,l,d,c=!1,u=t instanceof e.data.HierarchicalDataSource&&t.data(),h=this,p=this.values;for(o=0;o<u.length;o++)r=u[o],a=(""+r.text).toLowerCase(),s=i===!0||""===i||a.indexOf(i)>=0,l=n.bind(h),d=l(r.children,i),c=c||d||s,r.hidden=!s&&!d,i.length||p&&!p.length?r.checked=!r.hidden:p&&p.indexOf(r.text)!=-1&&(r.checked=!0);return u&&t.filter({field:"hidden",operator:"neq",value:!0}),c}function i(t){var n,o,r=t instanceof e.data.HierarchicalDataSource&&t.data();for(n=0;n<r.length;n++)o=r[n],o.checked=!1,o.hasChildren&&i(o.children)}function o(t){var n,i,o=e.spreadsheet.messages.filterMenu.operators,r=[];for(n in t)if(t.hasOwnProperty(n))for(i in t[n])t[n].hasOwnProperty(i)&&r.push({text:o[n][i],value:i,unique:n+"_"+i,type:n});return r}var r,a,s,l,d,c,u,h;e.support.browser.msie&&e.support.browser.version<9||(r=e.jQuery,a=e.ui.Widget,s={details:"k-details",button:"k-button",detailsSummary:"k-details-summary",detailsContent:"k-details-content",icon:"k-icon",iconCollapse:"k-i-arrow-45-down-right",iconExpand:"k-i-arrow-60-right",iconSearch:"k-i-zoom",textbox:"k-textbox",wrapper:"k-spreadsheet-filter-menu",filterByCondition:"k-spreadsheet-condition-filter",filterByValue:"k-spreadsheet-value-filter",valuesTreeViewWrapper:"k-spreadsheet-value-treeview-wrapper",actionButtons:"k-action-buttons"},e.spreadsheet.messages.filterMenu={all:"All",sortAscending:"Sort range A to Z",sortDescending:"Sort range Z to A",filterByValue:"Filter by value",filterByCondition:"Filter by condition",apply:"Apply",search:"Search",addToCurrent:"Add to current selection",clear:"Clear",blanks:"(Blanks)",operatorNone:"None",and:"AND",or:"OR",operators:{string:{contains:"Text contains",doesnotcontain:"Text does not contain",startswith:"Text starts with",endswith:"Text ends with",matches:"Text matches",doesnotmatch:"Text does not match"},date:{eq:"Date is",neq:"Date is not",lt:"Date is before",gt:"Date is after"},number:{eq:"Is equal to",neq:"Is not equal to",gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"}}},l=a.extend({init:function(t,n){a.fn.init.call(this,t,n),this.element.addClass(h.classNames.details),this._summary=this.element.find("."+h.classNames.detailsSummary).on("click",this._toggle.bind(this));var i=n.expanded?h.classNames.iconCollapse:h.classNames.iconExpand;this._icon=r("<span />",{"class":h.classNames.icon+" "+i}).prependTo(this._summary),this._container=e.wrap(this._summary.next(),!0),n.expanded||this._container.hide()},options:{name:"Details"},events:["toggle"],visible:function(){return this.options.expanded},toggle:function(t){var n=e.fx(this._container).expand("vertical");n.stop()[t?"reverse":"play"](),this._icon.toggleClass(h.classNames.iconExpand,t).toggleClass(h.classNames.iconCollapse,!t),this.options.expanded=!t},_toggle:function(){var e=this.visible();this.toggle(e),this.trigger("toggle",{show:e})}}),e.data.binders.spreadsheetFilterValue=e.data.Binder.extend({init:function(t,n,i){e.data.Binder.fn.init.call(this,t,n,i),this._change=r.proxy(this.change,this),r(this.element).on("change",this._change)},refresh:function(){var e=this,t=e.bindings.spreadsheetFilterValue.get();r(e.element).val(t instanceof Date?"":t)},change:function(){var e=this.element.value;this.bindings.spreadsheetFilterValue.set(e)}}),e.data.binders.widget.spreadsheetFilterValue=e.data.Binder.extend({init:function(t,n,i){e.data.Binder.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=r.proxy(this.change,this),this.widget.first("change",this._change)},refresh:function(){var e=this.bindings.spreadsheetFilterValue,t=e.get(),n=r(this.widget.element).data("filterType");this.widget.value("date"===n&&t instanceof Date||"number"===n&&!isNaN(t)?t:null)},change:function(){var e=this.widget.value(),t=this.bindings.spreadsheetFilterValue;t.set(e)}}),d={filterByValue:"<div class='"+s.detailsSummary+"'>#= messages.filterByValue #</div><div class='"+s.detailsContent+"'><div class='k-textbox k-space-right'><input placeholder='#= messages.search #' data-#=ns#bind='events: { input: filterValues }' /><span class='k-icon k-i-zoom'></span></div><div data-#=ns#bind='visible: hasActiveSearch'><input class='k-checkbox' type='checkbox' data-#=ns#bind='checked: appendToSearch' id='_#=guid#'/><label class='k-checkbox-label' for='_#=guid#'>#= messages.addToCurrent #</label></div><div class='"+s.valuesTreeViewWrapper+"'><div data-#=ns#role='treeview' data-#=ns#checkboxes='{ checkChildren: true }' data-#=ns#bind='source: valuesDataSource, events: { check: valuesChange, select: valueSelect }' ></div></div></div>",filterByCondition:"<div class='"+s.detailsSummary+"'>#= messages.filterByCondition #</div><div class='"+s.detailsContent+'\'><div><select data-#=ns#role="dropdownlist"data-#=ns#bind="value: operator, source: operators, events: { change: operatorChange } "data-value-primitive="false"data-option-label="#=messages.operatorNone#"data-height="auto"data-text-field="text"data-value-field="unique"></select></div><div data-#=ns#bind="visible: isString"><input data-filter-type="string" data-#=ns#bind="spreadsheetFilterValue: customFilter.criteria[0].value" class="k-textbox" /></div><div data-#=ns#bind="visible: isNumber"><input data-filter-type="number" data-#=ns#role="numerictextbox" data-#=ns#bind="spreadsheetFilterValue: customFilter.criteria[0].value" /></div><div data-#=ns#bind="visible: isDate"><input data-filter-type="date" data-#=ns#role="datepicker" data-#=ns#bind="spreadsheetFilterValue: customFilter.criteria[0].value" /></div></div>',menuItem:"<li data-command='#=command#' data-dir='#=dir#'><span class='k-icon k-i-#=iconClass#'></span>#=text#</li>",actionButtons:"<button data-#=ns#bind='click: apply' class='k-button k-primary'>#=messages.apply#</button><button data-#=ns#bind='click: clear' class='k-button'>#=messages.clear#</button>"},c=e.spreadsheet.FilterMenuViewModel=e.data.ObservableObject.extend({valuesChange:function(t){var n=t?t.sender.dataSource:this.valuesDataSource,i=function(e){return e.checked},o=function(t){return"date"===t.dataType?e.spreadsheet.dateToNumber(t.value):t.value},r=function(e,t,n){return n.lastIndexOf(e)===t},a=n.data(),s=a.toJSON()[0].items,l=s.filter(function(e){return"blank"===e.dataType});l=!!l.length&&l[0].checked,s=s.filter(i).map(o),this.appendToSearch&&this.valueFilter&&this.valueFilter.values.length&&(s=s.concat(this.valueFilter.values.toJSON()).sort().filter(r)),this.set("valueFilter",{values:s,blanks:l})},valueSelect:function(e){e.preventDefault();var t=e.sender.dataItem(e.node);t.set("checked",!t.checked)},hasActiveSearch:!1,appendToSearch:!1,filterValues:function(e){var t,o="string"==typeof e?e:r(e.target).val().toLowerCase(),a=this.valuesDataSource;this.set("hasActiveSearch",!!o),t=n.bind(this.valueFilter),i(a),t(a,o)},reset:function(){this.set("customFilter",{logic:"and",criteria:[{operator:null,value:null}]}),this.set("valueFilter",{values:[]})},operatorChange:function(e){var t=e.sender.dataItem();this.set("operatorType",t.type),this.get("customFilter")||this.reset(),this.set("customFilter.criteria[0].operator",t.value)},isNone:function(){return void 0===this.get("operatorType")},isString:function(){return"string"===this.get("operatorType")},isNumber:function(){return"number"===this.get("operatorType")},isDate:function(){return"date"===this.get("operatorType")}}),u=e.spreadsheet.FilterMenuController={valuesTree:function(t,n){return[{text:e.spreadsheet.messages.filterMenu.all,expanded:!0,checked:!1,items:this.values(t.resize({top:1}),n)}]},values:function(n,i){var o=[],r=e.spreadsheet.messages.filterMenu,a=n.column(i),s=n.sheet();return a.forEachCell(function(t,n,i){var a,l,d,c=!0;s.isHiddenRow(t)&&(c=!1),a=i.value,l=i.dataType,d=i.text,l=void 0===a?"blank":i.format?e.spreadsheet.formatting.type(a,i.format):typeof a,d=null!==a&&i.format?e.spreadsheet.formatting.text(a,i.format):"blank"==l?r.blanks:a,"percent"!==l&&"currency"!==l||(l="number"),"date"===l&&(a=e.spreadsheet.numberToDate(a)),o.push({dataType:l,value:a,text:d,checked:c})}),o=t(o),o.sort(function(e,t){return e.dataType===t.dataType?0:"blank"===e.dataType||"blank"===t.dataType?"blank"===e.dataType?-1:1:"number"===e.dataType||"number"===t.dataType?"number"===e.dataType?-1:1:"date"===e.dataType||"date"===t.dataType?"date"===e.dataType?-1:1:0}),o},filterType:function(e,t){var n,i,o,r=e.sheet(),a=this.filterForColumn(t,r);return a=a&&a.filter.toJSON(),a&&"custom"==a.filter&&(i=a.criteria[0].value,i instanceof Date?n="date":"string"==typeof i?n="string":"number"==typeof i&&(n="number")),n||(o=this.values(e.row(1),t)[0],n=o&&o.dataType,"blank"==n&&(n=null)),n},filterForColumn:function(e,t){var n,i=t.filter();return i&&(n=i.columns.filter(function(t){return t.index===e})[0]),n},filter:function(e,t){var n,i,o,r,a=this.filterForColumn(e,t);if(a)return n=a.filter.toJSON(),i=n.filter,delete n.filter,o={type:i,options:n},r=n.criteria,r&&r.length&&(o.operator=r[0].operator),o}},h=a.extend({init:function(e,t){a.call(this,e,t),this.element.addClass(h.classNames.wrapper),this.viewModel=new c({active:"value",operator:null,operators:o(this.options.operators),clear:this.clear.bind(this),apply:this.apply.bind(this)}),this._filterInit(),this._popup(),this._sort(),this._filterByCondition(),this._filterByValue(),this._actionButtons()},options:{name:"FilterMenu",column:0,range:null,operators:{string:{contains:"Text contains",doesnotcontain:"Text does not contain",startswith:"Text starts with",endswith:"Text ends with",matches:"Text matches",doesnotmatch:"Text does not match"},date:{eq:"Date is",neq:"Date is not",lt:"Date is before",gt:"Date is after"},number:{eq:"Is equal to",neq:"Is not equal to",gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"}}},events:["action"],destroy:function(){a.fn.destroy.call(this),this.menu.destroy(),this.valuesTreeView.destroy(),this.popup.destroy()},openFor:function(e){this.popup.setOptions({anchor:e}),this.popup.open()},close:function(){this.popup.close()},clear:function(){this.action({command:"ClearFilterCommand",options:{column:this.options.column}}),this.viewModel.reset(),this.close()},apply:function(){var e,t,n;this._active(),e={operatingRange:this.options.range,column:this.options.column},"value"===this.viewModel.active?(this.viewModel.valuesChange({sender:this.valuesTreeView}),t=this.viewModel.valueFilter.toJSON(),(t.blanks||t.values&&t.values.length)&&(e.valueFilter=t)):"custom"===this.viewModel.active&&(n=this.viewModel.customFilter.toJSON(),n.criteria.length&&null!==n.criteria[0].value&&(e.customFilter=n)),(e.valueFilter||e.customFilter)&&this.action({command:"ApplyFilterCommand",options:e})},action:function(e){this.trigger("action",r.extend({},e))},_filterInit:function(){var e,t=this.options.column,n=this.options.range,i=n.sheet(),o=u.filter(t,i);o?(e=u.filterType(n,t),this.viewModel.set("active",o.type),this.viewModel.set(o.type+"Filter",o.options),"custom"==o.type&&(this.viewModel.set("operator",e+"_"+o.operator),this.viewModel.set("operatorType",e))):this.viewModel.reset()},_popup:function(){this.popup=this.element.kendoPopup({copyAnchorStyles:!1}).data("kendoPopup")},_sort:function(){var t=e.template(h.templates.menuItem),n=e.spreadsheet.messages.filterMenu,i=[{command:"sort",dir:"asc",text:n.sortAscending,iconClass:"sort-asc"},{command:"sort",dir:"desc",text:n.sortDescending,iconClass:"sort-desc"}],o=r("<ul></ul>",{html:e.render(t,i)}).appendTo(this.element);this.menu=o.kendoMenu({orientation:"vertical",select:function(e){var t=r(e.item).data("dir"),n=this.options.range.resize({top:1}),i={value:t,sheet:!1,operatingRange:n,column:this.options.column};this.action({command:"SortCommand",options:i})}.bind(this)}).data("kendoMenu")},_appendTemplate:function(t,n,i,o){var a=e.template(t),s=r("<div class='"+n+"'/>").html(a({messages:e.spreadsheet.messages.filterMenu,guid:e.guid(),ns:e.ns}));return this.element.append(s),i&&(i=new l(s,{expanded:o,toggle:this._detailToggle.bind(this)})),e.bind(s,this.viewModel),s},_detailToggle:function(e){this.element.find("[data-role=details]").not(e.sender.element).data("kendoDetails").toggle(!e.show)},_filterByCondition:function(){var e="custom"===this.viewModel.active;this._appendTemplate(h.templates.filterByCondition,h.classNames.filterByCondition,!0,e)},_filterByValue:function(){var t,n="value"===this.viewModel.active,i=this._appendTemplate(h.templates.filterByValue,h.classNames.filterByValue,!0,n);this.valuesTreeView=i.find("[data-role=treeview]").data("kendoTreeView"),t=u.valuesTree(this.options.range,this.options.column),this.viewModel.set("valuesDataSource",new e.data.HierarchicalDataSource({data:t}))},_actionButtons:function(){this._appendTemplate(h.templates.actionButtons,h.classNames.actionButtons,!1)},_active:function(){var e=this.element.find("[data-role=details]").filter(function(e,t){return r(t).data("kendoDetails").visible()});e.hasClass(h.classNames.filterByValue)?this.viewModel.set("active","value"):e.hasClass(h.classNames.filterByCondition)&&this.viewModel.set("active","custom")}}),e.spreadsheet.FilterMenu=h,r.extend(!0,h,{classNames:s,templates:d}))}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/editor.min",["kendo.core.min"],e)}(function(){!function(e){function t(e,t){return e&&(e.top!==t.top||e.left!==t.left)}if(!(e.support.browser.msie&&e.support.browser.version<9)){var n=e.Observable.extend({init:function(t){e.Observable.fn.init.call(this),this.view=t,this.formulaBar=t.formulaBar,this._active=!1,this.barInput=t.formulaBar.formulaInput,this.cellInput=t.formulaInput,this.barInput.syncWith(this.cellInput),this.cellInput.syncWith(this.barInput),this.barInput.bind("keyup",this._triggerUpdate.bind(this)),this.cellInput.bind("keyup",this._triggerUpdate.bind(this)),this.barInput.bind("blur",this._blur.bind(this)),this.cellInput.bind("blur",this._blur.bind(this))},events:["activate","deactivate","change","update"],_blur:function(){this.deactivate()},_triggerUpdate:function(){this.trigger("update",{value:this.value()})},activeEditor:function(){var t=null,n=e._activeElement();return this.barElement()[0]===n?t=this.barInput:this.cellElement()[0]===n&&(t=this.cellInput),t},activate:function(e){return this._active=!0,this._rect=e.rect,this._range=e.range,this.cellInput.position(e.rect),this.cellInput.resize(e.rect),this.cellInput.tooltip(e.tooltip),this.cellInput.activeCell=this.barInput.activeCell=this._range.topLeft(),this.cellInput.activeSheet=this.barInput.activeSheet=this._range._sheet,this.trigger("activate"),this},deactivate:function(e){var t=this.cellInput;this._active&&(this._active=!1,e||t.value()==this._value||this.trigger("change",{value:t.value(),range:this._range}),this._rect=null,t.hide(),this.trigger("deactivate"))},enable:function(e){this.barInput.enable(e),this.cellInput.enable(e)},barElement:function(){return this.barInput.element},cellElement:function(){return this.cellInput.element},focus:function(e){e=e||"cell","cell"===e?(this.cellInput.element.focus(),this.cellInput.end()):this.barInput.element.focus()},isActive:function(){return this._active},isFiltered:function(){return this.barInput.popup.visible()||this.cellInput.popup.visible()},canInsertRef:function(e){var t=this.activeEditor();return t&&t.canInsertRef(e)},highlightedRefs:function(){var e=this.activeEditor(),t=[];return e&&(t=e.highlightedRefs()),t},scale:function(){this.cellInput.scale()},toggleTooltip:function(e){this.cellInput.toggleTooltip(t(this._rect,e))},value:function(e,t){return void 0===e?this.barInput.value():(null===e&&(e=""),this._value=e,this.barInput.value(e),this.cellInput.value(e),void this.barInput.element.toggleClass("k-spreadsheet-array-formula",!!t))},insertNewline:function(){this.activeEditor().insertNewline(),this.scale()},select:function(){this.activeEditor().select()}});e.spreadsheet.SheetEditor=n}}(kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/autofill.min",["spreadsheet/runtime.min","spreadsheet/range.min"],e)}(function(){"use strict";function e(e){var t,n,i,o,r,a=e.length,s=(a+1)/2,l=e.reduce(function(e,t){return e+t},0)/a,d=0,c=0;for(t=0;t<a;t++)n=t+1-s,i=e[t]-l,d+=n*i,c+=n*n;return c?(o=d/c,r=l-o*s,function(e){return r+o*(e+1)}):function(t){return e[t%e.length]}}function t(t){function o(e){var t,n=e[1]-e[0];for(t=2;t<e.length;++t)if(e[t]-e[t-1]!=n)return null;return n}function r(e){return e.map(function(e){return e.number})}var a=[],s=t.map(function(e){return e.formula||e.value});return i(s,function(t,n,i,l){var d,c,u,h,p;for("number"==i?(c=r(l),d=e(c)):"string"==i||"formula"==i||"boolean"==i?d=function(e,t){return s[t]}:Array.isArray(i)?1==l.length?d=function(e){return i[(l[0].number+e)%i.length]}:(u=o(r(l)),d=null==u?function(e){return l[e%l.length].value}:function(e){var t=l[0].number+u*e;return i[t%i.length]}):"null"!=i?(c=r(l),1==c.length&&c.push(c[0]+1),c=e(c),d=function(e,t){return s[t].replace(/^(.*\D)\d+/,"$1"+c(e,t))}):d=function(){return null},h={f:d,begin:t,end:n,len:n-t},p=t;p<n;++p)a[p]=h}),function(e,i){var o=a[i],r=e/s.length|0,l=e%s.length,d=r*o.len+l-o.begin,c=o.f(d,i),h=n(t[i]);return delete h.enable,c instanceof u?h.formula=c:h.value=c,h}}function n(e){var t={};return Object.keys(e||{}).forEach(function(n){t[n]=e[n]}),t}function i(e,t){var n,i,r=null,a=0,s=[];for(i=0;i<e.length;++i)n=o(e[i]),s.push(n),null!=r&&n.type!==r.type&&(t(a,i,r.type,s.slice(a,i)),a=i),r=n;t(a,i,r.type,s.slice(a,i))}function o(e){var t,n;if("number"==typeof e)return{type:"number",number:e};if("string"==typeof e)return(t=a(e))?t:(n=/^(.*\D)(\d+)/.exec(e),n?(e=e.replace(/^(.*\D)\d+/,"$1-######"),{type:e,match:n,number:parseFloat(n[2])}):{type:"string"});if("boolean"==typeof e)return{type:"boolean"};if(null==e)return{type:"null"};if(e instanceof u)return{type:"formula"};throw window.console.error(e),Error("Cannot fill data")}function r(){var e=kendo.culture();return[e.calendars.standard.days.namesAbbr,e.calendars.standard.days.names,e.calendars.standard.months.namesAbbr,e.calendars.standard.months.names]}function a(e){var t,n,i,o,a=e.toLowerCase(),s=r();for(t=0;t<s.length;++t)for(n=s[t],i=n.length;--i>=0;)if(o=n[i].toLowerCase(),o==a)return{type:n,number:i,value:e}}function s(e){var t,n,i=e.length,o=e[0].length,r=[];for(t=0;t<o;++t)for(r[t]=[],n=0;n<i;++n)r[t][n]=e[n][t];return r}var l,d,c,u,h,p,f;kendo.support.browser.msie&&kendo.support.browser.version<9||(l=kendo.spreadsheet,d=l.Range,c=l.calc.runtime,u=c.Formula,h="incompatibleRanges",p="noFillDirection",f=d.FillError=function(e){this.code=e},d.prototype._previewFillFrom=function(e,n){var i,o,r,a,l,d,c,u,m,g,v,_,b,w,k,y,x=this,C=x._sheet;if("string"==typeof e&&(e=C.range(e)),i=e._ref.toRangeRef().clone().setSheet(C.name()),o=x._ref.toRangeRef().clone().setSheet(C.name()),i.intersects(o)){if(i.eq(o))return null;if(o=o.clone(),i.topLeft.eq(o.topLeft))if(i.width()==o.width())o.topLeft.row+=i.height(),n=0;else{if(i.height()!=o.height())throw new f(h);o.topLeft.col+=i.width(),n=1}else{if(!i.bottomRight.eq(o.bottomRight))throw new f(h);if(i.width()==o.width())o.bottomRight.row-=i.height(),n=2;else{if(i.height()!=o.height())throw new f(h);o.bottomRight.col-=i.width(),n=3}}return C.range(o)._previewFillFrom(e,n)}if(null==n)if(i.topLeft.col==o.topLeft.col)n=i.topLeft.row<o.topLeft.row?0:2;else{if(i.topLeft.row!=o.topLeft.row)throw new f(p);n=i.topLeft.col<o.topLeft.col?1:3}if(r=1&n,a=2&n,r&&i.height()!=o.height()||!r&&i.width()!=o.width())throw new f(h);for(l=e._properties(),r?d=o.width():(l=s(l),d=o.height()),c=Array(l.length),u=null,m=0;m<l.length;++m)for(g=l[m],v=t(g),_=c[m]=Array(d),b=0;b<d;++b)w=a?-b-1:g.length+b,k=a?g.length-b%g.length-1:b%g.length,y=_[a?d-b-1:b]=v(w,k),null!=y.value&&(u=y.value);return r||(c=s(c)),{props:c,direction:n,dest:x,hint:u}},d.prototype.fillFrom=function(e,t){var n=this._previewFillFrom(e,t);return n.dest._properties(n.props,!0),n.dest})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/nameeditor.min",["kendo.core.min"],e)}(function(){!function(e){var t,n,i;e.support.browser.msie&&e.support.browser.version<9||(t=e.jQuery,n={input:"k-spreadsheet-name-editor",list:"k-spreadsheet-name-list"},i=e.ui.Widget.extend({init:function(i,o){var r,a,s;e.ui.Widget.call(this,i,o),i.addClass(n.input),r=o.messages.nameBox||"Name Box",a=new e.data.DataSource({transport:{read:function(t){var n=[];this._workbook.forEachName(function(t){!t.hidden&&t.value instanceof e.spreadsheet.Ref&&n.push({name:t.name})}),t.success(n)}.bind(this),cache:!1}}),s=t("<input />").attr("title",r).attr("aria-label",r),this.combo=s.appendTo(i).kendoComboBox({clearButton:!1,dataTextField:"name",dataValueField:"name",template:"#:data.name#<a role='button' class='k-button-delete' href='\\#'><span class='k-icon k-i-close'></span></a>",dataSource:a,autoBind:!1,ignoreCase:!0,change:this._on_listChange.bind(this),noDataTemplate:"<div></div>",open:function(){a.read()}}).getKendoComboBox(),this.combo.input.on("keydown",this._on_keyDown.bind(this)).on("focus",this._on_focus.bind(this)),this.combo.popup.element.addClass("k-spreadsheet-names-popup").on("mousemove",function(e){e.stopPropagation()}).on("click",".k-button-delete",function(e){e.preventDefault(),e.stopPropagation();var n=t(e.target).closest(".k-item");n=this.combo.dataItem(n),this._deleteItem(n.name)}.bind(this))},value:function(e){return void 0===e?this.combo.value():void this.combo.value(e)},_deleteItem:function(e){this.trigger("delete",{name:e})},_on_keyDown:function(e){switch(e.keyCode){case 27:this.combo.value(this._prevValue),this.trigger("cancel");break;case 13:this.trigger("enter")}},_on_focus:function(){this._prevValue=this.combo.value()},_on_listChange:function(){var e=this.combo.value();
e&&this.trigger("select",{name:e})}}),e.spreadsheet.NameEditor=i)}(window.kendo)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("spreadsheet/print.min",["kendo.pdf.min","spreadsheet/sheet.min","spreadsheet/range.min","spreadsheet/references.min","spreadsheet/numformat.min","util/text-metrics.min"],e)}(function(){"use strict";function e(e,t,n,i,o){var r=0,a=[],s=t,l=0;return t&&n&&(n*=t),e.forEach(function(e,d){null!=i&&d<i&&(l+=e),t&&r+e>s&&(s-r<n&&(r=t*Math.ceil(r/t)+l,l>0&&o.push(r-l)),s+=t*Math.ceil(e/t)),a.push(r),r+=e}),a.push(r),a}function t(t,i,d){var c,u,h,p,f,m,g,v,_,w,k,y,x,C,S,T,D,A,E=t._grid;return i=E.normalize(i),c=E.rectangle(i),u=[],t._drawings.forEach(function(e){var n=t.drawingBoundingBox(e);n.intersects(c)&&u.push({drawing:e,box:n.offset(-c.left,-c.top)})}),h=[],p=[],f=[],m=t._getMergedCells(i),g=-1,v=-1,t.forEach(i,function(e,n,o){var r,s,l,c=e-i.topLeft.row,_=n-i.topLeft.col,w=t.rowHeight(e),k=t.columnWidth(n);d.forScreen||(o.drawings=u.filter(function(i){var o=i.drawing.topLeftCell;if(o&&o.row==e&&o.col==n)return g=Math.max(g,t._rows.index(i.box.bottom)),v=Math.max(v,t._columns.index(i.box.right)),!0})),_||p.push(w),c||f.push(k),!t.isHiddenColumn(n)&&!t.isHiddenRow(e)&&w&&k&&(r=d.forScreen||a(o),(d.emptyCells||r)&&(s=new b(e,n).print(),m.secondary[s]||(r?(g=Math.max(g,c),v=Math.max(v,_)):o.empty=!0,o.row=c,o.col=_,l=m.primary[s],l?(delete m.primary[s],o.merged=!0,o.rowspan=l.height(),o.colspan=l.width(),d.forScreen&&(o.width=t._columns.sum(l.topLeft.col,l.bottomRight.col),o.height=t._rows.sum(l.topLeft.row,l.bottomRight.row))):(o.rowspan=1,o.colspan=1),h.push(o))))}),p=p.slice(0,g+1),f=f.slice(0,v+1),_=d.pageWidth,w=d.pageHeight,k=d.scale||1,d.fitWidth&&(y=f.reduce(o,0),y>_&&(k=_/y)),_=Math.ceil(_/k),w=Math.ceil(w/k),x=[],C=e(p,w||0,d.maxEmpty,d.headerRows,x),S=e(f,_||0,d.maxEmpty),T=0,D=0,A=[],h=h.filter(function(e){return(!e.empty||!(e.row>g||e.col>v))&&(d.headerRows&&e.row<d.headerRows&&A.push(e),e.left=S[e.col],e.top=C[e.row],e.merged?d.forScreen?(e.right=e.left+e.width,e.bottom=e.top+e.height):(e.right=r(S,e.col+e.colspan),e.bottom=r(C,e.row+e.rowspan),e.width=e.right-e.left,e.height=e.bottom-e.top):(e.width=f[e.col],e.height=p[e.row],e.bottom=e.top+e.height,e.right=e.left+e.width),d.forScreen||e.drawings.forEach(function(t){var n=t.box;n.left=e.left+t.drawing.offsetX,n.top=e.top+t.drawing.offsetY,n.right=n.left+n.width,n.bottom=n.top+n.height}),T=Math.max(T,e.right),D=Math.max(D,e.bottom),!0)}),Object.keys(m.primary).forEach(function(e){var n=m.primary[e];t.forEach(n.topLeft.toRangeRef(),function(e,o,r){var a=e-i.topLeft.row,s=o-i.topLeft.col;r.merged=!0,r.colspan=n.width(),r.rowspan=n.height(),r.top=a<0?-t._rows.sum(e,e-a-1):C[a],r.left=s<0?-t._columns.sum(o,o-s-1):S[s],r.height=t._rows.sum(n.topLeft.row,n.bottomRight.row),r.width=t._columns.sum(n.topLeft.col,n.bottomRight.col),r.height>0&&r.width>0&&(r.right=r.left+r.width,r.bottom=r.top+r.height,r.row=a,r.col=s,h.push(r))})}),d.headerRows&&(x.forEach(function(e){A.forEach(function(t){t=n(t),t.top+=e,t.bottom=t.top+t.height,h.push(t)}),C.push(e)}),C.sort(l)),{width:T,height:D,cells:h.sort(s),scale:k,xCoords:S,yCoords:C,drawings:u}}function n(e,t){return t||(t={}),Object.assign?Object.assign(t,e):Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)}function i(e,t){return e.size===t.size&&e.color===t.color}function o(e,t){return e+t}function r(e,t){return t<e.length?e[t]:e[e.length-1]}function a(e){return null!=e.value||e.merged||null!=e.background||null!=e.borderRight||null!=e.borderBottom||null!=e.validation&&!e.validation.value||e.drawings&&e.drawings.length}function s(e,t){return e.top<t.top?-1:e.top==t.top?e.left<t.left?-1:e.left==t.left?0:1:1}function l(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,i){function o(o,r){function a(e){return!(e.right<=v||e.left>=_||e.bottom<=b||e.top>=k)&&(C=Math.max(e.bottom,C),S=Math.max(e.right,S),!0)}var s,l,h,p,f,m,v=r*d,_=v+d,b=o*u,k=b+u,C=0,S=0,T=t.cells.filter(a),D=t.drawings.filter(function(e){return a(e.box)});C=Math.min(C,k),S=Math.min(S,_),(T.length||D.length)&&(s=new w.Group,n.append(s),l=new w.Group,s.append(l),l.clip(w.Path.fromRect(new y.Rect([v-1,b-1],[S+1,C+1]))),h=y.Matrix.scale(t.scale,t.scale).multiplyCopy(y.Matrix.translate(-v,-b)),(i.hCenter||i.vCenter)&&(h=h.multiplyCopy(y.Matrix.translate(i.hCenter?(_-S)/2:0,i.vCenter?(k-C)/2:0))),l.transform(h),i.guidelines&&(p=null,t.xCoords.forEach(function(e){e=Math.min(e,S),e!==p&&e>=v&&e<=_&&(p=e,l.append((new w.Path).moveTo(e,b).lineTo(e,C).close().stroke(i.guideColor,x)))}),p=null,t.yCoords.forEach(function(e){e=Math.min(e,C),e!==p&&e>=b&&e<=k&&(p=e,l.append((new w.Path).moveTo(v,e).lineTo(S,e).close().stroke(i.guideColor,x)))})),f=g(),T.forEach(function(t){c(t,l,i),f.add(t,e)}),m=new w.Group,f.vert.forEach(function(e){e.forEach(function(e){e.rendered||(e.rendered=!0,m.append((new w.Path).moveTo(e.x,e.top).lineTo(e.x,e.bottom).close().stroke(e.color,e.size)))})}),f.horiz.forEach(function(e){e.forEach(function(e){e.rendered||(e.rendered=!0,m.append((new w.Path).moveTo(e.left,e.y).lineTo(e.right,e.y).close().stroke(e.color,e.size)))})}),l.append(m),D.forEach(function(t){var n,i,o=t.drawing,r=o.image;null!=r&&(n=t.box,i=e._workbook.imageUrl(r),l.append(new w.Image(i,new y.Rect([n.left,n.top],[n.width,n.height])).opacity(o.opacity)))}))}var r,a,s=Math.ceil(t.width/i.pageWidth),l=Math.ceil(t.height/i.pageHeight),d=Math.ceil(i.pageWidth/t.scale),u=Math.ceil(i.pageHeight/t.scale);for(r=0;r<l;++r)for(a=0;a<s;++a)o(r,a)}function c(e,t,n){var i,o,r,a,s,l,d,c=new w.Group;if(t.append(c),i=new y.Rect([e.left,e.top],[e.width,e.height]),(e.background||e.merged)&&(o=i,n.guidelines&&(o=i.clone(),o.origin.x+=x/2+.1,o.origin.y+=x/2+.1,o.size.width-=x+.2,o.size.height-=x+.2),c.append(new w.Rect(o).fill(e.background||"#fff").stroke(null))),r=e.value,null!=r){if(a="number"==typeof r?"number":null,s=new w.Group,s.clip(w.Path.fromRect(i)),c.append(s),d=e.format,d||"number"!=a||r==Math.floor(r)||(d="0.##############"),d?(l=k.textAndColor(r,d),r=l.text,l.type&&(a=l.type)):r+="",!e.textAlign)switch(a){case"number":case"date":case"percent":case"currency":e.textAlign="right";break;case"boolean":e.textAlign="center"}h(r,l&&l.color||e.color||"#000",e,s)}}function u(e,t){if(e.indent){var n=1.4*e.indent;switch(t.textAlign){case null:case"left":t.paddingLeft=n+"ch";break;case"right":t.paddingRight=n+"ch";break;case"center":t.paddingLeft=n/2+"ch",t.paddingRight=n/2+"ch"}}}function h(e,t,n,i){var o,r;switch(C||(C=document.createElement("div"),C.style.position="fixed",C.style.left="0px",C.style.top="0px",C.style.visibility="hidden",C.style.overflow="hidden",C.style.boxSizing="border-box",C.style.lineHeight="normal",document.body.appendChild(C)),C.firstChild&&C.removeChild(C.firstChild),C.style.padding="2px 4px",C.style.color=t,C.style.font=p(n),C.style.width=n.width+"px",C.style.textAlign=n.textAlign||"left",C.style.textDecoration=n.underline?"underline":"none",u(n,C.style),n.wrap?(C.style.whiteSpace="pre-wrap",C.style.overflowWrap=C.style.wordWrap="break-word"):(C.style.whiteSpace="pre",C.style.overflowWrap=C.style.wordWrap="normal"),C.appendChild(document.createTextNode(e)),o=0,n.verticalAlign){case"center":o=n.height-C.offsetHeight>>1;break;case void 0:case null:case"bottom":o=n.height-C.offsetHeight}o<0&&(o=0),r=kendo.drawing.drawDOM.drawText(C),r.transform(y.Matrix.translate(n.left,n.top+o)),i.append(r)}function p(e){var t=[];return e.italic&&t.push("italic"),e.bold&&t.push("bold"),t.push((e.fontSize||12)+"px"),t.push(e.fontFamily||"Arial"),t.join(" ")}function f(e,n,i,o){var r,a,s,l,c;null==i&&null==o&&(o=n,i={},n=_.SHEETREF),null==o&&(o=i,n instanceof _.Range||n instanceof _.Ref||"string"==typeof n?i={}:(i=n,n=_.SHEETREF)),i=kendo.jQuery.extend({paperSize:"A4",landscape:!0,margin:"1cm",guidelines:!0,guideColor:"#aaa",emptyCells:!0,fitWidth:!1,center:!1,headerRows:null,maxEmpty:.2,scale:1},i),r=new w.Group,a=kendo.pdf.getPaperOptions(i),r.options.set("pdf",{author:i.author,creator:i.creator,date:i.date,keywords:i.keywords,margin:a.margin,multiPage:!0,paperSize:a.paperSize,subject:i.subject,title:i.title}),s=a.paperSize[0],l=a.paperSize[1],a.margin&&(s-=a.margin.left+a.margin.right+1,l-=a.margin.top+a.margin.bottom+1),i.pageWidth=s,i.pageHeight=l,c=t(e,e._ref(n),i),d(e,c,r,i),o(r)}function m(){}function g(){function e(e,i){var o,r;i&&(o=i._properties,r=i._grid,e.borderLeft=o.get("vBorders",r.index(e.row,e.col)),e.borderRight=o.get("vBorders",r.index(e.row,e.col+e.colspan)),e.borderTop=o.get("hBorders",r.index(e.row,e.col)),e.borderBottom=o.get("hBorders",r.index(e.row+e.rowspan,e.col))),e.borderLeft&&t(e.row,e.col,e.borderLeft,e.left,e.top,e.bottom),e.borderRight&&t(e.row,e.col+e.colspan,e.borderRight,e.right,e.top,e.bottom),e.borderTop&&n(e.row,e.col,e.borderTop,e.top,e.left,e.right),e.borderBottom&&n(e.row+e.rowspan,e.col,e.borderBottom,e.bottom,e.left,e.right)}function t(e,t,n,o,a,s){var l=r[t]||(r[t]=new m),d=e>0&&l[e-1];d&&i(d,n)?(l[e]=d,d.bottom=s):l[e]={size:n.size,color:n.color,x:o,top:a,bottom:s}}function n(e,t,n,r,a,s){var l=o[e]||(o[e]=new m),d=t>0&&l[t-1];d&&i(d,n)?(l[t]=d,d.right=s):l[t]={size:n.size,color:n.color,y:r,left:a,right:s}}var o=new m,r=new m;return{add:e,horiz:o,vert:r}}function v(e){function t(e){var t,n;if(null!=e){for(t=12,n=e.length;--n>=0;)t+=o(e.charAt(n));return t}return 0}function i(e){return r?n(e,{borderLeft:r,borderTop:r,borderRight:r,borderBottom:r}):e}var o,r,a=new $.Deferred,s=a.promise();return e=n(e,{dataSource:null,guidelines:!0,guideColor:"#000",columns:null,headerBackground:"#999",headerColor:"#000",oddBackground:null,evenBackground:null,fontFamily:"Arial",fontSize:12,paperSize:"A4",margin:"1cm",landscape:!0,fitWidth:!1,scale:1,rowHeight:20,maxEmpty:1,useGridFormat:!0}),kendo.drawing.pdf.defineFont(kendo.drawing.drawDOM.getFontFaces(document)),o=T(e.fontFamily,e.fontSize),r=e.guidelines?{size:1,color:e.guideColor}:null,e.dataSource.fetch(function(){var n,o,r,s,l,d=e.dataSource.data();return d.length?(n=e.columns.map(function(e){return"string"==typeof e?{title:e,field:e}:e}),o=n.map(function(e){return e.title||e.field}),r=o.map(t),s=d.map(function(o,a){return{cells:n.map(function(n,s){var l=o[n.field];return e.useGridFormat&&(null!=l&&(n.format?l=kendo.format(n.format,l):l+=""),r[s]=Math.max(t(l),r[s])),i({value:l,format:e.useGridFormat?null:n.format,background:a%2?e.evenBackground:e.oddBackground})})}}),s.unshift({cells:o.map(function(t){return i({value:t,background:e.headerBackground,color:e.headerColor})})}),l=new kendo.spreadsheet.Sheet(s.length+1,n.length+1,e.rowHeight,50,20,20,{fontFamily:e.fontFamily,fontSize:e.fontSize,verticalAlign:"center"}),l.fromJSON({name:"Sheet1",rows:s,columns:r.map(function(e,t){return{index:t,width:e}})}),void l.draw({paperSize:e.paperSize,landscape:e.landscape,margin:e.margin,guidelines:!1,scale:e.scale,fitWidth:e.fitWidth,maxEmpty:e.maxEmpty,headerRows:1},a.resolve.bind(a))):a.reject("Empty dataset")}),s}var _,b,w,k,y,x,C,S,T;kendo.support.browser.msie&&kendo.support.browser.version<9||(_=kendo.spreadsheet,b=_.CellRef,w=kendo.drawing,k=_.formatting,y=kendo.geometry,x=.8,_.Sheet.prototype.draw=function(e,t,n){var i=this;i._workbook?i.recalc(i._workbook._context,function(){f(i,e,t,n)}):f(i,e,t,n)},m.prototype={forEach:function(e){Object.keys(this).forEach(function(t){e(this[t],t,this)},this)}},S={},T=function(e,t){var n,i,o,r,a=t+":"+e,s=S[a];if(!s){for(i=document.createElement("div"),i.style.position="fixed",i.style.left="-10000px",i.style.top="-10000px",i.style.fontFamily=e,i.style.fontSize=t+"px",i.style.whiteSpace="pre",o=32;o<128;++o)n=document.createElement("span"),n.appendChild(document.createTextNode(String.fromCharCode(o))),i.appendChild(n);for(document.body.appendChild(i),r={},o=32,n=i.firstChild;o<128&&n;++o,n=n.nextSibling)r[o]=n.offsetWidth;for(;n=i.firstChild;)i.removeChild(n);s=S[a]=function(e){var t=e.charCodeAt(0),o=r[t];return null==o&&(n=document.createElement("span"),n.appendChild(document.createTextNode(String.fromCharCode(t))),i.appendChild(n),o=r[t]=n.offsetWidth,i.removeChild(n)),o}}return s},_.draw={Borders:g,doLayout:t,applyIndent:u},_.drawTabularData=v)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.spreadsheet.min",["util/undoredostack.min","util/text-metrics.min","util/parse-xml.min","kendo.excel.min","kendo.progressbar.min","kendo.pdf.min","spreadsheet/commands.min","spreadsheet/formulabar.min","spreadsheet/formulainput.min","spreadsheet/eventlistener.min","spreadsheet/rangelist.min","spreadsheet/propertybag.min","spreadsheet/references.min","spreadsheet/navigator.min","spreadsheet/axismanager.min","spreadsheet/clipboard.min","spreadsheet/range.min","spreadsheet/sheet.min","spreadsheet/sheetsbar.min","spreadsheet/excel-reader.min","spreadsheet/workbook.min","spreadsheet/formulacontext.min","spreadsheet/controller.min","spreadsheet/view.min","spreadsheet/customeditors.min","spreadsheet/grid.min","spreadsheet/axis.min","spreadsheet/filter.min","spreadsheet/sorter.min","spreadsheet/runtime.min","spreadsheet/calc.min","spreadsheet/numformat.min","spreadsheet/runtime.functions.min","spreadsheet/runtime.functions.2.min","spreadsheet/toolbar.min","spreadsheet/dialogs.min","spreadsheet/sheetbinder.min","spreadsheet/filtermenu.min","spreadsheet/editor.min","spreadsheet/autofill.min","spreadsheet/nameeditor.min","spreadsheet/print.min"],e)}(function(){return function(e,t){var n,i,o,r,a,s,l,d,c,u;e.support.browser.msie&&e.support.browser.version<9||(n=e.jQuery,i=n.extend({F10:121,F11:122,B:66,I:73,U:85,N:78,H:72,A:65,PAGEDOWN:34,PAGEUP:33,DELETE:46,R:82},e.keys),o=e.ui.Widget,r=e.spreadsheet.Workbook,a=e.spreadsheet.Controller,s=e.spreadsheet.View,l=".kendoSpreadsheet",d={recalc:!0,selection:!0,activeCell:!0,layout:!0,sheetSelection:!0,resize:!0,editorChange:!1,editorClose:!1},c={wrapper:"k-widget k-spreadsheet"},u=e.ui.Widget.extend({init:function(e,t){o.fn.init.call(this,e,t),this.element.addClass(u.classNames.wrapper),this._view=new s(this.element,{messages:this.options.messages.view,toolbar:this.options.toolbar,sheetsbar:this.options.sheetsbar}),this._workbook=new r(this.options,this._view),this._controller=new a(this._view,this._workbook),this._autoRefresh=!0,this._bindWorkbookEvents(),this._view.workbook(this._workbook),this._view.enableClipboard(!1),this.refresh(),this._view.enableClipboard(!0),this._resizeHandler=function(){this.resize()}.bind(this),n(window).on("resize"+l,this._resizeHandler),this.element.on("keydown"+l,this._keyDown.bind(this))},_keyDown:function(e){var o,r=e.keyCode,a=n(".k-spreadsheet-quick-access-toolbar [title=Redo]");if(r===i.F11&&e.shiftKey)return this._view.sheetsbar._onAddSelect(),e.preventDefault(),t;if(e.altKey&&r===i.PAGEDOWN)this._view.sheetsbar.trigger("select",{name:this._view.sheetsbar._sheets[this._view.sheetsbar._selectedIndex+1].name(),isAddButton:!1});else if(e.altKey&&r===i.PAGEUP)this._view.sheetsbar.trigger("select",{name:this._view.sheetsbar._sheets[this._view.sheetsbar._selectedIndex-1].name(),isAddButton:!1});else{if(e.altKey&&r===i.DELETE)return o=function(e){var t=e.sender;t.isConfirmed()&&this._view.sheetsbar.trigger("remove",{name:this.activeSheet()._name(),confirmation:!0})}.bind(this),this._view.sheetsbar._openDialog("confirmation",{close:o}),e.preventDefault(),t;if(e.altKey&&r===i.R)return this._view.sheetsbar._createEditor(),e.preventDefault(),t;if(r===i.F10&&this._view.tabstrip||r===i.TAB&&!e.shiftKey&&n(document.activeElement).is(a))return this._view.tabstrip.toolbars[this._view.tabstrip.element.find("li.k-state-active").text().toLowerCase()].element.find(":not(.k-overflow-anchor):kendoFocusable:first").focus(),this._view.tabstrip.toolbars[this._view.tabstrip.element.find("li.k-state-active").text().toLowerCase()].element.find(".k-toolbar-first-visible").addClass("k-state-focused"),e.preventDefault(),t;if(e.ctrlKey&&r===i.B)n("[data-tool=bold]")[0].click();else if(e.ctrlKey&&r===i.I)n("[data-tool=italic]")[0].click();else if(e.ctrlKey&&r===i.U)n("[data-tool=underline]")[0].click();else{if(e.altKey&&r===i.H)return this._view.tabstrip.select(0),e.preventDefault(),t;if(e.altKey&&r===i.N)return this._view.tabstrip.select(1),e.preventDefault(),t;if(e.altKey&&r===i.A)return this._view.tabstrip.select(2),e.preventDefault(),t}}},_resize:function(){this.refresh({layout:!0})},_workbookChanging:function(e){this.trigger("changing",e)&&e.preventDefault()},_workbookChange:function(t){if(this._autoRefresh&&this.refresh(t),t.recalc&&t.ref){var n=t.range||new e.spreadsheet.Range(t.ref,this.activeSheet());this.trigger("change",{range:n})}},_workbookCut:function(e){this.trigger("cut",e)},_workbookCopy:function(e){this.trigger("copy",e)},_workbookPaste:function(e){this.trigger("paste",e)},activeSheet:function(e){return this._workbook.activeSheet(e)},moveSheetToIndex:function(e,t){return this._workbook.moveSheetToIndex(e,t)},insertSheet:function(e){return this._workbook.insertSheet(e)},sheets:function(){return this._workbook.sheets()},removeSheet:function(e){return this._workbook.removeSheet(e)},sheetByName:function(e){return this._workbook.sheetByName(e)},sheetIndex:function(e){return this._workbook.sheetIndex(e)},sheetByIndex:function(e){return this._workbook.sheetByIndex(e)},renameSheet:function(e,t){return this._workbook.renameSheet(e,t)},refresh:function(e){return e||(e=d),e.editorClose||(this._view.sheet(this._workbook.activeSheet()),this._controller.sheet(this._workbook.activeSheet()),this._workbook.refresh(e)),e.editorChange||(this._view.refresh(e),this._controller.refresh(),this._view.render(e),this.trigger("render")),this},openDialog:function(e,t){return this._view.openDialog(e,t)},autoRefresh:function(e){return e!==t?(this._autoRefresh=e,e===!0&&this.refresh(),this):this._autoRefresh},toJSON:function(){return this._workbook.toJSON()},fromJSON:function(e){e.sheets?(this._workbook.destroy(),this._workbook=new r(n.extend({},this.options,e)),this._bindWorkbookEvents(),this._view.workbook(this._workbook),this._controller.workbook(this._workbook),this.activeSheet(this.activeSheet())):this.refresh()},saveJSON:function(){return this._workbook.saveJSON()},fromFile:function(e,t){return this._workbook.fromFile(e,t)},saveAsPDF:function(e){this._workbook.saveAsPDF(n.extend({},this.options.pdf,e,{workbook:this._workbook}))},saveAsExcel:function(e){this._workbook.saveAsExcel(e)},draw:function(e,t){this._workbook.draw(e,t)},_workbookExcelExport:function(e){this.trigger("excelExport",e)&&e.preventDefault()},_workbookExcelImport:function(e){this.trigger("excelImport",e)?e.preventDefault():this._initProgress(e.promise)},_initProgress:function(t){var i=n("<div class='k-loading-mask' style='width: 100%; height: 100%; top: 0;'><div class='k-loading-color'></div></div>").appendTo(this.element),o=n("<div class='k-loading-progress'>").appendTo(i).kendoProgressBar({type:"chunk",chunkCount:10,min:0,max:1,value:0}).data("kendoProgressBar");t.progress(function(e){o.value(e.progress)}).always(function(){e.destroy(i),i.remove()})},_workbookPdfExport:function(e){this.trigger("pdfExport",e)&&e.preventDefault()},_workbookInsertSheet:function(e){this.trigger("insertSheet",e)&&e.preventDefault()},_workbookRemoveSheet:function(e){this.trigger("removeSheet",e)&&e.preventDefault()},_workbookSelectSheet:function(e){this.trigger("selectSheet",e)&&e.preventDefault()},_workbookRenameSheet:function(e){this.trigger("renameSheet",e)&&e.preventDefault()},_workbookInsertRow:function(e){this.trigger("insertRow",e)&&e.preventDefault()},_workbookInsertColumn:function(e){this.trigger("insertColumn",e)&&e.preventDefault()},_workbookDeleteRow:function(e){this.trigger("deleteRow",e)&&e.preventDefault()},_workbookDeleteColumn:function(e){this.trigger("deleteColumn",e)&&e.preventDefault()},_workbookHideRow:function(e){this.trigger("hideRow",e)&&e.preventDefault()},_workbookHideColumn:function(e){this.trigger("hideColumn",e)&&e.preventDefault()},_workbookUnhideRow:function(e){this.trigger("unhideRow",e)&&e.preventDefault()},_workbookUnhideColumn:function(e){this.trigger("unhideColumn",e)&&e.preventDefault()},_workbookSelect:function(e){this.trigger("select",e)},_workbookChangeFormat:function(e){this.trigger("changeFormat",e)},_workbookDataBinding:function(e){this.trigger("dataBinding",e)&&e.preventDefault()},_workbookDataBound:function(e){this.trigger("dataBound",e)},_bindWorkbookEvents:function(){this._workbook.bind("cut",this._workbookCut.bind(this)),this._workbook.bind("copy",this._workbookCopy.bind(this)),this._workbook.bind("paste",this._workbookPaste.bind(this)),this._workbook.bind("changing",this._workbookChanging.bind(this)),this._workbook.bind("change",this._workbookChange.bind(this)),this._workbook.bind("excelExport",this._workbookExcelExport.bind(this)),this._workbook.bind("excelImport",this._workbookExcelImport.bind(this)),this._workbook.bind("pdfExport",this._workbookPdfExport.bind(this)),this._workbook.bind("insertSheet",this._workbookInsertSheet.bind(this)),this._workbook.bind("removeSheet",this._workbookRemoveSheet.bind(this)),this._workbook.bind("selectSheet",this._workbookSelectSheet.bind(this)),this._workbook.bind("renameSheet",this._workbookRenameSheet.bind(this)),this._workbook.bind("insertRow",this._workbookInsertRow.bind(this)),this._workbook.bind("insertColumn",this._workbookInsertColumn.bind(this)),this._workbook.bind("deleteRow",this._workbookDeleteRow.bind(this)),this._workbook.bind("deleteColumn",this._workbookDeleteColumn.bind(this)),this._workbook.bind("hideRow",this._workbookHideRow.bind(this)),this._workbook.bind("hideColumn",this._workbookHideColumn.bind(this)),this._workbook.bind("unhideRow",this._workbookUnhideRow.bind(this)),this._workbook.bind("unhideColumn",this._workbookUnhideColumn.bind(this)),this._workbook.bind("select",this._workbookSelect.bind(this)),this._workbook.bind("changeFormat",this._workbookChangeFormat.bind(this)),this._workbook.bind("dataBinding",this._workbookDataBinding.bind(this)),this._workbook.bind("dataBound",this._workbookDataBound.bind(this))},destroy:function(){e.ui.Widget.fn.destroy.call(this),this._workbook.destroy(),this._controller.destroy(),this._view.destroy(),this._resizeHandler&&n(window).off("resize"+l,this._resizeHandler)},options:{name:"Spreadsheet",toolbar:!0,sheetsbar:!0,rows:200,columns:50,rowHeight:20,columnWidth:64,headerHeight:20,headerWidth:32,excel:{proxyURL:"",fileName:"Workbook.xlsx"},messages:{},pdf:{area:"workbook",fileName:"Workbook.pdf",proxyURL:"",paperSize:"a4",landscape:!0,margin:null,title:null,author:null,subject:null,keywords:null,creator:"Kendo UI PDF Generator v."+e.version,date:null},defaultCellStyle:{fontFamily:"Arial",fontSize:12},useCultureDecimals:!1},defineName:function(e,t,n){return this._workbook.defineName(e,t,n)},undefineName:function(e){return this._workbook.undefineName(e)},nameValue:function(e){return this._workbook.nameValue(e)},forEachName:function(e){return this._workbook.forEachName(e)},cellContextMenu:function(){return this._view.cellContextMenu},rowHeaderContextMenu:function(){return this._view.rowHeaderContextMenu},colHeaderContextMenu:function(){return this._view.colHeaderContextMenu},addImage:function(e){return this._workbook.addImage(e)},cleanupImages:function(){return this._workbook.cleanupImages()},events:["cut","copy","paste","pdfExport","excelExport","excelImport","changing","change","render","removeSheet","selectSheet","renameSheet","insertRow","insertColumn","deleteRow","insertSheet","deleteColumn","hideRow","hideColumn","unhideRow","unhideColumn","select","changeFormat","dataBinding","dataBound"]}),e.spreadsheet.ALL_REASONS=d,e.ui.plugin(u),n.extend(!0,u,{classNames:c}))}(window.kendo),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pivot.configurator.min",["kendo.dom.min"],e)}(function(){return function(e,t){function n(e){for(var t,n=0,i=e.length;n<i;n++)if(2==e[n].type){t=!0;break}t&&e.splice(n+1,0,{caption:"KPIs",defaultHierarchy:"[KPIs]",name:"KPIs",uniqueName:"[KPIs]"})}function i(e){return{name:e.uniqueName,type:e.type}}function o(e){for(var t=0,n=e.length;t<n;t++)e[t].uniqueName=e[t].name,e[t].type="kpi";return e}function r(t){var n=e(t).closest(".k-pivot-setting");return n.length?n.data("kendoPivotSettingTarget"):null}function a(e,t,n){return{hierarchyUniqueName:e,uniqueName:t,caption:t,measure:t,name:t,type:n,kpi:!0}}function s(e){var t=e.name;return[a(t,e.value,"value"),a(t,e.goal,"goal"),a(t,e.status,"status"),a(t,e.trend,"trend")]}var l=window.kendo,d=l.ui,c=d.Widget,u=".kendoPivotConfigurator",h="mouseenter"+u+" mouseleave"+u,p=l.template('<p class="k-reset"><span class="k-icon #=icon#"></span>${name}</p><div class="k-list-container k-reset"></div>'),f=c.extend({init:function(e,t){c.fn.init.call(this,e,t),this.element.addClass("k-widget k-fieldselector k-alt k-edit-form-container"),this._dataSource(),this._layout(),this.refresh(),l.notify(this)},events:[],options:{name:"PivotConfigurator",filterable:!1,sortable:!1,messages:{measures:"Drop Data Fields Here",columns:"Drop Column Fields Here",rows:"Drop Rows Fields Here",measuresLabel:"Measures",columnsLabel:"Columns",rowsLabel:"Rows",fieldsLabel:"Fields"}},_dataSource:function(){var t=this;t.dataSource&&t._refreshHandler?t.dataSource.unbind("change",t._refreshHandler).unbind("error",t._errorHandler).unbind("progress",t._progressHandler):(t._errorHandler=e.proxy(t._error,t),t._refreshHandler=e.proxy(t.refresh,t),t._progressHandler=e.proxy(t._requestStart,t)),t.dataSource=l.data.PivotDataSource.create(t.options.dataSource),t.dataSource.bind("change",t._refreshHandler).bind("error",t._errorHandler).bind("progress",t._progressHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.measures&&this.measures.setDataSource(e),this.rows&&this.rows.setDataSource(e),this.columns&&this.columns.setDataSource(e),this.refresh()},_treeViewDataSource:function(){var t=this;return l.data.HierarchicalDataSource.create({schema:{model:{id:"uniqueName",hasChildren:function(e){return!("hierarchyUniqueName"in e||"aggregator"in e)}}},transport:{read:function(i){var r,a,l;e.isEmptyObject(i.data)?(r=t.dataSource.schemaDimensions(),r.done(function(e){t.dataSource.cubeBuilder||n(e),i.success(e)}).fail(i.error)):(a=t.treeView.dataSource.get(i.data.uniqueName),"[KPIs]"===a.uniqueName?(l=!0,r=t.dataSource.schemaKPIs(),r.done(function(e){i.success(o(e))}).fail(i.error)):"kpi"==a.type&&(l=!0,i.success(s(a))),l||(r=2==a.type?t.dataSource.schemaMeasures():a.dimensionUniqueName?t.dataSource.schemaLevels(i.data.uniqueName):t.dataSource.schemaHierarchies(i.data.uniqueName),r.done(i.success).fail(i.error)))}}})},_progress:function(e){l.ui.progress(this.element,e)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_layout:function(){this.form=e('<div class="k-columns k-state-default k-floatwrap"/>').appendTo(this.element),this._fields(),this._targets()},_fields:function(){var t=e('<div class="k-state-default"><p class="k-reset"><span class="k-icon k-i-group"></span>'+this.options.messages.fieldsLabel+"</p></div>").appendTo(this.form),n='# if (item.type == 2 || item.uniqueName == "[KPIs]") { #<span class="k-icon k-i-#= (item.type == 2 ? "sum" : "kpi") #"></span># } else if (item.type && item.type !== "kpi") { #<span class="k-icon k-i-arrows-dimensions"></span># } ##: item.caption || item.name #';this.treeView=e("<div/>").appendTo(t).kendoTreeView({template:n,dataTextField:"caption",dragAndDrop:!0,autoBind:!1,dataSource:this._treeViewDataSource(),dragstart:function(e){var t=this.dataItem(e.sourceNode);(t.hasChildren||t.aggregator||t.measure)&&2!=t.type&&"[KPIs]"!==t.uniqueName||e.preventDefault()},drag:function(e){var t="k-i-cancel",n=r(e.dropTarget);n&&n.validate(this.dataItem(e.sourceNode))&&(t="k-i-plus"),e.setStatusClass(t)},drop:function(e){var t,n,o,a,l,d;if(e.preventDefault(),t=r(e.dropTarget),n=this.dataItem(e.sourceNode),t&&t.validate(n)){if(d=n.defaultHierarchy||n.uniqueName,"kpi"===n.type)for(l=s(n),a=l.length,d=[],o=0;o<a;o++)d.push(i(l[o]));else n.kpi&&(d=[i(n)]);t.add(d)}}}).data("kendoTreeView")},_createTarget:function(t,n){var i='<li class="k-item k-header" data-'+l.ns+'name="${data.name}">${data.name}',o=n.sortable,r="";return o&&(r+="#if (data.sortIcon) {#",r+='<span class="k-icon ${data.sortIcon}-sm"></span>',r+="#}#"),(n.filterable||o)&&(r+='<span class="k-icon k-i-more-vertical k-setting-fieldmenu"></span>'),r+='<span class="k-icon k-i-close k-setting-delete"></span>',i+='<span class="k-field-actions">'+r+"</span></li>",new l.ui.PivotSettingTarget(t,e.extend({dataSource:this.dataSource,hint:function(t){var n=e('<div class="k-fieldselector"><ul class="k-list k-reset"></ul></div>');return n.find(".k-list").append(t.clone()),n},template:i,emptyTemplate:'<li class="k-item k-empty">${data}</li>'},n))},_targets:function(){var t=e('<div class="k-state-default"/>').appendTo(this.form),n=e(p({name:this.options.messages.columnsLabel,icon:"k-i-columns"})).appendTo(t),i=e('<ul class="k-pivot-configurator-settings k-list k-reset" />').appendTo(n.last()),o=e(p({name:this.options.messages.rowsLabel,icon:"k-i-rows"})).appendTo(t),r=e('<ul class="k-pivot-configurator-settings k-list k-reset" />').appendTo(o.last()),a=e(p({name:this.options.messages.measuresLabel,icon:"k-i-sum"})).appendTo(t),s=e('<ul class="k-pivot-configurator-settings k-list k-reset" />').appendTo(a.last()),l=this.options;this.columns=this._createTarget(i,{filterable:l.filterable,sortable:l.sortable,connectWith:r,messages:{empty:l.messages.columns,fieldMenu:l.messages.fieldMenu}}),this.rows=this._createTarget(r,{filterable:l.filterable,sortable:l.sortable,setting:"rows",connectWith:i,messages:{empty:this.options.messages.rows,fieldMenu:this.options.messages.fieldMenu}}),this.measures=this._createTarget(s,{setting:"measures",messages:{empty:l.messages.measures}}),i.add(r).add(s).on(h,".k-item:not(.k-empty)",this._toggleHover)},_toggleHover:function(t){e(t.currentTarget).toggleClass("k-state-hover","mouseenter"===t.type)},_resize:function(){var e,t,n=this.element,i=this.options.height,o=l._outerHeight;i&&(n.height(i),n.is(":visible")&&(t=n.children(".k-columns").children("div.k-state-default"),i=n.innerHeight(),e=(o(n)-i)/2,i=i-(o(t,!0)-t.height())-e,t.height(i)))},refresh:function(){var e=this.dataSource;(e.cubeBuilder||this._cube!==e.cube()||this._catalog!==e.catalog())&&this.treeView.dataSource.fetch(),this._catalog=this.dataSource.catalog(),this._cube=this.dataSource.cube(),this._resize(),this._progress(!1)},destroy:function(){c.fn.destroy.call(this),this.dataSource.unbind("change",this._refreshHandler),this.form.find(".k-list").off(u),this.rows.destroy(),this.columns.destroy(),this.measures.destroy(),this.treeView.destroy(),this.element=null,this._refreshHandler=null}});d.plugin(f)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("util/ripple.min",["kendo.core.min"],e)}(function(){!function(){var e,t,n,i,o,r,a,s;window.kendo.util=window.kendo.util||{},window.kendo.util.ripple=window.kendo.util.ripple||{},e=function(e,t){var n,i;if(e.closest)return e.closest(t);for(n=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i;){if(n(i,t))return i;i=i.parentElement}},t=function(e){var t,n=e.createElement("div");return n.className="k-ripple",t=e.createElement("div"),t.className="k-ripple-blob",n.appendChild(t),[n,t]},n=function(e,t,n){var i=function(){n(),e.removeEventListener(t,i,!1)},o=function(){return e.addEventListener(t,i,!1)};return o(),{remove:o}},i=function(i,a){return function(s){var l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C=s.target,S=C.document||C.ownerDocument;if(l=a.container?a.container(C):e(C,i),l&&(d=/focus/i.test(s.type)&&l.classList.contains("k-ripple-target"),!d)){if(l.classList.add("k-ripple-target"),c=t(S),u=c[0],h=c[1],p={animated:!1,released:!1,blob:h,container:l,ripple:u},f={focusin:"focusout",keydown:"keyup",mousedown:"mouseup",pointerdown:"pointerup",touchdown:"touchup"}[s.type],n(s.currentTarget,f,function(){return r(p)}),l.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),
m=l.getBoundingClientRect(),g=0,v=0,/mouse|pointer|touch/.test(s.type)?(g=s.clientX-m.left,v=s.clientY-m.top):(g=m.width/2,v=m.height/2),_=g<m.width/2?m.width:0,b=v<m.height/2?m.height:0,w=g-_,k=v-b,y=2*Math.sqrt(w*w+k*k),x=500,h.style.width=h.style.height=y+"px",h.offsetWidth<0)throw Error("Inconceivable!");h.style.cssText="\n    width: "+y+"px;\n    height: "+y+"px;\n    transform: translate(-50%, -50%) scale(1);\n    left: "+g+"px;\n    top: "+v+"px;\n  ",setTimeout(function(){return o(p)},x)}}},o=function(e){e.animated=!0,a(e)},r=function(e){e.released=!0,a(e)},a=function(e){if(e.released&&e.animated){var t=e.blob,i=e.ripple,o=e.container;o&&n(o,"blur",function(){return o.classList.remove("k-ripple-target")}),t&&(n(t,"transitionend",function(){i&&i.parentNode&&i.parentNode.removeChild(i)}),t.style.transition="opacity 200ms linear",t.style.opacity="0")}},s=function(e,t){var n=function(e){return[].concat.apply([],e)},o=n(t.map(function(t){var n={events:["mousedown","touchdown"],global:!1},o=t.selector,r=t.options,a=void 0===r?n:r,s=i(o,a),l=a.events||n.events,d=a.global?document.body:e;return l.forEach(function(e){return d.addEventListener(e,s,!1)}),{events:l,options:a,activator:s}}));return function(){if(e){var t=function(t){var n=t.events,i=t.options,o=t.activator,r=i.global?document.body:e;n.forEach(function(e){return r.removeEventListener(e,o,!1)})};o.forEach(t),e=null}}},kendo.deepExtend(kendo.util.ripple,{register:s})}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.ripple.min",["util/ripple.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r=e.extend,a=n.util.ripple,s=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e),e=n.wrapper=n.element,n.options=r({},n.options,t),n.registerListeners()},options:{name:"RippleContainer",elements:[{selector:".k-button:not(li)"},{selector:".k-list > .k-item",options:{global:!0}},{selector:".k-checkbox-label, .k-radio-label"},{selector:".k-checkbox, .k-radio",options:{events:["focusin"],container:function(e){if(/\b(k-checkbox|k-radio)\b/.test(e.className))return e.nextElementSibling}}}]},removeListeners:function(){},registerListeners:function(){var e,t=this,n=t.element[0],i=t.options.elements;t.removeListeners(),e=a.register(n,i),t.removeListeners=e},destroy:function(){var e=this;o.fn.destroy.call(e),e.removeListeners()}});i.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/pdfjs.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=e.extend,i=function(){if(!window.pdfjsLib){var e=window.console;return e&&e.error&&e.error("PDF.JS required."),!1}return kendo.pdfviewer.pdfjs.lib=window.pdfjsLib,!0};n(kendo,{pdfviewer:{pdfjs:{lib:window.pdfjsLib,isLoaded:i}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/processors/pdfjs-processor.min",["pdfviewer/pdfjs.min"],e)}(function(){return function(e,t){var n,i=window.kendo,o=i.Class,r=e.extend,a=window.atob,s=o.extend({init:function(e,t){var o=this;i.pdfviewer.pdfjs.isLoaded()&&(n=i.pdfviewer.pdfjs.lib),o.file=e.file,o.viewer=t},fetchDocument:function(){var t=this,i=e.Deferred(),o=t.viewer.options.messages.errorMessages;return t.file?(t._isBase64Data()&&a&&(t.file.data=a(t.file.data)),n.getDocument(this.file).promise.then(function(n){var r,a=[];for(t.pdf=n,t.pagePromises=[],t._downloadData=e.Deferred(),n.getData().then(function(e){var n=new Blob([e],{type:"application/pdf"});t._downloadData.resolve({file:n})}),r=1;r<=n.numPages;r++)t.pagePromises.push(n.getPage(r));Promise.all(t.pagePromises).then(function(e){a=e.map(function(e){var t=e.getViewport({scale:4/3});return{width:t.width,height:t.height}}),i.resolve({total:n.numPages,pages:a})})["catch"](function(e){t.viewer._triggerError({error:e.message,message:o.parseError})})})["catch"](function(e){var n=e.name.includes("Missing"),i=n?o.notFound:o.parseError;t.viewer._triggerError({error:e.message,message:i}),n&&t.viewer._renderBlankPage()}),i):i.resolve()},fetchPageData:function(e){return this.pagePromises[e-1]},downloadFile:function(e){var t=this;i.ui.progress(t.viewer.pageContainer,!0),t._downloadData.done(function(n){i.ui.progress(t.viewer.pageContainer,!1);var o=new FileReader;o.readAsDataURL(n.file),o.onload=function(){i.saveAs({dataURI:o.result,fileName:e+".pdf",proxyURL:function(){return o.result}})}})},_updateDocument:function(e){this.pdf&&this.pdf.loadingTask&&this.pdf.loadingTask.destroy(),this.file=e},_isBase64Data:function(){var e,t=this.file.data,n=/[^A-Z0-9+\/=]/i,i=t&&t.length;return!(!i||i%4!==0||n.test(t))&&(e=t.indexOf("="),e===-1||e===i-1||e===i-2&&"="===t[i-1])},renderTextLayer:function(e){n.renderTextLayer(e)}});r(i.pdfviewer.pdfjs,{processor:s})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/processors/dpl-processor.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.extend,o=n.Class,r=o.extend({init:function(e,t){var n=this;n.options=e,n.read=e.read,n.upload=e.upload,n.download=e.download,n.viewer=t},fetchDocument:function(){var t=this,i=e.Deferred(),o=t.viewer.options.messages.errorMessages;return t.read?(e.ajax({type:t.read.type,url:t.read.url,dataType:t.read.dataType,success:function(e){"string"!=typeof e&&(e=n.stringify(e)),i.resolve(JSON.parse(e))},error:function(e){t.viewer._triggerError({error:e.responseText,message:o.parseError})}}),i):i.resolve()},fetchPageData:function(t){var n=this,i=e.Deferred(),o=n.viewer.document.pages[t-1],r={};return r[n.read.pageField]=t,o.geometries.length?i.resolve(o):e.ajax({type:n.read.type,url:n.read.url,data:r,success:function(e){i.resolve(JSON.parse(e))},error:function(e){n.viewer._triggerError({error:e.responseText,message:n.viewer.options.messages.errorMessages.parseError})}}),i},downloadFile:function(e){window.location=this.download.url+"?file="+e},fromJSON:function(e){var t=this.viewer;t._clearPages(),t.document=e,t.document.total=t.document.pages.length,t._renderPages(),t.resize(!0),t.activatePage(1)}});i(n.pdfviewer,{dpl:{processor:r}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/pager.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=".kendoPDFViewer",i=kendo.ui.Widget,o="change",r="keydown",a=kendo.support.click,s=480,l=kendo.attr,d=e.proxy,c=e.extend,u=".",h="aria-disabled",p={wrapperClass:"k-pager-wrap",iconFirst:"k-i-arrow-end-left",iconLast:"k-i-arrow-end-right",iconPrev:"k-i-arrow-60-left",iconNext:"k-i-arrow-60-right",first:"k-pager-first",last:"k-pager-last",nav:"k-pager-nav",disabled:"k-state-disabled"},f=i.extend({init:function(e,t){var n=this;i.fn.init.call(n,e,t),n.linkTemplate=kendo.template(n.options.linkTemplate),n.element.addClass(p.wrapperClass),n._renderLinks(),n._toggleDisabledClass(),n._attachEvents()},options:{linkTemplate:'<a href="\\#" aria-label="#=text#" title="#=text#" class="k-button k-button-icon k-flat k-pager-nav #= wrapClass #" data-page="#=pageIdx#"><span class="k-icon #= iconClass #"></span></a>',previousNext:!0,input:!0,page:1,total:1,messages:{}},events:[o],_pagerLink:function(e,t,n,i){return this.linkTemplate({iconClass:e,text:t,wrapClass:i||"",pageIdx:n})},_renderLinks:function(){var t=this,n=t.options;n.previousNext&&(t.firstLink=e(t._pagerLink(p.iconFirst,n.messages.first,1,p.first)),t.prevLink=e(t._pagerLink(p.iconPrev,n.messages.previous,n.page-1)),t.nextLink=e(t._pagerLink(p.iconNext,n.messages.next,n.page+1)),t.lastLink=e(t._pagerLink(p.iconLast,n.messages.last,n.total,p.last))),t.element.append(t.firstLink),t.element.append(t.prevLink),n.input&&t._renderInput(),t.element.append(t.nextLink),t.element.append(t.lastLink)},_toggleDisabledClass:function(){var e=this,t=e.options,n=!t.total;e.nextLink&&e.prevLink&&(e.prevLink.toggleClass(p.disabled,n||1===t.page),e.nextLink.toggleClass(p.disabled,n||t.page===t.total),e.lastLink.toggleClass(p.disabled,n||t.page===t.total),e.firstLink.toggleClass(p.disabled,n||1===t.page),e.prevLink.attr(h,n||1===t.page),e.firstLink.attr(h,n||1===t.page),e.nextLink.attr(h,t.page===t.total),e.lastLink.attr(h,t.page===t.total)),e.input&&(e.input.toggleClass(p.disabled,t.total<=1),e.input.attr(h,t.total<=1))},_attachEvents:function(){var e=this;e.element.on(a+n,u+p.nav,d(e._click,e)),e.element.on(r+n,u+p.nav,function(t){t.keyCode===kendo.keys.ENTER&&(e._click(t),t.preventDefault())}),e.input&&e.input.on(r+n,d(e._keydown,e))},_click:function(t){var n=e(t.currentTarget),i=parseInt(n.attr(l("page")),10);t.isDefaultPrevented()||this._change(i)},_keydown:function(n){var i=n.keyCode,o=kendo.keys,r=e(n.target),a=parseInt(r.val(),10),s=i===o.UP||i===o.DOWN,l=i===o.RIGHT||i===o.LEFT||i===o.BACKSPACE||i===o.DELETE,d=s&&i===o.UP?1:-1;if(s&&(a+=d),i===o.ENTER||s){if(isNaN(a)||a<1||a>this.options.total)return a=this.options.page,r.val(a),t;this._change(a),n.preventDefault()}else n.key.match(/^\d+$/)||l||n.preventDefault()},_change:function(e){var t=this;e>=1&&e<=t.options.total&&(t.options.page=e,t.input&&t.input.val(e),t.prevLink.attr(l("page"),e-1),t.nextLink.attr(l("page"),e+1),t._toggleDisabledClass()),t.trigger(o,{page:e})},setOptions:function(t){var o=this,a=o.options.total;t=e.extend(o.options,t),i.fn.setOptions.call(o,t),t.input&&(a!=t.total?(o._renderInput(),o.input.on(r+n,d(o._keydown,o))):o.input.val(t.total>0?t.page:1)),t.total>1&&(o.prevLink.attr(l("page"),t.page-1),o.nextLink.attr(l("page"),t.page+1),o.lastLink.attr(l("page"),t.total)),o._toggleDisabledClass()},_renderInput:function(){var e,t,i=this,o=i.options,r=i.element.parent().width()<=s,a=i.element.find(".k-pager-input");i.input&&i.input.off(n),e=o.total>0?kendo.format(o.messages.of,o.total):"",r||(e+=o.total>1?o.messages.pages:o.messages.page),t='<input class="k-textbox" aria-label="'+o.page+e+'">'+e,a.length?a.html(t):i.element.append('<span class="k-pager-input k-label">'+t+"</span>"),i.input=i.element.find("input").val(o.total>0?o.page:1)},destroy:function(){this.element.off(n),this.input&&this.input.off(n),i.fn.destroy.call(this)}});c(kendo.pdfviewer,{Pager:f})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/toolbar.min",["kendo.toolbar.min","kendo.combobox.min","pdfviewer/pager.min"],e)}(function(){return function(e,t){function n(e,t,n){var i=n?b.zoomOverflowButtons:b.zoomButtons;e.append(w({text:t.zoomOut,command:m,iconClass:b.zoomOutIcon,showText:n,className:i})),e.append(w({text:t.zoomIn,command:f,iconClass:b.zoomInIcon,showText:n,className:i}))}var i,o,r,a=window.kendo,s=e.extend,l=e.proxy,d="action",c="k-flat",u="keydown",h=a.support.click,p="change",f="zoomin",m="zoomout",g=a.toolbar.Item,v=a.ui.ToolBar,_={auto:"auto",actual:"actual",fitToWidth:"fitToWidth",fitToPage:"fitToPage"},b={zoomOutIcon:"k-i-zoom-out",zoomInIcon:"k-i-zoom-in",zoomButtons:"k-button-icon k-flat",zoomOverflowButtons:"k-button-icontext k-overflow-button",overflowHidden:"k-overflow-hidden"},w=a.template('<a href="\\#" aria-label="#=text#" title="#=text#" data-command="#=command#" class="k-button #=className#"><span class="k-icon #= iconClass #"></span> ${showText ? text : ""}</a>'),k=a.template('<select title="#=zoomLevel#">#for(var zoomIndex in zoomLevels){## var zoomLevel = zoomLevels[zoomIndex]; #<option value="#= zoomLevel.percent || (zoomLevel + "%") #">${zoomLevel.text ? zoomLevel.text : zoomLevel + "%"}</option>#}#</select>'),y={pager:{type:"pager",overflow:"never",command:"PageChangeCommand"},spacer:{type:"spacer"},zoom:{type:"zoom",command:"ZoomCommand",zoomInOut:!0,combobox:{zoomLevels:[50,100,150,200,300,400]}},toggleSelection:{type:"buttonGroup",attributes:{"class":"k-toggle-selection-group"},buttons:[{togglable:!0,text:"Enable Selection",command:"EnableSelectionCommand",icon:"cursor",showText:"overflow",name:"toggleSelection",group:"toggle-pan"},{togglable:!0,text:"Enable Panning",command:"EnablePanCommand",icon:"hand",showText:"overflow",name:"togglePan",group:"toggle-pan",selected:!0}]},spacer2:{type:"spacer"},search:{type:"button",text:"Search",command:"OpenSearchCommand",icon:"search",name:"search",showText:"overflow"},open:{type:"button",text:"Open",showText:"overflow",name:"open",icon:"folder-open",command:"OpenCommand"},download:{type:"button",text:"Download",showText:"overflow",name:"download",icon:"download",command:"DownloadCommand"},print:{type:"button",text:"Print",showText:"overflow",name:"print",icon:"print",command:"PrintCommand"}},x=s({},y,{exportAs:{type:"button",text:"Export",showText:"overflow",name:"exportAs",icon:"image-export",command:"ExportCommand"}}),C=g.extend({init:function(t,n){var i=e("<div />");this.options=s(!0,t,n.options.pager),this.toolbar=n,this.toolbar.pager=new a.pdfviewer.Pager(i,s({},t,{change:l(this._change,this)})),this.element=i,this.element.on(u,l(this._keydown,this)),this.attributes(),this.addUidAttr(),this.addOverflowAttr()},_change:function(e){this.options.change&&this.options.change(e.page)||this.toolbar.action({command:"PageChangeCommand",options:{value:e.page}})},_keydown:function(t){var n=this,i=e(t.target),o=t.keyCode,r=n.element.find(":kendoFocusable"),s=r.index(i),l=t.shiftKey?-1:1;o===a.keys.TAB&&r[s+l]&&(r[s+l].focus(),t.preventDefault(),t.stopPropagation())}});a.toolbar.registerComponent("pager",C),i=g.extend({init:function(e,t){this._init(e,t),this.toolbar.zoom=this,t.options.scale&&(this._initValue=100*t.options.scale+"%"),this._appendElements(),this._click=a.throttle(this._click.bind(this),200),this._keydown=a.throttle(this._keydown.bind(this),200),this.element.on(h,".k-button",this._click),this.element.on(u,".k-button",this._keydown),this.attributes(),this.addUidAttr(),this.addOverflowAttr()},_init:function(t,n){var i=e("<div />");this.options=s(!0,t,{messages:n.options.messages.zoom}),this.toolbar=n,this.element=i},_appendElements:function(){var e=this.options;e.zoomInOut&&n(this.element,e.messages,!1),e.combobox&&this._buildComboBox()},_buildComboBox:function(){var t,n=this,i=n.options.messages,o=n.options.combobox,r=[{percent:_.auto,text:i.autoWidth},{percent:_.actual,text:i.actualWidth},{percent:_.fitToWidth,text:i.fitToWidth},{percent:_.fitToPage,text:i.fitToPage}];r=r.concat(o.zoomLevels),t=e(k({zoomLevels:r,zoomLevel:i.zoomLevel})),a.support.mobileOS?n.element.append(t):(t=t.kendoComboBox(s({autoWidth:!0,clearButton:!1,value:n._initValue},o)).getKendoComboBox(),n.element.append(t.wrapper),n.combobox=t,n._currentValue=t.value()),t.bind(p,a.throttle(n.change.bind(n),300))},change:function(e){var n,i=e.sender?e.sender.value():e.target.value;if((""+i).match(/^[0-9]+%?$/))n=parseInt(i.replace("%",""),10)/100;else if(!_[i])return this.combobox&&this.combobox.value(this._currentValue),e.preventDefault(),t;this._currentValue=i,this.toolbar.action({command:"ZoomCommand",options:{scale:n||i}})},_buttonCommand:function(t){var n=e(t).closest(".k-button"),i=n.data("command");this.toolbar.action({command:"ZoomCommand",options:{zoomIn:i===f,zoomOut:i===m,updateComboBox:!0}})},_click:function(e){this._buttonCommand(e.target)},_keydown:function(e){var t=e.keyCode,n=a.keys;t===n.ENTER&&(this._buttonCommand(e.target),e.preventDefault())},enable:function(e){var t=this.element;t.find(".k-button, select").toggleClass("k-state-disabled",!e),this.combobox&&this.combobox.enable(e)},destroy:function(){this.combobox&&this.combobox.destroy()}}),o=i.extend({_init:function(t,n){var i=e("<li></li>");this.options=s(!0,t,{messages:n.options.messages.zoom}),this.toolbar=n,this.element=i},_appendElements:function(){var e=this.options;e.zoomInOut&&n(this.element,e.messages,!0)},overflowHidden:function(){this.element.addClass(b.overflowHidden)}}),a.toolbar.registerComponent("zoom",i,o),r=v.extend({init:function(e,t){var n=this,i=t.items&&t.items.length?t.items:Object.keys(y);n.options=t,t.items=n._updateItems(i),v.fn.init.call(n,e,t),n.bind({click:n._click,toggle:n._click}),t.viewer.bind({update:n._update.bind(n)})},events:[d],_updateItems:function(t){var n=this,i=this.options.messages;return t.map(function(t){var o,r,s,l=e.isPlainObject(t)&&1===Object.keys(t).length&&t.name;return t=l?t.name:t,o=e.isPlainObject(t)?t:x[t],s=o.name,"buttonGroup"===o.type?o.buttons=n._updateItems(o.buttons):r="pager"!==o.type?{name:s,attributes:{"aria-label":i[s],title:i[s],"data-command":o.command,"class":c},overflow:o.overflow}:{overflow:"never"},a.deepExtend(o,r),o})},_click:function(t){var n=e(t.target).data("command");n&&this.action({command:n,options:t.options})},_update:function(e){var t={page:e.page||1,total:e.total||1};this.zoom&&(this.zoom.enable(!e.isBlank),"zoom"===e.action&&this._updateZoomComboBox(e.zoom)),("pagechange"===e.action||e.isBlank)&&this.pager&&this.pager.setOptions(t),this.enable(this.wrapper.find(".k-toggle-selection-group"),!e.isBlank),this.enable(this.wrapper.find("[data-command='OpenSearchCommand']"),!e.isBlank),this.enable(this.wrapper.find("[data-command='DownloadCommand']"),!e.isBlank),this.enable(this.wrapper.find("[data-command='PrintCommand']"),!e.isBlank)},_updateZoomComboBox:function(e){var t=e===_.auto||e===_.actual;t||(e=Math.round(100*e)+"%"),this.zoom&&this.zoom.combobox&&(this.zoom._currentValue=e,this.zoom.combobox.value(e))},action:function(e){this.trigger(d,e)},destroy:function(){this.pager&&this.pager.destroy(),this.zoom&&this.zoom.destroy(),v.fn.destroy.call(this)}}),s(a.pdfviewer,{Toolbar:r,DefaultTools:y})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/page.min",["kendo.drawing.min"],e)}(function(){return function(e,t){var n=e.extend,i=e.noop,o=kendo.drawing,r=o.Group,a=o.Surface,s="render",l=kendo.Class,d={Path:"path",MultiPath:"multipath",Rect:"rect",Image:"image",Text:"text"},c=l.extend({init:function(t,n){this.viewer=n,this.processor=t.processor,this.options=t,this.pageNumber=t.number,this.element=e("<div class='k-page' />"),this.element.attr(kendo.attr("number"),this.pageNumber),this._updatePageSize(t),this.width=t.width,this.height=t.height},resize:function(e){var t=this.element;this._updatePageSize({width:Math.min(t.width()*e,this.width),height:Math.min(t.height()*e,this.height)})},_updatePageSize:function(e){this.element.width(e.width).height(e.height)},destroy:function(){kendo.destroy(this.element)},render:i}),u=c.extend({draw:function(){var e=this,t=e.options.geometries;e.group=new r,e.surface.draw(e.group),e._drawGeometries(t),e.viewer.trigger(s,{page:this}),kendo.ui.progress(e.element,!1)},load:function(){var e=this;!e.loaded&&e.processor&&(e.processor.fetchPageData(e.pageNumber).then(function(t){e.options=t,e._initSurface(),e.draw()}),e.loaded=!0)},_initSurface:function(){var e={width:this.element.width(),height:this.element.height()},t=n({width:this.width,height:this.height},this.viewer.options.view);this.surface=new a(this.element,t),this._updatePageSize(e)},_drawGeometries:function(e){var t,n,i,o=this;if(e)for(n=0;n<=e.length;n++)if(i=e[n]){switch(i.type){case d.Path:case d.MultiPath:t=o._drawPath(i);break;case d.Rect:t=o._drawRect(i);break;case d.Image:t=o._drawImage(i);break;case d.Text:t=o._drawText(i);break;default:t=null}t&&o.group.append(t)}},_drawRect:function(e){var t=new kendo.geometry.Rect(e.point,e.size);return new o.Rect(t,{transform:this._getMatrix(e.transform),fill:e.fillOptions,stroke:e.strokeOptions})},_drawImage:function(e){var t=new kendo.geometry.Rect(e.point,e.size);return new o.Image(e.src,t,{transform:this._getMatrix(e.transform)})},_drawText:function(e){var t={transform:this._getMatrix(e.transform),stroke:e.strokeOptions,fill:e.fillOptions,font:e.font};return new kendo.drawing.Text(e.content,e.point,t)},_drawPath:function(e){var t,n,i,r,a,s={transform:this._getMatrix(e.transform),stroke:e.strokeOptions,fill:e.fillOptions},l=new o.MultiPath(s);for(t=0;t<e.paths.length;t++){if(n=e.paths[t],!n.segments)return;for(l.moveTo.apply(l,n.point),i=0;i<n.segments.length;i++)r=n.segments[i],a=1===r.points.length?l.lineTo:l.curveTo,a.apply(l,r.points);n.closed&&l.close()}return l},_getMatrix:function(e){var t=Object.create(kendo.geometry.Matrix.prototype);return kendo.geometry.Matrix.apply(t,e),t}}),h=c.extend({init:function(t,n){var i,o=this;i=e("<canvas style='width: 100%; height: 100%;' />"),o.canvas=i.get(0),c.fn.init.call(o,t,n),o.canvas.width=o.width,o.canvas.height=o.height,o.element.append(i)},load:function(t,n){var i=this,o=e.Deferred();if(i._scale!==t||n)return i._scale&&i._scale!==t&&!n?(i._scale=t,i.render(t),o.resolve(i)):(i.processor&&i.processor.fetchPageData(i.pageNumber).then(function(e){i._page=e,i._renderPromise=i.render(t).then(function(){i.viewer.trigger(s,{page:i})}),o.resolve(i)}),i._scale=t,i.loaded=!0,o)},render:function(e){var t=this,n=this.canvas.getContext("2d"),i=this._page.getViewport({scale:e});return this._scale=e,this.canvas.width=i.width,this.canvas.height=i.height,this._renderTask&&(this._renderTask.cancel(),this._renderTask=null),this._updatePageSize({width:i.width,height:i.height}),this._renderTask=this._page.render({canvasContext:n,viewport:i}),this._renderTextLayer(i),this._renderTask.promise.then(function(){t._renderTask=null})["catch"](function(){})},_renderTextLayer:function(t){var n=this,i=n._page;n.textLayer&&n.textLayer.remove(),n.textLayer=e("<div class='k-text-layer'></div>").get(0),n.element.append(n.textLayer),i.getTextContent({normalizeWhitespace:!0}).then(function(i){e(n.textLayer).css({height:t.height,width:t.width}).html("");var o={textContent:i,container:n.textLayer,viewport:t,textDivs:[],enhanceTextSelection:!0};n.processor.renderTextLayer(o)})}});n(kendo.pdfviewer.dpl,{geometryTypes:d,Page:u}),n(kendo.pdfviewer.pdfjs,{Page:h})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/search.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=kendo.Class,i=e.extend,o=e.isArray,r=n.extend({init:function(e){var t=this;t.options=i({},t.options,e),t.processDom()},options:{highlightClass:"k-search-highlight",charClass:"k-text-char"},processDom:function(){var e,t=this;for(t.targets=o(t.options.target)?t.options.target:[t.options.target],t.textNodes=[],t.charIndex=0,t.text="",t.targets.forEach(function(e){t.traverseToTextNode(e)}),e=0;e<t.textNodes.length;e++)t.processTextNode(t.textNodes[e])},traverseToTextNode:function(e){var t,n=this;if(3===e.nodeType)n.textNodes.push(e);else for(t=0;t<e.childNodes.length;t++)n.traverseToTextNode(e.childNodes[t])},processTextNode:function(t){var n,i=this,o=t.textContent;i.text=i.text+o,o.length>0&&(n=e(t).wrap("<span>").parent(),n.empty(),i.splitChars(n.get(0),o),n.children().unwrap())},splitChars:function(e,t){var n,i=this,o="";for(n=0;n<t.length;n++)o=o+"<span class='"+i.options.charClass+"' "+kendo.attr("char-index")+"="+i.charIndex+">"+t[n]+"</span>",i.charIndex++;e.innerHTML=o},search:function(e,t){var n,i=this,o=RegExp(e,t?"g":"gi");if(i.matches=[],i.resetMark(),i.resetHighlight(),i.resetMatchIndex(),""!==e){for(n=o.exec(i.text);n;)i.matches.push({startOffset:n.index,endOffset:n.index+n[0].length}),n=o.exec(i.text);i.highlightAll(),i.mark()}},highlightAll:function(){var e=this;e.matches.forEach(function(t,n){var i=t.startOffset,o=t.endOffset;e.highlight(i,o,n+1)})},highlight:function(t,n,i){var o,r=this;for(o=t;o<n;o++)e(r.targets).find("."+r.options.charClass+"["+kendo.attr("char-index")+"="+o+"]").addClass(r.options.highlightClass).attr(kendo.attr("match-index"),i)},resetHighlight:function(){var t=this;e(t.targets).find("."+t.options.highlightClass).removeClass(t.options.highlightClass)},resetMatchIndex:function(){var t=this;e(t.targets).find("."+t.options.charClass+"["+kendo.attr("match-index")+"]").removeAttr(kendo.attr("match-index"))},mark:function(){var t=this;t.currentIndex||0===t.currentIndex?t.currentIndex>t.matches.length?t.currentIndex=t.matches.length:t.resetMark():t.currentIndex=0,e(t.targets).find("."+t.options.charClass+"["+kendo.attr("match-index")+"="+t.currentIndex+"]").wrapInner("<mark>")},resetMark:function(){var t=this;e(t.targets).find("mark").contents().unwrap()},nextMatch:function(){var e=this;e.currentIndex++,e.currentIndex>e.matches.length&&(e.currentIndex=1),e.mark()},previousMatch:function(){var e=this;e.currentIndex--,e.currentIndex<1&&(e.currentIndex=e.matches.length),e.mark()},getMarkedIndex:function(){return this.matches.length?this.currentIndex:0},getFirstMarked:function(){return e(this.targets).find("mark").eq(0)},destroy:function(){var t=this;t.resetMark(),e(t.targets).children("span:not(."+t.options.charClass+")").each(function(t,n){e(n).text(e(n).text())})}});i(kendo.pdfviewer,{SearchDOM:r})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/dialogs.min",["kendo.dialog.min","kendo.window.min","kendo.binder.min","kendo.numerictextbox.min","kendo.dropdownlist.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.extend,o=n.Class,r={svg:".svg",png:".png"},a=n.keys,s=o.extend({init:function(t){this.options=i(t,{actions:[{text:t.messages.dialogs.okText}]}),this._dialog=e("<div />").kendoDialog(this.options).getKendoDialog()},open:function(){this._dialog.center().open()}}),l=o.extend({init:function(e){return this.options=i(e,this.options,{fileFormats:[{description:e.messages.dialogs.exportAsDialog.png,extension:r.png},{description:e.messages.dialogs.exportAsDialog.svg,extension:r.svg}],title:e.messages.dialogs.exportAsDialog.title,open:function(){this.center()}}),this._initializeDialog(),this},options:{extension:r.png,autoFocus:!0,resizable:!1,modal:{preventScroll:!0},width:"90%",maxWidth:520,template:"<div class='k-edit-label'><label>#: messages.exportAsDialog.labels.fileName #:</label></div><div class='k-edit-field'><input class='k-textbox' data-bind='value: name' /></div><div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.saveAsType #:</label></div><div class='k-edit-field'><select data-role='dropdownlist' class='k-file-format' data-text-field='description' data-value-field='extension' data-bind='value: extension, source: fileFormats'></select></div></div><div class='k-edit-label'><label>#: messages.exportAsDialog.labels.page #:</label></div><div class='k-edit-field'><input data-role='numerictextbox' data-format='n0' data-min='1' data-max='#: total #' data-bind='value: page' /></div><div class='k-action-buttons'><button class='k-button k-primary' data-bind='click: apply'>#: messages.save #</button><button class='k-button' data-bind='click: close'>#: messages.cancel #</button></div>"},_updateModel:function(e){e.pagesCount&&this.viewModel.set("pagesCount",e.pagesCount),e.page&&this.viewModel.set("page",e.page)},_initializeDialog:function(){var t=this,i=t.options,o=i.messages.dialogs,r=e("<div class='k-pdf-viewer-window k-action-window k-popup-edit-form' />").append(n.template(i.template)({total:i.pagesCount,messages:o})).kendoWindow(i).getKendoWindow();return t.viewModel=n.observable({title:o.exportAsDialog.title,name:o.exportAsDialog.defaultFileName,extension:i.extension,fileFormats:i.fileFormats,pagesCount:i.pagesCount,page:1,apply:t.apply.bind(this),close:function(){r.close()}}),t._dialog=r,n.bind(r.element,t.viewModel),r},open:function(){this._dialog.center().open()},apply:function(){this._dialog.close(),this.options.apply({fileName:this.viewModel.name+this.viewModel.extension,extension:this.viewModel.extension,page:this.viewModel.page})}}),d=o.extend({init:function(e){var t=this;t.options=i({},e,t.options)},options:{resizable:!1,template:"<div class='k-search-container'><button class='k-button k-button-icon k-flat k-search-dialog-draghandle'><span class='k-icon k-i-handler-drag'></span></button><span class='k-textbox'><input class='k-search-dialog-input' data-bind='value: boundValue, events: { keyup: onKeyup, input: onInput }' aria-label='#: messages.inputLabel #' title='#: messages.inputLabel #' /><button class='k-button k-button-icon k-flat k-match-case-button' data-bind='css: {k-state-selected: matchCase}, click: matchCaseClick' aria-label='#: messages.matchCase #' title='#: messages.matchCase #'><span class='k-icon k-i-convert-lowercase'></span></button></span><span class='k-search-matches'><span data-bind='text: matchIndex'></span> #: messages.of # <span data-bind='text: matches'></span></span><button class='k-button k-button-icon k-flat' data-bind='click: prev' aria-label='#: messages.previous #' title='#: messages.previous #'><span class='k-icon k-i-arrow-up'></span></button><button class='k-button k-button-icon k-flat' data-bind='click: next' aria-label='#: messages.next #' title='#: messages.next #'><span class='k-icon k-i-arrow-down'></span></button><button class='k-button k-button-icon k-flat' data-bind='click: close' aria-label='#: messages.close #' title='#: messages.close #'><span class='k-icon k-i-close'></<span></button></div>"},open:function(){var e=this;e.dialog||e._initializeDialog(),e.dialog.open()},_initializeDialog:function(){var t=this,o=n.template(t.options.template),r=e("<div class='k-pdf-viewer-search-dialog'></div>").append(o({messages:t.options.messages})),s={top:t.options.position.top+16,left:t.options.position.left+16};t.dialog=new n.ui.Window(r,i({},t.options,{autoFocus:!1,title:!1,position:{top:s.top,left:s.left},minHeight:30,draggable:{dragHandle:".k-search-dialog-draghandle"},activate:function(e){e.sender.element.find(".k-search-dialog-input").focus()}})),t.searchModel=n.observable({boundValue:"",searchText:"",matchCase:!1,matchIndex:0,matches:0,matchCaseClick:function(){this.set("matchCase",!this.matchCase)},next:t.options.next,prev:t.options.prev,close:function(){this.set("boundValue",""),t.dialog.close()},onKeyup:function(e){var t=e.keyCode,n=e.shiftKey?this.prev:this.next;t===a.ENTER&&(n(),e.preventDefault())},onInput:function(e){this.set("searchText",e.target.value)}}),n.bind(t.dialog.element,t.searchModel)}});i(n.pdfviewer,{dialogs:{ErrorDialog:s,ExportAsDialog:l,SearchDialog:d}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("pdfviewer/commands.min",["kendo.upload.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.proxy,o=e.extend,r=e.parseJSON,a=n.ui.progress,s=n.Class,l="open",d="zoomStart",c="zoomEnd",u=s.extend({init:function(e){this.options=e,this.viewer=e.viewer,this.errorMessages=this.viewer.options.messages.errorMessages}}),h=u.extend({init:function(e){u.fn.init.call(this,e),this.upload=this.viewer.processor.upload},exec:function(){(this.viewer._upload||this._initUpload()).element.click()},_initUpload:function(){var t,n={select:i(this._onSelect,this),success:i(this._onSuccess,this),error:i(this._onError,this),complete:i(this._onComplete,this),showFileList:!1,multiple:!1,validation:{allowedExtensions:[".pdf"]}};return this.upload&&o(n,{async:{saveUrl:this.upload.url,autoUpload:!0,saveField:this.upload.saveField}}),t=e('<input name="files" accept=".pdf" type="file" />').kendoUpload(n).getKendoUpload(),this.viewer._upload=t,t},_onComplete:function(){a(this.viewer.pageContainer,!1)},_onSuccess:function(t){var n=r(t.response);e.isPlainObject(n)?this.viewer.processor.fromJSON(n):this.viewer._triggerError({error:n,message:this.errorMessages.parseError})},_onError:function(e){this.viewer._triggerError({error:e.XMLHttpRequest.responseText,message:this.errorMessages.notSupported})},_onSelect:function(e){var n,i=this,o=e.files[0];if(a(i.viewer.pageContainer,!0),!i.viewer.trigger(l,{file:o})&&!i.upload){if(".pdf"!==o.extension.toLowerCase())return i.viewer._triggerError({error:o,message:i.errorMessages.notSupported}),t;n=new FileReader,n.onload=function(e){var t=e.target.result;i.viewer.fromFile(t)},n.onerror=function(){i.viewer._triggerError({error:o,message:i.errorMessages.parseError
})},n.readAsArrayBuffer(o.rawFile)}}}),p=u.extend({exec:function(){var e=this.options.value;this.viewer.activatePage(e)}}),f=u.extend({exec:function(){if(!this.viewer.document)return this.viewer._triggerError({message:this.errorMessages.notFound}),t;var e=this.viewer.document.info&&this.viewer.document.info.title||this.viewer.options.messages.defaultFileName;this.viewer.processor.downloadFile(e)}}),m=u.extend({init:function(t){t=e.extend(t,this.options),u.fn.init.call(this,t)},exec:function(){var e=this.viewer._saveDialog||this._initDialog();e._updateModel({pagesCount:this.viewer.document&&this.viewer.document.total||1,page:this.viewer.options.page}),e.open()},apply:function(e){var t=e.extension;".png"===t?this.viewer.exportImage(e):".svg"===t&&this.viewer.exportSVG(e)},_initDialog:function(){return this.viewer._saveDialog=new n.pdfviewer.dialogs.ExportAsDialog({apply:this.apply.bind(this),pagesCount:this.viewer.document&&this.viewer.document.total||1,messages:this.viewer.options.messages})}}),g=u.extend({exec:function(){var e=this,t=e.viewer;t._toggleSelection(!0)}}),v=u.extend({exec:function(){var e=this,t=e.viewer;t._toggleSelection(!1)}}),_=u.extend({init:function(e){var t=this;t.viewer=e.viewer,t.viewer.searchDialog||(t.viewer.searchDialog=new n.pdfviewer.dialogs.SearchDialog({position:{top:t.viewer.pageContainer.offset().top,left:t.viewer.pageContainer.offset().left},messages:t.viewer.options.messages.dialogs.search,open:i(t._open,t),next:i(t._next,t),prev:i(t._prev,t),close:i(t._close,t)})),u.fn.init.call(t,e)},exec:function(){var e=this;e.viewer.searchDialog.open()},_open:function(){var e=this;e.changeHandler=i(e._change,e),e.zoomStartHandler=i(e._closeDialog,e),e.openFileHandler=i(e._closeDialog,e),e.viewer._searchDOM||(e.viewer._initSearchDOM(),e.viewer.searchDialog.searchModel.bind("change",e.changeHandler),e.viewer.bind("zoomStart",e.zoomStartHandler),e.viewer.bind("open",e.openFileHandler))},_close:function(){var e=this,t=e.viewer._searchDOM;e.viewer.searchDialog.searchModel.unbind("change",e.changeHandler),e.viewer.unbind("zoomStart",e.zoomStartHandler),e.viewer.unbind("open",e.openFileHandler),t.destroy(),delete e.viewer._searchDOM,e._updateSearchModel()},_change:function(e){var t=this,n=t.viewer._searchDOM,i=e.field,o=t.viewer.searchDialog.searchModel,r=o[i];if(n)switch(i){case"searchText":n.search(r,o.matchCase),t._updateSearchModel();break;case"matchCase":n.search(o.searchText,r),t._updateSearchModel()}},_next:function(){var e=this,t=e.viewer._searchDOM;t.matches&&t.matches.length&&(t.nextMatch(),e._updateSearchModel())},_prev:function(){var e=this,t=e.viewer._searchDOM;t.matches&&t.matches.length&&(t.previousMatch(),e._updateSearchModel())},_updateSearchModel:function(){var e=this,t=e.viewer._searchDOM,n=e.viewer.searchDialog.searchModel;t?(n.set("matches",t.matches.length),n.set("matchIndex",t.getMarkedIndex()),e._scrollToMark()):(n.set("searchText",""),n.set("matches",0),n.set("matchIndex",0),n.set("matchCase",!1))},_scrollToMark:function(){var e,t=this,n=t.viewer._searchDOM,i=n.getFirstMarked(),o=t.viewer._scroller;i.length&&(e=i.offset().top-o.scrollElement.offset().top-100,o.scrollTo(o.scrollLeft,e*-1))},_closeDialog:function(){var e=this;e.viewer.searchDialog.dialog.close()}}),b=u.extend({exec:function(){var e,t=this,n=t.options,i=t.viewer,o=n.scale,r=0,a=t.viewer._pageNum,s=i.pageContainer[0].clientHeight,l=1,d=[];"dpl"!==i.processingLib&&(o=t._calculateZoom(),e=function(){var e=t.viewer._scroller,n=i._scrollingStarted;e.scrollTop>e.scrollHeight()&&e._resize(),n||(i.activatePage(a),i._scrollingStarted=!1)},o&&(i.zoomScale=o,i._scrollingStarted=!1,i.pages.forEach(function(e){var t;i._visiblePages.indexOf(e)!==-1&&e.loaded?(d.push(e.render(o)),t=e._page.getViewport({scale:o}).height):(e.resize(o),t=e.element.height()),r+=t,r<=s&&l++}),i._visiblePagesCount!=l&&(i._visiblePagesCount=l,i._loadVisiblePages()),Promise.all(d).then(function(){e(),t._triggerZoomEnd(o)})["catch"](function(){e(),t._triggerZoomEnd(o)})))},_calculateZoom:function(){var e,t=this.options,n=this.viewer,i=n.options,o=n.pageContainer,r=n._visiblePages&&n._visiblePages[0].canvas,a=t.scale,s=a;if(n._allowResize=!1,n._autoFit=!1,t.zoomIn?s=a=n.zoomScale+i.zoomRate:t.zoomOut?s=a=n.zoomScale-i.zoomRate:"auto"===a?(n._allowResize=!0,s=n._autoZoomScale):"actual"===a?s=1:"fitToWidth"===a?(n._allowResize=!0,n._autoFit="fitToWidth",s=o.width()/(r.width/n.zoomScale)):"fitToPage"===a&&(n._allowResize=!0,n._autoFit="fitToPage",s=o.height()/(r.height/n.zoomScale)),e=a<i.zoomMin||a>i.zoomMax,!e&&!n.trigger(d,{scale:a}))return t.updateComboBox&&n.toolbar&&n.toolbar._updateZoomComboBox(a),s},_triggerZoomEnd:function(e){var t=this,n=t.viewer;n.trigger(c,{scale:e})}}),w=u.extend({init:function(e){u.fn.init.call(this,e)},exec:function(){var e=this;return e.viewer.document?(a(e.viewer.pageContainer,!0),e._renderPrintContainer(),e._loadAllPages().then(i(e.processAfterRender,e)),t):(e.viewer._triggerError({message:this.errorMessages.notFound}),t)},_renderPrintContainer:function(){this.printContainer=e("<div></div>")},_loadAllPages:function(){function t(e){a.push(e._renderPromise)}var n,i=this,o=i.viewer.pages,r=[],a=[],s=e.Deferred();for(i._originalScale=i.viewer.zoom(),n=0;n<o.length;n++)r.push(o[n].load(3,!0).then(t));return Promise.all(r).then(function(){s.resolve(a)}),s},processAfterRender:function(e){var t=this;Promise.all(e).then(function(){t._renderPrintPages(),setTimeout(function(){t._printDocument(),t.viewer.zoom(t._originalScale),a(t.viewer.pageContainer,!1),delete t._originalScale},0)})},_renderPrintPages:function(){var e,t=this.viewer.pages;for(e=0;e<t.length;e++)this._renderPrintImage(t[e])},_renderPrintImage:function(t){var n=t.canvas,i=e("<div></div>"),o="<img src='"+n.toDataURL()+"' width='"+t.width+"px' height='"+t.height+"px' />";i.append(o),this.printContainer.append(i)},_printDocument:function(){var e=this,n=e.viewer.pages,i=n[0].width,o=n[0].height,r=window.open("","","innerWidth="+i+",innerHeight="+o+"location=no,titlebar=no,toolbar=no");return r?(r.document.write(e.printContainer.html()),r.document.close(),r.focus(),r.print(),r.close(),t):(e.viewer._triggerError({message:e.errorMessages.popupBlocked}),t)}});o(n.pdfviewer,{OpenCommand:h,PageChangeCommand:p,DownloadCommand:f,EnableSelectionCommand:g,EnablePanCommand:v,ExportCommand:m,PrintCommand:w,OpenSearchCommand:_,ZoomCommand:b})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pdfviewer.min",["kendo.mobile.scroller.min","pdfviewer/processors/pdfjs-processor.min","pdfviewer/processors/dpl-processor.min","pdfviewer/toolbar.min","pdfviewer/page.min","pdfviewer/search.min","pdfviewer/dialogs.min","pdfviewer/commands.min"],e)}(function(){return function(e,t){var n,i=".kendoPDFViewer",o=window.kendo,r=o.ui,a=e.proxy,s=e.extend,l=o.drawing,d=e.extend({PLUS:187,MINUS:189,ZERO:48,NUMPAD_ZERO:96},o.keys),c=r.Widget,u=o.ui.progress,h="scroll",p="render",f="open",m="error",g="focus"+i,v="keydown"+i,_="DOMMouseScroll"+i+" mousewheel"+i,b="update",w=1.25,k="pagechange",y="zoomStart",x="zoomEnd",C="ZoomCommand",S="#ffffff",T="tabindex",D={pdfjs:"pdfjs",dpl:"dpl"},A={viewer:"k-pdf-viewer k-widget",scroller:"k-canvas k-list-scroller",enableTextSelection:"k-enable-text-select",enablePanning:"k-enable-panning",highlightClass:"k-search-highlight",charClass:"k-text-char"},E=c.extend({init:function(e,t){var n=this;c.fn.init.call(n,e,o.deepExtend({},this.options,t)),n._wrapper(),n.options.toolbar&&n._renderToolbar(),n._initProcessor(t||{}),n._renderPageContainer(),n._loadDocument(),n._tabindex(),o.notify(n,o.ui)},events:[p,f,m,y,x],options:{name:"PDFViewer",view:{type:"canvas"},pdfjsProcessing:{file:null},dplProcessing:{read:{url:null,type:"GET",dataType:"json",pageField:"pageNumber"},upload:{url:null,saveField:"file"},download:{url:null},loadOnDemand:!1},toolbar:{items:[]},width:1e3,height:1200,page:1,defaultPageSize:{width:794,height:1123},scale:null,zoomMin:.5,zoomMax:4,zoomRate:.25,messages:{defaultFileName:"Document",toolbar:{zoom:{zoomLevel:"zoom level",zoomOut:"Zoom Out",zoomIn:"Zoom In",actualWidth:"Actual Width",autoWidth:"Automatic Width",fitToWidth:"Fit to Width",fitToPage:"Fit to Page"},open:"Open",exportAs:"Export",download:"Download",pager:{first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",of:" of {0} ",page:"page",pages:"pages"},print:"Print",toggleSelection:"Enable Selection",togglePan:"Enable Panning",search:"Search"},errorMessages:{notSupported:"Only pdf files allowed.",parseError:"PDF file fails to process.",notFound:"File is not found.",popupBlocked:"Popup is blocked."},dialogs:{exportAsDialog:{title:"Export...",defaultFileName:"Document",pdf:"Portable Document Format (.pdf)",png:"Portable Network Graphics (.png)",svg:"Scalable Vector Graphics (.svg)",labels:{fileName:"File name",saveAsType:"Save as",page:"Page"}},okText:"OK",save:"Save",cancel:"Cancel",search:{inputLabel:"Search Text",matchCase:"Match Case",next:"Next Match",previous:"Previous Match",close:"Close",of:"of"}}}},_wrapper:function(){var e=this,t=e.options;e.wrapper=e.element,e.wrapper.width(t.width).height(t.height).addClass(A.viewer).on(g,a(e._focus,e)).on(v,a(e._keydown,e)),e._allowResize=null===e.options.scale,e._autoZoomScale=w,e.zoomScale=e.options.scale||e._autoZoomScale,e._resizeHandler=o.onResize(function(){e.resize()}),e._pageNum=e.options.page},_focus:function(e){this.toolbar?this.toolbar.wrapper.focus():this.pageContainer.focus(),e.preventDefault()},_keydown:function(e){var t=[d.PLUS,d.NUMPAD_PLUS],n=[d.MINUS,d.NUMPAD_MINUS],i=[d.ZERO,d.NUMPAD_ZERO],o=!1,r={command:C,options:{updateComboBox:!0}};e.ctrlKey&&!this._blankPage&&this.processingLib!==D.dpl&&(t.includes(e.keyCode)?(r.options.zoomIn=!0,o=!0):n.includes(e.keyCode)?(r.options.zoomOut=!0,o=!0):i.includes(e.keyCode)&&(r.options.scale=w,o=!0),o&&(this.execute(r),e.preventDefault()))},_initProcessor:function(e){var t,i=this;t=e.dplProcessing?i.options.dplProcessing:i.options.pdfjsProcessing,i.processingLib=e.dplProcessing?D.dpl:D.pdfjs,i.processor=new o.pdfviewer[i.processingLib].processor(t,i),n=o.pdfviewer[i.processingLib].Page},_renderToolbar:function(){var t=this,n=t.options,i={pager:{messages:n.messages.toolbar.pager},scale:n.scale,resizable:!0,items:n.toolbar.items,width:n.width,action:t.execute.bind(t),messages:n.messages.toolbar,viewer:this},r=e("<div />");r.appendTo(t.element),t.toolbar=new o.pdfviewer.Toolbar(r,i)},_initErrorDialog:function(e){var t,n=this;return n._errorDialog||(e=s(e,{messages:n.options.messages}),t=new o.pdfviewer.dialogs.ErrorDialog(e),n._errorDialog=t._dialog),n._errorDialog},_renderPageContainer:function(){var t=this;t.pageContainer||(t.pageContainer=e("<div />"),t.pageContainer.addClass(A.scroller),t.pageContainer.attr(T,0),t.wrapper.append(t.pageContainer))},_triggerError:function(e){var t=this._initErrorDialog();s(e,{dialog:t}),this.pageContainer&&u(this.pageContainer,!1),this.trigger(m,e)||t.open().content(e.message)},_renderPages:function(){var e,i,o,r,a=this,l=a.document;if(a.pages=[],!l||!l.total)return a._renderBlankPage(),t;for(e=l.pages,i=1;i<=l.total;i++)r={processor:a.processor,number:i},e&&e.length&&(r=s(r,e[i-1])),o=new n(r,a),a.pages.push(o),a.pageContainer.append(o.element);a._attachContainerEvents(),a._getVisiblePagesCount()},_renderBlankPage:function(){this._blankPage=new n(this.options.defaultPageSize,this),this.pageContainer.append(this._blankPage.element),this.trigger(b,{isBlank:!0})},_resize:function(){var e,n,i=this;if(i._allowResize){if(!i.pages||!i.pages.length)return i._blankPage&&(n=e/i._blankPage.element.width(),i._blankPage.resize(n)),t;i.toolbar&&i.toolbar.resize(!0),i._resizeHandler&&clearTimeout(i._resizeHandler),i._resizeHandler=setTimeout(i._resizePages.bind(i),100)}},_resizePages:function(){var e=this,n=e.pageContainer[0].clientWidth,i=0;return e.pages.forEach(function(e){var t=n/e.element.width();t>i&&(i=t)}),e._autoFit?(e.zoom(e._autoFit,!0),t):(i=Math.min(Math.max(i,e.options.zoomMin),w),i!=e.zoomScale&&(e.zoom(i,!0),e.zoomScale=i,e._allowResize=!0),t)},_attachContainerEvents:function(){var e=this;e._wheel=o.throttle(e._wheel.bind(e),300),e.processingLib!==D.dpl&&e.pageContainer.on(_,function(t){t.ctrlKey&&(document.activeElement!==e.pageContainer[0]&&e.pageContainer.focus(),e._wheel(t),t.preventDefault())}),e._scroller=new o.mobile.ui.Scroller(e.pageContainer,{zoom:!1,elastic:!0}),e._scroller.scrollElement.addClass(A.enablePanning),e._scroller.bind(h,a(e._scroll,this))},_scroll:function(e){var n,i,o,r,a,s,l,d=this,c=d.pageContainer[0].scrollHeight,u=d.pageContainer.height(),h=e.scrollTop,p=d.pageContainer.offset().top,f=d.pages.length,m=d._pageNum,g=m-1,v=m,_=h-d._prevScrollTop>0?1:-1;if(d._preventScroll||!f)return d._preventScroll=!1,t;if(d._scrollingStarted=!0,i=d.pages[g],o=i.element.offset().top-p,r=i.element.height(),_==-1&&d.pages[g+_]&&(a=d.pages[g-d._visiblePagesCount]||d.pages[g+_],s=a.element.offset().top-p,l=a.element.height()),Math.abs(h-(d._prevScrollTop||0))>u*d.zoomScale?v=Math.floor(h*(1/(c/f)))+1:o<0&&Math.abs(o)>=r/2&&1===_?v++:a&&Math.abs(s)<=l/2&&v--,m!==v&&v>=1&&v<=f){if(n=d.pages[v-1].element,n.offset().top>u)return;d._pageNum=v,d._loadVisiblePages(),d.trigger(b,{action:k,page:v,total:f})}d._prevScrollTop=h},_wheel:function(e){var t=e.originalEvent,n=t.wheelDelta?-t.wheelDelta:t.detail,i=n<0;this.execute({command:C,options:{zoomIn:i,zoomOut:!i,updateComboBox:!0}}),e.preventDefault()},zoom:function(e,t){var n=this;return e?n.execute({command:C,options:{scale:e,updateComboBox:!t}}):n.zoomScale},execute:function(e){var t=s({viewer:this},e.options),n=new o.pdfviewer[e.command](t);return n.exec()},_loadDocument:function(){var e=this,t=e.options.page;u(e.pageContainer,!0),e.processor.fetchDocument().done(function(n){e._clearPages(),e.document=n,e._renderPages(),e.resize(!0),n&&(t=t>=1&&t<=n.total?t:1,e.activatePage(t)),u(e.pageContainer,!1)})},loadPage:function(e){var t=this.pages&&this.pages[e-1];if(t)return t.load(this.zoomScale)},activatePage:function(e){var t,n,i,o,r=this.pages&&this.pages[e-1],a=this._scroller;r&&(t=a.scrollTop,n=a.element.offset().top,i=r.element.offset().top,o=this._autoFit?0:parseInt(r.element.css("marginTop"),10),this._pageNum=e,this._loadVisiblePages(),this._preventScroll=!0,this._scroller.scrollTo(0,-t-i+n+o),this.trigger(b,{action:k,page:e,total:this.pages.length}))},_getVisiblePagesCount:function(){for(var e=this,t=0,n=0,i=e.pageContainer[0].clientHeight,o=0;t<=i&&o<e.pages.length;)t+=e.pages[o].element.height(),n++,o++;e._visiblePagesCount=n},_loadVisiblePages:function(){var e,t=this.pages&&this.pages.length,n=Math.max(this._pageNum-this._visiblePagesCount,1),i=Math.min(this._pageNum+this._visiblePagesCount,t);for(this._visiblePages=this.pages.slice(n-1,i),e=n;e<=i;e++)this.loadPage(e)},_loadAllPages:function(){var e,t=this.pages&&this.pages.length,n=[];for(e=0;e<=t;e++)n.push(this.loadPage(e));return n},fromFile:function(e){this.zoomScale=this.options.scale||w,this.trigger(b,{action:"zoom",zoom:this.options.scale||"auto"}),this.processor._updateDocument(e),this._loadDocument()},exportImage:function(e){var t,n=this,i=e.page,r=n.pages[i-1]||n._blankPage,a=new l.Group;r.load(),t=o.drawing.Path.fromRect(new o.geometry.Rect([0,0],[r.width,r.height]),{fill:{color:S},stroke:null}),u(n.pageContainer,!0),a.append(t,r.group),l.exportImage(a).done(function(t){u(n.pageContainer,!1),o.saveAs({dataURI:t,fileName:e.fileName,proxyURL:e.proxyURL||"",forceProxy:e.forceProxy,proxyTarget:e.proxyTarget})})},exportSVG:function(e){var t=this,n=e.page,i=t.pages[n-1]||t._blankPage;u(t.pageContainer,!0),i.load(),l.exportSVG(i.group).done(function(n){u(t.pageContainer,!1),o.saveAs({dataURI:n,fileName:e.fileName,proxyURL:e.proxyURL||"",forceProxy:e.forceProxy,proxyTarget:e.proxyTarget})})},setOptions:function(t){var n=this;(t.pdfjsProcessing||t.dplProcessing)&&n._initProcessor(t||{}),t=e.extend(n.options,t),c.fn.setOptions.call(n,t),t.page&&(n._pageNum=t.page,n.activatePage(t.page)),t.width&&n.element.width(t.width),t.height&&n.element.height(t.height)},destroy:function(){this._resizeHandler&&o.unbindResize(this._resizeHandler),this._errorDialog&&this._errorDialog.destroy(),this._saveDialog&&this._saveDialog.destroy(),this._upload&&this._upload.destroy(),this.toolbar&&(this.toolbar.unbind(),this.toolbar.destroy(),this.toolbar=null),this.pages&&this.pages.length&&(this.pages.forEach(function(e){e.destroy()}),this.pages=[]),this._scroller&&(this._scroller.unbind(),this._scroller.destroy()),this.pageContainer.off(i),c.fn.destroy.call(this)},_clearPages:function(){this.pages=[],this.document=null,this._pageNum=1,this.pageContainer.off(i),this.pageContainer.empty(),this._scroller&&(this._scroller.reset(),this._scroller.unbind(),this._scroller.destroy())},_toggleSelection:function(e){var n=this;e===t&&(e=!0),n._scroller.userEvents._shouldNotMove=e,n._scroller.scrollElement.toggleClass(A.enableTextSelection,e),n._scroller.scrollElement.toggleClass(A.enablePanning,!e)},_initSearchDOM:function(){var e=this,t=new Promise(function(t){Promise.all(e._loadAllPages()).then(function(){e._searchDOM=new o.pdfviewer.SearchDOM({target:e._getTextLayers(),highlightClass:A.highlightClass,charClass:A.charClass}),t()})});return t},_getTextLayers:function(){return this.pages.map(function(e){return e.textLayer})}});r.plugin(E)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.rating.min",["kendo.core.min","kendo.dom.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=".kendoRating",r=i.Widget,a=e.extend,s=e.proxy,l=n.keys,d=n.parseFloat,c="change",u="select",h="selected",p="hovered",f="disabled",m="readonly",g="keydown"+o,v="click"+o,_="mouseenter"+o,b="mouseleave"+o,w="mousemove"+o,k="mousedown"+o,y="focus"+o,x="blur"+o,C="aria-label",S="aria-labelledby",T="aria-valuemin",D="aria-valuemax",A="aria-valuenow",E="aria-disabled",I="aria-readonly",M="k-rating-precision-part",R="k-rating-precision-complement",F=.5,P="_label",z="k-rating-item",B="k-state-focused",L="tabindex",H=".",N="role",O="min",V="max",W={single:"single",continuous:"continuous"},U={item:"item",half:"half"},j={item:"itemTemplate",hovered:"hoveredTemplate",selected:"selectedTemplate"},q={selected:"k-state-selected",hovered:"k-state-hover",hoveredPrecise:"k-state-hover-precise"},G={partValue:"part-value",dataValue:"data-value",value:"value",title:"title"},$={widget:"k-rating k-widget",container:"k-rating-container",item:"k-rating-item",icon:"k-icon k-i-star-outline",iconSelected:"k-icon k-i-star",label:"k-rating-label",disabled:"k-state-disabled",readonly:"k-state-readonly",active:"k-state-active",hidden:"k-hidden"},K=n.template('<span class="#=styles.widget#"></span>'),Y=n.template('<span class="#=styles.container#"></span>'),Q=n.template('<span class="#=styles.label#"></span>'),X=n.template("<span>#=value# / #=maxValue#</span>"),Z=n.template('<span class="#=styles.item#" data-value="#=value#"></span>'),J=n.template('<span class="#=icon#"></span>'),ee=r.extend({init:function(e,t){var i=this;r.fn.init.call(i,e,t),i.options=a({},i.options,t),i._element(),i._wrapper(),i._aria(),i._initSettings(),i._renderItems(),i._renderTooltip(),i._renderLabel(),i._selectInitial(),i._attachEvents(),n.notify(this)},events:[u,c],options:{name:"Rating",messages:{},min:1,max:5,selection:W.continuous,precision:U.item,tooltip:!0,label:!0,readonly:!1,enabled:!0,selectValueOnFocus:null,itemTemplate:null,selectedTemplate:null,hoveredTemplate:null},_element:function(){var e=this;e.element.addClass($.hidden)},_wrapper:function(){var t=this;t.wrapper=e(K({styles:$})),t.wrapper=t.element.wrap(t.wrapper).parent(),t.wrapper.addClass(t.element[0].className.replace($.hidden,"")).append(e(Y({styles:$}))),t.wrapper[0].style.cssText=t.element[0].style.cssText,t.container=t.wrapper.find(H+$.container)},_aria:function(){var t,i=this,o=i.wrapper,r=i.element,a=r.attr("id"),s=e('label[for="'+a+'"]'),l=r.attr(C),c=r.attr(S);i.wrapper.attr(L,0).attr(N,"slider").attr(T,d(i.element.attr(O))||i.options.min).attr(D,d(i.element.attr(V))||i.options.max).attr(A,i.options.value),l?o.attr(C,l):c?o.attr(S,c):s.length&&(t=s.attr("id"),t||(t=(a||n.guid())+P,s.attr("id",t)),o.attr(S,t))},_initSettings:function(){var e=this,t=e.options.precision!=U.item,n=e.options;n.value=d(n.value),null===n.value&&(n.value=d(e.element.val())),n.min=d(e.element.attr(O))||e.options.min,n.max=d(e.element.attr(V))||e.options.max,e._valueMin=t?e.options.min-F:e.options.min,n.enabled=n.enabled&&!e.element.attr(f),n.readonly=n.readonly||!!e.element.attr(m),e._setState()},_renderItems:function(){var t,i,o=this,r=o.container,a=o.options.min,s=o.options.max,l=o.options.itemTemplate?n.template(o.options.itemTemplate):J;for(t=a;t<=s;t+=1)i=e(Z({styles:$,value:t})),i.append(l({icon:$.icon,index:t})),r.append(i)},_renderTooltip:function(){var n,i=this,o=i.container.find(H+z),r=i.options.tooltip===!0;if(!r)return o.removeAttr(G.title),t;for(n=0;n<o.length;n+=1)e(o[n]).attr(G.title,e(o[n]).data(G.value))},_renderLabel:function(){var i=this,o=i.wrapper.find(H+$.label),r=i.options.label===!0||i.options.label.template!==t,a=i.options.label&&i.options.label.template?n.template(i.options.label.template):X;return r&&null!==i.value()?(o.length||(i.label=o=e(Q({styles:$})),i.wrapper.append(o)),o.html(a({styles:$,value:i.value()%1===0?i.value():i._format(i.value()),maxValue:i.options.max})),t):(o.remove(),i.label=null,t)},_selectInitial:function(){var e=this;isNaN(e.options.value)||e.value(e.options.value)},_attachEvents:function(){var e=this,t=e.options.precision==U.half;e.wrapper.on(y,s(e._focus,e)).on(x,s(e._blur,e)).on(g,s(e._keydown,e)),e.container.on(v,H+z,s(e._click,e)).on(_,H+z,s(e._mouseenter,e)).on(b,H+z,s(e._mouseleave,e)).on(k,s(e._mousedown,e)),t&&e.container.on(w,H+z,s(e._mousemove,e))},_focus:function(){var e,n,i,o=this,r=o.container,a=o.wrapper,s=o.container.find(H+B),l=o.options.selectValueOnFocus,d=r.children().first();return!o.options.enabled||o.options.readonly||o.preventFocus?(o.options.readonly&&o.wrapper.addClass(B),t):(a.addClass(B),s.removeClass(B),null===o.value()&&null!==l&&o.value(l),e=r.find(H+q.selected).last(),n=r.find(H+q.hovered).last(),i=e.length?e:n,i=i.length?i:d,i.addClass(B),t)},_blur:function(){var e=this;e.preventFocus=!1,e.wrapper.removeClass(B),e.container.find(H+B).removeClass(B),e.element.blur()},_mousedown:function(){var e=this;e.preventFocus=!0},_keydown:function(t){var i,o,r,a,s=this,d=s.container,c=s.parsedValue,u=s.options.precision!=U.item,h=u?F:1,p=d.find(H+z),f=d.find(H+B),m=p.index(f),g=n.support.isRtl(s.wrapper),v=isNaN(c),_=t.keyCode;s.options.enabled&&!s.options.readonly&&(i=_===l.RIGHT&&g||_===l.LEFT&&!g,o=_===l.LEFT&&g||_===l.RIGHT&&!g,i||_===l.DOWN?(r=v?p.eq(0):e(p[m-1]),a=v?s._valueMin:c-h,s._select(r,a),t.preventDefault()):o||_===l.UP?(r=v?p.eq(0):e(p[m+1]),a=v?s._valueMin:c+h,s._select(r,a),t.preventDefault()):_===l.HOME?(r=p.eq(0),s._select(r,s._valueMin),t.preventDefault()):_===l.END&&(r=p.eq(p.length-1),s._select(r),t.preventDefault()))},_getTemplateType:function(e){var t,i=this;return t=i.options[e]?n.template(i.options[e]):J},_renderTemplate:function(t,n){var i,o=this,r=o._getTemplateType(n),a=$.icon;for(n!=j.selected&&n!=j.hovered||(a=$.iconSelected),i=0;i<t.length;i+=1)e(t[i]).html(r({icon:a,index:e(t[i]).index()}))},_updateItemTemplates:function(e,t){var n=this,i=W.single==n.options.selection,o=n.options.precision==U.half,r=n.container.find(H+q.selected),a=i?t:t.prevAll().addBack(),s=i?r:t.nextAll(),l=j[e],d=q[e];s.removeClass(d),a.addClass(d),n._renderTemplate(a,l),(!i||i&&e==h&&a.get(0)!=r.get(0))&&n._renderTemplate(s,j.item),o&&n._renderTemplate(t,j.item)},_change:function(e,t){var n=this,i=n.value();n.value(t),n.trigger(c,{target:e,oldValue:i,newValue:n.value()})},_click:function(t){var n=this,i=e(t.target).closest(H+z),o=i.attr(G.dataValue);n.options.enabled&&!n.options.readonly&&(i.data(G.partValue)&&(o=i.data(G.partValue)),n._select(i,o))},_select:function(e,t){var n=this,i=isNaN(t)?e.attr(G.dataValue):t;i==n.value()||i<n._valueMin||i>n.options.max||(n.trigger(u,{target:e}),n._change(e,i),n._focus())},_mouseenter:function(t){var n=this,i=e(t.target),o=i.closest(H+z);n.options.enabled&&!n.options.readonly&&(n.enableMove=!0,i.is(H+z)&&n._updateItemTemplates(p,o))},_mouseleave:function(t){var n,i,o,r,a,s=this,l=s.options.selection,d=s.options.precision==U.half,c=l==W.single,u=e(t.target).closest(H+z),p=s.container.find(H+z);if(s.enableMove=!1,o=function(e){n=s.parsedValue%1!==0&&e.is(s.container.find("[data-value="+Math.ceil(s.parsedValue)+"]")),i=!e.hasClass(q.selected)&&!e.hasClass(q.hovered)||n?j.item:j.selected,s._renderTemplate(e,i),d&&n&&e.hasClass(q.selected)&&s._togglePrecisionElements(e,h)},p.removeClass(q.hovered),c)o(u);else for(r=0;r<p.length;r+=1)a=e(p[r]),o(a)},_mousemove:function(t){var n,i,o,r=this,a=e(t.target).closest(H+z);r.enableMove&&(a.length&&(n=t.clientX,i=a.offset().left,o=Math.abs(n-i),r._togglePrecisionElements(a,p),r._updatePrecisionElements(a,o)),t.preventDefault())},_togglePrecisionElements:function(t,n){var i,o,r=this,a=t.find(H+M),s=r._getTemplateType(j[n]);a.length?a.html(s({icon:$.iconSelected})):(i=r.parsedValue%1!==0,o=r._getItemWidth(t),a=e("<span></span>").addClass(M),a.append(s({icon:$.iconSelected})),a.width(i?o/2:o),t.append(a),t.append(e("<span></span>").css({width:o,height:o,display:"block"})),r._createUpdatePrecisionComplement(t,i))},_createUpdatePrecisionComplement:function(t,i){var o=this,r=t.find(H+R),a=t.children().first(),s=n.support.isRtl(o.wrapper),l=s?"right":"left";r.length||(r=a.wrap(e("<span></span>").addClass(R)).parent()),r.width(i?o._getItemWidth(t)/2:0),r.css(l,i||s?"50%":0)},_calculateItemWidthFromStyles:function(e){if(e)return d(e.find(".k-icon").css("font-size"))},_getItemWidth:function(e){if(e)return e.width()||this._calculateItemWidthFromStyles(e)||0},_updatePrecisionElements:function(e,t){var i=this,o=e.find(H+M),r=n.parseFloat(e.data(G.value)),a=n.support.isRtl(this.wrapper),s=e.width(),l=s/2,c=d(e.outerWidth()/2),u=a?t>c:t<c;e.length&&o.length&&(o.width(u?l:s),this.options.tooltip&&e.attr(G.title,u?i._format(r-F):r),e.data(G.partValue,u?r-F:r),i._createUpdatePrecisionComplement(e,u))},_updateElement:function(e){var t=this,n=null===e?"":e;t.element.val(t._format(n)),null===t.value?t.wrapper.removeAttr(A):t.wrapper.attr(A,t._format(e))},_updateItemsRendering:function(e){var t=this,n=t.options.precision==U.half,i=null===e?"item":h,o=null===e?t.container.find(H+q.selected).last():t.container.find(H+z+"[data-value='"+Math.ceil(e)+"']");null===e&&t.container.find(H+z).removeClass(q.selected),t._updateItemTemplates(i,o),n&&null!==e&&t._togglePrecisionElements(o,h),t._renderLabel()},_setState:function(){var e=this,t=e.element,n=e.wrapper,i=e.options.readonly,o=e.options.enabled;i&&o?(t.attr(m,m),n.attr(I,!0)):(t.removeAttr(m),n.removeAttr(I)),o?(t.removeAttr(f),n.removeAttr(E),n.attr(L,0)):(t.attr(f,f),n.attr(E,!0),n.removeAttr(L)),n.toggleClass($.disabled,!o),n.toggleClass($.readonly,i&&o)},_format:function(e){return n.toString(e,"n1",n.getCulture().name)},value:function(e){var n=this,i=n.options.precision==U.half;return null===e?(n._updateElement(e),n._updateItemsRendering(e),t):(e=d(e),null===e?e=d(n.element.val()):(e=Math.max(n._valueMin,Math.min(e,n.options.max)),n.parsedValue=i?d(n._format(Math.ceil(2*e)/2)):Math.round(e),n._updateElement(e),n._updateItemsRendering(e),t))},reset:function(){var e=this;e.value(null)},enable:function(e){var n=this;t===e&&(e=!0),n.options.enabled=e,n.options.readonly=!1,n._setState()},readonly:function(e){var n=this;t===e&&(e=!0),n.options.readonly=e,n.options.enabled=!0,n._setState()},setOptions:function(n){var i=this;i.options=e.extend(i.options,n),n.enabled!==t&&i.enable(n.enabled),n.readonly!==t&&i.readonly(n.readonly),n.label!==t&&i._renderLabel(),n.tooltip!==t&&i._renderTooltip(),n.value!==t&&i.value(n.value),(n.min||n.max!==t||n.itemTemplate!==t||n.selectedTemplate!==t||n.hoveredTemplate!==t)&&(i.container.empty(),i._renderItems(),i._renderLabel(),i._renderTooltip(),i._selectInitial())},destroy:function(){var e=this;e.wrapper.off(o),e.container.off(o),r.fn.destroy.call(e)}});i.plugin(ee)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.angular.min",["kendo.core.min"],e)}(function(){return function(e,t,n){"use strict";function i(e){var t=T;try{return T=function(e){return e()},e()}finally{T=t}}function o(t,i,o,d,c,g){function v(){var n,g,v,_,b,x,S;return o.kRebind&&(n=e(e(i)[0].cloneNode(!0))),C=r(t,i,o,d,y).options,i.is("select")&&!function(t){var n,i;if(t.length>0)for(n=e(t[0]),!/\S/.test(n.text())&&/^\?/.test(n.val())&&n.remove(),i=0;i<t.length;i++)e(t[i]).off("$destroy")}(i[0].options),g=y.call(i,E=C).data(d),l(g,t,o,d,c),t.$emit("kendoWidgetCreated",g),v=p(t,g),o.kRebind&&m(g,t,i,n,o.kRebind,v,o),o.kNgDisabled&&(_=o.kNgDisabled,b=t.$eval(_),b&&g.enable(!b),a(g,t,i,_)),o.kNgReadonly&&(x=o.kNgReadonly,S=t.$eval(x),S&&g.readonly(S),s(g,t,i,x)),o.kNgModel&&h(g,t,o.kNgModel),w&&u(g,t,i,w,k),g&&f(g,i),g}var _,b,w,k,y,x,C,S,D,A,I,M,R,F;if(!(i instanceof jQuery))throw Error("The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.");if(_=o.kNgDelay,b=t.$eval(_),g=g||[],w=g[0],k=g[1],y=e(i)[d],!y)return window.console.error("Could not find: "+d),null;if(x=r(t,i,o,d,y),C=x.options,x.unresolved.length){for(S=[],D=0,A=x.unresolved.length;D<A;D++)I=x.unresolved[D],M=e.Deferred(function(e){var i=t.$watch(I.path,function(t){t!==n&&(i(),e.resolve())})}).promise(),S.push(M);return e.when.apply(null,S).then(v),n}return _&&!b?(R=t.$root||t,F=function(){var e=t.$watch(_,function(t){t!==n&&(e(),i.removeAttr(o.$attr.kNgDelay),_=null,T(v))})},/^\$(digest|apply)$/.test(R.$$phase)?F():t.$apply(F),n):v()}function r(i,o,r,a,s){function l(e,o){var r=t.copy(i.$eval(o));r===n?f.push({option:e,path:o}):d[e]=r}var d,c,u,h,p=a.replace(/^kendo/,""),f=[],m=r.kOptions||r.options,g=i.$eval(m);return m&&g===n&&f.push({option:"options",path:m}),d=t.extend({},r.defaultOptions,g),c=s.widget.prototype.options,u=s.widget.prototype.events,e.each(r,function(e,t){var n,i,o,r;"source"!==e&&"kDataSource"!==e&&"kScopeField"!==e&&"scopeField"!==e&&(n="data"+e.charAt(0).toUpperCase()+e.slice(1),0===e.indexOf("on")&&(i=e.replace(/^on./,function(e){return e.charAt(2).toLowerCase()}),u.indexOf(i)>-1&&(d[i]=t)),c.hasOwnProperty(n)?l(n,t):c.hasOwnProperty(e)&&!R[e]?l(e,t):M[e]||(o=e.match(/^k(On)?([A-Z].*)/),o&&(r=o[2].charAt(0).toLowerCase()+o[2].slice(1),o[1]&&"kOnLabel"!=e?d[r]=t:("kOnLabel"==e&&(r="onLabel"),l(r,t)))))}),h=r.kDataSource||r.source,h&&(d.dataSource=I(i,o,p,h)),d.$angular=[i],{options:d,unresolved:f}}function a(e,t,i,o){return kendo.ui.PanelBar&&e instanceof kendo.ui.PanelBar||kendo.ui.Menu&&e instanceof kendo.ui.Menu?(A.warn("k-ng-disabled specified on a widget that does not have the enable() method: "+e.options.name),n):(t.$watch(o,function(t,n){t!=n&&e.enable(!t)}),n)}function s(e,t,i,o){return"function"!=typeof e.readonly?(A.warn("k-ng-readonly specified on a widget that does not have the readonly() method: "+e.options.name),n):(t.$watch(o,function(t,n){t!=n&&e.readonly(t)}),n)}function l(e,t,n,i,o){if(n[o]){var r=S(n[o]).assign;if(!r)throw Error(o+" attribute used but expression in it is not assignable: "+n[i]);r(t,e)}}function d(e){return/checkbox|radio/i.test(e.attr("type"))?e.prop("checked"):e.val()}function c(e){return F.test(e[0].tagName)}function u(e,t,i,o,r){var a,s,l,u,h;e.value&&(s=!1,a=c(i)?function(){return d(i)}:function(){return e.value()},l=function(){var i=o.$viewValue;i===n&&(i=o.$modelValue),i===n&&(i=null),s=!0,setTimeout(function(){if(s=!1,e){var n=t[e.element.attr("k-ng-model")];n&&(i=n),e.options.autoBind!==!1||e.listView.bound()?e.value(i):i&&e.value(i);
}},0)},o.$render=l,setTimeout(function(){o.$render!==l&&(o.$render=l)()}),c(i)&&i.on("change",function(){s=!0}),u=function(e){return function(){var n;s&&!i.is("select")||(e&&r&&(n=r.$pristine),o.$setViewValue(a()),e&&(o.$setPristine(),n&&r.$setPristine()),w(t))}},e.first("change",u(!1)),e.first("spin",u(!1)),kendo.ui.AutoComplete&&e instanceof kendo.ui.AutoComplete||e.first("dataBound",u(!0)),h=a(),isNaN(o.$viewValue)||h==o.$viewValue||(o.$isEmpty(o.$viewValue)?null!=h&&""!==h&&h!=o.$viewValue&&o.$setViewValue(h):e.value(o.$viewValue)),o.$setPristine())}function h(t,i,o){var r,a,s,l,d,c,u,p,f,m,g,v,_;return kendo.ui.DateRangePicker&&t instanceof kendo.ui.DateRangePicker?(r=o.split(","),a=r[0].trim(),h(t._startDateInput,i,a),r[1]?(s=r[1].trim(),h(t._endDateInput,i,s),t.range({start:i[a],end:i[s]})):t.range({start:i[a],end:null}),n):"function"!=typeof t.value?(A.warn("k-ng-model specified on a widget that does not have the value() method: "+t.options.name),n):(l=e(t.element).parents("ng-form, form").first(),d=kendo.getter(l.attr("name"),!0)(i),c=S(o),u=c.assign,p=!1,f=kendo.ui.MultiSelect&&t instanceof kendo.ui.MultiSelect||kendo.ui.RangeSlider&&t instanceof kendo.ui.RangeSlider,m=function(e){return e&&f?e.length:0},g=m(c(i)),t.$angular_setLogicValue(c(i)),v=function(e,i){e===n&&(e=null),p||e==i&&m(e)==g||(g=m(e),t.$angular_setLogicValue(e))},f?i.$watchCollection(o,v):i.$watch(o,v),_=function(){p=!0,d&&d.$pristine&&d.$setDirty(),w(i,function(){u(i,t.$angular_getLogicValue()),g=m(c(i))}),p=!1},t.first("change",_),t.first("spin",_),n)}function p(e,t){var n=e.$on("$destroy",function(){n(),t&&(kendo.destroy(t.element),t=null)});return n}function f(t,n){function i(){a.disconnect()}function o(){a.observe(e(n)[0],{attributes:!0})}var r,a;window.MutationObserver&&t.wrapper&&(r=[].slice.call(e(n)[0].classList),a=new MutationObserver(function(n){i(),t&&(n.forEach(function(n){var i,o=e(t.wrapper)[0];switch(n.attributeName){case"class":i=[].slice.call(n.target.classList),i.forEach(function(e){r.indexOf(e)<0&&(o.classList.add(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.add(e))}),r.forEach(function(e){i.indexOf(e)<0&&(o.classList.remove(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.remove(e))}),r=i;break;case"disabled":"function"!=typeof t.enable||t.element.attr("readonly")||t.enable(!e(n.target).attr("disabled"));break;case"readonly":"function"!=typeof t.readonly||t.element.attr("disabled")||t.readonly(!!e(n.target).attr("readonly"))}}),o())}),o(),t.first("destroy",i))}function m(t,n,i,o,r,a,s){var l=n.$watch(r,function(r,d){var c,u,h,p,f;t._muteRebind||r===d||(l(),s._cleanUp&&s._cleanUp(),c=U[t.options.name],c&&c.forEach(function(t){var i=n.$eval(s["k"+t]);i&&o.append(e(i).attr(kendo.toHyphens("k"+t),""))}),u=e(t.wrapper)[0],h=e(t.element)[0],p="Upload"===t.options.name,p&&(i=e(h)),f=i.injector().get("$compile"),t._destroy(),a&&a(),t=null,h&&(u&&u.parentNode.replaceChild(h,u),e(i).replaceWith(o)),f(o)(n))},!0);w(n)}function g(e,t){return function(n,i){return e.call(t,n,i)}}function v(e,t){this[e]=kendo.stringify(t)}function _(e,n){function i(e,t){x.directive(e,["directiveFactory",function(n){return n.create(t,e)}])}var o,r,a,s,l=n?"Mobile":"";l+=e.fn.options.name,o=l,r="kendo"+l.charAt(0)+l.substr(1).toLowerCase(),l="kendo"+l,a=l.replace(/([A-Z])/g,"-$1"),z.indexOf(l.replace("kendo",""))==-1&&(s=l===r?[l]:[l,r],t.forEach(s,function(e){x.directive(e,function(){return{restrict:"E",replace:!0,template:function(e,t){var n=P[o]||"div",i=t.kScopeField||t.scopeField;return"<"+n+" "+a+(i?'="'+i+'"':"")+">"+e.html()+"</"+n+">"}}})})),B.indexOf(l.replace("kendo",""))>-1||(i(l,l),r!=l&&i(r,l))}function b(t){return t=e(t),kendo.widgetInstance(t,kendo.ui)||kendo.widgetInstance(t,kendo.mobile.ui)||kendo.widgetInstance(t,kendo.dataviz.ui)}function w(e,t){var n=e.$root||e,i=/^\$(digest|apply)$/.test(n.$$phase);t?i?t():n.$apply(t):i||n.$digest()}function k(t,n){t.$destroy(),n&&e(n).removeData("$scope").removeData("$$kendoScope").removeData("$isolateScope").removeData("$isolateScopeNoTemplate").removeClass("ng-scope")}function y(n,i,o){var r,a,s;if(e.isArray(n))return t.forEach(n,function(e){y(e,i,o)});if("string"==typeof n){for(r=n.split("."),a=kendo;a&&r.length>0;)a=a[r.shift()];if(!a)return W.push([n,i,o]),!1;n=a.prototype}return s=n[i],n[i]=function(){var e=this,t=arguments;return o.apply({self:e,next:function(){return s.apply(e,arguments.length>0?arguments:t)}},t)},!0}var x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U;t&&t.injector&&(x=t.module("kendo.directives",[]),C=t.injector(["ng"]),S=C.get("$parse"),T=C.get("$timeout"),A=C.get("$log"),I=function(){var e={TreeList:"TreeListDataSource",TreeView:"HierarchicalDataSource",Scheduler:"SchedulerDataSource",PivotGrid:"PivotDataSource",PivotConfigurator:"PivotDataSource",PanelBar:"HierarchicalDataSource",Menu:"$PLAIN",ContextMenu:"$PLAIN"},t=function(e,t){return"$PLAIN"==t?e:kendo.data[t].create(e)};return function(n,i,o,r){var a=e[o]||"DataSource",s=n.$eval(r),l=t(s,a);return n.$watch(r,function(e){var n,o=b(i);o&&"function"==typeof o.setDataSource&&e!==s&&e!==o.dataSource&&(n=t(e,a),o.setDataSource(n),s=e)}),l}}(),M={kDataSource:!0,kOptions:!0,kRebind:!0,kNgModel:!0,kNgDelay:!0},R={name:!0,title:!0,style:!0},F=/^(input|select|textarea)$/i,x.factory("directiveFactory",["$compile",function(t){var n,i,r=!1;return D=t,i=function(t,i){return{restrict:"AC",require:["?ngModel","^?form"],scope:!1,controller:["$scope","$attrs","$element",function(e,t){this.template=g(v,t),t._cleanUp=g(function(){this.template=null,t._cleanUp=null},this)}],link:function(a,s,l,d){var c,u=e(s),h=t.replace(/([A-Z])/g,"-$1");u.attr(h,u.attr("data-"+h)),u[0].removeAttribute("data-"+h),c=o(a,s,l,t,i,d),c&&(n&&clearTimeout(n),n=setTimeout(function(){a.$emit("kendoRendered"),r||(r=!0,e("form").each(function(){var t=e(this).controller("form");t&&t.$setPristine()}))}))}}},{create:i}}]),P={Editor:"textarea",NumericTextBox:"input",DatePicker:"input",DateTimePicker:"input",TimePicker:"input",AutoComplete:"input",ColorPicker:"input",MaskedTextBox:"input",MultiSelect:"input",Upload:"input",Validator:"form",Button:"button",MobileButton:"a",MobileBackButton:"a",MobileDetailButton:"a",ListView:"ul",MobileListView:"ul",ScrollView:"div",PanelBar:"ul",TreeView:"ul",Menu:"ul",ContextMenu:"ul",ActionSheet:"ul",Switch:"input"},z=["MobileView","MobileDrawer","MobileLayout","MobileSplitView","MobilePane","MobileModalView"],B=["MobileApplication","MobileView","MobileModalView","MobileLayout","MobileActionSheet","MobileDrawer","MobileSplitView","MobilePane","MobileScrollView","MobilePopOver"],t.forEach(["MobileNavBar","MobileButton","MobileBackButton","MobileDetailButton","MobileTabStrip","MobileScrollView","MobileScroller"],function(e){B.push(e),e="kendo"+e,x.directive(e,function(){return{restrict:"A",link:function(t,n,i){o(t,n,i,e,e)}}})}),L=kendo.htmlEncode,H=/{{/g,N=/}}/g,O="{&#8203;{",V="}&#8203;}",kendo.htmlEncode=function(e){return L(e).replace(H,O).replace(N,V)},W=[],kendo.onWidgetRegistered(function(t){W=e.grep(W,function(e){return!y.apply(null,e)}),_(t.widget,"Mobile"==t.prefix)}),y(["ui.Widget","mobile.ui.Widget"],"angular",function(o,r){var a,s=this.self;return"init"==o?(!r&&E&&(r=E),E=null,r&&r.$angular&&(s.$angular_scope=r.$angular[0],s.$angular_init(s.element,r)),n):(a=s.$angular_scope,a&&i(function(){var i,l,d=r(),c=d.elements,u=d.data;if(c.length>0)switch(o){case"cleanup":t.forEach(c,function(t){var n=e(t).data("$$kendoScope");n&&n!==a&&n.$$kendoScope&&k(n,t)});break;case"compile":i=s.element.injector(),l=i?i.get("$compile"):D,t.forEach(c,function(t,i){var o,r;d.scopeFrom?o=d.scopeFrom:(r=u&&u[i],r!==n?(o=e.extend(a.$new(),r),o.$$kendoScope=!0):o=a),e(t).data("$$kendoScope",o),l(t)(o)}),w(a)}}),n)}),y("ui.Widget","$angular_getLogicValue",function(){return this.self.value()}),y("ui.Widget","$angular_setLogicValue",function(e){this.self.value(e)}),y("ui.Select","$angular_getLogicValue",function(){var e=this.self.dataItem(),t=this.self.options.dataValueField;return e?this.self.options.valuePrimitive?t?e[t]:e:e.toJSON():null}),y("ui.Select","$angular_setLogicValue",function(e){var t=this.self,i=t.options,o=i.dataValueField,r=i.text||"";e===n&&(e=""),o&&!i.valuePrimitive&&e&&(r=e[i.dataTextField]||"",e=e[o||i.dataTextField]),t.options.autoBind!==!1||t.listView.bound()?t.value(e):!r&&e&&i.valuePrimitive?t.value(e):t._preselect(e,r)}),y("ui.MultiSelect","$angular_getLogicValue",function(){var t=this.self.dataItems().slice(0),n=this.self.options.dataValueField;return n&&this.self.options.valuePrimitive&&(t=e.map(t,function(e){return e[n]})),t}),y("ui.MultiSelect","$angular_setLogicValue",function(t){var n,i,o,r;null==t&&(t=[]),n=this.self,i=n.options,o=i.dataValueField,r=t,o&&!i.valuePrimitive&&(t=e.map(t,function(e){return e[o]})),i.autoBind!==!1||i.valuePrimitive||n.listView.bound()?n.value(t):n._preselect(r,t)}),y("ui.Widget","$angular_init",function(t,n){var i,o,r,a,s=this.self;if(n&&!e.isArray(n))for(i=s.$angular_scope,o=s.events.length;--o>=0;)r=s.events[o],a=n[r],a&&"string"==typeof a&&(n[r]=s.$angular_makeEventHandler(r,i,a))}),y("ui.Widget","$angular_makeEventHandler",function(e,t,n){return n=S(n),function(e){w(t,function(){n(t,{kendoEvent:e})})}}),y(["ui.Grid","ui.ListView","ui.TreeView","ui.PanelBar"],"$angular_makeEventHandler",function(e,n,i){return"change"!=e?this.next():(i=S(i),function(e){var o,r,a,s,l,d,c,u,h,p=e.sender,f=p.options,m={kendoEvent:e};for(t.isString(f.selectable)&&(o=f.selectable.indexOf("cell")!==-1,r=f.selectable.indexOf("multiple")!==-1),p._checkBoxSelection&&(r=!0),a=m.selected=this.select(),s=m.data=[],l=m.columns=[],c=0;c<a.length;c++)u=o?a[c].parentNode:a[c],h=p.dataItem(u),o?(t.element.inArray(h,s)<0&&s.push(h),d=t.element(a[c]).index(),t.element.inArray(d,l)<0&&l.push(d)):s.push(h);r||(m.dataItem=m.data=s[0],m.angularDataItem=kendo.proxyModelSetters(m.dataItem),m.selected=a[0]),w(n,function(){i(n,m)})})}),y("ui.Grid","$angular_init",function(i,o){if(this.next(),o.columns){var r=e.extend({},kendo.Template,o.templateSettings);t.forEach(o.columns,function(e){!e.field||e.template||e.format||e.values||e.encoded!==n&&!e.encoded||(e.template="<span ng-bind='"+kendo.expr(e.field,"dataItem")+"'>#: "+kendo.expr(e.field,r.paramName)+"#</span>")})}}),y("mobile.ui.ButtonGroup","value",function(e){var t=this.self;return null!=e&&(t.select(t.element.children("li.km-button").eq(e)),t.trigger("change"),t.trigger("select",{index:t.selectedIndex})),t.selectedIndex}),y("mobile.ui.ButtonGroup","_select",function(){this.next(),this.self.trigger("change")}),x.directive("kendoMobileApplication",function(){return{terminal:!0,link:function(e,t,n){o(e,t,n,"kendoMobileApplication","kendoMobileApplication")}}}).directive("kendoMobileView",function(){return{scope:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileView","kendoMobileView")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileDrawer",function(){return{scope:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileDrawer","kendoMobileDrawer")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileModalView",function(){return{scope:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileModalView","kendoMobileModalView")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileSplitView",function(){return{terminal:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileSplitView","kendoMobileSplitView")},post:function(e,t,n){n._instance._layout()}}}}).directive("kendoMobilePane",function(){return{terminal:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,o(e,t,n,"kendoMobilePane","kendoMobilePane")}}}}).directive("kendoMobileLayout",function(){return{link:{pre:function(e,t,n){o(e,t,n,"kendoMobileLayout","kendoMobileLayout")}}}}).directive("kendoMobileActionSheet",function(){return{restrict:"A",link:function(t,n,i){n.find("a[k-action]").each(function(){e(this).attr("data-"+kendo.ns+"action",e(this).attr("k-action"))}),o(t,n,i,"kendoMobileActionSheet","kendoMobileActionSheet")}}}).directive("kendoMobilePopOver",function(){return{terminal:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,o(e,t,n,"kendoMobilePopOver","kendoMobilePopOver")}}}}).directive("kendoViewTitle",function(){return{restrict:"E",replace:!0,template:function(e){return"<span data-"+kendo.ns+"role='view-title'>"+e.html()+"</span>"}}}).directive("kendoMobileHeader",function(){return{restrict:"E",link:function(e,t){t.addClass("km-header").attr("data-role","header")}}}).directive("kendoMobileFooter",function(){return{restrict:"E",link:function(e,t){t.addClass("km-footer").attr("data-role","footer")}}}).directive("kendoMobileScrollViewPage",function(){return{restrict:"E",replace:!0,template:function(e){return"<div data-"+kendo.ns+"role='page'>"+e.html()+"</div>"}}}),t.forEach(["align","icon","rel","transition","actionsheetContext"],function(e){var t="k"+e.slice(0,1).toUpperCase()+e.slice(1);x.directive(t,function(){return{restrict:"A",priority:2,link:function(n,i,o){i.attr(kendo.attr(kendo.toHyphens(e)),n.$eval(o[t]))}}})}),U={TreeMap:["Template"],MobileListView:["HeaderTemplate","Template"],MobileScrollView:["EmptyTemplate","Template"],Grid:["AltRowTemplate","DetailTemplate","RowTemplate"],ListView:["EditTemplate","Template","AltTemplate"],Pager:["SelectTemplate","LinkTemplate"],PivotGrid:["ColumnHeaderTemplate","DataCellTemplate","RowHeaderTemplate"],Scheduler:["AllDayEventTemplate","DateHeaderTemplate","EventTemplate","MajorTimeHeaderTemplate","MinorTimeHeaderTemplate"],ScrollView:["Template"],PanelBar:["Template"],TreeView:["Template"],Validator:["ErrorTemplate"]},function(){var e={};t.forEach(U,function(n,i){t.forEach(n,function(t){e[t]||(e[t]=[]),e[t].push("?^^kendo"+i)})}),t.forEach(e,function(e,t){var n="k"+t,i=kendo.toHyphens(n);x.directive(n,function(){return{restrict:"A",require:e,terminal:!0,compile:function(t,o){if(""===o[n]){t.removeAttr(i);var r=t[0].outerHTML;return function(t,o,a,s){for(var l;!l&&s.length;)l=s.shift();l?(l.template(n,r),o.remove()):A.warn(i+" without a matching parent widget found. It can be one of the following: "+e.join(", "))}}}}})})}())}(window.kendo.jQuery,window.angular),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("filemanager/commands.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.extend,o=e.Deferred,r=e.proxy,a=n.Class,s=a.extend({init:function(e){this.options=e,this.filemanager=e.filemanager}}),l=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.filemanager,n=t._commandStack,i=t._viewDataSource||t.dataSource,o=r(e._remove,e);e._item=i._createNewModel(),n.push({item:e._item.toJSON()}).fail(o),i.add(e._item)},_remove:function(){var e=this,t=e.filemanager,n=t._viewDataSource||t.dataSource;n.pushDestroy(e._item)}}),d=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.options.target,n=e.filemanager,i=n._commandStack,o=n._view.widgetComponent.dataItem(t);t&&o?(i.push({target:t,item:o}),e.filemanager._view.edit(t)):e._renameTreeViewItem(t)},_renameTreeViewItem:function(e){var t=this,n=t.filemanager,i=n._commandStack,o=e.data("uid"),r=t.filemanager.treeView.widgetComponent.dataSource.getByUid(o),a=t.filemanager.dataSource.get(r.id);t.filemanager._prompt({type:"rename",defaultInput:a.name,target:e}).done(function(t){i.push({target:e,item:a}),a.set("name",t)})}}),c=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e,t,n,i,o=this,r=o.options.target,a=o.filemanager,s=a.getSelected(),l=o.filemanager._view.widgetComponent.dataItem(r);r&&r.is(".k-state-selected")&&s&&s.length?e=s:r&&l?e=l:r&&(t=r.data("uid"),n=o.filemanager.treeView.widgetComponent.dataSource.getByUid(t),i=o.filemanager.dataSource.get(n.id),e=i),a._confirm({type:"delete",target:r}).done(function(){o.removeItems(e)})},removeItems:function(e){var t=this;t._itemsToRemove=Array.isArray(e)?e:[e],t._removeItem()},_removeItem:function(){var e=this,t=e.filemanager,n=t._commandStack,i=t.dataSource,o=!!e._itemsToRemove.length&&e._itemsToRemove.splice(0,1)[0];o&&(n.push({item:o}).then(r(e._removeItem,e),r(e._removeItem,e)),i.remove(o))}}),u=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e,t,n=this,i=n.filemanager,o=i.dataSource,r=i._commandStack,a=n.options.items,s=o.get(n.options.target),l=s.children;for(e=0;e<a.length;e++)t=o.get(a[e]).toJSON(),t.fileManagerNewItem=!0,r.push({item:t,target:s}),l.add(t)}}),h=s.extend({init:function(e){var t=this;s.fn.init.call(t,e),t._itemsToRemove=[]},exec:function(){var e,t,i,o,a=this,s=a.filemanager,l=s._commandStack,d=s.dataSource,c=a.options.items,u=d.get(a.options.target),h=u.children,p=[];for(e=0;e<c.length;e++)t=d.get(c[e]),i=t.toJSON(),i.fileManagerNewItem=!0,o=l.push({item:t,target:u}).then(r(a._delete,a)),p.push(o),h.add(i);n.whenAll(p).always(r(a._removeItem,a))},_delete:function(e){var t=this;t._itemsToRemove.push(e.item)},_removeItem:function(){var e=this,t=e.filemanager,n=t._commandStack,i=t.dataSource,o=!!e._itemsToRemove.length&&e._itemsToRemove.splice(0,1)[0];o&&(n.push({item:o}).then(r(e._removeItem,e),r(e._removeItem,e)),i.remove(o))}}),p=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.options,n=e.filemanager,o=n.defaultSortOption;i(o,{dir:t.dir,field:t.field}),n._view.widgetComponent.dataSource.sort([n.folderSortOption,o])}}),f=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.options,n=e.filemanager,i={field:t.field,operator:t.operator,value:t.value};n._view.widgetComponent.dataSource.filter(i)}}),m=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.options,n=e.filemanager;n.view(t.value),n.resize(!0)}}),g=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.filemanager,i=t[e.options.type];i?i.open():window.console.warn(n.format("The {0} dialog is not available!",e.options.type))}}),v=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.filemanager,n=t[e.options.type],i=e.getResizable();n&&(n.toggle(),i&&t.wrapper.find(i.options.handle).toggle())},getResizable:function(){var e=this,t=e.filemanager,n=e.options.type;if(t._resizeDraggable)return t._resizeDraggable[n]}}),_=a.extend({init:function(){var e=this;e._stack={},e._keys=[]},push:function(e){var t=this,i=n.guid();return t._keys.push(i),t._stack[i]={guid:i,data:e,deferred:o()},t._stack[i].deferred},next:function(){var e=this,t=e.keys().splice(0,1),n=e._stack[t];return n},resolve:function(e){var t=this;delete t._stack[e.guid],e.deferred.resolve(e.data)},reject:function(e){var t=this;delete t._stack[e.guid],e.deferred.reject(e.data)},keys:function(){return this._keys},empty:function(){return 0===this.keys().length}});i(n.ui,{filemanager:{FileManagerCommand:s,CommandStack:_,commands:{CreateFolderCommand:l,RenameCommand:d,DeleteCommand:c,MoveCommand:h,CopyCommand:u,SortCommand:p,SearchCommand:f,ChangeViewCommand:m,OpenDialogCommand:g,TogglePaneCommand:v}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("filemanager/view.min",["kendo.listview.min","kendo.treeview.min"],e)}(function(){return function(e,t){var n,i,o,r=window.kendo,a=r.ui,s=r.Observable,l=e.extend,d=e.proxy,c=r.keys,u="navigate",h="select",p="expand",f="change",m="open",g="load",v="keydown",_="keydownAction",b=".kendoFileManagerViewComponent",w=[],k=null,y=function(e,t){a.filemanager.ViewComponents[e]=t},x=function(e){return a.filemanager.ViewComponents[e]||null},C=s.extend({init:function(e,t,n){var i=this;if(i.element=t,i.options=n,!e)throw Error("The widget for the ViewComponent is not available! Please add the corresponding scripts!");i.widgetComponent=new e(t,n),s.fn.init.call(i)},_bindEvents:function(){this.widgetComponent.bind("dataBinding",d(this._binding,this)),this.widgetComponent.bind("dataBound",d(this._bound,this))},_binding:function(e){this.trigger("dataBinding",e)&&e.preventDefault()},_bound:function(){this.trigger("dataBound")},_setDSOptions:function(e,t){!e.dataSource&&t&&(e.dataSource=t)},_initDragAndDrop:function(e,t){var n=this;t=t||n.options.dropFilter,e=e||n.element,n.draggable=e.kendoDraggable({filter:t,hint:d(n._hint,n),cursorOffset:{top:-10,left:-50},holdToDrag:!0,ignore:"input, .k-focusable",hold:d(n._hold,n)}).data("kendoDraggable"),n.draggable.userEvents.minHold=150,n.droptarget=e.kendoDropTargetArea({filter:t,drop:d(n._onDrop,n),dragenter:function(e){e.dropTarget.addClass("k-filemanager-drop-target")},dragleave:function(e){e.dropTarget.removeClass("k-filemanager-drop-target")}}).data("kendoDraggable")},_hold:function(e){var t=this,n=e.currentTarget;n.is(".k-state-selected")||(t.widgetComponent.selectable&&t.widgetComponent.selectable.clear(),t.widgetComponent.select(n)),t.widgetComponent.selectable&&t.widgetComponent.selectable.userEvents.cancel()},_hint:function(e){var t=this,n=t.widgetComponent.dataItem(e),i=t.widgetComponent.select();return k=t.widgetComponent,w=i,i.length>1?r.format("<div class='k-filemanager-drag-hint'><span class='k-icon k-i-{0}'></span> <span>{1} {2}</span></div>","file",i.length,t.options.messages.items):r.format("<div class='k-filemanager-drag-hint'><span class='k-icon k-i-{0}'></span> <span>{1}</span></div>",n.isDirectory?"folder":"file",n.name)},_onDrop:function(e){var t,n,i=this,o=i.widgetComponent.dataItem(e.dropTarget),r=o.id,a=[];if(o.isDirectory){for(t=0;t<w.length;t++)n=k.dataItem(w[t]).id,a.push(n);this.trigger("drop",{target:r,items:a})}},getSelected:function(){throw Error("Not Implemented!")},refresh:function(e){this.widgetComponent.setDataSource(e)},destroy:function(){r.destroy(this.element)}});l(r.ui.filemanager,{ViewComponent:C,ViewComponents:{},registerViewComponent:y,getViewComponent:x}),n=C.extend({init:function(e,t,n){var i=this,o=n.dataSource,r=n.messages;t=l({},i.defaultOptions,t,{messages:r}),i._setDSOptions(t,o),t.kendoKeydown=t.kendoKeydown||d(i._kendoKeydown,i),C.fn.init.call(this,a.ListView,e,t),i.listView=i.widgetComponent,i._bindEvents(),n.draggable===!1||o.isLocalBinding||i._initDragAndDrop()},defaultOptions:{layout:"flex",flex:{direction:"row",wrap:"wrap"},selectable:r.support.mobileOS?"row":"multiple",template:"<div class='k-listview-item' title='#:name##:extension#'><div class='k-file-preview'><span class='k-file-icon k-icon k-i-#= !isDirectory ? kendo.getFileGroup(extension, true) : 'folder' #'></span></div><div class='k-file-name file-name'>#:name##:extension#</div></div>",editTemplate:"<div class='k-listview-item'><div class='k-file-preview'><span class='k-file-icon k-icon k-i-#= !isDirectory ? kendo.getFileGroup(extension, true) : 'folder' #'></span></div><div class='k-file-name'><input type='text' class='k-textbox' data-bind='value:name' name='name' required='required' /></div></div>",dropFilter:".k-listview-item",navigatable:!0},_bindEvents:function(){var e=this,t=e.listView;t.bind(f,d(e._select,e)),t.element.on("dblclick"+b,d(e._dblClick,e)),t.element.on("mousedown"+b,".k-listview-item:not(.k-edit-item)",d(e._mousedown,e)),t.element.on(v+b,".k-edit-item",d(e._keydown,e)),t.element.on(v+b,d(e._keydownAction,e)),t.bind("edit",function(t){var n=t.sender;t.item.find("input").on("blur",function(){var t=n._modelFromElement(n.editable.element).dirty;n._closeEditable(),t||e.trigger("cancel")})}),t.bind("cancel",function(){e.trigger("cancel")}),C.fn._bindEvents.call(this)},_select:function(){var e=this,t=e.getSelected();e.trigger(h,{entries:t})},_keydown:function(e){var t=this;e.keyCode===r.keys.ESC&&(t.listView._closeEditable(),t.trigger("cancel"))},_keydownAction:function(t){var n=this,i=e(t.target).find(".k-state-focused");i.length&&!i.is(".k-edit-item")&&n.trigger(_,{target:i,keyCode:t.keyCode})},_mousedown:function(t){var n=this,i=e(t.target).closest(".k-listview-item");3!==t.which||i.is(".k-state-selected")||(n.listView.selectable.clear(),n.listView.select(i))},_kendoKeydown:function(e){var t=this,n=t.listView.current();e.keyCode!==c.ENTER||e.preventKendoKeydown||(t._triggerOpen(n),e.preventKendoKeydown=!0)},_dblClick:function(t){var n=this,i=e(t.target).closest(".k-listview-item");n._triggerOpen(i)},_triggerOpen:function(e){var t,n=this;e.is(".k-edit-item")||(t=n.listView.dataItem(e),t&&n.trigger(m,{entry:t}))},addFolder:function(){this.listView.add()},edit:function(e){var t=this,n=t.listView.select();t.listView.edit(e||n)},getSelected:function(){var e,t,n=this,i=n.listView.select(),o=[];for(e=0;e<i.length;e++)t=n.listView.dataItem(i[e]),t&&o.push(t);return o},destroy:function(){this.listView.element.off(b),C.fn.destroy.call(this)}}),a.filemanager.registerViewComponent("list",n),i=C.extend({init:function(e,t,n){var i=this,o=n.messages;t=l({},i.defaultOptions,t,{messages:o}),C.fn.init.call(this,a.TreeView,e,t),i.treeView=i.widgetComponent,i._bindEvents(),n.draggable===!1||n.isLocalBinding||i._initDragAndDrop()},defaultOptions:{dataTextField:"name",dropFilter:".k-item"},_refreshDataSource:function(n){var i,o=this,a=o.treeView,s=n.action,d=n.node,c=null,u=n.items.filter(function(e){return e.isDirectory}).map(function(e){return l({},e.toJSON(),{id:e.id||r.guid(),hasChildren:e.hasChildren,items:[]})});d&&(c=a.findByUid(a.dataSource.get(d.id).uid),a._progress(c,!1)),u.length&&("itemloaded"==s||c&&"sync"===s?(c.find(".k-item").each(function(e,t){a.remove(t)}),a.append(u,c),o._shouldFocus&&(a.current(c),a.focus())):"remove"==s?this._remove(u[0].id):"itemchange"==s?(i=a.dataSource.get(u[0].id),i?i.set(n.field,u[0][n.field]):a.append(u[0],c)):a.dataSource.data().length?("sync"===s||s===t&&!c)&&(a.items().each(function(e,t){a.remove(t)}),a.append(u),o._shouldFocus&&(a.current(a._nextVisible(e())),a.focus())):a.append(u))},_remove:function(e){var t,n=this,i=n.treeView,o=i.dataSource,r=o.get(e);r&&(t=i.findByUid(r.uid),i.remove(t))},_bindEvents:function(){var e=this;e.treeView.bind(h,d(e._navigate,e)),e.treeView.bind(p,d(e._expand,e)),e.treeView.element.bind(v,d(e._keydownAction,e))},_keydownAction:function(t){var n=this,i=e(t.target).find(".k-state-focused").closest(".k-item");n.trigger(_,{target:i,keyCode:t.keyCode})},_expand:function(e){var t=this,n=t.treeView,i=n.dataItem(e.node);e.preventDefault(),t.trigger(g,{entryId:i.id})},_navigate:function(e){var t=this,n=e.node,i=t.treeView.dataItem(n),o=i.id;e.preventDefault(),t.trigger(u,{path:o,entry:i.toJSON()})},_hold:e.noop,getSelected:function(){var e=this,t=e.treeView.element.find(".k-state-selected").closest(".k-item"),n=e.treeView.dataItem(t);return n},refresh:function(e){var t=this,n=t.treeView,i=n.dataSource.get(e),o=i&&n.findByUid(i.uid);i&&o&&(n.element.find(".k-state-selected").removeClass("k-state-selected"),o.find("> div .k-in").removeClass("k-state-hover").addClass("k-state-selected"))},reload:function(){this.treeView.dataSource.read()}}),a.filemanager.registerViewComponent("tree",i),r.ui.Grid&&(o=C.extend({init:function(e,t,n){var i=this,o=n.dataSource,r=n.messages;t=l({},i.defaultOptions,t,{messages:r}),i._setDSOptions(t,o),i._setupColumns(t,r),t.kendoKeydown=t.kendoKeydown||d(i._kendoKeydown,i),C.fn.init.call(this,a.Grid,e,t),i.grid=i.widgetComponent,i._bindEvents(),n.draggable===!1||o.isLocalBinding||i._initDragAndDrop()},defaultOptions:{selectable:r.support.mobileOS?"row":"multiple",editable:{mode:"inline",confirmation:!1},sortable:!0,dropFilter:"tr:not(.k-grid-edit-row)",navigatable:!0},_setupColumns:function(e,t){e.columns||(e.columns=[{field:"name",title:t.nameField||"Name",template:function(e){var t=e.isDirectory?"folder":r.getFileGroup(e.extension,!0),n="<div class='file-group-icon'><span class='k-icon k-i-"+t+"'></span></div><div class='file-name'>"+r.htmlEncode(e.name+e.extension)+"<div>";return n}},{field:"created",title:t.dateCreatedField,format:"{0:G}"},{field:"size",title:t.sizeField,template:function(e){return e.size>0?r.getFileSizeMessage(e.size):""}}])},_bindEvents:function(){var t=this,n=t.grid;n.bind(f,d(t._select,t)),n.table.on("dblclick"+b,d(t._dblClick,t)),n.table.on("mousedown"+b,"tr:not(.k-grid-edit-row)",d(t._mousedown,t)),n.table.on(v+b,".k-grid-edit-row",d(t._keydown,t)),n.table.on(v+b,d(t._keydownAction,t)),n.bind("edit",function(){t._toggleFocusable(!0)}),n.bind("cancel",function(){t.trigger("cancel")}),n.saveRow=e.noop,C.fn._bindEvents.call(this)},_kendoKeydown:function(e){var t=this,n=t.grid.current(),i=n?n.closest("tr[data-uid]"):null;i&&e.keyCode===c.ENTER&&!e.preventKendoKeydown&&(t._triggerOpen(i),e.preventKendoKeydown=!0),e.keyCode===c.F2&&(e.preventKendoKeydown=!0)},_keydownAction:function(t){var n=this,i=e(t.target).find(".k-state-focused").closest("tr");i.length&&!i.is(".k-grid-edit-row")&&n.trigger(_,{target:i,keyCode:t.keyCode})},_keydown:function(t){var n=this,i=n.grid;e(t.target).closest(".k-grid-edit-row").length&&(t.keyCode===r.keys.ENTER&&(setTimeout(function(){n._closeEditable()}),n._tryCancel()),t.keyCode===r.keys.ESC&&(i.cancelChanges(),n.trigger("cancel")))},_mousedown:function(t){var n=this,i=e(t.target).closest("tr[data-uid]");1===t.which&&n.grid.editable&&(setTimeout(function(){n._closeEditable()}),n._tryCancel()),3!==t.which||i.is(".k-state-selected")||(n.grid.selectable.clear(),n.grid.select(i))},_tryCancel:function(){var e,t=this,n=t.grid;n.editable&&(e=n._editContainer,e.find("input").val()||n.cancelChanges()),setTimeout(function(){t._toggleFocusable(!1)})},_toggleFocusable:function(e){var t=this,n=t.grid;n.table.find("tr,td").children().addBack().toggleClass("k-focusable",e)},_closeEditable:function(){var e,t=this;t.grid.editable&&!t.grid.editable.options.model.dirty&&(e=t.grid._editContainer,t.grid._destroyEditable(),t.grid._displayRow(e),t.trigger("cancel"))},_select:function(){var e=this,t=e.getSelected();e.trigger(h,{entries:t})},_dblClick:function(t){var n=this,i=e(t.target).closest("tr[data-uid]");n._triggerOpen(i)},_triggerOpen:function(e){var t,n=this;e.is(".k-grid-edit-row")||(t=n.grid.dataItem(e),t&&n.trigger(m,{entry:t}))},getSelected:function(){var e,t=this,n=t.grid.select(),i=[];for(e=0;e<n.length;e++)i.push(t.grid.dataItem(n[e]));return i},addFolder:function(){this.grid.addRow()},edit:function(e){var t=this,n=t.grid.select();t.grid.editRow(e||n)},destroy:function(){this.grid.table.off(b),this.grid.element.off(b),C.fn.destroy.call(this)}}),a.filemanager.registerViewComponent("grid",o))}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("filemanager/toolbar.min",["kendo.toolbar.min","kendo.switch.min"],e)}(function(){return function(e,t){var n,i=window.kendo,o=e.extend,r=e.proxy,a=i.ui.ToolBar,s=i.toolbar.Item,l="click",d="toggle",c="close",u="action",h="change",p=".fileManagerToolbar",f=a.extend({init:function(e,t){var n=this;n._extendOptions(t),a.fn.init.call(n,e,t),n._attachEvents()},events:a.fn.events.concat([u]),defaultTools:{createFolder:{type:"button",text:"New Folder",name:"createFolder",command:"CreateFolderCommand",rules:'{ "remote": true }'},upload:{type:"button",text:"Upload",name:"upload",command:"OpenDialogCommand",options:'{ "type": "uploadDialog" }',rules:'{ "remote": true }'},sortDirection:{type:"buttonGroup",text:"Sort Direction",name:"sortDirection",buttons:[{name:"sortDirectionAsc",icon:"sort-asc-sm",togglable:!0,group:"sortDirection",command:"SortCommand",options:'{ "dir": "asc" }',selected:!0},{name:"sortDirectionDesc",icon:"sort-desc-sm",togglable:!0,group:"sortDirection",command:"SortCommand",options:'{ "dir": "desc" }'}]},sortField:{type:"splitButton",text:"Sort By",name:"sortField",command:"SortCommand",menuButtons:[{name:"nameField",text:"Name",options:'{"field": "name"}',command:"SortCommand"},{name:"typeField",text:"Type",options:'{"field": "extension"}',
command:"SortCommand"},{name:"sizeField",text:"Size",options:'{"field": "size"}',command:"SortCommand"},{name:"dateCreatedField",text:"Date created",options:'{"field": "createdUtc"}',command:"SortCommand"},{name:"dateModifiedField",text:"Date modified",options:'{"field": "modifiedUtc"}',command:"SortCommand"}]},changeView:{type:"buttonGroup",text:"Change View",name:"changeView",buttons:[{name:"gridView",icon:"grid-layout",togglable:!0,group:"changeView",command:"ChangeViewCommand",options:"grid"},{name:"listView",icon:"grid",togglable:!0,group:"changeView",command:"ChangeViewCommand",options:"list"}]},spacer:{type:"spacer"},details:{type:"fileManagerDetailsToggle",text:"View Details",name:"details",overflow:"never",command:"TogglePaneCommand",options:'{ "type": "preview" }'},search:{type:"fileManagerSearch",text:"Search",name:"search",command:"SearchCommand",icon:"search",overflow:"never",options:'{ "field": "name", "operator": "startswith" }'}},_attachEvents:function(){var e=this;e.bind(d,r(e._click,e)),e.bind(c,r(e._click,e)),e.bind(l,r(e._click,e)),e.bind(h,r(e._change,e))},_extendOptions:function(e){var t=this,n=e.items?e.items:Object.keys(t.defaultTools);t.options=e,t.options.items=t._extendToolsOptions(n)},_extendToolsOptions:function(t){var n=this,a=n.options.messages;if(t.length)return t.map(function(t){var s,l,d=e.isPlainObject(t)&&1===Object.keys(t).length&&t.name;return t=d?t.name:t,s=e.isPlainObject(t)?t:o({},n.defaultTools[t]),l=s.rules?JSON.parse(s.rules):{},i.deepExtend(s,{id:s.name+"-"+i.guid(),name:s.name,text:a[s.name],attributes:{"aria-label":a[s.name],title:a[s.name],"data-command":s.command,"data-options":s.options},overflow:s.overflow}),"buttonGroup"===s.type&&(s.buttons=s.buttons.map(r(n._mapButtonGroups,n))),"splitButton"===s.type&&(s.menuButtons=s.menuButtons.map(r(n._mapMenuButtons,n))),l.remote&&n.options.filemanager.dataSource.isLocalBinding&&(s.hidden=!0),s},n)},_mapButtonGroups:function(e){var t=this,n=t.options.messages;return"changeView"===e.group&&e.options===t.options.filemanager.options.initialView&&(e.selected=!0),i.deepExtend(e,{attributes:o({},e.attributes,{"aria-label":n[e.name],title:n[e.name],"data-command":e.command,"data-options":e.options})})},_mapMenuButtons:function(e){var t=this,n=t.options.messages;return i.deepExtend(e,{text:n[e.name],attributes:o({},e.attributes,{"aria-label":n[e.name],title:n[e.name],"data-command":e.command,"data-options":e.options})})},_click:function(t){var n=e(t.target).data("command"),i=e(t.target).data("options");n&&this.action({command:n,options:i})},_change:function(t){var n=e(t.target).data("command"),i=e(t.target).data("options");i=o({},i,{value:e(t.target).val()}),n&&this.action({command:n,options:i})},isToolEnabled:function(e){var t,n=this,i=n.options,o=!1;for(t=0;t<i.items.length;t++)if(i.items[t].name==e){o=!0;break}return i.items[e]||o},action:function(e){this.trigger(u,e)},destroy:function(){this.fileManagerSearch&&this.fileManagerSearch.destroy(),a.fn.destroy.call(this)}}),m=s.extend({init:function(t,n){var i=this,o=e("<div class='k-filemanager-search-tool k-textbox'></div>"),r=e("<input class='k-input' autocomplete='off' />"),a=e("<span class='k-input-icon'></span>"),s=e("<span />");i.element=o,i.input=r,i.iconWrapper=a,i.icon=s,i.options=t,i.options.type="fileManagerSearch",i.toolbar=n,i.attributes(),i.renderIcon(),i.addUidAttr(),i.addIdAttr(),i.addOverflowAttr(),i.input.attr({placeholder:i.options.text,title:i.options.text}),i.iconWrapper.append(s),i.element.append(i.input).append(a),i._bindEvents(),i.toolbar.fileManagerSearch=i},attributes:function(){this.options.attributes&&this.input.attr(this.options.attributes)},renderIcon:function(){this.options.icon&&this.icon.addClass("k-icon k-i-"+this.options.icon)},_bindEvents:function(){this._inputHandler=r(this._input,this),this.input.on("input"+p,this._inputHandler)},_input:function(e){this.toolbar.trigger(h,{target:e.target})},destroy:function(){this.element.off(p)}});i.toolbar.registerComponent("fileManagerSearch",m),n=s.extend({init:function(t,n){var o=this,a=e("<div class='k-filemanager-details-toggle'></div>"),s=e("<label>"+t.text+"</label>"),d=e("<input title='"+t.text+"' />");o.element=a,o.input=d,o.label=s,o.options=t,o.toolbar=n,o.attributes(),o.addUidAttr(),o.addIdAttr(),o.addOverflowAttr(),o.element.append(o.label),o.element.append(o.input),o.switchInstance=new i.ui.Switch(o.input,{change:r(o._change,o),messages:{checked:n.options.messages.detailsChecked,unchecked:n.options.messages.detailsUnchecked}}),o.label.on(l+p,r(o._click,o)),o.toolbar.fileManagerDetailsToggle=o},_change:function(e){this.toolbar.trigger(h,{target:e.sender.wrapper.parent()})},_click:function(t){this.switchInstance.toggle(),this.toolbar.trigger(h,{target:e(t.target).parent()})},destroy:function(){this.element.off(p)}}),i.toolbar.registerComponent("fileManagerDetailsToggle",n),o(i.ui.filemanager,{ToolBar:f})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("filemanager/data.min",["kendo.data.min"],e)}(function(){return function(e,t){var n,i,o=window.kendo,r=e.extend,a=o.data,s=a.Node,l=a.HierarchicalDataSource,d=a.DataSource;r(!0,o.data,{schemas:{filemanager:{data:function(e){return e.items||e||[]},model:{id:"path",hasChildren:"hasDirectories",fields:{name:{editable:!0,type:"String",defaultValue:"New Folder"},size:{editable:!1,type:"Number"},path:{editable:!1,type:"String"},extension:{editable:!1,type:"String"},isDirectory:{editable:!1,defaultValue:!0,type:"Boolean"},hasDirectories:{editable:!1,defaultValue:!1,type:"Boolean"},created:{type:"Date",editable:!1},createdUtc:{type:"Date",editable:!1},modified:{type:"Date",editable:!1},modifiedUtc:{type:"Date",editable:!1}}}}}}),n=s.define({init:function(e){var t,n=this,i=this.isDirectory;s.fn.init.call(this,e),"string"==typeof i&&(i=o.getter(i)),o.isFunction(i)&&(t=i.call(n,n),n.isDirectory=(!t||0!==t.length)&&!!t),n.isDirectory&&n._initChildren()},_initChildren:function(){var e,t,n,i=this;i.children instanceof o.data.FileManagerDataSource||(e=i.children=new o.data.FileManagerDataSource(i._childrenOptions),t=e.transport,n=t.parameterMap,t.parameterMap=function(e,t){return"read"!==t&&"create"!==t||(e.target=i.id),n&&(e=n.call(i,e,t)),e},e.parent=function(){return i},e.bind("change",function(e){e.node=e.node||i,i.trigger("change",e)}),e.bind("error",function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger("error",e))}),i._updateChildrenField())},isNew:function(){return this.fileManagerNewItem?(delete this.fileManagerNewItem,!0):this.id===this._defaultId}}),i=l.extend({init:function(t){var i=n.define({children:t});t.filter&&!t.serverFiltering&&(this._hierarchicalFilter=t.filter,t.filter=null),d.fn.init.call(this,e.extend(!0,{},{schema:{modelBase:i,model:i}},t)),this.isLocalBinding=this.transport instanceof o.data.LocalTransport,this._attachBubbleHandlers()},insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(t&&t.isDirectory&&(n.hasDirectories=!0),n.hasChildren=!0,n._initChildren()),d.fn.insert.call(this,e,t)},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=d.fn.remove.call(i,e),n&&i.data()&&!i.data().length?n.hasChildren=!1:n&&!this._hasDirectories(n)&&(n.hasDirectories=!1),t},_hasDirectories:function(e){var t;return!!e.children.data()&&(t=e.children.data().filter(function(e){return e.isDirectory}),!!t.length)}}),i.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data;return n&&n._dataSource?n._dataSource:(t.data=n,t instanceof i?t:new i(t))},r(o.data,{FileManagerDataSource:i,FileEntry:n})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("filemanager/contextmenu.min",["kendo.menu.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.template,a=n.ui.ContextMenu,s="action",l=a.extend({init:function(e,t){var n=this;a.fn.init.call(n,e,t),n._overrideTemplates(),n._extendItems(),n.bind("select",o(n._onSelect,n))},_overrideTemplates:function(){this.templates.sprite=r("#if(spriteCssClass) {#<span class='#= spriteCssClass #'></span>#}#")},defaultItems:{rename:{text:"Rename",spriteCssClass:"k-icon k-i-edit",command:"RenameCommand"},"delete":{text:"Delete",spriteCssClass:"k-icon k-i-delete",command:"DeleteCommand"}},events:a.fn.events.concat([s]),_extendItems:function(){var t,n,i,o,r=this,a=r.options.items;if(a&&a.length)for(i=0;i<a.length;i++)t=a[i],n=e.isPlainObject(t)&&1===Object.keys(t).length&&t.name,n&&(t=t.name),e.isPlainObject(t)?(r._extendItem(t),r.append(t)):r.defaultItems[t]&&(t=r.defaultItems[t],r._extendItem(t),r.append(t));else for(o in r.defaultItems)t=r.defaultItems[o],r._extendItem(t),r.append(t)},_extendItem:function(e){var t=this,n=t.options.messages;i(e,{text:n[e.text],spriteCssClass:e.spriteCssClass||"",attr:{"data-command":e.command}})},_onSelect:function(t){var n=e(t.item).data("command"),i=e(t.target);n&&this.action({command:n,options:{target:i}})},action:function(e){this.trigger(s,e)}});i(n.ui.filemanager,{ContextMenu:l})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.filemanager.min",["filemanager/commands.min","filemanager/view.min","filemanager/toolbar.min","filemanager/data.min","filemanager/contextmenu.min","kendo.breadcrumb.min","kendo.upload.min","kendo.dialog.min","kendo.resizable.min"],e)}(function(){return function(e,t){var n=kendo.ui,i=e.extend,o=e.isPlainObject,r=e.isArray,a=n.DataBoundWidget,s=e.proxy,l=kendo.template,d=kendo._outerHeight,c="navigate",u="select",h="open",p="error",f="change",m="upload",g="success",v="close",_="hide",b="load",w="dataBinding",k="dataBound",y="drop",x="execute",C="command",S="keydownAction",T="cancel",D="tree",A=".",E={wrapper:"k-widget k-filemanager",header:"k-filemanager-header",navigation:"k-filemanager-navigation",contentContainer:"k-filemanager-content-container",content:"k-filemanager-content",preview:"k-filemanager-preview",toolbar:"k-filemanager-toolbar",treeview:"k-filemanager-treeview",breadcrumb:"k-filemanager-breadcrumb",view:"k-filemanager-view",grid:"k-filemanager-grid",list:"k-filemanager-listview",upload:"k-filemanager-upload",uploadDialog:"k-filemanager-upload-dialog",splitBar:"k-splitbar",splitBarHorizontal:"k-splitbar-horizontal k-splitbar-draggable-horizontal",splitBarHover:"k-splitbar-horizontal-hover",splitBarIcon:"k-icon k-resize-handle",splitBarNavigation:"k-filemanager-splitbar-navigation",splitBarPreview:"k-filemanager-splitbar-preview",resizable:"k-filemanager-resizable"},I={filePreview:"k-file-preview",fileInfo:"k-file-info",fileName:"k-file-name",fileMeta:"k-file-meta",metaLabel:"k-file-meta-label",metaValue:"k-file-meta-value",extension:"k-file-type",size:"k-file-size",created:"k-file-created",modified:"k-file-modified"},M={grid:"grid",list:"list"},R='<div class="#:styles.fileInfo#"><div class="#:styles.filePreview#"><span class="k-file-icon k-icon k-i-none"></span></div><span class="#:styles.fileName#" k-no-file-selected>#: messages.noFileSelected #</span></div>',F='<div class="#:styles.fileInfo#"><div class="#:styles.filePreview#"><span class="k-file-icon k-icon k-i-#: !selection[0].isDirectory ? kendo.getFileGroup(selection[0].extension, true) : "folder" #"></span></div><span class="#:styles.fileName#">#:selection[0].name#</span>#if(metaFields){#<dl class="#:styles.fileMeta#">#for(var i = 0; i < metaFields.length; i+=1){##var field = metaFields[i]#<dt class="#:styles.metaLabel#">#:messages[field]#: </dt><dd class="#:styles.metaValue# #:styles[field]#">#if(field == "size"){# #:kendo.getFileSizeMessage(selection[0][field])##} else if(selection[0][field] instanceof Date) {# #:kendo.toString(selection[0][field], "G")##} else if(field == "extension") {# #: !selection[0].isDirectory ? kendo.getFileGroup(selection[0].extension) : "folder"##} else {# #:selection[0][field]##}#</dd><dd class="k-line-break"></dd># } #</dl>#}#</div>',P='<div class="#:styles.fileInfo#"><div class="#:styles.filePreview#"><span class="k-file-icon k-icon k-i-file"></span></div><span class="#:styles.fileName#">#:selection.length# #:messages.items#</span></div>',z=a.extend({init:function(e,t){var i=this;a.fn.init.call(i,e,t),i.options=kendo.deepExtend({},i.options,t),i.defaultSortOption={field:"name",dir:"asc"},i.folderSortOption={field:"isDirectory",dir:"desc"},i._commandStack=new n.filemanager.CommandStack,i._dataSource(),i._wrapper(),i._renderHeader(),i._renderContentContainer(),i._initContextMenu(),i._renderNavigation(),i._renderContent(),i._renderPreview(),i._initUploadDialog(),i._resizable(),i.resize(),kendo.notify(i,kendo.ui)},options:{name:"FileManager",height:500,resizable:!0,initialView:M.list,toolbar:{resizable:!0},contextMenu:{},upload:{},uploadUrl:"",views:{},breadcrumb:{},draggable:!0,dialogs:{upload:{width:530},moveConfirm:{width:350,closable:!0},deleteConfirm:{width:360,closable:!0},renamePrompt:{width:350,closable:!0}},previewPane:{metaFields:["extension","size","created","modified"],noFileTemplate:R,singleFileTemplate:F,multipleFilesTemplate:P},messages:{toolbar:{createFolder:"New Folder",upload:"Upload",sortDirection:"Sort Direction",sortDirectionAsc:"Sort Direction Ascending",sortDirectionDesc:"Sort Direction Descending",sortField:"Sort By",nameField:"Name",sizeField:"File Size",typeField:"Type",dateModifiedField:"Date Modified",dateCreatedField:"Date Created",listView:"List View",gridView:"Grid View",search:"Search",details:"View Details",detailsChecked:"On",detailsUnchecked:"Off","delete":"Delete",rename:"Rename"},views:{nameField:"Name",sizeField:"File Size",typeField:"Type",dateModifiedField:"Date Modified",dateCreatedField:"Date Created",items:"items"},dialogs:{upload:{title:"Upload Files",clear:"Clear List",done:"Done"},moveConfirm:{title:"Confirm",content:"<p style='text-align: center;'>Do you want to move or copy?</p>",okText:"Copy",cancel:"Move",close:"close"},deleteConfirm:{title:"Confirm",content:"<p style='text-align: center;'>Are you sure you want to delete the selected file(s)?</br>You cannot undo this action.</p>",okText:"Delete",cancel:"Cancel",close:"close"},renamePrompt:{title:"Prompt",content:"<p style='text-align: center;'>Enter new name for the file.</p>",okText:"Rename",cancel:"Cancel",close:"close"}},previewPane:{noFileSelected:"No File Selected",extension:"Type",size:"Size",created:"Date Created",createdUtc:"Date Created UTC",modified:"Date Modified",modifiedUtc:"Date Modified UTC",items:"items"}}},events:[c,u,h,w,k,p,y,x,C],_dataSource:function(){var e,t=this,n=t.options,a=n.dataSource||{},l=t.folderSortOption,d=t.defaultSortOption;a instanceof kendo.data.FileManagerDataSource?e=a:(e=r(a)?{data:a,autoSync:!1,sort:[l,d]}:i(!0,a,{autoSync:!1,sort:[l,d]}),a&&o(a.schema)?e.schema=a.schema:o(kendo.data.schemas.filemanager)&&(e.schema=kendo.data.schemas.filemanager)),t.dataSource&&t._errorHandler?(t.dataSource.unbind(p,t._errorHandler),t.dataSource.unbind(f,t._changeHandler)):(t._errorHandler=s(t._error,t),t._changeHandler=s(t._change,t)),t.dataSource=kendo.data.FileManagerDataSource.create(e).bind(p,t._errorHandler).bind(f,t._changeHandler)},_error:function(e){this.trigger(p,e)||window.console.warn("Error! The requested URL returned "+e.xhr.status+" - "+e.xhr.statusText)},_wrapper:function(){var e=this,t=e.options,n=t.width,i=t.height;e.wrapper=e.element.addClass(E.wrapper),n&&e.wrapper.width(n),i&&e.wrapper.height(i),e._resizeHandler=kendo.onResize(function(){e.resize(!0)})},_renderHeader:function(){var t=this,n=t.options;n.toolbar&&(t.header=e("<div />").addClass(E.header),t.header.append(t._initToolbar().element)),t.wrapper.append(t.header)},_renderContentContainer:function(){var t=this,n=e("<div />").addClass(E.contentContainer);t.contentContainer=n,t.wrapper.append(t.contentContainer)},_initContextMenu:function(){var e=this,t=e.options,o=i({},t.contextMenu,{filemanager:e,messages:t.messages.toolbar,target:e.contentContainer,filter:"[data-uid]",action:e.executeCommand.bind(e)});e.options.contextMenu===!1||e.dataSource.isLocalBinding||(e.contextMenu=new n.filemanager.ContextMenu("<ul></ul>",o),e.contextMenu.bind(h,s(e._cacheFocus,e)))},_renderNavigation:function(){var t=this;t.navigation=e("<div />").addClass(E.navigation),t.navigation.append(t._initTreeView().element),t.contentContainer.append(t.navigation)},_renderContent:function(){var t=this,n=t.options,i=t.toolbar;t.content=e("<div />").addClass(E.content),n.breadcrumb&&t.content.append(t._initBreadcrumb().element),t.content.append(t._initView()),i&&i.isToolEnabled(i.defaultTools.upload.name)||t.content.append(t._initUpload().wrapper.hide()),t.contentContainer.append(t.content)},_renderPreview:function(){var t=this,n=t.options.previewPane;n&&(t.preview=e("<div />").addClass(E.preview),t.previewContainer=e("<div />").addClass(E.previewContainer),t.preview.append(t.previewContainer),t._setPreviewPaneContent(),t.contentContainer.append(t.preview.hide()))},_setPreviewPaneContent:function(){var e,n=this,i=n.options,o=i.messages.previewPane,r=i.previewPane,a=n.getSelected();return a?(e=1===a.length?r.singleFileTemplate:r.multipleFilesTemplate,e=l(e)({styles:I,messages:o,selection:a,metaFields:r.metaFields}),n.previewContainer.html(e),t):(e=l(r.noFileTemplate)({styles:I,messages:o}),n.previewContainer.html(e),t)},_initToolbar:function(){var t=this,o=t.options,r=e("<div />").addClass(E.toolbar),a=i({},o.toolbar,{filemanager:this,messages:o.messages.toolbar,action:t.executeCommand.bind(t)});return t.toolbar=new n.filemanager.ToolBar(r,a)},_initTreeView:function(){var t=this,o=e("<div />").addClass(E.treeview),r=t.options.views[D],a=i(!0,{},{dataSource:t.options.dataSource,messages:t.options.messages.views,draggable:t.options.draggable,isLocalBinding:t.dataSource.isLocalBinding});return t.treeView=new n.filemanager.ViewComponents[D](o,r,a),t.treeView.bind(c,s(t._navigate,t)).bind(b,s(t._load,t)).bind(y,s(t._drop,t)).bind(S,s(t._keydownAction,t)),t.treeView},_drop:function(e){var t=this;!t.trigger(y,e)&&e.items.indexOf(e.target)<0&&t._confirm({type:"move",target:e.target}).done(function(){t.executeCommand({command:"CopyCommand",options:e})}).fail(function(){t.executeCommand({command:"MoveCommand",options:e})})},_keydownAction:function(e){var t=this,n=e.keyCode,i=kendo.keys;n===i.DELETE&&t.executeCommand({command:"DeleteCommand",options:{target:e.target}}),n===i.F2&&t.executeCommand({command:"RenameCommand",options:{target:e.target}})},_confirm:function(t){var n=this,o=n.options.messages.dialogs[t.type+"Confirm"],r=e("<div></div>").kendoConfirm(i({},{title:o.title,content:o.content,messages:o},n.options.dialogs[t.type+"Confirm"])).data("kendoConfirm");return r.bind(h,s(n._cacheFocus,n)),r.bind(_,s(n._restoreFocus,n,t.target)),r.open(),r.wrapper.removeClass("k-confirm"),r.result},_prompt:function(t){var n=this,o=this.options.messages.dialogs[t.type+"Prompt"],r=e("<div></div>").kendoPrompt(i({},{title:o.title,content:o.content,messages:o,value:t.defaultInput},this.options.dialogs[t.type+"Prompt"])).data("kendoPrompt");return r.bind(h,s(n._cacheFocus,n)),r.bind(v,s(n._restoreFocus,n,t.target)),r.open(),r.wrapper.removeClass("k-prompt"),r.result},_cacheFocus:function(){var n=this,i=e(document.activeElement),o=n.view(),r=n.treeView.widgetComponent;if(!n.contextMenu||!n.contextMenu.popup.visible())return n.treeView._shouldFocus=!1,r.current()&&r.current().find(".k-state-focused").length||i.hasClass(E.treeview)?(n.treeView._shouldFocus=!0,o._focusElement=i,t):(o._focusElement=i.hasClass(E[n._viewType])?i:null,t)},_restoreFocus:function(e){var t=this,n=t.view();e&&(n._focusElement?n._focusElement.focus():e.closest&&e.closest(":kendoFocusable").length&&e.closest(":kendoFocusable").focus())},_initView:function(){var t=this,n=e("<div />").addClass(E.view),i=t.options.initialView;return t.viewWrapper=n,t.viewWrapper.append(t.view(i)),n},_initBreadcrumb:function(){var t=this,o=t.options,r=e("<nav />").addClass(E.breadcrumb),a=i({},{items:[{type:"rootitem",text:""}],change:s(t._breadcrumbChange,t)},o.breadcrumb);return t.breadcrumb=new n.Breadcrumb(r,a)},_breadcrumbChange:function(e){this._navigate({path:e.value})},_initUploadDialog:function(){var t,o=this,r=o.options,a=r.messages.dialogs.upload,l=e("<div />"),d=i({},{title:a.title,modal:!0,visible:!1,width:500,actions:[{text:a.clear,action:s(o._clearUploadFilesList,o)},{text:a.done,primary:!0}],messages:a},r.dialogs.upload);if(o._shouldInitUpload())return t=o._initUpload(),o.uploadDialog=new n.Dialog(l,d),o.uploadDialog.wrapper.addClass(E.uploadDialog),o.uploadDialog.element.append(t.wrapper),o.uploadDialog.bind(h,s(o._toggleUploadDropZone,o,"")),o.uploadDialog.bind(v,s(o._toggleUploadDropZone,o,o.viewWrapper)),o.uploadDialog},_shouldInitUpload:function(){var e=this,t=e.options,n=!1;return(t.uploadUrl||t.upload.async&&t.upload.async.saveUrl)&&t.upload!==!1&&(n=!0),n},_initUpload:function(){var t=this,o=t.options,r=e("<input type='file' name='file'/>").addClass(E.upload),a=i(!0,{async:{autoUpload:!0,saveUrl:o.uploadUrl},dropZone:t.viewWrapper},o.upload);return t.upload=new n.Upload(r[0],a),t.upload.bind(m,s(t._sendUploadPathParameter,t)),t.upload.bind(g,s(t._success,t)),t.upload},_sendUploadPathParameter:function(e){e.data=i(e.data,{path:this.path()})},_success:function(){this._view.widgetComponent.dataSource.read()},_clearUploadFilesList:function(){var e=this,t=e.upload;t&&t.clearAllFiles()},_toggleUploadDropZone:function(e){var t=this,n=t.upload;n&&n.setOptions({dropZone:e})},_binding:function(e){this.trigger(w,{source:"view",action:e.action,items:e.items,index:e.index})&&e.preventDefault()},_bound:function(){this.options.previewPane&&this._setPreviewPaneContent(),this.trigger(k)},_createResizableSplitBar:function(t){var n=e("<div />").addClass(E.splitBar).addClass(E.splitBarHorizontal).addClass(t),i=e("<span />").addClass(E.splitBarIcon);return n.append(i),n.hover(function(){e(this).toggleClass(E.splitBarHover)}),n},_initResizableNavigation:function(){var e,t,n=this,i=n.wrapper,o=n._createResizableSplitBar(E.splitBarNavigation),r=i.find(A+E.content),a=i.find(A+E.navigation);o.insertAfter(a),n._resizeDraggable.navigation=n.wrapper.find(o).end().kendoResizable({handle:A+E.splitBarNavigation,start:function(){e=r.width(),t=a.width()},resize:function(n){var o=n.x.initialDelta;kendo.support.isRtl(i)&&(o*=-1),t+o<-2||e-o<-2||a.width(t+o)}}).getKendoResizable()},_initResizablePreview:function(){var e,t,n=this,i=n.wrapper,o=n._createResizableSplitBar(E.splitBarPreview),r=i.find(A+E.content),a=i.find(A+E.preview);n.options.previewPane&&(o.insertBefore(a).hide(),n._resizeDraggable.preview=i.find(o).end().kendoResizable({handle:A+E.splitBarPreview,start:function(){e=r.width(),t=a.width()},resize:function(n){var o=n.x.initialDelta;kendo.support.isRtl(i)&&(o*=-1),t-o<-2||e+o<-2||a.width(t-o)}}).getKendoResizable())},_resizable:function(){var e=this,t=e.options;e._resizeDraggable={},t.resizable&&(e.wrapper.addClass(E.resizable),e._initResizableNavigation(),e._initResizablePreview())},view:function(o){var r=this,a=e("<div></div>"),l=r.options.views[o],d=i(!0,{},{dataSource:r._viewDataSource||r.dataSource,messages:r.options.messages.views,draggable:r.options.draggable});if(o===t)return r._view;if(!n.filemanager.ViewComponents[o])throw Error(kendo.format("There is no {0} ViewComponent registered!",o));r._view&&r._view.destroy&&(r._view.destroy(),r.viewWrapper.empty()),r._viewType=o,r._view=new n.filemanager.ViewComponents[o](a,l,d),r._view.bind(u,s(r._select,r)),r._view.bind(h,s(r._open,r)),r._view.bind(w,s(r._binding,r)),r._view.bind(k,s(r._bound,r)),r._view.bind(y,s(r._drop,r)),r._view.bind(S,s(r._keydownAction,r)),r._view.bind(T,s(r._cancel,r)),r._view.element.addClass(E[o]),r.viewWrapper.removeClass(Object.keys(n.filemanager.ViewComponents).map(function(e){return E.view+"-"+e}).join(" ")).addClass(E.view+"-"+o),r.viewWrapper.append(r._view.element)},executeCommand:function(e){var t=e.command,r=i({filemanager:this},o(e.options)?e.options:{value:e.options}),a=new n.filemanager.commands[t](r);if(!this.trigger(x,e))return a.exec()},_navigate:function(e){var t=this,n=e.path;t.trigger(c,{path:n})||t.navigate(n)},_load:function(e){var t=this.dataSource.get(e.entryId);t.load()},_select:function(e){this.options.previewPane&&this._setPreviewPaneContent(),this.trigger(u,{entries:e.entries})},_open:function(e){var t=this,n=e.entry;t.trigger(h,{entry:n}),n.isDirectory&&t._navigate({path:n.id})},_cancel:function(){var e=this,t=e._commandStack,n=t.next();t.reject(n),e.trigger(C,{status:"cancel",action:"itemchange",data:n.data})},_change:function(e){var t,n=this,i=n._commandStack,o=e.node?e.node.children:n.dataSource;n.trigger(w,{source:"tree",action:e.action,items:e.items,index:e.index})||(n.treeView._refreshDataSource(e),"remove"!==e.action&&"itemchange"!==e.action&&"add"!==e.action||(i.empty()?o.sync():(t=i.next(),o.sync().then(function(o){i.resolve(t),n.trigger(C,{status:"success",action:e.action,data:t.data,response:o})}).fail(function(o){i.reject(t),n.trigger(C,{status:"fail",action:e.action,data:t.data,response:o})}))),"remove"===e.action&&n._viewDataSource&&n._viewDataSource.parent()&&e.items[0]===n._viewDataSource.parent()&&n._navigateToParent(e.items[0]),"itemchange"==e.action&&n._viewDataSource&&n._viewDataSource.parent()&&n.path().indexOf(e.items[0].id)>=0&&n._navigateToParent(e.items[0]),"itemchange"===e.action&&e.items[0].loaded(!1))},_navigateToParent:function(e){var t=this,n=e.parentNode(),i=n?n.id:"";t._navigate({path:i})},_buildBreadcrumbPath:function(e){for(var t=this,n=t.breadcrumb,i=[];e;)i.push(e.name),e=e.parentNode();i.push(""),n.value(i.reverse().join("/"))},_adjustDimensions:function(){var e=this,t=e.wrapper,n=A+E.grid,i=A+E.list,o=A+E.contentContainer,r=t.height(),a=0,s=0;e.toolbar&&(a=d(e.toolbar.wrapper)),e.breadcrumb&&(s=d(e.breadcrumb.wrapper)),"auto"!==e.options.height&&(t.find(n).height(r-(a+s+1)),t.find(i).parent().height(r-(a+s+1)),t.find(o).height(r-a))},_resize:function(){this._adjustDimensions(),kendo.resize(this.element.children())},setDataSource:function(e){var t=this;t.options.dataSource=e,t._dataSource(),t.toolbar&&(t.toolbar.destroy(),t.header.empty(),t.header.append(t._initToolbar().element)),t.treeView&&(t.treeView.destroy(),t.navigation.empty(),t.navigation.append(t._initTreeView().element)),t._view&&t.view(t._viewType||t.options.initialView),t._initContextMenu()},refresh:function(){var e=this,t=e._viewDataSource||e.dataSource;t.read()},getSize:function(){return kendo.dimensions(this.wrapper)},getSelected:function(){var e,n=this,i=n._view.getSelected(),o=n.treeView;return i&&i.length?i:(e=o.getSelected(),e?[n.dataSource.get(e.id)]:t)},path:function(){return this._path||""},navigate:function(n){var i=this,o=i.dataSource,r=o.get(n.replace(/^\//,"")),a=i._view,s=i.treeView,l=i.breadcrumb;if(i._path=n,!i.trigger(w,{source:"navigation",action:"rebind",items:[r]})){if(l&&i._buildBreadcrumbPath(r),""===n||"/"===n)return o.sort([i.folderSortOption,i.defaultSortOption]),i._viewDataSource=o,a.refresh(i._viewDataSource),s.treeView.select(e()),i.options.previewPane&&i._setPreviewPaneContent(),t;r.loaded&&!r.loaded()&&r.load(),a&&(i._viewDataSource=r.children,a.refresh(i._viewDataSource),i._viewDataSource.sort([i.folderSortOption,i.defaultSortOption])),s&&s.refresh(r.id),i.options.previewPane&&i._setPreviewPaneContent()}},destroy:function(){var e=this;a.fn.destroy.call(e),e.dataSource.unbind(p,e._errorHandler).unbind(f,e._changeHandler),e._resizeDraggable.navigation&&(e._resizeDraggable.navigation.destroy(),e._resizeDraggable.navigation=null),e._resizeDraggable.preview&&(e._resizeDraggable.preview.destroy(),e._resizeDraggable.preview=null),e.uploadDialog&&(e.uploadDialog.destroy(),e.uploadDialog=null),e.upload&&(e.upload.destroy(),e.upload=null),e.contextMenu&&(e.contextMenu.destroy(),e.contextMenu=null),kendo.unbindResize(e._resizeHandler),e.dataSource=null,e._viewDataSource=null,kendo.destroy(e.element)}});n.plugin(z)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.stepper.min",["kendo.core.min","kendo.progressbar.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.keys,r=e.extend,a=e.proxy,s=".kendoStepper",l="click",d="activate",c="select",u="keydown",h="focusout",p=".",f=" ",m="vertical",g="tabindex",v="aria-current",_="aria-disabled",b="aria-invalid",w="aria-hidden",k={step:"k-step",firstStep:"k-step-first",lastStep:"k-step-last",doneStep:"k-step-done",successStep:"k-step-success",errorStep:"k-step-error",currentStep:"k-step-current",focusStep:"k-step-focus",disabledStep:"k-step-disabled",stepLink:"k-step-link",stepIndicator:"k-step-indicator",stepLabel:"k-step-label"},y={widget:"k-widget k-stepper",stepperLinear:"k-stepper-linear",stepList:"k-step-list",stepListHorizontal:"k-step-list-horizontal",stepListVertical:"k-step-list-vertical"},x=n.Class.extend({init:function(e){this.options=r({},this.options,e),this._render()},options:{label:"",icon:"",successIcon:"",iconTemplate:"",enabled:!0,error:!1,selected:!1,isFirstStep:!1,isLastStep:!1,indicatorVisible:!0,labelVisible:!0,index:0,previous:!1,selectable:!0},_indicatorTemplate:'<span class="k-step-indicator" aria-hidden="true">#if(successIcon && previous && !error) {#<span class="k-step-indicator-icon k-icon k-i-#: successIcon #"></span>#} else if(icon) {#<span class="k-step-indicator-icon k-icon k-i-#: icon #"></span>#} else if(previous && !error) {#<span class="k-step-indicator-icon k-icon k-i-check"></span>#} else {#<span class="k-step-indicator-text">#: index + 1 #</span>#}#</span>',_labelTemplate:'<span class="k-step-label"><span class="k-step-text">#: label #</span> #if(error || (!indicatorVisible && !error && previous)) {#<span class="k-icon#if(previous && !error){# k-i-check#}##if(error){# k-i-warning#}#" aria-hidden="true"></span>#}#</span>',deselect:function(){this.options.selected=!1,this._link(),this._stepClasses()},enable:function(e){this.options.enabled!==e&&(this.options.enabled=e,this.options.selectable=e,this._link(),this._stepClasses())},select:function(){this.options.selected=!0,this._link(),this._stepClasses()},getEnabled:function(){return this.options.enabled},getIndex:function(){return this.options.index},setPrevious:function(e){this.options.previous=e,this._link(),this._stepClasses()},getSelectable:function(){return this.options.selectable},getSelected:function(){return this.options.selected},setValid:function(e){this.options.error===e&&(this.options.error=!e,this._link(),this._stepClasses())},_indicator:function(){var t,i=this.options;i.iconTemplate?(t=e("<span>").addClass(k.stepIndicator).attr(w,"true"),t.append(n.template(i.iconTemplate)(i))):t=n.template(this._indicatorTemplate)(i),this.element.find(p+k.stepLink).append(t)},_label:function(){var e=n.template(this._labelTemplate)(this.options);this.element.find(p+k.stepLink).append(e)},_link:function(){var e=this.options;this.element.find(p+k.stepLink).empty(),this._linkAttributes(),e.indicatorVisible&&this._indicator(),e.labelVisible&&this._label()},_linkAttributes:function(){var e=this.options,t=this.element.find(p+k.stepLink);t.removeAttr(_+f+b+f+v+f+g),e.selected?t.attr(v,"true"):t.attr(g,"-1"),e.enabled&&e.selectable||t.attr(_,"true"),e.error&&t.attr(b,"true")},_render:function(){var t=e("<a href='#'>").addClass(k.stepLink).attr("title",this.options.label);this.element=e("<li>").append(t),this._link(),this._stepClasses()},_stepClasses:function(){var e=this.options,t=k.step;e.isFirstStep&&(t+=f+k.firstStep),e.isLastStep&&(t+=f+k.lastStep),e.enabled||(t+=f+k.disabledStep),e.error&&(t+=f+k.errorStep),e.previous?(t+=f+k.doneStep,e.error||(t+=f+k.successStep)):e.selected&&(t+=f+k.currentStep,t+=f+k.focusStep),this.element.removeClass().addClass(t)}}),C=i.extend({init:function(e,t){var o=this;t=t||{},i.fn.init.call(o,e,t),o._indicatorAndLabel(),o._wrapper(),t.steps&&t.steps.length&&(o._processSteps(t.steps),
o._progressBar()),o._attachEvents(),o._resizeHandler=n.onResize(function(){o.resize()})},options:{orientation:"horizontal",linear:!0,indicator:!0,label:!0,selectOnFocus:!1,steps:null,name:"Stepper"},events:[d,c,"kendoKeydown"],destroy:function(){var e=this;e.progressBar&&i.fn.destroy.call(e.progressBar),i.fn.destroy.call(e),n.unbindResize(e._resizeHandler),e.wrapper.off(s)},setOptions:function(e){var t=this;i.fn.setOptions.call(t,e),t.progressBar&&i.fn.destroy.call(t.progressBar),t._indicatorAndLabel(),t._addStepList(),t.options.steps&&t.options.steps.length&&(t._processSteps(t.options.steps),t._progressBar())},enable:function(e){var t=this.steps(),n=this.options.steps,i=function(t,i){t.enable(e),n[i]=t.options};e?this.wrapper.removeAttr(_):this.wrapper.attr(_,"true"),this.progressBar.enable(e),t.forEach(i)},insertAt:function(e,t){var n,i=this.options.steps,o=function(e){e.selected&&(n=e)};t&&!isNaN(e)&&(e<0&&(e=i.length+e),e<0||(i||(i=[]),(0===i.length||e>=i.length)&&(e=i.length),i.forEach(o),t.selected===!0&&(n.selected=!1),i.splice(e,0,t),this._createSteps(),this._renderSteps(),this._resetProgressBar(),this._calculateDimensions()))},next:function(){var e,t;!this._steps||this._steps.length<=1||(e=this.selectedStep,t=e.getIndex(),t+1!==this._steps.length&&this._select(t+1))},previous:function(){var e,t;!this._steps||this._steps.length<=1||(e=this.selectedStep,t=e.getIndex(),0!==t&&this._select(t-1))},removeAt:function(e){var t,n,i,o=this.options.steps;isNaN(e)||!o||o.length<2||e>=o.length||(e<0&&(e=o.length+e),e<0||(t=o.splice(e,1)[0],t.selected===!0&&o.length>0&&(i=e>0?e-1:0,n=o[i],"string"==typeof n&&(n={label:n},o[i]=n),n.selected=!0,n.previous=!1),this._createSteps(),this._renderSteps(),this._resetProgressBar(),this._calculateDimensions()))},resize:function(){this._calculateDimensions()},select:function(e){var n=this;return e===t||null===e||isNaN(e)?n.selectedStep:(e>=n._steps.length||e<0||(e=+e,n._select(e)),t)},steps:function(e){return e===t?this._steps:(this._processSteps(e),this._resetProgressBar(),this._calculateDimensions(),t)},_processSteps:function(e){var t,n=this,i=function(e){e.selected&&(t=e)};e.forEach(i),t||("string"==typeof e[0]&&(e[0]={label:e[0]}),e[0].selected=!0),n.options.steps=e,n._createSteps(),n._renderSteps()},_addStepList:function(){var t=this;t.wrapper.empty().append(e("<ol />").addClass(y.stepList)),t._stepList=t.wrapper.find(p+y.stepList),t._stepList.addClass(t.options.orientation===m?y.stepListVertical:y.stepListHorizontal)},_attachEvents:function(){var e=this;e.wrapper.on(l+s,p+k.step,a(e._selectClickHandler,e)).on(l+s,a(e._wrapperClickHandler,e)).on(h+s,a(e._focusout,e)).on(u+s,e,a(e._keydown,e))},_calculateDimensions:function(){var e=this.options.orientation,t=this._steps.length,i=this._stepList,o=i.find(p+k.step),r=i.width()/t,a=i.height()/t,s=this.progressBar.element,l="margin-left",d={};e===m?(o.css("max-height",100/t+"%"),s.css({"margin-top":-1*(i.height()-16),height:a*(t-1)})):(o.css("max-width",100/t+"%"),n.support.isRtl(this.wrapper)&&(l="margin-right"),d[l]=r/2,d.width=r*(t-1),s.css(d))},_createStep:function(e,t,n){var i=this,o=0===t,a=i.options,s=a.indicator,l=a.label;return e=r({},e,{enabled:e.enabled!==!1}),e=r({},e,{isFirstStep:o,isLastStep:n,indicatorVisible:s,labelVisible:l,index:t}),new x(e)},_createSteps:function(){var e,n,i,o,r=this,a=r.options.steps,s=!1;for(r._steps=[],n=0;n<a.length;n++)o=a[n],"string"==typeof o&&(o={label:o}),o!==t&&(i=n===a.length-1,o.selected?s=!0:o=r._selectablePreviousState(o,s,n),e=r._createStep(o,n,i),r._steps.push(e),e.getSelected()&&(r.selectedStep=e))},_indicatorAndLabel:function(){this.options.indicator||this.options.label||(this.options.indicator=!0,this.options.label=!0)},_focusout:function(e){var t=this;t.wrapper.get(0).contains(e.relatedTarget)||setTimeout(function(){t._leaveStepper()})},_focusStep:function(e){var t=this.wrapper.find(p+k.focusStep),n=this.wrapper.find(p+k.stepLink);e.length>0&&(t.removeClass(k.focusStep),n.attr(g,"-1"),e.find(p+k.stepLink).removeAttr(g)[0].focus())},_focusNextStep:function(){var t=e(document.activeElement).closest(p+k.step),n=t.next();this._focusStep(n)},_focusPreviousStep:function(){var t=e(document.activeElement).closest(p+k.step),n=t.prev();this._focusStep(n)},_focusFirstStep:function(){var e=this.wrapper,t=e.find(p+k.firstStep);this._focusStep(t)},_focusLastStep:function(){var e=this.wrapper,t=e.find(p+k.lastStep);this._focusStep(t)},_keydown:function(t){var n=this,i=t.keyCode,r=e(document.activeElement).closest(p+k.step),a=r.index(),s=n.steps().length;i===o.TAB?t.shiftKey&&a>0?(t.preventDefault(),n._tabKey(t,-1)):!t.shiftKey&&a<s-1&&(t.preventDefault(),n._tabKey(t,1)):i>34&&i<41?(t.preventDefault(),n._navKeys(t)):i===o.ENTER||i===o.SPACEBAR?(t.preventDefault(),n._selectHandler(t,e(document.activeElement).closest(p+k.step))):t.preventDefault()},_leaveStepper:function(){var e=this.wrapper.find(p+k.currentStep),t=this.wrapper.find(p+k.stepLink);t.removeClass(k.focusStep).attr(g,"-1"),e.addClass(k.focusStep),e.find(p+k.stepLink).removeAttr(g)},_navKeys:function(e){var t=this.options.selectOnFocus;t?this._navKeysSelect(e):this._navKeysFocus(e)},_navKeysFocus:function(e){var t=e.keyCode,i=n.support.isRtl(this.wrapper),r=this.options.orientation;switch(t){case o.DOWN:i&&r!==m?this._focusPreviousStep():this._focusNextStep();break;case o.RIGHT:i?this._focusPreviousStep():this._focusNextStep();break;case o.UP:i&&r!==m?this._focusNextStep():this._focusPreviousStep();break;case o.LEFT:i?this._focusNextStep():this._focusPreviousStep();break;case o.HOME:this._focusFirstStep();break;case o.END:this._focusLastStep()}},_navKeysSelect:function(t){var i,r=t.keyCode,a=e(document.activeElement).closest(p+k.step).index(),s=n.support.isRtl(this.wrapper),l=this.steps(),d=this.options.orientation;switch(r){case o.DOWN:i=s&&d!==m?l[a-1]:l[a+1];break;case o.RIGHT:i=s?l[a-1]:l[a+1];break;case o.UP:i=s&&d!==m?l[a+1]:l[a-1];break;case o.LEFT:i=s?l[a+1]:l[a-1];break;case o.HOME:i=l[0];break;case o.END:i=l[l.length-1]}i&&(this._focusStep(i.element),this._selectHandlerOnKey(t,i.element))},_progressBar:function(){var t=this.wrapper,n=this._progressOptions();this.progressBar=e("<div>").kendoProgressBar(n).getKendoProgressBar(),this._calculateDimensions(),t.append(this.progressBar.element)},_progressOptions:function(){var e,t,n=this.options,i=n.orientation,o=n.steps;if(o&&0!==o.length)return e=o.length,t={max:e-1,value:this.select().getIndex(),orientation:i,showStatus:!1},i===m&&(t.reverse=!0),t},_resetProgressBar:function(){var e,t=this.progressBar;t&&(e=this._progressOptions(),t.setOptions(e))},_renderSteps:function(){var e,t,n=this._steps,i=this._stepList;for(i.empty(),t=0;t<n.length;t++)e=n[t],i.append(e.element)},_resetStep:function(e,t,n){var i=this._steps[e];!n&&e<t?i.options.selectable=!0:e===t?(i.options.previous=!1,i.options.selected=!0):n&&e>t?i.options.selectable=!0:(i.options.selected=!1,i.options.previous=n),this.options.linear&&(e<t-1||e>t+1)&&(i.options.selectable=!1),i._link(),i._stepClasses(),this.options.steps[e]=i.options},_select:function(e){var t,n,i,o,r=this.options,a=r.linear,s=this.select(),l=s.getIndex(),d=r.steps,c=this._steps[e];if(c&&c.getEnabled()&&c.getSelectable()){for(e>l?(t=!0,a?(i=Math.max(l-1,0),o=Math.min(e+1,d.length-1)):(i=l,o=e)):(t=!1,a?(i=Math.max(e-1,0),o=Math.min(l+1,d.length-1)):(i=e,o=l)),n=i;n<=o;n++)this._resetStep(n,e,t);this.selectedStep=c,this.progressBar.value(e)}},_selectablePreviousState:function(e,t,n){var i=this.options.steps,o=this.options.linear;return t?e.selectable=!(o&&!i[n-1].selected):(e.previous=!0,e.selectable=!(o&&!i[n+1].selected)),e},_selectClickHandler:function(t){var n=e(t.target).closest(p+k.step);t.preventDefault(),this._preventWrapperClick=!0,this._selectHandler(t,n)},_selectHandler:function(e,n){var i=this,o=i._steps[n.index()],r=this.select();return o&&o.getIndex()!==r.getIndex()&&o.getEnabled()&&o.getSelectable()?(i.trigger(c,{sender:i,originalEvent:e,step:o})||(i._select(o.getIndex()),n.find(p+k.stepLink)[0].focus(),i.trigger(d,{sender:i,originalEvent:e,step:o})),t):(i._focusStep(r.element),t)},_selectHandlerOnKey:function(e,t){var n=this,i=n._steps[t.index()];i.getEnabled()&&i.getSelectable()&&(n.trigger(c,{sender:n,originalEvent:e,step:i})||(n._select(i.getIndex()),t.find(p+k.stepLink)[0].focus(),n.trigger(d,{sender:n,originalEvent:e,step:i})))},_tabKey:function(t,n){var i=this.options.selectOnFocus,o=e(document.activeElement).closest(p+k.step),r=o.index(),a=e(o.parent().find(p+k.step)[r+n]);this._focusStep(a),i&&this._selectHandlerOnKey(t,a)},_wrapper:function(){var e=this,t=e.element;e.wrapper=t,e.wrapper.addClass(y.widget),e.options.linear&&e.wrapper.addClass(y.stepperLinear),this._addStepList()},_wrapperClickHandler:function(e){var t=this.select();this._preventWrapperClick?this._preventWrapperClick=!1:(e.preventDefault(),this._focusStep(t.element))}});n.stepper={Step:x},n.ui.plugin(C)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.textarea.min",["kendo.core.min","kendo.floatinglabel.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,r=e.isPlainObject,a=".kendoTextArea",s="change",l="disabled",d="readonly",c="k-input",u="k-state-focused",h="k-label k-input-label",p="k-state-disabled",f="k-no-click",m="aria-disabled",g="k-textarea-container",v=e.proxy,_=i.extend({init:function(o,r){var a=this;i.fn.init.call(a,o,r),r=e.extend(!0,{},r),a.options.value=r.value||a.element.val(),a.options.readonly=r.readonly!==t?r.readonly:!!a.element.attr("readonly"),a.options.enable=r.enable!==t?r.enable:!!!a.element.attr("disabled"),a.options.placeholder=r.placeholder||a.element.attr("placeholder"),a.options.value.replace(/\s/g,"").length||(a.options.value="",a.element.val("")),a.value(a.options.value),a._wrapper(),a._label(),a._editable({readonly:a.options.readonly,disable:!a.options.enable}),a._applyAttributes(),a.element.addClass(c).css("resize",a.options.resizable).attr("autocomplete","off"),n.notify(a)},events:[s],attributes:["maxLength","rows","placeholder"],options:{name:"TextArea",value:"",readonly:!1,enable:!0,placeholder:"",label:null,resizable:"none",maxLength:null,cols:20,rows:1},_applyAttributes:function(){var e,t=this,n={};for(e in t.attributes)n[t.attributes[e]]=t.options[t.attributes[e]];t.element.attr(n)},value:function(e){var n=this;return e===t?n._value:(n._value=e,n.element.val(e),t)},readonly:function(e){var n=this;this._editable({readonly:e===t||e,disable:!1}),n.floatingLabel&&n.floatingLabel.readonly(e===t||e)},enable:function(e){var n=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),n.floatingLabel&&n.floatingLabel.enable(e=e===t||e)},focus:function(){var e=this;e.element[0].focus()},destroy:function(){var e=this;e.floatingLabel&&e.floatingLabel.destroy(),e.element.off(a),i.fn.destroy.call(e)},_editable:function(e){var t=this,n=t.element,i=t.wrapper,o=e.disable,r=e.readonly;n.off(a),r||o?(n.attr(l,o).attr(d,r).attr(m,o),i.toggleClass(p,o).toggleClass(f,r)):(n.removeAttr(l).removeAttr(d).attr(m,!1),i.removeClass(p).removeClass(f),n.on("focusin"+a,v(t._focusin,t)),n.on("focusout"+a,v(t._focusout,t)))},_label:function(){var t,i,o=this,a=o.element,s=o.options,l=a.attr("id");null!==s.label&&(t=!!r(s.label)&&s.label.floating,i=r(s.label)?s.label.content:s.label,t&&(o._floatingLabelContainer=o.wrapper.wrap("<span></span>").parent(),o.floatingLabel=new n.ui.FloatingLabel(o._floatingLabelContainer,{widget:o}),o._floatingLabelContainer.addClass(g)),n.isFunction(i)&&(i=i.call(o)),i||(i=""),l||(l=s.name+"_"+n.guid(),a.attr("id",l)),o._inputLabel=e("<label class='"+h+"' for='"+l+"'>"+i+"</label>'").insertBefore(o.wrapper))},_focusin:function(){var e=this;e.wrapper.addClass(u)},_focusout:function(){var e=this,t=e._value,n=e.element.val();e.wrapper.removeClass(u),t!==n&&(e._value=n,e.trigger(s))},_wrapper:function(){var e=this,t=e.element,n=t[0],i=t.wrap("<span class='k-widget k-textarea'></span>").parent();i[0].style.cssText=n.style.cssText,n.style.width="100%",e.wrapper=i.addClass(n.className).removeClass("input-validation-error")}});o.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.textbox.min",["kendo.core.min","kendo.floatinglabel.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,r=e.isPlainObject,a=".kendoTextBox",s="change",l="disabled",d="readonly",c="k-input",u="k-state-focused",h="k-label k-input-label",p="k-state-disabled",f="k-no-click",m="aria-disabled",g=e.proxy,v=i.extend({init:function(o,r){var a=this;i.fn.init.call(a,o,r),r=e.extend(!0,{},r),a.options.value=r.value||a.element.val(),a.options.readonly=r.readonly!==t?r.readonly:!!a.element.attr("readonly"),a.options.enable=r.enable!==t?r.enable:!!!a.element.attr("disabled"),a.options.placeholder=r.placeholder||a.element.attr("placeholder"),a.value(a.options.value),a._wrapper(),a._label(),a._editable({readonly:a.options.readonly,disable:!a.options.enable}),a.element.addClass(c).attr("placeholder",a.options.placeholder).attr("autocomplete","off"),n.notify(a)},events:[s],options:{name:"TextBox",value:"",readonly:!1,enable:!0,placeholder:"",label:null},value:function(e){var n=this;return e===t?n._value:(n._value=e,n.element.val(e),t)},readonly:function(e){var n=this;this._editable({readonly:e===t||e,disable:!1}),n.floatingLabel&&n.floatingLabel.readonly(e===t||e)},enable:function(e){var n=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),n.floatingLabel&&n.floatingLabel.enable(e=e===t||e)},focus:function(){var e=this;e.element[0].focus()},destroy:function(){var e=this;e.floatingLabel&&e.floatingLabel.destroy(),e.element.off(a),i.fn.destroy.call(e)},_editable:function(e){var t=this,n=t.element,i=t.wrapper,o=e.disable,r=e.readonly;n.off(a),r||o?(n.attr(l,o).attr(d,r).attr(m,o),i.toggleClass(p,o).toggleClass(f,r)):(n.removeAttr(l).removeAttr(d).attr(m,!1),i.removeClass(p).removeClass(f),n.on("focusin"+a,g(t._focusin,t)),n.on("focusout"+a,g(t._focusout,t)))},_label:function(){var t,i,o=this,a=o.element,s=o.options,l=a.attr("id");null!==s.label&&(t=!!r(s.label)&&s.label.floating,i=r(s.label)?s.label.content:s.label,t&&(o._floatingLabelContainer=o.wrapper.wrap("<span></span>").parent(),o.floatingLabel=new n.ui.FloatingLabel(o._floatingLabelContainer,{widget:o})),n.isFunction(i)&&(i=i.call(o)),i||(i=""),l||(l=s.name+"_"+n.guid(),a.attr("id",l)),o._inputLabel=e("<label class='"+h+"' for='"+l+"'>"+i+"</label>'").insertBefore(o.wrapper))},_focusin:function(){var e=this;e.wrapper.addClass(u)},_focusout:function(){var e=this,t=e._value,n=e.element.val();e.wrapper.removeClass(u),t!==n&&(e._value=n,e.trigger(s))},_wrapper:function(){var e=this,t=e.element,n=t[0],i=t.wrap("<span class='k-widget k-textbox'></span>").parent();i[0].style.cssText=n.style.cssText,n.style.width="100%",e._inputWrapper=e.wrapper=i.addClass(n.className).removeClass("input-validation-error")}});o.plugin(v)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.form.min",["kendo.editable.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=".kendoForm",r=i.Widget,a=e.extend,s=e.proxy,l="validate",d="validateField",c="validateInput",u="change",h="click"+o,p="submit",f="clear",m="max-width",g="set",v="equalSet",_="group",b="aria-describedby",w="data-stop",k="data-role",y="editable",x="form",C=".",S={form:"k-widget k-form",horizontal:"k-form-horizontal",vertical:"",field:"k-form-field",fieldsContainer:"k-form-fields-container",fieldWrap:"k-form-field-wrap",fieldError:"k-form-field-error",fieldHint:"k-form-hint",fieldset:"k-form-fieldset",layout:"k-form-layout",legend:"k-form-legend",label:"k-label k-form-label",optional:"k-label-optional",buttonsContainer:"k-form-buttons",buttonsEnd:"k-buttons-end",submit:"k-form-submit",clear:"k-form-clear",invalid:"k-invalid",hidden:"k-hidden"},T={horizontal:"horizontal",vertical:"vertical"},D=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n.options=a({},n.options,t),n._wrapper(),n._setFields(),n._setModel(),n._renderContainers(),n._renderButtons(),n._editable(),n._renderFieldsHints(),n._setEvents()},events:[d,l,u,p,f],options:{name:"Form",orientation:T.vertical,validatable:{validateOnBlur:!0,validationSummary:!1,errorTemplate:null},buttonsTemplate:null,messages:{submit:"Submit",clear:"Clear",optional:"(Optional)"},layout:"",grid:{},formData:{},items:[],formatLabel:null,focusFirst:!1},_fieldTemplate:"<div class='#:styles.field#  #if (colSpan) { #  k-colspan-#:colSpan# # } #'># if (label) { # <label class='#:styles.label#' for='#:id#' id='#:id#-form-label'># if (typeof label.encoded != 'undefined' && label.encoded === false) {##= label.text || label ## } else { ##: label.text || label ## } ## if (label.optional) { # <span class='#:styles.optional#'>#:optional#</span>  #}#</label># } #<div class='k-form-field-wrap' data-container-for='#:field#'></div></div>",_groupTemplate:"<fieldset class='#:styles.fieldset# #if (colSpan) { #  k-colspan-#:colSpan# # }#'><legend class='#:styles.legend#'>#:label.text || label #</legend></fieldset>",_buttonsTemplate:"<button class='k-button k-primary #:styles.submit#' type='submit'>#:messages.submit#</button><button class='k-button #:styles.clear#'>#:messages.clear#</button>",_errorTemplate:"<span class='k-form-error' id='#=field#-form-error'><div>#=message#</div></span>",_hintTemplate:"<div class='k-form-hint' id='#=id#-form-hint'><span>#=message#</span></div>",_wrapper:function(){var e=this,t=e.options,n=D.styles,i=t.width,o=t.height;e.wrapper=e.element.addClass(n.form).addClass(n[t.orientation]),o&&e.wrapper.height(o),i&&e.wrapper.css(m,i),e.layoutWrapper=e._setupLayoutContainer(e.wrapper,{grid:t.grid,layout:t.layout})},_flattenFields:function(e){for(var t=[].concat(e),n=t.shift(),i=[],o=[].push;n;)n.items?o.apply(t,n.items):o.call(i,n),n=t.shift();return i},_defaultLabel:function(e){var t=this,i=t.options.formatLabel;if(e.length)return n.isFunction(i)?i(e):e.split(/(.*[a-z])(?=[A-Z])/).join(" ").trim()+":"},_formatLabel:function(n,i){var o=this,r=e.isPlainObject(i)?i.text:i;return r!==t?i:o._defaultLabel(n)},_defaultFields:function(){var e,t,n=this,i=n.options,o=Object.keys(i.formData||{}),r=i.items||{},a=[];if(r.length)return r;for(t=0;t<o.length;t+=1)e=o[t],a.push({field:e,id:e});return a},_setFields:function(){var t,o,r,s,l,d,c=this,u=c._flattenFields(c._defaultFields()),h=c.options.formData||{};c._fields=[];for(d in u)t=u[d],o=h[t.field],r="string"==typeof t.editor?t.editor:e.type(o?n.parseDate(""+o)||o:o),s=n.isFunction(t.editor)?t.editor:i.Editable.fn.options.editors[r]?"":t.editor,l={"aria-labelledby":t.id||t.field+"-form-label"},t=a(!0,{},t,{id:t.id||t.field,name:t.name||t.field,type:r,editor:s,attributes:l}),c._fields[d]=t},_setModel:function(){var e=this,t=e.options,i=t.formData||{},o=n.data.Model.define({fields:e._fields});e._model=new o(i)},_editable:function(){var e=this,t=e.options,n=e.options.validatable;e._addEditableMvvmAttributes(),e.editable=e.wrapper.kendoEditable({model:e._model,fields:e._fields||[],validateOnBlur:n.validateOnBlur,validationSummary:n.validationSummary,errorTemplate:n.errorTemplate||e._errorTemplate,clearContainer:!1,skipFocus:!t.focusFirst,target:e}).getKendoEditable(),e.validator=e.editable.validatable,e._removeEditableMvvmAttributes()},_addEditableMvvmAttributes:function(){this.wrapper.attr(k,y)},_removeEditableMvvmAttributes:function(){this.wrapper.attr(w,!0).attr(k,x)},_getItemTemplate:function(e){var t,n=this;return t=e===_?n._groupTemplate:n._fieldTemplate},_renderField:function(e){var t,i=this,o=D.styles;return t=n.template(i._fieldTemplate)({styles:o,id:e.id||e.field||"",field:e.field||"",label:i._formatLabel(e.field,e.label),colSpan:e.colSpan||"",optional:i.options.messages.optional})},_toggleFieldErrorState:function(e,t){var n=e.closest(C+S.field);n.length&&n.toggleClass(S.fieldError,t)},_renderFieldsHints:function(){var t,i,o,r,a,s=this,l=s._fields;for(a=0;a<l.length;a+=1)t=l[a],o=s.wrapper.find("[name='"+t.name+"']"),o&&t.hint&&(r=e(n.template(s._hintTemplate)({message:t.hint||"",id:t.id})),s._associateHintContainer(o,r.attr("id")),i=n.widgetInstance(o),i&&(o=i.wrapper),s.validator._errorsByName(t.name).length&&(r.toggleClass(S.hidden),n.removeAttribute(o,b,r.attr("id"))),r.insertAfter(o))},_associateHintContainer:function(e,t){var i=n.getWidgetFocusableElement(e);i&&t&&n.toggleAttribute(i,b,t)},_toggleHint:function(e,t){var n,i=this,o=e.closest(C+S.field);o.length&&(n=o.find(C+S.fieldHint),n.length&&(n.toggleClass(S.hidden,t),i._associateHintContainer(e,n.attr("id"))))},_renderGroup:function(t){var i,o,r,a=this,s=t.type,l=o=e(n.template(a._getItemTemplate(s))({styles:S,label:t.label||"",colSpan:t.colSpan}));for(l=a._setupLayoutContainer(o,{grid:t.grid,layout:t.layout})||o,r=0;r<t.items.length;r+=1)i=t.items[r],l.append(a._renderField(i));return o},_renderContainers:function(){var e,t,n,i,o=this,r=o._defaultFields(),a="grid"===o.options.layout,s=a?o.layoutWrapper:o.wrapper;for(i=0;i<r.length;i+=1)e=r[i],t=e.type,n=t===_?o._renderGroup(e):o._renderField(e),s.append(n)},_renderButtons:function(){var t,i=this,o=i.wrapper,r=i.options,a=r.messages,s=D.styles,l=r.orientation===T.horizontal,d=o.find(C+s.buttonsContainer);d.length||(d=e("<div />").addClass(s.buttonsContainer).addClass(l?s.buttonsEnd:"")),t=null!==r.buttonsTemplate?r.buttonsTemplate:i._buttonsTemplate,d.append(n.template(t)({styles:s,messages:a})),i.element.append(d)},_setupLayoutContainer:function(t,n){var i,o=n.layout,r=n.grid,a=[];return"string"==typeof o&&""!==o&&(i=e("<div></div>").appendTo(t).addClass(S.layout),a.push("k-d-"+o)),"grid"===o&&"object"==typeof r&&("number"==typeof r.cols?a.push("k-grid-cols-"+r.cols):"string"==typeof r.cols&&i.css("grid-template-columns",r.cols),"number"!=typeof r.gutter&&"string"!=typeof r.gutter||i.css("grid-gap",r.gutter)),i&&i.addClass(a.join(" ")),i},_setEvents:function(){var e=this,t=e.validator;t.bind(c,s(e._validateField,e)).bind(l,s(e._validate,e)),e.wrapper.on(p+o,s(e._submit,e)).on(f+o,s(e._clear,e)).on(h+o,C+S.clear,s(e._clear,e)),e._model.bind(u,s(e._change,e))},_validateField:function(e){var t=this,n={model:t._model.toJSON(),valid:e.valid,field:e.field,error:e.error,input:e.input};t._toggleFieldErrorState(n.input,!n.valid),t._toggleHint(n.input,!n.valid),t.trigger(d,n)&&e.preventDefault()},_validate:function(e){var t=this,n={model:t._model.toJSON(),valid:e.valid,errors:e.errors};t.trigger(l,n)},_change:function(e){var t=this,n=e.field,i={field:n,value:t._model[n]};t.trigger(u,i)},_submit:function(e){var t=this,n=t._model.toJSON();t.trigger(p,{model:n})&&e.preventDefault()},_clear:function(e){var t=this;e.preventDefault(),t.clear(),t.trigger(f)},validate:function(){var e=this,t=e.validator;if(t)return t.validate()},clear:function(){var e,t,i,o,r=this,a=r._fields,s=r._model,l=r.editable,d=r.validator.options.validateOnBlur;for(r.validator.reset(),d&&s.unbind(g).unbind(v),e=0;e<a.length;e+=1)t=a[e].field,i=r.wrapper.find("[name='"+t+"']"),o=n.widgetInstance(i),i.val(""),o&&o.value(null),r._toggleHint(i,!1),"boolean"==typeof s[t]?(i.val("false"),s.set(t,!1)):s.set(t,null);r.wrapper.find(C+S.fieldError).removeClass(S.fieldError),d&&s.bind(g,l._validateProxy).bind(v,l._validateProxy)},setOptions:function(e){var t=this;t.destroy(),t.wrapper.removeClass(S.horizontal).removeAttr(w).empty(),t.init(t.element,e)},destroy:function(){var e=this;e.wrapper.off(o),r.fn.destroy.call(e.editable),r.fn.destroy.call(e),e.editable&&(e.editable.destroy(),e.editable=null)}});i.plugin(D),a(!0,D,{styles:S})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.tilelayout.min",["kendo.core.min","kendo.draganddrop.min","kendo.resizable.min"],e)}(function(){return function(e){function t(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}var n=window.kendo,i=n.ui,o=i.Widget,r=i.Draggable,a=n.selectorFromClasses,s="resize",l="reorder",d=".kendoTileLayout",c="k-cursor-ns-resize",u="k-cursor-ew-resize",h="k-cursor-nwse-resize",p="k-cursor-nesw-resize",f="k-cursor-grab",m="k-cursor-grabbing",g=1,v="k-cursor-nesw-resize k-cursor-nwse-resize k-cursor-ew-resize k-cursor-ns-resize",_={wrapper:"k-widget k-tilelayout",item:"k-tilelayout-item k-card",itemHeader:"k-tilelayout-item-header k-card-header",itemHeaderTitle:"k-card-title",itemBody:"k-tilelayout-item-body k-card-body",reorderHint:"k-layout-item-hint k-layout-item-hint-reorder",resizeHint:"k-layout-item-hint k-layout-item-hint-resize"},b=o.extend({init:function(t,n){var i=this;o.fn.init.call(i,t,n),e.cssNumber.gridColumnStart=!0,e.cssNumber.gridColumnEnd=!0,e.cssNumber.gridRowStart=!0,e.cssNumber.gridRowEnd=!0,i.element=e(t).addClass(b.styles.wrapper),i._setWrapperStyles(),i._initContainers(),i._resizable(),i._reorderable()},events:[s,l],options:{name:"TileLayout",columns:null,gap:{columns:16,rows:16},containers:[],resizable:!1,reorderable:!1,columnsWidth:"1fr",rowsHeight:"1fr",height:"",width:""},destroy:function(){o.fn.destroy.call(this),this._draggableInstance&&(this.element.find(".k-tilelayout-item").each(function(){var t=e(this);t.data("kendoDropTarget")&&t.data("kendoDropTarget").destroy()}),this._draggableInstance.destroy(),this._draggableInstance.element=this._draggableInstance.draggable=null),this.resizable&&(this.resizable.destroy(),this.resizable=null),this.resizeHandle&&(this.resizeHandle.off(d).remove(),this.resizeHandle=null),this.element.off(d)},setOptions:function(e){this.destroy(),n.deepExtend(this.options,e),this.element.empty(),this.init(this.element,this.options)},getOptions:function(){var t=e.extend(!0,{},this.options);return t.containers=n.deepExtend([],this.items),t},_initContainers:function(){var t,i,o,r,a,s,l,d,c=this,u=c.options.containers,h=c.element.children(),p=!!h.length;if(c.items=[],c.itemsMap={},p)h.each(function(i,o){t=n.guid();var r=e(o).addClass(b.styles.item).attr("id",t);c._addContainer(r,u[i],i,t)});else for(d=0;d<u.length;d++){if(t=n.guid(),s=u[d],i=e("<div></div>").addClass(b.styles.item).attr("id",t),r=s.header,r&&(r.template||r.text)&&(o=e("<div></div>").addClass(b.styles.itemHeader),c.options.reorderable&&o.addClass(f),r.text&&(l="<h5 class='"+b.styles.itemHeaderTitle+"'>"+r.text+"</h5>"),o.append(l||n.template(r.template)({})),o.appendTo(i)),a=e("<div></div>").addClass(b.styles.itemBody),!s.bodyTemplate)throw Error("Having a bodyTemplate for the container is mandatory");a.append(n.template(s.bodyTemplate)({})),a.appendTo(i),i.appendTo(c.element),c._addContainer(i,s,d,t)}},_addContainer:function(e,t,i,o){var r=this;t.order="number"==typeof t.order?t.order:i,e.attr(n.attr("index"),t.order),t.id=o,r._setContainerCoordinates(e,t),r.itemsMap[o]=t,r.items.push(r.itemsMap[o])},_setWrapperStyles:function(){var e=this,t=e.options;e.element.css({"grid-template-columns":n.format("repeat({0}, minmax(0, {1}))",t.columns,"string"==typeof t.columnsWidth?t.columnsWidth:t.columnsWidth+"px"),"grid-auto-rows":n.format("minmax(0, {0})","string"==typeof t.rowsHeight?t.rowsHeight:t.rowsHeight+"px"),"column-gap":t.gap.columns,width:"string"==typeof t.width?t.width:t.width+"px",height:"string"==typeof t.height?t.height:t.height+"px",padding:t.gap.rows+"px "+t.gap.columns+"px ","row-gap":t.gap.rows})},_setContainerCoordinates:function(e,t){t&&e.css({order:t.order,"grid-column-end":n.format("span {0}",t.colSpan),"grid-row-end":n.format("span {0}",t.rowSpan)}).attr(n.attr("index"),t.order)},_updateContainers:function(){var e,t=this;for(e=0;e<t.items.length;e++)t._setContainerCoordinates(t.element.find("#"+t.items[e].id),t.items[e])},_createResizeHandle:function(t,n,i){var o=this;o._isresizing||(o.resizeHandle&&o.resizeHandle.data("div")[0]!==t[0]&&(o.resizeHandle.off(d).remove(),o.resizeHandle=null),o.resizeHandle||(o.resizeHandle=e('<div class="k-resize-handle"></div>'),o.resizeHandle.appendTo(t)),o._positionResizeHandle(t,n,i))},_positionResizeHandle:function(e,t,i){var o,r=this,a=parseFloat(e.css("borderRightWidth")),s=parseFloat(e.css("borderBottomWidth")),l=e.height(),d=e.width(),f=i?l-6.5-s:0,m=t?d-4.5-a:0,g=9,_=9;t&&i?(_=g=25,f-=12.5,m-=12.5,o=n.support.isRtl(r.element)?p:h):t&&!i?(_=l,o=u):!t&&i&&(g=d,o=c),r.resizeHandle.css({top:f,left:m,height:_,width:g}).attr("side",t).attr("down",i).removeClass(v).addClass(o).data("div",e).show()},_createResizeHint:function(t){var n,i,o,r=this;r.hint||(n=t.css("grid-column-end"),i=t.css("grid-row-end"),o=t.css("order"),r.hint=e("<div class='"+b.styles.resizeHint+"'></div>").css({order:o,"grid-column-end":n,"grid-row-end":i}).insertAfter(t))},_removeResizeHint:function(){this._isresizing||this.hint&&(this.hint.remove(),this.hint=null)},_positionHint:function(e,t){var i=this;e&&i.hint.css("grid-column-end",n.format("span {0}",e)),t&&i.hint.css("grid-row-end",n.format("span {0}",t))},_removeAbsoluteStyles:function(e){e.css("position",""),e.css("left",""),e.css("top",""),e.css("width",""),e.css("height",""),e.css("z-index","")},_positionAbsolutely:function(e){var t,n,i;"absolute"!=e.css("position")&&(t=e.position(),n=e.outerWidth(),i=e.outerHeight(),e.css("position","absolute"),e.css("left",t.left),e.css("top",t.top),e.css("width",n),e.css("height",i),e.css("z-index",2))},_resizable:function(){var t,n,o,r,l,c,u,h=this,p=0,f=0,m=0,v=0,_=0,w=0,k=0;h.options.resizable&&(h.element.on("mousemove"+d,a(b.styles.item),function(t){var n=e(this),i=n[0].getBoundingClientRect(),o=Math.abs(i.right-t.clientX)<16,r=Math.abs(i.bottom-t.clientY)<16;o&&r?h._createResizeHandle(n,!0,!0):o?h._createResizeHandle(n,!0,!1):r&&h._createResizeHandle(n,!1,!0)}),h.resizable=new i.Resizable(h.element,{handle:"div.k-tilelayout-item > .k-resize-handle",start:function(i){var a=e(i.currentTarget);c=a.data("div"),o=c.attr("id"),t=a.attr("side"),n=a.attr("down"),u=h.element.css("grid-template-rows").split(" ").length,t&&(r=h._calculateFractionWidth(),k=h._calculateRightEndSide(r),p=i.x.location,m=c.width(),_=parseInt(c.css("grid-column-end").replace("span",""),10)),n&&(l=(h.element[0].scrollHeight-(u+1)*h.options.gap.rows)/u,f=i.y.location,v=c.height(),w=parseInt(c.css("grid-row-end").replace("span",""),10)),h._isresizing=!0},resize:function(e){var i,a,s=0,d=0,u=0,b=0,y=0,x=0,C=0,S=h.element[0].getBoundingClientRect();h._positionAbsolutely(c),h._createResizeHint(c),"true"==t&&(u=e.x.location-p,i=S.left+k-window.scrollX-e.x.location<h.options.gap.columns,a=m+u<r,i||a?u=0:(C=u/(r+h.options.gap.columns),y=u-Math.floor(C)*(r+h.options.gap.columns),s=_+Math.floor(C)+(y>=r/2?1:0),h.itemsMap[o].colSpan=Math.max(s,g))),"true"==n&&(b=e.y.location-f,i=S.bottom+window.scrollY-e.y.location<h.options.gap.rows,a=v+b<=l,i||a?b=0:(x=b/(l+h.options.gap.rows),y=b-Math.floor(x)*(l+h.options.gap.rows),d=w+Math.floor(x)+(y>=l/2?1:0),h.itemsMap[o].rowSpan=Math.max(d,g))),h._positionHint(s,d),h._positionResizeHandle(c,"true"==t,"true"==n),b&&c.css("height",v+b),u&&c.css("width",m+u)},resizeend:function(){h._isresizing=!1,h._setContainerCoordinates(c,h.itemsMap[o]),h._removeAbsoluteStyles(c),h._removeResizeHint(),h.trigger(s,{container:c})}}))},_calculateFractionWidth:function(){var e=this,t=e.element.children().first(),n=e.itemsMap[t.attr("id")].colSpan,i=t.outerWidth();return(i-(n-1)*e.options.gap.columns)/n},_calculateRightEndSide:function(e){var t=this,n=t.options.columns,i=t.options.gap.columns;return n*(e+i)+i},_createDropHint:function(t){this.dropHint=e("<div class='"+b.styles.reorderHint+"'></div>").css({order:t.order,"grid-column-end":t.columnEnd,"grid-row-end":t.rowEnd}).attr(n.attr("index"),t.order).attr("direction",t.direction)},_insertDropHint:function(e,t){"right"==t?this.dropHint.insertAfter(e):this.dropHint.insertBefore(e)},_removeDropHint:function(){this.dropHint&&(this.dropHint.remove(),this.dropHint=null)},_reorderable:function(){var i,o,s,d,c,u;this.options.reorderable&&(i=this,o=i.element,d=a(b.styles.item),c=a(b.styles.itemHeader),
u=n.guid(),this._draggableInstance=new r(this.element,{filter:c,autoScroll:!0,group:u,hint:function(e){var t=e.closest(d),n=t.width(),i=t.height(),o=t.clone();return o.find(c).removeClass(f).addClass(m),o.width(n).height(i)},dragstart:function(t){s=e(t.currentTarget).closest(d)},drag:function(o){var r,a,l,c,u,h,p,f,m=n.elementUnderCursor(o),g=o.sender.hint,v=i._draggableInstance.currentTarget.closest(d);if(t(g[0],m)){if(g.hide(),m=n.elementUnderCursor(o),!t(s[0],m)){if(i.dropHint&&i.dropHint[0]==m[0])return void g.show();r=e(m),r=r.hasClass(b.styles.item)?r:r.closest(d),r.hasClass(b.styles.item)&&(a=r[0].getBoundingClientRect(),l=o.clientX-a.left,c=a.right-o.clientX,u=l>c?"right":"left",h=r.css("order"),i.dropHint&&i.dropHint.attr("direction")!==u?(p=i.dropHint.clone(),p.css("order",h),i.dropHint.remove(),i.dropHint=p,i._insertDropHint(r,u),i.dropHint.attr("direction",u).attr(n.attr("index"),h)):i.dropHint||(f="right"==u?r.next():r.prev(),f[0]!=s[0]&&(i._createDropHint({order:h,columnEnd:v.css("grid-column-end"),rowEnd:v.css("grid-row-end"),direction:u}),s.hide(),i._insertDropHint(r,u))))}g.show()}},dragend:function(t){var o,r,a,s,c,u,h,p,f,m,g,v;if(!i.dropHint)return t.sender.hint.remove(),void i._removeDropHint();for(o=parseInt(i.dropHint.css("order"),10),r=t.currentTarget.closest(d),a=i.element.find(d),s=parseInt(r.css("order"),10),c=r.attr("id"),u=i.element.children(":visible"),h=n.attr("index"),u.sort(function(t,n){var i,o;return t=e(t),n=e(n),i=t.attr(h),o=n.attr(h),void 0===i&&(i=e(t).index()),void 0===o&&(o=e(n).index()),i=parseInt(i,10),o=parseInt(o,10),i>o?1:i<o?-1:0}),o=u.index(i.dropHint[0]),f=Math.max(o,s),p=Math.min(o,s),i.itemsMap[c].order=o,g=o>s?"right":"left","left"==g?f--:p++,v=p;v<=f;v++)m=a.filter("["+n.attr("index")+"='"+v+"']"),i.itemsMap[m.attr("id")].order+="left"==g?1:-1;r.show(),i._updateContainers(),t.sender.hint.remove(),i._removeDropHint(),i.trigger(l,{newIndex:o,oldIndex:s,container:r})}}),o.find(d).kendoDropTarget({group:u,dragenter:function(t){var n,o,r,a,l,c,u;if(!i._isresizing&&(n=e(t.dropTarget),o=i._draggableInstance.currentTarget.closest(d),s[0]!=n[0])){if(r=n[0].getBoundingClientRect(),a=t.clientX-r.left,l=r.right-t.clientX,u=a>l?"right":"left",c="right"==u?n.next():n.prev(),c[0]==s[0])return;i._removeDropHint(),s.hide(),i._createDropHint({order:n.css("order"),columnEnd:o.css("grid-column-end"),rowEnd:o.css("grid-row-end"),direction:u}),s.hide(),i._insertDropHint(n,u)}}}))}});i.plugin(b),e.extend(!0,b,{styles:_})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.wizard.min",["kendo.stepper.min","kendo.button.min","kendo.form.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=e.proxy,a=".kendoWizard",s="click",l="activate",d="select",c="reset",u="submit",h="previous",p="next",f="done",m="error",g="contentLoad",v="formValidateFailed",_="k-hidden",b="k-primary",w="k-step-link",k="aria-selected",y="aria-controls",x="aria-hidden",C="aria-expanded",S="aria-label",T="vertical",D="horizontal",A="bottom",E="right",I="left",M=".",R=" ",F="-",P="id",z="tabindex",B="role",L="data-wizard-",H={wizard:"k-widget k-wizard",horizontalWizard:"k-wizard-horizontal",verticalWizard:"k-wizard-vertical",rightWizard:"k-wizard-right",leftWizard:"k-wizard-left",wizardStepsContainer:"k-wizard-steps",wizardStep:"k-wizard-step",wizardContent:"k-wizard-content",wizardButtons:"k-wizard-buttons",wizardLeftButtons:"k-wizard-buttons-left",wizardRightButtons:"k-wizard-buttons-right",wizardPager:"k-wizard-pager"},N=n.Class.extend({init:function(e){this.options=o({},this.options,e),this.options.actionBar&&this._processButtons(),this._render()},options:{name:"WizardStep",index:0,content:"",contentUrl:null,contentId:null,markupContainer:null,form:null,actionBar:!0,buttons:[],pager:!0,selected:!1,enabled:!0,className:"",totalSteps:1,wizardId:"wizard",formTag:"form",messages:{}},_defaultButtonsConfiguration:{first:[c,p],middle:[c,h,p],last:[c,h,f]},_pagerTemplate:'<span class="k-wizard-pager">#: step # #: currentStep # #: of # #: totalSteps #</span>',buttons:function(){return this._buttons},load:function(){this.options.contentUrl&&this._ajaxRequest()},resetButtons:function(){var e=this.element.find(M+H.wizardButtons);n.destroy(e),e.remove(),this.options.buttons=[],this._processButtons(),this._buttonsContainer()},_ajaxRequest:function(t,i){var o=this,r=o.options.contentUrl,a={},s=o.element,l={type:"GET",cache:!1,url:r,dataType:"html",data:a,error:function(e,n){t&&t._triggerError(e,n,o)},complete:function(){t&&i&&t._triggerActivate(o)},success:function(e){var i=s.find(M+H.wizardContent);try{t&&t.angular("cleanup",function(){return{elements:s.get()}}),n.destroy(i),i.html(e),t&&t._triggerContentLoad(o)}catch(r){this.error(this.xhr,"error")}t&&t.angular("compile",function(){return{elements:s.get()}})}};"object"==typeof r&&(l=e.extend(!0,{},l,r)),e.ajax(l)},_ariaAttributes:function(){var e=this.element,t=this.options,n=t.messages,i=n.step+" "+(t.index+1)+" "+n.of+" "+t.totalSteps;e.attr(B,"tabpanel").attr(z,0).attr(P,t.wizardId+F+t.index).attr(C,t.selected).attr(S,i)},_buttonFactory:function(t){var n=e("<button type='button'>").kendoButton().getKendoButton(),i=n.element;i.attr(L+t.name,""),i.text(t.text),t.click&&n.bind(s,t.click),t.enabled===!1&&n.enable(!1),t.primary&&i.addClass(b),t.position===I?this._leftButtonsContainer.append(i):this._rightButtonsContainer.append(i),"done"===t.name&&"form"!==this.options.formTag&&n.element.attr("type",u),this._buttons.push(n)},_buttonsContainer:function(){var t=e("<div>").addClass(H.wizardButtons);this._leftButtonsContainer=e("<span>").addClass(H.wizardLeftButtons),this._rightButtonsContainer=e("<span>").addClass(H.wizardRightButtons),t.append(this._leftButtonsContainer),t.append(this._rightButtonsContainer),this.element.append(t),this._buttons=[],this.options.buttons.map(r(this._buttonFactory,this)),this.options.pager&&this._pager()},_content:function(){var t=this.options,i=!!t.contentUrl,o=e("<div>").addClass(H.wizardContent);!i&&t.contentId?o.html(e("#"+t.contentId).html()):!i&&t.content&&o.append(t.content),t.markupContainer&&(i||t.contentId||t.content||o.append(t.markupContainer.html()),n.destroy(t.markupContainer),t.markupContainer.remove()),this.element.prepend(o)},_form:function(){var t="<"+this.options.formTag+">",n=e(t).hide(),i=e("<div>").addClass(H.wizardContent),o=this.options.form;e("body").append(n),this.element.prepend(i),o.buttonsTemplate=o.buttonsTemplate||"",this.form=n.kendoForm(o).getKendoForm(),i.append(n.show())},_iterateButton:function(e){var t=this.options.messages;return"string"==typeof e&&(e={name:e}),e.text||(e.text=t[e.name]||e.name.charAt(0).toUpperCase()+e.name.slice(1)),e.name!==f&&e.name!==p||(e.primary=!0),e.position||e.name!==c?e.position||(e.position=E):e.position=I,e},_pager:function(){var e=this.options,t=e.messages,i={step:t.step,currentStep:e.index+1,of:t.of,totalSteps:e.totalSteps},o=n.template(this._pagerTemplate)(i);this._leftButtonsContainer.append(o)},_processButtons:function(){var e=this.options,t=e.buttons,n=this._defaultButtonsConfiguration;(!t||!t.length||t.length<=0)&&(t=0===e.index?n.first:e.index+1===e.totalSteps?n.last:n.middle),this.options.buttons=t.map(r(this._iterateButton,this))},_render:function(){this.element=e("<div>").addClass(H.wizardStep),this.options.className&&this.element.addClass(this.options.className),this._ariaAttributes(),this.options.selected||(this.element.addClass(_),this.element.attr(x,!0)),this.options.actionBar&&this._buttonsContainer(),this.options.form?this._form():this._content()}}),O=i.extend({init:function(e,t){var n=this;t=t||{},i.fn.init.call(n,e,t),n._wrapper(),n._createSteps(),n._stepper(),n._attachEvents()},options:{name:"Wizard",contentPosition:A,actionBar:!0,pager:!0,loadOnDemand:!1,reloadOnSelect:!1,validateForms:!0,stepper:{},steps:[],messages:{reset:"Reset",previous:"Previous",next:"Next",done:"Done",step:"Step",of:"of"}},events:[l,d,c,f,m,g,v],destroy:function(){var e=this;i.fn.destroy.call(e.stepper),i.fn.destroy.call(e),e.wrapper.off(a)},activeStep:function(){return this.currentStep},enableStep:function(e,n){var i,o=this;e===t||null===e||isNaN(e)||e>=o._steps.length||e<0||(e=+e,i=o._steps[e],i.options.enabled!==n&&(i.options.enabled=n,o.stepper.steps()[e].enable(n)))},insertAt:function(e,n){var i,o,r,a,s=this._steps,l=s.length,d=function(t,n){n>=e&&(t.options.index+=1),t.options.totalSteps+=1,t.element.find(M+H.wizardPager).remove(),t._pager()};null===e||e===t||isNaN(e)||e<0||e>l||n&&(o=this._mapStepForStepper(n),this.stepper.insertAt(e,o),n.totalSteps=l+1,n.messages=this.options.messages,n.index=e,n.formTag=this.wrapper.is("form")?"div":"form",this.options.pager===!1&&n.pager!==!0&&(n.pager=!1),i=new N(n),s.forEach(d),s.splice(e,0,i),0!==e&&e!==l||(r=0===e?1:l-1,a=s[r],a.resetButtons()),this._insertStepElementAtIndex(e,i.element))},next:function(){var e=this,t=e._steps.length,n=e.currentStep.options.index;n+1!==t&&e.steps()[n+1].options.enabled&&(e._select(n+1),e._selectStepper(n+1))},previous:function(){var e=this,t=e.currentStep.options.index;0!==t&&e.steps()[t-1].options.enabled&&(e._select(t-1),e._selectStepper(t-1))},removeAt:function(e){var n,i,o,r,a,s,l=this._steps,d=l.length;if(!(null===e||e===t||isNaN(e)||e<0||e>d||1===d)){for(this.stepper.removeAt(e),n=l.splice(e,1)[0],n===this.selectedStep&&(i=e>0?e-1:0,this.selectedStep=l[i]),a=0;a<d-1;a+=1)s=l[a],s.options.index=a,s.options.totalSteps=d-1,s.element.find(M+H.wizardPager).remove(),s._pager();0!==e&&e!==d-2||(o=0===e?0:d-2,r=l[o],r.resetButtons())}},select:function(e){var n,i=this,o=i.stepper;e===t||null===e||isNaN(e)||e>=i._steps.length||e<0||(e=+e,n=i._steps[e],n.options.enabled&&(i._select(e),o.options.linear?(o.setOptions({linear:!1}),i._selectStepper(e),o.setOptions({linear:!0})):i._selectStepper(e)))},steps:function(){return this._steps},_attachEvents:function(){var e=this;e.stepper.bind(d,r(e._stepperSelectHandler,e)),e.wrapper.on(s+a,"["+L+c+"]",r(e._resetClickHandler,e)).on(s+a,"["+L+h+"]",r(e._previousClickHandler,e)).on(s+a,"["+L+p+"]",r(e._nextClickHandler,e)),e.wrapper.is("form")?e.wrapper.on(u+a,r(e._doneHandler,e)):e.wrapper.on(s+a,"["+L+f+"]",r(e._doneHandler,e))},_changeStep:function(e){var t=this.wrapper.find(M+H.wizardStep);this.currentStep=e,t.addClass(_),t.attr(x,!0),t.attr(C,!1),e.element.removeClass(_),e.element.removeAttr(x),e.element.attr(C,!0)},_createStep:function(t,n,i,r){var a=this.wrapper,s=this.wrapper.children("ol, ul").children("li");return"string"==typeof t&&(t={title:t}),t.totalSteps=r,t.messages=this.options.messages,t.index=n,t.formTag=this.wrapper.is("form")?"div":"form",0===n&&(t.selected=!0),this.options.actionBar===!1&&(t.actionBar=!1),i.length>0&&i[n]&&(t.markupContainer=e(i[n]),t.title||(t.title=s[n]?s[n].textContent:""+(n+1),this.options.steps||(this.options.steps=[]))),a.attr(P)&&(t.wizardId=a.attr(P)),this.options.pager===!1&&t.pager!==!0&&(t.pager=!1),this.options.steps[n]=o(!0,{},t),new N(t)},_createSteps:function(){var t,i,o,r,a=this,s=a.wrapper,l=a.options.steps,d=s.children("div");if(t=e("<div>").addClass(H.wizardStepsContainer),a._steps=[],!l||0===l.length)for(l=[],i=0;i<d.length;i+=1)l.push({});for(i=0;i<l.length;i+=1)o=l[i],r=a._createStep(o,i,d,l.length),!o.contentUrl||0!==i&&a.options.loadOnDemand||(n.ui.progress(a.wrapper,!0),r._ajaxRequest(a)),t.append(r.element),a._steps.push(r);s.children("ol, ul").remove(),s.empty(),s.append(t),a._refreshEditorWidgets(),a.currentStep=a._steps[0]},_doneHandler:function(n){var i,o,r=this._steps,a=this.currentStep,s=[];if(this.options.validateForms&&a.form&&!a.form.validator.validate())return n.preventDefault(),this.trigger(v,{sender:this,step:a,form:a.form}),t;for(o=0;o<r.length;o+=1)i=r[o].form,i&&s.push(i);this.trigger(f,{sender:this,forms:s,originalEvent:n,button:e(n.target).getKendoButton()})},_insertStepElementAtIndex:function(e,t){var n=this.wrapper.find(M+H.wizardStepsContainer);0===e?n.prepend(t):n.find(M+H.wizardStep+":nth-child("+e+")").after(t)},_isEmpty:function(t){return!e.trim(t.html())},_mapStepForStepper:function(e){var t=o(!0,{},e);return t.label=t.title,delete t.title,delete t.buttons,delete t.pager,delete t.content,delete t.contentUrl,delete t.contentId,t},_select:function(e){var t=this._steps[e],i=this.options;t.options.contentUrl&&(i.reloadOnSelect||i.loadOnDemand&&this._isEmpty(t.element.find(M+H.wizardContent)))?(this.ajaxLoad=!0,n.ui.progress(this.wrapper,!0),t._ajaxRequest(this,!0)):this._changeStep(t)},_nextClickHandler:function(n){var i=this,o=i._steps,r=i._steps.length,a=i.currentStep,s=a.options.index,c=e(n.target).getKendoButton(),u=o[s+1];if(r!==s+1&&u.options.enabled)return i.options.validateForms&&a.form&&!a.form.validator.validate()?(i.trigger(v,{sender:i,step:a,form:a.form}),t):(i.trigger(d,{sender:i,originalEvent:n.originalEvent,step:u,button:c})||(i._select(s+1),i._selectStepper(s+1),i.ajaxLoad||i.trigger(l,{sender:i,step:u}),i.ajaxLoad=!1),t)},_previousClickHandler:function(n){var i=this,o=i._steps,r=i.currentStep,a=r.options.index,s=e(n.target).getKendoButton(),c=o[a-1];if(0!==a&&c.options.enabled)return i.options.validateForms&&r.form&&!r.form.validator.validate()?(i.trigger(v,{sender:i,step:r,form:r.form}),t):(i.trigger(d,{sender:i,originalEvent:n.originalEvent,step:c,button:s})||(i._select(a-1),i._selectStepper(a-1),i.ajaxLoad||i.trigger(l,{sender:i,step:c}),i.ajaxLoad=!1),t)},_refreshEditorWidgets:function(){var t,n,i=this.wrapper.find("[data-role='editor']");for(t=0;t<i.length;t+=1)n=e(i[t]),n.getKendoEditor().refresh()},_resetClickHandler:function(t){this.trigger(c,{sender:this,originalEvent:t,button:e(t.target).getKendoButton()})},_selectStepper:function(e){var t=this.stepper,n=t.steps()[e],i=n.element.find(M+w);t.select(e),t.wrapper.find(M+w).attr(k,!1),i.attr(k,!0).focus()},_stepper:function(){var t=this.wrapper,i=e("<nav>").prependTo(t),o=this.options,r=o.stepper,a=o.steps.map(this._mapStepForStepper);r.steps=a,r.orientation=o.contentPosition===A?D:T,r.selectOnFocus=!0,r.kendoKeydown=function(e){e.keyCode===n.keys.TAB&&(e.preventKendoKeydown=!0)},this.stepper=i.kendoStepper(r).getKendoStepper(),this._stepperAriaAttributes()},_stepperAriaAttributes:function(){var e,t,n=this.stepper,i=this.wrapper.attr(P)||"wizard",o=n.steps(),r=!1;if(o)for(t=0;t<o.length;t+=1)0===t&&(r=!0),e=o[t],e.element.find(M+w).attr(B,"tab").attr(y,i+F+t).attr(k,r)},_stepperSelectHandler:function(e){var n=this,i=e.sender,o=e.step,r=o.getIndex(),a=n._steps,s=a[r],c=n.currentStep;return n.options.validateForms&&c.form&&!c.form.validator.validate()?(e.preventDefault(),n.trigger(v,{sender:n,step:c,form:c.form}),t):(n.trigger(d,{sender:n,originalEvent:e.originalEvent,step:s,stepper:i})?e.preventDefault():(n._select(r),i.wrapper.find(M+w).attr(k,!1),o.element.find(M+w).attr(k,!0),n.ajaxLoad||n.trigger(l,{sender:n,step:s}),n.ajaxLoad=!1),t)},_triggerActivate:function(e){this._changeStep(e),this.trigger(l,{sender:this,step:e})},_triggerError:function(e,t,i){n.ui.progress(this.wrapper,!1),this.trigger(m,{sender:this,xhr:e,status:t,step:i})},_triggerContentLoad:function(e){n.ui.progress(this.wrapper,!1),this.trigger(g,{sender:this,step:e})},_wrapper:function(){var e=this,t=e.element,n=e.options.contentPosition;e.wrapper=t,e.wrapper.addClass(H.wizard),e.wrapper.attr(B,"tablist"),e.wrapper.addClass(n===E?H.verticalWizard+R+H.rightWizard:n===I?H.verticalWizard+R+H.leftWizard:H.horizontalWizard)}});n.wizard={Step:N},n.ui.plugin(O)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.appbar.min",["kendo.core.min"],e)}(function(){var e="<span class='k-appbar-spacer'></span>";return function(t){var n=window.kendo,i=n.ui,o=i.Widget,r="resize",a=t.proxy,s=o.extend({init:function(e,n){var i=this;o.fn.init.call(i,e,n),i.element=t(e).addClass("k-appbar"),"none"!=i.options.position&&i.element.addClass("k-appbar-"+i.options.position),i.element.addClass("k-appbar-"+i.options.positionMode+" k-appbar-"+i.options.themeColor),i._initItems(),i._attachEvents()},events:[r],options:{name:"AppBar",positionMode:"static",position:"none",themeColor:"light",items:[]},destroy:function(){this.resizeHandler&&(n.unbindResize(this.resizeHandler),this.resizeHandler=null),o.fn.destroy.call(this)},setOptions:function(e){var t=this;"none"!=t.options.position&&t.element.removeClass("k-appbar-"+t.options.position),t.element.removeClass("k-appbar-"+t.options.positionMode+" k-appbar-"+t.options.themeColor),n.deepExtend(t.options,e),this.destroy(),this.element.empty(),this.init(this.element,this.options)},_initItems:function(){var i,o,r,a=this,s=a.options,l=s.items,d="";for(r=0;r<l.length;r++)if(i=l[r],"spacer"==i.type)o=t(n.template(e)({})).addClass(i.className),i.width&&(o.addClass("k-appbar-spacer-sized"),o.css("width","string"==typeof i.width?i.width:i.width+"px")),d+=o[0].outerHTML;else{if(!i.template)throw Error("Having a template for the contentItem is mandatory");d+=i.className?"<div class='k-appbar-section "+i.className+"'>":"<div class='k-appbar-section'>",d+=n.template(i.template)({}),d+="</div>"}a.element.html(d)},_resize:function(){this.trigger(r)},_attachEvents:function(){var e=this;e.resizeHandler=a(e._resize,e),n.onResize(e.resizeHandler)}});i.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("imageeditor/toolbar.min",["kendo.toolbar.min","kendo.dropdownlist.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=e.extend,r=e.proxy,a=n.ui.ToolBar,s=n.toolbar.Item,l="click",d="dropDownChange",c="action",u=a.extend({init:function(e,t){var n=this;n._extendOptions(t),a.fn.init.call(n,e,t),n._attachEvents(),n.toggleTools()},events:a.fn.events.concat([d,c]),defaultTools:{open:{type:"button",icon:"upload",name:"open",command:"OpenImageEditorCommand",showText:"overflow"},save:{type:"button",icon:"download",name:"save",command:"SaveImageEditorCommand",showText:"overflow",toggleCondition:"canExport"},separator:{type:"separator"},undo:{type:"button",icon:"undo",name:"undo",command:"UndoImageEditorCommand",showText:"overflow",toggleCondition:"undo"},redo:{type:"button",icon:"redo",name:"redo",command:"RedoImageEditorCommand",showText:"overflow",toggleCondition:"redo"},separator1:{type:"separator"},crop:{type:"button",icon:"crop",name:"crop",command:"OpenPaneImageEditorCommand",options:"crop",showText:"overflow",toggleCondition:"canExport"},resize:{type:"button",icon:"image-resize",name:"resize",command:"OpenPaneImageEditorCommand",options:"resize",showText:"overflow",toggleCondition:"canExport"},zoomIn:{type:"button",icon:"zoom-in",name:"zoomIn",command:"ZoomImageEditorCommand",showText:"overflow",options:"zoomIn",toggleCondition:"enable"},zoomOut:{type:"button",icon:"zoom-out",name:"zoomOut",command:"ZoomImageEditorCommand",showText:"overflow",options:"zoomOut",toggleCondition:"enable"},zoomDropdown:{type:"imageEditorZoomDropDown",name:"zoomDropdown",command:"ZoomImageEditorCommand",text:"Zoom options",toggleCondition:"enable",items:[{name:"zoomActualSize",icon:"zoom-actual-size",text:"Show actual size",options:"actualSize"},{name:"zoomFitToScreen",icon:"zoom-best-fit",text:"Fit to screen",options:"fitToScreen"}]}},_attachEvents:function(){var e=this;e.bind(d,r(e._dropDownChange,e)),e.bind(l,r(e._click,e))},_extendOptions:function(e){var t=this,n=e.items?e.items:Object.keys(t.defaultTools);t.options=e,t.options.items=t._extendToolsOptions(n)},_extendToolsOptions:function(t){var i=this,r=i.options.messages;if(t.length)return t.map(function(t){var a,s,l=e.isPlainObject(t)&&1===Object.keys(t).length&&t.name;return t=l?t.name:t,a=e.isPlainObject(t)?t:o({},i.defaultTools[t]),s=r[a.name]||a.text,n.deepExtend(a,{id:a.name+"-"+n.guid(),name:a.name,text:s,attributes:{"aria-label":s,title:s,"data-command":a.command,"data-options":a.options,"data-toggle":a.toggleCondition},overflow:a.overflow}),"imageEditorZoomDropDown"===a.type&&(a.items=i._extendToolsOptions(a.items)),a},i)},_click:function(t){var n=e(t.target).data("command"),i=e(t.target).data("options");n&&this.action({command:n,options:i})},_dropDownChange:function(e){e.command&&this.action({command:e.command,options:e.options})},action:function(e){this.trigger(c,e)},toggleTools:function(t){var i=this,o=i.element.find("[data-toggle]");o.each(function(o,r){var a=e(r),s=null,l=a.data("toggle"),d=t&&t[l];a.is("[data-role]")&&(s=n.widgetInstance(a)),s&&s.enable?s.enable(d||!1):i.enable(a,d)})},destroy:function(){var e=this;e.zoomDropdown&&e.zoomDropdown.destroy(),a.fn.destroy.call(this)}}),h=s.extend({init:function(t,n){var o=this,a=e("<div></div>"),s=e("<input />").attr(t.attributes),l='<span class="k-icon k-i-#:icon#"></span> #:text#';o.element=a,o.input=s,o.toolbar=n,o.dropDown=new i.DropDownList(o.input,{optionLabel:{text:t.text,icon:""},dataTextField:"text",dataSource:t.items,template:l,change:r(o._change,o)}),o.element.append(o.dropDown.wrapper),o.dropDown.list.find(".k-list-optionlabel").hide(),o.toolbar.zoomDropdown=o},_change:function(e){var t=this;t.toolbar.trigger(d,{command:e.sender.element.data("command"),options:e.sender.dataItem().options})},destroy:function(){this.dropDown.destroy()}});n.toolbar.registerComponent("imageEditorZoomDropDown",h),o(n.ui,{imageeditor:{ToolBar:u,ZoomDropDown:h}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("imageeditor/pane.min",["kendo.core.min","kendo.form.min","kendo.buttongroup.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.Class,a=".k-imageeditor-pane",s="click",l={form:"k-imageeditor-pane-form",button:"k-imageeditor-pane-button",confirmButton:"k-imageeditor-pane-confirm-button",cropOverlay:"k-imageeditor-crop-overlay",crop:"k-imageeditor-crop",resizeHandle:"k-resize-handle",resizeHandlePrefix:"k-resize-"},d=function(e){return Math.round(1e3*e)/1e3},c=r.extend({init:function(t){var n=this;n.imageeditor=t,n.imageeditor.currentPaneTool&&n.imageeditor.currentPaneTool.destroy(),n.element=e("<div></div>").addClass(l.form)},open:function(){var e=this,t=e.imageeditor,o=t.options.messages.common;t.paneWrapper.append(e.element),e.formWidget=new n.ui.Form(e.element,i(e.formSettings(),{buttonsTemplate:n.format("<button class='{0} k-button' data-action='cancel'>{2}</button><button class='{0} {1} k-button k-primary' data-action='confirm'>{3}</button>",l.button,l.confirmButton,o.cancel,o.confirm)})),e.bindButtonEvents(),t.paneWrapper.show(),t.currentPaneTool=e},bindButtonEvents:function(){var e=this,t=e.formWidget,n=t.element.find("."+l.button);e._clickHandler=o(e._click,e),n.on(s+a,e._clickHandler)},_click:function(t){var n=this,i=e(t.target),o=i.data("action");n[o]&&n[o]()},cancel:function(){this.destroy()},confirm:function(){window.console.error("Pane's confirm method is not implemented!"),this.destroy()},refresh:function(){},destroy:function(){var e=this,t=e.imageeditor;e.formWidget.element.find("."+l.button).off(a),e.formWidget.destroy(),t.paneWrapper.html(""),t.paneWrapper.hide(),delete t.currentPaneTool}}),u=c.extend({init:function(e){var t=this;c.fn.init.call(t,e),t.buildCropModel(),t.canvasUI()},confirm:function(){var e=this,t=e.formWidget._model.toJSON();e.destroy(),e.imageeditor.executeCommand({command:"CropImageEditorCommand",options:t})},formSettings:function(){var t,n=this,i=n.imageeditor.options.messages.panes.crop,r=n.imageeditor.options.messages.common,a=i.aspectRatioItems,s=[];if(a)for(t in a)s.push({value:t,text:a[t]});else s=[{value:"originalRatio",text:"Original ratio"},{value:"1:1",text:"1:1 (Square)"},{value:"4:5",text:"4:5 (8:10)"},{value:"5:7",text:"5:7"},{value:"2:3",text:"2:3 (4:6)"},{value:"16:9",text:"16:9"}];return{formData:n._model,change:o(n.onChange,n),items:[{type:"group",label:i.title||"Crop Image",layout:"grid",grid:{cols:2,gutter:"0 8px"},items:[{label:i.aspectRatio||"Aspect ratio:",field:"aspectRatio",editor:"DropDownList",editorOptions:{dataValueField:"value",dataTextField:"text",dataSource:s},colSpan:2},{label:i.orientation,field:"orientation",editor:e.proxy(n._orientationEditor,n),colSpan:2},{label:r.width||"Width:",field:"width",attributes:{style:"max-width: 100px;"},editor:"NumericTextBox",editorOptions:{format:"n0",max:n._model.width,min:0},colSpan:1},{label:r.height||"Height:",field:"height",attributes:{style:"max-width: 100px;"},editor:"NumericTextBox",editorOptions:{format:"n0",max:n._model.height,min:0},colSpan:1},{label:r.lockAspectRatio||"Lock aspect ratio",field:"lockAspectRatio",colSpan:2}]}]}},_orientationEditor:function(t,n){var i=this,o=i.imageeditor.options.messages.panes.crop,r=n.model[n.field];e("<div name='"+n.field+"'></div>").appendTo(t).kendoButtonGroup({items:[{text:o.portrait||"Portrait",attributes:{"data-value":"portrait"},selected:"portrait"===r},{text:o.landscape||"Landscape",attributes:{"data-value":"landscape"},selected:"landscape"===r}],select:function(e){var t=e.sender.wrapper.find(".k-state-active").data("value");n.model.set(n.field,t)}})},buildCropModel:function(){var e=this,t=e.imageeditor,n=t.getCanvasElement(),i=n.width,o=n.height;e._model={top:0,left:0,aspectRatio:"originalRatio",width:i,height:o,orientation:i-o<0?"portrait":"landscape",lockAspectRatio:!0}},canvasUI:function(){var t,i,o,r,a,s=this,d=s.imageeditor,c=s.imageeditor.canvasContainer,u=e("<div></div>").addClass(l.cropOverlay),h=e("<div></div>").addClass(l.crop),p="<span class='"+l.resizeHandle+"'></span>",f=["nw","n","ne","w","e","sw","s","se"],m=s.imageeditor.getZoomLevel();for(t=0;t<f.length;t++)i=e(p).addClass(l.resizeHandlePrefix+f[t]).attr("data-orientation",f[t]),s._initResizeHandle(i),h.append(i);s.cropElement=h,s._canvasUI=u.append(h).appendTo(c),o=Math.round(s._model.width*m),r=Math.round(s._model.height*m),a=parseInt(s.cropElement.css("border-top-width"),10),s.cropElement.css({width:o,height:r,backgroundImage:"url('"+d._image.src+"')",backgroundSize:n.format("{0}px {1}px",o,r),backgroundClip:"content-box",backgroundPosition:n.format("-{0}px -{0}px",a)}),s.cropElement.kendoDraggable({ignore:"."+l.resizeHandle,drag:function(e){s._adjustTopLeft(e.target.offsetTop+e.y.delta,e.target.offsetLeft+e.x.delta)}})},refresh:function(){var e=this,t=e.formWidget._model,n=e.imageeditor.getZoomLevel();e.cropElement.css({top:t.top*n,left:t.left*n,width:t.width*n,height:t.height*n})},_initResizeHandle:function(t){var n=this;t.kendoDraggable({drag:function(t){var i=e(t.sender.element),o=n.formWidget._model,r=n._model,a=i.data("orientation"),s={},l=n.imageeditor.getZoomLevel(),d=o.left*l,c=o.top*l;a.indexOf("w")>=0?(s.left=n.cropElement[0].offsetLeft+t.x.delta,s.width=n.cropElement[0].offsetWidth-t.x.delta):a.indexOf("e")>=0&&(s.width=n.cropElement[0].offsetWidth+t.x.delta),a.indexOf("n")>=0?(s.top=n.cropElement[0].offsetTop+t.y.delta,s.height=n.cropElement[0].offsetHeight-t.y.delta):a.indexOf("s")>=0&&(s.height=n.cropElement[0].offsetHeight+t.y.delta),s.width&&(s.left||d)+s.width<=r.width*l&&o.set("width",Math.round(s.width/l)),s.height&&(s.top||c)+s.height<=r.height*l&&o.set("height",Math.round(s.height/l)),(s.top||s.left)&&n._adjustTopLeft(s.top,s.left)}})},_adjustTopLeft:function(e,t,n){var i=this,o=n||i.formWidget._model,r=i.formWidget._model,a=i._model,s=i.imageeditor.getZoomLevel();e>=0&&e/s+o.height<=a.height&&r.set("top",Math.round(e/s)),t>=0&&t/s+o.width<=a.width&&r.set("left",Math.round(t/s))},onChange:function(e){var t,n,o,r,a=this,s=a.imageeditor.getZoomLevel(),l=e.sender._model,d=a._model,c=d.width,u=d.height,h=d.width+":"+d.height,p=a._gcd(d.width,d.height);h=d.width/p+":"+d.height/p,"aspectRatio"===e.field&&"originalRatio"===e.value?(l.set("top",0),l.set("left",0),l.set("width",d.width),l.set("height",d.height),l.set("orientation",d.orientation)):"orientation"===e.field?(t=i({},l,{width:l.height,height:l.width}),n=a._calcSize(t,h,c,u),l.set("width",n.width),l.set("height",n.height)):l.lockAspectRatio&&(o=e.field,r=a._calcSize(l,h,c,u,o),l.set("width",r.width),l.set("height",r.height)),a.cropElement.css({top:l.top*s,left:l.left*s,width:l.width*s,height:l.height*s})},_calcSize:function(e,t,n,i,o){var r,a,s,l,c,u=Math.min(e.width,n),h=Math.min(e.height,i),p="portrait"===e.orientation,f=e.aspectRatio;return f.indexOf(":")<0&&(f=t),f=f.split(":").map(function(e){return parseInt(e,10)}),r=p?Math.min(f[0],f[1]):Math.max(f[0],f[1]),a=p?Math.max(f[0],f[1]):Math.min(f[0],f[1]),s=d(r/a),l=d(u/h),c={width:Math.round(h*s),height:Math.round(u/s)},"width"===o?{width:u,height:c.height}:"height"===o?{width:c.width,height:h}:(l>s?u=c.width:l<s&&(h=c.height),{width:u,height:h})},_gcd:function(e,t){return 0===t?e:this._gcd(t,e%t)},destroy:function(){n.destroy(this._canvasUI),this._canvasUI.remove(),c.fn.destroy.call(this)}}),h=c.extend({init:function(e){c.fn.init.call(this,e),this.buildResizeModel()},confirm:function(){var e=this,t=e._model.width,n=e._model.height,i=e.formWidget._model.toJSON();"percents"===i.measure&&(i.width=t*(i.width/100),i.height=n*(i.height/100)),e.imageeditor.executeCommand({command:"ResizeImageEditorCommand",options:i}),e.destroy()},formSettings:function(){var e=this,t=e.imageeditor.options.messages.panes.resize,n=e.imageeditor.options.messages.common;return{formData:e._model,change:o(e.onChange,e),items:[{type:"group",label:t.title||"Resize image",layout:"grid",grid:{cols:2,gutter:"0 8px"},items:[{label:n.width||"Width:",field:"width",attributes:{style:"max-width: 100px;"},editor:"NumericTextBox",editorOptions:{format:"n0",min:0},colSpan:1},{field:"measureW",editor:"DropDownList",attributes:{style:"max-width: 100px;"},label:{text:"&nbsp;",encoded:!1},editorOptions:{dataTextField:"text",dataValueField:"value",dataSource:[{text:t.pixels||"Pixels",value:"pixels"},{text:t.percents||"Percents",value:"percents"}]},colSpan:1},{label:n.height||"Height:",field:"height",attributes:{style:"max-width: 100px;"},editor:"NumericTextBox",editorOptions:{format:"n0",min:0},colSpan:1},{field:"measureH",label:{text:"&nbsp;",encoded:!1},attributes:{style:"max-width: 100px;"},editor:"DropDownList",editorOptions:{dataTextField:"text",dataValueField:"value",dataSource:[{text:t.pixels||"Pixels",value:"pixels"},{text:t.percents||"Percents",value:"percents"}]},colSpan:1},{label:n.lockAspectRatio||"Lock aspect ratio",field:"lockAspectRatio",colSpan:2}]}]}},buildResizeModel:function(){var e=this,t=e.imageeditor,n=t.getCanvasElement(),i=n.width,o=n.height;e._model={width:i,height:o,measure:"pixels",measureW:"pixels",measureH:"pixels",lockAspectRatio:!0,ratio:d(i/o)}},onChange:function(e){var t=this,n=e.sender._model,i=n.lockAspectRatio;"measureW"===e.field||"measureH"===e.field?(n.set("measureW",e.value),n.set("measureH",e.value),n.set("measure",e.value)):"measure"===e.field?t.resetNumericsTo(e.value):"width"===e.field&&i&&!t._preventChange?n.set("height",n.width/n.ratio):"height"===e.field&&i&&!t._preventChange&&n.set("width",n.height*n.ratio),n.set("ratio",d(n.width/n.height))},resetNumericsTo:function(e){var t=this,n=t._model.width,i=t._model.height,o=t.formWidget,r=o._model,a=o.element.find("[name=width]").data("kendoNumericTextBox"),s=o.element.find("[name=height]").data("kendoNumericTextBox"),l="percents"===e,d={percents:{format:"#\\%"},pixels:{format:"n0"}};a.setOptions(d[e]),s.setOptions(d[e]),t._preventChange=!0,r.set("width",l?n/a.value()*100:n*(a.value()/100)),r.set("height",l?i/s.value()*100:i*(s.value()/100)),t._preventChange=!1}});i(n.ui.imageeditor,{ImageEditorPane:c,panes:{crop:u,resize:h}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("imageeditor/commands.min",["imageeditor/pane.min","kendo.upload.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.imageeditor,o=e.extend,r=e.proxy,a=n.Class,s=a.extend({init:function(e){this.options=o({},e,this.options),this.imageeditor=e.imageeditor}}),l=s.extend({init:function(e){s.fn.init.call(this,e);
},exec:function(){var e=this,t=e.imageeditor,n=new i.panes[e.options.value](t);n.open()}}),d=s.extend({options:{zoomStep:.05,spacing:20},init:function(e){s.fn.init.call(this,e)},exec:function(){var t=this,n=t.options,i=n.value,o=t.imageeditor,r=o._image.height,a=o.getZoomLevel(),s=r;isNaN(i)?"string"==typeof i&&(i=t._processStringValue(i,a)):i=parseFloat(i),s=r*i,s>0&&(e(o._canvas).css("height",s),o._zoomLevel=i),o.currentPaneTool&&o.currentPaneTool.refresh()},_processStringValue:function(e,t){var n=this,i=n.options,o=n.imageeditor,r=o._image.height,a=o.canvasWrapper.height()-i.spacing,s=i.zoomStep;switch(e){case"zoomIn":return t+s;case"zoomOut":return t-s;case"fitToScreen":return Math.round(a/r*100)/100;default:return 1}}}),c=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.options,n=e.imageeditor,i=n.getCanvasElement(),o=n.getCurrent2dContext(),r=o.getImageData(t.left,t.top,t.width,t.height);o.clearRect(0,0,i.width,i.height),i.width=t.width,i.height=t.height,o.putImageData(r,0,0),n.drawImage(i.toDataURL()).done(function(e){n.drawCanvas(e)}).fail(function(e){n.trigger("error",e)})}}),u=s.extend({init:function(e){s.fn.init.call(this,e)},exec:function(){var e=this,t=e.options,n=e.imageeditor,i=n.getCanvasElement(),o=n.getCurrent2dContext(),r=n.getCurrentImage();o.clearRect(0,0,i.width,i.height),i.width=t.width,i.height=t.height,o.drawImage(r,0,0,t.width,t.height),n.drawImage(i.toDataURL()).done(function(e){n.drawCanvas(e)}).fail(function(e){n.trigger("error",e)})}}),h=s.extend({exec:function(){var e=this,t=e.imageeditor,n=t.getCanvasElement(),i=t.getCurrent2dContext(),o=t.undoStack.pop();o&&(t.redoStack.push(t.getCurrentImage()),delete t._image,i.clearRect(0,0,n.width,n.height),n.width=o.width,n.height=o.height,i.drawImage(o,0,0,o.width,o.height),t.drawImage(n.toDataURL()).done(function(e){t.drawCanvas(e)}).fail(function(e){t.trigger("error",e)}))}}),p=s.extend({exec:function(){var e=this,t=e.imageeditor,n=t.getCanvasElement(),i=t.getCurrent2dContext(),o=t.redoStack.pop();o&&(t.undoStack.push(t.getCurrentImage()),delete t._image,i.clearRect(0,0,n.width,n.height),n.width=o.width,n.height=o.height,i.drawImage(o,0,0,o.width,o.height),t.drawImage(n.toDataURL()).done(function(e){t.drawCanvas(e)}).fail(function(e){t.trigger("error",e)}))}}),f=s.extend({exec:function(){var e=this,t=e.imageeditor,i=t.getCanvasElement();n.saveAs(o({},t.options.saveAs,{dataURI:i.toDataURL()}))}}),m=s.extend({exec:function(){var t,n=this,i=n.imageeditor,o=i._upload;o||(t=e("<input type='file' />"),t.kendoUpload({select:r(n.onSelect,n),error:r(n.onError,n),multiple:!1,validation:{allowedExtensions:[".jpg",".jpeg",".gif",".png",".bmp",".tiff",".webp"]}}),i._upload=o=t.getKendoUpload()),o.element.click()},onSelect:function(e){var t=this,n=t.imageeditor,i=e.files[0].rawFile,o=new FileReader;o.addEventListener("load",function(){n.drawImage(o.result).done(function(e){n.trigger("imageLoaded",{image:e})||(n.drawCanvas(e),n._initUndoRedoStack(),n._toggleTools())}).fail(function(e){n.trigger("error",e)})},!1),i&&o.readAsDataURL(i)},onError:function(e){var t=this,n=t.imageeditor;n.trigger("error",e)}});o(n.ui.imageeditor,{ImageEditorCommand:s,commands:{OpenPaneImageEditorCommand:l,ZoomImageEditorCommand:d,CropImageEditorCommand:c,ResizeImageEditorCommand:u,UndoImageEditorCommand:h,RedoImageEditorCommand:p,SaveImageEditorCommand:f,OpenImageEditorCommand:m}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.imageeditor.min",["imageeditor/toolbar.min","imageeditor/commands.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.extend,o=e.isPlainObject,r=n.ui.Widget,a=n.ui,s=".kendoImageEditor",l=n._outerHeight,d="error",c="imageLoaded",u="imageRendered",h="execute",p={wrapper:"k-widget k-imageeditor",header:"k-imageeditor-header",toolbar:"k-imageeditor-toolbar",paneWrapper:"k-imageeditor-action-pane",contentWrapper:"k-imageeditor-content",canvasWrapper:"k-imageeditor-canvas-container",canvasContainer:"k-imageeditor-canvas"},f=r.extend({init:function(t,i){var o=this;r.fn.init.call(o,t,i),i=e.extend(!0,{},i),o._wrapper(),o._renderHeader(),o._contentWrapper(),o._keyHandler(),i.imageUrl&&o._drawCanvas(),o._initUndoRedoStack(),o._toggleTools(),n.notify(o)},options:{name:"ImageEditor",width:"100%",height:570,imageUrl:"",toolbar:{},saveAs:{fileName:"image.png"},messages:{toolbar:{open:"Open Image",save:"Save Image",undo:"Undo",redo:"Redo",crop:"Crop",resize:"Resize",zoomIn:"Zoom In",zoomOut:"Zoom Out",zoomDropdown:"Zoom options",zoomActualSize:"Show actual size",zoomFitToScreen:"Fit to screen"},panes:{crop:{title:"Crop Image",aspectRatio:"Aspect Ratio:",aspectRatioItems:{originalRatio:"Original ratio","1:1":"1:1 (Square)","4:5":"4:5 (8:10)","5:7":"5:7","2:3":"2:3 (4:6)","16:9":"16:9"},orientation:"Orientation:",portrait:"Portrait",landscape:"Landscape"},resize:{title:"Resize image",pixels:"Pixels",percents:"Percents"}},common:{width:"Width:",height:"Height:",cancel:"Cancel",confirm:"Confirm",lockAspectRatio:"Lock aspect ratio"}}},events:[d,c,u,h],_wrapper:function(){var e=this,t=e.options,i=t.width,o=t.height;e.wrapper=e.element.addClass(p.wrapper),i&&e.wrapper.width(i),o&&e.wrapper.height(o),e._resizeHandler=n.onResize(function(){e.resize(!0)})},_renderHeader:function(){var t=this,n=t.options;t.header=e("<div />").addClass(p.header),n.toolbar&&t.header.append(t._initToolbar().element),t.wrapper.append(t.header)},_initToolbar:function(){var t=this,n=t.options,o=e("<div></div>").addClass(p.toolbar),r=i({},n.toolbar,{messages:n.messages.toolbar,action:t.executeCommand.bind(t)});return t.toolbar=new a.imageeditor.ToolBar(o,r)},_contentWrapper:function(){var t=this,n=e("<div></div>").addClass(p.contentWrapper),i=e("<div></div>").addClass(p.canvasWrapper),o=e("<div></div>").addClass(p.canvasContainer),r=e("<div></div>").addClass(p.paneWrapper).hide(),a=l(t.header);t.canvasWrapper=i,t.canvasContainer=o,t.paneWrapper=r,i.append(o),n.height(l(t.wrapper)-a),n.append(i).append(r),t.wrapper.append(n)},_keyHandler:function(){var e=this,t=!1;e.wrapper.on("keydown"+s,function(n){if(n.ctrlKey){switch(n.keyCode){case 48:e.executeCommand({command:"ZoomImageEditorCommand",options:"fitToScreen"}),t=!0;break;case 189:e.executeCommand({command:"ZoomImageEditorCommand",options:"zoomOut"}),t=!0;break;case 187:e.executeCommand({command:"ZoomImageEditorCommand",options:"zoomIn"}),t=!0;break;case 90:e.executeCommand({command:"UndoImageEditorCommand"}),t=!0;break;case 89:e.executeCommand({command:"RedoImageEditorCommand"}),t=!0}t&&n.preventDefault()}})},_drawCanvas:function(){var e=this,t=e.options.imageUrl;e.drawImage(t).done(function(t){e.trigger(c,{image:t})||e.drawCanvas(t)}).fail(function(t){e.trigger(d,t)})},_initUndoRedoStack:function(){var e=this;e.undoStack=[],e.redoStack=[]},_toggleTools:function(){var e=this,t=e.redoStack.length>0,n=e.undoStack.length>0,i=!!e._image,o=!0;try{e._canvas.toDataURL()}catch(r){o=!1}e.toolbar.toggleTools({redo:t,undo:n,enable:i,canExport:o})},drawImage:function(t){var i=this,o=new e.Deferred,r=new Image;return r.onload=function(){n.ui.progress(i.canvasContainer,!1),o.resolve(r)},r.onerror=function(){n.ui.progress(i.canvasContainer,!1),o.reject(arguments)},n.ui.progress(i.canvasContainer,!0),r.src=t,o.promise()},drawCanvas:function(t){var n=this,i=e("<canvas>Canvas element</canvas>")[0],o=i.getContext("2d");n._canvas&&e(n._canvas).remove(),n._image&&n.undoStack.push(n._image),n._canvas=i,n._ctx=o,n._image=t,i.width=t.width,i.height=t.height,o.drawImage(t,0,0),n.canvasContainer.append(i),n.executeCommand(t.height>n.canvasWrapper.height()?{command:"ZoomImageEditorCommand",options:"fitToScreen"}:{command:"ZoomImageEditorCommand",options:n.getZoomLevel()}),n.trigger(u,{canvas:i,ctx:o,image:t}),n._toggleTools()},getCanvasElement:function(){return this._canvas},getCurrent2dContext:function(){return this._ctx},getCurrentImage:function(){return this._image},executeCommand:function(e){var t=e.command,n=i({imageeditor:this},o(e.options)?e.options:{value:e.options}),r=new a.imageeditor.commands[t](n);if(!this.trigger(h,e))return this._toggleTools(),r.exec()},getZoomLevel:function(){return this._zoomLevel||1},destroy:function(){var e=this;e.element.off(s),e.currentPaneTool&&e.currentPaneTool.destroy(),e.toolbar&&e.toolbar.destroy(),e._upload&&e._upload.destroy(),r.fn.destroy.call(e)}});a.plugin(f)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.web.min",["kendo.core.min","kendo.router.min","kendo.view.min","kendo.fx.min","kendo.dom.min","kendo.data.odata.min","kendo.data.xml.min","kendo.data.min","kendo.ooxml.min","kendo.excel.min","kendo.data.signalr.min","kendo.binder.min","kendo.drawing.min","kendo.validator.min","kendo.userevents.min","kendo.draganddrop.min","kendo.mobile.scroller.min","kendo.groupable.min","kendo.reorderable.min","kendo.resizable.min","kendo.sortable.min","kendo.selectable.min","kendo.chat.min","kendo.button.min","kendo.buttongroup.min","kendo.breadcrumb.min","kendo.switch.min","kendo.pager.min","kendo.popup.min","kendo.notification.min","kendo.tooltip.min","kendo.list.min","kendo.calendar.min","kendo.datepicker.min","kendo.dateinput.min","kendo.drawer.min","kendo.multiviewcalendar.min","kendo.autocomplete.min","kendo.dropdownlist.min","kendo.dropdowntree.min","kendo.combobox.min","kendo.multiselect.min","kendo.multicolumncombobox.min","kendo.colorpicker.min","kendo.columnmenu.min","kendo.columnsorter.min","kendo.grid.min","kendo.listview.min","kendo.listbox.min","kendo.loader.min","kendo.filebrowser.min","kendo.imagebrowser.min","kendo.editor.min","kendo.numerictextbox.min","kendo.maskedtextbox.min","kendo.mediaplayer.min","kendo.menu.min","kendo.editable.min","kendo.pivot.fieldmenu.min","kendo.filter.min","kendo.filtercell.min","kendo.panelbar.min","kendo.progressbar.min","kendo.responsivepanel.min","kendo.tabstrip.min","kendo.timepicker.min","kendo.toolbar.min","kendo.datetimepicker.min","kendo.daterangepicker.min","kendo.treeview.draganddrop.min","kendo.treeview.min","kendo.scrollview.min","kendo.slider.min","kendo.splitter.min","kendo.upload.min","kendo.dialog.min","kendo.window.min","kendo.virtuallist.min","kendo.scheduler.view.min","kendo.scheduler.dayview.min","kendo.scheduler.agendaview.min","kendo.scheduler.monthview.min","kendo.scheduler.recurrence.min","kendo.scheduler.min","kendo.gantt.data.min","kendo.gantt.editors.min","kendo.gantt.list.min","kendo.gantt.timeline.min","kendo.gantt.min","kendo.timeline.min","kendo.treelist.min","kendo.pivotgrid.min","kendo.spreadsheet.min","kendo.pivot.configurator.min","kendo.ripple.min","kendo.pdfviewer.min","kendo.rating.min","kendo.angular.min","kendo.badge.min","kendo.filemanager.min","kendo.stepper.min","kendo.textarea.min","kendo.textbox.min","kendo.form.min","kendo.floatinglabel.min","kendo.tilelayout.min","kendo.wizard.min","kendo.appbar.min","kendo.imageeditor.min"],e)}(function(){"bundle all";return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/core/kendo-core.min",["kendo.core.min","kendo.drawing.min"],e)}(function(){!function(e){function t(e){return Array.isArray(e)}function n(e,n){var i,o,r=t(n)?n:[n];for(i=0;i<r.length;i++)o=r[i],e.className.indexOf(o)===-1&&(e.className+=" "+o)}function i(e,t){e&&e.className&&(e.className=e.className.replace(t,"").replace(xt," "))}function o(e){var t,n=.5;for(e.options.stroke&&kendo.drawing.util.defined(e.options.stroke.width)&&e.options.stroke.width%2===0&&(n=0),t=0;t<e.segments.length;t++)e.segments[t].anchor().round(0).translate(n,n);return e}function r(e,t){return-e.x*t.y+e.y*t.x<0}function a(e){return"number"==typeof e&&!isNaN(e)}function s(e){return typeof e===ft}function l(e){return a(e)||s(e)&&isFinite(e)}function d(e){return"object"==typeof e}function c(e){return a(e)?e+"px":e}function u(e){return Ct.test(e)}function h(e,n){var i,o,r,a,l,h=s(n)?[n]:n;if(t(h)){for(i={},o=window.getComputedStyle(e),r=0;r<h.length;r++)a=h[r],i[a]=u(a)?parseFloat(o[a]):o[a];return i}if(d(n))for(l in n)e.style[l]=c(n[l])}function p(e,t){void 0===t&&(t=0);var n={top:0,right:0,bottom:0,left:0};return"number"==typeof e?n[mt]=n[ht]=n[We]=n[it]=e:(n[mt]=e[mt]||t,n[ht]=e[ht]||t,n[We]=e[We]||t,n[it]=e[it]||t),n}function f(e){void 0===e&&(e={});var t;return e.template?e.template=t=Pt.compile(e.template):Le(e.content)&&(t=e.content),t}function m(e,t){var n,i=e.length,o=[];for(n=0;n<i;n++)t(e[n])&&o.push(e[n]);return o}function g(e,t){var n,i;if(e.className)for(n=t.split(" "),i=0;i<n.length;i++)if(e.className.indexOf(n[i])!==-1)return!0}function v(e,t){if(t)return t.indexOf(e)!==-1}function _(e,t,n){return kendo.drawing.util.round(e+(t-e)*n,qe)}function b(e,t){var n,i,o=e.length,r=[];for(n=0;n<o;n++)i=t(e[n]),kendo.drawing.util.defined(i)&&r.push(i);return r}function w(e){var t=0;return e.wheelDelta&&(t=-e.wheelDelta/120,t=t>0?Math.ceil(t):Math.floor(t)),e.detail&&(t=kendo.drawing.util.round(e.detail/3)),t}function k(e,t){var n=e.prototype;n.options=n.options?Be({},n.options,t):t}function y(e){var t,n,i,o=ot,r=rt;for(t=0,n=e.length;t<n;t++)i=e[t],null!==i&&isFinite(i)&&(o=Math.min(o,i),r=Math.max(r,i));return{min:o===ot?void 0:o,max:r===rt?void 0:r}}function x(e,t){var n,i;for(n=0;n<e.length;n++)if(i=e[n],t(i,n,e))return i}function C(e){var t,n=e.match(on);return null===n||2!==n.length?nn.unit():(t=n[1].split(",").map(function(e){return parseFloat(e)}),new(Function.prototype.bind.apply(nn,[null].concat(t))))}function S(e){var t=getComputedStyle(e).transform;return"none"===t?nn.unit():C(t)}function T(e){var t,n,i;if(!e)return nn.unit();for(t=S(e),n=e.parentElement;n;)i=S(n),t=t.multiplyCopy(i),n=n.parentElement;return t.b=t.c=t.e=t.f=0,t}function D(e,t){var n,i,o,r=Zt(t-e,Qe-1);if(0===r){if(0===t)return.1;r=Math.abs(t)}return n=Math.pow(10,Math.floor(Math.log(r)/Math.log(10))),i=Zt(r/n,Qe),o=1,o=i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2,Zt(n*o,Qe)}function A(e,t,n,i,o){var r=Xt(o);return new rn(n+(e-n)*Math.cos(r)+(t-i)*Math.sin(r),i-(e-n)*Math.sin(r)+(t-i)*Math.cos(r))}function E(e,t){return e-t}function I(e,t){var n,i,o,r,a,s,l,d,c;return e.x1===t.x1&&e.y1===t.y1&&e.x2===t.x2&&e.y2===t.y2?t:(n=Math.min(e.x1,t.x1),i=Math.max(e.x1,t.x1),o=Math.min(e.x2,t.x2),r=Math.max(e.x2,t.x2),a=Math.min(e.y1,t.y1),s=Math.max(e.y1,t.y1),l=Math.min(e.y2,t.y2),d=Math.max(e.y2,t.y2),c=[],c[0]=new an(i,a,o,s),c[1]=new an(n,s,i,l),c[2]=new an(o,s,r,l),c[3]=new an(i,l,o,d),e.x1===n&&e.y1===a||t.x1===n&&t.y1===a?(c[4]=new an(n,a,i,s),c[5]=new an(o,l,r,d)):(c[4]=new an(o,a,r,s),c[5]=new an(n,l,i,d)),m(c,function(e){return e.height()>0&&e.width()>0})[0])}function M(t){var n,i,o=t.stops,r=t.innerRadius/t.radius*100,a=o.length,s=[];for(n=0;n<a;n++)i=e.extend({},o[n]),i.offset=(i.offset*(100-r)+r)/100,s.push(i);return s}function R(e){var t=e.origin,n=e.bottomRight();return new an(t.x,t.y,n.x,n.y)}function F(e,t){var n=e.tickX,i=e.tickY,r=e.position,a=new De({stroke:{width:t.width,color:t.color}});return e.vertical?a.moveTo(n,r).lineTo(n+t.size,r):a.moveTo(r,i).lineTo(r,i+t.size),o(a),a}function P(e,t){var n=e.lineStart,i=e.lineEnd,r=e.position,a=new De({stroke:{width:t.width,color:t.color,dashType:t.dashType}});return e.vertical?a.moveTo(n,r).lineTo(i,r):a.moveTo(r,n).lineTo(r,i),o(a),a}function z(e,t){var n=e.getTime()-t,i=e.getTimezoneOffset()-t.getTimezoneOffset();return n-i*Nn}function B(e,t){return new Date(e.getTime()+t)}function L(e){var t;return e instanceof Date?t=e:e&&(t=new Date(e)),t}function H(e,t){var n,i;if(void 0===t&&(t=0),n=0,i=e.getDay(),!isNaN(i))for(;i!==t;)0===i?i=6:i--,n++;return B(e,-n*Vn)}function N(e,t){return 0===t&&23===e.getHours()&&(e.setHours(e.getHours()+2),!0)}function O(e,t){var n,i=new Date(e);return i.setMinutes(0,0,0),n=(e.getTimezoneOffset()-i.getTimezoneOffset())*Nn,B(i,n+t*On)}function V(e,t,n,i){var o,r,a=e;return e&&(o=L(e),r=o.getHours(),n===Bn?(a=new Date(o.getFullYear()+t,0,1),N(a,0)):n===zn?(a=new Date(o.getFullYear(),o.getMonth()+t,1),N(a,r)):n===Pn?(a=V(H(o,i),7*t,Fn),N(a,r)):n===Fn?(a=new Date(o.getFullYear(),o.getMonth(),o.getDate()+t),N(a,r)):n===Rn?a=O(o,t):n===Mn?(a=B(o,t*Nn),a.getSeconds()>0&&a.setSeconds(0)):n===In?a=B(o,t*Hn):n===En&&(a=B(o,t)),n!==En&&a.getMilliseconds()>0&&a.setMilliseconds(0)),a}function W(e,t,n){return V(L(e),0,t,n)}function U(e,t,n){var i=L(e);return i&&W(i,t,n).getTime()===i.getTime()?i:V(i,1,t,n)}function j(e,t){return e&&t?e.getTime()-t.getTime():-1}function q(e,t){return e.getTime()-t}function G(e){var n,i;if(t(e)){for(n=[],i=0;i<e.length;i++)n.push(G(e[i]));return n}if(e)return L(e).getTime()}function $(e,t){return e&&t?G(e)===G(t):e===t}function K(e,t,n){return z(e,t)/qn[n]}function Y(e,t,n,i){var o,r=L(e),a=L(t);return o=n===zn?r.getMonth()-a.getMonth()+12*(r.getFullYear()-a.getFullYear())+K(r,new Date(r.getFullYear(),r.getMonth()),Fn)/new Date(r.getFullYear(),r.getMonth()+1,0).getDate():n===Bn?r.getFullYear()-a.getFullYear()+Y(r,new Date(r.getFullYear(),0),zn,1)/12:n===Fn||n===Pn?K(r,a,n):q(r,t)/qn[n],o/i}function Q(e,t,n){var i;return i=n===Bn?t.getFullYear()-e.getFullYear():n===zn?12*Q(e,t,Bn)+t.getMonth()-e.getMonth():n===Fn?Math.floor(q(t,e)/Vn):Math.floor(q(t,e)/qn[n])}function X(e,t){for(var n,i,o=0,r=t.length-1;o<=r;)if(n=Math.floor((o+r)/2),i=t[n],i<e)o=n+1;else{if(!(i>e)){for(;$(t[n-1],e);)n--;return n}r=n-1}return t[n]<=e?n:n-1}function Z(e,t){var n;return n=s(t)?e.parseDate(t)||L(t):L(t)}function J(e,n){var i,o;if(t(n)){for(i=[],o=0;o<n.length;o++)i.push(Z(e,n[o]));return i}return Z(e,n)}function ee(e,t){return a(e.weekStartDay)?e.weekStartDay:t&&t.firstDay?t.firstDay():0}function te(e,t){var n,i;if(e instanceof Date){for(n=t.length,i=0;i<n;i++)if($(t[i],e))return i;return-1}return t.indexOf(e)}function ne(e){var t=e._range;return t||(t=e._range=y(e),t.min=L(t.min),t.max=L(t.max)),t}function ie(e,t,n){for(var i,o,r,a=ne(e.categories),s=(e.max||a.max)-(e.min||a.min),l=e.autoBaseUnitSteps,d=e.maxDateGroups,c=e.baseUnit===Jn,u=t?Zn.indexOf(t):0,h=c?Zn[u++]:e.baseUnit,p=s/qn[h],f=p;!o||p>=d;){i=i||l[h].slice(0);do r=i.shift();while(r&&t===h&&r<n);if(r)o=r,p=f/o;else{if(h===Kt(Zn)){o=Math.ceil(f/d);break}if(!c){p>d&&(o=Math.ceil(f/d));break}h=Zn[u++]||Kt(Zn),f=s/qn[h],i=null}}e.baseUnitStep=o,e.baseUnit=h}function oe(e){var t,n,i,o,r,a=e.categories,s=Wt(a)?a.length:0,l=ot;for(i=0;i<s;i++)o=a[i],o&&t&&(r=z(o,t),r>0&&(l=Math.min(l,r),n=l>=jn?Bn:l>=Un-3*Vn?zn:l>=Wn?Pn:l>=Vn?Fn:l>=On?Rn:l>=Nn?Mn:In)),t=o;e.baseUnit=n||Fn}function re(e){var t=(e.baseUnit||"").toLowerCase(),n=t!==Jn&&!v(t,Zn);return n&&oe(e),t!==Jn&&e.baseUnitStep!==Xn||ie(e),e}function ae(e,t,n){var i,o,r;if(!e&&!t)return 0;if(e>=0&&t>=0){if(o=e===t?0:e,r=(t-o)/t,n===!1||!n&&r>Qn)return 0;i=Math.max(0,o-(t-o)/2)}else i=e;return i}function se(e,t,n){var i,o,r;if(!e&&!t)return 1;if(e<=0&&t<=0){if(o=e===t?0:t,r=Math.abs((o-e)/o),n===!1||!n&&r>Qn)return 0;i=Math.min(0,o-(e-o)/2)}else i=t;return i}function le(e,t){return Zt(Math.floor(e/t)*t,Qe)}function de(e,t){return Zt(Math.ceil(e/t)*t,Qe)}function ce(e){return Math.max(Math.min(e,Kn),-Kn)}function ue(e,t,n){var i=n.narrowRange,o=ae(e,t,i),r=se(e,t,i),a=D(o,r),s={majorUnit:a};return n.roundToMajorUnit!==!1&&(o<0&&me(o,a,1/3)&&(o-=a),r>0&&me(r,a,1/3)&&(r+=a)),s.min=le(o,a),s.max=de(r,a),s}function he(e,t){return{min:Wt(t.min)?Math.min(e.min,t.min):e.min,max:Wt(t.max)?Math.max(e.max,t.max):e.max,majorUnit:e.majorUnit}}function pe(e,t){var n,i;for(n=0;n<t.length;n++)i=t[n],null===e[i]&&(e[i]=void 0)}function fe(e,t){var n,i,o,r,a=t;return t&&(pe(t,["min","max"]),n=Wt(t.min),i=Wt(t.max),o=n||i,o&&t.min===t.max&&(t.min>0?t.min=0:t.max=1),t.majorUnit?(e.min=le(e.min,t.majorUnit),e.max=de(e.max,t.majorUnit)):o&&(a=Be(e,t),e.majorUnit=D(a.min,a.max))),e.minorUnit=(a.majorUnit||e.majorUnit)/5,r=Be(e,a),r.min>=r.max&&(n&&!i?r.max=r.min+r.majorUnit:!n&&i&&(r.min=r.max-r.majorUnit)),r}function me(e,t,n){var i=Zt(Math.abs(e%t),Qe),o=t*(1-n);return 0===i||i>o}function ge(e){var t=Rn;return e>=jn?t=Bn:e>=Un?t=zn:e>=Wn?t=Pn:e>=Vn&&(t=Fn),t}function ve(e,t,n){var i=n.min||e,o=n.max||t,r=n.baseUnit||(o&&i?ge(z(o,i)):Rn),a=qn[r],s=n.weekStartDay||0,l=W(G(i)-1,r,s)||L(o),d=U(G(o)+1,r,s),c=n.majorUnit?n.majorUnit:void 0,u=c||de(D(l.getTime(),d.getTime()),a)/a,h=Q(l,d,r),p=de(h,u),f=p-h,m=Math.floor(f/2),g=f-m;return n.baseUnit||delete n.baseUnit,n.baseUnit=n.baseUnit||r,n.min=n.min||V(l,-m,r,s),n.max=n.max||V(d,g,r,s),n.minorUnit=n.minorUnit||u/5,n.majorUnit=u,n}function _e(e,t,n,i){var o=n.min,r=n.max;return Wt(n.axisCrossingValue)&&n.axisCrossingValue<=0&&ke(),Wt(i.max)?i.max<=0&&ke():r=t,Wt(i.min)?i.min<=0&&ke():o=e,{min:o,max:r}}function be(e,t,n){var i=n.majorUnit,o=e;return e<=0?o=t<=1?Math.pow(i,-2):1:n.narrowRange||(o=Math.pow(i,Math.floor(ye(e,i)))),o}function we(e,t){var n,i=Zt(ye(e,t),Qe)%1;return n=e<=0?t:0!==i&&(i<.3||i>.9)?Math.pow(t,ye(e,t)+.2):Math.pow(t,Math.ceil(ye(e,t)))}function ke(){throw Error("Non positive values cannot be used for a logarithmic axis")}function ye(e,t){return Math.log(e)/Math.log(t)}function xe(e,t){return 180-Math.abs(Math.abs(e-t)-180)}function Ce(e){return e<=0?-1:1}var Se,Te,De,Ae,Ee,Ie,Me,Re,Fe,Pe,ze,Be,Le,He,Ne,Oe,Ve,We,Ue,je,qe,Ge,$e,Ke,Ye,Qe,Xe,Ze,Je,et,tt,nt,it,ot,rt,at,st,lt,dt,ct,ut,ht,pt,ft,mt,gt,vt,_t,bt,wt,kt,yt,xt,Ct,St,Tt,Dt,At,Et,It,Mt,Rt,Ft,Pt,zt,Bt,Lt,Ht,Nt,Ot,Vt,Wt,Ut,jt,qt,Gt,$t,Kt,Yt,Qt,Xt,Zt,Jt,en,tn,nn,on,rn,an,sn,ln,dn,cn,un,hn,pn,fn,mn,gn,vn,_n,bn,wn,kn,yn,xn,Cn,Sn,Tn,Dn,An,En,In,Mn,Rn,Fn,Pn,zn,Bn,Ln,Hn,Nn,On,Vn,Wn,Un,jn,qn,Gn,$n,Kn,Yn,Qn,Xn,Zn,Jn,ei,ti,ni,ii,oi,ri,ai,si,li,di,ci,ui,hi,pi,fi,mi,gi;window.kendo.dataviz=window.kendo.dataviz||{},Se=kendo.drawing,Te=Se.util,De=Se.Path,Ae=Se.Group,Ee=kendo.Class,Ie=kendo.geometry,Me=Ie.Rect,Re=Ie.Circle,Fe=Ie.transform,Pe=Ie.Segment,ze=kendo.dataviz,Be=kendo.deepExtend,Le=kendo.isFunction,He=kendo.getter,Ne="arc",Oe="axisLabelClick",Ve="#000",We="bottom",Ue="center",je="circle",qe=3,Ge="cross",$e="date",Ke="12px sans-serif",Ye=400,Qe=10,Xe=600,Ze="end",Je=/\{\d+:?/,et="height",tt=100,nt="inside",it="left",ot=Number.MAX_VALUE,rt=-Number.MAX_VALUE,at="none",st="noteClick",lt="noteHover",dt="noteLeave",ct="object",ut="outside",ht="right",pt="start",ft="string",mt="top",gt="triangle",vt="value",_t="#fff",bt="width",wt="x",kt="y",yt={ARC:Ne,AXIS_LABEL_CLICK:Oe,BLACK:Ve,BOTTOM:We,CENTER:Ue,CIRCLE:je,COORD_PRECISION:qe,CROSS:Ge,DATE:$e,DEFAULT_FONT:Ke,DEFAULT_HEIGHT:Ye,DEFAULT_PRECISION:Qe,DEFAULT_WIDTH:Xe,END:Ze,FORMAT_REGEX:Je,HEIGHT:et,HIGHLIGHT_ZINDEX:tt,INSIDE:nt,LEFT:it,MAX_VALUE:ot,MIN_VALUE:rt,NONE:at,NOTE_CLICK:st,NOTE_HOVER:lt,NOTE_LEAVE:dt,OBJECT:ct,OUTSIDE:ut,RIGHT:ht,START:pt,STRING:ft,TOP:mt,TRIANGLE:gt,VALUE:vt,WHITE:_t,WIDTH:bt,X:wt,Y:kt},xt=/\s+/g,Ct=/width|height|top|left|bottom|right/i,St={format:function(e,t){return t},toString:function(e){return e},parseDate:function(e){return new Date(e)},firstDay:function(){return 0}},Tt=St,Dt=Ee.extend({}),Dt.register=function(e){Tt=e},Object.defineProperties&&Object.defineProperties(Dt,{implementation:{get:function(){return Tt}}}),At=/\{(\d+)(:[^\}]+)?\}/g,Et=Ee.extend({init:function(e){this._intlService=e},auto:function(e){for(var t,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return t=this.intl,s(e)&&e.match(Je)?t.format.apply(t,[e].concat(n)):t.toString(n[0],e)},localeAuto:function(e,t,n){var i,o=this.intl;return i=s(e)&&e.match(Je)?e.replace(At,function(e,i,r){var a=t[parseInt(i,10)];return o.toString(a,r?r.substring(1):"",n)}):o.toString(t[0],e,n)}}),Object.defineProperties&&Object.defineProperties(Et.fn,{intl:{get:function(){return this._intlService||Dt.implementation},set:function(e){this._intlService=e}}}),It=Ee.extend({init:function(e,t){void 0===t&&(t={}),this._intlService=t.intlService,this.sender=t.sender||e,this.format=new Et(t.intlService),this.chart=e,this.rtl=!!t.rtl},notify:function(e,t){this.chart&&this.chart.trigger(e,t)},isPannable:function(e){var t=((this.chart||{}).options||{}).pannable;return t&&t.lock!==e}}),Object.defineProperties&&Object.defineProperties(It.fn,{intl:{get:function(){return this._intlService||Dt.implementation},set:function(e){this._intlService=e,this.format.intl=e}}}),Rt=Ee.extend({}),Rt.register=function(e){Mt=e},Rt.create=function(e,t){if(Mt)return Mt.create(e,t)},Ft={compile:function(e){return e}},Pt=Ee.extend({}),Pt.register=function(e){Ft=e},Pt.compile=function(e){return Ft.compile(e)},zt={ChartService:It,DomEventsBuilder:Rt,FormatService:Et,IntlService:Dt,TemplateService:Pt},Bt=function(){this._map={}},Bt.prototype.get=function(e){return this._map[this._key(e)]},Bt.prototype.set=function(e,t){this._map[this._key(e)]=t},Bt.prototype._key=function(e){return e instanceof Date?e.getTime():e},Lt="trigger",Ht=Ee.extend({init:function(e,t){this.observer=e,this.handlerMap=Be({},this.handlerMap,t)},trigger:function(e,t){var n,i=this,o=i.observer,r=i.handlerMap;return r[e]?n=this.callObserver(r[e],t):o[Lt]&&(n=this.callObserver(Lt,e,t)),n},callObserver:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return this.observer[e].apply(this.observer,t)},requiresHandlers:function(e){var t,n=this;if(this.observer.requiresHandlers)return this.observer.requiresHandlers(e);for(t=0;t<e.length;t++)if(n.handlerMap[e[t]])return!0}}),Nt=kendo.drawing.util,Ot=Nt.append,Vt=Nt.bindEvents,Wt=Nt.defined,Ut=Nt.deg,jt=Nt.elementOffset,qt=Nt.elementSize,Gt=Nt.eventElement,$t=Nt.eventCoordinates,Kt=Nt.last,Yt=Nt.limitValue,Qt=Nt.objectKey,Xt=Nt.rad,Zt=Nt.round,Jt=Nt.unbindEvents,en=Nt.valueOrDefault,tn=Ee.extend({}),tn.fetchFonts=function(e,t,n){void 0===n&&(n={depth:0});var i=5;!e||n.depth>i||!document.fonts||Object.keys(e).forEach(function(i){var o=e[i];"dataSource"!==i&&"$"!==i[0]&&o&&("font"===i?t.push(o):"object"==typeof o&&(n.depth++,tn.fetchFonts(o,t,n),n.depth--))})},tn.loadFonts=function(e,t){var n=[];if(e.length>0&&document.fonts){try{n=e.map(function(e){return document.fonts.load(e)})}catch(i){kendo.logToConsole(i)}Promise.all(n).then(t,t)}else t()},tn.preloadFonts=function(e,t){var n=[];tn.fetchFonts(e,n),tn.loadFonts(n,t)},nn=Ie.Matrix,on=/matrix\((.*)\)/,rn=Ee.extend({init:function(e,t){this.x=e||0,this.y=t||0},clone:function(){return new rn(this.x,this.y)},equals:function(e){return e&&this.x===e.x&&this.y===e.y},rotate:function(e,t){var n=Xt(t),i=Math.cos(n),o=Math.sin(n),r=e.x,a=e.y,s=this,l=s.x,d=s.y;return this.x=Zt(r+(l-r)*i+(d-a)*o,qe),this.y=Zt(a+(d-a)*i-(l-r)*o,qe),this},multiply:function(e){return this.x*=e,this.y*=e,this},distanceTo:function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}}),rn.onCircle=function(e,t,n){var i=Xt(t);return new rn(e.x-n*Math.cos(i),e.y-n*Math.sin(i))},an=Ee.extend({init:function(e,t,n,i){this.x1=e||0,this.y1=t||0,this.x2=n||0,this.y2=i||0},equals:function(e){return this.x1===e.x1&&this.x2===e.x2&&this.y1===e.y1&&this.y2===e.y2},width:function(){return this.x2-this.x1},height:function(){return this.y2-this.y1},translate:function(e,t){return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this},move:function(e,t){var n=this.height(),i=this.width();return Wt(e)&&(this.x1=e,this.x2=this.x1+i),Wt(t)&&(this.y1=t,this.y2=this.y1+n),this},wrap:function(e){return this.x1=Math.min(this.x1,e.x1),this.y1=Math.min(this.y1,e.y1),this.x2=Math.max(this.x2,e.x2),this.y2=Math.max(this.y2,e.y2),this},wrapPoint:function(e){var n=t(e),i=n?e[0]:e.x,o=n?e[1]:e.y;return this.wrap(new an(i,o,i,o)),this},snapTo:function(e,t){return t!==wt&&t||(this.x1=e.x1,this.x2=e.x2),t!==kt&&t||(this.y1=e.y1,this.y2=e.y2),this},alignTo:function(e,t){var n,i,o=this.height(),r=this.width(),a=t===mt||t===We?kt:wt,s=a===kt?o:r;return t===Ue?(n=e.center(),i=this.center(),this.x1+=n.x-i.x,this.y1+=n.y-i.y):this[a+1]=t===mt||t===it?e[a+1]-s:e[a+2],this.x2=this.x1+r,this.y2=this.y1+o,this},shrink:function(e,t){return this.x2-=e,this.y2-=t,this},expand:function(e,t){return this.shrink(-e,-t),this},pad:function(e){var t=p(e);return this.x1-=t.left,this.x2+=t.right,this.y1-=t.top,this.y2+=t.bottom,this},unpad:function(e){var t=p(e);return t.left=-t.left,t.top=-t.top,t.right=-t.right,t.bottom=-t.bottom,this.pad(t)},clone:function(){return new an(this.x1,this.y1,this.x2,this.y2)},center:function(){return new rn(this.x1+this.width()/2,this.y1+this.height()/2)},containsPoint:function(e){return e.x>=this.x1&&e.x<=this.x2&&e.y>=this.y1&&e.y<=this.y2},points:function(){return[new rn(this.x1,this.y1),new rn(this.x2,this.y1),new rn(this.x2,this.y2),new rn(this.x1,this.y2)]},getHash:function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},overlaps:function(e){return!(e.y2<this.y1||this.y2<e.y1||e.x2<this.x1||this.x2<e.x1)},rotate:function(e){var t=this.width(),n=this.height(),i=this.center(),o=i.x,r=i.y,a=A(0,0,o,r,e),s=A(t,0,o,r,e),l=A(t,n,o,r,e),d=A(0,n,o,r,e);return t=Math.max(a.x,s.x,l.x,d.x)-Math.min(a.x,s.x,l.x,d.x),n=Math.max(a.y,s.y,l.y,d.y)-Math.min(a.y,s.y,l.y,d.y),this.x2=this.x1+t,this.y2=this.y1+n,this},toRect:function(){return new Me([this.x1,this.y1],[this.width(),this.height()])},hasSize:function(){return 0!==this.width()&&0!==this.height()},align:function(e,t,n){var i=t+1,o=t+2,r=t===wt?bt:et,a=this[r]();v(n,[it,mt])?(this[i]=e[i],this[o]=this[i]+a):v(n,[ht,We])?(this[o]=e[o],this[i]=this[o]-a):n===Ue&&(this[i]=e[i]+(e[r]()-a)/2,this[o]=this[i]+a)}}),sn=Ee.extend({init:function(e,t,n,i,o){this.center=e,this.innerRadius=t,this.radius=n,this.startAngle=i,this.angle=o},clone:function(){return new sn(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},middle:function(){return this.startAngle+this.angle/2},setRadius:function(e,t){return t?this.innerRadius=e:this.radius=e,this},point:function(e,t){var n=Xt(e),i=Math.cos(n),o=Math.sin(n),r=t?this.innerRadius:this.radius,a=Zt(this.center.x-i*r,qe),s=Zt(this.center.y-o*r,qe);return new rn(a,s)},adjacentBox:function(e,t,n){var i=this.clone().expand(e),o=i.middle(),r=i.point(o),a=t/2,s=n/2,l=Math.sin(Xt(o)),d=Math.cos(Xt(o)),c=r.x-a,u=r.y-s;return Math.abs(l)<.9&&(c+=a*-d/Math.abs(d)),Math.abs(d)<.9&&(u+=s*-l/Math.abs(l)),new an(c,u,c+t,u+n)},containsPoint:function(e){var t=this.center,n=this.innerRadius,i=this.radius,o=this.startAngle,a=this.startAngle+this.angle,s=e.x-t.x,l=e.y-t.y,d=new rn(s,l),c=this.point(o),u=new rn(c.x-t.x,c.y-t.y),h=this.point(a),p=new rn(h.x-t.x,h.y-t.y),f=Zt(s*s+l*l,qe);return(u.equals(d)||r(u,d))&&!r(p,d)&&f>=n*n&&f<=i*i},getBBox:function(){var e,t,n,i=this,o=new an(ot,ot,rt,rt),r=Zt(this.startAngle%360),a=Zt((r+this.angle)%360),s=this.innerRadius,l=[0,90,180,270,r,a].sort(E),d=l.indexOf(r),c=l.indexOf(a);for(e=r===a?l:d<c?l.slice(d,c+1):[].concat(l.slice(0,c+1),l.slice(d,l.length)),t=0;t<e.length;t++)n=i.point(e[t]),o.wrapPoint(n),o.wrapPoint(n,s);return s||o.wrapPoint(this.center),o},expand:function(e){return this.radius+=e,this}}),ln=sn.extend({init:function(e,t,n,i){sn.fn.init.call(this,e,0,t,n,i)},expand:function(e){return sn.fn.expand.call(this,e)},clone:function(){return new ln(this.center,this.radius,this.startAngle,this.angle)},setRadius:function(e){return this.radius=e,this}}),dn=.001,cn=Ee.extend({createRing:function(e,t){var n,i,o,r,a,s,l=e.startAngle+180,d=e.angle+l;return e.angle>0&&l===d&&(d+=dn),n=new Ie.Point(e.center.x,e.center.y),i=Math.max(e.radius,0),o=Math.max(e.innerRadius,0),r=new Ie.Arc(n,{startAngle:l,endAngle:d,radiusX:i,radiusY:i}),a=De.fromArc(r,t).close(),o?(r.radiusX=r.radiusY=o,s=r.pointAt(d),a.lineTo(s.x,s.y),a.arc(d,l,o,o,!0)):a.lineTo(n.x,n.y),a}}),cn.current=new cn,un=Ee.extend({init:function(e){this.children=[],this.options=Be({},this.options,this.initUserOptions(e))},initUserOptions:function(e){return e},reflow:function(e){var t,n,i,o=this.children;for(n=0;n<o.length;n++)i=o[n],i.reflow(e),t=t?t.wrap(i.box):i.box.clone();this.box=t||e},destroy:function(){var e,t=this.children;for(this.animation&&this.animation.destroy(),e=0;e<t.length;e++)t[e].destroy()},getRoot:function(){var e=this.parent;return e?e.getRoot():null},getSender:function(){var e=this.getService();if(e)return e.sender},getService:function(){for(var e=this;e;){if(e.chartService)return e.chartService;e=e.parent}},translateChildren:function(e,t){var n,i=this.children,o=i.length;for(n=0;n<o;n++)i[n].box.translate(e,t)},append:function(){var e,t,n=arguments,i=this;for(e=0;e<arguments.length;e++)t=n[e],i.children.push(t),t.parent=i},renderVisual:function(){this.options.visible!==!1&&(this.createVisual(),this.addVisual(),this.renderChildren(),
this.createAnimation(),this.renderComplete())},addVisual:function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},renderChildren:function(){var e,t=this.children,n=t.length;for(e=0;e<n;e++)t[e].renderVisual()},createVisual:function(){this.visual=new Ae({zIndex:this.options.zIndex,visible:en(this.options.visible,!0)})},createAnimation:function(){this.visual&&this.options.animation&&(this.animation=Se.Animation.create(this.visual,this.options.animation))},appendVisual:function(e){e.chartElement||(e.chartElement=this),e.options.noclip?this.clipRoot().visual.append(e):Wt(e.options.zIndex)?this.stackRoot().stackVisual(e):this.isStackRoot?this.stackVisual(e):this.visual?this.visual.append(e):this.parent.appendVisual(e)},clipRoot:function(){return this.parent?this.parent.clipRoot():this},stackRoot:function(){return this.parent?this.parent.stackRoot():this},stackVisual:function(e){var t,n,i,o=e.options.zIndex||0,r=this.visual.children,a=r.length;for(t=0;t<a&&(n=r[t],i=en(n.options.zIndex,0),!(i>o));t++);this.visual.insert(t,e)},traverse:function(e){var t,n,i=this.children,o=i.length;for(t=0;t<o;t++)n=i[t],e(n),n.traverse&&n.traverse(e)},closest:function(e){for(var t=this,n=!1;t&&!n;)n=e(t),n||(t=t.parent);if(n)return t},renderComplete:function(){},hasHighlight:function(){var e=(this.options||{}).highlight;return!(!this.createHighlight||e&&e.visible===!1)},toggleHighlight:function(t){var n,i=this,o=(this.options||{}).highlight||{},r=o.visual,a=this._highlight;if(!a){if(n={fill:{color:_t,opacity:.2},stroke:{color:_t,width:1,opacity:.2}},r){if(a=this._highlight=r(e.extend(this.highlightVisualArgs(),{createVisual:function(){return i.createHighlight(n)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!a)return}else a=this._highlight=this.createHighlight(n);Wt(a.options.zIndex)||(a.options.zIndex=en(o.zIndex,this.options.zIndex)),this.appendVisual(a)}a.visible(t)},createGradientOverlay:function(t,n,i){var o=new De(e.extend({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},n));return o.segments.elements(t.segments.elements()),o},createGradient:function(e){if(this.parent)return this.parent.createGradient(e)}}),un.prototype.options={},hn=un.extend({init:function(e){un.fn.init.call(this,e),this.options.margin=p(this.options.margin),this.options.padding=p(this.options.padding)},reflow:function(e){var t,n,i,o,r=this,a=this.options,s=a.width,l=a.height,d=a.shrinkToFit,c=s&&l,u=a.margin,h=a.padding,p=a.border.width,f=function(){r.align(e,wt,a.align),r.align(e,kt,a.vAlign),r.paddingBox=t.clone().unpad(u).unpad(p)},m=e.clone();for(c&&(m.x2=m.x1+s,m.y2=m.y1+l),d&&m.unpad(u).unpad(p).unpad(h),un.fn.reflow.call(this,m),t=c?this.box=new an(0,0,s,l):this.box,d&&c?(f(),m=this.contentBox=this.paddingBox.clone().unpad(h)):(m=this.contentBox=t.clone(),t.pad(h).pad(p).pad(u),f()),this.translateChildren(t.x1-m.x1+u.left+p+h.left,t.y1-m.y1+u.top+p+h.top),n=this.children,i=0;i<n.length;i++)o=n[i],o.reflow(o.box)},align:function(e,t,n){this.box.align(e,t,n)},hasBox:function(){var e=this.options;return e.border.width||e.background},createVisual:function(){un.fn.createVisual.call(this);var e=this.options;e.visible&&this.hasBox()&&this.visual.append(De.fromRect(this.paddingBox.toRect(),this.visualStyle()))},visualStyle:function(){var e=this.options,t=e.border||{};return{stroke:{width:t.width,color:t.color,opacity:en(t.opacity,e.opacity),dashType:t.dashType},fill:{color:e.background,opacity:e.opacity},cursor:e.cursor}}}),k(hn,{align:it,vAlign:mt,margin:{},padding:{},border:{color:Ve,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0}),pn=hn.extend({init:function(e,t){hn.fn.init.call(this,e),this.pointData=t},getElement:function(){var e,t,n=this,i=n.options,o=n.paddingBox,r=i.type,a=i.rotation,s=o.center(),l=o.width()/2;return i.visible&&this.hasBox()?(e=this.visualStyle(),r===je?t=new Se.Circle(new Re([Zt(o.x1+l,qe),Zt(o.y1+o.height()/2,qe)],l),e):r===gt?t=De.fromPoints([[o.x1+l,o.y1],[o.x1,o.y2],[o.x2,o.y2]],e).close():r===Ge?(t=new Se.MultiPath(e),t.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t.moveTo(o.x1,o.y2).lineTo(o.x2,o.y1)):t=De.fromRect(o.toRect(),e),a&&t.transform(Fe().rotate(-a,[s.x,s.y])),t.options.zIndex=i.zIndex,t):null},createElement:function(){var e,t=this,n=this.options.visual,i=this.pointData||{};return e=n?n({value:i.value,dataItem:i.dataItem,sender:this.getSender(),series:i.series,category:i.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},visualOptions:function(){var e=this.options;return{background:e.background,border:e.border,margin:e.margin,padding:e.padding,type:e.type,size:e.width,visible:e.visible}},createVisual:function(){this.visual=this.createElement()}}),k(pn,{type:je,align:Ue,vAlign:Ue}),fn="linear",mn="radial",gn={glass:{type:fn,rotation:0,stops:[{offset:0,color:_t,opacity:0},{offset:.25,color:_t,opacity:.3},{offset:1,color:_t,opacity:0}]},sharpBevel:{type:mn,stops:[{offset:0,color:_t,opacity:.55},{offset:.65,color:_t,opacity:0},{offset:.95,color:_t,opacity:.25}]},roundedBevel:{type:mn,stops:[{offset:.33,color:_t,opacity:.06},{offset:.83,color:_t,opacity:.2},{offset:.95,color:_t,opacity:0}]},roundedGlass:{type:mn,supportVML:!1,stops:[{offset:0,color:_t,opacity:0},{offset:.5,color:_t,opacity:.3},{offset:.99,color:_t,opacity:0}]},sharpGlass:{type:mn,supportVML:!1,stops:[{offset:0,color:_t,opacity:.2},{offset:.15,color:_t,opacity:.15},{offset:.17,color:_t,opacity:.35},{offset:.85,color:_t,opacity:.05},{offset:.87,color:_t,opacity:.15},{offset:.99,color:_t,opacity:0}]},bubbleShadow:{type:mn,center:[.5,.5],radius:.5}},vn=un.extend({init:function(e){un.fn.init.call(this,e);var t=this.options;t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),this.gradients={}},reflow:function(){var e,t=this,n=t.options,i=t.children,o=new an(0,0,n.width,n.height);for(this.box=o.unpad(n.margin),e=0;e<i.length;e++)i[e].reflow(o),o=I(o,i[e].box)||new an},createVisual:function(){this.visual=new Ae,this.createBackground()},createBackground:function(){var e=this.options,t=e.border||{},n=this.box.clone().pad(e.margin).unpad(t.width),i=De.fromRect(n.toRect(),{stroke:{color:t.width?t.color:"",width:t.width,dashType:t.dashType},fill:{color:e.background,opacity:e.opacity},zIndex:-10});this.visual.append(i)},getRoot:function(){return this},createGradient:function(t){var n,i,o=this.gradients,r=Qt(t),a=gn[t.gradient];return o[r]?n=o[r]:(i=e.extend({},a,t),"linear"===a.type?n=new Se.LinearGradient(i):(t.innerRadius&&(i.stops=M(i)),n=new Se.RadialGradient(i),n.supportVML=a.supportVML!==!1),o[r]=n),n},cleanGradients:function(){var e,t=this.gradients;for(e in t)t[e]._observers=[]},size:function(){var e=this.options;return new an(0,0,e.width,e.height)}}),k(vn,{width:Xe,height:Ye,background:_t,border:{color:Ve,width:0},margin:p(5),zIndex:-2}),_n=un.extend({init:function(e){un.fn.init.call(this,e),this._initDirection()},_initDirection:function(){var e=this.options;e.vertical?(this.groupAxis=wt,this.elementAxis=kt,this.groupSizeField=bt,this.elementSizeField=et,this.groupSpacing=e.spacing,this.elementSpacing=e.vSpacing):(this.groupAxis=kt,this.elementAxis=wt,this.groupSizeField=et,this.elementSizeField=bt,this.groupSpacing=e.vSpacing,this.elementSpacing=e.spacing)},reflow:function(e){this.box=e.clone(),this.reflowChildren()},reflowChildren:function(){var e,t,n,i,o,r,a,s,l,d,c,u=this,h=this,p=h.box,f=h.elementAxis,m=h.groupAxis,g=h.elementSizeField,v=h.groupSizeField,_=this.groupOptions(),b=_.groups,w=_.groupsSize,k=_.maxGroupElementsSize,y=b.length,x=p[m+1]+this.alignStart(w,p[v]());if(y){for(e=x,t=0;t<y;t++){for(n=b[t],i=n.groupElements,o=p[f+1],r=i.length,a=0;a<r;a++)s=i[a],l=u.elementSize(s),d=e+u.alignStart(l[v],n.groupSize),c=new an,c[m+1]=d,c[m+2]=d+l[v],c[f+1]=o,c[f+2]=o+l[g],s.reflow(c),o+=l[g]+u.elementSpacing;e+=n.groupSize+u.groupSpacing}p[m+1]=x,p[m+2]=x+w,p[f+2]=p[f+1]+k}},alignStart:function(e,t){var n=0,i=this.options.align;return i===ht||i===We?n=t-e:i===Ue&&(n=(t-e)/2),n},groupOptions:function(){var e,t,n,i=this,o=this,r=o.box,a=o.children,s=o.elementSizeField,l=o.groupSizeField,d=o.elementSpacing,c=o.groupSpacing,u=Zt(r[s]()),h=a.length,p=[],f=0,m=0,g=0,v=0,_=[];for(e=0;e<h;e++)t=a[e],t.box||t.reflow(r),n=i.elementSize(t),i.options.wrap&&Zt(m+d+n[s])>u&&(p.push({groupElements:_,groupSize:f,groupElementsSize:m}),v=Math.max(v,m),g+=c+f,f=0,m=0,_=[]),f=Math.max(f,n[l]),m>0&&(m+=d),m+=n[s],_.push(t);return p.push({groupElements:_,groupSize:f,groupElementsSize:m}),v=Math.max(v,m),g+=f,{groups:p,groupsSize:g,maxGroupElementsSize:v}},elementSize:function(e){return{width:e.box.width(),height:e.box.height()}},createVisual:function(){}}),k(_n,{vertical:!0,wrap:!0,vSpacing:0,spacing:0}),bn=Se.Text,wn=un.extend({init:function(e,t){un.fn.init.call(this,t),this.content=e,this.reflow(new an)},reflow:function(e){var t=this.options,n=t.size=Te.measureText(this.content,{font:t.font});this.baseline=n.baseline,this.box=new an(e.x1,e.y1,e.x1+n.width,e.y1+n.height)},createVisual:function(){var e=this.options,t=e.font,n=e.color,i=e.opacity,o=e.cursor;this.visual=new bn(this.content,this.box.toRect().topLeft(),{font:t,fill:{color:n,opacity:i},cursor:o})}}),k(wn,{font:Ke,color:Ve}),kn=/\n/m,yn=hn.extend({init:function(e,t,n){hn.fn.init.call(this,t),this.content=e,this.data=n,this._initContainer(),this.options._autoReflow!==!1&&this.reflow(new an)},_initContainer:function(){var e,t,n=this.options,i=(this.content+"").split(kn),o=new _n({vertical:!0,align:n.align,wrap:!1}),r=Be({},n,{opacity:1,animation:null});for(this.container=o,this.append(o),e=0;e<i.length;e++)t=new wn(i[e].trim(),r),o.append(t)},reflow:function(e){var t,n,i,o,r=this.options,a=r.visual;this.container.options.align=r.align,a&&!this._boxReflow?(t=e,t.hasSize()||(this._boxReflow=!0,this.reflow(t),this._boxReflow=!1,t=this.box),n=this.visual=a(this.visualContext(t)),n&&(t=R(n.clippedBBox()||new Me),n.options.zIndex=r.zIndex),this.box=this.contentBox=this.paddingBox=t):(hn.fn.reflow.call(this,e),r.rotation&&(i=p(r.margin),o=this.box.unpad(i),this.targetBox=e,this.normalBox=o.clone(),o=this.rotate(),o.translate(i.left-i.right,i.top-i.bottom),this.rotatedBox=o.clone(),o.pad(i)))},createVisual:function(){var e,t=this.options;this.visual=new Ae({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()&&(e=De.fromRect(this.paddingBox.toRect(),this.visualStyle()),this.visual.append(e))},renderVisual:function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!Wt(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else hn.fn.renderVisual.call(this)},visualContext:function(t){var n=this,i={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return n._boxReflow=!0,n.reflow(t),n._boxReflow=!1,n.getDefaultVisual()}};return this.data&&e.extend(i,this.data),i},getDefaultVisual:function(){this.createVisual(),this.renderChildren();var e=this.visual;return delete this.visual,e},rotate:function(){var e=this.options;return this.box.rotate(e.rotation),this.align(this.targetBox,wt,e.align),this.align(this.targetBox,kt,e.vAlign),this.box},rotationTransform:function(){var e,t,n,i,o=this.options.rotation;return o?(e=this.normalBox.center(),t=e.x,n=e.y,i=this.rotatedBox.center(),Fe().translate(i.x-t,i.y-n).rotate(o,[t,n])):null}}),xn=un.extend({init:function(t){un.fn.init.call(this,t),this.append(new yn(this.options.text,e.extend({},this.options,{vAlign:this.options.position})))},reflow:function(e){un.fn.reflow.call(this,e),this.box.snapTo(e,wt)}}),xn.buildTitle=function(t,n,i){var o,r=t;return"string"==typeof t&&(r={text:t}),r=e.extend({visible:!0},i,r),r&&r.visible&&r.text&&(o=new xn(r),n.append(o)),o},k(xn,{color:Ve,position:mt,align:Ue,margin:p(5),padding:p(5)}),Cn=yn.extend({init:function(e,t,n,i,o){yn.fn.init.call(this,t,o),this.text=t,this.value=e,this.index=n,this.dataItem=i,this.reflow(new an)},visualContext:function(e){var t=yn.fn.visualContext.call(this,e);return t.value=this.value,t.dataItem=this.dataItem,t.format=this.options.format,t.culture=this.options.culture,t},click:function(e,t){e.trigger(Oe,{element:Gt(t),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},rotate:function(){var e,t;return this.options.alignRotation!==Ue?(e=this.normalBox.toRect(),t=this.rotationTransform(),this.box=R(e.bbox(t.matrix()))):yn.fn.rotate.call(this),this.box},rotationTransform:function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_=this.options,b=_.rotation;return b?_.alignRotation===Ue?yn.fn.rotationTransform.call(this):(e=Fe().rotate(b).matrix(),t=this.normalBox.toRect(),n=this.targetBox.toRect(),i=_.rotationOrigin||mt,o=i===mt||i===We?wt:kt,r=i===mt||i===We?kt:wt,a=i===mt||i===it?n.origin:n.bottomRight(),s=t.topLeft().transformCopy(e),l=t.topRight().transformCopy(e),d=t.bottomRight().transformCopy(e),c=t.bottomLeft().transformCopy(e),u=Me.fromPoints(s,l,d,c),h={},h[r]=n.origin[r]-u.origin[r],p=Math.abs(s[r]+h[r]-a[r]),f=Math.abs(l[r]+h[r]-a[r]),Zt(p,Qe)===Zt(f,Qe)?(m=s,g=l):f<p?(m=l,g=d):(m=s,g=c),v=m[o]+(g[o]-m[o])/2,h[o]=n.center()[o]-v,Fe().translate(h.x,h.y).rotate(b)):null}}),k(Cn,{_autoReflow:!1}),Sn=7,Tn="#fff",Dn=hn.extend({init:function(e,t,n){hn.fn.init.call(this,t),this.fields=e,this.chartService=n,this.render()},hide:function(){this.options.visible=!1},show:function(){this.options.visible=!0},render:function(){var e,t,n,i,o,r,a,s,l,d,c=this,u=this.options;u.visible&&(e=u.label,t=u.icon,n=new an,i=function(){return c},o=t.size,r=this.fields.text,Wt(e)&&e.visible&&(l=f(e),l?r=l(this.fields):e.format&&(r=this.chartService.format.auto(e.format,r)),e.color||(e.color=e.position===nt?Tn:t.background),this.label=new yn(r,Be({},e)),this.label.aliasFor=i,e.position!==nt||Wt(o)||(t.type===je?o=Math.max(this.label.box.width(),this.label.box.height()):(a=this.label.box.width(),s=this.label.box.height()),n.wrap(this.label.box))),t.width=a||o||Sn,t.height=s||o||Sn,d=new pn(Be({},t)),d.aliasFor=i,this.marker=d,this.append(d),this.label&&this.append(this.label),d.reflow(new an),this.wrapperBox=n.wrap(d.box))},reflow:function(e){var t,n,i,o=this,r=o.options,a=o.label,s=o.marker,l=o.wrapperBox,d=e.center(),c=r.line.length,u=r.position;r.visible&&(v(u,[it,ht])?u===it?(i=l.alignTo(e,u).translate(-c,e.center().y-l.center().y),r.line.visible&&(t=[e.x1,d.y],this.linePoints=[t,[i.x2,d.y]],n=i.clone().wrapPoint(t))):(i=l.alignTo(e,u).translate(c,e.center().y-l.center().y),r.line.visible&&(t=[e.x2,d.y],this.linePoints=[t,[i.x1,d.y]],n=i.clone().wrapPoint(t))):u===We?(i=l.alignTo(e,u).translate(e.center().x-l.center().x,c),r.line.visible&&(t=[d.x,e.y2],this.linePoints=[t,[d.x,i.y1]],n=i.clone().wrapPoint(t))):(i=l.alignTo(e,u).translate(e.center().x-l.center().x,-c),r.line.visible&&(t=[d.x,e.y1],this.linePoints=[t,[d.x,i.y2]],n=i.clone().wrapPoint(t))),s&&s.reflow(i),a&&(a.reflow(i),s&&(r.label.position===ut&&a.box.alignTo(s.box,u),a.reflow(a.box))),this.contentBox=i,this.targetBox=e,this.box=n||i)},createVisual:function(){hn.fn.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},renderVisual:function(){var t=this,n=this.options,i=n.visual;n.visible&&i?(this.visual=i(e.extend(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:n.background,border:n.background,icon:n.icon,label:n.label,line:n.line,position:n.position,visible:n.visible},createVisual:function(){t.createVisual(),t.renderChildren();var e=t.visual;return delete t.visual,e}})),this.addVisual()):hn.fn.renderVisual.call(this)},createLine:function(){var e,t=this.options.line;this.linePoints&&(e=De.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}}),o(e),this.visual.append(e))},click:function(e,t){var n=this.eventArgs(t);e.trigger(st,n)||t.preventDefault()},over:function(e,t){var n=this.eventArgs(t);e.trigger(lt,n)||t.preventDefault()},out:function(e,t){var n=this.eventArgs(t);e.trigger(dt,n)},eventArgs:function(t){var n=this.options;return e.extend(this.fields,{element:Gt(t),text:Wt(n.label)?n.label.text:"",visual:this.visual})}}),k(Dn,{icon:{visible:!0,type:je},label:{position:nt,visible:!0,align:Ue,vAlign:Ue},line:{visible:!0},visible:!0,position:mt,zIndex:2}),An=un.extend({init:function(e,t){void 0===t&&(t=new It),un.fn.init.call(this,e),this.chartService=t,this.options.visible||(this.options=Be({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=Be({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==at},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=Be({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==at},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()},initFields:function(){},labelsRange:function(){return{min:this.options.labels.skip,max:this.labelsCount()}},createLabels:function(){var e,t,n,i,o=this,r=this.options,a=r.vertical?ht:Ue,s=Be({},r.labels,{align:a,zIndex:r.zIndex}),l=Math.max(1,s.step);if(this.clearLabels(),s.visible)for(e=this.labelsRange(),t=s.rotation,d(t)&&(s.alignRotation=t.align,s.rotation=t.angle),"auto"===s.rotation&&(s.rotation=0,r.autoRotateLabels=!0),n=e.min;n<e.max;n+=l)i=o.createAxisLabel(n,s),i&&(o.append(i),o.labels.push(i))},clearLabels:function(){this.children=m(this.children,function(e){return!(e instanceof Cn)}),this.labels=[]},clearTitle:function(){var e=this;this.title&&(this.children=m(this.children,function(t){return t!==e.title}),this.title=void 0)},clear:function(){this.clearLabels(),this.clearTitle()},lineBox:function(){var e=this,t=e.options,n=e.box,i=t.vertical,o=t.labels.mirror,r=o?n.x1:n.x2,a=o?n.y2:n.y1,s=t.line.width||0;return i?new an(r,n.y1,r,n.y2-s):new an(n.x1,a,n.x2-s,a)},createTitle:function(){var e,t=this.options,n=Be({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);n.visible&&n.text&&(e=new yn(n.text,n),this.append(e),this.title=e)},createNotes:function(){var e,t,n,i=this,o=this.options,r=o.notes,a=r.data||[];for(this.notes=[],e=0;e<a.length;e++)t=Be({},r,a[e]),t.value=i.parseNoteValue(t.value),n=new Dn({value:t.value,text:t.label.text,dataItem:t},t,i.chartService),n.options.visible&&(Wt(n.options.position)?o.vertical&&!v(n.options.position,[it,ht])?n.options.position=o.reverse?it:ht:o.vertical||v(n.options.position,[mt,We])||(n.options.position=o.reverse?We:mt):n.options.position=o.vertical?o.reverse?it:ht:o.reverse?We:mt,i.append(n),i.notes.push(n))},parseNoteValue:function(e){return e},renderVisual:function(){un.fn.renderVisual.call(this),this.createPlotBands()},createVisual:function(){un.fn.createVisual.call(this),this.createBackground(),this.createLine()},gridLinesVisual:function(){var e=this._gridLines;return e||(e=this._gridLines=new Ae({zIndex:-2}),this.appendVisual(this._gridLines)),e},createTicks:function(e){function t(t,n,r){var s,l=t.length,d=Math.max(1,n.step);if(n.visible)for(s=n.skip;s<l;s+=d)Wt(r)&&s%r===0||(a.tickX=o?i.x2:i.x2-n.size,a.tickY=o?i.y1-n.size:i.y1,a.position=t[s],e.append(F(a,n)))}var n=this.options,i=this.lineBox(),o=n.labels.mirror,r=n.majorTicks.visible?n.majorUnit:0,a={vertical:n.vertical};t(this.getMajorTickPositions(),n.majorTicks),t(this.getMinorTickPositions(),n.minorTicks,r/n.minorUnit)},createLine:function(){var e,t,n=this.options,i=n.line,r=this.lineBox();i.width>0&&i.visible&&(e=new De({stroke:{width:i.width,color:i.color,dashType:i.dashType}}),e.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),n._alignLines&&o(e),t=this._lineGroup=new Ae,t.append(e),this.visual.append(t),this.createTicks(t))},getActualTickSize:function(){var e=this.options,t=0;return e.majorTicks.visible&&e.minorTicks.visible?t=Math.max(e.majorTicks.size,e.minorTicks.size):e.majorTicks.visible?t=e.majorTicks.size:e.minorTicks.visible&&(t=e.minorTicks.size),t},createBackground:function(){var e=this,t=e.options,n=e.box,i=t.background;i&&(this._backgroundPath=De.fromRect(n.toRect(),{fill:{color:i},stroke:null}),this.visual.append(this._backgroundPath))},createPlotBands:function(){var e,t,n,i,o,r,a,s,l,d,c=this,u=this.options,h=u.plotBands||[],p=u.vertical,f=this.plotArea;if(0!==h.length){for(e=this._plotbandGroup=new Ae({zIndex:-1}),t=m(this.pane.axes,function(e){return e.options.vertical!==c.options.vertical})[0],n=0;n<h.length;n++)i=h[n],o=void 0,r=void 0,a=i.label,s=void 0,p?(o=(t||f.axisX).lineBox(),r=c.getSlot(i.from,i.to,!0)):(o=c.getSlot(i.from,i.to,!0),r=(t||f.axisY).lineBox()),a&&(a.vAlign=a.position||it,s=c.createPlotBandLabel(a,i,new an(o.x1,r.y1,o.x2,r.y2))),0!==o.width()&&0!==r.height()&&(l=new Me([o.x1,r.y1],[o.width(),r.height()]),d=De.fromRect(l,{fill:{color:i.color,opacity:i.opacity},stroke:null}),e.append(d),s&&e.append(s));this.appendVisual(e)}},createPlotBandLabel:function(e,t,n){var i,o,r;return e.visible===!1?null:(i=e.text,Wt(e)&&e.visible&&(r=f(e),r?i=r({text:i,item:t}):e.format&&(i=this.chartService.format.auto(e.format,i)),e.color||(e.color=this.options.labels.color)),o=new yn(i,e),o.reflow(n),o.renderVisual(),o.visual)},createGridLines:function(e){function t(e,t,n){var i,o,r=e.length,a=Math.max(1,t.step);if(t.visible)for(i=t.skip;i<r;i+=a)o=Zt(e[i]),v(o,h)||i%n===0||s&&c===o||(u.position=o,p.append(P(u,t)),h.push(o))}var n=this.options,i=n.minorGridLines,o=n.majorGridLines,r=n.minorUnit,a=n.vertical,s=e.options.line.visible,l=o.visible?n.majorUnit:0,d=e.lineBox(),c=d[a?"y1":"x1"],u={lineStart:d[a?"x1":"y1"],lineEnd:d[a?"x2":"y2"],vertical:a},h=[],p=this.gridLinesVisual();return t(this.getMajorTickPositions(),o),t(this.getMinorTickPositions(),i,l/r),p.children},reflow:function(e){var t,n,i=this,o=i.options,r=i.labels,a=i.title,s=o.vertical,l=r.length,d=s?bt:et,c=a?a.box[d]():0,u=this.getActualTickSize()+o.margin+c,h=(this.getRoot()||{}).box||e,p=h[d](),f=0;for(t=0;t<l;t++)n=r[t].box[d](),n+u<=p&&(f=Math.max(f,n));this.box=s?new an(e.x1,e.y1,e.x1+f+u,e.y2):new an(e.x1,e.y1,e.x2,e.y1+f+u),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},getLabelsTickPositions:function(){return this.getMajorTickPositions()},labelTickIndex:function(e){return e.index},arrangeLabels:function(){var e,t,n,i,o,r,a,s,l,d,c,u=this,h=this,p=h.options,f=h.labels,m=this.labelsBetweenTicks(),g=p.vertical,v=this.lineBox(),_=p.labels.mirror,b=this.getLabelsTickPositions(),w=this.getActualTickSize()+p.margin;for(e=0;e<f.length;e++)t=f[e],n=u.labelTickIndex(t),i=g?t.box.height():t.box.width(),o=b[n]-i/2,r=void 0,a=void 0,s=void 0,g?(m&&(a=b[n],s=b[n+1],l=a+(s-a)/2,o=l-i/2),d=v.x2,_?(d+=w,t.options.rotationOrigin=it):(d-=w+t.box.width(),t.options.rotationOrigin=ht),r=t.box.move(d,o)):(m?(a=b[n],s=b[n+1]):(a=o,s=o+i),c=v.y1,_?(c-=w+t.box.height(),t.options.rotationOrigin=We):(c+=w,t.options.rotationOrigin=mt),r=new an(a,c,s,c+t.box.height())),t.reflow(r)},autoRotateLabels:function(){var e,t,n,i,o,r,a;if(this.options.autoRotateLabels&&!this.options.vertical){for(e=this.getMajorTickPositions(),t=this.labels,i=0;i<t.length;i++)if(o=Math.abs(e[i+1]-e[i]),r=t[i].box,r.width()>o){if(r.height()>o){n=-90;break}n=-45}if(n){for(a=0;a<t.length;a++)t[a].options.rotation=n,t[a].reflow(new an);return!0}}},arrangeTitle:function(){var e=this,t=e.options,n=e.title,i=t.labels.mirror,o=t.vertical;n&&(o?(n.options.align=i?ht:it,n.options.vAlign=n.options.position):(n.options.align=n.options.position,n.options.vAlign=i?mt:We),n.reflow(this.box))},arrangeNotes:function(){var e,t,n,i,o=this;for(e=0;e<this.notes.length;e++)t=o.notes[e],n=t.options.value,i=void 0,Wt(n)?(o.shouldRenderNote(n)?t.show():t.hide(),i=o.noteSlot(n)):t.hide(),t.reflow(i||o.lineBox())},noteSlot:function(e){return this.getSlot(e)},alignTo:function(e){var t=e.lineBox(),n=this.options.vertical,i=n?kt:wt;this.box.snapTo(t,i),n?this.box.shrink(0,this.lineBox().height()-t.height()):this.box.shrink(this.lineBox().width()-t.width(),0),this.box[i+1]-=this.lineBox()[i+1]-t[i+1],this.box[i+2]-=this.lineBox()[i+2]-t[i+2]},axisLabelText:function(e,t,n){var i=f(n),o=e;return i?o=i({value:e,dataItem:t,format:n.format,culture:n.culture}):n.format&&(o=this.chartService.format.localeAuto(n.format,[e],n.culture)),o},slot:function(e,t,n){var i=this.getSlot(e,t,n);if(i)return i.toRect()},contentBox:function(){var e,t,n,i=this.box.clone(),o=this.labels;return o.length&&(e=this.options.vertical?kt:wt,this.chartService.isPannable(e)?(t=this.maxLabelOffset(),i[e+1]-=t.start,i[e+2]+=t.end):(o[0].options.visible&&i.wrap(o[0].box),n=o[o.length-1],n.options.visible&&i.wrap(n.box))),i},maxLabelOffset:function(){var e,t,n,i,o,r=this,a=this.options,s=a.vertical,l=a.reverse,d=this.labelsBetweenTicks(),c=this.getLabelsTickPositions(),u=s?kt:wt,h=this.labels,p=l?1:0,f=l?0:1,m=0,g=0;for(e=0;e<h.length;e++)t=h[e],n=r.labelTickIndex(t),i=void 0,o=void 0,d?(i=c[n+p],o=c[n+f]):i=o=c[n],m=Math.max(m,i-t.box[u+1]),g=Math.max(g,t.box[u+2]-o);return{start:m,end:g}},limitRange:function(e,t,n,i,o){var r,a,s,l=this.options;return e<n&&o<0&&(!Wt(l.min)||l.min<=n)||i<t&&o>0&&(!Wt(l.max)||i<=l.max)?null:t<n&&o>0||i<e&&o<0?{min:e,max:t}:(r=t-e,a=e,s=t,e<n&&o<0?(a=Yt(e,n,i),s=Yt(e+r,n+r,i)):t>i&&o>0&&(s=Yt(t,n,i),a=Yt(t-r,n,i-r)),{min:a,max:s})},valueRange:function(){return{min:this.seriesMin,max:this.seriesMax}},labelsBetweenTicks:function(){return!this.options.justified},prepareUserOptions:function(){}}),k(An,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Ve,visible:!0},title:{visible:!0,position:Ue},majorTicks:{align:ut,size:4,skip:0,step:1},minorTicks:{align:ut,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:ut,minorTickType:at,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Ve,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1}),En="milliseconds",In="seconds",Mn="minutes",Rn="hours",Fn="days",Pn="weeks",zn="months",Bn="years",Ln=1,Hn=1e3,Nn=60*Hn,On=60*Nn,Vn=24*On,Wn=7*Vn,Un=31*Vn,jn=365*Vn,qn={years:jn,months:Un,weeks:Wn,days:Vn,hours:On,minutes:Nn,seconds:Hn,milliseconds:Ln},Gn=.01,$n=An.extend({initFields:function(){this._ticks={}},categoriesHash:function(){return""},clone:function(){var t=new $n(e.extend({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},initUserOptions:function(e){var t,n,i=e.categories||[],o=Wt(e.min),r=Wt(e.max);return e.srcCategories=e.categories=i,(o||r)&&i.length&&(t=o?Math.floor(e.min):0,n=r?e.justified?Math.floor(e.max)+1:Math.ceil(e.max):i.length,e.categories=e.categories.slice(t,n)),e},rangeIndices:function(){var e,t=this.options,n=t.categories.length||1,i=a(t.min)?t.min%1:0;return e=a(t.max)&&t.max%1!==0&&t.max<this.totalRange().max?n-(1-t.max%1):n-(t.justified?1:0),{min:i,max:e}},totalRangeIndices:function(e){var t,n,i=this.options,o=a(i.min)?i.min:0;return t=a(i.max)?i.max:a(i.min)?o+i.categories.length:this.totalRange().max||1,e&&(n=this.totalRange(),o=Yt(o,0,n.max),t=Yt(t,0,n.max)),{min:o,max:t}},range:function(){var e=this.options,t=a(e.min)?e.min:0,n=a(e.max)?e.max:this.totalRange().max;return{min:t,max:n}},roundedRange:function(){return this.range()},totalRange:function(){var e=this.options;return{min:0,max:Math.max(this._seriesMax||0,e.srcCategories.length)-(e.justified?1:0)}},scaleOptions:function(){var e=this.rangeIndices(),t=e.min,n=e.max,i=this.lineBox(),o=this.options.vertical?i.height():i.width(),r=o/(n-t||1);return{scale:r*(this.options.reverse?-1:1),box:i,min:t,max:n}},arrangeLabels:function(){An.fn.arrangeLabels.call(this),this.hideOutOfRangeLabels()},hideOutOfRangeLabels:function(){var e,t,n,i,o,r=this,a=r.box,s=r.labels;s.length&&(e=this.options.vertical?kt:wt,t=a[e+1],n=a[e+2],i=s[0],o=Kt(s),(i.box[e+1]>n||i.box[e+2]<t)&&(i.options.visible=!1),(o.box[e+1]>n||o.box[e+2]<t)&&(o.options.visible=!1))},getMajorTickPositions:function(){return this.getTicks().majorTicks},getMinorTickPositions:function(){return this.getTicks().minorTicks},getLabelsTickPositions:function(){return this.getTicks().labelTicks},tickIndices:function(e){for(var t=this.rangeIndices(),n=t.min,i=t.max,o=Math.ceil(i),r=Math.floor(n),a=[];r<=o;)a.push(r),r+=e;return a},getTickPositions:function(e){var t,n=this.options,i=n.vertical,o=n.reverse,r=this.scaleOptions(),a=r.scale,s=r.box,l=r.min,d=s[(i?kt:wt)+(o?2:1)],c=this.tickIndices(e),u=[];for(t=0;t<c.length;t++)u.push(d+Zt(a*(c[t]-l),qe));return u},getTicks:function(){var e,t=this.options,n=this._ticks,i=this.rangeIndices(),o=this.lineBox(),r=o.getHash()+i.min+","+i.max+t.reverse+t.justified;return n._hash!==r&&(e=t.minorTicks.visible||t.minorGridLines.visible,n._hash=r,n.labelTicks=this.getTickPositions(1),n.majorTicks=this.filterOutOfRangePositions(n.labelTicks,o),n.minorTicks=e?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]),n},filterOutOfRangePositions:function(e,t){var n,i,o,r,a;if(!e.length)return e;for(n=this.options.vertical?kt:wt,i=function(e){return t[n+1]<=e&&e<=t[n+2]},o=e.length-1,r=0;!i(e[r])&&r<=o;)r++;for(a=o;!i(e[a])&&a>=0;)a--;return e.slice(r,a+1)},getSlot:function(e,t,n){var i,o,r=this.options,a=r.reverse,s=r.justified,l=r.vertical,d=this.scaleOptions(),c=d.scale,u=d.box,h=d.min,p=l?kt:wt,f=u[p+(a?2:1)],m=u.clone(),g=!Wt(t),v=en(e,0),_=en(t,v);return _=Math.max(_-1,v),_=Math.max(v,_),i=f+(v-h)*c,o=f+(_+1-h)*c,g&&s&&(o=i),n&&(i=Yt(i,u[p+1],u[p+2]),o=Yt(o,u[p+1],u[p+2])),m[p+1]=a?o:i,m[p+2]=a?i:o,m},limitSlot:function(e){var t=this.options.vertical,n=t?kt:wt,i=this.lineBox(),o=e.clone();return o[n+1]=Yt(e[n+1],i[n+1],i[n+2]),o[n+2]=Yt(e[n+2],i[n+1],i[n+2]),o},slot:function(e,t,n){var i=Math.floor(this.options.min||0),o=e,r=t;return"string"==typeof o?o=this.categoryIndex(o):a(o)&&(o-=i),"string"==typeof r?r=this.categoryIndex(r):a(r)&&(r-=i),An.fn.slot.call(this,o,r,n)},pointCategoryIndex:function(e){var t,n,i=this.options,o=i.reverse,r=i.justified,a=i.vertical,s=a?kt:wt,l=this.scaleOptions(),d=l.scale,c=l.box,u=l.min,h=l.max,p=o?h:u,f=c[s+1],m=c[s+2],g=e[s];return g<f||g>m?null:(t=p+(g-f)/d,n=t%1,r?t=Math.round(t):0===n&&t>0&&t--,Math.floor(t))},getCategory:function(e){var t=this.pointCategoryIndex(e);return null===t?null:this.options.categories[t]},categoryIndex:function(e){return this.totalIndex(e)-Math.floor(this.options.min||0)},categoryAt:function(e,t){var n=this.options;return(t?n.srcCategories:n.categories)[e]},categoriesCount:function(){return(this.options.categories||[]).length},translateRange:function(e){var t=this.options,n=this.lineBox(),i=t.vertical?n.height():n.width(),o=t.categories.length,r=i/o,a=Zt(e/r,Qe);return{min:a,max:o+a}},zoomRange:function(e){var t=this.totalRangeIndices(),n=this.totalRange(),i=n.min,o=n.max,r=Yt(t.min+e,i,o),a=Yt(t.max-e,i,o);if(a-r>0)return{min:r,max:a}},scaleRange:function(e){var t=this.options.categories.length,n=e*t;return{min:-n,max:t+n}},labelsCount:function(){var e=this.labelsRange();return e.max-e.min},labelsRange:function(){var e,t=this.options,n=t.justified,i=t.labels,o=this.totalRangeIndices(!0),r=o.min,a=o.max,s=Math.floor(r);return n?(r=Math.ceil(r),a=Math.floor(a)):(r=Math.floor(r),a=Math.ceil(a)),e=r>i.skip?i.skip+i.step*Math.ceil((r-i.skip)/i.step):i.skip,{min:e-s,max:(t.categories.length?a+(n?1:0):0)-s}},createAxisLabel:function(e,t){var n=this.options,i=n.dataItems?n.dataItems[e]:null,o=en(n.categories[e],""),r=this.axisLabelText(o,i,t);return new Cn(o,r,e,i,t)},shouldRenderNote:function(e){var t=this.totalRangeIndices();return Math.floor(t.min)<=e&&e<=Math.ceil(t.max)},noteSlot:function(e){var t=this.options,n=e-Math.floor(t.min||0);return this.getSlot(n);
},arrangeNotes:function(){An.fn.arrangeNotes.call(this),this.hideOutOfRangeNotes()},hideOutOfRangeNotes:function(){var e,t,n,i,o,r=this,a=r.notes,s=r.box;if(a&&a.length)for(e=this.options.vertical?kt:wt,t=s[e+1],n=s[e+2],i=0;i<a.length;i++)o=a[i],o.box&&(n<o.box[e+1]||o.box[e+2]<t)&&o.hide()},pan:function(e){var t=this.totalRangeIndices(!0),n=this.scaleOptions(),i=n.scale,o=Zt(e/i,Qe),r=this.totalRange(),a=t.min+o,s=t.max+o;return this.limitRange(a,s,0,r.max,o)},pointsRange:function(e,t){var n=this.options,i=n.reverse,o=n.vertical,r=o?kt:wt,a=this.totalRangeIndices(!0),s=this.scaleOptions(),l=s.scale,d=s.box,c=d[r+(i?2:1)],u=e[r]-c,h=t[r]-c,p=a.min+u/l,f=a.min+h/l,m=Math.min(p,f),g=Math.max(p,f);if(g-m>=Gn)return{min:m,max:g}},valueRange:function(){return this.range()},totalIndex:function(e){var t=this.options,n=this._categoriesMap?this._categoriesMap.get(e):te(e,t.srcCategories);return n},currentRangeIndices:function(){var e,t=this.options,n=0;return a(t.min)&&(n=Math.floor(t.min)),e=a(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1,{min:n,max:e}},mapCategories:function(){var e,t,n;if(!this._categoriesMap)for(e=this._categoriesMap=new Bt,t=this.options.srcCategories,n=0;n<t.length;n++)e.set(t[n],n)},totalCount:function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)}}),k($n,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:Ve},labels:{zIndex:1},justified:!1,_deferLabels:!0}),Kn=3e5,Yn={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},Qn=.2,Xn="auto",Zn=[En,In,Mn,Rn,Fn,Pn,zn,Bn],Jn="fit",ei=Ee.extend({init:function(e){this.options=e},displayIndices:function(){return{min:0,max:1}},displayRange:function(){return{}},total:function(){return{}},valueRange:function(){return{}},valueIndex:function(){return-1},values:function(){return[]},totalIndex:function(){return-1},valuesCount:function(){return 0},totalCount:function(){return 0},dateAt:function(){return null}}),ti=Ee.extend({init:function(e,t,n){var i,o,r,a,s,l;this.options=n,n.baseUnitStep=n.baseUnitStep||1,i=n.roundToBaseUnit,o=n.justified,this.start=V(e,0,n.baseUnit,n.weekStartDay),r=this.roundToTotalStep(t),a=!o&&$(t,r)&&!n.justifyEnd,this.end=this.roundToTotalStep(t,!o,a?1:0),s=n.min||e,this.valueStart=this.roundToTotalStep(s),this.displayStart=i?this.valueStart:s,l=n.max,l?(this.valueEnd=this.roundToTotalStep(l,!1,!o&&$(l,this.roundToTotalStep(l))?-1:0),this.displayEnd=i?this.roundToTotalStep(l,!o):n.max):(this.valueEnd=r,this.displayEnd=i||a?this.end:t),this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))},displayRange:function(){return{min:this.displayStart,max:this.displayEnd}},displayIndices:function(){var e,t,n,i,o;return this._indices||(e=this.options,t=e.baseUnit,n=e.baseUnitStep,i=Y(this.displayStart,this.valueStart,t,n),o=Y(this.displayEnd,this.valueStart,t,n),this._indices={min:i,max:o}),this._indices},total:function(){return{min:this.start,max:this.end}},totalCount:function(){var e=this.totalIndex(this.end);return e+(this.options.justified?1:0)},valueRange:function(){return{min:this.valueStart,max:this.valueEnd}},valueIndex:function(e){var t=this.options;return Math.floor(Y(e,this.valueStart,t.baseUnit,t.baseUnitStep))},totalIndex:function(e){var t=this.options;return Math.floor(Y(e,this.start,t.baseUnit,t.baseUnitStep))},dateIndex:function(e){var t=this.options;return Y(e,this.valueStart,t.baseUnit,t.baseUnitStep)},valuesCount:function(){var e=this.valueIndex(this.valueEnd);return e+1},values:function(){var e,t,n,i=this._values;if(!i)for(e=this.options,t=this.valueRange(),this._values=i=[],n=t.min;n<=t.max;)i.push(n),n=V(n,e.baseUnitStep,e.baseUnit,e.weekStartDay);return i},dateAt:function(e,t){var n=this.options;return V(t?this.start:this.valueStart,n.baseUnitStep*e,n.baseUnit,n.weekStartDay)},roundToTotalStep:function(e,t,n){var i=this.options,o=i.baseUnit,r=i.baseUnitStep,a=i.weekStartDay,s=this.start,l=Y(e,s,o,r),d=t?Math.ceil(l):Math.floor(l);return n&&(d+=n),V(s,d*r,o,a)}}),ni=$n.extend({clone:function(){var t=new ni(e.extend({},this.options),this.chartService);return t.createLabels(),t},categoriesHash:function(){var e=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+e},initUserOptions:function(e){return e},initFields:function(){var t,n,i,o,r,a,s,l,d;$n.fn.initFields.call(this),t=this.chartService,n=t.intl,i=this.options,o=i.categories||[],o._parsed||(o=J(n,o),o._parsed=!0),i=Be({roundToBaseUnit:!0},i,{categories:o,min:Z(n,i.min),max:Z(n,i.max),weekStartDay:ee(i,n)}),t.panning&&t.isPannable(i.vertical?kt:wt)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=o,o.length>0?(r=ne(o),a=i.maxDivisions,this.dataRange=new ti(r.min,r.max,re(i)),a?(s=this.dataRange.displayRange(),l=e.extend({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),d=this.dataRange.options,ie(l,d.baseUnit,d.baseUnitStep),this.divisionRange=new ti(r.min,r.max,l)):this.divisionRange=this.dataRange):(i.baseUnit=i.baseUnit||Fn,this.dataRange=this.divisionRange=new ei(i))},tickIndices:function(e){var t,n,i,o,r,a=this,s=a.dataRange,l=a.divisionRange,d=l.valuesCount();if(!this.options.maxDivisions||!d)return $n.fn.tickIndices.call(this,e);for(t=[],n=l.values(),i=0,this.options.justified||(n=n.concat(l.dateAt(d)),i=.5),o=0;o<n.length;o++)t.push(s.dateIndex(n[o])+i),1!==e&&o>=1&&(r=t.length-1,t.splice(o,0,t[r-1]+(t[r]-t[r-1])*e));return t},shouldRenderNote:function(e){var t=this.range(),n=this.options.categories||[];return j(e,t.min)>=0&&j(e,t.max)<=0&&n.length},parseNoteValue:function(e){return Z(this.chartService.intl,e)},noteSlot:function(e){return this.getSlot(e)},translateRange:function(e){var t,n,i=this.options,o=i.baseUnit,r=i.weekStartDay,a=i.vertical,s=this.lineBox(),l=a?s.height():s.width(),d=this.range(),c=l/(d.max-d.min),u=Zt(e/c,Qe);return d.min&&d.max&&(t=B(i.min||d.min,u),n=B(i.max||d.max,u),d={min:V(t,0,o,r),max:V(n,0,o,r)}),d},scaleRange:function(e){var t,n,i=Math.abs(e),o=this.range(),r=o.min,a=o.max;if(r&&a){for(;i--;)t=q(r,a),n=Math.round(.1*t),e<0?(r=B(r,n),a=B(a,-n)):(r=B(r,-n),a=B(a,n));o={min:r,max:a}}return o},labelsRange:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},pan:function(e){var t,n,i,o,r,a,s,l,d,c,u,h;return this.isEmpty()?null:(t=this.options,n=this.lineBox(),i=t.vertical?n.height():n.width(),o=this.dataRange.displayRange(),r=o.min,a=o.max,s=this.dataRange.total(),l=i/(a-r),d=Zt(e/l,Qe)*(t.reverse?-1:1),c=B(r,d),u=B(a,d),h=this.limitRange(G(c),G(u),G(s.min),G(s.max),d),h?(h.min=L(h.min),h.max=L(h.max),h.baseUnit=t.baseUnit,h.baseUnitStep=t.baseUnitStep||1,h.userSetBaseUnit=t.userSetBaseUnit,h.userSetBaseUnitStep=t.userSetBaseUnitStep,h):void 0)},pointsRange:function(e,t){var n,i,o,r,a,s,l;return this.isEmpty()?null:(n=$n.fn.pointsRange.call(this,e,t),i=this.dataRange.displayRange(),o=this.dataRange.displayIndices(),r=q(i.max,i.min)/(o.max-o.min),a=this.options,s=B(i.min,n.min*r),l=B(i.min,n.max*r),{min:s,max:l,baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep})},zoomRange:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k;if(this.isEmpty())return null;if(t=this.options,n=t.userSetBaseUnit===Jn,i=this.dataRange.total(),o=this.dataRange.displayRange(),r=o.min,a=o.max,s=this.dataRange.options,l=s.weekStartDay,d=s.baseUnit,c=s.baseUnitStep,u=V(r,e*c,d,l),h=V(a,-e*c,d,l),n)if(p=t.autoBaseUnitSteps,f=t.maxDateGroups,m=Kt(p[d])*f*qn[d],g=q(a,r),v=q(h,u),_=Zn.indexOf(d),v<qn[d]&&d!==En)d=Zn[_-1],b=Kt(p[d]),w=(g-(f-1)*b*qn[d])/2,u=B(r,w),h=B(a,-w);else if(v>m&&d!==Bn){k=0;do{_++,d=Zn[_],k=0,w=2*qn[d];do b=p[d][k],k++;while(k<p[d].length&&w*b<g)}while(d!==Bn&&w*b<g);w=(w*b-g)/2,w>0&&(u=B(r,-w),h=B(a,w),u=B(u,Yt(h,i.min,i.max)-h),h=B(h,Yt(u,i.min,i.max)-u))}return u<i.min&&(u=i.min),h>i.max&&(h=i.max),u&&h&&q(h,u)>0?{min:u,max:h,baseUnit:t.userSetBaseUnit||t.baseUnit,baseUnitStep:t.userSetBaseUnitStep||t.baseUnitStep}:void 0},range:function(){return this.dataRange.displayRange()},createAxisLabel:function(e,t){var n,i=this.options,o=i.dataItems&&!i.maxDivisions?i.dataItems[e]:null,r=this.divisionRange.dateAt(e),a=t.dateFormats[this.divisionRange.options.baseUnit];if(t.format=t.format||a,n=this.axisLabelText(r,o,t))return new Cn(r,n,e,o,t)},categoryIndex:function(e){return this.dataRange.valueIndex(e)},slot:function(e,t,n){var i,o=this.dataRange,r=e,a=t;if(r instanceof Date&&(r=o.dateIndex(r)),a instanceof Date&&(a=o.dateIndex(a)),i=this.getSlot(r,a,n))return i.toRect()},getSlot:function(e,t,n){var i=e,o=t;return typeof i===ct&&(i=this.categoryIndex(i)),typeof o===ct&&(o=this.categoryIndex(o)),$n.fn.getSlot.call(this,i,o,n)},valueRange:function(){var e=this.options,t=ne(e.srcCategories);return{min:L(t.min),max:L(t.max)}},categoryAt:function(e,t){return this.dataRange.dateAt(e,t)},categoriesCount:function(){return this.dataRange.valuesCount()},rangeIndices:function(){return this.dataRange.displayIndices()},labelsBetweenTicks:function(){return!this.divisionRange.options.justified},prepareUserOptions:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},getCategory:function(e){var t=this.pointCategoryIndex(e);return null===t?null:this.dataRange.dateAt(t)},totalIndex:function(e){return this.dataRange.totalIndex(e)},currentRangeIndices:function(){var e=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(e.min),max:this.dataRange.totalIndex(e.max)}},totalRange:function(){return this.dataRange.total()},totalCount:function(){return this.dataRange.totalCount()},isEmpty:function(){return!this.options.srcCategories.length},roundedRange:function(){var t,n,i;return this.options.roundToBaseUnit!==!1||this.isEmpty()?this.range():(t=this.options,n=ne(t.srcCategories),i=new ti(n.min,n.max,e.extend({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})),i.displayRange())}}),k(ni,{type:$e,labels:{dateFormats:Yn},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10}),ii=Math.pow(10,-Qe+1),oi=An.extend({init:function(t,n,i,o){An.fn.init.call(this,e.extend({},i,{seriesMin:t,seriesMax:n}),o)},initUserOptions:function(e){var t=ue(e.seriesMin,e.seriesMax,e);return this.totalOptions=he(t,e),fe(t,e)},initFields:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},clone:function(){return new oi(this.seriesMin,this.seriesMax,e.extend({},this.options),this.chartService)},startValue:function(){return 0},range:function(){var e=this.options;return{min:e.min,max:e.max}},getDivisions:function(e){var t,n;return 0===e?1:(t=this.options,n=t.max-t.min,Math.floor(Zt(n/e,qe))+1)},getTickPositions:function(e,t){var n,i=this.options,o=i.vertical,r=i.reverse,a=this.lineBox(),s=o?a.height():a.width(),l=i.max-i.min,d=s/l,c=e*d,u=this.getDivisions(e),h=(o?-1:1)*(r?-1:1),p=1===h?1:2,f=[],m=a[(o?kt:wt)+p],g=0;for(t&&(g=t/e),n=0;n<u;n++)n%g!==0&&f.push(Zt(m,qe)),m+=c*h;return f},getMajorTickPositions:function(){return this.getTickPositions(this.options.majorUnit)},getMinorTickPositions:function(){return this.getTickPositions(this.options.minorUnit)},getSlot:function(e,t,n){var i,o,r,a,s,l,d,c,u,h,p,f,m,g;return void 0===n&&(n=!1),i=this.options,o=i.vertical,r=i.reverse,a=o?kt:wt,s=this.lineBox(),l=s[a+(r?2:1)],d=o?s.height():s.width(),c=r?-1:1,u=c*(d/(i.max-i.min)),h=new an(s.x1,s.y1,s.x1,s.y1),p=e,f=t,Wt(p)||(p=f||0),Wt(f)||(f=p||0),n&&(p=Math.max(Math.min(p,i.max),i.min),f=Math.max(Math.min(f,i.max),i.min)),o?(m=i.max-Math.max(p,f),g=i.max-Math.min(p,f)):(m=Math.min(p,f)-i.min,g=Math.max(p,f)-i.min),h[a+1]=ce(l+u*(r?g:m)),h[a+2]=ce(l+u*(r?m:g)),h},getValue:function(e){var t,n=this.options,i=n.vertical,o=n.reverse,r=+n.max,a=+n.min,s=i?kt:wt,l=this.lineBox(),d=l[s+(o?2:1)],c=i?l.height():l.width(),u=o?-1:1,h=u*(e[s]-d),p=(r-a)/c,f=h*p;return h<0||h>c?null:(t=i?r-f:a+f,Zt(t,Qe))},translateRange:function(e){var t=this.options,n=t.vertical,i=t.reverse,o=t.max,r=t.min,a=this.lineBox(),s=n?a.height():a.width(),l=o-r,d=s/l,c=Zt(e/d,Qe);return!n&&!i||n&&i||(c=-c),{min:r+c,max:o+c,offset:c}},scaleRange:function(e){var t=this.options,n=-e*t.majorUnit;return{min:t.min-n,max:t.max+n}},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(e,t){var n=this.options,i=Zt(n.min+e*n.majorUnit,Qe),o=this.axisLabelText(i,null,t);return new Cn(i,o,e,null,t)},shouldRenderNote:function(e){var t=this.range();return t.min<=e&&e<=t.max},pan:function(e){var t=this.translateRange(e);return this.limitRange(t.min,t.max,this.totalMin,this.totalMax,t.offset)},pointsRange:function(e,t){var n=this.getValue(e),i=this.getValue(t),o=Math.min(n,i),r=Math.max(n,i);if(this.isValidRange(o,r))return{min:o,max:r}},zoomRange:function(e){var t=this,n=t.totalMin,i=t.totalMax,o=this.scaleRange(e),r=Yt(o.min,n,i),a=Yt(o.max,n,i);if(this.isValidRange(r,a))return{min:r,max:a}},isValidRange:function(e,t){return t-e>ii}}),k(oi,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Ve},labels:{format:"#.####################"},zIndex:1}),ri=An.extend({init:function(e,t,n,i){var o,r=L(e),a=L(t),s=i.intl,l=n||{};l=Be(l||{},{min:Z(s,l.min),max:Z(s,l.max),axisCrossingValue:J(s,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:ee(l,s)}),l=ve(r,a,l),An.fn.init.call(this,l,i),this.intlService=s,this.seriesMin=r,this.seriesMax=a,o=l.weekStartDay||0,this.totalMin=G(W(G(r)-1,l.baseUnit,o)),this.totalMax=G(U(G(a)+1,l.baseUnit,o))},clone:function(){return new ri(this.seriesMin,this.seriesMax,e.extend({},this.options),this.chartService)},range:function(){var e=this.options;return{min:e.min,max:e.max}},getDivisions:function(e){var t=this.options;return Math.floor(Q(t.min,t.max,t.baseUnit)/e+1)},getTickPositions:function(e){var t,n,i,o=this.options,r=o.vertical,a=this.lineBox(),s=(r?-1:1)*(o.reverse?-1:1),l=1===s?1:2,d=a[(r?kt:wt)+l],c=this.getDivisions(e),u=q(o.max,o.min),h=r?a.height():a.width(),p=h/u,f=o.weekStartDay||0,m=[d];for(t=1;t<c;t++)n=V(o.min,t*e,o.baseUnit,f),i=d+q(n,o.min)*p*s,m.push(Zt(i,qe));return m},getMajorTickPositions:function(){return this.getTickPositions(this.options.majorUnit)},getMinorTickPositions:function(){return this.getTickPositions(this.options.minorUnit)},getSlot:function(e,t,n){return oi.prototype.getSlot.call(this,Z(this.intlService,e),Z(this.intlService,t),n)},getValue:function(e){var t=oi.prototype.getValue.call(this,e);return null!==t?L(t):null},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(e,t){var n,i,o=this.options,r=e*o.majorUnit,a=o.weekStartDay||0,s=o.min;return r>0&&(s=V(s,r,o.baseUnit,a)),n=t.dateFormats[o.baseUnit],t.format=t.format||n,i=this.axisLabelText(s,null,t),new Cn(s,i,e,null,t)},translateRange:function(e,t){var n=this.options,i=n.baseUnit,o=n.weekStartDay||0,r=this.lineBox(),a=n.vertical?r.height():r.width(),s=this.range(),l=a/q(s.max,s.min),d=Zt(e/l,Qe)*(n.reverse?-1:1),c=B(n.min,d),u=B(n.max,d);return t||(c=V(c,0,i,o),u=V(u,0,i,o)),{min:c,max:u,offset:d}},scaleRange:function(e){for(var t,n,i=this.options,o=i.min,r=i.max,a=Math.abs(e);a--;)t=q(o,r),n=Math.round(.1*t),e<0?(o=B(o,n),r=B(r,-n)):(o=B(o,-n),r=B(r,n));return{min:o,max:r}},shouldRenderNote:function(e){var t=this.range();return j(e,t.min)>=0&&j(e,t.max)<=0},pan:function(e){var t=this.translateRange(e,!0),n=this.limitRange(G(t.min),G(t.max),this.totalMin,this.totalMax,t.offset);if(n)return{min:L(n.min),max:L(n.max)}},pointsRange:function(e,t){var n=this.getValue(e),i=this.getValue(t),o=Math.min(n,i),r=Math.max(n,i);return{min:L(o),max:L(r)}},zoomRange:function(e){var t=this.scaleRange(e),n=L(Yt(G(t.min),this.totalMin,this.totalMax)),i=L(Yt(G(t.max),this.totalMin,this.totalMax));return{min:n,max:i}}}),k(ri,{type:$e,majorGridLines:{visible:!0,width:1,color:Ve},labels:{dateFormats:Yn}}),ai=10,si=An.extend({init:function(e,t,n,i){var o=Be({majorUnit:ai,min:e,max:t},n),r=o.majorUnit,a=we(t,r),s=be(e,t,o),l=_e(s,a,o,n);o.max=l.max,o.min=l.min,o.minorUnit=n.minorUnit||Zt(r-1,Qe),An.fn.init.call(this,o,i),this.totalMin=Wt(n.min)?Math.min(s,n.min):s,this.totalMax=Wt(n.max)?Math.max(a,n.max):a,this.logMin=Zt(ye(l.min,r),Qe),this.logMax=Zt(ye(l.max,r),Qe),this.seriesMin=e,this.seriesMax=t,this.createLabels()},clone:function(){return new si(this.seriesMin,this.seriesMax,e.extend({},this.options),this.chartService)},startValue:function(){return this.options.min},getSlot:function(e,t,n){var i,o,r=this,a=r.options,s=r.logMin,l=r.logMax,d=a.reverse,c=a.vertical,u=a.majorUnit,h=c?kt:wt,p=this.lineBox(),f=p[h+(d?2:1)],m=c?p.height():p.width(),g=d?-1:1,v=g*(m/(l-s)),_=new an(p.x1,p.y1,p.x1,p.y1),b=e,w=t;return Wt(b)||(b=w||1),Wt(w)||(w=b||1),b<=0||w<=0?null:(n&&(b=Math.max(Math.min(b,a.max),a.min),w=Math.max(Math.min(w,a.max),a.min)),b=ye(b,u),w=ye(w,u),c?(i=l-Math.max(b,w),o=l-Math.min(b,w)):(i=Math.min(b,w)-s,o=Math.max(b,w)-s),_[h+1]=ce(f+v*(d?o:i)),_[h+2]=ce(f+v*(d?i:o)),_)},getValue:function(e){var t,n=this,i=n.options,o=n.logMin,r=n.logMax,a=i.reverse,s=i.vertical,l=i.majorUnit,d=this.lineBox(),c=s===a?1:-1,u=1===c?1:2,h=s?d.height():d.width(),p=(r-o)/h,f=s?kt:wt,m=d[f+u],g=c*(e[f]-m),v=g*p;return g<0||g>h?null:(t=o+v,Zt(Math.pow(l,t),Qe))},range:function(){var e=this.options;return{min:e.min,max:e.max}},scaleRange:function(e){var t=this.options.majorUnit,n=-e;return{min:Math.pow(t,this.logMin-n),max:Math.pow(t,this.logMax+n)}},translateRange:function(e){var t=this,n=t.options,i=t.logMin,o=t.logMax,r=n.reverse,a=n.vertical,s=n.majorUnit,l=this.lineBox(),d=a?l.height():l.width(),c=d/(o-i),u=Zt(e/c,Qe);return!a&&!r||a&&r||(u=-u),{min:Math.pow(s,i+u),max:Math.pow(s,o+u),offset:u}},labelsCount:function(){var e=Math.floor(this.logMax),t=Math.floor(e-this.logMin)+1;return t},getMajorTickPositions:function(){var e=[];return this.traverseMajorTicksPositions(function(t){e.push(t)},{step:1,skip:0}),e},createTicks:function(e){function t(t,n){d.tickX=a?s.x2:s.x2-n.size,d.tickY=a?s.y1-n.size:s.y1,d.position=t,e.append(F(d,n))}var n=this.options,i=n.majorTicks,o=n.minorTicks,r=n.vertical,a=n.labels.mirror,s=this.lineBox(),l=[],d={vertical:r};return i.visible&&this.traverseMajorTicksPositions(t,i),o.visible&&this.traverseMinorTicksPositions(t,o),l},createGridLines:function(e){function t(e,t){v(e,l)||(s.position=e,d.append(P(s,t)),l.push(e))}var n=this.options,i=n.minorGridLines,o=n.majorGridLines,r=n.vertical,a=e.lineBox(),s={lineStart:a[r?"x1":"y1"],lineEnd:a[r?"x2":"y2"],vertical:r},l=[],d=this.gridLinesVisual();return o.visible&&this.traverseMajorTicksPositions(t,o),i.visible&&this.traverseMinorTicksPositions(t,i),d.children},traverseMajorTicksPositions:function(e,t){var n,i,o=this._lineOptions(),r=o.lineStart,a=o.step,s=this,l=s.logMin,d=s.logMax;for(n=Math.ceil(l)+t.skip;n<=d;n+=t.step)i=Zt(r+a*(n-l),Qe),e(i,t)},traverseMinorTicksPositions:function(e,t){var n,i,o,r,a,s=this,l=this.options,d=l.min,c=l.max,u=l.minorUnit,h=l.majorUnit,p=this._lineOptions(),f=p.lineStart,m=p.step,g=this,v=g.logMin,_=g.logMax,b=Math.floor(v);for(n=b;n<_;n++)for(i=s._minorIntervalOptions(n),o=t.skip;o<u&&(r=i.value+o*i.minorStep,!(r>c));o+=t.step)r>=d&&(a=Zt(f+m*(ye(r,h)-v),Qe),e(a,t))},createAxisLabel:function(e,t){var n=Math.ceil(this.logMin+e),i=Math.pow(this.options.majorUnit,n),o=this.axisLabelText(i,null,t);return new Cn(i,o,e,null,t)},shouldRenderNote:function(e){var t=this.range();return t.min<=e&&e<=t.max},pan:function(e){var t=this.translateRange(e);return this.limitRange(t.min,t.max,this.totalMin,this.totalMax,t.offset)},pointsRange:function(e,t){var n=this.getValue(e),i=this.getValue(t),o=Math.min(n,i),r=Math.max(n,i);return{min:o,max:r}},zoomRange:function(e){var t=this,n=t.options,i=t.totalMin,o=t.totalMax,r=this.scaleRange(e),a=Yt(r.min,i,o),s=Yt(r.max,i,o),l=n.majorUnit,d=s>a&&n.min&&n.max&&Zt(ye(n.max,l)-ye(n.min,l),Qe)<1,c=!(n.min===i&&n.max===o)&&Zt(ye(s,l)-ye(a,l),Qe)>=1;if(d||c)return{min:a,max:s}},_minorIntervalOptions:function(e){var t=this.options,n=t.minorUnit,i=t.majorUnit,o=Math.pow(i,e),r=Math.pow(i,e+1),a=r-o,s=a/n;return{value:o,minorStep:s}},_lineOptions:function(){var e=this.options,t=e.reverse,n=e.vertical,i=n?kt:wt,o=this.lineBox(),r=n===t?1:-1,a=1===r?1:2,s=n?o.height():o.width(),l=r*(s/(this.logMax-this.logMin)),d=o[i+a];return{step:l,lineStart:d,lineBox:o}}}),k(si,{type:"log",majorUnit:ai,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Ve},zIndex:1,_deferLabels:!0}),li={createGridLines:function(e){var t,n,i=this.options,o=Math.abs(this.box.center().y-e.lineBox().y1),r=[],a=!1;return i.majorGridLines.visible&&(t=this.majorGridLineAngles(e),a=!0,r=this.renderMajorGridLines(t,o,i.majorGridLines)),i.minorGridLines.visible&&(n=this.minorGridLineAngles(e,a),Ot(r,this.renderMinorGridLines(n,o,i.minorGridLines,e,a))),r},renderMajorGridLines:function(e,t,n){return this.renderGridLines(e,t,n)},renderMinorGridLines:function(e,t,n,i,o){var r=this.radiusCallback&&this.radiusCallback(t,i,o);return this.renderGridLines(e,t,n,r)},renderGridLines:function(e,t,n,i){var o,r,a={stroke:{width:n.width,color:n.color,dashType:n.dashType}},s=this.box.center(),l=new Re([s.x,s.y],t),d=this.gridLinesVisual();for(o=0;o<e.length;o++)r=new De(a),i&&(l.radius=i(e[o])),r.moveTo(l.center).lineTo(l.pointAt(e[o]+180)),d.append(r);return d.children},gridLineAngles:function(e,t,n,i,o){var r=this,a=this.intervals(t,n,i,o),s=e.options,l=s.visible&&(s.line||{}).visible!==!1;return b(a,function(e){var t=r.intervalAngle(e);if(!l||90!==t)return t})}},di=$n.extend({range:function(){return{min:0,max:this.options.categories.length}},reflow:function(e){this.box=e,this.reflowLabels()},lineBox:function(){return this.box},reflowLabels:function(){var e,t,n=this,i=this,o=i.labels,r=i.options.labels,a=r.skip||0,s=r.step||1,l=new an;for(e=0;e<o.length;e++)o[e].reflow(l),t=o[e].box,o[e].reflow(n.getSlot(a+e*s).adjacentBox(0,t.width(),t.height()))},intervals:function(e,t,n,i){var o,r,a,s,l,d,c,u,h;for(void 0===i&&(i=!1),o=this.options,r=o.categories.length,a=r/e||1,s=360/a,l=t||0,d=n||1,c=[],u=0,h=l;h<a;h+=d)u=o.reverse?360-h*s:h*s,u=Zt(u,qe)%360,i&&v(u,i)||c.push(u);return c},majorIntervals:function(){return this.intervals(1)},minorIntervals:function(){return this.intervals(.5)},intervalAngle:function(e){return(360+e+this.options.startAngle)%360},majorAngles:function(){var e=this;return b(this.majorIntervals(),function(t){return e.intervalAngle(t)})},createLine:function(){return[]},majorGridLineAngles:function(e){var t=this.options.majorGridLines;return this.gridLineAngles(e,1,t.skip,t.step)},minorGridLineAngles:function(e,t){var n=this.options,i=n.minorGridLines,o=n.majorGridLines,r=t?this.intervals(1,o.skip,o.step):null;return this.gridLineAngles(e,.5,i.skip,i.step,r)},radiusCallback:function(e,t,n){var i,o,r,a;if(t.options.type!==Ne)return i=Xt(360/(2*this.options.categories.length)),o=Math.cos(i)*e,r=this.majorAngles(),a=function(t){return!n&&v(t,r)?e:o}},createPlotBands:function(){var e,t,n,i,o,r,a,s=this,l=this.options.plotBands||[],d=this._plotbandGroup=new Ae({zIndex:-1});for(e=0;e<l.length;e++)t=l[e],n=s.plotBandSlot(t),i=s.getSlot(t.from),o=t.from-Math.floor(t.from),n.startAngle+=o*i.angle,r=Math.ceil(t.to)-t.to,n.angle-=(r+o)*i.angle,a=cn.current.createRing(n,{fill:{color:t.color,opacity:t.opacity},stroke:{opacity:t.opacity}}),d.append(a);this.appendVisual(d)},plotBandSlot:function(e){return this.getSlot(e.from,e.to-1)},getSlot:function(e,t){var n,i,o,r,a=this.options,s=a.justified,l=this.box,d=this.majorAngles(),c=d.length,u=360/c,h=e;return a.reverse&&!s&&(h=(h+1)%c),h=Yt(Math.floor(h),0,c-1),n=d[h],s&&(n-=u/2,n<0&&(n+=360)),i=Yt(Math.ceil(t||h),h,c-1),o=i-h+1,r=u*o,new sn(l.center(),0,l.height()/2,n,r)},slot:function(e,t){var n=this.getSlot(e,t),i=n.startAngle+180,o=i+n.angle;return new Ie.Arc([n.center.x,n.center.y],{startAngle:i,endAngle:o,radiusX:n.radius,radiusY:n.radius})},pointCategoryIndex:function(e){var t,n,i=this,o=this.options.categories.length,r=null;for(t=0;t<o;t++)if(n=i.getSlot(t),n.containsPoint(e)){r=t;break}return r}}),k(di,{startAngle:90,labels:{margin:p(10)},majorGridLines:{visible:!0},justified:!0}),Be(di.prototype,li),ci=An.extend({init:function(e,t){An.fn.init.call(this,e,t);var n=this.options;n.minorUnit=n.minorUnit||n.majorUnit/2},getDivisions:function(e){return oi.prototype.getDivisions.call(this,e)-1},reflow:function(e){this.box=e,this.reflowLabels()},reflowLabels:function(){var e,t,n=this,i=this,o=i.options,r=i.labels,a=i.options.labels,s=a.skip||0,l=a.step||1,d=new an,c=this.intervals(o.majorUnit,s,l);for(e=0;e<r.length;e++)r[e].reflow(d),t=r[e].box,r[e].reflow(n.getSlot(c[e]).adjacentBox(0,t.width(),t.height()))},lineBox:function(){return this.box},intervals:function(e,t,n,i){var o,r,a,s,l,d,c;for(void 0===i&&(i=!1),o=this.options.min,r=this.getDivisions(e),a=[],s=t||0,l=n||1,d=s;d<r;d+=l)c=(360+o+d*e)%360,i&&v(c,i)||a.push(c);return a},majorIntervals:function(){return this.intervals(this.options.majorUnit)},minorIntervals:function(){return this.intervals(this.options.minorUnit)},intervalAngle:function(e){return(540-e-this.options.startAngle)%360},createLine:function(){return[]},majorGridLineAngles:function(e){var t=this.options.majorGridLines;return this.gridLineAngles(e,this.options.majorUnit,t.skip,t.step)},minorGridLineAngles:function(e,t){var n=this.options,i=n.minorGridLines,o=n.majorGridLines,r=t?this.intervals(n.majorUnit,o.skip,o.step):null;return this.gridLineAngles(e,n.minorUnit,i.skip,i.step,r)},plotBandSlot:function(e){return this.getSlot(e.from,e.to)},getSlot:function(e,t){var n,i=this,o=i.options,r=i.box,a=o.startAngle,s=Yt(e,o.min,o.max),l=Yt(t||s,s,o.max);return o.reverse&&(s*=-1,l*=-1),s=(540-s-a)%360,l=(540-l-a)%360,l<s&&(n=s,s=l,l=n),new sn(r.center(),0,r.height()/2,s,l-s)},slot:function(e,t){var n,i,o,r,a,s,l;return void 0===t&&(t=e),n=this.options,i=360-n.startAngle,o=this.getSlot(e,t),r=Math.min(e,t),a=Math.max(e,t),n.reverse?(s=r,l=a):(s=360-a,l=360-r),s=(s+i)%360,l=(l+i)%360,new Ie.Arc([o.center.x,o.center.y],{startAngle:s,endAngle:l,radiusX:o.radius,radiusY:o.radius})},getValue:function(e){var t=this.options,n=this.box.center(),i=e.x-n.x,o=e.y-n.y,r=Math.round(Ut(Math.atan2(o,i))),a=t.startAngle;return t.reverse||(r*=-1,a*=-1),(r+a+360)%360},valueRange:function(){return{min:0,max:2*Math.PI}}}),k(ci,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:p(10)},majorGridLines:{color:Ve,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),Be(ci.prototype,li,{createPlotBands:di.prototype.createPlotBands,majorAngles:di.prototype.majorAngles,range:oi.prototype.range,labelsCount:oi.prototype.labelsCount,createAxisLabel:oi.prototype.createAxisLabel}),ui={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var e,t,n,i,o,r,a,s,l,d,c=this,u=this.options,h=u.majorGridLines.type,p=u.plotBands;for(void 0===p&&(p=[]),e=this.plotArea.polarAxis,t=e.majorAngles(),n=e.box.center(),i=this._plotbandGroup=new Ae({zIndex:-1}),o=0;o<p.length;o++)r=p[o],a={fill:{color:r.color,opacity:r.opacity},stroke:{opacity:r.opacity}},s=c.getSlot(r.from,r.to,!0),l=new sn(n,n.y-s.y2,n.y-s.y1,0,360),d=void 0,d=h===Ne?cn.current.createRing(l,a):De.fromPoints(c.plotBandPoints(l,t),a).close(),i.append(d);this.appendVisual(i)},plotBandPoints:function(e,t){var n,i=[],o=[],r=[e.center.x,e.center.y],a=new Re(r,e.innerRadius),s=new Re(r,e.radius);for(n=0;n<t.length;n++)i.push(a.pointAt(t[n]+180)),o.push(s.pointAt(t[n]+180));return i.reverse(),i.push(i[0]),o.push(o[0]),o.concat(i)},createGridLines:function(e){var t,n=this.options,i=this.radarMajorGridLinePositions(),o=e.majorAngles(),r=e.box.center(),a=[];return n.majorGridLines.visible&&(a=this.renderGridLines(r,i,o,n.majorGridLines)),n.minorGridLines.visible&&(t=this.radarMinorGridLinePositions(),Ot(a,this.renderGridLines(r,t,o,n.minorGridLines))),a},renderGridLines:function(e,t,n,i){var o,r,a,s,l,d,c,u={stroke:{width:i.width,color:i.color,dashType:i.dashType}},h=i.skip;for(void 0===h&&(h=0),o=i.step,void 0===o&&(o=0),r=this.gridLinesVisual(),a=h;a<t.length;a+=o)if(s=e.y-t[a],s>0)if(l=new Re([e.x,e.y],s),i.type===Ne)r.append(new Se.Circle(l,u));else{for(d=new De(u),c=0;c<n.length;c++)d.lineTo(l.pointAt(n[c]+180));d.close(),r.append(d)}return r.children},getValue:function(e){var t,n,i,o,r,a,s,l=this.lineBox(),d=this.plotArea.polarAxis,c=d.majorAngles(),u=d.box.center(),h=e.distanceTo(u),p=h;return this.options.majorGridLines.type!==Ne&&c.length>1&&(t=e.x-u.x,n=e.y-u.y,i=(Ut(Math.atan2(n,t))+540)%360,c.sort(function(e,t){return xe(e,i)-xe(t,i)}),o=xe(c[0],c[1])/2,r=xe(i,c[0]),a=90-o,s=180-r-a,p=h*(Math.sin(Xt(s))/Math.sin(Xt(a)))),this.axisType().prototype.getValue.call(this,new rn(l.x1,l.y2-p))}},hi=oi.extend({radarMajorGridLinePositions:function(){return this.getTickPositions(this.options.majorUnit)},radarMinorGridLinePositions:function(){var e=this.options,t=0;return e.majorGridLines.visible&&(t=e.majorUnit),this.getTickPositions(e.minorUnit,t)},axisType:function(){return oi}}),Be(hi.prototype,ui),pi=si.extend({radarMajorGridLinePositions:function(){var e=[];return this.traverseMajorTicksPositions(function(t){e.push(t)},this.options.majorGridLines),e},radarMinorGridLinePositions:function(){var e=[];return this.traverseMinorTicksPositions(function(t){e.push(t)},this.options.minorGridLines),e},axisType:function(){return si}}),Be(pi.prototype,ui),fi=.333,mi=.01,gi=Ee.extend({init:function(e){this.closed=e},process:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m=this,g=e.slice(0),v=[],_=this.closed,b=g.length;if(b>2&&(this.removeDuplicates(0,g),b=g.length),b<2||2===b&&g[0].equals(g[1]))return v;for(t=g[0],n=g[1],i=g[2],v.push(new Pe(t));t.equals(g[b-1]);)_=!0,g.pop(),b--;if(2===b)return o=this.tangent(t,n,wt,kt),Kt(v).controlOut(this.firstControlPoint(o,t,n,wt,kt)),v.push(new Pe(n,this.secondControlPoint(o,t,n,wt,kt))),v;for(_?(t=g[b-1],n=g[0],i=g[1],s=this.controlPoints(t,n,i),r=s[1],a=s[0]):(l=this.tangent(t,n,wt,kt),r=this.firstControlPoint(l,t,n,wt,kt)),d=r,c=0;c<=b-3;c++)m.removeDuplicates(c,g),b=g.length,c+3<=b&&(t=g[c],n=g[c+1],i=g[c+2],u=m.controlPoints(t,n,i),Kt(v).controlOut(d),d=u[1],h=u[0],v.push(new Pe(n,h)));return _?(t=g[b-2],n=g[b-1],i=g[0],p=this.controlPoints(t,n,i),Kt(v).controlOut(d),v.push(new Pe(n,p[0])),Kt(v).controlOut(p[1]),v.push(new Pe(i,a))):(f=this.tangent(n,i,wt,kt),Kt(v).controlOut(d),v.push(new Pe(i,this.secondControlPoint(f,n,i,wt,kt)))),v},removeDuplicates:function(e,t){for(;t[e+1]&&(t[e].equals(t[e+1])||t[e+1].equals(t[e+2]));)t.splice(e+1,1)},invertAxis:function(e,t,n){var i,o,r=!1;return e.x===t.x?r=!0:t.x===n.x?(t.y<n.y&&e.y<=t.y||n.y<t.y&&t.y<=e.y)&&(r=!0):(i=this.lineFunction(e,t),o=this.calculateFunction(i,n.x),e.y<=t.y&&n.y<=o||t.y<=e.y&&n.y>=o||(r=!0)),r},isLine:function(e,t,n){var i=this.lineFunction(e,t),o=this.calculateFunction(i,n.x);return e.x===t.x&&t.x===n.x||Zt(o,1)===Zt(n.y,1)},lineFunction:function(e,t){var n=(t.y-e.y)/(t.x-e.x),i=e.y-n*e.x;return[i,n]},controlPoints:function(e,t,n){var i,o,r,a,s,l,d=wt,c=kt,u=!1,h=!1;return this.isLine(e,t,n)?i=this.tangent(e,t,wt,kt):(o={x:this.isMonotonicByField(e,t,n,wt),y:this.isMonotonicByField(e,t,n,kt)},o.x&&o.y?(i=this.tangent(e,n,wt,kt),u=!0):(this.invertAxis(e,t,n)&&(d=kt,c=wt),o[d]?i=0:(r=n[c]<e[c]&&e[c]<=t[c]||e[c]<n[c]&&t[c]<=e[c]?Ce((n[c]-e[c])*(t[d]-e[d])):-Ce((n[d]-e[d])*(t[c]-e[c])),i=mi*r,h=!0))),a=this.secondControlPoint(i,e,t,d,c),h&&(s=d,d=c,c=s),l=this.firstControlPoint(i,t,n,d,c),u&&(this.restrictControlPoint(e,t,a,i),this.restrictControlPoint(t,n,l,i)),[a,l]},restrictControlPoint:function(e,t,n,i){
e.y<t.y?t.y<n.y?(n.x=e.x+(t.y-e.y)/i,n.y=t.y):n.y<e.y&&(n.x=t.x-(t.y-e.y)/i,n.y=e.y):n.y<t.y?(n.x=e.x-(e.y-t.y)/i,n.y=t.y):e.y<n.y&&(n.x=t.x+(e.y-t.y)/i,n.y=e.y)},tangent:function(e,t,n,i){var o,r=t[n]-e[n],a=t[i]-e[i];return o=0===r?0:a/r},isMonotonicByField:function(e,t,n,i){return n[i]>t[i]&&t[i]>e[i]||n[i]<t[i]&&t[i]<e[i]},firstControlPoint:function(e,t,n,i,o){var r=t[i],a=n[i],s=(a-r)*fi;return this.point(r+s,t[o]+s*e,i,o)},secondControlPoint:function(e,t,n,i,o){var r=t[i],a=n[i],s=(a-r)*fi;return this.point(a-s,n[o]-s*e,i,o)},point:function(e,t,n,i){var o=new Ie.Point;return o[n]=e,o[i]=t,o},calculateFunction:function(e,t){var n,i=e.length,o=0;for(n=0;n<i;n++)o+=Math.pow(t,n)*e[n];return o}}),ze.Gradients=gn,kendo.deepExtend(kendo.dataviz,{constants:yt,services:zt,autoMajorUnit:D,Point:rn,Box:an,Ring:sn,Sector:ln,ShapeBuilder:cn,ShapeElement:pn,ChartElement:un,BoxElement:hn,RootElement:vn,FloatElement:_n,Text:wn,TextBox:yn,Title:xn,AxisLabel:Cn,Axis:An,Note:Dn,CategoryAxis:$n,DateCategoryAxis:ni,DateValueAxis:ri,NumericAxis:oi,LogarithmicAxis:si,PolarAxis:ci,RadarCategoryAxis:di,RadarNumericAxis:hi,RadarLogarithmicAxis:pi,CurveProcessor:gi,rectToBox:R,addClass:n,removeClass:i,alignPathToPixel:o,clockwise:r,convertableToNumber:l,deepExtend:Be,elementStyles:h,getSpacing:p,getTemplate:f,getter:He,grep:m,hasClasses:g,HashMap:Bt,inArray:v,interpolateValue:_,InstanceObserver:Ht,isArray:t,isFunction:Le,isNumber:a,isObject:d,isString:s,map:b,mousewheelDelta:w,FontLoader:tn,setDefaultOptions:k,sparseArrayLimits:y,styleValue:c,find:x,elementScale:T,append:Ot,bindEvents:Vt,Class:Ee,defined:Wt,deg:Ut,elementOffset:jt,elementSize:qt,eventElement:Gt,eventCoordinates:$t,last:Kt,limitValue:Yt,logToConsole:kendo.logToConsole,objectKey:Qt,rad:Xt,round:Zt,unbindEvents:Jt,valueOrDefault:en,absoluteDateDiff:z,addDuration:V,addTicks:B,ceilDate:U,dateComparer:j,dateDiff:q,dateEquals:$,dateIndex:Y,duration:Q,floorDate:W,lteDateIndex:X,startOfWeek:H,toDate:L,parseDate:Z,parseDates:J,toTime:G,firstDay:ee})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/core/core.min",["dataviz/core/kendo-core.min"],e)}(function(){!function(e){var t=kendo.dataviz,n=t.services,i=kendo.drawing;t.SASS_THEMES=["sass","default-v2","bootstrap-v4","material-v2"],t.ExportMixin={extend:function(e,t){if(!e.exportVisual)throw Error("Mixin target has no exportVisual method defined.");e.exportSVG=this.exportSVG,e.exportImage=this.exportImage,e.exportPDF=this.exportPDF,t||(e.svg=this.svg,e.imageDataURL=this.imageDataURL)},exportSVG:function(e){return i.exportSVG(this.exportVisual(),e)},exportImage:function(e){return i.exportImage(this.exportVisual(e),e)},exportPDF:function(e){return i.exportPDF(this.exportVisual(),e)},svg:function(){if(i.svg.Surface)return i.svg.exportGroup(this.exportVisual());throw Error("SVG Export failed. Unable to export instantiate kendo.drawing.svg.Surface")},imageDataURL:function(){var t,n,o;if(!kendo.support.canvas)return null;if(i.canvas.Surface)return t=e("<div />").css({display:"none",width:this.element.width(),height:this.element.height()}).appendTo(document.body),n=new i.canvas.Surface(t[0]),n.draw(this.exportVisual()),o=n._rootElement.toDataURL(),n.destroy(),t.remove(),o;throw Error("Image Export failed. Unable to export instantiate kendo.drawing.canvas.Surface")}},n.IntlService.register({format:function(e){return kendo.format.apply(null,[e].concat(Array.prototype.slice.call(arguments,1)))},toString:kendo.toString,parseDate:kendo.parseDate,firstDay:function(){return kendo.culture().calendars.standard.firstDay}}),n.TemplateService.register({compile:kendo.template}),t.Point2D=t.Point,t.Box2D=t.Box,t.mwDelta=function(e){return t.mousewheelDelta(e.originalEvent)}}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.core.min",["dataviz/core/kendo-core.min","dataviz/core/core.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/themes/chart-base-theme.min",["kendo.dataviz.core.min"],e)}(function(){!function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F;window.kendo.dataviz=window.kendo.dataviz||{},e=1.5,t=.4,n="#000",i="Arial, Helvetica, sans-serif",o="11px "+i,r="12px "+i,a="16px "+i,s="transparent",l="#fff",d=function(){return{icon:{border:{width:1}},label:{font:r,padding:3},line:{length:10,width:2},visible:!0}},c=function(){return{labels:{font:r},notes:d(),title:{font:a,margin:5}}},u=function(){return{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4}},h=function(){return{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4}},p=function(){return{gap:e,spacing:t}},f=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:l,gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}}},m=function(){return{border:{width:0},labels:{background:s},opacity:.6}},g=function(){return{gap:e,spacing:t,target:{color:"#ff0000"}}},v=function(){return{border:{_brightness:.8,width:1},downColor:l,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:n,width:1},spacing:.3}},_=function(){return{gap:e,spacing:t}},b=function(){return{margin:1}},w=function(){return{width:2}},k=function(){return{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3}},y=function(){return{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5}},x=function(){return{markers:{visible:!1},width:2}},C=function(){return{gap:e,spacing:t}},S=function(){return{gap:e,spacing:t}},T=function(){return{width:1}},D=function(){return{gap:.5,line:{color:n,width:1},spacing:t}},A=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},E=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},I=function(e){return{visible:!0,labels:{font:o},overlay:e.gradients?{}:{gradient:"none"},area:u(),rangeArea:h(),verticalRangeArea:h(),bar:p(),boxPlot:f(),bubble:m(),bullet:g(),candlestick:v(),column:_(),pie:A(),donut:b(),funnel:E(),horizontalWaterfall:D(),line:w(),notes:d(),ohlc:k(),radarArea:y(),radarLine:x(),polarArea:y(),polarLine:x(),rangeBar:C(),rangeColumn:S(),scatterLine:T(),verticalArea:u(),verticalBoxPlot:f(),verticalBullet:g(),verticalLine:w(),waterfall:D()}},M=function(){return{font:a}},R=function(){return{labels:{font:r}}},F=function(e){return void 0===e&&(e={}),{axisDefaults:c(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:I(e),title:M(),legend:R()}},kendo.deepExtend(kendo.dataviz,{chartBaseTheme:F})}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/themes/auto-theme.min",["kendo.dataviz.core.min"],e)}(function(){!function(e){function t(t){function i(e,t){r(e,o(t,"backgroundColor"))}function o(e,t){return s.find(".k-var--"+e).css(t)}function r(e,t){for(var n=a,i=e.split("."),o=i.shift();i.length>0;)n=n[o]=n[o]||{},o=i.shift();n[o]=t}var a,s;return!t&&n?n:(a={chart:kendo.dataviz.chartBaseTheme()},s=e('<div style="display: none">  <div class="k-var--accent"></div>  <div class="k-var--accent-contrast"></div>  <div class="k-var--base"></div>  <div class="k-var--background"></div>  <div class="k-var--normal-background"></div>  <div class="k-var--normal-text-color"></div>  <div class="k-var--hover-background"></div>  <div class="k-var--hover-text-color"></div>  <div class="k-var--selected-background"></div>  <div class="k-var--selected-text-color"></div>  <div class="k-var--chart-error-bars-background"></div>  <div class="k-var--chart-notes-background"></div>  <div class="k-var--chart-notes-border"></div>  <div class="k-var--chart-notes-lines"></div>  <div class="k-var--chart-crosshair-background"></div>  <div class="k-var--chart-inactive"></div>  <div class="k-var--chart-major-lines"></div>  <div class="k-var--chart-minor-lines"></div>  <div class="k-var--chart-area-opacity"></div>  <div class="k-widget k-chart">      <div class="k-var--chart-font"></div>      <div class="k-var--chart-title-font"></div>      <div class="k-var--chart-label-font"></div>  </div>  <div class="k-var--series">    <div class="k-var--series-a"></div>    <div class="k-var--series-b"></div>    <div class="k-var--series-c"></div>    <div class="k-var--series-d"></div>    <div class="k-var--series-e"></div>    <div class="k-var--series-f"></div>  </div>  <div class="k-var--gauge-pointer"></div>  <div class="k-var--gauge-track"></div></div>').appendTo(document.body),function(){i("chart.axisDefaults.crosshair.color","chart-crosshair-background"),i("chart.axisDefaults.labels.color","normal-text-color"),i("chart.axisDefaults.line.color","chart-major-lines"),i("chart.axisDefaults.majorGridLines.color","chart-major-lines"),i("chart.axisDefaults.minorGridLines.color","chart-minor-lines"),i("chart.axisDefaults.notes.icon.background","chart-notes-background"),i("chart.axisDefaults.notes.icon.border.color","chart-notes-border"),i("chart.axisDefaults.notes.line.color","chart-notes-lines"),i("chart.axisDefaults.title.color","normal-text-color"),i("chart.chartArea.background","background"),i("chart.legend.inactiveItems.labels.color","chart-inactive"),i("chart.legend.inactiveItems.markers.color","chart-inactive"),i("chart.legend.labels.color","normal-text-color"),i("chart.seriesDefaults.boxPlot.downColor","chart-major-lines"),i("chart.seriesDefaults.boxPlot.mean.color","base"),i("chart.seriesDefaults.boxPlot.median.color","base"),i("chart.seriesDefaults.boxPlot.whiskers.color","accent"),i("chart.seriesDefaults.bullet.target.color","accent"),i("chart.seriesDefaults.candlestick.downColor","normal-text-color"),i("chart.seriesDefaults.candlestick.line.color","normal-text-color"),i("chart.seriesDefaults.errorBars.color","chart-error-bars-background"),i("chart.seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),i("chart.seriesDefaults.icon.border.color","chart-major-lines"),i("chart.seriesDefaults.labels.background","background"),i("chart.seriesDefaults.labels.color","normal-text-color"),i("chart.seriesDefaults.notes.icon.background","chart-notes-background"),i("chart.seriesDefaults.notes.icon.border.color","chart-notes-border"),i("chart.seriesDefaults.notes.line.color","chart-notes-lines"),i("chart.seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),i("chart.seriesDefaults.verticalBoxPlot.mean.color","base"),i("chart.seriesDefaults.verticalBoxPlot.median.color","base"),i("chart.seriesDefaults.verticalBoxPlot.whiskers.color","accent"),i("chart.seriesDefaults.verticalBullet.target.color","accent"),i("chart.seriesDefaults.waterfall.line.color","chart-major-lines"),i("chart.title.color","normal-text-color"),r("chart.seriesDefaults.labels.opacity",o("chart-area-opacity","opacity")),i("diagram.shapeDefaults.fill.color","accent"),i("diagram.shapeDefaults.content.color","accent-contrast"),i("diagram.shapeDefaults.connectorDefaults.fill.color","normal-text-color"),i("diagram.shapeDefaults.connectorDefaults.stroke.color","accent-contrast"),i("diagram.shapeDefaults.connectorDefaults.hover.fill.color","accent-contrast"),i("diagram.shapeDefaults.connectorDefaults.hover.stroke.color","normal-text-color"),i("diagram.editable.resize.handles.stroke.color","normal-text-color"),i("diagram.editable.resize.handles.fill.color","normal-background"),i("diagram.editable.resize.handles.hover.stroke.color","normal-text-color"),i("diagram.editable.resize.handles.hover.fill.color","normal-text-color"),i("diagram.selectable.stroke.color","normal-text-color"),i("diagram.connectionDefaults.stroke.color","normal-text-color"),i("diagram.connectionDefaults.content.color","normal-text-color"),i("diagram.connectionDefaults.selection.handles.fill.color","accent-contrast"),i("diagram.connectionDefaults.selection.handles.stroke.color","normal-text-color"),i("diagram.connectionDefaults.selection.stroke.color","normal-text-color"),i("gauge.pointer.color","gauge-pointer"),i("gauge.scale.labels.color","normal-text-color"),i("gauge.scale.minorTicks.color","normal-text-color"),i("gauge.scale.majorTicks.color","normal-text-color"),i("gauge.scale.line.color","normal-text-color"),i("gauge.scale.rangePlaceholderColor","gauge-track")}(),function(){function e(e){return o(e,"fontSize")+" "+o(e,"fontFamily")}var t=e("chart-font"),n=e("chart-title-font"),i=e("chart-label-font");r("chart.axisDefaults.labels.font",i),r("chart.axisDefaults.notes.label.font",t),r("chart.axisDefaults.title.font",t),r("chart.legend.labels.font",t),r("chart.seriesDefaults.labels.font",i),r("chart.seriesDefaults.notes.label.font",t),r("chart.title.font",n)}(),function(){function t(e){return e.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}function n(e){return t(e.match(/series-([a-z])$/)[1])}var i=e(".k-var--series div").toArray(),o=i.reduce(function(t,i){var o=n(i.className);return t[o]=e(i).css("backgroundColor"),t},[]);r("chart.seriesColors",o)}(),s.remove(),n=a,a)}var n;kendo.dataviz.autoTheme=t}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/themes/themes.min",["dataviz/themes/chart-base-theme.min"],e)}(function(){return function(e){function t(t,n){return e.map(t,function(e,t){return[[e,n[t]]]})}var n=window.kendo,i=n.dataviz.ui,o=n.deepExtend,r="#000",a="Arial,Helvetica,sans-serif",s="12px "+a,l="#fff",d=n.dataviz.chartBaseTheme({gradients:!0}),c={scale:{labels:{font:s}}},u={shapeDefaults:{hover:{opacity:.2},stroke:{width:0}},editable:{resize:{handles:{width:7,height:7}}},selectable:{stroke:{width:1,dashType:"dot"}},connectionDefaults:{stroke:{width:2},selection:{handles:{width:8,height:8}},editable:{tools:["edit","delete"]}}},h=i.themes,p=i.registerTheme=function(e,t){var n,i={};i.chart=o({},d,t.chart),i.gauge=o({},c,t.gauge),i.diagram=o({},u,t.diagram),i.treeMap=o({},t.treeMap),n=i.chart.seriesDefaults,n.verticalLine=o({},n.line),n.verticalArea=o({},n.area),n.rangeArea=o({},n.area),n.verticalRangeArea=o({},n.rangeArea),n.verticalBoxPlot=o({},n.boxPlot),n.polarArea=o({},n.radarArea),n.polarLine=o({},n.radarLine),h[e]=i};p("black",{chart:{title:{color:l},legend:{labels:{color:l},inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}},seriesDefaults:{labels:{color:l},errorBars:{color:l},notes:{icon:{background:"#3b3b3b",border:{color:"#8e8e8e"}},label:{color:l},line:{color:"#8e8e8e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#3d3d3d"}},scatter:{markers:{background:"#3d3d3d"}},scatterLine:{markers:{background:"#3d3d3d"}},waterfall:{line:{color:"#8e8e8e"}},horizontalWaterfall:{line:{color:"#8e8e8e"}},candlestick:{downColor:"#555",line:{color:l},border:{_brightness:1.5,opacity:1},highlight:{border:{color:l,opacity:.2}}},ohlc:{line:{color:l}}},chartArea:{background:"#3d3d3d"},seriesColors:["#0081da","#3aafff","#99c900","#ffeb3d","#b20753","#ff4195"],axisDefaults:{line:{color:"#8e8e8e"},labels:{color:l},majorGridLines:{color:"#545454"},minorGridLines:{color:"#454545"},title:{color:l},crosshair:{color:"#8e8e8e"},notes:{icon:{background:"#3b3b3b",border:{color:"#8e8e8e"}},label:{color:l},line:{color:"#8e8e8e"}}}},gauge:{pointer:{color:"#0070e4"},scale:{rangePlaceholderColor:"#1d1d1d",labels:{color:l},minorTicks:{color:l},majorTicks:{color:l},line:{color:l}}},diagram:{shapeDefaults:{fill:{color:"#0066cc"},connectorDefaults:{fill:{color:l},stroke:{color:"#384049"},hover:{fill:{color:"#3d3d3d"},stroke:{color:"#efefef"}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#3d3d3d"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:l}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:l}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#3d3d3d"},stroke:{color:"#efefef"}}}}},treeMap:{colors:[["#0081da","#314b5c"],["#3aafff","#3c5464"],["#99c900","#4f5931"],["#ffeb3d","#64603d"],["#b20753","#543241"],["#ff4195","#643e4f"]]}}),p("blueopal",{chart:{title:{color:"#293135"},legend:{labels:{color:"#293135"},inactiveItems:{labels:{color:"#27A5BA"},markers:{color:"#27A5BA"}}},seriesDefaults:{labels:{color:r,background:l,opacity:.5},errorBars:{color:"#293135"},candlestick:{downColor:"#c4d0d5",line:{color:"#9aabb2"}},waterfall:{line:{color:"#9aabb2"}},horizontalWaterfall:{line:{color:"#9aabb2"}},notes:{icon:{background:"transparent",border:{color:"#9aabb2"}},label:{color:"#293135"},line:{color:"#9aabb2"}}},seriesColors:["#0069a5","#0098ee","#7bd2f6","#ffb800","#ff8517","#e34a00"],axisDefaults:{line:{color:"#9aabb2"},labels:{color:"#293135"},majorGridLines:{color:"#c4d0d5"},minorGridLines:{color:"#edf1f2"},title:{color:"#293135"},crosshair:{color:"#9aabb2"},notes:{icon:{background:"transparent",border:{color:"#9aabb2"}},label:{color:"#293135"},line:{color:"#9aabb2"}}}},gauge:{pointer:{color:"#005c83"},scale:{rangePlaceholderColor:"#daecf4",labels:{color:"#293135"},minorTicks:{color:"#293135"},majorTicks:{color:"#293135"},line:{color:"#293135"}}},diagram:{shapeDefaults:{fill:{color:"#7ec6e3"},connectorDefaults:{fill:{color:"#003f59"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#003f59"}}},content:{color:"#293135"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#003f59"},hover:{fill:{color:"#003f59"},stroke:{color:"#003f59"}}}},rotate:{thumb:{stroke:{color:"#003f59"},fill:{color:"#003f59"}}}},selectable:{stroke:{color:"#003f59"}},connectionDefaults:{stroke:{color:"#003f59"},content:{color:"#293135"},selection:{handles:{fill:{color:"#3d3d3d"},stroke:{color:"#efefef"}}}}},treeMap:{colors:[["#0069a5","#bad7e7"],["#0098ee","#b9e0f5"],["#7bd2f6","#ceeaf6"],["#ffb800","#e6e3c4"],["#ff8517","#e4d8c8"],["#e34a00","#ddccc2"]]}}),p("highcontrast",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#66465B"},markers:{color:"#66465B"}}},seriesDefaults:{labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#ffffff"}},label:{color:"#ffffff"},line:{color:"#ffffff"}},pie:{overlay:{gradient:"sharpGlass"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#2c232b"}},scatter:{markers:{background:"#2c232b"}},scatterLine:{markers:{background:"#2c232b"}},area:{opacity:.5},waterfall:{line:{color:"#ffffff"}},horizontalWaterfall:{line:{color:"#ffffff"}},candlestick:{downColor:"#664e62",line:{color:"#ffffff"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#ffffff",opacity:1}}},ohlc:{line:{color:"#ffffff"}}},chartArea:{background:"#2c232b"},seriesColors:["#a7008f","#ffb800","#3aafff","#99c900","#b20753","#ff4195"],axisDefaults:{line:{color:"#ffffff"},labels:{color:"#ffffff"},majorGridLines:{color:"#664e62"},minorGridLines:{color:"#4f394b"},title:{color:"#ffffff"},crosshair:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#ffffff"}},label:{color:"#ffffff"},line:{color:"#ffffff"}}}},gauge:{pointer:{color:"#a7008f"},scale:{rangePlaceholderColor:"#2c232b",labels:{color:"#ffffff"},minorTicks:{color:"#2c232b"},majorTicks:{color:"#664e62"},line:{color:"#ffffff"}}},diagram:{shapeDefaults:{fill:{color:"#a7018f"},connectorDefaults:{fill:{color:l},stroke:{color:"#2c232b"},hover:{fill:{color:"#2c232b"},stroke:{color:l}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#2c232b"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:l}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:l}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#2c232b"},stroke:{color:l}}}}},treeMap:{colors:[["#a7008f","#451c3f"],["#ffb800","#564122"],["#3aafff","#2f3f55"],["#99c900","#424422"],["#b20753","#471d33"],["#ff4195","#562940"]]}}),p("default",{chart:{title:{color:"#8e8e8e"},legend:{labels:{color:"#232323"},inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}},seriesDefaults:{labels:{color:r,background:l,opacity:.5},errorBars:{color:"#232323"},candlestick:{downColor:"#dedede",line:{color:"#8d8d8d"}},waterfall:{line:{color:"#8e8e8e"}},horizontalWaterfall:{line:{color:"#8e8e8e"}},notes:{icon:{background:"transparent",border:{color:"#8e8e8e"}},label:{color:"#232323"},line:{color:"#8e8e8e"}}},seriesColors:["#ff6800","#a0a700","#ff8d00","#678900","#ffb53c","#396000"],axisDefaults:{line:{color:"#8e8e8e"},labels:{color:"#232323"},minorGridLines:{color:"#f0f0f0"},majorGridLines:{color:"#dfdfdf"},title:{color:"#232323"},crosshair:{color:"#8e8e8e"},notes:{icon:{background:"transparent",border:{color:"#8e8e8e"}},label:{color:"#232323"},line:{color:"#8e8e8e"}}}},gauge:{pointer:{color:"#ea7001"},scale:{rangePlaceholderColor:"#dedede",labels:{color:"#2e2e2e"},minorTicks:{color:"#2e2e2e"},majorTicks:{color:"#2e2e2e"},line:{color:"#2e2e2e"}}},diagram:{shapeDefaults:{fill:{color:"#e15613"},connectorDefaults:{fill:{color:"#282828"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#282828"}}},content:{color:"#2e2e2e"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#282828"},hover:{fill:{color:"#282828"},stroke:{color:"#282828"}}}},rotate:{thumb:{stroke:{color:"#282828"},fill:{color:"#282828"}}}},selectable:{stroke:{color:"#a7018f"}},connectionDefaults:{stroke:{color:"#282828"},content:{color:"#2e2e2e"},selection:{handles:{fill:{color:l},stroke:{color:"#282828"}}}}},treeMap:{colors:[["#ff6800","#edcfba"],["#a0a700","#dadcba"],["#ff8d00","#edd7ba"],["#678900","#cfd6ba"],["#ffb53c","#eddfc6"],["#396000","#c6ceba"]]}}),p("silver",{chart:{title:{color:"#4e5968"},legend:{labels:{color:"#4e5968"},inactiveItems:{labels:{color:"#B1BCC8"},markers:{color:"#B1BCC8"}}},seriesDefaults:{labels:{color:"#293135",background:"#eaeaec",opacity:.5},errorBars:{color:"#4e5968"},notes:{icon:{background:"transparent",border:{color:"#4e5968"}},label:{color:"#4e5968"},line:{color:"#4e5968"}},line:{markers:{background:"#eaeaec"}},scatter:{markers:{background:"#eaeaec"}},scatterLine:{markers:{background:"#eaeaec"}},pie:{connectors:{color:"#A6B1C0"}},donut:{connectors:{color:"#A6B1C0"}},waterfall:{line:{color:"#a6b1c0"}},horizontalWaterfall:{line:{color:"#a6b1c0"}},candlestick:{downColor:"#a6afbe"}},chartArea:{background:"#eaeaec"},seriesColors:["#007bc3","#76b800","#ffae00","#ef4c00","#a419b7","#430B62"],axisDefaults:{line:{color:"#a6b1c0"},labels:{color:"#4e5968"},majorGridLines:{color:"#dcdcdf"},minorGridLines:{color:"#eeeeef"},title:{color:"#4e5968"},crosshair:{color:"#a6b1c0"},notes:{icon:{background:"transparent",border:{color:"#4e5968"}},label:{color:"#4e5968"},line:{color:"#4e5968"}}}},gauge:{pointer:{color:"#0879c0"},scale:{rangePlaceholderColor:"#f3f3f4",labels:{color:"#515967"},minorTicks:{color:"#515967"},majorTicks:{color:"#515967"},line:{color:"#515967"}}},diagram:{shapeDefaults:{fill:{color:"#1c82c2"},connectorDefaults:{fill:{color:"#515967"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#282828"}}},content:{color:"#515967"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#515967"},hover:{fill:{color:"#515967"},stroke:{color:"#515967"}}}},rotate:{thumb:{stroke:{color:"#515967"},fill:{color:"#515967"}}}},selectable:{stroke:{color:"#515967"}},connectionDefaults:{stroke:{color:"#515967"},content:{color:"#515967"},selection:{handles:{fill:{color:l},stroke:{color:"#515967"}}}}},treeMap:{colors:[["#007bc3","#c2dbea"],["#76b800","#dae7c3"],["#ffae00","#f5e5c3"],["#ef4c00","#f2d2c3"],["#a419b7","#e3c7e8"],["#430b62","#d0c5d7"]]}}),p("metro",{chart:{title:{color:"#777777"},legend:{labels:{color:"#777777"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:r},errorBars:{color:"#777777"},notes:{icon:{background:"transparent",border:{color:"#777777"}},label:{color:"#777777"},line:{color:"#777777"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},waterfall:{line:{color:"#c7c7c7"}},horizontalWaterfall:{line:{color:"#c7c7c7"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#8ebc00","#309b46","#25a0da","#ff6900","#e61e26","#d8e404","#16aba9","#7e51a1","#313131","#ed1691"],axisDefaults:{line:{color:"#c7c7c7"},labels:{color:"#777777"},minorGridLines:{color:"#c7c7c7"},majorGridLines:{color:"#c7c7c7"},title:{color:"#777777"},crosshair:{color:"#c7c7c7"},notes:{icon:{background:"transparent",border:{color:"#777777"}},label:{color:"#777777"},line:{color:"#777777"}}}},gauge:{pointer:{color:"#8ebc00"},scale:{rangePlaceholderColor:"#e6e6e6",labels:{color:"#777"},minorTicks:{color:"#777"},majorTicks:{color:"#777"},line:{color:"#777"}}},diagram:{shapeDefaults:{fill:{color:"#8ebc00"},connectorDefaults:{fill:{color:r},stroke:{color:l},hover:{fill:{color:l},stroke:{color:r}}},content:{color:"#777"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#787878"},hover:{fill:{color:"#787878"},stroke:{color:"#787878"}}}},rotate:{thumb:{stroke:{color:"#787878"},fill:{color:"#787878"}}}},selectable:{stroke:{color:"#515967"}},connectionDefaults:{stroke:{color:"#787878"},content:{color:"#777"},selection:{handles:{fill:{color:l},stroke:{color:"#787878"}}}}},treeMap:{colors:[["#8ebc00","#e8f2cc"],["#309b46","#d6ebda"],["#25a0da","#d3ecf8"],["#ff6900","#ffe1cc"],["#e61e26","#fad2d4"],["#d8e404","#f7facd"],["#16aba9","#d0eeee"],["#7e51a1","#e5dcec"],["#313131","#d6d6d6"],["#ed1691","#fbd0e9"]]}}),p("metroblack",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#797979"},markers:{color:"#797979"}}},seriesDefaults:{border:{_brightness:1},labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#cecece"}},label:{color:"#ffffff"},line:{color:"#cecece"}},line:{markers:{background:"#0e0e0e"}},bubble:{opacity:.6},scatter:{markers:{background:"#0e0e0e"}},scatterLine:{markers:{background:"#0e0e0e"}},candlestick:{downColor:"#828282",line:{color:"#ffffff"}},waterfall:{line:{color:"#cecece"}},horizontalWaterfall:{line:{color:"#cecece"}},overlay:{gradient:"none"}},chartArea:{background:"#0e0e0e"},seriesColors:["#00aba9","#309b46","#8ebc00","#ff6900","#e61e26","#d8e404","#25a0da","#7e51a1","#313131","#ed1691"],axisDefaults:{line:{color:"#cecece"},labels:{color:"#ffffff"},minorGridLines:{color:"#2d2d2d"},majorGridLines:{color:"#333333"},title:{color:"#ffffff"},crosshair:{color:"#cecece"},notes:{icon:{background:"transparent",border:{color:"#cecece"}},label:{color:"#ffffff"},line:{color:"#cecece"}}}},gauge:{pointer:{color:"#00aba9"},scale:{rangePlaceholderColor:"#2d2d2d",labels:{color:"#ffffff"},minorTicks:{color:"#333333"},majorTicks:{color:"#cecece"},line:{color:"#cecece"}}},diagram:{shapeDefaults:{fill:{color:"#00aba9"},connectorDefaults:{fill:{color:l},stroke:{color:"#0e0e0e"},hover:{fill:{color:"#0e0e0e"},stroke:{color:l}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#0e0e0e"},stroke:{color:"#787878"},hover:{fill:{color:"#787878"},stroke:{color:"#787878"}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:"#787878"}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#0e0e0e"},stroke:{color:l}}}}},treeMap:{colors:[["#00aba9","#0b2d2d"],["#309b46","#152a19"],["#8ebc00","#28310b"],["#ff6900","#3e200b"],["#e61e26","#391113"],["#d8e404","#36390c"],["#25a0da","#132b37"],["#7e51a1","#241b2b"],["#313131","#151515"],["#ed1691","#3b1028"]]}}),p("moonlight",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#A1A7AB"},markers:{color:"#A1A7AB"}}},seriesDefaults:{labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#8c909e"}},label:{color:"#ffffff"},line:{color:"#8c909e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#212a33"}},bubble:{opacity:.6},scatter:{markers:{background:"#212a33"}},scatterLine:{markers:{background:"#212a33"}},area:{opacity:.3},candlestick:{downColor:"#757d87",line:{color:"#ea9d06"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:l,opacity:.2}}},waterfall:{line:{color:"#8c909e"}},horizontalWaterfall:{line:{color:"#8c909e"}},ohlc:{line:{color:"#ea9d06"}}},chartArea:{background:"#212a33"},seriesColors:["#ffca08","#ff710f","#ed2e24","#ff9f03","#e13c02","#a00201"],axisDefaults:{line:{color:"#8c909e"},minorTicks:{color:"#8c909e"},majorTicks:{color:"#8c909e"},labels:{color:"#ffffff"},majorGridLines:{color:"#3e424d"},minorGridLines:{color:"#2f3640"},title:{color:"#ffffff"},crosshair:{color:"#8c909e"},notes:{icon:{background:"transparent",border:{color:"#8c909e"}},label:{color:"#ffffff"},line:{color:"#8c909e"}}}},gauge:{pointer:{color:"#f4af03"},scale:{rangePlaceholderColor:"#2f3640",labels:{color:l},minorTicks:{color:"#8c909e"},majorTicks:{color:"#8c909e"},line:{color:"#8c909e"}}},diagram:{shapeDefaults:{fill:{color:"#f3ae03"},connectorDefaults:{fill:{color:l},stroke:{color:"#414550"},hover:{fill:{color:"#414550"},stroke:{color:l}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#414550"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:l}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:l}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#414550"},stroke:{color:l}}}}},treeMap:{colors:[["#ffca08","#4e4b2b"],["#ff710f","#4e392d"],["#ed2e24","#4b2c31"],["#ff9f03","#4e422a"],["#e13c02","#482e2a"],["#a00201","#3b232a"]]}}),p("uniform",{chart:{title:{color:"#686868"},legend:{labels:{color:"#686868"},inactiveItems:{labels:{color:"#B6B6B6"},markers:{color:"#B6B6B6"}}},seriesDefaults:{labels:{color:"#686868"},errorBars:{color:"#686868"},notes:{icon:{background:"transparent",border:{color:"#9e9e9e"}},label:{color:"#686868"},line:{color:"#9e9e9e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#ffffff"}},bubble:{opacity:.6},scatter:{markers:{background:"#ffffff"}},scatterLine:{markers:{background:"#ffffff"}},area:{opacity:.3},candlestick:{downColor:"#cccccc",line:{color:"#cccccc"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#cccccc",opacity:.2}}},waterfall:{line:{color:"#9e9e9e"}},horizontalWaterfall:{line:{color:"#9e9e9e"}},ohlc:{line:{color:"#cccccc"}}},chartArea:{background:"#ffffff"},seriesColors:["#527aa3","#6f91b3","#8ca7c2","#a8bdd1","#c5d3e0","#e2e9f0"],axisDefaults:{line:{color:"#9e9e9e"},minorTicks:{color:"#aaaaaa"},majorTicks:{color:"#888888"},labels:{color:"#686868"},majorGridLines:{color:"#dadada"},minorGridLines:{color:"#e7e7e7"},title:{color:"#686868"},crosshair:{color:"#9e9e9e"},notes:{icon:{background:"transparent",border:{color:"#9e9e9e"}},label:{color:"#686868"},line:{color:"#9e9e9e"}}}},gauge:{pointer:{color:"#527aa3"},scale:{rangePlaceholderColor:"#e7e7e7",labels:{color:"#686868"},minorTicks:{color:"#aaaaaa"},majorTicks:{color:"#888888"},line:{color:"#9e9e9e"}}},diagram:{shapeDefaults:{fill:{color:"#d1d1d1"},connectorDefaults:{fill:{color:"#686868"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#686868"}}},content:{color:"#686868"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#686868"},hover:{fill:{color:"#686868"},stroke:{color:"#686868"}}}},rotate:{thumb:{stroke:{color:"#686868"},fill:{color:"#686868"}}}},selectable:{stroke:{color:"#686868"}},connectionDefaults:{stroke:{color:"#686868"},content:{color:"#686868"},selection:{handles:{fill:{color:l},stroke:{color:"#686868"}}}}},treeMap:{colors:[["#527aa3","#d0d8e1"],["#6f91b3","#d6dde4"],["#8ca7c2","#dce1e7"],["#a8bdd1","#e2e6ea"],["#c5d3e0","#e7eaed"],["#e2e9f0","#edeff0"]]}}),p("bootstrap",{chart:{title:{color:"#333333"},legend:{labels:{color:"#333333"},inactiveItems:{labels:{color:"#999999"},markers:{color:"#9A9A9A"}}},seriesDefaults:{labels:{color:"#333333"},overlay:{gradient:"none"
},errorBars:{color:"#343434"},notes:{icon:{background:"#000000",border:{color:"#000000"}},label:{color:"#333333"},line:{color:"#000000"}},pie:{overlay:{gradient:"none"}},donut:{overlay:{gradient:"none"}},line:{markers:{background:"#ffffff"}},bubble:{opacity:.6},scatter:{markers:{background:"#ffffff"}},scatterLine:{markers:{background:"#ffffff"}},area:{opacity:.8},candlestick:{downColor:"#d0d0d0",line:{color:"#333333"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#b8b8b8",opacity:.2}}},waterfall:{line:{color:"#cccccc"}},horizontalWaterfall:{line:{color:"#cccccc"}},ohlc:{line:{color:"#333333"}}},chartArea:{background:"#ffffff"},seriesColors:["#428bca","#5bc0de","#5cb85c","#f2b661","#e67d4a","#da3b36"],axisDefaults:{line:{color:"#cccccc"},minorTicks:{color:"#ebebeb"},majorTicks:{color:"#cccccc"},labels:{color:"#333333"},majorGridLines:{color:"#cccccc"},minorGridLines:{color:"#ebebeb"},title:{color:"#333333"},crosshair:{color:"#000000"},notes:{icon:{background:"#000000",border:{color:"#000000"}},label:{color:"#ffffff"},line:{color:"#000000"}}}},gauge:{pointer:{color:"#428bca"},scale:{rangePlaceholderColor:"#cccccc",labels:{color:"#333333"},minorTicks:{color:"#ebebeb"},majorTicks:{color:"#cccccc"},line:{color:"#cccccc"}}},diagram:{shapeDefaults:{fill:{color:"#428bca"},connectorDefaults:{fill:{color:"#333333"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#333333"}}},content:{color:"#333333"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#333333"},hover:{fill:{color:"#333333"},stroke:{color:"#333333"}}}},rotate:{thumb:{stroke:{color:"#333333"},fill:{color:"#333333"}}}},selectable:{stroke:{color:"#333333"}},connectionDefaults:{stroke:{color:"#c4c4c4"},content:{color:"#333333"},selection:{handles:{fill:{color:l},stroke:{color:"#333333"}},stroke:{color:"#333333"}}}},treeMap:{colors:[["#428bca","#d1e0ec"],["#5bc0de","#d6eaf0"],["#5cb85c","#d6e9d6"],["#5cb85c","#f4e8d7"],["#e67d4a","#f2ddd3"],["#da3b36","#f0d0cf"]]}}),p("flat",{chart:{title:{color:"#4c5356"},legend:{labels:{color:"#4c5356"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#4c5356"},errorBars:{color:"#4c5356"},notes:{icon:{background:"transparent",border:{color:"#cdcdcd"}},label:{color:"#4c5356"},line:{color:"#cdcdcd"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},waterfall:{line:{color:"#cdcdcd"}},horizontalWaterfall:{line:{color:"#cdcdcd"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#10c4b2","#ff7663","#ffb74f","#a2df53","#1c9ec4","#ff63a5","#1cc47b"],axisDefaults:{line:{color:"#cdcdcd"},labels:{color:"#4c5356"},minorGridLines:{color:"#cdcdcd"},majorGridLines:{color:"#cdcdcd"},title:{color:"#4c5356"},crosshair:{color:"#cdcdcd"},notes:{icon:{background:"transparent",border:{color:"#cdcdcd"}},label:{color:"#4c5356"},line:{color:"#cdcdcd"}}}},gauge:{pointer:{color:"#10c4b2"},scale:{rangePlaceholderColor:"#cdcdcd",labels:{color:"#4c5356"},minorTicks:{color:"#4c5356"},majorTicks:{color:"#4c5356"},line:{color:"#4c5356"}}},diagram:{shapeDefaults:{fill:{color:"#10c4b2"},connectorDefaults:{fill:{color:"#363940"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#363940"}}},content:{color:"#4c5356"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#363940"},hover:{fill:{color:"#363940"},stroke:{color:"#363940"}}}},rotate:{thumb:{stroke:{color:"#363940"},fill:{color:"#363940"}}}},selectable:{stroke:{color:"#363940"}},connectionDefaults:{stroke:{color:"#cdcdcd"},content:{color:"#4c5356"},selection:{handles:{fill:{color:l},stroke:{color:"#363940"}},stroke:{color:"#363940"}}}},treeMap:{colors:[["#10c4b2","#cff3f0"],["#ff7663","#ffe4e0"],["#ffb74f","#fff1dc"],["#a2df53","#ecf9dd"],["#1c9ec4","#d2ecf3"],["#ff63a5","#ffe0ed"],["#1cc47b","#d2f3e5"]]}}),p("material",{chart:{title:{color:"#444444"},legend:{labels:{color:"#444444"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#444444"},errorBars:{color:"#444444"},notes:{icon:{background:"transparent",border:{color:"#e5e5e5"}},label:{color:"#444444"},line:{color:"#e5e5e5"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},waterfall:{line:{color:"#e5e5e5"}},horizontalWaterfall:{line:{color:"#e5e5e5"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#ff9800","#ff5722"],axisDefaults:{line:{color:"#e5e5e5"},labels:{color:"#444444"},minorGridLines:{color:"#e5e5e5"},majorGridLines:{color:"#e5e5e5"},title:{color:"#444444"},crosshair:{color:"#7f7f7f"},notes:{icon:{background:"transparent",border:{color:"#e5e5e5"}},label:{color:"#444444"},line:{color:"#e5e5e5"}}}},gauge:{pointer:{color:"#3f51b5"},scale:{rangePlaceholderColor:"#e5e5e5",labels:{color:"#444444"},minorTicks:{color:"#444444"},majorTicks:{color:"#444444"},line:{color:"#444444"}}},diagram:{shapeDefaults:{fill:{color:"#3f51b5"},connectorDefaults:{fill:{color:"#7f7f7f"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#7f7f7f"}}},content:{color:"#444444"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#444444"},hover:{fill:{color:"#444444"},stroke:{color:"#444444"}}}},rotate:{thumb:{stroke:{color:"#444444"},fill:{color:"#444444"}}}},selectable:{stroke:{color:"#444444"}},connectionDefaults:{stroke:{color:"#7f7f7f"},content:{color:"#444444"},selection:{handles:{fill:{color:l},stroke:{color:"#444444"}},stroke:{color:"#444444"}}}},treeMap:{colors:[["#3f51b5","#cff3f0"],["#03a9f4","#e5f6fe"],["#4caf50","#edf7ed"],["#f9ce1d","#fefae8"],["#ff9800","#fff4e5"],["#ff5722","#ffeee8"]]}}),p("materialblack",{chart:{title:{color:"#fff"},legend:{labels:{color:"#fff"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#fff"},errorBars:{color:"#fff"},notes:{icon:{background:"transparent",border:{color:"#e5e5e5"}},label:{color:"#fff"},line:{color:"#e5e5e5"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},waterfall:{line:{color:"#4d4d4d"}},horizontalWaterfall:{line:{color:"#4d4d4d"}},overlay:{gradient:"none"},border:{_brightness:1}},chartArea:{background:"#1c1c1c"},seriesColors:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#ff9800","#ff5722"],axisDefaults:{line:{color:"#4d4d4d"},labels:{color:"#fff"},minorGridLines:{color:"#4d4d4d"},majorGridLines:{color:"#4d4d4d"},title:{color:"#fff"},crosshair:{color:"#7f7f7f"},notes:{icon:{background:"transparent",border:{color:"#4d4d4d"}},label:{color:"#fff"},line:{color:"#4d4d4d"}}}},gauge:{pointer:{color:"#3f51b5"},scale:{rangePlaceholderColor:"#4d4d4d",labels:{color:"#fff"},minorTicks:{color:"#fff"},majorTicks:{color:"#fff"},line:{color:"#fff"}}},diagram:{shapeDefaults:{fill:{color:"#3f51b5"},connectorDefaults:{fill:{color:"#7f7f7f"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#7f7f7f"}}},content:{color:"#fff"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#fff"},hover:{fill:{color:"#fff"},stroke:{color:"#fff"}}}},rotate:{thumb:{stroke:{color:"#fff"},fill:{color:"#fff"}}}},selectable:{stroke:{color:"#fff"}},connectionDefaults:{stroke:{color:"#7f7f7f"},content:{color:"#fff"},selection:{handles:{fill:{color:l},stroke:{color:"#fff"}},stroke:{color:"#fff"}}}},treeMap:{colors:[["#3f51b5","#cff3f0"],["#03a9f4","#e5f6fe"],["#4caf50","#edf7ed"],["#f9ce1d","#fefae8"],["#ff9800","#fff4e5"],["#ff5722","#ffeee8"]]}}),function(){function e(){return{icon:{background:"#007cc0",border:{color:"#007cc0"}},label:{color:"#ffffff"},line:{color:r}}}var n="#333333",i="#7f7f7f",o="#bdbdbd",r="#c8c8c8",a="#dddddd",s=["#008fd3","#99d101","#f39b02","#f05662","#c03c53","#acacac"],d=["#cbe8f5","#eaf5cb","#fceacc","#fbdcdf","#f2d7dc","#eeeeee"],c=s[0],u=l;p("fiori",{chart:{title:{color:n},legend:{labels:{color:n},inactiveItems:{labels:{color:i},markers:{color:i}}},seriesDefaults:{labels:{color:n},errorBars:{color:n},notes:e(),candlestick:{downColor:r,line:{color:o}},area:{opacity:.8},waterfall:{line:{color:r}},horizontalWaterfall:{line:{color:r}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:s,axisDefaults:{line:{color:r},labels:{color:n},minorGridLines:{color:a},majorGridLines:{color:r},title:{color:n},crosshair:{color:i},notes:e()}},gauge:{pointer:{color:c},scale:{rangePlaceholderColor:r,labels:{color:n},minorTicks:{color:n},majorTicks:{color:n},line:{color:n}}},diagram:{shapeDefaults:{fill:{color:c},connectorDefaults:{fill:{color:n},stroke:{color:u},hover:{fill:{color:u},stroke:{color:n}}},content:{color:n}},editable:{resize:{handles:{fill:{color:u},stroke:{color:o},hover:{fill:{color:o},stroke:{color:o}}}},rotate:{thumb:{stroke:{color:o},fill:{color:o}}}},selectable:{stroke:{color:o}},connectionDefaults:{stroke:{color:o},content:{color:o},selection:{handles:{fill:{color:u},stroke:{color:o}},stroke:{color:o}}}},treeMap:{colors:t(s,d)}})}(),function(){function e(){return{icon:{background:"#00b0ff",border:{color:"#00b0ff"}},label:{color:"#ffffff"},line:{color:r}}}var n="#4e4e4e",i="#7f7f7f",o="#bdbdbd",r="#c8c8c8",a="#e5e5e5",s=["#0072c6","#5db2ff","#008a17","#82ba00","#ff8f32","#ac193d"],d=["#cbe2f3","#deeffe","#cbe7d0","#e5f0cb","#fee8d5","#eed0d7"],c=s[0],u=l;p("office365",{chart:{title:{color:n},legend:{labels:{color:n},inactiveItems:{labels:{color:i},markers:{color:i}}},seriesDefaults:{labels:{color:n},errorBars:{color:n},notes:e(),candlestick:{downColor:r,line:{color:o}},area:{opacity:.8},waterfall:{line:{color:r}},horizontalWaterfall:{line:{color:r}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:s,axisDefaults:{line:{color:r},labels:{color:n},minorGridLines:{color:a},majorGridLines:{color:r},title:{color:n},crosshair:{color:i},notes:e()}},gauge:{pointer:{color:c},scale:{rangePlaceholderColor:r,labels:{color:n},minorTicks:{color:n},majorTicks:{color:n},line:{color:n}}},diagram:{shapeDefaults:{fill:{color:c},connectorDefaults:{fill:{color:n},stroke:{color:u},hover:{fill:{color:u},stroke:{color:n}}},content:{color:n}},editable:{resize:{handles:{fill:{color:u},stroke:{color:o},hover:{fill:{color:o},stroke:{color:o}}}},rotate:{thumb:{stroke:{color:o},fill:{color:o}}}},selectable:{stroke:{color:o}},connectionDefaults:{stroke:{color:o},content:{color:o},selection:{handles:{fill:{color:u},stroke:{color:o}},stroke:{color:o}}}},treeMap:{colors:t(s,d)}})}(),function(){function e(){return{icon:{background:"#007cc0",border:{color:"#007cc0"}},label:{color:"#ffffff"},line:{color:r}}}var n="#32364c",i="#7f7f7f",o="#bdbdbd",r="#dfe0e1",a="#dfe0e1",s=["#ff4350","#ff9ea5","#00acc1","#80deea","#ffbf46","#ffd78c"],d=["#ffd9dc","#ffeced","#cceef3","#e6f8fb","#fff2da","#fff7e8"],c=s[0],u=l;p("nova",{chart:{title:{color:n},legend:{labels:{color:n},inactiveItems:{labels:{color:i},markers:{color:i}}},seriesDefaults:{labels:{color:n},errorBars:{color:n},notes:e(),candlestick:{downColor:r,line:{color:o}},area:{opacity:.8},waterfall:{line:{color:r}},horizontalWaterfall:{line:{color:r}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:s,axisDefaults:{line:{color:r},labels:{color:n},minorGridLines:{color:a},majorGridLines:{color:r},title:{color:n},crosshair:{color:n},notes:e()}},gauge:{pointer:{color:c},scale:{rangePlaceholderColor:r,labels:{color:n},minorTicks:{color:n},majorTicks:{color:n},line:{color:n}}},diagram:{shapeDefaults:{fill:{color:c},connectorDefaults:{fill:{color:n},stroke:{color:u},hover:{fill:{color:u},stroke:{color:n}}},content:{color:n}},editable:{resize:{handles:{fill:{color:u},stroke:{color:o},hover:{fill:{color:o},stroke:{color:o}}}},rotate:{thumb:{stroke:{color:o},fill:{color:o}}}},selectable:{stroke:{color:o}},connectionDefaults:{stroke:{color:o},content:{color:o},selection:{handles:{fill:{color:u},stroke:{color:o}},stroke:{color:o}}}},treeMap:{colors:t(s,d)}})}(),function(){var e=["#ff6358","#ffd246","#78d237","#28b4c8","#2d73f5","#aa46be"],n=["#ffd9dc","#ffeced","#cceef3","#e6f8fb","#fff2da","#fff7e8"];p("default-v2",{chart:{},gauge:{},diagram:{},treeMap:{colors:t(e,n)}}),h.sass=h["default-v2"]}(),function(){var e="#292b2c",n="rgba(0, 0, 0, .04)",i=["#0275d8","#5bc0de","#5cb85c","#f0ad4e","#e67d4a","#d9534f"],o=["#ffd9dc","#ffeced","#cceef3","#e6f8fb","#fff2da","#fff7e8"],r=i[0];p("bootstrap-v4",{chart:{},gauge:{pointer:{color:r},scale:{rangePlaceholderColor:n,labels:{color:e},minorTicks:{color:e},majorTicks:{color:e},line:{color:e}}},diagram:{},treeMap:{colors:t(i,o)}})}()}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.themes.min",["kendo.dataviz.core.min","dataviz/themes/chart-base-theme.min","dataviz/themes/auto-theme.min","dataviz/themes/themes.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/chart/kendo-chart.min",["kendo.core.min","kendo.color.min","kendo.drawing.min","kendo.dataviz.core.min"],e)}(function(){!function(e){function t(e,t){for(var n=0;n<t.length;n++)if(t[n].options.name===e)return t[n].prepareUserOptions(),new ut(t[n])}function n(e){var t,n,i=e.length,o=0;for(t=0;t<i;t++)n=e[t],ie(n)&&o++;return o}function i(e,t){if(null===t)return t;var n=ye(e,!0);return n(t)}function o(e,t,n,i){var r,a,s,l,d;if(void 0===n&&(n={}),void 0===i&&(i=!1),r=n.defaults=n.defaults||{},a=n.depth=n.depth||0,s=!1,n.excluded=n.excluded||[],a>ei)return null;for(l in e)!Ee(l,n.excluded)&&e.hasOwnProperty(l)&&(d=e[l],Ie(d)?(s=!0,i||(e[l]=Me(d(t),r[l]))):Re(d)&&(i||(n.defaults=r[l]),n.depth++,s=o(d,t,n,i)||s,n.depth--));return s}function r(e){var t,n=e.length,i=0;for(t=0;t<n;t++)i=Math.max(i,e[t].data.length);return i}function a(e,t,n,i,o){var r=e.box,a=new dt;return a[t]=r[t+n],a[i]=r[i+o],a}function s(e){for(var t=0;t<e.length;t++)if(ke(e[t].zIndex))return!0}function l(e){var t=e.overlay;return t&&t.gradient&&"none"!==t.gradient}function d(e,t){e.forEach(t)}function c(e,t){var n,i=e.length;for(n=i-1;n>=0;n--)t(e[n],n-i-1)}function u(e){return n(e)===e.length}function h(e){return ke(e)&&null!==e}function p(e){var t,n,i,o=e.series;for(t=0;t<o.length;t++)n=o[t],i=n.data,!i||xe(i[0])||Re(i[0])||(n.data=[i])}function f(){return"pane"+Vi++}function m(e,t){null!==t&&e.push(t)}function g(e,t,n){var i,o=t.visible;return ke(o)?o:(i=e.pointVisibility,i?i[n]:void 0)}function v(e){var t,n,i,o=e.data,r=[],a=0,s=0;for(t=0;t<o.length;t++)n=mt.current.bindPoint(e,t),i=n.valueFields.value,We(i)&&(i=parseFloat(i)),ie(i)?(n.visible=g(e,n.fields,t)!==!1,n.value=Math.abs(i),r.push(n),n.visible&&(a+=n.value),0!==i&&s++):r.push(null);return{total:a,points:r,count:s}}function _(e,t){return e&&t?e.toLowerCase()===t.toLowerCase():e===t}function b(e,t){var n,i,o=[],r=[].concat(t);for(n=0;n<e.length;n++)i=e[n],Ee(i.type,r)&&o.push(i);return o}function w(e,t,n){var i,o;return null===t?t:(i="_date_"+e,o=t[i],o||(o=Ue(n,ye(e,!0)(t)),t[i]=o),o)}function k(e,t){var n=e.type,i=t instanceof Date;return!n&&i||_(n,_e)}function y(e){return 1===e.length?e[0]:e}function x(e){return e.missingValues?e.missingValues:Wi.test(e.type)||e.stack?zt:Bt}function C(e,t){var n,i=mt.current.bindPoint(e,null,t),o=i.valueFields;for(n in o)if(te.convertableToNumber(o[n]))return!0}function S(e){var t,n,i=e.start,o=e.dir,r=e.min,a=e.max,s=e.getter,l=e.hasItem,d=e.series,c=i;do c+=o,l(c)&&(n=s(c),t=C(d,n.item));while(r<=c&&c<=a&&!t);if(t)return n}function T(e,t,n,i,o){var r,a,s,l,d,c=t.min,u=t.max,h=c>0&&c<n,p=u+1<n;(h||p)&&(r=x(e),r!==Bt?(h&&(a=i(c-1)),p&&(s=i(u+1))):(h&&(l=i(c-1),d=C(e,l.item),a=d?l:S({start:c,dir:-1,min:0,max:n-1,getter:i,hasItem:o,series:e})),p&&(l=i(u+1),d=C(e,l.item),s=d?l:S({start:u,dir:1,min:0,max:n-1,getter:i,hasItem:o,series:e}))),a&&(e._outOfRangeMinPoint=a),s&&(e._outOfRangeMaxPoint=s))}function D(e){return!e.pane.axes.some(function(t){return t.options.vertical===e.options.vertical&&t!==e&&t.options.visible!==!1})}function A(e){var t,n,i,o,r,a=e.length;for(n=0;n<a;n++)i=e[n],o=i.options.visible!==!1,(o||D(i))&&(r=o?i.contentBox():i.lineBox(),t?t.wrap(r):t=r.clone());return t||new Te}function E(e,t){var n,i;for(n=0;n<e.length;n++)if(i=e[n],i&&i.pane===t)return i}function I(e){return""===e||null===e||"none"===e||"transparent"===e||!ke(e)}function M(e,t,n){var i,o=t,r=e;if(e.indexOf(".")>-1){for(i=e.split(".");i.length>1;)r=i.shift(),ke(o[r])||(o[r]={}),o=o[r];r=i.shift()}o[r]=n}function R(e,t,n){var i=[].concat(t instanceof qe?e.categoryAxis:e.valueAxis);Fe(i[t.axisIndex],n)}function F(e,t,n){return Ye(e,function(e){return 0===n&&!e.categoryAxis||e.categoryAxis===t})}function P(){this._defaultPrevented=!0}function z(e,t){var n=(t||"").toLowerCase(),i=e.event,o="none"===n&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[n+"Key"];return o}function B(e){var t,n,i={};for(t=0;t<e.length;t++)n=e[t],n.axis.options.name&&(i[n.axis.options.name]={min:n.range.min,max:n.range.max});return i}function L(e){var t=document.createElement("div");return e&&(t.className=e),t}function H(e){for(var t=e;t&&!Xe(t,"k-handle");)t=t.parentNode;return t}function N(e,t,n,i){var o=[].concat(n?e.yAxis:e.xAxis)[t];Fe(o,i)}function O(e){var t,n,i=te.rad(e),o=$e(Math.sin(i),be),r=$e(Math.cos(i),be);return t=Math.abs(o)>Lo?le:r<0?ge:ue,n=Math.abs(o)<Bo?le:o<0?ce:de,{horizontal:t,vertical:n}}function V(e,t,n,i){var o,r,a=(i.x-n.x)*(e.y-n.y)-(i.y-n.y)*(e.x-n.x),s=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y);return 0!==s&&(r=a/s,o=new Se(e.x+r*(t.x-e.x),e.y+r*(t.y-e.y))),o}function W(e,t){return e.value.x-t.value.x}function U(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i[n.seriesIx]=i[n.seriesIx]||[],i[n.seriesIx].push(n);return i}function j(e){var t,n,i=wr;for(t=0;t<i.length;t++)n=i[t]+"Axes",e[n]&&(e[i[t]+"Axis"]=e[n],delete e[n])}function q(e,t){if(e)for(var n=0;n<e.length;n++)if(e[n].category===t)return[e[n]]}function G(e,t){function n(e){var t=(e||{}).color||o.color,n=Fe({},s,s[i],o,o[i],{line:{color:t},labels:{color:t},title:{color:t}},e);return delete n[i],n}var i,o,r,a,s=(t||{}).axisDefaults||{};for(a=0;a<wr.length;a++)i=wr[a]+"Axis",o=e.axisDefaults||{},r=[].concat(e[i]),r=r.map(n),e[i]=r.length>1?r:r[0]}function $(e,t){var n,i,o,r=e.series,a=r.length,s=e.seriesDefaults,l=Fe({},e.seriesDefaults),d=t?Fe({},t.seriesDefaults):{},c=Fe({},d);for(K(l),K(c),n=0;n<a;n++)i=r[n].type||e.seriesDefaults.type,o=Fe({data:[]},c,d[i],{tooltip:e.tooltip},l,s[i]),r[n]._defaults=o,r[n]=Fe({},o,r[n]),r[n].data=r[n].data||[]}function K(e){delete e.bar,delete e.column,delete e.rangeColumn,delete e.line,delete e.verticalLine,delete e.pie,delete e.donut,delete e.area,delete e.verticalArea,delete e.scatter,delete e.scatterLine,delete e.bubble,delete e.candlestick,delete e.ohlc,delete e.boxPlot,delete e.bullet,delete e.verticalBullet,delete e.polarArea,delete e.polarLine,delete e.radarArea,delete e.radarLine,delete e.waterfall}function Y(e){var t,n,i,o={};for(t=0;t<e.length;t++)n=e[t],i=n.options.name,i&&(o[i]=n.range());return o}function Q(e,t){void 0===t&&(t=te.dateComparer);for(var n=1,i=e.length;n<i;n++)if(t(e[n],e[n-1])<0){e.sort(t);break}return e}function X(e,t){var n,i,o,r;for(void 0===t&&(t=te.dateComparer),n=Q(e,t),i=n.length,o=i>0?[n[0]]:[],r=1;r<i;r++)0!==t(n[r],Pe(o))&&o.push(n[r]);return o}function Z(e){var t,n,i,o,r=e.length,a=[];for(t=0;t<r;t++)for(n=e[t],i=n.length,o=0;o<i;o++)a[o]=a[o]||[],a[o].push(n[o]);return a}function J(e,t){var n,i,o,r;for(n in t)!Ee(n,Tr)&&t.hasOwnProperty(n)&&(i=t[n],o=e[n],ke(o)&&(r=null===i,r||!ke(i)?(delete e[n],r&&delete t[n]):o&&Re(i)&&Re(o)&&J(o,i)))}function ee(e){for(var t=0;t<e.length;t++)e[t].notifyRender()}var te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge,ve,_e,be,we,ke,ye,xe,Ce,Se,Te,De,Ae,Ee,Ie,Me,Re,Fe,Pe,ze,Be,Le,He,Ne,Oe,Ve,We,Ue,je,qe,Ge,$e,Ke,Ye,Qe,Xe,Ze,Je,et,tt,nt,it,ot,rt,at,st,lt,dt,ct,ut,ht,pt,ft,mt,gt,vt,_t,bt,wt,kt,yt,xt,Ct,St,Tt,Dt,At,Et,It,Mt,Rt,Ft,Pt,zt,Bt,Lt,Ht,Nt,Ot,Vt,Wt,Ut,jt,qt,Gt,$t,Kt,Yt,Qt,Xt,Zt,Jt,en,tn,nn,on,rn,an,sn,ln,dn,cn,un,hn,pn,fn,mn,gn,vn,_n,bn,wn,kn,yn,xn,Cn,Sn,Tn,Dn,An,En,In,Mn,Rn,Fn,Pn,zn,Bn,Ln,Hn,Nn,On,Vn,Wn,Un,jn,qn,Gn,$n,Kn,Yn,Qn,Xn,Zn,Jn,ei,ti,ni,ii,oi,ri,ai,si,li,di,ci,ui,hi,pi,fi,mi,gi,vi,_i,bi,wi,ki,yi,xi,Ci,Si,Ti,Di,Ai,Ei,Ii,Mi,Ri,Fi,Pi,zi,Bi,Li,Hi,Ni,Oi,Vi,Wi,Ui,ji,qi,Gi,$i,Ki,Yi,Qi,Xi,Zi,Ji,eo,to,no,io,oo,ro,ao,so,lo,co,uo,ho,po,fo,mo,go,vo,_o,bo,wo,ko,yo,xo,Co,So,To,Do,Ao,Eo,Io,Mo,Ro,Fo,Po,zo,Bo,Lo,Ho,No,Oo,Vo,Wo,Uo,jo,qo,Go,$o,Ko,Yo,Qo,Xo,Zo,Jo,er,tr,nr,ir,or,rr,ar,sr,lr,dr,cr,ur,hr,pr,fr,mr,gr,vr,_r,br,wr,kr,yr,xr,Cr,Sr,Tr;window.kendo.dataviz=window.kendo.dataviz||{},te=kendo.dataviz,ne=te.Class,ie=te.isNumber,oe=te.constants,re=oe.MAX_VALUE,ae=oe.MIN_VALUE,se=oe.VALUE,le=oe.CENTER,de=oe.TOP,ce=oe.BOTTOM,ue=oe.LEFT,he=oe.WHITE,pe=oe.CIRCLE,fe=oe.X,me=oe.Y,ge=oe.RIGHT,ve=oe.BLACK,_e=oe.DATE,be=oe.DEFAULT_PRECISION,we=oe.ARC,ke=te.defined,ye=te.getter,xe=te.isArray,Ce=te.ChartElement,Se=te.Point,Te=te.Box,De=te.alignPathToPixel,Ae=te.setDefaultOptions,Ee=te.inArray,Ie=te.isFunction,Me=te.valueOrDefault,Re=te.isObject,Fe=te.deepExtend,Pe=te.last,ze=te.eventElement,Be=te.getTemplate,Le=te.TextBox,He=te.ShapeElement,Ne=te.getSpacing,Oe=te.CurveProcessor,Ve=te.append,We=te.isString,Ue=te.parseDate,je=te.styleValue,qe=te.CategoryAxis,Ge=te.BoxElement,$e=te.round,Ke=te.limitValue,Ye=te.grep,Qe=te.elementStyles,Xe=te.hasClasses,Ze=te.bindEvents,Je=te.services,et=te.unbindEvents,tt=kendo.support,nt=kendo.drawing,it=nt.Path,ot=nt.Animation,rt=nt.AnimationFactory,at=nt.Group,st=kendo.Color,lt=kendo.geometry,dt=lt.Point,ct=lt.transform,ut=ne.extend({init:function(e){this._axis=e,this.options=e.options},value:function(e){var t=this._axis,n=t.getCategory?t.getCategory(e):t.getValue(e);return n},slot:function(e,t,n){return void 0===n&&(n=!0),this._axis.slot(e,t,n)},range:function(){return this._axis.range()},valueRange:function(){return this._axis.valueRange()}}),ht=kendo.Class.extend({init:function(e){this.visual=e.visual,this.chartsVisual=e.chartContainer.visual,this._pane=e},findAxisByName:function(e){return t(e,this._pane.axes)}}),pt=ne.extend({init:function(e){this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}}),ft={min:function(e){var t,n,i=e.length,o=re;for(t=0;t<i;t++)n=e[t],ie(n)&&(o=Math.min(o,n));return o===re?e[0]:o},max:function(e){var t,n,i=e.length,o=ae;for(t=0;t<i;t++)n=e[t],ie(n)&&(o=Math.max(o,n));return o===ae?e[0]:o},sum:function(e){var t,n,i=e.length,o=0;for(t=0;t<i;t++)n=e[t],ie(n)&&(o+=n);return o},sumOrNull:function(e){var t=null;return n(e)&&(t=ft.sum(e)),t},count:function(e){var t,n,i=e.length,o=0;for(t=0;t<i;t++)n=e[t],null!==n&&ke(n)&&o++;return o},avg:function(e){var t=n(e),i=e[0];return t>0&&(i=ft.sum(e)/t),i},first:function(e){var t,n,i=e.length;for(t=0;t<i;t++)if(n=e[t],null!==n&&ke(n))return n;return e[0]}},mt=ne.extend({init:function(){this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}},register:function(e,t,n){var i,o,r=this;for(void 0===t&&(t=[se]),void 0===n&&(n={}),i=0;i<e.length;i++)o=e[i],r._valueFields[o]=t,r._otherFields[o]=n,r._nullValue[o]=r._makeValue(t,null),r._undefinedValue[o]=r._makeValue(t,void 0)},canonicalFields:function(e){return this.valueFields(e).concat(this.otherFields(e))},valueFields:function(e){return this._valueFields[e.type]||[se]},otherFields:function(e){return this._otherFields[e.type]||[se]},bindPoint:function(e,t,n){var i,o,r,a,s,l=e.data,d=ke(n)?n:l[t],c={valueFields:{value:d}},u=this.valueFields(e),h=this._otherFields[e.type];return null===d?o=this._nullValue[e.type]:ke(d)?Array.isArray(d)?(r=d.slice(u.length),o=this._bindFromArray(d,u),i=this._bindFromArray(r,h)):"object"==typeof d&&(a=this.sourceFields(e,u),s=this.sourceFields(e,h),o=this._bindFromObject(d,u,a),i=this._bindFromObject(d,h,s)):o=this._undefinedValue[e.type],ke(o)&&(1===u.length?c.valueFields.value=o[u[0]]:c.valueFields=o),c.fields=i||{},c},_makeValue:function(e,t){var n,i,o={},r=e.length;for(n=0;n<r;n++)i=e[n],o[i]=t;return o},_bindFromArray:function(e,t){var n,i,o={};if(t)for(n=Math.min(t.length,e.length),i=0;i<n;i++)o[t[i]]=e[i];return o},_bindFromObject:function(e,t,n){var o,r,a,s,l;if(void 0===n&&(n=t),o={},t)for(r=t.length,a=0;a<r;a++)s=t[a],l=n[a],null!==l&&(o[s]=i(l,e));return o},sourceFields:function(e,t){var n,i,o,r,a=[];if(t)for(n=t.length,i=0;i<n;i++)o=t[i],r=o===se?"field":o+"Field",a.push(null!==e[r]?e[r]||o:null);return a}}),mt.current=new mt,gt="stderr",vt="stddev",_t=/percent(?:\w*)\((\d+)\)/,bt=RegExp("^"+vt+"(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),wt=ne.extend({init:function(e,t,n){this.initGlobalRanges(e,t,n)},initGlobalRanges:function(e,t,n){var i,o,r,a,s,l=t.data,d=bt.exec(e);d?(this.valueGetter=this.createValueGetter(t,n),i=this.getAverage(l),o=this.getStandardDeviation(l,i,!1),r=d[1]?parseFloat(d[1]):1,a={low:i.value-o*r,high:i.value+o*r},this.globalRange=function(){return a}):e.indexOf&&e.indexOf(gt)>=0&&(this.valueGetter=this.createValueGetter(t,n),s=this.getStandardError(l,this.getAverage(l)),this.globalRange=function(e){return{low:e-s,high:e+s}})},createValueGetter:function(e,t){var n,i,o,r=e.data,a=mt.current,s=a.valueFields(e),l=ke(r[0])?r[0]:{};return xe(l)?(i=t?s.indexOf(t):0,n=ye("["+i+"]")):ie(l)?n=ye():typeof l===oe.OBJECT&&(o=a.sourceFields(e,s),n=ye(o[s.indexOf(t)])),n},getErrorRange:function(e,t){var n,i,o,r;if(!ke(t))return null;if(this.globalRange)return this.globalRange(e);if(xe(t))n=e-t[0],i=e+t[1];else if(ie(o=parseFloat(t)))n=e-o,i=e+o;else{if(!(o=_t.exec(t)))throw Error("Invalid ErrorBar value: "+t);r=e*(parseFloat(o[1])/100),n=e-Math.abs(r),i=e+Math.abs(r)}return{low:n,high:i}},getStandardError:function(e,t){return this.getStandardDeviation(e,t,!0)/Math.sqrt(t.count)},getStandardDeviation:function(e,t,n){var i,o,r=this,a=e.length,s=n?t.count-1:t.count,l=0;for(i=0;i<a;i++)o=r.valueGetter(e[i]),ie(o)&&(l+=Math.pow(o-t.value,2));return Math.sqrt(l/s)},getAverage:function(e){var t,n,i=this,o=e.length,r=0,a=0;for(t=0;t<o;t++)n=i.valueGetter(e[t]),ie(n)&&(r+=n,a++);return{value:r/a,count:a}}}),kt=tt.browser||{},yt=600,xt="fadeIn",Ct="glass",St=.8,Tt=5,Dt=kt.msie?.001:0,At="errorLow",Et="errorHigh",It="xErrorLow",Mt="xErrorHigh",Rt="yErrorLow",Ft="yErrorHigh",Pt=8,zt="zero",Bt="interpolate",Lt="gap",Ht="above",Nt="below",Ot="smooth",Vt="step",Wt="area",Ut="bar",jt="boxPlot",qt="bubble",Gt="bullet",$t="candlestick",Kt="column",Yt="donut",Qt="funnel",Xt="horizontalWaterfall",Zt="line",Jt="ohlc",en="pie",tn="polarArea",nn="polarLine",on="polarScatter",rn="radarArea",an="radarColumn",sn="radarLine",ln="rangeArea",dn="rangeBar",cn="rangeColumn",un="scatter",hn="scatterLine",pn="verticalArea",fn="verticalBoxPlot",mn="verticalBullet",gn="verticalLine",vn="verticalRangeArea",_n="waterfall",bn=[Ut,Kt,Jt,$t,jt,fn,Gt,cn,dn,_n,Xt],wn="legendItemClick",kn="legendItemHover",yn="legendItemLeave",xn="seriesClick",Cn="seriesHover",Sn="seriesOver",Tn="seriesLeave",Dn="plotAreaClick",An="plotAreaHover",En="plotAreaLeave",In="drag",Mn="dragEnd",Rn="dragStart",Fn="zoomStart",Pn="zoom",zn="zoomEnd",Bn="selectStart",Ln="select",Hn="selectEnd",Nn="render",On="showTooltip",Vn="hideTooltip",Wn="paneRender",Un="log",jn="category",qn="insideEnd",Gn="insideBase",$n="outsideEnd",Kn="DOMMouseScroll mousewheel",Yn=150,Qn={INITIAL_ANIMATION_DURATION:yt,FADEIN:xt,LEGEND_ITEM_CLICK:wn,LEGEND_ITEM_HOVER:kn,LEGEND_ITEM_LEAVE:yn,SERIES_CLICK:xn,SERIES_HOVER:Cn,SERIES_OVER:Sn,SERIES_LEAVE:Tn,GLASS:Ct,BORDER_BRIGHTNESS:St,TOOLTIP_OFFSET:Tt,START_SCALE:Dt,ERROR_LOW_FIELD:At,ERROR_HIGH_FIELD:Et,X_ERROR_LOW_FIELD:It,X_ERROR_HIGH_FIELD:Mt,Y_ERROR_LOW_FIELD:Rt,Y_ERROR_HIGH_FIELD:Ft,LINE_MARKER_SIZE:Pt,INTERPOLATE:Bt,ZERO:zt,SMOOTH:Ot,STEP:Vt,CATEGORY:jn,FUNNEL:Qt,BAR:Ut,CANDLESTICK:$t,PIE:en,COLUMN:Kt,AREA:Wt,VERTICAL_BULLET:mn,BOX_PLOT:jt,OHLC:Jt,WATERFALL:_n,LINE:Zt,BULLET:Gt,VERTICAL_LINE:gn,VERTICAL_AREA:pn,RANGE_AREA:ln,VERTICAL_RANGE_AREA:vn,RANGE_COLUMN:cn,VERTICAL_BOX_PLOT:fn,RANGE_BAR:dn,HORIZONTAL_WATERFALL:Xt,SCATTER:un,SCATTER_LINE:hn,BUBBLE:qt,RADAR_AREA:rn,RADAR_LINE:sn,RADAR_COLUMN:an,POLAR_LINE:nn,POLAR_AREA:tn,POLAR_SCATTER:on,RENDER:Nn,PLOT_AREA_CLICK:Dn,PLOT_AREA_HOVER:An,PLOT_AREA_LEAVE:En,LOGARITHMIC:Un,DRAG:In,DRAG_START:Rn,DRAG_END:Mn,ZOOM_START:Fn,ZOOM:Pn,ZOOM_END:zn,SELECT_START:Bn,SELECT:Ln,SELECT_END:Hn,PANE_RENDER:Wn,GAP:Lt,DONUT:Yt,INSIDE_END:qn,INSIDE_BASE:Gn,OUTSIDE_END:$n,MOUSEWHEEL:Kn,MOUSEWHEEL_DELAY:Yn,SHOW_TOOLTIP:On,HIDE_TOOLTIP:Vn,EQUALLY_SPACED_SERIES:bn,ABOVE:Ht,BELOW:Nt},Xn=4,Zn=Ce.extend({init:function(e,t,n,i,o,r){Ce.fn.init.call(this,r),this.low=e,this.high=t,this.isVertical=n,this.chart=i,this.series=o},reflow:function(e){var t,n=this.options.endCaps,i=this.isVertical,o=this.getAxis(),r=o.getSlot(this.low,this.high),a=e.center(),s=this.getCapsWidth(e,i),l=i?a.x:a.y,d=l-s,c=l+s;i?(t=[new Se(a.x,r.y1),new Se(a.x,r.y2)],n&&t.push(new Se(d,r.y1),new Se(c,r.y1),new Se(d,r.y2),new Se(c,r.y2)),this.box=new Te(d,r.y1,c,r.y2)):(t=[new Se(r.x1,a.y),new Se(r.x2,a.y)],n&&t.push(new Se(r.x1,d),new Se(r.x1,c),new Se(r.x2,d),new Se(r.x2,c)),this.box=new Te(r.x1,d,r.x2,c)),this.linePoints=t},getCapsWidth:function(e,t){var n=t?e.width():e.height(),i=Math.min(Math.floor(n/2),Xn)||Xn;return i},createVisual:function(){var e=this,t=this.options,n=t.visual;n?this.visual=n({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:t.endCaps,color:t.color,line:t.line},createVisual:function(){e.createDefaultVisual();var t=e.visual;return delete e.visual,t}}):this.createDefaultVisual()},createDefaultVisual:function(){var e,t,n=this,i=this,o=i.options,r=i.linePoints,a={stroke:{color:o.color,width:o.line.width,dashType:o.line.dashType}};for(Ce.fn.createVisual.call(this),e=0;e<r.length;e+=2)t=new it(a).moveTo(r[e].x,r[e].y).lineTo(r[e+1].x,r[e+1].y),De(t),n.visual.append(t)}}),Ae(Zn,{animation:{type:xt,delay:yt},endCaps:!0,line:{width:2},zIndex:1}),Jn=Zn.extend({getAxis:function(){var e=this.chart.seriesValueAxis(this.series);return e}}),ei=5,ti=Ce.extend({init:function(e,t){Ce.fn.init.call(this,t),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(t.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()},render:function(){this.traverseDataPoints(this.addValue.bind(this))},pointOptions:function(e,t){var n,i=this.seriesOptions[t];return i||(n=this.pointType().prototype.defaults,this.seriesOptions[t]=i=Fe({},n,{vertical:!this.options.invertAxes},e)),i},plotValue:function(e){var t,n,i,o,r,a,s,l;if(!e)return 0;if(this.options.isStacked100&&ie(e.value)){for(t=e.categoryIx,n=this.categoryPoints[t],i=[],o=0,r=0;r<n.length;r++)if(a=n[r]){if(s=e.series.stack,l=a.series.stack,s&&l&&s.group!==l.group)continue;ie(a.value)&&(o+=Math.abs(a.value),i.push(Math.abs(a.value)))}if(o>0)return e.value/o}return e.value},plotRange:function(e,t){var n,i,o,r,a,s,l,d,c,u,h,p,f,m=this;if(void 0===t&&(t=0),n=this.categoryPoints[e.categoryIx],this.options.isStacked){for(i=this.plotValue(e),o=i>=0,r=t,a=!1,s=0;s<n.length&&(l=n[s],e!==l);s++){if(d=e.series.stack,c=l.series.stack,d&&c){if(typeof d===oe.STRING&&d!==c)continue;if(d.group&&d.group!==c.group)continue}u=m.plotValue(l),(u>=0&&o||u<0&&!o)&&(r+=u,i+=u,a=!0,m.options.isStacked100&&(i=Math.min(i,1)))}return a&&(r-=t),[r,i]}return h=e.series,p=this.seriesValueAxis(h),f=this.categoryAxisCrossingValue(p),[f,te.convertableToNumber(e.value)?e.value:f]},stackLimits:function(e,t){var n,i,o,r,a,s=this,l=re,d=ae;for(n=0;n<this.categoryPoints.length;n++)if(i=s.categoryPoints[n])for(o=0;o<i.length;o++)r=i[o],r&&(r.series.stack!==t&&r.series.axis!==e||(a=s.plotRange(r,0)[1],ke(a)&&isFinite(a)&&(d=Math.max(d,a),l=Math.min(l,a))));return{min:l,max:d}},updateStackRange:function(){var e,t,n,i,o,r,a=this,s=this.options,l=s.isStacked,d=s.series,c={};if(l)for(e=0;e<d.length;e++)t=d[e],n=t.axis,i=n+t.stack,o=c[i],o||(o=a.stackLimits(n,t.stack),r=a.errorTotals,r&&(r.negative.length&&(o.min=Math.min(o.min,te.sparseArrayLimits(r.negative).min)),r.positive.length&&(o.max=Math.max(o.max,te.sparseArrayLimits(r.positive).max))),o.min!==re||o.max!==ae?c[i]=o:o=null),o&&(a.valueAxisRanges[n]=o)},addErrorBar:function(e,t,n){var i,o=e.value,r=e.series,a=e.seriesIx,s=e.options.errorBars,l=t.fields[At],d=t.fields[Et];
ie(l)&&ie(d)?i={low:l,high:d}:s&&ke(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new wt(s.value,r,se),i=this.seriesErrorRanges[a].getErrorRange(o,s.value)),i&&(e.low=i.low,e.high=i.high,this.addPointErrorBar(e,n))},addPointErrorBar:function(e,t){var n,i,o,r=!this.options.invertAxes,a=e.options.errorBars,s=e.series,l=e.low,d=e.high;this.options.isStacked?(n=this.stackedErrorRange(e,t),l=n.low,d=n.high):(i={categoryIx:t,series:s},this.updateRange({value:l},i),this.updateRange({value:d},i)),o=new Jn(l,d,r,this,s,a),e.errorBars=[o],e.append(o)},stackedErrorRange:function(e,t){var n=this.plotRange(e,0)[1]-e.value,i=e.low+n,o=e.high+n;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[t]=Math.min(this.errorTotals.negative[t]||0,i)),o>0&&(this.errorTotals.positive[t]=Math.max(this.errorTotals.positive[t]||0,o)),{low:i,high:o}},addValue:function(t,n){var i,o,r=n.categoryIx,a=n.series,s=n.seriesIx,l=this.categoryPoints[r];l||(this.categoryPoints[r]=l=[]),i=this.seriesPoints[s],i||(this.seriesPoints[s]=i=[]),o=this.createPoint(t,n),o&&(e.extend(o,n),o.owner=this,o.noteText=t.fields.noteText,ke(o.dataItem)||(o.dataItem=a.data[r]),this.addErrorBar(o,t,r)),this.points.push(o),i.push(o),l.push(o),this.updateRange(t.valueFields,n)},evalPointOptions:function(e,t,n,i,r,a){var s,l={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},d=this._evalSeries[a];return ke(d)||(this._evalSeries[a]=d=o(e,{},l,!0)),s=e,d&&(s=Fe({},s),o(s,{value:t,category:n,index:i,series:r,dataItem:r.data[i]},l)),s},updateRange:function(e,t){var n=t.series.axis,i=e.value,o=this.valueAxisRanges[n];isFinite(i)&&null!==i&&(o=this.valueAxisRanges[n]=o||{min:re,max:ae},o.min=Math.min(o.min,i),o.max=Math.max(o.max,i))},seriesValueAxis:function(e){var t=this.plotArea,n=e.axis,i=n?t.namedValueAxes[n]:t.valueAxis;if(!i)throw Error("Unable to locate value axis with name "+n);return i},reflow:function(e){var t=this,n=this.categorySlots=[],i=this.points,o=this.categoryAxis,r=0;this.traverseDataPoints(function(e,a){var s,l,d,c=a.categoryIx,u=a.series,h=t.seriesValueAxis(u),p=i[r++],f=n[c];f||(n[c]=f=t.categorySlot(o,c,h)),p&&(s=t.plotRange(p,h.startValue()),l=t.valueSlot(h,s),l?(d=t.pointSlot(f,l),p.aboveAxis=t.aboveAxis(p,h),p.stackValue=s[1],t.options.isStacked100&&(p.percentage=t.plotValue(p)),t.reflowPoint(p,d)):p.visible=!1)}),this.reflowCategories(n),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=e},valueSlot:function(e,t){return e.getSlot(t[0],t[1],!this.options.clip)},limitPoints:function(){var e,t=this,n=this.categoryPoints,i=n[0].concat(Pe(n));for(e=0;e<i.length;e++)i[e]&&t.limitPoint(i[e])},limitPoint:function(e){var t=this.categoryAxis.limitSlot(e.box);t.equals(e.box)||e.reflow(t)},aboveAxis:function(e,t){var n=this.categoryAxisCrossingValue(t),i=e.value;return t.options.reverse?i<n:i>=n},categoryAxisCrossingValue:function(e){var t=this.categoryAxis,n=e.options,i=[].concat(n.axisCrossingValues||n.axisCrossingValue);return i[t.axisIndex||0]||0},reflowPoint:function(e,t){e.reflow(t)},reflowCategories:function(){},pointSlot:function(e,t){var n=this.options,i=n.invertAxes,o=i?t:e,r=i?e:t;return new Te(o.x1,r.y1,o.x2,r.y2)},categorySlot:function(e,t){return e.getSlot(t)},traverseDataPoints:function(e){var t,n,i,o,a,s,l,d=this,c=this.options.series,u=r(c),h=c.length;for(t=0;t<h;t++)d._outOfRangeCallback(c[t],"_outOfRangeMinPoint",t,e);for(n=0;n<u;n++)for(i=0;i<h;i++)o=c[i],a=d.categoryAxis.categoryAt(n),s=d._bindPoint(o,i,n),e(s,{category:a,categoryIx:n,categoriesCount:u,series:o,seriesIx:i});for(l=0;l<h;l++)d._outOfRangeCallback(c[l],"_outOfRangeMaxPoint",l,e)},_outOfRangeCallback:function(e,t,n,i){var o,r,a=e[t];a&&(o=a.categoryIx,r=this._bindPoint(e,n,o,a.item),i(r,{category:a.category,categoryIx:o,series:e,seriesIx:n,dataItem:a.item}))},_bindPoint:function(e,t,n,i){var o,r;return this._bindCache||(this._bindCache=[]),o=this._bindCache[t],o||(o=this._bindCache[t]=[]),r=o[n],r||(r=o[n]=mt.current.bindPoint(e,n,i)),r},formatPointValue:function(e,t){return null===e.value?"":this.chartService.format.auto(t,e.value)},pointValue:function(e){return e.valueFields.value}}),Ae(ti,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0}),ni={click:function(e,t){return e.trigger(xn,this.eventArgs(t))},hover:function(e,t){return e.trigger(Cn,this.eventArgs(t))},over:function(e,t){return e.trigger(Sn,this.eventArgs(t))},out:function(e,t){return e.trigger(Tn,this.eventArgs(t))},eventArgs:function(e){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:ze(e),originalEvent:e,point:this}}},ii={createNote:function(){var e=this.options.notes,t=this.noteText||e.label.text;e.visible!==!1&&ke(t)&&null!==t&&(this.note=new te.Note({value:this.value,text:t,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},oi=Ce.extend({init:function(e,t){Ce.fn.init.call(this),this.value=e,this.options=t,this.aboveAxis=Me(this.options.aboveAxis,!0),this.tooltipTracking=!0},render:function(){var e,t,n,i=this.options,o=i.markers,r=i.labels;this._rendered||(this._rendered=!0,o.visible&&o.size&&(this.marker=this.createMarker(),this.append(this.marker)),r.visible&&(e=Be(r),t=this.pointData(),n=this.value,e?n=e(t):r.format&&(n=this.formatValue(r.format)),this.label=new Le(n,Fe({align:le,vAlign:le,margin:{left:5,right:5},zIndex:Me(r.zIndex,this.series.zIndex)},r),t),this.append(this.label)),this.createNote(),this.errorBar&&this.append(this.errorBar))},markerBorder:function(){var e=this.options.markers,t=e.background,n=Fe({color:this.color},e.border);return ke(n.color)||(n.color=new st(t).brightness(St).toHex()),n},createVisual:function(){},createMarker:function(){var e=this.options.markers,t=new He({type:e.type,width:e.size,height:e.size,rotation:e.rotation,background:e.background,border:this.markerBorder(),opacity:e.opacity,zIndex:Me(e.zIndex,this.series.zIndex),animation:e.animation,visual:e.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});return t},markerBox:function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},reflow:function(e){var t,n,i,o,r=this,a=this,s=a.options,l=a.aboveAxis,d=s.vertical;if(this.render(),this.box=e,t=e.clone(),d?l?t.y1-=t.height():t.y2+=t.height():l?t.x1+=t.width():t.x2-=t.width(),this._childBox=t,this.marker&&this.marker.reflow(t),this.reflowLabel(t),this.errorBars)for(n=0;n<this.errorBars.length;n++)r.errorBars[n].reflow(t);this.note&&(i=this.markerBox(),s.markers.visible&&s.markers.size||(o=i.center(),i=new Te(o.x,o.y,o.x,o.y)),this.note.reflow(i))},reflowLabel:function(e){var t=this,n=t.options,i=t.label,o=n.labels.position;i&&(o=o===Ht?de:o,o=o===Nt?ce:o,i.reflow(e),i.box.alignTo(this.markerBox(),o),i.reflow(i.box))},createHighlight:function(){var e=this.options.highlight.markers,t=this.markerBorder().color,n=this.options.markers,i=n.size+(n.border.width||0)+(e.border.width||0),o=new He({type:n.type,width:i,height:i,rotation:n.rotation,background:e.color||t,border:{color:e.border.color,width:e.border.width,opacity:Me(e.border.opacity,1)},opacity:Me(e.opacity,1)});return o.reflow(this._childBox),o.getElement()},highlightVisual:function(){return(this.marker||{}).visual},highlightVisualArgs:function(){var e,t,n,i,o,r=this.marker;return r?(t=r.paddingBox.toRect(),e=r.visual):(n=this.options.markers.size,i=n/2,o=this.box.center(),t=new lt.Rect([o.x-i,o.y-i],[n,n])),{options:this.options,rect:t,visual:e}},tooltipAnchor:function(){var e,t,n,i,o=this.markerBox(),r=this.owner.pane.clipBox(),a=!r||r.overlaps(o);if(a)return e=o.x2+Tt,t=ue,this.aboveAxis?(n=o.y1,i=ce):(n=o.y2,i=de),{point:new Se(e,n),align:{horizontal:t,vertical:i}}},formatValue:function(e){return this.owner.formatPointValue(this,e)},overlapsBox:function(e){var t=this.markerBox();return t.overlaps(e)},unclipElements:function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},pointData:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}}}),oi.prototype.defaults={vertical:!0,markers:{visible:!0,background:he,size:Pt,type:pe,border:{width:2},opacity:1},labels:{visible:!1,position:Ht,margin:Ne(3),padding:Ne(4),animation:{type:xt,delay:yt}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:oe.HIGHLIGHT_ZINDEX},errorBars:{line:{width:1}}},Fe(oi.prototype,ni),Fe(oi.prototype,ii),ri=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this),this.linePoints=e,this.series=t,this.seriesIx=n},points:function(){return this.toGeometryPoints(this.linePoints)},toGeometryPoints:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t]&&e[t].visible!==!1&&i.push(e[t]._childBox.toRect().center());return i},createVisual:function(){var e=this,t=this.series.visual;t?(this.visual=t({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return e.segmentVisual(),e.visual}}),this.visual&&!ke(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},segmentVisual:function(){var e,t=this,n=t.options,i=t.series,o=i.color,r=i._defaults;Ie(o)&&r&&(o=r.color),e=it.fromPoints(this.points(),{stroke:{color:o,width:i.width,opacity:i.opacity,dashType:i.dashType},zIndex:i.zIndex}),n.closed&&e.close(),this.visual=e},aliasFor:function(e,t){return this.parent.getNearestPoint(t.x,t.y,this.seriesIx)}}),Ae(ri,{closed:!1}),ai={calculateStepPoints:function(e){var t,n,i,o=this.parent.plotArea.seriesCategoryAxis(this.series),r=o.options,s=r.justified,l=r.vertical,d=r.reverse,c=l?fe:me,u=l?me:fe,h=d?2:1,p=h,f=a(e[0],c,h,u,p),m=[f];for(t=1;t<e.length;t++)n=a(e[t],c,h,u,p),f[c]!==n[c]&&(i=new dt,i[c]=f[c],i[u]=n[u],m.push(i,n)),f=n;return s?f!==Pe(m)&&m.push(f):m.push(a(Pe(e),c,h,u,d?1:2)),m}},si=ri.extend({points:function(){return this.calculateStepPoints(this.linePoints)}}),Fe(si.prototype,ai),li=ri.extend({segmentVisual:function(){var e,t,n,i=this.series,o=i._defaults,r=i.color;Ie(r)&&o&&(r=o.color),e=new Oe(this.options.closed),t=e.process(this.points()),n=new it({stroke:{color:r,width:i.width,opacity:i.opacity,dashType:i.dashType},zIndex:i.zIndex}),n.segments.push.apply(n.segments,t),this.visual=n}}),di={renderSegments:function(){var e,t,n,i,o,r,a,s,l=this,d=this,c=d.options,u=d.seriesPoints,h=c.series,p=u.length;for(this._segments=[],t=0;t<p;t++){for(n=h[t],i=l.sortPoints(u[t]),o=i.length,r=[],a=0;a<o;a++)s=i[a],s?r.push(s):l.seriesMissingValues(n)!==Bt&&(r.length>1&&(e=l.createSegment(r,n,t,e),l._addSegment(e)),r=[]);r.length>1&&(e=l.createSegment(r,n,t,e),l._addSegment(e))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(e){this._segments.push(e),e.parent=this},sortPoints:function(e){return e},seriesMissingValues:function(e){var t=e.missingValues,n=!t&&this.options.isStacked;return n?zt:t||Bt},getNearestPoint:function(e,t,n){var i,o,r,a,s,l=new Se(e,t),d=this.seriesPoints[n],c=re;for(o=0;o<d.length;o++)r=d[o],r&&ke(r.value)&&null!==r.value&&r.visible!==!1&&(a=r.box,s=a.center().distanceTo(l),s<c&&(i=r,c=s));return i}},ci=ot.extend({setup:function(){this._setEnd(this.options.box.x1)},step:function(e){var t=this.options.box;this._setEnd(te.interpolateValue(t.x1,t.x2,e))},_setEnd:function(e){var t=this.element,n=t.segments,i=n[1].anchor(),o=n[2].anchor();t.suspend(),i.setX(e),t.resume(),o.setX(e)}}),Ae(ci,{duration:yt}),rt.current.register("clip",ci),ui={createAnimation:function(){var e,t,n=this.getRoot();n&&(n.options||{}).transitions!==!1&&(e=n.size(),t=it.fromRect(e.toRect()),this.visual.clip(t),this.animation=new ci(t,{box:e}),s(this.options.series)&&this._setChildrenAnimation(t))},_setChildrenAnimation:function(e){var t,n,i=this.animationPoints();for(t=0;t<i.length;t++)n=i[t],n&&n.visual&&ke(n.visual.options.zIndex)&&n.visual.clip(e)}},hi=ti.extend({render:function(){ti.fn.render.call(this),this.updateStackRange(),this.renderSegments()},pointType:function(){return oi},createPoint:function(e,t){var n,i,o,r=t.categoryIx,a=t.category,s=t.series,l=t.seriesIx,d=this.seriesMissingValues(s),c=e.valueFields.value;if(!ke(c)||null===c){if(d!==zt)return null;c=0}return n=this.pointOptions(s,l),n=this.evalPointOptions(n,c,a,r,s,l),i=e.fields.color||s.color,Ie(s.color)&&(i=n.color),o=new oi(c,n),o.color=i,this.append(o),o},plotRange:function(e){var t,n,i,o,r=this,a=this.plotValue(e);if(this.options.isStacked)for(t=e.categoryIx,n=this.categoryPoints[t],i=0;i<n.length&&(o=n[i],e!==o);i++)a+=r.plotValue(o),r.options.isStacked100&&(a=Math.min(a,1));return[a,a]},createSegment:function(e,t,n){var i,o=t.style;return new(i=o===Vt?si:o===Ot?li:ri)(e,t,n)},animationPoints:function(){var e,t=this.points,n=[];for(e=0;e<t.length;e++)n.push((t[e]||{}).marker);return n.concat(this._segments)}}),Fe(hi.prototype,di,ui),pi=ri.extend({init:function(e,t,n,i,o){ri.fn.init.call(this,e,t,n),this.prevSegment=i,this.stackPoints=o},createVisual:function(){var e=this.series,t=e._defaults,n=e.line||{},i=e.color;Ie(i)&&t&&(i=t.color),this.visual=new at({zIndex:e.zIndex}),this.createFill({fill:{color:i,opacity:e.opacity},stroke:null}),n.width>0&&n.visible!==!1&&this.createStroke({stroke:Fe({color:i,opacity:e.opacity,lineCap:"butt"},n)})},strokeSegments:function(){var e=this._strokeSegments;return e||(e=this._strokeSegments=this.createStrokeSegments()),e},createStrokeSegments:function(){return this.segmentsFromPoints(this.points())},stackSegments:function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},createStackSegments:function(e){return this.segmentsFromPoints(this.toGeometryPoints(e)).reverse()},segmentsFromPoints:function(e){return e.map(function(e){return new lt.Segment(e)})},createStroke:function(e){var t=new it(e);t.segments.push.apply(t.segments,this.strokeSegments()),this.visual.append(t)},hasStackSegment:function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},createFill:function(e){var t,n,i=this.strokeSegments(),o=i.slice(0),r=this.hasStackSegment();r&&(t=this.stackSegments(),Ve(o,t)),n=new it(e),n.segments.push.apply(n.segments,o),!r&&i.length>1&&this.fillToAxes(n),this.visual.append(n)},fillToAxes:function(e){var t=this.parent,n=t.options.invertAxes,i=t.seriesValueAxis(this.series),o=t.categoryAxisCrossingValue(i),r=i.getSlot(o,o,!0),a=this.strokeSegments(),s=a[0].anchor(),l=Pe(a).anchor(),d=n?r.x1:r.y1;n?e.lineTo(d,l.y).lineTo(d,s.y):e.lineTo(l.x,d).lineTo(s.x,d)}}),fi=pi.extend({createStrokeSegments:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},createStackSegments:function(e){return this.segmentsFromPoints(this.calculateStepPoints(e)).reverse()}}),Fe(fi.prototype,ai),mi=pi.extend({createStrokeSegments:function(){var e=new Oe(this.options.closed),t=this.points();return e.process(t)},createStackSegments:function(){var e,t,n=this.strokeSegments(),i=[];for(e=n.length-1;e>=0;e--)t=n[e],i.push(new lt.Segment(t.anchor(),t.controlOut(),t.controlIn()));return i}}),gi=hi.extend({createSegment:function(e,t,n,i){var o,r,a,s,l=this.options.isStacked,d=(t.line||{}).style;return l&&n>0&&i&&(a=this.seriesMissingValues(t),"gap"!==a?(r=i.linePoints,o=i):r=this._gapStackPoints(e,n,d)),new(s=d===Vt?fi:d===Ot?mi:pi)(e,t,n,o,r)},reflow:function(e){var t,n,i,o,r=this;if(hi.fn.reflow.call(this,e),t=this._stackPoints)for(n=0;n<t.length;n++)i=t[n],o=r.categoryAxis.getSlot(i.categoryIx),i.reflow(o)},_gapStackPoints:function(e,t,n){var i,o,r,a,s,l,d,c,u=this,h=this.seriesPoints,p=e[0].categoryIx,f=e.length;for(p<0&&(p=0,f--),i=p+f,o=this.seriesOptions[0]._outOfRangeMinPoint?1:0,r=[],this._stackPoints=this._stackPoints||[],a=p;a<i;a++){s=a+o,l=t,d=void 0;do l--,d=h[l][s];while(l>0&&!d);d?(n!==Vt&&a>p&&!h[l][s-1]&&r.push(u._previousSegmentPoint(a,s,s-1,l)),r.push(d),n!==Vt&&a+1<i&&!h[l][s+1]&&r.push(u._previousSegmentPoint(a,s,s+1,l))):(c=u._createGapStackPoint(a),u._stackPoints.push(c),r.push(c))}return r},_previousSegmentPoint:function(e,t,n,i){for(var o,r=this.seriesPoints,a=i;a>0&&!o;)a--,o=r[a][n];return o?o=r[a][t]:(o=this._createGapStackPoint(e),this._stackPoints.push(o)),o},_createGapStackPoint:function(e){var t=this.pointOptions({},0),n=new oi(0,t);return n.categoryIx=e,n.series={},n},seriesMissingValues:function(e){return e.missingValues||zt}}),vi=ne.extend({init:function(){this.axisRanges={}},update:function(e){var t,n,i,o=this.axisRanges;for(t in e)n=e[t],i=o[t],o[t]=i=i||{min:re,max:ae},i.min=Math.min(i.min,n.min),i.max=Math.max(i.max,n.max)},reset:function(e){this.axisRanges[e]=void 0},query:function(e){return this.axisRanges[e]}}),_i=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this,t),this.textBox=new Le(e,this.options,n),this.append(this.textBox)},createVisual:function(){this.textBox.options.noclip=this.options.noclip},reflow:function(e){var t=this.options,n=t.vertical,i=t.aboveAxis,o=this.children[0],r=o.options,a=o.box,s=o.options.padding,l=e;r.align=n?le:ue,r.vAlign=n?de:le,t.position===qn?n?(r.vAlign=de,!i&&a.height()<e.height()&&(r.vAlign=ce)):r.align=i?ge:ue:t.position===le?(r.vAlign=le,r.align=le):t.position===Gn?n?r.vAlign=i?ce:de:r.align=i?ue:ge:t.position===$n&&(n?l=i?new Te(e.x1,e.y1-a.height(),e.x2,e.y1):new Te(e.x1,e.y2,e.x2,e.y2+a.height()):(r.align=le,l=i?new Te(e.x2,e.y1,e.x2+a.width(),e.y2):new Te(e.x1-a.width(),e.y1,e.x1,e.y2))),t.rotation||(n?s.left=s.right=(l.width()-o.contentBox.width())/2:s.top=s.bottom=(l.height()-o.contentBox.height())/2),o.reflow(l)},alignToClipBox:function(e){var t,n=this.options.vertical,i=n?me:fe,o=i+"1",r=i+"2",a=this.children[0],s=this.parent.box;(s[o]<e[o]||e[r]<s[r])&&(t=a.paddingBox.clone(),t[o]=Math.max(s[o],e[o]),t[r]=Math.min(s[r],e[r]),this.reflow(t))}}),Ae(_i,{position:$n,margin:Ne(3),padding:Ne(4),color:ve,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:xt,delay:yt},zIndex:2}),bi=6,wi=Ce.extend({init:function(e,t){Ce.fn.init.call(this),this.options=t,this.color=t.color||he,this.aboveAxis=Me(this.options.aboveAxis,!0),this.value=e},render:function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},createLabel:function(){var e,t,n,i=this.options,o=i.labels;o.visible&&(e=this.pointData(),t=Be(o),n=t?t(e):this.formatValue(o.format),this.label=new _i(n,Fe({vertical:i.vertical},o),e),this.append(this.label))},formatValue:function(e){return this.owner.formatPointValue(this,e)},reflow:function(e){var t,n,i=this;if(this.render(),t=this.label,this.box=e,t&&(t.options.aboveAxis=this.aboveAxis,t.reflow(e)),this.note&&this.note.reflow(e),this.errorBars)for(n=0;n<this.errorBars.length;n++)i.errorBars[n].reflow(e)},createVisual:function(){var e,t=this,n=this,i=n.box,o=n.options,r=o.visual;this.visible!==!1&&(Ce.fn.createVisual.call(this),r?(e=this.rectVisual=r({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:i.toRect(),createVisual:function(){var e=new at;return t.createRect(e),e},options:o}),e&&this.visual.append(e)):i.width()>0&&i.height()>0&&this.createRect(this.visual))},createRect:function(e){var t,n,i,o,r,a=this.options,s=a.border,d=ke(s.opacity)?s.opacity:a.opacity,c=this.box.toRect();c.size.width=Math.round(c.size.width),t=this.rectVisual=it.fromRect(c,{fill:{color:this.color,opacity:a.opacity},stroke:{color:this.getBorderColor(),width:s.width,opacity:d,dashType:s.dashType}}),n=this.box.width(),i=this.box.height(),o=a.vertical?n:i,o>bi&&(De(t),(n<1||i<1)&&(t.options.stroke.lineJoin="round")),e.append(t),l(a)&&(r=this.createGradientOverlay(t,{baseColor:this.color},Fe({end:a.vertical?void 0:[0,1]},a.overlay)),e.append(r))},createHighlight:function(e){var t=it.fromRect(this.box.toRect(),e);return De(t)},highlightVisual:function(){return this.rectVisual},highlightVisualArgs:function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},getBorderColor:function(){var e=this.color,t=this.options.border,n=t._brightness||St,i=t.color;return ke(i)||(i=new st(e).brightness(n).toHex()),i},tooltipAnchor:function(){var e,t,n,i,o=this,r=o.options,a=o.box,s=o.aboveAxis,l=this.owner.pane.clipBox()||a,d=ue,c=de;return r.vertical?(e=Math.min(a.x2,l.x2)+Tt,s?t=Math.max(a.y1,l.y1):(t=Math.min(a.y2,l.y2),c=ce)):(n=Math.max(a.x1,l.x1),i=Math.min(a.x2,l.x2),r.isStacked?(c=ce,s?(d=ge,e=i):e=n,t=Math.max(a.y1,l.y1)-Tt):(s?e=i+Tt:(e=n-Tt,d=ge),t=Math.max(a.y1,l.y1))),{point:new Se(e,t),align:{horizontal:d,vertical:c}}},overlapsBox:function(e){return this.box.overlaps(e)},pointData:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}),Fe(wi.prototype,ni),Fe(wi.prototype,ii),wi.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}},ki=Ce.extend({init:function(e){Ce.fn.init.call(this,e),this.forEach=e.rtl?c:d},reflow:function(e){var t=this.options,n=t.vertical,i=t.gap,o=t.spacing,r=this.children,a=r.length,s=n?me:fe,l=a+i+o*(a-1),d=(n?e.height():e.width())/l,c=e[s+1]+d*(i/2);this.forEach(r,function(t,n){var i=(t.box||e).clone();i[s+1]=c,i[s+2]=c+d,t.reflow(i),n<a-1&&(c+=d*o),c+=d})}}),Ae(ki,{vertical:!1,gap:0,spacing:0}),yi=Ce.extend({reflow:function(e){var t,n,i,o=this,r=this.options.vertical?fe:me,a=this.children,s=a.length,l=this.box=new Te;for(t=0;t<s;t++)n=a[t],n.visible!==!1&&(i=n.box.clone(),i.snapTo(e,r),0===t&&(l=o.box=i.clone()),n.reflow(i),l.wrap(i))}}),Ae(yi,{vertical:!0}),xi=ti.extend({render:function(){ti.fn.render.call(this),this.updateStackRange()},pointType:function(){return wi},clusterType:function(){return ki},stackType:function(){return yi},stackLimits:function(e,t){var n=ti.fn.stackLimits.call(this,e,t);return n},createPoint:function(e,t){var n,i,o,r,a,s,l=t.categoryIx,d=t.category,c=t.series,u=t.seriesIx,h=this,p=h.options,f=h.children,m=p.isStacked,g=this.pointValue(e),v=this.pointOptions(c,u),_=v.labels;return m&&_.position===$n&&(_.position=qn),v.isStacked=m,n=e.fields.color||c.color,g<0&&v.negativeColor&&(n=v.negativeColor),v=this.evalPointOptions(v,g,d,l,c,u),Ie(c.color)&&(n=v.color),i=this.pointType(),o=new i(g,v),o.color=n,r=f[l],r||(a=this.clusterType(),r=new a({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(r)),m?(s=this.getStackWrap(c,r),s.append(o)):r.append(o),o},getStackWrap:function(e,t){var n,i,o,r=e.stack,a=r?r.group||r:r,s=t.children;if(typeof a===oe.STRING){for(i=0;i<s.length;i++)if(s[i]._stackGroup===a){n=s[i];break}}else n=s[0];return n||(o=this.stackType(),n=new o({vertical:!this.options.invertAxes}),n._stackGroup=a,t.append(n)),n},categorySlot:function(e,t,n){var i,o,r=this.options,a=e.getSlot(t),s=n.startValue();return r.isStacked&&(i=n.getSlot(s,s,!0),o=r.invertAxes?fe:me,a[o+1]=a[o+2]=i[o+1]),a},reflowCategories:function(e){var t,n=this.children,i=n.length;for(t=0;t<i;t++)n[t].reflow(e[t])},createAnimation:function(){this._setAnimationOptions(),ti.fn.createAnimation.call(this),s(this.options.series)&&this._setChildrenAnimation()},_setChildrenAnimation:function(){var e,t,n,i=this,o=this.points;for(e=0;e<o.length;e++)t=o[e],n=t.visual,n&&ke(n.options.zIndex)&&(t.options.animation=i.options.animation,t.createAnimation())},_setAnimationOptions:function(){var e,t,n=this.options,i=n.animation||{};n.isStacked?(t=this.seriesValueAxis(n.series[0]),e=t.getSlot(t.startValue())):e=this.categoryAxis.getSlot(0),i.origin=new dt(e.x1,e.y1),i.vertical=!n.invertAxes}}),Ae(xi,{animation:{type:Ut}}),Ci=Ce.extend({init:function(e,t){Ce.fn.init.call(this,t),this.value=e},reflow:function(e){var t,n,i=this,o=i.options,r=i.value,a=i.owner,s=a.seriesValueAxis(o),l=s.getSlot(r.open,r.close),d=s.getSlot(r.low,r.high);l.x1=d.x1=e.x1,l.x2=d.x2=e.x2,this.realBody=l,t=d.center().x,n=[],n.push([[t,d.y1],[t,l.y1]]),n.push([[t,l.y2],[t,d.y2]]),this.lines=n,this.box=d.clone().wrap(l),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},reflowNote:function(){this.note&&this.note.reflow(this.box)},createVisual:function(){Ce.fn.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},mainVisual:function(e){var t=new at;return this.createBody(t,e),this.createLines(t,e),t},createBody:function(e,t){var n=it.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:t.opacity},stroke:null});t.border.width>0&&n.options.set("stroke",{color:this.getBorderColor(),width:t.border.width,dashType:t.border.dashType,opacity:Me(t.border.opacity,t.opacity)}),De(n),e.append(n),l(t)&&e.append(this.createGradientOverlay(n,{baseColor:this.color},Fe({end:t.vertical?void 0:[0,1]},t.overlay)))},createLines:function(e,t){this.drawLines(e,t,this.lines,t.line)},drawLines:function(e,t,n,i){var o,r,a;if(n)for(o={stroke:{color:i.color||this.color,opacity:Me(i.opacity,t.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},r=0;r<n.length;r++)a=it.fromPoints(n[r],o),De(a),e.append(a)},getBorderColor:function(){var e=this.options.border,t=e.color;return ke(t)||(t=new st(this.color).brightness(e._brightness).toHex()),t},createOverlay:function(){var e=it.fromRect(this.box.toRect(),{fill:{color:he,opacity:0},stroke:null});this.visual.append(e)},createHighlight:function(){var e,t=this.options.highlight,n=this.color;return this.color=t.color||this.color,e=this.mainVisual(Fe({},this.options,{line:{color:this.getBorderColor()}},t)),this.color=n,e},highlightVisual:function(){return this._mainVisual},highlightVisualArgs:function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},tooltipAnchor:function(){var e=this.box,t=this.owner.pane.clipBox()||e;return{point:new Se(e.x2+Tt,Math.max(e.y1,t.y1)+Tt),align:{horizontal:ue,vertical:de}}},formatValue:function(e){return this.owner.formatPointValue(this,e)},overlapsBox:function(e){return this.box.overlaps(e)}}),Ae(Ci,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),Fe(Ci.prototype,ni),Fe(Ci.prototype,ii),Si=ti.extend({reflowCategories:function(e){var t,n=this.children,i=n.length;for(t=0;t<i;t++)n[t].reflow(e[t])},addValue:function(e,t){var n,i,o=t.categoryIx,r=t.category,a=t.series,s=t.seriesIx,l=this,d=l.children,c=l.options,h=e.valueFields,p=this.splitValue(h),f=u(p),m=a.data[o],g=this.categoryPoints[o];g||(this.categoryPoints[o]=g=[]),f&&(n=this.createPoint(e,t)),i=d[o],i||(i=new ki({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(i)),n&&(this.updateRange(h,t),i.append(n),n.categoryIx=o,n.category=r,n.series=a,n.seriesIx=s,n.owner=this,n.dataItem=m,n.noteText=e.fields.noteText),this.points.push(n),g.push(n)},pointType:function(){return Ci},createPoint:function(e,t){var n,i=t.categoryIx,o=t.category,r=t.series,a=t.seriesIx,s=this.pointType(),l=e.valueFields,d=Fe({},r),c=e.fields.color||r.color;return d=this.evalPointOptions(d,l,o,i,r,a),r.type===$t&&l.open>l.close&&(c=e.fields.downColor||r.downColor||r.color),Ie(r.color)&&(c=d.color),d.vertical=!this.options.invertAxes,n=new s(l,d),n.color=c,n},splitValue:function(e){return[e.low,e.open,e.close,e.high]},updateRange:function(e,t){var n=t.series.axis,i=this.splitValue(e),o=this.valueAxisRanges[n];o=this.valueAxisRanges[n]=o||{min:re,max:ae},o=this.valueAxisRanges[n]={min:Math.min.apply(Math,i.concat([o.min])),max:Math.max.apply(Math,i.concat([o.max]))}},formatPointValue:function(e,t){var n=e.value;return this.chartService.format.auto(t,n.open,n.high,n.low,n.close,e.category)},animationPoints:function(){return this.points}}),Fe(Si.prototype,ui),Ti=Ci.extend({init:function(e,t){Ci.fn.init.call(this,e,t),this.createNote()},reflow:function(e){var t,n,i,o,r=this,a=r.options,s=r.value,l=r.owner,d=l.seriesValueAxis(a);this.boxSlot=n=d.getSlot(s.q1,s.q3),this.realBody=n,this.reflowBoxSlot(e),this.whiskerSlot=t=d.getSlot(s.lower,s.upper),this.reflowWhiskerSlot(e),i=d.getSlot(s.median),s.mean&&(o=d.getSlot(s.mean),this.meanPoints=this.calcMeanPoints(e,o)),this.whiskerPoints=this.calcWhiskerPoints(n,t),this.medianPoints=this.calcMedianPoints(e,i),this.box=t.clone().wrap(n),this.reflowNote()},reflowBoxSlot:function(e){this.boxSlot.x1=e.x1,this.boxSlot.x2=e.x2},reflowWhiskerSlot:function(e){this.whiskerSlot.x1=e.x1,this.whiskerSlot.x2=e.x2},calcMeanPoints:function(e,t){return[[[e.x1,t.y1],[e.x2,t.y1]]]},calcWhiskerPoints:function(e,t){var n=t.center().x;return[[[n-5,t.y1],[n+5,t.y1],[n,t.y1],[n,e.y1]],[[n-5,t.y2],[n+5,t.y2],[n,t.y2],[n,e.y2]]]},calcMedianPoints:function(e,t){return[[[e.x1,t.y1],[e.x2,t.y1]]]},renderOutliers:function(e){var t,n,i,o,r=this,a=this.value,s=a.outliers||[],l=3*Math.abs(a.q3-a.q1),d=[],c=e.markers||{};for(t=0;t<s.length;t++)n=s[t],c=n<a.q3+l&&n>a.q1-l?e.outliers:e.extremes,i=Fe({},c.border),ke(i.color)||(i.color=ke(r.color)?r.color:new st(c.background).brightness(St).toHex()),o=new He({type:c.type,width:c.size,height:c.size,rotation:c.rotation,background:c.background,border:i,opacity:c.opacity}),o.value=n,d.push(o);return this.reflowOutliers(d),d},reflowOutliers:function(e){var t,n,i,o=this,r=this.owner.seriesValueAxis(this.options),a=this.box.center();for(t=0;t<e.length;t++)n=e[t].value,i=r.getSlot(n),o.options.vertical?i.move(a.x):i.move(void 0,a.y),o.box=o.box.wrap(i),e[t].reflow(i)},mainVisual:function(e){var t,n,i=Ci.fn.mainVisual.call(this,e),o=this.renderOutliers(e);for(t=0;t<o.length;t++)n=o[t].getElement(),n&&i.append(n);return i},createLines:function(e,t){this.drawLines(e,t,this.whiskerPoints,t.whiskers),this.drawLines(e,t,this.medianPoints,t.median),this.drawLines(e,t,this.meanPoints,t.mean)},getBorderColor:function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:Ci.fn.getBorderColor.call(this)}}),Ae(Ti,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:Pt,type:oe.CROSS,background:he,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:Pt,type:pe,background:he,border:{width:2,opacity:1},opacity:0}}),Fe(Ti.prototype,ni),Di=Ti.extend({reflowBoxSlot:function(e){this.boxSlot.y1=e.y1,this.boxSlot.y2=e.y2},reflowWhiskerSlot:function(e){this.whiskerSlot.y1=e.y1,this.whiskerSlot.y2=e.y2},calcMeanPoints:function(e,t){return[[[t.x1,e.y1],[t.x1,e.y2]]]},calcWhiskerPoints:function(e,t){var n=t.center().y;return[[[t.x1,n-5],[t.x1,n+5],[t.x1,n],[e.x1,n]],[[t.x2,n-5],[t.x2,n+5],[t.x2,n],[e.x2,n]]]},calcMedianPoints:function(e,t){return[[[t.x1,e.y1],[t.x1,e.y2]]]}}),Ai=Si.extend({addValue:function(e,t){
var n,i,o=t.categoryIx,r=t.category,a=t.series,s=t.seriesIx,l=this,d=l.children,c=l.options,h=e.valueFields,p=this.splitValue(h),f=u(p),m=a.data[o],g=this.categoryPoints[o];g||(this.categoryPoints[o]=g=[]),f&&(n=this.createPoint(e,t)),i=d[o],i||(i=new ki({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(i)),n&&(this.updateRange(h,t),i.append(n),n.categoryIx=o,n.category=r,n.series=a,n.seriesIx=s,n.owner=this,n.dataItem=m),this.points.push(n),g.push(n)},pointType:function(){return this.options.invertAxes?Di:Ti},splitValue:function(e){return[e.lower,e.q1,e.median,e.q3,e.upper]},updateRange:function(e,t){var n=t.series.axis,i=this.valueAxisRanges[n],o=this.splitValue(e).concat(this.filterOutliers(e.outliers));ke(e.mean)&&(o=o.concat(e.mean)),i=this.valueAxisRanges[n]=i||{min:re,max:ae},i=this.valueAxisRanges[n]={min:Math.min.apply(Math,o.concat([i.min])),max:Math.max.apply(Math,o.concat([i.max]))}},formatPointValue:function(e,t){var n=e.value;return this.chartService.format.auto(t,n.lower,n.q1,n.median,n.q3,n.upper,n.mean,e.category)},filterOutliers:function(e){var t,n,i=(e||[]).length,o=[];for(t=0;t<i;t++)n=e[t],ke(n)&&null!==n&&o.push(n);return o}}),Ei=Zn.extend({getAxis:function(){var e=this.chart.seriesAxes(this.series),t=this.isVertical?e.y:e.x;return t}}),Ii=Ce.extend({init:function(e,t){Ce.fn.init.call(this,t),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()},_initFields:function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},render:function(){this.traverseDataPoints(this.addValue.bind(this))},addErrorBar:function(e,t,n){var i,o=e.value[t],r=t+"Value",a=t+"ErrorLow",s=t+"ErrorHigh",l=n.seriesIx,d=n.series,c=e.options.errorBars,u=n[a],h=n[s];ie(o)&&(ie(u)&&ie(h)&&(i={low:u,high:h}),c&&ke(c[r])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[t][l]=this.seriesErrorRanges[t][l]||new wt(c[r],d,t),i=this.seriesErrorRanges[t][l].getErrorRange(o,c[r])),i&&this.addPointErrorBar(i,e,t))},addPointErrorBar:function(e,t,n){var i,o=e.low,r=e.high,a=t.series,s=t.options.errorBars,l=n===me,d={};t[n+"Low"]=o,t[n+"High"]=r,t.errorBars=t.errorBars||[],i=new Ei(o,r,l,this,a,s),t.errorBars.push(i),t.append(i),d[n]=o,this.updateRange(d,a),d[n]=r,this.updateRange(d,a)},addValue:function(t,n){var i,o=t.x,r=t.y,a=n.seriesIx,s=this.options.series[a],l=this.seriesMissingValues(s),d=this.seriesPoints[a],c=t;h(o)&&h(r)||(c=this.createMissingValue(c,l)),c&&(i=this.createPoint(c,n),i&&(e.extend(i,n),this.addErrorBar(i,fe,n),this.addErrorBar(i,me,n)),this.updateRange(c,n.series)),this.points.push(i),d.push(i)},seriesMissingValues:function(e){return e.missingValues},createMissingValue:function(){},updateRange:function(e,t){var n=this.chartService.intl,i=t.xAxis,o=t.yAxis,r=e.x,a=e.y,s=this.xAxisRanges[i],l=this.yAxisRanges[o];h(r)&&(s=this.xAxisRanges[i]=s||{min:re,max:ae},We(r)&&(r=Ue(n,r)),s.min=Math.min(s.min,r),s.max=Math.max(s.max,r)),h(a)&&(l=this.yAxisRanges[o]=l||{min:re,max:ae},We(a)&&(a=Ue(n,a)),l.min=Math.min(l.min,a),l.max=Math.max(l.max,a))},evalPointOptions:function(e,t,n){var i,r=n.series,a=n.seriesIx,s={defaults:r._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},l=this._evalSeries[a];return ke(l)||(this._evalSeries[a]=l=o(e,{},s,!0)),i=e,l&&(i=Fe({},e),o(i,{value:t,series:r,dataItem:n.dataItem},s)),i},pointType:function(){return oi},pointOptions:function(e,t){var n,i=this.seriesOptions[t];return i||(n=this.pointType().prototype.defaults,this.seriesOptions[t]=i=Fe({},n,{markers:{opacity:e.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},e)),i},createPoint:function(e,t){var n,i=t.series,o=this.pointOptions(i,t.seriesIx),r=t.color||i.color;return o=this.evalPointOptions(o,e,t),Ie(i.color)&&(r=o.color),n=new oi(e,o),n.color=r,this.append(n),n},seriesAxes:function(e){var t=e.xAxis,n=e.yAxis,i=this.plotArea,o=t?i.namedXAxes[t]:i.axisX,r=n?i.namedYAxes[n]:i.axisY;if(!o)throw Error("Unable to locate X axis with name "+t);if(!r)throw Error("Unable to locate Y axis with name "+n);return{x:o,y:r}},reflow:function(e){var t=this,n=this.points,i=!this.options.clip,o=0;this.traverseDataPoints(function(e,r){var a,s=n[o++],l=t.seriesAxes(r.series),d=l.x.getSlot(e.x,e.x,i),c=l.y.getSlot(e.y,e.y,i);s&&(d&&c?(a=t.pointSlot(d,c),s.reflow(a)):s.visible=!1)}),this.box=e},pointSlot:function(e,t){return new Te(e.x1,t.y1,e.x2,t.y2)},traverseDataPoints:function(e){var t,n,i,o,r,a,s,l=this,d=this,c=d.options.series,u=d.seriesPoints;for(t=0;t<c.length;t++)for(n=c[t],i=u[t],i||(u[t]=[]),o=0;o<n.data.length;o++)r=l._bindPoint(n,t,o),a=r.valueFields,s=r.fields,e(a,Fe({pointIx:o,series:n,seriesIx:t,dataItem:n.data[o],owner:l},s))},formatPointValue:function(e,t){var n=e.value;return this.chartService.format.auto(t,n.x,n.y)},animationPoints:function(){var e,t=this.points,n=[];for(e=0;e<t.length;e++)n.push((t[e]||{}).marker);return n}}),Ae(Ii,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),Fe(Ii.prototype,ui,{_bindPoint:ti.prototype._bindPoint}),Mi=oi.extend({init:function(e,t){oi.fn.init.call(this,e,t),this.category=e.category},createHighlight:function(){var e=this.options.highlight,t=e.border,n=this.options.markers,i=this.box.center(),o=(n.size+n.border.width+t.width)/2,r=new at,a=new nt.Circle(new lt.Circle([i.x,i.y+o/5+t.width/2],o+t.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:n.background,stops:[{offset:0,color:n.background,opacity:.3},{offset:1,color:n.background,opacity:0}]})}),s=new nt.Circle(new lt.Circle([i.x,i.y],o),{stroke:{color:t.color||new st(n.background).brightness(St).toHex(),width:t.width,opacity:t.opacity},fill:{color:n.background,opacity:e.opacity}});return r.append(a,s),r}}),Mi.prototype.defaults=Fe({},Mi.prototype.defaults,{labels:{position:le},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),Mi.prototype.defaults.highlight.zIndex=void 0,Ri=Ii.extend({_initFields:function(){this._maxSize=ae,Ii.fn._initFields.call(this)},addValue:function(e,t){null!==e.size&&(e.size>0||e.size<0&&t.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),Ii.fn.addValue.call(this,e,t)):(this.points.push(null),this.seriesPoints[t.seriesIx].push(null))},reflow:function(e){this.updateBubblesSize(e),Ii.fn.reflow.call(this,e)},pointType:function(){return Mi},createPoint:function(e,t){var n,i,o=t.series,r=o.data.length,a=t.pointIx*(yt/r),s={delay:a,duration:yt-a,type:qt},l=t.color||o.color;return e.size<0&&o.negativeValues.visible&&(l=Me(o.negativeValues.color,l)),n=Fe({labels:{animation:{delay:a,duration:yt-a}}},this.pointOptions(o,t.seriesIx),{markers:{type:pe,border:o.border,opacity:o.opacity,animation:s}}),n=this.evalPointOptions(n,e,t),Ie(o.color)&&(l=n.color),n.markers.background=l,i=new Mi(e,n),i.color=l,this.append(i),i},updateBubblesSize:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_=this,b=this,w=b.options.series,k=Math.min(e.width(),e.height());for(t=0;t<w.length;t++)for(n=w[t],i=_.seriesPoints[t],o=n.minSize||Math.max(.02*k,10),r=n.maxSize||.2*k,a=o/2,s=r/2,l=Math.PI*a*a,d=Math.PI*s*s,c=d-l,u=c/_._maxSize,h=0;h<i.length;h++)p=i[h],p&&(f=Math.abs(p.value.size)*u,m=Math.sqrt((l+f)/Math.PI),g=Me(p.options.zIndex,0),v=g+(1-m/s),Fe(p.options,{zIndex:v,markers:{size:2*m,zIndex:v},labels:{zIndex:v+1}}))},formatPointValue:function(e,t){var n=e.value;return this.chartService.format.auto(t,n.x,n.y,n.size,e.category)},createAnimation:function(){},createVisual:function(){}}),Ae(Ri,{tooltip:{format:"{3}"},labels:{format:"{3}"}}),Fi=He.extend({}),Fe(Fi.prototype,ni),Pi=Ce.extend({init:function(e,t){Ce.fn.init.call(this,t),this.aboveAxis=this.options.aboveAxis,this.color=t.color||he,this.value=e},render:function(){var e=this.options;this._rendered||(this._rendered=!0,ke(this.value.target)&&(this.target=new Fi({type:e.target.shape,background:e.target.color||this.color,opacity:e.opacity,zIndex:e.zIndex,border:e.target.border,vAlign:de,align:ge}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},reflow:function(e){var t,n,i,o,r,a,s,l,d,c,u;this.render(),t=this,n=t.options,i=t.target,o=t.owner,r=n.invertAxes,a=o.seriesValueAxis(this.options),s=o.categorySlot(o.categoryAxis,n.categoryIx,a),l=a.getSlot(this.value.target),d=r?l:s,c=r?s:l,i&&(u=new Te(d.x1,c.y1,d.x2,c.y2),i.options.height=r?u.height():n.target.line.width,i.options.width=r?n.target.line.width:u.width(),i.reflow(u)),this.note&&this.note.reflow(e),this.box=e},createVisual:function(){var e,t;Ce.fn.createVisual.call(this),e=this.options,t=it.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null}),e.border.width>0&&t.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Me(e.border.opacity,e.opacity)}),this.bodyVisual=t,De(t),this.visual.append(t)},createAnimation:function(){this.bodyVisual&&(this.animation=ot.create(this.bodyVisual,this.options.animation))},createHighlight:function(e){return it.fromRect(this.box.toRect(),e)},highlightVisual:function(){return this.bodyVisual},highlightVisualArgs:function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},formatValue:function(e){return this.owner.formatPointValue(this,e)}}),Pi.prototype.tooltipAnchor=wi.prototype.tooltipAnchor,Ae(Pi,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),Fe(Pi.prototype,ni),Fe(Pi.prototype,ii),zi=ti.extend({init:function(e,t){p(t),ti.fn.init.call(this,e,t)},reflowCategories:function(e){var t,n=this.children,i=n.length;for(t=0;t<i;t++)n[t].reflow(e[t])},plotRange:function(e){var t=e.series,n=this.seriesValueAxis(t),i=this.categoryAxisCrossingValue(n);return[i,e.value.current||i]},createPoint:function(e,t){var n,i,o=t.categoryIx,r=t.category,a=t.series,s=t.seriesIx,l=this,d=l.options,c=l.children,u=e.valueFields,h=Fe({vertical:!d.invertAxes,overlay:a.overlay,categoryIx:o,invertAxes:d.invertAxes},a),p=e.fields.color||a.color;return h=this.evalPointOptions(h,u,r,o,a,s),Ie(a.color)&&(p=h.color),n=new Pi(u,h),n.color=p,i=c[o],i||(i=new ki({vertical:d.invertAxes,gap:d.gap,spacing:d.spacing,rtl:!d.invertAxes&&(this.chartService||{}).rtl}),this.append(i)),i.append(n),n},updateRange:function(e,t){var n=e.current,i=e.target,o=t.series.axis,r=this.valueAxisRanges[o];ke(n)&&!isNaN(n)&&ke(i&&!isNaN(i))&&(r=this.valueAxisRanges[o]=r||{min:re,max:ae},r.min=Math.min(r.min,n,i),r.max=Math.max(r.max,n,i))},formatPointValue:function(e,t){return this.chartService.format.auto(t,e.value.current,e.value.target)},pointValue:function(e){return e.valueFields.current},aboveAxis:function(e){var t=e.value.current;return t>0},createAnimation:function(){var e,t,n=this,i=this.points;for(this._setAnimationOptions(),e=0;e<i.length;e++)t=i[e],t.options.animation=n.options.animation,t.createAnimation()}}),zi.prototype._setAnimationOptions=xi.prototype._setAnimationOptions,Ae(zi,{animation:{type:Ut}}),Bi=ne.extend({init:function(e,t){this.chartService=e,this.options=Fe({},this.options,t)},getStyle:function(e,t){var n,i,o=e.background,r=e.border.color;return t&&(n=t.color||t.options.color,o=Me(o,n),r=Me(r,n)),i=Ne(e.padding||{},"auto"),{backgroundColor:o,borderColor:r,font:e.font,color:e.color,opacity:e.opacity,borderWidth:je(e.border.width),paddingTop:je(i.top),paddingBottom:je(i.bottom),paddingLeft:je(i.left),paddingRight:je(i.right)}},show:function(e,t,n){e.format=t.format;var i=this.getStyle(t,n);e.style=i,!ke(t.color)&&new st(i.backgroundColor).percBrightness()>180&&(e.className="k-chart-tooltip-inverse"),this.chartService.notify(On,e),this.visible=!0},hide:function(){this.chartService&&this.chartService.notify(Vn),this.visible=!1},destroy:function(){delete this.chartService}}),Ae(Bi,{border:{width:1},opacity:1}),Li=Bi.extend({init:function(e,t,n){Bi.fn.init.call(this,e,n),this.crosshair=t,this.formatService=e.format,this.initAxisName()},initAxisName:function(){var e,t=this.crosshair.axis,n=t.plotArea;e=n.categoryAxis?t.getCategory?"categoryAxis":"valueAxis":t.options.vertical?"yAxis":"xAxis",this.axisName=e},showAt:function(e){var t=this,n=t.crosshair.axis,i=t.options,o=n[i.stickyMode?"getCategory":"getValue"](e),r=o;i.format?r=this.formatService.auto(i.format,o):n.options.type===_e&&(r=this.formatService.auto(n.options.labels.dateFormats[n.options.baseUnit],o)),this.show({point:e,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},hide:function(){this.chartService.notify(Vn,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},getAnchor:function(){var e,t,n,i=this,o=i.crosshair,r=i.options,a=r.position,s=r.padding,l=!o.axis.options.vertical,d=o.line.bbox();return l?(e=le,a===ce?(t=de,n=d.bottomLeft().translate(0,s)):(t=ce,n=d.topLeft().translate(0,-s))):(t=le,a===ue?(e=ge,n=d.topLeft().translate(-s,0)):(e=ue,n=d.topRight().translate(s,0))),{point:n,align:{horizontal:e,vertical:t}}}}),Ae(Li,{padding:10}),Hi=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this,n),this.axis=t,this.stickyMode=t instanceof qe;var i=this.options.tooltip;i.visible&&(this.tooltip=new Li(e,this,Fe({},i,{stickyMode:this.stickyMode})))},showAt:function(e){this.point=e,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(e)},hide:function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},moveLine:function(){var e,t,n=this,i=n.axis,o=n.point,r=i.options.vertical,a=this.getBox(),s=r?me:fe,l=new dt(a.x1,a.y1);e=r?new dt(a.x2,a.y1):new dt(a.x1,a.y2),o&&(this.stickyMode?(t=i.getSlot(i.pointCategoryIndex(o)),l[s]=e[s]=t.center()[s]):l[s]=e[s]=o[s]),this.box=a,this.line.moveTo(l).lineTo(e)},getBox:function(){var e,t,n,i=this.axis,o=i.pane.axes,r=o.length,a=i.options.vertical,s=i.lineBox().clone(),l=a?fe:me;for(t=0;t<r;t++)n=o[t],n.options.vertical!==a&&(e?e.wrap(n.lineBox()):e=n.lineBox().clone());return s[l+1]=e[l+1],s[l+2]=e[l+2],s},createVisual:function(){Ce.fn.createVisual.call(this);var e=this.options;this.line=new it({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},destroy:function(){this.tooltip&&this.tooltip.destroy(),Ce.fn.destroy.call(this)}}),Ae(Hi,{color:ve,width:2,zIndex:-1,tooltip:{visible:!1}}),Ni=Ce.extend({init:function(e,t){Ce.fn.init.call(this,e),this.pane=t},shouldClip:function(){var e,t=this.children,n=t.length;for(e=0;e<n;e++)if(t[e].options.clip===!0)return!0;return!1},_clipBox:function(){return this.pane.chartsBox()},createVisual:function(){var e,t,n;this.visual=new at({zIndex:0}),this.shouldClip()&&(e=this.clipBox=this._clipBox(),t=e.toRect(),n=it.fromRect(t),De(n),this.visual.clip(n),this.unclipLabels())},stackRoot:function(){return this},unclipLabels:function(){var e,t,n,i,o,r,a,s=this,l=s.children,d=s.clipBox;for(e=0;e<l.length;e++)for(t=l[e].points||{},n=t.length,i=0;i<n;i++)o=t[i],o&&o.visible!==!1&&o.overlapsBox&&o.overlapsBox(d)&&(o.unclipElements?o.unclipElements():(r=o.label,a=o.note,r&&r.options.visible&&(r.alignToClipBox&&r.alignToClipBox(d),r.options.noclip=!0),a&&a.options.visible&&(a.options.noclip=!0)))},destroy:function(){Ce.fn.destroy.call(this),delete this.parent}}),Ni.prototype.isStackRoot=!0,Oi=Ge.extend({init:function(e){Ge.fn.init.call(this,e),this.id=f(),this.createTitle(),this.content=new Ce,this.chartContainer=new Ni({},this),this.append(this.content),this.axes=[],this.charts=[]},createTitle:function(){var e=this.options.title;Re(e)&&(e=Fe({},e,{align:e.position,position:de})),this.title=te.Title.buildTitle(e,this,Oi.prototype.options.title)},appendAxis:function(e){this.content.append(e),this.axes.push(e),e.pane=this},appendAxisAt:function(e,t){this.content.append(e),this.axes.splice(t,0,e),e.pane=this},appendChart:function(e){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(e),this.chartContainer.append(e),e.pane=this},empty:function(){var e,t,n=this,i=this.parent;if(i){for(e=0;e<this.axes.length;e++)i.removeAxis(n.axes[e]);for(t=0;t<this.charts.length;t++)i.removeChart(n.charts[t])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},reflow:function(e){var t;Pe(this.children)===this.content&&(t=this.children.pop()),Ge.fn.reflow.call(this,e),t&&this.children.push(t),this.title&&(this.contentBox.y1+=this.title.box.height())},visualStyle:function(){var e=Ge.fn.visualStyle.call(this);return e.zIndex=-10,e},renderComplete:function(){this.options.visible&&this.createGridLines()},stackRoot:function(){return this},clipRoot:function(){return this},createGridLines:function(){var e,t,n,i,o,r,a=this.axes,s=a.concat(this.parent.axes),l=[],d=[];for(e=0;e<a.length;e++)for(t=a[e],n=t.options.vertical,i=n?l:d,o=0;o<s.length;o++)0===i.length&&(r=s[o],n!==r.options.vertical&&Ve(i,t.createGridLines(r)))},refresh:function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},chartsBox:function(){var e,t,n,i,o,r,a,s,l,d=this.axes,c=d.length,u=new Te;for(e=0;e<c;e++)t=d[e],n=t.options.vertical?me:fe,i=t.lineBox(),u[n+1]=i[n+1],u[n+2]=i[n+2];if(0===u.x2)for(o=this.parent.axes,r=o.length,a=0;a<r;a++)s=o[a],s.options.vertical||(l=s.lineBox(),u.x1=l.x1,u.x2=l.x2);return u},clipBox:function(){return this.chartContainer.clipBox},notifyRender:function(){var e=this.getService();e&&e.notify(Wn,{pane:new ht(this),index:this.paneIndex,name:this.options.name})}}),Vi=1,Oi.prototype.isStackRoot=!0,Ae(Oi,{zIndex:-1,shrinkToFit:!0,title:{align:ue},visible:!0}),Wi=/area/i,Ui=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this,t),this.initFields(e,t),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=n,this.originalOptions=t,this.createPanes(),this.render(),this.createCrosshairs()},initFields:function(){},initSeries:function(){var e,t=this.series;for(e=0;e<t.length;e++)t[e].index=e},createPanes:function(){function e(e,t){We(e.title)&&(e.title={text:e.title}),e.title=Fe({},t.title,e.title)}var t,n,i,o=this,r={title:{color:(this.options.title||{}).color}},a=[],s=this.options.panes||[],l=Math.max(s.length,1);for(t=0;t<l;t++)n=s[t]||{},e(n,r),i=new Oi(n),i.paneIndex=t,a.push(i),o.append(i);this.panes=a},createCrosshairs:function(e){var t,n,i,o,r,a=this;for(void 0===e&&(e=this.panes),t=0;t<e.length;t++)for(n=e[t],i=0;i<n.axes.length;i++)o=n.axes[i],o.options.crosshair&&o.options.crosshair.visible&&(r=new Hi(a.chartService,o,o.options.crosshair),a.crosshairs.push(r),n.content.append(r))},removeCrosshairs:function(e){var t,n,i=this.crosshairs,o=e.axes;for(t=i.length-1;t>=0;t--)for(n=0;n<o.length;n++)if(i[t].axis===o[n]){i.splice(t,1);break}},hideCrosshairs:function(){var e,t=this.crosshairs;for(e=0;e<t.length;e++)t[e].hide()},findPane:function(e){var t,n,i=this.panes;for(n=0;n<i.length;n++)if(i[n].options.name===e){t=i[n];break}return t||i[0]},findPointPane:function(e){var t,n,i=this.panes;for(n=0;n<i.length;n++)if(i[n].box.containsPoint(e)){t=i[n];break}return t},appendAxis:function(e){var t=this.findPane(e.options.pane);t.appendAxis(e),this.axes.push(e),e.plotArea=this},removeAxis:function(e){var t,n,i=this,o=[];for(t=0;t<this.axes.length;t++)n=i.axes[t],e!==n?o.push(n):n.destroy();this.axes=o},appendChart:function(e,t){this.charts.push(e),t?t.appendChart(e):this.append(e)},removeChart:function(e){var t,n,i=this,o=[];for(t=0;t<this.charts.length;t++)n=i.charts[t],n!==e?o.push(n):n.destroy();this.charts=o},addToLegend:function(e){var t,n,i,o,r,a,s,l,d,c=e.length,u=this.options.legend,p=u.labels||{},f=u.inactiveItems||{},m=f.labels||{},g=[];for(t=0;t<c;t++)n=e[t],i=n.visible!==!1,n.visibleInLegend!==!1&&(o=n.name,r=i?Be(p):Be(m)||Be(p),r&&(o=r({text:h(o)?o:"",series:n})),a=n._defaults,s=n.color,Ie(s)&&a&&(s=a.color),l=void 0,d=void 0,i?(l={},d=s):(l={color:m.color,font:m.font},d=f.markers.color),h(o)&&""!==o&&g.push({text:o,labels:l,markerColor:d,series:n,active:i}));Ve(u.items,g)},groupAxes:function(e){var t,n,i,o,r=[],a=[];for(t=0;t<e.length;t++)for(n=e[t].axes,i=0;i<n.length;i++)o=n[i],o.options.vertical?a.push(o):r.push(o);return{x:r,y:a,any:r.concat(a)}},groupSeriesByPane:function(){var e,t,n,i=this,o=this.series,r={};for(e=0;e<o.length;e++)t=o[e],n=i.seriesPaneName(t),r[n]?r[n].push(t):r[n]=[t];return r},filterVisibleSeries:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],n.visible!==!1&&i.push(n);return i},reflow:function(e){var t=this.options.plotArea,n=this.panes,i=Ne(t.margin);this.box=e.clone().unpad(i),this.reflowPanes(),this.detachLabels(),this.reflowAxes(n),this.reflowCharts(n)},redraw:function(e){var t,n,i,o=this,r=[].concat(e);for(this.initSeries(),t=this.getRoot(),t&&t.cleanGradients(),n=0;n<r.length;n++)o.removeCrosshairs(r[n]),r[n].empty();for(this.render(r),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(r),this.createCrosshairs(r),i=0;i<r.length;i++)r[i].refresh()},axisCrossingValues:function(e,t){var n,i=e.options,o=[].concat(i.axisCrossingValues||i.axisCrossingValue),r=t.length-o.length,a=o[0]||0;for(n=0;n<r;n++)o.push(a);return o},alignAxisTo:function(e,t,n,i){var o=e.getSlot(n,n,!0),r=e.options.reverse?2:1,a=t.getSlot(i,i,!0),s=t.options.reverse?2:1,l=e.box.translate(a[fe+s]-o[fe+r],a[me+s]-o[me+r]);e.pane!==t.pane&&l.translate(0,e.pane.box.y1-t.pane.box.y1),e.reflow(l)},alignAxes:function(e,t){var n,i,o,r,a,s,l,d,c,u,h,p,f,m,g=this,v=e[0],_=t[0],b=this.axisCrossingValues(v,t),w=this.axisCrossingValues(_,e),k={},y={},x={},C={};for(n=0;n<t.length;n++)i=t[n],o=i.pane,r=o.id,a=i.options.visible!==!1,s=E(e,o)||v,l=b,s!==v&&(l=g.axisCrossingValues(s,t)),g.alignAxisTo(i,s,w[n],l[n]),i.options._overlap||($e(i.lineBox().x1)===$e(s.lineBox().x1)&&(k[r]&&i.reflow(i.box.alignTo(k[r].box,ue).translate(-i.options.margin,0)),a&&(k[r]=i)),$e(i.lineBox().x2)===$e(s.lineBox().x2)&&(i._mirrored||(i.options.labels.mirror=!i.options.labels.mirror,i._mirrored=!0),g.alignAxisTo(i,s,w[n],l[n]),y[r]&&i.reflow(i.box.alignTo(y[r].box,ge).translate(i.options.margin,0)),a&&(y[r]=i)),0!==n&&_.pane===i.pane&&(i.alignTo(_),i.reflow(i.box)));for(d=0;d<e.length;d++)c=e[d],u=c.pane,h=u.id,p=c.options.visible!==!1,f=E(t,u)||_,m=w,f!==_&&(m=g.axisCrossingValues(f,e)),g.alignAxisTo(c,f,b[d],m[d]),c.options._overlap||($e(c.lineBox().y1)===$e(f.lineBox().y1)&&(c._mirrored||(c.options.labels.mirror=!c.options.labels.mirror,c._mirrored=!0),g.alignAxisTo(c,f,b[d],m[d]),x[h]&&c.reflow(c.box.alignTo(x[h].box,de).translate(0,-c.options.margin)),p&&(x[h]=c)),$e(c.lineBox().y2,oe.COORD_PRECISION)===$e(f.lineBox().y2,oe.COORD_PRECISION)&&(C[h]&&c.reflow(c.box.alignTo(C[h].box,ce).translate(0,c.options.margin)),p&&(C[h]=c)),0!==d&&(c.alignTo(v),c.reflow(c.box)))},shrinkAxisWidth:function(e){var t,n,i,o,r=this.groupAxes(e).any,a=A(r),s=0;for(t=0;t<e.length;t++)n=e[t],n.axes.length>0&&(s=Math.max(s,a.width()-n.contentBox.width()));if(0!==s)for(i=0;i<r.length;i++)o=r[i],o.options.vertical||o.reflow(o.box.shrink(s,0))},shrinkAxisHeight:function(e){var t,n,i,o,r,a,s;for(n=0;n<e.length;n++)if(i=e[n],o=i.axes,r=Math.max(0,A(o).height()-i.contentBox.height()),0!==r){for(a=0;a<o.length;a++)s=o[a],s.options.vertical&&s.reflow(s.box.shrink(0,r));t=!0}return t},fitAxes:function(e){var t,n,i,o,r,a,s,l,d,c,u=this.groupAxes(e).any,h=0;for(t=0;t<e.length;t++)if(n=e[t],i=n.axes,o=n.contentBox,i.length>0)for(r=A(i),a=Math.max(o.y1-r.y1,o.y2-r.y2),h=Math.max(h,o.x1-r.x1),s=0;s<i.length;s++)l=i[s],l.reflow(l.box.translate(0,a));for(d=0;d<u.length;d++)c=u[d],c.reflow(c.box.translate(h,0))},reflowAxes:function(e){var t,n=this,i=this.groupAxes(e);for(t=0;t<e.length;t++)n.reflowPaneAxes(e[t]);i.x.length>0&&i.y.length>0&&(this.alignAxes(i.x,i.y),this.shrinkAxisWidth(e),this.autoRotateAxisLabels(i),this.alignAxes(i.x,i.y),this.shrinkAxisWidth(e)&&this.alignAxes(i.x,i.y),this.shrinkAxisHeight(e),this.alignAxes(i.x,i.y),this.shrinkAxisHeight(e)&&this.alignAxes(i.x,i.y),this.fitAxes(e))},autoRotateAxisLabels:function(e){var t,n,i,o,r=this,a=this,s=a.panes,l=ji(s);for(n=0;n<l.length;n++)i=l[n],i.autoRotateLabels()&&(t=!0);if(t){for(o=0;o<s.length;o++)r.reflowPaneAxes(s[o]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(s))}},reflowPaneAxes:function(e){var t,n=e.axes,i=n.length;if(i>0)for(t=0;t<i;t++)n[t].reflow(e.contentBox)},reflowCharts:function(e){var t,n,i=this.charts,o=i.length,r=this.box;for(t=0;t<o;t++)n=i[t].pane,n&&!Ee(n,e)||i[t].reflow(r)},reflowPanes:function(){var e,t,n,i,o,r,a,s,l,d=this,c=d.box,u=d.panes,h=u.length,p=c.height(),f=h,m=0,g=c.y1;for(e=0;e<h;e++)t=u[e],n=t.options.height,t.options.width=c.width(),t.options.height?(n.indexOf&&n.indexOf("%")&&(i=parseInt(n,10)/100,t.options.height=i*c.height()),t.reflow(c.clone()),p-=t.options.height):m++;for(o=0;o<h;o++)r=u[o],r.options.height||(r.options.height=p/m);for(a=0;a<h;a++)s=u[a],l=c.clone().move(c.x1,g),s.reflow(l),f--,g+=s.options.height},backgroundBox:function(){var e,t,n,i,o,r,a=this.axes,s=a.length;for(t=0;t<s;t++)for(n=a[t],i=0;i<s;i++)o=a[i],n.options.vertical!==o.options.vertical&&(r=n.lineBox().clone().wrap(o.lineBox()),e=e?e.wrap(r):r);return e||this.box},chartsBoxes:function(){var e,t=this.panes,n=[];for(e=0;e<t.length;e++)n.push(t[e].chartsBox());return n},addBackgroundPaths:function(e){var t,n=this.chartsBoxes();for(t=0;t<n.length;t++)e.paths.push(it.fromRect(n[t].toRect()))},backgroundContainsPoint:function(e){var t,n=this.chartsBoxes();for(t=0;t<n.length;t++)if(n[t].containsPoint(e))return!0},createVisual:function(){var e,t,n,i,o;Ce.fn.createVisual.call(this),e=this.options.plotArea,t=e.opacity,n=e.background,i=e.border,void 0===i&&(i={}),I(n)&&(n=he,t=0),o=this._bgVisual=new nt.MultiPath({fill:{color:n,opacity:t},stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType},zIndex:-1}),this.addBackgroundPaths(o),this.appendVisual(o)},pointsByCategoryIndex:function(e){var t,n,i,o,r,a=this.charts,s=[];if(null!==e)for(t=0;t<a.length;t++)if(n=a[t],"_navigator"!==n.pane.options.name&&(i=a[t].categoryPoints[e],i&&i.length))for(o=0;o<i.length;o++)r=i[o],r&&ke(r.value)&&null!==r.value&&s.push(r);return s},pointsBySeriesIndex:function(e){return this.filterPoints(function(t){return t.series.index===e})},pointsBySeriesName:function(e){return this.filterPoints(function(t){return t.series.name===e})},filterPoints:function(e){var t,n,i,o,r,a=this.charts,s=[];for(t=0;t<a.length;t++)for(n=a[t],i=n.points,o=0;o<i.length;o++)r=i[o],r&&r.visible!==!1&&e(r)&&s.push(r);return s},findPoint:function(e){var t,n,i,o,r,a=this.charts;for(t=0;t<a.length;t++)for(n=a[t],i=n.points,o=0;o<i.length;o++)if(r=i[o],r&&r.visible!==!1&&e(r))return r},paneByPoint:function(e){var t,n,i=this.panes;for(t=0;t<i.length;t++)if(n=i[t],n.box.containsPoint(e))return n},detachLabels:function(){var e=this.groupAxes(this.panes),t=e.x,n=e.y;this.detachAxisGroupLabels(n,t),this.detachAxisGroupLabels(t,n)},detachAxisGroupLabels:function(e,t){var n,i,o,r,a,s,l,d=this,c=0;for(n=0;n<e.length;n++)i=e[n],o=i.pane,r=E(t,o)||t[0],a=n+c,s=d.createLabelAxis(i,a,r),s&&(c++,l=o.axes.indexOf(i)+c,o.appendAxisAt(s,l))},createLabelAxis:function(e,t,n){var i,o,r,a,s,l,d,c,u=e.options.labels,h=u.position,p=h!==oe.END&&h!==oe.START,f=u.visible;return p||f===!1?null:(i=this.groupAxes(this.panes),o=n.options.vertical?i.x:i.y,r=this.axisCrossingValues(n,o),a=h===oe.END,s=n.range(),l=a?s.max:s.min,d=Ke(r[t],s.min,s.max),d-l===0?null:(r.splice(t+1,0,l),n.options.axisCrossingValues=r,c=e.clone(),e.clear(),c.options.name=void 0,c.options.line.visible=!1,c.options.crosshair=void 0,c.options.notes=void 0,c.options.plotBands=void 0,c))}}),ji=function(e){return e.reduce(function(e,t){return e.concat(t.axes)},[])},Ae(Ui,{series:[],plotArea:{margin:{}},background:"",border:{color:ve,width:0},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}}),qi={hover:function(e,t){this._dispatchEvent(e,t,An)},click:function(e,t){this._dispatchEvent(e,t,Dn)}},Gi=ne.extend({init:function(e,t,n){var i,o,r,a=t.canonicalFields(e),s=t.valueFields(e),l=t.sourceFields(e,a),d=this._seriesFields=[],c=n.query(e.type),u=e.aggregate||c;for(this._series=e,this._binder=t,i=0;i<a.length;i++){if(o=a[i],r=void 0,Re(u))r=u[o];else{if(0!==i&&!Ee(o,s))break;r=u}r&&d.push({canonicalName:o,name:l[i],transform:Ie(r)?r:ft[r]})}},aggregatePoints:function(e,t){var n,i,o,r,a,s=this,l=this,d=l._series,c=l._seriesFields,u=this._bindPoints(e||[]),h=u.dataItems[0],p={};for(!h||ie(h)||xe(h)||(n=function(){},n.prototype=h,p=new n),i=0;i<c.length;i++){if(o=c[i],r=s._bindField(u.values,o.canonicalName),a=o.transform(r,d,u.dataItems,t),!(null===a||!Re(a)||ke(a.length)||a instanceof Date)){p=a;break}ke(a)&&M(o.name,p,a)}return p},_bindPoints:function(e){var t,n,i=this,o=i._binder,r=i._series,a=[],s=[];for(t=0;t<e.length;t++)n=e[t],a.push(o.bindPoint(r,n)),s.push(r.data[n]);return{values:a,dataItems:s}},_bindField:function(e,t){var n,i,o,r,a=[],s=e.length;for(n=0;n<s;n++)i=e[n],o=i.valueFields,r=void 0,r=ke(o[t])?o[t]:i.fields[t],a.push(r);return a}}),$i=ne.extend({init:function(){this._defaults={}},register:function(e,t){var n,i=this;for(n=0;n<e.length;n++)i._defaults[e[n]]=t},query:function(e){return this._defaults[e]}}),$i.current=new $i,Ki=wi.extend({createLabel:function(){var e=this.options.labels,t=Fe({},e,e.from),n=Fe({},e,e.to);t.visible&&(this.labelFrom=this._createLabel(t),this.append(this.labelFrom)),n.visible&&(this.labelTo=this._createLabel(n),this.append(this.labelTo))},_createLabel:function(e){var t,n=Be(e),i=this.pointData();return t=n?n(i):this.formatValue(e.format),new _i(t,Fe({vertical:this.options.vertical},e),i)},reflow:function(e){var t,n,i,o;this.render(),t=this,n=t.labelFrom,i=t.labelTo,o=t.value,this.box=e,n&&(n.options.aboveAxis=o.from>o.to,n.reflow(e)),i&&(i.options.aboveAxis=o.to>o.from,i.reflow(e)),this.note&&this.note.reflow(e)}}),Ki.prototype.defaults=Fe({},Ki.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}}),Yi=xi.extend({pointType:function(){return Ki},pointValue:function(e){return e.valueFields},formatPointValue:function(e,t){return null===e.value.from&&null===e.value.to?"":this.chartService.format.auto(t,e.value.from,e.value.to)},plotRange:function(e){return e?[e.value.from,e.value.to]:0},updateRange:function(e,t){var n=t.series.axis,i=e.from,o=e.to,r=this.valueAxisRanges[n];null!==e&&ie(i)&&ie(o)&&(r=this.valueAxisRanges[n]=r||{min:re,max:ae},r.min=Math.min(r.min,i),r.max=Math.max(r.max,i),r.min=Math.min(r.min,o),r.max=Math.max(r.max,o))},aboveAxis:function(e){var t=e.value;return t.from<t.to}}),Yi.prototype.plotLimits=ti.prototype.plotLimits,Qi=oi.extend({aliasFor:function(){return this.parent}}),Xi="auto",Zi="{0}",Ji="{1}",eo=Ce.extend({init:function(e,t){Ce.fn.init.call(this),this.value=e,this.options=t,this.aboveAxis=Me(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()},render:function(){var e,t,n,i,o,r;this._rendered||(this._rendered=!0,e=this.options,t=e.markers,n=e.labels,i=this.value,o=this.fromPoint=new Qi(i,Fe({},this.options,{labels:n.from,markers:t.from})),r=this.toPoint=new Qi(i,Fe({},this.options,{labels:n.to,markers:t.to})),this.copyFields(o),this.copyFields(r),this.append(o),this.append(r))},reflow:function(e){var t,n;this.render(),t=e.from,n=e.to,this.positionLabels(t,n),this.fromPoint.reflow(t),this.toPoint.reflow(n),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox());
},createHighlight:function(){var e=new at;return e.append(this.fromPoint.createHighlight()),e.append(this.toPoint.createHighlight()),e},highlightVisual:function(){return this.visual},highlightVisualArgs:function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},tooltipAnchor:function(){var e,t,n,i,o,r,a=this.owner.pane.clipBox(),s=!a||a.overlaps(this.box);if(s)return e=this.box,t=e.center(),n=ue,this.options.vertical?(i=t.x,o=e.y1-Tt,r=ce):(i=e.x2+Tt,o=t.y,r=le),{point:new Se(i,o),align:{horizontal:n,vertical:r}}},formatValue:function(e){return this.owner.formatPointValue(this,e)},overlapsBox:function(e){return this.box.overlaps(e)},unclipElements:function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},initLabelsFormat:function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=e.extend({},t.from,{format:Zi})),t.to&&t.to.format||(t.to=e.extend({},t.to,{format:Ji})))},positionLabels:function(e,t){var n,i,o=this.options,r=o.labels,a=o.vertical;r.position===Xi&&(a?t.y1<=e.y1?(i=Ht,n=Nt):(i=Nt,n=Ht):t.x1<=e.x1?(i=ue,n=ge):(i=ge,n=ue),r.from&&r.from.position||(this.fromPoint.options.labels.position=n),r.to&&r.to.position||(this.toPoint.options.labels.position=i))},copyFields:function(e){e.dataItem=this.dataItem,e.category=this.category,e.series=this.series,e.color=this.color,e.owner=this.owner}}),Fe(eo.prototype,ni),Fe(eo.prototype,ii),eo.prototype.defaults={markers:{visible:!1,background:he,size:Pt,type:pe,border:{width:2},opacity:1},labels:{visible:!1,margin:Ne(3),padding:Ne(4),animation:{type:xt,delay:yt},position:Xi},notes:{label:{}},highlight:{markers:{border:{color:he,width:2}},zIndex:oe.HIGHLIGHT_ZINDEX},tooltip:{format:"{0} - {1}"}},to=pi.extend({createStrokeSegments:function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},stackSegments:function(){var e=this.fromSegments;return this.fromSegments||(e=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),e},createStroke:function(e){var t=new it(e),n=new it(e);t.segments.push.apply(t.segments,this.strokeSegments()),n.segments.push.apply(n.segments,this.stackSegments()),this.visual.append(t),this.visual.append(n)},hasStackSegment:function(){return!0},fromPoints:function(){return this.linePoints.map(function(e){return e.fromPoint})},toPoints:function(){return this.linePoints.map(function(e){return e.toPoint})}}),no=to.extend({createStrokeSegments:function(){return this.createCurveSegments(this.toPoints())},stackSegments:function(){var e=this.fromSegments;return this.fromSegments||(e=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),e},createCurveSegments:function(e){var t=new Oe;return t.process(this.toGeometryPoints(e))}}),io=to.extend({createStrokeSegments:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},stackSegments:function(){var e=this.fromSegments;return this.fromSegments||(e=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints())),e.reverse()),e}}),Fe(io.prototype,ai),oo=ti.extend({render:function(){ti.fn.render.call(this),this.renderSegments()},pointType:function(){return eo},createPoint:function(e,t){var n,i,o,r=t.categoryIx,a=t.category,s=t.series,l=t.seriesIx,d=e.valueFields;if(!h(d.from)&&!h(d.to)){if(this.seriesMissingValues(s)!==zt)return null;d={from:0,to:0}}return n=this.pointOptions(s,l),n=this.evalPointOptions(n,d,a,r,s,l),i=e.fields.color||s.color,Ie(s.color)&&(i=n.color),o=new eo(d,n),o.color=i,this.append(o),o},createSegment:function(e,t,n){var i,o=(t.line||{}).style;return new(i="smooth"===o?no:"step"===o?io:to)(e,t,n)},plotRange:function(e,t){return e?[e.value.from,e.value.to]:[t,t]},valueSlot:function(e,t){var n=e.getSlot(t[0],t[0],!this.options.clip),i=e.getSlot(t[1],t[1],!this.options.clip);if(n&&i)return{from:n,to:i}},pointSlot:function(e,t){var n,i,o=t.from,r=t.to;return this.options.invertAxes?(n=new Te(o.x1,e.y1,o.x2,e.y2),i=new Te(r.x1,e.y1,r.x2,e.y2)):(n=new Te(e.x1,o.y1,e.x2,o.y2),i=new Te(e.x1,r.y1,e.x2,r.y2)),{from:n,to:i}},addValue:function(e,t){var n=e.valueFields;ie(n.from)||(n.from=n.to),ie(n.to)||(n.to=n.from),ti.fn.addValue.call(this,e,t)},updateRange:function(e,t){var n,i,o,r;null!==e&&ie(e.from)&&ie(e.to)&&(n=t.series.axis,i=this.valueAxisRanges[n]=this.valueAxisRanges[n]||{min:re,max:ae},o=e.from,r=e.to,i.min=Math.min(i.min,o,r),i.max=Math.max(i.max,o,r))},formatPointValue:function(e,t){var n=e.value;return this.chartService.format.auto(t,n.from,n.to)},animationPoints:function(){var e,t,n=this.points,i=[];for(e=0;e<n.length;e++)t=n[e],t&&(i.push((t.fromPoint||{}).marker),i.push((t.toPoint||{}).marker));return i.concat(this._segments)}}),Fe(oo.prototype,di,ui),ro=Ci.extend({reflow:function(e){var t,n=this,i=n.options,o=n.value,r=n.owner,a=r.seriesValueAxis(i),s=[],l=[],d=[],c=a.getSlot(o.low,o.high),u=a.getSlot(o.open,o.open),h=a.getSlot(o.close,o.close);u.x1=h.x1=c.x1=e.x1,u.x2=h.x2=c.x2=e.x2,t=c.center().x,s.push([u.x1,u.y1]),s.push([t,u.y1]),l.push([t,h.y1]),l.push([h.x2,h.y1]),d.push([t,c.y1]),d.push([t,c.y2]),this.lines=[s,l,d],this.box=c.clone().wrap(u.clone().wrap(h)),this.reflowNote()},createBody:function(){}}),ao=Si.extend({pointType:function(){return ro}}),so=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this),this.from=e,this.to=t,this.series=n},linePoints:function(){var e,t,n=this.from,i=this,o=i.from.box,r=i.to.box,a=[];return n.isVertical?(e=n.aboveAxis?o.y1:o.y2,a.push([o.x1,e],[r.x2,e])):(t=n.aboveAxis?o.x2:o.x1,a.push([t,o.y1],[t,r.y2])),a},createVisual:function(){var e,t;Ce.fn.createVisual.call(this),e=this.series.line||{},t=it.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}}),De(t),this.visual.append(t)}}),Ae(so,{animation:{type:xt,delay:yt}}),lo=xi.extend({render:function(){xi.fn.render.call(this),this.createSegments()},traverseDataPoints:function(e){var t,n,i,o,a,s,l,d,c,u,h=this,p=this.options.series,f=r(p),m=!this.options.invertAxes;for(t=0;t<p.length;t++)for(n=p[t],i=0,o=0,a=0;a<f;a++)s=mt.current.bindPoint(n,a),l=s.valueFields.value,d=s.fields.summary,c=i,u=void 0,d?"total"===d.toLowerCase()?(s.valueFields.value=i,c=0,u=i):(s.valueFields.value=o,u=c-o,o=0):ie(l)&&(o+=l,i+=l,u=i),e(s,{category:h.categoryAxis.categoryAt(a),categoryIx:a,series:n,seriesIx:t,total:i,runningTotal:o,from:c,to:u,isVertical:m})},updateRange:function(e,t){xi.fn.updateRange.call(this,{value:t.to},t)},aboveAxis:function(e){return e.value>=0},plotRange:function(e){return[e.from,e.to]},createSegments:function(){var e,t,n,i,o,r,a,s=this,l=this.options.series,d=this.seriesPoints,c=this.segments=[];for(e=0;e<l.length;e++)if(t=l[e],n=d[e])for(i=void 0,o=0;o<n.length;o++)r=n[o],r&&i&&(a=new so(i,r,t),c.push(a),s.append(a)),i=r}}),co=[Wt,pn,ln,vn],uo=[Zt,gn].concat(co),ho=Ui.extend({initFields:function(e){var t,n,i=this;if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new vi,e.length>0)for(this.invertAxes=Ee(e[0].type,[Ut,Gt,gn,pn,vn,dn,Xt,fn]),t=0;t<e.length;t++)if(n=e[t].stack,n&&"100%"===n.type){i.stack100=!0;break}},render:function(e){void 0===e&&(e=this.panes),this.createCategoryAxes(e),this.aggregateCategories(e),this.createCategoryAxesLabels(e),this.createCharts(e),this.createValueAxes(e)},removeAxis:function(e){var t=e.options.name;Ui.fn.removeAxis.call(this,e),e instanceof qe?delete this.namedCategoryAxes[t]:(this.valueAxisRangeTracker.reset(t),delete this.namedValueAxes[t]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},createCharts:function(e){var t,n,i,o,r,a,s=this,l=this.groupSeriesByPane();for(t=0;t<e.length;t++)if(n=e[t],i=l[n.options.name||"default"]||[],s.addToLegend(i),o=s.filterVisibleSeries(i))for(r=s.groupSeriesByCategoryAxis(o),a=0;a<r.length;a++)s.createChartGroup(r[a],n)},createChartGroup:function(e,t){this.createAreaChart(b(e,[Wt,pn]),t),this.createRangeAreaChart(b(e,[ln,vn]),t),this.createBarChart(b(e,[Kt,Ut]),t),this.createRangeBarChart(b(e,[cn,dn]),t),this.createBulletChart(b(e,[Gt,mn]),t),this.createCandlestickChart(b(e,$t),t),this.createBoxPlotChart(b(e,[jt,fn]),t),this.createOHLCChart(b(e,Jt),t),this.createWaterfallChart(b(e,[_n,Xt]),t),this.createLineChart(b(e,[Zt,gn]),t)},aggregateCategories:function(e){var t,n,i,o,r,a=this,s=this.srcSeries||this.series,l=[];for(this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{},t=0;t<s.length;t++)n=s[t],i=a.seriesCategoryAxis(n),o=a.findPane(i.options.pane),r=_(i.options.type,_e),n=(r||n.categoryField)&&Ee(o,e)?a.aggregateSeries(n,i):a.filterSeries(n,i),l.push(n);this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=s,this.series=l},filterSeries:function(e,t){var n,i,o,r=(e.data||{}).length;return t._seriesMax=Math.max(t._seriesMax||0,r),ie(t.options.min)||ie(t.options.max)?(n=t.currentRangeIndices(),i=Ee(e.type,uo),o=Fe({},e),o.data=(o.data||[]).slice(n.min,n.max+1),i&&T(o,n,r,function(i){return{item:e.data[i],category:t.categoryAt(i,!0),categoryIx:i-n.min}},function(t){return ke(e.data[t])}),o):e},clearSeriesPointsCache:function(){this._seriesPointsCache={}},seriesSourcePoints:function(e,t){var n,o,r,a,s,l,d,c,u,h=this,p=e.index+";"+t.categoriesHash();if(this._seriesPointsCache[p])return this._currentPointsCache[p]=this._seriesPointsCache[p],this._seriesPointsCache[p];for(n=t.options,o=n.srcCategories,r=_(n.type,_e),a=e.data,s=r?w:i,l=[],r||t.mapCategories(),d=0;d<a.length;d++)c=void 0,c=e.categoryField?s(e.categoryField,a[d],h.chartService.intl):o[d],ke(c)&&null!==c&&(u=t.totalIndex(c),l[u]=l[u]||{items:[],category:c},l[u].items.push(d));return this._currentPointsCache[p]=l,l},aggregateSeries:function(e,t){var n,i,o,r,a,s,l,d,c,u=e.data;if(!u.length)return e;for(n=this.seriesSourcePoints(e,t),i=Fe({},e),o=new Gi(Fe({},e),mt.current,$i.current),r=i.data=[],a=t.options.dataItems||[],s=t.currentRangeIndices(),l=function(e){var i,r=e-s.min,a=n[e];return a||(a=n[e]={}),a.categoryIx=r,a.item||(i=t.categoryAt(e,!0),a.category=i,a.item=o.aggregatePoints(a.items,i)),a},d=s.min;d<=s.max;d++)c=l(d),r[c.categoryIx]=c.item,c.items&&c.items.length&&(a[c.categoryIx]=c.item);return Ee(i.type,uo)&&T(i,s,t.totalCount(),l,function(e){return n[e]}),t.options.dataItems=a,i},appendChart:function(e,t){var n=e.options.series,i=this.seriesCategoryAxis(n[0]),o=i.options.categories,a=Math.max(0,r(n)-o.length);if(a>0)for(o=i.options.categories=i.options.categories.slice(0);a--;)o.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),Ui.fn.appendChart.call(this,e,t)},seriesPaneName:function(e){var t=this.options,n=e.axis,i=[].concat(t.valueAxis),o=Ye(i,function(e){return e.name===n})[0],r=t.panes||[{}],a=(r[0]||{}).name||"default",s=(o||{}).pane||a;return s},seriesCategoryAxis:function(e){var t=e.categoryAxis,n=t?this.namedCategoryAxes[t]:this.categoryAxis;if(!n)throw Error("Unable to locate category axis with name "+t);return n},stackableChartOptions:function(e,t){var n=e.stack,i=n&&"100%"===n.type,o=t.options.clip;return{isStacked:n,isStacked100:i,clip:o}},groupSeriesByCategoryAxis:function(e){var t,n,i,o,r,a,s=[],l={};for(t=0;t<e.length;t++)n=e[t].categoryAxis||"$$default$$",l.hasOwnProperty(n)||(l[n]=!0,s.push(n));for(i=[],o=0;o<s.length;o++)r=s[o],a=F(e,r,o),0!==a.length&&i.push(a);return i},createBarChart:function(t,n){var i,o;0!==t.length&&(i=t[0],o=new xi(this,e.extend({series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing},this.stackableChartOptions(i,n))),this.appendChart(o,n))},createRangeBarChart:function(e,t){var n,i;0!==e.length&&(n=e[0],i=new Yi(this,{series:e,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing}),this.appendChart(i,t))},createBulletChart:function(e,t){var n,i;0!==e.length&&(n=e[0],i=new zi(this,{series:e,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing,clip:t.options.clip}),this.appendChart(i,t))},createLineChart:function(t,n){var i,o;0!==t.length&&(i=t[0],o=new hi(this,e.extend({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(i,n))),this.appendChart(o,n))},createAreaChart:function(t,n){var i,o;0!==t.length&&(i=t[0],o=new gi(this,e.extend({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(i,n))),this.appendChart(o,n))},createRangeAreaChart:function(e,t){if(0!==e.length){var n=new oo(this,{invertAxes:this.invertAxes,series:e,clip:t.options.clip});this.appendChart(n,t)}},createOHLCChart:function(e,t){var n,i;0!==e.length&&(n=e[0],i=new ao(this,{invertAxes:this.invertAxes,gap:n.gap,series:e,spacing:n.spacing,clip:t.options.clip}),this.appendChart(i,t))},createCandlestickChart:function(e,t){var n,i;0!==e.length&&(n=e[0],i=new Si(this,{invertAxes:this.invertAxes,gap:n.gap,series:e,spacing:n.spacing,clip:t.options.clip}),this.appendChart(i,t))},createBoxPlotChart:function(e,t){var n,i;0!==e.length&&(n=e[0],i=new Ai(this,{invertAxes:this.invertAxes,gap:n.gap,series:e,spacing:n.spacing,clip:t.options.clip}),this.appendChart(i,t))},createWaterfallChart:function(e,t){var n,i;0!==e.length&&(n=e[0],i=new lo(this,{series:e,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing}),this.appendChart(i,t))},axisRequiresRounding:function(e,t){var n,i,o,r,a,s=this,l=b(this.series,bn);for(n=0;n<this.series.length;n++)i=s.series[n],Ee(i.type,co)&&(o=i.line,o&&o.style===Vt&&l.push(i));for(r=0;r<l.length;r++)if(a=l[r].categoryAxis||"",a===e||!a&&0===t)return!0},aggregatedAxis:function(e,t){var n,i,o=this.series;for(n=0;n<o.length;n++)if(i=o[n].categoryAxis||"",(i===e||!i&&0===t)&&o[n].categoryField)return!0},createCategoryAxesLabels:function(){var e,t=this.axes;for(e=0;e<t.length;e++)t[e]instanceof qe&&t[e].createLabels()},createCategoryAxes:function(e){var t,n,i,o,r,a,s,l=this,d=this.invertAxes,c=[].concat(this.options.categoryAxis),u=[];for(t=0;t<c.length;t++)if(n=c[t],i=l.findPane(n.pane),Ee(i,e)){if(o=n.name,r=n.categories,void 0===r&&(r=[]),n=Fe({vertical:d,reverse:!d&&l.chartService.rtl,axisCrossingValue:d?re:0},n),ke(n.justified)||(n.justified=l.isJustified()),l.axisRequiresRounding(o,t)&&(n.justified=!1),a=void 0,a=k(n,r[0])?new te.DateCategoryAxis(n,l.chartService):new qe(n,l.chartService),c[t].categories=a.options.srcCategories,o){if(l.namedCategoryAxes[o])throw Error("Category axis with name "+o+" is already defined");l.namedCategoryAxes[o]=a}a.axisIndex=t,u.push(a),l.appendAxis(a)}s=this.categoryAxis||u[0],this.categoryAxis=s,d?this.axisY=s:this.axisX=s},isJustified:function(){var e,t,n=this.series;for(e=0;e<n.length;e++)if(t=n[e],!Ee(t.type,co))return!1;return!0},createValueAxes:function(e){var t,n,i,o,r,a,s,l,d,c=this,u=this.valueAxisRangeTracker,h=u.query(),p=[].concat(this.options.valueAxis),f=this.invertAxes,m={vertical:!f,reverse:f&&this.chartService.rtl},g=[];for(this.stack100&&(m.roundToMajorUnit=!1,m.labels={format:"P0"}),t=0;t<p.length;t++)if(n=p[t],i=c.findPane(n.pane),Ee(i,e)){if(o=n.name,r=_(n.type,Un)?{min:.1,max:1}:{min:0,max:1},a=u.query(o)||h||r,0===t&&a&&h&&(a.min=Math.min(a.min,h.min),a.max=Math.max(a.max,h.max)),s=void 0,s=_(n.type,Un)?te.LogarithmicAxis:te.NumericAxis,l=new s(a.min,a.max,Fe({},m,n),c.chartService),o){if(c.namedValueAxes[o])throw Error("Value axis with name "+o+" is already defined");c.namedValueAxes[o]=l}l.axisIndex=t,g.push(l),c.appendAxis(l)}d=this.valueAxis||g[0],this.valueAxis=d,f?this.axisX=d:this.axisY=d},_dispatchEvent:function(e,t,n){var i,o,r,a=e._eventCoordinates(t),s=new Se(a.x,a.y),l=this.pointPane(s),d=[],c=[];if(l){for(i=l.axes,o=0;o<i.length;o++)r=i[o],r.getValue?m(c,r.getValue(s)):m(d,r.getCategory(s));0===d.length&&m(d,this.categoryAxis.getCategory(s)),d.length>0&&c.length>0&&e.trigger(n,{element:ze(t),originalEvent:t,category:y(d),value:y(c)})}},pointPane:function(e){var t,n,i=this.panes;for(t=0;t<i.length;t++)if(n=i[t],n.contentBox.containsPoint(e))return n},updateAxisOptions:function(e,t){R(this.options,e,t),R(this.originalOptions,e,t)}}),Ae(ho,{categoryAxis:{},valueAxis:{}}),Fe(ho.prototype,qi),po=ne.extend({init:function(){this._points=[]},destroy:function(){this._points=[]},show:function(e){var t,n,i=this,o=[].concat(e);for(this.hide(),t=0;t<o.length;t++)n=o[t],n&&n.toggleHighlight&&n.hasHighlight()&&(i.togglePointHighlight(n,!0),i._points.push(n))},togglePointHighlight:function(e,t){var n,i=(e.options.highlight||{}).toggle;i?(n={category:e.category,series:e.series,dataItem:e.dataItem,value:e.value,stackValue:e.stackValue,preventDefault:P,visual:e.highlightVisual(),show:t},i(n),n._defaultPrevented||e.toggleHighlight(t)):e.toggleHighlight(t)},hide:function(){for(var e=this,t=this._points;t.length;)e.togglePointHighlight(t.pop(),!1)},isHighlighted:function(e){var t,n,i=this._points;for(t=0;t<i.length;t++)if(n=i[t],e===n)return!0;return!1}}),fo=ne.extend({init:function(e,t){this.plotArea=e,this.options=Fe({},this.options,t)},start:function(e){return this._active=z(e,this.options.key)},move:function(e){if(this._active){var t=this.axisRanges=this._panAxes(e,fe).concat(this._panAxes(e,me));if(t.length)return this.axisRanges=t,B(t)}},end:function(){var e=this._active;return this._active=!1,e},pan:function(){var e,t,n=this,i=n.plotArea,o=n.axisRanges;if(o.length){for(e=0;e<o.length;e++)t=o[e],i.updateAxisOptions(t.axis,t.range);i.redraw(i.panes)}},destroy:function(){delete this.plotArea},_panAxes:function(e,t){var n,i,o,r,a=this.plotArea,s=-e[t].delta,l=(this.options.lock||"").toLowerCase(),d=[];if(0!==s&&(l||"").toLowerCase()!==t)for(n=a.axes,i=0;i<n.length;i++)o=n[i],(t===fe&&!o.options.vertical||t===me&&o.options.vertical)&&(r=o.pan(s),r&&(r.limitRange=!0,d.push({axis:o,range:r})));return d}}),fo.prototype.options={key:"none",lock:"none"},mo=ne.extend({init:function(e,t){this.chart=e,this.options=Fe({},this.options,t),this.createElement()},createElement:function(){var e,t=this._marquee=document.createElement("div");t.className="k-marquee",e=document.createElement("div"),e.className="k-marquee-color",t.appendChild(e)},removeElement:function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},setStyles:function(e){Qe(this._marquee,e)},start:function(e){var t,n,i,o,r;return!!(z(e,this.options.key)&&(t=this.chart,n=t._eventCoordinates(e),i=this._zoomPane=t._plotArea.paneByPoint(n),o=i?i.chartsBox().clone():null,i&&o))&&(r=this._elementOffset(),o.translate(r.left,r.top),this._zoomPaneClipBox=o,document.body.appendChild(this._marquee),this.setStyles({left:e.pageX+1,top:e.pageY+1,width:0,height:0}),!0)},_elementOffset:function(){var e=this.chart.element,t=Qe(e,["paddingLeft","paddingTop"]),n=t.paddingLeft,i=t.paddingTop,o=te.elementOffset(e);return{left:n+o.left,top:i+o.top}},move:function(e){var t=this._zoomPane;t&&this.setStyles(this._selectionPosition(e))},end:function(e){var t,n,i,o,r=this._zoomPane;if(r)return t=this._elementOffset(),n=this._selectionPosition(e),n.left-=t.left,n.top-=t.top,i={x:n.left,y:n.top},o={x:n.left+n.width,y:n.top+n.height},this._updateAxisRanges(i,o),this.removeElement(),delete this._zoomPane,B(this.axisRanges)},zoom:function(){var e,t,n,i=this.axisRanges;if(i&&i.length){for(e=this.chart._plotArea,t=0;t<i.length;t++)n=i[t],e.updateAxisOptions(n.axis,n.range);e.redraw(e.panes)}},destroy:function(){this.removeElement(),delete this._marquee,delete this.chart},_updateAxisRanges:function(e,t){var n,i,o,r,a=(this.options.lock||"").toLowerCase(),s=[],l=this._zoomPane.axes;for(n=0;n<l.length;n++)i=l[n],o=i.options.vertical,a===fe&&!o||a===me&&o||!ke(i.axisIndex)||(r=i.pointsRange(e,t),r&&s.push({axis:i,range:r}));this.axisRanges=s},_selectionPosition:function(e){var t=this._zoomPaneClipBox,n={x:e.x.startLocation,y:e.y.startLocation},i=e.x.location,o=e.y.location,r=(this.options.lock||"").toLowerCase(),a=Math.min(n.x,i),s=Math.min(n.y,o),l=Math.abs(n.x-i),d=Math.abs(n.y-o);return r===fe&&(a=t.x1,l=t.width()),r===me&&(s=t.y1,d=t.height()),i>t.x2&&(l=t.x2-n.x),i<t.x1&&(l=n.x-t.x1),o>t.y2&&(d=t.y2-n.y),o<t.y1&&(d=n.y-t.y1),{left:Math.max(a,t.x1),top:Math.max(s,t.y1),width:l,height:d}}}),mo.prototype.options={key:"shift",lock:"none"},go=ne.extend({init:function(e,t){this.chart=e,this.options=Fe({},this.options,t)},updateRanges:function(e){var t,n,i,o,r=(this.options.lock||"").toLowerCase(),a=[],s=this.chart._plotArea.axes;for(t=0;t<s.length;t++)n=s[t],i=n.options.vertical,r===fe&&!i||r===me&&i||!n.zoomRange||(o=n.zoomRange(-e),o&&a.push({axis:n,range:o}));return this.axisRanges=a,B(a)},zoom:function(){var e,t,n=this.axisRanges,i=this.chart._plotArea;if(n&&n.length&&i.updateAxisOptions){for(e=0;e<n.length;e++)t=n[e],i.updateAxisOptions(t.axis,t.range);i.redraw(i.panes)}},destroy:function(){delete this.chart}}),vo=Ce.extend({init:function(e,t){Ce.fn.init.call(this,e),this.chartService=t},render:function(){var e,t,n=this,i=n.children,o=n.options,r=o.vertical;for(this.visual=new nt.Layout(null,{spacing:r?0:o.spacing,lineSpacing:r?o.spacing:0,orientation:r?"vertical":"horizontal",reverse:o.rtl,alignItems:r?"start":"center"}),e=0;e<i.length;e++)t=i[e],t.reflow(new Te),t.renderVisual()},reflow:function(e){this.visual.rect(e.toRect()),this.visual.reflow();var t=this.visual.clippedBBox();this.box=t?te.rectToBox(t):new Te},renderVisual:function(){this.addVisual()},createVisual:function(){}}),_o=Ge.extend({init:function(e){Ge.fn.init.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())},createContainer:function(){this.container=new te.FloatElement({vertical:!1,wrap:!1,align:le,spacing:this.options.spacing}),this.append(this.container)},createMarker:function(){this.container.append(new He(this.markerOptions()))},markerOptions:function(){var e=this.options,t=e.markerColor;return Fe({},e.markers,{background:t,border:{color:t}})},createLabel:function(){var e=this.options,t=Fe({},e.labels);this.container.append(new Le(e.text,t))},renderComplete:function(){var e,t;Ge.fn.renderComplete.call(this),e=this.options.cursor||{},t=this._itemOverlay=it.fromRect(this.container.box.toRect(),{fill:{color:he,opacity:0},stroke:null,cursor:e.style||e}),this.appendVisual(t)},click:function(e,t){var n=this.eventArgs(t);!e.trigger(wn,n)&&t&&"contextmenu"===t.type&&t.preventDefault()},over:function(e,t){var n=this.eventArgs(t);return e.trigger(kn,n)||e._legendItemHover(n.seriesIndex,n.pointIndex),!0},out:function(e,t){e._unsetActivePoint(),e.trigger(yn,this.eventArgs(t))},eventArgs:function(e){var t=this.options;return{element:ze(e),text:t.text,series:t.series,seriesIndex:t.series.index,pointIndex:t.pointIndex}},renderVisual:function(){var e=this,t=this.options,n=t.visual;n?(this.visual=n({active:t.active,series:t.series,sender:this.getSender(),pointIndex:t.pointIndex,options:{markers:this.markerOptions(),labels:t.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):Ge.fn.renderVisual.call(this)}}),bo="horizontal",wo="pointer",ko="custom",yo=Ce.extend({init:function(e,t){void 0===t&&(t={}),Ce.fn.init.call(this,e),this.chartService=t,Ee(this.options.position,[de,ge,ce,ue,ko])||(this.options.position=ge),this.createContainers(),this.createLegendTitle(e.title),this.createItems()},createContainers:function(){var e=this.options,t=e.position,n=e.align,i=t,o=le;t===ko?i=ue:Ee(t,[de,ce])?(i="start"===n?ue:"end"===n?ge:le,o=t):n&&("start"===n?o=de:"end"===n&&(o=ce)),this.container=new Ge({margin:e.margin,padding:e.padding,background:e.background,border:e.border,vAlign:o,align:i,zIndex:e.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new Ge({vAlign:o,align:i,zIndex:e.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)},createItems:function(){var e,t,n,i=this.getService(),o=this.options,r=this.isVertical(),a=new vo({vertical:r,spacing:o.spacing,rtl:i.rtl},i),s=o.items;for(o.reverse&&(s=s.slice(0).reverse()),e=s.length,t=0;t<e;t++)n=s[t],a.append(new _o(Fe({},{markers:o.markers,labels:o.labels,rtl:i.rtl},o.item,n)));a.render(),this.itemsContainer.append(a)},isVertical:function(){var e=this.options,t=e.orientation,n=e.position,i=n===ko&&t!==bo||(ke(t)?t!==bo:Ee(n,[ue,ge]));return i},hasItems:function(){return this.container.children[0].children.length>0},reflow:function(e){var t=this.options,n=e.clone();return this.hasItems()?(t.position===ko?(this.containerCustomReflow(n),this.box=n):this.containerReflow(n),void(this.hasTitle()&&this.title.reflow(new Te(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2)))):void(this.box=n)},containerReflow:function(e){var t,n=this,i=n.options,o=n.container,r=i.position,a=i.width,s=i.height,l=r===de||r===ce?fe:me,d=this.isVertical(),c=e.clone(),u=e.clone();r!==ue&&r!==ge||(u.y1=c.y1=0),d&&s?(u.y2=u.y1+s,u.align(c,me,o.options.vAlign)):!d&&a&&(u.x2=u.x1+a,u.align(c,fe,o.options.align)),o.reflow(u),u=o.box,t=u.clone(),(i.offsetX||i.offsetY)&&(u.translate(i.offsetX,i.offsetY),o.reflow(u)),t[l+1]=e[l+1],t[l+2]=e[l+2],this.box=t},containerCustomReflow:function(e){var t=this,n=t.options,i=t.container,o=n.offsetX,r=n.offsetY,a=n.width,s=n.height,l=this.isVertical(),d=e.clone();l&&s?d.y2=d.y1+s:!l&&a&&(d.x2=d.x1+a),i.reflow(d),d=i.box,i.reflow(new Te(o,r,o+d.width(),r+d.height()))},renderVisual:function(){this.hasItems()&&Ce.fn.renderVisual.call(this)},createLegendTitle:function(e){var t,n=Fe({},{color:ve,position:de,align:le},e),i=n.text;e&&e.visible!==!1&&(ke(n)&&n.visible&&(t=Be(n),t?i=t({text:i}):n.format&&(i=this.chartService.format.auto(n.format,i))),this.title=new Le(i,n),this.createTitleLayout(),this.appendTitleLayoutContent())},createTitleLayout:function(){this.layout=new te.FloatElement({vertical:!0,wrap:!1}),this.container.append(this.layout)},hasTitle:function(){return!(!this.options.title||this.options.title.visible===!1)},appendTitleLayoutContent:function(){var e=this.options;e.title.position===ce?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}),Ae(yo,{position:ge,items:[],offsetX:0,offsetY:0,margin:Ne(5),padding:Ne(5),border:{color:ve,width:0},item:{cursor:wo,spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:ue,vAlign:le}}),xo=ne.extend({init:function(){this._registry=[]},register:function(e,t){this._registry.push({type:e,seriesTypes:t})},create:function(e,t,n){var i,o,r,a=this._registry,s=a[0];for(o=0;o<a.length;o++)if(r=a[o],i=b(e,r.seriesTypes),i.length>0){s=r;break}return new s.type(i,t,n)}}),xo.current=new xo,Co=3,So=.1,To=ne.extend({init:function(e,t,n,i){var o=e.element;this.options=Fe({},this.options,n),this.chart=e,this.observer=i,this.chartElement=o,this.categoryAxis=t,this._dateAxis=this.categoryAxis instanceof te.DateCategoryAxis,this.initOptions(),this.visible=this.options.visible&&o.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())},onPane:function(e){return this.categoryAxis.pane===e},createElements:function(){var e,t,n,i,o,r,a=this.options,s=this.wrapper=L("k-selector");Qe(s,{top:a.offset.top,left:a.offset.left,width:a.width,height:a.height,direction:"ltr"}),e=this.selection=L("k-selection"),this.leftMask=L("k-mask"),this.rightMask=L("k-mask"),s.appendChild(this.leftMask),s.appendChild(this.rightMask),s.appendChild(e),e.appendChild(L("k-selection-bg")),t=this.leftHandle=L("k-handle k-left-handle"),n=this.rightHandle=L("k-handle k-right-handle"),t.appendChild(L()),n.appendChild(L()),e.appendChild(t),e.appendChild(n),this.chartElement.appendChild(s),i=Qe(e,["borderLeftWidth","borderRightWidth","height"]),o=Qe(t,"height").height,r=Qe(n,"height").height,a.selection={border:{left:i.borderLeftWidth,right:i.borderRightWidth}},Qe(t,{top:(i.height-o)/2}),Qe(n,{top:(i.height-r)/2}),s.style.cssText=s.style.cssText},bindEvents:function(){if(this.options.mousewheel!==!1){this._mousewheelHandler=this._mousewheel.bind(this);var e;Ze(this.wrapper,(e={},e[Kn]=this._mousewheelHandler,e))}this._domEvents=Je.DomEventsBuilder.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},initOptions:function(){var e,t,n,i=this,o=i.options,r=i.categoryAxis,a=r.pane.chartsBox(),s=this.chart.chartService.intl;this._dateAxis&&Fe(o,{min:Ue(s,o.min),max:Ue(s,o.max),from:Ue(s,o.from),to:Ue(s,o.to)}),e=Qe(this.chartElement,["paddingLeft","paddingTop"]),t=e.paddingLeft,n=e.paddingTop,this.options=Fe({},{width:a.width(),height:a.height()+So,padding:{left:t,top:n},offset:{left:a.x1+t,top:a.y1+n},from:o.min,to:o.max},o)},destroy:function(){if(this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper){if(this._mousewheelHandler){var e;et(this.wrapper,(e={},e[Kn]=this._mousewheelHandler,e)),this._mousewheelHandler=null}this.chartElement.removeChild(this.wrapper),this.wrapper=null}},_rangeEventArgs:function(e){return{axis:this.categoryAxis.options,from:this._value(e.from),to:this._value(e.to)}},_start:function(e){var t,n=this.options,i=ze(e);!this._state&&i&&(this.chart._unsetActivePoint(),this._state={moveTarget:H(i)||i,startLocation:e.x?e.x.location:0,range:{from:this._index(n.from),to:this._index(n.to)}},t=this._rangeEventArgs({from:this._index(n.from),to:this._index(n.to)}),this.trigger(Bn,t)&&(this._state=null))},_press:function(e){var t;t=this._state?this._state.moveTarget:H(ze(e)),t&&te.addClass(t,"k-handle-active")},_move:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_;this._state&&(t=this,n=t._state,i=t.options,o=t.categoryAxis,r=n.range,a=n.moveTarget,s=o.options.reverse,l=this._index(i.from),d=this._index(i.to),c=this._index(i.min),u=this._index(i.max),h=n.startLocation-e.x.location,p={from:r.from,to:r.to},f=r.to-r.from,m=Qe(this.wrapper,"width").width/(o.categoriesCount()-1),g=Math.round(h/m)*(s?-1:1),a&&(v=Xe(a,"k-left-handle"),_=Xe(a,"k-right-handle"),Xe(a,"k-selection k-selection-bg")?(r.from=Math.min(Math.max(c,l-g),u-f),r.to=Math.min(r.from+f,u)):v&&!s||_&&s?(r.from=Math.min(Math.max(c,l-g),u-1),r.to=Math.max(r.from+1,r.to)):(v&&s||_&&!s)&&(r.to=Math.min(Math.max(c+1,d-g),u),r.from=Math.min(r.to-1,r.from)),r.from===p.from&&r.to===p.to||(this.move(r.from,r.to),this.trigger(Ln,this._rangeEventArgs(r)))))},_end:function(){var e,t;this._state&&(e=this._state.moveTarget,e&&te.removeClass(e,"k-handle-active"),t=this._state.range,this.set(t.from,t.to),this.trigger(Hn,this._rangeEventArgs(t)),delete this._state)},_tap:function(e){var t=this,n=t.options,i=t.categoryAxis,o=this.chart._eventCoordinates(e),r=i.pointCategoryIndex(new Se(o.x,i.box.y1)),a=this._index(n.from),s=this._index(n.to),l=this._index(n.min),d=this._index(n.max),c=s-a,u=a+c/2,h={},p=3===e.event.which,f=Math.round(u-r);this._state||p||(this.chart._unsetActivePoint(),i.options.justified||f--,h.from=Math.min(Math.max(l,a-f),d-c),h.to=Math.min(h.from+c,d),this._start(e),this._state&&(this._state.range=h,this.trigger(Ln,this._rangeEventArgs(h)),this._end()))},_mousewheel:function(e){var t,n=this,i=te.mousewheelDelta(e);this._start({target:this.selection}),this._state&&(t=this._state.range,e.preventDefault(),e.stopPropagation(),Math.abs(i)>1&&(i*=Co),this.options.mousewheel.reverse&&(i*=-1),this.expand(i)&&this.trigger(Ln,{axis:this.categoryAxis.options,delta:i,originalEvent:e,from:this._value(t.from),to:this._value(t.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){n._end()},Yn))},_gesturestart:function(e){var t,n=this.options;this._state={range:{from:this._index(n.from),to:this._index(n.to)}},t=this._rangeEventArgs(this._state.range),this.trigger(Bn,t)?this._state=null:e.preventDefault()},_gestureend:function(){this._state&&(this.trigger(Hn,this._rangeEventArgs(this._state.range)),delete this._state);
},_gesturechange:function(e){var t=this,n=t.chart,i=t._state,o=t.options,r=t.categoryAxis,a=i.range,s=n._toModelCoordinates(e.touches[0].x.location).x,l=n._toModelCoordinates(e.touches[1].x.location).x,d=Math.min(s,l),c=Math.max(s,l);e.preventDefault(),a.from=r.pointCategoryIndex(new Se(d))||o.min,a.to=r.pointCategoryIndex(new Se(c))||o.max,this.move(a.from,a.to),this.trigger(Ln,this._rangeEventArgs(a))},_index:function(e){var t=e;return e instanceof Date&&(t=this.categoryAxis.categoryIndex(e)),t},_value:function(e){var t=e;return this._dateAxis&&(t=this.categoryAxis.categoryAt(e),t>this.options.max&&(t=this.options.max)),t},_slot:function(e){var t=this.categoryAxis,n=this._index(e);return t.getSlot(n,n,!0)},move:function(e,t){var n,i,o=this.options,r=this.categoryAxis.options.reverse,a=o.offset,s=o.padding,l=o.selection.border,d=r?t:e,c=r?e:t,u="x"+(r?2:1),h=this._slot(d),p=$e(h[u]-a.left+s.left);Qe(this.leftMask,{width:p}),Qe(this.selection,{left:p}),h=this._slot(c),n=$e(o.width-(h[u]-a.left+s.left)),Qe(this.rightMask,{width:n}),i=o.width-n,i!==o.width&&(i+=l.right),Qe(this.rightMask,{left:i}),Qe(this.selection,{width:Math.max(o.width-(p+n)-l.right,0)})},set:function(e,t){var n=this.options,i=this._index(n.min),o=this._index(n.max),r=Ke(this._index(e),i,o),a=Ke(this._index(t),r+1,o);n.visible&&this.move(r,a),n.from=this._value(r),n.to=this._value(a)},expand:function(e){var t=this.options,n=this._index(t.min),i=this._index(t.max),o=t.mousewheel.zoom,r=this._index(t.from),a=this._index(t.to),s={from:r,to:a},l=Fe({},s);if(this._state&&(s=this._state.range),o!==ge&&(s.from=Ke(Ke(r-e,0,a-1),n,i)),o!==ue&&(s.to=Ke(Ke(a+e,s.from+1,i),n,i)),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},trigger:function(e,t){return(this.observer||this.chart).trigger(e,t)}}),Ae(To,{visible:!0,mousewheel:{zoom:"both"},min:ae,max:re}),Do=Bi.extend({show:function(e){var t,n;!e||!e.tooltipAnchor||this._current&&this._current===e||(t=Fe({},this.options,e.options.tooltip),n=e.tooltipAnchor(),n?(this._current=e,Bi.fn.show.call(this,{point:e,anchor:n},t,e)):this.hide())},hide:function(){delete this._current,Bi.fn.hide.call(this)}}),Ao=Bi.extend({init:function(e,t){Bi.fn.init.call(this,e.chartService,t),this.plotArea=e,this.formatService=e.chartService.format},showAt:function(e,t){var n,i,o,r=Ye(e,function(e){var t=e.series.tooltip,n=t&&t.visible===!1;return!n});r.length>0&&(n=r[0],i=this.plotArea.categoryAxis.getSlot(n.categoryIx),o=t?this._slotAnchor(t,i):this._defaultAnchor(n,i),this.show({anchor:o,shared:!0,points:e,category:n.category,categoryText:this.formatService.auto(this.options.categoryFormat,n.category),series:this.plotArea.series},this.options))},_slotAnchor:function(e,t){var n=this.plotArea.categoryAxis,i={horizontal:"left",vertical:"center"};return n.options.vertical||(e.x=t.center().x),{point:e,align:i}},_defaultAnchor:function(e,t){var n,i=e.owner.pane.chartsBox(),o=this.plotArea.categoryAxis.options.vertical,r=i.center(),a=t.center(),s={horizontal:"center",vertical:"center"};return n=o?new Se(r.x,a.y):new Se(a.x,r.y),{point:n,align:s}}}),Ae(Ao,{categoryFormat:"{0:d}"}),Eo=ot.extend({setup:function(){var e,t,n=this,i=n.element,o=n.options,r=i.bbox();r?(this.origin=o.origin,e=o.vertical?me:fe,t=this.fromScale=new dt(1,1),t[e]=Dt,i.transform(ct().scale(t.x,t.y))):this.abort()},step:function(e){var t=te.interpolateValue(this.fromScale.x,1,e),n=te.interpolateValue(this.fromScale.y,1,e);this.element.transform(ct().scale(t,n,this.origin))},abort:function(){ot.fn.abort.call(this),this.element.transform(null)}}),Ae(Eo,{duration:yt}),rt.current.register(Ut,Eo),Io=ot.extend({setup:function(){var e=this.center=this.element.bbox().center();this.element.transform(ct().scale(Dt,Dt,e))},step:function(e){this.element.transform(ct().scale(e,e,this.center))}}),Ae(Io,{easing:"easeOutElastic"}),rt.current.register(qt,Io),Mo=ot.extend({setup:function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},step:function(e){this.element.opacity(e*this.fadeTo)}}),Ae(Mo,{duration:200,easing:"linear"}),rt.current.register(xt,Mo),Ro=ot.extend({setup:function(){this.element.transform(ct().scale(Dt,Dt,this.options.center))},step:function(e){this.element.transform(ct().scale(e,e,this.options.center))}}),Ae(Ro,{easing:"easeOutElastic",duration:yt}),rt.current.register(en,Ro),Fo=Ii.extend({render:function(){Ii.fn.render.call(this),this.renderSegments()},createSegment:function(e,t,n){var i,o=t.style;return new(i=o===Ot?li:ri)(e,t,n)},animationPoints:function(){var e=Ii.fn.animationPoints.call(this);return e.concat(this._segments)},createMissingValue:function(e,t){if(t===zt){var n={x:e.x,y:e.y};return h(n.x)||(n.x=0),h(n.y)||(n.y=0),n}}}),Fe(Fo.prototype,di),Po=Ui.extend({initFields:function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new vi,this.yAxisRangeTracker=new vi},render:function(e){var t,n,i,o,r,a=this;for(void 0===e&&(e=this.panes),t=this.groupSeriesByPane(),n=0;n<e.length;n++)i=e[n],o=t[i.options.name||"default"]||[],a.addToLegend(o),r=a.filterVisibleSeries(o),r&&(a.createScatterChart(b(r,un),i),a.createScatterLineChart(b(r,hn),i),a.createBubbleChart(b(r,qt),i));this.createAxes(e)},appendChart:function(e,t){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),Ui.fn.appendChart.call(this,e,t)},removeAxis:function(e){var t=e.options.name;Ui.fn.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(t),delete this.namedYAxes[t]):(this.xAxisRangeTracker.reset(t),delete this.namedXAxes[t]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},seriesPaneName:function(e){var t=this.options,n=e.xAxis,i=[].concat(t.xAxis),o=Ye(i,function(e){return e.name===n})[0],r=e.yAxis,a=[].concat(t.yAxis),s=Ye(a,function(e){return e.name===r})[0],l=t.panes||[{}],d=l[0].name||"default",c=(o||{}).pane||(s||{}).pane||d;return c},createScatterChart:function(e,t){e.length>0&&this.appendChart(new Ii(this,{series:e,clip:t.options.clip}),t)},createScatterLineChart:function(e,t){e.length>0&&this.appendChart(new Fo(this,{series:e,clip:t.options.clip}),t)},createBubbleChart:function(e,t){e.length>0&&this.appendChart(new Ri(this,{series:e,clip:t.options.clip}),t)},createXYAxis:function(e,t,n){var i,o,r,a,s,l,d,c,u=e.name,h=t?this.namedYAxes:this.namedXAxes,p=t?this.yAxisRangeTracker:this.xAxisRangeTracker,f=Fe({reverse:!t&&this.chartService.rtl},e,{vertical:t}),m=_(f.type,Un),g=p.query(),v=m?{min:.1,max:1}:{min:0,max:1},b=p.query(u)||g||v,w=[f.min,f.max],k=this.series;for(i=0;i<k.length;i++)if(o=k[i],r=o[t?"yAxis":"xAxis"],r===f.name||0===n&&!r){a=mt.current.bindPoint(o,0).valueFields,w.push(a[t?"y":"x"]);break}for(0===n&&g&&(b.min=Math.min(b.min,g.min),b.max=Math.max(b.max,g.max)),l=0;l<w.length;l++)if(w[l]instanceof Date){s=!0;break}if(d=_(f.type,_e)||!f.type&&s?te.DateValueAxis:m?te.LogarithmicAxis:te.NumericAxis,c=new d(b.min,b.max,f,this.chartService),c.axisIndex=n,u){if(h[u])throw Error((t?"Y":"X")+" axis with name "+u+" is already defined");h[u]=c}return this.appendAxis(c),c},createAxes:function(e){var t,n,i,o,r=this,a=this.options,s=[].concat(a.xAxis),l=[],d=[].concat(a.yAxis),c=[];for(t=0;t<s.length;t++)n=r.findPane(s[t].pane),Ee(n,e)&&l.push(r.createXYAxis(s[t],!1,t));for(i=0;i<d.length;i++)o=r.findPane(d[i].pane),Ee(o,e)&&c.push(r.createXYAxis(d[i],!0,i));this.axisX=this.axisX||l[0],this.axisY=this.axisY||c[0]},_dispatchEvent:function(e,t,n){var i,o,r,a,s=e._eventCoordinates(t),l=new Se(s.x,s.y),d=this.axes,c=d.length,u=[],h=[];for(i=0;i<c;i++)o=d[i],r=o.options.vertical?h:u,a=o.getValue(l),null!==a&&r.push(a);u.length>0&&h.length>0&&e.trigger(n,{element:ze(t),originalEvent:t,x:y(u),y:y(h)})},updateAxisOptions:function(e,t){var n=e.options.vertical,i=this.groupAxes(this.panes),o=(n?i.y:i.x).indexOf(e);N(this.options,o,n,t),N(this.originalOptions,o,n,t)}}),Ae(Po,{xAxis:{},yAxis:{}}),Fe(Po.prototype,qi),zo=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this,n),this.value=e,this.sector=t},render:function(){var e,t,n,i,o=this.options.labels,r=this.owner.chartService,a=this.value;this._rendered||this.visible===!1||(this._rendered=!0,e=Be(o),t=this.pointData(),e?a=e(t):o.format&&(a=r.format.auto(o.format,a)),o.visible&&(a||0===a)&&(o.position===le||o.position===qn?(o.color||(n=new st(this.options.color).percBrightness(),o.color=n>180?ve:he),o.background||(o.background=this.options.color)):(i=r.theme.seriesDefaults.labels,o.color=o.color||i.color,o.background=o.background||i.background),this.label=new Le(a,Fe({},o,{align:le,vAlign:"",animation:{type:xt,delay:this.animationDelay}}),t),this.append(this.label)))},reflow:function(e){this.render(),this.box=e,this.reflowLabel()},reflowLabel:function(){var e,t,n,i,o=this,r=o.options.labels,a=o.label,s=this.sector.clone(),l=r.distance,d=s.middle();a&&(e=a.box.height(),t=a.box.width(),r.position===le?(s.radius=Math.abs((s.radius-e)/2)+e,n=s.point(d),a.reflow(new Te(n.x,n.y-e/2,n.x,n.y))):r.position===qn?(s.radius=s.radius-e/2,n=s.point(d),a.reflow(new Te(n.x,n.y-e/2,n.x,n.y))):(n=s.clone().expand(l).point(d),n.x>=s.center.x?(i=n.x+t,a.orientation=ge):(i=n.x-t,a.orientation=ue),a.reflow(new Te(i,n.y-e,n.x,n.y))))},createVisual:function(){var e,t,n=this,i=this,o=i.sector,r=i.options;Ce.fn.createVisual.call(this),this.value&&(r.visual?(e=(o.startAngle+180)%360,t=r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new dt(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:e,endAngle:e+o.angle,options:r,sender:this.getSender(),createVisual:function(){var e=new at;return n.createSegmentVisual(e),e}}),t&&this.visual.append(t)):this.createSegmentVisual(this.visual))},createSegmentVisual:function(e){var t=this,n=t.sector,i=t.options,o=i.border||{},r=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},a=i.color,s={color:a,opacity:i.opacity},d=this.createSegment(n,Fe({fill:s,stroke:{opacity:i.opacity},zIndex:i.zIndex},r));e.append(d),l(i)&&e.append(this.createGradientOverlay(d,{baseColor:a,fallbackFill:s},Fe({center:[n.center.x,n.center.y],innerRadius:n.innerRadius,radius:n.radius,userSpace:!0},i.overlay)))},createSegment:function(e,t){return t.singleSegment?new nt.Circle(new lt.Circle(new dt(e.center.x,e.center.y),e.radius),t):te.ShapeBuilder.current.createRing(e,t)},createAnimation:function(){var e=this,t=e.options,n=e.sector.center;Fe(t,{animation:{center:[n.x,n.y],delay:this.animationDelay}}),Ce.fn.createAnimation.call(this)},createHighlight:function(e){var t=this.options.highlight||{},n=t.border||{};return this.createSegment(this.sector,Fe({},e,{fill:{color:t.color,opacity:t.opacity},stroke:{opacity:n.opacity,width:n.width,color:n.color}}))},highlightVisual:function(){return this.visual.children[0]},highlightVisualArgs:function(){var e=this.sector;return{options:this.options,radius:e.radius,innerRadius:e.innerRadius,center:new dt(e.center.x,e.center.y),startAngle:e.startAngle,endAngle:e.angle+e.startAngle,visual:this.visual}},tooltipAnchor:function(){var e=this.sector.clone().expand(Tt),t=e.middle(),n=e.point(t);return{point:n,align:O(t+180)}},formatValue:function(e){return this.owner.formatPointValue(this,e)},pointData:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}),Bo=$e(te.rad(30),be),Lo=$e(te.rad(60),be),Ae(zo,{color:he,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:oe.DEFAULT_FONT,margin:Ne(.5),align:pe,zIndex:1,position:$n},animation:{type:en},highlight:{visible:!0,border:{width:1}},visible:!0}),Fe(zo.prototype,ni),Ho={createLegendItem:function(e,t,n){var i,o,r,a,s,l=this.options.legend||{},d=l.labels||{},c=l.inactiveItems||{},u=c.labels||{};n&&n.visibleInLegend!==!1&&(i=n.visible!==!1,o=i?Be(d):Be(u)||Be(d),r=n.category,o&&(r=o({text:r,series:n.series,dataItem:n.dataItem,percentage:n.percentage,value:e})),i?(a={},s=t.color):(a={color:u.color,font:u.font},s=(c.markers||{}).color),h(r)&&""!==r&&this.legendItems.push({active:i,pointIndex:n.index,text:r,series:n.series,markerColor:s,labels:a}))}},No=70,Oo=Ce.extend({init:function(e,t){Ce.fn.init.call(this,t),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()},render:function(){this.traverseDataPoints(this.addValue.bind(this))},traverseDataPoints:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,_,b,w,k,y=this,x=this,C=x.options,S=x.plotArea.options.seriesColors;for(void 0===S&&(S=[]),t=S.length,n=C.series,i=n.length,o=0;o<i;o++)for(r=n[o],a=r.data,s=v(r),l=s.total,d=s.points,c=s.count,u=360/l,h=void 0,isFinite(u)||(h=360/c),p=void 0,p=ke(r.startAngle)?r.startAngle:C.startAngle,o!==i-1&&r.labels.position===$n&&(r.labels.position=le),f=0;f<d.length;f++)m=d[f],m&&(g=m.fields,_=m.value,b=m.visible,w=0!==_?h||_*u:0,k=1!==a.length&&!!g.explode,Ie(r.color)||(r.color=g.color||S[f%t]),e(m.valueFields.value,new te.Ring(null,0,0,p,w),{owner:y,category:ke(g.category)?g.category:"",index:f,series:r,seriesIx:o,dataItem:a[f],percentage:0!==l?_/l:0,explode:k,visibleInLegend:g.visibleInLegend,visible:b,zIndex:i-o,animationDelay:y.animationDelay(f,o,i)}),b!==!1&&(p+=w))},evalSegmentOptions:function(e,t,n){var i=n.series;o(e,{value:t,series:i,dataItem:n.dataItem,category:n.category,percentage:n.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},addValue:function(t,n,i){var o,r=Fe({},i.series,{index:i.index});this.evalSegmentOptions(r,t,i),this.createLegendItem(t,r,i),i.visible!==!1&&(o=new zo(t,n,r),e.extend(o,i),this.append(o),this.points.push(o))},reflow:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y=this,x=y.options,C=y.points,S=y.seriesConfigs;for(void 0===S&&(S=[]),t=C.length,n=e.clone(),i=5,o=Math.min(n.width(),n.height()),r=o/2,a=o-.85*o,s=new Te(n.x1,n.y1,n.x1+o,n.y1+o),l=s.center(),d=n.center(),c=x.series.length,u=[],h=[],p=Me(x.padding,a),this.targetBox=e,p=p>r-i?r-i:p,s.translate(d.x-l.x,d.y-l.y),f=r-p,m=new Se(f+s.x1+p,f+s.y1+p),g=0;g<t;g++)v=C[g],_=v.sector,b=v.seriesIx,_.radius=f,_.center=m,S.length&&(w=S[b],_.innerRadius=w.innerRadius,_.radius=w.radius),b===c-1&&v.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),v.reflow(s),k=v.label,k&&k.options.position===$n&&b===c-1&&(k.orientation===ge?h.push(k):u.push(k));u.length>0&&(u.sort(this.labelComparator(!0)),this.leftLabelsReflow(u)),h.length>0&&(h.sort(this.labelComparator(!1)),this.rightLabelsReflow(h)),this.box=s},leftLabelsReflow:function(e){var t=this.distanceBetweenLabels(e);this.distributeLabels(t,e)},rightLabelsReflow:function(e){var t=this.distanceBetweenLabels(e);this.distributeLabels(t,e)},distanceBetweenLabels:function(e){var t,n,i=Pe(this.points),o=i.sector,r=e.length-1,a=o.radius+i.options.labels.distance,s=[],l=e[0].box,d=$e(l.y1-(o.center.y-a-l.height()-l.height()/2));for(s.push(d),t=0;t<r;t++)n=e[t+1].box,l=e[t].box,d=$e(n.y1-l.y2),s.push(d);return d=$e(o.center.y+a-e[r].box.y2-e[r].box.height()/2),s.push(d),s},distributeLabels:function(e,t){var n,i,o,r,a=this,s=e.length;for(r=0;r<s;r++)for(o=-e[r],n=i=r;o>0&&(n>=0||i<s);)o=a._takeDistance(e,r,--n,o),o=a._takeDistance(e,r,++i,o);this.reflowLabels(e,t)},_takeDistance:function(e,t,n,i){var o,r=i;return e[n]>0&&(o=Math.min(e[n],r),r-=o,e[n]-=o,e[t]+=o),r},reflowLabels:function(e,t){var n,i,o,r,a=this,s=Pe(this.points),l=s.sector,d=s.options.labels,c=t.length,u=d.distance,h=l.center.y-(l.radius+u)-t[0].box.height();for(e[0]+=2,i=0;i<c;i++)o=t[i],r=o.box,h+=e[i],n=a.hAlignLabel(r.x2,l.clone().expand(u),h,h+r.height(),o.orientation===ge),o.orientation===ge?(d.align!==pe&&(n=l.radius+l.center.x+u),o.reflow(new Te(n+r.width(),h,n,h))):(d.align!==pe&&(n=l.center.x-l.radius-u),o.reflow(new Te(n-r.width(),h,n,h))),h+=r.height()},createVisual:function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f=this,m=this,g=m.options.connectors,v=m.points,_=v.length,b=4;for(Ce.fn.createVisual.call(this),this._connectorLines=[],e=0;e<_;e++)t=v[e],n=t.sector,i=t.label,o=n.middle(),r=(t.options.connectors||{}).color||g.color,i&&(a=new it({stroke:{color:r,width:g.width},animation:{type:xt,delay:t.animationDelay}}),i.options.position===$n&&(s=i.box,l=n.center,d=n.point(o),c=new Se(s.x1,s.center().y),u=void 0,h=void 0,p=void 0,d=n.clone().expand(g.padding).point(o),a.moveTo(d.x,d.y),i.orientation===ge?(h=new Se(s.x1-g.padding,s.center().y),p=V(l,d,c,h),c=new Se(h.x-b,h.y),p=p||c,p.x=Math.min(p.x,c.x),f.pointInCircle(p,n.center,n.radius+b)||p.x<n.center.x?(u=n.center.x+n.radius+b,t.options.labels.align!==Kt?u<c.x?a.lineTo(u,d.y):a.lineTo(d.x+2*b,d.y):a.lineTo(u,d.y),a.lineTo(c.x,h.y)):(p.y=h.y,a.lineTo(p.x,p.y))):(h=new Se(s.x2+g.padding,s.center().y),p=V(l,d,c,h),c=new Se(h.x+b,h.y),p=p||c,p.x=Math.max(p.x,c.x),f.pointInCircle(p,n.center,n.radius+b)||p.x>n.center.x?(u=n.center.x-n.radius-b,t.options.labels.align!==Kt?u>c.x?a.lineTo(u,d.y):a.lineTo(d.x-2*b,d.y):a.lineTo(u,d.y),a.lineTo(c.x,h.y)):(p.y=h.y,a.lineTo(p.x,p.y))),a.lineTo(h.x,h.y),f._connectorLines.push(a),f.visual.append(a)))},renderVisual:function(){var e,t,n,i,o;if(Ce.fn.renderVisual.call(this),te.find(this.options.series,function(e){return e.autoFit})){if(e=this.targetBox,t=this.box.center(),n=this.visual.bbox(),!n)return;i=n.bottomRight(),o=Math.min((t.y-e.y1)/(t.y-n.origin.y),(e.y2-t.y)/(i.y-t.y),(t.x-e.x1)/(t.x-n.origin.x),(e.x2-t.x)/(i.x-t.x)),o<1&&this.visual.transform(ct().scale(o,o,[t.x,t.y]))}},labelComparator:function(e){var t=e?-1:1;return function(e,n){var i=(e.parent.sector.middle()+270)%360,o=(n.parent.sector.middle()+270)%360;return(i-o)*t}},hAlignLabel:function(e,t,n,i,o){var r=t.radius,a=t.center,s=a.x,l=a.y,d=Math.min(Math.abs(l-n),Math.abs(l-i));return d>r?e:s+Math.sqrt(r*r-d*d)*(o?1:-1)},pointInCircle:function(e,t,n){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<Math.pow(n,2)},formatPointValue:function(e,t){return this.chartService.format.auto(t,e.value)},animationDelay:function(e){return e*No},stackRoot:function(){return this}}),Ae(Oo,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),Fe(Oo.prototype,Ho),Oo.prototype.isStackRoot=!0,Vo=Ui.extend({render:function(){this.createPieChart(this.series)},createPieChart:function(e){var t=e[0],n=new Oo(this,{series:e,padding:t.padding,startAngle:t.startAngle,connectors:t.connectors,legend:this.options.legend});this.appendChart(n)},appendChart:function(e,t){Ui.fn.appendChart.call(this,e,t),Ve(this.options.legend.items,e.legendItems)}}),Wo=zo.extend({reflowLabel:function(){var e,t,n=this,i=n.options.labels,o=n.label,r=this.sector.clone(),a=r.middle();o&&(e=o.box.height(),i.position===le?(r.radius-=(r.radius-r.innerRadius)/2,t=r.point(a),o.reflow(new Te(t.x,t.y-e/2,t.x,t.y))):zo.fn.reflowLabel.call(this))},createSegment:function(e,t){return te.ShapeBuilder.current.createRing(e,t)}}),Ae(Wo,{overlay:{gradient:"roundedGlass"},labels:{position:le},animation:{type:en}}),Fe(Wo.prototype,ni),Uo=50,jo=Oo.extend({addValue:function(t,n,i){var o,r=Fe({},i.series,{index:i.index});this.evalSegmentOptions(r,t,i),this.createLegendItem(t,r,i),t&&i.visible!==!1&&(o=new Wo(t,n,r),e.extend(o,i),this.append(o),this.points.push(o))},reflow:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p=this,f=this.options,m=e.clone(),g=5,v=Math.min(m.width(),m.height()),_=v/2,b=v-.85*v,w=f.series,k=w.length,y=Me(f.padding,b);for(y=y>_-g?_-g:y,t=_-y,n=0,o=0;o<k;o++)r=w[o],0===o&&ke(r.holeSize)&&(i=r.holeSize,t-=r.holeSize),ke(r.size)?t-=r.size:n++,ke(r.margin)&&o!==k-1&&(t-=r.margin);for(ke(i)||(a=(_-y)/(k+.75),i=.75*a,t-=i),s=i,l=0,this.seriesConfigs=[],u=0;u<k;u++)h=w[u],d=Me(h.size,t/n),s+=l,c=s+d,p.seriesConfigs.push({innerRadius:s,radius:c}),l=h.margin||0,s=c;Oo.fn.reflow.call(this,e)},animationDelay:function(e,t,n){return e*Uo+yt*(t+1)/(n+1)}}),Ae(jo,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}}),qo=Vo.extend({render:function(){this.createDonutChart(this.series)},createDonutChart:function(e){var t=e[0],n=new jo(this,{series:e,padding:t.padding,connectors:t.connectors,legend:this.options.legend});this.appendChart(n)}}),Go=.15,$o=Ui.extend({initFields:function(){this.valueAxisRangeTracker=new vi},render:function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},alignAxes:function(){var e=this.valueAxis,t=e.range(),n=e.options.reverse?t.max:t.min,i=e.getSlot(n),o=this.polarAxis.getSlot(0).center,r=e.box.translate(o.x-i.x1,o.y-i.y1);e.reflow(r)},createValueAxis:function(){var e,t,n,i,o=this.valueAxisRangeTracker,r=o.query(),a=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});a.type===Un?(e=te.RadarLogarithmicAxis,t={min:.1,max:1}):(e=te.RadarNumericAxis,t={min:0,max:1}),n=o.query(name)||r||t,n&&r&&(n.min=Math.min(n.min,r.min),n.max=Math.max(n.max,r.max)),i=new e(n.min,n.max,a,this.chartService),this.valueAxis=i,this.appendAxis(i)},reflowAxes:function(){var e,t,n=this,i=n.options.plotArea,o=n.valueAxis,r=n.polarAxis,a=n.box,s=Math.min(a.width(),a.height())*Go,l=Ne(i.padding||{},s),d=a.clone().unpad(l),c=d.clone();c.y2=c.y1+Math.min(c.width(),c.height()),c.align(d,me,le),e=c.clone().shrink(0,c.height()/2),r.reflow(c),o.reflow(e),t=o.lineBox().height()-o.box.height(),o.reflow(o.box.unpad({top:t})),this.axisBox=c,this.alignAxes(c)},backgroundBox:function(){return this.box},detachLabels:function(){}}),Ko=Ii.extend({pointSlot:function(e,t){var n=e.center.y-t.y1,i=Se.onCircle(e.center,e.startAngle,n);return new Te(i.x,i.y,i.x,i.y)}}),Ae(Ko,{clip:!1}),Yo=Fo.extend({}),Yo.prototype.pointSlot=Ko.prototype.pointSlot,Ae(Yo,{clip:!1}),Qo=mi.extend({fillToAxes:function(e){var t=this._polarAxisCenter();e.lineTo(t.x,t.y)},_polarAxisCenter:function(){var e=this.parent.plotArea.polarAxis,t=e.box.center();return t},strokeSegments:function(){var e,t,n,i=this._strokeSegments;return i||(e=this._polarAxisCenter(),t=new Oe((!1)),n=this.points(),n.push(e),i=this._strokeSegments=t.process(n),i.pop()),i}}),Xo=pi.extend({fillToAxes:function(e){var t=this.parent.plotArea.polarAxis,n=t.box.center(),i=new lt.Segment([n.x,n.y]);e.segments.unshift(i),e.segments.push(i)}}),Zo=Yo.extend({createSegment:function(e,t,n){var i,o=(t.line||{}).style;return i=o===Ot?new Qo(e,t,n):new Xo(e,t,n)},createMissingValue:function(e,t){var n;return h(e.x)&&t!==Bt&&(n={x:e.x,y:e.y},t===zt&&(n.y=0)),n},seriesMissingValues:function(e){return e.missingValues||zt},_hasMissingValuesGap:function(){var e,t=this,n=this.options.series;for(e=0;e<n.length;e++)if(t.seriesMissingValues(n[e])===Lt)return!0},sortPoints:function(e){var t,n,i,o=this;if(e.sort(W),this._hasMissingValuesGap())for(t=0;t<e.length;t++)n=e[t],n&&(i=n.value,h(i.y)||o.seriesMissingValues(n.series)!==Lt||delete e[t]);return e}}),Jo=$o.extend({createPolarAxis:function(){var e=new te.PolarAxis(this.options.xAxis,this.chartService);this.polarAxis=e,this.axisX=e,this.appendAxis(e)},valueAxisOptions:function(e){return Fe(e,{majorGridLines:{type:we},minorGridLines:{type:we}},this.options.yAxis)},createValueAxis:function(){$o.fn.createValueAxis.call(this),this.axisY=this.valueAxis},appendChart:function(e,t){this.valueAxisRangeTracker.update(e.yAxisRanges),Ui.prototype.appendChart.call(this,e,t)},createCharts:function(){var e=this.filterVisibleSeries(this.series),t=this.panes[0];this.createLineChart(b(e,[nn]),t),this.createScatterChart(b(e,[on]),t),this.createAreaChart(b(e,[tn]),t)},createLineChart:function(e,t){if(0!==e.length){var n=new Yo(this,{series:e});this.appendChart(n,t)}},createScatterChart:function(e,t){if(0!==e.length){var n=new Ko(this,{series:e});this.appendChart(n,t)}},createAreaChart:function(e,t){if(0!==e.length){var n=new Zo(this,{series:e});this.appendChart(n,t)}},_dispatchEvent:function(e,t,n){var i=e._eventCoordinates(t),o=new Se(i.x,i.y),r=this.axisX.getValue(o),a=this.axisY.getValue(o);null!==r&&null!==a&&e.trigger(n,{element:ze(t),x:r,y:a})},createCrosshairs:function(){}}),Ae(Jo,{xAxis:{},yAxis:{}}),Fe(Jo.prototype,qi),er=hi.extend({pointSlot:function(e,t){var n=e.center.y-t.y1,i=Se.onCircle(e.center,e.middle(),n);return new Te(i.x,i.y,i.x,i.y)},renderSegments:function(){var e,t,n,i,o,r,a,s;if(hi.fn.renderSegments.call(this),this._segments&&this._segments.length>1)for(e=U(this._segments),t=0;t<e.length;t++)n=e[t],n&&n.length>1&&(i=n[0].linePoints[0],o=Pe(n),r=Pe(o.linePoints),a=0===i.categoryIx,s=r.categoryIx===r.categoriesCount-1,a&&s&&Pe(n).linePoints.push(i))},createSegment:function(e,t,n){var i,o,r,a=t.style;return i=a===Ot?li:ri,o=new i(e,t,n),r=this.seriesMissingValues(t),e.length!==t.data.length&&r!==Bt||(o.options.closed=!0),o}}),Ae(er,{clip:!1,limitPoints:!1}),tr=mi.extend({fillToAxes:function(){}}),nr=pi.extend({fillToAxes:function(){}}),ir=er.extend({createSegment:function(e,t,n,i){var o,r,a,s=this.options.isStacked,l=(t.line||{}).style;return s&&n>0&&i&&(r=i.linePoints.slice(0),o=i),l===Ot?(a=new tr(e,t,n,o,r),a.options.closed=!0):(e.push(e[0]),a=new nr(e,t,n,o,r)),a},seriesMissingValues:function(e){return e.missingValues||zt}}),or=Wo.extend({init:function(e,t){Wo.fn.init.call(this,e,null,t)}}),Ae(or,{overlay:{gradient:"none"},labels:{distance:10}}),rr=Ce.extend({init:function(e){Ce.fn.init.call(this,e),this.forEach=e.rtl?c:d},reflow:function(e){var t=this,n=t.options,i=t.children,o=n.gap,r=n.spacing,a=i.length,s=a+o+r*(a-1),l=e.angle/s,d=e.startAngle+l*(o/2);this.forEach(i,function(t){var n=e.clone();n.startAngle=d,n.angle=l,t.sector&&(n.radius=t.sector.radius),t.reflow(n),t.sector=n,d+=l+l*r})}}),Ae(rr,{gap:1,spacing:0}),ar=Ce.extend({reflow:function(e){var t,n,i=this,o=i.options.reverse,r=i.children,a=r.length,s=o?a-1:0,l=o?-1:1;for(this.box=new Te,t=s;t>=0&&t<a;t+=l)n=r[t].sector,n.startAngle=e.startAngle,n.angle=e.angle}}),sr=xi.extend({pointType:function(){return or},clusterType:function(){return rr},stackType:function(){return ar},categorySlot:function(e,t){return e.getSlot(t)},pointSlot:function(e,t){var n=e.clone(),i=e.center.y;return n.radius=i-t.y1,n.innerRadius=i-t.y2,n},reflowPoint:function(e,t){e.sector=t,e.reflow()},createAnimation:function(){this.options.animation.center=this.box.toRect().center(),xi.fn.createAnimation.call(this)}}),sr.prototype.reflow=ti.prototype.reflow,Ae(sr,{clip:!1,limitPoints:!1,animation:{type:"pie"}}),lr=$o.extend({createPolarAxis:function(){var e=new te.RadarCategoryAxis(this.options.categoryAxis,this.chartService);this.polarAxis=e,this.categoryAxis=e,this.appendAxis(e),this.aggregateCategories(),this.createCategoryAxesLabels()},valueAxisOptions:function(e){return this._hasBarCharts&&Fe(e,{majorGridLines:{type:we},minorGridLines:{type:we}}),this._isStacked100&&Fe(e,{roundToMajorUnit:!1,labels:{format:"P0"}}),Fe(e,this.options.valueAxis)},aggregateCategories:function(){ho.prototype.aggregateCategories.call(this,this.panes)},createCategoryAxesLabels:function(){ho.prototype.createCategoryAxesLabels.call(this,this.panes)},filterSeries:function(e){return e},createCharts:function(){var e=this.filterVisibleSeries(this.series),t=this.panes[0];this.createAreaChart(b(e,[rn]),t),this.createLineChart(b(e,[sn]),t),this.createBarChart(b(e,[an]),t)},chartOptions:function(e){var t,n,i={series:e},o=e[0];return o&&(t=this.filterVisibleSeries(e),n=o.stack,i.isStacked=n&&t.length>1,i.isStacked100=n&&"100%"===n.type&&t.length>1,i.isStacked100&&(this._isStacked100=!0)),i},createAreaChart:function(e,t){if(0!==e.length){var n=new ir(this,this.chartOptions(e));this.appendChart(n,t)}},createLineChart:function(e,t){if(0!==e.length){var n=new er(this,this.chartOptions(e));this.appendChart(n,t)}},createBarChart:function(e,t){var n,i,o;0!==e.length&&(n=e[0],i=this.chartOptions(e),i.gap=n.gap,i.spacing=n.spacing,o=new sr(this,i),this.appendChart(o,t),this._hasBarCharts=!0)},seriesCategoryAxis:function(){return this.categoryAxis},_dispatchEvent:function(e,t,n){var i=e._eventCoordinates(t),o=new Se(i.x,i.y),r=this.categoryAxis.getCategory(o),a=this.valueAxis.getValue(o);null!==r&&null!==a&&e.trigger(n,{element:ze(t),category:r,value:a})},createCrosshairs:function(){}}),Fe(lr.prototype,qi,{appendChart:ho.prototype.appendChart,aggregateSeries:ho.prototype.aggregateSeries,seriesSourcePoints:ho.prototype.seriesSourcePoints}),Ae(lr,{categoryAxis:{categories:[]},valueAxis:{}}),dr=Ce.extend({init:function(e,t,n){Ce.fn.init.call(this,t),this.value=e,this.options.index=n.index},reflow:function(e){var t=this.points,n=this.children[0];this.box=new Te(t[0].x,t[0].y,t[1].x,t[2].y),n&&n.reflow(new Te(e.x1,t[0].y,e.x2,t[2].y))},createVisual:function(){var e,t=this,n=this.options;Ce.fn.createVisual.call(this),e=n.visual?n.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:n,sender:this.getSender(),createVisual:function(){return t.createPath()}}):this.createPath(),e&&this.visual.append(e)},createPath:function(){var e=this.options,t=e.border,n=it.fromPoints(this.points,{fill:{color:e.color,opacity:e.opacity},stroke:{color:t.color,opacity:t.opacity,width:t.width}}).close();return n},createHighlight:function(e){return it.fromPoints(this.points,e)},highlightVisual:function(){return this.visual.children[0]},highlightVisualArgs:function(){var e=it.fromPoints(this.points).close();return{options:this.options,path:e}},tooltipAnchor:function(){var e=this.box;return{point:new Se(e.center().x,e.y1),align:{horizontal:"center",vertical:"top"}}},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}}),Ae(dr,{color:he,border:{width:1}}),Fe(dr.prototype,ni),cr=Ce.extend({init:function(e,t){Ce.fn.init.call(this,t),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()},formatPointValue:function(e,t){return this.chartService.format.auto(t,e.value)},render:function(){var e,t,n,i,o,r,a,s,l,d,c,u=this,h=this,p=h.options,f=h.plotArea.options.seriesColors;if(void 0===f&&(f=[]),e=p.series[0],t=e.data)for(n=v(e),i=n.total,o=n.points,r=0;r<o.length;r++)a=o[r],a&&(s=a.fields,Ie(e.color)||(e.color=s.color||f[r%f.length]),s=Fe({index:r,owner:u,series:e,dataItem:t[r],percentage:a.value/i},s,{visible:a.visible}),l=a.valueFields.value,d=u.createSegment(l,s),c=u.createLabel(l,s),d&&c&&d.append(c))},evalSegmentOptions:function(e,t,n){var i=n.series;o(e,{value:t,series:i,dataItem:n.dataItem,index:n.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},createSegment:function(t,n){var i,o=Fe({},n.series);if(this.evalSegmentOptions(o,t,n),this.createLegendItem(t,o,n),n.visible!==!1)return i=new dr(t,o,n),e.extend(i,n),this.append(i),this.points.push(i),i},createLabel:function(e,t){var n,i,o,r,a=t.series,s=t.dataItem,l=Fe({},this.options.labels,a.labels),d=e;if(l.visible)return n=Be(l),i={dataItem:s,value:e,percentage:t.percentage,category:t.category,series:a},n?d=n(i):l.format&&(d=this.plotArea.chartService.format.auto(l.format,d)),l.color||(o=new st(a.color).percBrightness(),l.color=o>180?ve:he,l.background||(l.background=a.color)),this.evalSegmentOptions(l,e,t),r=new Le(d,Fe({vAlign:l.position},l),i),this.labels.push(r),r},labelPadding:function(){var e,t,n,i,o=this.labels,r={left:0,right:0};for(e=0;e<o.length;e++)t=o[e],n=t.options.align,n!==le&&(i=o[e].box.width(),n===ue?r.left=Math.max(r.left,i):r.right=Math.max(r.right,i));return r},dynamicSlopeReflow:function(e,t,n){var i,o,r,a,s,l,d,c,u,h,p,f=this,m=f.options,g=f.points,v=g.length,_=g[0],b=_;for(i=0;i<g.length;i++)g[i].percentage>b.percentage&&(b=g[i]);for(o=_.percentage/b.percentage*t,r=(t-o)/2,a=0,s=0;s<v;s++)l=g[s].percentage,d=g[s+1],c=d?d.percentage:l,u=g[s].points=[],h=m.dynamicHeight?n*l:n/v,p=void 0,p=l?(t-o*(c/l))/2:c?0:t/2,p=Ke(p,0,t),u.push(new dt(e.x1+r,e.y1+a)),u.push(new dt(e.x1+t-r,e.y1+a)),u.push(new dt(e.x1+t-p,e.y1+h+a)),u.push(new dt(e.x1+p,e.y1+h+a)),r=p,a+=h+m.segmentSpacing,o=Ke(t-2*p,0,t)},constantSlopeReflow:function(e,t,n){var i,o,r,a,s,l=this,d=l.options,c=l.points,u=c.length,h=d.neckRatio<=1,p=h?d.neckRatio*t:t,f=h?0:(t-t/d.neckRatio)/2,m=h?t:t-2*f,g=(m-p)/2,v=0;for(i=0;i<u;i++)o=c[i].points=[],
r=c[i].percentage,a=d.dynamicHeight?g*r:g/u,s=d.dynamicHeight?n*r:n/u,o.push(new dt(e.x1+f,e.y1+v)),o.push(new dt(e.x1+t-f,e.y1+v)),o.push(new dt(e.x1+t-f-a,e.y1+s+v)),o.push(new dt(e.x1+f+a,e.y1+s+v)),f+=a,v+=s+d.segmentSpacing},reflow:function(e){var t,n,i,o,r,a=this.points,s=a.length;if(s)for(t=this.options,n=e.clone().unpad(this.labelPadding()),i=n.height()-t.segmentSpacing*(s-1),o=n.width(),t.dynamicSlope?this.dynamicSlopeReflow(n,o,i):this.constantSlopeReflow(n,o,i),r=0;r<s;r++)a[r].reflow(e)}}),Ae(cr,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:le,position:le,zIndex:1}}),Fe(cr.prototype,Ho),ur=Ui.extend({render:function(){this.createFunnelChart(this.series)},createFunnelChart:function(e){var t=e[0],n=new cr(this,{series:e,legend:this.options.legend,neckRatio:t.neckRatio,dynamicHeight:t.dynamicHeight,dynamicSlope:t.dynamicSlope,segmentSpacing:t.segmentSpacing,highlight:t.highlight});this.appendChart(n)},appendChart:function(e,t){Ui.fn.appendChart.call(this,e,t),Ve(this.options.legend.items,e.legendItems)}}),hr="color",pr="first",fr="from",mr="max",gr="min",vr="noteText",_r="summary",br="to",xo.current.register(ho,[Ut,Kt,Zt,gn,Wt,pn,$t,Jt,Gt,mn,jt,fn,cn,dn,_n,Xt,ln,vn]),xo.current.register(Po,[un,hn,qt]),xo.current.register(Vo,[en]),xo.current.register(qo,[Yt]),xo.current.register(ur,[Qt]),xo.current.register(Jo,[tn,nn,on]),xo.current.register(lr,[rn,an,sn]),mt.current.register([Ut,Kt,Zt,gn,Wt,pn],[se],[jn,hr,vr,At,Et]),mt.current.register([cn,dn,ln,vn],[fr,br],[jn,hr,vr]),mt.current.register([_n,Xt],[se],[jn,hr,vr,_r]),mt.current.register([tn,nn,on],[fe,me],[hr]),mt.current.register([rn,an,sn],[se],[hr]),mt.current.register([Qt],[se],[jn,hr,"visibleInLegend","visible"]),$i.current.register([Ut,Kt,Zt,gn,Wt,pn,_n,Xt],{value:mr,color:pr,noteText:pr,errorLow:gr,errorHigh:mr}),$i.current.register([cn,dn,ln,vn],{from:gr,to:mr,color:pr,noteText:pr}),$i.current.register([rn,an,sn],{value:mr,color:pr}),mt.current.register([un,hn,qt],[fe,me],[hr,vr,It,Mt,Rt,Ft]),mt.current.register([qt],[fe,me,"size"],[hr,jn,vr]),mt.current.register([$t,Jt],["open","high","low","close"],[jn,hr,"downColor",vr]),$i.current.register([$t,Jt],{open:mr,high:mr,low:gr,close:mr,color:pr,downColor:pr,noteText:pr}),mt.current.register([jt,fn],["lower","q1","median","q3","upper","mean","outliers"],[jn,hr,vr]),$i.current.register([jt,fn],{lower:mr,q1:mr,median:mr,q3:mr,upper:mr,mean:mr,outliers:pr,color:pr,noteText:pr}),mt.current.register([Gt,mn],["current","target"],[jn,hr,"visibleInLegend",vr]),$i.current.register([Gt,mn],{current:mr,target:mr,color:pr,noteText:pr}),mt.current.register([en,Yt],[se],[jn,hr,"explode","visibleInLegend","visible"]),wr=[jn,se,fe,me],kr="mousemove",yr="contextmenu",xr="mouseleave",Cr=20,Sr=ne.extend({init:function(e,t,n,i){var o,r=this;void 0===i&&(i={}),this.observers=[],this.addObserver(i.observer),this.chartService=new Je.ChartService(this,i),this.chartService.theme=n,this._initElement(e),o=Fe({},this.options,t),this._originalOptions=Fe({},o),this._theme=n,this._initTheme(o,n),this._initHandlers(),this._initSurface(),this.bindCategories(),te.FontLoader.preloadFonts(t,function(){r.fontLoaded=!0,r._destroyed||(r.trigger("init"),r._redraw(),r._attachEvents())})},_initElement:function(e){for(this._setElementClass(e),e.style.position="relative";e.firstChild;)e.removeChild(e.firstChild);this.element=e},_setElementClass:function(e){te.addClass(e,"k-chart")},_initTheme:function(t,n){var i,o=[],r=t.series||[];for(i=0;i<r.length;i++)o.push(e.extend({},r[i]));t.series=o,j(t),this.applyDefaults(t,n),null===t.seriesColors&&delete t.seriesColors,this.options=Fe({},n,t),this.applySeriesColors()},getSize:function(){var e=this.options.chartArea||{},t=e.width?parseInt(e.width,10):Math.floor(this.element.offsetWidth),n=e.height?parseInt(e.height,10):Math.floor(this.element.offsetHeight);return{width:t,height:n}},resize:function(e){var t=this.getSize(),n=this._size,i=t.width>0||t.height>0;e||i&&(!n||t.width!==n.width||t.height!==n.height)?(this._size=t,this._resize(t,e),this.trigger("resize",t)):i&&this._selections&&te.find(this._selections,function(e){return!e.visible})&&(this._destroySelections(),this._setupSelection())},_resize:function(){this._noTransitionsRedraw()},redraw:function(e){var t,n;this.applyDefaults(this.options),this.applySeriesColors(),e?(t=this._model._plotArea,n=t.findPane(e),t.redraw(n)):this._redraw()},getAxis:function(e){return t(e,this._plotArea.axes)},findAxisByName:function(e){return this.getAxis(e)},findPaneByName:function(e){var t,n=this._plotArea.panes;for(t=0;t<n.length;t++)if(n[t].options.name===e)return new ht(n[t])},findPaneByIndex:function(e){var t=this._plotArea.panes;if(t[e])return new ht(t[e])},plotArea:function(){return new pt(this._plotArea)},toggleHighlight:function(e,t){var n,i,o,r=this._plotArea,a=(r.srcSeries||r.series||[])[0];Ie(t)?n=r.filterPoints(t):(Re(t)?(i=t.series,o=t.category):i=o=t,n=a.type===Yt?q(r.pointsBySeriesName(i),o):a.type===en||a.type===Qt?q((r.charts[0]||{}).points,o):r.pointsBySeriesName(i)),n&&this.togglePointsHighlight(e,n)},togglePointsHighlight:function(e,t){var n,i=this._highlight;for(n=0;n<t.length;n++)i.togglePointHighlight(t[n],e)},showTooltip:function(e){var t,n,i,o=this._sharedTooltip(),r=this,a=r._tooltip,s=r._plotArea;Ie(e)?(t=s.findPoint(e),t&&o&&(n=t.categoryIx)):o&&ke(e)&&(n=s.categoryAxis.categoryIndex(e)),o?n>=0&&(i=this._plotArea.pointsByCategoryIndex(n),a.showAt(i)):t&&a.show(t)},hideTooltip:function(){this._tooltip.hide()},_initSurface:function(){var e=this.surface,t=this._surfaceWrap(),n=this.options.chartArea||{};n.width&&te.elementSize(t,{width:n.width}),n.height&&te.elementSize(t,{height:n.height}),e&&e.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=nt.Surface.create(t,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},_surfaceWrap:function(){return this.element},_redraw:function(){var e=this._getModel();this._size={width:e.options.width,height:e.options.height},this._destroyView(),this._model=e,this._plotArea=e._plotArea,e.renderVisual(),this.options.transitions!==!1&&e.traverse(function(e){e.animation&&e.animation.setup()}),this._initSurface(),this.surface.draw(e.visual),this.options.transitions!==!1&&e.traverse(function(e){e.animation&&e.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new po,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger(Nn),ee(this._plotArea.panes),this._navState||this._cancelDomEvents()},exportVisual:function(e){var t,n,i,o;return e&&(e.width||e.height||e.options)?(n=this.options,i=Fe({},e.options,{chartArea:{width:e.width,height:e.height}}),J(this._originalOptions,i),this.options=Fe({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories(),o=this._getModel(),o.renderVisual(),ee(o._plotArea.panes),t=o.visual,this.options=n):t=this.surface.exportVisual(),t},_sharedTooltip:function(){return this._plotArea instanceof ho&&this.options.tooltip&&this.options.tooltip.shared},_createPannable:function(){var e=this.options;e.pannable!==!1&&(this._pannable=new fo(this._plotArea,e.pannable))},_createZoomSelection:function(){var e=this.options.zoomable,t=(e||{}).selection;e!==!1&&t!==!1&&(this._zoomSelection=new mo(this,t))},_createMousewheelZoom:function(){var e=this.options.zoomable,t=(e||{}).mousewheel;e!==!1&&t!==!1&&(this._mousewheelZoom=new go(this,t))},_toggleDragZoomEvents:function(){var e=this.options.pannable,t=this.options.zoomable,n=(t||{}).selection,i=(t||{}).mousewheel,o=!(e||t!==!1&&n!==!1||this.requiresHandlers([Rn,In,Mn])),r=(t===!1||i===!1)&&!this.requiresHandlers([Fn,Pn,zn]),a=this.element;this._dragZoomEnabled&&o&&r?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||o&&r||(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!o,!r)},_toggleDomEvents:function(e,t){var n=this.domEvents;n&&(n.toggleDrag&&n.toggleDrag(e),n.toggleZoom&&n.toggleZoom(t))},_createTooltip:function(){var e,t=this,n=t.options.tooltip;return e=this._sharedTooltip()?this._createSharedTooltip(n):new Do(this.chartService,n)},_createSharedTooltip:function(e){return new Ao(this._plotArea,e)},applyDefaults:function(e,t){G(e,t),$(e,t)},applySeriesColors:function(){var e,t,n,i,o=this.options,r=o.series,a=o.seriesColors||[];for(e=0;e<r.length;e++)t=r[e],n=a[e%a.length],i=t._defaults,t.color=t.color||n,i&&(i.color=i.color||n)},_getModel:function(){var e=this.options,t=this._createPlotArea(),n=new te.RootElement(this._modelOptions());return n.chart=this,n._plotArea=t,te.Title.buildTitle(e.title,n),e.legend&&e.legend.visible&&n.append(new yo(t.options.legend,this.chartService)),n.append(t),n.reflow(),n},_modelOptions:function(){var e=this.options,t=this.getSize();return Fe({transitions:e.transitions,width:t.width||oe.DEFAULT_WIDTH,height:t.height||oe.DEFAULT_HEIGHT},e.chartArea)},_createPlotArea:function(e){var t=this.options,n=xo.current.create(e?[]:t.series,t,this.chartService);return n},_setupSelection:function(){var e,t,n,i,o,r=this,a=this,s=a._plotArea.axes,l=this._selections=[];for(e=0;e<s.length;e++)t=s[e],n=t.options,t instanceof qe&&n.select&&!n.vertical&&(i=t.range(),o=new To(r,t,Fe({min:i.min,max:i.max},n.select)),l.push(o))},_selectStart:function(e){return this.trigger(Bn,e)},_select:function(e){return this.trigger(Ln,e)},_selectEnd:function(e){return this.trigger(Hn,e)},_initHandlers:function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=kendo.throttle(this._mousemove.bind(this),Cr)},addObserver:function(e){e&&this.observers.push(e)},removeObserver:function(e){var t=this.observers.indexOf(e);t>=0&&this.observers.splice(t,1)},requiresHandlers:function(e){var t,n=this.observers;for(t=0;t<n.length;t++)if(n[t].requiresHandlers(e))return!0},trigger:function(e,t){var n,i,o;for(void 0===t&&(t={}),e===On&&(t.anchor.point=this._toDocumentCoordinates(t.anchor.point)),t.sender=this,n=this.observers,i=!1,o=0;o<n.length;o++)n[o].trigger(e,t)&&(i=!0);return i},_attachEvents:function(){var e,t,n=this.element;this._touchAction=n.style.touchAction,Ze(n,(e={},e[yr]=this._clickHandler,e[Kn]=this._mousewheelHandler,e[xr]=this._mouseleaveHandler,e)),this._shouldAttachMouseMove()&&Ze(n,(t={},t[kr]=this._mousemove,t)),this.domEvents=Je.DomEventsBuilder.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},_mouseleave:function(e){this._hoveredPoint&&(this._hoveredPoint.out(this,e),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger(En),this._plotArea.hovered=!1)},_cancelDomEvents:function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},_gesturestart:function(e){this._mousewheelZoom&&!this._stopChartHandlers(e)&&(this._gestureDistance=e.distance,this._unsetActivePoint(),this.surface.suspendTracking())},_gestureend:function(e){this._zooming&&!this._stopChartHandlers(e)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger(zn,{}))},_gesturechange:function(e){var t,n,i,o,r=this._mousewheelZoom;r&&!this._stopChartHandlers(e)&&(e.preventDefault(),t=this._gestureDistance,n=-e.distance/t+1,Math.abs(n)>=.1&&(n=Math.round(10*n),this._gestureDistance=e.distance,i={delta:n,axisRanges:Y(this._plotArea.axes),originalEvent:e},!this._zooming&&this.trigger(Fn,i)||(this._zooming||(this._zooming=!0),o=i.axisRanges=r.updateRanges(n),o&&!this.trigger(Pn,i)&&r.zoom())))},_mouseout:function(e){if(e.element){var t=this._drawingChartElement(e.element,e);t&&t.leave&&t.leave(this,e.originalEvent)}},_start:function(e){var t=this._eventCoordinates(e);!this._stopChartHandlers(e)&&this._plotArea.backgroundContainsPoint(t)&&(this.requiresHandlers([Rn,In,Mn])&&this._startNavigation(e,t,Rn),this._pannable&&this._pannable.start(e)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(e)&&this.trigger(Fn,{axisRanges:Y(this._plotArea.axes),originalEvent:e}))},_move:function(e){var t,n,i,o,r,a,s,l,d=this,c=d._navState,u=d._pannable;if(!this._stopChartHandlers(e)){if(u)t=u.move(e),t&&!this.trigger(In,{axisRanges:t,originalEvent:e})&&u.pan();else if(c){for(n={},i=c.axes,o=0;o<i.length;o++)r=i[o],a=r.options.name,a&&(s=r.options.vertical?e.y:e.x,l=s.startLocation-s.location,0!==l&&(n[r.options.name]=r.translateRange(l)));c.axisRanges=n,this.trigger(In,{axisRanges:n,originalEvent:e})}this._zoomSelection&&this._zoomSelection.move(e)}},_end:function(e){var t,n;this._stopChartHandlers(e)||(t=this._pannable,t&&t.end(e)?(this.surface.resumeTracking(),this.trigger(Mn,{axisRanges:Y(this._plotArea.axes),originalEvent:e}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(e,Mn),this._zoomSelection&&(n=this._zoomSelection.end(e),n&&!this.trigger(Pn,{axisRanges:n,originalEvent:e})&&(this._zoomSelection.zoom(),this.trigger(zn,{axisRanges:n,originalEvent:e}))))},_stopChartHandlers:function(e){var t,n,i,o=this._selections||[];if(!o.length)return!1;if(t=this._eventCoordinates(e),n=this._plotArea.paneByPoint(t))for(i=0;i<o.length;i++)if(o[i].onPane(n))return!0},_mousewheel:function(e){var t,n,i,o,r,a,s,l,d,c=this,u=te.mousewheelDelta(e),h=this._mousewheelZoom,p=this._eventCoordinates(e);if(!this._stopChartHandlers(e)&&this._plotArea.backgroundContainsPoint(p))if(h)t={delta:u,axisRanges:Y(this._plotArea.axes),originalEvent:e},!this._zooming&&this.trigger(Fn,t)||(e.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),t.axisRanges=h.updateRanges(u),t.axisRanges&&!this.trigger(Pn,t)&&h.zoom(),this._mwTimeout=setTimeout(function(){c.trigger(zn,t),c._zooming=!1,c.surface&&c.surface.resumeTracking()},Yn));else if(n=this._navState,n||(i=this._startNavigation(e,p,Fn),i||(n=this._navState)),n){for(o=n.totalDelta||u,n.totalDelta=o+u,r=this._navState.axes,a={},s=0;s<r.length;s++)l=r[s],d=l.options.name,d&&(a[d]=l.scaleRange(-o));this.trigger(Pn,{delta:u,axisRanges:a,originalEvent:e}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){c._endNavigation(e,zn)},Yn)}},_startNavigation:function(e,t,n){var i,o,r=this._model._plotArea,a=r.findPointPane(t),s=r.axes.slice(0);a&&(i=Y(s),o=this.trigger(n,{axisRanges:i,originalEvent:e}),o?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:i,pane:a,axes:s}))},_endNavigation:function(e,t){this._navState&&(this.trigger(t,{axisRanges:this._navState.axisRanges,originalEvent:e}),this._suppressHover=!1,this._navState=null)},_getChartElement:function(e,t){var n=this.surface.eventTarget(e);if(n)return this._drawingChartElement(n,e,t)},_drawingChartElement:function(e,t,n){for(var i,o=e;o&&!i;)i=o.chartElement,o=o.parent;if(i)return i.aliasFor&&(i=i.aliasFor(t,this._eventCoordinates(t))),n&&(i=i.closest(n),i&&i.aliasFor&&(i=i.aliasFor())),i},_eventCoordinates:function(e){var t=te.eventCoordinates(e);return this._toModelCoordinates(t.x,t.y)},_elementPadding:function(){var e,t,n;return this._padding||(e=Qe(this.element,["paddingLeft","paddingTop"]),t=e.paddingLeft,n=e.paddingTop,this._padding={top:n,left:t}),this._padding},_toDocumentCoordinates:function(e){var t=this._elementPadding(),n=te.elementOffset(this.element);return{left:$e(e.x+t.left+n.left),top:$e(e.y+t.top+n.top)}},_toModelCoordinates:function(e,t){var n=this.element,i=te.elementOffset(n),o=this._elementPadding(),r=te.elementScale(n).invert(),a=new dt(e-i.left-o.left,t-i.top-o.top).transform(r);return new Se(a.x,a.y)},_tap:function(e){var t=this,n=this.surface.eventTarget(e),i=this._drawingChartElement(n,e),o=this._sharedTooltip();this._startHover(n,e)||o||this._unsetActivePoint(),o&&this._trackSharedTooltip(this._eventCoordinates(e),e,!0),this._propagateClick(i,e),this.handlingTap=!0,setTimeout(function(){t.handlingTap=!1},0)},_click:function(e){var t=this._getChartElement(e);this._propagateClick(t,e)},_propagateClick:function(e,t){for(var n=this,i=e;i;)i.click&&i.click(n,t),i=i.parent},_startHover:function(e,t){var n,i,o,r;return!this._suppressHover&&(n=this._drawingChartElement(e,t,function(e){return(e.hover||e.over)&&!(e instanceof Ui)}),i=this._activePoint,o=this._hoveredPoint,o&&o!==n&&(o.out(this,t),this._hoveredPoint=null),n&&o!==n&&n.over&&(this._hoveredPoint=n,n.over(this,t)),n&&i!==n&&n.hover&&(this._activePoint=n,this._sharedTooltip()||n.hover(this,t)||(r=Fe({},this.options.tooltip,n.options.tooltip),r.visible&&this._tooltip.show(n),this._highlight.show(n))),n)},_mouseover:function(e){var t,n=this._startHover(e.element,e.originalEvent);n&&n.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),Ze(document,(t={},t[kr]=this._mouseMoveTrackHandler,t)))},_mouseMoveTracking:function(e){var t,n,i,o=this,r=o.options,a=o._tooltip,s=o._highlight,l=o._activePoint,d=this._eventCoordinates(e);this._plotArea.box.containsPoint(d)?l&&l.tooltipTracking&&l.series&&l.parent.getNearestPoint&&(t=l.parent.getNearestPoint(d.x,d.y,l.seriesIx),t&&t!==l&&(this._activePoint=t,t.hover(this,e)||(n=Fe({},r.tooltip,t.options.tooltip),n.visible&&a.show(t),s.show(t)))):(et(document,(i={},i[kr]=this._mouseMoveTrackHandler,i)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null)},_mousemove:function(e){var t,n=this._eventCoordinates(e),i=this._plotArea;this._trackCrosshairs(n),i.hover&&(t=i.backgroundContainsPoint(n),t?(i.hovered=!0,this._plotArea.hover(this,e)):i.hovered&&!t&&(this.trigger(En),i.hovered=!1)),this._sharedTooltip()&&this._trackSharedTooltip(n,e)},_trackCrosshairs:function(e){var t,n,i=this._plotArea.crosshairs;for(t=0;t<i.length;t++)n=i[t],n.box.containsPoint(e)?n.showAt(e):n.hide()},_trackSharedTooltip:function(e,t,n){var i,o,r,a,s,l,d,c,u,h;this._suppressHover||(i=this,o=i.options.tooltip,r=i._plotArea,a=i._plotArea.categoryAxis,s=i._tooltip,l=i._highlight,r.backgroundContainsPoint(e)?(d=a.pointCategoryIndex(e),d!==this._tooltipCategoryIx||!this._sharedHighlight&&n?(c=r.pointsByCategoryIndex(d),u=c.map(function(e){return e.eventArgs(t)}),h=u[0]||{},h.categoryPoints=u,c.length>0&&!this.trigger(Cn,h)?(o.visible&&s.showAt(c,e),l.show(c),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=d):n&&this._sharedHighlight&&(l.hide(),s.hide(),this._sharedHighlight=!1)):this._sharedHighlight&&(l.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1))},hideElements:function(e){var t=this._plotArea;this._mousemove.cancel(),t.hideCrosshairs(),this._unsetActivePoint(e)},_unsetActivePoint:function(e){var t=this,n=t._tooltip,i=t._highlight;this._activePoint=null,this._hoveredPoint=null,!n||e&&e.keepTooltipOpen||n.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,i&&i.hide()},_deferRedraw:function(){this._redraw()},_clearRedrawTimeout:function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},bindCategories:function(){var e,t,n=this,i=this.options,o=[].concat(i.categoryAxis);for(e=0;e<o.length;e++)t=o[e],t.autoBind!==!1&&n.bindCategoryAxisFromSeries(t,e)},bindCategoryAxisFromSeries:function(e,t){var n,o,r,a,s,l,d,c,u,h,p,f,m=this,g=this.options.series,v=g.length,_=new te.HashMap,b=[],y=!1;for(o=0;o<v;o++)if(r=g[o],a=r.categoryAxis===e.name||!r.categoryAxis&&0===t,s=r.data,l=s.length,d=r.categoryField&&a,y=d||y,d&&l>0)for(n=k(e,i(r.categoryField,s[0])),c=n?w:i,u=0;u<l;u++)h=s[u],p=c(r.categoryField,h,m.chartService.intl),!n&&_.get(p)||(b.push([p,h]),n||_.set(p,!0));b.length>0?(n&&(b=X(b,function(e,t){return te.dateComparer(e[0],t[0])})),f=Z(b),e.categories=f[0]):y&&(e.categories=[])},_isBindable:function(e){var t,n,i=mt.current.valueFields(e),o=!0;for(t=0;t<i.length;t++)if(n=i[t],n===se?n="field":n+="Field",!ke(e[n])){o=!1;break}return o},_noTransitionsRedraw:function(){var e,t=this.options;t.transitions!==!1&&(t.transitions=!1,e=!0),this._redraw(),e&&(t.transitions=!0)},_legendItemHover:function(e,t){var n,i=this,o=i._plotArea,r=i._highlight,a=(o.srcSeries||o.series)[e];n=Ee(a.type,[en,Yt,Qt])?o.findPoint(function(n){return n.series.index===e&&n.index===t}):o.pointsBySeriesIndex(e),r.show(n)},_shouldAttachMouseMove:function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([An,En])},updateMouseMoveHandler:function(){var e,t;et(this.element,(e={},e[kr]=this._mousemove,e)),this._shouldAttachMouseMove()&&Ze(this.element,(t={},t[kr]=this._mousemove,t))},applyOptions:function(e,t){J(this._originalOptions,e),this._originalOptions=Fe(this._originalOptions,e),this.options=Fe({},this._originalOptions),t&&(this._theme=t,this.chartService.theme=t),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},setOptions:function(e,t){this.applyOptions(e,t),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},setDirection:function(e){this.chartService.rtl=!!e,this.surface&&"svg"===this.surface.type&&this._destroySurface()},setIntlService:function(e){this.chartService.intl=e},noTransitionsRedraw:function(){this._noTransitionsRedraw()},destroy:function(){var e,t;this._destroyed=!0,et(this.element,(e={},e[yr]=this._clickHandler,e[Kn]=this._mousewheelHandler,e[kr]=this._mousemove,e[xr]=this._mouseleaveHandler,e)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&et(document,(t={},t[kr]=this._mouseMoveTrackHandler,t)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},_destroySurface:function(){var e=this.surface;e&&(e.unbind("mouseenter",this._surfaceMouseenterHandler),e.unbind("mouseleave",this._surfaceMouseleaveHandler),e.destroy(),this.surface=null)},_destroySelections:function(){var e=this._selections;if(e)for(;e.length>0;)e.shift().destroy()},_destroyView:function(){var e=this._model;e&&(e.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}),Tr=["data","categories"],Ae(Sr,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:Kt,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1}),kendo.deepExtend(kendo.dataviz,{constants:Qn,Aggregates:ft,AreaChart:gi,AreaSegment:pi,AxisGroupRangeTracker:vi,Bar:wi,BarChart:xi,BarLabel:_i,BoxPlotChart:Ai,BoxPlot:Ti,BubbleChart:Ri,Bullet:Pi,BulletChart:zi,CandlestickChart:Si,Candlestick:Ci,CategoricalChart:ti,CategoricalErrorBar:Jn,CategoricalPlotArea:ho,Chart:Sr,ChartContainer:Ni,ClipAnimation:ci,ClusterLayout:ki,Crosshair:Hi,CrosshairTooltip:Li,DefaultAggregates:$i,DonutChart:jo,DonutPlotArea:qo,DonutSegment:Wo,ErrorBarBase:Zn,ErrorRangeCalculator:wt,Highlight:po,SharedTooltip:Ao,Legend:yo,LegendItem:_o,LegendLayout:vo,LineChart:hi,LinePoint:oi,LineSegment:ri,Pane:Oi,PieAnimation:Ro,PieChart:Oo,PieChartMixin:Ho,PiePlotArea:Vo,PieSegment:zo,PlotAreaBase:Ui,PlotAreaEventsMixin:qi,PlotAreaFactory:xo,PointEventsMixin:ni,RangeBar:Ki,RangeBarChart:Yi,RangeAreaPoint:eo,RangeAreaChart:oo,ScatterChart:Ii,ScatterErrorBar:Ei,ScatterLineChart:Fo,Selection:To,SeriesAggregator:Gi,SeriesBinder:mt,SplineSegment:li,SplineAreaSegment:mi,StackWrap:yi,Tooltip:Do,OHLCChart:ao,OHLCPoint:ro,WaterfallChart:lo,WaterfallSegment:so,XYPlotArea:Po,MousewheelZoom:go,ZoomSelection:mo,Pannable:fo,ChartAxis:ut,ChartPane:ht,ChartPlotArea:pt,findAxisByName:t,anyHasZIndex:s,appendIfNotNull:m,areNumbers:u,bindSegments:v,categoriesCount:r,countNumbers:n,equalsIgnoreCase:_,evalOptions:o,filterSeriesByType:b,getDateField:w,getField:i,hasGradientOverlay:l,hasValue:h,isDateAxis:k,segmentVisible:g,singleItemOrArray:y,createOutOfRangePoints:T})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/chart/chart.min",["dataviz/chart/kendo-chart.min","kendo.data.min","kendo.dataviz.core.min","kendo.dataviz.themes.min","kendo.drawing.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e){s.fn[e]=function(){var t=this._instance;if(t)return t[e].apply(t,arguments)}}function i(e,n){var i,o,r,a=[],s=e.groupNameTemplate,l=n.length;if(0===l)return r=D({},e),r.visibleInLegend=!1,[r];for(A(s)?(v.logToConsole("'groupNameTemplate' is obsolete and will be removed in future versions. Specify the group name template as 'series.name'"),s&&(i=B(s))):(i=B(e.name||""),0===i._slotCount&&(i=B(A(e.name)?"#= group.value #: #= series.name #":"#= group.value #"))),o=0;o<l;o++)r=D({},e),v.isFunction(r.color)||(r.color=t),r._groupIx=o,r._groupValue=n[o].value,a.push(r),i&&(r.name=i({series:r,group:n[o]}));return a}function o(e){for(var n in e)e[n]===t&&(e[n]="");return e}function r(e){for(var t=0;t<e.length;t++)e[t].notifyRender()}var a,s,l,d,c,u,h,p,f,m,g=".kendoChart",v=window.kendo,_=v.Class,b=v._outerWidth,w=v._outerHeight,k=v.dataviz,y=k.constants,x=k.Chart,C=k.SeriesBinder,S=v.ui.Widget,T=v.data.DataSource,D=v.deepExtend,A=k.defined,E=k.getField,I=k.InstanceObserver,M=k.inArray,R=k.services,F=e.proxy,P=e.isArray,z=e.extend,B=v.template,L="mouseleave"+g,H=y.AXIS_LABEL_CLICK,N=y.LEGEND_ITEM_CLICK,O=y.LEGEND_ITEM_HOVER,V=y.LEGEND_ITEM_LEAVE,W=y.SERIES_CLICK,U=y.SERIES_HOVER,j=y.SERIES_OVER,q=y.SERIES_LEAVE,G=y.PANE_RENDER,$=y.PLOT_AREA_CLICK,K=y.PLOT_AREA_HOVER,Y=y.PLOT_AREA_LEAVE,Q=y.DRAG,X=y.DRAG_END,Z=y.DRAG_START,J=y.ZOOM_START,ee=y.ZOOM,te=y.ZOOM_END,ne=y.SELECT_START,ie=y.SELECT,oe=y.SELECT_END,re=y.RENDER,ae=y.NOTE_CLICK,se=y.NOTE_HOVER,le=y.NOTE_LEAVE,de=e(document.documentElement),ce="change",ue="dataBound",he="leave",pe="down",fe=y.VALUE,me=y.PIE,ge=y.DONUT,ve=y.FUNNEL,_e=v.Observable,be=150,we=100,ke="k-chart-tooltip-inverse",ye="k-chart-shared-tooltip",xe="rtl";for(R.DomEventsBuilder.register({create:function(e,t){return new v.UserEvents(e,D({global:!0,multiTouch:!0,fastTap:!0},t))}}),a=I.extend({handlerMap:{showTooltip:"_showTooltip",hideTooltip:"_hideTooltip",legendItemClick:"_onLegendItemClick",render:"_onRender",init:"_onInit"}}),s=S.extend({init:function(e,t){var n;v.destroy(e),S.fn.init.call(this,e),t&&(n=t.dataSource,delete t.dataSource),this.options=D({},this.options,t),this.wrapper=this.element,this._attachEvents(),t&&(t.dataSource=n),this._seriesVisibility=new c,this.bind(this.events,this.options),this._initDataSource(t),v.notify(this,k.ui)},events:[ue,W,U,j,q,H,N,O,V,G,$,K,Y,Z,Q,X,J,ee,te,ne,ie,oe,ae,se,le,re],options:{name:"Chart",renderAs:"",theme:"default",axisDefaults:{},chartArea:{},legend:{},categoryAxis:{},autoBind:!0,seriesDefaults:{},series:[],seriesColors:null,tooltip:{},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1},items:function(){return e()},refresh:function(){var e=this,t=e._instance;t.applyDefaults(e.options),t.applySeriesColors(),e._bindSeries(),e._bindCategories(),e.trigger(ue),e._redraw()},getSize:function(){return v.dimensions(this.element)},redraw:function(e){this._size=null,this._instance.redraw(e)},setOptions:function(e){var t=this,n=e.dataSource;delete e.dataSource,S.fn._setEvents.call(t,e),this._instance.applyOptions(e,this._getThemeOptions(e)),this.options=this._instance.options,this._tooltip.setOptions(this.options.tooltip),this._seriesVisibility.setOptions(this.options),this._sourceSeries=null,n&&t.setDataSource(n),t._hasDataSource?t._onDataChanged():(t._bindCategories(),t.redraw()),t._instance.updateMouseMoveHandler()},setDataSource:function(e){var t=this;t.dataSource.unbind(ce,t._dataChangeHandler),t.dataSource=e=T.create(e),t._hasDataSource=!0,t._hasData=!1,e.bind(ce,t._dataChangeHandler),t.options.autoBind&&e.fetch()},destroy:function(){var e=this,t=e.dataSource;e.element.off(g),t&&t.unbind(ce,e._dataChangeHandler),e._instance&&(e._instance.destroy(),delete this._instance),this._tooltip&&(this._tooltip.destroy(),delete this._tooltip),this._destroyCrosshairTooltips(),S.fn.destroy.call(e)},findPaneByName:function(e){var t,n=this._plotArea.panes;for(t=0;t<n.length;t++)if(n[t].options.name===e)return new f(this,n[t])},findPaneByIndex:function(e){var t=this._plotArea.panes;if(t[e])return new f(this,t[e])},findSeries:function(e){var t,n=this._plotArea,i=n.srcSeries||n.series;for(t=0;t<i.length;t++)if(e(i[t]))return new m(this,i[t])},findSeriesByName:function(e){return this._createSeries({name:e})},findSeriesByIndex:function(e){return this._createSeries({index:e})},exportVisual:function(e){var t,n,i,o,a=this._instance;if(a)return e&&(e.width||e.height)?(n=a.options.chartArea,i=a._originalOptions.chartArea,D(n,e),o=a._getModel(),n.width=i.width,n.height=i.height,o.renderVisual(),r(o._plotArea.panes),t=o.visual):t=a.exportVisual(),t},_createSeries:function(e){var t=this._seriesOptions(e);if(t)return new m(this,t)},_seriesOptions:function(e){var t,n,i=this._plotArea,o=i.srcSeries||i.series;if(A(e.index))t=o[e.index];else if(A(e.name))for(n=0;n<o.length;n++)if(o[n].name===e.name){t=o[n];break}return t},_attachEvents:function(){this.element.on(L,F(this._mouseleave,this))},_mouseleave:function(t){var n=this._instance,i=this._tooltip,o=t.relatedTarget;o&&e(o).closest(i.element).length||!n||n.handlingTap||n.hideElements({keepTooltipOpen:!i.options.autoHide})},_getThemeOptions:function(e){var n,i,o=(e||{}).theme;return o&&k.SASS_THEMES.indexOf(o.toLowerCase())!==-1?k.autoTheme().chart:A(o)?(n=k.ui.themes||{},i=n[o]||n[o.toLowerCase()]||{},i.chart||{}):t},_initChart:function(){this._createChart(this.options,this._getThemeOptions(this.options)),this.options=this._instance.options,this._seriesVisibility.setOptions(this.options)},_createChart:function(e,t){this._instance=new x(this.element[0],e,t,{observer:new a(this),sender:this,rtl:this._isRtl()})},_onInit:function(e){this._instance=e.sender},_initDataSource:function(e){var t=this,n=(e||{}).dataSource;t._dataChangeHandler=F(t._onDataChanged,t),t.dataSource=T.create(n).bind("change",t._dataChangeHandler),t._bindCategories(),n&&(t._hasDataSource=!0),this._initChart(),this._initTooltip(),n&&t.options.autoBind&&t.dataSource.fetch()},_destroyCrosshairTooltips:function(){var e,t=this._crosshairTooltips;if(t)for(e in t)t[e].destroy();this._crosshairTooltips={}},_getCrosshairTooltip:function(e,t){var n=this._crosshairTooltips=this._crosshairTooltips||{},i=e+t,o=n[i];return o||(o=n[i]=new p(this.element)),o},_showTooltip:function(e){if(e.crosshair){var t=this._getCrosshairTooltip(e.axisName,e.axisIndex);t.show(e)}else this._tooltip&&this._tooltip.show(e)},_hideTooltip:function(e){if(e.crosshair){var t=this._getCrosshairTooltip(e.axisName,e.axisIndex);t.hide()}else this._tooltip&&this._tooltip.hide(e)},_onRender:function(e){this._destroyCrosshairTooltips(),this._copyMembers(e.sender),this._hasDataSource&&!this._hasData&&this.options.autoBind||this.trigger(re)},_copyMembers:function(e){this.options=e.options,this._originalOptions=e._originalOptions,this.surface=e.surface,this._plotArea=e._plotArea,this._model=e._model,this._highlight=e._highlight,this._selections=e._selections,this._pannable=e._pannable,this._zoomSelection=e._zoomSelection,
this._mousewheelZoom=e._mousewheelZoom},requiresHandlers:function(e){var t,n=this._events;for(t=0;t<e.length;t++)if(A(n[e[t]]))return!0},_initTooltip:function(){this._tooltip=this._createTooltip(),this._tooltip.bind(he,F(this._tooltipleave,this))},_onLegendItemClick:function(e){this.trigger(N,e)||this._legendItemClick(e.seriesIndex,e.pointIndex)},_legendItemClick:function(t,n){var i,o,r,a=this._instance,s=a._plotArea,l=(s.srcSeries||s.series)[t];e.inArray(l.type,[me,ge,ve])>=0?(i=l.data[n],i&&A(i.visible)?i.visible=!i.visible:(o=l.pointVisibility=l.pointVisibility||{},r=o[n],o[n]=!!A(r)&&!r)):(l.visible=!l.visible,this._seriesVisibility.save(l)),a._noTransitionsRedraw()},_createTooltip:function(){return new h(this.element,z({},this.options.tooltip,{rtl:this._isRtl()}))},_tooltipleave:function(){this._instance&&this._instance.hideElements()},_bindData:function(e){var t,n,o,r=this,a=r.options,s=r._sourceSeries||a.series,l=s.length,d=r.dataSource.view(),c=(r.dataSource.group()||[]).length>0,u=[],h=this._seriesVisibility;for(h.read(),t=0;t<l;t++)n=s[t],r._isBindable(n)&&c?(o=i(n,d),u=u.concat(o),h.applyByGroup(o,e)):(n=z({},n),u.push(n),h.applyByIndex(n,e));r._sourceSeries=s,a.series=u,this._instance.applySeriesColors(),r._bindSeries(),r._bindCategories(),this._hasData=!0},_onDataChanged:function(e){this._bindData(e),this.trigger(ue),this._instance&&this._instance.fontLoaded&&this._redraw()},_bindSeries:function(){var e,t,n,i,o=this,r=o.dataSource.view(),a=o.options.series,s=a.length;for(e=0;e<s;e++)t=a[e],o._isBindable(t)&&(n=t._groupIx,i=A(n)?(r[n]||{}).items:r,t.autoBind!==!1&&(t.data=i))},_bindCategories:function(){var e,t,n=this,i=n.dataSource.view()||[],o=(n.dataSource.group()||[]).length>0,r=i,a=n.options,s=[].concat(a.categoryAxis);for(o&&i.length&&(r=i[0].items),e=0;e<s.length;e++)t=s[e],t.autoBind!==!1&&n._bindCategoryAxis(t,r,e)},_bindCategoryAxis:function(e,t,n){var i,o,r,a=(t||[]).length;if(e.field)for(e.categories=[],i=0;i<a;i++)r=t[i],o=E(e.field,r),0===i?(e.categories=[o],e.dataItems=[r]):(e.categories.push(o),e.dataItems.push(r));else this._instance&&this._instance.bindCategoryAxisFromSeries(e,n)},_isBindable:function(e){var t,n,i=C.current.valueFields(e),o=!0;for(n=0;n<i.length;n++)if(t=i[n],t===fe?t="field":t+="Field",!A(e[t])){o=!1;break}return o},_isRtl:function(){return v.support.isRtl(this.element)&&this.element.css("direction")===xe}}),l=["getAxis","findAxisByName","plotArea","toggleHighlight","showTooltip","hideTooltip","_resize","_redraw","_noTransitionsRedraw","_legendItemHover","_eventCoordinates"],d=0;d<l.length;d++)n(l[d]);k.ExportMixin.extend(s.fn),v.PDFMixin&&v.PDFMixin.extend(s.fn),k.ui.plugin(s),c=_.extend({init:function(){this.groups={},this.index={},this.options={}},applyByGroup:function(e,t){if(t&&t.action||this.options.persistSeriesVisibility)for(var n=0;n<e.length;n++)this.groups[e[n]._groupValue]===!1&&(e[n].visible=!1);else this.groups={}},applyByIndex:function(e,t){t&&t.action||this.options.persistSeriesVisibility?this.index[e.index]===!1&&(e.visible=!1):this.index={}},save:function(e){e&&(this.options.persistSeriesVisibility?this.options.series[e.index].visible=e.visible:this.saveState(e))},setOptions:function(e){this.options=e,this.groups={},this.index={}},read:function(){var e,t,n=this.options;if(n.persistSeriesVisibility)for(e=n.series,t=0;t<e.length;t++)this.saveState(e[t])},saveState:function(e){A(e._groupValue)?this.groups[e._groupValue]=e.visible:this.index[e.index]=e.visible}}),u=v.geometry,h=_e.extend({init:function(t,n){var i,o=this;_e.fn.init.call(o),this.setOptions(n),o.chartElement=t,o.template=h.template,o.template||(o.template=h.template=v.template('<div class=\'k-tooltip #if (!d.autoHide) {# k-tooltip-closable#}# k-chart-tooltip#= d.rtl ? " k-rtl" : ""#\' style=\'display:none; position: absolute; font: #= d.font #;#if (d.border) {# border: #= d.border.width #px solid; #}#opacity: #= d.opacity #; filter: alpha(opacity=#= d.opacity * 100 #);\'><div class="k-tooltip-content"></div>#if (!d.autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close" title="Close"></a></div> #}#</div>',{useWithBlock:!1,paramName:"d"})),o.element=e(o.template(o.options)),o.move=F(o.move,o),o._mouseleave=F(o._mouseleave,o),i=v.format("[{0}='content'],[{0}='scroller']",v.attr("role")),o._mobileScroller=t.closest(i).data("kendoMobileScroller"),o.downEvent=v.applyEventMap(pe,v.guid()),o._closeTooltipHandler=F(o._closeTooltip,o)},destroy:function(){var e=this;this._clearShowTimeout(),de.off(e.downEvent,e._closeTooltipHandler),this.element&&(this.element.off(L).remove(),this.element=null)},setOptions:function(e){this.options=D({},this.options,e)},options:{opacity:1,animation:{duration:be},sharedTemplate:"<table><th colspan='#= colspan #'>#= categoryText #</th># for(var i = 0; i < points.length; i++) { ## var point = points[i]; #<tr># if(colorMarker) { # <td><span class='k-chart-shared-tooltip-marker' style='background-color:#:point.series.color#'></span></td># } ## if(nameColumn) { # <td> #if (point.series.name) {# #: point.series.name #: #} else {# &nbsp; #}#</td># } #<td>#= content(point) #</td></tr># } #</table>",categoryFormat:"{0:d}",autoHide:!0},move:function(){var e,t=this,n=t.options,i=t.element;t.anchor&&t.element&&(e=t._offset(),t.visible||i.css({top:e.top,left:e.left}),t.visible=!0,t._ensureElement(document.body),i.stop(!0,!0).show().animate({left:e.left,top:e.top},n.animation.duration))},_clearShowTimeout:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},getAnchor:function(e){var t=this.anchor,n=t.point,i=t.align,o=n.left,r=n.top;return"center"===i.horizontal?o-=e.width/2:"right"===i.horizontal&&(o-=e.width),"center"===i.vertical?r-=e.height/2:"bottom"===i.vertical&&(r-=e.height),{x:o,y:r}},_offset:function(){var t,n,i=this,o=i._measure(),r=i.getAnchor(o),a=r.y,s=r.x,l=v.support.zoomLevel(),d=e(window),c=window.pageYOffset||document.documentElement.scrollTop||0,h=window.pageXOffset||document.documentElement.scrollLeft||0,p=(this._mobileScroller||{}).movable;return p&&1!==p.scale?(t=u.transform().scale(p.scale,p.scale,[p.x,p.y]),n=new u.Point(s,a).transform(t),s=n.x,a=n.y):(a+=i._fit(a-c,o.height,w(d)/l),s+=i._fit(s-h,o.width,b(d)/l)),{top:a,left:s}},show:function(e){var t,n=this;this.anchor=e.anchor,this.element.css(o(e.style)),this.element.toggleClass(ke,!!e.className),this.element.toggleClass(ye,!!e.shared),t=e.shared?this._sharedContent(e):this._pointContent(e.point),this.element.find(".k-tooltip-content").html(t),n.options.autoHide||(n.element.off("click"+g).on("click"+g,".k-tooltip-button",n._closeTooltipHandler),de.off(n.downEvent,n._closeTooltipHandler).on(n.downEvent,n._closeTooltipHandler)),this._clearShowTimeout(),this.showTimeout=setTimeout(this.move,we)},hide:function(){var e=this;clearTimeout(e.showTimeout),e._hideElement(),e.visible&&(e.point=null,e.visible=!1,e.index=null,de.off(e.downEvent,e._closeTooltipHandler))},_closeTooltip:function(t){var n=e(t.target);n.is(".k-chart-tooltip, .k-tooltip-content")||(t.preventDefault(),this.chartElement.data("kendoChart")._instance.hideElements(),this.hide())},_sharedContent:function(e){var t,n,i=e.points,o=k.grep(i,function(e){return A(e.series.name)}).length,r=e.series.length>1,a=1;return o&&a++,r&&a++,t=v.template(this.options.sharedTemplate),n=t({points:i,category:e.category,categoryText:e.categoryText,content:this._pointContent,colorMarker:r,nameColumn:o,colspan:a})},_measure:function(){this._ensureElement();var e={width:b(this.element),height:w(this.element)};return e},_ensureElement:function(){this.element&&this.element.appendTo(document.body).on(L,this._mouseleave)},_mouseleave:function(t){var n=t.relatedTarget,i=this.chartElement[0];n&&n!==i&&!e.contains(i,n)&&this.trigger(he)},_hideElement:function(){var e=this,t=this.element;t&&t.fadeOut({always:function(){e.visible||t.off(L).remove()}})},_pointContent:function(e){var t,n,i=this,o=D({},i.options,e.options.tooltip);return A(e.value)&&(t=""+e.value),o.template?(n=B(o.template),t=n({value:e.value,category:e.category,series:e.series,dataItem:e.dataItem,percentage:e.percentage,runningTotal:e.runningTotal,total:e.total,low:e.low,high:e.high,xLow:e.xLow,xHigh:e.xHigh,yLow:e.yLow,yHigh:e.yHigh})):o.format&&(t=e.formatValue(o.format)),t},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i}}),p=h.extend({init:function(e,t){h.fn.init.call(this,e,t),this.element.addClass("k-chart-crosshair-tooltip")},show:function(e){var t=this.element;t&&(this.anchor=e.anchor,this.element.css(e.style),this.element.html(this.content(e)),this.move())},move:function(){var e=this,t=e.element,n=e._offset();e._ensureElement(),t.css({top:n.top,left:n.left}).show()},content:function(e){var t=e.value,n=e.crosshair.options.tooltip;return n.template&&(t=B(n.template)({value:t})),t},hide:function(){this.element.hide()}}),f=_.extend({init:function(e,t){this._chart=e,this._pane=t,this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this.name=t.options.name},series:function(){var e,t=this._chart,n=t._plotArea.groupSeriesByPane(),i=n[this.name||"default"],o=[];if(i)for(e=0;e<i.length;e++)o.push(new m(t,i[e]));return o}}),m=_.extend({init:function(e,t){this._chart=e,this._options=t},points:function(e){var t,n,i=this._points;return i||(t=this._seriesOptions(),n=this._chart._plotArea,this._points=i=n.pointsBySeriesIndex(t.index)),v.isFunction(e)&&(i=this._filterPoints(i,e)),i},data:function(e){var t,n,i,o,r=this._seriesOptions();return e&&(t=this._chart,n=t._plotArea,r.data=e,r.categoryField&&(i=n.seriesCategoryAxis(r),o=[].concat(t.options.categoryAxis),t._instance.bindCategoryAxisFromSeries(o[i.axisIndex],i.axisIndex)),t._noTransitionsRedraw(),this._clearFields()),r.data},findPoint:function(e){var t,n=this.points();for(t=0;t<n.length;t++)if(e(n[t]))return n[t]},toggleHighlight:function(e,t){t=t?v.isFunction(t)?this.points(t):P(t)?t:[t]:this.points(),this._chart._instance.togglePointsHighlight(e,t)},toggleVisibility:function(e,t){var n,i,o=this._chart,r=this._seriesOptions(),a=v.isFunction(t);if(a)if(M(r.type,[me,ge,ve]))for(n=this._filterData(t),i=0;i<n.length;i++)n[i].visible=e;else r.visible=function(n){return!t(n.dataItem)||e};else r.visible=e,o._seriesVisibility.save(r);o._noTransitionsRedraw(),this._clearFields()},_filterData:function(e){var t,n=this._seriesOptions().data,i=n.length,o=[];for(t=0;t<i;t++)e(n[t])&&o.push(n[t]);return o},_filterPoints:function(e,t){var n,i=[],o=e.length;for(n=0;n<o;n++)t(e[n])&&i.push(e[n]);return i},_seriesOptions:function(){var e=this._series;return e||(e=this._series=this._chart._seriesOptions(this._options)),e},_clearFields:function(){delete this._points,delete this._series}}),k.Tooltip=h,k.CrosshairTooltip=p,k.ChartInstanceObserver=a,k.ChartPane=f,k.ChartSeries=m}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.chart.min",["dataviz/chart/kendo-chart.min","dataviz/chart/chart.min"],e)}(function(){return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/gauge/kendo-gauges.min",["kendo.core.min","kendo.color.min","kendo.drawing.min","kendo.dataviz.core.min"],e)}(function(){!function(e){function t(e,t){var n=e.getOrigin(),i=e.getSize(),o=c(t);return e.setOrigin([n.x-o.left,n.y-o.top]),e.setSize([i.width+(o.left+o.right),i.height+(o.top+o.bottom)]),e}function n(e,n){var i=e.box,o=e.children[0].box,r=n.border||{},a=n.background||"",s=K.fromRect(new I([i.x1,i.y1],[i.width(),i.height()]),{stroke:{}}),l=new Y(e.text,new M(o.x1,o.y1),{font:n.font,fill:{color:n.color}}),d=t(l.bbox().clone(),n.padding),c=K.fromRect(d,{stroke:{color:r.width?r.color:"",width:r.width,opacity:r.opacity,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:a}}),u=new $;return u.append(s),u.append(c),u.append(l),u}function i(e,t,n){var i=u(e.from)?e.from:h.MIN_VALUE,o=u(e.to)?e.to:h.MAX_VALUE;return e.from=Math.max(Math.min(o,i),t),e.to=Math.min(Math.max(o,i),n),e}function o(e,n){var i=c(n);return i.left=-i.left,i.top=-i.top,i.right=-i.right,i.bottom=-i.bottom,t(e,i)}function r(e,t){var n,i,o,r=e.position,a=e.tickX,s=e.tickY;return e.vertical?(n=new ne(a,r),i=new ne(a+t.size,r)):(n=new ne(r,s),i=new ne(r,s+t.size)),o=new ee({stroke:{color:t.color,width:t.width}}).moveTo(n).lineTo(i)}function a(e,t,n,i){var o,a,s,l=t.length;if(i.visible)for(o=n.mirror,a=n.lineBox,s=i.skip;s<l;s+=i.step)s%i.skipUnit!==0&&(n.tickX=o?a.x2:a.x2-i.size,n.tickY=o?a.y1-i.size:a.y1,n.position=t[s],e.append(r(n,i)))}function s(e,t,n,i){var o,r,a,s=new ke,l=e.center,d=e.getRadiusX();if(i.visible)for(o=0;o<t.length;o++)r=e.pointAt(t[o]),a=new M(l.x+d-i.size,l.y).rotate(t[o],l),s.append(new we({stroke:{color:i.color,width:i.width}}).moveTo(r).lineTo(a));return s}function l(e,t,n,i){return{from:e,to:t,color:n,opacity:i}}var d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U,j,q,G,$,K,Y,Q,X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge,ve,_e,be,we,ke,ye,xe,Ce,Se,Te,De,Ae,Ee,Ie,Me,Re,Fe,Pe,ze;window.kendo.dataviz=window.kendo.dataviz||{},d=kendo.dataviz,c=d.getSpacing,u=d.defined,h=d.constants,p=h.BLACK,f=h.COORD_PRECISION,m=d.services,g=d.deepExtend,v=d.isArray,_=d.setDefaultOptions,b=d.NumericAxis,w=d.limitValue,k=d.Box,y=d.interpolateValue,x=d.round,C=kendo.drawing,S=C.Group,T=C.Path,D=C.Animation,A=C.AnimationFactory,E=kendo.geometry,I=E.Rect,M=E.Point,R=E.transform,F=150,P=250,z="arrow",B="arrowPointer",L="barPointer",H=200,N=.5,O=200,V=Math.PI/180,W="inside",U="linear",j="outside",q="radialPointer",G="radialRangePointer",$=S,K=T,Y=C.Text,Q=5,X=T,Z=C.Surface,J=d.Class.extend({init:function(e,t,n,i){void 0===i&&(i={}),this.element=e,this.theme=n,this.contextService=new m.ChartService(this,i),this._originalOptions=g({},this.options,t),this.options=g({},this._originalOptions),this._initTheme(n),this.redraw()},destroy:function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},value:function(e){var t=this.pointers[0];return 0===arguments.length?t.value():(t.value(e),void this._setValueOptions(e))},_draw:function(){var e=this.surface;e.clear(),e.draw(this._visuals)},exportVisual:function(){return this._visuals},allValues:function(e){var t,n,i=this.pointers,o=[];if(0===arguments.length){for(t=0;t<i.length;t++)o.push(i[t].value());return o}if(v(e))for(n=0;n<e.length;n++)d.isNumber(e[n])&&i[n].value(e[n]);this._setValueOptions(e)},_setValueOptions:function(e){var t,n=[].concat(this.options.pointer),i=[].concat(e);for(t=0;t<i.length;t++)n[t].value=i[t]},resize:function(){this.noTransitionsRedraw()},noTransitionsRedraw:function(){var e=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(e)},redraw:function(){var e,t=this._surfaceSize(),n=new I([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel(),e=o(n.bbox(),this._gaugeAreaMargin),this.reflow(e)},setOptions:function(e,t){this._originalOptions=g(this._originalOptions,e),this.options=g({},this._originalOptions),this._initTheme(t),this.redraw()},setDirection:function(e){this.contextService.rtl=!!e,this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},setIntlService:function(e){this.contextService.intl=e},_initTheme:function(e){var t,n,i,o,r=e||this.theme||{};if(this.theme=r,this.options=g({},r,this.options),t=this.options,n=t.pointer,v(n)){for(i=[],o=0;o<n.length;o++)i.push(g({},r.pointer,n[o]));t.pointer=i}},_createGaugeArea:function(){var e,t=this.options.gaugeArea,n=this.surface.size(),i=t.border||{},r=new I([0,0],[n.width,n.height]);return this._gaugeAreaMargin=t.margin||Q,i.width>0&&(r=o(r,i.width)),e=X.fromRect(r,{stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},_initSurface:function(){var e=this,t=e.options,n=e.surface,i=this._surfaceElement(),o=this._surfaceSize();d.elementSize(i,o),n&&n.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(n&&n.destroy(),this.surface=Z.create(i,{type:t.renderAs}))},_surfaceSize:function(){var e=this.options,t=this._getSize();return e.gaugeArea&&g(t,e.gaugeArea),t},_surfaceElement:function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},getSize:function(){return this._getSize()},_getSize:function(){var e=this.element,t=this._defaultSize(),n=e.offsetWidth,i=e.offsetHeight;return n||(n=t.width),i||(i=t.height),{width:n,height:i}},_defaultSize:function(){return{width:O,height:H}},_toggleTransitions:function(e){var t,n=this;for(this.options.transitions=e,t=0;t<this.pointers.length;t++)n.pointers[t].options.animation.transitions=e}}),_(J,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}}),ee=T,te=S,ne=M,ie=b.extend({init:function(t,n){var i=t||{};!u(i.reverse)&&i.vertical===!1&&(n||{}).rtl&&(i=e.extend({},i,{reverse:!0})),b.fn.init.call(this,0,1,i,n),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10},initUserOptions:function(e){var t=g({},this.options,e);return t=g({},t,{labels:{mirror:t.mirror}}),t.majorUnit=t.majorUnit||d.autoMajorUnit(t.min,t.max),t},initFields:function(){},render:function(){var e=this.elements=new te,t=this.renderLabels(),n=this.renderLine(),i=this.renderTicks(),o=this.renderRanges();return e.append(n,t,i,o),e},renderRanges:function(){var e,t,n,o,r,a=this,s=this.options,l=s.min,d=s.max,c=s.vertical,u=s.labels.mirror,h=s.ranges||[],p=new te,f=h.length,m=s.rangeSize||s.minorTicks.size/2;for(e=0;e<f;e++)t=i(h[e],l,d),n=a.getSlot(t.from,t.to),o=c?a.lineBox():n,r=c?n:a.lineBox(),c?o.x1-=m*(u?-1:1):r.y2+=m*(u?-1:1),p.append(ee.fromRect(new I([o.x1,r.y1],[o.x2-o.x1,r.y2-r.y1]),{fill:{color:t.color,opacity:t.opacity},stroke:{}}));return p},renderLabels:function(){var e,t=this,i=t.labels,o=t.options,r=new te;for(e=0;e<i.length;e++)r.append(n(i[e],o.labels));return r},renderLine:function(){var e,t=this.options.line,n=this.lineBox(),i=new te;return t.width>0&&t.visible&&(e=new ee({stroke:{color:t.color,dashType:t.dashType,width:t.width}}),e.moveTo(n.x1,n.y1).lineTo(n.x2,n.y2),i.append(e)),i},renderTicks:function(){var e=new te,t=this.options,n=t.majorTicks.visible?t.majorUnit:0,i={vertical:t.vertical,mirror:t.labels.mirror,lineBox:this.lineBox()};return a(e,this.getMajorTickPositions(),i,t.majorTicks),a(e,this.getMinorTickPositions(),i,g({},{skipUnit:n/t.minorUnit},t.minorTicks)),e}}),_(ie,{min:0,max:50,majorTicks:{size:15,align:W,color:p,width:N,visible:!0},minorTicks:{size:10,align:W,color:p,width:N,visible:!0},line:{width:N},labels:{position:W,padding:2},mirror:!1,_alignLines:!1}),oe=d.Class.extend({init:function(e,t){var n=e.options,i=n.min,o=n.max,r=this.options=g({},this.options,t);r.fill=r.color,this.scale=e,r.value=u(r.value)?w(r.value,i,o):i},value:function(e){var t,n,i,o=this.options,r=o.value;return 0===arguments.length?r:(t=this.scale.options,n=t.min,i=t.max,o._oldValue=u(o._oldValue)?o.value:n,o.value=w(e,n,i),void(this.elements&&this.repaint()))}}),_(oe,{color:p}),re=oe.extend({init:function(e,t){oe.fn.init.call(this,e,t),this.options=g({track:{visible:u(t.track)}},this.options)},reflow:function(){var e,t,n,i=this,o=i.options,r=i.scale,a=r.options,s=a.mirror,l=a.vertical,d=r.lineBox(),u=o.track.size||o.size,h=o.size/2,p=c(o.margin),f=l?p[s?"left":"right"]:p[s?"bottom":"top"];f=s?-f:f,l?(n=new k(d.x1+f,d.y1,d.x1+f,d.y2),s?n.x1-=u:n.x2+=u,o.shape!==L&&(t=new k(d.x2+f,d.y1-h,d.x2+f,d.y2+h),e=t)):(n=new k(d.x1,d.y1-f,d.x2,d.y1-f),s?n.y2+=u:n.y1-=u,o.shape!==L&&(t=new k(d.x1-h,d.y1-f,d.x2+h,d.y1-f),e=t)),this.trackBox=n,this.pointerRangeBox=t,this.box=e||n.clone().pad(o.border.width)},getElementOptions:function(){var e=this.options;return{fill:{color:e.color,opacity:e.opacity},stroke:u(e.border)?{color:e.border.width?e.border.color||e.color:"",width:e.border.width,dashType:e.border.dashType,opacity:e.opacity}:null}},_margin:function(){var e=this,t=e.scale,n=e.options,i=t.options,o=i.mirror,r=i.vertical,a=c(n.margin),s=r?a[o?"left":"right"]:a[o?"bottom":"top"];return s}}),_(re,{shape:L,track:{border:{width:1}},color:p,border:{width:1},opacity:1,margin:c(3),animation:{type:L},visible:!0}),ae=D.extend({setup:function(){var e,t,n=this.options,i=n.margin,o=n.from,r=n.to,a=n.vertical,s=a?"x1":"y1";n.mirror===a?(o[s]-=i,r[s]-=i):(o[s]+=i,r[s]+=i),e=this.fromScale=new M(o.x1,o.y1),t=this.toScale=new M(r.x1,r.y1),0!==n.duration&&(n.duration=Math.max(e.distanceTo(t)/n.duration*1e3,1))},step:function(e){var t=y(this.fromScale.x,this.toScale.x,e),n=y(this.fromScale.y,this.toScale.y,e);this.element.transform(R().translate(t,n))}}),_(ae,{easing:U,duration:P}),A.current.register(B,ae),se=M,le=T,de=re.extend({init:function(e,t){re.fn.init.call(this,e,t),u(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)},pointerShape:function(){var e,t=this,n=t.scale,i=t.options.size,o=i/2,r=n.options.mirror?-1:1;return e=n.options.vertical?[new se(0,0-o),new se(0-r*i,0),new se(0,0+o)]:[new se(0-o,0),new se(0,0+r*i),new se(0+o,0)]},repaint:function(){var e=this,t=e.scale,n=e.options,i=new ae(this.elements,g(n.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(n.margin),from:t.getSlot(n._oldValue),to:t.getSlot(n.value)}));n.animation.transitions===!1&&(i.options.duration=0),i.setup(),i.play()},render:function(){var e,t,n=this,i=n.scale,o=n.options,r=this.getElementOptions(),a=this.pointerShape(o.value);return o.animation.type=B,e=new le({stroke:r.stroke,fill:r.fill}).moveTo(a[0]).lineTo(a[1]).lineTo(a[2]).close(),t=i.getSlot(o.value),e.transform(R().translate(t.x1,t.y1)),this.elements=e,e}}),ce=D.extend({setup:function(){var e=this.options,t=this.axis=e.vertical?h.Y:h.X,n=this.to=e.newPoints[0][t],i=this.from=e.oldPoints[0][t];0!==e.duration&&(e.duration=Math.max(Math.abs(n-i)/e.speed*1e3,1)),this._set(i)},step:function(e){var t=y(this.from,this.to,e);this._set(t)},_set:function(e){var t="set"+this.axis.toUpperCase(),n=this.options.newPoints;n[0][t](e),n[1][t](e)}}),_(ce,{easing:U,speed:P}),A.current.register(L,ce),ue=S,he=T,pe=re.extend({init:function(e,t){re.fn.init.call(this,e,t),u(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)},pointerShape:function(e){var t,n,i,o=this,r=o.scale,a=o.options,s=r.options,l=s.mirror,d=s.vertical,c=l===d?-1:1,u=a.size*c,p=r.getSlot(r.options.min),f=r.getSlot(e),m=d?h.Y:h.X,g=d?h.X:h.Y,v=this._margin()*c,_=new M;return _[m]=p[m+"1"],_[g]=p[g+"1"],t=new M,t[m]=f[m+"1"],t[g]=f[g+"1"],d?(_.translate(v,0),t.translate(v,0)):(_.translate(0,v),t.translate(0,v)),n=t.clone(),i=_.clone(),d?(n.translate(u,0),i.translate(u,0)):(n.translate(0,u),i.translate(0,u)),[_,t,n,i]},repaint:function(){var e,t=this,n=t.scale,i=t.options,o=this.pointerShape(i.value),r=this.pointerPath,a=this.pointerShape(i._oldValue);r.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close(),e=new ce(r,g(i.animation,{reverse:n.options.reverse,vertical:n.options.vertical,oldPoints:[a[1],a[2]],newPoints:[o[1],o[2]]})),i.animation.transitions===!1&&(e.options.duration=0),e.setup(),e.play()},render:function(){var e,t=new ue,n=this.getElementOptions();return this.options.track.visible&&t.append(this.renderTrack()),e=this.pointerPath=new he({stroke:n.stroke,fill:n.fill}),t.append(e),this.elements=t,t},renderTrack:function(){var e=this.options.track,t=e.border||{},n=this.trackBox.clone().pad(t.width||0);return new he.fromRect(n.toRect(),{fill:{color:e.color,opacity:e.opacity},stroke:{color:t.width?t.color||e.color:"",width:t.width,dashType:t.dashType}})}}),fe=60,me=60,ge=S,ve=J.extend({reflow:function(e){var t,n=this.pointers,i=e.origin.x,o=e.origin.y,r=new k(i,o,i+e.width(),o+e.height());for(this.scale.reflow(r),this._shrinkScaleWidth(r),t=0;t<n.length;t++)n[t].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},_buildVisual:function(){var e,t,n=new ge,i=this.scale.render(),o=this.pointers;for(n.append(this.gaugeArea),n.append(i),e=0;e<o.length;e++)t=o[e],n.append(t.render()),t.value(t.options.value);this._visuals=n},_createModel:function(){var e,t,n,i,o=this,r=this.options,a=this.scale=new ie(r.scale,this.contextService);for(this.pointers=[],e=r.pointer,e=v(e)?e:[e],t=0;t<e.length;t++)n=g({},e[t],{animation:{transitions:r.transitions}}),i=n.shape===z?de:pe,o.pointers.push(new i(a,n))},_defaultSize:function(){var e=this.options.scale.vertical;return{width:e?fe:O,height:e?H:me}},_getBox:function(e){var t,n,i=this,o=i.scale,r=i.pointers,a=e.center(),s=r[0].box.clone().wrap(o.box);for(t=0;t<r.length;t++)s.wrap(r[t].box.clone());return o.options.vertical?(n=s.width()/2,s=new k(a.x-n,e.y1,a.x+n,e.y2)):(n=s.height()/2,s=new k(e.x1,a.y-n,e.x2,a.y+n)),s},_alignElements:function(){var e,t,n,i=this,o=this,r=o.scale,a=o.pointers,s=r.box,l=a[0].box.clone().wrap(r.box),d=this.bbox;for(e=0;e<a.length;e++)l.wrap(a[e].box.clone());for(r.options.vertical?(t=d.center().x-l.center().x,r.reflow(new k(s.x1+t,d.y1,s.x2+t,d.y2))):(t=d.center().y-l.center().y,r.reflow(new k(s.x1,s.y1+t,s.x2,s.y2+t))),n=0;n<a.length;n++)a[n].reflow(i.bbox)},_shrinkScaleWidth:function(e){var t,n=this,i=n.scale;i.options.vertical||(t=i.contentBox().width()-e.width(),t>0&&(i.box.shrink(t,0),i.box.alignTo(e,"center"),i.reflow(i.box)))},_shrinkElements:function(){var e,t,n=this,i=this,o=i.scale,r=i.pointers,a=o.box.clone(),s=o.options.vertical?"y":"x",l=r[0].box;for(e=0;e<r.length;e++)l.wrap(r[e].box.clone());for(a[s+1]+=Math.max(a[s+1]-l[s+1],0),a[s+2]-=Math.max(l[s+2]-a[s+2],0),o.reflow(a),t=0;t<r.length;t++)r[t].reflow(n.bbox)}}),_(ve,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}}),_e=180,be=C.Arc,we=T,ke=S,ye=b.extend({init:function(e,t){b.fn.init.call(this,0,1,e,t)},initUserOptions:function(e){var t=g({},this.options,e);return t.majorUnit=t.majorUnit||d.autoMajorUnit(t.min,t.max),t.minorUnit=t.minorUnit||t.majorUnit/10,t},initFields:function(){},render:function(e,t){var n=this.renderArc(e,t);this.bbox=n.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},reflow:function(e){var t=e.center(),n=Math.min(e.height(),e.width())/2;return u(this.bbox)?(this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels(),void 0):this.render(t,n)},slotAngle:function(e){var t,n=this.options,i=n.min,o=n.max,r=n.reverse,a=n.startAngle,s=n.endAngle,l=s-a;return t=r?s-(e-i)/(o-i)*l:(e-i)/(o-i)*l+a,t+_e},hasRanges:function(){var e=this.options.ranges;return e&&e.length},ticksSize:function(){var e=this.options,t=e.majorTicks,n=e.minorTicks,i=0;return t.visible&&(i=t.size),n.visible&&(i=Math.max(n.size,i)),i},renderLabels:function(){var e,t,i,o,r,a,s,l,d,c,h,p,f,m,g,v,_,b,w,y=this,x=this.options,C=this.arc.clone(),S=C.getRadiusX(),T=this.tickAngles(C,x.majorUnit),D=x.rangeSize=x.rangeSize||.1*S,A=new ke,E=.05*S;for(u(x.rangeDistance)?E=x.rangeDistance:x.rangeDistance=E,e=x.labels,t=e.position===W,i=u(this.labelElements),t&&(S-=this.ticksSize(),this.hasRanges()&&!i&&(S-=D+E),C.setRadiusX(S).setRadiusY(S)),o=this.labels,r=o.length,a=e.padding,s=0;s<r;s++)l=o[s],d=l.box.width()/2,c=l.box.height()/2,h=T[s],p=(h-_e)*V,f=C.pointAt(h),m=f.x+Math.cos(p)*(d+a)*(t?1:-1),g=f.y+Math.sin(p)*(c+a)*(t?1:-1),l.reflow(new k(m-d,g-c,m+d,g+c)),v=new M(l.box.x1,l.box.y1),_=void 0,i?(_=y.labelElements.children[s],b=_.bbox().origin,w=_.transform()||R(),w.translate(v.x-b.x,v.y-b.y),_.transform(w)):(_=n(l,x.labels),A.append(_)),y.bbox=I.union(y.bbox,_.bbox());return A},repositionRanges:function(){var e,t,n,i,o,r,a=this.ranges.children;if(a.length>0){for(e=this.options,t=e.rangeDistance,n=e.rangeSize,i=this.getRangeRadius(),this.options.labels.position===W&&(i+=n+t),o=i+n/2,r=0;r<a.length;r++)a[r]._geometry.setRadiusX(o).setRadiusY(o);this.bbox=I.union(this.bbox,this.ranges.bbox())}},renderRanges:function(){var e,t,n,i,o,r,a,s,l,d=this,c=this.rangeSegments(),u=c.length,h=new ke;if(u)for(e=this.options,t=e.rangeSize,n=e.reverse,i=e.rangeDistance,o=this.getRangeRadius(),this.radius(this.radius()-t-i),r=0;r<u;r++)a=c[r],s=d.slotAngle(a[n?"to":"from"]),l=d.slotAngle(a[n?"from":"to"]),l-s!==0&&h.append(d.createRange(s,l,o,a));return h},createRange:function(e,t,n,i){var o=this.options.rangeSize,r=new E.Arc(this.arc.center,{radiusX:n+o/2,radiusY:n+o/2,startAngle:e,endAngle:t});return new be(r,{stroke:{width:o,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},rangeSegments:function(){var e,t,n,o,r,a,s,d,c=this.options,u=c.ranges||[],h=u.length,p=[];if(h)for(e=c.min,t=c.max,n=c.rangePlaceholderColor,p.push(l(e,t,n)),o=0;o<h;o++)for(r=i(u[o],e,t),a=p.length,s=0;s<a;s++)if(d=p[s],d.from<=r.from&&r.from<=d.to){p.push(l(r.from,r.to,r.color,r.opacity)),d.from<=r.to&&r.to<=d.to&&p.push(l(r.to,d.to,n,r.opacity)),d.to=r.from;break}return p},getRangeRadius:function(){var e,t=this,n=t.arc,i=t.options,o=i.rangeSize,r=i.rangeDistance,a=i.majorTicks.size;return e=i.labels.position===j?n.getRadiusX()-a-r-o:n.getRadiusX()-o},renderArc:function(e,t){var n=this.options,i=this.arc=new E.Arc(e,{radiusX:t,radiusY:t,startAngle:n.startAngle+_e,endAngle:n.endAngle+_e});return i},renderTicks:function(){var e,t,n,i,o=this,r=o.arc,a=o.options,l=r.clone();return this.majorTickAngles=this.tickAngles(r,a.majorUnit),this.majorTicks=s(l,this.majorTickAngles,a.majorUnit,a.majorTicks),e=new ke,e.append(this.majorTicks),t=a.majorTicks.size,n=a.minorTicks.size,this._tickDifference=t-n,a.labels.position===j&&(i=l.getRadiusX(),l.setRadiusX(i-t+n).setRadiusY(i-t+n)),this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(r,a.minorUnit)),this.minorTicks=s(l,this.minorTickAngles,a.minorUnit,a.minorTicks),e.append(this.minorTicks),e},normalizeTickAngles:function(e){var t,n=this.options,i=n.majorUnit/n.minorUnit;for(t=e.length-1;t>=0;t--)t%i===0&&e.splice(t,1);return e},tickAngles:function(e,t){var n,i,o=this.options,r=o.reverse,a=o.max-o.min,s=e.endAngle-e.startAngle,l=a/t,d=e.startAngle,c=s/l;for(r&&(d+=s,c=-c),n=[],i=0;i<l;i++)n.push(x(d,f)),d+=c;return x(d)<=e.endAngle&&n.push(d),n},radius:function(e){return e?(this.arc.setRadiusX(e).setRadiusY(e),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0),void 0):this.arc.getRadiusX()},repositionTicks:function(e,t,n){var i,o,r,a,s,l=n?this._tickDifference||0:0,d=this.arc,c=d.getRadiusX();for(n&&this.options.labels.position===j&&0!==l&&(d=this.arc.clone(),d.setRadiusX(c-l).setRadiusY(c-l)),i=0;i<e.length;i++)o=d.pointAt(t[i]),r=e[i].segments,a=o.x-r[0].anchor().x,s=o.y-r[0].anchor().y,e[i].transform((new R).translate(a,s))}}),_(ye,{min:0,max:100,majorTicks:{size:15,align:W,color:p,width:N,visible:!0},minorTicks:{size:10,align:W,color:p,width:N,visible:!0},startAngle:-30,endAngle:210,labels:{position:W,padding:2}}),xe=D.extend({init:function(e,t){D.fn.init.call(this,e,t);var n=this.options;n.duration=Math.max(Math.abs(n.newAngle-n.oldAngle)/n.duration*1e3,1)},step:function(e){var t=this.options,n=y(t.oldAngle,t.newAngle,e);this.element.transform(R().rotate(n,t.center))}}),_(xe,{easing:U,duration:F}),A.current.register(q,xe),Ce=.05,Se=C.Circle,Te=S,De=T,Ae=oe.extend({setAngle:function(e){this.elements.transform(R().rotate(e,this.center))},repaint:function(){var e=this,t=e.scale,n=e.options,i=t.slotAngle(n._oldValue),o=t.slotAngle(n.value);n.animation.transitions===!1?this.setAngle(o):new xe(this.elements,g(n.animation,{oldAngle:i,newAngle:o})).play()},render:function(){var e=this,t=e.scale,n=e.options,i=new Te;return n.animation!==!1&&g(n.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),i.append(this._renderNeedle(),this._renderCap()),this.elements=i,this.setAngle(V),i},reflow:function(e){var t=this.center=e.center,n=w(this.options.length||1,.1,1.5),i=this.radius=e.getRadiusX()*n,o=this.capSize=Math.round(i*this.options.cap.size);
this.bbox=I.fromPoints(new M(t.x-o,t.y-o),new M(t.x+o,t.y+o))},_renderNeedle:function(){var e=this.scale.options.minorTicks.size,t=this.center,n=this.options.color,i=new De({fill:{color:n},stroke:{color:n,width:N}});return i.moveTo(t.x+this.radius-e,t.y).lineTo(t.x,t.y-this.capSize/2).lineTo(t.x,t.y+this.capSize/2).close(),i},_renderCap:function(){var e=this.options,t=e.cap.color||e.color,n=new E.Circle(this.center,this.capSize),i=new Se(n,{fill:{color:t},stroke:{color:t}});return i}}),_(Ae,{cap:{size:Ce},arrow:{width:16,height:14},animation:{type:q,duration:F}}),Ee=S,Ie=J.extend({reflow:function(e){var t,n=this,i=this.pointers;for(this.scale.reflow(e),this._initialPlotArea=this.scale.bbox,t=0;t<i.length;t++)i[t].reflow(n.scale.arc),n._initialPlotArea=I.union(n._initialPlotArea,i[t].bbox);this.fitScale(e),this.alignScale(e),this._buildVisual(this.gaugeArea,i,this.scale),this._draw()},_buildVisual:function(e,t,n){var i=this._visuals=new Ee;i.append(e),i.append(n.ticks),i.append(n.ranges),this._buildPointers(t),i.append(n.labelElements)},_buildPointers:function(e){var t,n,i=this;for(t=0;t<e.length;t++)n=e[t],n.render(),i._visuals.append(n.elements),n.value(n.options.value)},fitScale:function(e){for(var t,n,i,o,r,a=this,s=this.scale.arc,l=this._initialPlotArea,d=Math.abs(this.getDiff(l,e)),c=x(d,f),u=x(-d,f),h=0,p=0;!(!(p++<100)||(h=r===i?h+1:0,h>5)||c!==o&&(t=a.getPlotBox(c,e,s),0<=t&&t<=2)||u!==o&&(i=a.getPlotBox(u,e,s),0<=i&&i<=2)||(o=t>0&&i>0?2*c:t<0&&i<0?2*u:x((c+u)/2||1,f),n=a.getPlotBox(o,e,s),0<=n&&n<=2));)r=i,n>0?(u=o,i=n):(c=o,t=n)},getPlotBox:function(e,t,n){var i,o=this,r=this.scale,a=this.pointers,s=n.getRadiusX(),l=n.clone();for(l.setRadiusX(s+e).setRadiusY(s+e),r.arc=l,r.reflow(t),this.plotBbox=r.bbox,i=0;i<a.length;i++)a[i].reflow(l),o.plotBbox=I.union(o.plotBbox,a[i].bbox);return this.getDiff(this.plotBbox,t)},getDiff:function(e,t){return Math.min(t.width()-e.width(),t.height()-e.height())},alignScale:function(e){var t,n=this,i=this.plotBbox.center(),o=e.center(),r=i.x-o.x,a=i.y-o.y,s=this,l=s.scale,d=s.pointers;for(l.arc.center.x-=r,l.arc.center.y-=a,l.reflow(e),t=0;t<d.length;t++)d[t].reflow(l.arc),n.plotBbox=I.union(l.bbox,d[t].bbox)},_createModel:function(){var e,t,n,i=this,o=this.options,r=o.pointer,a=this.scale=new ye(o.scale,this.contextService);for(this.pointers=[],e=v(r)?r:[r],t=0;t<e.length;t++)n=new Ae(a,g({},e[t],{animation:{transitions:o.transitions}})),i.pointers.push(n)}}),_(Ie,{transitions:!0,gaugeArea:{background:""}}),Me=ye.extend({rangeSegments:function(){var e=this.options,t=e.min,n=e.max,i=e.rangePlaceholderColor,o=e.rangeLineCap;return[{from:t,to:n,color:i,lineCap:o}]},hasRanges:function(){return!0},placeholderRangeAngle:function(e){var t=this.ranges.children[0].geometry();this.options.reverse?t.setEndAngle(e):t.setStartAngle(e)},addRange:function(e,t,n){var i=this.options.reverse,o=this.slotAngle(i?t:e),r=this.slotAngle(i?e:t),a=this.createRange(o,r,this.getRangeRadius(),n);return this.ranges.append(a),a}}),_(Me,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"}),Re=800,Fe=D.extend({init:function(e,t){var n,i,o,r;D.fn.init.call(this,e,t),n=this.options,i=Math.abs(n.newAngle-n.oldAngle)/n.duration*1e3,n.duration=w(i,F,Re),o=e.elements.options.get("stroke.color"),r=e.currentColor(),o!==r&&(this.startColor=new kendo.Color(o),this.color=new kendo.Color(r))},step:function(e){var t,n,i,o=this,r=o.options,a=o.startColor,s=o.color,l=y(r.oldAngle,r.newAngle,e);this.element.angle(l),s&&(t=x(y(a.r,s.r,e)),n=x(y(a.g,s.g,e)),i=x(y(a.b,s.b,e)),this.element.stroke(new kendo.Color(t,n,i).toHex()))}}),_(Fe,{easing:U,duration:F}),A.current.register(G,Fe),Pe=oe.extend({repaint:function(){var e=this,t=e.scale,n=e.options,i=t.slotAngle(n._oldValue),o=t.slotAngle(n.value);this.animation&&this.animation.abort(),n.animation.transitions===!1?(this.angle(o),this.stroke(this.currentColor())):(this.animation=new Fe(this,g(n.animation,{oldAngle:i,newAngle:o})),this.animation.play())},angle:function(e){var t=this.elements.geometry();this.scale.options.reverse?t.setStartAngle(e):t.setEndAngle(e),this.scale.placeholderRangeAngle(e)},stroke:function(e){this.elements.stroke(e)},render:function(){var e,t,n;this.elements||(e=this,t=e.scale,n=e.options,n.animation!==!1&&g(n.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:n.opacity,lineCap:t.options.rangeLineCap}))},currentColor:function(){var e,t,n,i,o,r=this.scale.options,a=r.min,s=r.max,l=this.options,c=l.colors,u=l.color,h=l.value,p=d.isNumber(h)?h:a;if(c)for(e=0;e<c.length;e++)if(t=c[e],n=t.color,i=t.from,void 0===i&&(i=a),o=t.to,void 0===o&&(o=s),i<=p&&p<=o)return n;return u},reflow:function(){this.render(),this.bbox=this.elements.bbox()}}),_(Pe,{animation:{type:G,duration:F}}),ze=Ie.extend({_initTheme:function(e){Ie.fn._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},_createModel:function(){var e=this.options,t=this.scale=new Me(e.scale,this.contextService),n=new Pe(t,g({},{colors:e.colors,color:e.color,value:e.value,opacity:e.opacity,animation:{transitions:e.transitions}}));this.pointers=[n]},_buildPointers:function(e){var t,n;for(t=0;t<e.length;t++)n=e[t],n.render(),n.value(n.options.value)},_setValueOptions:function(e){this.options.value=e},currentColor:function(){var e=this.pointers[0];if(e)return e.currentColor()},centerLabelPosition:function(e,t){var n,i,o,r,a=this.getSize(),s=this.scale.arc.center,l=s.x-e/2,d=s.y-t/2;return e<a.width&&(n=l+e,l=Math.max(l,0),n>a.width&&(l-=n-a.width)),t<a.height&&(i=this.scale.bbox,o=i.bottomRight().y,r=d+t,d=Math.max(d,i.origin.y),r>o&&(d-=r-o)),{left:l,top:d}}}),kendo.deepExtend(kendo.dataviz,{Gauge:J,LinearGauge:ve,LinearPointer:re,ArrowLinearPointer:de,BarLinearPointer:pe,LinearScale:ie,RadialGauge:Ie,RadialPointer:Ae,RadialScale:ye,ArcGauge:ze,RangePointer:Pe,ArcScale:Me})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/gauge/main.min",["dataviz/gauge/kendo-gauges.min"],e)}(function(){return function(e){function t(e){var t=u.ui.themes||{},n=e.theme||"",i=n.toLowerCase();return u.SASS_THEMES.indexOf(i)!=-1?u.autoTheme().gauge:(t[n]||t[i]||{}).gauge}function n(e){g.fn[e]=function(){return this._instance[e].apply(this._instance,arguments)}}function i(e){s.fn[e]=function(t){var n=this,i=m[e];return n._centerElement?m.drawDOM(n.element).then(function(e){return i(e,t)}):i(n.exportVisual(),t)}}var o,r,a,s,l,d=window.kendo,c=d.ui.Widget,u=d.dataviz,h=u.LinearGauge,p=u.RadialGauge,f=u.ArcGauge,m=d.drawing,g=c.extend({init:function(t,n){d.destroy(t),e(t).empty(),c.fn.init.call(this,t),this.options=d.deepExtend(this.options,n),this.wrapper=this.element,this._createInstance(),this.element.addClass("k-gauge"),d.notify(this,u.ui)},options:{theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{background:""},transitions:!0},setOptions:function(e){this._instance.setOptions(e,t(e)),this._copyFields()},redraw:function(){this._instance.redraw(),this._copyFields()},destroy:function(){c.fn.destroy.call(this),this._instance.destroy()},_createInstance:function(){var e=this._gaugeType();this._instance=new e(this.element[0],this.options,t(this.options)),this._copyFields()},_copyFields:function(){this._originalOptions=this._instance._originalOptions,this.options=this._instance.options,this.surface=this._instance.surface,this.bbox=this._instance.bbox,this.gaugeArea=this._instance.gaugeArea,this.pointers=this._instance.pointers,this.scale=this._instance.scale},_resize:function(){this._instance.resize()}}),v=["getSize","value","allValues","exportVisual"];for(o=0;o<v.length;o++)n(v[o]);for(u.ExportMixin.extend(g.fn),r=g.extend({options:{name:"RadialGauge"},_gaugeType:function(){return p}}),a=g.extend({options:{name:"LinearGauge",scale:{vertical:!0}},_gaugeType:function(){return h}}),s=g.extend({init:function(e,t){g.fn.init.call(this,e,t),this.element.css("position","relative"),this.element.addClass("k-arcgauge"),this._centerTemplate()},options:{name:"ArcGauge"},setOptions:function(e){g.fn.setOptions.call(this,e),this._centerTemplate()},redraw:function(){g.fn.redraw.call(this),this._centerTemplate()},value:function(e){var t=this._instance;return 0===arguments.length?t.value():(t.value(e),void this._centerTemplate())},destroy:function(){g.fn.destroy.call(this),delete this._centerElement},exportVisual:function(){return!this._centerElement&&g.fn.exportVisual.call(this)},_resize:function(){this._instance.resize(),this._centerTemplate()},_centerTemplate:function(){var e,t,n,i;this.options.centerTemplate?(e=d.template(this.options.centerTemplate),t=this._instance,n=this._getCenterElement(),n.html(e({color:t.currentColor(),value:t.value()})),i=t.centerLabelPosition(n.width(),n.height()),n.css(i)):this._centerElement&&(this._centerElement.remove(),this._centerElement=null)},_getCenterElement:function(){var t=this._centerElement;return t||(t=this._centerElement=e("<div></div>").addClass("k-arcgauge-label"),this.element.append(t)),t},_gaugeType:function(){return f}}),l=["exportSVG","exportImage","exportPDF"],o=0;o<l.length;o++)i(l[o]);u.ui.plugin(a),u.ui.plugin(r),u.ui.plugin(s),d.deepExtend(u,{Gauge:g,LinearGauge:a,RadialGauge:r,ArcGauge:s})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.gauge.min",["dataviz/gauge/main.min","kendo.dataviz.themes.min"],e)}(function(){return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.barcode.min",["kendo.dataviz.core.min","kendo.drawing.min"],e)}(function(){return function(e,t){function n(e,t,n){return e.substring(t,t+n)}var i,o,r,a,s,l,d=window.kendo,c=d.ui.Widget,u=e.extend,h=d.deepExtend,p=e.inArray,f=e.isPlainObject,m=d.drawing,g=d.geometry,v=d.drawing.util,_=v.defined,b=d.dataviz,w=b.Box2D,k=b.TextBox,y=300,x=100,C=10,S=/^\d+$/,T=/^[a-z0-9]+$/i,D="Character '{0}' is not valid for symbology {1}",A=d.Class.extend({init:function(e){this.setOptions(e)},setOptions:function(e){var t=this;t.options=u({},t.options,e),t.quietZoneLength=t.options.addQuietZone?2*t.options.quietZoneLength:0},encode:function(e,t,n){var i=this;return _(e)&&(e+=""),i.initValue(e,t,n),i.options.addQuietZone&&i.addQuietZone(),i.addData(),i.options.addQuietZone&&i.addQuietZone(),{baseUnit:i.baseUnit,pattern:i.pattern}},options:{quietZoneLength:C,addQuietZone:!0,addCheckSum:!0},initValue:function(){},addQuietZone:function(){this.pattern.push(this.options.quietZoneLength||C)},addData:function(){},invalidCharacterError:function(e){throw Error(d.format(D,e,this.name))}}),E={},I=A.extend({minBaseUnitLength:.7,addData:function(){var e,t=this,n=t.value;for(t.addStart(),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.pushCheckSum(),t.addStop(),t.prepareValues()},addCharacter:function(e){var t=this,n=t.characterMap[e];n||t.invalidCharacterError(e),t.addBase(n)},addBase:function(){}}),M={addCharacter:function(e){var t=this;t.characterMap[e]?t.addBase(t.characterMap[e]):e.charCodeAt(0)>127?t.invalidCharacterError(e):t.addExtended(e.charCodeAt(0))},addExtended:function(e){var n,i,o,r=this;for(i=0;i<r.extendedMappings.length;i++)if(n=r.extendedMappings[i].call(r,e)){for(o=0;o<n.length;o++)r.addBase(n[o]);return r.dataLength+=n.length-1,t}},extendedMappings:[function(e){if(97<=e&&e<=122){var t=this;return[t.characterMap[t.shiftCharacters[0]],t.characterMap[String.fromCharCode(e-32)]]}},function(e){if(33<=e&&e<=58){var t=this;return[t.characterMap[t.shiftCharacters[1]],t.characterMap[String.fromCharCode(e+32)]]}},function(e){if(1<=e&&e<=26){var t=this;return[t.characterMap[t.shiftCharacters[2]],t.characterMap[String.fromCharCode(e+64)]]}},function(e){var t,n,i,o=this;if(o.specialAsciiCodes[e])for(t=[],i=0;i<o.specialAsciiCodes[e].length;i++)t.push(o.characterMap[o.shiftCharacters[3]]),t.push(o.characterMap[o.specialAsciiCodes[e][i]]);else n=6*Math.floor(e/32)+(e-27)%32+64,t=[o.characterMap[o.shiftCharacters[3]],o.characterMap[String.fromCharCode(n)]];return t}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]};E.code39=I.extend({name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",initValue:function(e,t,n){var i=this;i.width=t,i.height=n,i.value=e,i.dataLength=e.length,i.pattern=[],i.patternString=""},prepareValues:function(){var e,t,n=this,i=n.minBaseUnitLength,o=n.maxRatio,r=n.minRatio,a=Math.max(.15*n.width,24);if(n.height<a)throw Error("Insufficient Height. The minimum height for value: "+n.value+" is: "+a);for(;(e=n.getBaseUnit(o))<i&&o>r;)o=parseFloat((o-.1).toFixed(1));if(e<i)throw t=Math.ceil(n.getBaseWidth(r)*i),Error("Insufficient width. The minimum width for value: "+n.value+" is: "+t);n.ratio=o,n.baseUnit=e,n.patternString=n.patternString.substring(0,n.patternString.length-1),n.pattern=n.pattern.concat(n.patternString.replace(/ratio/g,o).split(n.splitCharacter))},getBaseUnit:function(e){return this.width/this.getBaseWidth(e)},getBaseWidth:function(e){var t=this,n=3*(e+2);return t.quietZoneLength+n*(t.dataLength+2)+t.gapWidth*(t.dataLength+1)},addStart:function(){var e=this;e.addPattern(e.characterMap.START.pattern),e.addCharacterGap()},addBase:function(e){this.addPattern(e.pattern),this.addCharacterGap()},addStop:function(){this.addPattern(this.characterMap.START.pattern)},addPattern:function(e){for(var t=0;t<e.length;t++)this.patternString+=this.patternMappings[e.charAt(t)]},addCharacterGap:function(){var e=this;e.patternString+=e.gapWidth+e.splitCharacter},patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}},options:{addCheckSum:!1}}),E.code39extended=E.code39.extend(h({},M,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})),E.code93=I.extend({name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,initValue:function(e,t,n){var i=this;i.value=e,i.width=t,i.height=n,i.pattern=[],i.values=[],i.dataLength=e.length},prepareValues:function(){var e=this,t=Math.max(.15*e.width,24);if(e.height<t)throw Error("Insufficient Height");if(e.setBaseUnit(),e.baseUnit<e.minBaseUnitLength)throw Error("Insufficient Width")},setBaseUnit:function(){var e=this,t=2;e.baseUnit=e.width/(9*(e.dataLength+2+t)+e.quietZoneLength+1)},addStart:function(){var e=this.characterMap.START.pattern;this.addPattern(e)},addStop:function(){var e=this;e.addStart(),e.pattern.push(e.characterMap.TERMINATION_BAR)},addBase:function(e){this.addPattern(e.pattern),this.values.push(e.value)},pushCheckSum:function(){var e,t,n=this,i=n._getCheckValues();for(n.checksum=i.join(""),t=0;t<i.length;t++)e=n.characterMap[n._findCharacterByValue(i[t])],n.addPattern(e.pattern)},_getCheckValues:function(){var e,t,n,i=this,o=i.values,r=o.length,a=0;for(n=r-1;n>=0;n--)a+=i.weightedValue(o[n],r-n,i.cCheckSumTotal);for(e=a%i.checkSumMod,a=i.weightedValue(e,1,i.kCheckSumTotal),n=r-1;n>=0;n--)a+=i.weightedValue(o[n],r-n+1,i.kCheckSumTotal);return t=a%i.checkSumMod,[e,t]},_findCharacterByValue:function(e){for(var t in this.characterMap)if(this.characterMap[t].value===e)return t},weightedValue:function(e,t,n){return(t%n||n)*e},addPattern:function(e){var t,n;for(n=0;n<e.length;n++)t=parseInt(e.charAt(n),10),this.pattern.push(t)},characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}}),E.code93extended=E.code93.extend(h({},M,{name:"Code 93 extended",pushCheckSum:function(){var e,t,n=this,i=n._getCheckValues();for(n.checksum=i.join(""),t=0;t<i.length;t++)e=i[t],n.shiftValuesAsciiCodes[e]?n.addExtended(n.shiftValuesAsciiCodes[e]):n.addPattern(n.characterMap[n._findCharacterByValue(e)].pattern)}})),i=d.Class.extend({init:function(e){this.encoding=e},addStart:function(){},is:function(){},move:function(){},pushState:function(){}}),o=i.extend({FNC4:"FNC4",init:function(e,t){var n=this;n.encoding=e,n.states=t,n._initMoves(t)},addStart:function(){this.encoding.addPattern(this.START)},is:function(e,t){var n=e.charCodeAt(t);return this.isCode(n)},move:function(e){for(var t=this,n=0;!t._moves[n].call(t,e)&&n<t._moves.length;)n++},pushState:function(e){var t,n,i=this,o=i.states,r=e.value,a=r.length;for(p("C",o)>=0&&(n=r.substr(e.index).match(/\d{4,}/g),n&&(a=r.indexOf(n[0],e.index)));(t=e.value.charCodeAt(e.index))>=0&&i.isCode(t)&&e.index<a;)i.encoding.addPattern(i.getValue(t)),e.index++},_initMoves:function(e){var t=this;t._moves=[],p(t.FNC4,e)>=0&&t._moves.push(t._moveFNC),p(t.shiftKey,e)>=0&&t._moves.push(t._shiftState),t._moves.push(t._moveState)},_moveFNC:function(e){if(e.fnc)return e.fnc=!1,e.previousState==this.key},_shiftState:function(e){var t=this;if(e.previousState==t.shiftKey&&(e.index+1>=e.value.length||t.encoding[t.shiftKey].is(e.value,e.index+1)))return t.encoding.addPattern(t.SHIFT),e.shifted=!0,!0},_moveState:function(){return this.encoding.addPattern(this.MOVE),!0},SHIFT:98}),r={},r.A=o.extend({key:"A",shiftKey:"B",isCode:function(e){return 0<=e&&e<96},getValue:function(e){return e<32?e+64:e-32},MOVE:101,START:103}),r.B=o.extend({key:"B",shiftKey:"A",isCode:function(e){return 32<=e&&e<128},getValue:function(e){return e-32},MOVE:100,START:104}),r.C=i.extend({key:"C",addStart:function(){this.encoding.addPattern(this.START)},is:function(e,t){var i=n(e,t,4);return(t+4<=e.length||2==e.length)&&S.test(i)},move:function(){this.encoding.addPattern(this.MOVE)},pushState:function(e){for(var t;(t=n(e.value,e.index,2))&&S.test(t)&&2==t.length;)this.encoding.addPattern(parseInt(t,10)),e.index+=2},getValue:function(e){return e},MOVE:99,START:105}),r.FNC4=i.extend({key:"FNC4",dependentStates:["A","B"],init:function(e,t){this.encoding=e,this._initSubStates(t)},addStart:function(e){var t=e.value.charCodeAt(0)-128,n=this._getSubState(t);this.encoding[n].addStart()},is:function(e,t){var n=e.charCodeAt(t);return this.isCode(n)},isCode:function(e){return 128<=e&&e<256},pushState:function(e){var t,n=this,i=n._initSubState(e),o=n.encoding,r=i.value.length;if(e.index+=r,r<3)for(;i.index<r;i.index++)t=i.value.charCodeAt(i.index),i.state=n._getSubState(t),i.previousState!=i.state&&(i.previousState=i.state,o[i.state].move(i)),o.addPattern(o[i.state].MOVE),o.addPattern(o[i.state].getValue(t));else i.state!=i.previousState&&o[i.state].move(i),n._pushStart(i),o.pushData(i,n.subStates),e.index<e.value.length&&n._pushStart(i);e.fnc=!0,e.state=i.state},_pushStart:function(e){var t=this;t.encoding.addPattern(t.encoding[e.state].MOVE),t.encoding.addPattern(t.encoding[e.state].MOVE)},_initSubState:function(e){var t=this,n={value:t._getAll(e.value,e.index),index:0};return n.state=t._getSubState(n.value.charCodeAt(0)),n.previousState=e.previousState==t.key?n.state:e.previousState,n},_initSubStates:function(e){var t,n=this;for(n.subStates=[],t=0;t<e.length;t++)p(e[t],n.dependentStates)>=0&&n.subStates.push(e[t])},_getSubState:function(e){var t,n=this;for(t=0;t<n.subStates.length;t++)if(n.encoding[n.subStates[t]].isCode(e))return n.subStates[t]},_getAll:function(e,t){for(var n,i="";(n=e.charCodeAt(t++))&&this.isCode(n);)i+=String.fromCharCode(n-128);return i}}),r.FNC1=i.extend({key:"FNC1",startState:"C",dependentStates:["C","B"],startAI:"(",endAI:")",init:function(e,t){this.encoding=e,this.states=t},addStart:function(){this.encoding[this.startState].addStart()},is:function(){return p(this.key,this.states)>=0},pushState:function(e){var t,n,i,o=this,r=o.encoding,a=e.value.replace(/\s/g,""),s=RegExp("["+o.startAI+o.endAI+"]","g"),l=e.index,d={state:o.startState};for(r.addPattern(o.START);;){if(d.index=0,i=a.charAt(l)===o.startAI?2:0,t=i>0?o.getBySeparator(a,l):o.getByLength(a,l),t.ai.length)n=l+i+t.id.length+t.ai.length;else if(n=a.indexOf(o.startAI,l+1),n<0){if(l+t.ai.max+t.id.length+i<a.length)throw Error("Separators are required after variable length identifiers");n=a.length}if(d.value=a.substring(l,n).replace(s,""),o.validate(t,d.value),r.pushData(d,o.dependentStates),n>=a.length)break;l=n,d.state!=o.startState&&(r[o.startState].move(d),d.state=o.startState),t.ai.length||r.addPattern(o.START)}e.index=e.value.length},validate:function(e,t){var n=t.substr(e.id.length),i=e.ai;if(!i.type&&!S.test(n))throw Error("Application identifier "+e.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"==i.type&&!T.test(n))throw Error("Application identifier "+e.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==n.length)throw Error("Application identifier "+e.id+" must be "+i.length+" characters long.");if(i.min&&i.min>n.length)throw Error("Application identifier "+e.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<n.length)throw Error("Application identifier "+e.id+" must be at most "+i.max+" characters long.")},getByLength:function(e,t){var i,o,r,a=this;for(r=2;r<=4;r++)if(i=n(e,t,r),o=a.getAI(i)||a.getAI(i.substring(0,i.length-1)))return{id:i,ai:o};a.unsupportedAIError(i)},unsupportedAIError:function(e){throw Error(d.format("'{0}' is not a supported Application Identifier"),e)},getBySeparator:function(e,t){var n=this,i=e.indexOf(n.startAI,t),o=e.indexOf(n.endAI,i),r=e.substring(i+1,o),a=n.getAI(r)||n.getAI(r.substr(r.length-1));return a||n.unsupportedAIError(r),{ai:a,id:r}},getAI:function(e){var t,n,i,o=this.applicationIdentifiers,r=o.multiKey;if(o[e])return o[e];for(t=0;t<r.length;t++){if(r[t].ids&&p(e,r[t].ids)>=0)return r[t].type;if(r[t].ranges)for(n=r[t].ranges,i=0;i<n.length;i++)if(n[i][0]<=e&&e<=n[i][1])return r[t].type}},applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102}),a=A.extend({init:function(e){A.fn.init.call(this,e),this._initStates()},_initStates:function(){var e,t=this;for(e=0;e<t.states.length;e++)t[t.states[e]]=new r[t.states[e]](t,t.states)},initValue:function(e,t,n){var i=this;i.pattern=[],i.value=e,i.width=t,i.height=n,i.checkSum=0,i.totalUnits=0,i.index=0,i.position=1},addData:function(){var e=this,t={value:e.value,index:0,state:""};0!==e.value.length&&(t.state=t.previousState=e.getNextState(t,e.states),e.addStart(t),e.pushData(t,e.states),e.addCheckSum(),e.addStop(),e.setBaseUnit())},pushData:function(e,t){for(var n,i=this;;){if(i[e.state].pushState(e),e.index>=e.value.length)break;e.shifted?(n=e.state,e.state=e.previousState,e.previousState=n,e.shifted=!1):(e.previousState=e.state,e.state=i.getNextState(e,t),i[e.state].move(e))}},addStart:function(e){this[e.state].addStart(e),this.position=1},addCheckSum:function(){var e=this;e.checksum=e.checkSum%103,e.addPattern(e.checksum)},addStop:function(){this.addPattern(this.STOP)},setBaseUnit:function(){var e=this;e.baseUnit=e.width/(e.totalUnits+e.quietZoneLength)},addPattern:function(e){var t,n,i=this,o=""+i.characterMap[e];for(n=0;n<o.length;n++)t=parseInt(o.charAt(n),10),i.pattern.push(t),i.totalUnits+=t;i.checkSum+=e*i.position++},getNextState:function(e,t){for(var n=0;n<t.length;n++)if(this[t[n]].is(e.value,e.index))return t[n];this.invalidCharacterError(e.value.charAt(e.index))},characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106}),E.code128a=a.extend({name:"Code 128 A",states:["A"]}),E.code128b=a.extend({name:"Code 128 B",states:["B"]}),E.code128c=a.extend({name:"Code 128 C",states:["C"]}),E.code128=a.extend({name:"Code 128",states:["C","B","A","FNC4"]}),E["gs1-128"]=a.extend({name:"Code GS1-128",states:["FNC1","C","B"]}),s=A.extend({initValue:function(e,t){var n=this;n.pattern=[],n.value=e,n.checkSumLength=0,n.width=t},setBaseUnit:function(){var e=this,t=7;e.baseUnit=e.width/(12*(e.value.length+e.checkSumLength)+e.quietZoneLength+t)},addData:function(){var e,t=this,n=t.value;for(t.addPattern(t.START),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.addCheckSum(),t.addPattern(t.STOP),t.setBaseUnit()},addCharacter:function(e){var t=this,n=t.characterMap[e];n||t.invalidCharacterError(e),t.addPattern(n)},addPattern:function(e){for(var t=0;t<e.length;t++)this.pattern.push(parseInt(e.charAt(t),10))},addCheckSum:function(){var e,t=this,n=t.checkSums[t.checkSumType],i=n.call(t.checkSums,t.value);for(t.checksum=i.join(""),e=0;e<i.length;e++)t.checkSumLength++,t.addPattern(t.characterMap[i[e]])},checkSums:{Modulo10:function(e){var t,n,i,o=[0,""],r=e.length%2;for(t=0;t<e.length;t++)o[(t+r)%2]+=parseInt(e.charAt(t),10);for(i=o[0],n=""+2*o[1],t=0;t<n.length;t++)i+=parseInt(n.charAt(t),10);return[(10-i%10)%10]},Modulo11:function(e){var t,n,i,o=0,r=11,a=e.length;for(i=0;i<a;i++)t=((a-i)%6||6)+1,o+=t*e.charAt(i);return n=(r-o%r)%r,10!=n?[n]:[1,0]},Modulo11Modulo10:function(e){var t,n=this.Modulo11(e);return t=e+n[0],n.concat(this.Modulo10(t))},Modulo10Modulo10:function(e){var t,n=this.Modulo10(e);return t=e+n[0],n.concat(this.Modulo10(t))}},characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:""}),E.msimod10=s.extend({name:"MSI Modulo10",checkSumType:"Modulo10"}),E.msimod11=s.extend({name:"MSI Modulo11",checkSumType:"Modulo11"}),E.msimod1110=s.extend({name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"}),E.msimod1010=s.extend({name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"}),E.code11=A.extend({name:"Code 11",cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221",initValue:function(e,t){var n=this;n.pattern=[],n.value=e,n.width=t,n.totalUnits=0},addData:function(){var e,t=this,n=t.value;for(t.addPattern(t.START),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.addCheckSum(),t.addPattern(t.STOP),t.setBaseUnit()},setBaseUnit:function(){var e=this;e.baseUnit=e.width/(e.totalUnits+e.quietZoneLength)},addCheckSum:function(){var e,t=this,n=t.value,i=n.length,o=t.getWeightedSum(n,i,t.cCheckSumTotal)%t.checkSumMod;t.checksum=o+"",t.addPattern(t.characterMap[o]),i++,i>=t.kCheckSumMinLength&&(e=(o+t.getWeightedSum(n,i,t.kCheckSumTotal))%t.checkSumMod,t.checksum+=e,t.addPattern(t.characterMap[e]))},getWeightedSum:function(e,t,n){var i,o=0;for(i=0;i<e.length;i++)o+=this.weightedValue(this.getValue(e.charAt(i)),t,i,n);return o},weightedValue:function(e,t,n,i){var o=(t-n)%i||i;return o*e},getValue:function(e){var t=this;return isNaN(e)?(e!==t.DASH&&t.invalidCharacterError(e),t.DASH_VALUE):parseInt(e,10)},addCharacter:function(e){var t=this,n=t.getValue(e),i=t.characterMap[n];t.addPattern(i)},addPattern:function(e){var t,n;for(n=0;n<e.length;n++)t=parseInt(e.charAt(n),10),this.pattern.push(t),this.totalUnits+=t},characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],options:{addCheckSum:!0}}),E.postnet=A.extend({name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",initValue:function(e,t,n){var i=this;i.height=n,i.width=t,i.baseHeight=n/2,i.value=e.replace(RegExp(i.DIGIT_SEPARATOR,"g"),""),i.pattern=[],i.validate(i.value),i.checkSum=0,i.setBaseUnit()},addData:function(){var e,t=this,n=t.value;for(t.addPattern(t.START),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));
t.options.addCheckSum&&t.addCheckSum(),t.addPattern(t.START),t.pattern.pop()},addCharacter:function(e){var t=this,n=t.characterMap[e];t.checkSum+=parseInt(e,10),t.addPattern(n)},addCheckSum:function(){var e=this;e.checksum=(10-e.checkSum%10)%10,e.addCharacter(e.checksum)},setBaseUnit:function(){var e=this,t=3;e.baseUnit=e.width/(10*(e.value.length+1)+t+e.quietZoneLength)},validate:function(e){var t=this;if(S.test(e)||t.invalidCharacterError(e.match(/[^0-9]/)[0]),p(e.length,t.VALID_CODE_LENGTHS)<0)throw Error("Invalid value length. Valid lengths for the Postnet symbology are "+t.VALID_CODE_LENGTHS.join(","))},addPattern:function(e){var t,n,i=this;for(n=0;n<e.length;n++)t=i.height-i.baseHeight*e.charAt(n),i.pattern.push({width:1,y1:t,y2:i.height}),i.pattern.push(1)},characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]}),E.ean13=A.extend({initValue:function(e,t,n){if(e+="",12!=e.length||/\D/.test(e))throw Error('The value of the "EAN13" encoding should be 12 symbols');var i=this;i.pattern=[],i.options.height=n,i.baseUnit=t/(95+i.quietZoneLength),i.value=e,i.checksum=i.calculateChecksum(),i.leftKey=e[0],i.leftPart=e.substr(1,6),i.rightPart=e.substr(7)+i.checksum},addData:function(){var e=this;e.addPieces(e.characterMap.start),e.addSide(e.leftPart,e.leftKey),e.addPieces(e.characterMap.middle),e.addSide(e.rightPart),e.addPieces(e.characterMap.start)},addSide:function(e,t){var n,i=this;for(n=0;n<e.length;n++)t&&parseInt(i.keyTable[t].charAt(n),10)?i.addPieces(Array.prototype.slice.call(i.characterMap.digits[e.charAt(n)]).reverse(),!0):i.addPieces(i.characterMap.digits[e.charAt(n)],!0)},addPieces:function(e,t){var n,i=this;for(n=0;n<e.length;n++)i.pattern.push(t?{y1:0,y2:.95*i.options.height,width:e[n]}:e[n])},calculateChecksum:function(){var e,t,n=0,i=0,o=this.value.split("").reverse().join("");for(e=0;e<o.length;e++)e%2?i+=parseInt(o.charAt(e),10):n+=parseInt(o.charAt(e),10);return t=(10-(3*n+i)%10)%10},keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}}),E.ean8=E.ean13.extend({initValue:function(e,t,n){var i=this;if(7!=e.length||/\D/.test(e))throw Error("Invalid value provided");i.value=e,i.options.height=n,i.checksum=i.calculateChecksum(i.value),i.leftPart=i.value.substr(0,4),i.rightPart=i.value.substr(4)+i.checksum,i.pattern=[],i.baseUnit=t/(67+i.quietZoneLength)}}),l=c.extend({init:function(t,n){var i=this;c.fn.init.call(i,t,n),i.element=e(t),i.wrapper=i.element,i.element.addClass("k-barcode").css("display","block"),i.surfaceWrap=e("<div />").css("position","relative").appendTo(this.element),i.surface=m.Surface.create(i.surfaceWrap,{type:i.options.renderAs}),i._setOptions(n),n&&_(n.value)&&i.redraw()},setOptions:function(e){this._setOptions(e),this.redraw()},redraw:function(){var e=this._getSize();this.surface.clear(),this.surface.setSize({width:e.width,height:e.height}),this.createVisual(),this.surface.draw(this.visual)},getSize:function(){return d.dimensions(this.element)},_resize:function(){this.redraw()},createVisual:function(){this.visual=this._render()},_render:function(){var e,t,n,i=this,o=i.options,r=o.value,a=o.text,s=b.getSpacing(a.margin),l=i._getSize(),d=o.border||{},c=i.encoding,u=new w(0,0,l.width,l.height).unpad(d.width).unpad(o.padding),h=u.height(),p=new m.Group;return i.contentBox=u,p.append(i._getBackground(l)),a.visible&&(n=m.util.measureText(r,{font:a.font}).height,h-=n+s.top+s.bottom),e=c.encode(r,u.width(),h),a.visible&&(t=r,o.checksum&&_(c.checksum)&&(t+=" "+c.checksum),p.append(i._getText(t))),i.barHeight=h,this._bandsGroup=this._getBands(e.pattern,e.baseUnit),p.append(this._bandsGroup),p},exportVisual:function(){return this._render()},_getSize:function(){var e=this,t=e.element,n=new g.Size(y,x);return t.width()>0&&(n.width=t.width()),t.height()>0&&(n.height=t.height()),e.options.width&&(n.width=e.options.width),e.options.height&&(n.height=e.options.height),n},value:function(e){var n=this;return _(e)?(n.options.value=e+"",n.redraw(),t):n.options.value},_getBands:function(e,t){var n,i,o,r,a,s=this,l=s.contentBox,d=l.x1,c=new m.Group;for(o=0;o<e.length;o++)i=f(e[o])?e[o]:{width:e[o],y1:0,y2:s.barHeight},n=i.width*t,o%2&&(r=g.Rect.fromPoints(new g.Point(d,i.y1+l.y1),new g.Point(d+n,i.y2+l.y1)),a=m.Path.fromRect(r,{fill:{color:s.options.color},stroke:null}),c.append(a)),d+=n;return c},_getBackground:function(e){var t=this,n=t.options,i=n.border||{},o=new w(0,0,e.width,e.height).unpad(i.width/2),r=m.Path.fromRect(o.toRect(),{fill:{color:n.background},stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType}});return r},_getText:function(e){var t=this,n=t.options.text,i=t._textbox=new k(e,{font:n.font,color:n.color,align:"center",vAlign:"bottom",margin:n.margin});return i.reflow(t.contentBox),i.renderVisual(),i.visual},_setOptions:function(e){var t=this;if(t.type=(e.type||t.options.type).toLowerCase(),"upca"==t.type&&(t.type="ean13",e.value="0"+e.value),"upce"==t.type&&(t.type="ean8",e.value="0"+e.value),!E[t.type])throw Error("Encoding "+t.type+"is not supported.");t.encoding=new E[t.type],t.options=u(!0,t.options,e)},options:{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}}}),b.ExportMixin.extend(l.fn),b.ui.plugin(l),d.deepExtend(b,{encodings:E,Encoding:A})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.qrcode.min",["kendo.dataviz.core.min","kendo.drawing.min"],e)}(function(){return function(e,t){function n(e){return parseInt(e,2)}function i(e,t){var n=(+e).toString(2);return n.length<t&&(n=Array(t-n.length+1).join(0)+n),n}function o(e,t){for(var n=[],i=0;i<e.length;)n.push(e.substring(i,i+t)),i+=t;return n}function r(e,t,n,i){for(var o=0;o<e.length;o++)e[o][n][i]=t}function a(e,t,n,i){for(var o=0;o<ve.length;o++)e[o][n][i]=ve[o](n,i)?1^t:parseInt(t,10)}function s(){var e,t;for(t=1;t<255;t++)e=2*re[t-1],e>255&&(e=285^e),re[t]=e,oe[e]=t;e=2*re[t-1]^285,re[t]=e,re[-1]=0}function l(){var e,t,n,i=68;for(e=2;e<=i;e++)t=ae[e-1],n=[e,0],ae[e]=w(t,n)}function d(e,n){var i=[],o=e.length-1;do i[o]=re[(e[o]+n)%255],o--;while(e[o]!==t);return i}function c(e,t){return parseInt(e.charAt(t),10)}function u(e,t,n,i,o){t[e][i]=(t[e][i]<<1^o)%128,t[e][i]==ge&&(n[e]+=40)}function h(e,t,n,i,o,r){n[e][r]==i?o[e][r]++:(n[e][r]=i,o[e][r]>=5&&(t[e]+=3+o[e][r]-5),o[e][r]=1)}function p(e,t){var n=Math.floor(e/t*100),i=n%5,o=Math.abs(n-i-50),r=Math.abs(n+5-i-50),a=10*Math.min(o/5,r/5);return a}var f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U,j,q,G,$,K=window.kendo,Y=e.extend,Q=K.drawing,X=K.dataviz,Z=K.ui.Widget,J=X.Box2D,ee="0000",te="numeric",ne="alphanumeric",ie="byte",oe={1:0},re={0:1},ae=[[1,0],[1,25,0]],se={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},le=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],de=[1,0,1,1,1],ce=[1,0,1],ue={L:"01",M:"00",Q:"11",H:"10"},he="101010000010010",pe="10100110111",fe="1111100100101",me=["11101100","00010001"],ge=93,ve=[function(e,t){return(e+t)%2===0},function(e){return e%2===0},function(e,t){return t%3===0},function(e,t){return(e+t)%3===0},function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2===0},function(e,t){return e*t%2+e*t%3===0},function(e,t){return(e*t%2+e*t%3)%2===0},function(e,t){return((e+t)%2+e*t%3)%2===0}],_e=/^\d+/,be="A-Z0-9 $%*+./:-",we="A-Z $%*+./:-",ke=RegExp("^["+we+"]+"),ye=RegExp("^["+be+"]+"),xe=RegExp("^[^"+be+"]+"),Ce=8,Se=5,Te=8,De=17,Ae=9,Ee=16,Ie=Math.round,Me=K.Class.extend({getVersionIndex:function(e){return e<10?0:e>26?2:1},getBitsCharacterCount:function(e){var t=this;return t.bitsInCharacterCount[t.getVersionIndex(e||40)]},getModeCountString:function(e,t){var n=this;return n.modeIndicator+i(e,n.getBitsCharacterCount(t))},encode:function(){},getStringBitsLength:function(){},getValue:function(){},modeIndicator:"",bitsInCharacterCount:[]}),Re={};Re[te]=Me.extend({bitsInCharacterCount:[10,12,14],modeIndicator:"0001",getValue:function(e){return parseInt(e,10)},encode:function(e,t){var n,r=this,a=o(e,3),s=r.getModeCountString(e.length,t);for(n=0;n<a.length-1;n++)s+=i(a[n],10);return s+i(a[n],1+3*a[n].length)},getStringBitsLength:function(e,t){var n=e%3;return 4+this.getBitsCharacterCount(t)+10*Math.floor(e/3)+3*n+(0===n?0:1)}}),Re[ne]=Me.extend({characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010",getValue:function(e){return this.characters[e]},encode:function(e,t){var n,r,a=this,s=o(e,2),l=a.getModeCountString(e.length,t);for(r=0;r<s.length-1;r++)n=45*a.getValue(s[r].charAt(0))+a.getValue(s[r].charAt(1)),l+=i(n,11);return n=2==s[r].length?45*a.getValue(s[r].charAt(0))+a.getValue(s[r].charAt(1)):a.getValue(s[r].charAt(0)),l+i(n,1+5*s[r].length)},getStringBitsLength:function(e,t){return 4+this.getBitsCharacterCount(t)+11*Math.floor(e/2)+6*(e%2)}}),Re[ie]=Me.extend({bitsInCharacterCount:[8,16,16],modeIndicator:"0100",getValue:function(e){var t=e.charCodeAt(0);if(t<=127||160<=t&&t<=255)return t;throw Error("Unsupported character: "+e)},encode:function(e,t){var n,o=this,r=o.getModeCountString(e.length,t);for(n=0;n<e.length;n++)r+=i(o.getValue(e.charAt(n)),8);return r},getStringBitsLength:function(e,t){return 4+this.getBitsCharacterCount(t)+8*e}}),f={};for(m in Re)f[m]=new Re[m];g=function(e){var n=this,i=e.length-1,o=e.length-1,r=o,a=-1,s=0;n.move=function(){i+=a*s,s^=1,o=r-s},n.getNextCell=function(){for(;e[i][o]!==t;)n.move(),(i<0||i>=e.length)&&(a=-a,r-=8!=r?2:3,o=r,i=a<0?e.length-1:0);return{row:i,column:o}},n.getNextRemainderCell=function(){if(n.move(),e[i][o]===t)return{row:i,column:o}}},v=function(e,t){var n,i,o,r,s,l,d=new g(e[0]);for(r=0;r<t.length;r++)for(n=t[r],i=0;n.length>0;){for(s=0;s<n.length;s++)for(l=0;l<8;l++)o=d.getNextCell(),a(e,n[s][i].charAt(l),o.row,o.column);for(i++;n[0]&&i==n[0].length;)n.splice(0,1)}for(;o=d.getNextRemainderCell();)a(e,0,o.row,o.column)},_=function(e,t){for(var n=8*t,i=0,o=0;e.length<n&&i<ee.length;)e+=ee.charAt(i++);for(e.length%8!==0&&(e+=Array(9-e.length%8).join("0"));e.length<n;)e+=me[o],o^=1;return e},b=function(e,t){var n,i=[],o=e.length-2;for(n=o;n>=0;n--)i[n]=e[n]^t[n];return i},w=function(e,n){var i,o,r=[];for(i=0;i<e.length;i++)for(o=0;o<n.length;o++)r[i+o]=r[i+o]===t?(e[i]+(n[o]>=0?n[o]:0))%255:oe[re[r[i+o]]^re[(e[i]+n[o])%255]];return r},s(),l(),k=function(e,t){var n,o,r=ae[t-1],a=Array(t).concat(e),s=Array(a.length-r.length).concat(r),l=e.length,c=[];for(o=0;o<l;o++)n=d(s,oe[a[a.length-1]]),s.splice(0,1),a=b(n,a);for(o=a.length-1;o>=0;o--)c[t-1-o]=i(a[o],8);return c},y=function(e,t){var i,o,r,a,s,l,d,c,u=0,h=[],p=[],f=t.groups;for(l=0;l<f.length;l++)for(r=f[l][0],d=0;d<r;d++){for(o=f[l][1],i=[],a=[],c=1;c<=o;c++)s=e.substring(u,u+8),i.push(s),a[o-c]=n(s),u+=8;h.push(i),p.push(k(a,t.errorCodewordsPerBlock))}return[h,p]},x=function(e,t,n,i,o){var r,a,s=_e.exec(e),l=s?s[0]:"",d=ke.exec(e),c=d?d[0]:"",u=ye.exec(e),h=u?u[0]:"";return l&&(l.length>=t||e.length==l.length||l.length>=n&&!ye.test(e.charAt(l.length)))?(r=te,a=l):h&&(e.length==h.length||h.length>=i||o==ne)?(r=ne,a=l||c):(r=ie,a=h?h+xe.exec(e.substring(h.length))[0]:xe.exec(e)[0]),{mode:r,modeString:a}},C=function(e){var t,n,i=[],o=0;for(i.push(x(e,Ce,Se,Te,t)),t=i[0].mode,e=e.substr(i[0].modeString.length);e.length>0;)n=x(e,De,Ae,Ee,t),n.mode!=t?(t=n.mode,i.push(n),o++):i[o].modeString+=n.modeString,e=e.substr(n.modeString.length);return i},S=function(e){var t,n,i=0;for(n=0;n<e.length;n++)t=f[e[n].mode],i+=t.getStringBitsLength(e[n].modeString.length);return Math.ceil(i/8)},T=function(e,t){var n=0,i=le.length-1,o=Math.floor(le.length/2);do e<le[o][t].totalDataCodewords?i=o:n=o,o=n+Math.floor((i-n)/2);while(i-n>1);return e<=le[n][t].totalDataCodewords?o+1:i+1},D=function(e,t){var n,i,o="";for(i=0;i<e.length;i++)n=f[e[i].mode],o+=n.encode(e[i].modeString,t);return o},A=function(e){var t,i,o=n(e),r="";if(0===o)return"101010000010010";for(t=E(n(e),pe,15),i=0;i<t.length;i++)r+=t.charAt(i)^he.charAt(i);return r},E=function(e,t,o){var r=n(t),a=t.length-1,s=e<<a,l=o-a,d=i(e,l),c=I(s,r);return c=d+i(c,a)},I=function(e,t){var n=t.toString(2).length,i=e.toString(2).length;do e^=t<<i-n,i=e.toString(2).length;while(i>=n);return e},M=function(e){var t,n,i=[],o=17+4*e;for(t=0;t<ve.length;t++)for(i[t]=Array(o),n=0;n<o;n++)i[t][n]=Array(o);return i},R=function(e,t){var n,i,o=e[0],a=0,s=t.length;for(n=0,i=8;n<=8;n++)6!==n&&r(e,c(t,s-1-a++),n,i);for(n=8,i=7;i>=0;i--)6!==i&&r(e,c(t,s-1-a++),n,i);for(a=0,i=o.length-1,n=8;i>=o.length-8;i--)r(e,c(t,s-1-a++),n,i);for(r(e,1,o.length-8,8),n=o.length-7,i=8;n<o.length;n++)r(e,c(t,s-1-a++),n,i)},F=function(e){return E(e,fe,18)},P=function(e,t){var n,i,o,a,s=e[0],l=s.length,d=0,u=l-11,h=l-11,p=0;for(a=0;a<t.length;a++)n=Math.floor(a/3),i=a%3,o=c(t,t.length-a-1),r(e,o,d+n,u+i),r(e,o,h+i,p+n)},z=function(e,t,n,i){var o,a,s,l=t.length+2,d=t.length+1;for(a=0;a<t.length;a++)for(s=a;s<l-a;s++)o=t[a],r(e,o,n+s,i+a),r(e,o,n+a,i+s),r(e,o,n+d-s,i+d-a),r(e,o,n+d-a,i+d-s)},B=function(e,t,n,i){var o=n,a=i,s=e[0];do r(e,0,o,i),r(e,0,n,a),o+=t[0],a+=t[1];while(o>=0&&o<s.length)},L=function(e){var t=e[0].length;z(e,de,0,0),B(e,[-1,-1],7,7),z(e,de,t-7,0),B(e,[1,-1],t-8,7),z(e,de,0,t-7),B(e,[-1,1],7,t-8)},H=function(e,n){var i,o,r,a,s,l,d,c,u;if(!(n<2)){for(i=e[0],o=i.length,r=Math.floor(n/7),a=[6],d=0,(s=se[n])?l=(o-13-s)/r:s=l=(o-13)/(r+1),a.push(a[d++]+s);a[d]+l<o;)a.push(a[d++]+l);for(c=0;c<a.length;c++)for(u=0;u<a.length;u++)i[a[c]][a[u]]===t&&z(e,ce,a[c]-2,a[u]-2)}},N=function(e){var t,n=6,i=6,o=1,a=e[0].length;for(t=8;t<a-8;t++)r(e,o,n,t),r(e,o,t,i),o^=1},O=function(e){var t,n,i,o,r,a,s,l=[],d=[],c=[],f=[],m=[],g=0,v=1,_=e[0].length;for(n=0;n<e.length;n++)l[n]=0,c[n]=0,m[n]=[0,0],f[n]=[0,0],d[n]=[];for(n=0;n<_;n++)for(i=0;i<_;i++)for(o=0;o<e.length;o++)t=e[o],c[o]+=parseInt(t[n][i],10),d[o][g]===t[n][i]&&n+1<_&&i-1>=0&&t[n+1][i]==d[o][g]&&t[n+1][i-1]==d[o][g]&&(l[o]+=3),u(o,f,l,g,t[n][i]),u(o,f,l,v,t[i][n]),h(o,l,d,t[n][i],m,g),h(o,l,d,t[i][n],m,v);for(r=_*_,s=Number.MAX_VALUE,n=0;n<l.length;n++)l[n]+=p(c[n],r),l[n]<s&&(s=l[n],a=n);return a},V=function(e,t){this.dataString=e,this.version=t},W=function(){this.getEncodingResult=function(e,t){var n=C(e),i=S(n),o=T(i,t),r=D(n,o);return new V(r,o)}},U=function(){this.mode=f[this.encodingMode]},U.fn=U.prototype={encodingMode:ie,utfBOM:"111011111011101110111111",initialModeCountStringLength:20,getEncodingResult:function(e,t){var n=this,i=n.encode(e),o=n.getDataCodewordsCount(i),r=T(o,t),a=n.mode.getModeCountString(i.length/8,r)+i;return new V(a,r)},getDataCodewordsCount:function(e){var t=this,n=e.length,i=Math.ceil((t.initialModeCountStringLength+n)/8);return i},encode:function(e){var t,n=this,i=n.utfBOM;for(t=0;t<e.length;t++)i+=n.encodeCharacter(e.charCodeAt(t));return i},encodeCharacter:function(e){var t,n,o=this.getBytesCount(e),r=o-1,a="";if(1==o)a=i(e,8);else{for(t=8-o,n=0;n<r;n++)a=i(e>>6*n&63|128,8)+a;a=(e>>6*r|255>>t<<t).toString(2)+a}return a},getBytesCount:function(e){var t,n=this.ranges;for(t=0;t<n.length;t++)if(e<n[t])return t+1},ranges:[128,2048,65536,2097152,67108864]},j=function(e){return e&&e.toLowerCase().indexOf("utf_8")>=0?new U:new W},q=function(e,t,n){var o,r,a,s=new j(n),l=s.getEncodingResult(e,t),d=l.version,c=le[d-1][t],u=_(l.dataString,c.totalDataCodewords),h=y(u,c),p=M(d);return L(p),H(p,d),N(p),d>=7&&P(p,i(0,18)),R(p,i(0,15)),v(p,h),o=O(p),r=p[o],d>=7&&P([r],F(d)),a=ue[t]+i(o,3),R([r],A(a)),r},G={DEFAULT_SIZE:200,QUIET_ZONE_LENGTH:4,DEFAULT_ERROR_CORRECTION_LEVEL:"L",DEFAULT_BACKGROUND:"#fff",DEFAULT_DARK_MODULE_COLOR:"#000",MIN_BASE_UNIT_SIZE:1},$=Z.extend({init:function(t,n){var i=this;Z.fn.init.call(i,t,n),i.element=e(t),i.wrapper=i.element,i.element.addClass("k-qrcode"),i.surfaceWrap=e("<div />").css("position","relative").appendTo(this.element),i.surface=Q.Surface.create(i.surfaceWrap,{type:i.options.renderAs}),i.setOptions(n)},redraw:function(){var e=this._getSize();this.surfaceWrap.css({width:e,height:e}),this.surface.clear(),this.surface.resize(),this.createVisual(),this.surface.draw(this.visual)},getSize:function(){return K.dimensions(this.element)},_resize:function(){this.redraw()},createVisual:function(){this.visual=this._render()},exportVisual:function(){return this._render()},_render:function(){var e,t,n,i,o,r,a,s=this,l=s._value,d=s.options.border||{},c=s.options.padding||0,u=d.width||0;return d.width=u,a=new Q.Group,l&&(n=q(l,s.options.errorCorrection,s.options.encoding),i=s._getSize(),r=i-2*(u+c),e=s._calculateBaseUnit(r,n.length),o=n.length*e,t=u+c+(r-o)/2,a.append(s._renderBackground(i,d)),a.append(s._renderMatrix(n,e,t))),a},_getSize:function(){var e,t,n,i=this;return i.options.size?e=parseInt(i.options.size,10):(t=i.element,n=Math.min(t.width(),t.height()),e=n>0?n:G.DEFAULT_SIZE),e},_calculateBaseUnit:function(e,t){var n=Math.floor(e/t);if(n<G.MIN_BASE_UNIT_SIZE)throw Error("Insufficient size.");return n*t>=e&&n-1>=G.MIN_BASE_UNIT_SIZE&&n--,n},_renderMatrix:function(e,t,n){var i,o,r,a,s,l,d,c,u=new Q.MultiPath({fill:{color:this.options.color},stroke:null});for(i=0;i<e.length;i++)for(o=n+i*t,r=0;r<e.length;){for(;0===e[i][r]&&r<e.length;)r++;if(r<e.length){for(a=r;1==e[i][r];)r++;s=Ie(n+a*t),l=Ie(o),d=Ie(n+r*t),c=Ie(o+t),u.moveTo(s,l).lineTo(s,c).lineTo(d,c).lineTo(d,l).close()}}return u},_renderBackground:function(e,t){var n=new J(0,0,e,e).unpad(t.width/2);return Q.Path.fromRect(n.toRect(),{fill:{color:this.options.background},stroke:{color:t.color,width:t.width}})},setOptions:function(e){var n=this;e=e||{},n.options=Y(n.options,e),e.value!==t&&(n._value=n.options.value+""),n.redraw()},value:function(e){var n=this;return e===t?n._value:(n._value=e+"",n.redraw(),t)},options:{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:G.DEFAULT_ERROR_CORRECTION_LEVEL,background:G.DEFAULT_BACKGROUND,color:G.DEFAULT_DARK_MODULE_COLOR,size:"",padding:0,border:{color:"",width:0}}}),X.ExportMixin.extend($.fn),X.ui.plugin($),K.deepExtend(X,{QRCode:$,QRCodeDefaults:G,QRCodeFunctions:{FreeCellVisitor:g,fillData:v,padDataString:_,generateErrorCodewords:k,xorPolynomials:b,getBlocks:y,multiplyPolynomials:w,chooseMode:x,getModes:C,getDataCodewordsCount:S,getVersion:T,getDataString:D,encodeFormatInformation:A,encodeBCH:E,dividePolynomials:I,initMatrices:M,addFormatInformation:R,encodeVersionInformation:F,addVersionInformation:P,addCentricPattern:z,addFinderSeparator:B,addFinderPatterns:L,addAlignmentPatterns:H,addTimingFunctions:N,scoreMaskMatrixes:O,encodeData:q,UTF8Encoder:U},QRCodeFields:{modes:f,powersOfTwo:oe,powersOfTwoResult:re,generatorPolynomials:ae}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/stock/kendo-stock-chart.min",["kendo.dataviz.chart.min"],e)}(function(){!function(){function e(e,t){var n=document.createElement("div");return n.className=e,t&&(n.style.cssText=t),n}function t(){}function n(e){return t.prototype=e,new t}var i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_;window.kendo.dataviz=window.kendo.dataviz||{},i=kendo.dataviz,o=i.elementStyles,r=i.deepExtend,a=i.toTime,s=i.constants,l=i.Chart,d=kendo.drawing,c=d.Animation.extend({setup:function(){this._initialOpacity=parseFloat(o(this.element,"opacity").opacity);
},step:function(e){o(this.element,{opacity:i.interpolateValue(this._initialOpacity,0,e)+""})},abort:function(){d.Animation.fn.abort.call(this),o(this.element,{display:"none",opacity:this._initialOpacity+""})},cancel:function(){d.Animation.fn.abort.call(this),o(this.element,{opacity:this._initialOpacity+""})}}),u=i.Class.extend({init:function(e,t,n){this.options=r({},this.options,n),this.container=e,this.chartService=t;var i=o(e,["paddingLeft","paddingTop"]);this.chartPadding={top:i.paddingTop,left:i.paddingLeft},this.createElements(),e.appendChild(this.element)},createElements:function(){var t=this.element=e("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),n=this.tooltip=e("k-tooltip k-chart-tooltip"),i=this.scroll=e("k-scroll");n.innerHTML="&nbsp;",t.appendChild(n),t.appendChild(i)},show:function(e,t,n){var r,s=this,l=s.element,d=s.options,c=s.scroll,u=s.tooltip,h=i.toDate(a(e)+a(t-e)/2),p=.4*n.width(),f=n.center().x-p,m=n.center().x,g=m-f,v=d.max-d.min,_=g/v,b=h-d.min,w=this.chartService.intl.format(d.format,e,t),k=i.getTemplate(d);this.clearHideTimeout(),this._visible||(o(l,{visibility:"hidden",display:"block"}),this._visible=!0),k&&(w=k({from:e,to:t})),u.innerHTML=w,o(u,{left:n.center().x-u.offsetWidth/2,top:n.y1}),r=o(u,["marginTop","borderTopWidth","height"]),o(c,{width:p,left:f+b*_,top:n.y1+r.marginTop+r.borderTopWidth+r.height/2}),o(l,{visibility:"visible"})},clearHideTimeout:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},hide:function(){var e=this;this.clearHideTimeout(),this._hideTimeout=setTimeout(function(){e._visible=!1,e._hideAnimation=new c(e.element),e._hideAnimation.setup(),e._hideAnimation.play()},this.options.hideDelay)},destroy:function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}),i.setDefaultOptions(u,{format:"{0:d} - {1:d}",hideDelay:500}),h="_navigator",p=h,f={NAVIGATOR_AXIS:p,NAVIGATOR_PANE:h},m=3,g=i.Class.extend({init:function(e){var t,n,o;this.chart=e,t=this.options=r({},this.options,e.options.navigator),n=t.select,n&&(n.from=this.parseDate(n.from),n.to=this.parseDate(n.to)),i.defined(t.hint.visible)||(t.hint.visible=t.visible),this.chartObserver=new i.InstanceObserver(this,(o={},o[s.DRAG]="_drag",o[s.DRAG_END]="_dragEnd",o[s.ZOOM]="_zoom",o[s.ZOOM_END]="_zoomEnd",o)),e.addObserver(this.chartObserver)},parseDate:function(e){return i.parseDate(this.chart.chartService.intl,e)},clean:function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},destroy:function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},redraw:function(){this._redrawSelf(),this.initSelection()},initSelection:function(){var e=this,t=e.chart,o=e.options,r=this.mainAxis(),a=r.roundedRange(),s=a.min,l=a.max,d=o.select,c=d.from,h=d.to,p=d.mousewheel,f=n(r);0!==r.categoriesCount()&&(this.clean(),f.box=r.box,this.selection=new i.Selection(t,f,{min:s,max:l,from:c||s,to:h||l,mousewheel:i.valueOrDefault(p,{zoom:"left"}),visible:o.visible},new i.InstanceObserver(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new u(t.element,t.chartService,{min:s,max:l,template:i.getTemplate(o.hint),format:o.hint.format})))},setRange:function(){var e,t=this.chart._createPlotArea(!0),n=t.namedCategoryAxes[p],i=n.roundedRange(),o=i.min,a=i.max,s=this.options.select||{},l=s.from||o;l<o&&(l=o),e=s.to||a,e>a&&(e=a),this.options.select=r({},s,{from:l,to:e}),this.filterAxes()},_redrawSelf:function(e){var t=this.chart._plotArea;t&&t.redraw(i.last(t.panes),e)},redrawSlaves:function(){var e=this.chart,t=e._plotArea,n=t.panes.slice(0,-1);t.srcSeries=e.options.series,t.options.categoryAxis=e.options.categoryAxis,t.clearSeriesPointsCache(),t.redraw(n)},_drag:function(e){var t,n,o,r=this,s=r.chart,l=r.selection,d=s._eventCoordinates(e.originalEvent),c=this.mainAxis(),u=c.roundedRange(),h=c.pane.box.containsPoint(d),p=s._plotArea.categoryAxis,f=e.axisRanges[p.options.name],m=this.options.select;f&&!h&&l&&(t=m.from&&m.to?a(m.to)-a(m.from):a(l.options.to)-a(l.options.from),n=i.toDate(i.limitValue(a(f.min),u.min,a(u.max)-t)),o=i.toDate(i.limitValue(a(n)+t,a(u.min)+t,u.max)),this.options.select={from:n,to:o},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),l.set(n,o),this.showHint(n,o))},_dragEnd:function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},readSelection:function(){var e=this,t=e.selection.options,n=t.from,i=t.to,o=e.options.select;o.from=n,o.to=i},filterAxes:function(){var e,t,n,i,o,r,a=this,s=a.options.select;for(void 0===s&&(s={}),e=a.chart,t=e.options.categoryAxis,n=s.from,i=s.to,o=0;o<t.length;o++)r=t[o],r.pane!==h&&(r.min=n,r.max=i)},filter:function(){var e,t,n,o=this,a=o.chart,s=o.options.select;a.requiresHandlers(["navigatorFilter"])&&(e=this.mainAxis(),t={from:s.from,to:s.to},"category"!==e.options.type&&(n=new i.DateCategoryAxis(r({baseUnit:"fit"},a.options.categoryAxis[0],{categories:[s.from,s.to]}),a.chartService).options,t.from=i.addDuration(n.min,-n.baseUnitStep,n.baseUnit),t.to=i.addDuration(n.max,n.baseUnitStep,n.baseUnit)),this.chart.trigger("navigatorFilter",t))},_zoom:function(e){var t,n,i=this,o=i.chart._plotArea.categoryAxis,r=i.selection,a=i.options,s=a.select,l=a.liveDrag,d=this.mainAxis(),c=e.delta;r&&(t=d.categoryIndex(r.options.from),n=d.categoryIndex(r.options.to),e.originalEvent.preventDefault(),Math.abs(c)>1&&(c*=m),n-t>1?(r.expand(c),this.readSelection()):(o.options.min=s.from,s.from=o.scaleRange(-e.delta).min),l&&(this.filterAxes(),this.redrawSlaves()),r.set(s.from,s.to),this.showHint(this.options.select.from,this.options.select.to))},_zoomEnd:function(e){this._dragEnd(e)},showHint:function(e,t){var n=this.chart._plotArea;this.hint&&this.hint.show(e,t,n.backgroundBox())},_selectStart:function(e){return this.chart._selectStart(e)},_select:function(e){return this.showHint(e.from,e.to),this.chart._select(e)},_selectEnd:function(e){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(e)},mainAxis:function(){var e=this.chart._plotArea;if(e)return e.namedCategoryAxes[p]},select:function(e,t){var n=this.options.select;return e&&t&&(n.from=this.parseDate(e),n.to=this.parseDate(t),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(e,t)),{from:n.from,to:n.to}}}),g.setup=function(e,t){var n,i,o;void 0===e&&(e={}),void 0===t&&(t={}),e.__navi||(e.__navi=!0,n=r({},t.navigator,e.navigator),i=e.panes=[].concat(e.panes),o=r({},n.pane,{name:h}),n.visible||(o.visible=!1,o.height=.1),i.push(o),g.attachAxes(e,n),g.attachSeries(e,n,t))},g.attachAxes=function(e,t){var n=t.series||[],o=e.categoryAxis=[].concat(e.categoryAxis),a=e.valueAxis=[].concat(e.valueAxis),l=i.filterSeriesByType(n,s.EQUALLY_SPACED_SERIES),d=0===l.length,c=r({type:"date",pane:h,roundToBaseUnit:!d,justified:d,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:t.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),u=t.categoryAxis;o.push(r({},c,{maxDateGroups:200},u,{name:p,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),r({},c,u,{name:p+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),r({},c,u,{name:p+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),a.push(r({name:p,pane:h,majorGridLines:{visible:!1},visible:!1},t.valueAxis))},g.attachSeries=function(e,t,n){var i,o=e.series=e.series||[],a=[].concat(t.series||[]),s=n.seriesColors,l=t.seriesDefaults;for(i=0;i<a.length;i++)o.push(r({color:s[i%s.length],categoryField:t.dateField,visibleInLegend:!1,tooltip:{visible:!1}},l,a[i],{axis:p,categoryAxis:p,autoBind:t.autoBindElements}))},v=28,_=l.extend({applyDefaults:function(e,t){var n=i.elementSize(this.element).width||s.DEFAULT_WIDTH,o=t,a={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(n/v)}}};o&&(o=r({},o,a)),g.setup(e,o),l.fn.applyDefaults.call(this,e,o)},_setElementClass:function(e){i.addClass(e,"k-chart k-stockchart")},setOptions:function(e){this.destroyNavigator(),l.fn.setOptions.call(this,e)},noTransitionsRedraw:function(){var e=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=e},_resize:function(){this.noTransitionsRedraw()},_redraw:function(){var e=this.navigator;!this._dirty()&&e&&e.options.partialRedraw?e.redrawSlaves():this._fullRedraw()},_dirty:function(){var e=this.options,t=[].concat(e.series,e.navigator.series),n=i.grep(t,function(e){return e&&e.visible}).length,o=this._seriesCount!==n;return this._seriesCount=n,o},_fullRedraw:function(){var e=this.navigator;e||(e=this.navigator=new g(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),l.fn._redraw.call(this),e.initSelection()},_trackSharedTooltip:function(e){var t=this._plotArea,n=t.paneByPoint(e);n&&n.options.name===h?this._unsetActivePoint():l.fn._trackSharedTooltip.call(this,e)},bindCategories:function(){l.fn.bindCategories.call(this),this.copyNavigatorCategories()},copyNavigatorCategories:function(){var e,t,n,i=[].concat(this.options.categoryAxis);for(t=0;t<i.length;t++)n=i[t],n.name===p?e=n.categories:e&&n.pane===h&&(n.categories=e)},destroyNavigator:function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},destroy:function(){this.destroyNavigator(),l.fn.destroy.call(this)},_stopChartHandlers:function(e){var t=this._eventCoordinates(e),n=this._plotArea.paneByPoint(t);return l.fn._stopChartHandlers.call(this,e)||n&&n.options.name===h},_toggleDragZoomEvents:function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)}}),i.setDefaultOptions(_,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}}),kendo.deepExtend(kendo.dataviz,{constants:f,Navigator:g,NavigatorHint:u,StockChart:_})}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/stock/stock-chart.min",["dataviz/stock/kendo-stock-chart.min"],e)}(function(){!function(e){function t(e,t){return[{field:"Date",operator:"gte",value:e},{field:"Date",operator:"lt",value:t}]}var n=window.kendo,i=n.dataviz,o=i.ChartInstanceObserver,r=i.ui.Chart,a=i.StockChart,s=i.constants,l=s.NAVIGATOR_AXIS,d=s.NAVIGATOR_PANE,c=n.deepExtend,u=i.defined,h=e.proxy,p="change",f=o.extend({handlerMap:{navigatorFilter:"_onNavigatorFilter",navigatorCreated:"_onNavigatorCreated"}}),m=r.extend({options:{name:"StockChart",dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0,template:"#= kendo.toString(category, 'd') #"},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1},persistSeriesVisibility:!0},_createChart:function(e,t){this._initNavigatorOptions(e),this._instance=new a(this.element[0],e,t,{observer:new f(this),sender:this,rtl:this._isRtl()})},_initNavigatorOptions:function(e){var t=e.navigator||{},i=n.support,o=i.touch,r=i.browser.mozilla;c(t,{autoBindElements:!t.dataSource,partialRedraw:t.dataSource,liveDrag:!o&&!r})},_initDataSource:function(e){var o,a,s,l,d=e||{},u=d.dataSource,h=u&&u.serverFiltering,p=[].concat(d.categoryAxis)[0],f=d.navigator||{},m=f.select,g=m&&m.from&&m.to;h&&g&&(o=[].concat(u.filter||[]),a=n.parseDate(m.from),s=n.parseDate(m.to),l=new i.DateCategoryAxis(c({baseUnit:"fit"},p,{categories:[a,s]}),n),u.filter=t(l.range().min,s).concat(o)),r.fn._initDataSource.call(this,e)},_onNavigatorCreated:function(e){this._instance=e.sender,this.options=e.sender.options,this._navigator=this.navigator=e.navigator,this._initNavigatorDataSource()},_initNavigatorDataSource:function(){var e=this.options.navigator,t=e.autoBind,i=e.dataSource;i&&(this._navigatorDataChangedHandler=this._navigatorDataChangedHandler||h(this._onNavigatorDataChanged,this),this._navigatorDataSource=n.data.DataSource.create(i).bind(p,this._navigatorDataChangedHandler),u(t)||(t=this.options.autoBind),t&&this._navigatorDataSource.fetch())},_bindNavigatorSeries:function(e,t){var n,i,o=e.length;for(n=0;n<o;n++)i=e[n],i.axis==l&&this._isBindable(i)&&(i.data=t)},_onNavigatorDataChanged:function(){var e,t,n,i,o=this,r=o._instance,a=o.options.categoryAxis,s=a.length,c=o._navigatorDataSource.view();for(this._bindNavigatorSeries(o.options.series,c),o._sourceSeries&&this._bindNavigatorSeries(o._sourceSeries,c),e=0;e<s;e++)t=a[e],t.pane==d&&(t.name==l?(o._bindCategoryAxis(t,c,e),n=t.categories):t.categories=n);r._model&&(i=this.navigator,i.redraw(),i.setRange(),(!o.options.dataSource||o.options.dataSource&&o._dataBound)&&i.redrawSlaves())},_bindCategories:function(){r.fn._bindCategories.call(this),this._instance&&this._instance.copyNavigatorCategories()},_onDataChanged:function(){r.fn._onDataChanged.call(this),this._dataBound=!0},setOptions:function(e){this._removeNavigatorDataSource(),this._initNavigatorOptions(e),this._instance.destroyNavigator(),r.fn.setOptions.call(this,e)},_onNavigatorFilter:function(e){this.dataSource.filter(t(e.from,e.to))},requiresHandlers:function(e){var t,n;return i.inArray("navigatorFilter",e)?(t=this.dataSource,n=t&&t.options.serverFiltering,n&&this.options.navigator.dataSource):r.fn.requiresHandlers.call(this,e)},_removeNavigatorDataSource:function(){var e=this._navigatorDataSource;e&&(e.unbind(p,this._navigatorDataChangedHandler),delete this._navigatorDataSource)},destroy:function(){r.fn.destroy.call(this),this._removeNavigatorDataSource()}});i.ui.plugin(m)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.stock.min",["dataviz/stock/kendo-stock-chart.min","dataviz/stock/stock-chart.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/sparkline/kendo-sparkline.min",["kendo.dataviz.chart.min"],e)}(function(){!function(){function e(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i[t]=n.style.display,n.style.display="none";return i}function t(e,t){for(var n=0;n<e.length;n++)e[n].style.display=t[n]}function n(e){return i.isNumber(e)?[e]:e}var i,o,r,a,s,l,d,c,u,h,p;window.kendo.dataviz=window.kendo.dataviz||{},i=kendo.dataviz,o=i.constants,r=i.Chart,a=i.elementSize,s=i.deepExtend,l=-2,d=i.SharedTooltip.extend({_slotAnchor:function(e,t){var n,o=this.plotArea.categoryAxis,r=o.options.vertical,a=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return n=r?new i.Point(this.plotArea.box.x2,t.center().y):new i.Point(t.center().x,l),{point:n,align:a}},_defaultAnchor:function(e,t){return this._slotAnchor({},t)}}),c=150,u=150,h=[o.BAR,o.BULLET],p=r.extend({_setElementClass:function(e){i.addClass(e,"k-sparkline")},_initElement:function(e){r.fn._initElement.call(this,e),this._initialWidth=Math.floor(a(e).width)},_resize:function(){var n=this.element,i=e(n.childNodes);this._initialWidth=Math.floor(a(n).width),t(n.childNodes,i),r.fn._resize.call(this)},_modelOptions:function(){var n,i=this.options,o=this._surfaceWrap(),r=e(o.childNodes),l=document.createElement("span");return l.innerHTML="&nbsp;",o.appendChild(l),n=s({width:this._autoWidth,height:a(o).height,transitions:i.transitions},i.chartArea,{inline:!0,align:!1}),a(o,{width:n.width,height:n.height}),o.removeChild(l),t(o.childNodes,r),this.surface&&this.surface.resize(),n},_surfaceWrap:function(){if(!this.stage){var e=this.stage=document.createElement("span");this.element.appendChild(e)}return this.stage},_createPlotArea:function(e){var t=r.fn._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(t),t},_calculateWidth:function(e){var t,n,r,s,l,d,h=this.options,p=i.getSpacing(h.chartArea.margin),f=e.charts,m=this._surfaceWrap(),g=0;for(t=0;t<f.length;t++)if(n=f[t],r=(n.options.series||[])[0]){if(r.type===o.BAR)return c;if(r.type===o.BULLET)return u;if(r.type===o.PIE)return a(m).height;s=n.categoryAxis,s&&(l=s.categoriesCount()*(!n.options.isStacked&&i.inArray(r.type,[o.COLUMN,o.VERTICAL_BULLET])?n.seriesOptions.length:1),g=Math.max(g,l))}return d=g*h.pointWidth,d>0&&(d+=p.left+p.right),d},_createSharedTooltip:function(e){return new d(this._plotArea,e)}}),p.normalizeOptions=function(e){var t=n(e);return t=i.isArray(t)?{seriesDefaults:{data:t}}:s({},t),t.series||(t.series=[{data:n(t.data)}]),s(t,{seriesDefaults:{type:t.type}}),(i.inArray(t.series[0].type,h)||i.inArray(t.seriesDefaults.type,h))&&(t=s({},{categoryAxis:{crosshair:{visible:!1}}},t)),t},i.setDefaultOptions(p,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]}),kendo.deepExtend(kendo.dataviz,{Sparkline:p})}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/sparkline/sparkline.min",["dataviz/sparkline/kendo-sparkline.min"],e)}(function(){!function(e){var t,n=kendo.dataviz,i=n.ui.Chart,o=n.Sparkline,r=n.ChartInstanceObserver,a=e.extend,s=i.extend({init:function(e,t){var n=t;n instanceof kendo.data.ObservableArray&&(n={seriesDefaults:{data:n}}),i.fn.init.call(this,e,o.normalizeOptions(n))},_createChart:function(e,t){this._instance=new o(this.element[0],e,t,{observer:new r(this),sender:this,rtl:this._isRtl()})},_createTooltip:function(){return new t(this.element,a({},this.options.tooltip,{rtl:this._isRtl()}))},options:{name:"Sparkline",chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]}});n.ui.plugin(s),t=n.Tooltip.extend({options:{animation:{duration:0}},_hideElement:function(){this.element&&this.element.hide().remove()}}),n.SparklineTooltip=t}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.sparkline.min",["dataviz/sparkline/kendo-sparkline.min","dataviz/sparkline/sparkline.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/location.min",["kendo.drawing.min","util/main.min"],e)}(function(){!function(e,t){var n,i=Math,o=i.abs,r=i.atan,a=i.atan2,s=i.cos,l=i.max,d=i.min,c=i.sin,u=i.tan,h=window.kendo,p=h.Class,f=h.dataviz,m=h.deepExtend,g=h.drawing.util,v=g.defined,_=g.deg,b=g.rad,w=g.round,k=g.valueOrDefault,y=h.util.sqr,x=p.extend({init:function(e,t){1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=t)},DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6},{1:N6}",toArray:function(){return[this.lat,this.lng]},equals:function(e){return e&&e.lat===this.lat&&e.lng===this.lng},clone:function(){return new x(this.lat,this.lng)},round:function(e){return this.lng=w(this.lng,e),this.lat=w(this.lat,e),this},wrap:function(){return this.lng=this.lng%180,this.lat=this.lat%90,this},distanceTo:function(e,t){return this.greatCircleTo(e,t).distance},destination:function(e,t,n){var o,r,l,d,u;return t=b(t),n=n||f.map.datums.WGS84,o=b(this.lat),r=b(this.lng),l=e/h.dataviz.map.datums.WGS84.a,d=i.asin(c(o)*s(l)+s(o)*c(l)*s(t)),u=r+a(c(t)*c(l)*s(o),s(l)-c(o)*c(d)),new x(_(d),_(u))},greatCircleTo:function(e,t){var n,l,d,h,p,m,g,v,k,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N,O,V,W,U;if(e=x.create(e),t=t||f.map.datums.WGS84,!e||this.clone().round(8).equals(e.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(n=t.a,l=t.b,d=t.f,h=b(e.lng-this.lng),p=r((1-d)*u(b(this.lat))),m=c(p),g=s(p),v=r((1-d)*u(b(e.lat))),k=c(v),C=s(v),S=h,D=this.DISTANCE_ITERATIONS,A=!1;!A&&D-- >0;)E=c(S),I=s(S),M=i.sqrt(y(C*E)+y(g*k-m*C*I)),F=m*k+g*C*I,z=a(M,F),B=g*C*E/M,R=1-y(B),P=0,0!==R&&(P=F-2*m*k/R),T=S,L=d/16*R*(4+d*(4-3*R)),S=h+(1-L)*d*B*(z+L*M*(P+L*F*(-1+2*y(P)))),A=o(S-T)<=this.DISTANCE_CONVERGENCE;return H=R*(y(n)-y(l))/y(l),N=1+H/16384*(4096+H*(-768+H*(320-175*H))),O=H/1024*(256+H*(-128+H*(74-47*H))),V=O*M*(P+O/4*(F*(-1+2*y(P))-O/6*P*(-3+4*y(M))*(-3+4*y(P)))),W=a(C*E,g*k-m*C*I),U=a(g*E,-m*C+g*k*I),{distance:w(l*N*(z-V),this.DISTANCE_PRECISION),azimuthFrom:_(W),azimuthTo:_(U)}}});x.fn.toString=function(){return h.format(this.FORMAT,this.lat,this.lng)},x.fromLngLat=function(e){return new x(e[1],e[0])},x.fromLatLng=function(e){return new x(e[0],e[1])},x.create=function(e,t){if(v(e))return e instanceof x?e.clone():1===arguments.length&&2===e.length?x.fromLatLng(e):new x(e,t)},n=p.extend({init:function(e,t){e=x.create(e),t=x.create(t),e.lng+180>t.lng+180&&e.lat+90<t.lat+90?(this.se=e,this.nw=t):(this.se=t,this.nw=e)},contains:function(e){var t=this.nw,n=this.se,i=k(e.lng,e[1]),o=k(e.lat,e[0]);return e&&i+180>=t.lng+180&&i+180<=n.lng+180&&o+90>=n.lat+90&&o+90<=t.lat+90},center:function(){var e=this.nw,t=this.se,n=e.lng+(t.lng-e.lng)/2,i=e.lat+(t.lat-e.lat)/2;return new x(i,n)},containsAny:function(e){var t,n=!1;for(t=0;t<e.length;t++)n=n||this.contains(e[t]);return n},include:function(e){var t=this.nw,n=this.se,i=k(e.lng,e[1]),o=k(e.lat,e[0]);t.lng=d(t.lng,i),t.lat=l(t.lat,o),n.lng=l(n.lng,i),n.lat=d(n.lat,o)},includeAll:function(e){for(var t=0;t<e.length;t++)this.include(e[t])},edges:function(){var e=this.nw,t=this.se;return{nw:this.nw,ne:new x(e.lat,t.lng),se:this.se,sw:new x(t.lat,e.lng)}},toArray:function(){var e=this.nw,t=this.se;return[e,new x(e.lat,t.lng),t,new x(t.lat,e.lng)]},overlaps:function(e){return this.containsAny(e.toArray())||e.containsAny(this.toArray())}}),n.World=new n([90,-180],[-90,180]),n.create=function(e,i){return e instanceof n?e:e&&i?new n(e,i):e&&4===e.length&&!i?new n([e[0],e[1]],[e[2],e[3]]):t},m(f,{map:{Extent:n,Location:x}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/attribution.min",["kendo.drawing.min"],e)}(function(){!function(){var e=window.kendo,t=e.ui.Widget,n=e.template,i=e.drawing.util,o=i.valueOrDefault,r=i.defined,a=t.extend({init:function(e,n){t.fn.init.call(this,e,n),this._initOptions(n),this.items=[],this.element.addClass("k-widget k-attribution")},options:{name:"Attribution",separator:"&nbsp;|&nbsp;",itemTemplate:"#= text #"},filter:function(e,t){this._extent=e,this._zoom=t,this._render()},add:function(e){r(e)&&("string"==typeof e&&(e={text:e}),this.items.push(e),this._render())},remove:function(e){var t,n,i=[];for(t=0;t<this.items.length;t++)n=this.items[t],n.text!==e&&i.push(n);this.items=i,this._render()},clear:function(){this.items=[],this.element.empty()},_render:function(){var e,t,i,o=[],r=n(this.options.itemTemplate);for(e=0;e<this.items.length;e++)t=this.items[e],i=this._itemText(t),""!==i&&o.push(r({text:i}));o.length>0?this.element.empty().append(o.join(this.options.separator)).show():this.element.hide()},_itemText:function(e){var t="",n=this._inZoomLevel(e.minZoom,e.maxZoom),i=this._inArea(e.extent);return n&&i&&(t+=e.text),t},_inZoomLevel:function(e,t){var n=!0;return e=o(e,-Number.MAX_VALUE),t=o(t,Number.MAX_VALUE),n=this._zoom>e&&this._zoom<t},_inArea:function(e){var t=!0;return e&&(t=e.contains(this._extent)),t}});e.dataviz.ui.plugin(a)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/navigator.min",["kendo.core.min"],e)}(function(){!function(e){function t(e){return n.format('<button class="k-button k-navigator-{0}" aria-label="move {0}"><span class="k-icon k-i-arrow-60-{0}"></span></button>',e)}var n=window.kendo,i=n.ui.Widget,o=n.keys,r=e.proxy,a=".kendoNavigator",s=t("up")+t("right")+t("down")+t("left"),l=i.extend({init:function(e,t){i.fn.init.call(this,e,t),this._initOptions(t),this.element.addClass("k-widget k-navigator").append(s).on("click"+a,".k-button",r(this,"_click"));var o=this.element.parent().closest("["+n.attr("role")+"]");this._keyroot=o.length>0?o:this.element,this._tabindex(this._keyroot),this._keydown=r(this._keydown,this),this._keyroot.on("keydown",this._keydown)},options:{name:"Navigator",panStep:1},events:["pan"],dispose:function(){this._keyroot.off("keydown",this._keydown)},_pan:function(e,t){var n=this.options.panStep;this.trigger("pan",{x:e*n,y:t*n})},_click:function(t){var n=0,i=0,o=e(t.currentTarget);o.is(".k-navigator-up")?i=1:o.is(".k-navigator-down")?i=-1:o.is(".k-navigator-right")?n=1:o.is(".k-navigator-left")&&(n=-1),this._pan(n,i),t.preventDefault()},_keydown:function(e){switch(e.which){case o.UP:this._pan(0,1),e.preventDefault();break;case o.DOWN:this._pan(0,-1),e.preventDefault();break;case o.RIGHT:this._pan(1,0),e.preventDefault();break;case o.LEFT:this._pan(-1,0),e.preventDefault()}}});n.dataviz.ui.plugin(l)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/zoom.min",["kendo.core.min"],e)}(function(){!function(e){function t(e,t){return n.format('<button class="k-button k-button-icon k-zoom-{0}" title="zoom-{0}" aria-label="zoom-{0}"><span class="k-icon {1}"></span></button>',e,t)}var n=window.kendo,i=n.ui.Widget,o=n.keys,r=e.proxy,a=".kendoZoomControl",s=t("in","k-i-plus")+t("out","k-i-minus"),l=187,d=189,c=61,u=173,h=i.extend({init:function(e,t){i.fn.init.call(this,e,t),this._initOptions(t),this.element.addClass("k-widget k-zoom-control k-button-group k-group-horizontal").append(s).on("click"+a,".k-button",r(this,"_click"));var o=this.element.parent().closest("["+n.attr("role")+"]");this._keyroot=o.length>0?o:this.element,this._tabindex(this._keyroot),this._keydown=r(this._keydown,this),this._keyroot.on("keydown",this._keydown)},options:{name:"ZoomControl",zoomStep:1},events:["change"],_change:function(e){var t=this.options.zoomStep;this.trigger("change",{delta:e*t})},_click:function(t){var n=e(t.currentTarget),i=1;n.is(".k-zoom-out")&&(i=-1),this._change(i),t.preventDefault()},_keydown:function(e){switch(e.which){case o.NUMPAD_PLUS:case l:case c:this._change(1);break;case o.NUMPAD_MINUS:case d:case u:this._change(-1)}}});n.dataviz.ui.plugin(h)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/crs.min",["dataviz/map/location.min","kendo.drawing.min"],e)}(function(){!function(e,t){var n=Math,i=n.atan,o=n.exp,r=n.pow,a=n.sin,s=n.log,l=n.tan,d=window.kendo,c=d.Class,u=d.dataviz,h=d.deepExtend,p=d.geometry,f=p.Point,m=u.map,g=m.Location,v=d.drawing.util,_=v.rad,b=v.deg,w=v.limitValue,k=n.PI,y=k/2,x=k/4,C=k/180,S={a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149},T=c.extend({init:function(e){this._initOptions(e)},MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12,options:{centralMeridian:0,datum:S},forward:function(e,t){var n=this,i=n.options,o=i.datum,r=o.a,a=i.centralMeridian,s=w(e.lat,-n.MAX_LAT,n.MAX_LAT),l=t?w(e.lng,-n.MAX_LNG,n.MAX_LNG):e.lng,d=_(l-a)*r,c=n._projectLat(s);return new f(d,c)},_projectLat:function(e){var t=this.options.datum,n=t.e,i=t.a,o=_(e),d=l(x+o/2),c=n*a(o),u=r((1-c)/(1+c),n/2);return i*s(d*u)},inverse:function(e,t){var n=this,i=n.options,o=i.datum,r=o.a,a=i.centralMeridian,s=e.x/(C*r)+a,l=w(n._inverseY(e.y),-n.MAX_LAT,n.MAX_LAT);return t&&(s=w(s,-n.MAX_LNG,n.MAX_LNG)),new g(l,s)},_inverseY:function(e){var t,s,l,d,c=this,u=c.options.datum,h=u.a,p=u.e,f=p/2,m=o(-e/h),g=y-2*i(m);for(t=0;t<=c.INVERSE_ITERATIONS&&(s=p*a(g),l=r((1-s)/(1+s),f),d=y-2*i(m*l)-g,g+=d,!(n.abs(d)<=c.INVERSE_CONVERGENCE));t++);return b(g)}}),D=T.extend({MAX_LAT:85.0511287798,_projectLat:function(e){var t=this.options.datum.a,n=_(e),i=l(x+n/2);return t*s(i)},_inverseY:function(e){var t=this.options.datum.a,n=o(-e/t);return b(y-2*i(n))}}),A=c.extend({forward:function(e){return new f(e.lng,e.lat)},inverse:function(e){return new g(e.y,e.x)}}),E=c.extend({init:function(){var e=this,t=e._proj=new D,n=this.c=2*k*t.options.datum.a;this._tm=p.transform().translate(.5,.5).scale(1/n,-1/n),this._itm=p.transform().scale(n,-n).translate(-.5,-.5)},toPoint:function(e,t,n){var i=this._proj.forward(e,n);return i.transform(this._tm).scale(t||1)},toLocation:function(e,t,n){return e=e.clone().scale(1/(t||1)).transform(this._itm),this._proj.inverse(e,n)}}),I=c.extend({init:function(){this._proj=new T},toPoint:function(e){return this._proj.forward(e)},toLocation:function(e){return this._proj.inverse(e)}}),M=c.extend({init:function(){this._proj=new A},toPoint:function(e){return this._proj.forward(e)},toLocation:function(e){return this._proj.inverse(e)}});h(u,{map:{crs:{EPSG3395:I,EPSG3857:E,EPSG4326:M},datums:{WGS84:S},projections:{Equirectangular:A,Mercator:T,SphericalMercator:D}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/layers/base.min",["kendo.core.min","dataviz/map/location.min"],e)}(function(){!function(e,t){var n=e.proxy,i=window.kendo,o=i.Class,r=i.dataviz,a=i.deepExtend,s=r.map.Extent,l=i.drawing.util,d=l.defined,c=o.extend({init:function(t,i){this._initOptions(i),this.map=t,this.element=e("<div class='k-layer'></div>").css({zIndex:this.options.zIndex,opacity:this.options.opacity}).appendTo(t.scrollElement),this._beforeReset=n(this._beforeReset,this),this._reset=n(this._reset,this),this._resize=n(this._resize,this),this._panEnd=n(this._panEnd,this),this._activate(),this._updateAttribution()},destroy:function(){this._deactivate()},show:function(){this.reset(),this._activate(),this._applyExtent(!0)},hide:function(){this._deactivate(),this._setVisibility(!1)},reset:function(){this._beforeReset(),this._reset()},_reset:function(){this._applyExtent()},_beforeReset:e.noop,_resize:e.noop,_panEnd:function(){this._applyExtent()},_applyExtent:function(){var e=this.options,t=this.map.zoom(),n=!d(e.minZoom)||t>=e.minZoom,i=!d(e.maxZoom)||t<=e.maxZoom,o=s.create(e.extent),r=!o||o.overlaps(this.map.extent());this._setVisibility(n&&i&&r)},_setVisibility:function(e){this.element.css("display",e?"":"none")},_activate:function(){var e=this.map;this._deactivate(),e.bind("beforeReset",this._beforeReset),e.bind("reset",this._reset),e.bind("resize",this._resize),e.bind("panEnd",this._panEnd)},_deactivate:function(){var e=this.map;e.unbind("beforeReset",this._beforeReset),e.unbind("reset",this._reset),e.unbind("resize",this._resize),e.unbind("panEnd",this._panEnd)},_updateAttribution:function(){var e=this.map.attribution;e&&e.add(this.options.attribution)}});a(r,{map:{layers:{Layer:c}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/layers/shape.min",["dataviz/map/layers/base.min","dataviz/map/location.min"],e)}(function(){!function(e,t){var n=e.proxy,i=window.kendo,o=i.Class,r=i.data.DataSource,a=i.dataviz,s=i.deepExtend,l=i.geometry,d=i.drawing,c=d.Group,u=d.util.last,h=d.util.defined,p=a.map,f=p.Location,m=p.layers.Layer,g=m.extend({
init:function(e,t){this._pan=n(this._pan,this),m.fn.init.call(this,e,t),this.surface=d.Surface.create(this.element,{width:e.scrollElement.width(),height:e.scrollElement.height()}),this._initRoot(),this.movable=new i.ui.Movable(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseenter=this._handler("shapeMouseEnter"),this.surface.bind("mouseenter",this._mouseenter),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this._initDataSource()},options:{autoBind:!0},destroy:function(){m.fn.destroy.call(this),this.surface.destroy(),this.dataSource.unbind("change",this._dataChange)},setDataSource:function(e){this.dataSource&&this.dataSource.unbind("change",this._dataChange),this.dataSource=i.data.DataSource.create(e),this.dataSource.bind("change",this._dataChange),this.options.autoBind&&this.dataSource.fetch()},_reset:function(){m.fn._reset.call(this),this._translateSurface(),this._data&&this._load(this._data)},_initRoot:function(){this._root=new c,this.surface.draw(this._root)},_beforeReset:function(){this.surface.clear(),this._initRoot()},_resize:function(){this.surface.size(this.map.size())},_initDataSource:function(){var e=this.options.dataSource;this._dataChange=n(this._dataChange,this),this.dataSource=r.create(e).bind("change",this._dataChange),e&&this.options.autoBind&&this.dataSource.fetch()},_dataChange:function(e){this._data=e.sender.view(),this._load(this._data)},_load:function(e){var t,n,i;for(this._clearMarkers(),this._loader||(this._loader=new v(this.map,this.options.style,this)),t=new c,n=0;n<e.length;n++)i=this._loader.parse(e[n]),i&&t.append(i);this._root.clear(),this._root.append(t)},shapeCreated:function(e){var t,n=!1;return e instanceof d.Circle&&(n=h(this._createMarker(e))),n||(t={layer:this,shape:e},n=this.map.trigger("shapeCreated",t)),n},featureCreated:function(e){e.layer=this,this.map.trigger("shapeFeatureCreated",e)},_createMarker:function(e){var t=this.map.markers.bind({location:e.location},e.dataItem);return t&&this._markers.push(t),t},_clearMarkers:function(){for(var e=0;e<this._markers.length;e++)this.map.markers.remove(this._markers[e]);this._markers=[]},_pan:function(){this._panning||(this._panning=!0,this.surface.suspendTracking())},_panEnd:function(e){m.fn._panEnd.call(this,e),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1},_translateSurface:function(){var e=this.map,t=e.locationToView(e.extent().nw);this.surface.translate&&(this.surface.translate(t),this.movable.moveTo({x:t.x,y:t.y}))},_handler:function(e){var t=this;return function(n){if(n.element){var i={layer:t,shape:n.element,originalEvent:n.originalEvent};t.map.trigger(e,i)}}},_activate:function(){m.fn._activate.call(this),this.map.bind("pan",this._pan)},_deactivate:function(){m.fn._deactivate.call(this),this.map.unbind("pan",this._pan)}}),v=o.extend({init:function(e,t,n){this.observer=n,this.locator=e,this.style=t},parse:function(e){var t=new c,n=!0;return"Feature"===e.type?(n=!1,this._loadGeometryTo(t,e.geometry,e),this._featureCreated(t,e)):this._loadGeometryTo(t,e,e),n&&t.children.length<2&&(t=t.children[0]),t},_shapeCreated:function(e){var t=!1;return this.observer&&this.observer.shapeCreated&&(t=this.observer.shapeCreated(e)),t},_featureCreated:function(e,t){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:e,dataItem:t,properties:t.properties})},_loadGeometryTo:function(e,t,n){var i,o,r=t.coordinates;switch(t.type){case"LineString":o=this._loadPolygon(e,[r],n),this._setLineFill(o);break;case"MultiLineString":for(i=0;i<r.length;i++)o=this._loadPolygon(e,[r[i]],n),this._setLineFill(o);break;case"Polygon":this._loadPolygon(e,r,n);break;case"MultiPolygon":for(i=0;i<r.length;i++)this._loadPolygon(e,r[i],n);break;case"Point":this._loadPoint(e,r,n);break;case"MultiPoint":for(i=0;i<r.length;i++)this._loadPoint(e,r[i],n)}},_setLineFill:function(e){var t=e.segments;(t.length<4||!t[0].anchor().equals(u(t).anchor()))&&(e.options.fill=null)},_loadShape:function(e,t){return this._shapeCreated(t)||e.append(t),t},_loadPolygon:function(e,t,n){var i=this._buildPolygon(t);return i.dataItem=n,this._loadShape(e,i)},_buildPolygon:function(e){var t,n,i,o=e.length>1?d.MultiPath:d.Path,r=new o(this.style);for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)i=this.locator.locationToView(f.fromLngLat(e[t][n])),0===n?r.moveTo(i.x,i.y):r.lineTo(i.x,i.y);return r},_loadPoint:function(e,t,n){var i=f.fromLngLat(t),o=this.locator.locationToView(i),r=new l.Circle(o,10),a=new d.Circle(r,this.style);return a.dataItem=n,a.location=i,this._loadShape(e,a)}});s(i.data,{schemas:{geojson:{type:"json",data:function(e){return"FeatureCollection"===e.type?e.features:"GeometryCollection"===e.type?e.geometries:e}}},transports:{geojson:{read:{dataType:"json"}}}}),s(a,{map:{layers:{shape:g,ShapeLayer:g},GeoJSONLoader:v}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/layers/bubble.min",["dataviz/map/layers/shape.min"],e)}(function(){!function(e,t){var n=window.kendo,i=n.getter,o=n.dataviz,r=n.deepExtend,a=n.geometry,s=n.drawing,l=s.util,d=l.defined,c=o.map,u=c.Location,h=c.layers.ShapeLayer,p=h.extend({options:{autoBind:!0,locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle"},_load:function(e){var t,n,o,r,a,s,l,c,h,p,f;if(this.surface.clear(),0!==e.length)for(t=this.options,n=i(t.valueField),e=e.slice(0),e.sort(function(e,t){return n(t)-n(e)}),o=this._scaleType(),a=0;a<e.length;a++)s=e[a],l=i(t.locationField)(s),c=i(t.valueField)(s),d(l)&&d(c)&&(r||(r=new o([0,c],[t.minSize,t.maxSize])),l=u.create(l),h=this.map.locationToView(l),p=r.map(c),f=this._createSymbol({center:h,size:p,style:t.style,dataItem:s,location:l}),f.dataItem=s,f.location=l,f.value=c,this._drawSymbol(f))},_scaleType:function(){var e=this.options.scale;return n.isFunction(e)?e:o.map.scales[e]},_createSymbol:function(e){var t=this.options.symbol;return n.isFunction(t)||(t=o.map.symbols[t]),t(e)},_drawSymbol:function(e){var t={layer:this,shape:e},n=this.map.trigger("shapeCreated",t);n||this.surface.draw(e)}}),f=n.Class.extend({init:function(e,t){var n,i;this._domain=e,this._range=t,n=Math.sqrt(e[1])-Math.sqrt(e[0]),i=t[1]-t[0],this._ratio=i/n},map:function(e){var t=(Math.sqrt(e)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+t}}),m={circle:function(e){var t=new a.Circle(e.center,e.size/2);return new s.Circle(t,e.style)},square:function(e){var t=new s.Path(e.style),n=e.size/2,i=e.center;return t.moveTo(i.x-n,i.y-n).lineTo(i.x+n,i.y-n).lineTo(i.x+n,i.y+n).lineTo(i.x-n,i.y+n).close(),t}};r(o,{map:{layers:{bubble:p,BubbleLayer:p},scales:{sqrt:f},symbols:m}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/layers/tile.min",["dataviz/map/layers/base.min","dataviz/map/location.min"],e)}(function(){!function(e,t){function n(e){return new u(g(e.x),g(e.y))}var i=Math,o=e.proxy,r=window.kendo,a=r.Class,s=r.template,l=r.dataviz,d=r.deepExtend,c=r.geometry,u=c.Point,h=l.map.layers.Layer,p=r.util,f=p.renderSize,m=r.drawing.util,g=m.round,v=m.limitValue,_=h.extend({init:function(e,t){h.fn.init.call(this,e,t),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));var n=this._viewType();this._view=new n(this.element,this.options)},destroy:function(){h.fn.destroy.call(this),this._view.destroy(),this._view=null},_beforeReset:function(){var e=this.map,t=e.locationToLayer(e.extent().nw).round();this._view.viewOrigin(t)},_reset:function(){h.fn._reset.call(this),this._updateView(),this._view.reset()},_viewType:function(){return b},_activate:function(){h.fn._activate.call(this),r.support.mobileOS||(this._pan||(this._pan=r.throttle(o(this._render,this),100)),this.map.bind("pan",this._pan))},_deactivate:function(){h.fn._deactivate.call(this),this._pan&&this.map.unbind("pan",this._pan)},_updateView:function(){var e=this._view,t=this.map,n=t.extent(),i={nw:t.locationToLayer(n.nw).round(),se:t.locationToLayer(n.se).round()};e.center(t.locationToLayer(t.center())),e.extent(i),e.zoom(t.zoom())},_resize:function(){this._render()},_panEnd:function(e){h.fn._panEnd.call(this,e),this._render()},_render:function(){this._updateView(),this._view.render()}}),b=a.extend({init:function(e,t){this.element=e,this._initOptions(t),this.pool=new k},options:{tileSize:256,subdomains:["a","b","c"],urlTemplate:""},center:function(e){this._center=e},extent:function(e){this._extent=e},viewOrigin:function(e){this._viewOrigin=e},zoom:function(e){this._zoom=e},pointToTileIndex:function(e){return new u(i.floor(e.x/this.options.tileSize),i.floor(e.y/this.options.tileSize))},tileCount:function(){var e=this.size(),t=this.pointToTileIndex(this._extent.nw),n=this._extent.nw,o=this.indexToPoint(t).translate(-n.x,-n.y);return{x:i.ceil((i.abs(o.x)+e.width)/this.options.tileSize),y:i.ceil((i.abs(o.y)+e.height)/this.options.tileSize)}},size:function(){var e=this._extent.nw,t=this._extent.se,n=t.clone().translate(-e.x,-e.y);return{width:n.x,height:n.y}},indexToPoint:function(e){var t=e.x,n=e.y;return new u(t*this.options.tileSize,n*this.options.tileSize)},subdomainText:function(){var e=this.options.subdomains;return e[this.subdomainIndex++%e.length]},destroy:function(){this.element.empty(),this.pool.empty()},reset:function(){this.pool.reset(),this.subdomainIndex=0,this.render()},render:function(){var e,t,n,i=this.tileCount(),o=this.pointToTileIndex(this._extent.nw);for(t=0;t<i.x;t++)for(n=0;n<i.y;n++)e=this.createTile({x:o.x+t,y:o.y+n}),e.visible||e.show()},createTile:function(e){var t=this.tileOptions(e),n=this.pool.get(this._center,t);return 0===n.element.parent().length&&this.element.append(n.element),n},tileOptions:function(e){var t=this.wrapIndex(e),i=this.indexToPoint(e),o=this._viewOrigin,r=i.clone().translate(-o.x,-o.y);return{index:t,currentIndex:e,point:i,offset:n(r),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate}},wrapIndex:function(e){var t=i.pow(2,this._zoom);return{x:this.wrapValue(e.x,t),y:v(e.y,0,t-1)}},wrapValue:function(e,t){var n=i.abs(e)%t;return e=e>=0?n:t-(0===n?t:n)}}),w=a.extend({init:function(e,t){this.id=e,this.visible=!0,this._initOptions(t),this.createElement(),this.show()},options:{urlTemplate:"",errorUrlTemplate:""},createElement:function(){this.element=e("<img style='position: absolute; display: block;' alt='' />").css({width:this.options.size,height:this.options.size}).on("error",o(function(e){this.errorUrl()?e.target.setAttribute("src",this.errorUrl()):e.target.removeAttribute("src")},this))},show:function(){var e,t=this.element[0];t.style.top=f(this.options.offset.y),t.style.left=f(this.options.offset.x),e=this.url(),e&&t.setAttribute("src",e),t.style.visibility="visible",this.visible=!0},hide:function(){this.element[0].style.visibility="hidden",this.visible=!1},url:function(){var e=s(this.options.urlTemplate);return e(this.urlOptions())},errorUrl:function(){var e=s(this.options.errorUrlTemplate);return e(this.urlOptions())},urlOptions:function(){var e=this.options;return{zoom:e.zoom,subdomain:e.subdomain,z:e.zoom,x:e.index.x,y:e.index.y,s:e.subdomain,quadkey:e.quadkey,q:e.quadkey,culture:e.culture,c:e.culture}},destroy:function(){this.element&&(this.element.remove(),this.element=null)}}),k=a.extend({init:function(){this._items=[]},options:{maxSize:100},get:function(e,t){return this._items.length>=this.options.maxSize&&this._remove(e),this._create(t)},empty:function(){var e,t=this._items;for(e=0;e<t.length;e++)t[e].destroy();this._items=[]},reset:function(){var e,t=this._items;for(e=0;e<t.length;e++)t[e].hide()},_create:function(e){var t,n,i=this._items,o=p.hashKey(""+e.point+(""+e.offset)+e.zoom+e.urlTemplate);for(n=0;n<i.length;n++)if(i[n].id===o){t=i[n];break}return t?t.show():(t=new w(o,e),this._items.push(t)),t},_remove:function(e){var t,n,i=this._items,o=-1,r=-1;for(t=0;t<i.length;t++)n=i[t].options.point.distanceTo(e),n>o&&!i[t].visible&&(r=t,o=n);r!==-1&&(i[r].destroy(),i.splice(r,1))}});d(l,{map:{layers:{tile:_,TileLayer:_,ImageTile:w,TilePool:k,TileView:b}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/layers/bing.min",["dataviz/map/layers/tile.min"],e)}(function(){!function(e,t){var n=window.kendo,i=n.dataviz,o=n.deepExtend,r=n.drawing.util.defined,a=i.map.Extent,s=i.map.Location,l=i.map.layers.TileLayer,d=i.map.layers.TileView,c=l.extend({init:function(t,n){this.options.baseUrl=this._scheme()+"://dev.virtualearth.net/REST/v1/Imagery/Metadata/",l.fn.init.call(this,t,n),this._onMetadata=e.proxy(this._onMetadata,this),this._fetchMetadata()},options:{imagerySet:"road"},_fetchMetadata:function(){var t=this.options;if(!t.key)throw Error("Bing tile layer: API key is required");e.ajax({url:t.baseUrl+t.imagerySet,data:{output:"json",include:"ImageryProviders",key:t.key,uriScheme:this._scheme()},type:"get",dataType:"jsonp",jsonp:"jsonp",success:this._onMetadata})},_scheme:function(e){return e=e||window.location.protocol,"https"===e.replace(":","")?"https":"http"},_onMetadata:function(e){var t,n;e&&e.resourceSets.length&&(t=this.resource=e.resourceSets[0].resources[0],o(this._view.options,{urlTemplate:t.imageUrl.replace("{subdomain}","#= subdomain #").replace("{quadkey}","#= quadkey #").replace("{culture}","#= culture #"),subdomains:t.imageUrlSubdomains}),n=this.options,r(n.minZoom)||(n.minZoom=t.zoomMin),r(n.maxZoom)||(n.maxZoom=t.zoomMax),this._addAttribution(),"none"!==this.element.css("display")&&this._reset())},_viewType:function(){return u},_addAttribution:function(){var e,t,n,i,o,r=this.map.attribution;if(r&&(e=this.resource.imageryProviders))for(t=0;t<e.length;t++)for(n=e[t],i=0;i<n.coverageAreas.length;i++)o=n.coverageAreas[i],r.add({text:n.attribution,minZoom:o.zoomMin,maxZoom:o.zoomMax,extent:new a(new s(o.bbox[2],o.bbox[1]),new s(o.bbox[0],o.bbox[3]))})},imagerySet:function(e){return e?(this.options.imagerySet=e,this.map.attribution.clear(),this._fetchMetadata(),t):this.options.imagerySet}}),u=d.extend({options:{culture:"en-US"},tileOptions:function(e){var t=d.fn.tileOptions.call(this,e);return t.culture=this.options.culture,t.quadkey=this.tileQuadKey(this.wrapIndex(e)),t},tileQuadKey:function(e){var t,n,i,o="";for(i=this._zoom;i>0;i--)t=0,n=1<<i-1,0!==(e.x&n)&&t++,0!==(e.y&n)&&(t+=2),o+=t;return o}});o(i,{map:{layers:{bing:c,BingLayer:c,BingView:u}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/layers/marker.min",["dataviz/map/layers/base.min","dataviz/map/location.min","kendo.data.min","kendo.tooltip.min"],e)}(function(){!function(e,t){var n=document,i=Math,o=e.inArray,r=e.proxy,a=window.kendo,s=a.Class,l=a.data.DataSource,d=a.ui.Tooltip,c=a.dataviz,u=a.deepExtend,h=c.map,p=h.Location,f=h.layers.Layer,m=f.extend({init:function(e,t){f.fn.init.call(this,e,t),this._markerClick=r(this._markerClick,this),this.element.on("click",".k-marker",this._markerClick),this.items=[],this._initDataSource()},destroy:function(){f.fn.destroy.call(this),this.element.off("click",".k-marker",this._markerClick),this.dataSource.unbind("change",this._dataChange),this.clear()},options:{zIndex:1e3,autoBind:!0,dataSource:{},locationField:"location",titleField:"title"},add:function(t){if(!e.isArray(t))return this._addOne(t);for(var n=0;n<t.length;n++)this._addOne(t[n])},remove:function(e){e.destroy();var t=o(e,this.items);t>-1&&this.items.splice(t,1)},clear:function(){for(var e=0;e<this.items.length;e++)this.items[e].destroy();this.items=[]},update:function(e){var t,n=e.location();n&&(e.showAt(this.map.locationToView(n)),t={marker:e,layer:this},this.map.trigger("markerActivate",t))},_reset:function(){var e,t;for(f.fn._reset.call(this),e=this.items,t=0;t<e.length;t++)this.update(e[t])},bind:function(e,t){var n,i,o=h.Marker.create(e,this.options);if(o.dataItem=t,n={marker:o,layer:this},i=this.map.trigger("markerCreated",n),!i)return this.add(o),o},setDataSource:function(e){this.dataSource&&this.dataSource.unbind("change",this._dataChange),this.dataSource=a.data.DataSource.create(e),this.dataSource.bind("change",this._dataChange),this.options.autoBind&&this.dataSource.fetch()},_addOne:function(e){var t=g.create(e,this.options);return t.addTo(this),t},_initDataSource:function(){var e=this.options.dataSource;this._dataChange=r(this._dataChange,this),this.dataSource=l.create(e).bind("change",this._dataChange),e&&this.options.autoBind&&this.dataSource.fetch()},_dataChange:function(e){this._load(e.sender.view())},_load:function(e){var t,n,i,o;for(this._data=e,this.clear(),t=a.getter(this.options.locationField),n=a.getter(this.options.titleField),i=0;i<e.length;i++)o=e[i],this.bind({location:t(o),title:n(o)},o)},_markerClick:function(t){var n={marker:e(t.target).data("kendoMarker"),layer:this};this.map.trigger("markerClick",n)}}),g=s.extend({init:function(e){this.options=e||{}},addTo:function(e){this.layer=e.markers||e,this.layer.items.push(this),this.layer.update(this)},location:function(e){return e?(this.options.location=p.create(e).toArray(),this.layer&&this.layer.update(this),this):p.create(this.options.location)},showAt:function(e){this.render(),this.element.css({left:i.round(e.x),top:i.round(e.y)}),this.tooltip&&this.tooltip.popup&&this.tooltip.popup._position()},hide:function(){this.element&&(this.element.remove(),this.element=null),this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)},destroy:function(){this.layer=null,this.hide()},render:function(){var t,i;this.element||(t=this.options,i=this.layer,this.element=e(n.createElement("span")).addClass("k-marker k-icon k-i-marker-"+a.toHyphens(t.shape||"pin")).attr("title",t.title).attr(t.attributes||{}).data("kendoMarker",this).css("zIndex",t.zIndex),i&&i.element.append(this.element),this.renderTooltip())},renderTooltip:function(){var e,t,n=this,i=n.options.title,o=n.options.tooltip||{};o&&d&&(e=o.template,e&&(t=a.template(e),o.content=function(e){return e.location=n.location(),e.marker=n,t(e)}),(i||o.content||o.contentUrl)&&(this.tooltip=new d(this.element,o),this.tooltip.marker=this))}});g.create=function(e,t){return e instanceof g?e:new g(u({},t,e))},u(c,{map:{layers:{marker:m,MarkerLayer:m},Marker:g}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/map/main.min",["dataviz/map/crs.min","dataviz/map/location.min"],e)}(function(){!function(e,t){var n=document,i=Math,o=i.min,r=i.pow,a=e.proxy,s=window.kendo,l=s.ui.Widget,d=s.deepExtend,c=s.dataviz,u=c.ui,h=s.geometry,p=h.Point,f=c.map,m=f.Extent,g=f.Location,v=f.crs.EPSG3857,_=s.util,b=_.renderPos,w=s.drawing.util,k=w.defined,y=w.limitValue,x=w.valueOrDefault,C="k-",S=.9,T=.93,D="DOMMouseScroll mousewheel",A=5,E=1,I=l.extend({init:function(e,t){s.destroy(e),l.fn.init.call(this,e),this._initOptions(t),this.bind(this.events,t),this.crs=new v,this.element.addClass(C+this.options.name.toLowerCase()).css("position","relative").empty().append(n.createElement("div")),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheel=a(this._mousewheel,this),this.element.bind(D,this._mousewheel)},options:{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0},events:["beforeReset","click","markerActivate","markerClick","markerCreated","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"],destroy:function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),this.markers.destroy();for(var e=0;e<this.layers.length;e++)this.layers[e].destroy();l.fn.destroy.call(this)},zoom:function(e){var t=this.options;return k(e)?(e=i.round(y(e,t.minZoom,t.maxZoom)),t.zoom!==e&&(t.zoom=e,this._reset()),this):t.zoom},center:function(e){return e?(this.options.center=g.create(e).toArray(),this._reset(),this):g.create(this.options.center)},extent:function(e){return e?(this._setExtent(e),this):this._getExtent()},setOptions:function(e){l.fn.setOptions.call(this,e),this._reset()},locationToLayer:function(e,t){var n=!this.options.wraparound;return e=g.create(e),this.crs.toPoint(e,this._layerSize(t),n)},layerToLocation:function(e,t){var n=!this.options.wraparound;return e=p.create(e),this.crs.toLocation(e,this._layerSize(t),n)},locationToView:function(e){var t,n;return e=g.create(e),t=this.locationToLayer(this._viewOrigin),n=this.locationToLayer(e),n.translateWith(t.scale(-1))},viewToLocation:function(e,t){var n=this.locationToLayer(this._getOrigin(),t);return e=p.create(e),e=e.clone().translateWith(n),this.layerToLocation(e,t)},eventOffset:function(e){var t,n,i,o,r,a=this.element.offset();return e.x||e.y?(o="location",n=e.x[o]-a.left,i=e.y[o]-a.top,t=new h.Point(n,i)):(r=e.originalEvent||e,n=x(r.pageX,r.clientX)-a.left,i=x(r.pageY,r.clientY)-a.top,t=new h.Point(n,i)),t},eventToView:function(e){var t=this.eventOffset(e);return this.locationToView(this.viewToLocation(t))},eventToLayer:function(e){return this.locationToLayer(this.eventToLocation(e))},eventToLocation:function(e){var t=this.eventOffset(e);return this.viewToLocation(t)},viewSize:function(){var e=this.element,t=this._layerSize(),n=e.width();return this.options.wraparound||(n=o(t,n)),{width:n,height:o(t,e.height())}},exportVisual:function(){return this._reset(),!1},_setOrigin:function(e,t){var n,i=this.viewSize();return e=this._origin=g.create(e),n=this.locationToLayer(e,t),n.x+=i.width/2,n.y+=i.height/2,this.options.center=this.layerToLocation(n,t).toArray(),this},_getOrigin:function(e){var t,n=this.viewSize();return!e&&this._origin||(t=this.locationToLayer(this.center()),t.x-=n.width/2,t.y-=n.height/2,this._origin=this.layerToLocation(t)),this._origin},_setExtent:function(e){var t,n,o,r,a,s,l,d=m.create(e),c=d.se.clone();for(this.options.wraparound&&c.lng<0&&e.nw.lng>0&&(c.lng=180+(180+c.lng)),e=new m(d.nw,c),this.center(e.center()),t=this.element.width(),n=this.element.height(),o=this.options.maxZoom;o>=this.options.minZoom&&(r=this.locationToLayer(e.nw,o),a=this.locationToLayer(e.se,o),s=i.abs(a.x-r.x),l=i.abs(a.y-r.y),!(s<=t&&l<=n));o--);this.zoom(o)},_getExtent:function(){var e,t=this._getOrigin(),n=this.locationToLayer(t),i=this.viewSize();return n.x+=i.width,n.y+=i.height,e=this.layerToLocation(n),new m(t,e)},_zoomAround:function(e,t){this._setOrigin(this.layerToLocation(e,t),t),this.zoom(t)},_initControls:function(){var e=this.options.controls;u.Attribution&&e.attribution&&this._createAttribution(e.attribution),s.support.mobileOS||(u.Navigator&&e.navigator&&this._createNavigator(e.navigator),u.ZoomControl&&e.zoom&&this._createZoomControl(e.zoom))},_createControlElement:function(t,n){var i=t.position||n,o="."+b(i).replace(" ","."),r=e(".k-map-controls"+o,this.element);return 0===r.length&&(r=e("<div>").addClass("k-map-controls "+b(i)).appendTo(this.element)),e("<div>").appendTo(r)},_createAttribution:function(e){var t=this._createControlElement(e,"bottomRight");this.attribution=new u.Attribution(t,e)},_createNavigator:function(e){var t=this._createControlElement(e,"topLeft"),n=this.navigator=new u.Navigator(t,e);this._navigatorPan=a(this._navigatorPan,this),n.bind("pan",this._navigatorPan),this._navigatorCenter=a(this._navigatorCenter,this),n.bind("center",this._navigatorCenter)},_navigatorPan:function(e){var t=this,n=t.scroller,i=n.scrollLeft+e.x,o=n.scrollTop-e.y,r=this._virtualSize,a=this.element.height(),s=this.element.width();i=y(i,r.x.min,r.x.max-s),o=y(o,r.y.min,r.y.max-a),t.scroller.one("scroll",function(e){t._scrollEnd(e)}),t.scroller.scrollTo(-i,-o)},_navigatorCenter:function(){this.center(this.options.center)},_createZoomControl:function(e){var t=this._createControlElement(e,"topLeft"),n=this.zoomControl=new u.ZoomControl(t,e);this._zoomControlChange=a(this._zoomControlChange,this),n.bind("change",this._zoomControlChange)},_zoomControlChange:function(e){this.trigger("zoomStart",{originalEvent:e})||(this.zoom(this.zoom()+e.delta),this.trigger("zoomEnd",{originalEvent:e}))},_initScroller:function(){var e=s.support.mobileOS?T:S,t=this.options.zoomable!==!1,n=this.scroller=new s.mobile.ui.Scroller(this.element.children(0),{friction:e,velocityMultiplier:A,zoom:t,mousewheelScrolling:!1,supportDoubleTap:!0});n.bind("scroll",a(this._scroll,this)),n.bind("scrollEnd",a(this._scrollEnd,this)),n.userEvents.bind("gesturestart",a(this._scaleStart,this)),n.userEvents.bind("gestureend",a(this._scale,this)),n.userEvents.bind("doubleTap",a(this._doubleTap,this)),n.userEvents.bind("tap",a(this._tap,this)),this.scrollElement=n.scrollElement},_initLayers:function(){var e,t,n,i,o,r=this.options.layers,a=this.layers=[];for(e=0;e<r.length;e++)t=r[e],n=t.type||"shape",i=this.options.layerDefaults[n],o=c.map.layers[n],a.push(new o(this,d({},i,t)))},_initMarkers:function(){this.markers=new f.layers.MarkerLayer(this,this.options.markerDefaults),this.markers.add(this.options.markers)},_scroll:function(e){var t=this.locationToLayer(this._viewOrigin).round(),n=e.sender.movable,i=new h.Point(n.x,n.y).scale(-1).scale(1/n.scale);t.x+=i.x,t.y+=i.y,this._scrollOffset=i,this._setOrigin(this.layerToLocation(t)),this.trigger("pan",{originalEvent:e,origin:this._getOrigin(),center:this.center()})},_scrollEnd:function(e){this._scrollOffset&&this._panComplete()&&(this._scrollOffset=null,this._panEndTS=new Date,this.trigger("panEnd",{originalEvent:e,origin:this._getOrigin(),center:this.center()}))},_panComplete:function(){return new Date-(this._panEndTS||0)>50},_scaleStart:function(e){if(this.trigger("zoomStart",{originalEvent:e})){var t=e.touches[1];t&&t.cancel()}},_scale:function(e){var t=this.scroller.movable.scale,n=this._scaleToZoom(t),i=new h.Point(e.center.x,e.center.y),o=this.viewToLocation(i,n),r=this.locationToLayer(o,n),a=r.translate(-i.x,-i.y);this._zoomAround(a,n),this.trigger("zoomEnd",{originalEvent:e})},_scaleToZoom:function(e){var t=this._layerSize()*e,n=t/this.options.minSize,o=i.log(n)/i.log(2);return i.round(o)},_reset:function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")},_resetScroller:function(){var e,t,n,i,o=this.scroller,a=o.dimensions.x,s=o.dimensions.y,l=this._layerSize(),d=this.extent().nw,c=this.locationToLayer(d).round();o.movable.round=!0,o.reset(),o.userEvents.cancel(),e=this.zoom(),o.dimensions.forcedMinScale=r(2,this.options.minZoom-e),o.dimensions.maxScale=r(2,this.options.maxZoom-e),t={min:-c.x,max:l-c.x},n={min:-c.y,max:l-c.y},this.options.wraparound&&(t.max=20*l,t.min=-t.max),this.options.pannable===!1&&(i=this.viewSize(),t.min=n.min=0,t.max=i.width,n.max=i.height),a.makeVirtual(),s.makeVirtual(),a.virtualSize(t.min,t.max),s.virtualSize(n.min,n.max),this._virtualSize={x:t,y:n}},_renderLayers:function(){var e,t,n,i,o,r=this.options.layers,a=this.layers=[],s=this.scrollWrap;for(s.empty(),e=0;e<r.length;e++)t=r[e],n=t.type||"shape",i=this.options.layerDefaults[n],o=c.map.layers[n],a.push(new o(this,d({},i,t)))},_layerSize:function(e){return e=x(e,this.options.zoom),this.options.minSize*r(2,e)},_tap:function(e){if(this._panComplete()){var t=this.eventOffset(e);this.trigger("click",{originalEvent:e,location:this.viewToLocation(t)})}},_doubleTap:function(e){var t,n,i,o,r,a=this.options;a.zoomable!==!1&&(this.trigger("zoomStart",{originalEvent:e})||(t=this.zoom()+E,n=this.eventOffset(e),i=this.viewToLocation(n),o=this.locationToLayer(i,t),r=o.translate(-n.x,-n.y),this._zoomAround(r,t),this.trigger("zoomEnd",{originalEvent:e})))},_mousewheel:function(e){var t,n,i,o,r,a,s,l;e.preventDefault(),t=c.mwDelta(e)>0?-1:1,n=this.options,i=this.zoom(),o=y(i+t,n.minZoom,n.maxZoom),n.zoomable!==!1&&o!==i&&(this.trigger("zoomStart",{originalEvent:e})||(r=this.eventOffset(e),a=this.viewToLocation(r),s=this.locationToLayer(a,o),l=s.translate(-r.x,-r.y),this._zoomAround(l,o),this.trigger("zoomEnd",{originalEvent:e})))}});c.ui.plugin(I)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.map.min",["kendo.data.min","kendo.userevents.min","kendo.tooltip.min","kendo.mobile.scroller.min","kendo.draganddrop.min","kendo.dataviz.core.min","dataviz/map/location.min","dataviz/map/attribution.min","dataviz/map/navigator.min","dataviz/map/zoom.min","dataviz/map/crs.min","dataviz/map/layers/base.min","dataviz/map/layers/shape.min","dataviz/map/layers/bubble.min","dataviz/map/layers/tile.min","dataviz/map/layers/bing.min","dataviz/map/layers/marker.min","dataviz/map/main.min"],e)}(function(){return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/diagram/utils.min",["kendo.core.min"],e)}(function(){!function(e,t){function n(e,n,i){function o(e){for(var t=1;e*t%1;)t*=10;return t}var r,a,s,l;if(t===e||t===n)return[];if(i&&u.sign(n-e)!=u.sign(i))throw"The sign of the increment should allow to reach the stop-value.";if(i=i||1,e=e||0,n=n||e,(n-e)/i===1/0)throw"Infinite range defined.";if(r=[],a=-1,l=o(Math.abs(i)),e*=l,n*=l,i*=l,e>n&&i>0&&(i=-i),i<0)for(;(s=e+i*++a)>=n;)r.push(s/l);else for(;(s=e+i*++a)<=n;)r.push(s/l);return r}function i(e,t){if(e==t)return 0;var n=t.x-e.x,i=e.y-t.y,o=Math.atan(n/i);return i>=0?n<0?o+2*Math.PI:o:o+Math.PI}var o,r,a=window.kendo,s=a.dataviz.diagram={},l=a.deepExtend,d=e.isArray,c=1e-6,u={};l(u,{isNearZero:function(e){return Math.abs(e)<c},isDefined:function(e){return t!==e},isUndefined:function(e){return t===e||null===e},isObject:function(e){return e===Object(e)},has:function(e,t){return Object.hasOwnProperty.call(e,t)},isString:function(e){return"[object String]"==Object.prototype.toString.call(e)},isBoolean:function(e){return"[object Boolean]"==Object.prototype.toString.call(e)},isType:function(e,t){return Object.prototype.toString.call(e)=="[object "+t+"]"},isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isEmpty:function(e){if(null===e)return!0;if(d(e)||u.isString(e))return 0===e.length;for(var t in e)if(u.has(e,t))return!1;return!0},simpleExtend:function(e,t){if(u.isObject(t))for(var n in t)e[n]=t[n]},initArray:function(e,t){var n,i=[];for(n=0;n<e;++n)i[n]=t;return i},serializePoints:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push(n.x+";"+n.y);return i.join(";")},deserializePoints:function(e){var t,n=e.split(";"),i=[];if(n.length%2!==0)throw"Not an array of points.";for(t=0;t<n.length;t+=2)i.push(new s.Point(parseInt(n[t],10),parseInt(n[t+1],10)));return i},randomInteger:function(e,t){return parseInt(Math.floor(Math.random()*t)+e,10)},DFT:function(e,t){var n,i;if(t(e),e.childNodes)for(n=0;n<e.childNodes.length;n++)i=e.childNodes[n],this.DFT(i,t)},getMatrixAngle:function(e){return null===e||0===e.d?0:180*Math.atan2(e.b,e.d)/Math.PI},getMatrixScaling:function(e){var t=Math.sqrt(e.a*e.a+e.c*e.c),n=Math.sqrt(e.b*e.b+e.d*e.d);return[t,n]}}),u.sign=function(e){return e?e<0?-1:1:0},u.findAngle=function(e,t){return 180*i(e,t)/Math.PI},u.forEach=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i],i,e)},u.any=function(e,t){for(var n=0;n<e.length;++n)if(t(e[n]))return e[n];return null},u.remove=function(e,t){for(var n;(n=u.indexOf(e,t))!==-1;)e.splice(n,1);return e},u.contains=function(e,t){return u.indexOf(e,t)!==-1},u.indexOf=function(t,n){return e.inArray(n,t)},u.fold=function(e,t,n,i){
var o,r,a=arguments.length>2;for(o=0;o<e.length;o++)r=e[o],a?n=t.call(i,n,r,o,e):(n=r,a=!0);if(!a)throw"Reduce of empty array with no initial value";return n},u.find=function(e,t,n){var i;return u.any(e,function(e,o,r){return!!t.call(n,e,o,r)&&(i=e,!0)}),i},u.first=function(e,t,n){return 0===e.length?null:u.isUndefined(t)?e[0]:u.find(e,t,n)},u.insert=function(e,t,n){return e.splice(n,0,t),e},u.all=function(e,t,n){var i,o,r=!0;for(o=0;o<e.length&&(i=e[o],r=r&&t.call(n,i,o,e),r);o++);return r},u.clear=function(e){e.splice(0,e.length)},u.bisort=function(e,t,n){if(u.isUndefined(e))throw"First array is not specified.";if(u.isUndefined(t))throw"Second array is not specified.";if(e.length!=t.length)throw"The two arrays should have equal length";var i,o=[];for(i=0;i<e.length;i++)o.push({x:e[i],y:t[i]});for(o.sort(u.isUndefined(n)?function(e,t){return e.x-t.x}:function(e,t){return n(e.x,t.x)}),u.clear(e),u.clear(t),i=0;i<o.length;i++)e.push(o[i].x),t.push(o[i].y)},u.addRange=function(e,t){e.push.apply(e,t)},o={easeInOut:function(e){return-Math.cos(e*Math.PI)/2+.5}},r=a.Class.extend({init:function(){this.adapters=[],this.target=0,this.tick=0,this.interval=20,this.duration=800,this.lastTime=null,this.handlers=[];var e=this;this.transition=o.easeInOut,this.timerDelegate=function(){e.onTimerEvent()}},addAdapter:function(e){this.adapters.push(e)},onComplete:function(e){this.handlers.push(e)},removeHandler:function(t){this.handlers=e.grep(this.handlers,function(e){return e!==t})},trigger:function(){var e=this;this.handlers&&u.forEach(this.handlers,function(t){return t.call(null!==e.caller?e.caller:e)})},onStep:function(){},seekTo:function(e){this.seekFromTo(this.tick,e)},seekFromTo:function(e,t){this.target=Math.max(0,Math.min(1,t)),this.tick=Math.max(0,Math.min(1,e)),this.lastTime=(new Date).getTime(),this.intervalId||(this.intervalId=window.setInterval(this.timerDelegate,this.interval))},stop:function(){this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null,this.trigger())},play:function(e){0!==this.adapters.length&&(null!==e&&(this.caller=e),this.initState(),this.seekFromTo(0,1))},reverse:function(){this.seekFromTo(1,0)},initState:function(){if(0!==this.adapters.length)for(var e=0;e<this.adapters.length;e++)this.adapters[e].initState()},propagate:function(){var e,t=this.transition(this.tick);for(e=0;e<this.adapters.length;e++)this.adapters[e].update(t)},onTimerEvent:function(){var e,t=(new Date).getTime(),n=t-this.lastTime;this.lastTime=t,e=n/this.duration*(this.tick<this.target?1:-1),Math.abs(e)>=Math.abs(this.tick-this.target)?this.tick=this.target:this.tick+=e;try{this.propagate()}finally{this.onStep.call(this),this.target==this.tick&&this.stop()}}}),a.deepExtend(s,{init:function(e){a.init(e,s.ui)},Utils:u,Range:n,Ticker:r})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/diagram/math.min",["dataviz/diagram/utils.min","kendo.dataviz.core.min"],e)}(function(){!function(e,t){function n(e){return Math.abs(e)<F}function i(e,t,i,o,r){var a,s,l,d,c=(t.x-e.x)*(o.y-i.y)-(t.y-e.y)*(o.x-i.x);if(!n(c)&&(a=(e.y-i.y)*(o.x-i.x)-(e.x-i.x)*(o.y-i.y),s=(e.y-i.y)*(t.x-e.x)-(e.x-i.x)*(t.y-e.y),l=a/c,d=s/c,!r||!(l<0||l>1||d<0||d>1)))return new A(e.x+l*(t.x-e.x),e.y+l*(t.y-e.y))}function o(e,t){var n,i,o;do n=2*Math.random()-1,i=2*Math.random()-1,o=n*n+i*i;while(!o||o>1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}function r(e){var t,n,i;for(D.isUndefined(e)&&(e=10),t="",n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",i=e;i>0;--i)t+=n.charAt(Math.round(Math.random()*(n.length-1)));return t}var a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y=window.kendo,x=y.dataviz.diagram,C=y.Class,S=y.deepExtend,T=y.dataviz,D=x.Utils,A=T.Point2D,E=y.isFunction,I=D.contains,M=e.map,R=3,F=1e-6;S(A.fn,{plus:function(e){return new A(this.x+e.x,this.y+e.y)},minus:function(e){return new A(this.x-e.x,this.y-e.y)},offset:function(e){return new A(this.x-e,this.y-e)},times:function(e){return new A(this.x*e,this.y*e)},normalize:function(){return 0===this.length()?new A:this.times(1/this.length())},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},toString:function(){return"("+this.x+","+this.y+")"},lengthSquared:function(){return this.x*this.x+this.y*this.y},middleOf:function(e,t){return new A(t.x-e.x,t.y-e.y).times(.5).plus(e)},toPolar:function(e){var t,n,i,o=1;if(e&&(o=180/Math.PI),t=Math.atan2(Math.abs(this.y),Math.abs(this.x)),n=Math.PI/2,i=this.length(),0===this.x){if(0===this.y)return new u(0,0);if(this.y>0)return new u(i,o*n);if(this.y<0)return new u(i,3*o*n)}else if(this.x>0){if(0===this.y)return new u(i,0);if(this.y>0)return new u(i,o*t);if(this.y<0)return new u(i,o*(4*n-t))}else{if(0===this.y)return new u(i,2*n);if(this.y>0)return new u(i,o*(2*n-t));if(this.y<0)return new u(i,o*(2*n+t))}},isOnLine:function(e,t){var n,i,o,r,a;return e.x>t.x&&(n=t,t=e,e=n),i=new s(e.x,e.y).inflate(R,R),o=new s(t.x,t.y).inflate(R,R),!!i.union(o).contains(this)&&(e.x===t.x||e.y===t.y||(e.y<t.y?(r=i.x+(o.x-i.x)*(this.y-(i.y+i.height))/(o.y+o.height-(i.y+i.height)),a=i.x+i.width+(o.x+o.width-(i.x+i.width))*(this.y-i.y)/(o.y-i.y)):(r=i.x+(o.x-i.x)*(this.y-i.y)/(o.y-i.y),a=i.x+i.width+(o.x+o.width-(i.x+i.width))*(this.y-(i.y+i.height))/(o.y+o.height-(i.y+i.height))),this.x>r&&this.x<a))}}),S(A,{parse:function(e){var t=e.slice(1,e.length-1),n=t.split(","),i=parseInt(n[0],10),o=parseInt(n[1],10);if(!isNaN(i)&&!isNaN(o))return new A(i,o)}}),a=C.extend({init:function(e,t,n){this.point=e,this.left=t,this.right=n}}),s=C.extend({init:function(e,t,n,i){this.x=e||0,this.y=t||0,this.width=n||0,this.height=i||0},contains:function(e){return e.x>=this.x&&e.x<=this.x+this.width&&e.y>=this.y&&e.y<=this.y+this.height},inflate:function(e,n){return n===t&&(n=e),this.x-=e,this.y-=n,this.width+=2*e+1,this.height+=2*n+1,this},offset:function(e,t){var n=e,i=t;return e instanceof A&&(n=e.x,i=e.y),this.x+=n,this.y+=i,this},union:function(e){var t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),i=Math.max(this.x+this.width,e.x+e.width),o=Math.max(this.y+this.height,e.y+e.height);return new s(t,n,i-t,o-n)},center:function(){return new A(this.x+this.width/2,this.y+this.height/2)},top:function(){return new A(this.x+this.width/2,this.y)},right:function(){return new A(this.x+this.width,this.y+this.height/2)},bottom:function(){return new A(this.x+this.width/2,this.y+this.height)},left:function(){return new A(this.x,this.y+this.height/2)},topLeft:function(){return new A(this.x,this.y)},topRight:function(){return new A(this.x+this.width,this.y)},bottomLeft:function(){return new A(this.x,this.y+this.height)},bottomRight:function(){return new A(this.x+this.width,this.y+this.height)},clone:function(){return new s(this.x,this.y,this.width,this.height)},isEmpty:function(){return!this.width&&!this.height},equals:function(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height},rotatedBounds:function(e){var t=this.clone(),n=this.rotatedPoints(e),i=n[0],o=n[1],r=n[2],a=n[3];return t.x=Math.min(r.x,i.x,o.x,a.x),t.y=Math.min(r.y,i.y,o.y,a.y),t.width=Math.max(r.x,i.x,o.x,a.x)-t.x,t.height=Math.max(r.y,i.y,o.y,a.y)-t.y,t},rotatedPoints:function(e){var t=this,n=t.center(),i=t.bottomRight().rotate(n,360-e),o=t.topLeft().rotate(n,360-e),r=t.topRight().rotate(n,360-e),a=t.bottomLeft().rotate(n,360-e);return[o,r,i,a]},toString:function(e){return e=e||" ",this.x+e+this.y+e+this.width+e+this.height},scale:function(e,t,n,i,o){var r,a,s,l=this.topLeft(),d=this.center();l.rotate(d,360-o).rotate(i,o),r=n.minus(l),a=new A(r.x*e,r.y*t),s=r.minus(a),l=l.plus(s),l.rotate(i,360-o).rotate(d,o),this.x=l.x,this.y=l.y,this.width*=e,this.height*=t},zoom:function(e){return this.x*=e,this.y*=e,this.width*=e,this.height*=e,this},overlaps:function(e){var t=this.bottomRight(),n=e.bottomRight(),i=!(t.x<e.x||t.y<e.y||n.x<this.x||n.y<this.y);return i}}),l=C.extend({init:function(e,t){this.width=e,this.height=t}}),l.prototype.Empty=new l(0,0),s.toRect=function(e){return e instanceof s||(e=new s(e.x,e.y,e.width,e.height)),e},s.empty=function(){return new s(0,0,0,0)},s.fromPoints=function(e,t){if(isNaN(e.x)||isNaN(e.y)||isNaN(t.x)||isNaN(t.y))throw"Some values are NaN.";return new s(Math.min(e.x,t.x),Math.min(e.y,t.y),Math.abs(e.x-t.x),Math.abs(e.y-t.y))},d={lines:function(e,t,n,o){return i(e,t,n,o)},segments:function(e,t,n,o){return i(e,t,n,o,!0)},rectWithLine:function(e,t,n){return d.segments(t,n,e.topLeft(),e.topRight())||d.segments(t,n,e.topRight(),e.bottomRight())||d.segments(t,n,e.bottomLeft(),e.bottomRight())||d.segments(t,n,e.topLeft(),e.bottomLeft())},rects:function(e,t,n){var i,o,r=t.topLeft(),a=t.topRight(),s=t.bottomLeft(),l=t.bottomRight(),c=t.center();return n&&(r=r.rotate(c,n),a=a.rotate(c,n),s=s.rotate(c,n),l=l.rotate(c,n)),i=e.contains(r)||e.contains(a)||e.contains(s)||e.contains(l)||d.rectWithLine(e,r,a)||d.rectWithLine(e,r,s)||d.rectWithLine(e,a,l)||d.rectWithLine(e,s,l),i||(r=e.topLeft(),a=e.topRight(),s=e.bottomLeft(),l=e.bottomRight(),n&&(o=360-n,r=r.rotate(c,o),a=a.rotate(c,o),s=s.rotate(c,o),l=l.rotate(c,o)),i=t.contains(r)||t.contains(a)||t.contains(s)||t.contains(l)),i}},c=C.extend({init:function(e){this.container=s.toRect(e)},align:function(e,t){var n,i=t.toLowerCase().split(" ");for(n=0;n<i.length;n++)e=this._singleAlign(e,i[n]);return e},_singleAlign:function(e,t){return E(this[t])?this[t](e):e},left:function(e){return this._align(e,this._left)},center:function(e){return this._align(e,this._center)},right:function(e){return this._align(e,this._right)},stretch:function(e){return this._align(e,this._stretch)},top:function(e){return this._align(e,this._top)},middle:function(e){return this._align(e,this._middle)},bottom:function(e){return this._align(e,this._bottom)},_left:function(e,t){t.x=e.x},_center:function(e,t){t.x=(e.width-t.width)/2||0},_right:function(e,t){t.x=e.width-t.width},_top:function(e,t){t.y=e.y},_middle:function(e,t){t.y=(e.height-t.height)/2||0},_bottom:function(e,t){t.y=e.height-t.height},_stretch:function(e,t){t.x=0,t.y=0,t.height=e.height,t.width=e.width},_align:function(e,t){return e=s.toRect(e),t(this.container,e),e}}),u=C.extend({init:function(e,t){this.r=e,this.angle=t}}),h=C.extend({init:function(e,t,n,i,o,r){this.a=e||0,this.b=t||0,this.c=n||0,this.d=i||0,this.e=o||0,this.f=r||0},plus:function(e){this.a+=e.a,this.b+=e.b,this.c+=e.c,this.d+=e.d,this.e+=e.e,this.f+=e.f},minus:function(e){this.a-=e.a,this.b-=e.b,this.c-=e.c,this.d-=e.d,this.e-=e.e,this.f-=e.f},times:function(e){return new h(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)},apply:function(e){return new A(this.a*e.x+this.c*e.y+this.e,this.b*e.x+this.d*e.y+this.f)},applyRect:function(e){return s.fromPoints(this.apply(e.topLeft()),this.apply(e.bottomRight()))},toString:function(){return"matrix("+this.a+" "+this.b+" "+this.c+" "+this.d+" "+this.e+" "+this.f+")"}}),S(h,{fromSVGMatrix:function(e){var t=new h;return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t},fromMatrixVector:function(e){var t=new h;return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t},fromList:function(e){if(6!==e.length)throw"The given list should consist of six elements.";var t=new h;return t.a=e[0],t.b=e[1],t.c=e[2],t.d=e[3],t.e=e[4],t.f=e[5],t},translation:function(e,t){var n=new h;return n.a=1,n.b=0,n.c=0,n.d=1,n.e=e,n.f=t,n},unit:function(){return new h(1,0,0,1,0,0)},rotation:function(e,t,n){var i=new h;return i.a=Math.cos(e*Math.PI/180),i.b=Math.sin(e*Math.PI/180),i.c=-i.b,i.d=i.a,i.e=t-t*i.a+n*i.b||0,i.f=n-n*i.a-t*i.b||0,i},scaling:function(e,t){var n=new h;return n.a=e,n.b=0,n.c=0,n.d=t,n.e=0,n.f=0,n},parse:function(e){var t,n;if(e){if(e=e.trim(),"matrix"===e.slice(0,6).toLowerCase()){if(n=e.slice(7,e.length-1).trim(),t=n.split(","),6===t.length)return h.fromList(M(t,function(e){return parseFloat(e)}));if(t=n.split(" "),6===t.length)return h.fromList(M(t,function(e){return parseFloat(e)}))}if("("===e.slice(0,1)&&")"===e.slice(e.length-1)&&(e=e.substr(1,e.length-1)),e.indexOf(",")>0&&(t=e.split(","),6===t.length))return h.fromList(M(t,function(e){return parseFloat(e)}));if(e.indexOf(" ")>0&&(t=e.split(" "),6===t.length))return h.fromList(M(t,function(e){return parseFloat(e)}))}return t}}),p=C.extend({init:function(e,t,n,i,o,r){this.a=e||0,this.b=t||0,this.c=n||0,this.d=i||0,this.e=o||0,this.f=r||0},fromMatrix:function(e){var t=new p;return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t}}),f={_distanceToLineSquared:function(e,t,n){function i(e,t){return(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)}if(t===n)return i(e,t);var o=n.x-t.x,r=n.y-t.y,a=(e.x-t.x)*o+(e.y-t.y)*r;return a<0?i(t,e):(a=(n.x-e.x)*o+(n.y-e.y)*r,a<0?i(n,e):(a=(n.x-e.x)*r-(n.y-e.y)*o,a*a/(o*o+r*r)))},distanceToLine:function(e,t,n){return Math.sqrt(this._distanceToLineSquared(e,t,n))},distanceToPolyline:function(e,t){var n,i,o,r,a=Number.MAX_VALUE;if(D.isUndefined(t)||0===t.length)return Number.MAX_VALUE;for(n=0;n<t.length-1;n++)i=t[n],o=t[n+1],r=this._distanceToLineSquared(e,i,o),r<a&&(a=r);return Math.sqrt(a)}},m=y.Class.extend({init:function(){this._buckets=[],this.length=0},add:function(e,t){var n=this._createGetBucket(e);return D.isDefined(t)&&(n.value=t),n},get:function(e){return this._bucketExists(e)?this._createGetBucket(e):null},set:function(e,t){this.add(e,t)},containsKey:function(e){return this._bucketExists(e)},remove:function(e){if(this._bucketExists(e)){var t=this._hash(e);return delete this._buckets[t],this.length--,e}},forEach:function(e){var t,n,i,o,r=this._hashes();for(t=0,n=r.length;t<n;t++)i=r[t],o=this._buckets[i],D.isUndefined(o)||e(o)},clone:function(){var e,t,n,i,o=new m,r=this._hashes();for(e=0,t=r.length;e<t;e++)n=r[e],i=this._buckets[n],D.isUndefined(i)||o.add(i.key,i.value);return o},_hashes:function(){var e,t=[];for(e in this._buckets)this._buckets.hasOwnProperty(e)&&t.push(e);return t},_bucketExists:function(e){var t=this._hash(e);return D.isDefined(this._buckets[t])},_createGetBucket:function(e){var t=this._hash(e),n=this._buckets[t];return D.isUndefined(n)&&(n={key:e},this._buckets[t]=n,this.length++),n},_hash:function(e){if(D.isNumber(e))return e;if(D.isString(e))return this._hashString(e);if(D.isObject(e))return this._objectHashId(e);throw"Unsupported key type."},_hashString:function(e){var t,n,i=0;if(0===e.length)return i;for(t=0;t<e.length;t++)n=e.charCodeAt(t),i=32*i-i+n;return i},_objectHashId:function(e){var t=e._hashId;return D.isUndefined(t)&&(t=r(),e._hashId=t),t}}),g=y.Observable.extend({init:function(t){var n,i=this;if(y.Observable.fn.init.call(i),this._hashTable=new m,this.length=0,D.isDefined(t))if(e.isArray(t))for(n=0;n<t.length;n++)this.add(t[n]);else t.forEach(function(e,t){this.add(e,t)},this)},add:function(e,t){var n=this._hashTable.get(e);n||(n=this._hashTable.add(e),this.length++,this.trigger("changed")),n.value=t},set:function(e,t){this.add(e,t)},get:function(e){var t=this._hashTable.get(e);if(t)return t.value;throw Error("Cannot find key "+e)},containsKey:function(e){return this._hashTable.containsKey(e)},remove:function(e){if(this.containsKey(e))return this.trigger("changed"),this.length--,this._hashTable.remove(e)},forEach:function(e,t){this._hashTable.forEach(function(n){e.call(t,n.key,n.value)})},forEachValue:function(e,t){this._hashTable.forEach(function(n){e.call(t,n.value)})},forEachKey:function(e,t){this._hashTable.forEach(function(n){e.call(t,n.key)})},keys:function(){var e=[];return this.forEachKey(function(t){e.push(t)}),e}}),v=y.Class.extend({init:function(){this._tail=null,this._head=null,this.length=0},enqueue:function(e){var t={value:e,next:null};this._head?(this._tail.next=t,this._tail=this._tail.next):(this._head=t,this._tail=this._head),this.length++},dequeue:function(){if(this.length<1)throw Error("The queue is empty.");var e=this._head.value;return this._head=this._head.next,this.length--,e},contains:function(e){for(var t=this._head;t;){if(t.value===e)return!0;t=t.next}return!1}}),_=y.Observable.extend({init:function(e){var t=this;y.Observable.fn.init.call(t),this._hashTable=new m,this.length=0,D.isDefined(e)&&(e instanceof m?e.forEach(function(e){this.add(e)}):e instanceof g&&e.forEach(function(e,t){this.add({key:e,value:t})},this))},contains:function(e){return this._hashTable.containsKey(e)},add:function(e){var t=this._hashTable.get(e);t||(this._hashTable.add(e,e),this.length++,this.trigger("changed"))},get:function(e){return this.contains(e)?this._hashTable.get(e).value:null},hash:function(e){return this._hashTable._hash(e)},remove:function(e){this.contains(e)&&(this._hashTable.remove(e),this.length--,this.trigger("changed"))},forEach:function(e,t){this._hashTable.forEach(function(t){e(t.value)},t)},toArray:function(){var e=[];return this.forEach(function(t){e.push(t)}),e}}),b=y.Class.extend({init:function(e,t){if(this.links=[],this.outgoing=[],this.incoming=[],this.weight=1,this.id=D.isDefined(e)?e:r(),D.isDefined(t)){this.associatedShape=t;var n=t.bounds();this.width=n.width,this.height=n.height,this.x=n.x,this.y=n.y}else this.associatedShape=null;this.data=null,this.type="Node",this.shortForm="Node '"+this.id+"'",this.isVirtual=!1},isIsolated:function(){return D.isEmpty(this.links)},bounds:function(e){return D.isDefined(e)?(this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,t):new x.Rect(this.x,this.y,this.width,this.height)},isLinkedTo:function(e){var t=this;return D.any(t.links,function(n){return n.getComplement(t)===e})},getChildren:function(){var e,t,n,i;if(0===this.outgoing.length)return[];for(e=[],t=0,n=this.outgoing.length;t<n;t++)i=this.outgoing[t],e.push(i.getComplement(this));return e},getParents:function(){var e,t,n,i;if(0===this.incoming.length)return[];for(e=[],t=0,n=this.incoming.length;t<n;t++)i=this.incoming[t],e.push(i.getComplement(this));return e},clone:function(){var e=new b;return D.isDefined(this.weight)&&(e.weight=this.weight),D.isDefined(this.balance)&&(e.balance=this.balance),D.isDefined(this.owner)&&(e.owner=this.owner),e.associatedShape=this.associatedShape,e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},adjacentTo:function(e){return null!==this.isLinkedTo(e)},removeLink:function(e){e.source===this&&(D.remove(this.links,e),D.remove(this.outgoing,e),e.source=null),e.target===this&&(D.remove(this.links,e),D.remove(this.incoming,e),e.target=null)},hasLinkTo:function(e){return D.any(this.outgoing,function(t){return t.target===e})},degree:function(){return this.links.length},incidentWith:function(e){return I(this.links,e)},getLinksWith:function(e){return D.all(this.links,function(t){return t.getComplement(this)===e},this)},getNeighbors:function(){var e=[];return D.forEach(this.incoming,function(t){e.push(t.getComplement(this))},this),D.forEach(this.outgoing,function(t){e.push(t.getComplement(this))},this),e}}),w=y.Class.extend({init:function(e,t,n,i){if(D.isUndefined(e))throw"The source of the new link is not set.";if(D.isUndefined(t))throw"The target of the new link is not set.";var o,a;o=D.isString(e)?new b(e):e,a=D.isString(t)?new b(t):t,this.source=o,this.target=a,this.source.links.push(this),this.target.links.push(this),this.source.outgoing.push(this),this.target.incoming.push(this),this.id=D.isDefined(n)?n:r(),this.associatedConnection=D.isDefined(i)?i:null,this.type="Link",this.shortForm="Link '"+this.source.id+"->"+this.target.id+"'"},getComplement:function(e){if(this.source!==e&&this.target!==e)throw"The given node is not incident with this link.";return this.source===e?this.target:this.source},getCommonNode:function(e){return this.source===e.source||this.source===e.target?this.source:this.target===e.source||this.target===e.target?this.target:null},isBridging:function(e,t){return this.source===e&&this.target===t||this.source===t&&this.target===e},getNodes:function(){return[this.source,this.target]},incidentWith:function(e){return this.source===e||this.target===e},adjacentTo:function(e){return I(this.source.links,e)||I(this.target.links,e)},changeSource:function(e){D.remove(this.source.links,this),D.remove(this.source.outgoing,this),e.links.push(this),e.outgoing.push(this),this.source=e},changeTarget:function(e){D.remove(this.target.links,this),D.remove(this.target.incoming,this),e.links.push(this),e.incoming.push(this),this.target=e},changesNodes:function(e,t){this.source===e?this.changeSource(t):this.target===e&&this.changeTarget(t)},reverse:function(){var e=this.source,t=this.target;return this.source=t,D.remove(e.outgoing,this),this.source.outgoing.push(this),this.target=e,D.remove(t.incoming,this),this.target.incoming.push(this),this},directTo:function(e){if(this.source!==e&&this.target!==e)throw"The given node is not incident with this link.";this.target!==e&&this.reverse()},createReverseEdge:function(){var e=this.clone();return e.reverse(),e.reversed=!0,e},clone:function(){var e=new w(this.source,this.target);return e}}),k=y.Class.extend({init:function(e){this.links=[],this.nodes=[],this._nodeMap=new g,this.diagram=null,this._root=null,D.isDefined(e)?D.isString(e)?this.id=e:(this.diagram=e,this.id=e.id):this.id=r(),this.bounds=new s,this._hasCachedRelationships=!1,this.type="Graph"},cacheRelationships:function(e){var t,n,i;if(D.isUndefined(e)&&(e=!1),!this._hasCachedRelationships||e){for(t=0,n=this.nodes.length;t<n;t++)i=this.nodes[t],i.children=this.getChildren(i),i.parents=this.getParents(i);this._hasCachedRelationships=!0}},assignLevels:function(e,t,n){var i,o,r,a;if(!e)throw"Start node not specified.";for(D.isUndefined(t)&&(t=0),this.cacheRelationships(),D.isUndefined(n)&&(n=new g,D.forEach(this.nodes,function(e){n.add(e,!1)})),n.set(e,!0),e.level=t,i=e.children,o=0,r=i.length;o<r;o++)a=i[o],a&&!n.get(a)&&this.assignLevels(a,t+1,n)},root:function(e){if(D.isUndefined(e)){if(this._root)return this._root;var t=D.first(this.nodes,function(e){return 0===e.incoming.length});return t?t:D.first(this.nodes)}this._root=e},getConnectedComponents:function(){var e,t,n,i,o;for(this.componentIndex=0,this.setItemIndices(),e=D.initArray(this.nodes.length,-1),t=0;t<this.nodes.length;t++)e[t]===-1&&(this._collectConnectedNodes(e,t),this.componentIndex++);for(n=[],i=0;i<this.componentIndex;++i)n[i]=new k;for(i=0;i<e.length;++i)o=n[e[i]],o.addNodeAndOutgoings(this.nodes[i]);return n.sort(function(e,t){return t.nodes.length-e.nodes.length}),n},_collectConnectedNodes:function(e,t){e[t]=this.componentIndex;var n=this.nodes[t];D.forEach(n.links,function(t){var i=t.getComplement(n),o=i.index;e[o]===-1&&this._collectConnectedNodes(e,o)},this)},calcBounds:function(){var e,t,n,i;if(this.isEmpty())return this.bounds=new s;for(e=null,t=0,n=this.nodes.length;t<n;t++)i=this.nodes[t],e=e?e.union(i.bounds()):i.bounds();return this.bounds=e},getSpanningTree:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p=new k,f=new g;for(p.root=e.clone(),p.root.level=0,p.root.id=e.id,f.add(e,p.root),e.level=0,i=[],o=[],p._addNode(p.root),i.push(e),o.push(e),r=1;o.length>0;)for(a=o.pop(),s=0;s<a.links.length;s++)l=a.links[s],d=l.getComplement(a),I(i,d)||(d.level=a.level+1,r<d.level+1&&(r=d.level+1),I(o,d)||o.push(d),I(i,d)||i.push(d),f.containsKey(a)?t=f.get(a):(t=a.clone(),t.level=a.level,t.id=a.id,f.add(a,t)),f.containsKey(d)?n=f.get(d):(n=d.clone(),n.level=d.level,n.id=d.id,f.add(d,n)),c=new w(t,n),p.addLink(c));for(u=[],h=0;h<r;h++)u.push([]);return D.forEach(p.nodes,function(e){u[e.level].push(e)}),p.treeLevels=u,p.cacheRelationships(),p},takeRandomNode:function(t,n){if(D.isUndefined(t)&&(t=[]),D.isUndefined(n)&&(n=4),0===this.nodes.length)return null;if(1===this.nodes.length)return I(t,this.nodes[0])?null:this.nodes[0];var i=e.grep(this.nodes,function(e){return!I(t,e)&&e.degree()<=n});return D.isEmpty(i)?null:i[D.randomInteger(0,i.length)]},isEmpty:function(){return D.isEmpty(this.nodes)},isHealthy:function(){return D.all(this.links,function(e){return I(this.nodes,e.source)&&I(this.nodes,e.target)},this)},getParents:function(e){if(!this.hasNode(e))throw"The given node is not part of this graph.";return e.getParents()},getChildren:function(e){if(!this.hasNode(e))throw"The given node is not part of this graph.";return e.getChildren()},addLink:function(e,n,i){var o,r,a;if(D.isUndefined(e))throw"The source of the link is not defined.";if(D.isUndefined(n)){if(D.isDefined(e.type)&&"Link"===e.type)return this.addExistingLink(e),t;throw"The target of the link is not defined."}return o=this.getNode(e),D.isUndefined(o)&&(o=this.addNode(e)),r=this.getNode(n),D.isUndefined(r)&&(r=this.addNode(n)),a=new w(o,r),D.isDefined(i)&&(a.owner=i),this.links.push(a),a},removeAllLinks:function(){for(;this.links.length>0;){var e=this.links[0];this.removeLink(e)}},addExistingLink:function(e){var t,n;this.hasLink(e)||(this.links.push(e),this.hasNode(e.source.id)?(t=this.getNode(e.source.id),e.changeSource(t)):this.addNode(e.source),this.hasNode(e.target.id)?(n=this.getNode(e.target.id),e.changeTarget(n)):this.addNode(e.target))},hasLink:function(e){if(D.isString(e))return D.any(this.links,function(t){return t.id===e});if("Link"===e.type)return I(this.links,e);throw"The given object is neither an identifier nor a Link."},getNode:function(e){var t=e.id||e;if(this._nodeMap.containsKey(t))return this._nodeMap.get(t)},hasNode:function(e){var t=e.id||e;return this._nodeMap.containsKey(t)},_addNode:function(e){this.nodes.push(e),this._nodeMap.add(e.id,e)},_removeNode:function(e){D.remove(this.nodes,e),this._nodeMap.remove(e.id)},removeNode:function(e){var t,n,i,o,r=e;if(D.isString(e)&&(r=this.getNode(e)),!D.isDefined(r))throw"The identifier should be a Node or the Id (string) of a node.";for(t=r.links,r.links=[],n=0,i=t.length;n<i;n++)o=t[n],this.removeLink(o);this._removeNode(r)},areConnected:function(e,t){return D.any(this.links,function(n){return n.source==e&&n.target==t||n.source==t&&n.target==e})},removeLink:function(e){D.remove(this.links,e),D.remove(e.source.outgoing,e),D.remove(e.source.links,e),D.remove(e.target.incoming,e),D.remove(e.target.links,e)},addNode:function(e,t,n){var i=null;if(!D.isDefined(e))throw"No Node or identifier for a new Node is given.";if(D.isString(e)){if(this.hasNode(e))return this.getNode(e);i=new b(e)}else{if(this.hasNode(e))return this.getNode(e);i=e}return D.isDefined(t)&&i.bounds(t),D.isDefined(n)&&(i.owner=n),this._addNode(i),i},addNodeAndOutgoings:function(e){this.hasNode(e)||this._addNode(e);var t=e.outgoing;e.outgoing=[],D.forEach(t,function(e){this.addExistingLink(e)},this)},setItemIndices:function(){var e;for(e=0;e<this.nodes.length;++e)this.nodes[e].index=e;for(e=0;e<this.links.length;++e)this.links[e].index=e},clone:function(e){var t,n=new k,i=D.isDefined(e)&&e===!0;return i&&(n.nodeMap=new g,n.linkMap=new g),t=new g,D.forEach(this.nodes,function(e){var o=e.clone();t.set(e,o),n._addNode(o),i&&n.nodeMap.set(o,e)}),D.forEach(this.links,function(e){if(t.containsKey(e.source)&&t.containsKey(e.target)){var o=n.addLink(t.get(e.source),t.get(e.target));i&&n.linkMap.set(o,e)}}),n},linearize:function(e){return k.Utils.linearize(this,e)},depthFirstTraversal:function(e,t){var n,i;if(D.isUndefined(e))throw"You need to supply a starting node.";if(D.isUndefined(t))throw"You need to supply an action.";if(!this.hasNode(e))throw"The given start-node is not part of this graph";n=this.getNode(e),i=[],this._dftIterator(n,t,i)},_dftIterator:function(e,t,n){var i,o,r,a;for(t(e),n.push(e),i=e.getChildren(),o=0,r=i.length;o<r;o++)a=i[o],I(n,a)||this._dftIterator(a,t,n)},breadthFirstTraversal:function(e,t){var n,i,o,r,a,s,l,d;if(D.isUndefined(e))throw"You need to supply a starting node.";if(D.isUndefined(t))throw"You need to supply an action.";if(!this.hasNode(e))throw"The given start-node is not part of this graph";for(n=this.getNode(e),i=new v,o=[],i.enqueue(n);i.length>0;)for(r=i.dequeue(),t(r),o.push(r),a=r.getChildren(),s=0,l=a.length;s<l;s++)d=a[s],I(o,d)||I(i,d)||i.enqueue(d)},_stronglyConnectedComponents:function(e,t,n,i,o,r,a){var s,l,d,c,u;for(n.add(t,a),i.add(t,a),a++,r.push(t),s=t.getChildren(),d=0,c=s.length;d<c;d++)l=s[d],n.containsKey(l)?I(r,l)&&i.add(t,Math.min(i.get(t),n.get(l))):(this._stronglyConnectedComponents(e,l,n,i,o,r,a),i.add(t,Math.min(i.get(t),i.get(l))));if(i.get(t)===n.get(t)){u=[];do l=r.pop(),u.push(l);while(l!==t);(!e||u.length>1)&&o.push(u)}},findCycles:function(e){var t,n,i,o,r,a,s;for(D.isUndefined(e)&&(e=!0),t=new g,n=new g,i=[],o=[],r=0,a=this.nodes.length;r<a;r++)s=this.nodes[r],t.containsKey(s)||this._stronglyConnectedComponents(e,s,t,n,i,o,0);return i},isAcyclic:function(){return D.isEmpty(this.findCycles())},isSubGraph:function(e){var t=e.linearize(),n=this.linearize();return D.all(t,function(e){return I(n,e)})},makeAcyclic:function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,v,_,b,w,k,y,x,C,S,T,A,E,I,M,R,F;if(this.isEmpty()||this.nodes.length<=1||this.links.length<=1)return[];if(2==this.nodes.length){if(e=[],this.links.length>1)for(t=this.links[0],n=t.source,i=0,o=this.links.length;i<o;i++)r=this.links[i],r.source!=n&&(a=r.reverse(),e.push(a));return e}for(s=this.clone(!0),l=this.nodes.length,d=new g,c=function(e){return 0===e.outgoing.length?2-l:0===e.incoming.length?l-2:e.outgoing.length-e.incoming.length},u=function(e,t){var n=c(e,l);t.containsKey(n)||t.set(n,[]),t.get(n).push(e)},D.forEach(s.nodes,function(e){u(e,d)}),h=[],p=[];s.nodes.length>0;){if(d.containsKey(2-l))for(_=d.get(2-l);_.length>0;){for(m=_.pop(),b=0;b<m.links.length;b++)w=m.links[b],f=w.getComplement(m),v=c(f,l),D.remove(d.get(v),f),f.removeLink(w),u(f,d);s._removeNode(m),p.unshift(m)}if(d.containsKey(l-2))for(k=d.get(l-2);k.length>0;){for(f=k.pop(),y=0;y<f.links.length;y++)x=f.links[y],m=x.getComplement(f),v=c(m,l),D.remove(d.get(v),m),m.removeLink(x),u(m,d);h.push(f),s._removeNode(f)}if(s.nodes.length>0)for(C=l-3;C>2-l;C--)if(d.containsKey(C)&&d.get(C).length>0){for(S=d.get(C),T=S.pop(),A=0;A<T.links.length;A++)E=T.links[A],I=E.getComplement(T),v=c(I,l),D.remove(d.get(v),I),I.removeLink(E),u(I,d);h.push(T),s._removeNode(T);break}}for(h=h.concat(p),M=new g,R=0;R<this.nodes.length;R++)M.set(s.nodeMap.get(h[R]),R);return F=[],D.forEach(this.links,function(e){M.get(e.source)>M.get(e.target)&&(e.reverse(),F.push(e))}),F}}),k.Predefined={EightGraph:function(){return k.Utils.parse(["1->2","2->3","3->4","4->1","3->5","5->6","6->7","7->3"])},Mindmap:function(){return k.Utils.parse(["0->1","0->2","0->3","0->4","0->5","1->6","1->7","7->8","2->9","9->10","9->11","3->12","12->13","13->14","4->15","4->16","15->17","15->18","18->19","18->20","14->21","14->22","5->23","23->24","23->25","6->26"])},ThreeGraph:function(){return k.Utils.parse(["1->2","2->3","3->1"])},BinaryTree:function(e){return D.isUndefined(e)&&(e=5),k.Utils.createBalancedTree(e,2)},Linear:function(e){return D.isUndefined(e)&&(e=10),k.Utils.createBalancedTree(e,1)},Tree:function(e,t){return k.Utils.createBalancedTree(e,t)},Forest:function(e,t,n){return k.Utils.createBalancedForest(e,t,n)},Workflow:function(){return k.Utils.parse(["0->1","1->2","2->3","1->4","4->3","3->5","5->6","6->3","6->7","5->4"])},Grid:function(e,t){var n,i,o,r,a,s=new x.Graph;if(e<=0&&t<=0)return s;for(n=0;n<e+1;n++)for(i=null,o=0;o<t+1;o++)r=new b(""+n+"."+o),s.addNode(r),i&&s.addLink(i,r),n>0&&(a=s.getNode(""+(n-1)+"."+o),s.addLink(a,r)),i=r;return s}},k.Utils={parse:function(e){var t,n,i,o,r,a=new x.Graph,s=e.slice();for(n=0,i=s.length;n<i;n++){if(o=s[n],D.isString(o)){if(o.indexOf("->")<0)throw"The link should be specified as 'a->b'.";if(r=o.split("->"),2!=r.length)throw"The link should be specified as 'a->b'.";t=new w(r[0],r[1]),a.addLink(t)}if(D.isObject(o)){if(!t)throw"Specification found before Link definition.";y.deepExtend(t,o)}}return a},linearize:function(e,t){var n,i,o,r;if(D.isUndefined(e))throw"Expected an instance of a Graph object in slot one.";for(D.isUndefined(t)&&(t=!1),n=[],i=0,o=e.links.length;i<o;i++)r=e.links[i],n.push(r.source.id+"->"+r.target.id),t&&n.push({id:r.id});return n},_addShape:function(e,t,n,i){return D.isUndefined(t)&&(t=new x.Point(0,0)),D.isUndefined(n)&&(n=r()),i=y.deepExtend({width:20,height:20,
id:n,radius:10,fill:"#778899",data:"circle",undoable:!1,x:t.x,y:t.y},i),e.addShape(i)},_addConnection:function(e,t,n,i){return e.connect(t,n,i)},createDiagramFromGraph:function(e,t,n,i){var o,r,a,l,d,c,u,h,p,f,m,g,v,_,b,w;if(D.isUndefined(e))throw"The diagram surface is undefined.";if(D.isUndefined(t))throw"No graph specification defined.";for(D.isUndefined(n)&&(n=!0),D.isUndefined(i)&&(i=!1),o=e.element.clientWidth||200,r=e.element.clientHeight||200,a=[],c=0,u=t.nodes.length;c<u;c++)l=t.nodes[c],h=l.position,D.isUndefined(h)&&(h=D.isDefined(l.x)&&D.isDefined(l.y)?new A(l.x,l.y):new A(D.randomInteger(10,o-20),D.randomInteger(10,r-20))),p={},"0"===l.id||i&&y.deepExtend(p,{width:150*Math.random()+20,height:80*Math.random()+50,data:"rectangle",fill:{color:"#778899"}}),d=this._addShape(e,h,l.id,p),f=d.bounds(),D.isDefined(f)&&(l.x=f.x,l.y=f.y,l.width=f.width,l.height=f.height),a[l.id]=d;for(m=0;m<t.links.length;m++)g=t.links[m],v=a[g.source.id],D.isUndefined(v)||(_=a[g.target.id],D.isUndefined(_)||this._addConnection(e,v,_,{id:g.id}));if(n)for(b=new e.SpringLayout(e),b.layoutGraph(t,{limitToView:!1}),w=0;w<t.nodes.length;w++)l=t.nodes[w],d=a[l.id],d.bounds(new s(l.x,l.y,l.width,l.height))},createBalancedTree:function(e,t){var n,i,o,r,a,s,l,d,c,u;if(D.isUndefined(e)&&(e=3),D.isUndefined(t)&&(t=3),n=new x.Graph,i=-1,o=[],e<=0||t<=0)return n;for(a=new b(""+ ++i),n.addNode(a),n.root=a,o.push(a),s=0;s<e;s++){for(r=[],l=0;l<o.length;l++)for(d=o[l],c=0;c<t;c++)u=new b(""+ ++i),n.addLink(d,u),r.push(u);o=r}return n},createBalancedForest:function(e,t,n){var i,o,r,a,s,l,d,c,u,h,p;if(D.isUndefined(e)&&(e=3),D.isUndefined(t)&&(t=3),D.isUndefined(n)&&(n=5),i=new x.Graph,o=-1,r=[],e<=0||t<=0||n<=0)return i;for(s=0;s<n;s++)for(l=new b(""+ ++o),i.addNode(l),r=[l],d=0;d<e;d++){for(a=[],c=0;c<r.length;c++)for(u=r[c],h=0;h<t;h++)p=new b(""+ ++o),i.addLink(u,p),a.push(p);r=a}return i},createRandomConnectedGraph:function(e,t,n){var i,o,r,a,s,l,d,c,u,h;if(D.isUndefined(e)&&(e=40),D.isUndefined(t)&&(t=4),D.isUndefined(n)&&(n=!1),i=new x.Graph,o=-1,e<=0)return i;if(r=new b(""+ ++o),i.addNode(r),1===e)return i;if(e>1){for(a=1;a<e&&(s=i.takeRandomNode([],t),s);a++)l=i.addNode(""+a),i.addLink(s,l);if(!n&&e>1)for(d=D.randomInteger(1,e),c=0;c<d;c++)u=i.takeRandomNode([],t),h=i.takeRandomNode([],t),u&&h&&!i.areConnected(u,h)&&i.addLink(u,h);return i}},randomDiagram:function(e,t,n,i,o){var r=y.dataviz.diagram.Graph.Utils.createRandomConnectedGraph(t,n,i);k.Utils.createDiagramFromGraph(e,r,!1,o)}},y.deepExtend(x,{init:function(e){y.init(e,x.ui)},Point:A,Intersect:d,Geometry:f,Rect:s,Size:l,RectAlign:c,Matrix:h,MatrixVector:p,normalVariable:o,randomId:r,Dictionary:g,HashTable:m,Queue:v,Set:_,Node:b,Link:w,Graph:k,PathDefiner:a})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/diagram/svg.min",["kendo.drawing.min","dataviz/diagram/math.min"],e)}(function(){!function(e,t){function n(e,t){var n,i,o,r=this.options,a=!1;for(o=0;o<t.length;o++)i=t[o],n=e[i],H(n)&&r[i]!==n&&(r[i]=n,a=!0);return a}function i(e){return{x:e.x||0,y:e.y||0,width:e.width||0,height:e.height||0}}function o(e){if(e){var t=e;return N(t)&&(t={color:t}),t.color&&(t.color=r(t.color)),t}}function r(e){var t;return t=e!=q?new W.Color(e).toHex():e}function a(e,t){var n=t.x-e.x,i=t.y-e.y,o=W.util.deg(Math.atan2(i,n));return o}function s(e,t){return new W.Segment(new V.Point(e,t))}function l(e){if(e)return new V.Rect([e.x,e.y],[e.width,e.height])}var d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I=window.kendo,M=I.dataviz.diagram,R=I.Class,F=I.deepExtend,P=M.Point,z=M.Rect,B=M.Matrix,L=M.Utils,H=L.isNumber,N=L.isString,O=M.MatrixVector,V=I.geometry,W=I.drawing,U=W.util.defined,j=e.inArray,q="transparent",G={none:"none",arrowStart:"ArrowStart",filledCircle:"FilledCircle",arrowEnd:"ArrowEnd"},$=360,K="start",Y="end",Q="width",X="height",Z="x",J="y";M.Markers=G,d=R.extend({init:function(e,t){this.x=e,this.y=t},toMatrix:function(){return B.scaling(this.x,this.y)},toString:function(){return I.format("scale({0},{1})",this.x,this.y)},invert:function(){return new d(1/this.x,1/this.y)}}),c=R.extend({init:function(e,t){this.x=e,this.y=t},toMatrixVector:function(){return new O(0,0,0,0,this.x,this.y)},toMatrix:function(){return B.translation(this.x,this.y)},toString:function(){return I.format("translate({0},{1})",this.x,this.y)},plus:function(e){this.x+=e.x,this.y+=e.y},times:function(e){this.x*=e,this.y*=e},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},normalize:function(){0!==this.Length&&this.times(1/this.length())},invert:function(){return new c((-this.x),(-this.y))}}),u=R.extend({init:function(e,t,n){this.x=t||0,this.y=n||0,this.angle=e},toString:function(){return this.x&&this.y?I.format("rotate({0},{1},{2})",this.angle,this.x,this.y):I.format("rotate({0})",this.angle)},toMatrix:function(){return B.rotation(this.angle,this.x,this.y)},center:function(){return new P(this.x,this.y)},invert:function(){return new u($-this.angle,this.x,this.y)}}),u.ZERO=new u(0),u.create=function(e){return new u(e.angle,e.x,e.y)},u.parse=function(e){var t=e.slice(1,e.length-1).split(","),n=t[0],i=t[1],o=t[2],r=new u(n,i,o);return r},h=R.extend({init:function(e,n,i,o,r,a){this.translate=new c(e,n),i!==t&&o!==t&&(this.scale=new d(i,o)),r!==t&&(this.rotate=a?new u(r,a.x,a.y):new u(r))},toString:function(){var e=function(e){return e?""+e:""};return e(this.translate)+e(this.rotate)+e(this.scale)},render:function(e){e._transform=this,e._renderTransform()},toMatrix:function(){var e=B.unit();return this.translate&&(e=e.times(this.translate.toMatrix())),this.rotate&&(e=e.times(this.rotate.toMatrix())),this.scale&&(e=e.times(this.scale.toMatrix())),e},invert:function(){var e,n,i=this.rotate?this.rotate.invert():t,o=i?i.toMatrix():B.unit(),r=this.scale?this.scale.invert():t,a=r?r.toMatrix():B.unit(),s=new P((-this.translate.x),(-this.translate.y));return s=o.times(a).apply(s),e=new c(s.x,s.y),n=new h,n.translate=e,n.rotate=i,n.scale=r,n}}),p={_setScale:function(){var e=this.options,t=this._originWidth,n=this._originHeight,i=e.width/t,o=e.height/n;H(i)||(i=1),H(o)||(o=1),this._transform.scale=new d(i,o)},_setTranslate:function(){var e=this.options,t=e.x||0,n=e.y||0;this._transform.translate=new c(t,n)},_initSize:function(){var e=this.options,t=!1;e.autoSize!==!1&&(U(e.width)||U(e.height))&&(this._measure(!0),this._setScale(),t=!0),(U(e.x)||U(e.y))&&(this._setTranslate(),t=!0),t&&this._renderTransform()},_updateSize:function(e){var t=!1;return this.options.autoSize!==!1&&this._diffNumericOptions(e,[Q,X])&&(t=!0,this._measure(!0),this._setScale()),this._diffNumericOptions(e,[Z,J])&&(t=!0,this._setTranslate()),t&&this._renderTransform(),t}},f=R.extend({init:function(e){var t=this;t.options=F({},t.options,e),t.id=t.options.id,t._originSize=z.empty(),t._transform=new h},visible:function(e){return this.drawingContainer().visible(e)},redraw:function(e){e&&e.id&&(this.id=e.id)},position:function(e,n){var i=this.options;return U(e)?(U(n)?(i.x=e,i.y=n):e instanceof P&&(i.x=e.x,i.y=e.y),this._transform.translate=new c(i.x,i.y),this._renderTransform(),t):new P(i.x,i.y)},rotate:function(e,t){return U(e)&&(this._transform.rotate=new u(e,t.x,t.y),this._renderTransform()),this._transform.rotate||u.ZERO},drawingContainer:function(){return this.drawingElement},_renderTransform:function(){var e=this._transform.toMatrix();this.drawingContainer().transform(new V.Matrix(e.a,e.b,e.c,e.d,e.e,e.f))},_hover:function(){},_diffNumericOptions:n,_measure:function(e){var t,n,i;return!this._measured||e?(n=this._boundingBox()||new V.Rect,i=n.topLeft(),t=new z(i.x,i.y,n.width(),n.height()),this._originSize=t,this._originWidth=t.width,this._originHeight=t.height,this._measured=!0):t=this._originSize,t},_boundingBox:function(){return this.drawingElement.rawBBox()}}),m=f.extend({init:function(e){f.fn.init.call(this,e),e=this.options,e.fill=o(e.fill),e.stroke=o(e.stroke)},options:{stroke:{color:"gray",width:1},fill:{color:q}},fill:function(e,t){this._fill({color:r(e),opacity:t})},stroke:function(e,t,n){this._stroke({color:r(e),width:t,opacity:n})},redraw:function(e){var t,n;e&&(t=e.stroke,n=e.fill,t&&this._stroke(o(t)),n&&this._fill(o(n)),f.fn.redraw.call(this,e))},_hover:function(e){var t,n=this.drawingElement,i=this.options,r=i.hover;r&&r.fill&&(t=e?o(r.fill):i.fill,n.fill(t.color,t.opacity))},_stroke:function(e){var t,n=this.options;F(n,{stroke:e}),e=n.stroke,t=null,e.width>0&&(t={color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}),this.drawingElement.options.set("stroke",t)},_fill:function(e){var t,n,i,o=this.options;F(o,{fill:e||{}}),t=o.fill,t.gradient?(n=t.gradient,i="radial"===n.type?W.RadialGradient:W.LinearGradient,this.drawingElement.fill(new i(n))):this.drawingElement.fill(t.color,t.opacity)}}),g=m.extend({init:function(e){e=this._textColor(e),m.fn.init.call(this,e),this._font(),this._initText(),this._initSize()},options:{fontSize:15,fontFamily:"sans-serif",stroke:{width:0},fill:{color:"black"},autoSize:!0},_initText:function(){var e=this.options;this.drawingElement=new W.Text(U(e.text)?e.text:"",new V.Point,{font:e.font}),this._fill(),this._stroke()},_textColor:function(e){return e&&e.color&&(e=F({},e,{fill:{color:e.color}})),e},_font:function(){var e,t=this.options;t.fontFamily&&U(t.fontSize)?(e=[],t.fontStyle&&e.push(t.fontStyle),t.fontWeight&&e.push(t.fontWeight),e.push(t.fontSize+(H(t.fontSize)?"px":"")),e.push(t.fontFamily),t.font=e.join(" ")):delete t.font},content:function(e){return this.drawingElement.content(e)},redraw:function(e){var t,n;e&&(t=!1,n=this.options,e=this._textColor(e),m.fn.redraw.call(this,e),(e.fontFamily||U(e.fontSize)||e.fontStyle||e.fontWeight)&&(F(n,{fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight}),this._font(),this.drawingElement.options.set("font",n.font),t=!0),e.text&&(this.content(e.text),t=!0),!this._updateSize(e)&&t&&this._initSize())}}),F(g.fn,p),v=m.extend({init:function(e){m.fn.init.call(this,e),this._initPath(),this._setPosition()},_setPosition:function(){var e=this.options,t=e.x,n=e.y;(U(t)||U(n))&&this.position(t||0,n||0)},redraw:function(e){e&&(m.fn.redraw.call(this,e),this._diffNumericOptions(e,[Q,X])&&this._drawPath(),this._diffNumericOptions(e,[Z,J])&&this._setPosition())},_initPath:function(){var e=this.options;this.drawingElement=new W.Path({stroke:e.stroke,closed:!0}),this._fill(),this._drawPath()},_drawPath:function(){var e=this.drawingElement,t=i(this.options),n=t.width,o=t.height;e.segments.elements([s(0,0),s(n,0),s(n,o),s(0,o)])}}),_=m.extend({init:function(e){m.fn.init.call(this,e);var t=this.options.anchor;this.anchor=new V.Point(t.x,t.y),this.createElement()},options:{stroke:{color:q,width:0},fill:{color:"black"}},_transformToPath:function(e,t){var n=t.transform();return e&&n&&(e=e.transformCopy(n)),e},redraw:function(e){e&&(e.position&&(this.options.position=e.position),m.fn.redraw.call(this,e))}}),b=_.extend({options:{radius:4,anchor:{x:0,y:0}},createElement:function(){var e=this.options;this.drawingElement=new W.Circle(new V.Circle(this.anchor,e.radius),{fill:e.fill,stroke:e.stroke})},positionMarker:function(e){var t,n,i=this.options,o=i.position,r=e.segments;t=o==K?r[0]:r[r.length-1],t&&(n=this._transformToPath(t.anchor(),e),this.drawingElement.transform(V.transform().translate(n.x,n.y)))}}),w=_.extend({options:{path:"M 0 0 L 10 5 L 0 10 L 3 5 z",anchor:{x:10,y:5}},createElement:function(){var e=this.options;this.drawingElement=W.Path.parse(e.path,{fill:e.fill,stroke:e.stroke})},positionMarker:function(e){var t,n,i=this._linePoints(e),o=i.start,r=i.end,s=V.transform();o&&s.rotate(a(o,r),r),r&&(t=this.anchor,n=r.clone().translate(-t.x,-t.y),s.translate(n.x,n.y)),this.drawingElement.transform(s)},_linePoints:function(e){var t,n,i,o,r,a=this.options,s=e.segments;if(a.position==K?(i=s[0],i&&(n=i.anchor(),t=i.controlOut(),o=s[1],!t&&o&&(t=o.anchor()))):(i=s[s.length-1],i&&(n=i.anchor(),t=i.controlIn(),r=s[s.length-2],!t&&r&&(t=r.anchor()))),n)return{start:this._transformToPath(t,e),end:this._transformToPath(n,e)}}}),k={_getPath:function(e){var t=this.drawingElement;if(t instanceof W.MultiPath&&(t=e==K?t.paths[0]:t.paths[t.paths.length-1]),t&&t.segments.length)return t},_normalizeMarkerOptions:function(e){var t=e.startCap,n=e.endCap;N(t)&&(e.startCap={type:t}),N(n)&&(e.endCap={type:n})},_removeMarker:function(e){var t=this._markers[e];t&&(this.drawingContainer().remove(t.drawingElement),delete this._markers[e])},_createMarkers:function(){var e=this.options;this._normalizeMarkerOptions(e),this._markers={},this._markers[K]=this._createMarker(e.startCap,K),this._markers[Y]=this._createMarker(e.endCap,Y)},_createMarker:function(e,n){var i,o,r=(e||{}).type,a=this._getPath(n);return a?(r==G.filledCircle?i=b:r==G.arrowStart||r==G.arrowEnd?i=w:this._removeMarker(n),i?(o=new i(F({},e,{position:n})),o.positionMarker(a),this.drawingContainer().append(o.drawingElement),o):t):(this._removeMarker(n),t)},_positionMarker:function(e){var t,n=this._markers[e];n&&(t=this._getPath(e),t?n.positionMarker(t):this._removeMarker(e))},_capMap:{start:"startCap",end:"endCap"},_redrawMarker:function(e,t,n){var i,o,r,a,s;return this._normalizeMarkerOptions(n),i=this.options,o=this._capMap[t],r=(i[o]||{}).type,a=n[o],s=!1,a?(i[o]=F({},i[o],a),a.type&&r!=a.type?(this._removeMarker(t),this._markers[t]=this._createMarker(i[o],t),s=!0):this._markers[t]&&this._markers[t].redraw(a)):e&&!this._markers[t]&&i[o]&&(this._markers[t]=this._createMarker(i[o],t),s=!0),s},_redrawMarkers:function(e,t){!this._redrawMarker(e,K,t)&&e&&this._positionMarker(K),!this._redrawMarker(e,Y,t)&&e&&this._positionMarker(Y)}},y=m.extend({init:function(e){m.fn.init.call(this,e),this.container=new W.Group,this._createElements(),this._initSize()},options:{autoSize:!0},drawingContainer:function(){return this.container},data:function(e){var n=this.options;return e?(n.data!=e&&(n.data=e,this._setData(e),this._initSize(),this._redrawMarkers(!0,{})),t):n.data},redraw:function(e){var t,n;e&&(m.fn.redraw.call(this,e),t=this.options,n=e.data,U(n)&&t.data!=n?(t.data=n,this._setData(n),this._updateSize(e)||this._initSize(),this._redrawMarkers(!0,e)):(this._updateSize(e),this._redrawMarkers(!1,e)))},_createElements:function(){var e=this.options;this.drawingElement=W.Path.parse(e.data||"",{stroke:e.stroke}),this._fill(),this.container.append(this.drawingElement),this._createMarkers()},_setData:function(e){var t=this.drawingElement,n=W.Path.parse(e||""),i=n.paths.slice(0);n.paths.elements([]),t.paths.elements(i)}}),F(y.fn,p),F(y.fn,k),x=m.extend({init:function(e){m.fn.init.call(this,e),this.container=new W.Group,this._initPath(),this._createMarkers()},drawingContainer:function(){return this.container},redraw:function(e){var t,n;e&&(e=e||{},t=e.from,n=e.to,t&&(this.options.from=t),n&&(this.options.to=n),t||n?(this._drawPath(),this._redrawMarkers(!0,e)):this._redrawMarkers(!1,e),m.fn.redraw.call(this,e))},_initPath:function(){var e=this.options,t=this.drawingElement=new W.Path({stroke:e.stroke});this._fill(),this._drawPath(),this.container.append(t)},_drawPath:function(){var e=this.options,t=this.drawingElement,n=e.from||new P,i=e.to||new P;t.segments.elements([s(n.x,n.y),s(i.x,i.y)])}}),F(x.fn,k),C=m.extend({init:function(e){m.fn.init.call(this,e),this.container=new W.Group,this._initPath(),this._createMarkers()},drawingContainer:function(){return this.container},points:function(e){var n=this.options;return e?(n.points=e,this._updatePath(),t):n.points},redraw:function(e){if(e){var t=e.points;m.fn.redraw.call(this,e),t&&this._pointsDiffer(t)?(this.points(t),this._redrawMarkers(!0,e)):this._redrawMarkers(!1,e)}},_initPath:function(){var e=this.options;this.drawingElement=new W.Path({stroke:e.stroke}),this._fill(),this.container.append(this.drawingElement),e.points&&this._updatePath()},_pointsDiffer:function(e){var t,n=this.options.points,i=n.length!==e.length;if(!i)for(t=0;t<e.length;t++)if(n[t].x!==e[t].x||n[t].y!==e[t].y){i=!0;break}return i},_updatePath:function(){var e,t,n=this.drawingElement,i=this.options,o=i.points,r=[];for(t=0;t<o.length;t++)e=o[t],r.push(s(e.x,e.y));n.segments.elements(r)},options:{points:[]}}),F(C.fn,k),S=f.extend({init:function(e){f.fn.init.call(this,e),this._initImage()},redraw:function(e){e&&(e.source&&this.drawingElement.src(e.source),this._diffNumericOptions(e,[Q,X,Z,J])&&this.drawingElement.rect(this._rect()),f.fn.redraw.call(this,e))},_initImage:function(){var e=this.options,t=this._rect();this.drawingElement=new W.Image(e.source,t,{})},_rect:function(){var e=i(this.options),t=new V.Point(e.x,e.y),n=new V.Size(e.width,e.height);return new V.Rect(t,n)}}),T=f.extend({init:function(e){this.children=[],f.fn.init.call(this,e),this.drawingElement=new W.Group,this._initSize()},options:{autoSize:!1},append:function(e){this.drawingElement.append(e.drawingContainer()),this.children.push(e),this._childrenChange=!0},remove:function(e){this._remove(e)&&(this._childrenChange=!0)},_remove:function(e){var t=j(e,this.children);if(t>=0)return this.drawingElement.removeAt(t),this.children.splice(t,1),!0},clear:function(){this.drawingElement.clear(),this.children=[],this._childrenChange=!0},toFront:function(e){var t,n;for(n=0;n<e.length;n++)t=e[n],this._remove(t)&&this.append(t)},toBack:function(e){this._reorderChildren(e,0)},toIndex:function(e,t){this._reorderChildren(e,t)},_reorderChildren:function(e,t){var n,i,o,r,a,s=this.drawingElement,l=s.children.slice(0),d=this.children,c=H(t);for(n=0;n<e.length;n++)a=e[n],r=a.drawingContainer(),i=j(a,d),i>=0&&(l.splice(i,1),d.splice(i,1),o=c?t:t[n],l.splice(o,0,r),d.splice(o,0,a));s.clear(),s.append.apply(s,l)},redraw:function(e){e&&(this._childrenChange?(this._childrenChange=!1,this._updateSize(e)||this._initSize()):this._updateSize(e),f.fn.redraw.call(this,e))},_boundingBox:function(){var e,t,n,i,o=this.children;for(i=0;i<o.length;i++)t=o[i],t.visible()&&t._includeInBBox!==!1&&(n=t.drawingContainer().clippedBBox(null),n&&(e=e?V.Rect.union(e,n):n));return e}}),F(T.fn,p),D=T.extend({init:function(e,t){this.children=[],f.fn.init.call(this,t),this.drawingElement=new W.Layout(l(e),t),this._initSize()},rect:function(e){if(e)this.drawingElement.rect(l(e));else{var t=this.drawingElement.rect();if(t)return new z(t.origin.x,t.origin.y,t.size.width,t.size.height)}},reflow:function(){this.drawingElement.reflow()},redraw:function(e){I.deepExtend(this.drawingElement.options,e),T.fn.redraw.call(this,e)}}),A=m.extend({init:function(e){m.fn.init.call(this,e),this._initCircle(),this._initSize()},redraw:function(e){if(e){var t=this.options;e.center&&(F(t,{center:e.center}),this._center.move(t.center.x,t.center.y)),this._diffNumericOptions(e,["radius"])&&this._circle.setRadius(t.radius),this._updateSize(e),m.fn.redraw.call(this,e)}},_initCircle:function(){var e,t=this.options,n=t.width,i=t.height,o=t.radius;U(o)||(U(n)||(n=i),U(i)||(i=n),t.radius=o=Math.min(n,i)/2),e=t.center||{x:o,y:o},this._center=new V.Point(e.x,e.y),this._circle=new V.Circle(this._center,o),this.drawingElement=new W.Circle(this._circle,{stroke:t.stroke}),this._fill()}}),F(A.fn,p),E=R.extend({init:function(e,t){t=t||{},this.element=e,this.surface=W.Surface.create(e,t),I.isFunction(this.surface.translate)&&(this.translate=this._translate),this.drawingElement=new W.Group,this._viewBox=new z(0,0,t.width,t.height),this.size(this._viewBox)},bounds:function(){var e=this.drawingElement.clippedBBox();return new z(0,0,e.width(),e.height())},size:function(e){var t=this._viewBox;return U(e)&&(t.width=e.width,t.height=e.height,this.surface.setSize(e)),{width:t.width,height:t.height}},_translate:function(e,t){var n=this._viewBox;return U(e)&&U(t)&&(n.x=e,n.y=t,this.surface.translate({x:e,y:t})),{x:n.x,y:n.y}},draw:function(){this.surface.draw(this.drawingElement)},append:function(e){return this.drawingElement.append(e.drawingContainer()),this},remove:function(e){this.drawingElement.remove(e.drawingContainer())},insertBefore:function(){},clear:function(){this.drawingElement.clear()},destroy:function(t){this.surface.destroy(),t&&e(this.element).remove()}}),I.deepExtend(M,{init:function(e){I.init(e,M.ui)},diffNumericOptions:n,Element:f,Scale:d,Translation:c,Rotation:u,Circle:A,Group:T,Rectangle:v,Canvas:E,Path:y,Layout:D,Line:x,MarkerBase:_,ArrowMarker:w,CircleMarker:b,Polyline:C,CompositeTransform:h,TextBlock:g,Image:S,VisualBase:m})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/diagram/services.min",["kendo.drawing.min","dataviz/diagram/svg.min"],e)}(function(){!function(e,t){function n(e,t){return t.charCodeAt(0)==e||t.toUpperCase().charCodeAt(0)==e}function i(e,t){var n;return e.x==-1&&e.y==-1?n=t.bottomRight():1==e.x&&1==e.y?n=t.topLeft():e.x==-1&&1==e.y?n=t.topRight():1==e.x&&e.y==-1?n=t.bottomLeft():0===e.x&&e.y==-1?n=t.bottom():0===e.x&&1==e.y?n=t.top():1==e.x&&0===e.y?n=t.left():e.x==-1&&0===e.y&&(n=t.right()),n}function o(e){var t=e.options.editable;return t&&t.drag!==!1}function r(e,t){var n,i,o,r;for(r=0;r<e.connectors.length;r++)if(n=e.connectors[r],i=n.position(),o=new j(i.x,i.y),o.inflate(re,re),o.contains(t))return n}function a(e){return e.ctrlKey===!1&&e.altKey===!1&&e.shiftKey===!1}var s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E,I,M,R,F,P,z,B,L,H,N=window.kendo,O=N.dataviz,V=O.diagram,W=N.Class,U=V.Group,j=V.Rect,q=V.Rectangle,G=V.Utils,$=G.isUndefined,K=V.Point,Y=V.Circle,Q=V.Ticker,X=N.deepExtend,Z=N.ui.Movable,J=N.support.browser,ee=N.drawing.util,te=ee.defined,ne=e.inArray,ie=e.proxy,oe={arrow:"default",grip:"pointer",cross:"pointer",add:"pointer",move:"move",select:"pointer",south:"s-resize",east:"e-resize",west:"w-resize",north:"n-resize",rowresize:"row-resize",colresize:"col-resize"},re=10,ae="Auto",se="Top",le="Right",de="Left",ce="Bottom",ue=10,he=10,pe="dragStart",fe="drag",me="dragEnd",ge="itemRotate",ve="itemBoundsChange",_e=5,be=5,we="mouseEnter",ke="mouseLeave",ye="zoomStart",xe="zoomEnd",Ce=-2e4,Se=2e4,Te=.9,De=.93,Ae=5,Ee="transparent",Ie="pan",Me="rotated",Re="source",Fe="target",Pe={"-1":Re,1:Fe};V.Cursors=oe,s=N.Class.extend({init:function(e){this.layoutState=e,this.diagram=e.diagram},initState:function(){function e(e,t){var n=this.diagram.getShapeById(e);n&&(this.subjects.push(n),this.froms.push(n.bounds().topLeft()),this.tos.push(t.topLeft()))}this.froms=[],this.tos=[],this.subjects=[],this.layoutState.nodeMap.forEach(e,this)},update:function(e){if(!(this.subjects.length<=0))for(var t=0;t<this.subjects.length;t++)this.subjects[t].position(new K(this.froms[t].x+(this.tos[t].x-this.froms[t].x)*e,this.froms[t].y+(this.tos[t].y-this.froms[t].y)*e))}}),l=W.extend({init:function(e,t,n){this.animate=!$(n)&&n,this._initialState=e,this._finalState=t,this.title="Diagram layout"},undo:function(){this.setState(this._initialState)},redo:function(){this.setState(this._finalState)},setState:function(e){var t,n=e.diagram;this.animate?(e.linkMap.forEach(function(e,t){var i=n.getShapeById(e);i.visible(!1),i&&i.points(t)}),t=new Q,t.addAdapter(new s(e)),t.onComplete(function(){e.linkMap.forEach(function(e){var t=n.getShapeById(e);t.visible(!0)})}),t.play()):(e.nodeMap.forEach(function(e,t){var i=n.getShapeById(e);i&&i.position(t.topLeft())}),e.linkMap.forEach(function(e,t){var i=n.getShapeById(e);i&&i.points(t)}))}}),d=W.extend({init:function(e){this.units=[],this.title="Composite unit",e!==t&&this.units.push(e)},add:function(e){this.units.push(e)},undo:function(){for(var e=0;e<this.units.length;e++)this.units[e].undo()},redo:function(){for(var e=0;e<this.units.length;e++)this.units[e].redo()}}),c=W.extend({init:function(e,t,n){this.item=e,this._redoSource=t,this._redoTarget=n,te(t)&&(this._undoSource=e.source()),te(n)&&(this._undoTarget=e.target()),this.title="Connection Editing"},undo:function(){this._undoSource!==t&&this.item._updateConnector(this._undoSource,"source"),this._undoTarget!==t&&this.item._updateConnector(this._undoTarget,"target"),this.item.updateModel()},redo:function(){this._redoSource!==t&&this.item._updateConnector(this._redoSource,"source"),this._redoTarget!==t&&this.item._updateConnector(this._redoTarget,"target"),this.item.updateModel()}}),u=W.extend({init:function(e,t,n){this.item=e,this._undoSource=t,this._undoTarget=n,this._redoSource=e.source(),this._redoTarget=e.target(),this.title="Connection Editing"},undo:function(){this.item._updateConnector(this._undoSource,"source"),this.item._updateConnector(this._undoTarget,"target"),this.item.updateModel()},redo:function(){this.item._updateConnector(this._redoSource,"source"),this.item._updateConnector(this._redoTarget,"target"),this.item.updateModel()}}),h=W.extend({init:function(e){this.connection=e,this.diagram=e.diagram,this.targetConnector=e.targetConnector,this.title="Delete connection"},undo:function(){this.diagram._addConnection(this.connection,!1)},redo:function(){this.diagram.remove(this.connection,!1)}}),p=W.extend({init:function(e){this.shape=e,this.diagram=e.diagram,this.title="Deletion"},undo:function(){this.diagram._addShape(this.shape,!1),this.shape.select(!1)},redo:function(){this.shape.select(!1),this.diagram.remove(this.shape,!1)}}),f=W.extend({init:function(e,t,n){var i,o;for(this.shapes=e,this.undoStates=t,this.title="Transformation",this.redoStates=[],this.adorner=n,i=0;i<this.shapes.length;i++)o=this.shapes[i],this.redoStates.push(o.bounds())},undo:function(){var e,t;for(e=0;e<this.shapes.length;e++)t=this.shapes[e],t.bounds(this.undoStates[e]),t.hasOwnProperty("layout")&&t.layout(t,this.redoStates[e],this.undoStates[e]),t.updateModel();this.adorner&&(this.adorner.refreshBounds(),this.adorner.refresh())},redo:function(){var e,t;for(e=0;e<this.shapes.length;e++)t=this.shapes[e],t.bounds(this.redoStates[e]),t.hasOwnProperty("layout")&&t.layout(t,this.undoStates[e],this.redoStates[e]),t.updateModel();this.adorner&&(this.adorner.refreshBounds(),this.adorner.refresh())}}),m=W.extend({init:function(e,t){this.connection=e,this.diagram=t,this.title="New connection"},undo:function(){this.diagram.remove(this.connection,!1)},redo:function(){this.diagram._addConnection(this.connection,!1)}}),g=W.extend({init:function(e,t){this.shape=e,this.diagram=t,this.title="New shape"},undo:function(){this.diagram.deselect(),this.diagram.remove(this.shape,!1)},redo:function(){this.diagram._addShape(this.shape,!1)}}),v=W.extend({init:function(e,t,n){this.initial=e,this.finalPos=t,this.diagram=n,this.title="Pan Unit"},undo:function(){this.diagram.pan(this.initial)},redo:function(){this.diagram.pan(this.finalPos)}}),_=W.extend({init:function(e,t,n){var i,o;for(this.shapes=t,this.undoRotates=n,this.title="Rotation",this.redoRotates=[],this.redoAngle=e._angle,this.adorner=e,this.center=e._innerBounds.center(),i=0;i<this.shapes.length;i++)o=this.shapes[i],this.redoRotates.push(o.rotate().angle)},undo:function(){var e,t;for(e=0;e<this.shapes.length;e++)t=this.shapes[e],t.rotate(this.undoRotates[e],this.center,!1),t.hasOwnProperty("layout")&&t.layout(t),t.updateModel();this.adorner&&(this.adorner._initialize(),this.adorner.refresh())},redo:function(){var e,t;for(e=0;e<this.shapes.length;e++)t=this.shapes[e],t.rotate(this.redoRotates[e],this.center,!1),t.hasOwnProperty("layout")&&t.layout(t),t.updateModel();this.adorner&&(this.adorner._initialize(),this.adorner.refresh())}}),b=W.extend({init:function(e,t,n){this.diagram=e,this.indices=n,this.items=t,this.title="Rotate Unit"},undo:function(){this.diagram._toIndex(this.items,this.indices)},redo:function(){this.diagram.toFront(this.items,!1)}}),w=W.extend({init:function(e,t,n){this.diagram=e,this.indices=n,this.items=t,this.title="Rotate Unit"},undo:function(){this.diagram._toIndex(this.items,this.indices)},redo:function(){this.diagram.toBack(this.items,!1)}}),k=N.Observable.extend({init:function(e){N.Observable.fn.init.call(this,e),this.bind(this.events,e),this.stack=[],this.index=0,this.capacity=100},events:["undone","redone"],begin:function(){this.composite=new d},cancel:function(){this.composite=t},commit:function(e){this.composite.units.length>0&&this._restart(this.composite,e),this.composite=t},addCompositeItem:function(e){this.composite?this.composite.add(e):this.add(e)},add:function(e,t){this._restart(e,t)},pop:function(){this.index>0&&(this.stack.pop(),this.index--)},count:function(){return this.stack.length},undo:function(){this.index>0&&(this.index--,this.stack[this.index].undo(),this.trigger("undone"))},redo:function(){this.stack.length>0&&this.index<this.stack.length&&(this.stack[this.index].redo(),this.index++,this.trigger("redone"))},_restart:function(e,t){this.stack.splice(this.index,this.stack.length-this.index),this.stack.push(e),t!==!1?this.redo():this.index++,this.stack.length>this.capacity&&(this.stack.splice(0,this.stack.length-this.capacity),this.index=this.capacity)},clear:function(){this.stack=[],this.index=0}}),y=W.extend({init:function(e){this.toolService=e},start:function(){},move:function(){},end:function(){},tryActivate:function(){return!1},getCursor:function(){return oe.arrow}}),x=y.extend({init:function(t){var n,i,o,r,a=this,s=N.support.mobileOS?De:Te;y.fn.init.call(a,t),n=a.toolService.diagram,i=n.canvas,o=n.scroller=a.scroller=e(n.scrollable).kendoMobileScroller({friction:s,velocityMultiplier:Ae,mousewheelScrolling:!1,zoom:!1,scroll:ie(a._move,a)}).data("kendoMobileScroller"),i.translate&&(a.movableCanvas=new Z(i.element)),r=function(e,t,n){e.makeVirtual(),e.virtualSize(t||Ce,n||Se)},r(o.dimensions.x),r(o.dimensions.y),o.disable()},tryActivate:function(e,t){var n=this.toolService,i=n.diagram.options.pannable,o=t.ctrlKey;return te(i.key)&&(o=i.key&&"none"!=i.key?t[i.key+"Key"]:a(t)&&!te(n.hoveredItem)),i!==!1&&o&&!te(n.hoveredAdorner)&&!te(n._hoveredConnector)},start:function(){this.scroller.enable()},move:function(){},_move:function(e){var t=this,n=t.toolService.diagram,i=n.canvas,o=new K(e.scrollLeft,e.scrollTop);i.translate?(n._storePan(o.times(-1)),t.movableCanvas.moveTo(o),i.translate(o.x,o.y)):o=o.plus(n._pan.times(-1)),n.trigger(Ie,{pan:o})},end:function(){this.scroller.disable()},getCursor:function(){return oe.move}}),C=W.extend({init:function(e){this.toolService=e},tryActivate:function(){return!0},start:function(e,t){var n=this.toolService,i=n.diagram,o=n.hoveredItem;o&&(n.selectSingle(o,t),o.adorner&&(this.adorner=o.adorner,this.handle=this.adorner._hitTest(e))),this.handle||(this.handle=i._resizingAdorner._hitTest(e),this.handle&&(this.adorner=i._resizingAdorner)),this.adorner&&(this.adorner.isDragHandle(this.handle)&&i.trigger(pe,{shapes:this.adorner.shapes,connections:[]})?(n.startPoint=e,n.end(e)):this.adorner.start(e))},move:function(e){this.adorner&&(this.adorner.move(this.handle,e),this.adorner.isDragHandle(this.handle)&&this.toolService.diagram.trigger(fe,{shapes:this.adorner.shapes,connections:[]}))},end:function(){var e,n=this.toolService.diagram,i=this.adorner;i&&(i.isDragHandle(this.handle)&&n.trigger(me,{shapes:i.shapes,connections:[]})?i.cancel():(e=i.stop(),e&&n.undoRedoService.add(e,!1))),this.adorner=t,this.handle=t},getCursor:function(e){return this.toolService.hoveredItem?this.toolService.hoveredItem._getCursor(e):oe.arrow}}),S=W.extend({init:function(e){this.toolService=e},tryActivate:function(e,t){var n=this.toolService,i=n.diagram.options.selectable,o=i&&i.multiple!==!1;return o&&(o=i.key&&"none"!=i.key?t[i.key+"Key"]:a(t)),o&&!te(n.hoveredItem)&&!te(n.hoveredAdorner)},start:function(e){var t=this.toolService.diagram;t.deselect(),t.selector.start(e)},move:function(e){var t=this.toolService.diagram;t.selector.move(e)},end:function(e,t){var n=this.toolService.diagram,i=this.toolService.hoveredItem,o=n.selector.bounds();i&&i.isSelected||t.ctrlKey||n.deselect(),o.isEmpty()||n.selectArea(o),n.selector.end()},getCursor:function(){return oe.arrow}}),T=W.extend({init:function(e){this.toolService=e,this.type="ConnectionTool"},tryActivate:function(){return this.toolService._hoveredConnector},start:function(e,t){var n=this.toolService,i=n.diagram,r=n._hoveredConnector,a=i._createConnection({},r._c,e);
o(a)&&!i.trigger(pe,{shapes:[],connections:[a],connectionHandle:Fe})&&i._addConnection(a)?(n._connectionManipulation(a,r._c.shape,!0),n._removeHover(),n.selectSingle(n.activeConnection,t),"touchmove"==t.type&&(i._cachedTouchTarget=r.visual)):(a.source(null),n.end(e))},move:function(e){var t=this.toolService,n=t.activeConnection;return n.target(e),t.diagram.trigger(fe,{shapes:[],connections:[n],connectionHandle:Fe}),!0},end:function(e){var t,n=this.toolService,i=n.diagram,o=n.activeConnection,r=n.hoveredItem,a=n._hoveredConnector,s=i._cachedTouchTarget;o&&(t=a&&a._c!=o.sourceConnector?a._c:r&&r instanceof V.Shape?r.getConnector(ae)||r.getConnector(e):e,o.target(t),i.trigger(me,{shapes:[],connections:[o],connectionHandle:Fe})?(i.remove(o,!1),i.undoRedoService.pop()):(o.updateModel(),i._syncConnectionChanges()),n._connectionManipulation(),s&&(i._connectorsAdorner.visual.remove(s),i._cachedTouchTarget=null))},getCursor:function(){return oe.arrow}}),D=W.extend({init:function(e){this.toolService=e,this.type="ConnectionTool"},tryActivate:function(e,t){var n=this.toolService,i=n.diagram,o=i.options.selectable,r=n.hoveredItem,a=o!==!1&&r&&r.path&&!(r.isSelected&&t.ctrlKey);return a&&(this._c=r),a},start:function(e,t){var n,i,r,a=this.toolService,s=this._c;a.selectSingle(s,t),n=s.adorner,n&&(i=n._hitTest(e),r=Pe[i]),o(s)&&n&&!a.diagram.trigger(pe,{shapes:[],connections:[s],connectionHandle:r})?(this.handle=i,this.handleName=r,n.start(e)):(a.startPoint=e,a.end(e))},move:function(e){var t=this._c.adorner;if(o(this._c)&&t)return t.move(this.handle,e),this.toolService.diagram.trigger(fe,{shapes:[],connections:[this._c],connectionHandle:this.handleName}),!0},end:function(e){var t,n=this._c,i=n.adorner,r=this.toolService,a=r.diagram;i&&o(n)&&(t=i.stop(e),a.trigger(me,{shapes:[],connections:[n],connectionHandle:this.handleName})?t.undo():(a.undoRedoService.add(t,!1),n.updateModel(),a._syncConnectionChanges()))},getCursor:function(){return oe.move}}),A=W.extend({init:function(e){this.diagram=e,this.tools=[new x(this),new D(this),new T(this),new S(this),new C(this)],this.activeTool=t},start:function(e,t){return t=X({},t),this.activeTool&&this.activeTool.end(e,t),this._updateHoveredItem(e),this._activateTool(e,t),this.activeTool.start(e,t),this._updateCursor(e),this.diagram.focus(),this.diagram.canvas.surface.suspendTracking(),this.startPoint=e,!0},move:function(e,t){t=X({},t);var n=!0;return this.activeTool&&(n=this.activeTool.move(e,t)),n&&this._updateHoveredItem(e),this._updateCursor(e),!0},end:function(e,n){return n=X({},n),this.activeTool&&this.activeTool.end(e,n),this.diagram.canvas.surface.resumeTracking(),this.activeTool=t,this._updateCursor(e),!0},keyDown:function(e,t){var i,o=this.diagram;if(t=X({ctrlKey:!1,metaKey:!1,altKey:!1},t),!t.ctrlKey&&!t.metaKey||t.altKey){if(46===e||8===e)return i=this.diagram._triggerRemove(o.select()),i.length&&(this.diagram.remove(i,!0),this.diagram._syncChanges(),this.diagram._destroyToolBar()),!0;if(27===e)return this._discardNewConnection(),o.deselect(),o._destroyToolBar(),!0}else{if(n(e,"a"))return o.selectAll(),o._destroyToolBar(),!0;if(n(e,"z"))return o.undo(),o._destroyToolBar(),!0;if(n(e,"y"))return o.redo(),o._destroyToolBar(),!0;n(e,"c")?(o.copy(),o._destroyToolBar()):n(e,"x")?(o.cut(),o._destroyToolBar()):n(e,"v")?(o.paste(),o._destroyToolBar()):n(e,"l")?(o.layout(),o._destroyToolBar()):n(e,"d")&&(o._destroyToolBar(),o.copy(),o.paste())}},wheel:function(e,t){var n=this.diagram,i=t.delta,o=n.zoom(),r=n.options,a=r.zoomRate,s={point:e,meta:t,zoom:o};if(!n.trigger(ye,s))return i<0?o+=a:o-=a,o=N.dataviz.round(Math.max(r.zoomMin,Math.min(r.zoomMax,o)),2),s.zoom=o,n.zoom(o,s),n.trigger(xe,s),!0},setTool:function(e,t){e.toolService=this,this.tools[t]=e},selectSingle:function(e,t){var n,i=this.diagram,o=i.options.selectable;o&&!e.isSelected&&e.options.selectable!==!1&&(n=t.ctrlKey&&o.multiple!==!1,i.select(e,{addToSelection:n}))},_discardNewConnection:function(){this.newConnection&&(this.diagram.remove(this.newConnection),this.newConnection=t)},_activateTool:function(e,t){var n,i;for(n=0;n<this.tools.length;n++)if(i=this.tools[n],i.tryActivate(e,t)){this.activeTool=i;break}},_updateCursor:function(e){var t=this.diagram.element,n=this.activeTool?this.activeTool.getCursor(e):this.hoveredAdorner?this.hoveredAdorner._getCursor(e):this.hoveredItem?this.hoveredItem._getCursor(e):oe.arrow;t.css({cursor:n}),J.msie&&7==J.version&&(t[0].style.cssText=t[0].style.cssText)},_connectionManipulation:function(e,n,i){this.activeConnection=e,this.disabledShape=n,this.newConnection=i?this.activeConnection:t},_updateHoveredItem:function(e){var n=this._hitTest(e),i=this.diagram;n==this.hoveredItem||this.disabledShape&&n==this.disabledShape||(this.hoveredItem&&(i.trigger(ke,{item:this.hoveredItem}),this.hoveredItem._hover(!1)),n&&n.options.enable?(i.trigger(we,{item:n}),this.hoveredItem=n,this.hoveredItem._hover(!0)):this.hoveredItem=t)},_removeHover:function(){this.hoveredItem&&(this.hoveredItem._hover(!1),this.hoveredItem=t)},_hitTest:function(e){var n,i,o,r,a=this.diagram;if(this._hoveredConnector&&(this._hoveredConnector._hover(!1),this._hoveredConnector=t),a._connectorsAdorner._visible&&(n=a._connectorsAdorner._hitTest(e)))return n;if(n=this.diagram._resizingAdorner._hitTest(e)){if(this.hoveredAdorner=a._resizingAdorner,0!==n.x||0!==n.y)return;n=t}else this.hoveredAdorner=t;if(!this.activeTool||"ConnectionTool"!==this.activeTool.type){for(r=[],o=0;o<a._selectedItems.length;o++)i=a._selectedItems[o],i instanceof V.Connection&&r.push(i);n=this._hitTestItems(r,e)}return n||this._hitTestElements(e)},_hitTestElements:function(e){var t,n,i,o,a=this.diagram,s=this._hitTestItems(a.shapes,e),l=this._hitTestItems(a.connections,e);return this.activeTool&&"ConnectionTool"==this.activeTool.type||!s||!l||r(s,e)||(n=a.mainLayer,i=ne(s.visual,n.children),o=ne(l.visual,n.children),t=i>o?s:l),t||s||l},_hitTestItems:function(e,t){var n,i,o;for(n=e.length-1;n>=0;n--)if(i=e[n],o=i._hitTest(t))return o}}),E=N.Class.extend({init:function(){}}),I=E.extend({init:function(e){var t=this;E.fn.init.call(t),this.connection=e},hitTest:function(e){var t=this.getBounds().inflate(re);return!!t.contains(e)&&V.Geometry.distanceToPolyline(e,this.connection.allPoints())<re},getBounds:function(){var e,t=this.connection.allPoints(),n=t[0],i=t[t.length-1],o=Math.max(n.x,i.x),r=Math.min(n.x,i.x),a=Math.min(n.y,i.y),s=Math.max(n.y,i.y);for(e=1;e<t.length-1;++e)o=Math.max(o,t[e].x),r=Math.min(r,t[e].x),a=Math.min(a,t[e].y),s=Math.max(s,t[e].y);return new j(r,a,o-r,s-a)}}),M=I.extend({init:function(e){var t=this;I.fn.init.call(t),this.connection=e},route:function(){}}),R=I.extend({SAME_SIDE_DISTANCE_RATIO:5,init:function(e){var t=this;I.fn.init.call(t),this.connection=e},routePoints:function(e,t,n,i){var o;return o=n&&i?this._connectorPoints(e,t,n,i):this._floatingPoints(e,t,n)},route:function(){var e=this.connection._resolvedSourceConnector,t=this.connection._resolvedTargetConnector,n=this.connection.sourcePoint(),i=this.connection.targetPoint(),o=this.routePoints(n,i,e,t);this.connection.points(o)},_connectorSides:[{name:"Top",axis:"y",boundsPoint:"topLeft",secondarySign:1},{name:"Left",axis:"x",boundsPoint:"topLeft",secondarySign:1},{name:"Bottom",axis:"y",boundsPoint:"bottomRight",secondarySign:-1},{name:"Right",axis:"x",boundsPoint:"bottomRight",secondarySign:-1}],_connectorSide:function(e,t){var n,i,o,r,a,s=e.position(),l=e.shape.bounds(Me),d={topLeft:l.topLeft(),bottomRight:l.bottomRight()},c=this._connectorSides,u=ee.MAX_NUM;for(a=0;a<c.length;a++)r=c[a],o=r.axis,n=Math.round(Math.abs(s[o]-d[r.boundsPoint][o])),n<u?(u=n,i=r):n===u&&(s[o]-t[o])*r.secondarySign>(s[i.axis]-t[i.axis])*i.secondarySign&&(i=r);return i.name},_sameSideDistance:function(e){var t=e.shape.bounds(Me);return Math.min(t.width,t.height)/this.SAME_SIDE_DISTANCE_RATIO},_connectorPoints:function(e,t,n,i){var o,r,a=this._connectorSide(n,t),s=this._connectorSide(i,e),l=t.x-e.x,d=t.y-e.y,c=this._sameSideDistance(n),u=[];return a===se||a==ce?s==se||s==ce?a==s?(r=a==se?Math.min(e.y,t.y)-c:Math.max(e.y,t.y)+c,u=[new K(e.x,r),new K(t.x,r)]):u=[new K(e.x,e.y+d/2),new K(t.x,e.y+d/2)]:u=[new K(e.x,t.y)]:s==de||s==le?a==s?(o=a==de?Math.min(e.x,t.x)-c:Math.max(e.x,t.x)+c,u=[new K(o,e.y),new K(o,t.y)]):u=[new K(e.x+l/2,e.y),new K(e.x+l/2,e.y+d)]:u=[new K(t.x,e.y)],u},_floatingPoints:function(e,t,n){var i,o,r,a=n?this._connectorSide(n,t):null,s=this._startHorizontal(e,t,a),l=[e,e,t,t],d=t.x-e.x,c=t.y-e.y,u=l.length;for(r=1;r<u-1;++r)s?r%2!==0?(i=d/(u/2),o=0):(i=0,o=c/((u-1)/2)):r%2!==0?(i=0,o=c/(u/2)):(i=d/((u-1)/2),o=0),l[r]=new K(l[r-1].x+i,l[r-1].y+o);return r--,l[u-2]=s&&r%2!==0||!s&&r%2===0?new K(l[u-1].x,l[u-2].y):new K(l[u-2].x,l[u-1].y),[l[1],l[2]]},_startHorizontal:function(e,t,n){var i;return i=null!==n&&(n===le||n===de)||Math.abs(e.x-t.x)>Math.abs(e.y-t.y)}}),F=W.extend({init:function(e,t){var n=this;n.diagram=e,n.options=X({},n.options,t),n.visual=new U,n.diagram._adorners.push(n)},refresh:function(){}}),P=F.extend({init:function(e,t){var n,i,o,r=this;r.connection=e,n=r.connection.diagram,r._ts=n.toolService,F.fn.init.call(r,n,t),i=r.connection.sourcePoint(),o=r.connection.targetPoint(),r.spVisual=new Y(X(r.options.handles,{center:i})),r.epVisual=new Y(X(r.options.handles,{center:o})),r.visual.append(r.spVisual),r.visual.append(r.epVisual)},options:{handles:{}},_getCursor:function(){return oe.move},start:function(e){switch(this.handle=this._hitTest(e),this.startPoint=e,this._initialSource=this.connection.source(),this._initialTarget=this.connection.target(),this.handle){case-1:this.connection.targetConnector&&this._ts._connectionManipulation(this.connection,this.connection.targetConnector.shape);break;case 1:this.connection.sourceConnector&&this._ts._connectionManipulation(this.connection,this.connection.sourceConnector.shape)}},move:function(e,t){switch(e){case-1:this.connection.source(t);break;case 1:this.connection.target(t);break;default:var n=t.minus(this.startPoint);this.startPoint=t,this.connection.sourceConnector||this.connection.source(this.connection.sourcePoint().plus(n)),this.connection.targetConnector||this.connection.target(this.connection.targetPoint().plus(n))}return this.refresh(),!0},stop:function(e){var n,i=this.diagram.toolService,o=i.hoveredItem;return n=i._hoveredConnector?i._hoveredConnector._c:o&&o instanceof V.Shape?o.getConnector(ae)||o.getConnector(e):e,this.handle===-1?this.connection.source(n):1===this.handle&&this.connection.target(n),this.handle=t,this._ts._connectionManipulation(),new u(this.connection,this._initialSource,this._initialTarget)},_hitTest:function(e){var t=this.connection.sourcePoint(),n=this.connection.targetPoint(),i=this.options.handles.width/2+re,o=this.options.handles.height/2+re,r=t.distanceTo(e),a=n.distanceTo(e),s=new j(t.x,t.y).inflate(i,o).contains(e),l=new j(n.x,n.y).inflate(i,o).contains(e),d=0;return s&&(!l||r<a)?d=-1:l&&(!s||a<r)&&(d=1),d},refresh:function(){this.spVisual.redraw({center:this.diagram.modelToLayer(this.connection.sourcePoint())}),this.epVisual.redraw({center:this.diagram.modelToLayer(this.connection.targetPoint())})}}),z=F.extend({init:function(e,t){var n=this;F.fn.init.call(n,e,t),n._refreshHandler=function(e){e.item==n.shape&&n.refresh()}},show:function(e){var t,n,i,o=this;for(o._visible=!0,o.shape=e,o.diagram.bind(ve,o._refreshHandler),t=e.connectors.length,o.connectors=[],o._clearVisual(),n=0;n<t;n++)i=new H(e.connectors[n]),o.connectors.push(i),o.visual.append(i.visual);o.visual.visible(!0),o.refresh()},_clearVisual:function(){var e=this;e.diagram._cachedTouchTarget?e._keepCachedTouchTarget():e.visual.clear()},_keepCachedTouchTarget:function(){var e,t=this,n=t.visual.children,i=n.length,o=ne(t.diagram._cachedTouchTarget,n);for(e=i-1;e>=0;e--)e!=o&&t.visual.remove(n[e])},destroy:function(){var e=this;e.diagram.unbind(ve,e._refreshHandler),e.shape=t,e._visible=t,e.visual.visible(!1)},_hitTest:function(e){var t,n;for(n=0;n<this.connectors.length;n++)if(t=this.connectors[n],t._hitTest(e)){t._hover(!0),this.diagram.toolService._hoveredConnector=t;break}},refresh:function(){if(this.shape){var t=this.shape.bounds();t=this.diagram.modelToLayer(t),this.visual.position(t.topLeft()),e.each(this.connectors,function(){this.refresh()})}}}),B=F.extend({init:function(e,t){var n=this;F.fn.init.call(n,e,t),n._manipulating=!1,n.map=[],n.shapes=[],n._initSelection(),n._createHandles(),n.redraw(),n.diagram.bind("select",function(e){n._initialize(e.selected)}),n._refreshHandler=function(){n._internalChange||(n.refreshBounds(),n.refresh())},n._rotatedHandler=function(){1==n.shapes.length&&(n._angle=n.shapes[0].rotate().angle),n._refreshHandler()},n.diagram.bind(ve,n._refreshHandler).bind(ge,n._rotatedHandler),n.refreshBounds(),n.refresh()},options:{handles:{fill:{color:"#fff"},stroke:{color:"#282828"},height:7,width:7,hover:{fill:{color:"#282828"},stroke:{color:"#282828"}}},selectable:{stroke:{color:"#778899",width:1,dashType:"dash"},fill:{color:Ee}},offset:10},_initSelection:function(){var e=this,t=e.diagram,n=t.options.selectable,i=X({},e.options.selectable,n);e.rect=new q(i),e.visual.append(e.rect)},_resizable:function(){return this.options.editable&&this.options.editable.resize!==!1},_handleOptions:function(){return(this.options.editable.resize||{}).handles||this.options.handles},_createHandles:function(){var e,t,n,i;if(this._resizable())for(e=this._handleOptions(),i=-1;i<=1;i++)for(n=-1;n<=1;n++)0===i&&0===n||(t=new q(e),t.drawingElement._hover=ie(this._hover,this),this.map.push({x:i,y:n,visual:t}),this.visual.append(t))},bounds:function(e){return e?(this._innerBounds=e.clone(),this._bounds=this.diagram.modelToLayer(e).inflate(this.options.offset,this.options.offset),t):this._bounds},_hitTest:function(e){var t,n,i,o,r=this.diagram.modelToLayer(e),a=this.map.length;if(this._angle&&(r=r.clone().rotate(this._bounds.center(),this._angle)),this._resizable())for(t=0;t<a;t++)if(o=this.map[t],n=new K(o.x,o.y),i=this._getHandleBounds(n),i.offset(this._bounds.x,this._bounds.y),i.contains(r))return n;if(this._bounds.contains(r))return new K(0,0)},_getHandleBounds:function(e){if(this._resizable()){var t=this._handleOptions(),n=t.width,i=t.height,o=new j(0,0,n,i);return e.x<0?o.x=-n/2:0===e.x?o.x=Math.floor(this._bounds.width/2)-n/2:e.x>0&&(o.x=this._bounds.width+1-n/2),e.y<0?o.y=-i/2:0===e.y?o.y=Math.floor(this._bounds.height/2)-i/2:e.y>0&&(o.y=this._bounds.height+1-i/2),o}},_getCursor:function(e){var t,n=this._hitTest(e);if(n&&n.x>=-1&&n.x<=1&&n.y>=-1&&n.y<=1&&this._resizable()){if(t=this._angle,t&&(t=360-t,n.rotate(new K(0,0),t),n=new K(Math.round(n.x),Math.round(n.y))),n.x==-1&&n.y==-1)return"nw-resize";if(1==n.x&&1==n.y)return"se-resize";if(n.x==-1&&1==n.y)return"sw-resize";if(1==n.x&&n.y==-1)return"ne-resize";if(0===n.x&&n.y==-1)return"n-resize";if(0===n.x&&1==n.y)return"s-resize";if(1==n.x&&0===n.y)return"e-resize";if(n.x==-1&&0===n.y)return"w-resize"}return this._manipulating?oe.move:oe.select},_initialize:function(){var e,t,n=this,i=n.diagram.select();for(n.shapes=[],e=0;e<i.length;e++)t=i[e],t instanceof V.Shape&&(n.shapes.push(t),t._rotationOffset=new K);n._angle=1==n.shapes.length?n.shapes[0].rotate().angle:0,n._startAngle=n._angle,n._rotates(),n._positions(),n.refreshBounds(),n.refresh(),n.redraw()},_rotates:function(){var e,t,n=this;for(n.initialRotates=[],e=0;e<n.shapes.length;e++)t=n.shapes[e],n.initialRotates.push(t.rotate().angle)},_positions:function(){var e,t,n=this;for(n.initialStates=[],e=0;e<n.shapes.length;e++)t=n.shapes[e],n.initialStates.push(t.bounds())},_hover:function(e,t){if(this._resizable()){var n=this._handleOptions(),i=n.hover,o=n.stroke,r=n.fill;e&&G.isDefined(i.stroke)&&(o=X({},o,i.stroke)),e&&G.isDefined(i.fill)&&(r=i.fill),t.stroke(o.color,o.width,o.opacity),t.fill(r.color,r.opacity)}},start:function(e){var t,n;for(this._sp=e,this._cp=e,this._lp=e,this._manipulating=!0,this._internalChange=!0,this.shapeStates=[],t=0;t<this.shapes.length;t++)n=this.shapes[t],this.shapeStates.push(n.bounds())},redraw:function(){var e,t,n=this._resizable();for(e=0;e<this.map.length;e++)t=this.map[e],t.visual.visible(n)},angle:function(e){return te(e)&&(this._angle=e),this._angle},rotate:function(){var e,t,n=this._innerBounds.center(),i=this.angle();for(this._internalChange=!0,e=0;e<this.shapes.length;e++)t=this.shapes[e],i=(i+this.initialRotates[e]-this._startAngle)%360,t.rotate(i,n);this.refresh()},move:function(e,n){var r,a,s,l,d,c,u,h,p,f,m,g,v,_,b=new K,w=new K,k=0;if(e.y===-2&&e.x===-1){for(l=this._innerBounds.center(),this._angle=this._truncateAngle(G.findAngle(l,n)),c=0;c<this.shapes.length;c++)d=this.shapes[c],u=(this._angle+this.initialRotates[c]-this._startAngle)%360,d.rotate(u,l),d.hasOwnProperty("layout")&&d.layout(d),this._rotating=!0;this.refresh()}else{if(this.shouldSnap()){if(g=this._truncateDistance(n.minus(this._lp)),0===g.x&&0===g.y)return this._cp=n,t;r=g,this._lp=new K(this._lp.x+g.x,this._lp.y+g.y)}else r=n.minus(this._cp);for(this.isDragHandle(e)?(w=b=r,a=!0):(this._angle&&r.rotate(new K(0,0),this._angle),e.x==-1?b.x=r.x:1==e.x&&(w.x=r.x),e.y==-1?b.y=r.y:1==e.y&&(w.y=r.y)),a||(p=i(e,this._innerBounds),f=(this._innerBounds.width+r.x*e.x)/this._innerBounds.width,m=(this._innerBounds.height+r.y*e.y)/this._innerBounds.height),c=0;c<this.shapes.length;c++){if(d=this.shapes[c],s=d.bounds(),a){if(!o(d))continue;h=this._displaceBounds(s,b,w,a)}else h=s.clone(),h.scale(f,m,p,this._innerBounds.center(),d.rotate().angle),v=h.center(),v.rotate(s.center(),-this._angle),h=new j(v.x-h.width/2,v.y-h.height/2,h.width,h.height);h.width>=d.options.minWidth&&h.height>=d.options.minHeight&&(_=s,d.bounds(h),d.hasOwnProperty("layout")&&d.layout(d,_,h),_.width===h.width&&_.height===h.height||d.rotate(d.rotate().angle),k+=1)}k&&(k==c?(h=this._displaceBounds(this._innerBounds,b,w,a),this.bounds(h)):this.refreshBounds(),this.refresh()),this._positions()}this._cp=n},isDragHandle:function(e){return 0===e.x&&0===e.y},cancel:function(){var e,n=this.shapes,i=this.shapeStates;for(e=0;e<n.length;e++)n[e].bounds(i[e]);this.refreshBounds(),this.refresh(),this._manipulating=t,this._internalChange=t,this._rotating=t},_truncatePositionToGuides:function(e){return this.diagram.ruler?this.diagram.ruler.truncatePositionToGuides(e):e},_truncateSizeToGuides:function(e){return this.diagram.ruler?this.diagram.ruler.truncateSizeToGuides(e):e},_truncateAngle:function(e){var t=this.snapOptions(),n=Math.max(t.angle||he,be);return t?Math.floor(e%360/n)*n:e%360},_truncateDistance:function(e){var t,n;return e instanceof V.Point?new V.Point(this._truncateDistance(e.x),this._truncateDistance(e.y)):(t=this.snapOptions()||{},n=Math.max(t.size||ue,_e),t?Math.floor(e/n)*n:e)},snapOptions:function(){var e=this.diagram.options.editable,t=((e||{}).drag||{}).snap||{};return t},shouldSnap:function(){var e=this.diagram.options.editable,t=(e||{}).drag,n=(t||{}).snap;return e!==!1&&t!==!1&&n!==!1},_displaceBounds:function(e,t,n,i){var o,r=e.topLeft().plus(t),a=e.bottomRight().plus(n),s=j.fromPoints(r,a);return i||(o=s.center(),o.rotate(e.center(),-this._angle),s=new j(o.x-s.width/2,o.y-s.height/2,s.width,s.height)),s},stop:function(){var e,n,i,o;if(this._cp!=this._sp)if(this._rotating)e=new _(this,this.shapes,this.initialRotates),this._rotating=!1;else if(this._diffStates()){if(this.diagram.ruler)for(n=0;n<this.shapes.length;n++)i=this.shapes[n],o=i.bounds(),o=this._truncateSizeToGuides(this._truncatePositionToGuides(o)),i.bounds(o),this.refreshBounds(),this.refresh();for(n=0;n<this.shapes.length;n++)i=this.shapes[n],i.updateModel();e=new f(this.shapes,this.shapeStates,this),this.diagram._syncShapeChanges()}return this._manipulating=t,this._internalChange=t,this._rotating=t,e},_diffStates:function(){var e,t=this.shapes,n=this.shapeStates;for(e=0;e<t.length;e++)if(!t[e].bounds().equals(n[e]))return!0;return!1},refreshBounds:function(){var e=1==this.shapes.length?this.shapes[0].bounds().clone():this.diagram.boundingBox(this.shapes,!0);this.bounds(e)},refresh:function(){var t,n,i,o,r=this;this.shapes.length>0?(n=this.bounds(),this.visual.visible(!0),this.visual.position(n.topLeft()),e.each(this.map,function(){t=r._getHandleBounds(new K(this.x,this.y)),this.visual.position(t.topLeft())}),this.visual.position(n.topLeft()),i=new K(n.width/2,n.height/2),this.visual.rotate(this._angle,i),this.rect.redraw({width:n.width,height:n.height}),this.rotationThumb&&(o=this.options.editable.rotate.thumb,this._rotationThumbBounds=new j(n.center().x,n.y+o.y,0,0).inflate(o.width),this.rotationThumb.redraw({x:n.width/2-o.width/2}))):this.visual.visible(!1)}}),L=W.extend({init:function(e){var t=e.options.selectable;this.options=X({},this.options,t),this.visual=new q(this.options),this.diagram=e},options:{stroke:{color:"#778899",width:1,dashType:"dash"},fill:{color:Ee}},start:function(e){this._sp=this._ep=e,this.refresh(),this.diagram._adorn(this,!0)},end:function(){this._sp=this._ep=t,this.diagram._adorn(this,!1)},bounds:function(e){return e&&(this._bounds=e),this._bounds},move:function(e){this._ep=e,this.refresh()},refresh:function(){if(this._sp){var e=j.fromPoints(this.diagram.modelToLayer(this._sp),this.diagram.modelToLayer(this._ep));this.bounds(j.fromPoints(this._sp,this._ep)),this.visual.position(e.topLeft()),this.visual.redraw({height:e.height+1,width:e.width+1})}}}),H=W.extend({init:function(e){this.options=X({},e.options),this._c=e,this.visual=new Y(this.options),this.refresh()},_hover:function(e){var t=this.options,n=t.hover,i=t.stroke,o=t.fill;e&&G.isDefined(n.stroke)&&(i=X({},i,n.stroke)),e&&G.isDefined(n.fill)&&(o=n.fill),this.visual.redraw({stroke:i,fill:o})},refresh:function(){var e=this._c.shape.diagram.modelToView(this._c.position()),t=e.minus(this._c.shape.bounds("transformed").topLeft()),n=new j(e.x,e.y,0,0);n.inflate(this.options.width/2,this.options.height/2),this._visualBounds=n,this.visual.redraw({center:new K(t.x,t.y)})},_hitTest:function(e){var t=this._c.shape.diagram.modelToView(e);return this._visualBounds.contains(t)}}),X(V,{CompositeUnit:d,TransformUnit:f,PanUndoUnit:v,AddShapeUnit:g,AddConnectionUnit:m,DeleteShapeUnit:p,DeleteConnectionUnit:h,ConnectionEditAdorner:P,ConnectionTool:T,ConnectorVisual:H,UndoRedoService:k,ResizingAdorner:B,Selector:L,ToolService:A,ConnectorsAdorner:z,LayoutUndoUnit:l,ConnectionEditUnit:c,ToFrontUnit:b,ToBackUnit:w,ConnectionRouterBase:E,PolylineRouter:M,CascadingRouter:R,SelectionTool:S,ScrollerTool:x,PointerTool:C,ConnectionEditTool:D,RotateUnit:_})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/diagram/layout.min",["dataviz/diagram/math.min"],e)}(function(){!function(e,t){var n=window.kendo,i=n.dataviz.diagram,o=i.Graph,r=i.Node,a=i.Link,s=n.deepExtend,l=i.Size,d=i.Rect,c=i.Dictionary,u=i.Set,h=i.Graph,p=i.Utils,f=i.Point,m=1e-6,g=Math.PI/180,v=p.contains,_=e.grep,b=n.Class.extend({defaultOptions:{type:"Tree",subtype:"Down",roots:null,animate:!1,limitToView:!1,friction:.9,nodeDistance:50,iterations:300,horizontalSeparation:90,verticalSeparation:50,underneathVerticalTopOffset:15,underneathHorizontalOffset:15,underneathVerticalSeparation:15,grid:{width:1500,offsetX:50,offsetY:50,componentSpacingX:20,componentSpacingY:20},layerSeparation:50,layeredIterations:2,startRadialAngle:0,endRadialAngle:360,radialSeparation:150,radialFirstLevelSeparation:200,keepComponentsInOneRadialLayout:!1,ignoreContainers:!0,layoutContainerChildren:!1,ignoreInvisible:!0,animateTransitions:!1},init:function(){},gridLayoutComponents:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,m,g,v;if(!e)throw"No components supplied.";for(p.forEach(e,function(e){e.calcBounds()}),e.sort(function(e,t){return t.bounds.width-e.bounds.width}),t=this.options.grid.width,n=this.options.grid.componentSpacingX,i=this.options.grid.componentSpacingY,o=0,r=this.options.grid.offsetX,a=this.options.grid.offsetY,s=r,l=a,c=[],u=[];e.length>0;){for(s>=t&&(s=r,l+=o+i,o=0),h=e.pop(),this.moveToOffset(h,new f(s,l)),d=0;d<h.nodes.length;d++)u.push(h.nodes[d]);for(d=0;d<h.links.length;d++)c.push(h.links[d]);m=h.bounds,g=m.height,(g<=0||isNaN(g))&&(g=0),v=m.width,(v<=0||isNaN(v))&&(v=0),g>=o&&(o=g),s+=v+n}return{nodes:u,links:c}},moveToOffset:function(e,t){var n,i,o,r,a,s,l,c,u=e.bounds,h=t.x-u.x,p=t.y-u.y;for(n=0;n<e.nodes.length;n++)o=e.nodes[n],r=o.bounds(),0===r.width&&0===r.height&&0===r.x&&0===r.y&&(r=new d(0,0,0,0)),r.x+=h,r.y+=p,o.bounds(r);for(n=0;n<e.links.length;n++)if(a=e.links[n],a.points){for(s=[],l=a.points,i=0;i<l.length;i++)c=l[i],c.x+=h,c.y+=p,s.push(c);a.points=s}return this.currentHorizontalOffset+=u.width+this.options.grid.offsetX,new f(h,p)},transferOptions:function(e){this.options=n.deepExtend({},this.defaultOptions),p.isUndefined(e)||(this.options=n.deepExtend(this.options,e||{}))}}),w=n.Class.extend({init:function(e){this.nodeMap=new c,this.shapeMap=new c,this.nodes=[],this.edges=[],this.edgeMap=new c,this.finalNodes=[],this.finalLinks=[],this.ignoredConnections=[],this.ignoredShapes=[],this.hyperMap=new c,this.hyperTree=new o,this.finalGraph=null,this.diagram=e},convert:function(e){if(p.isUndefined(this.diagram))throw"No diagram to convert.";return this.options=n.deepExtend({ignoreInvisible:!0,ignoreContainers:!0,layoutContainerChildren:!1},e||{}),this.clear(),this._renormalizeShapes(),this._renormalizeConnections(),this.finalNodes=new c(this.nodes),this.finalLinks=new c(this.edges),this.finalGraph=new o,this.finalNodes.forEach(function(e){this.finalGraph.addNode(e)},this),this.finalLinks.forEach(function(e){this.finalGraph.addExistingLink(e)},this),this.finalGraph},mapConnection:function(e){return this.edgeMap.get(e.id)},mapShape:function(e){return this.nodeMap.get(e.id)},getEdge:function(e,t){return p.first(e.links,function(n){return n.getComplement(e)===t})},clear:function(){this.finalGraph=null,this.hyperTree=!this.options.ignoreContainers&&this.options.layoutContainerChildren?new h:null,this.hyperMap=!this.options.ignoreContainers&&this.options.layoutContainerChildren?new c:null,this.nodeMap=new c,this.shapeMap=new c,this.nodes=[],this.edges=[],this.edgeMap=new c,this.ignoredConnections=[],this.ignoredShapes=[],this.finalNodes=[],this.finalLinks=[]},listToRoot:function(e){var t=[],n=e.container;if(!n)return t;for(t.push(n);n.parentContainer;)n=n.parentContainer,t.push(n);return t.reverse(),t},firstNonIgnorableContainer:function(e){return e.isContainer&&!this._isIgnorableItem(e)?e:e.parentContainer?this.firstNonIgnorableContainer(e.parentContainer):null},isContainerConnection:function(e,t){return!(!e.isContainer||!this.isDescendantOf(e,t))||t.isContainer&&this.isDescendantOf(t,e)},isDescendantOf:function(e,t){var n,i,o,r;if(!e.isContainer)throw"Expecting a container.";if(e===t)return!1;if(v(e.children,t))return!0;for(n=[],i=0,o=e.children.length;i<o;i++)r=e.children[i],r.isContainer&&this.isDescendantOf(r,t)&&n.push(r);return n.length>0},isIgnorableItem:function(e){return this.options.ignoreInvisible?(!e.isCollapsed||!this._isVisible(e))&&!(!e.isCollapsed&&this._isVisible(e)):e.isCollapsed&&!this._isTop(e)},isShapeMapped:function(e){return e.isCollapsed&&!this._isVisible(e)&&!this._isTop(e)},leastCommonAncestor:function(e,t){var n,i,o,r,a,s;if(!e)throw"Parameter should not be null.";if(!t)throw"Parameter should not be null.";if(!this.hyperTree)throw"No hypertree available.";if(n=this.listToRoot(e),i=this.listToRoot(t),o=null,p.isEmpty(n)||p.isEmpty(i))return this.hyperTree.root.data;for(r=n[0],a=i[0],s=0;r===a&&(o=n[s],s++,!(s>=n.length||s>=i.length));)r=n[s],a=i[s];return o?_(this.hyperTree.nodes,function(e){return e.data.container===o}):this.hyperTree.root.data},_isTop:function(e){return!e.parentContainer},_isVisible:function(e){return!!e.visible()&&(e.parentContainer?this._isVisible(e.parentContainer):e.visible())},_isCollapsed:function(e){return!(!e.isContainer||!e.isCollapsed)||e.parentContainer&&this._isCollapsed(e.parentContainer)},_renormalizeShapes:function(){var e,t,n,i;if(!this.options.ignoreContainers)throw"Containers are not supported yet, but stay tuned.";for(e=0,t=this.diagram.shapes.length;e<t;e++)n=this.diagram.shapes[e],this.options.ignoreInvisible&&!this._isVisible(n)||n.isContainer?this.ignoredShapes.push(n):(i=new r(n.id,n),i.isVirtual=!1,this.nodeMap.add(n.id,i),this.nodes.push(i))},_renormalizeConnections:function(){var e,t,n,i,o,r,s,l;if(0!==this.diagram.connections.length)for(e=0,t=this.diagram.connections.length;e<t;e++)if(n=this.diagram.connections[e],this.isIgnorableItem(n))this.ignoredConnections.push(n);else if(i=n.sourceConnector?n.sourceConnector.shape:null,o=n.targetConnector?n.targetConnector.shape:null,i&&o)if(!v(this.ignoredShapes,i)||this.shapeMap.containsKey(i))if(!v(this.ignoredShapes,o)||this.shapeMap.containsKey(o))if(this.shapeMap.containsKey(i)&&(i=this.shapeMap[i]),this.shapeMap.containsKey(o)&&(o=this.shapeMap[o]),r=this.mapShape(i),s=this.mapShape(o),r===s||this.areConnectedAlready(r,s))this.ignoredConnections.push(n);else{if(null===r||null===s)throw"A shape was not mapped to a node.";if(!this.options.ignoreContainers)throw"Containers are not supported yet, but stay tuned.";r.isVirtual||s.isVirtual?this.ignoredConnections.push(n):(l=new a(r,s,n.id,n),this.edgeMap.add(n.id,l),this.edges.push(l))}else this.ignoredConnections.push(n);else this.ignoredConnections.push(n);else this.ignoredConnections.push(n)},areConnectedAlready:function(e,t){return p.any(this.edges,function(n){return n.source===e&&n.target===t||n.source===t&&n.target===e})}}),k=b.extend({init:function(e){var t=this;if(b.fn.init.call(t),p.isUndefined(e))throw"Diagram is not specified.";this.diagram=e},layout:function(e){var t,n,o,r,a,s;if(this.transferOptions(e),t=new w(this.diagram),n=t.convert(e),!n.isEmpty()&&(o=n.getConnectedComponents(),!p.isEmpty(o))){for(r=0;r<o.length;r++)a=o[r],this.layoutGraph(a,e);return s=this.gridLayoutComponents(o),new i.LayoutState(this.diagram,s)}},layoutGraph:function(e,t){var n,i,o;for(p.isDefined(t)&&this.transferOptions(t),this.graph=e,n=9*this.options.nodeDistance,this.temperature=n,i=this._expectedBounds(),this.width=i.width,this.height=i.height,o=0;o<this.options.iterations;o++)this.refineStage=o>=5*this.options.iterations/6,this.tick(),this.temperature=this.refineStage?n/30:n*(1-o/(2*this.options.iterations))},tick:function(){var e,t,n;for(e=0;e<this.graph.nodes.length;e++)this._repulsion(this.graph.nodes[e]);for(e=0;e<this.graph.links.length;e++)this._attraction(this.graph.links[e]);for(e=0;e<this.graph.nodes.length;e++){if(t=this.graph.nodes[e],n=Math.sqrt(t.dx*t.dx+t.dy*t.dy),0===n)return;t.x+=Math.min(n,this.temperature)*t.dx/n,t.y+=Math.min(n,this.temperature)*t.dy/n,this.options.limitToView&&(t.x=Math.min(this.width,Math.max(t.width/2,t.x)),t.y=Math.min(this.height,Math.max(t.height/2,t.y)))}},_shake:function(e){var t=Math.random()*this.options.nodeDistance/4,n=2*Math.random()*Math.PI;e.x+=t*Math.cos(n),e.y-=t*Math.sin(n)},_InverseSquareForce:function(e,t,n){var i,o,r,a,s,l,d;return this.refineStage?(o=t.x-n.x,r=t.y-n.y,a=t.width/2,s=t.height/2,l=n.width/2,d=n.height/2,i=Math.pow(o,2)/Math.pow(a+l+this.options.nodeDistance,2)+Math.pow(r,2)/Math.pow(s+d+this.options.nodeDistance,2)):i=Math.pow(e,2)/Math.pow(this.options.nodeDistance,2),4*i/3},_SquareForce:function(e,t,n){return 1/this._InverseSquareForce(e,t,n)},_repulsion:function(e){e.dx=0,e.dy=0,p.forEach(this.graph.nodes,function(t){var n,i,o,r;if(t!==e){for(;e.x===t.x&&e.y===t.y;)this._shake(t);n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i),r=2*this._SquareForce(o,e,t),e.dx+=n/o*r,e.dy+=i/o*r}},this)},_attraction:function(e){var t,n,i,o,r,a,s=e.target,l=e.source;if(l!==s){for(;l.x===s.x&&l.y===s.y;)this._shake(s);t=l.x-s.x,n=l.y-s.y,i=Math.sqrt(t*t+n*n),o=5*this._InverseSquareForce(i,l,s),r=t/i*o,a=n/i*o,s.dx+=r,s.dy+=a,l.dx-=r,l.dy-=a}},_expectedBounds:function(){var e,t,n,i,o,r=this.graph.nodes.length,a=1.5,s=4;return 0===r?e:(e=p.fold(this.graph.nodes,function(e,t){var n=t.width*t.height;return n>0?e+=Math.sqrt(n):0},0,this),t=e/r,n=t*Math.ceil(Math.sqrt(r)),
i=n*Math.sqrt(a),o=n/Math.sqrt(a),{width:i*s,height:o*s})}}),y=n.Class.extend({init:function(e){this.center=null,this.options=e},layout:function(e,t){if(this.graph=e,this.graph.nodes&&0!==this.graph.nodes.length){if(!v(this.graph.nodes,t))throw"The given root is not in the graph.";this.center=t,this.graph.cacheRelationships(),this.layoutSwitch()}},layoutLeft:function(e){var t,n,i,o,r,a,s,d;for(this.setChildrenDirection(this.center,"Left",!1),this.setChildrenLayout(this.center,"Default",!1),t=0,n=0,o=0;o<e.length;o++)r=e[o],r.TreeDirection="Left",a=this.measure(r,l.Empty),n=Math.max(n,a.Width),t+=a.height+this.options.verticalSeparation;for(t-=this.options.verticalSeparation,s=this.center.x-this.options.horizontalSeparation,i=this.center.y+(this.center.height-t)/2,o=0;o<e.length;o++)r=e[o],d=new f(s-r.Size.width,i),this.arrange(r,d),i+=r.Size.height+this.options.verticalSeparation},layoutRight:function(e){var t,n,i,o,r,a,s,d;for(this.setChildrenDirection(this.center,"Right",!1),this.setChildrenLayout(this.center,"Default",!1),t=0,n=0,o=0;o<e.length;o++)r=e[o],r.TreeDirection="Right",a=this.measure(r,l.Empty),n=Math.max(n,a.Width),t+=a.height+this.options.verticalSeparation;for(t-=this.options.verticalSeparation,s=this.center.x+this.options.horizontalSeparation+this.center.width,i=this.center.y+(this.center.height-t)/2,o=0;o<e.length;o++)r=e[o],d=new f(s,i),this.arrange(r,d),i+=r.Size.height+this.options.verticalSeparation},layoutUp:function(e){var t,n,i,o,r,a,s;for(this.setChildrenDirection(this.center,"Up",!1),this.setChildrenLayout(this.center,"Default",!1),t=0,o=0;o<e.length;o++)i=e[o],i.TreeDirection="Up",r=this.measure(i,l.Empty),t+=r.width+this.options.horizontalSeparation;for(t-=this.options.horizontalSeparation,a=this.center.x+this.center.width/2-t/2,o=0;o<e.length;o++)i=e[o],n=this.center.y-this.options.verticalSeparation-i.Size.height,s=new f(a,n),this.arrange(i,s),a+=i.Size.width+this.options.horizontalSeparation},layoutDown:function(e){var t,n,i,o,r,a,s;for(this.setChildrenDirection(this.center,"Down",!1),this.setChildrenLayout(this.center,"Default",!1),i=0,n=0;n<e.length;n++)t=e[n],t.treeDirection="Down",r=this.measure(t,l.Empty),i+=r.width+this.options.horizontalSeparation;for(i-=this.options.horizontalSeparation,a=this.center.x+this.center.width/2-i/2,o=this.center.y+this.options.verticalSeparation+this.center.height,n=0;n<e.length;n++)t=e[n],s=new f(a,o),this.arrange(t,s),a+=t.Size.width+this.options.horizontalSeparation},layoutRadialTree:function(){var e,t;if(this.setChildrenDirection(this.center,"Radial",!1),this.setChildrenLayout(this.center,"Default",!1),this.previousRoot=null,e=this.options.startRadialAngle*g,t=this.options.endRadialAngle*g,t<=e)throw"Final angle should not be less than the start angle.";this.maxDepth=0,this.origin=new f(this.center.x,this.center.y),this.calculateAngularWidth(this.center,0),this.maxDepth>0&&this.radialLayout(this.center,this.options.radialFirstLevelSeparation,e,t),this.center.Angle=t-e},tipOverTree:function(e,t){var n,i,o,r,a,s,d;for(p.isUndefined(t)&&(t=0),this.setChildrenDirection(this.center,"Down",!1),this.setChildrenLayout(this.center,"Default",!1),this.setChildrenLayout(this.center,"Underneath",!1,t),n=0,r=0;r<e.length;r++)o=e[r],o.TreeDirection="Down",a=this.measure(o,l.Empty),n+=a.width+this.options.horizontalSeparation;for(n-=this.options.horizontalSeparation,n-=e[e.length-1].width,n+=e[e.length-1].associatedShape.bounds().width,s=this.center.x+this.center.width/2-n/2,i=this.center.y+this.options.verticalSeparation+this.center.height,r=0;r<e.length;r++)o=e[r],d=new f(s,i),this.arrange(o,d),s+=o.Size.width+this.options.horizontalSeparation},calculateAngularWidth:function(e,t){var n,i,o,r,a,s,l;if(t>this.maxDepth&&(this.maxDepth=t),n=0,i=1e3,o=1e3,r=0===t?0:Math.sqrt(i*i+o*o)/t,e.children.length>0){for(a=0,s=e.children.length;a<s;a++)l=e.children[a],n+=this.calculateAngularWidth(l,t+1);n=Math.max(r,n)}else n=r;return e.sectorAngle=n,n},sortChildren:function(e){var t,n,i,o,r,a,s,l,d,c,u,h=0;if(e.parents.length>1)throw"Node is not part of a tree.";if(n=e.parents[0],n&&(i=new f(n.x,n.y),o=new f(e.x,e.y),h=this.normalizeAngle(Math.atan2(i.y-o.y,i.x-o.x))),r=e.children.length,0===r)return null;for(a=[],s=[],t=0;t<r;++t)l=e.children[t],d=new f(l.x,l.y),s[t]=t,a[t]=this.normalizeAngle(-h+Math.atan2(d.y-d.y,d.x-d.x));for(p.bisort(a,s),c=[],u=e.children,t=0;t<r;++t)c.push(u[s[t]]);return c},normalizeAngle:function(e){for(;e>2*Math.PI;)e-=2*Math.PI;for(;e<0;)e+=2*Math.PI;return e},radialLayout:function(e,t,n,i){var o,r,a,s,l,d=i-n,c=d/2,u=e.sectorAngle,h=0,p=this.sortChildren(e);for(o=0,r=p.length;o<r;o++)a=p[o],s=a,l=s.sectorAngle/u,a.children.length>0&&this.radialLayout(a,t+this.options.radialSeparation,n+h*d,n+(h+l)*d),this.setPolarLocation(a,t,n+h*d+l*c),s.angle=l*d,h+=l},setPolarLocation:function(e,t,n){e.x=this.origin.x+t*Math.cos(n),e.y=this.origin.y+t*Math.sin(n),e.BoundingRectangle=new d(e.x,e.y,e.width,e.height)},setChildrenDirection:function(e,t,n){var i=e.treeDirection;this.graph.depthFirstTraversal(e,function(e){e.treeDirection=t}),n||(e.treeDirection=i)},setChildrenLayout:function(e,t,n,i){p.isUndefined(i)&&(i=0);var o=e.childrenLayout;i>0?(this.graph.assignLevels(e),this.graph.depthFirstTraversal(e,function(e){e.level>=i+1&&(e.childrenLayout=t)})):(this.graph.depthFirstTraversal(e,function(e){e.childrenLayout=t}),n||(e.childrenLayout=o))},measure:function(e,t){var n,i,o,r,a,s,d,c=0,u=0,h=new l(0,0);if(!e)throw"";if(i=e.associatedShape.bounds(),o=i.width,r=i.height,1!==e.parents.length)throw"Node not in a spanning tree.";if(a=e.parents[0],"Undefined"===e.treeDirection&&(e.treeDirection=a.treeDirection),p.isEmpty(e.children))h=new l(Math.abs(o)<m?50:o,Math.abs(r)<m?25:r);else if(1===e.children.length){switch(e.treeDirection){case"Radial":n=this.measure(e.children[0],t),c=o+this.options.radialSeparation*Math.cos(e.AngleToParent)+n.width,u=r+Math.abs(this.options.radialSeparation*Math.sin(e.AngleToParent))+n.height;break;case"Left":case"Right":switch(e.childrenLayout){case"TopAlignedWithParent":break;case"BottomAlignedWithParent":break;case"Underneath":n=this.measure(e.children[0],t),c=o+n.width+this.options.underneathHorizontalOffset,u=r+this.options.underneathVerticalTopOffset+n.height;break;case"Default":n=this.measure(e.children[0],t),c=o+this.options.horizontalSeparation+n.width,u=Math.max(r,n.height);break;default:throw"Unhandled TreeDirection in the Radial layout measuring."}break;case"Up":case"Down":switch(e.childrenLayout){case"TopAlignedWithParent":case"BottomAlignedWithParent":break;case"Underneath":n=this.measure(e.children[0],t),c=Math.max(o,n.width+this.options.underneathHorizontalOffset),u=r+this.options.underneathVerticalTopOffset+n.height;break;case"Default":n=this.measure(e.children[0],t),u=r+this.options.verticalSeparation+n.height,c=Math.max(o,n.width);break;default:throw"Unhandled TreeDirection in the Down layout measuring."}break;default:throw"Unhandled TreeDirection in the layout measuring."}h=new l(c,u)}else{switch(e.treeDirection){case"Left":case"Right":switch(e.childrenLayout){case"TopAlignedWithParent":case"BottomAlignedWithParent":break;case"Underneath":for(c=o,u=r+this.options.underneathVerticalTopOffset,s=0;s<e.children.length;s++)d=e.children[s],n=this.measure(d,t),c=Math.max(c,n.width+this.options.underneathHorizontalOffset),u+=n.height+this.options.underneathVerticalSeparation;u-=this.options.underneathVerticalSeparation;break;case"Default":for(c=o,u=0,s=0;s<e.children.length;s++)d=e.children[s],n=this.measure(d,t),c=Math.max(c,o+this.options.horizontalSeparation+n.width),u+=n.height+this.options.verticalSeparation;u-=this.options.verticalSeparation;break;default:throw"Unhandled TreeDirection in the Right layout measuring."}break;case"Up":case"Down":switch(e.childrenLayout){case"TopAlignedWithParent":case"BottomAlignedWithParent":break;case"Underneath":for(c=o,u=r+this.options.underneathVerticalTopOffset,s=0;s<e.children.length;s++)d=e.children[s],n=this.measure(d,t),c=Math.max(c,n.width+this.options.underneathHorizontalOffset),u+=n.height+this.options.underneathVerticalSeparation;u-=this.options.underneathVerticalSeparation;break;case"Default":for(c=0,u=0,s=0;s<e.children.length;s++)d=e.children[s],n=this.measure(d,t),c+=n.width+this.options.horizontalSeparation,u=Math.max(u,n.height+this.options.verticalSeparation+r);c-=this.options.horizontalSeparation;break;default:throw"Unhandled TreeDirection in the Down layout measuring."}break;default:throw"Unhandled TreeDirection in the layout measuring."}h=new l(c,u)}return e.SectorAngle=Math.sqrt(c*c/4+u*u/4),e.Size=h,h},arrange:function(e,t){var n,i,o,r,a,s,l,c,u=e.associatedShape.bounds(),h=u.width,g=u.height;if(p.isEmpty(e.children))e.x=t.x,e.y=t.y,e.BoundingRectangle=new d(t.x,t.y,h,g);else switch(e.treeDirection){case"Left":switch(e.childrenLayout){case"TopAlignedWithParent":case"BottomAlignedWithParent":break;case"Underneath":for(c=t,e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),l=t.y+g+this.options.underneathVerticalTopOffset,n=0;n<r.children.length;n++)r=r.children[n],s=c.x-r.associatedShape.width-this.options.underneathHorizontalOffset,i=new f(s,l),this.arrange(r,i),l+=r.Size.height+this.options.underneathVerticalSeparation;break;case"Default":for(c=new f(t.x+e.Size.width-h,t.y+(e.Size.height-g)/2),e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),s=c.x-this.options.horizontalSeparation,l=t.y,n=0;n<e.children.length;n++)r=e.children[n],i=new f(s-r.Size.width,l),this.arrange(r,i),l+=r.Size.height+this.options.verticalSeparation;break;default:throw"Unsupported TreeDirection"}break;case"Right":switch(e.childrenLayout){case"TopAlignedWithParent":case"BottomAlignedWithParent":break;case"Underneath":for(c=t,e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),s=t.x+h+this.options.underneathHorizontalOffset,l=t.y+g+this.options.underneathVerticalTopOffset,n=0;n<e.children.length;n++)r=e.children[n],i=new f(s,l),this.arrange(r,i),l+=r.Size.height+this.options.underneathVerticalSeparation;break;case"Default":for(c=new f(t.x,t.y+(e.Size.height-g)/2),e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),s=t.x+h+this.options.horizontalSeparation,l=t.y,n=0;n<e.children.length;n++)r=e.children[n],i=new f(s,l),this.arrange(r,i),l+=r.Size.height+this.options.verticalSeparation;break;default:throw"Unsupported TreeDirection"}break;case"Up":if(c=new f(t.x+(e.Size.width-h)/2,t.y+e.Size.height-g),e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),Math.abs(c.x-t.x)<m){for(a=0,n=0;n<e.children.length;n++)o=e.children[n],a+=o.Size.width+this.options.horizontalSeparation;a-=this.options.horizontalSeparation,s=t.x+(h-a)/2}else s=t.x;for(n=0;n<e.children.length;n++)r=e.children[n],l=c.y-this.options.verticalSeparation-r.Size.height,i=new f(s,l),this.arrange(r,i),s+=r.Size.width+this.options.horizontalSeparation;break;case"Down":switch(e.childrenLayout){case"TopAlignedWithParent":case"BottomAlignedWithParent":break;case"Underneath":for(c=t,e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),s=t.x+this.options.underneathHorizontalOffset,l=t.y+g+this.options.underneathVerticalTopOffset,n=0;n<e.children.length;n++)r=e.children[n],i=new f(s,l),this.arrange(r,i),l+=r.Size.height+this.options.underneathVerticalSeparation;break;case"Default":if(c=new f(t.x+(e.Size.width-h)/2,t.y),e.x=c.x,e.y=c.y,e.BoundingRectangle=new d(e.x,e.y,e.width,e.height),Math.abs(c.x-t.x)<m){for(a=0,n=0;n<e.children.length;n++)o=e.children[n],a+=o.Size.width+this.options.horizontalSeparation;a-=this.options.horizontalSeparation,s=t.x+(h-a)/2}else s=t.x;for(n=0;n<e.children.length;n++)r=e.children[n],l=c.y+this.options.verticalSeparation+g,i=new f(s,l),this.arrange(r,i),s+=r.Size.width+this.options.horizontalSeparation;break;default:throw"Unsupported TreeDirection"}break;case"None":break;default:throw"Unsupported TreeDirection"}},layoutSwitch:function(){var e,t,n,i,o,r;if(this.center&&!p.isEmpty(this.center.children))switch(e=this.options.subtype,p.isUndefined(e)&&(e="Down"),r=this.center.children,e.toLowerCase()){case"radial":case"radialtree":this.layoutRadialTree();break;case"mindmaphorizontal":case"mindmap":t=this.center.children,1===this.center.children.length?this.layoutRight(t):(o=r.length/2,n=_(this.center.children,function(e){return p.indexOf(r,e)<o}),i=_(this.center.children,function(e){return p.indexOf(r,e)>=o}),this.layoutLeft(n),this.layoutRight(i));break;case"mindmapvertical":t=this.center.children,1===this.center.children.length?this.layoutDown(t):(o=r.length/2,n=_(this.center.children,function(e){return p.indexOf(r,e)<o}),i=_(this.center.children,function(e){return p.indexOf(r,e)>=o}),this.layoutUp(n),this.layoutDown(i));break;case"right":this.layoutRight(this.center.children);break;case"left":this.layoutLeft(this.center.children);break;case"up":case"bottom":this.layoutUp(this.center.children);break;case"down":case"top":this.layoutDown(this.center.children);break;case"tipover":case"tipovertree":if(this.options.tipOverTreeStartLevel<0)throw"The tip-over level should be a positive integer.";this.tipOverTree(this.center.children,this.options.tipOverTreeStartLevel);break;case"undefined":case"none":}}}),x=b.extend({init:function(e){var t=this;if(b.fn.init.call(t),p.isUndefined(e))throw"No diagram specified.";this.diagram=e},layout:function(e){var t,n;return this.transferOptions(e),t=new w(this.diagram),this.graph=t.convert(),n=this.layoutComponents(),new i.LayoutState(this.diagram,n)},layoutComponents:function(){var e,t,n,i,o,r,a,s;if(!this.graph.isEmpty()&&(e=this.graph.getConnectedComponents(),!p.isEmpty(e))){for(t=new y(this.options),n=[],i=0;i<e.length;i++){if(o=e[i],r=this.getTree(o),!r)throw"Failed to find a spanning tree for the component.";a=r.root,s=r.tree,t.layout(s,a),n.push(s)}return this.gridLayoutComponents(n)}},getTree:function(e){var t,n,i,o,r,a=null;if(this.options.roots&&this.options.roots.length>0)for(t=0,n=e.nodes.length;t<n;t++)for(i=e.nodes[t],o=0;o<this.options.roots.length;o++)if(r=this.options.roots[o],r===i.associatedShape){a=i;break}if(!a&&(a=e.root(),!a))throw"Unable to find a root for the tree.";return this.getTreeForRoot(e,a)},getTreeForRoot:function(e,t){var n=e.getSpanningTree(t);return p.isUndefined(n)||n.isEmpty()?null:{tree:n,root:n.root}}}),C=b.extend({init:function(e){var t=this;if(b.fn.init.call(t),p.isUndefined(e))throw"Diagram is not specified.";this.diagram=e},layout:function(e){var t,n,o,r,a,s;if(this.transferOptions(e),t=new w(this.diagram),n=t.convert(e),!n.isEmpty()&&(o=n.getConnectedComponents(),!p.isEmpty(o))){for(r=0;r<o.length;r++)a=o[r],this.layoutGraph(a,e);return s=this.gridLayoutComponents(o),new i.LayoutState(this.diagram,s)}},_initRuntimeProperties:function(){var e,t;for(e=0;e<this.graph.nodes.length;e++)t=this.graph.nodes[e],t.layer=-1,t.downstreamLinkCount=0,t.upstreamLinkCount=0,t.isVirtual=!1,t.uBaryCenter=0,t.dBaryCenter=0,t.upstreamPriority=0,t.downstreamPriority=0,t.gridPosition=0},_prepare:function(e){var t,n,i,o,r,a,s,l,d,u,h,f=[],m=new c,g=0;for(p.forEach(e.nodes,function(e){0===e.incoming.length&&(m.set(e,0),f.push(e))});f.length>0;)for(r=f.shift(),t=0;t<r.outgoing.length;t++)i=r.outgoing[t],a=i.target,o=m.containsKey(a)?Math.max(m.get(r)+1,m.get(a)):m.get(r)+1,m.set(a,o),o>g&&(g=o),v(f,a)||f.push(a);for(s=m.keys(),s.sort(function(e,t){var n=m.get(e),i=m.get(t);return p.sign(i-n)}),l=0;l<s.length;++l)if(d=s[l],u=Number.MAX_VALUE,0!==d.outgoing.length){for(n=0;n<d.outgoing.length;++n)i=d.outgoing[n],u=Math.min(u,m.get(i.target));u>1&&m.set(d,u-1)}for(this.layers=[],t=0;t<g+1;t++)h=[],h.linksTo={},this.layers.push(h);for(m.forEach(function(e,t){e.layer=t,this.layers[t].push(e)},this),n=0;n<this.layers.length;n++)for(h=this.layers[n],t=0;t<h.length;t++)h[t].gridPosition=t},layoutGraph:function(e,t){if(p.isUndefined(e))throw"No graph given or graph analysis of the diagram failed.";p.isDefined(t)&&this.transferOptions(t),this.graph=e,e.setItemIndices();var n=e.makeAcyclic();this._initRuntimeProperties(),this._prepare(e,t),this._dummify(),this._optimizeCrossings(),this._swapPairs(),this.arrangeNodes(),this._moveThingsAround(),this._dedummify(),p.forEach(n,function(e){e.points&&e.points.reverse()})},setMinDist:function(e,t,n){var i=e.layer,o=e.layerIndex;this.minDistances[i][o]=n},getMinDist:function(e,t){var n,i=0,o=e.layerIndex,r=t.layerIndex,a=e.layer,s=Math.min(o,r),l=Math.max(o,r);for(n=s;n<l;++n)i+=this.minDistances[a][n];return i},placeLeftToRight:function(e){var t,n,i,o,r,a,s,l,d,u,h=new c;for(i=0;i<this.layers.length;++i)if(o=e[i]){for(t=0;t<o.length;t++)n=o[t],h.containsKey(n)||this.placeLeft(n,h,i);for(r=Number.POSITIVE_INFINITY,t=0;t<o.length;t++)n=o[t],a=this.rightSibling(n),a&&this.nodeLeftClass.get(a)!==i&&(r=Math.min(r,h.get(a)-h.get(n)-this.getMinDist(n,a)));if(r===Number.POSITIVE_INFINITY){for(s=[],t=0;t<o.length;t++)for(n=o[t],l=[],p.addRange(l,this.upNodes.get(n)),p.addRange(l,this.downNodes.get(n)),d=0;d<l.length;d++)u=l[d],this.nodeLeftClass.get(u)<i&&s.push(h.get(u)-h.get(n));s.sort(),r=0===s.length?0:s.length%2===1?s[this.intDiv(s.length,2)]:(s[this.intDiv(s.length,2)-1]+s[this.intDiv(s.length,2)])/2}for(t=0;t<o.length;t++)n=o[t],h.set(n,h.get(n)+r)}return h},placeRightToLeft:function(e){var t,n,i,o,r,a,s,l,d,u,h=new c;for(i=0;i<this.layers.length;++i)if(o=e[i]){for(t=0;t<o.length;t++)n=o[t],h.containsKey(n)||this.placeRight(n,h,i);for(r=Number.NEGATIVE_INFINITY,t=0;t<o.length;t++)n=o[t],a=this.leftSibling(n),a&&this.nodeRightClass.get(a)!==i&&(r=Math.max(r,h.get(a)-h.get(n)+this.getMinDist(a,n)));if(r===Number.NEGATIVE_INFINITY){for(s=[],t=0;t<o.length;t++)for(n=o[t],l=[],p.addRange(l,this.upNodes.get(n)),p.addRange(l,this.downNodes.get(n)),d=0;d<l.length;d++)u=l[d],this.nodeRightClass.get(u)<i&&s.push(h.get(n)-h.get(u));s.sort(),r=0===s.length?0:s.length%2===1?s[this.intDiv(s.length,2)]:(s[this.intDiv(s.length,2)-1]+s[this.intDiv(s.length,2)])/2}for(t=0;t<o.length;t++)n=o[t],h.set(n,h.get(n)+r)}return h},_getLeftWing:function(){var e={value:null},t=this.computeClasses(e,1);return this.nodeLeftClass=e.value,t},_getRightWing:function(){var e={value:null},t=this.computeClasses(e,-1);return this.nodeRightClass=e.value,t},computeClasses:function(e,t){var n,i,o,r,a,s,l,d,u,h=0,p=e.value=new c;for(n=0;n<this.layers.length;++n)for(h=n,i=this.layers[n],o=1===t?0:i.length-1;0<=o&&o<i.length;o+=t)if(r=i[o],p.containsKey(r))h=p.get(r);else if(p.set(r,h),r.isVirtual)for(a=this._nodesInLink(r),s=0;s<a.length;s++)l=a[s],p.set(l,h);for(d=[],u=0;u<this.layers.length;u++)d.push(null);return p.forEach(function(e,t){null===d[t]&&(d[t]=[]),d[t].push(e)}),d},_isVerticalLayout:function(){return"up"===this.options.subtype.toLowerCase()||"down"===this.options.subtype.toLowerCase()||"vertical"===this.options.subtype.toLowerCase()},_isHorizontalLayout:function(){return"right"===this.options.subtype.toLowerCase()||"left"===this.options.subtype.toLowerCase()||"horizontal"===this.options.subtype.toLowerCase()},_isIncreasingLayout:function(){return"right"===this.options.subtype.toLowerCase()||"down"===this.options.subtype.toLowerCase()},_moveThingsAround:function(){function e(e,t){var n,i,o=Number.MIN_VALUE;for(n=0;n<e.length;++n)i=e[n],o=t._isVerticalLayout()?Math.max(o,i.height):Math.max(o,i.width);return o}var t,n,i,o,r,a,s,l,d,u,h,f,m,g,v,_,b,w,k,y,x,C,S,T,D,A,E;for(n=0;n<this.layers.length;++n)o=this.layers[n],o.sort(this._gridPositionComparer);for(this.minDistances=[],n=0;n<this.layers.length;++n)for(o=this.layers[n],this.minDistances[n]=[],r=0;r<o.length;++r)i=o[r],i.layerIndex=r,this.minDistances[n][r]=this.options.nodeDistance,r<o.length-1&&(this.minDistances[n][r]+=this._isVerticalLayout()?(i.width+o[r+1].width)/2:(i.height+o[r+1].height)/2);for(this.downNodes=new c,this.upNodes=new c,p.forEach(this.graph.nodes,function(e){this.downNodes.set(e,[]),this.upNodes.set(e,[])},this),p.forEach(this.graph.links,function(e){var t=e.source,n=e.target,i=null,o=null;t.layer>n.layer?(i=e.source,o=e.target):(o=e.source,i=e.target),this.downNodes.get(o).push(i),this.upNodes.get(i).push(o)},this),this.downNodes.forEachValue(function(e){e.sort(this._gridPositionComparer)},this),this.upNodes.forEachValue(function(e){e.sort(this._gridPositionComparer)},this),n=0;n<this.layers.length-1;++n)for(o=this.layers[n],a=0;a<o.length-1;a++)if(s=o[a],s.isVirtual&&(l=this.downNodes.get(s)[0],l.isVirtual))for(r=a+1;r<o.length;++r)i=o[r],i.isVirtual&&(d=this.downNodes.get(i)[0],d.isVirtual&&l.gridPosition>d.gridPosition&&(u=l.gridPosition,l.gridPosition=d.gridPosition,d.gridPosition=u,h=l.layerIndex,f=d.layerIndex,this.layers[n+1][h]=d,this.layers[n+1][f]=l,l.layerIndex=f,d.layerIndex=h));for(m=this._getLeftWing(),g=this._getRightWing(),v=this.placeLeftToRight(m),_=this.placeRightToLeft(g),b=new c,p.forEach(this.graph.nodes,function(e){b.set(e,(v.get(e)+_.get(e))/2)}),w=new c,k=new c,n=0;n<this.layers.length;++n)for(o=this.layers[n],y=-1,x=-1,r=0;r<o.length;++r)i=o[r],w.set(i,0),k.set(i,!1),i.isVirtual&&(y===-1?y=r:y===r-1?y=r:(x=r,w.set(o[y],0),b.get(i)-b.get(o[y])===this.getMinDist(o[y],i)?k.set(o[y],!0):k.set(o[y],!1),y=r));for(C=[1,-1],p.forEach(C,function(e){var n,i,o,r,a,s,l,d=1===e?0:this.layers.length-1;for(n=d;0<=n&&n<this.layers.length;n+=e){if(i=this.layers[n],o=this._firstVirtualNode(i),r=null,a=null,o!==-1)for(r=i[o],a=[],t=0;t<o;t++)a.push(i[t]);else r=null,a=i;if(a.length>0){for(this._sequencer(b,null,r,e,a),t=0;t<a.length-1;++t)this.setMinDist(a[t],a[t+1],b.get(a[t+1])-b.get(a[t]));r&&this.setMinDist(a[a.length-1],r,b.get(r)-b.get(a[a.length-1]))}for(;r;){if(s=this.nextVirtualNode(i,r)){if(w.get(r)===e){for(o=r.layerIndex,l=s.layerIndex,a=[],t=o+1;t<l;t++)a.push(i[t]);a.length>0&&this._sequencer(b,r,s,e,a),k.set(r,!0)}}else{for(o=r.layerIndex,a=[],t=o+1;t<i.length;t++)a.push(i[t]);if(a.length>0){for(this._sequencer(b,r,null,e,a),t=0;t<a.length-1;++t)this.setMinDist(a[t],a[t+1],b.get(a[t+1])-b.get(a[t]));this.setMinDist(r,a[0],b.get(a[0])-b.get(r))}}r=s}this.adjustDirections(n,e,w,k)}},this),S=this._isIncreasingLayout()?0:this.layers.length-1,T=function(e,t){return t._isIncreasingLayout()?e<t.layers.length:e>=0},D=this._isIncreasingLayout()?1:-1,A=0,t=S;T(t,this);t+=D){for(o=this.layers[t],E=e(o,this),r=0;r<o.length;++r)i=o[r],this._isVerticalLayout()?(i.x=b.get(i),i.y=A+E/2):(i.x=A+E/2,i.y=b.get(i));A+=this.options.layerSeparation+E}},adjustDirections:function(e,t,n,i){var o,r,a,s,l,d,c,u,h,p,f,m,g,v;if(!(e+t<0||e+t>=this.layers.length))for(o=null,r=null,a=this.layers[e+t],s=0;s<a.length;++s)if(l=a[s],l.isVirtual&&(d=this.getNeighborOnLayer(l,e),d.isVirtual)){if(o){for(c=i.get(r),u=this.layers[e],h=r.layerIndex,p=d.layerIndex,f=h+1;f<p;++f)u[f].isVirtual&&(c=c&&i.get(u[f]));if(c)for(n.set(o,t),m=o.layerIndex,g=l.layerIndex,v=m+1;v<g;++v)a[v].isVirtual&&n.set(a[v],t)}o=l,r=d}},getNeighborOnLayer:function(e,t){var n=this.upNodes.get(e)[0];return n.layer===t?n:(n=this.downNodes.get(e)[0],n.layer===t?n:null)},_sequencer:function(e,t,n,i,o){if(1===o.length&&this._sequenceSingle(e,t,n,i,o[0]),o.length>1){var r=o.length,a=this.intDiv(r,2);this._sequencer(e,t,n,i,o.slice(0,a)),this._sequencer(e,t,n,i,o.slice(a)),this.combineSequences(e,t,n,i,o)}},_sequenceSingle:function(e,t,n,i,o){var r=i===-1?this.downNodes.get(o):this.upNodes.get(o),a=r.length;0!==a&&(a%2===1?e.set(o,e.get(r[this.intDiv(a,2)])):e.set(o,(e.get(r[this.intDiv(a,2)-1])+e.get(r[this.intDiv(a,2)]))/2),t&&e.set(o,Math.max(e.get(o),e.get(t)+this.getMinDist(t,o))),n&&e.set(o,Math.min(e.get(o),e.get(n)-this.getMinDist(o,n))))},combineSequences:function(e,t,n,i,o){var r,a,s,l,d,c,u,h,p,f,m=o.length,g=this.intDiv(m,2),v=[];for(r=0;r<g;++r){for(a=0,l=i===-1?this.downNodes.get(o[r]):this.upNodes.get(o[r]),s=0;s<l.length;++s)d=l[s],e.get(d)>=e.get(o[r])?a++:(a--,v.push({k:e.get(d)+this.getMinDist(o[r],o[g-1]),v:2}));v.push({k:e.get(o[r])+this.getMinDist(o[r],o[g-1]),v:a})}for(t&&v.push({k:e.get(t)+this.getMinDist(t,o[g-1]),v:Number.MAX_VALUE}),v.sort(this._positionDescendingComparer),u=[],r=g;r<m;++r){for(a=0,l=i===-1?this.downNodes.get(o[r]):this.upNodes.get(o[r]),s=0;s<l.length;++s)d=l[s],e.get(d)<=e.get(o[r])?a++:(a--,u.push({k:e.get(d)-this.getMinDist(o[r],o[g]),v:2}));u.push({k:e.get(o[r])-this.getMinDist(o[r],o[g]),v:a})}for(n&&u.push({k:e.get(n)-this.getMinDist(n,o[g]),v:Number.MAX_VALUE}),u.sort(this._positionAscendingComparer),h=0,p=0,f=this.getMinDist(o[g-1],o[g]);e.get(o[g])-e.get(o[g-1])<f;)if(h<p){if(0===v.length){e.set(o[g-1],e.get(o[g])-f);break}c=v.shift(),h+=c.v,e.set(o[g-1],c.k),e.set(o[g-1],Math.max(e.get(o[g-1]),e.get(o[g])-f))}else{if(0===u.length){e.set(o[g],e.get(o[g-1])+f);break}c=u.shift(),p+=c.v,e.set(o[g],c.k),e.set(o[g],Math.min(e.get(o[g]),e.get(o[g-1])+f))}for(r=g-2;r>=0;r--)e.set(o[r],Math.min(e.get(o[r]),e.get(o[g-1])-this.getMinDist(o[r],o[g-1])));for(r=g+1;r<m;r++)e.set(o[r],Math.max(e.get(o[r]),e.get(o[g])+this.getMinDist(o[r],o[g])))},placeLeft:function(e,t,n){var i=Number.NEGATIVE_INFINITY;p.forEach(this._getComposite(e),function(e){var o=this.leftSibling(e);o&&this.nodeLeftClass.get(o)===this.nodeLeftClass.get(e)&&(t.containsKey(o)||this.placeLeft(o,t,n),i=Math.max(i,t.get(o)+this.getMinDist(o,e)))},this),i===Number.NEGATIVE_INFINITY&&(i=0),p.forEach(this._getComposite(e),function(e){t.set(e,i)})},placeRight:function(e,t,n){var i=Number.POSITIVE_INFINITY;p.forEach(this._getComposite(e),function(e){var o=this.rightSibling(e);o&&this.nodeRightClass.get(o)===this.nodeRightClass.get(e)&&(t.containsKey(o)||this.placeRight(o,t,n),i=Math.min(i,t.get(o)-this.getMinDist(e,o)))},this),i===Number.POSITIVE_INFINITY&&(i=0),p.forEach(this._getComposite(e),function(e){t.set(e,i)})},leftSibling:function(e){var t=this.layers[e.layer],n=e.layerIndex;return 0===n?null:t[n-1]},rightSibling:function(e){var t=this.layers[e.layer],n=e.layerIndex;return n===t.length-1?null:t[n+1]},_getComposite:function(e){return e.isVirtual?this._nodesInLink(e):[e]},arrangeNodes:function(){var e,t,n,i,o,r,a,s;for(t=0;t<this.layers.length;t++)for(i=this.layers[t],n=0;n<i.length;n++)o=i[n],o.upstreamPriority=o.upstreamLinkCount,o.downstreamPriority=o.downstreamLinkCount;for(r=2,a=0;a<r;a++){for(e=this.layers.length-1;e>=1;e--)this.layoutLayer(!1,e);for(e=0;e<this.layers.length-1;e++)this.layoutLayer(!0,e)}for(s=Number.MAX_VALUE,t=0;t<this.layers.length;t++)for(i=this.layers[t],n=0;n<i.length;n++)o=i[n],s=Math.min(s,o.gridPosition);if(s<0)for(t=0;t<this.layers.length;t++)for(i=this.layers[t],n=0;n<i.length;n++)o=i[n],o.gridPosition=o.gridPosition-s},layoutLayer:function(e,t){var n,i,o,r;for(i=e?this.layers[n=t+1]:this.layers[n=t-1],o=[],r=0;r<i.length;r++)o.push(i[r]);o.sort(function(e,t){var n=(e.upstreamPriority+e.downstreamPriority)/2,i=(t.upstreamPriority+t.downstreamPriority)/2;return Math.abs(n-i)<1e-4?0:n<i?1:-1}),p.forEach(o,function(e){var t=e.gridPosition,n=this.calcBaryCenter(e),o=(e.upstreamPriority+e.downstreamPriority)/2;if(!(Math.abs(t-n)<1e-4||Math.abs(t-n)<.2501))if(t<n)for(;t<n&&this.moveRight(e,i,o);)t=e.gridPosition;else for(;t>n&&this.moveLeft(e,i,o);)t=e.gridPosition},this),n>0&&this.calcDownData(n-1),n<this.layers.length-1&&this.calcUpData(n+1)},moveRight:function(e,t,n){var i,o,r=p.indexOf(t,e);return r===t.length-1?(e.gridPosition=e.gridPosition+.5,!0):(i=t[r+1],o=(i.upstreamPriority+i.downstreamPriority)/2,i.gridPosition>e.gridPosition+1?(e.gridPosition=e.gridPosition+.5,!0):!(o>n||Math.abs(o-n)<1e-4)&&(!!this.moveRight(i,t,n)&&(e.gridPosition=e.gridPosition+.5,!0)))},moveLeft:function(e,t,n){var i,o,r=p.indexOf(t,e);return 0===r?(e.gridPosition=e.gridPosition-.5,!0):(i=t[r-1],o=(i.upstreamPriority+i.downstreamPriority)/2,i.gridPosition<e.gridPosition-1?(e.gridPosition=e.gridPosition-.5,!0):!(o>n||Math.abs(o-n)<1e-4)&&(!!this.moveLeft(i,t,n)&&(e.gridPosition=e.gridPosition-.5,!0)))},mapVirtualNode:function(e,t){this.nodeToLinkMap.set(e,t),this.linkToNodeMap.containsKey(t)||this.linkToNodeMap.set(t,[]),this.linkToNodeMap.get(t).push(e)},_nodesInLink:function(e){return this.linkToNodeMap.get(this.nodeToLinkMap.get(e))},_dummify:function(){var e,t,n,i,o,s,l,d,u,h,f,m,g,v,_,b,w,k,y,x;for(this.linkToNodeMap=new c,this.nodeToLinkMap=new c,u=this.graph.links.slice(0),h=this.layers,f=function(e,t,n){h[e].linksTo[t]=h[e].linksTo[t]||[],h[e].linksTo[t].push(n)},d=0;d<u.length;d++)if(m=u[d],g=m.source,v=m.target,_=g.layer,b=v.layer,w=g.gridPosition,k=v.gridPosition,y=(k-w)/Math.abs(b-_),x=g,_-b>1){for(l=_-1;l>b;l--){for(n=new r,n.x=g.x,n.y=g.y,n.width=g.width/100,n.height=g.height/100,e=h[l],t=(l-b)*y+w,t>e.length&&(t=e.length),w>=h[_].length-1&&k>=h[b].length-1?t=e.length:0===w&&0===k&&(t=0),n.layer=l,n.uBaryCenter=0,n.dBaryCenter=0,n.upstreamLinkCount=0,n.downstreamLinkCount=0,n.gridPosition=t,n.isVirtual=!0,p.insert(e,n,t),o=t+1;o<e.length;o++)i=e[o],i.gridPosition=i.gridPosition+1;s=new a(x,n),s.depthOfDumminess=0,f(l-1,l,s),x=n,this.graph._addNode(n),this.graph.addLink(s),n.index=this.graph.nodes.length-1,this.mapVirtualNode(n,m)}f(b-1,b,s),m.changeSource(x),m.depthOfDumminess=_-b-1}else if(_-b<-1){for(l=_+1;l<b;l++){for(n=new r,n.x=g.x,n.y=g.y,n.width=g.width/100,n.height=g.height/100,e=h[l],t=(l-_)*y+w,t>e.length&&(t=e.length),w>=h[_].length-1&&k>=h[b].length-1?t=e.length:0===w&&0===k&&(t=0),n.layer=l,n.uBaryCenter=0,n.dBaryCenter=0,n.upstreamLinkCount=0,n.downstreamLinkCount=0,n.gridPosition=t,n.isVirtual=!0,t&=t,p.insert(e,n,t),o=t+1;o<e.length;o++)i=e[o],i.gridPosition=i.gridPosition+1;s=new a(x,n),s.depthOfDumminess=0,f(l-1,l,s),x=n,this.graph._addNode(n),this.graph.addLink(s),n.index=this.graph.nodes.length-1,this.mapVirtualNode(n,m)}f(b-1,b,m),m.changeSource(x),m.depthOfDumminess=b-_-1}else f(_,b,m)},_dedummify:function(){for(var e,t,n,i,o,r,a,s,l=!0;l;)for(l=!1,e=0;e<this.graph.links.length;e++)if(t=this.graph.links[e],t.depthOfDumminess){for(n=[],n.unshift({x:t.target.x,y:t.target.y}),n.unshift({x:t.source.x,y:t.source.y}),i=t,o=t.depthOfDumminess,r=0;r<o;r++)a=i.source,s=a.incoming[0],n.unshift({x:s.source.x,y:s.source.y}),i=s;t.changeSource(i.source),t.depthOfDumminess=0,n.length>2?(n.splice(0,1),n.splice(n.length-1),t.points=n):t.points=[],l=!0;break}},_optimizeCrossings:function(){for(var e,t=-1,n=3,i=0;0!==t&&!(i++>n);){for(t=0,e=this.layers.length-1;e>=1;e--)t+=this.optimizeLayerCrossings(!1,e);for(e=0;e<this.layers.length-1;e++)t+=this.optimizeLayerCrossings(!0,e)}},calcUpData:function(e){var t,n,i,o,r,a,s,l,d;if(0!==e){for(t=this.layers[e],r=new u,a=this.layers[e-1],n=0;n<a.length;n++)r.add(a[n]);for(n=0;n<t.length;n++){for(s=t[n],l=0,d=0,i=0;i<s.incoming.length;i++)o=s.incoming[i],r.contains(o.source)&&(d++,l+=o.source.gridPosition);for(i=0;i<s.outgoing.length;i++)o=s.outgoing[i],r.contains(o.target)&&(d++,l+=o.target.gridPosition);d>0?(s.uBaryCenter=l/d,s.upstreamLinkCount=d):(s.uBaryCenter=n,s.upstreamLinkCount=0)}}},calcDownData:function(e){var t,n,i,o,r,a,s,l,d;if(e!==this.layers.length-1){for(t=this.layers[e],r=new u,a=this.layers[e+1],n=0;n<a.length;n++)r.add(a[n]);for(n=0;n<t.length;n++){for(s=t[n],l=0,d=0,i=0;i<s.incoming.length;i++)o=s.incoming[i],r.contains(o.source)&&(d++,l+=o.source.gridPosition);for(i=0;i<s.outgoing.length;i++)o=s.outgoing[i],r.contains(o.target)&&(d++,l+=o.target.gridPosition);d>0?(s.dBaryCenter=l/d,s.downstreamLinkCount=d):(s.dBaryCenter=n,s.downstreamLinkCount=0)}}},optimizeLayerCrossings:function(e,t){var n,i,o,r,a,s,l,d;for(i=e?this.layers[n=t+1]:this.layers[n=t-1],o=i.slice(0),e?this.calcUpData(n):this.calcDownData(n),r=this,i.sort(function(e,t){var n,i=r.calcBaryCenter(e),o=r.calcBaryCenter(t);return Math.abs(i-o)<1e-4?e.degree()===t.degree()?r.compareByIndex(e,t):e.degree()<t.degree()?1:-1:(n=1e3*(o-i),n>0?-1:n<0?1:r.compareByIndex(e,t))}),s=0,a=0;a<i.length;a++)i[a]!==o[a]&&s++;if(s>0)for(l=0,a=0;a<i.length;a++)d=i[a],d.gridPosition=l++;return s},_swapPairs:function(){for(var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v=this.options.layeredIterations,_=0;;){if(_++>v)break;for(e=_%4<=1,t=_%4===1,n=e?0:this.layers.length-1;e?n<=this.layers.length-1:n>=0;n+=e?1:-1){
for(i=this.layers[n],o=!1,r=!0,a=0,s=0;s<i.length-1;s++)l=0,d=0,c=0,r?(0!==n&&(l=this.countLinksCrossingBetweenTwoLayers(n-1,n)),n!==this.layers.length-1&&(d=this.countLinksCrossingBetweenTwoLayers(n,n+1)),e?l*=2:d*=2,c=l+d):c=a,0!==c&&(u=i[s],h=i[s+1],p=u.gridPosition,f=h.gridPosition,i[s]=h,i[s+1]=u,u.gridPosition=f,h.gridPosition=p,l=0,0!==n&&(l=this.countLinksCrossingBetweenTwoLayers(n-1,n)),d=0,n!==this.layers.length-1&&(d=this.countLinksCrossingBetweenTwoLayers(n,n+1)),e?l*=2:d*=2,m=l+d,g=!1,g=t?m>=c:m>c,g?(u=i[s],h=i[s+1],p=u.gridPosition,f=h.gridPosition,i[s]=h,i[s+1]=u,u.gridPosition=f,h.gridPosition=p,a=c,r=!1):(o=!0,r=!0));o&&(n!==this.layers.length-1&&this.calcUpData(n+1),0!==n&&this.calcDownData(n-1))}}},countLinksCrossingBetweenTwoLayers:function(e,t){var n,i,o,r,a,s,l,d,c,u,h,p,f=this.layers[e].linksTo[t],m=0,g=f.length;for(l=0;l<g;l++)for(n=f[l],d=l+1;d<g;d++)i=f[d],n.target.layer===t?(o=n.source,r=n.target):(o=n.target,r=n.source),i.target.layer===t?(a=i.source,s=i.target):(a=i.target,s=i.source),c=o.gridPosition,u=r.gridPosition,h=a.gridPosition,p=s.gridPosition,(c-h)*(u-p)<0&&m++;return m},calcBaryCenter:function(e){var t=e.upstreamLinkCount,n=e.downstreamLinkCount,i=e.uBaryCenter,o=e.dBaryCenter;return t>0&&n>0?(i+o)/2:t>0?i:n>0?o:0},_gridPositionComparer:function(e,t){return e.gridPosition<t.gridPosition?-1:e.gridPosition>t.gridPosition?1:0},_positionAscendingComparer:function(e,t){return e.k<t.k?-1:e.k>t.k?1:0},_positionDescendingComparer:function(e,t){return e.k<t.k?1:e.k>t.k?-1:0},_firstVirtualNode:function(e){for(var t=0;t<e.length;t++)if(e[t].isVirtual)return t;return-1},compareByIndex:function(e,t){var n=e.index,i=t.index;return n<i?1:n>i?-1:0},intDiv:function(e,t){return(e-e%t)/t},nextVirtualNode:function(e,t){var n,i=t.layerIndex;for(n=i+1;n<e.length;++n)if(e[n].isVirtual)return e[n];return null}}),S=n.Class.extend({init:function(e,t){if(p.isUndefined(e))throw"No diagram given";this.diagram=e,this.nodeMap=new c,this.linkMap=new c,this.capture(t?t:e)},capture:function(e){var t,n,o,r,a,s,l,c,u;if(e instanceof i.Graph){for(r=0;r<e.nodes.length;r++)t=e.nodes[r],o=t.associatedShape,this.nodeMap.set(o.visual.id,new d(t.x,t.y,t.width,t.height));for(r=0;r<e.links.length;r++)s=e.links[r],a=s.associatedConnection,this.linkMap.set(a.visual.id,s.points())}else if(e instanceof Array)for(n=e,r=0;r<n.length;r++)t=n[r],o=t.associatedShape,o&&this.nodeMap.set(o.visual.id,new d(t.x,t.y,t.width,t.height));else if(e.hasOwnProperty("links")&&e.hasOwnProperty("nodes")){for(n=e.nodes,l=e.links,r=0;r<n.length;r++)t=n[r],o=t.associatedShape,o&&this.nodeMap.set(o.visual.id,new d(t.x,t.y,t.width,t.height));for(r=0;r<l.length;r++)s=l[r],a=s.associatedConnection,a&&this.linkMap.set(a.visual.id,s.points)}else{for(c=this.diagram.shapes,u=this.diagram.connections,r=0;r<c.length;r++)o=c[r],this.nodeMap.set(o.visual.id,o.bounds());for(r=0;r<u.length;r++)a=u[r],this.linkMap.set(a.visual.id,a.points())}}});s(i,{init:function(e){n.init(e,i.ui)},SpringLayout:k,TreeLayout:x,GraphAdapter:w,LayeredLayout:C,LayoutBase:b,LayoutState:S})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("dataviz/diagram/dom.min",["kendo.data.min","kendo.draganddrop.min","kendo.toolbar.min","kendo.editable.min","kendo.window.min","kendo.dropdownlist.min","kendo.dataviz.core.min","kendo.dataviz.themes.min","dataviz/diagram/svg.min","dataviz/diagram/services.min","dataviz/diagram/layout.min"],e)}(function(){!function(e,t){function n(e){var t=e.originalEvent,n=0;return t.wheelDelta?(n=-t.wheelDelta/40,n=n>0?ke.ceil(n):ke.floor(n)):t.detail&&(n=t.detail),n}function i(e){return e.options.name.toLowerCase()===Fe.toLowerCase()}function o(e,t){var n,o,r,a,s=He;for(r=0;r<t.length;r++)o=t[r],i(o)||(a=e.distanceTo(o.position()),a<s&&(s=a,n=o));return n}function r(e,t){var n,i,o,r=[],a=e.drawingContainer().children,s=a.length;for(n=0;n<t.length;n++)for(i=t[n],o=0;o<s;o++)if(a[o]==i.drawingContainer()){r.push(o);break}return r}function a(e){var t={};return e=e||{},ge(e.text)&&null!==e.text&&(t.text=e.text),ge(e.x)&&null!==e.x&&(t.x=e.x),ge(e.y)&&null!==e.y&&(t.y=e.y),ge(e.width)&&null!==e.width&&(t.width=e.width),ge(e.height)&&null!==e.height&&(t.height=e.height),ge(e.type)&&null!==e.type&&(t.type=e.type),t}function s(e){var t={};return e=e||{},ge(e.text)&&null!==e.text&&(t.content=e.text),ge(e.type)&&null!==e.type&&(t.type=e.type),ge(e.from)&&null!==e.from&&(t.from=e.from),ge(e.fromConnector)&&null!==e.fromConnector&&(t.fromConnector=e.fromConnector),ge(e.fromX)&&null!==e.fromX&&(t.fromX=e.fromX),ge(e.fromY)&&null!==e.fromY&&(t.fromY=e.fromY),ge(e.to)&&null!==e.to&&(t.to=e.to),ge(e.toConnector)&&null!==e.toConnector&&(t.toConnector=e.toConnector),ge(e.toX)&&null!==e.toX&&(t.toX=e.toX),ge(e.toY)&&null!==e.toY&&(t.toY=e.toY),t}function l(t,n){var i,o=this.dataSource.reader.model;o&&(i=o.fn.fields.text?"text":o.idField,e("<input name='"+n.field+"' />").appendTo(t).kendoDropDownList({dataValueField:o.idField,dataTextField:i,dataSource:this.dataSource.data().toJSON(),optionLabel:" ",valuePrimitive:!0}))}function d(e){this.dataItem=e,this.callbacks=[]}function c(){this.items={}}function u(e){var t=e;return e instanceof kendo.data.Model&&(t=e.toJSON(),t[e.idField]=e._defaultId),t}function h(e){var t,n,i=[],o=[];for(n=0;n<e.length;n++)t=e[n],t instanceof k?o.push(t):i.push(t);return{shapes:o,connections:i}}function p(e,t){return e.reader.model?new e.reader.model(t):new kendo.data.ObservableObject(t)}function f(e,t){ge(t[e])&&t.set(e,null)}function m(e,t,n){var i,o;for(o=0;o<n.length;o++)i=n[o],t&&!ge(t[i])&&(t[i]=e[i])}function g(e){var t=e.drawingContainer().clippedBBox(null);0===t.origin.x&&0===t.origin.y||e.position(-t.origin.x,-t.origin.y)}function v(e){e.preventDefault()}var _,b,w,k,y,x,C,S,T,D,A,E,I=kendo.dataviz,M=kendo.drawing,R=kendo.geometry,F=I.diagram,P=kendo.ui.Widget,z=kendo.Class,B=e.proxy,L=kendo.deepExtend,H=kendo._outerWidth,N=kendo._outerHeight,O=e.extend,V=kendo.data.HierarchicalDataSource,W=F.Canvas,U=F.Group,j=F.Rectangle,q=F.Circle,G=F.CompositeTransform,$=F.Rect,K=F.Path,Y=F.DeleteShapeUnit,Q=F.DeleteConnectionUnit,X=F.TextBlock,Z=F.Image,J=F.Point,ee=F.Intersect,te=F.ConnectionEditAdorner,ne=F.UndoRedoService,ie=F.ToolService,oe=F.Selector,re=F.ResizingAdorner,ae=F.ConnectorsAdorner,se=F.Cursors,le=F.Utils,de=kendo.Observable,ce=F.ToBackUnit,ue=F.ToFrontUnit,he=F.PolylineRouter,pe=F.CascadingRouter,fe=le.isUndefined,me=le.isDefined,ge=M.util.defined,ve=e.isArray,_e=kendo.isFunction,be=le.isString,we=e.isPlainObject,ke=Math,ye=".kendoDiagram",xe="cascading",Ce="itemBoundsChange",Se="change",Te="click",De="drag",Ae="dragEnd",Ee="dragStart",Ie="mouseEnter",Me="mouseLeave",Re="error",Fe="Auto",Pe="Top",ze="Right",Be="Left",Le="Bottom",He=9007199254740992,Ne="select",Oe="itemRotate",Ve="pan",We="zoomStart",Ue="zoomEnd",je="none",qe=600,Ge=600,$e="rectangle",Ke=100,Ye=100,Qe=20,Xe=20,Ze=0,Je="Yellow",et=Number.MAX_VALUE,tt=-Number.MAX_VALUE,nt="absolute",it="transformed",ot="rotated",rt="transparent",at="width",st="height",lt="x",dt="y",ct="DOMMouseScroll"+ye+" mousewheel"+ye,ut=.05,ht=5,pt='<a class="k-button k-button-icontext #=className#" href="\\#"><span class="#=iconClass# #=imageClass#"></span>#=text#</a>',ft=5;F.DefaultConnectors=[{name:Pe},{name:Le},{name:Be},{name:ze},{name:Fe,position:function(e){return e.getPosition("center")}}],_={cancel:{text:"Cancel",imageClass:"k-i-cancel",className:"k-diagram-cancel",iconClass:"k-icon"},update:{text:"Update",imageClass:"k-i-checkmark",className:"k-diagram-update",iconClass:"k-icon"}},F.shapeDefaults=function(e){var t={type:$e,path:"",autoSize:!0,visual:null,x:Ze,y:Ze,minWidth:Qe,minHeight:Xe,width:Ke,height:Ye,hover:{},editable:{connect:!0,tools:[]},connectors:F.DefaultConnectors,rotation:{angle:0}};return le.simpleExtend(t,e),t},b=de.extend({init:function(e){var t=this;t.dataItem=(e||{}).dataItem,de.fn.init.call(t),t.options=L({id:F.randomId()},t.options,e),t.isSelected=!1,t.visual=new U({id:t.options.id,autoSize:t.options.autoSize}),t.id=t.options.id,t._template()},options:{hover:{},cursor:se.grip,content:{align:"center middle"},selectable:!0,serializable:!0,enable:!0},_getCursor:function(e){return this.adorner?this.adorner._getCursor(e):this.options.cursor},visible:function(e){return fe(e)?this.visual.visible():(this.visual.visible(e),t)},bounds:function(){},refresh:function(){this.visual.redraw()},position:function(e){this.options.x=e.x,this.options.y=e.y,this.visual.position(e)},toString:function(){return this.options.id},serialize:function(){var e=L({},{options:this.options});return this.dataItem&&(e.dataItem=""+this.dataItem),e},_content:function(e){var n,i,o;return e!==t&&(n=this.options,F.Utils.isString(e)?n.content.text=e:L(n.content,e),i=n.content,o=this._contentVisual,o?this._updateContentVisual(i):this._createContentVisual(i)),this.options.content.text},_createContentVisual:function(e){e.text&&(this._contentVisual=new X(e),this._contentVisual._includeInBBox=!1,this.visual.append(this._contentVisual))},_updateContentVisual:function(e){this._contentVisual.redraw(e)},_hitTest:function(e){var t=this.bounds();return this.visible()&&t.contains(e)&&this.options.enable},_template:function(){var e,t,n=this;n.options.content.template&&(e=n.dataItem||{},t=kendo.template(n.options.content.template,{paramName:"dataItem"}),n.options.content.text=t(e))},_canSelect:function(){return this.options.selectable!==!1},toJSON:function(){return{id:this.options.id}}}),w=z.extend({init:function(e,t){this.options=L({},this.options,t),this.connections=[],this.shape=e},options:{width:7,height:7,fill:{color:Je},hover:{}},position:function(){return this.options.position?this.options.position(this.shape):this.shape.getPosition(this.options.name)},toJSON:function(){return{shapeId:""+this.shape,connector:this.options.name}}}),w.parse=function(e,t){var n,i,o=t.split(":"),r=o[0],a=o[1]||Fe;for(n=0;n<e.shapes.length;n++)if(i=e.shapes[n],i.options.id==r)return i.getConnector(a.trim())},k=b.extend({init:function(e,t){var n=this;b.fn.init.call(n,e),this.diagram=t,this.updateOptionsFromModel(),e=n.options,n.connectors=[],n.type=e.type,n.createShapeVisual(),n.updateBounds(),n.content(n.content()),n._createConnectors()},options:F.shapeDefaults(),_setOptionsFromModel:function(e){var t=a(e||this.dataItem);this.options=L({},this.options,t),this.redrawVisual()},updateOptionsFromModel:function(e,t){var n,i;this.diagram&&this.diagram._isEditable&&(n=a(e||this.dataItem),e&&t?I.inArray(t,["x","y","width","height"])?(i=this.bounds(),i[t]=e[t],this.bounds(i)):(this.options.visual?this._redrawVisual():n.type&&(this.options=L({},this.options,n),this._redrawVisual()),this.options.content&&(this._template(),this.content(this.options.content))):this.options=L({},this.options,n))},_redrawVisual:function(){this.visual.clear(),this._contentVisual=null,this.options.dataItem=this.dataItem,this.createShapeVisual(),this.updateBounds()},redrawVisual:function(){this._redrawVisual(),this.options.content&&(this._template(),this.content(this.options.content))},updateModel:function(e){var t,n,i=this.diagram;i&&i._isEditable&&(t=this._bounds,n=this.dataItem,n&&(i._suspendModelRefresh(),ge(n.x)&&t.x!==n.x&&n.set("x",t.x),ge(n.y)&&t.y!==n.y&&n.set("y",t.y),ge(n.width)&&t.width!==n.width&&n.set("width",t.width),ge(n.height)&&t.height!==n.height&&n.set("height",t.height),this.dataItem=n,i._resumeModelRefresh(),e&&i._syncShapeChanges()))},updateBounds:function(){var e=this.visual._measure(!0),t=this.options;this.bounds(new $(t.x,t.y,e.width,e.height)),this._rotate(),this._alignContent()},content:function(e){var t=this._content(e);return this._alignContent(),t},_alignContent:function(){var e,t,n,i,o,r=this.options.content||{},a=this._contentVisual;a&&r.align&&(e=this.visual._measure(),t=new F.RectAlign(e),n=a.drawingElement.bbox(null),i=new $(0,0,n.width(),n.height()),o=t.align(i,r.align),a.position(o.topLeft()))},_createConnectors:function(){var e,t,n=this.options,i=n.connectors.length,o=n.connectorDefaults;for(t=0;t<i;t++)e=new w(this,L({},o,n.connectors[t])),this.connectors.push(e)},bounds:function(e){var t,n;if(e)if(be(e))switch(e){case it:t=this._transformedBounds();break;case nt:t=this._transformedBounds(),n=this.diagram._pan,t.x+=n.x,t.y+=n.y;break;case ot:t=this._rotatedBounds();break;default:t=this._bounds}else this._setBounds(e),this._triggerBoundsChange(),this.diagram&&this.diagram._layouting||this.refreshConnections();else t=this._bounds;return t},_setBounds:function(e){var t=this.options,n=e.topLeft(),i=t.x=n.x,o=t.y=n.y,r=t.width=ke.max(e.width,t.minWidth),a=t.height=ke.max(e.height,t.minHeight);this._bounds=new $(i,o,r,a),this.visual.redraw({x:i,y:o,width:r,height:a})},position:function(e){return e?(this.bounds(new $(e.x,e.y,this._bounds.width,this._bounds.height)),t):this._bounds.topLeft()},clone:function(){var e=this.serialize();return e.options.id=F.randomId(),this.diagram&&this.diagram._isEditable&&ge(this.dataItem)&&(e.options.dataItem=u(this.dataItem)),new k(e.options)},select:function(e){var t,n,i=this.diagram;if(fe(e)&&(e=!0),this._canSelect()&&this.isSelected!=e)return t=[],n=[],this.isSelected=e,this.isSelected?(i._selectedItems.push(this),t.push(this)):(le.remove(i._selectedItems,this),n.push(this)),i._internalSelection||i._selectionChanged(t,n),!0},rotate:function(e,n,i){var o,r,a,s,l=this.visual.rotate();return e!==t&&(i!==!1&&this.diagram&&this.diagram.undoRedoService&&e!==l.angle&&this.diagram.undoRedoService.add(new F.RotateUnit(this.diagram._resizingAdorner,[this],[l.angle]),!1),o=this.bounds(),r=new J(o.width/2,o.height/2),n&&(a=e-l.angle,s=o.center().rotate(n,360-a).minus(r),this._rotationOffset=this._rotationOffset.plus(s.minus(o.topLeft())),this.position(s)),this.visual.rotate(e,r),this.options.rotation.angle=e,this.diagram&&this.diagram._connectorsAdorner&&this.diagram._connectorsAdorner.refresh(),this.refreshConnections(),this.diagram&&this.diagram.trigger(Oe,{item:this})),l},connections:function(e){var t,n,i,o,r,a,s,l=[];for(t=0;t<this.connectors.length;t++)for(r=this.connectors[t],o=r.connections,n=0,o;n<o.length;n++)i=o[n],"out"==e?(a=i.source(),a.shape&&a.shape==this&&l.push(i)):"in"==e?(s=i.target(),s.shape&&s.shape==this&&l.push(i)):l.push(i);return l},refreshConnections:function(){e.each(this.connections(),function(){this.refresh()})},getConnector:function(e){var t,n;if(!be(e))return e instanceof J?o(e,this.connectors):this.connectors.length?this.connectors[0]:null;for(e=e.toLocaleLowerCase(),t=0;t<this.connectors.length;t++)if(n=this.connectors[t],n.options.name.toLocaleLowerCase()==e)return n},getPosition:function(e){var t=this.bounds(),n=e.charAt(0).toLowerCase()+e.slice(1);return _e(t[n])?this._transformPoint(t[n]()):t.center()},redraw:function(e){var t,n;e&&(t=this.options,this.shapeVisual.redraw(this._visualOptions(e)),this._diffNumericOptions(e,[at,st,lt,dt])&&(this.bounds(new $(t.x,t.y,t.width,t.height)),n=!0),e.connectors&&(t.connectors=e.connectors,this._updateConnectors()),t=L(t,e),(e.rotation||n)&&this._rotate(),t.content&&this.content(t.content))},_updateConnectors:function(){var e,t,n,i,o=this.connections();for(this.connectors=[],this._createConnectors(),i=0;i<o.length;i++)e=o[i],t=e.source(),n=e.target(),t.shape&&t.shape===this?e.source(this.getConnector(t.options.name)||null):n.shape&&n.shape===this&&e.target(this.getConnector(n.options.name)||null),e.updateModel()},_diffNumericOptions:F.diffNumericOptions,_visualOptions:function(e){return{data:e.path,source:e.source,hover:e.hover,fill:e.fill,stroke:e.stroke}},_triggerBoundsChange:function(){this.diagram&&this.diagram.trigger(Ce,{item:this,bounds:this._bounds.clone()})},_transformPoint:function(e){var t=this.rotate(),n=this.bounds(),i=n.topLeft();return t.angle&&e.rotate(t.center().plus(i),360-t.angle),e},_transformedBounds:function(){var e=this.bounds(),t=e.topLeft(),n=e.bottomRight();return $.fromPoints(this.diagram.modelToView(t),this.diagram.modelToView(n))},_rotatedBounds:function(){var e=this.bounds().rotatedBounds(this.rotate().angle),t=e.topLeft(),n=e.bottomRight();return $.fromPoints(t,n)},_rotate:function(){var e=this.options.rotation;e&&e.angle&&this.rotate(e.angle),this._rotationOffset=new J},_hover:function(e){var t=this.options,n=t.hover,i=t.stroke,o=t.fill;e&&me(n.stroke)&&(i=L({},i,n.stroke)),e&&me(n.fill)&&(o=n.fill),this.shapeVisual.redraw({stroke:i,fill:o}),t.editable&&t.editable.connect&&this.diagram._showConnectors(this,e)},_hitTest:function(e){if(this.visible()){var t,n=this.bounds(),i=this.rotate().angle;if(e.isEmpty&&!e.isEmpty())return ee.rects(e,n,i?i:0);if(t=e.clone().rotate(n.center(),i),n.contains(t))return this}},toJSON:function(){return{shapeId:this.options.id}},createShapeVisual:function(){var e,t=this.options,n=this._visualOptions(t),i=t.visual,o=(t.type+"").toLocaleLowerCase();n.width=t.width,n.height=t.height,_e(i)?e=i.call(this,t):n.data?(e=new K(n),g(e)):e="rectangle"==o?new j(n):"circle"==o?new q(n):"text"==o?new X(n):"image"==o?new Z(n):new K(n),this.shapeVisual=e,this.visual.append(this.shapeVisual)}}),y=b.extend({init:function(e,t,n){var i=this;b.fn.init.call(i,n),this.updateOptionsFromModel(),this._initRouter(),i.path=new F.Polyline(i.options),i.path.fill(rt),i.visual.append(i.path),i._sourcePoint=i._targetPoint=new J,i._setSource(e),i._setTarget(t),i.content(i.options.content),i.definers=[],ge(n)&&n.points&&i.points(n.points)},options:{hover:{stroke:{}},startCap:je,endCap:je,points:[],selectable:!0,fromConnector:Fe,toConnector:Fe},_setOptionsFromModel:function(e){this.updateOptionsFromModel(e||this.dataItem)},updateOptionsFromModel:function(e){var t,n,i,o;this.diagram&&this.diagram._isEditable&&(t=this.diagram._dataMap,n=s(e||this.dataItem),e?(ge(n.from)?(i=t[n.from],i&&ge(n.fromConnector)&&(i=i.getConnector(n.fromConnector)),this.source(i)):ge(n.fromX)&&ge(n.fromY)&&this.source(new J(n.fromX,n.fromY)),ge(n.to)?(o=t[n.to],o&&ge(n.toConnector)&&(o=o.getConnector(n.toConnector)),this.target(o)):ge(n.toX)&&ge(n.toY)&&this.target(new J(n.toX,n.toY)),ge(n.type)&&this.type()!==n.type&&(this.points([]),this.type(n.type)),this.dataItem=e,this._template(),this.redraw(this.options)):this.options=L({},n,this.options))},updateModel:function(e){if(this.diagram&&this.diagram._isEditable&&this.diagram.connectionsDataSource){var t=this.diagram.connectionsDataSource.getByUid(this.dataItem.uid);t&&(this.diagram._suspendModelRefresh(),ge(this.options.fromX)&&null!==this.options.fromX?(f("from",t),f("fromConnector",t),t.set("fromX",this.options.fromX),t.set("fromY",this.options.fromY)):(t.set("from",this.options.from),ge(t.fromConnector)&&t.set("fromConnector",this.sourceConnector?this.sourceConnector.options.name:null),f("fromX",t),f("fromY",t)),ge(this.options.toX)&&null!==this.options.toX?(f("to",t),f("toConnector",t),t.set("toX",this.options.toX),t.set("toY",this.options.toY)):(t.set("to",this.options.to),ge(t.toConnector)&&t.set("toConnector",this.targetConnector?this.targetConnector.options.name:null),f("toX",t),f("toY",t)),ge(this.options.type)&&ge(t.type)&&t.set("type",this.options.type),this.dataItem=t,this.diagram._resumeModelRefresh(),e&&this.diagram._syncConnectionChanges())}},sourcePoint:function(){return this._resolvedSourceConnector?this._resolvedSourceConnector.position():this._sourcePoint},_setSource:function(e){var n,i=e instanceof k,o=this.options.fromConnector||Fe;i&&!e.getConnector(o)||(e!==t&&(this.from=e),this._removeFromSourceConnector(),null===e?this.sourceConnector&&(this._sourcePoint=(this._resolvedSourceConnector||this.sourceConnector).position(),this._clearSourceConnector(),this._setFromOptions(null,this._sourcePoint)):e instanceof w?(n=e.shape.dataItem,n&&this._setFromOptions(n.id),this.sourceConnector=e,this.sourceConnector.connections.push(this)):e instanceof J?(this._setFromOptions(null,e),this._sourcePoint=e,this.sourceConnector&&this._clearSourceConnector()):i&&(n=e.dataItem,n&&this._setFromOptions(n.id),this.sourceConnector=e.getConnector(o),this.sourceConnector.connections.push(this)))},source:function(e,t){return me(e)&&(t&&this.diagram&&this.diagram.undoRedoService.addCompositeItem(new F.ConnectionEditUnit(this,e)),this._setSource(e),this.refresh()),this.sourceConnector?this.sourceConnector:this._sourcePoint},_setFromOptions:function(e,t){this.options.from=e,t?(this.options.fromX=t.x,this.options.fromY=t.y):(this.options.fromX=null,this.options.fromY=null)},sourceDefiner:function(e){if(!e)return this._sourceDefiner||(this._sourceDefiner=new F.PathDefiner(this.sourcePoint(),null,null)),this._sourceDefiner;if(!(e instanceof F.PathDefiner))throw"The sourceDefiner needs to be a PathDefiner.";e.left=null,this._sourceDefiner=e,this.source(e.point)},targetPoint:function(){return this._resolvedTargetConnector?this._resolvedTargetConnector.position():this._targetPoint},_setTarget:function(e){var n,i=e instanceof k,o=this.options.toConnector||Fe;i&&!e.getConnector(o)||(e!==t&&(this.to=e),this._removeFromTargetConnector(),null===e?this.targetConnector&&(this._targetPoint=(this._resolvedTargetConnector||this.targetConnector).position(),this._clearTargetConnector(),this._setToOptions(null,this._targetPoint)):e instanceof w?(n=e.shape.dataItem,n&&this._setToOptions(n.id),this.targetConnector=e,this.targetConnector.connections.push(this)):e instanceof J?(this._setToOptions(null,e),this._targetPoint=e,this.targetConnector&&this._clearTargetConnector()):i&&(n=e.dataItem,n&&this._setToOptions(n.id),this.targetConnector=e.getConnector(o),this.targetConnector.connections.push(this)))},target:function(e,n){return me(e)&&(n&&this.diagram&&this.diagram.undoRedoService.addCompositeItem(new F.ConnectionEditUnit(this,t,e)),this._setTarget(e),this.refresh()),this.targetConnector?this.targetConnector:this._targetPoint},_setToOptions:function(e,t){this.options.to=e,t?(this.options.toX=t.x,this.options.toY=t.y):(this.options.toX=null,this.options.toY=null)},targetDefiner:function(e){if(!e)return this._targetDefiner||(this._targetDefiner=new F.PathDefiner(this.targetPoint(),null,null)),this._targetDefiner;if(!(e instanceof F.PathDefiner))throw"The sourceDefiner needs to be a PathDefiner.";e.right=null,this._targetDefiner=e,this.target(e.point)},_updateConnectors:function(){this._updateConnector(this.source(),"source"),this._updateConnector(this.target(),"target")},_updateConnector:function(e,t){var n,i,o,r,a=this,s=a.diagram;e instanceof w&&!s.getShapeById(e.shape.id)?(n=e.shape.dataItem,i=e.options.name,o=function(){var o=s._dataMap[n.id];e=o.getConnector(i),a[t](e,!1),a.updateModel()},s._dataMap[n.id]?o():(r=s._inactiveShapeItems.getByUid(n.uid),r&&s._deferredConnectionUpdates.push(r.onActivate(o)))):a[t](e,!1)},content:function(e){var t=this._content(e);return ge(e)&&this._alignContent(),t},_createContentVisual:function(e){var t;return _e(e.visual)?t=e.visual.call(this,e):e.text&&(t=new X(e)),t&&(this._contentVisual=t,t._includeInBBox=!1,this.visual.append(t)),t},_updateContentVisual:function(e){_e(e.visual)?(this.visual.remove(this._contentVisual),this._createContentVisual(e)):this._contentVisual.redraw(e)},_alignContent:function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m;if(this._contentVisual){for(e=ft,t=this.allPoints(),n=ke.floor(t.length/2),i=n-1;i>0&&t[i].equals(t[n]);)i--,n++;o=t[n],r=t[i],a=this._contentVisual._measure(),s=a.width,l=a.height,d=t.length%2===0,c=r.distanceTo(o),d&&t.length>2&&c>0&&(r.y===o.y&&c<s||r.x===o.x&&c<l)&&(d=!1,e=0),d?(h=M.util.deg(ke.atan2(o.y-r.y,o.x-r.x)),u=new J((o.x-r.x)/2+r.x,(o.y-r.y)/2+r.y),90===ke.abs(h)?(u.x+=e,u.y-=l/2):h%180===0?(u.x-=s/2,u.y-=l+e):h<-90||0<h&&h<90?u.y-=l:(h<0||h>90)&&(u.x-=s,u.y-=l)):(p=ke.floor(t.length/2),u=t[p].clone(),r=t[p-1],o=t[p+1],f=r.x<=u.x&&o.x<=u.x?e:-a.width-e,m=r.y<=u.y&&o.y<=u.y?e:-a.height-e,u.x+=f,u.y+=m),this._contentVisual.position(u)}},select:function(e){var n,i,o=this.diagram;if(this._canSelect()&&this.isSelected!==e)return this.isSelected=e,n=[],i=[],this.isSelected?(this.adorner=new te(this,this.options.selection),o._adorn(this.adorner,!0),o._selectedItems.push(this),n.push(this)):this.adorner&&(o._adorn(this.adorner,!1),le.remove(o._selectedItems,this),this.adorner=t,i.push(this)),this.adorner&&this.adorner.refresh(),o._internalSelection||o._selectionChanged(n,i),!0},bounds:function(e){return!e||be(e)?this._bounds:(this._bounds=e,t)},type:function(e){var n=this.options;return e?(e!==n.type&&(n.type=e,this._initRouter(),this.refresh()),t):n.type},_initRouter:function(){var e=(this.options.type||"").toLowerCase();this._router=e==xe?new pe(this):new he(this)},points:function(e){var t,n,i,o;if(!e){if(i=[],me(this.definers))for(o=0;o<this.definers.length;o++)i.push(this.definers[o].point);return i}for(this.definers=[],t=0;t<e.length;t++)if(n=e[t],n instanceof F.Point)this.definers.push(new F.PathDefiner(n));else{if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw"A Connection point needs to be a Point or an object with x and y properties.";this.definers.push(new F.PathDefiner(new J(n.x,n.y)))}},allPoints:function(){var e,t=[this.sourcePoint()];if(this.definers)for(e=0;e<this.definers.length;e++)t.push(this.definers[e].point);return t.push(this.targetPoint()),t},refresh:function(){this._resolveConnectors(),this._refreshPath(),this._alignContent(),this.adorner&&this.adorner.refresh()},_resolveConnectors:function(){var e,t,n,r,a=this,s=a.source(),l=a.target();s instanceof J?e=s:s instanceof w&&(n=i(s)?s.shape.connectors:[s]),l instanceof J?t=l:l instanceof w&&(r=i(l)?l.shape.connectors:[l]),e?r&&(a._resolvedTargetConnector=o(e,r)):n&&(t?a._resolvedSourceConnector=o(t,n):r&&this._resolveAutoConnectors(n,r))},_resolveAutoConnectors:function(e,t){var n,o,r,a,s,l,d,c,u,h,p,f=He,m=He;for(u=0;u<e.length;u++)if(d=e[u],!i(d))for(r=d.position(),h=0;h<t.length;h++)c=t[h],i(c)||(a=c.position(),p=ke.round(r.distanceTo(a)),p<f&&this.diagram&&this._testRoutePoints(r,a,d,c)&&(f=p,n=d,o=c),p<m&&(s=d,l=c,m=p));n&&(s=n,l=o),this._resolvedSourceConnector=s,this._resolvedTargetConnector=l},_testRoutePoints:function(e,t,n,i){var o,r,a,s,l,d,c=this._router,u=!0;if(c instanceof pe)for(o=c.routePoints(e,t,n,i),l=this._getRouteExclude(e,t,n.shape,i.shape),o.unshift(e),o.push(t),d=1;d<o.length;d++)if(r=o[d-1],a=o[d],s=new $(ke.min(r.x,a.x),ke.min(r.y,a.y),ke.abs(r.x-a.x),ke.abs(r.y-a.y)),s.width>0&&(s.x++,s.width-=2),s.height>0&&(s.y++,s.height-=2),!s.isEmpty()&&this.diagram._shapesQuadTree.hitTestRect(s,l)){u=!1;break}return u},_getRouteExclude:function(e,t,n,i){var o=[];return this._isPointInsideShape(e,n)&&o.push(n),this._isPointInsideShape(t,i)&&o.push(i),o},_isPointInsideShape:function(e,t){var n,i,o,r=t.bounds(),a=t.rotate().angle,s=r.x,l=r.y;return n=e.clone().rotate(r.center(),a),i=n.x,o=n.y,i>s&&i<s+r.width&&o>l&&o<l+r.height},redraw:function(e){if(e){this.options=L({},this.options,e);var t=this.options.points;ge(t)&&t.length>0&&(this.points(t),this._refreshPath()),(e&&e.content||e.text)&&this.content(e.content),this.path.redraw({fill:e.fill,stroke:e.stroke,startCap:e.startCap,endCap:e.endCap})}},clone:function(){var e=this.serialize();return this.diagram&&this.diagram._isEditable&&ge(this.dataItem)&&(e.options.dataItem=u(this.dataItem)),new y(this.from,this.to,e.options)},serialize:function(){var e=this.from.toJSON?this.from.toJSON:""+this.from,t=this.to.toJSON?this.to.toJSON:""+this.to,n=L({},{options:this.options,from:e,to:t});return ge(this.dataItem)&&(n.dataItem=""+this.dataItem),n.options.points=this.points(),n},_hitTest:function(e){if(this.visible()){var t=new J(e.x,e.y),n=this.sourcePoint(),i=this.targetPoint();if(e.isEmpty&&!e.isEmpty()&&e.contains(n)&&e.contains(i))return this;if(this._router.hitTest(t))return this}},_hover:function(e){var t=(this.options.stroke||{}).color;e&&me(this.options.hover.stroke.color)&&(t=this.options.hover.stroke.color),this.path.redraw({stroke:{color:t}})},_refreshPath:function(){ge(this.path)&&(this._drawPath(),this.bounds(this._router.getBounds()))},_drawPath:function(){var e,t,n;this._router&&this._router.route(),e=this.sourcePoint(),t=this.targetPoint(),n=this.points(),this.path.redraw({points:[e].concat(n,[t])})},_clearSourceConnector:function(){this.sourceConnector=t,this._resolvedSourceConnector=t},_clearTargetConnector:function(){this.targetConnector=t,this._resolvedTargetConnector=t},_removeFromSourceConnector:function(){this.sourceConnector&&le.remove(this.sourceConnector.connections,this)},_removeFromTargetConnector:function(){this.targetConnector&&le.remove(this.targetConnector.connections,this)},toJSON:function(){var e,t,n,i=this;return i.from&&i.from.toJSON?e=i.from.toJSON():(n=i._sourcePoint,e={x:n.x,y:n.y}),i.to&&i.to.toJSON?t=i.to.toJSON():(n=i._targetPoint,t={x:n.x,y:n.y}),{from:e,to:t}}}),x=P.extend({init:function(e,t){var n=this;kendo.destroy(e),P.fn.init.call(n,e,t),n._initTheme(),n._initElements(),n._extendLayoutOptions(n.options),n._initDefaults(t),n._interactionDefaults(),n._initCanvas(),n.mainLayer=new U({id:"main-layer"}),n.canvas.append(n.mainLayer),n._shapesQuadTree=new E(n),n._pan=new J,n._adorners=[],n.adornerLayer=new U({id:"adorner-layer"}),n.canvas.append(n.adornerLayer),n._createHandlers(),n._initialize(),n._resizingAdorner=new re(n,{editable:n.options.editable}),n._connectorsAdorner=new ae(n),n._adorn(n._resizingAdorner,!0),n._adorn(n._connectorsAdorner,!0),n.selector=new oe(n),n._clipboard=[],n.pauseMouseHandlers=!1,n._fetchFreshData(),n._createGlobalToolBar(),n._createOptionElements(),n.zoom(n.options.zoom),n.canvas.draw()},options:{name:"Diagram",theme:"default",layout:"",zoomRate:.1,zoom:1,zoomMin:0,zoomMax:2,dataSource:{},draggable:!0,template:"",autoBind:!0,editable:{rotate:{},resize:{},text:!0,tools:[],drag:{snap:{size:10,angle:10}},remove:!0},pannable:{},selectable:{key:"none"},tooltip:{enabled:!0,format:"{0}"},copy:{enabled:!0,offsetX:20,offsetY:20},shapeDefaults:F.shapeDefaults({undoable:!0}),connectionDefaults:{editable:{tools:[]},type:xe},shapes:[],connections:[]},events:[Ue,We,Ve,Ne,Oe,Ce,Se,Te,Ie,Me,"toolBarClick","save","cancel","edit","remove","add","dataBound",Ee,De,Ae],items:function(){return e()},_createGlobalToolBar:function(){var e,t=this.options.editable;t&&(e=t.tools,!this._isEditable||e===!1||e&&0!==e.length||(e=["createShape","undo","redo","rotateClockwise","rotateAnticlockwise"]),e&&e.length&&(this.toolBar=new C(this,{tools:e||{},click:B(this._toolBarClick,this),modal:!1}),this.toolBar.element.css({textAlign:"left"}),this.element.prepend(this.toolBar.element),this._resize()))},createShape:function(){var e,t,n,i,o,r;(this.editor&&this.editor.end()||!this.editor)&&(e=this.dataSource,t=e.view()||[],n=t.length,i=p(e,{}),o=this._createShape(i,{}),this.trigger("add",{shape:o})||(e.insert(n,i),r=this._inactiveShapeItems.getByUid(i.uid),r.element=o,this.edit(o)))},_createShape:function(e,t){t=L({},this.options.shapeDefaults,t),t.dataItem=e;var n=new k(t,this);return n},createConnection:function(){var e,t,n,i,o;(this.editor&&this.editor.end()||!this.editor)&&(e=this.connectionsDataSource,t=e.view()||[],n=t.length,i=p(e,{}),o=this._createConnection(i),this.trigger("add",{connection:o})||(this._connectionsDataMap[i.uid]=o,e.insert(n,i),this.addConnection(o,!1),this.edit(o)))},_createConnection:function(e,t,n){var i,o=L({},this.options.connectionDefaults);return o.dataItem=e,i=new y(t||new J,n||new J,o)},editModel:function(e,t){var n,i,o,r;if(this.cancelEdit(),o=this.options.editable,"shape"==t)n=o.shapeEditors,i=o.shapeTemplate;else{if("connection"!=t)return;r=B(l,this),n=L({},{from:r,to:r},o.connectionEditors),i=o.connectionTemplate}this.editor=new T(this.element,{update:B(this._update,this),cancel:B(this._cancel,this),model:e,type:t,target:this,editors:n,template:i}),this.trigger("edit",this._editArgs())},edit:function(e){if(e.dataItem){var t=e instanceof k?"shape":"connection";this.editModel(e.dataItem,t)}},cancelEdit:function(){this.editor&&(this._getEditDataSource().cancelChanges(this.editor.model),this._destroyEditor())},saveEdit:function(){this.editor&&this.editor.end()&&!this.trigger("save",this._editArgs())&&this._getEditDataSource().sync();
},_update:function(){this.editor&&this.editor.end()&&!this.trigger("save",this._editArgs())&&(this._getEditDataSource().sync(),this._destroyEditor())},_cancel:function(){var e,t;this.editor&&!this.trigger("cancel",this._editArgs())&&(e=this.editor.model,this._getEditDataSource().cancelChanges(e),t=this._connectionsDataMap[e.uid]||this._dataMap[e.id],t&&t._setOptionsFromModel(e),this._destroyEditor())},_getEditDataSource:function(){return"shape"===this.editor.options.type?this.dataSource:this.connectionsDataSource},_editArgs:function(){var e={container:this.editor.wrapper};return e[this.editor.options.type]=this.editor.model,e},_destroyEditor:function(){this.editor&&(this.editor.close(),this.editor=null)},_initElements:function(){this.wrapper=this.element.empty().css("position","relative").attr("tabindex",0).addClass("k-widget k-diagram"),this.scrollable=e("<div />").appendTo(this.element)},_initDefaults:function(e){var t=this.options,n=t.editable,i=t.shapeDefaults,o=t.connectionDefaults,r=(e||{}).shapeDefaults;n===!1?(i.editable=!1,o.editable=!1):(m(n,i.editable,["drag","remove","connect"]),m(n,o.editable,["drag","remove"])),r&&r.connectors&&(t.shapeDefaults.connectors=r.connectors)},_interactionDefaults:function(){var e=this.options,t=e.selectable,n=e.pannable,i=kendo.support.mobileOS;t&&!ge(t.multiple)&&(e.selectable=L({multiple:!i},e.selectable)),n&&!ge(n.key)&&(e.pannable=L({key:i?"none":"ctrl"},e.pannable))},_initCanvas:function(){var t=e("<div class='k-layer'></div>").appendTo(this.scrollable)[0],n=this.viewport();this.canvas=new W(t,{width:n.width||qe,height:n.height||Ge})},_createHandlers:function(){var e=this,t=e.element;t.on(ct,B(e._wheel,e)).on("keydown"+ye,B(e._keydown,e)),e._userEvents=new kendo.UserEvents(this.scrollable,{multiTouch:!0,fastTap:!0,tap:B(e._tap,e),start:B(e._dragStart,e),move:B(e._drag,e),end:B(e._dragEnd,e),gesturestart:B(e._gestureStart,e),gesturechange:B(e._gestureChange,e),gestureend:B(e._gestureEnd,e),doubleTap:B(e._doubleTap,e),supportDoubleTap:!0}),e.toolService=new ie(e),this.scrollable.on("mouseover"+ye,B(e._mouseover,e)).on("mouseout"+ye,B(e._mouseout,e)).on("mousemove"+ye,B(e._mouseMove,e)).on("mousedown"+ye,B(e._mouseDown,e)).on("mouseup"+ye,B(e._mouseUp,e)),this._syncHandler=B(e._syncChanges,e),e._resizeHandler=B(e.resize,e,!1),kendo.onResize(e._resizeHandler),this.bind(We,B(e._destroyToolBar,e)),this.bind(Ve,B(e._destroyToolBar,e))},_dragStart:function(e){var t,n;this._pauseMouseHandlers=!0,t=this._eventPositions(e,!0),n=e.event,this.toolService.start(t,this._meta(n))&&(this._destroyToolBar(),n.preventDefault())},_drag:function(e){var t=this._eventPositions(e),n=e.event;this.toolService.move(t,this._meta(n))&&n.preventDefault()},_dragEnd:function(e){var t,n;this._pauseMouseHandlers=!1,t=this._eventPositions(e),n=e.event,this.toolService.end(t,this._meta(n))&&(this._createToolBar(),n.preventDefault())},_mouseMove:function(e){if(!this._pauseMouseHandlers){var t=this._eventPositions(e);this.toolService._updateHoveredItem(t),this.toolService._updateCursor(t)}},_mouseDown:function(){this._pauseMouseHandlers=!0},_mouseUp:function(){this._pauseMouseHandlers=!1},_tap:function(e){var t,n,i,o=this.toolService,r=this.options.selectable,a=this._eventPositions(e),s=this.focus();o._updateHoveredItem(a),o.hoveredItem?(t=o.hoveredItem,this.trigger("click",{item:t,point:a,meta:this._meta(e.event)}),r&&t.options.selectable!==!1&&(n=r.multiple!==!1,i=kendo.support.mobileOS||this._meta(e.event).ctrlKey,t.isSelected?i?(this._destroyToolBar(),t.select(!1)):this._createToolBar(s):(this._destroyToolBar(),this.select(t,{addToSelection:n&&i}),this._createToolBar(s)))):r&&(this._destroyToolBar(),this.deselect())},_keydown:function(e){this.toolService.keyDown(e.keyCode,this._meta(e))&&e.preventDefault()},_wheel:function(e){var t=n(e),i=this._eventPositions(e),o=L(this._meta(e),{delta:t});this.toolService.wheel(i,o)&&e.preventDefault()},_meta:function(e){return{ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey,type:e.type}},_eventPositions:function(e,t){var n,i,o;return e.touch?(i=t?"startLocation":"location",n=new J(e.x[i],e.y[i])):(o=e.originalEvent,n=new J(o.pageX,o.pageY)),this.documentToModel(n)},_gestureStart:function(e){var t,n;this._destroyToolBar(),this.scroller.disable(),t=this.documentToModel(new J(e.center.x,e.center.y)),n={point:t,zoom:this.zoom()},this.trigger(We,n)||(this._gesture=e,this._initialCenter=t)},_gestureChange:function(e){var t,n,i=this._gesture,o=this._initialCenter,r=this.documentToView(new J(e.center.x,e.center.y)),a=e.distance/i.distance,s=this._zoom,l=!1;ke.abs(a-1)>=ut&&(this._zoom=s=this._getValidZoom(s*a),this.options.zoom=s,this._gesture=e,l=!0),t=o.times(s),n=r.minus(t),(l||this._pan.distanceTo(n)>=ht)&&(this._panTransform(n),this._updateAdorners()),e.preventDefault()},_doubleTap:function(e){var t=this,n=this._eventPositions(e),i=t.options,o=i.zoomRate,r=t.zoom()+o,a=this._meta(e),s={point:n,meta:a,zoom:r};t.trigger(We,s)||(r=kendo.dataviz.round(Math.max(i.zoomMin,Math.min(i.zoomMax,r)),2),s.zoom=r,t.zoom(r,s),t.trigger(Ue,s))},_gestureEnd:function(){this.options.pannable!==!1&&this.scroller.enable(),this.trigger(Ue,{point:this._initialCenter,zoom:this.zoom()})},_resize:function(){var e=this.viewport();this.canvas&&this.canvas.size(e),this.scrollable&&this.toolBar&&this.scrollable.height(e.height)},_mouseover:function(e){var t=e.target._kendoNode;t&&t.srcElement._hover&&t.srcElement._hover(!0,t.srcElement)},_mouseout:function(e){var t=e.target._kendoNode;t&&t.srcElement._hover&&t.srcElement._hover(!1,t.srcElement)},_initTheme:function(){var e,t=this,n=((t.options||{}).theme||"").toLowerCase(),i=I.ui.themes||{};e=I.SASS_THEMES.indexOf(n)!=-1?I.autoTheme().diagram:(i[n]||{}).diagram,t.options=L({},e,t.options),t.options.editable===!0&&L(t.options,{editable:(e||{}).editable})},_createOptionElements:function(){var e=this.options,t=e.shapes.length;t&&this._createShapes(),e.connections.length&&this._createConnections(),t&&e.layout&&this.layout(e.layout)},_createShapes:function(){var e,t,n=this,i=n.options,o=i.shapes;for(t=0;t<o.length;t++)e=o[t],n.addShape(e)},_createConnections:function(){var e,t,n,i,o=this,r=o.options,a=r.connectionDefaults,s=r.connections;for(i=0;i<s.length;i++)e=s[i],t=o._findConnectionTarget(e.from),n=o._findConnectionTarget(e.to),o.connect(t,n,L({},a,e))},_findConnectionTarget:function(e){var t,n,i;return e=e||{},t=this,n=be(e)?e:e.shapeId||e.id,n?(i=t.getShapeById(n),e.connector&&(i=i.getConnector(e.connector))):i=new J(e.x||0,e.y||0),i},destroy:function(){var e=this;P.fn.destroy.call(e),this._userEvents&&this._userEvents.destroy(),kendo.unbindResize(e._resizeHandler),e.clear(),e.element.off(ye),e.scroller.wrapper.off(ye),e.canvas.destroy(!0),e.canvas=t,e._destroyEditor(),e.destroyScroller(),e._destroyGlobalToolBar(),e._destroyToolBar()},destroyScroller:function(){var e=this.scroller;e&&(e.destroy(),e.element.remove(),this.scroller=null)},save:function(){var e,t,n,i={shapes:[],connections:[]};for(e=0;e<this.shapes.length;e++)n=this.shapes[e],n.options.serializable&&i.shapes.push(n.options);for(e=0;e<this.connections.length;e++)t=this.connections[e],i.connections.push(L({},t.options,t.toJSON()));return i},focus:function(){if(!this.element.is(kendo._activeElement())){var e,t=this.element,n=t[0],i=[],o=[],r=document.documentElement;do n=n.parentNode,n.scrollHeight>n.clientHeight&&(i.push(n),o.push(n.scrollTop));while(n!=r);for(t.focus(),e=0;e<i.length;e++)i[e].scrollTop=o[e];return!0}},load:function(e){this.clear(),this.setOptions(e),this._createShapes(),this._createConnections()},setOptions:function(e){L(this.options,e)},clear:function(){var e=this;e.select(!1),e.mainLayer.clear(),e._shapesQuadTree.clear(),e._initialize()},connect:function(e,t,n){var i,o;return this.connectionsDataSource&&this._isEditable?(o=this.connectionsDataSource.add({}),i=this._connectionsDataMap[o.uid],i.source(e),i.target(t),i.redraw(n),i.updateModel()):(i=new y(e,t,L({},this.options.connectionDefaults,n)),this.addConnection(i)),i},connected:function(e,t){var n,i;for(n=0;n<this.connections.length;n++)if(i=this.connections[n],i.from==e&&i.to==t)return!0;return!1},addConnection:function(e,t){return t!==!1&&this.undoRedoService.add(new F.AddConnectionUnit(e,this),!1),e.diagram=this,e._setOptionsFromModel(),e.refresh(),this.mainLayer.append(e.visual),this.connections.push(e),this.trigger(Se,{added:[e],removed:[]}),e},_addConnection:function(e,t){var n,i=this.connectionsDataSource;if(i&&this._isEditable){if(n=p(i,u(e.dataItem)),e.dataItem=n,e.updateModel(),!this.trigger("add",{connection:e}))return this._connectionsDataMap[n.uid]=e,i.add(n),this.addConnection(e,t),e._updateConnectors(),e}else if(!this.trigger("add",{connection:e}))return this.addConnection(e,t),e._updateConnectors(),e},addShape:function(e,t){var n,i=this.options.shapeDefaults;if(e instanceof k)n=e;else{if(e instanceof kendo.Class)return;i=L({},i,e||{}),n=new k(i,this)}return t!==!1&&this.undoRedoService.add(new F.AddShapeUnit(n,this),!1),this.shapes.push(n),n.diagram!==this&&(this._shapesQuadTree.insert(n),n.diagram=this),this.mainLayer.append(n.visual),this.trigger(Se,{added:[n],removed:[]}),n},_addShape:function(e,t){var n,i,o=this,r=o.dataSource;if(r&&this._isEditable){if(n=p(r,u(e.dataItem)),e.dataItem=n,e.updateModel(),!this.trigger("add",{shape:e}))return this.dataSource.add(n),i=this._inactiveShapeItems.getByUid(n.uid),i.element=e,i.undoable=t,e}else if(!this.trigger("add",{shape:e}))return this.addShape(e,t)},remove:function(e,t){var n,i,o,r;for(e=ve(e)?e.slice(0):[e],n=h(e),i=n.shapes,o=n.connections,ge(t)||(t=!0),t&&this.undoRedoService.begin(),this._suspendModelRefresh(),r=i.length-1;r>=0;r--)this._removeItem(i[r],t,o);for(r=o.length-1;r>=0;r--)this._removeItem(o[r],t);this._resumeModelRefresh(),t&&this.undoRedoService.commit(!1),this.trigger(Se,{added:[],removed:e})},_removeShapeDataItem:function(e){this._isEditable&&(this.dataSource.remove(e.dataItem),delete this._dataMap[e.dataItem.id])},_removeConnectionDataItem:function(e){this._isEditable&&(this.connectionsDataSource.remove(e.dataItem),delete this._connectionsDataMap[e.dataItem.uid])},_triggerRemove:function(e){var t,n,i,o,r=[];for(o=0;o<e.length;o++)t=e[o],i=t.options.editable,n=t instanceof k?{shape:t}:{connection:t},i&&i.remove!==!1&&!this.trigger("remove",n)&&r.push(t);return r},undo:function(){this.undoRedoService.undo()},redo:function(){this.undoRedoService.redo()},select:function(e,t){if(!me(e))return this._selectedItems;t=L({addToSelection:!1},t);var n,i,o=t.addToSelection,r=[],a=[];for(o||this.deselect(),this._internalSelection=!0,e instanceof Array?r=e:e instanceof b&&(r=[e]),n=0;n<r.length;n++)i=r[n],i.select(!0)&&a.push(i);this._selectionChanged(a,[]),this._internalSelection=!1},selectAll:function(){this.select(this.shapes.concat(this.connections))},selectArea:function(e){var t,n,i,o;if(this._internalSelection=!0,o=[],e instanceof $)for(n=this.shapes.concat(this.connections),t=0;t<n.length;t++)i=n[t],e&&!i._hitTest(e)||!i.options.enable||i.select(!0)&&o.push(i);this._selectionChanged(o,[]),this._internalSelection=!1},deselect:function(e){this._internalSelection=!0;var t,n,i=[],o=[];for(e instanceof Array?o=e:e instanceof b?o.push(e):me(e)||(o=this._selectedItems.slice(0)),n=0;n<o.length;n++)t=o[n],t.select(!1)&&i.push(t);this._selectionChanged([],i),this._internalSelection=!1},toFront:function(e,t){var n,i,o;e||(e=this._selectedItems.slice()),n=this._getDiagramItems(e),!ge(t)||t?(i=r(this.mainLayer,n.visuals),o=new ue(this,e,i),this.undoRedoService.add(o)):(this.mainLayer.toFront(n.visuals),this._fixOrdering(n,!0))},toBack:function(e,t){var n,i,o;e||(e=this._selectedItems.slice()),n=this._getDiagramItems(e),!ge(t)||t?(i=r(this.mainLayer,n.visuals),o=new ce(this,e,i),this.undoRedoService.add(o)):(this.mainLayer.toBack(n.visuals),this._fixOrdering(n,!1))},bringIntoView:function(e,t){var n,i,o,r,a=this.viewport(),s=new F.RectAlign(a);0!==a.width&&0!==a.height&&(t=L({animate:!1,align:"center middle"},t),"none"==t.align&&(t.align="center middle"),e instanceof b?i=e.bounds(it):ve(e)?i=this.boundingBox(e):e instanceof $&&(i=e.clone()),o=i.clone(),i.zoom(this._zoom),(i.width>a.width||i.height>a.height)&&(this._zoom=this._getValidZoom(ke.min(a.width/o.width,a.height/o.height)),i=o.clone().zoom(this._zoom)),this._zoomMainLayer(),n=i.clone(),s.align(i,t.align),r=i.topLeft().minus(n.topLeft()),this.pan(r.times(-1),t.animate))},alignShapes:function(e){var t,n,i,o,r,a,s;if(fe(e)&&(e="Left"),t=this.select(),0!==t.length){switch(e.toLowerCase()){case"left":case"top":n=et;break;case"right":case"bottom":n=tt}for(o=0;o<t.length;o++)if(i=t[o],i instanceof k)switch(e.toLowerCase()){case"left":n=ke.min(n,i.options.x);break;case"top":n=ke.min(n,i.options.y);break;case"right":n=ke.max(n,i.options.x);break;case"bottom":n=ke.max(n,i.options.y)}for(r=[],a=[],o=0;o<t.length;o++)if(i=t[o],i instanceof k)switch(a.push(i),r.push(i.bounds()),e.toLowerCase()){case"left":case"right":i.position(new J(n,i.options.y));break;case"top":case"bottom":i.position(new J(i.options.x,n))}s=new F.TransformUnit(a,r),this.undoRedoService.add(s,!1)}},zoom:function(e,t){var n,i,o,r;return e&&(n=t?t.point:new F.Point(0,0),e=this._zoom=this._getValidZoom(e),fe(n)||(n=new F.Point(ke.round(n.x),ke.round(n.y)),i=n.times(e),o=this.modelToView(n),r=o.minus(i),this._storePan(new F.Point(ke.round(r.x),ke.round(r.y)))),t&&(t.zoom=e),this._panTransform(),this.canvas.surface.hideTooltip(),this._updateAdorners()),this._zoom},_getPan:function(e){var t=this.canvas;return t.translate||(e=e.plus(this._pan)),e},pan:function(e,n){var i,o;return e instanceof J?(i=this,o=i.scroller,e=i._getPan(e),e=e.times(-1),n?o.animatedScrollTo(e.x,e.y,function(){i._updateAdorners()}):(o.scrollTo(e.x,e.y),i._updateAdorners()),t):this._pan.times(-1)},viewport:function(){var e=this.element,t=e.width(),n=e.height();return this.toolBar&&(n-=N(this.toolBar.element)),new $(0,0,t,n)},copy:function(){var e,t;if(this.options.copy.enabled)for(this._clipboard=[],this._copyOffset=1,e=0;e<this._selectedItems.length;e++)t=this._selectedItems[e],this._clipboard.push(t)},cut:function(){var e,t;if(this.options.copy.enabled){for(this._clipboard=[],this._copyOffset=0,e=0;e<this._selectedItems.length;e++)t=this._selectedItems[e],this._clipboard.push(t);this.remove(this._clipboard,!0)}},paste:function(){var e,t,n,i,o,r,a,s;if(this._clipboard.length>0){for(i={},o=h(this._clipboard),r=o.connections,a=o.shapes,s={x:this._copyOffset*this.options.copy.offsetX,y:this._copyOffset*this.options.copy.offsetY},this.deselect(),n=0;n<a.length;n++)e=a[n],t=e.clone(),i[e.id]=t,t.position(new J(e.options.x+s.x,e.options.y+s.y)),t.diagram=this,t=this._addShape(t),t&&t.select();for(n=0;n<r.length;n++)e=r[n],t=this._addConnection(e.clone()),t&&(this._updateCopiedConnection(t,e,"source",i,s),this._updateCopiedConnection(t,e,"target",i,s),t.select(!0),t.updateModel());this._syncChanges(),this._copyOffset+=1}},_updateCopiedConnection:function(e,t,n,i,o){var r,a,s,l=t[n](),d=this;l instanceof w&&i[l.shape.id]?(s=i[l.shape.id],d.getShapeById(s.id)?e[n](s.getConnector(l.options.name)):(a=d._inactiveShapeItems.getByUid(s.dataItem.uid),a&&(r=function(t){s=d._dataMap[t.id],e[n](s.getConnector(l.options.name)),e.updateModel()},d._deferredConnectionUpdates.push(a.onActivate(r))))):e[n](new J(t[n+"Point"]().x+o.x,t[n+"Point"]().y+o.y))},boundingBox:function(e,t){var n,i,o,r=$.empty(),a=me(e)?this._getDiagramItems(e):{shapes:this.shapes};if(a.shapes.length>0)for(i=a.shapes[0],r=i.bounds(ot),o=1;o<a.shapes.length;o++)i=a.shapes[o],n=i.bounds(ot),t===!0&&(n.x-=i._rotationOffset.x,n.y-=i._rotationOffset.y),r=r.union(n);return r},_containerOffset:function(){var e=this.element.offset();return this.toolBar&&(e.top+=N(this.toolBar.element)),e},documentToView:function(e){var t=this._containerOffset();return new J(e.x-t.left,e.y-t.top)},viewToDocument:function(e){var t=this._containerOffset();return new J(e.x+t.left,e.y+t.top)},viewToModel:function(e){return this._transformWithMatrix(e,this._matrixInvert)},modelToView:function(e){return this._transformWithMatrix(e,this._matrix)},modelToLayer:function(e){return this._transformWithMatrix(e,this._layerMatrix)},layerToModel:function(e){return this._transformWithMatrix(e,this._layerMatrixInvert)},documentToModel:function(e){var t=this.documentToView(e);return this.canvas.translate||(t.x=t.x+this.scroller.scrollLeft,t.y=t.y+this.scroller.scrollTop),this.viewToModel(t)},modelToDocument:function(e){return this.viewToDocument(this.modelToView(e))},_transformWithMatrix:function(e,t){var n,i,o=e;return e instanceof J?t&&(o=t.apply(e)):(n=this._transformWithMatrix(e.topLeft(),t),i=this._transformWithMatrix(e.bottomRight(),t),o=$.fromPoints(n,i)),o},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&this.dataSource.fetch()},setConnectionsDataSource:function(e){this.options.connectionsDataSource=e,this._connectionDataSource(),this.options.autoBind&&this.connectionsDataSource.fetch()},layout:function(e){var t,n,i,o,r;switch(this._layouting=!0,fe(e)&&(e=this.options.layout),t=fe(e)||fe(e.type)?"Tree":e.type,t.toLowerCase()){case"tree":n=new F.TreeLayout(this);break;case"layered":n=new F.LayeredLayout(this);break;case"forcedirected":case"force":case"spring":case"springembedder":n=new F.SpringLayout(this);break;default:throw"Layout algorithm '"+t+"' is not supported."}i=new F.LayoutState(this),o=n.layout(e),o&&(r=new F.LayoutUndoUnit(i,o,e?e.animate:null),this.undoRedoService.add(r)),this._layouting=!1,this._redrawConnections()},getShapeById:function(e){var t;return(t=le.first(this.shapes,function(t){return t.visual.id===e}))?t:t=le.first(this.connections,function(t){return t.visual.id===e})},getShapeByModelId:function(e){var t;return t=this._isEditable?this._dataMap[e]:le.first(this.shapes,function(t){return(t.dataItem||{}).id===e})},getShapeByModelUid:function(e){var t;return t=this._isEditable?le.first(this.shapes,function(t){return(t.dataItem||{}).uid===e}):this._dataMap[e]},getConnectionByModelId:function(e){var t;return this.connectionsDataSource&&(t=le.first(this.connections,function(t){return(t.dataItem||{}).id===e})),t},getConnectionByModelUid:function(e){var t;return this.connectionsDataSource&&(t=this._connectionsDataMap[e]),t},_extendLayoutOptions:function(e){e.layout&&(e.layout=L({},F.LayoutBase.fn.defaultOptions||{},e.layout))},_selectionChanged:function(e,t){(e.length||t.length)&&this.trigger(Ne,{selected:e,deselected:t})},_getValidZoom:function(e){return ke.min(ke.max(e,this.options.zoomMin),this.options.zoomMax)},_panTransform:function(e){var t=this,n=e||t._pan;t.canvas.translate?(t.scroller.scrollTo(n.x,n.y),t._zoomMainLayer()):(t._storePan(n),t._transformMainLayer())},_finishPan:function(){this.trigger(Ve,{total:this._pan,delta:Number.NaN})},_storePan:function(e){this._pan=e,this._storeViewMatrix()},_zoomMainLayer:function(){var e=this._zoom,t=new G(0,0,e,e);t.render(this.mainLayer),this._storeLayerMatrix(t),this._storeViewMatrix()},_transformMainLayer:function(){var e=this._pan,t=this._zoom,n=new G(e.x,e.y,t,t);n.render(this.mainLayer),this._storeLayerMatrix(n),this._storeViewMatrix()},_storeLayerMatrix:function(e){this._layerMatrix=e.toMatrix(),this._layerMatrixInvert=e.invert().toMatrix()},_storeViewMatrix:function(){var e=this._pan,t=this._zoom,n=new G(e.x,e.y,t,t);this._matrix=n.toMatrix(),this._matrixInvert=n.invert().toMatrix()},_toIndex:function(e,t){var n=this._getDiagramItems(e);this.mainLayer.toIndex(n.visuals,t),this._fixOrdering(n,!1)},_fixOrdering:function(e,t){var n,i,o=t?this.shapes.length-1:0,r=t?this.connections.length-1:0;for(n=0;n<e.shapes.length;n++)i=e.shapes[n],le.remove(this.shapes,i),le.insert(this.shapes,i,o);for(n=0;n<e.cons.length;n++)i=e.cons[n],le.remove(this.connections,i),le.insert(this.connections,i,r)},_getDiagramItems:function(e){var t,n,i={},o=e;for(i.visuals=[],i.shapes=[],i.cons=[],e?ve(e)||(o=[e]):o=this._selectedItems.slice(),t=0;t<o.length;t++)n=o[t],n instanceof k?(i.shapes.push(n),i.visuals.push(n.visual)):n instanceof y&&(i.cons.push(n),i.visuals.push(n.visual));return i},_removeItem:function(e,t,n){e.select(!1),e instanceof k?(this._removeShapeDataItem(e),this._removeShape(e,t,n)):e instanceof y&&(this._removeConnectionDataItem(e),this._removeConnection(e,t)),this.mainLayer.remove(e.visual)},_removeShape:function(e,t,n){var i,o,r,a,s=[],l=[];for(this.toolService._removeHover(),t&&this.undoRedoService.addCompositeItem(new Y(e)),le.remove(this.shapes,e),this._shapesQuadTree.remove(e),i=0;i<e.connectors.length;i++)for(r=e.connectors[i],a=0;a<r.connections.length;a++)o=r.connections[a],n&&I.inArray(o,n)||(o.sourceConnector==r?s.push(o):o.targetConnector==r&&l.push(o));for(i=0;i<s.length;i++)s[i].source(null,t),s[i].updateModel();for(i=0;i<l.length;i++)l[i].target(null,t),l[i].updateModel()},_removeConnection:function(e,t){e.sourceConnector&&le.remove(e.sourceConnector.connections,e),e.targetConnector&&le.remove(e.targetConnector.connections,e),t&&this.undoRedoService.addCompositeItem(new Q(e)),le.remove(this.connections,e)},_removeDataItems:function(e,t){var n,i,o,r;for(e=ve(e)?e:[e];e.length;)if(n=e.shift(),o=this._dataMap[n.uid],o&&(this._removeShapeConnections(o),this._removeItem(o,!1),delete this._dataMap[n.uid],t&&n.hasChildren&&n.loaded()))for(i=n.children.data(),r=0;r<i.length;r++)e.push(i[r])},_removeShapeConnections:function(e){var t,n=e.connections();if(n)for(t=0;t<n.length;t++)this._removeItem(n[t],!1)},_addDataItem:function(e,t){var n,i;if(ge(e))return(n=this._dataMap[e.id])?n:(i=L({},this.options.shapeDefaults),i.dataItem=e,n=new k(i,this),this.addShape(n,t!==!1),this._dataMap[e.id]=n,n)},_addDataItemByUid:function(e){var t,n;if(ge(e))return(t=this._dataMap[e.uid])?t:(n=L({},this.options.shapeDefaults),n.dataItem=e,t=new k(n,this),this.addShape(t),this._dataMap[e.uid]=t,t)},_addDataItems:function(e,t){var n,i,o,r,a;for(i=0;i<e.length;i++)n=e[i],o=this._addDataItemByUid(n),r=this._addDataItemByUid(t),r&&!this.connected(r,o)&&(a=this.connect(r,o))},_refreshSource:function(e){var t,n,i=this,o=e.node,r=e.action,a=e.items,s=i.options;if(e.field)for(t=0;t<a.length;t++)this._dataMap[a[t].uid]&&this._dataMap[a[t].uid].redrawVisual();else{if("remove"==r)this._removeDataItems(e.items,!0);else for(r&&"itemloaded"!==r||this._bindingRoots||(this._bindingRoots=!0,n=!0),r||o||i.clear(),this._addDataItems(a,o),t=0;t<a.length;t++)a[t].load();s.layout&&(n||"remove"==r||"add"==r)&&i.layout(s.layout),n&&(this.trigger("dataBound"),this._bindingRoots=!1)}},_addItem:function(e){e instanceof k?this.addShape(e):e instanceof y&&this.addConnection(e)},_createToolBar:function(e){var t,n,i,o,r,a,s,l,d,c=this.toolService.diagram;this.singleToolBar||1!==c.select().length||(t=c.select()[0],t&&t.options.editable!==!1&&(n=t.options.editable,i=n.tools,this._isEditable&&0===i.length&&(t instanceof k?i=["edit","rotateClockwise","rotateAnticlockwise"]:t instanceof y&&(i=["edit"]),n&&n.remove!==!1&&i.push("delete")),i&&i.length&&(o=20,this.singleToolBar=new C(c,{tools:i,click:B(this._toolBarClick,this),modal:!0,popupZIndex:parseInt(c.element.closest(".k-window").css("zIndex"),10)+10}),a=H(this.singleToolBar._popup.element),s=N(this.singleToolBar._popup.element),t instanceof k?(l=this.modelToView(t.bounds(ot)),r=new J(l.x,l.y).minus(new J((a-l.width)/2,s+o))):t instanceof y&&(d=this.modelToView(t.bounds()),r=new J(d.x,d.y).minus(new J((a-d.width-20)/2,s+o))),r?(this.canvas.translate||(r=r.minus(new J(this.scroller.scrollLeft,this.scroller.scrollTop))),r=this.viewToDocument(r),r=new J(ke.max(r.x,0),ke.max(r.y,0)),this.singleToolBar.showAt(r),e&&this.singleToolBar._popup.one("close",v)):this._destroyToolBar())))},_toolBarClick:function(e){this.trigger("toolBarClick",e),this._destroyToolBar()},_normalizePointZoom:function(e){return e.times(1/this.zoom())},_initialize:function(){this.shapes=[],this._selectedItems=[],this.connections=[],this._dataMap={},this._connectionsDataMap={},this._inactiveShapeItems=new c,this._deferredConnectionUpdates=[],this.undoRedoService=new ne({undone:this._syncHandler,redone:this._syncHandler}),this.id=F.randomId()},_fetchFreshData:function(){var e=this;e._dataSource(),e._isEditable&&e._connectionDataSource(),e.options.autoBind&&(e._isEditable?(this._loadingShapes=!0,this._loadingConnections=!0,e.dataSource.fetch(),e.connectionsDataSource.fetch()):e.dataSource.fetch())},_dataSource:function(){var e,t;ge(this.options.connectionsDataSource)?(this._isEditable=!0,e=this.options.dataSource||{},t=ve(e)?{data:e}:e,this.dataSource&&this._shapesRefreshHandler?this.dataSource.unbind("change",this._shapesRefreshHandler).unbind("requestStart",this._shapesRequestStartHandler).unbind("error",this._shapesErrorHandler):(this._shapesRefreshHandler=B(this._refreshShapes,this),this._shapesRequestStartHandler=B(this._shapesRequestStart,this),this._shapesErrorHandler=B(this._error,this)),this.dataSource=kendo.data.DataSource.create(t).bind("change",this._shapesRefreshHandler).bind("requestStart",this._shapesRequestStartHandler).bind("error",this._shapesErrorHandler)):(this._treeDataSource(),this._isEditable=!1)},_connectionDataSource:function(){var e,t=this.options.connectionsDataSource;t&&(e=ve(t)?{data:t}:t,this.connectionsDataSource&&this._connectionsRefreshHandler?this.connectionsDataSource.unbind("change",this._connectionsRefreshHandler).unbind("requestStart",this._connectionsRequestStartHandler).unbind("error",this._connectionsErrorHandler):(this._connectionsRefreshHandler=B(this._refreshConnections,this),this._connectionsRequestStartHandler=B(this._connectionsRequestStart,this),this._connectionsErrorHandler=B(this._connectionsError,this)),this.connectionsDataSource=kendo.data.DataSource.create(e).bind("change",this._connectionsRefreshHandler).bind("requestStart",this._connectionsRequestStartHandler).bind("error",this._connectionsErrorHandler))},_shapesRequestStart:function(e){"read"==e.type&&(this._loadingShapes=!0)},_connectionsRequestStart:function(e){"read"==e.type&&(this._loadingConnections=!0)},_error:function(){this._loadingShapes=!1},_connectionsError:function(){this._loadingConnections=!1},_refreshShapes:function(e){"remove"===e.action?this._shouldRefresh()&&this._removeShapes(e.items):"itemchange"===e.action?this._shouldRefresh()&&this._updateShapes(e.items,e.field):"add"===e.action?this._inactiveShapeItems.add(e.items):"sync"===e.action?this._syncShapes(e.items):this.refresh()},_shouldRefresh:function(){return!this._suspended},_suspendModelRefresh:function(){this._suspended=(this._suspended||0)+1},_resumeModelRefresh:function(){this._suspended=ke.max((this._suspended||0)-1,0)},refresh:function(){this._loadingShapes=!1,this._loadingConnections||this._rebindShapesAndConnections()},_rebindShapesAndConnections:function(){this.clear(),this._addShapes(this.dataSource.view()),this.connectionsDataSource&&this._addConnections(this.connectionsDataSource.view(),!1),this.options.layout?this.layout(this.options.layout):this._redrawConnections(),this.trigger("dataBound")},refreshConnections:function(){this._loadingConnections=!1,this._loadingShapes||this._rebindShapesAndConnections()},_redrawConnections:function(){var e,t=this.connections;for(e=0;e<t.length;e++)t[e].refresh()},_removeShapes:function(e){var t,n,i=this._dataMap;for(n=0;n<e.length;n++)t=e[n],i[t.id]&&(this.remove(i[t.id],!1),i[t.id]=null)},_syncShapes:function(){var e=this,t=e._inactiveShapeItems;t.forEach(function(n){var i=n.dataItem,o=n.element;i.isNew()||(o?(o._setOptionsFromModel(),e.addShape(o,n.undoable),e._dataMap[i.id]=o):e._addDataItem(i),n.activate(),t.remove(i))})},_updateShapes:function(e,t){var n,i,o;for(n=0;n<e.length;n++)i=e[n],o=this._dataMap[i.id],o&&o.updateOptionsFromModel(i,t)},_addShapes:function(e){for(var t=0;t<e.length;t++)this._addDataItem(e[t],!1)},_refreshConnections:function(e){"remove"===e.action?this._shouldRefresh()&&this._removeConnections(e.items):"add"===e.action?this._addConnections(e.items):"sync"===e.action||("itemchange"===e.action?this._shouldRefresh()&&this._updateConnections(e.items):this.refreshConnections())},_removeConnections:function(e){for(var t=0;t<e.length;t++)this.remove(this._connectionsDataMap[e[t].uid],!1),this._connectionsDataMap[e[t].uid]=null},_updateConnections:function(e){var t,n,i;for(t=0;t<e.length;t++)n=e[t],i=this._connectionsDataMap[n.uid],i.updateOptionsFromModel(n)},_addConnections:function(e,t){var n,i,o=e.length;for(n=0;n<o;n++)i=e[n],this._addConnectionDataItem(i,t)},_addConnectionDataItem:function(e,t){var n,i,o,r;this._connectionsDataMap[e.uid]||(n=this._validateConnector(e.from),ge(n)&&null!==n||(n=new J(e.fromX,e.fromY)),i=this._validateConnector(e.to),ge(i)&&null!==i||(i=new J(e.toX,e.toY)),ge(n)&&ge(i)&&(o=L({},this.options.connectionDefaults),o.dataItem=e,r=new y(n,i,o),this._connectionsDataMap[e.uid]=r,this.addConnection(r,t)))},_validateConnector:function(e){var t;return ge(e)&&null!==e&&(t=this._dataMap[e]),t},_treeDataSource:function(){var e=this,t=e.options,n=t.dataSource;if(n=ve(n)?{data:n}:n,n instanceof kendo.data.DataSource&&!(n instanceof kendo.data.HierarchicalDataSource))throw Error("Incorrect DataSource type. If a single dataSource instance is set to the diagram then it should be a HierarchicalDataSource. You should set only the options instead of an instance or a HierarchicalDataSource instance or supply connectionsDataSource as well.");n.fields||(n.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),e.dataSource&&e._refreshHandler&&e._unbindDataSource(),e._refreshHandler=B(e._refreshSource,e),e._errorHandler=B(e._error,e),e.dataSource=V.create(n).bind(Se,e._refreshHandler).bind(Re,e._errorHandler)},_unbindDataSource:function(){var e=this;e.dataSource.unbind(Se,e._refreshHandler).unbind(Re,e._errorHandler)},_adorn:function(e,n){n!==t&&e&&(n?(this._adorners.push(e),this.adornerLayer.append(e.visual)):(le.remove(this._adorners,e),this.adornerLayer.remove(e.visual)))},_showConnectors:function(e,t){t?this._connectorsAdorner.show(e):this._connectorsAdorner.destroy()},_updateAdorners:function(){var e,t,n=this._adorners;for(e=0;e<n.length;e++)t=n[e],t.refreshBounds&&t.refreshBounds(),t.refresh()},_refresh:function(){for(var e=0;e<this.connections.length;e++)this.connections[e].refresh()},_destroyToolBar:function(){this.singleToolBar&&(this.singleToolBar.hide(),this.singleToolBar.destroy(),this.singleToolBar=null)},_destroyGlobalToolBar:function(){this.toolBar&&(this.toolBar.hide(),this.toolBar.destroy(),this.toolBar=null)},exportDOMVisual:function(){var e=this.canvas._viewBox,t=R.transform().translate(-e.x,-e.y),n=new R.Rect([0,0],[e.width,e.height]),i=M.Path.fromRect(n),o=new M.Group({transform:t}),r=new M.Group({clip:i}),a=this.canvas.drawingElement.children[0];return r.append(o),o.children.push(a),r},exportVisual:function(){var e=R.transform().scale(1/this._zoom),t=new M.Group({transform:e}),n=this.mainLayer.drawingElement;return t.children.push(n),t},_syncChanges:function(){this._syncShapeChanges(),this._syncConnectionChanges()},_syncShapeChanges:function(){this.dataSource&&this._isEditable&&this.dataSource.sync()},_syncConnectionChanges:function(){var t=this;t.connectionsDataSource&&t._isEditable&&(e.when.apply(e,t._deferredConnectionUpdates).then(function(){t.connectionsDataSource.sync()}),t.deferredConnectionUpdates=[])}}),I.ExportMixin.extend(x.fn,!0),kendo.PDFMixin&&kendo.PDFMixin.extend(x.fn),C=kendo.Observable.extend({init:function(e,t){kendo.Observable.fn.init.call(this),this.diagram=e,this.options=L({},this.options,t),this._tools=[],this.createToolBar(),this.createTools(),this.appendTools(),this.options.modal&&this.createPopup(),this.bind(this.events,t)},events:["click"],createPopup:function(){this.container=e("<div/>").append(this.element),this._popup=this.container.kendoPopup({}).getKendoPopup()},appendTools:function(){var e,t;for(e=0;e<this._tools.length;e++)t=this._tools[e],(t.buttons&&t.buttons.length||!ge(t.buttons))&&this._toolBar.add(t);
},createToolBar:function(){this.element=e("<div/>"),this._toolBar=this.element.kendoToolBar({click:B(this.click,this),resizable:!1}).getKendoToolBar(),this.element.css("border","none")},createTools:function(){for(var e=0;e<this.options.tools.length;e++)this.createTool(this.options.tools[e])},createTool:function(e){we(e)||(e={name:e});var t=e.name+"Tool";this[t]?this[t](e):this._tools.push(L({},e,{attributes:this._setAttributes({action:e.name})}))},showAt:function(e){var t=parseInt(this.options.popupZIndex,10);this._popup&&(this._popup.open(e.x,e.y),t&&this._popup.wrapper.css("zIndex",t))},hide:function(){this._popup&&this._popup.close()},newGroup:function(){return{type:"buttonGroup",buttons:[]}},editTool:function(){this._tools.push({icon:"edit",showText:"overflow",type:"button",text:"Edit",attributes:this._setAttributes({action:"edit"})})},deleteTool:function(){this._tools.push({icon:"close",showText:"overflow",type:"button",text:"Delete",attributes:this._setAttributes({action:"delete"})})},rotateAnticlockwiseTool:function(e){this._appendGroup("rotate"),this._rotateGroup.buttons.push({icon:"rotate-left",showText:"overflow",text:"RotateAnticlockwise",group:"rotate",attributes:this._setAttributes({action:"rotateAnticlockwise",step:e.step})})},rotateClockwiseTool:function(e){this._appendGroup("rotate"),this._rotateGroup.buttons.push({icon:"rotate-right",attributes:this._setAttributes({action:"rotateClockwise",step:e.step}),showText:"overflow",text:"RotateClockwise",group:"rotate"})},createShapeTool:function(){this._appendGroup("create"),this._createGroup.buttons.push({icon:"shape",showText:"overflow",text:"CreateShape",group:"create",attributes:this._setAttributes({action:"createShape"})})},createConnectionTool:function(){this._appendGroup("create"),this._createGroup.buttons.push({icon:"connector",showText:"overflow",text:"CreateConnection",group:"create",attributes:this._setAttributes({action:"createConnection"})})},undoTool:function(){this._appendGroup("history"),this._historyGroup.buttons.push({icon:"undo",showText:"overflow",text:"Undo",group:"history",attributes:this._setAttributes({action:"undo"})})},redoTool:function(){this._appendGroup("history"),this._historyGroup.buttons.push({icon:"redo",showText:"overflow",text:"Redo",group:"history",attributes:this._setAttributes({action:"redo"})})},_appendGroup:function(e){var t="_"+e+"Group";this[t]||(this[t]=this.newGroup(),this._tools.push(this[t]))},_setAttributes:function(e){var t={};return e.action&&(t[kendo.attr("action")]=e.action),e.step&&(t[kendo.attr("step")]=e.step),t},_getAttributes:function(e){var t,n={},i=e.attr(kendo.attr("action"));return i&&(n.action=i),t=e.attr(kendo.attr("step")),t&&(n.step=t),n},click:function(t){var n=this._getAttributes(e(t.target)),i=n.action;i&&this[i]&&this[i](n),this.trigger("click",this.eventData(i,t.target))},eventData:function(e,t){var n,i,o=this.selectedElements(),r=o.length,a=[],s=[];for(i=0;i<r;i++)n=o[i],n instanceof k?a.push(n):s.push(n);return{shapes:a,connections:s,action:e,target:t}},"delete":function(){var e=this.diagram,t=e._triggerRemove(this.selectedElements());t.length&&(this.diagram.remove(t,!0),this.diagram._syncChanges())},edit:function(){var e=this.selectedElements();1===e.length&&this.diagram.edit(e[0])},rotateClockwise:function(e){var t=parseFloat(e.step||90);this._rotate(t)},rotateAnticlockwise:function(e){var t=parseFloat(e.step||90);this._rotate(-t)},_rotate:function(e){var t=this.diagram._resizingAdorner;t.angle(t.angle()+e),t.rotate()},selectedElements:function(){return this.diagram.select()},createShape:function(){this.diagram.createShape()},createConnection:function(){this.diagram.createConnection()},undo:function(){this.diagram.undo()},redo:function(){this.diagram.redo()},destroy:function(){this.diagram=null,this.element=null,this.options=null,this._toolBar&&this._toolBar.destroy(),this._popup&&this._popup.destroy()}}),S=kendo.Observable.extend({init:function(e,t){kendo.Observable.fn.init.call(this),this.options=O(!0,{},this.options,t),this.element=e,this.model=this.options.model,this.fields=this._getFields(),this._initContainer(),this.createEditable()},options:{editors:{}},_initContainer:function(){this.wrapper=this.element},createEditable:function(){var e=this.options;this.editable=new kendo.ui.Editable(this.wrapper,{fields:this.fields,target:e.target,clearContainer:!1,model:this.model})},_isEditable:function(e){return this.model.editable&&this.model.editable(e)},_getFields:function(){var e,t,n,i=[],o=this.model.fields;for(e in o)t={},this._isEditable(e)&&(n=this.options.editors[e],n&&(t.editor=n),t.field=e,i.push(t));return i},end:function(){return this.editable.end()},destroy:function(){this.editable.destroy(),this.editable.element.find("["+kendo.attr("container-for")+"]").empty(),this.model=this.wrapper=this.element=this.columns=this.editable=null}}),T=S.extend({init:function(e,t){S.fn.init.call(this,e,t),this.bind(this.events,this.options),this.open()},events:["update","cancel"],options:{window:{modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1}},_initContainer:function(){var t,n=this;this.wrapper=e('<div class="k-popup-edit-form"/>').attr(kendo.attr("uid"),this.model.uid),t="",this.options.template?(t+=this._renderTemplate(),this.fields=[]):t+=this._renderFields(),t+=this._renderButtons(),this.wrapper.append(e('<div class="k-edit-form-container"/>').append(t)),this.window=new kendo.ui.Window(this.wrapper.appendTo(this.element),this.options.window),this.window.bind("close",function(e){e.userTriggered&&(e.sender.element.focus(),n._cancelClick(e))}),this._attachButtonEvents()},_renderTemplate:function(){var e=this.options.template;return"string"==typeof e&&(e=kendo.unescape(e)),e=kendo.template(e)(this.model)},_renderFields:function(){var e,t,n="";for(e=0;e<this.fields.length;e++)t=this.fields[e],n+='<div class="k-edit-label"><label for="'+t.field+'">'+(t.field||"")+"</label></div>",this._isEditable(t.field)&&(n+="<div "+kendo.attr("container-for")+'="'+t.field+'" class="k-edit-field"></div>');return n},_renderButtons:function(){var e='<div class="k-edit-buttons k-state-default">';return e+=this._createButton("update"),e+=this._createButton("cancel"),e+="</div>"},_createButton:function(e){return kendo.template(pt)(_[e])},_attachButtonEvents:function(){this._cancelClickHandler=B(this._cancelClick,this),this.window.element.on(Te+ye,"a.k-diagram-cancel",this._cancelClickHandler),this._updateClickHandler=B(this._updateClick,this),this.window.element.on(Te+ye,"a.k-diagram-update",this._updateClickHandler)},_updateClick:function(e){e.preventDefault(),this.trigger("update")},_cancelClick:function(e){e.preventDefault(),this.trigger("cancel")},open:function(){this.window.center().open()},close:function(){this.window.bind("deactivate",B(this.destroy,this)).close()},destroy:function(){this.window.close().destroy(),this.window.element.off(Te+ye,"a.k-diagram-cancel",this._cancelClickHandler),this.window.element.off(Te+ye,"a.k-diagram-update",this._updateClickHandler),this._cancelClickHandler=null,this._editUpdateClickHandler=null,this.window=null,S.fn.destroy.call(this)}}),d.fn=d.prototype={onActivate:function(t){var n=e.Deferred();return this.callbacks.push({callback:t,deferred:n}),n},activate:function(){var e,t,n=this.callbacks;for(t=0;t<n.length;t++)e=this.callbacks[t],e.callback(this.dataItem),e.deferred.resolve();this.callbacks=[]}},c.fn=c.prototype={add:function(e){for(var t=0;t<e.length;t++)this.items[e[t].uid]=new d(e[t])},forEach:function(e){for(var t in this.items)e(this.items[t])},getByUid:function(e){return this.items[e]},remove:function(e){delete this.items[e.uid]}},D=z.extend({init:function(){this.shapes=[]},_add:function(e,t){this.shapes.push({bounds:t,shape:e}),e._quadNode=this},insert:function(e,t){this._add(e,t)},remove:function(e){var t,n=this.shapes,i=n.length;for(t=0;t<i;t++)if(n[t].shape===e){n.splice(t,1);break}},hitTestRect:function(e,t){var n,i=this.shapes,o=i.length;for(n=0;n<o;n++)if(this._testRect(i[n].shape,e)&&!I.inArray(i[n].shape,t))return!0},_testRect:function(e,t){var n,i=e.rotate().angle,o=e.bounds();return n=i?ee.rects(t,o,-i):o.overlaps(t)}}),A=D.extend({init:function(e){D.fn.init.call(this),this.children=[],this.rect=e},inBounds:function(e){var t=this.rect,n=t.bottomRight(),i=e.bottomRight(),o=t.x<=e.x&&t.y<=e.y&&i.x<=n.x&&i.y<=n.y;return o},overlapsBounds:function(e){return this.rect.overlaps(e)},insert:function(e,t){var n,i=!1,o=this.children,r=o.length;if(this.inBounds(t)){if(!r&&this.shapes.length<4)this._add(e,t);else{for(r||this._initChildren(),n=0;n<o.length;n++)if(o[n].insert(e,t)){i=!0;break}i||this._add(e,t)}i=!0}return i},_initChildren:function(){var e,t,n=this.rect,i=this.children,o=this.shapes,r=n.center(),a=n.width/2,s=n.height/2;for(i.push(new A(new $(n.x,n.y,a,s)),new A(new $(r.x,n.y,a,s)),new A(new $(n.x,r.y,a,s)),new A(new $(r.x,r.y,a,s))),t=o.length-1;t>=0;t--)for(e=0;e<i.length;e++)if(i[e].insert(o[t].shape,o[t].bounds)){o.splice(t,1);break}},hitTestRect:function(e,t){var n,i=this.children,o=i.length,r=!1;if(this.overlapsBounds(e))if(D.fn.hitTestRect.call(this,e,t))r=!0;else for(n=0;n<o;n++)if(i[n].hitTestRect(e,t)){r=!0;break}return r}}),E=z.extend({ROOT_SIZE:1e3,init:function(e){var t=B(this._boundsChange,this);e.bind(Ce,t),e.bind(Oe,t),this.initRoots()},initRoots:function(){this.rootMap={},this.root=new D},clear:function(){this.initRoots()},_boundsChange:function(e){e.item._quadNode&&e.item._quadNode.remove(e.item),this.insert(e.item)},insert:function(e){var t=e.bounds(ot),n=this.ROOT_SIZE,i=this.getSectors(t),o=i[0][0],r=i[1][0];this.inRoot(i)?this.root.insert(e,t):(this.rootMap[o]||(this.rootMap[o]={}),this.rootMap[o][r]||(this.rootMap[o][r]=new A(new $(o*n,r*n,n,n))),this.rootMap[o][r].insert(e,t))},remove:function(e){e._quadNode&&e._quadNode.remove(e)},inRoot:function(e){return e[0].length>1||e[1].length>1},getSectors:function(e){var t,n,i=this.ROOT_SIZE,o=e.bottomRight(),r=ke.floor(o.x/i),a=ke.floor(o.y/i),s=[[],[]];for(t=ke.floor(e.x/i);t<=r;t++)s[0].push(t);for(n=ke.floor(e.y/i);n<=a;n++)s[1].push(n);return s},hitTestRect:function(e,t){var n,i,o,r,a,s=this.getSectors(e);if(this.root.hitTestRect(e,t))return!0;for(n=0;n<s[0].length;n++)for(o=s[0][n],i=0;i<s[1].length;i++)if(r=s[1][i],a=(this.rootMap[o]||{})[r],a&&a.hitTestRect(e,t))return!0;return!1}}),I.ui.plugin(x),L(F,{Shape:k,Connection:y,Connector:w,DiagramToolBar:C,QuadNode:A,QuadRoot:D,ShapesQuadTree:E,PopupEditor:T})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.diagram.min",["kendo.data.min","kendo.draganddrop.min","kendo.userevents.min","kendo.mobile.scroller.min","kendo.drawing.min","dataviz/diagram/utils.min","dataviz/diagram/math.min","dataviz/diagram/svg.min","dataviz/diagram/services.min","dataviz/diagram/layout.min","dataviz/diagram/dom.min"],e)}(function(){return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.treemap.min",["kendo.data.min","kendo.userevents.min","kendo.dataviz.themes.min"],e)}(function(){return function(e,t){function n(e,t){if(null===t)return t;var n=C(e,!0);return n(t)}function i(e){return typeof e!==F}function o(e,t,n){var i,o,l=s(e),d=s(t),c=u(e)-u(t)<0,h=[];for(h.push(e),i=0;i<n;i++)o={r:r(l.r,d.r,i,n,c),g:r(l.g,d.g,i,n,c),b:r(l.b,d.b,i,n,c)},h.push(a(o));return h.push(t),h}function r(e,t,n,i,o){var r,a=p.min(p.abs(e),p.abs(t)),s=p.max(p.abs(e),p.abs(t)),l=(s-a)/(i+1),d=l*(n+1);return r=o?a+d:s-d}function a(e){return"#"+l(e.r)+l(e.g)+l(e.b)}function s(e){e=e.replace("#","");var t=d(e);return{r:c(t.r),g:c(t.g),b:c(t.b)}}function l(e){var t=p.round(e).toString(16).toUpperCase();return 1===t.length&&(t="0"+t),t}function d(e){var t=e.length,n={};return 3===t?(n.r=e[0],n.g=e[1],n.b=e[2]):(n.r=e.substring(0,2),n.g=e.substring(2,4),n.b=e.substring(4,6)),n}function c(e){return parseInt(e.toString(16),16)}function u(e){var t=0;return e&&(e=s(e),t=p.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)),t}function h(e){var t=p.pow(10,4);return p.round(e*t)/t}var p=Math,f=e.proxy,m=e.isArray,g=window.kendo,v=g._outerHeight,_=g._outerWidth,b=g.Class,w=g.ui.Widget,k=g.template,y=g.deepExtend,x=g.data.HierarchicalDataSource,C=g.getter,S=g.dataviz,T=".kendoTreeMap",D="change",A="dataBound",E="itemCreated",I=Number.MAX_VALUE,M="mouseover"+T,R="mouseleave"+T,F="undefined",P=w.extend({init:function(t,n){g.destroy(t),e(t).empty(),w.fn.init.call(this,t,n),this.wrapper=this.element,this._initTheme(this.options),this.element.addClass("k-widget k-treemap"),this._setLayout(),this._originalOptions=y({},this.options),this._initDataSource(),this._attachEvents(),g.notify(this,S.ui)},options:{name:"TreeMap",theme:"default",autoBind:!0,textField:"text",valueField:"value",colorField:"color"},events:[A,E],_initTheme:function(e){var t=this,n=S.ui.themes||{},i=((e||{}).theme||"").toLowerCase(),o=(n[i]||{}).treeMap;t.options=y({},o,e)},_attachEvents:function(){this.element.on(M,f(this._mouseover,this)).on(R,f(this._mouseleave,this)),this._resizeHandler=f(this.resize,this,!1),g.onResize(this._resizeHandler)},_setLayout:function(){"horizontal"===this.options.type?(this._layout=new L((!1)),this._view=new H(this,this.options)):"vertical"===this.options.type?(this._layout=new L((!0)),this._view=new H(this,this.options)):(this._layout=new z,this._view=new B(this,this.options))},_initDataSource:function(){var e=this,t=e.options,n=t.dataSource;e._dataChangeHandler=f(e._onDataChange,e),e.dataSource=x.create(n).bind(D,e._dataChangeHandler),n&&e.options.autoBind&&e.dataSource.fetch()},setDataSource:function(e){var t=this;t.dataSource.unbind(D,t._dataChangeHandler),t.dataSource=e.bind(D,t._dataChangeHandler),e&&t.options.autoBind&&t.dataSource.fetch()},_onDataChange:function(e){var t,n,i,o,r=e.node,a=e.items,s=this.options;if(r){if(a.length){for(i=this._getByUid(r.uid),i.children=[],a=new g.data.Query(a)._sortForGrouping(s.valueField,"desc"),n=0;n<a.length;n++)t=a[n],i.children.push(this._wrapItem(t));o=this._view.htmlSize(i),this._layout.compute(i.children,i.coord,o),this._setColors(i.children),this._view.render(i)}}else this._cleanItems(),this.element.empty(),t=this._wrapItem(a[0]),this._layout.createRoot(t,_(this.element),v(this.element),"vertical"===this.options.type),this._view.createRoot(t),this._root=t,this._colorIdx=0;for(n=0;n<a.length;n++)a[n].load();r&&this.trigger(A,{node:r})},_cleanItems:function(){var e=this;e.angular("cleanup",function(){return{elements:e.element.find(".k-leaf div,.k-treemap-title,.k-treemap-title-vertical")}})},_setColors:function(e){var t,n,r,a,s=this.options.colors,l=this._colorIdx,d=s[l%s.length];for(m(d)&&(t=o(d[0],d[1],e.length)),r=!1,a=0;a<e.length;a++)n=e[a],i(n.color)||(n.color=t?t[a]:d),n.dataItem.hasChildren||(r=!0);r&&this._colorIdx++},_contentSize:function(e){this.view.renderHeight(e)},_wrapItem:function(e){var t={};return i(this.options.valueField)&&(t.value=n(this.options.valueField,e)),i(this.options.colorField)&&(t.color=n(this.options.colorField,e)),i(this.options.textField)&&(t.text=n(this.options.textField,e)),t.level=e.level(),t.dataItem=e,t},_getByUid:function(e){for(var t,n=[this._root];n.length;){if(t=n.pop(),t.dataItem.uid===e)return t;t.children&&(n=n.concat(t.children))}},dataItem:function(t){var n=e(t).attr(g.attr("uid")),i=this.dataSource;return i&&i.getByUid(n)},findByUid:function(e){return this.element.find(".k-treemap-tile["+g.attr("uid")+"='"+e+"']")},_mouseover:function(t){var n=e(t.target);n.hasClass("k-leaf")&&(this._removeActiveState(),n.removeClass("k-state-hover").addClass("k-state-hover"))},_removeActiveState:function(){this.element.find(".k-state-hover").removeClass("k-state-hover")},_mouseleave:function(){this._removeActiveState()},destroy:function(){w.fn.destroy.call(this),this.element.off(T),this.dataSource&&this.dataSource.unbind(D,this._dataChangeHandler),this._root=null,g.unbindResize(this._resizeHandler),g.destroy(this.element)},items:function(){return e()},getSize:function(){return g.dimensions(this.element)},_resize:function(){var e,t,n=this._root;n&&(e=this.element,t=e.children(),n.coord.width=_(e),n.coord.height=v(e),t.css({width:n.coord.width,height:n.coord.height}),this._resizeItems(n,t))},_resizeItems:function(e,t){var n,i,o,r;if(e.children&&e.children.length)for(n=t.children(".k-treemap-wrap").children(),this._layout.compute(e.children,e.coord,{text:this._view.titleSize(e,t)}),r=0;r<e.children.length;r++)i=e.children[r],o=n.filter("["+g.attr("uid")+"='"+i.dataItem.uid+"']"),this._view.setItemSize(i,o),this._resizeItems(i,o)},setOptions:function(e){var n=e.dataSource;e.dataSource=t,this._originalOptions=y(this._originalOptions,e),this.options=y({},this._originalOptions),this._setLayout(),this._initTheme(this.options),w.fn._setEvents.call(this,e),n&&this.setDataSource(x.create(n)),this.options.autoBind&&this.dataSource.fetch()}}),z=b.extend({createRoot:function(e,t,n){e.coord={width:t,height:n,top:0,left:0}},leaf:function(e){return!e.children},layoutChildren:function(e,t){var n,i,o,r,a=t.width*t.height,s=0,l=[];for(n=0;n<e.length;n++)l[n]=parseFloat(e[n].value),s+=l[n];for(n=0;n<l.length;n++)e[n].area=a*l[n]/s;i=this.layoutHorizontal()?t.height:t.width,o=[e[0]],r=e.slice(1),this.squarify(r,o,i,t)},squarify:function(e,t,n,i){this.computeDim(e,t,n,i)},computeDim:function(e,n,i,o){var r,a,s;return e.length+n.length==1?(r=1==e.length?e:n,this.layoutLast(r,i,o),t):(e.length>=2&&0===n.length&&(n=[e[0]],e=e.slice(1)),0===e.length?(n.length>0&&this.layoutRow(n,i,o),t):(a=e[0],this.worstAspectRatio(n,i)>=this.worstAspectRatio([a].concat(n),i)?this.computeDim(e.slice(1),n.concat([a]),i,o):(s=this.layoutRow(n,i,o),this.computeDim(e,[],s.dim,s)),t))},layoutLast:function(e,t,n){e[0].coord=n},layoutRow:function(e,t,n){return this.layoutHorizontal()?this.layoutV(e,t,n):this.layoutH(e,t,n)},orientation:"h",layoutVertical:function(){return"v"===this.orientation},layoutHorizontal:function(){return"h"===this.orientation},layoutChange:function(){this.orientation=this.layoutVertical()?"h":"v"},worstAspectRatio:function(e,t){var n,i,o,r,a;if(!e||0===e.length)return I;for(n=0,i=0,o=I,r=0;r<e.length;r++)a=e[r].area,n+=a,o=o<a?o:a,i=i>a?i:a;return p.max(t*t*i/(n*n),n*n/(t*t*o))},compute:function(e,t,n){if(t.width>=t.height&&this.layoutHorizontal()||this.layoutChange(),e&&e.length>0){var i={width:t.width,height:t.height-n.text,top:0,left:0};this.layoutChildren(e,i)}},layoutV:function(e,t,n){var i,o,r,a=this._totalArea(e),s=0;for(t=h(a/t),i=0;i<e.length;i++)o=h(e[i].area/t),e[i].coord={height:o,width:t,top:n.top+s,left:n.left},s+=o;return r={height:n.height,width:n.width-t,top:n.top,left:n.left+t},r.dim=p.min(r.width,r.height),r.dim!=r.height&&this.layoutChange(),r},layoutH:function(e,t,n){var i,o,r=this._totalArea(e),a=h(r/t),s=n.top,l=0;for(i=0;i<e.length;i++)e[i].coord={height:a,width:h(e[i].area/a),top:s,left:n.left+l},l+=e[i].coord.width;return o={height:n.height-a,width:n.width,top:n.top+a,left:n.left},o.dim=p.min(o.width,o.height),o.dim!=o.width&&this.layoutChange(),o},_totalArea:function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].area;return n}}),B=b.extend({init:function(t,n){this.options=y({},this.options,n),this.treeMap=t,this.element=e(t.element),this.offset=0},titleSize:function(e,t){var n=t.children(".k-treemap-title");return n.height()||0},htmlSize:function(e){var t,n,i=this._getByUid(e.dataItem.uid),o={text:0};return e.children&&(this._clean(i),t=this._getText(e),t&&(n=this._createTitle(e),i.append(n),this._compile(n,e.dataItem),o.text=n.height()),i.append(this._createWrap()),this.offset=(_(i)-i.innerWidth())/2),o},_compile:function(e,t){this.treeMap.angular("compile",function(){return{elements:e,data:[{dataItem:t}]}})},_getByUid:function(e){return this.element.find(".k-treemap-tile["+g.attr("uid")+"='"+e+"']")},render:function(e){var t,n,i,o,r=this._getByUid(e.dataItem.uid),a=e.children;if(a)for(t=r.find(".k-treemap-wrap"),n=0;n<a.length;n++)i=a[n],o=this._createLeaf(i),t.append(o),this._compile(o.children(),i.dataItem),this.treeMap.trigger(E,{element:o})},createRoot:function(e){var t=this._createLeaf(e);this.element.append(t),this._compile(t.children(),e.dataItem),this.treeMap.trigger(E,{element:t})},_clean:function(e){this.treeMap.angular("cleanup",function(){return{elements:e.children(":not(.k-treemap-wrap)")}}),e.css("background-color",""),e.removeClass("k-leaf"),e.removeClass("k-inverse"),e.empty()},_createLeaf:function(t){return this._createTile(t).css("background-color",t.color).addClass("k-leaf").toggleClass("k-inverse",this._tileColorBrightness(t)>180).toggle(0!==t.value).append(e("<div></div>").html(this._getText(t)))},_createTile:function(t){var n=e("<div class='k-treemap-tile'></div>");return this.setItemSize(t,n),i(t.dataItem)&&i(t.dataItem.uid)&&n.attr(g.attr("uid"),t.dataItem.uid),n},_itemCoordinates:function(e){var t={width:e.coord.width,height:e.coord.height,left:e.coord.left,top:e.coord.top};return t.width+=t.left&&this.offset?2*this.offset:this.offset,t.height+=t.top?2*this.offset:this.offset,t},setItemSize:function(e,t){var n=this._itemCoordinates(e);t.css({width:n.width,height:n.height,left:n.left,top:n.top})},_getText:function(e){var t=e.text;return this.options.template&&(t=this._renderTemplate(e)),t},_renderTemplate:function(e){var t=k(this.options.template);return t({dataItem:e.dataItem,text:e.text})},_createTitle:function(t){return e("<div class='k-treemap-title'></div>").append(e("<div></div>").html(this._getText(t)))},_createWrap:function(){return e("<div class='k-treemap-wrap'></div>")},_tileColorBrightness:function(e){return u(e.color)}}),L=b.extend({createRoot:function(e,t,n,i){e.coord={width:t,height:n,top:0,left:0},e.vertical=i},init:function(e){this.vertical=e,this.quotient=e?1:0},compute:function(e,t,n){var i,o,r;e.length>0&&(i=t.width,o=t.height,this.vertical?o-=n.text:i-=n.text,r={width:i,height:o,top:0,left:0},this.layoutChildren(e,r))},layoutChildren:function(e,t){var n,i,o=t.width*t.height,r=0,a=[];for(n=0;n<e.length;n++)i=e[n],a[n]=parseFloat(e[n].value),r+=a[n],i.vertical=this.vertical;for(n=0;n<a.length;n++)e[n].area=o*a[n]/r;this.sliceAndDice(e,t)},sliceAndDice:function(e,t){var n=this._totalArea(e);e[0].level%2===this.quotient?this.layoutHorizontal(e,t,n):this.layoutVertical(e,t,n)},layoutHorizontal:function(e,t,n){var i,o,r,a=0;for(i=0;i<e.length;i++)o=e[i],r=o.area/(n/t.width),o.coord={height:t.height,width:r,top:t.top,left:t.left+a},a+=r},layoutVertical:function(e,t,n){var i,o,r,a=0;for(i=0;i<e.length;i++)o=e[i],r=o.area/(n/t.height),o.coord={height:r,width:t.width,top:t.top+a,left:t.left},a+=r},_totalArea:function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].area;return n}}),H=B.extend({htmlSize:function(e){var t,n,i=this._getByUid(e.dataItem.uid),o={text:0,offset:0};return e.children&&(this._clean(i),t=this._getText(e),t&&(n=this._createTitle(e),i.append(n),this._compile(n,e.dataItem),o.text=e.vertical?n.height():n.width()),i.append(this._createWrap()),this.offset=(_(i)-i.innerWidth())/2),o},titleSize:function(e,t){var n;return n=e.vertical?t.children(".k-treemap-title").height():t.children(".k-treemap-title-vertical").width(),n||0},_createTitle:function(t){var n;return n=e(t.vertical?"<div class='k-treemap-title'></div>":"<div class='k-treemap-title-vertical'></div>"),n.append(e("<div></div>").html(this._getText(t)))}});S.ui.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dataviz.min",["kendo.core.min","kendo.fx.min","kendo.router.min","kendo.view.min","kendo.data.odata.min","kendo.data.xml.min","kendo.data.min","kendo.data.signalr.min","kendo.binder.min","kendo.userevents.min","kendo.draganddrop.min","kendo.mobile.scroller.min","kendo.popup.min","kendo.tooltip.min","kendo.drawing.min","kendo.dataviz.core.min","kendo.dataviz.themes.min","kendo.dataviz.chart.min","kendo.dataviz.gauge.min","kendo.dataviz.barcode.min","kendo.dataviz.qrcode.min","kendo.dataviz.stock.min","kendo.dataviz.sparkline.min","kendo.dataviz.map.min","kendo.dataviz.diagram.min","kendo.dataviz.treemap.min","kendo.angular.min"],e)}(function(){"bundle all";return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.view.min",["kendo.core.min","kendo.fx.min","kendo.mobile.scroller.min","kendo.view.min"],e)}(function(){return function(e,t){function n(e){var t,n,i=e.find(y("popover")),o=s.roles;for(t=0,n=i.length;t<n;t++)r.initWidget(i[t],{},o)}function i(e){r.triggeredByInput(e)||e.preventDefault()}function o(t){t.each(function(){r.initWidget(e(this),{},s.roles)})}var r=window.kendo,a=r.mobile,s=a.ui,l=r.attr,d=s.Widget,c=r.ViewClone,u="init",h='<div style="height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: 20000; display: none"></div>',p="beforeShow",f="show",m="afterShow",g="beforeHide",v="transitionEnd",_="transitionStart",b="hide",w="destroy",k=r.attrValue,y=r.roleSelector,x=r.directiveSelector,C=r.compileMobileDirective,S=d.extend({init:function(t,n){d.fn.init.call(this,t,n),this.params={},e.extend(this,n),this.transition=this.transition||this.defaultTransition,this._id(),this.options.$angular?this._overlay():(this._layout(),this._overlay(),this._scroller(),this._model())},events:[u,p,f,m,g,b,w,_,v],options:{name:"View",title:"",layout:null,getLayout:e.noop,reload:!1,transition:"",defaultTransition:"",useNativeScrolling:!1,stretch:!1,zoom:!1,model:null,modelScope:window,scroller:{},initWidgets:!0},enable:function(e){t===e&&(e=!0),e?this.overlay.hide():this.overlay.show()},destroy:function(){this.layout&&this.layout.detach(this),this.trigger(w),d.fn.destroy.call(this),this.scroller&&this.scroller.destroy(),this.options.$angular&&this.element.scope().$destroy(),r.destroy(this.element)},purge:function(){this.destroy(),this.element.remove()},triggerBeforeShow:function(){return!this.trigger(p,{view:this})},triggerBeforeHide:function(){return!this.trigger(g,{view:this})},showStart:function(){var e=this.element;e.css("display",""),this.inited?this._invokeNgController():(this.inited=!0,this.trigger(u,{view:this})),this.layout&&this.layout.attach(this),this._padIfNativeScrolling(),this.trigger(f,{view:this}),r.resize(e)},showEnd:function(){this.trigger(m,{view:this}),this._padIfNativeScrolling()},hideEnd:function(){var e=this;e.element.hide(),e.trigger(b,{view:e}),e.layout&&e.layout.trigger(b,{view:e,layout:e.layout})},beforeTransition:function(e){this.trigger(_,{type:e})},afterTransition:function(e){this.trigger(v,{type:e})},_padIfNativeScrolling:function(){if(a.appLevelNativeScrolling()){var e=r.support.mobileOS&&r.support.mobileOS.android,t=a.application.skin()||"",n=a.application.os.android||t.indexOf("android")>-1,i="flat"===t||t.indexOf("material")>-1,o=!e&&!n||i?"header":"footer",s=!e&&!n||i?"footer":"header";this.content.css({paddingTop:this[o].height(),paddingBottom:this[s].height()})}},contentElement:function(){var e=this;return e.options.stretch?e.content:e.scrollerContent},clone:function(){return new c(this)},_scroller:function(){var t=this;a.appLevelNativeScrolling()||(t.options.stretch?t.content.addClass("km-stretched-view"):(t.content.kendoMobileScroller(e.extend(t.options.scroller,{zoom:t.options.zoom,useNative:t.options.useNativeScrolling})),t.scroller=t.content.data("kendoMobileScroller"),t.scrollerContent=t.scroller.scrollElement),r.support.kineticScrollNeeded&&(e(t.element).on("touchmove",".km-header",i),t.options.useNativeScrolling||t.options.stretch||e(t.element).on("touchmove",".km-content",i)))},_model:function(){var e=this,t=e.element,i=e.options.model;"string"==typeof i&&(i=r.getter(i)(e.options.modelScope)),e.model=i,n(t),e.element.css("display",""),e.options.initWidgets&&(i?r.bind(t,i,s,r.ui,r.dataviz.ui):a.init(t.children())),e.element.css("display","none")},_id:function(){var e=this.element,t=e.attr("id")||"";this.id=k(e,"url")||"#"+t,"#"==this.id&&(this.id=r.guid(),e.attr("id",this.id))},_layout:function(){var e=y("content"),t=this.element;t.addClass("km-view"),this.header=t.children(y("header")).addClass("km-header"),this.footer=t.children(y("footer")).addClass("km-footer"),t.children(e)[0]||t.wrapInner("<div "+l("role")+'="content"></div>'),this.content=t.children(y("content")).addClass("km-content"),this.element.prepend(this.header).append(this.footer),this.layout=this.options.getLayout(this.layout),this.layout&&this.layout.setup(this)},_overlay:function(){this.overlay=e(h).appendTo(this.element)},_invokeNgController:function(){var t,n,i;this.options.$angular&&(t=this.element.controller(),n=this.options.$angular[0],t&&(i=e.proxy(this,"_callController",t,n),/^\$(digest|apply)$/.test(n.$$phase)?i():n.$apply(i)))},_callController:function(e,t){this.element.injector().invoke(e.constructor,e,{$scope:t})}}),T=d.extend({init:function(e,t){d.fn.init.call(this,e,t),e=this.element,this.header=e.children(this._locate("header")).addClass("km-header"),this.footer=e.children(this._locate("footer")).addClass("km-footer"),this.elements=this.header.add(this.footer),n(e),this.options.$angular||r.mobile.init(this.element.children()),this.element.detach(),this.trigger(u,{layout:this})},_locate:function(e){return this.options.$angular?x(e):y(e)},options:{name:"Layout",id:null,platform:null},events:[u,f,b],setup:function(e){e.header[0]||(e.header=this.header),e.footer[0]||(e.footer=this.footer)},detach:function(e){var t=this;e.header===t.header&&t.header[0]&&e.element.prepend(t.header.detach()[0].cloneNode(!0)),e.footer===t.footer&&t.footer.length&&e.element.append(t.footer.detach()[0].cloneNode(!0))},attach:function(e){var t=this,n=t.currentView;n&&t.detach(n),e.header===t.header&&(t.header.detach(),e.element.children(y("header")).remove(),e.element.prepend(t.header)),e.footer===t.footer&&(t.footer.detach(),e.element.children(y("footer")).remove(),e.element.append(t.footer)),t.trigger(f,{layout:t,view:e}),t.currentView=e}}),D=r.Observable,A=/<body[^>]*>(([\u000a\u000d\u2028\u2029]|.)*)<\/body>/i,E="loadStart",I="loadComplete",M="showStart",R="sameViewRequested",F="viewShow",P="viewTypeDetermined",z="after",B=D.extend({init:function(t){var n,i,a,s,l=this;if(D.fn.init.call(l),e.extend(l,t),l.sandbox=e("<div />"),a=l.container,n=l._hideViews(a),l.rootView=n.first(),!l.rootView[0]&&t.rootNeeded)throw i=a[0]==r.mobile.application.element[0]?'Your kendo mobile application element does not contain any direct child elements with data-role="view" attribute set. Make sure that you instantiate the mobile application using the correct container.':'Your pane element does not contain any direct child elements with data-role="view" attribute set.',Error(i);l.layouts={},l.viewContainer=new r.ViewContainer(l.container),l.viewContainer.bind("accepted",function(e){e.view.params=l.params}),l.viewContainer.bind("complete",function(e){l.trigger(F,{view:e.view})}),l.viewContainer.bind(z,function(){l.trigger(z)}),this.getLayoutProxy=e.proxy(this,"_getLayout"),l._setupLayouts(a),s=a.children(l._locate("modalview drawer")),l.$angular?(l.$angular[0].viewOptions={defaultTransition:l.transition,loader:l.loader,container:l.container,getLayout:l.getLayoutProxy},s.each(function(n,i){C(e(i),t.$angular[0])})):o(s),this.bind(this.events,t)},events:[M,z,F,E,I,R,P],destroy:function(){r.destroy(this.container);for(var e in this.layouts)this.layouts[e].destroy()},view:function(){return this.viewContainer.view},showView:function(e,t,n){if(e=e.replace(RegExp("^"+this.remoteViewURLPrefix),""),""===e&&this.remoteViewURLPrefix&&(e="/"),e.replace(/^#/,"")===this.url)return this.trigger(R),!1;this.trigger(M);var i=this,o=function(n){return i.viewContainer.show(n,t,e)},a=i._findViewElement(e),s=r.widgetInstance(a);return i.url=e.replace(/^#/,""),i.params=n,s&&s.reload&&(s.purge(),a=[]),this.trigger(P,{remote:0===a.length,url:e}),a[0]?(s||(s=i._createView(a)),o(s)):(this.serverNavigation?location.href=e:i._loadView(e,o),!0)},append:function(e,t){var n,i,r,a=this.sandbox,s=(t||"").split("?")[0],d=this.container;return A.test(e)&&(e=RegExp.$1),a[0].innerHTML=e,d.append(a.children("script, style")),n=this._hideViews(a),r=n.first(),r.length||(n=r=a.wrapInner("<div data-role=view />").children()),
s&&r.hide().attr(l("url"),s),this._setupLayouts(a),i=a.children(this._locate("modalview drawer")),d.append(a.children(this._locate("layout modalview drawer")).add(n)),o(i),this._createView(r)},_locate:function(e){return this.$angular?x(e):y(e)},_findViewElement:function(e){var t,n=e.split("?")[0];return n?(t=this.container.children("["+l("url")+"='"+n+"']"),t[0]||n.indexOf("/")!==-1||(t=this.container.children("#"===n.charAt(0)?n:"#"+n)),t):this.rootView},_createView:function(e){return this.$angular?C(e,this.$angular[0]):r.initWidget(e,{defaultTransition:this.transition,loader:this.loader,container:this.container,getLayout:this.getLayoutProxy,modelScope:this.modelScope,reload:k(e,"reload")},s.roles)},_getLayout:function(e){return""===e?null:e?this.layouts[e]:this.layouts[this.layout]},_loadView:function(t,n){this._xhr&&this._xhr.abort(),this.trigger(E),this._xhr=e.get(r.absoluteURL(t,this.remoteViewURLPrefix),"html").always(e.proxy(this,"_xhrComplete",n,t))},_xhrComplete:function(e,t,n){var i=!0;if("object"==typeof n&&0===n.status){if(!(n.responseText&&n.responseText.length>0))return;i=!0,n=n.responseText}this.trigger(I),i&&e(this.append(n,t))},_hideViews:function(e){return e.children(this._locate("view splitview")).hide()},_setupLayouts:function(t){var n,i=this;t.children(i._locate("layout")).each(function(){n=i.$angular?C(e(this),i.$angular[0]):r.initWidget(e(this),{},s.roles);var t=n.options.platform;t&&t!==a.application.os.name?n.destroy():i.layouts[n.options.id]=n})}});r.mobile.ViewEngine=B,s.plugin(S),s.plugin(T)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.loader.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Widget,r=e.map(n.eventMap,function(e){return e}).join(" ").split(" "),a=o.extend({init:function(t,n){var i=this,r=e('<div class="km-loader"><span class="km-loading km-spin"></span><span class="km-loading-left"></span><span class="km-loading-right"></span></div>');o.fn.init.call(i,r,n),i.container=t,i.captureEvents=!1,i._attachCapture(),r.append(i.options.loading).hide().appendTo(t)},options:{name:"Loader",loading:"<h1>Loading...</h1>",timeout:100},show:function(){var e=this;clearTimeout(e._loading),e.options.loading!==!1&&(e.captureEvents=!0,e._loading=setTimeout(function(){e.element.show()},e.options.timeout))},hide:function(){this.captureEvents=!1,clearTimeout(this._loading),this.element.hide()},changeMessage:function(e){this.options.loading=e,this.element.find(">h1").html(e)},transition:function(){this.captureEvents=!0,this.container.css("pointer-events","none")},transitionDone:function(){this.captureEvents=!1,this.container.css("pointer-events","")},_attachCapture:function(){function e(e){n.captureEvents&&e.preventDefault()}var t,n=this;for(n.captureEvents=!1,t=0;t<r.length;t++)n.container[0].addEventListener(r[t],e,!0)}});i.plugin(a)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.pane.min",["kendo.mobile.view.min","kendo.mobile.loader.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=n.roleSelector,r=i.ui,a=r.Widget,s=i.ViewEngine,l=r.View,d=i.ui.Loader,c="external",u="href",h="#!",p="navigate",f="viewShow",m="sameViewRequested",g=n.support.mobileOS,v=g.ios&&!g.appMode&&g.flatVersion>=700,_=/popover|actionsheet|modalview|drawer/,b="#:back",w=n.attrValue,k=a.extend({init:function(e,t){var i=this;a.fn.init.call(i,e,t),t=i.options,e=i.element,e.addClass("km-pane"),i.options.collapsible&&e.addClass("km-collapsible-pane"),this.history=[],this.historyCallback=function(e,t,n){var o=i.transition;return i.transition=null,v&&n&&(o="none"),i.viewEngine.showView(e,o,t)},this._historyNavigate=function(e){if(e===b){if(1===i.history.length)return;i.history.pop(),e=i.history[i.history.length-1]}else i.history.push(e);i.historyCallback(e,n.parseQueryStringParams(e))},this._historyReplace=function(e){var t=n.parseQueryStringParams(e);i.history[i.history.length-1]=e,i.historyCallback(e,t)},i.loader=new d(e,{loading:i.options.loading}),i.viewEngine=new s({container:e,transition:t.transition,modelScope:t.modelScope,rootNeeded:!t.initial,serverNavigation:t.serverNavigation,remoteViewURLPrefix:t.root||"",layout:t.layout,$angular:t.$angular,loader:i.loader,showStart:function(){i.loader.transition(),i.closeActiveDialogs()},after:function(){i.loader.transitionDone()},viewShow:function(e){i.trigger(f,e)},loadStart:function(){i.loader.show()},loadComplete:function(){i.loader.hide()},sameViewRequested:function(){i.trigger(m)},viewTypeDetermined:function(e){e.remote&&i.options.serverNavigation||i.trigger(p,{url:e.url})}}),this._setPortraitWidth(),n.onResize(function(){i._setPortraitWidth()}),i._setupAppLinks()},closeActiveDialogs:function(){var t=this.element.find(o("actionsheet popover modalview")).filter(":visible");t.each(function(){n.widgetInstance(e(this),r).close()})},navigateToInitial:function(){var e=this.options.initial;return e&&this.navigate(e),e},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,modelScope:window,loading:"<h1>Loading...</h1>"},events:[p,f,m],append:function(e){return this.viewEngine.append(e)},destroy:function(){a.fn.destroy.call(this),this.viewEngine.destroy(),this.userEvents.destroy()},navigate:function(e,t){e instanceof l&&(e=e.id),this.transition=t,this._historyNavigate(e)},replace:function(e,t){e instanceof l&&(e=e.id),this.transition=t,this._historyReplace(e)},bindToRouter:function(e){var t=this,i=this.history,o=this.viewEngine;e.bind("init",function(t){var r,a=t.url,s=e.pushState?a:"/";o.rootView.attr(n.attr("url"),s),r=i.length,"/"===a&&r&&(e.navigate(i[r-1],!0),t.preventDefault())}),e.bind("routeMissing",function(e){t.historyCallback(e.url,e.params,e.backButtonPressed)||e.preventDefault()}),e.bind("same",function(){t.trigger(m)}),t._historyNavigate=function(t){e.navigate(t)},t._historyReplace=function(t){e.replace(t)}},hideLoading:function(){this.loader.hide()},showLoading:function(){this.loader.show()},changeLoadingMessage:function(e){this.loader.changeMessage(e)},view:function(){return this.viewEngine.view()},_setPortraitWidth:function(){var e,t=this.options.portraitWidth;t&&(e=n.mobile.application.element.is(".km-vertical")?t:"auto",this.element.css("width",e))},_setupAppLinks:function(){var t=this,i="tab",r="[data-"+n.ns+"navigate-on-press]",a=e.map(["button","backbutton","detailbutton","listview-link"],function(e){return o(e)+":not("+r+")"}).join(",");this.element.handler(this).on("down",o(i)+","+r,"_mouseup").on("click",o(i)+","+a+","+r,"_appLinkClick"),this.userEvents=new n.UserEvents(this.element,{fastTap:!0,filter:a,tap:function(e){e.event.currentTarget=e.touch.currentTarget,t._mouseup(e.event)}}),this.element.css("-ms-touch-action","")},_appLinkClick:function(t){var n=e(t.currentTarget).attr("href"),i=n&&"#"!==n[0]&&this.options.serverNavigation;i||w(e(t.currentTarget),"rel")==c||t.preventDefault()},_mouseup:function(o){if(!(o.which>1||o.isDefaultPrevented())){var a=this,s=e(o.currentTarget),l=w(s,"transition"),d=w(s,"rel")||"",p=w(s,"target"),f=s.attr(u),m=v&&0===s[0].offsetHeight,g=f&&"#"!==f[0]&&this.options.serverNavigation;m||g||d===c||t===f||f===h||(s.attr(u,h),setTimeout(function(){s.attr(u,f)}),d.match(_)?(n.widgetInstance(e(f),r).openFor(s),"actionsheet"!==d&&"drawer"!==d||o.stopPropagation()):("_top"===p?a=i.application.pane:p&&(a=e("#"+p).data("kendoMobilePane")),a.navigate(f,l)),o.preventDefault())}}});k.wrap=function(e){e.is(o("view"))||(e=e.wrap("<div data-"+n.ns+'role="view" data-stretch="true"></div>').parent());var t=e.wrap('<div class="km-pane-wrapper"><div></div></div>').parent(),i=new k(t);return i.navigate(""),i},r.plugin(k)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.popover.min",["kendo.popup.min","kendo.mobile.pane.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=i.ui,r="hide",a="open",s="close",l='<div class="km-popup-wrapper"></div>',d='<div class="km-popup-arrow"></div>',c='<div class="km-popup-overlay"></div>',u="km-up km-down km-left km-right",h=o.Widget,p={down:{origin:"bottom center",position:"top center"},up:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"}},f={animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:400}}},m={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},g={up:"down",down:"up",left:"right",right:"left"},v=h.extend({init:function(t,i){var o,a,s=this,u=t.closest(".km-modalview-wrapper"),g=t.closest(".km-root").children(".km-pane").first(),v=u[0]?u:g;i.viewport?g=i.viewport:g[0]||(g=window),i.container?v=i.container:v[0]||(v=document.body),o={viewport:g,copyAnchorStyles:!1,autosize:!0,open:function(){s.overlay.show()},activate:e.proxy(s._activate,s),deactivate:function(){s.overlay.hide(),s._apiCall||s.trigger(r),s._apiCall=!1}},h.fn.init.call(s,t,i),t=s.element,i=s.options,t.wrap(l).addClass("km-popup").show(),a=s.options.direction.match(/left|right/)?"horizontal":"vertical",s.dimensions=m[a],s.wrapper=t.parent().css({width:i.width,height:i.height}).addClass("km-popup-wrapper km-"+i.direction).hide(),s.arrow=e(d).prependTo(s.wrapper).hide(),s.overlay=e(c).appendTo(v).hide(),o.appendTo=s.overlay,i.className&&s.overlay.addClass(i.className),s.popup=new n.ui.Popup(s.wrapper,e.extend(!0,o,f,p[i.direction]))},options:{name:"Popup",width:240,height:"",direction:"down",container:null,viewport:null},events:[r],show:function(t){this.popup.options.anchor=e(t),this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){h.fn.destroy.call(this),this.popup.destroy(),this.overlay.remove()},target:function(){return this.popup.options.anchor},_activate:function(){var t=this,n=t.options.direction,i=t.dimensions,o=i.offset,r=t.popup,a=r.options.anchor,s=e(a).offset(),l=e(r.element).offset(),d=r.flipped?g[n]:n,c=2*t.arrow[i.size](),h=t.element[i.size]()-t.arrow[i.size](),p=e(a)[i.size](),f=s[o]-l[o]+p/2;f<c&&(f=c),f>h&&(f=h),t.wrapper.removeClass(u).addClass("km-"+d),t.arrow.css(o,f).show()}}),_=h.extend({init:function(t,i){var r,a=this;a.initialOpen=!1,h.fn.init.call(a,t,i),r=e.extend({className:"km-popover-root",hide:function(){a.trigger(s)}},this.options.popup),a.popup=new v(a.element,r),a.popup.overlay.on("move",function(e){e.target==a.popup.overlay[0]&&e.preventDefault()}),a.pane=new o.Pane(a.element,e.extend(this.options.pane,{$angular:this.options.$angular})),n.notify(a,o)},options:{name:"PopOver",popup:{},pane:{}},events:[a,s],open:function(e){this.popup.show(e),this.initialOpen?this.pane.view()._invokeNgController():(this.pane.navigateToInitial()||this.pane.navigate(""),this.popup.popup._position(),this.initialOpen=!0)},openFor:function(e){this.open(e),this.trigger(a,{target:this.popup.target()})},close:function(){this.popup.hide()},destroy:function(){h.fn.destroy.call(this),this.pane.destroy(),this.popup.destroy(),n.destroy(this.element)}});o.plugin(v),o.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.shim.min",["kendo.popup.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=n.ui.Popup,r='<div class="km-shim"></div>',a="hide",s=i.Widget,l=s.extend({init:function(t,i){var l=this,d=n.mobile.application,c=n.support.mobileOS,u=d?d.os.name:c?c.name:"ios",h="ios"===u||"wp"===u||!!d&&d.os.skin,p="blackberry"===u,f=i.align||(h?"bottom center":p?"center right":"center center"),m=i.position||(h?"bottom center":p?"center right":"center center"),g=i.effect||(h?"slideIn:up":p?"slideIn:left":"fade:in"),v=e(r).handler(l).hide();s.fn.init.call(l,t,i),l.shim=v,t=l.element,i=l.options,i.className&&l.shim.addClass(i.className),i.modal||l.shim.on("down","_hide"),(d?d.element:e(document.body)).append(v),l.popup=new o(l.element,{anchor:v,modal:!0,appendTo:v,origin:f,position:m,animation:{open:{effects:g,duration:i.duration},close:{duration:i.duration}},close:function(e){var t=!1;l._apiCall||(t=l.trigger(a)),t&&e.preventDefault(),l._apiCall=!1},deactivate:function(){v.hide()},open:function(){v.show()}}),n.notify(l)},events:[a],options:{name:"Shim",modal:!1,align:t,position:t,effect:t,duration:200},show:function(){this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){s.fn.destroy.call(this),this.shim.kendoDestroy(),this.popup.destroy(),this.shim.remove()},_hide:function(t){t&&e.contains(this.shim.children().children(".k-popup")[0],t.target)||this.popup.close()}});i.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.modalview.min",["kendo.mobile.shim.min","kendo.mobile.view.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Shim,r=i.Widget,a="beforeOpen",s="open",l="close",d="init",c='<div class="km-modalview-wrapper"></div>',u=i.View.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n._id(),n._wrap(),n._shim(),this.options.$angular||(n._layout(),n._scroller(),n._model()),n.element.css("display",""),n.trigger(d)},events:[d,a,s,l],options:{name:"ModalView",modal:!0,width:null,height:null},destroy:function(){r.fn.destroy.call(this),this.shim.destroy()},open:function(t){var n=this;n.target=e(t),n.shim.show(),n._invokeNgController(),n.trigger("show",{view:n})},openFor:function(e){this.trigger(a,{target:e})||(this.open(e),this.trigger(s,{target:e}))},close:function(){this.element.is(":visible")&&!this.trigger(l)&&this.shim.hide()},_wrap:function(){var e,t,n=this,i=n.element,o=n.options;e=i[0].style.width||"auto",t=i[0].style.height||"auto",i.addClass("km-modalview").wrap(c),n.wrapper=i.parent().css({width:o.width||e||300,height:o.height||t||300}).addClass("auto"==t?" km-auto-height":""),i.css({width:"",height:""})},_shim:function(){var e=this;e.shim=new o(e.wrapper,{modal:e.options.modal,position:"center center",align:"center center",effect:"fade:in",className:"km-modalview-root",hide:function(t){e.trigger(l)&&t.preventDefault()}})}});i.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.drawer.min",["kendo.mobile.view.min","kendo.userevents.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=n.support.mobileOS,r=n.effects.Transition,a=n.roleSelector,s="x",l=i.ui,d=!(o.ios&&7==o.majorVersion&&!o.appMode),c="beforeShow",u="init",h="show",p="hide",f="afterHide",m={enable:e.noop},g=l.View.extend({init:function(t,o){var r,s,l,c,h;if(e(t).parent().prepend(t),i.ui.Widget.fn.init.call(this,t,o),this.options.$angular||(this._layout(),this._scroller()),this._model(),r=this.element.closest(a("pane")).data("kendoMobilePane"))this.pane=r,this.pane.bind("viewShow",function(e){c._viewShow(e)}),this.pane.bind("sameViewRequested",function(){c.hide()}),s=this.userEvents=new n.UserEvents(r.element,{fastTap:!0,filter:a("view splitview"),allowSelection:!0});else{if(this.currentView=m,l=e(this.options.container),!l)throw Error("The drawer needs a container configuration option set.");s=this.userEvents=new n.UserEvents(l,{fastTap:!0,allowSelection:!0}),this._attachTransition(l)}c=this,h=function(e){c.visible&&(c.hide(),e.preventDefault())},this.options.swipeToOpen&&d?(s.bind("press",function(){c.transition.cancel()}),s.bind("start",function(e){c._start(e)}),s.bind("move",function(e){c._update(e)}),s.bind("end",function(e){c._end(e)}),s.bind("tap",h)):s.bind("press",h),this.leftPositioned="left"===this.options.position,this.visible=!1,this.element.hide().addClass("km-drawer").addClass(this.leftPositioned?"km-left-drawer":"km-right-drawer"),this.trigger(u)},options:{name:"Drawer",position:"left",views:[],swipeToOpenViews:[],swipeToOpen:!0,title:"",container:null},events:[c,p,f,u,h],show:function(){this._activate()&&this._show()},hide:function(){this.currentView&&(this.currentView.enable(),g.current=null,this._moveViewTo(0),this.trigger(p,{view:this}))},openFor:function(){this.visible?this.hide():this.show()},destroy:function(){l.View.fn.destroy.call(this),this.userEvents.destroy()},_activate:function(){if(this.visible)return!0;var e=this._currentViewIncludedIn(this.options.views);return!(!e||this.trigger(c,{view:this}))&&(this._setAsCurrent(),this.element.show(),this.trigger(h,{view:this}),this._invokeNgController(),!0)},_currentViewIncludedIn:function(t){if(!this.pane||!t.length)return!0;var n=this.pane.view();return e.inArray(n.id.replace("#",""),t)>-1||e.inArray(n.element.attr("id"),t)>-1},_show:function(){this.currentView.enable(!1),this.visible=!0;var e=this.element.width();this.leftPositioned||(e=-e),this._moveViewTo(e)},_setAsCurrent:function(){g.last!==this&&(g.last&&g.last.element.hide(),this.element.show()),g.last=this,g.current=this},_moveViewTo:function(e){this.userEvents.cancel(),this.transition.moveTo({location:e,duration:400,ease:r.easeOutExpo})},_viewShow:function(e){return this.currentView&&this.currentView.enable(),this.currentView===e.view?(this.hide(),t):(this.currentView=e.view,this._attachTransition(e.view.element),t)},_attachTransition:function(e){var t=this,i=this.movable,o=i&&i.x;this.transition&&(this.transition.cancel(),this.movable.moveAxis("x",0)),i=this.movable=new n.ui.Movable(e),this.transition=new r({axis:s,movable:this.movable,onEnd:function(){0===i[s]&&(e[0].style.cssText="",t.element.hide(),t.trigger(f),t.visible=!1)}}),o&&(e.addClass("k-fx-hidden"),n.animationFrame(function(){e.removeClass("k-fx-hidden"),t.movable.moveAxis(s,o),t.hide()}))},_start:function(e){var i,o,r,a,s,l=e.sender;return Math.abs(e.x.velocity)<Math.abs(e.y.velocity)||n.triggeredByInput(e.event)||!this._currentViewIncludedIn(this.options.swipeToOpenViews)?(l.cancel(),t):(i=this.leftPositioned,o=this.visible,r=i&&o||!i&&!g.current,a=!i&&o||i&&!g.current,s=e.x.velocity<0,(r&&s||a&&!s)&&this._activate()?(l.capture(),t):(l.cancel(),t))},_update:function(e){var t,n=this.movable,i=n.x+e.x.delta;t=this.leftPositioned?Math.min(Math.max(0,i),this.element.width()):Math.max(Math.min(0,i),-this.element.width()),this.movable.moveAxis(s,t),e.event.preventDefault(),e.event.stopPropagation()},_end:function(e){var t,n=e.x.velocity,i=Math.abs(this.movable.x)>this.element.width()/2,o=.8;t=this.leftPositioned?n>-o&&(n>o||i):n<o&&(n<-o||i),t?this._show():this.hide()}});l.plugin(g)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.splitview.min",["kendo.mobile.pane.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Widget,r="<div class='km-expanded-pane-shim'></div>",a=i.View,s=a.extend({init:function(t,a){var s,l,d=this;o.fn.init.call(d,t,a),t=d.element,e.extend(d,a),d._id(),d.options.$angular?d._overlay():(d._layout(),d._overlay()),d._style(),l=t.children(d._locate("modalview")),d.options.$angular?l.each(function(t,i){n.compileMobileDirective(e(i),a.$angular[0])}):n.mobile.init(l),d.panes=[],d._paramsHistory=[],d.options.$angular?(d.element.children(n.directiveSelector("pane")).each(function(){s=n.compileMobileDirective(e(this),a.$angular[0]),d.panes.push(s)}),d.element.children(n.directiveSelector("header footer")).each(function(){n.compileMobileDirective(e(this),a.$angular[0])})):d.content.children(n.roleSelector("pane")).each(function(){s=n.initWidget(this,{},i.roles),d.panes.push(s)}),d.expandedPaneShim=e(r).appendTo(d.element),d._shimUserEvents=new n.UserEvents(d.expandedPaneShim,{fastTap:!0,tap:function(){d.collapsePanes()}})},_locate:function(e){return this.options.$angular?n.directiveSelector(e):n.roleSelector(e)},options:{name:"SplitView",style:"horizontal"},expandPanes:function(){this.element.addClass("km-expanded-splitview")},collapsePanes:function(){this.element.removeClass("km-expanded-splitview")},_layout:function(){var e=this,t=e.element;e.transition=n.attrValue(t,"transition"),n.mobile.ui.View.prototype._layout.call(this),n.mobile.init(this.header.add(this.footer)),e.element.addClass("km-splitview"),e.content.addClass("km-split-content")},_style:function(){var t,n=this.options.style,i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-split-"+this)}))},showStart:function(){var t=this;t.element.css("display",""),t.inited?this._invokeNgController():(t.inited=!0,e.each(t.panes,function(){this.options.initial?this.navigateToInitial():this.navigate("")}),t.trigger("init",{view:t})),t.trigger("show",{view:t})}});i.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.application.min",["kendo.mobile.pane.min","kendo.router.min"],e)}(function(){return function(e,t){function n(e,t){var n=[];return f&&n.push("km-on-"+f.name),n.push(e.skin?"km-"+e.skin:"ios"==e.name&&e.majorVersion>6?"km-ios7":"km-"+e.name),("ios"==e.name&&e.majorVersion<7||"ios"!=e.name)&&n.push("km-"+e.name+e.majorVersion),n.push("km-"+e.majorVersion),n.push("km-m"+(e.minorVersion?e.minorVersion[0]:0)),e.variant&&(e.skin&&e.skin===e.name||!e.skin||e.setDefaultPlatform===!1)&&n.push("km-"+(e.skin?e.skin:e.name)+"-"+e.variant),e.cordova&&n.push("km-cordova"),n.push(e.appMode?"km-app":"km-web"),t&&t.statusBarStyle&&n.push("km-"+t.statusBarStyle+"-status-bar"),n.join(" ")}function i(t){return"km-wp-"+(t.noVariantSet?0===parseInt(e("<div style='background: Background' />").css("background-color").split(",")[1],10)?"dark":"light":t.variant+" km-wp-"+t.variant+"-force")}function o(e){return f.wp?"-kendo-landscape"==e.css("animation-name"):Math.abs(window.orientation)/90==1}function r(e){return o(e)?k:v}function a(e){e.parent().addBack().css("min-height",window.innerHeight)}function s(){e("meta[name=viewport]").remove(),z.append(x({height:", width=device-width"+(o()?", height="+window.innerHeight+"px":c.mobileOS.flatVersion>=600&&c.mobileOS.flatVersion<700?", height="+window.innerWidth+"px":", height=device-height")}))}var l=window.kendo,d=l.mobile,c=l.support,u=d.ui.Widget,h=d.ui.Pane,p="ios7",f=c.mobileOS,m="blackberry"==f.device&&f.flatVersion>=600&&f.flatVersion<1e3&&f.appMode,g=.93,v="km-vertical",_="chrome"===f.browser,b=f.ios&&f.flatVersion>=700&&f.flatVersion<800&&(f.appMode||_),w=Math.abs(window.orientation)/90==1,k="km-horizontal",y={ios7:{ios:!0,browser:"default",device:"iphone",flatVersion:"700",majorVersion:"7",minorVersion:"0.0",name:"ios",tablet:!1},ios:{ios:!0,browser:"default",device:"iphone",flatVersion:"612",majorVersion:"6",minorVersion:"1.2",name:"ios",tablet:!1},android:{android:!0,browser:"default",device:"android",flatVersion:"442",majorVersion:"4",minorVersion:"4.2",name:"android",tablet:!1},blackberry:{blackberry:!0,browser:"default",device:"blackberry",flatVersion:"710",majorVersion:"7",minorVersion:"1.0",name:"blackberry",tablet:!1},meego:{meego:!0,browser:"default",device:"meego",flatVersion:"850",majorVersion:"8",minorVersion:"5.0",name:"meego",tablet:!1},wp:{wp:!0,browser:"default",device:"wp",flatVersion:"800",majorVersion:"8",minorVersion:"0.0",name:"wp",tablet:!1}},x=l.template('<meta content="initial-scale=#: data.scale #, maximum-scale=#: data.scale #, user-scalable=no#=data.height#" name="viewport" />',{usedWithBlock:!1}),C=l.template('<meta name="apple-mobile-web-app-capable" content="#= data.webAppCapable === false ? \'no\' : \'yes\' #" /> <meta name="apple-mobile-web-app-status-bar-style" content="#=data.statusBarStyle#" /> <meta name="msapplication-tap-highlight" content="no" /> ',{usedWithBlock:!1}),S=l.template("<style>.km-view { clip: rect(0 #= data.width #px #= data.height #px 0); }</style>",{usedWithBlock:!1}),T=f.android&&"chrome"!=f.browser||f.blackberry,D=l.template('<link rel="apple-touch-icon'+(f.android?"-precomposed":"")+'" # if(data.size) { # sizes="#=data.size#" #}# href="#=data.icon#" />',{usedWithBlock:!1}),A=("iphone"==f.device||"ipod"==f.device)&&f.majorVersion<7,E=("iphone"==f.device||"ipod"==f.device)&&f.majorVersion>=7,I=E?"none":null,M="mobilesafari"==f.browser?60:0,R=20,F=e(window),P=window.screen,z=e("head"),B="init",L=e.proxy,H=u.extend({init:function(t,n){d.application=this,e(e.proxy(this,"bootstrap",t,n))},bootstrap:function(t,n){var i,o,r;t=e(t),t[0]||(t=e(document.body)),u.fn.init.call(this,t,n),this.element.removeAttr("data-"+l.ns+"role"),this._setupPlatform(),this._attachMeta(),this._setupElementClass(),this._attachHideBarHandlers(),i=e.extend({},this.options),delete i.name,o=this,r=function(){o.pane=new h(o.element,i),o.pane.navigateToInitial(),o.options.updateDocumentTitle&&o._setupDocumentTitle(),o._startHistory(),o.trigger(B)},this.options.$angular?setTimeout(r):r()},options:{name:"Application",hideAddressBar:!0,browserHistory:!0,historyTransition:I,modelScope:window,statusBarStyle:"black",transition:"",retina:!1,platform:null,skin:null,updateDocumentTitle:!0,useNativeScrolling:!1},events:[B],navigate:function(e,t){this.pane.navigate(e,t)},replace:function(e,t){this.pane.replace(e,t)},scroller:function(){return this.view().scroller},hideLoading:function(){if(!this.pane)throw Error("The mobile application instance is not fully instantiated. Please consider activating loading in the application init event handler.");this.pane.hideLoading()},showLoading:function(){if(!this.pane)throw Error("The mobile application instance is not fully instantiated. Please consider activating loading in the application init event handler.");this.pane.showLoading()},changeLoadingMessage:function(e){if(!this.pane)throw Error("The mobile application instance is not fully instantiated. Please consider changing the message in the application init event handler.");this.pane.changeLoadingMessage(e)},view:function(){return this.pane.view()},skin:function(e){var t=this;return arguments.length?(t.options.skin=e||"",t.element[0].className="km-pane",t._setupPlatform(),t._setupElementClass(),t.options.skin):t.options.skin},destroy:function(){u.fn.destroy.call(this),this.pane.destroy(),this.options.browserHistory&&this.router.destroy()},_setupPlatform:function(){var t=this,o=t.options.platform,r=t.options.skin,a=[],s=f||y[p];o&&(s.setDefaultPlatform=!0,"string"==typeof o?(a=o.split("-"),s=e.extend({variant:a[1]},s,y[a[0]])):s=o),r&&(a=r.split("-"),f||(s.setDefaultPlatform=!1),s=e.extend({},s,{skin:a[0],variant:a[1]})),s.variant||(s.noVariantSet=!0,s.variant="dark"),t.os=s,t.osCssClass=n(t.os,t.options),"wp"==s.name&&(t.refreshBackgroundColorProxy||(t.refreshBackgroundColorProxy=e.proxy(function(){(t.os.variant&&t.os.skin&&t.os.skin===t.os.name||!t.os.skin)&&t.element.removeClass("km-wp-dark km-wp-light km-wp-dark-force km-wp-light-force").addClass(i(t.os))},t)),e(document).off("visibilitychange",t.refreshBackgroundColorProxy),e(document).off("resume",t.refreshBackgroundColorProxy),s.skin||(t.element.parent().css("overflow","hidden"),e(document).on("visibilitychange",t.refreshBackgroundColorProxy),e(document).on("resume",t.refreshBackgroundColorProxy),t.refreshBackgroundColorProxy()))},_startHistory:function(){this.options.browserHistory?(this.router=new l.Router({pushState:this.options.pushState,root:this.options.root,hashBang:this.options.hashBang}),this.pane.bindToRouter(this.router),this.router.start()):this.options.initial||this.pane.navigate("")},_resizeToScreenHeight:function(){var t,n=e("meta[name=apple-mobile-web-app-status-bar-style]").attr("content").match(/black-translucent|hidden/),i=this.element;t=_?window.innerHeight:o(i)?n?w?P.availWidth+R:P.availWidth:w?P.availWidth:P.availWidth-R:n?w?P.availHeight:P.availHeight+R:w?P.availHeight-R:P.availHeight,i.height(t)},_setupElementClass:function(){var t,n=this,i=n.element;i.parent().addClass("km-root km-"+(n.os.tablet?"tablet":"phone")),i.addClass(n.osCssClass+" "+r(i)),this.options.useNativeScrolling&&i.parent().addClass("km-native-scrolling"),_&&i.addClass("km-ios-chrome"),c.wpDevicePixelRatio&&i.parent().css("font-size",c.wpDevicePixelRatio+"em"),this.options.retina&&(i.parent().addClass("km-retina"),i.parent().css("font-size",c.devicePixelRatio*g+"em")),m&&s(),n.options.useNativeScrolling?i.parent().addClass("km-native-scrolling"):T&&(t=(screen.availWidth>screen.availHeight?screen.availWidth:screen.availHeight)+200,e(S({width:t,height:t})).appendTo(z)),b&&n._resizeToScreenHeight(),l.onResize(function(){i.removeClass("km-horizontal km-vertical").addClass(r(i)),n.options.useNativeScrolling&&a(i),b&&n._resizeToScreenHeight(),m&&s(),l.resize(i)})},_clearExistingMeta:function(){z.find("meta").filter("[name|='apple-mobile-web-app'],[name|='msapplication-tap'],[name='viewport']").remove()},_attachMeta:function(){var e,t=this.options,n=t.icon;if(this._clearExistingMeta(),m||z.prepend(x({height:"",scale:this.options.retina?1/c.devicePixelRatio:"1.0"})),z.prepend(C(t)),n){"string"==typeof n&&(n={"":n});for(e in n)z.prepend(D({icon:n[e],size:e}))}t.useNativeScrolling&&a(this.element)},_attachHideBarHandlers:function(){var e=this,t=L(e,"_hideBar");!c.mobileOS.appMode&&e.options.hideAddressBar&&A&&!e.options.useNativeScrolling&&(e._initialHeight={},F.on("load",t),l.onResize(function(){setTimeout(window.scrollTo,0,0,1)}))},_setupDocumentTitle:function(){var e=this,n=document.title;e.pane.bind("viewShow",function(e){var i=e.view.title;document.title=i!==t?i:n})},_hideBar:function(){var t=this,n=t.element;n.height(l.support.transforms.css+"calc(100% + "+M+"px)"),e(window).trigger(l.support.resize)}});l.mobile.Application=H,l.ui.plugin(H,l.mobile,"Mobile")}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.actionsheet.min",["kendo.mobile.popover.min","kendo.mobile.shim.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.support,o=n.mobile.ui,r=o.Shim,a=o.Popup,s=o.Widget,l="open",d="close",c="command",u="li>a",h="actionsheetContext",p='<div class="km-actionsheet-wrapper"></div>',f=n.template('<li class="km-actionsheet-cancel"><a href="\\#">#:cancel#</a></li>'),m=s.extend({init:function(t,l){var d,c,h,m=this,g=i.mobileOS;s.fn.init.call(m,t,l),l=m.options,h=l.type,t=m.element,c="auto"===h?g&&g.tablet:"tablet"===h,d=c?a:r,l.cancelTemplate&&(f=n.template(l.cancelTemplate)),t.addClass("km-actionsheet").append(f({cancel:m.options.cancel})).wrap(p).on("up",u,"_click").on("click",u,n.preventDefault),m.view().bind("destroy",function(){m.destroy()}),m.wrapper=t.parent().addClass(h?" km-actionsheet-"+h:""),m.shim=new d(m.wrapper,e.extend({modal:g.ios&&g.majorVersion<7,className:"km-actionsheet-root"},m.options.popup)),m._closeProxy=e.proxy(m,"_close"),m._shimHideProxy=e.proxy(m,"_shimHide"),m.shim.bind("hide",m._shimHideProxy),c&&n.onResize(m._closeProxy),n.notify(m,o)},events:[l,d,c],options:{name:"ActionSheet",cancel:"Cancel",type:"auto",popup:{height:"auto"}},open:function(t,n){var i=this;i.target=e(t),i.context=n,i.shim.show(t)},close:function(){this.context=this.target=null,this.shim.hide()},openFor:function(e){var t=this,n=e.data(h);t.open(e,n),t.trigger(l,{target:e,context:n})},destroy:function(){s.fn.destroy.call(this),n.unbindResize(this._closeProxy),this.shim.destroy()},_click:function(t){var i,o,r,a;t.isDefaultPrevented()||(i=e(t.currentTarget),o=i.data("action"),o&&(r={target:this.target,context:this.context},a=this.options.$angular,a?this.element.injector().get("$parse")(o)(a[0])(r):n.getter(o)(window)(r)),this.trigger(c,{target:this.target,context:this.context,currentTarget:i}),t.preventDefault(),this._close())},_shimHide:function(e){this.trigger(d)?e.preventDefault():this.context=this.target=null},_close:function(e){this.trigger(d)?e.preventDefault():this.close()}});o.plugin(m)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){
(n||t)()}),function(e,define){define("kendo.mobile.button.min",["kendo.userevents.min"],e)}(function(){return function(e,t){function n(t,n,i){e(n.target).closest(".km-button,.km-detail").toggleClass("km-state-active",i),c&&t.deactivateTimeoutID&&(clearTimeout(t.deactivateTimeoutID),t.deactivateTimeoutID=0)}function i(t){return e('<span class="km-badge">'+t+"</span>")}var o=window.kendo,r=o.mobile,a=r.ui,s=a.Widget,l=o.support,d=l.mobileOS,c=d.android&&d.flatVersion>=300,u="click",h="disabled",p="km-state-disabled",f=s.extend({init:function(e,t){var i,r=this;s.fn.init.call(r,e,t),i="up"===r.options.clickOn,r._wrap(),r._style(),i||r.element.attr("data-navigate-on-press",!0),r.options.enable=r.options.enable&&!r.element.attr(h),r.enable(r.options.enable),r._userEvents=new o.UserEvents(r.element,{allowSelection:!i,fastTap:!0,press:function(e){r._activate(e)},release:function(e){n(r,e,!1),i||e.event.stopPropagation()}}),r._userEvents.bind(i?"tap":"press",function(e){r._release(e)}),c&&r.element.on("move",function(e){r._timeoutDeactivate(e)})},destroy:function(){s.fn.destroy.call(this),this._userEvents.destroy()},events:[u],options:{name:"Button",icon:"",style:"",badge:"",clickOn:"up",enable:!0},badge:function(e){var t=this.badgeElement=this.badgeElement||i(e).appendTo(this.element);return e||0===e?(t.html(e),this):e===!1?(t.empty().remove(),this.badgeElement=!1,this):t.html()},enable:function(e){var n=this.element;t===e&&(e=!0),this.options.enable=e,e?n.removeAttr(h):n.attr(h,h),n.toggleClass(p,!e)},_timeoutDeactivate:function(e){this.deactivateTimeoutID||(this.deactivateTimeoutID=setTimeout(n,500,this,e,!1))},_activate:function(e){var t=document.activeElement,i=t?t.nodeName:"";this.options.enable&&(n(this,e,!0),"INPUT"!=i&&"TEXTAREA"!=i||t.blur())},_release:function(n){var i=this;if(!(n.which>1))return i.options.enable?(i.trigger(u,{target:e(n.target),button:i.element})&&n.preventDefault(),t):(n.preventDefault(),t)},_style:function(){var t,n=this.options.style,i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-"+this)}))},_wrap:function(){var t=this,n=t.options.icon,o=t.options.badge,r='<span class="km-icon km-'+n,a=t.element.addClass("km-button"),s=a.children("span:not(.km-icon)").addClass("km-text"),l=a.find("img").addClass("km-image");!s[0]&&a.html()&&(s=a.wrapInner('<span class="km-text" />').children("span.km-text")),!l[0]&&n&&(s[0]||(r+=" km-notext"),t.iconElement=a.prepend(e(r+'" />'))),(o||0===o)&&(t.badgeElement=i(o).appendTo(a))}}),m=f.extend({options:{name:"BackButton",style:"back"},init:function(e,n){var i=this;f.fn.init.call(i,e,n),t===i.element.attr("href")&&i.element.attr("href","#:back")}}),g=f.extend({options:{name:"DetailButton",style:""},init:function(e,t){f.fn.init.call(this,e,t)},_style:function(){var t,n=this.options.style+" detail",i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-"+this)}))},_wrap:function(){var t=this,n=t.options.icon,i='<span class="km-icon km-'+n,o=t.element,r=o.children("span"),a=o.find("img").addClass("km-image");!a[0]&&n&&(r[0]||(i+=" km-notext"),o.prepend(e(i+'" />')))}});a.plugin(f),a.plugin(m),a.plugin(g)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.buttongroup.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e){return"k-"+e+" km-"+e}function i(t){return e('<span class="'+n("badge")+'">'+t+"</span>")}var o=window.kendo,r=o.mobile.ui,a=r.Widget,s="state-active",l="state-disabled",d="select",c="li:not(.km-"+s+")",u=a.extend({init:function(e,t){var i=this;a.fn.init.call(i,e,t),i.element.addClass("km-buttongroup k-widget k-button-group").find("li").each(i._button),i.element.on(i.options.selectOn,c,"_select"),i._enable=!0,i.select(i.options.index),i.options.enable||(i._enable=!1,i.wrapper.addClass(n(l)))},events:[d],options:{name:"ButtonGroup",selectOn:"down",index:-1,enable:!0},current:function(){return this.element.find(".km-"+s)},select:function(i){var o=this,r=-1;i!==t&&i!==-1&&o._enable&&!e(i).is(".km-"+l)&&(o.current().removeClass(n(s)),"number"==typeof i?(r=i,i=e(o.element[0].children[i])):i.nodeType&&(i=e(i),r=i.index()),i.addClass(n(s)),o.selectedIndex=r)},badge:function(t,n){var o,r=this.element;return isNaN(t)||(t=r.children().get(t)),t=r.find(t),o=e(t.children(".km-badge")[0]||i(n).appendTo(t)),n||0===n?(o.html(n),this):n===!1?(o.empty().remove(),this):o.html()},enable:function(e){t===e&&(e=!0),this.wrapper.toggleClass(n(l),!e),this._enable=this.options.enable=e},_button:function(){var t=e(this).addClass(n("button")),r=o.attrValue(t,"icon"),a=o.attrValue(t,"badge"),s=t.children("span"),l=t.find("img").addClass(n("image"));s[0]||(s=t.wrapInner("<span/>").children("span")),s.addClass(n("text")),!l[0]&&r&&t.prepend(e('<span class="'+n("icon")+" "+n(r)+'"/>')),(a||0===a)&&i(a).appendTo(t)},_select:function(e){e.which>1||e.isDefaultPrevented()||!this._enable||(this.select(e.currentTarget),this.trigger(d,{index:this.selectedIndex}))}});r.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.collapsible.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Widget,r="km-collapsible",a="km-collapsible-header",s="km-collapsible-content",l="km-collapsibleinset",d="<div data-role='collapsible-header' class='"+a+"'></div>",c="<div data-role='collapsible-content' class='"+s+"'></div>",u="km-collapsed",h="km-expanded",p="km-animated",f="left",m="expand",g="collapse",v=o.extend({init:function(t,i){var a=this,s=e(t);o.fn.init.call(a,s,i),s.addClass(r),a._buildHeader(),a.content=s.children().not(a.header).wrapAll(c).parent(),a._userEvents=new n.UserEvents(a.header,{fastTap:!0,tap:function(){a.toggle()}}),s.addClass(a.options.collapsed?u:h),a.options.inset&&s.addClass(l),a.options.animation?(a.content.addClass(p),a.content.height(0),a.options.collapsed&&a.content.hide()):a.options.collapsed&&a.content.hide()},events:[m,g],options:{name:"Collapsible",collapsed:!0,collapseIcon:"arrow-n",expandIcon:"arrow-s",iconPosition:f,animation:!0,inset:!1},destroy:function(){o.fn.destroy.call(this),this._userEvents.destroy()},expand:function(e){var t=this.options.collapseIcon,i=this.content,o=n.support.mobileOS.ios;this.trigger(m)||(t&&this.header.find(".km-icon").removeClass().addClass("km-icon km-"+t),this.element.removeClass(u).addClass(h),this.options.animation&&!e?(i.off("transitionend"),i.show(),o&&i.removeClass(p),i.height(this._getContentHeight()),o&&i.addClass(p),n.resize(i)):i.show())},collapse:function(e){var t=this.options.expandIcon,n=this.content;this.trigger(g)||(t&&this.header.find(".km-icon").removeClass().addClass("km-icon km-"+t),this.element.removeClass(h).addClass(u),this.options.animation&&!e?(n.one("transitionend",function(){n.hide()}),n.height(0)):n.hide())},toggle:function(e){this.isCollapsed()?this.expand(e):this.collapse(e)},isCollapsed:function(){return this.element.hasClass(u)},resize:function(){!this.isCollapsed()&&this.options.animation&&this.content.height(this._getContentHeight())},_buildHeader:function(){var t=this.element.children(":header").wrapAll(d),n=e('<span class="km-icon"/>'),i=this.options.collapsed?this.options.expandIcon:this.options.collapseIcon,o=this.options.iconPosition;i&&(t.prepend(n),n.addClass("km-"+i)),this.header=t.parent(),this.header.addClass("km-icon-"+o)},_getContentHeight:function(){var e,t=this.content.attr("style");return this.content.css({position:"absolute",visibility:"hidden",height:"auto"}),e=this.content.height(),this.content.attr("style",t?t:""),e}});i.plugin(v)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.listview.min",["kendo.data.min","kendo.userevents.min","kendo.mobile.button.min"],e)}(function(){return function(e,t){function n(){return this.nodeType===v.TEXT_NODE&&this.nodeValue.match(U)}function i(e,t){t&&!e[0].querySelector(".km-icon")&&e.prepend('<span class="km-icon km-'+t+'"/>')}function o(e){i(e,D(e,"icon")),i(e,D(e.children(S),"icon"))}function r(e){var t=e.parent(),o=e.add(t.children(g.roleSelector("detailbutton"))),r=t.contents().not(o).not(n);r.length||(e.addClass("km-listview-link").attr(g.attr("role"),"listview-link"),i(e,D(t,"icon")),i(e,D(e,"icon")))}function a(e){if(e[0].querySelector("input[type=checkbox],input[type=radio]")){var t=e.parent();t.contents().not(e).not(function(){return 3==this.nodeType})[0]||(e.addClass("km-listview-label"),e.children("[type=checkbox],[type=radio]").addClass("km-widget km-icon km-check"))}}function s(t,n){e(t).css("transform","translate3d(0px, "+n+"px, 0px)")}var l,d,c,u,h,p,f,m,g=window.kendo,v=window.Node,_=g.mobile,b=_.ui,w=g._outerHeight,k=g.data.DataSource,y=b.DataBoundWidget,x=".km-list > li, > li:not(.km-group-container)",C=".km-listview-link, .km-listview-label",S="["+g.attr("icon")+"]",T=e.proxy,D=g.attrValue,A="km-group-title",E="km-state-active",I='<div class="'+A+'"><div class="km-text"></div></div>',M=g.template('<li><div class="'+A+'"><div class="km-text">#= this.headerTemplate(data) #</div></div><ul>#= kendo.render(this.template, data.items)#</ul></li>'),R='<div class="km-listview-wrapper"></div>',F=g.template('<form class="km-filter-form"><div class="km-filter-wrap"><input type="search" placeholder="#=placeholder#"/><a href="\\#" class="km-filter-reset" title="Clear"><span class="km-icon km-clear"></span><span class="km-text">Clear</span></a></div></form>'),P=".kendoMobileListView",z="styled",B="dataBound",L="dataBinding",H="itemChange",N="click",O="change",V="progress",W="function",U=/^\s+$/,j=/button/,q=g.Class.extend({init:function(e){var t,n,i=e.scroller();i&&(this.options=e.options,this.element=e.element,this.scroller=e.scroller(),this._shouldFixHeaders(),t=this,n=function(){t._cacheHeaders()},e.bind("resize",n),e.bind(z,n),e.bind(B,n),this._scrollHandler=function(e){t._fixHeader(e)},i.bind("scroll",this._scrollHandler))},destroy:function(){var e=this;e.scroller&&e.scroller.unbind("scroll",e._scrollHandler)},_fixHeader:function(t){if(this.fixedHeaders){var n,i,o,r=0,a=this.scroller,s=this.headers,l=t.scrollTop;do{if(n=s[r++],!n){o=e("<div />");break}i=n.offset,o=n.header}while(i+1>l);this.currentHeader!=r&&(a.fixedContainer.html(o.clone()),this.currentHeader=r)}},_shouldFixHeaders:function(){this.fixedHeaders="group"===this.options.type&&this.options.fixedHeaders},_cacheHeaders:function(){if(this._shouldFixHeaders(),this.fixedHeaders){var t=[],n=this.scroller.scrollTop;this.element.find("."+A).each(function(i,o){o=e(o),t.unshift({offset:o.position().top+n,header:o})}),this.headers=t,this._fixHeader({scrollTop:n})}}}),G=function(){return{page:1}},$=g.Class.extend({init:function(e){var t=this,n=e.options,i=e.scroller(),o=n.pullParameters||G;this.listView=e,this.scroller=i,e.bind("_dataSource",function(e){t.setDataSource(e.dataSource)}),i.setOptions({pullToRefresh:!0,pull:function(){t._pulled||(t._pulled=!0,t.dataSource.read(o.call(e,t._first)))},messages:{pullTemplate:n.messages.pullTemplate,releaseTemplate:n.messages.releaseTemplate,refreshTemplate:n.messages.refreshTemplate}})},setDataSource:function(e){var t=this;this._first=e.view()[0],this.dataSource=e,e.bind("change",function(){t._change()}),e.bind("error",function(){t._change()})},_change:function(){var e,t=this.scroller,n=this.dataSource;this._pulled&&t.pullHandled(),!this._pulled&&this._first||(e=n.view(),e[0]&&(this._first=e[0])),this._pulled=!1}}),K=g.Observable.extend({init:function(e){var t=this;g.Observable.fn.init.call(t),t.buffer=e.buffer,t.height=e.height,t.item=e.item,t.items=[],t.footer=e.footer,t.buffer.bind("reset",function(){t.refresh()})},refresh:function(){for(var e,t,n,i,o=this.buffer,r=this.items,a=!1;r.length;)r.pop().destroy();for(this.offset=o.offset,e=this.item,i=0;i<o.viewSize;i++){if(i===o.total()){a=!0;break}n=e(this.content(this.offset+r.length)),n.below(t),t=n,r.push(n)}this.itemCount=r.length,this.trigger("reset"),this._resize(),a&&this.trigger("endReached")},totalHeight:function(){if(!this.items[0])return 0;var e=this,t=e.items,n=t[0].top,i=t[t.length-1].bottom,o=(i-n)/e.itemCount,r=e.buffer.length-e.offset-e.itemCount;return(this.footer?this.footer.height:0)+i+r*o},batchUpdate:function(e){var t,n,i=this.height(),o=this.items,r=this.offset;if(o[0]){if(this.lastDirection)for(;o[o.length-1].bottom>e+2*i&&0!==this.offset;)this.offset--,t=o.pop(),t.update(this.content(this.offset)),t.above(o[0]),o.unshift(t);else for(;o[0].top<e-i;){if(n=this.offset+this.itemCount,n===this.buffer.total()){this.trigger("endReached");break}if(n===this.buffer.length)break;t=o.shift(),t.update(this.content(this.offset+this.itemCount)),t.below(o[o.length-1]),o.push(t),this.offset++}r!==this.offset&&this._resize()}},update:function(e){var t,n,i,o,r=this,a=this.items,s=this.height(),l=this.itemCount,d=s/2,c=(this.lastTop||0)>e,u=e-d,h=e+s+d;a[0]&&(this.lastTop=e,this.lastDirection=c,c?a[0].top>u&&a[a.length-1].bottom>h+d&&this.offset>0&&(this.offset--,t=a.pop(),n=a[0],t.update(this.content(this.offset)),a.unshift(t),t.above(n),r._resize()):a[a.length-1].bottom<h&&a[0].top<u-d&&(o=this.offset+l,o===this.buffer.total()?this.trigger("endReached"):o!==this.buffer.length&&(t=a.shift(),i=a[a.length-1],a.push(t),t.update(this.content(this.offset+this.itemCount)),r.offset++,t.below(i),r._resize())))},content:function(e){return this.buffer.at(e)},destroy:function(){this.unbind()},_resize:function(){var e=this.items,t=0,n=0,i=e[0],o=e[e.length-1];i&&(t=i.top,n=o.bottom),this.trigger("resize",{top:t,bottom:n}),this.footer&&this.footer.below(o)}});g.mobile.ui.VirtualList=K,l=g.Class.extend({init:function(t,n){var i=t.append([n],!0)[0],o=i.offsetHeight;e.extend(this,{top:0,element:i,listView:t,height:o,bottom:o})},update:function(e){this.element=this.listView.setDataItem(this.element,e)},above:function(e){e&&(this.height=this.element.offsetHeight,this.top=e.top-this.height,this.bottom=e.top,s(this.element,this.top))},below:function(e){e&&(this.height=this.element.offsetHeight,this.top=e.bottom,this.bottom=this.top+this.height,s(this.element,this.top))},destroy:function(){g.destroy(this.element),e(this.element).remove()}}),d='<div><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span></div>',c=g.Class.extend({init:function(t){this.element=e('<li class="km-load-more km-scroller-refresh" style="display: none"></li>').appendTo(t.element),this._loadIcon=e(d).appendTo(this.element)},enable:function(){this.element.show(),this.height=w(this.element,!0)},disable:function(){this.element.hide(),this.height=0},below:function(e){e&&(this.top=e.bottom,this.bottom=this.height+this.top,s(this.element,this.top))}}),u=c.extend({init:function(t,n){this._loadIcon=e(d).hide(),this._loadButton=e('<a class="km-load">'+t.options.messages.loadMoreText+"</a>").hide(),this.element=e('<li class="km-load-more" style="display: none"></li>').append(this._loadIcon).append(this._loadButton).appendTo(t.element);var i=this;this._loadButton.kendoMobileButton().data("kendoMobileButton").bind("click",function(){i._hideShowButton(),n.next()}),n.bind("resize",function(){i._showLoadButton()}),this.height=w(this.element,!0),this.disable()},_hideShowButton:function(){this._loadButton.hide(),this.element.addClass("km-scroller-refresh"),this._loadIcon.css("display","block")},_showLoadButton:function(){this._loadButton.show(),this.element.removeClass("km-scroller-refresh"),this._loadIcon.hide()}}),h=g.Class.extend({init:function(e){var t=this;this.chromeHeight=w(e.wrapper.children().not(e.element)),this.listView=e,this.scroller=e.scroller(),this.options=e.options,e.bind("_dataSource",function(e){t.setDataSource(e.dataSource,e.empty)}),e.bind("resize",function(){t.list.items.length&&(t.scroller.reset(),t.buffer.range(0),t.list.refresh())}),this.scroller.makeVirtual(),this._scroll=function(e){t.list.update(e.scrollTop)},this.scroller.bind("scroll",this._scroll),this._scrollEnd=function(e){t.list.batchUpdate(e.scrollTop)},this.scroller.bind("scrollEnd",this._scrollEnd)},destroy:function(){this.list.unbind(),this.buffer.unbind(),this.scroller.unbind("scroll",this._scroll),this.scroller.unbind("scrollEnd",this._scrollEnd)},setDataSource:function(t,n){var i,o,r,a,s=this,d=this.options,h=this.listView,p=h.scroller(),f=d.loadMore;if(this.dataSource=t,i=t.pageSize()||d.virtualViewSize,!i&&!n)throw Error("the DataSource does not have page size configured. Page Size setting is mandatory for the mobile listview virtual scrolling to work as expected.");this.buffer&&this.buffer.destroy(),o=new g.data.Buffer(t,Math.floor(i/2),f),r=f?new u(h,o):new c(h),this.list&&this.list.destroy(),a=new K({buffer:o,footer:r,item:function(e){return new l(h,e)},height:function(){return p.height()}}),a.bind("resize",function(){s.updateScrollerSize(),h.updateSize()}),a.bind("reset",function(){s.footer.enable()}),a.bind("endReached",function(){r.disable(),s.updateScrollerSize()}),o.bind("expand",function(){a.lastDirection=!1,a.batchUpdate(p.scrollTop)}),e.extend(this,{buffer:o,scroller:p,list:a,footer:r})},updateScrollerSize:function(){this.scroller.virtualSize(0,this.list.totalHeight()+this.chromeHeight)},refresh:function(){this.list.refresh()},reset:function(){this.buffer.range(0),this.list.refresh()}}),p=g.Class.extend({init:function(e){var t,n=this;this.listView=e,this.options=e.options,t=this,this._refreshHandler=function(e){t.refresh(e)},this._progressHandler=function(){e.showLoading()},e.bind("_dataSource",function(e){n.setDataSource(e.dataSource)})},destroy:function(){this._unbindDataSource()},reset:function(){},refresh:function(e){var n,i,o,r,a,s,l,d=e&&e.action,c=e&&e.items,u=this.listView,h=this.dataSource,p=this.options.appendOnRefresh,f=h.view(),m=h.group(),g=m&&m[0];return"itemchange"===d?(u._hasBindingTarget()||(n=u.findByDataItem(c)[0],n&&u.setDataItem(n,c[0])),t):(a="add"===d&&!g||p&&!u._filter,s="remove"===d&&!g,a?i=[]:s&&(i=u.findByDataItem(c)),u.trigger(L,{action:d||"rebind",items:c,removedItems:i,index:e&&e.index})?(this._shouldShowLoading()&&u.hideLoading(),t):("add"!==d||g?"remove"!==d||g?g?u.replaceGrouped(f):p&&!u._filter?(o=u.prepend(f),r=f):u.replace(f):(o=[],u.remove(c)):(l=f.indexOf(c[0]),l>-1&&(o=u.insertAt(c,l),r=c)),this._shouldShowLoading()&&u.hideLoading(),u.trigger(B,{ns:b,addedItems:o,addedDataItems:r}),t))},setDataSource:function(e){this.dataSource&&this._unbindDataSource(),this.dataSource=e,e.bind(O,this._refreshHandler),this._shouldShowLoading()&&this.dataSource.bind(V,this._progressHandler)},_unbindDataSource:function(){this.dataSource.unbind(O,this._refreshHandler).unbind(V,this._progressHandler)},_shouldShowLoading:function(){var e=this.options;return!e.pullToRefresh&&!e.loadMore&&!e.endlessScroll}}),f=g.Class.extend({init:function(t){var n=this,i=t.options.filterable,o="change paste",r=this;this.listView=t,this.options=i,t.element.before(F({placeholder:i.placeholder||"Search..."})),i.autoFilter!==!1&&(o+=" keyup"),this.element=t.wrapper.find(".km-search-form"),this.searchInput=t.wrapper.find("input[type=search]").closest("form").on("submit"+P,function(e){e.preventDefault()}).end().on("focus"+P,function(){n._oldFilter=n.searchInput.val()}).on(o.split(" ").join(P+" ")+P,T(this._filterChange,this)),this.clearButton=t.wrapper.find(".km-filter-reset").on(N,T(this,"_clearFilter")).hide(),this._dataSourceChange=e.proxy(this._refreshInput,this),t.bind("_dataSource",function(e){e.dataSource.bind("change",r._dataSourceChange)})},_refreshInput:function(){var e=this.listView.dataSource.filter(),t=this.listView._filter.searchInput;t.val(e&&e.filters[0].field===this.listView.options.filterable.field?e.filters[0].value:"")},_search:function(e){this._filter=!0,this.clearButton[e?"show":"hide"](),this.listView.dataSource.filter(e)},_filterChange:function(e){var t=this;"paste"==e.type&&this.options.autoFilter!==!1?setTimeout(function(){t._applyFilter()},1):this._applyFilter()},_applyFilter:function(){var e=this.options,t=this.searchInput.val(),n=t.length?{field:e.field,operator:e.operator||"startswith",ignoreCase:e.ignoreCase,value:t}:null;t!==this._oldFilter&&(this._oldFilter=t,this._search(n))},_clearFilter:function(e){this.searchInput.val(""),this._search(null),e.preventDefault()}}),m=y.extend({init:function(t,n){var i=this;y.fn.init.call(this,t,n),t=this.element,n=this.options,n.scrollTreshold&&(n.scrollThreshold=n.scrollTreshold),t.on("down",C,"_highlight").on("move up cancel",C,"_dim"),this._userEvents=new g.UserEvents(t,{fastTap:!0,filter:x,allowSelection:!0,tap:function(e){i._click(e)}}),t.css("-ms-touch-action","auto"),t.wrap(R),this.wrapper=this.element.parent(),this._headerFixer=new q(this),this._itemsCache={},this._templates(),this.virtual=n.endlessScroll||n.loadMore,this._style(),this.options.$angular&&(this.virtual||this.options.pullToRefresh)?setTimeout(e.proxy(this,"_start")):this._start()},_start:function(){var e=this.options;this.options.filterable&&(this._filter=new f(this)),this._itemBinder=this.virtual?new h(this):new p(this),this.options.pullToRefresh&&(this._pullToRefreshHandler=new $(this)),this.setDataSource(e.dataSource),this._enhanceItems(this.items()),g.notify(this,b)},events:[N,L,B,H],options:{name:"ListView",style:"",type:"flat",autoBind:!0,fixedHeaders:!1,template:"#:data#",headerTemplate:'<span class="km-text">#:value#</span>',appendOnRefresh:!1,loadMore:!1,endlessScroll:!1,scrollThreshold:30,pullToRefresh:!1,messages:{loadMoreText:"Press to load more",pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},pullOffset:140,filterable:!1,virtualViewSize:null},refresh:function(){this._itemBinder.refresh()},reset:function(){this._itemBinder.reset()},setDataSource:function(e){var t=!e;this.dataSource=k.create(e),this.trigger("_dataSource",{dataSource:this.dataSource,empty:t}),this.options.autoBind&&!t&&(this.items().remove(),this.dataSource.fetch())},destroy:function(){y.fn.destroy.call(this),g.destroy(this.element),this._userEvents.destroy(),this._itemBinder&&this._itemBinder.destroy(),this._headerFixer&&this._headerFixer.destroy(),this.element.unwrap(),delete this.element,delete this.wrapper,delete this._userEvents},items:function(){return"group"===this.options.type?this.element.find(".km-list").children():this.element.children().not(".km-load-more")},scroller:function(){return this._scrollerInstance||(this._scrollerInstance=this.element.closest(".km-scroll-wrapper").data("kendoMobileScroller")),this._scrollerInstance},showLoading:function(){var e=this.view();e&&e.loader&&e.loader.show()},hideLoading:function(){var e=this.view();e&&e.loader&&e.loader.hide()},insertAt:function(e,t,n){var i=this;return i._renderItems(e,function(o){if(0===t?i.element.prepend(o):t===-1?i.element.append(o):i.items().eq(t-1).after(o),n)for(var r=0;r<o.length;r++)i.trigger(H,{item:o.eq(r),data:e[r],ns:b})})},append:function(e,t){return this.insertAt(e,-1,t)},prepend:function(e,t){return this.insertAt(e,0,t)},replace:function(e){return this.options.type="flat",this._angularItems("cleanup"),g.destroy(this.element.children()),this.element.empty(),this._userEvents.cancel(),this._style(),this.insertAt(e,0)},replaceGrouped:function(t){this.options.type="group",this._angularItems("cleanup"),this.element.empty();var n=e(g.render(this.groupTemplate,t));this._enhanceItems(n.children("ul").children("li")),this.element.append(n),_.init(n),this._style(),this._angularItems("compile")},remove:function(e){var t=this.findByDataItem(e);this.angular("cleanup",function(){return{elements:t}}),g.destroy(t),t.remove()},findByDataItem:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)i[t]="[data-"+g.ns+"uid="+e[t].uid+"]";return this.element.find(i.join(","))},setDataItem:function(t,n){var i=this,o=function(o){var r=e(o[0]);g.destroy(t),i.angular("cleanup",function(){return{elements:[e(t)]}}),e(t).replaceWith(r),i.trigger(H,{item:r,data:n,ns:b})};return this._renderItems([n],o)[0]},updateSize:function(){this._size=this.getSize()},_renderItems:function(t,n){var i=e(g.render(this.template,t));return n(i),this.angular("compile",function(){return{elements:i,data:t.map(function(e){return{dataItem:e}})}}),_.init(i),this._enhanceItems(i),i},_dim:function(e){this._toggle(e,!1)},_highlight:function(e){this._toggle(e,!0)},_toggle:function(t,n){if(!(t.which>1)){var i=e(t.currentTarget),o=i.parent(),r=D(i,"role")||"",a=!r.match(j),s=t.isDefaultPrevented();a&&o.toggleClass(E,n&&!s)}},_templates:function(){var e=this.options.template,t=this.options.headerTemplate,n=' data-uid="#=arguments[0].uid || ""#"',i={},o={};typeof e===W&&(i.template=e,e="#=this.template(data)#"),this.template=T(g.template("<li"+n+">"+e+"</li>"),i),o.template=this.template,typeof t===W&&(o._headerTemplate=t,t="#=this._headerTemplate(data)#"),o.headerTemplate=g.template(t),this.groupTemplate=T(M,o)},_click:function(t){if(!(t.event.which>1||t.event.isDefaultPrevented())){var n,i=t.target,o=e(t.event.target),r=o.closest(g.roleSelector("button","detailbutton","backbutton")),a=g.widgetInstance(r,b),s=i.attr(g.attr("uid"));s&&(n=this.dataSource.getByUid(s)),this.trigger(N,{target:o,item:i,dataItem:n,button:a})&&t.preventDefault()}},_styleGroups:function(){var t=this.element.children();t.children("ul").addClass("km-list"),t.each(function(){var t=e(this),n=t.contents().first();t.addClass("km-group-container"),n.is("ul")||n.is("div."+A)||n.wrap(I)})},_style:function(){var e=this.options,t="group"===e.type,n=this.element,i="inset"===e.style;n.addClass("km-listview").toggleClass("km-list",!t).toggleClass("km-virtual-list",this.virtual).toggleClass("km-listinset",!t&&i).toggleClass("km-listgroup",t&&!i).toggleClass("km-listgroupinset",t&&i),n.parents(".km-listview")[0]||n.closest(".km-content").toggleClass("km-insetcontent",i),t&&this._styleGroups(),this.trigger(z)},_enhanceItems:function(t){t.each(function(){var t,n=e(this),i=!1;n.children().each(function(){t=e(this),t.is("a")?(r(t),i=!0):t.is("label")&&(a(t),i=!0)}),i||o(n)})}}),b.plugin(m)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.navbar.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t,n){var i=n.find("["+o.attr("align")+"="+t+"]");if(i[0])return e('<div class="km-'+t+'item" />').append(i).prependTo(n)}function i(e){var t=e.siblings(),n=!!e.children("ul")[0],i=!!t[0]&&""===o.trim(e.text()),r=!(!o.mobile.application||!o.mobile.application.element.is(".km-android"));e.prevAll().toggleClass("km-absolute",n),e.toggleClass("km-show-title",i),e.toggleClass("km-fill-title",i&&!o.trim(e.html())),e.toggleClass("km-no-title",n),e.toggleClass("km-hide-title",r&&!t.children().is(":visible"))}var o=window.kendo,r=o.mobile,a=r.ui,s=a.Widget,l=s.extend({init:function(t,i){var o=this;s.fn.init.call(o,t,i),t=o.element,o.container().bind("show",e.proxy(this,"refresh")),t.addClass("km-navbar").wrapInner(e('<div class="km-view-title km-show-title" />')),o.leftElement=n("left",t),o.rightElement=n("right",t),o.centerElement=t.find(".km-view-title")},options:{name:"NavBar"},title:function(e){this.element.find(o.roleSelector("view-title")).text(e),i(this.centerElement)},refresh:function(e){var t=e.view;this.title(t.options.title)},destroy:function(){s.fn.destroy.call(this),o.destroy(this.element)}});a.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.scrollview.min",["kendo.fx.min","kendo.data.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(e){return"k-"+e+" km-"+e}var i,o,r,a,s,l,d,c,u=window.kendo,h=u.mobile,p=h.ui,f=e.proxy,m=u.effects.Transition,g=u.ui.Pane,v=u.ui.PaneDimensions,_=p.DataBoundWidget,b=u.data.DataSource,w=u.data.Buffer,k=u.data.BatchBuffer,y=Math,x=y.abs,C=y.ceil,S=y.round,T=y.max,D=y.min,A=y.floor,E="change",I="changing",M="refresh",R="current-page",F="virtual-page",P="function",z="itemChange",B="cleanup",L=3,H=-1,N=0,O=1,V=-1,W=0,U=1,j=u.Class.extend({init:function(t){var i=this,o=e("<ol class='"+n("pages")+"'/>");t.element.append(o),this._changeProxy=f(i,"_change"),this._refreshProxy=f(i,"_refresh"),t.bind(E,this._changeProxy),t.bind(M,this._refreshProxy),e.extend(i,{element:o,scrollView:t})},items:function(){return this.element.children()},_refresh:function(e){var t,i="";for(t=0;t<e.pageCount;t++)i+="<li></li>";this.element.html(i),this.items().eq(e.page).addClass(n(R))},_change:function(e){this.items().removeClass(n(R)).eq(e.page).addClass(n(R))},destroy:function(){this.scrollView.unbind(E,this._changeProxy),this.scrollView.unbind(M,this._refreshProxy),this.element.remove()}});u.mobile.ui.ScrollViewPager=j,i="transitionEnd",o="dragStart",r="dragEnd",a=u.Observable.extend({init:function(t,n){var a,s,l,d,c,h,p=this;u.Observable.fn.init.call(this),this.element=t,this.container=t.parent(),a=new u.ui.Movable(p.element),s=new m({axis:"x",movable:a,onEnd:function(){p.trigger(i)}}),l=new u.UserEvents(t,{fastTap:!0,start:function(e){2*x(e.x.velocity)>=x(e.y.velocity)?l.capture():l.cancel(),p.trigger(o,e),s.cancel()},allowSelection:!0,end:function(e){p.trigger(r,e)}}),d=new v({element:p.element,container:p.container}),c=d.x,c.bind(E,function(){p.trigger(E)}),h=new g({dimensions:d,userEvents:l,movable:a,elastic:!0}),e.extend(p,{duration:n&&n.duration||1,movable:a,transition:s,userEvents:l,dimensions:d,dimension:c,pane:h}),this.bind([i,o,r,E],n)},size:function(){return{width:this.dimensions.x.getSize(),height:this.dimensions.y.getSize()}},total:function(){return this.dimension.getTotal()},offset:function(){return-this.movable.x},updateDimension:function(){this.dimension.update(!0)},refresh:function(){this.dimensions.refresh()},moveTo:function(e){this.movable.moveAxis("x",-e)},transitionTo:function(e,t,n){n?this.moveTo(-e):this.transition.moveTo({location:e,duration:this.duration,ease:t})}}),u.mobile.ui.ScrollViewElasticPane=a,s=u.Observable.extend({init:function(e,t,n){var i=this;u.Observable.fn.init.call(this),i.element=e,i.pane=t,i._getPages(),this.page=0,this.pageSize=n.pageSize||1,this.contentHeight=n.contentHeight,this.enablePager=n.enablePager,this.pagerOverlay=n.pagerOverlay},scrollTo:function(e,t){this.page=e,this.pane.transitionTo(-e*this.pane.size().width,m.easeOutExpo,t)},paneMoved:function(e,t,n,i){var o,r,a=this,s=a.pane,l=s.size().width*a.pageSize,d=S,c=t?m.easeOutBack:m.easeOutExpo;e===V?d=C:e===U&&(d=A),r=d(s.offset()/l),o=T(a.minSnap,D(-r*l,a.maxSnap)),r!=a.page&&n&&n({currentPage:a.page,nextPage:r})&&(o=-a.page*s.size().width),s.transitionTo(o,c,i)},updatePage:function(){var e=this.pane,t=S(e.offset()/e.size().width);return t!=this.page&&(this.page=t,!0)},forcePageUpdate:function(){return this.updatePage()},resizeTo:function(e){var t,n,i=this.pane,o=e.width;this.pageElements.width(o),"100%"===this.contentHeight&&(t=this.element.parent().height(),this.enablePager===!0&&(n=this.element.parent().find("ol.km-pages"),!this.pagerOverlay&&n.length&&(t-=u._outerHeight(n,!0))),this.element.css("height",t),this.pageElements.css("height",t)),i.updateDimension(),this._paged||(this.page=A(i.offset()/o)),this.scrollTo(this.page,!0),this.pageCount=C(i.total()/o),this.minSnap=-(this.pageCount-1)*o,this.maxSnap=0},_getPages:function(){this.pageElements=this.element.find(u.roleSelector("page")),this._paged=this.pageElements.length>0}}),u.mobile.ui.ScrollViewContent=s,l=u.Observable.extend({init:function(e,t,n){var i=this;u.Observable.fn.init.call(this),i.element=e,i.pane=t,i.options=n,i._templates(),i.page=n.page||0,i.pages=[],i._initPages(),i.resizeTo(i.pane.size()),i.pane.dimension.forceEnabled()},setDataSource:function(e){this.dataSource=b.create(e),this._buffer(),this._pendingPageRefresh=!1,this._pendingWidgetRefresh=!1},_viewShow:function(){var e=this;e._pendingWidgetRefresh&&(setTimeout(function(){e._resetPages()},0),e._pendingWidgetRefresh=!1)},_buffer:function(){
var e=this.options.itemsPerPage;this.buffer&&this.buffer.destroy(),this.buffer=e>1?new k(this.dataSource,e):new w(this.dataSource,3*e),this._resizeProxy=f(this,"_onResize"),this._resetProxy=f(this,"_onReset"),this._endReachedProxy=f(this,"_onEndReached"),this.buffer.bind({resize:this._resizeProxy,reset:this._resetProxy,endreached:this._endReachedProxy})},_templates:function(){var e=this.options.template,t=this.options.emptyTemplate,n={},i={};typeof e===P&&(n.template=e,e="#=this.template(data)#"),this.template=f(u.template(e),n),typeof t===P&&(i.emptyTemplate=t,t="#=this.emptyTemplate(data)#"),this.emptyTemplate=f(u.template(t),i)},_initPages:function(){var e,t,n=this.pages,i=this.element;for(t=0;t<L;t++)e=new d(i),n.push(e);this.pane.updateDimension()},resizeTo:function(e){var t,n,i,o=this.pages,r=this.pane;for(t=0;t<o.length;t++)o[t].setWidth(e.width);"auto"===this.options.contentHeight?this.element.css("height",this.pages[1].element.height()):"100%"===this.options.contentHeight&&(n=this.element.parent().height(),this.options.enablePager===!0&&(i=this.element.parent().find("ol.km-pages"),!this.options.pagerOverlay&&i.length&&(n-=u._outerHeight(i,!0))),this.element.css("height",n),o[0].element.css("height",n),o[1].element.css("height",n),o[2].element.css("height",n)),r.updateDimension(),this._repositionPages(),this.width=e.width},scrollTo:function(e){var t,n=this.buffer;n.syncDataSource(),t=n.at(e),t&&(this._updatePagesContent(e),this.page=e)},paneMoved:function(e,t,n,i){var o,r=this,a=r.pane,s=a.size().width,l=a.offset(),d=Math.abs(l)>=s/3,c=t?u.effects.Transition.easeOutBack:u.effects.Transition.easeOutExpo,h=r.page+2>r.buffer.total(),p=0;e===U?0!==r.page&&(p=-1):e!==V||h?l>0&&d&&!h?p=1:l<0&&d&&0!==r.page&&(p=-1):p=1,o=r.page,p&&(o=p>0?o+1:o-1),n&&n({currentPage:r.page,nextPage:o})&&(p=0),0===p?r._cancelMove(c,i):p===-1?r._moveBackward(i):1===p&&r._moveForward(i)},updatePage:function(){var e=this.pages;return 0!==this.pane.offset()&&(this.pane.offset()>0?(e.push(this.pages.shift()),this.page++,this.setPageContent(e[2],this.page+1)):(e.unshift(this.pages.pop()),this.page--,this.setPageContent(e[0],this.page-1)),this._repositionPages(),this._resetMovable(),!0)},forcePageUpdate:function(){var e=this.pane.offset(),t=3*this.pane.size().width/4;return x(e)>t&&this.updatePage()},_resetMovable:function(){this.pane.moveTo(0)},_moveForward:function(e){this.pane.transitionTo(-this.width,u.effects.Transition.easeOutExpo,e)},_moveBackward:function(e){this.pane.transitionTo(this.width,u.effects.Transition.easeOutExpo,e)},_cancelMove:function(e,t){this.pane.transitionTo(0,e,t)},_resetPages:function(){this.page=this.options.page||0,this._updatePagesContent(this.page),this._repositionPages(),this.trigger("reset")},_onResize:function(){this.pageCount=C(this.dataSource.total()/this.options.itemsPerPage),this._pendingPageRefresh&&(this._updatePagesContent(this.page),this._pendingPageRefresh=!1),this.trigger("resize")},_onReset:function(){this.pageCount=C(this.dataSource.total()/this.options.itemsPerPage),this._resetPages()},_onEndReached:function(){this._pendingPageRefresh=!0},_repositionPages:function(){var e=this.pages;e[0].position(H),e[1].position(N),e[2].position(O)},_updatePagesContent:function(e){var t=this.pages,n=e||0;this.setPageContent(t[0],n-1),this.setPageContent(t[1],n),this.setPageContent(t[2],n+1)},setPageContent:function(t,n){var i=this.buffer,o=this.template,r=this.emptyTemplate,a=null;n>=0&&(a=i.at(n),e.isArray(a)&&!a.length&&(a=null)),this.trigger(B,{item:t.element}),t.content(null!==a?o(a):r({})),u.mobile.init(t.element),this.trigger(z,{item:t.element,data:a,ns:u.mobile.ui})}}),u.mobile.ui.VirtualScrollViewContent=l,d=u.Class.extend({init:function(t){this.element=e("<div class='"+n(F)+"'></div>"),this.width=t.width(),this.element.width(this.width),t.append(this.element)},content:function(e){this.element.html(e)},position:function(e){this.element.css("transform","translate3d("+this.width*e+"px, 0, 0)")},setWidth:function(e){this.width=e,this.element.width(e)}}),u.mobile.ui.VirtualPage=d,c=_.extend({init:function(e,t){var i,o,r,d=this;_.fn.init.call(d,e,t),t=d.options,e=d.element,u.stripWhitespace(e[0]),e.wrapInner("<div/>").addClass("k-widget "+n("scrollview")),this.options.enablePager&&(this.pager=new j(this),this.options.pagerOverlay&&e.addClass(n("scrollview-overlay"))),d.inner=e.children().first(),d.page=0,d.inner.css("height",t.contentHeight),d.pane=new a(d.inner,{duration:this.options.duration,transitionEnd:f(this,"_transitionEnd"),dragStart:f(this,"_dragStart"),dragEnd:f(this,"_dragEnd"),change:f(this,M)}),d.bind("resize",function(){d.pane.refresh()}),d.page=t.page,i=0===this.inner.children().length,o=i?new l(d.inner,d.pane,t):new s(d.inner,d.pane,t),o.page=d.page,o.bind("reset",function(){this._pendingPageRefresh=!1,d._syncWithContent(),d.trigger(M,{pageCount:o.pageCount,page:o.page})}),o.bind("resize",function(){d.trigger(M,{pageCount:o.pageCount,page:o.page})}),o.bind(z,function(e){d.trigger(z,e),d.angular("compile",function(){return{elements:e.item,data:[{dataItem:e.data}]}})}),o.bind(B,function(e){d.angular("cleanup",function(){return{elements:e.item}})}),d._content=o,d.setDataSource(t.dataSource),r=d.container(),r.nullObject?(d.viewInit(),d.viewShow()):r.bind("show",f(this,"viewShow")).bind("init",f(this,"viewInit"))},options:{name:"ScrollView",page:0,duration:400,velocityThreshold:.8,contentHeight:"auto",pageSize:1,itemsPerPage:1,bounceVelocityThreshold:1.6,enablePager:!0,pagerOverlay:!1,autoBind:!0,template:"",emptyTemplate:""},events:[I,E,M],destroy:function(){_.fn.destroy.call(this),u.destroy(this.element)},viewInit:function(){this.options.autoBind&&this._content.scrollTo(this._content.page,!0)},viewShow:function(){this.pane.refresh()},refresh:function(){var e=this._content;e.resizeTo(this.pane.size()),this.page=e.page,this.trigger(M,{pageCount:e.pageCount,page:e.page})},content:function(e){this.element.children().first().html(e),this._content._getPages(),this.pane.refresh()},value:function(e){var n=this.dataSource;return e?(this.scrollTo(n.indexOf(e),!0),t):n.at(this.page)},scrollTo:function(e,t){this._content.scrollTo(e,t),this._syncWithContent()},prev:function(){var e=this,n=e.page-1;e._content instanceof l?e._content.paneMoved(U,t,function(t){return e.trigger(I,t)}):n>-1&&e.scrollTo(n)},next:function(){var e=this,n=e.page+1;e._content instanceof l?e._content.paneMoved(V,t,function(t){return e.trigger(I,t)}):n<e._content.pageCount&&e.scrollTo(n)},setDataSource:function(e){if(this._content instanceof l){var t=!e;this.dataSource=b.create(e),this._content.setDataSource(this.dataSource),this.options.autoBind&&!t&&this.dataSource.fetch()}},items:function(){return this.element.find(".km-"+F)},_syncWithContent:function(){var e,n,i=this._content.pages,o=this._content.buffer;this.page=this._content.page,e=o?o.at(this.page):t,e instanceof Array||(e=[e]),n=i?i[1].element:t,this.trigger(E,{page:this.page,element:n,data:e})},_dragStart:function(){this._content.forcePageUpdate()&&this._syncWithContent()},_dragEnd:function(e){var t=this,n=e.x.velocity,i=this.options.velocityThreshold,o=W,r=x(n)>this.options.bounceVelocityThreshold;n>i?o=U:n<-i&&(o=V),this._content.paneMoved(o,r,function(e){return t.trigger(I,e)})},_transitionEnd:function(){this._content.updatePage()&&this._syncWithContent()}}),p.plugin(c)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.switch.min",["kendo.fx.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e){return"km-"+e}function i(e,t,n){return Math.max(t,Math.min(n,e))}var o=window.kendo,r=o.mobile.ui,a=o._outerWidth,s=r.Widget,l=o.support,d="change",c="switch-on",u="switch-off",h="margin-left",p="state-active",f="state-disabled",m="disabled",g=l.transitions.css===t?"":l.transitions.css,v=g+"transform",_=e.proxy,b='<span class="'+n("switch")+" "+n("widget")+'">        <span class="'+n("switch-wrapper")+'">            <span class="'+n("switch-background")+'"></span>        </span>         <span class="'+n("switch-container")+'">            <span class="'+n("switch-handle")+'">                 <span class="'+n("switch-label-on")+'">{0}</span>                 <span class="'+n("switch-label-off")+'">{1}</span>             </span>         </span>    </span>',w=s.extend({init:function(t,n){var i,r=this;s.fn.init.call(r,t,n),n=r.options,r.wrapper=e(o.format(b,n.onLabel,n.offLabel)),r.handle=r.wrapper.find(".km-switch-handle"),r.background=r.wrapper.find(".km-switch-background"),r.wrapper.insertBefore(r.element).prepend(r.element),r._drag(),r.origin=parseInt(r.background.css(h),10),r.constrain=0,r.snapPoint=0,t=r.element[0],t.type="checkbox",r._animateBackground=!0,i=r.options.checked,null===i&&(i=t.checked),r.check(i),r.options.enable=r.options.enable&&!r.element.attr(m),r.enable(r.options.enable),r.refresh(),o.notify(r,o.mobile.ui)},refresh:function(){var e=this,t=a(e.handle,!0);e.width=e.wrapper.width(),e.constrain=e.width-t,e.snapPoint=e.constrain/2,"number"!=typeof e.origin&&(e.origin=parseInt(e.background.css(h),10)),e.background.data("origin",e.origin),e.check(e.element[0].checked)},events:[d],options:{name:"Switch",onLabel:"on",offLabel:"off",checked:null,enable:!0},check:function(e){var i=this,o=i.element[0];return e===t?o.checked:(i._position(e?i.constrain:0),o.checked=e,i.wrapper.toggleClass(n(c),e).toggleClass(n(u),!e),t)},value:function(){return this.check.apply(this,arguments)},destroy:function(){s.fn.destroy.call(this),this.userEvents.destroy()},toggle:function(){var e=this;e.check(!e.element[0].checked)},enable:function(e){var i=this.element,o=this.wrapper;t===e&&(e=!0),this.options.enable=e,e?i.removeAttr(m):i.attr(m,m),o.toggleClass(n(f),!e)},_resize:function(){this.refresh()},_move:function(e){var t=this;e.preventDefault(),t._position(i(t.position+e.x.delta,0,t.width-a(t.handle,!0)))},_position:function(e){var t=this;t.position=e,t.handle.css(v,"translatex("+e+"px)"),t._animateBackground&&t.background.css(h,t.origin+e)},_start:function(){this.options.enable?(this.userEvents.capture(),this.handle.addClass(n(p))):this.userEvents.cancel()},_stop:function(){var e=this;e.handle.removeClass(n(p)),e._toggle(e.position>e.snapPoint)},_toggle:function(e){var t,i=this,r=i.handle,a=i.element[0],s=a.checked,l=o.mobile.application&&o.mobile.application.os.wp?100:200;i.wrapper.toggleClass(n(c),e).toggleClass(n(u),!e),i.position=t=e*i.constrain,i._animateBackground&&i.background.kendoStop(!0,!0).kendoAnimate({effects:"slideMargin",offset:t,reset:!0,reverse:!e,axis:"left",duration:l}),r.kendoStop(!0,!0).kendoAnimate({effects:"slideTo",duration:l,offset:t+"px,0",reset:!0,complete:function(){s!==e&&(a.checked=e,i.trigger(d,{checked:e}))}})},_drag:function(){var e=this;e.userEvents=new o.UserEvents(e.wrapper,{fastTap:!0,tap:function(){e.options.enable&&e._toggle(!e.element[0].checked)},start:_(e._start,e),move:_(e._move,e),end:_(e._stop,e)})}});r.plugin(w)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.tabstrip.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){return e('<span class="km-badge">'+t+"</span>")}var i=window.kendo,o=i.mobile.ui,r=o.Widget,a="km-state-active",s="select",l=r.extend({init:function(t,n){var i=this;r.fn.init.call(i,t,n),i.container().bind("show",e.proxy(this,"refresh")),i.element.addClass("km-tabstrip").find("a").each(i._buildButton).eq(i.options.selectedIndex).addClass(a),i.element.on("down","a","_release")},events:[s],switchTo:function(t){var n,i,o=this.element.find("a"),r=0,a=o.length;if(!isNaN(t))return this._setActiveItem(o.eq(t)),!0;for(;r<a;r++)if(n=o[r],i=n.href.replace(/(\#.+)(\?.+)$/,"$1"),i.indexOf(t,i.length-t.length)!==-1)return this._setActiveItem(e(n)),!0;return!1},switchByFullUrl:function(e){var t;t=this.element.find("a[href$='"+e+"']"),this._setActiveItem(t)},clear:function(){this.currentItem().removeClass(a)},currentItem:function(){return this.element.children("."+a)},badge:function(t,i){var o,r=this.element;return isNaN(t)||(t=r.children().get(t)),t=r.find(t),o=e(t.find(".km-badge")[0]||n(i).insertAfter(t.children(".km-icon"))),i||0===i?(o.html(i),this):i===!1?(o.empty().remove(),this):o.html()},_release:function(t){if(!(t.which>1)){var n=this,i=e(t.currentTarget);i[0]!==n.currentItem()[0]&&(n.trigger(s,{item:i})?t.preventDefault():n._setActiveItem(i))}},_setActiveItem:function(e){e[0]&&(this.clear(),e.addClass(a))},_buildButton:function(){var t=e(this),o=i.attrValue(t,"icon"),r=i.attrValue(t,"badge"),a=t.find("img"),s=e('<span class="km-icon"/>');t.addClass("km-button").attr(i.attr("role"),"tab").contents().not(a).wrapAll('<span class="km-text"/>'),a[0]?a.addClass("km-image").prependTo(t):(t.prepend(s),o&&(s.addClass("km-"+o),(r||0===r)&&n(r).insertAfter(s)))},refresh:function(e){var t=e.view.id;t&&!this.switchTo(e.view.id)&&this.switchTo(t)},options:{name:"TabStrip",selectedIndex:0,enable:!0}});o.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.min",["kendo.core.min","kendo.fx.min","kendo.data.odata.min","kendo.data.xml.min","kendo.data.min","kendo.data.signalr.min","kendo.binder.min","kendo.validator.min","kendo.router.min","kendo.view.min","kendo.userevents.min","kendo.draganddrop.min","kendo.popup.min","kendo.touch.min","kendo.mobile.popover.min","kendo.mobile.loader.min","kendo.mobile.scroller.min","kendo.mobile.shim.min","kendo.mobile.view.min","kendo.mobile.modalview.min","kendo.mobile.drawer.min","kendo.mobile.splitview.min","kendo.mobile.pane.min","kendo.mobile.application.min","kendo.mobile.actionsheet.min","kendo.mobile.button.min","kendo.mobile.buttongroup.min","kendo.mobile.collapsible.min","kendo.mobile.listview.min","kendo.mobile.navbar.min","kendo.mobile.scrollview.min","kendo.mobile.switch.min","kendo.mobile.tabstrip.min","kendo.angular.min"],e)}(function(){"bundle all";return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.all.min",["kendo.web.min","kendo.dataviz.min","kendo.mobile.min","kendo.drawing.min","kendo.dom.min"],e)}(function(){"bundle all";return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.all.min.js.map